You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1177 lines
2.1 MiB
1177 lines
2.1 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[4925],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Cn,_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"}},21069:function(Cn,_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"}},63720:function(){"use strict";function Cn(Bt,nt,et,ct){et===void 0&&(et=0),ct===void 0&&(ct=1/0),this._name=Bt,this._defaultValue=nt,this._minimum=et,this._maximum=ct}Object.defineProperty(Cn.prototype,"name",{get:function(){return this._name},set:function(Bt){if(typeof Bt!="string"||Bt==="")throw new Error("Shape name must be a valid string.");this._name=Bt}}),Object.defineProperty(Cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("The default value must be a real number, not: "+Bt);this._defaultValue=Bt}}),Object.defineProperty(Cn.prototype,"minimum",{get:function(){return this._minimum},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("Minimum must be a real number, not: "+Bt);this._minimum=Bt}}),Object.defineProperty(Cn.prototype,"maximum",{get:function(){return this._maximum},set:function(Bt){if(typeof Bt!="number"||isNaN(Bt))throw new Error("Maximum must be a real number, not: "+Bt);this._maximum=Bt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Bt,nt){var et=go.Shape._FigureParameters[Bt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Bt,nt,et){if(!(et instanceof Cn))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 ct=go.Shape._FigureParameters[Bt];ct||(ct=[],go.Shape._FigureParameters[Bt]=ct),ct[nt]=et};var _n=[];function Nt(Bt,nt){var et=_n.pop();return et===void 0?new go.Point(Bt,nt):(et.x=Bt,et.y=nt,et)}function Ft(){var Bt=_n.pop();return Bt===void 0?new go.Point:Bt}function se(Bt){_n.push(Bt)}function we(Bt,nt,et,ct,lt,pt,vt,xt,Et){Et||(Et=new go.Point);var Tt=Bt-et,jt=lt-vt,_t=NaN,Jt=NaN;if(Tt===0)if(jt===0)Bt===et&&(_t=Bt,Jt=nt);else{var Ut=(pt-xt)/jt,fe=pt-Ut*lt;_t=Bt,Jt=Ut*_t+fe}else if(jt===0){var ne=(nt-ct)/Tt,Ne=nt-ne*Bt;_t=lt,Jt=ne*_t+Ne}else{var ne=(nt-ct)/Tt,Ut=(pt-xt)/jt,Ne=nt-ne*Bt,fe=pt-Ut*lt;_t=(fe-Ne)/(ne-Ut),Jt=ne*_t+Ne}return Et.x=_t,Et.y=Jt,Et}function Ie(Bt,nt,et,ct,lt,pt,vt,xt,Et,Tt,jt,_t,Jt,Ut){var fe=1-Et,ne=Et,Ne=Bt*fe+et*ne,Ge=nt*fe+ct*ne,Ye=et*fe+lt*ne,Ln=ct*fe+pt*ne,hn=lt*fe+vt*ne,Be=pt*fe+xt*ne,sn=Ne*fe+Ye*ne,ee=Ge*fe+Ln*ne,Kt=Ye*fe+hn*ne,Oe=Ln*fe+Be*ne,pn=sn*fe+Kt*ne,mn=ee*fe+Oe*ne;Tt.x=Ne,Tt.y=Ge,jt.x=sn,jt.y=ee,_t.x=pn,_t.y=mn,Jt.x=Kt,Jt.y=Oe,Ut.x=hn,Ut.y=Be}var ge=new go.Spot(.156,.156),zt=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=5),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var lt=ct*ie,pt=new go.Geometry().add(new go.PathFigure(ct,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-lt,0,nt,lt)).add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)).add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,et-lt,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,ct,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,lt,et,0,et-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ct)).add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()));return lt>1&&(pt.spot1=new go.Spot(0,0,lt,lt),pt.spot2=new go.Spot(1,1,-lt,-lt)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=et/2,ct.endX=nt,ct.endY=et/2,ct}),go.Shape.defineFigureGenerator("LineV",function(Bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt/2,ct.startY=0,ct.endX=nt/2,ct.endY=et,ct}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var ct=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ct*nt,(1-ct)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,(1-ct)*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(Bt,nt,et){var ct=nt/2,lt=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ct,ct,ct,ct).close()));return lt.spot1=ge,lt.spot2=zt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=0,ct.startY=0,ct.endX=nt,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Line2",function(Bt,nt,et){var ct=new go.Geometry(go.Geometry.Line);return ct.startX=nt,ct.startY=0,ct.endX=0,ct.endY=et,ct}),go.Shape.defineFigureGenerator("Curve1",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,ie*nt,0,nt,(1-ie)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,ie*et,(1-ie)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,ie*et,ie*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-ie)*nt,0,0,(1-ie)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Bt,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(Bt,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(Bt,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(Bt,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 Cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)?ct=.1:ct<-1?ct=-1:ct>1&&(ct=1);var lt=Math.abs(ct)*nt;if(ct===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 ct>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 Cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)?ct=10:ct<-nt?ct=-nt:ct>nt&&(ct=nt);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>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 Cn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)?ct=.2:ct<.5?ct=-.5:ct>.5&&(ct=.5);var lt=Math.abs(ct)*nt;if(ct===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 ct>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 Cn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)?ct=20:ct<-nt?ct=-nt/2:ct>nt&&(ct=nt/2);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>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 Cn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)?ct=10:ct<-nt?ct=-nt/2:ct>nt&&(ct=nt/2);var lt=Math.abs(ct);if(ct===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=nt,pt.endY=et,pt}else{var pt=new go.Geometry;return ct>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 Re=[];function he(){var Bt=Re.pop();return Bt===void 0?[]:Bt}function Vt(Bt){Bt.length=0,Re.push(Bt)}function qe(Bt){for(var nt=he(),et=.5,ct=.5,lt=Math.PI*1.5,pt=0,vt=0;vt<Bt;vt++)pt=2*Math.PI/Bt*vt+lt,nt[vt]=new go.Point(ct+et*Math.cos(pt),ct+et*Math.sin(pt));return nt.push(nt[0]),nt}function te(Bt){var nt=He(Bt),et=he();et[0]=nt[0];for(var ct=1,lt=1;ct<nt.length;ct+=2,lt+=3)et[lt]=nt[ct],et[lt+1]=nt[ct],et[lt+2]=nt[ct+1];return Vt(nt),et}function He(Bt){for(var nt=qe(Bt),et=he(),ct=Math.floor(nt.length/2),lt=nt.length-1,pt=Bt%2===0?2:1,vt=0;vt<lt;vt++){var xt=nt[vt],Et=nt[vt+1],Tt=nt[(ct+vt-1)%lt],jt=nt[(ct+vt+pt)%lt];et[vt*2]=xt,et[vt*2+1]=we(xt.x,xt.y,Tt.x,Tt.y,Et.x,Et.y,jt.x,jt.y,new go.Point)}return et[et.length]=et[0],Vt(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Bt,nt,et){var ct=qe(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<5;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Bt,nt,et){var ct=qe(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<6;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Bt,nt,et){var ct=qe(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<7;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Bt,nt,et){var ct=qe(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<8;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Bt,nt,et){var ct=qe(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<9;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Bt,nt,et){var ct=qe(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Bt,nt,et){var ct=qe(12),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Bt,nt,et){var ct=He(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<10;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Bt,nt,et){var ct=He(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<12;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Bt,nt,et){var ct=He(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<14;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Bt,nt,et){var ct=He(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<16;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Bt,nt,et){var ct=He(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<18;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Bt,nt,et){var ct=He(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<20;vt++)pt.add(new go.PathSegment(go.PathSegment.Line,ct[vt].x*nt,ct[vt].y*et));return pt.add(new go.PathSegment(go.PathSegment.Line,ct[0].x*nt,ct[0].y*et).close()),Vt(ct),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Bt,nt,et){var ct=te(5),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Bt,nt,et){var ct=te(6),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Bt,nt,et){var ct=te(7),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Bt,nt,et){var ct=te(8),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Bt,nt,et){var ct=te(9),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Bt,nt,et){var ct=te(10),lt=new go.Geometry,pt=new go.PathFigure(ct[0].x*nt,ct[0].y*et,!0);lt.add(pt);for(var vt=1;vt<ct.length;vt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,ct[vt+2].x*nt,ct[vt+2].y*et,ct[vt].x*nt,ct[vt].y*et,ct[vt+1].x*nt,ct[vt+1].y*et));return pt.segments.last().close(),Vt(ct),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new Cn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Cn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN,lt=Bt?Bt.parameter2:NaN;isNaN(ct)&&(ct=8),isNaN(lt)&&(lt=8);var pt=new go.Geometry,vt=new go.PathFigure(0,0,!0);return pt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct<nt/2&<<et/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ct,lt)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,et-lt)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,lt).close())),pt.setSpots(0,0,1,1,ct,lt,-ct,-lt),pt}),go.Shape.setFigureParameter("Ring",0,new Cn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=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 xt=Math.max(lt-ct,0);return xt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,nt/2+xt,nt/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,xt,xt).close())),pt.spot1=ge,pt.spot2=zt,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(Bt,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(Bt,nt,et){var ct=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ct*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close())).setSpots(ct/2,ct/2,1-ct/2,1-ct/2)}),go.Shape.setFigureParameter("Pie",0,new Cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN,lt=Bt?Bt.parameter2:NaN;isNaN(ct)&&(ct=0),isNaN(lt)&&(lt=315);var pt=ct%360;pt<0&&(pt+=360);var vt=lt%360,xt=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(xt,xt).add(new go.PathSegment(go.PathSegment.Arc,pt,vt,xt,xt,xt,xt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Bt,nt,et){var ct=ie/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-ct)*et,(lt+ct)*nt,(pt+ct)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30);var lt=Math.min(ct,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 Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=10);var lt=Math.min(ct,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 Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;if((isNaN(ct)||ct<0)&&(ct=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,xt=Math.atan2(et,nt),Et=ct-Math.min(Math.cos(xt)*ct/2,pt),Tt=ct-Math.min(Math.sin(xt)*ct/2,vt),lt=new go.Geometry,jt=new go.PathFigure(Et,0,!0);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*et)),jt.add(new go.PathSegment(go.PathSegment.Line,nt-Et,0)),jt.add(new go.PathSegment(go.PathSegment.Line,nt,Tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,nt,et-Tt)),jt.add(new go.PathSegment(go.PathSegment.Line,nt-Et,et)),jt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*et)),jt.add(new go.PathSegment(go.PathSegment.Line,Et,et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,et-Tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,Tt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=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 Cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.2);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+ct/2)*nt,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ct)*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-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,(1-ct)*et)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-ct/2)*nt,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ct*et).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.5);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-ct)*nt,.25*et,Math.abs(1-ct)*nt,.75*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ct*nt,.75*et,ct*nt,.25*et).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Bt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,ie*nt,0,nt,(.5-ie/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+ie/2)*et,ie*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Bt,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(Bt,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(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.4*nt,.6*et,!0);ct.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,xt=0,Et=pt*ie;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5+pt+xt)*et,(.5-pt+vt)*nt,(.5+Et+xt)*et,(.5-Et+vt)*nt,(.5+pt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*nt,(.5+xt)*et,(.5+Et+vt)*nt,(.5+pt+xt)*et,(.5+pt+vt)*nt,(.5+Et+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+xt)*et,(1-.5+pt+vt)*nt,(.5-Et+xt)*et,(.5+Et+vt)*nt,(.5-pt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-Et+vt)*nt,(.5-pt+xt)*et,(.5-pt+vt+.05)*nt,(.5-Et+xt-.02)*et)),pt=.2,vt=0,xt=-.3,Et=pt*ie,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+vt)*nt,(.5+xt)*et,(.5+Et+vt)*nt,(.5+pt+xt)*et,(.5+pt+vt)*nt,(.5+Et+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+xt)*et,(1-.5+pt+vt)*nt,(.5-Et+xt)*et,(.5+Et+vt)*nt,(.5-pt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*nt,(.5+xt)*et,(.5-Et+vt)*nt,(.5-pt+xt)*et,(.5-pt+vt)*nt,(.5-Et+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Et+vt)*nt,(.5+pt+xt)*et,(.5-pt+vt)*nt,(.5+Et+xt)*et,(.5-Et+vt)*nt,(.5+pt+xt)*et)),pt=.2,vt=-.3,xt=0,Et=pt*ie,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5-pt+xt)*et,(1-.5+pt+vt-.05)*nt,(.5-Et+xt-.02)*et,(.5+Et+vt)*nt,(.5-pt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+vt)*nt,(.5+xt)*et,(.5-Et+vt)*nt,(.5-pt+xt)*et,(.5-pt+vt)*nt,(.5-Et+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*nt,(.5+pt+xt)*et,(.5-pt+vt)*nt,(.5+Et+xt)*et,(.5-Et+vt)*nt,(.5+pt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+Et+vt)*nt,(.5+pt+xt)*et,(.5+pt+vt)*nt,(.5+Et+xt)*et).close()),ct.setSpots(.06,.33,.93,.68),ct}),go.Shape.defineFigureGenerator("YinYang",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.5,0,!0);ct.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,xt=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(vt+pt)*nt,xt*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*vt,et*xt,pt*nt,pt*nt).close()),lt=new go.PathFigure(nt*.5,0,!1),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),xt=.75,lt=new go.PathFigure((vt+pt)*nt,xt*et,!0),ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*vt,et*xt,pt*nt,pt*nt).close()),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Peace",function(Bt,nt,et){var ct=.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-ct)*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,ct*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=.5,vt=.5,xt=.5,Et=new go.PathFigure(vt*nt,(xt-pt)*et);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),pt=.4,lt=ie*.4;var Tt=Ft(),jt=Ft(),_t=Ft(),Jt=Ft();Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.42,Tt,jt,_t,Jt,Jt);var Ut=Ft(),fe=Ft(),ne=Ft();Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.58,Jt,Jt,ne,Ut,fe);var Ne=Ft(),Ge=Ft(),Ye=Ft();Ie(vt,xt+pt,vt-lt,xt+pt,vt-pt,xt+lt,vt-pt,xt,.42,Ne,Ge,Ye,Jt,Jt);var Ln=Ft(),hn=Ft(),Be=Ft();return Ie(vt,xt+pt,vt-lt,xt+pt,vt-pt,xt+lt,vt-pt,xt,.58,Jt,Jt,Be,Ln,hn),Et.add(new go.PathSegment(go.PathSegment.Move,Be.x*nt,Be.y*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,Ln.x*nt,Ln.y*et,hn.x*nt,hn.y*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,_t.x*nt,_t.y*et,Tt.x*nt,Tt.y*et,jt.x*nt,jt.y*et)),Et.add(new go.PathSegment(go.PathSegment.Line,Be.x*nt,Be.y*et).close()),Et.add(new go.PathSegment(go.PathSegment.Move,Ye.x*nt,Ye.y*et)),Et.add(new go.PathSegment(go.PathSegment.Line,ne.x*nt,ne.y*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,Ut.x*nt,Ut.y*et,fe.x*nt,fe.y*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Ye.x*nt,Ye.y*et,Ne.x*nt,Ne.y*et,Ge.x*nt,Ge.y*et).close()),se(Tt),se(jt),se(_t),se(Jt),se(Ut),se(fe),se(ne),se(Ne),se(Ge),se(Ye),se(Ln),se(hn),se(Be),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("Fragile",function(Bt,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 Cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=30),ct>nt&&(ct=nt);var lt=(nt-ct)/2,pt=lt+ct;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(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=ie*.4,pt=.4,vt=.5,xt=.5,Et=Ft(),Tt=Ft(),jt=Ft(),_t=Ft(),Jt=new go.PathFigure((vt-pt)*nt,xt*et,!1);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et)),Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.44,jt,_t,Tt,Et,Et),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*nt,Tt.y*et,jt.x*nt,jt.y*et,_t.x*nt,_t.y*et));var Ut=Nt(Tt.x,Tt.y);Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.56,Et,Et,Tt,jt,_t);var fe=Nt(Tt.x,Tt.y);Jt.add(new go.PathSegment(go.PathSegment.Line,(Ut.x*.1+.95*.9)*nt,Ut.y*.1*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,Ut.y*.1*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.9)*nt,.15*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.9)*nt,(fe.y*.1+.05*.9)*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,fe.x*nt,fe.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,jt.x*nt,jt.y*et,_t.x*nt,_t.y*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et)),pt=.35,lt=ie*.35;var ne=new go.PathFigure(vt*nt,(xt-pt)*et,!1);ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),ne.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et));var Ne=new go.PathFigure((vt-pt)*nt,xt*et,!1);return ct.add(Ne),se(Et),se(Tt),se(jt),se(_t),se(Ut),se(fe),ct.spot1=new go.Spot(.202,.257),ct.spot2=new go.Spot(.792,.739),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("GenderFemale",function(Bt,nt,et){var ct=new go.Geometry,lt=.375,pt=0,vt=-.125,xt=lt*ie,Et=new go.PathFigure((.525+pt)*nt,(.5+lt+vt)*et,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*nt,(.5+vt)*et,(.5+xt+pt)*nt,(.5+lt+vt)*et,(.5+lt+pt)*nt,(.5+xt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-lt+vt)*et,(1-.5+lt+pt)*nt,(.5-xt+vt)*et,(.5+xt+pt)*nt,(.5-lt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-xt+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-xt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*nt,(.5+lt+vt)*et,(.5-lt+pt)*nt,(.5+xt+vt)*et,(.5-xt+pt)*nt,(.5+lt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,pt=0,vt=-.125,xt=lt*ie;var Et=new go.PathFigure((1-.5+lt+pt)*nt,(.5+vt)*et,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5+lt+vt)*et,(.5+lt+pt)*nt,(.5+xt+vt)*et,(.5+xt+pt)*nt,(.5+lt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-xt+pt)*nt,(.5+lt+vt)*et,(.5-lt+pt)*nt,(.5+xt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-xt+vt)*et,(.5-xt+pt)*nt,(.5-lt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*nt,(.5+vt)*et,(.5+xt+pt)*nt,(.5-lt+vt)*et,(1-.5+lt+pt)*nt,(.5-xt+vt)*et));var Et=new go.PathFigure((.525+pt)*nt,(.5+lt+vt)*et,!1);return ct.add(Et),ct.spot1=new go.Spot(.232,.136),ct.spot2=new go.Spot(.682,.611),ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicImplies",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*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(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;return isNaN(ct)&&(ct=.2),new go.Geometry().add(new go.PathFigure((1-ct)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ct)*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,ct*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,ct*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Bt,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(Bt,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(Bt,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(Bt,nt,et){var ct=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 ct.defaultStretch=go.GraphObject.Uniform,ct}),go.Shape.defineFigureGenerator("LogicTruth",function(Bt,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(Bt,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(Bt,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(Bt,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(Bt,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(Bt,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Bt,nt,et){var ct=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,ct*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ct*nt,ct*et,ct*nt,ct*et)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-ct)*nt,vt=(.5-lt/2)*et,xt=(.5+lt/2)*et,Et=new go.Geometry,Tt=new go.PathFigure(0,vt,!0);Et.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Tt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,et)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,xt)),Tt.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),Et.spot1=new go.Spot(0,vt/et);var jt=we(0,xt/et,1,xt/et,pt/nt,1,1,.5,Ft());return Et.spot2=new go.Spot(jt.x,jt.y),se(jt),Et}),go.Shape.setFigureParameter("Arrow2",0,new Cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=30),ct>nt&&(ct=nt);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var pt=nt-ct,vt=(et-lt)/2,xt=vt+lt,Et=new go.Geometry,Tt=new go.PathFigure(0,vt,!0);Et.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,vt)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Tt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,et)),Tt.add(new go.PathSegment(go.PathSegment.Line,pt,xt)),Tt.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),Et.spot1=new go.Spot(0,vt/et);var jt=we(0,xt/et,1,xt/et,pt/nt,1,1,.5,Ft());return Et.spot2=new go.Spot(jt.x,jt.y),se(jt),Et}),go.Shape.defineFigureGenerator("Chevron",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*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()),ct}),go.Shape.defineFigureGenerator("DoubleArrow",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*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()),ct}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*et,pt=(.5+ct/2)*et,vt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);vt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var Et=we(0,.5,.3,0,0,lt/et,.1,lt/et,Ft());return vt.spot1=new go.Spot(Et.x,Et.y),Et=we(.7,1,1,.5,0,pt/et,1,pt/et,Et),vt.spot2=new go.Spot(Et.x,Et.y),se(Et),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(et-ct)/2,vt=pt+ct,xt=(et-lt)/2,Et=xt+lt;(ct>et||lt>et)&&(lt>ct?(ct=ct*et/lt,pt=(et-ct)/2,vt=pt+ct,xt=0,Et=et):(pt=0,vt=et,xt=0,Et=et));var Tt=new go.Geometry,jt=new go.PathFigure(nt,.5*et,!0);Tt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Et)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,Et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,xt)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,pt)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,xt).close());var _t=we(0,.5,.3,xt/et,0,pt/et,1,pt/et,Ft());return Tt.spot1=new go.Spot(_t.x,_t.y),_t=we(.7,Et/et,1,.5,0,vt/et,1,vt/et,_t),Tt.spot2=new go.Spot(_t.x,_t.y),se(_t),Tt}),go.Shape.setFigureParameter("IBeamArrow",0,new Cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.3);var lt=(.5-ct/2)*et,pt=(.5+ct/2)*et,vt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);vt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,0,et)),xt.add(new go.PathSegment(go.PathSegment.Line,0,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(0,lt/et);var Et=we(.7,1,1,.5,0,pt/et,1,pt/et,Ft());return vt.spot2=new go.Spot(Et.x,Et.y),se(Et),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=40);var lt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(et-ct)/2,vt=pt+ct,xt=(et-lt)/2,Et=xt+lt;(ct>et||lt>et)&&(lt>ct?(ct=ct*et/lt,pt=(et-ct)/2,vt=pt+ct,xt=0,Et=et):(pt=0,vt=et,xt=0,Et=et));var Tt=new go.Geometry,jt=new go.PathFigure(nt,.5*et,!0);Tt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Et)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,vt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,Et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,Et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,xt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,xt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,pt)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,xt).close()),Tt.spot1=new go.Spot(0,pt/et);var _t=we(.7,Et/et,1,.5,0,vt/et,1,vt/et,Ft());return Tt.spot2=new go.Spot(_t.x,_t.y),se(_t),Tt}),go.Shape.setFigureParameter("Pointer",0,new Cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.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,ct*nt,.5*et)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ct,.35);var vt=we(.2,.65,1,.65,0,1,1,.5,Ft());return lt.spot2=new go.Spot(vt.x,vt.y),se(vt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.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,ct*nt,.75*et,ct*nt,.25*et).close()),lt.spot1=new go.Spot(ct,.35);var vt=we(0,.65,1,.65,0,1,1,.5,Ft());return lt.spot2=new go.Spot(vt.x,vt.y),se(vt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.4);var lt=(.5-ct/2)*et,pt=(.5+ct/2)*et,vt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);vt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(.2,.3);var Et=we(.7,1,1,.5,0,pt/et,1,pt/et,Ft());return vt.spot2=new go.Spot(Et.x,Et.y),se(Et),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=50);var lt=(et-ct)/2,pt=lt+ct;ct>et&&(lt=0,pt=et);var vt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);vt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),vt.spot1=new go.Spot(.2,lt/et);var Et=we(.7,1,1,.5,0,pt/et,1,pt/et,Ft());return vt.spot2=new go.Spot(Et.x,Et.y),se(Et),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.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,ct*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,ct*nt,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ct,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=ie*.1,vt=new go.PathFigure(0,.9*et,!0);return ct.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()),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.97),ct}),go.Shape.defineFigureGenerator("Cone2",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.9*et,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.82),ct}),go.Shape.defineFigureGenerator("Cube1",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,et,!0);ct.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 ct.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)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.5,.85),ct}),go.Shape.defineFigureGenerator("Cube2",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.3*et,!0);ct.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 ct.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)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(.7,1),ct}),go.Shape.defineFigureGenerator("Cylinder1",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,pt=ie*.5,vt=new go.PathFigure(0,ct,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ie*ct,(.5-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ct,(.5+pt)*nt,0,1*nt,ie*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-ie*ct,(.5+pt)*nt,1*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-pt)*nt,1*et,0,et-ie*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ct));var xt=new go.PathFigure(nt,ct,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ct,1*nt,2*ct-ie*ct,(.5+pt)*nt,2*ct)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,ct,(.5-pt)*nt,2*ct,0,2*ct-ie*ct)),lt.spot1=new go.Spot(0,0,0,2*ct),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,et/3);var lt=new go.Geometry,pt=ie*.5,vt=new go.PathFigure(0,et-ct,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,ie*ct,(.5-pt)*nt,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,(.5+pt)*nt,0,nt,ie*ct)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ct)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-ie*ct,(.5+pt)*nt,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ct,(.5-pt)*nt,et,0,et-ie*ct));var xt=new go.PathFigure(0,et-ct,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ct,0,et-ct-ie*ct,(.5-pt)*nt,et-2*ct)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ct,(.5+pt)*nt,et-2*ct,nt,et-ct-ie*ct)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ct),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,pt=ie*.5,vt=new go.PathFigure(ct,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ie*ct,0,nt,(.5-pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+pt)*et,nt-ie*ct,et)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ie*ct,et,0,(.5+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*et,ie*ct,0));var xt=new go.PathFigure(ct,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,2*ct,.5*et,ct+ie*ct,0,2*ct,(.5-pt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,ct,et,2*ct,(.5+pt)*et,ct+ie*ct,et)),lt.spot1=new go.Spot(0,0,2*ct,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=5),ct=Math.min(ct,nt/3);var lt=new go.Geometry,pt=ie*.5,vt=new go.PathFigure(nt-ct,0,!0);lt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-ie*ct,0,nt,(.5-pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt,(.5+pt)*et,nt-ie*ct,et)),vt.add(new go.PathSegment(go.PathSegment.Line,ct,et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,ie*ct,et,0,(.5+pt)*et)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,(.5-pt)*et,ie*ct,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0));var xt=new go.PathFigure(nt-ct,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ct,.5*et,nt-ct-ie*ct,0,nt-2*ct,(.5-pt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,et,nt-2*ct,(.5+pt)*et,nt-ct-ie*ct,et)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ct,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,.25*et,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.408,.172),ct.spot2=new go.Spot(.833,.662),ct}),go.Shape.defineFigureGenerator("Prism2",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*et,!0);ct.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 ct.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)),ct.spot1=new go.Spot(.25,.5),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("Pyramid1",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Pyramid2",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.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 ct.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)),ct.spot1=new go.Spot(.25,.367),ct.spot2=new go.Spot(.75,.875),ct}),go.Shape.defineFigureGenerator("Actor",function(Bt,nt,et){var ct=new go.Geometry,lt=.2,pt=.1,vt=ie*lt,xt=ie*pt,Et=.5,Tt=.1,jt=new go.PathFigure(Et*nt,(Tt+pt)*et,!0);ct.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-lt)*nt,Tt*et,(Et-vt)*nt,(Tt+pt)*et,(Et-lt)*nt,(Tt+xt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-pt)*et,(Et-lt)*nt,(Tt-xt)*et,(Et-vt)*nt,(Tt-pt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+lt)*nt,Tt*et,(Et+vt)*nt,(Tt-pt)*et,(Et+lt)*nt,(Tt-xt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt+pt)*et,(Et+lt)*nt,(Tt+xt)*et,(Et+vt)*nt,(Tt+pt)*et));var _t=.05,Jt=ie*_t;Et=.05,Tt=.25;var Ut=new go.PathFigure(.5*nt,.2*et,!0);return ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),Et=.95,Tt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et+_t)*nt,Tt*et,(Et+Jt)*nt,(Tt-_t)*et,(Et+_t)*nt,(Tt-Jt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),_t=.025,Jt=ie*_t,Et=.825,Tt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-_t)*et,(Et+_t)*nt,(Tt-Jt)*et,(Et+Jt)*nt,(Tt-_t)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et-_t)*nt,Tt*et,(Et-Jt)*nt,(Tt-_t)*et,(Et-_t)*nt,(Tt-Jt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),_t=.05,Jt=ie*_t,Et=.5,Tt=.7,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-_t)*et,(Et+_t)*nt,(Tt-Jt)*et,(Et+Jt)*nt,(Tt-_t)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et-_t)*nt,Tt*et,(Et-Jt)*nt,(Tt-_t)*et,(Et-_t)*nt,(Tt-Jt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),_t=.025,Jt=ie*_t,Et=.175,Tt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-_t)*et,(Et+_t)*nt,(Tt-Jt)*et,(Et+Jt)*nt,(Tt-_t)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et-_t)*nt,Tt*et,(Et-Jt)*nt,(Tt-_t)*et,(Et-_t)*nt,(Tt-Jt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),_t=.05,Jt=ie*_t,Et=.05,Tt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-_t)*et,(Et-_t)*nt,(Tt-Jt)*et,(Et-Jt)*nt,(Tt-_t)*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ct.spot1=new go.Spot(.2,.2),ct.spot2=new go.Spot(.8,.65),ct}),go.Shape.setFigureParameter("Card",0,new Cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;isNaN(ct)&&(ct=.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,ct*et)),pt.add(new go.PathSegment(go.PathSegment.Line,ct*nt,0).close()),lt.spot1=new go.Spot(0,ct),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,.5*et,!0);ct.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 ct.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)),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,.25),ct}),go.Shape.defineFigureGenerator("CreateRequest",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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 ct.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)),ct}),go.Shape.defineFigureGenerator("Database",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=ie*.1,vt=new go.PathFigure(nt,.1*et,!0);ct.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 xt=new go.PathFigure(nt,.1*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+lt)*nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+pt)*et)),xt.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+lt)*nt,.3*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+pt)*et)),xt.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+pt)*et,(.5+lt)*nt,.4*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-lt)*nt,.4*et,0,(.3+pt)*et)),ct.spot1=new go.Spot(0,.4),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("DataStorage",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*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()),ct.spot1=new go.Spot(.226,0),ct.spot2=new go.Spot(.81,1),ct}),go.Shape.defineFigureGenerator("DiskStorage",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=ie*.1,vt=new go.PathFigure(nt,.1*et,!0);ct.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 xt=new go.PathFigure(nt,.1*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+pt)*et,(.5+lt)*nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+pt)*et)),xt.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+pt)*et,(.5+lt)*nt,.3*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+pt)*et)),ct.spot1=new go.Spot(0,.3),ct.spot2=new go.Spot(1,.9),ct}),go.Shape.defineFigureGenerator("Display",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ct.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()),ct.spot1=new go.Spot(.25,0),ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("DividedEvent",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=ie*.2,vt=new go.PathFigure(0,.2*et,!0);ct.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 xt=new go.PathFigure(0,lt*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ct}),go.Shape.defineFigureGenerator("DividedProcess",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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 ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ct}),go.Shape.defineFigureGenerator("Document",function(Bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ct.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()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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 ct.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)),ct}),go.Shape.defineFigureGenerator("ExternalProcess",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.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 ct.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)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("File",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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 ct.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)),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Interrupt",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,.5*et,!0);ct.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);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var vt=new go.PathFigure(nt,.5*et,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("InternalStorage",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN,pt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var vt=new go.PathFigure(0,0,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),vt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var xt=new go.PathFigure(lt*nt,0,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Move,0,pt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et)),ct}),go.Shape.defineFigureGenerator("Junction",function(Bt,nt,et){var ct=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,vt=ie*.5,xt=.5,Et=new go.PathFigure(nt,xt*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,et,nt,(xt+vt)*et,(xt+vt)*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,xt*et,(xt-vt)*nt,et,0,(xt+vt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,0,0,(xt-vt)*et,(xt-vt)*nt,0)),Et.add(new go.PathSegment(go.PathSegment.Bezier,nt,xt*et,(xt+vt)*nt,0,nt,(xt-vt)*et));var Tt=new go.PathFigure((pt+lt)*nt,(pt+lt)*et,!1);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,pt*nt,pt*et)),Tt.add(new go.PathSegment(go.PathSegment.Move,pt*nt,(pt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*nt,pt*et)),ct}),go.Shape.defineFigureGenerator("LinedDocument",function(Bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),ct.spot1=new go.Spot(.1,0),ct.spot2=new go.Spot(1,.6),ct}),go.Shape.defineFigureGenerator("LoopLimit",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.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()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MagneticTape",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=.5,vt=new go.PathFigure(.5*nt,et,!0);return ct.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)),ct.spot1=new go.Spot(.15,.15),ct.spot2=new go.Spot(.85,.8),ct}),go.Shape.defineFigureGenerator("ManualInput",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ct.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()),ct.spot1=new go.Spot(0,.25),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("MessageFromUser",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*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()),ct}),go.Shape.defineFigureGenerator("MicroformRecording",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*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()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("MultiDocument",function(Bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(nt,0,!0);ct.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 ct.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)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.8,.77),ct}),go.Shape.defineFigureGenerator("MultiProcess",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,.1*et,!0);ct.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 ct.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)),ct.spot1=new go.Spot(0,.2),ct.spot2=new go.Spot(.8,1),ct}),go.Shape.defineFigureGenerator("OfflineStorage",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,vt=new go.PathFigure(0,0,!0);ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var xt=new go.PathFigure(.5*lt*nt,lt*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),ct}),go.Shape.defineFigureGenerator("OffPageConnector",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*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()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.75,1),ct}),go.Shape.defineFigureGenerator("Or",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=.5,vt=new go.PathFigure(nt,pt*et,!0);ct.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 xt=new go.PathFigure(nt,.5*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ct}),go.Shape.defineFigureGenerator("PaperTape",function(Bt,nt,et){var ct=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ct.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()),ct.spot1=new go.Spot(0,.49),ct.spot2=new go.Spot(1,.75),ct}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN,pt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,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()),ct}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN,pt=Bt?Bt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var vt=new go.PathFigure(0,0,!0);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*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()),ct}),go.Shape.defineFigureGenerator("Procedure",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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 ct.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)),ct}),go.Shape.defineFigureGenerator("Process",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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 ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ct.spot2=go.Spot.BottomRight,ct}),go.Shape.defineFigureGenerator("Sort",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ct.spot1=new go.Spot(.25,.25),ct.spot2=new go.Spot(.75,.5),ct}),go.Shape.defineFigureGenerator("Start",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*nt,0,!0);ct.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 ct.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)),ct.spot1=new go.Spot(lt,0),ct.spot2=new go.Spot(1-lt,1),ct}),go.Shape.defineFigureGenerator("Terminator",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ct.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)),ct.spot1=new go.Spot(.23,0),ct.spot2=new go.Spot(.77,1),ct}),go.Shape.defineFigureGenerator("TransmittalTape",function(Bt,nt,et){var ct=new go.Geometry,lt=Bt?Bt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,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()),ct.spot1=go.Spot.TopLeft,ct}),go.Shape.defineFigureGenerator("AndGate",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=new go.PathFigure(0,0,!0);return ct.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()),ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(.55,1),ct}),go.Shape.defineFigureGenerator("Buffer",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Clock",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=.5,vt=new go.PathFigure(nt,pt*et,!0);ct.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 xt=new go.PathFigure(nt,pt*et,!1);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,pt*et));var Et=new go.PathFigure(.8*nt,.75*et,!1);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),Et.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ct}),go.Shape.defineFigureGenerator("Ground",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Inverter",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.1,pt=.1,vt=.9,xt=.5,Et=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,0,et)),Et.add(new go.PathSegment(go.PathSegment.Line,0,0)),Et.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var Tt=new go.PathFigure((vt+pt)*nt,xt*et,!0);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,(vt+lt)*nt,(xt-pt)*et,(vt+pt)*nt,(xt-lt)*et)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.4,.75),ct}),go.Shape.defineFigureGenerator("NandGate",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=ie*.4,vt=ie*.1,xt=.1,Et=.9,Tt=.5,jt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+pt)*et,(.4+lt)*nt,et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,et)),jt.add(new go.PathSegment(go.PathSegment.Line,0,0)),jt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(.4+lt)*nt,0,.8*nt,(.5-pt)*et));var _t=new go.PathFigure((Et+xt)*nt,Tt*et,!0);return ct.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt+xt)*et,(Et+xt)*nt,(Tt+vt)*et,(Et+vt)*nt,(Tt+xt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt)*nt,Tt*et,(Et-vt)*nt,(Tt+xt)*et,(Et-xt)*nt,(Tt+vt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-xt)*et,(Et-xt)*nt,(Tt-vt)*et,(Et-vt)*nt,(Tt-xt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt)*nt,Tt*et,(Et+vt)*nt,(Tt-xt)*et,(Et+xt)*nt,(Tt-vt)*et)),ct.spot1=new go.Spot(0,.05),ct.spot2=new go.Spot(.55,.95),ct}),go.Shape.defineFigureGenerator("NorGate",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*lt,vt=0,xt=.5,Et=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(vt+pt)*nt,(xt-lt)*et,.7*nt,(xt-pt)*et)),lt=.1,pt=ie*.1,vt=.9,xt=.5;var Tt=new go.PathFigure((vt-lt)*nt,xt*et,!0);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et)),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.6,.75),ct}),go.Shape.defineFigureGenerator("OrGate",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*lt,vt=0,xt=.5,Et=new go.PathFigure(0,0,!0);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(vt+pt+pt)*nt,(xt-lt)*et,.8*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(xt+pt)*et,(vt+pt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),ct.spot1=new go.Spot(.2,.25),ct.spot2=new go.Spot(.75,.75),ct}),go.Shape.defineFigureGenerator("XnorGate",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*lt,vt=.2,xt=.5,Et=new go.PathFigure(.1*nt,0,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var Tt=new go.PathFigure(.8*nt,.5*et,!0);ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(vt+pt)*nt,(xt-lt)*et,.7*nt,(xt-pt)*et)),lt=.1,pt=ie*.1,vt=.9,xt=.5;var jt=new go.PathFigure((vt-lt)*nt,xt*et,!0);return ct.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et)),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.65,.75),ct}),go.Shape.defineFigureGenerator("XorGate",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*lt,vt=.2,xt=.5,Et=new go.PathFigure(.1*nt,0,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var Tt=new go.PathFigure(.2*nt,0,!0);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(vt+pt)*nt,(xt-lt)*et,.9*nt,(xt-pt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),ct.spot1=new go.Spot(.4,.25),ct.spot2=new go.Spot(.8,.75),ct}),go.Shape.defineFigureGenerator("Capacitor",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ct}),go.Shape.defineFigureGenerator("Resistor",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Inductor",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.1,pt=.1,vt=.1,xt=.5,Et=new go.PathFigure((vt-lt*.5)*nt,et,!1);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.3,Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.5,Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.7,Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,0,(vt-lt)*nt,et,(vt-pt)*nt,0)),vt=.9,Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt*.5)*nt,et,(vt+pt)*nt,0,(vt+lt)*nt,et)),ct}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.5,pt=.5,vt=.5,xt=.5,Et=new go.PathFigure((vt-pt)*nt,xt*et,!1);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,(vt+lt)*nt,(xt-pt)*et,(vt+pt)*nt,(xt-lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Move,(vt-pt+.1)*nt,xt*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt-.1)*nt,xt*et,vt*nt,(xt-pt)*et,vt*nt,(xt+pt)*et)),ct}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Diode",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!1);return ct.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)),ct.spot1=new go.Spot(0,.25),ct.spot2=new go.Spot(.5,.75),ct}),go.Shape.defineFigureGenerator("Wifi",function(Bt,nt,et){var ct=new go.Geometry,lt=nt,pt=et;nt=nt*.38,et=et*.6;var vt=ie*.8,xt=.8,Et=0,Tt=.5,jt=(lt-nt)/2,_t=(pt-et)/2,Jt=new go.PathFigure(Et*nt+jt,(Tt+xt)*et+_t,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt)*nt+jt,Tt*et+_t,(Et-vt)*nt+jt,(Tt+xt)*et+_t,(Et-xt)*nt+jt,(Tt+vt)*et+_t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt-xt)*et+_t,(Et-xt)*nt+jt,(Tt-vt)*et+_t,(Et-vt)*nt+jt,(Tt-xt)*et+_t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt+vt*.5)*nt+jt,Tt*et+_t,Et*nt+jt,(Tt-xt)*et+_t,(Et-xt+vt*.5)*nt+jt,(Tt-vt)*et+_t)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt+xt)*et+_t,(Et-xt+vt*.5)*nt+jt,(Tt+vt)*et+_t,Et*nt+jt,(Tt+xt)*et+_t).close()),vt=ie*.4,xt=.4,Et=.2,Tt=.5;var Ut=new go.PathFigure(Et*nt+jt,(Tt+xt)*et+_t,!0);ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt)*nt+jt,Tt*et+_t,(Et-vt)*nt+jt,(Tt+xt)*et+_t,(Et-xt)*nt+jt,(Tt+vt)*et+_t)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt-xt)*et+_t,(Et-xt)*nt+jt,(Tt-vt)*et+_t,(Et-vt)*nt+jt,(Tt-xt)*et+_t)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt+vt*.5)*nt+jt,Tt*et+_t,Et*nt+jt,(Tt-xt)*et+_t,(Et-xt+vt*.5)*nt+jt,(Tt-vt)*et+_t)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt+xt)*et+_t,(Et-xt+vt*.5)*nt+jt,(Tt+vt)*et+_t,Et*nt+jt,(Tt+xt)*et+_t).close()),vt=ie*.2,xt=.2,Et=.5,Tt=.5;var fe=new go.PathFigure((Et-xt)*nt+jt,Tt*et+_t,!0);ct.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt-xt)*et+_t,(Et-xt)*nt+jt,(Tt-vt)*et+_t,(Et-vt)*nt+jt,(Tt-xt)*et+_t)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt)*nt+jt,Tt*et+_t,(Et+vt)*nt+jt,(Tt-xt)*et+_t,(Et+xt)*nt+jt,(Tt-vt)*et+_t)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt+xt)*et+_t,(Et+xt)*nt+jt,(Tt+vt)*et+_t,(Et+vt)*nt+jt,(Tt+xt)*et+_t)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Et-xt)*nt+jt,Tt*et+_t,(Et-vt)*nt+jt,(Tt+xt)*et+_t,(Et-xt)*nt+jt,(Tt+vt)*et+_t)),vt=ie*.4,xt=.4,Et=.8,Tt=.5;var ne=new go.PathFigure(Et*nt+jt,(Tt-xt)*et+_t,!0);ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt)*nt+jt,Tt*et+_t,(Et+vt)*nt+jt,(Tt-xt)*et+_t,(Et+xt)*nt+jt,(Tt-vt)*et+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt+xt)*et+_t,(Et+xt)*nt+jt,(Tt+vt)*et+_t,(Et+vt)*nt+jt,(Tt+xt)*et+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt-vt*.5)*nt+jt,Tt*et+_t,Et*nt+jt,(Tt+xt)*et+_t,(Et+xt-vt*.5)*nt+jt,(Tt+vt)*et+_t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt-xt)*et+_t,(Et+xt-vt*.5)*nt+jt,(Tt-vt)*et+_t,Et*nt+jt,(Tt-xt)*et+_t).close()),vt=ie*.8,xt=.8,Et=1,Tt=.5;var Ne=new go.PathFigure(Et*nt+jt,(Tt-xt)*et+_t,!0);return ct.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt)*nt+jt,Tt*et+_t,(Et+vt)*nt+jt,(Tt-xt)*et+_t,(Et+xt)*nt+jt,(Tt-vt)*et+_t)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt+xt)*et+_t,(Et+xt)*nt+jt,(Tt+vt)*et+_t,(Et+vt)*nt+jt,(Tt+xt)*et+_t)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Et+xt-vt*.5)*nt+jt,Tt*et+_t,Et*nt+jt,(Tt+xt)*et+_t,(Et+xt-vt*.5)*nt+jt,(Tt+vt)*et+_t)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt+jt,(Tt-xt)*et+_t,(Et+xt-vt*.5)*nt+jt,(Tt-vt)*et+_t,Et*nt+jt,(Tt-xt)*et+_t).close()),ct}),go.Shape.defineFigureGenerator("Email",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("Ethernet",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.35*nt,0,!0);ct.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);ct.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);ct.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 xt=new go.PathFigure(0,.5*et,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),xt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),xt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Power",function(Bt,nt,et){var ct=new go.Geometry,lt=ie*.4,pt=.4,vt=.5,xt=.5,Et=Ft(),Tt=Ft(),jt=Ft(),_t=Ft();Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.5,Et,Et,Tt,jt,_t);var Jt=Nt(Tt.x,Tt.y),Ut=new go.PathFigure(Tt.x*nt,Tt.y*et,!0);ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,jt.x*nt,jt.y*et,_t.x*nt,_t.y*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,(vt-lt)*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et)),Ie(vt-pt,xt,vt-pt,xt-lt,vt-lt,xt-pt,vt,xt-pt,.5,jt,_t,Tt,Et,Et),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*nt,Tt.y*et,jt.x*nt,jt.y*et,_t.x*nt,_t.y*et)),lt=ie*.3,pt=.3,Ie(vt-pt,xt,vt-pt,xt-lt,vt-lt,xt-pt,vt,xt-pt,.5,jt,_t,Tt,Et,Et),Ut.add(new go.PathSegment(go.PathSegment.Line,Tt.x*nt,Tt.y*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-pt)*nt,xt*et,_t.x*nt,_t.y*et,jt.x*nt,jt.y*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+pt)*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+pt)*nt,xt*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Ie(vt,xt-pt,vt+lt,xt-pt,vt+pt,xt-lt,vt+pt,xt,.5,Et,Et,Tt,jt,_t),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Tt.x*nt,Tt.y*et,_t.x*nt,_t.y*et,jt.x*nt,jt.y*et).close());var Ut=new go.PathFigure(.45*nt,0,!0);return ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),se(Et),se(Tt),se(jt),se(_t),se(Jt),ct.spot1=new go.Spot(.25,.45),ct.spot2=new go.Spot(.75,.8),ct}),go.Shape.defineFigureGenerator("Fallout",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et/2,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function pt(vt,xt,Et){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+xt)*nt,(.8+Et)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+xt)*nt,(.5+Et)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+xt)*nt,(.5+Et)*et)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+xt)*nt,(.8+Et)*et).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),ct}),go.Shape.defineFigureGenerator("IrritationHazard",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!0);return ct.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()),ct.spot1=new go.Spot(.3,.3),ct.spot2=new go.Spot(.7,.7),ct}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.37*nt,0,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("FireHazard",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,et,!0);return ct.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()),ct.spot1=new go.Spot(.07,.445),ct.spot2=new go.Spot(.884,.958),ct}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=0,vt=0,xt=lt*ie,Et=.4*Math.SQRT2/2+.5,Tt=.5-.5*Math.SQRT2/2,jt=1,_t=.5,Jt=.5,Ut=0,fe=new go.PathFigure(Et*nt,(1-Tt)*et,!1);return ct.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,jt*nt,_t*et,jt*nt,.7*et,jt*nt,_t*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+pt)*nt,(Ut+pt)*et,(.5+lt+pt)*nt,(.5-xt+pt)*et,(.5+xt+pt)*nt,(.5-lt+pt)*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*nt,(.5+vt)*et,(.5-xt+pt)*nt,(.5-lt+vt)*et,(.5-lt+pt)*nt,(.5-xt+vt)*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*nt,.9*et,(.5-lt+pt)*nt,(.5+xt+vt)*et,(.5-xt+pt)*nt,.9*et)),fe.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*nt,.8*et)),fe.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*nt,.9*et)),fe.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*nt,.95*et)),ct}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,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)),ct}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(nt,et,!1);ct.add(pt);var vt=new go.PathFigure(0,.5*et,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.7*nt,et,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(.335*nt,(1-.555)*et,!0);ct.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,xt=.5,Et=vt,Tt=Math.PI/4,jt=4*(1-Math.cos(Tt))/(3*Math.sin(Tt)),_t=jt*.5,Jt=vt,Ut=vt,fe=jt*Jt,ne=jt*Ut;pt.add(new go.PathSegment(go.PathSegment.Bezier,(xt-Jt)*nt,Et*et,(xt-(fe+Jt)/2)*nt,(Et+(Ut+ne)/2)*et,(xt-Jt)*nt,(Et+ne)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,(Et-Ut)*et,(xt-Jt)*nt,(Et-ne)*et,(xt-fe)*nt,(Et-Ut)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(xt+Jt)*nt,Et*et,(xt+fe)*nt,(Et-Ut)*et,(xt+Jt)*nt,(Et-ne)*et)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(xt+Jt)*nt,(Et+ne)*et,(xt+(fe+Jt)/2)*nt,(Et+(Ut+ne)/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 Ne=new go.PathFigure(.2*nt,et,!1);ct.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var Ge=new go.PathFigure(.8*nt,et,!1);return ct.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ct}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,0,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnEventError",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt);var pt=new go.PathFigure(nt,et,!1);ct.add(pt);var vt=new go.PathFigure(.1*nt,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Caution",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.05*nt,et,!0);ct.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)),ct}),go.Shape.defineFigureGenerator("Recycle",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.45*nt,.95*et,!1);ct.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);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*.5,vt=new go.PathFigure(nt,lt*et,!0);ct.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 xt=new go.PathFigure(lt*nt,0,!1);return ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.15*et)),xt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.85*et)),xt.add(new go.PathSegment(go.PathSegment.Move,0,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),xt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),ct}),go.Shape.defineFigureGenerator("Package",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.15*et,!0);ct.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 ct.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()),ct.spot1=new go.Spot(0,.1),ct.spot2=new go.Spot(1,1),ct}),go.Shape.defineFigureGenerator("Class",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var vt=new go.PathFigure(0,.5*et,!1);return ct.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),ct}),go.Shape.defineFigureGenerator("Component",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,et,!0);ct.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);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("Boat Shipment",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.15*nt,.6*et,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ct}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Workcell",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Supermarket",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("TruckShipment",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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);ct.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,xt=ie*.1,Et=.2,Tt=.9,jt=new go.PathFigure((Et-vt)*nt,Tt*et,!0);ct.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-vt)*et,(Et-vt)*nt,(Tt-xt)*et,(Et-xt)*nt,(Tt-vt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+vt)*nt,Tt*et,(Et+xt)*nt,(Tt-vt)*et,(Et+vt)*nt,(Tt-xt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt+vt)*et,(Et+vt)*nt,(Tt+xt)*et,(Et+xt)*nt,(Tt+vt)*et)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-vt)*nt,Tt*et,(Et-xt)*nt,(Tt+vt)*et,(Et-vt)*nt,(Tt+xt)*et).close()),vt=.1,xt=ie*.1,Et=.8,Tt=.9;var _t=new go.PathFigure((Et-vt)*nt,Tt*et,!0);return ct.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt-vt)*et,(Et-vt)*nt,(Tt-xt)*et,(Et-xt)*nt,(Tt-vt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et+vt)*nt,Tt*et,(Et+xt)*nt,(Tt-vt)*et,(Et+vt)*nt,(Tt-xt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et*nt,(Tt+vt)*et,(Et+vt)*nt,(Tt+xt)*et,(Et+xt)*nt,(Tt+vt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Et-vt)*nt,Tt*et,(Et-xt)*nt,(Tt+vt)*et,(Et-vt)*nt,(Tt+xt)*et).close()),ct}),go.Shape.defineFigureGenerator("KanbanPost",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Forklift",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*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);ct.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);ct.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 xt=new go.PathFigure(.5*nt,.7*et,!1);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var Et=.1,Tt=ie*.1,jt=.1,_t=.9,Jt=new go.PathFigure((jt-Et)*nt,_t*et,!0);ct.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,jt*nt,(_t-Et)*et,(jt-Et)*nt,(_t-Tt)*et,(jt-Tt)*nt,(_t-Et)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Et)*nt,_t*et,(jt+Tt)*nt,(_t-Et)*et,(jt+Et)*nt,(_t-Tt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,jt*nt,(_t+Et)*et,(jt+Et)*nt,(_t+Tt)*et,(jt+Tt)*nt,(_t+Et)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Et)*nt,_t*et,(jt-Tt)*nt,(_t+Et)*et,(jt-Et)*nt,(_t+Tt)*et)),Et=.1,Tt=ie*.1,jt=.4,_t=.9;var Ut=new go.PathFigure((jt-Et)*nt,_t*et,!0);return ct.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,jt*nt,(_t-Et)*et,(jt-Et)*nt,(_t-Tt)*et,(jt-Tt)*nt,(_t-Et)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(jt+Et)*nt,_t*et,(jt+Tt)*nt,(_t-Et)*et,(jt+Et)*nt,(_t-Tt)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,jt*nt,(_t+Et)*et,(jt+Et)*nt,(_t+Tt)*et,(jt+Tt)*nt,(_t+Et)*et)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(jt-Et)*nt,_t*et,(jt-Tt)*nt,(_t+Et)*et,(jt-Et)*nt,(_t+Tt)*et)),ct}),go.Shape.defineFigureGenerator("RailShipment",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.1*nt,.4*et,!0);ct.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);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var vt=new go.PathFigure(.55*nt,.4*et,!0);ct.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 jt=.05,_t=ie*.05,Jt=.175,Ut=.95,xt=new go.PathFigure((Jt-jt)*nt,Ut*et,!0);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut-jt)*et,(Jt-jt)*nt,(Ut-_t)*et,(Jt-_t)*nt,(Ut-jt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+jt)*nt,Ut*et,(Jt+_t)*nt,(Ut-jt)*et,(Jt+jt)*nt,(Ut-_t)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut+jt)*et,(Jt+jt)*nt,(Ut+_t)*et,(Jt+_t)*nt,(Ut+jt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-jt)*nt,Ut*et,(Jt-_t)*nt,(Ut+jt)*et,(Jt-jt)*nt,(Ut+_t)*et));var jt=.05,_t=ie*.05,Jt=.375,Ut=.95,Et=new go.PathFigure((Jt-jt)*nt,Ut*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut-jt)*et,(Jt-jt)*nt,(Ut-_t)*et,(Jt-_t)*nt,(Ut-jt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+jt)*nt,Ut*et,(Jt+_t)*nt,(Ut-jt)*et,(Jt+jt)*nt,(Ut-_t)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut+jt)*et,(Jt+jt)*nt,(Ut+_t)*et,(Jt+_t)*nt,(Ut+jt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-jt)*nt,Ut*et,(Jt-_t)*nt,(Ut+jt)*et,(Jt-jt)*nt,(Ut+_t)*et));var jt=.05,_t=ie*.05,Jt=.625,Ut=.95,Tt=new go.PathFigure((Jt-jt)*nt,Ut*et,!0);ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut-jt)*et,(Jt-jt)*nt,(Ut-_t)*et,(Jt-_t)*nt,(Ut-jt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+jt)*nt,Ut*et,(Jt+_t)*nt,(Ut-jt)*et,(Jt+jt)*nt,(Ut-_t)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut+jt)*et,(Jt+jt)*nt,(Ut+_t)*et,(Jt+_t)*nt,(Ut+jt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-jt)*nt,Ut*et,(Jt-_t)*nt,(Ut+jt)*et,(Jt-jt)*nt,(Ut+_t)*et));var jt=.05,_t=ie*.05,Jt=.825,Ut=.95,fe=new go.PathFigure((Jt-jt)*nt,Ut*et,!0);ct.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut-jt)*et,(Jt-jt)*nt,(Ut-_t)*et,(Jt-_t)*nt,(Ut-jt)*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+jt)*nt,Ut*et,(Jt+_t)*nt,(Ut-jt)*et,(Jt+jt)*nt,(Ut-_t)*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(Ut+jt)*et,(Jt+jt)*nt,(Ut+_t)*et,(Jt+_t)*nt,(Ut+jt)*et)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-jt)*nt,Ut*et,(Jt-_t)*nt,(Ut+jt)*et,(Jt-jt)*nt,(Ut+_t)*et).close());var ne=new go.PathFigure(0,et,!1);return ct.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ct}),go.Shape.defineFigureGenerator("Warehouse",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var vt=new go.PathFigure(.15*nt,et,!0);ct.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 xt=.05,Et=ie*.05,Tt=.35,jt=.775,_t=new go.PathFigure((Tt-xt)*nt,jt*et,!0);return ct.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Tt*nt,(jt-xt)*et,(Tt-xt)*nt,(jt-Et)*et,(Tt-Et)*nt,(jt-xt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Tt+xt)*nt,jt*et,(Tt+Et)*nt,(jt-xt)*et,(Tt+xt)*nt,(jt-Et)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Tt*nt,(jt+xt)*et,(Tt+xt)*nt,(jt+Et)*et,(Tt+Et)*nt,(jt+xt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Tt-xt)*nt,jt*et,(Tt-Et)*nt,(jt+xt)*et,(Tt-xt)*nt,(jt+Et)*et).close()),ct}),go.Shape.defineFigureGenerator("ControlCenter",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Bluetooth",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,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)),ct}),go.Shape.defineFigureGenerator("Bookmark",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,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)),ct}),go.Shape.defineFigureGenerator("Globe",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Wave",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.25*et,!1);return ct.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)),ct}),go.Shape.defineFigureGenerator("Operator",function(Bt,nt,et){var ct=new go.Geometry,lt=.3,pt=ie*.3,vt=.5,xt=.7,Et=new go.PathFigure((vt-lt)*nt,xt*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et));var Tt=new go.PathFigure(0,.7*et,!1);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),ct}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);return ct.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)),ct}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ct.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)),ct}),go.Shape.defineFigureGenerator("Battery",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);ct.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 ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),pt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ct}),go.Shape.defineFigureGenerator("Delete",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*.5,vt=.5,xt=.5,Et=new go.PathFigure((vt-lt)*nt,xt*et,!0);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et));var Tt=new go.PathFigure(.15*nt,.5*et,!1);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),ct}),go.Shape.defineFigureGenerator("Flag",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.1*et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Help",function(Bt,nt,et){var ct=new go.Geometry,lt=.5,pt=ie*.5,vt=.5,xt=.5,Et=new go.PathFigure((vt-lt)*nt,xt*et,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et).close()),lt=.05,pt=ie*.05,vt=.5,xt=.8;var Tt=new go.PathFigure((vt-lt)*nt,xt*et,!1);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt-lt)*et,(vt-lt)*nt,(xt-pt)*et,(vt-pt)*nt,(xt-lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+lt)*nt,xt*et,(vt+pt)*nt,(xt-lt)*et,(vt+lt)*nt,(xt-pt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,vt*nt,(xt+lt)*et,(vt+lt)*nt,(xt+pt)*et,(vt+pt)*nt,(xt+lt)*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-lt)*nt,xt*et,(vt-pt)*nt,(xt+lt)*et,(vt-lt)*nt,(xt+pt)*et).close()),Tt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),Tt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),Tt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),ct}),go.Shape.defineFigureGenerator("Location",function(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("Unlocked",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ct.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 ct.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)),ct}),go.Shape.defineFigureGenerator("Gear",function(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Map",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);return ct.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)),ct}),go.Shape.defineFigureGenerator("Eject",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et,!0);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("Pencil",function(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*1,et*1,!1);ct.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);ct.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);ct.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 xt=new go.PathFigure(.678*nt,.85*et,!1);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var Et=new go.PathFigure(.5*nt,.1*et,!1);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),Et.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ct}),go.Shape.defineFigureGenerator("Staircase",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("5Bars",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);ct.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);ct.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);ct.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 xt=new go.PathFigure(nt*.612,et,!0);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var Et=new go.PathFigure(nt*.816,et,!0);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),Et.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),Et.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ct}),go.Shape.defineFigureGenerator("PC",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!0);ct.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);ct.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);ct.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 xt=new go.PathFigure(nt*.055,.18*et,!0);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var Et=new go.PathFigure(nt*1,0,!0);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ct}),go.Shape.defineFigureGenerator("Plane",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(.55*nt,et,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Key",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*1,et*.5,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("FilmTape",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(0,0,!1);ct.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,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);ct.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);ct.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 xt=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var Et=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ct}),go.Shape.defineFigureGenerator("FloppyDisk",function(Bt,nt,et){var ct=new go.Geometry,lt=8,pt=lt*ie,vt=new go.PathFigure(lt,0,!1);ct.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 xt=new go.PathFigure(nt*.83,0,!1);ct.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var Et=new go.PathFigure(nt*.83,et*1,!1);ct.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),Et.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var Tt=new go.PathFigure(nt*.78,et*.05,!1);return ct.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),Tt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),Tt.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),ct}),go.Shape.defineFigureGenerator("SpeechBubble",function(Bt,nt,et){var ct=Bt?Bt.parameter1:NaN;(isNaN(ct)||ct<0)&&(ct=15),ct=Math.min(ct,nt/3),ct=Math.min(ct,et/3);var lt=ct*ie,pt=et*.8,vt=new go.Geometry,xt=new go.PathFigure(ct,0,!0);return vt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt-ct,0)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ct,nt-lt,0,nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt,pt-ct)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ct,pt,nt,pt-lt,nt-lt,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,pt)),xt.add(new go.PathSegment(go.PathSegment.Line,ct,pt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-ct,lt,pt,0,pt-lt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ct)),xt.add(new go.PathSegment(go.PathSegment.Bezier,ct,0,0,lt,lt,0).close()),lt>1?(vt.spot1=new go.Spot(0,0,lt,lt),vt.spot2=new go.Spot(1,.8,-lt,-lt)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*.45,!0);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("Windows",function(Bt,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(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*.1,!1);ct.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);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("Beaker",function(Bt,nt,et){var ct=new go.Geometry,lt=15,pt=lt*ie,vt=new go.PathFigure(nt*.62,et*.475,!0);return ct.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?(ct.spot1=new go.Spot(0,0,pt,pt),ct.spot2=new go.Spot(1,1,-pt,-pt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=go.Spot.BottomRight),ct}),go.Shape.defineFigureGenerator("Download",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("Bin",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.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()),ct}),go.Shape.defineFigureGenerator("Upload",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("EmptyDrink",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);return ct.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()),ct}),go.Shape.defineFigureGenerator("Drink",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);ct.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 ct.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()),ct}),go.Shape.defineFigureGenerator("4Arrows",function(Bt,nt,et){var ct=new go.Geometry,lt=new go.PathFigure(nt*.5,et*0,!0);return ct.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()),ct}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Cn={},_n="5.0",Nt={},Ft=null,se=!1,we=!1,Ie=null,ge=!1,zt=null,ie=null,Re=0;Re<arguments.length;Re++){var he=arguments[Re];if(he!==null)switch(typeof he){case"number":_n=he.toFixed(1);break;case"string":he.match(new RegExp("^[0-9]\\.[0-9]+$"))?_n=he:Ie=he;break;case"object":typeof he.is3D!="undefined"?Ft=he:Nt=he;break;case"boolean":se=he,we=!0;break}}Ft===null&&(Ft={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Nt.material_id!==void 0&&!we&&(se=!0)),Ie!==null&&Nt.id===void 0&&(Nt.id=Ie);var Vt="",qe="",te=!1,He=null,Bt=null,nt=null,et=!1,ct=null,lt=null,pt=null,vt=null,xt=null;Nt.height!==void 0&&(Nt.height=Math.round(Nt.height)),Nt.width!==void 0&&(Nt.width=Math.round(Nt.width));var Et=function(Ae){return parseFloat(Ae)>4?parseFloat(Ae):5};Cn.setHTML5Codebase=function(Ae,Qe){ie=Ae,Oe(Ae,Qe)},Cn.setJavaCodebase=Cn.setJavaCodebaseVersion=Cn.isCompiledInstalled=Cn.setPreCompiledScriptPath=Cn.setPreCompiledResourcePath=function(){},Cn.setHTML5CodebaseVersion=function(Ae,Qe){var ln=parseFloat(Ae);if(ln!==NaN&&ln<5){console.log("The GeoGebra HTML5 codebase version "+ln+" is deprecated. Using version latest instead.");return}zt=Ae,Kt(Ae,Qe)},Cn.getHTML5CodebaseVersion=function(){return Bt},Cn.getParameters=function(){return Nt},Cn.setFontsCSSURL=function(Ae){vt=Ae},Cn.setGiacJSURL=function(Ae){},Cn.setJNLPFile=function(Ae){Vt=Ae},Cn.setJNLPBaseDir=function(Ae){},Cn.inject=function(){function Ae(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",ln=Nt.id,Vn,Le=!1,cn=0;cn<arguments.length;cn++){var le=arguments[cn];typeof le=="string"?(le=le.toLowerCase(),le.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Qe=le:ln=arguments[cn]):typeof le=="boolean"?Le=le:le instanceof HTMLElement&&(Vn=le)}bn();function bn(){if(!ge){setTimeout(bn,200);return}Qe=sn(Qe);var hi=Vn||document.getElementById(ln);if(!hi){console.log("possibly bug on ajax loading? ");return}if(Cn.removeExistingApplet(hi,!1),Nt.width===void 0&&hi.clientWidth&&(Nt.width=hi.clientWidth),Nt.height===void 0&&hi.clientHeight&&(Nt.height=hi.clientHeight),!(Nt.width&&Nt.height)&&Qe==="html5"&&(delete Nt.width,delete Nt.height),He=Qe,Qe==="screenshot")Ge(hi,Nt);else{var Ot=!1;Nt.hasOwnProperty("playButton")&&Nt.playButton||Nt.hasOwnProperty("clickToLoad")&&Nt.clickToLoad?Ot=!0:Nt.hasOwnProperty("playButtonAutoDecide")&&Nt.playButtonAutoDecide&&(Ot=(!Tt()||Ae())&&jt()),Ot?(He="screenshot",Ln(hi,Nt,Le,Qe)):Ne(hi,Nt,Le)}}};function Tt(){try{return window.self!==window.top}catch(Ae){return!0}}function jt(){return Nt.hasOwnProperty("screenshotGenerator")&&Nt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Cn.getViews=function(){return Ft},Cn.isJavaInstalled=function(){return!1};var _t=function(Ae){var Qe=function(cn){var le=JSON.parse(cn),bn=function(Pt){return Pt.type=="G"||Pt.type=="E"},hi=le.elements?le.elements.filter(bn)[0]:le;if(!hi||!hi.url){ln();return}Nt.fileName=hi.url,Jt(hi.settings||{}),Ft.is3D=!0;var Ot="https://www.geogebra.org/images/";Cn.setPreviewImage(ct||hi.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),Ae()},ln=function(){Nt.onError&&Nt.onError(),pn("Error: Fetching material (id "+Nt.material_id+") failed.",Nt)},Vn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Le="/materials/"+Nt.material_id+"?scope=basic";Ut("https://"+Vn+"/api/proxy.php?path="+encodeURIComponent(Le),Qe,ln)};function Jt(Ae){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ln){Ae[ln]=!!Ae[ln]}),Qe.forEach(function(ln){Nt[ln]===void 0&&Ae[ln]!==void 0&&(Nt[ln]=Ae[ln])}),Nt.showToolBarHelp===void 0&&(Nt.showToolBarHelp=Nt.showToolBar)}function Ut(Ae,Qe,ln){var Vn=new XMLHttpRequest;Vn.open("GET",Ae),Vn.onload=function(){Qe(Vn.responseText)},Vn.onerror=ln,Vn.send()}Cn.isHTML5Installed=function(){return!0},Cn.getLoadedAppletType=function(){return He},Cn.setPreviewImage=function(Ae,Qe,ln){ct=Ae,lt=Qe,pt=ln},Cn.removeExistingApplet=function(Ae,Qe){var ln;typeof Ae=="string"&&(Ae=document.getElementById(Ae)),He=null;var Vn=null;for(ln=0;ln<Ae.childNodes.length;ln++){var Le=Ae.childNodes[ln],cn=Le.className;cn==="applet_screenshot"?Qe?(Le.style.display="block",He="screenshot"):Le.style.display="none":cn!=="applet_scaler prerender"&&(Ae.removeChild(Le),Vn=cn&&cn.indexOf("appletParameters")!=-1?Le.id:null,ln--)}var le=Nt.id!==void 0?Nt.id:Vn,bn=window[le];bn&&typeof bn.getBase64=="function"&&(bn.remove(),window[le]=null)},Cn.refreshHitPoints=function(){if(Et(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ae=Cn.getAppletObject();return Ae&&typeof Ae.recalculateEnvironments=="function"?(Ae.recalculateEnvironments(),!0):!1},Cn.startAnimation=function(){var Ae=Cn.getAppletObject();return Ae&&typeof Ae.startAnimation=="function"?(Ae.startAnimation(),!0):!1},Cn.stopAnimation=function(){var Ae=Cn.getAppletObject();return Ae&&typeof Ae.stopAnimation=="function"?(Ae.stopAnimation(),!0):!1},Cn.getAppletObject=function(){var Ae=Nt.id!==void 0?Nt.id:"ggbApplet";return window[Ae]},Cn.resize=function(){};var fe=function(Ae,Qe,ln){var Vn=document.createElement("param");Vn.setAttribute("name",Qe),Vn.setAttribute("value",ln),Ae.appendChild(Vn)},ne=function(Ae){return Ae&&Ae!=="false"},Ne=function(Ae,Qe,ln){Et(Bt)<=4.2&&(ln=!0);var Vn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Bt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(Vn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Le=document.createElement("div");Le.classList.add("appletParameters","notranslate");var cn=Qe.width,le=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(Et(Bt)<=4.4)ne(Qe.showToolBar)&&(Qe.height-=7),ne(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&ne(Qe.showToolBar)&&(Qe.width=605,cn=605);else{var bn=100;(ne(Qe.showToolBar)||ne(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),bn=ne(Qe.showMenuBar)?245:155),cn<bn&&(Qe.width=bn,cn=bn)}Le.style.border="none",Le.style.display="inline-block";for(var hi in Qe)Qe.hasOwnProperty(hi)&&hi!=="appletOnLoad"&&Le.setAttribute("data-param-"+hi,Qe[hi]);vt&&Le.setAttribute("data-param-fontscssurl",vt),Cn.resize=function(){GGBAppletUtils.responsiveResize(Ae,Qe)},window.addEventListener("resize",function(xe){Cn.resize()});var Ot=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!ln&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||Le.setAttribute("data-param-showSplash","false");var Pt=Ae.querySelector(".applet_scaler.prerender"),St=Pt!==null;if(St)var kt=Pt.querySelector(".ggb_preview");else{var kt=Be(cn,le,Qe.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=cn+"px",Pt.style.height=le+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),Et(Bt)>=5?(Qe.appletOnLoad=function(xe){var Te=Ae.querySelector(".ggb_preview");Te&&Te.parentNode.removeChild(Te),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(xe)},St||Pt.appendChild(kt)):Le.appendChild(kt),Pt.appendChild(Le),St||Ae.appendChild(Pt),setTimeout(function(){Cn.resize()},1)}else{var Rt=document.createElement("div");Rt.className="applet_scaler",Rt.style.position="relative",Rt.style.display="block",Rt.appendChild(Le),Ae.appendChild(Rt),Qe.appletOnLoad=function(xe){Cn.resize(),Ot(xe)}}function At(xe,Te){Te&&typeof Te.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xe,Te.appletOnLoad):renderGGBElement(xe),pn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Te)}function Yt(xe,Te){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xe,params:Te}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ke){At(Ke.article,Ke.params)}),html5AppletsToProcess=null)},Et(Bt)<5&&(xe.className+=" geogebraweb")):At(xe,Te)}if(Vn){scriptLoadStarted=!0;for(var Me=0;Me<Le.childNodes.length;Me++){var be=Le.childNodes[Me].tagName;be==="TABLE"&&(Le.removeChild(Le.childNodes[Me]),Me--)}if(ggbHTML5LoadedScript!==null){var We=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');We!=null&&We.parentNode.removeChild(We)}var pe=document.createElement("script"),ve=function(){Yt(Le,Qe)};pe.src=qe+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Bt,ggbHTML5LoadedScript=pe.src,pn("GeoGebra HTML5 codebase loaded: '"+qe+"'.",Qe),!ie&&(!zt||zt=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ve()):qe.requirejs?__webpack_require__.e(7963).then(function(){var xe=[__webpack_require__(87963)];ve.apply(null,xe)}.bind(this)).catch(__webpack_require__.oe):(pe.onload=ve,Ae.appendChild(pe))}else Yt(Le,Qe);Qe.height=le,Qe.width=cn},Ge=function(Ae,Qe,ln){var Vn=Be(Qe.width,Qe.height,Qe.borderColor,ln),Le=document.createElement("div");Le.style.position="relative",Le.style.display="block",Le.style.width=Qe.width+"px",Le.style.height=Qe.height+"px",Le.className="applet_screenshot applet_scaler"+(ln?" applet_screenshot_play":""),Le.appendChild(Vn);var cn=GGBAppletUtils.getScale(Qe,Ae,ln);ln?(Ae.appendChild(hn()),window.GGBT_wsf_view||(Ae.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Le,"66%"),Ae.appendChild(Le),cn!==1&&!isNaN(cn)&&(GGBAppletUtils.scaleElement(Le,cn),Le.style.width=Qe.width+"px",Le.style.height=Qe.height+"px",Le.parentNode.style.width=Qe.width*cn+"px",Le.parentNode.style.height=Qe.height*cn+"px"),Cn.resize=function(){Ye(Ae,Vn,Le,ln)},window.addEventListener("resize",function(le){Cn.resize()}),Cn.resize()};function Ye(Ae,Qe,ln,Vn){if(Ae.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ae)}var Le=GGBAppletUtils.getScale(Nt,Ae,Vn);ln.parentNode!==null&&(!isNaN(Le)&&Le!==1?(GGBAppletUtils.scaleElement(ln,Le),ln.parentNode.style.width=Nt.width*Le+"px",ln.parentNode.style.height=Nt.height*Le+"px"):(GGBAppletUtils.scaleElement(ln,1),ln.parentNode.style.width=Nt.width+"px",ln.parentNode.style.height=Nt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ae),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Cn.onExitFullscreen=function(Ae,Qe){Qe.appendChild(Ae)};var Ln=function(Ae,Qe,ln,Vn){Ge(Ae,Qe,!0);for(var Le=function(){var bn=[];for(le=0;le<Ae.childNodes.length;le++)bn.push(Ae.childNodes[le]);if(window.GGBT_wsf_view){var hi=window.GGBT_wsf_view.renderFullScreen(Ae,Qe.id),Ot=document.getElementById("fullscreencontainer"),Pt=jQuery(Ae).find(".fullscreencontent");Pt.length>0?(hi.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(Ot).append(Pt),window.dispatchEvent(new Event("resize"))):Ne(hi,Qe,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else He=Vn,Ne(Ae,Qe,!1);if(!window.GGBT_wsf_view)for(le=0;le<bn.length;le++)Ae.removeChild(bn[le])},cn=Ae.getElementsByClassName("ggb_preview_play"),le=0;le<cn.length;le++)cn[le].addEventListener("click",Le,!1),cn[le].addEventListener("ontouchstart",Le,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ae),jt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},hn=function(){var Ae=document.createElement("div");if(Ae.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Qe='.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");}',ln=document.createElement("style");ln.styleSheet?ln.styleSheet.cssText=Qe:ln.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(ln)}return Ae},Be=function(Ae,Qe,ln,Vn){var Le=document.createElement("div");Le.className="ggb_preview",Le.style.position="absolute",Le.style.zIndex="90",Le.style.width=Ae-2+"px",Le.style.height=Qe-2+"px",Le.style.top="0px",Le.style.left="0px",Le.style.overflow="hidden",Le.style.backgroundColor="white";var cn="lightgrey";ln!==void 0&&(ln==="none"?cn="transparent":cn=ln),Le.style.border="1px solid "+cn;var le=document.createElement("img");if(le.style.position="relative",le.style.zIndex="1000",le.style.top="-1px",le.style.left="-1px",ct!==null&&le.setAttribute("src",ct),le.style.opacity=.7,lt!==null){var bn,hi,Ot;if(!Vn){bn=document.createElement("img"),bn.style.position="absolute",bn.style.zIndex="1001",bn.style.opacity=1,le.style.opacity=.3,hi=360,hi>Ae/4*3&&(hi=Ae/4*3),Ot=hi/5.8,bn.setAttribute("src",lt),bn.setAttribute("width",hi),bn.setAttribute("height",Ot);var Pt=(Ae-hi)/2,St=(Qe-Ot)/2;bn.style.left=Pt+"px",bn.style.top=St+"px",Le.appendChild(bn)}}return Le.appendChild(le),Le},sn=function(Ae){return Ae=Ae.toLowerCase(),Ae==="html5"||Ae==="screenshot"?Ae:"html5"},ee=["web","webSimple","web3d","tablet","tablet3d","phone"],Kt=function(Ae,Qe){if(Bt=Ae,Qe){Oe(Bt,!0);return}var ln=!se;if(ln){var Vn=Et(Bt);!isNaN(Vn)&&Vn<4.4&&(ln=!1)}var Le,cn;window.location.protocol.substr(0,4)==="http"?Le=window.location.protocol:Le="http:";var le=Bt.indexOf("//");le>0?cn=Bt:le===0?cn=Le+Bt:cn="https://www.geogebra.org/apps/5.2.814.0/";for(var bn in ee)if(Bt.slice(ee[bn].length*-1)===ee[bn]||Bt.slice((ee[bn].length+1)*-1)===ee[bn]+"/"){Oe(cn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ln&&!Ft.is3D&&!Ft.AV&&!Ft.SV&&!Ft.CV&&!Ft.EV2&&!Ft.CP&&!Ft.PC&&!Ft.DA&&!Ft.FI&&!Ft.PV&&!ne(Nt.showToolBar)&&!ne(Nt.showMenuBar)&&!ne(Nt.showAlgebraInput)&&!ne(Nt.enableRightClick)&&(!Nt.appName||Nt.appName=="classic")?cn+="webSimple/":cn+="web3d/",Oe(cn,!1)},Oe=function(Ae,Qe){if(Ae.requirejs){qe=Ae;return}Ae.slice(-1)!=="/"&&(Ae+="/"),qe=Ae,Qe===null&&(Qe=Ae.indexOf("http")===-1),te=Qe,nt="web.nocache.js",et=!1;var ln=qe.split("/");ln.length>1&&(!Qe&&ln[ln.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):ee.indexOf(ln[ln.length-2])>=0&&(nt=ln[ln.length-2]+".nocache.js")),ln=Ae.split("/"),Bt=ln[ln.length-3],Bt.substr(0,4)==="test"?Bt=Bt.substr(4,1)+"."+Bt.substr(5,1):(Bt.substr(0,3)==="war"||Bt.substr(0,4)==="beta")&&(Bt="5.0");var Vn=parseFloat(Bt);Vn!==NaN&&Vn<5&&Ae.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead."),Kt("5.0",Qe))},pn=function(Ae,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(Ae)};Nt.material_id!==void 0?_t(mn):mn();function mn(){var Ae=_n;zt!==null?Ae=zt:parseFloat(Ae)<5&&(Ae="5.0"),Kt(Ae,!1),ie!==null&&Oe(ie,te),ge=!0}return Cn},GGBAppletUtils=function(){"use strict";function Cn(){return window.GGBT_wsf_edit!==void 0}function _n(ge,zt){zt!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+zt+","+zt+")",ge.style.webkitTransform="scale("+zt+","+zt+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function Nt(ge,zt,ie,Re,he,Vt){var qe=null;if(Vt!=null&&Vt!="")for(var te=ge.parentNode;te!=null;)if((" "+te.className+" ").indexOf(" "+Vt+" ")>-1){qe=te;break}else te=te.parentNode;var He=0,Bt=0,nt=0,et=0,ct=0,lt=0,pt=0;if(qe)He=qe.offsetWidth,Bt=Math.max(Re?qe.offsetWidth:0,qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(He=Math.min(window.innerWidth,document.documentElement.clientWidth),Bt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=He):(He=window.innerWidth,Bt=window.innerHeight,nt=window.innerWidth),ge){var vt=ge.getBoundingClientRect();vt.left>0&&vt.left<=He&&(he===void 0||!he)&&(document.dir==="rtl"?(ct=He-vt.width-vt.left,lt=nt<=480?10:30):(lt=vt.left,ct=nt<=480?10:30),et=lt+ct)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xt=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,pt=40)}}return ge&&((ie===void 0||!ie)&&zt>0&&zt+et<He?He=zt:He-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(Bt-=pt)),{width:He,height:Bt}}function Ft(ge,zt,ie,Re,he){if(ge.isScreenshoGenerator)return 1;var Vt=Re!==void 0&&Re,qe=ge.noScaleMargin!=null&&ge.noScaleMargin,te=function(xt){return xt&&xt!=="false"},He=te(ge.autoHeight),Bt=Nt(zt,ge.width,ie,He,Vt&&window.GGBT_wsf_view||qe,he),nt=parseInt(Bt.width),et=ge.width,ct=ge.height;if(et===void 0){var lt=zt.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,ct=lt.offsetHeight)}var pt=nt/et,vt=Vt?1:Bt.height/ct;return ie!==void 0&&!ie&&(pt=Math.min(1,pt),vt=Math.min(1,vt)),Math.min(pt,vt)}function se(ge,zt,ie){var Re=1,he,Vt=!1;if(ge.hasOwnProperty("allowUpscale")&&(Vt=ge.allowUpscale),ge.hasOwnProperty("scale")&&(Re=parseFloat(ge.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(Vt=!0)),zt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Vt=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))he=Ft(ge,zt,Vt,ie,ge.scaleContainerClass);else return Re;return Vt&&(!ge.hasOwnProperty("scale")||Re===1)?he:Math.min(Re,he)}function we(ge){var zt=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=ge.getBoundingClientRect(),he=(zt-Re.width)/2,Vt=(ie-Re.height)/2;Vt<0&&(Vt=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(he<40?ge.style.left="40px":ge.style.left=he+"px",ge.style.top=Vt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Vt<40?ge.style.top="40px":ge.style.top=Vt+"px",ge.style.left=he+"px")}function Ie(ge,zt){var ie=ge.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(zt.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var Re=se(zt,ge);Cn()&&ie.setAttribute("data-param-scale",Re);for(var he=null,Vt=0;Vt<ge.childNodes.length;Vt++)if(ge.childNodes[Vt].className!==void 0&&ge.childNodes[Vt].className.match(/^applet_scaler/)){he=ge.childNodes[Vt];break}if(he!==null&&he.querySelector(".noscale")!==null)return;var qe=zt.id!==void 0?zt.id:"ggbApplet",te=window[qe];(te==null||!te.recalculateEnvironments)&&he!==null&&!he.className.match(/fullscreen/)&&(he.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(he.parentNode.style.width=zt.width*Re+"px",he.parentNode.style.height=zt.height*Re+"px",_n(he,Re)):(_n(he,1),he.parentNode.style.width=zt.width+"px",he.parentNode.style.height=zt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&we(ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Cn,positionCenter:we,getScale:se,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 Cn=n.location.search;return Cn.indexOf(J)!=-1||Cn.indexOf(K)!=-1}function q(Cn,_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(Cn){var _n=s[L].bindings;s[L].bindings=function(){for(var Nt=_n?_n():{},Ft=Cn[webModule.__softPermutationId],se=O;se<Ft.length;se++){var we=Ft[se];Nt[we[O]]=we[P]}return Nt}};var t;function u(){return v(),t}function v(){if(!t){var Cn=o.createElement(Q);if(Cn.id=L,Cn.style.cssText=R+S,Cn.tabIndex=-1,o.body.appendChild(Cn),t=Cn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var _n=document.compatMode==U?V:W;t.write(_n+X),t.close()}}}function w(Cn){function _n(Ft){function se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var we=se();if(we){Ft();return}function Ie(){if(!we){if(!se())return;we=!0,Ft(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ge&&clearInterval(ge)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ge=setInterval(function(){Ie()},$)}function Nt(Ft){var se=u(),we=se.body,Ie=se.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=Ft,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+Ft))}),we.appendChild(Ie)}_n(function(){Nt(Cn)})}webModule.__startLoadingFragment=function(Cn){return C(Cn)},webModule.__installRunAsyncCode=function(Cn){var _n=u(),Nt=_n.body,Ft=_n.createElement(_);Ft.language=ab,Ft.text=Cn,Nt.appendChild(Ft),Nt.removeChild(Ft)};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(Cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Cn){var _n=c[Cn];return _n==null?null:_n},r=d,webModule.__errFn=e}function B(){function Cn(ge){var zt=ge.lastIndexOf(rb);zt==-1&&(zt=ge.length);var ie=ge.indexOf(sb);ie==-1&&(ie=ge.length);var Re=ge.lastIndexOf(tb,Math.min(ie,zt));return Re>=O?ge.substring(O,Re+P):W}function _n(ge){if(!ge.match(/^\w+:\/\//)){var zt=o.createElement(ub);zt.src=ge+vb,ge=Cn(zt.src)}return ge}function Nt(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function Ft(){for(var ge=o.getElementsByTagName(_),zt=O;zt<ge.length;++zt)if(ge[zt].src.indexOf(xb)!=-1)return Cn(ge[zt].src);return W}function se(){var ge=o.getElementsByTagName(yb);return ge.length>O?ge[ge.length-P].href:W}function we(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var Ie=Nt();return Ie==W&&(Ie=Ft()),Ie==W&&(Ie=se()),Ie==W&&we()&&(Ie=Cn(o.location.href)),Ie=_n(Ie),Ie}function C(Cn){return Cn.match(/^\//)||Cn.match(/^[a-zA-Z]+:\/\//)?Cn:webModule.__moduleBase+Cn}function D(){var Cn=[],_n=O,Nt=[],Ft=[];function se(ge){var zt=Ft[ge](),ie=Nt[ge];if(zt in ie)return zt;var Re=[];for(var he in ie)Re[ie[he]]=he;throw r&&r(ge,Re,zt),null}if(__gwt_isKnownPropertyValue=function(ge,zt){return zt in Nt[ge]},webModule.__getPropMap=function(){var ge={};for(var zt in Nt)Nt.hasOwnProperty(zt)&&(ge[zt]=se(zt));return ge},webModule.__computePropValue=se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var we;try{we=Cb;var Ie=we.indexOf(Db);Ie!=-1&&(_n=parseInt(we.substring(Ie+P),$),we=we.substring(O,Ie))}catch(ge){}return webModule.__softPermutationId=_n,C(we+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Ax:function(){return Ie},Ds:function(){return ge},KI:function(){return ie},SI:function(){return we},f1:function(){return se}});var Ft=Nt(346);function se(Re){let he=!0;if(Re.length>0){for(let Vt=0;Vt<Re.length;Vt++)if(Re[Vt].compile_success==0||!Re[Vt].compile_success){he=!1;break}}else he=!1;return he}function we(Re,he=""){let Vt=[];for(let qe=0;qe<Re.length;qe++){let te=Re[qe],He=he?`${he}/${te.name}`:`${te.name}`;Vt.push({title:te.name,type:te.type,isLeaf:te.type!=="tree",key:He})}return Vt}function Ie(Re,he,Vt){for(let qe=0;qe<Re.length;qe++){let te=Re[qe];if(te.key===he){te.children=Vt;break}te.children&&Ie(te.children,he,Vt)}return Re}function ge(Re,he,Vt){let qe;return function(){let te=this,He=arguments,Bt=function(){qe=null,Vt||Re.apply(te,He)},nt=Vt&&!qe;clearTimeout(qe),qe=setTimeout(Bt,he),nt&&Re.apply(te,He)}}const zt=!0,ie=Ft.Z.API_SERVER},79671:function(Cn,_n,Nt){"use strict";var Ft=Nt(59301),se=Nt(25690),we=Nt(37568),Ie=Nt(28284),ge=Nt(6767),zt=Nt(62957),ie=Nt(54172),Re=Nt(38986),he=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,te=(et,ct)=>{var lt={};for(var pt in et)Vt.call(et,pt)&&ct.indexOf(pt)<0&&(lt[pt]=et[pt]);if(et!=null&&he)for(var pt of he(et))ct.indexOf(pt)<0&&qe.call(et,pt)&&(lt[pt]=et[pt]);return lt},He=(et,ct,lt)=>new Promise((pt,vt)=>{var xt=jt=>{try{Tt(lt.next(jt))}catch(_t){vt(_t)}},Et=jt=>{try{Tt(lt.throw(jt))}catch(_t){vt(_t)}},Tt=jt=>jt.done?pt(jt.value):Promise.resolve(jt.value).then(xt,Et);Tt((lt=lt.apply(et,ct)).next())});const Bt=we.default.TextArea,nt=et=>{var ct=et,{account:lt,globalSetting:pt,loading:vt,dispatch:xt,schoolName:Et,departmentName:Tt,visible:jt,onClose:_t=()=>{},onSuccess:Jt=()=>{}}=ct,Ut=te(ct,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[fe]=Ie.default.useForm(),ne=(0,Ft.useRef)(),[Ne,Ge]=(0,Ft.useState)(!1);(0,Ft.useEffect)(()=>{ne.current=Ut.schoolId},[Ut.schoolId]),(0,Ft.useEffect)(()=>{fe.setFieldsValue({department:Tt})},[Tt]);const Ye=Ln=>He(void 0,null,function*(){var hn,Be,sn;const{department:ee,remarks:Kt}=Ln||{};Ge(!0);const Oe=yield(0,Re.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:ee,school_id:ne.current}});Ge(!1);const pn=()=>He(void 0,null,function*(){const mn=yield xt({type:"account/appplyDepartment",payload:{school_id:ne.current,name:ee,remarks:Kt}});(mn==null?void 0:mn.status)===0&&(ge.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Jt(ee),_t())});if((Oe==null?void 0:Oe.status)===0){if((hn=Oe==null?void 0:Oe.data)!=null&&hn.name){zt.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ft.createElement("div",null,Ft.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"),Ft.createElement(ie.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(Be=Oe==null?void 0:Oe.data)==null?void 0:Be.name,size:(sn=Oe==null?void 0:Oe.data)==null?void 0:sn.size}],pagination:!1})),onOk:()=>{Jt(ee),_t()}});return}pn()}});return Ft.createElement(zt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:jt,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:_t,onOk:()=>fe.submit(),confirmLoading:Ne},Ft.createElement(Ie.default,{form:fe,labelCol:{span:4},wrapperCol:{span:20},onFinish:Ye},Ft.createElement(Ie.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Et),Ft.createElement(Ie.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"}]},Ft.createElement(we.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),Ft.createElement(Ie.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},Ft.createElement(Bt,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};_n.Z=(0,se.connect)(({account:et,loading:ct,globalSetting:lt})=>({account:et,globalSetting:lt,loading:ct.effects}))(nt)},84842:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Bt}});var Ft=Nt(99571),se=Nt(59301),we=Object.defineProperty,Ie=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,he=(nt,et,ct)=>et in nt?we(nt,et,{enumerable:!0,configurable:!0,writable:!0,value:ct}):nt[et]=ct,Vt=(nt,et)=>{for(var ct in et||(et={}))ie.call(et,ct)&&he(nt,ct,et[ct]);if(zt)for(var ct of zt(et))Re.call(et,ct)&&he(nt,ct,et[ct]);return nt},qe=(nt,et)=>Ie(nt,ge(et)),te=(nt,et)=>{var ct={};for(var lt in nt)ie.call(nt,lt)&&et.indexOf(lt)<0&&(ct[lt]=nt[lt]);if(nt!=null&&zt)for(var lt of zt(nt))et.indexOf(lt)<0&&Re.call(nt,lt)&&(ct[lt]=nt[lt]);return ct},He=(nt,et,ct)=>new Promise((lt,pt)=>{var vt=Tt=>{try{Et(ct.next(Tt))}catch(jt){pt(jt)}},xt=Tt=>{try{Et(ct.throw(Tt))}catch(jt){pt(jt)}},Et=Tt=>Tt.done?lt(Tt.value):Promise.resolve(Tt.value).then(vt,xt);Et((ct=ct.apply(nt,et)).next())});const Bt=nt=>{var et=nt,{children:ct}=et,lt=te(et,["children"]);const[pt,vt]=(0,se.useState)(!1);return se.createElement(Ft.ZP,qe(Vt({},lt),{loading:pt,onClick:xt=>He(void 0,null,function*(){try{vt(!0),yield lt.onClick(xt),vt(!1)}catch(Et){console.error(Et),vt(!1)}})}),ct)}},9507:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return qe}});var Ft=Nt(59301),se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=Nt(92310),Ie=Nt.n(we),ge=Nt(29787),zt=Nt(2859),ie=Nt(38986),Re=Nt(51257),he=(te,He,Bt)=>new Promise((nt,et)=>{var ct=vt=>{try{pt(Bt.next(vt))}catch(xt){et(xt)}},lt=vt=>{try{pt(Bt.throw(vt))}catch(xt){et(xt)}},pt=vt=>vt.done?nt(vt.value):Promise.resolve(vt.value).then(ct,lt);pt((Bt=Bt.apply(te,He)).next())}),qe=({data:te,className:He,fullWidth:Bt,style:nt={},onClose:et,onOk:ct,showFullTools:lt,noAssociationId:pt})=>{const vt=(0,Ft.useRef)(null),xt=(0,Ft.useRef)(null),Et=(0,Ft.useRef)(null),Tt=(0,Ft.useRef)(null),[jt,_t]=(0,Ft.useState)(!1),[Jt,Ut]=(0,Ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ft.useEffect)(()=>(Et.current||(Et.current=document.createElement("style"),document.head.appendChild(Et.current)),te!=null&&te.visible?(document.body.setAttribute("data-custom","y-hidden"),Et.current.innerHTML=" html { overflow-y: hidden; }",te!=null&&te.src&&fe()):(document.body.removeAttribute("data-custom"),Et.current&&(document.head.removeChild(Et.current),Et.current=null)),()=>{document.body.removeAttribute("data-custom"),Et.current&&(document.head.removeChild(Et.current),Et.current=null)}),[te==null?void 0:te.visible]);const fe=()=>he(void 0,null,function*(){_t(!0),Ut("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,Re.ZJ)(te==null?void 0:te.src);vt.current.src="",vt.current.src=Ye,vt.current.onload=function(){Ge()},_t(!1),Ut("")}),ne=Ye=>he(void 0,null,function*(){_t(!0),Ut("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ln=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:te.title,file:Ye.dataUrl}});Ln!=null&&Ln.id&&!pt?(yield(0,ie.ZP)(`/api/attachments/${te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ln==null?void 0:Ln.id,settings:JSON.stringify(Ye.state)}})).status===0&&ct():Ln!=null&&Ln.id&&ct(Ln),_t(!1),Ut("")}),Ne=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.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(hn=>{const Be=document.querySelector(hn.name);Be&&Be.setAttribute("title",hn.title)})},Ge=()=>{xt.current=new zt.hP(vt.current),xt.current.targetRoot=Tt.current,xt.current.addEventListener("render",ne),xt.current.addEventListener("beforeclose",et),lt&&(xt.current.availableMarkerTypes=xt.current.ALL_MARKER_TYPES,xt.current.uiStyleSettings.redoButtonVisible=!0,xt.current.uiStyleSettings.notesButtonVisible=!0,xt.current.uiStyleSettings.zoomButtonVisible=!0,xt.current.uiStyleSettings.zoomOutButtonVisible=!0,xt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xt.current.uiStyleSettings,xt.current.show(),te!=null&&te.snapshotData&&xt.current.restoreState(te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ne()},300)};return Ft.createElement(Ft.Fragment,null,(te==null?void 0:te.visible)&&Ft.createElement(ge.Z,{spinning:jt,tip:Jt,style:{position:"absolute",width:"100vw"}},Ft.createElement("div",{ref:Tt,className:Ie()(se.imageDimensions,He,Bt?se.fullWidth:""),style:nt},Ft.createElement("img",{className:se.img,ref:vt}))))}},76562:function(Cn,_n,Nt){"use strict";var Ft=Nt(59301),se=Nt(77019),we=Nt(5269),Ie=Nt(20554),ge=Nt(99571),zt=Nt(76902),ie=Nt(99587),Re=Nt(48136),he=Nt(59301);const Vt=(0,Ft.forwardRef)(({callback:qe,showSaveButton:te,value:He=""},Bt)=>{const nt=(0,Ft.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 "}]}]}],ct=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],lt=xt=>{nt.current.setValue(nt.current.getValue()+" "+xt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:he.createElement(se.Z,{className:ie.Z.lists,gutter:[10,10]},et.map((xt,Et)=>he.createElement(we.Z,{flex:"110px",className:ie.Z.item},he.createElement("div",null,he.createElement(zt.Z,{value:`$$${xt.value}$$`}),xt.name),he.createElement("div",{className:ie.Z.children},xt.children.map((Tt,jt)=>he.createElement("div",{key:jt},he.createElement("h1",null,Tt.name),he.createElement(se.Z,{gutter:[10,10]},Tt.data.map((_t,Jt)=>he.createElement(we.Z,{key:Jt,onClick:()=>lt(_t),className:ie.Z.diamond},he.createElement(zt.Z,{value:"`$$"+_t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:he.createElement(se.Z,{className:ie.Z.lists,gutter:[10,10]},ct.map((xt,Et)=>he.createElement(we.Z,{flex:"110px",className:ie.Z.item},he.createElement("div",null,he.createElement(zt.Z,{value:"`$$"+xt.value+"$$`"}),xt.name),he.createElement("div",{className:ie.Z.children},xt.children.map((Tt,jt)=>he.createElement("div",{key:jt},Tt.name&&he.createElement("h1",null,Tt.name),he.createElement(se.Z,{gutter:[10,10]},Tt.data.map((_t,Jt)=>he.createElement(we.Z,{key:Jt,onClick:()=>lt(_t),className:ie.Z.diamond},he.createElement(zt.Z,{value:"`$$"+_t.value+"$$`"}))))))))))}],vt=()=>{var xt=document.createElement("div");xt.innerHTML=nt.current.getValue();var Et=xt.innerText;return qe&&qe(Et),Et};return(0,Ft.useImperativeHandle)(Bt,()=>({getData:vt})),he.createElement("div",{className:ie.Z.mathWrap},he.createElement(Ie.default,{defaultActiveKey:"1",items:pt}),he.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},He||""),te&&he.createElement("div",{className:ie.Z.button},he.createElement(ge.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_n.Z=Vt},28426:function(Cn,_n,Nt){"use strict";var Ft=Nt(59301),se=Nt(93314),we=Nt(99571),Ie=Object.defineProperty,ge=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Vt=(Bt,nt,et)=>nt in Bt?Ie(Bt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Bt[nt]=et,qe=(Bt,nt)=>{for(var et in nt||(nt={}))Re.call(nt,et)&&Vt(Bt,et,nt[et]);if(ie)for(var et of ie(nt))he.call(nt,et)&&Vt(Bt,et,nt[et]);return Bt},te=(Bt,nt)=>ge(Bt,zt(nt));const He=({img:Bt,buttonProps:nt={},styles:et={},customText:ct,ButtonText:lt,ButtonClick:pt,Buttonclass:vt,ButtonTwo:xt,imgStyles:Et,loading:Tt=!1,className:jt=""})=>Ft.createElement("section",{className:`tc animated fadeIn ${jt}`,style:qe({color:"#999",margin:"100px auto",visibility:Tt?"hidden":"visible"},et)},Ft.createElement("img",{src:Bt||se,style:te(qe({},Et),{pointerEvents:"none",userSelect:"none"})}),Ft.createElement("p",{className:"mt20 font14"},ct||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&Ft.createElement(we.ZP,qe({className:vt,onClick:pt},nt),lt),xt&&xt);_n.Z=He},45677:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return vt}});var Ft=Nt(59301),se={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},we=Nt(99571),Ie=Nt(70557),ge=Nt(75975),zt=Nt(25399),ie=Nt(51257),Re=Nt(81722),he=Nt(28426),Vt=Nt(346),qe=Nt(44203),te=Nt(59301),He=Object.defineProperty,Bt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ct=(xt,Et,Tt)=>Et in xt?He(xt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):xt[Et]=Tt,lt=(xt,Et)=>{for(var Tt in Et||(Et={}))nt.call(Et,Tt)&&ct(xt,Tt,Et[Tt]);if(Bt)for(var Tt of Bt(Et))et.call(Et,Tt)&&ct(xt,Tt,Et[Tt]);return xt},pt=(xt,Et,Tt)=>new Promise((jt,_t)=>{var Jt=ne=>{try{fe(Tt.next(ne))}catch(Ne){_t(Ne)}},Ut=ne=>{try{fe(Tt.throw(ne))}catch(Ne){_t(Ne)}},fe=ne=>ne.done?jt(ne.value):Promise.resolve(ne.value).then(Jt,Ut);fe((Tt=Tt.apply(xt,Et)).next())}),vt=({editOffice:xt="view",data:Et,issaver:Tt,onSaver:jt,theme:_t,type:Jt,filename:Ut,monacoEditor:fe,className:ne,style:Ne,close:Ge,onClose:Ye,hasMask:Ln,disabledDownload:hn,onImgDimensions:Be,showNodata:sn,recordInfo:ee})=>{const[Kt,Oe]=(0,Ft.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[pn,mn]=(0,Ft.useState)(""),[Ae,Qe]=(0,Ft.useState)(),ln=window.ENV==="build"?"/react/build":"",Vn=location.host.startsWith("localhost")?Vt.Z.PROXY_SERVER:Vt.Z.API_SERVER,cn=10*(1024*1024),le=(0,Ft.useRef)();Et!=null&&Et.startsWith("/api")&&Jt!=="txt"&&(Et=Vt.Z.API_SERVER+Et);const bn=kt=>kt.substring(kt.lastIndexOf("/")+1).split(".").pop();Ut&&fe&&(fe.filename=Ut),(0,Ft.useEffect)(()=>{var kt,Rt;const At=(Rt=(kt=document.cookie)==null?void 0:kt.replace(/\s/g,""))==null?void 0:Rt.split(";");At==null||At.map(Yt=>{let Me=Yt.split("=");Me[0]==="_educoder_session"&&mn(Me[1])})},[]),(0,Ft.useEffect)(()=>{Jt==="office"&&(Et.indexOf("bigfilescdn.")>-1||Et.indexOf("bigfiles1")>-1?Qe({url:Et,fileType:bn(Et),model:Et.indexOf("model=edit")?"edit":"view"}):Ot())},[Jt,Et]);function hi(kt){return pt(this,null,function*(){kt.data.type==="pdfdata"&&(jt(kt.data.data),window.removeEventListener("message",hi,!1)),console.log("mess---:",kt.data)})}const Ot=()=>pt(void 0,null,function*(){console.log("data:",Et);let kt=Et;Et.startsWith("http")||(kt=location.origin+kt);let Rt=new URL(kt).pathname.split("/").pop();const At=yield(0,Re.gJ)({attachment_id:Rt});At.url=Vn+At.url,Qe(At)}),Pt=()=>{if(Et.startsWith("http")||Et.startsWith("blob:")){St();return}(0,ie.Sv)(Ut||"educoder",Et,Ut)},St=()=>{ee&&(0,qe.fc)({id:ee==null?void 0:ee.id,watch_type:1,course_id:ee==null?void 0:ee.course_id}),(0,ie.Nd)(Ut||"educoder",decodeURIComponent(Et))};return te.createElement("div",{style:lt({},Ne||{}),className:`${Ln&&se.bgBlack} ${Jt?se.wrp:"hide"}`},Ge&&te.createElement("div",{className:se.close,ref:le},!!Be&&te.createElement(zt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>le.current},te.createElement("span",{onClick:()=>{Ye(),Be()}},te.createElement("i",{className:"icon-yulanpizhu"}))),!hn&&te.createElement(zt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>le.current},te.createElement("span",{onClick:St},te.createElement("i",{className:"icon-quxiaozhiding"}))),Tt&&te.createElement(zt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>le.current},te.createElement("span",{className:"",onClick:()=>{const kt=document.getElementById("pdfiframe");window.addEventListener("message",hi,!1),setTimeout(()=>{kt.contentWindow.postMessage("getData","*")},300)}},te.createElement("i",{className:"icon-baocun"}))),te.createElement(zt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>le.current},te.createElement("span",{className:"",onClick:()=>{Ye()}},te.createElement("i",{className:"icon-guanbi1"})))),te.createElement("div",{className:`${se[ne]} ${ne} ${se.monaco} ${Jt==="txt"?"show":"hide"}`},Jt==="txt"&&te.createElement(te.Fragment,null,te.createElement(ge.ZP,lt({},fe)))),Jt==="audio"&&te.createElement("audio",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Et}`,autoPlay:!0}),Jt==="video"&&te.createElement(te.Fragment,null,(Et==null?void 0:Et.indexOf("http"))>-1?te.createElement("video",{controls:!0,src:`${Et}`,autoPlay:!0}):te.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Et}`,autoPlay:!0})),Jt==="office"&&Ae&&te.createElement("iframe",{src:`${ln}/office.html?key=${Ae.key}&url=${btoa(Ae.url)}&callbackUrl=${Vn+(Ae.callbackUrl||"")}&fileType=${Ae.fileType}&title=${Ae.title||""}&model=${xt}&officeServer=${Vt.Z.ONLYOFFICE}&disabledDownload=${!!hn}`}),Jt==="html"&&te.createElement("iframe",{src:Et+"&disposition=inline"}),Jt==="pdf"&&te.createElement("iframe",{id:"pdfiframe",src:`${ln}/js/pdfview/index.html?filename=${Ut||"educoder.pdf"}&url=${encodeURIComponent(Et)}&disabledDownload=${!!hn}&model=${xt}`}),Jt==="image"&&te.createElement("img",{src:`${(Et==null?void 0:Et.indexOf("http://"))>-1||(Et==null?void 0:Et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Et}`}),(Jt==="other"||Jt==="download")&&te.createElement(te.Fragment,null,sn?te.createElement(he.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:te.createElement(we.ZP,{icon:te.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Pt,disabled:hn},"\u4E0B\u8F7D")}):te.createElement(we.ZP,{type:"primary",size:"middle",onClick:Pt,disabled:hn},te.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Cn,_n,Nt){"use strict";Nt.d(_n,{z:function(){return _t},Z:function(){return Jt}});var Ft=Nt(59301),se=Nt(8944),we=Nt(81428),Ie=Nt(64018),ge=Nt(15360),zt=Nt(346),ie=Nt(51257),Re=Nt(15342),he=Nt(1012),Vt=Nt(45677),qe=Nt(59301),He=({html:Ut})=>{const fe=(0,Ft.useRef)(null),ne=(0,Ft.useRef)(null),Ne=`.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,Ft.useEffect)(()=>{const Ge=fe.current.attachShadow({mode:"open"});ne.current=document.createElement("div"),ne.current.className="markdown-body",ne.current.innerHTML=Ut,Ge.appendChild(ne.current);const Ye=document.createElement("style");return Ye.textContent=Ne,Ge.appendChild(Ye),()=>{Ge.innerHTML=""}},[]),(0,Ft.useEffect)(()=>{ne.current&&(ne.current.innerHTML=Ut)},[Ut]),qe.createElement("div",{ref:fe})};function Bt(Ut){const fe=["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"],ne=new RegExp(`\\b(${fe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ut.replace(ne,"").trim()}var nt=Object.defineProperty,et=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,pt=(Ut,fe,ne)=>fe in Ut?nt(Ut,fe,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ut[fe]=ne,vt=(Ut,fe)=>{for(var ne in fe||(fe={}))ct.call(fe,ne)&&pt(Ut,ne,fe[ne]);if(et)for(var ne of et(fe))lt.call(fe,ne)&&pt(Ut,ne,fe[ne]);return Ut};const xt="@\u2581\u2581@",Et="@\u2581@",Tt=/<pre[^>]*>/g;function jt(Ut){let fe=document.createElement("div");return fe.innerHTML=Ut,fe.childNodes.length===0?"":fe.childNodes[0].nodeValue}const _t=(Ut,fe)=>{Ut=Ut||"";const ne=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ne=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return fe?Ut.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ne,(Ln,hn,Be,sn,ee,Kt,Oe)=>{const pn=hn||sn||Kt,mn=Be||ee||Oe||"?";return zt.Z.API_SERVER+"/api/attachments/"+pn+mn+"&t="+(0,ie.Jn)(pn,Date.now())+(Ln.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ut=Ut.replace(Ye,(Ln,hn,Be,sn,ee,Kt,Oe)=>{const pn=hn||sn||Kt,mn=Be||ee||Oe||"?";return zt.Z.API_SERVER+"/attachments/download/"+pn+mn+"&t="+(0,ie.Jn)(pn,Date.now())+(Ln.indexOf(")")>-1?")":"&")}).replace(ne,(Ln,hn,Be,sn,ee,Kt,Oe)=>{const pn=hn||sn||Kt,mn=Be||ee||Oe||"?";return zt.Z.API_SERVER+"/api/attachments/"+pn+mn+"&t="+(0,ie.Jn)(pn,Date.now())+(Ln.indexOf(")")>-1?")":"&")}).replace(Ne,(Ln,hn,Be,sn,ee)=>{const Kt=hn||sn,Oe=Be||ee||"";return'"'+zt.Z.API_SERVER+"/api/attachments/"+Kt+Oe+Kt+Oe+"&t="+(0,ie.Jn)(Kt,Date.now())}).replace(Ge,(Ln,hn,Be,sn,ee)=>{const Kt=hn||sn,Oe=Be||ee||"";return"("+zt.Z.API_SERVER+"/files/uploads/"+Kt+Oe+Kt+Oe+"&t="+(0,ie.Jn)(Kt,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,`
|
|
`),Ut)};var Jt=({value:Ut="",className:fe,showTextOnly:ne,showLines:Ne,style:Ge={},stylesPrev:Ye={},highlightKeywords:Ln,showProgramFill:hn,isProgramFill:Be,disabledFill:sn=!1,programFillValue:ee,onFillChange:Kt=mn=>{},onFillBlur:Oe=()=>{},onFillFocus:pn=()=>{}})=>{let mn=Bt(String(Ut||""));const[Ae,Qe]=(0,Ft.useState)(""),[ln,Vn]=(0,Ft.useState)("office"),[Le,cn]=(0,Ft.useState)([]),le=(0,Ft.useRef)("a"+(0,he.Z)()),bn={},hi=ve=>/<style[\s\S]*?>/i.test(ve||""),Ot=(ve,xe,Te)=>{const Ke=document.createElement(ve===Et?"input":"textarea");Ke.style.width="100%",Ke.style.height=ve===Et?"40px":"151px",Ke.rows=5,Ke.spellcheck=!1,Ke.name="edu-program-fill",Ke.placeholder="\u8BF7\u8F93\u5165",Ke.dataset.id=xe;const xn=Object.keys(bn).length;return bn[xn]=Ke,`<span class="edu-program-fill-wrap ${ve===Et?"":"show"}" style="width:${ve===Et?"400px":"100%"}" title=${Te||""}><span>${Ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Pt(ve){return ve=ve.replace(/!\[.*?\]\(.*?\)/g,""),ve=ve.replace(/\[.*?\]\(.*?\)/g,""),ve=ve.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ve=ve.replace(/<embed.*?>/g,""),ve=ve.replace(/<img.*?>/g,""),ve=ve.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ve=ve.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ve=ve.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ve=ve.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ve}const St=ve=>!ne&&hi(mn)?ve:ve.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xe,Te){let Ke=Te.replace(/(\n|\r)/g,"").split("}"),xn=[];return Ke.map(_e=>{_e!=""&&xn.push(`.${le.current} ${_e}`)}),`<style>${xn.join("}")}</style>`}),kt=(0,Ft.useMemo)(()=>{try{const Ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,xn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,_e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Zn=/\(\/attachments\/download\//g;mn=mn.replace(Zn,"("+zt.Z.API_SERVER+"/attachments/download/").replace(Ke,"("+zt.Z.API_SERVER+"/api/attachments/").replace(xn,'"'+zt.Z.API_SERVER+"/api/attachments/").replace(_e,'"'+zt.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(Ke){}if(hn){let Ke=-1;return mn=mn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(xn,_e,Zn){var Fe;return++Ke,Ot(xn,Ke,(Fe=ee==null?void 0:ee[Ke])==null?void 0:Fe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${St(mn||"")}</pre>`}let ve=St(mn);ve=(0,we.ZP)(ve);const xe=(0,we.ez)();mn.match(/\[TOC\]/)&&(ve=ve.replace("<p>[TOC]</p>",(0,we.Qv)()),(0,we.Iy)()),ve=ve.replace(/(__special_katext_id_\d+__)/g,(Ke,xn)=>{const{type:_e,expression:Zn}=xe[xn];return(0,Re.renderToString)(jt(Zn)||"",{displayMode:_e==="block",throwOnError:!1,output:"html"})}),ve=ve.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,we.AL)();const Te=document.createElement("div");if(Te.innerHTML=ve,ne)return Te.innerText;if(Ln){const Ke=Ln.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Me(Te,Ke),Te.innerHTML}return setTimeout(()=>pe(),500),Te.innerHTML},[mn,Ln]);(0,Ft.useEffect)(()=>{be.current&&be.current.querySelectorAll(["input","textarea"]).forEach(xe=>{xe.oninput=Rt,xe.onblur=At,xe.onfocus=Yt})},[Le]),(0,Ft.useEffect)(()=>{var ve,xe,Te,Ke,xn;if(ee!=null&&ee.length)try{const _e=be.current.querySelectorAll(".edu-program-fill-score"),Zn=be.current.querySelectorAll('[name="edu-program-fill"]');for(const[Fe,ze]of Zn.entries())ze.value=((ve=ee==null?void 0:ee[Fe])==null?void 0:ve.value)||"",((xe=ee==null?void 0:ee[Fe])==null?void 0:xe.type)==="warning"?ze.className="program-fill-warning":((Te=ee==null?void 0:ee[Fe])==null?void 0:Te.type)==="success"?ze.className="program-fill-success":ze.className="";for(const[Fe,ze]of _e.entries())ze.innerHTML=(Ke=ee==null?void 0:ee[Fe])!=null&&Ke.score?`${(xn=ee==null?void 0:ee[Fe])==null?void 0:xn.score}\u5206`:"";cn(ee)}catch(_e){console.log(_e,"error")}},[ee]);const Rt=ve=>{Le[ve.target.dataset.id]=Le[ve.target.dataset.id]||{},Le[ve.target.dataset.id].value=ve.target.value,cn([...Le]),Kt(Le,ve.target.dataset.id)},At=ve=>{Le[ve.target.dataset.id]=Le[ve.target.dataset.id]||{},Le[ve.target.dataset.id].value=ve.target.value,cn([...Le]),Oe(Le,ve.target.dataset.id)},Yt=ve=>{Le[ve.target.dataset.id]=Le[ve.target.dataset.id]||{},Le[ve.target.dataset.id].value=ve.target.value,cn([...Le]),pn(Le,ve.target.dataset.id)};function Me(ve,xe){return ve.childNodes.forEach(Te=>{var Ke;if(Te.childNodes.length>0)Me(Te,xe);else if(Te.nodeName!=="IMG")if(Te.innerHTML)Te.innerHTML=(Ke=Te.innerHTML)==null?void 0:Ke.replace(new RegExp(xe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const xn=document.createElement("span");xn.innerHTML=Te.textContent.replace(new RegExp(xe,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Te.replaceWith(xn)}})}const be=(0,Ft.useRef)();we.jb.WebkitLineClamp=Ne,Ne&&(Ge=vt(vt({},Ge),we.jb));function We(ve){let xe=ve.target;if(xe.tagName.toUpperCase()==="A"){let Te=xe.getAttribute("href");if(Te.indexOf("office")>-1)ve.preventDefault(),Qe(Te),Vn("office");else if(Te.indexOf("application/pdf")>-1)ve.preventDefault(),Qe(Te),Vn("pdf");else if(Te.indexOf("text/html")>-1)ve.preventDefault(),Qe(Te),Vn("html");else if(Te.startsWith("#")){ve.preventDefault();let Ke=document.getElementById(Te.replace("#",""));Ke&&Ke.scrollIntoView(!0)}}}const pe=()=>{var ve;const xe=(ve=be.current)==null?void 0:ve.querySelectorAll("video");xe==null||xe.forEach(Te=>{if(Te.oncontextmenu=()=>!1,Te.src.indexOf(".m3u8")>-1&&!Te.canPlayType("application/vnd.apple.mpegurl")){if(ge.ZP.isSupported()){var Ke=new ge.ZP;Ke.loadSource(Te.src),Ke.attachMedia(Te)}}})};return(0,Ft.useEffect)(()=>{if(be.current&&kt&&kt.match(Tt)&&window.PR.prettyPrint(),be.current)return be.current.addEventListener("click",We),()=>{var ve;(ve=be.current)==null||ve.removeEventListener("click",We),(0,we.AL)(),(0,we.Iy)()}},[kt,be.current,We]),(0,Ft.useEffect)(()=>{var ve;const xe=Te=>{Te.preventDefault(),Te.clipboardData.setData("text",window.getSelection().toString())};return(ve=be.current)==null||ve.addEventListener("copy",xe),()=>{var Te;(Te=be.current)==null||Te.removeEventListener("copy",xe)}},[be.current]),Ft.createElement(Ft.Fragment,null,ne&&Ft.createElement("div",{ref:be},kt),!ne&&!hi(kt)&&Ft.createElement("div",{ref:be,style:vt({},Ge),className:`${fe||""} ${sn?"disabled-fill":""} markdown-body ${le.current}`,dangerouslySetInnerHTML:{__html:kt}}),!ne&&hi(kt)&&Ft.createElement(He,{html:kt}),Ft.createElement(Vt.Z,{close:!0,data:Ae,type:Ae!=null&&Ae.length?ln:"",style:vt({},Ye),onClose:()=>Qe("")}))}},69720:function(Cn,_n,Nt){"use strict";Nt.d(_n,{h:function(){return xt}});var Ft=Nt(59301),se=Nt(82326),we=Nt(28284),Ie=Nt(99571),ge=Nt(89780),zt=Nt.n(ge),ie=Nt(8336),Re=Nt(12469),he=Object.defineProperty,Vt=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,nt=(Et,Tt,jt)=>Tt in Et?he(Et,Tt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Et[Tt]=jt,et=(Et,Tt)=>{for(var jt in Tt||(Tt={}))He.call(Tt,jt)&&nt(Et,jt,Tt[jt]);if(te)for(var jt of te(Tt))Bt.call(Tt,jt)&&nt(Et,jt,Tt[jt]);return Et},ct=(Et,Tt)=>Vt(Et,qe(Tt));const lt=se.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:Et,onCancel:Tt})=>{const[jt,_t]=(0,Ft.useState)("python");function Jt(fe){_t(vt[fe][1])}function Ut(fe){Et(fe)}return Ft.createElement(we.default,ct(et({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ut,style:{width:500}}),Ft.createElement(we.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ft.createElement(se.default,{getPopupContainer:fe=>fe.parentNode,onChange:Jt},Object.keys(vt).map(fe=>Ft.createElement(lt,{key:fe,value:fe},vt[fe][0])))),Ft.createElement(we.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ft.createElement(xt,{mode:jt})),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ie.ZP,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))};function xt({value:Et,onChange:Tt,mode:jt,options:_t={}}){const Jt=(0,Ft.useRef)(),[Ut,fe]=(0,Ft.useState)();return(0,Ft.useEffect)(()=>{if(Ut){let ne=function(Ne){const Ge=Ne.getValue();Tt&&Tt(Ge)};return Ut.on("change",ne),()=>{Ut.off("change",ne)}}},[Ut,Tt]),(0,Ft.useEffect)(()=>{Ut&&Ut.setOption("mode",jt)},[Ut,jt]),(0,Ft.useEffect)(()=>{Ut&&(Et!==Ut.getValue()||Et==="")&&setTimeout(()=>{Ut.setValue(Et||"")},300)},[Ut,Et]),(0,Ft.useEffect)(()=>{if(Jt.current&&!Ut){const ne=zt().fromTextArea(Jt.current,et({mode:jt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_t));fe(ne)}},[Jt.current,Ut]),Ft.createElement("div",{className:"my-codemirror-container"},Ft.createElement("textarea",{ref:Jt}))}},39793:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Ni}});var Ft=Nt(59301),se=Nt(89780),we=Nt.n(se),Ie=Nt(76374),ge=Nt(8336),zt=Nt(6313),ie=Nt(25717),Re=Nt(99498),he=Nt(25419),Vt=Nt(67549),qe=Nt(76902),te=({value:me="",className:ue,showTextOnly:ce,showLines:zn,style:Xn={}})=>{const ni=(0,Ft.useMemo)(()=>"",[me]);return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{dangerouslySetInnerHTML:{__html:ni}}))},He=Nt(59301),Bt=Object.defineProperty,nt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,vt=(me,ue,ce)=>ue in me?Bt(me,ue,{enumerable:!0,configurable:!0,writable:!0,value:ce}):me[ue]=ce,xt=(me,ue)=>{for(var ce in ue||(ue={}))lt.call(ue,ce)&&vt(me,ce,ue[ce]);if(ct)for(var ce of ct(ue))pt.call(ue,ce)&&vt(me,ce,ue[ce]);return me},Et=(me,ue)=>nt(me,et(ue));let Tt=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 jt({onActionCallback:me,title:ue,icon:ce,actionName:zn,className:Xn="",children:ni}){function $e(){me(zn)}return He.createElement("a",{title:ue,className:Xn,onClick:$e},He.createElement("i",{className:`${ce}`}),ni)}var _t=({watch:me,showNullButton:ue,showNullProgramButton:ce,onActionCallback:zn,fullScreen:Xn,insertTemp:ni,hidetoolBar:$e,extraUse:In})=>{const wi=[...Tt,{title:`${me?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${me?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return He.createElement("ul",{className:"markdown-toolbar-container"},!$e&&wi.map((Mi,Gi)=>He.createElement("li",{key:Gi},Mi.actionName?He.createElement(jt,Et(xt({},Mi),{onActionCallback:zn})):He.createElement("span",{className:"v-line"}))),ue?He.createElement("li",null,He.createElement(jt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:zn},He.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?He.createElement(He.Fragment,null,He.createElement("li",null,He.createElement(jt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:zn},He.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),He.createElement("li",null,He.createElement(jt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:zn},He.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ni&&He.createElement("li",null,He.createElement(jt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ni}`,onActionCallback:zn},He.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),In&&He.createElement("li",null,In),He.createElement("li",{className:"btn-full-screen"},He.createElement(jt,{icon:`${Xn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Xn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:zn})))},Jt=Nt(91558),Ut=Nt(28284),fe=Nt(37568),ne=Nt(99571),Ne=Object.defineProperty,Ge=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,sn=(me,ue,ce)=>ue in me?Ne(me,ue,{enumerable:!0,configurable:!0,writable:!0,value:ce}):me[ue]=ce,ee=(me,ue)=>{for(var ce in ue||(ue={}))hn.call(ue,ce)&&sn(me,ce,ue[ce]);if(Ln)for(var ce of Ln(ue))Be.call(ue,ce)&&sn(me,ce,ue[ce]);return me},Kt=(me,ue)=>Ge(me,Ye(ue));const Oe={labelCol:{span:4},wrapperCol:{span:20}};var pn=({callback:me,onCancel:ue})=>{function ce(zn){me(zn)}return Ft.createElement(Ut.default,Kt(ee({},Oe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),Ft.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ft.createElement(fe.default,null)),Ft.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ft.createElement(fe.default,null)),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(ne.ZP,{type:"ghost",onClick:ue},"\u53D6\u6D88")))},mn=Nt(69720),Ae=Nt(17077),Qe=Nt(62957),ln=Nt(77019),Vn=Nt(9507),Le=Nt(59301),cn=({callback:me,onCancel:ue})=>{const ce=document.createElement("canvas"),zn=ce.getContext("2d");ce.width=1e3,ce.height=800,zn.fillStyle="#ffffff",zn.fillRect(0,0,ce.width,ce.height);const Xn=ce.toDataURL("image/png");return Le.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Le.createElement(ln.Z,{style:{height:"100vh"}},Le.createElement(Vn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Xn,visible:!0,title:String(Date.now())},onOk:ni=>{me({src:ni.url})},onClose:ue})))},le=Nt(12378);function bn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(bn,go.CommandHandler),bn.prototype.canAlignSelection=function(){var me=this.diagram;return!(me===null||me.isReadOnly||me.isModelReadOnly||me.selection.count<2)},bn.prototype.alignLeft=function(){var me=this.diagram;me.startTransaction("aligning left");var ue=1/0;me.selection.each(function(ce){ce instanceof go.Link||(ue=Math.min(ce.position.x,ue))}),me.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ue,ce.position.y))}),me.commitTransaction("aligning left")},bn.prototype.alignRight=function(){var me=this.diagram;me.startTransaction("aligning right");var ue=-1/0;me.selection.each(function(ce){if(!(ce instanceof go.Link)){var zn=ce.actualBounds.x+ce.actualBounds.width;ue=Math.max(zn,ue)}}),me.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ue-ce.actualBounds.width,ce.position.y))}),me.commitTransaction("aligning right")},bn.prototype.alignTop=function(){var me=this.diagram;me.startTransaction("alignTop");var ue=1/0;me.selection.each(function(ce){ce instanceof go.Link||(ue=Math.min(ce.position.y,ue))}),me.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,ue))}),me.commitTransaction("alignTop")},bn.prototype.alignBottom=function(){var me=this.diagram;me.startTransaction("aligning bottom");var ue=-1/0;me.selection.each(function(ce){if(!(ce instanceof go.Link)){var zn=ce.actualBounds.y+ce.actualBounds.height;ue=Math.max(zn,ue)}}),me.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,ue-ce.actualBounds.height))}),me.commitTransaction("aligning bottom")},bn.prototype.alignCenterX=function(){var me=this.diagram,ue=me.selection.first();if(ue){me.startTransaction("aligning Center X");var ce=ue.actualBounds.x+ue.actualBounds.width/2;me.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(ce-zn.actualBounds.width/2,zn.actualBounds.y))}),me.commitTransaction("aligning Center X")}},bn.prototype.alignCenterY=function(){var me=this.diagram,ue=me.selection.first();if(ue){me.startTransaction("aligning Center Y");var ce=ue.actualBounds.y+ue.actualBounds.height/2;me.selection.each(function(zn){zn instanceof go.Link||zn.move(new go.Point(zn.actualBounds.x,ce-zn.actualBounds.height/2))}),me.commitTransaction("aligning Center Y")}},bn.prototype.alignColumn=function(me){var ue=this.diagram;ue.startTransaction("align Column"),me===void 0&&(me=0),me=parseFloat(me);var ce=new Array;ue.selection.each(function(In){In instanceof go.Link||ce.push(In)});for(var zn=0;zn<ce.length-1;zn++){var Xn=ce[zn],ni=Xn.actualBounds.y+Xn.actualBounds.height+me,$e=ce[zn+1];$e.move(new go.Point(Xn.actualBounds.x,ni))}ue.commitTransaction("align Column")},bn.prototype.alignRow=function(me){me===void 0&&(me=0),me=parseFloat(me);var ue=this.diagram;ue.startTransaction("align Row");var ce=new Array;ue.selection.each(function(In){In instanceof go.Link||ce.push(In)});for(var zn=0;zn<ce.length-1;zn++){var Xn=ce[zn],ni=Xn.actualBounds.x+Xn.actualBounds.width+me,$e=ce[zn+1];$e.move(new go.Point(ni,Xn.actualBounds.y))}ue.commitTransaction("align Row")},bn.prototype.canRotate=function(me){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<1)},bn.prototype.rotate=function(me){me===void 0&&(me=90);var ue=this.diagram;ue.startTransaction("rotate "+me.toString());var ue=this.diagram;ue.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=me)}),ue.commitTransaction("rotate "+me.toString())},bn.prototype.pullToFront=function(){var me=this.diagram;me.startTransaction("pullToFront");var ue=new go.Map;me.selection.each(function(ce){ue.set(ce.layer,0)}),ue.iteratorKeys.each(function(ce){var zn=0;ce.parts.each(function(Xn){if(!Xn.isSelected){var ni=Xn.zOrder;isNaN(ni)?Xn.zOrder=0:zn=Math.max(zn,ni)}}),ue.set(ce,zn)}),me.selection.each(function(ce){bn._assignZOrder(ce,ue.get(ce.layer)+1)}),me.commitTransaction("pullToFront")},bn.prototype.pushToBack=function(){var me=this.diagram;me.startTransaction("pushToBack");var ue=new go.Map;me.selection.each(function(ce){ue.set(ce.layer,0)}),ue.iteratorKeys.each(function(ce){var zn=0;ce.parts.each(function(Xn){if(!Xn.isSelected){var ni=Xn.zOrder;isNaN(ni)?Xn.zOrder=0:zn=Math.min(zn,ni)}}),ue.set(ce,zn)}),me.selection.each(function(ce){bn._assignZOrder(ce,ue.get(ce.layer)-1-bn._findGroupDepth(ce))}),me.commitTransaction("pushToBack")},bn._assignZOrder=function(me,ue,ce){ce===void 0&&(ce=me),me.layer===ce.layer&&(me.zOrder=ue),me instanceof go.Group&&me.memberParts.each(function(zn){bn._assignZOrder(zn,ue+1,ce)})},bn._findGroupDepth=function(me){if(me instanceof go.Group){var ue=0;return me.memberParts.each(function(ce){ue=Math.max(ue,bn._findGroupDepth(ce))}),ue+1}else return 0},bn.prototype.doKeyDown=function(){var me=this.diagram;if(me!==null){var ue=me.lastInput;if(ue.key==="Up"||ue.key==="Down"||ue.key==="Left"||ue.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},bn.prototype._getAllParts=function(){var me=new Array;return this.diagram.nodes.each(function(ue){me.push(ue)}),this.diagram.parts.each(function(ue){me.push(ue)}),me},bn.prototype._arrowKeyMove=function(){var me=this.diagram,ue=me.lastInput,ce=0,zn=0;if(ue.control||ue.meta)ce=1,zn=1;else if(me.grid!==null){var Xn=me.grid.gridCellSize;zn=Xn.width,ce=Xn.height}me.startTransaction("arrowKeyMove"),me.selection.each(function(ni){ue.key==="Up"?ni.move(new go.Point(ni.actualBounds.x,ni.actualBounds.y-ce)):ue.key==="Down"?ni.move(new go.Point(ni.actualBounds.x,ni.actualBounds.y+ce)):ue.key==="Left"?ni.move(new go.Point(ni.actualBounds.x-zn,ni.actualBounds.y)):ue.key==="Right"&&ni.move(new go.Point(ni.actualBounds.x+zn,ni.actualBounds.y))}),me.commitTransaction("arrowKeyMove")},bn.prototype._arrowKeySelect=function(){var me=this.diagram,ue=me.lastInput,ce=null;ue.key==="Up"?ce=this._findNearestPartTowards(270):ue.key==="Down"?ce=this._findNearestPartTowards(90):ue.key==="Left"?ce=this._findNearestPartTowards(180):ue.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(ue.shift?ce.isSelected=!0:ue.control||ue.meta?ce.isSelected=!ce.isSelected:me.select(ce))},bn.prototype._findNearestPartTowards=function(me){var ue=this.diagram.selection.first();if(ue===null)return null;for(var ce=ue.actualBounds.center,zn=this._getAllParts(),Xn=1/0,ni=ue,$e=0;$e<zn.length;$e++){var In=zn[$e];if(In!==ue&&In.canSelect()){var wi=In.actualBounds.center,Mi=ce.directionPoint(wi),Gi=this._angleCloseness(Mi,me);if(Gi<=45){var Ht=ce.distanceSquaredPoint(wi);Ht*=1+Math.sin(Gi*Math.PI/180),Ht<Xn&&(Xn=Ht,ni=In)}}}return ni},bn.prototype._angleCloseness=function(me,ue){return Math.min(Math.abs(ue-me),Math.min(Math.abs(ue+360-me),Math.abs(ue-360-me)))},bn.prototype._arrowKeyTree=function(){var me=this.diagram,ue=me.selection.first();if(ue instanceof go.Node){var ce=me.lastInput;if(ce.key==="Right"){if(!ue.isTreeLeaf)if(!ue.isTreeExpanded)me.commandHandler.canExpandTree(ue)&&me.commandHandler.expandTree(ue);else{var zn=this._sortTreeChildrenByY(ue).first();zn!==null&&me.select(zn)}}else if(ce.key==="Left")if(!ue.isTreeLeaf&&ue.isTreeExpanded)me.commandHandler.canCollapseTree(ue)&&me.commandHandler.collapseTree(ue);else{var Xn=ue.findTreeParentNode();Xn!==null&&me.select(Xn)}else if(ce.key==="Up"){var Xn=ue.findTreeParentNode();if(Xn!==null){var ni=this._sortTreeChildrenByY(Xn),$e=ni.indexOf(ue);if($e>0){for(var In=ni.elt($e-1);In!==null&&In.isTreeExpanded&&!In.isTreeLeaf;){var wi=this._sortTreeChildrenByY(In);In=wi.last()}In!==null&&me.select(In)}else me.select(Xn)}}else if(ce.key==="Down")if(ue.isTreeExpanded&&!ue.isTreeLeaf){var zn=this._sortTreeChildrenByY(ue).first();zn!==null&&me.select(zn)}else for(;ue!==null;){var Xn=ue.findTreeParentNode();if(Xn===null)break;var ni=this._sortTreeChildrenByY(Xn),$e=ni.indexOf(ue);if($e<ni.length-1){me.select(ni.elt($e+1));break}else ue=Xn}var Mi=me.selection.first();Mi!==null&&me.scrollToRect(Mi.actualBounds)}},bn.prototype._sortTreeChildrenByY=function(me){var ue=new go.List().addAll(me.findTreeChildrenNodes());return ue.sort(function(ce,zn){var Xn=ce.location,ni=zn.location;return Xn.y<ni.y?-1:Xn.y>ni.y?1:Xn.x<ni.x?-1:Xn.x>ni.x?1:0}),ue},bn.prototype.copyToClipboard=function(me){go.CommandHandler.prototype.copyToClipboard.call(this,me),this._lastPasteOffset.set(this.pasteOffset)},bn.prototype.pasteFromClipboard=function(){var me=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(me,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),me},Object.defineProperty(bn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(me){if(me!=="move"&&me!=="select"&&me!=="scroll"&&me!=="tree"&&me!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+me);this._arrowKeyBehavior=me}}),Object.defineProperty(bn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(me){if(!(me instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+me);this._pasteOffset.set(me)}});var hi=bn,Ot=Nt(63720),Pt=Nt(5269),St=Nt(38986),kt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Rt=Nt(48790),At=Nt(59301),Yt=(me,ue,ce)=>new Promise((zn,Xn)=>{var ni=wi=>{try{In(ce.next(wi))}catch(Mi){Xn(Mi)}},$e=wi=>{try{In(ce.throw(wi))}catch(Mi){Xn(Mi)}},In=wi=>wi.done?zn(wi.value):Promise.resolve(wi.value).then(ni,$e);In((ce=ce.apply(me,ue)).next())});function Me({onCancel:me,callback:ue}){let ce=(0,Ft.useRef)(),zn=(0,Ft.useRef)(),Xn=(0,Ft.useRef)(),ni=(0,Ft.useRef)(!1);const $e=(0,Ft.useRef)(!1),[In,wi]=(0,Ft.useState)(0);function Mi(){const Ht=le.bx.make,de={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"};ce.current=new le.S0(zn.current,{padding:20,grid:Ht(le.s_,"Grid",Ht(le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Rn=>{var fi=Rn.diagram.commandHandler.addTopLevelParts(Rn.diagram.selection,!0);fi||Rn.diagram.currentTool.doCancel()},commandHandler:Ht(hi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Rn=>{var fi=Rn.subject;fi.location=fi.location.copy().snapToGridPoint(Rn.diagram.grid.gridOrigin,Rn.diagram.grid.gridCellSize),setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Rn=>{var fi=Rn.subject;setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Rn=>{var fi=Rn.parameter.part;fi.invalidateConnectedLinks();var ci=Rn.subject;Rn.diagram.toolManager.linkingTool.isForwards?ci.toNode.invalidateConnectedLinks():ci.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=Ht(le.NB,"Auto",{locationSpot:le.z6.Center,locationObjectName:"SHAPE",desiredSize:new le.$u(120,60),minSize:new le.$u(40,40),resizable:!0,resizeCellSize:new le.$u(10,10),rotatable:!0},new le.KX("location","loc",le.E9.parse).makeTwoWay(le.E9.stringify),new le.KX("desiredSize","size",le.$u.parse).makeTwoWay(le.$u.stringify),Ht(le.bn,{name:"SHAPE",fill:de.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:le.z6.AllSides,toSpot:le.z6.AllSides},new le.KX("figure"),new le.KX("fill"),new le.KX("stroke","borderColor"),new le.KX("strokeWidth","thickness"),new le.KX("strokeDashArray","dash")),Ht(le.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ht(le.al,{margin:1,textAlign:"center",overflow:le.al.OverflowEllipsis,editable:!0},new le.KX("text").makeTwoWay(),new le.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=Ht("ToolTip",Ht(le.s_,"Vertical",{maxSize:new le.$u(200,NaN)},Ht(le.al,{font:"bold 10pt sans-serif",textAlign:"center"},new le.KX("text")),Ht(le.al,{font:"10pt sans-serif",textAlign:"center"},new le.KX("text","details"))));function wn(Rn,fi){var ci=(Ei,Zi)=>{Ei.handled=!0,Ei.diagram.model.commit(tr=>{var sr=Zi.part.adornedPart,dr=new le.E9().setRectSpot(sr.actualBounds,Rn);dr.subtract(sr.location),dr.scale(2,2),dr.x+=Math.sign(dr.x)*130,dr.y+=Math.sign(dr.y)*130,dr.add(sr.location),dr.snapToGridPoint(Ei.diagram.grid.gridOrigin,Ei.diagram.grid.gridCellSize);var gr=tr.copyNodeData(sr.data);tr.setGroupKeyForNodeData(gr,tr.getGroupKeyForNodeData(sr.data)),tr.addNodeData(gr);var tn={from:sr.key,to:tr.getKeyForNodeData(gr)};tr.addLinkData(tn);var Br=Ei.diagram.findNodeForData(gr);Br.location=dr,Ei.diagram.select(Br),setTimeout(()=>{Ei.diagram.commandHandler.editTextBlock()},20)})};return Ht(le.bn,{figure:fi,alignment:Rn,alignmentFocus:Rn.opposite(),width:Rn.equals(le.z6.Top)||Rn.equals(le.z6.Bottom)?25:18,height:Rn.equals(le.z6.Top)||Rn.equals(le.z6.Bottom)?18:25,fill:"orange",stroke:de.white,strokeWidth:4,mouseEnter:(Ei,Zi)=>Zi.fill="dodgerblue",mouseLeave:(Ei,Zi)=>Zi.fill="orange",isActionable:!0,click:ci,contextClick:ci})}function Bn(Rn){return Ht(le.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:(fi,ci)=>ci.fill="dodgerblue",mouseLeave:(fi,ci)=>ci.fill="orange",click:(fi,ci)=>{fi.diagram.commandHandler.showContextMenu(ci.part.adornedPart)}},Rn||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Ht(le.uz,"Spot",Ht(le.Vm,{padding:10}),wn(le.z6.Top,"TriangleUp"),wn(le.z6.Left,"TriangleLeft"),wn(le.z6.Right,"TriangleRight"),wn(le.z6.Bottom,"TriangleDown"),Bn({alignment:new le.z6(.75,0)}));function ke(Rn,fi){return(ci,Ei)=>{ci.handled=!0,ci.diagram.model.commit(Zi=>{Zi.set(Ei.part.adornedPart.data,Rn,fi)})}}function vn(Rn,fi){return fi||(fi="color"),Ht(le.bn,{width:16,height:16,stroke:"lightgray",fill:Rn,margin:1,background:"transparent",mouseEnter:(ci,Ei)=>Ei.stroke="dodgerblue",mouseLeave:(ci,Ei)=>Ei.stroke="lightgray",click:ke(fi,Rn),contextClick:ke(fi,Rn)})}function un(){return[Ht("ContextMenuButton",Ht(le.s_,"Horizontal",vn(de.white,"fill"),vn(de.beige,"fill"),vn(de.extralightblue,"fill"),vn(de.extralightred,"fill"))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",vn(de.lightgray,"fill"),vn(de.lightgreen,"fill"),vn(de.lightblue,"fill"),vn(de.lightred,"fill")))]}function Pn(){return[Ht("ContextMenuButton",Ht(le.s_,"Horizontal",vn(de.black),vn(de.green),vn(de.blue),vn(de.red))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",vn(de.white),vn(de.magenta),vn(de.purple),vn(de.orange)))]}function $n(Rn,fi){return fi||(fi="thickness"),Ht(le.bn,"LineH",{width:16,height:16,strokeWidth:Rn,margin:1,background:"transparent",mouseEnter:(ci,Ei)=>Ei.background="dodgerblue",mouseLeave:(ci,Ei)=>Ei.background="transparent",click:ke(fi,Rn),contextClick:ke(fi,Rn)})}function Dn(Rn,fi){return fi||(fi="dash"),Ht(le.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Rn,margin:1,background:"transparent",mouseEnter:(ci,Ei)=>Ei.background="dodgerblue",mouseLeave:(ci,Ei)=>Ei.background="transparent",click:ke(fi,Rn),contextClick:ke(fi,Rn)})}function Un(){return[Ht("ContextMenuButton",Ht(le.s_,"Horizontal",$n(1),$n(2),$n(3),$n(4))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Dn(null),Dn([2,4]),Dn([4,4])))]}function Wn(Rn,fi){return fi||(fi="figure"),Ht(le.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Rn,margin:1,background:"transparent",mouseEnter:(ci,Ei)=>Ei.fill="dodgerblue",mouseLeave:(ci,Ei)=>Ei.fill="lightgray",click:ke(fi,Rn),contextClick:ke(fi,Rn)})}ce.current.nodeTemplate.contextMenu=Ht("ContextMenu",Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Wn("Rectangle"),Wn("RoundedRectangle"),Wn("Ellipse"),Wn("Diamond"))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Wn("Parallelogram2"),Wn("ManualOperation"),Wn("Procedure"),Wn("Cylinder1"))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Wn("Terminator"),Wn("CreateRequest"),Wn("Document"),Wn("TriangleDown"))),un(),Pn(),Un()),ce.current.groupTemplate=Ht(le.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:le.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Rn,fi)=>{var ci=fi.addMembers(fi.diagram.selection,!0);ci||fi.diagram.currentTool.doCancel()},avoidable:!1},new le.KX("location","loc",le.E9.parse).makeTwoWay(le.E9.stringify),Ht(le.s_,"Auto",{name:"BODY"},Ht(le.bn,{parameter1:10,fill:de.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:le.z6.AllSides,toSpot:le.z6.AllSides},new le.KX("fill"),new le.KX("stroke","color"),new le.KX("strokeWidth","thickness"),new le.KX("strokeDashArray","dash")),Ht(le.Vm,{background:"transparent",margin:20})),Ht(le.al,{alignment:le.z6.Top,alignmentFocus:le.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new le.KX("text"),new le.KX("stroke","color"))),ce.current.groupTemplate.selectionAdornmentTemplate=Ht(le.uz,"Spot",Ht(le.s_,"Auto",Ht(le.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ht(le.Vm,{margin:1.5})),Bn({alignment:le.z6.TopRight,alignmentFocus:le.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Ht("ContextMenu",un(),Pn(),Un()),ce.current.linkTemplate=Ht(le.rU,{layerName:"Foreground",routing:le.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new le.KX("fromSpot","fromSpot",le.z6.parse),new le.KX("toSpot","toSpot",le.z6.parse),new le.KX("fromShortLength","dir",Rn=>Rn>=1?10:0),new le.KX("toShortLength","dir",Rn=>Rn>=1?10:0),new le.KX("points").makeTwoWay(),Ht(le.bn,{strokeWidth:2},new le.KX("stroke","color"),new le.KX("strokeWidth","thickness"),new le.KX("strokeDashArray","dash")),Ht(le.bn,{segmentIndex:0,segmentOffset:new le.E9(15,0),segmentOrientation:le.rU.OrientAlong,alignmentFocus:le.z6.Right,figure:"circle",width:10,strokeWidth:0},new le.KX("fill","color"),new le.KX("visible","dir",Rn=>Rn===1)),Ht(le.bn,{segmentIndex:-1,segmentOffset:new le.E9(-10,6),segmentOrientation:le.rU.OrientPlus90,alignmentFocus:le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new le.KX("fill","color"),new le.KX("visible","dir",Rn=>Rn>=1),new le.KX("width","thickness",Rn=>7+3*Rn),new le.KX("height","thickness",Rn=>7+3*Rn),new le.KX("segmentOffset","thickness",Rn=>new le.E9(-15,4+1.5*Rn))),Ht(le.bn,{segmentIndex:0,segmentOffset:new le.E9(15,-6),segmentOrientation:le.rU.OrientMinus90,alignmentFocus:le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new le.KX("fill","color"),new le.KX("visible","dir",Rn=>Rn===2),new le.KX("width","thickness",Rn=>7+3*Rn),new le.KX("height","thickness",Rn=>7+3*Rn),new le.KX("segmentOffset","thickness",Rn=>new le.E9(-15,4+1.5*Rn))),Ht(le.al,{alignmentFocus:new le.z6(0,1,-4,0),editable:!0},new le.KX("text").makeTwoWay(),new le.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Ht(le.uz,Ht(le.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:bi(2)},new le.KX("pathPattern","thickness",bi)),Bn({alignmentFocus:new le.z6(0,0,-6,-4)}));function bi(Rn){return Ht(le.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Rn+4).toString()+" H3"})}function Pi(Rn){var fi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Rn===0?fi="M0 0 M16 16 M0 8 L16 8":Rn===2&&(fi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ht(le.bn,{geometryString:fi,margin:2,background:"transparent",mouseEnter:(ci,Ei)=>Ei.background="dodgerblue",mouseLeave:(ci,Ei)=>Ei.background="transparent",click:ke("dir",Rn),contextClick:ke("dir",Rn)})}function Ci(Rn){var fi=(ci,Ei)=>{ci.handled=!0,ci.diagram.model.commit(Zi=>{var tr=Ei.part.adornedPart;Zi.set(tr.data,Rn?"toSpot":"fromSpot",le.z6.stringify(le.z6.AllSides)),(Rn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return Ht(le.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ci,Ei)=>Ei.background="dodgerblue",mouseLeave:(ci,Ei)=>Ei.background="transparent",click:fi,contextClick:fi})}function je(Rn,fi){var ci=0,Ei=le.z6.RightSide;Rn.equals(le.z6.Top)?(ci=270,Ei=le.z6.TopSide):Rn.equals(le.z6.Left)?(ci=180,Ei=le.z6.LeftSide):Rn.equals(le.z6.Bottom)&&(ci=90,Ei=le.z6.BottomSide),fi||(ci-=180);var Zi=(tr,sr)=>{tr.handled=!0,tr.diagram.model.commit(dr=>{var gr=sr.part.adornedPart;dr.set(gr.data,fi?"toSpot":"fromSpot",le.z6.stringify(Ei)),(fi?gr.toNode:gr.fromNode).invalidateConnectedLinks()})};return Ht(le.bn,{alignment:Rn,alignmentFocus:Rn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ci,background:"transparent",mouseEnter:(tr,sr)=>sr.background="dodgerblue",mouseLeave:(tr,sr)=>sr.background="transparent",click:Zi,contextClick:Zi})}ce.current.linkTemplate.contextMenu=Ht("ContextMenu",Pn(),Un(),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Pi(0),Pi(1),Pi(2))),Ht("ContextMenuButton",Ht(le.s_,"Horizontal",Ht(le.s_,"Spot",Ci(!1),je(le.z6.Top,!1),je(le.z6.Left,!1),je(le.z6.Right,!1),je(le.z6.Bottom,!1)),Ht(le.s_,"Spot",{margin:new le.Zt(0,0,0,2)},Ci(!0),je(le.z6.Top,!0),je(le.z6.Left,!0),je(le.z6.Right,!0),je(le.z6.Bottom,!0)))));const $i=`{ "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 or=["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 Fr(Rn){return console.log("shapeName:",Rn),or.indexOf(Rn)>=0}var Ue=new le.YI(Xn.current,{maxSelectionCount:1,linkTemplate:Ht(le.rU,{locationSpot:le.z6.Center,selectionAdornmentTemplate:Ht(le.uz,"Link",{locationSpot:le.z6.Center},Ht(le.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ht(le.bn,{toArrow:"Standard",stroke:null}))},{routing:le.rU.AvoidsNodes,curve:le.rU.JumpOver,corner:5,toShortLength:4},new le.KX("points"),Ht(le.bn,{isPanelMain:!0,strokeWidth:2}),Ht(le.bn,{toArrow:"Standard",stroke:null})),model:new le.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...le.bn.getFigureGenerators().toArray().map(Rn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Rn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Rn){var fi;const ci=Rn.subject.part;var Ei=(fi=document.activeElement)==null?void 0:fi.value;typeof Ei=="string"&&Ei.trim()===""&&ce.current.model.commit(function(Zi){Zi.set(ci.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Ue.nodeTemplate=Ht(le.NB,"Auto",{locationSpot:le.z6.Center},new le.KX("location","location",le.E9.parse).makeTwoWay(le.E9.stringify),Ht(le.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 le.KX("stroke").makeTwoWay(),new le.KX("fill").makeTwoWay(),new le.KX("figure")),Ht(le.al,{margin:new le.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new le.$u(16,16),maxSize:new le.$u(10,NaN),textAlign:"center",editable:!0},new le.KX("key").makeTwoWay())),setTimeout(()=>{ce.current.grid=Ht(le.s_,"Grid",Ht(le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ht(le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Gi=()=>Yt(this,null,function*(){var Ht,de=ce.current.makeImage();const wn=yield(0,St.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:de.src,file_data:JSON.stringify({login:(Ht=(0,Rt.eY)())==null?void 0:Ht.login,data:JSON.parse(ce.current.model.toJson())})}});ue({src:wn.url})});return(0,Ft.useEffect)(()=>(setTimeout(()=>{Mi()},500),wi(In+1),()=>{ce.current=null}),[]),At.createElement("div",{ref:$e,className:"body-overflow-initial"},At.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!In,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(ln.Z,null,At.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(Pt.Z,{onClick:()=>{var Ht,de,wn=ce.current.selection.first();if(ni.current=!ni.current,document.activeElement&&wn){let Bn=(de=(Ht=document.activeElement)==null?void 0:Ht.value)==null?void 0:de.trim();typeof Bn=="string"&&ce.current.model.commit(function(ke){ke.set(wn.data,"text",Bn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}wi(In+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:me},At.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ni.current?"none":"block"},className:kt.flowChartWrp},At.createElement("div",{style:{display:"flex",height:"100%"}},At.createElement("div",{style:{width:"300px",height:"100%"}},At.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),At.createElement("div",{style:{height:"calc(100% - 50px)"},className:kt.myPaletteDiv,ref:Xn})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:zn,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement(ne.ZP,{size:"large",onClick:Gi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var be=Me,We=Nt(47889),pe=Nt(71051);const ve=We.ZP.Group,xe={margin:"0 8px"};var Te=({callback:me,onCancel:ue})=>{function ce(zn){me(zn)}return Ft.createElement(Ut.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},Ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ft.createElement("span",{style:xe},"\u5355\u5143\u683C\u6570\uFF1A"),Ft.createElement("span",{style:xe},"\u884C\u6570"),Ft.createElement(Ut.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ft.createElement(pe.Z,null)),Ft.createElement("span",{style:xe},"\u5217\u6570"),Ft.createElement(Ut.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ft.createElement(pe.Z,null))),Ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ft.createElement("span",{style:xe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ft.createElement(Ut.default.Item,{name:"align"},Ft.createElement(ve,null,Ft.createElement(We.ZP,{value:"default"},Ft.createElement("i",{className:"fa fa-align-justify"})),Ft.createElement(We.ZP,{value:"left"},Ft.createElement("i",{className:"fa fa-align-left"})),Ft.createElement(We.ZP,{value:"center"},Ft.createElement("i",{className:"fa fa-align-center"})),Ft.createElement(We.ZP,{value:"right"},Ft.createElement("i",{className:"fa fa-align-right"}))))),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(ne.ZP,{type:"ghost",onClick:ue},"\u53D6\u6D88")))},Ke=Nt(71411),xn=Nt(43001),_e=Nt.n(xn),Fe=(0,Ft.forwardRef)(({use3d:me,width:ue,height:ce,callback:zn,showSaveButton:Xn},ni)=>{const $e=(0,Ft.useRef)(),In=(0,Ft.useRef)(),[wi,Mi]=(0,Ft.useState)(!1),Gi=(0,Ft.useRef)({id:$e,appName:"graphing",width:ue||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ft.useEffect)(()=>{In.current=new(_e())(Gi.current,!0),window.onload=function(){In.current.inject("applet_container")}},[]);const Ht=()=>{var de=window.ggbApplet.getPNGBase64(1,!0,72);return zn&&zn(de),de};return(0,Ft.useEffect)(()=>{Gi.current.appName=wi?"3D":"graphing",In.current.inject("applet_container")},[wi]),(0,Ft.useEffect)(()=>{Mi(me)},[me]),(0,Ft.useImperativeHandle)(ni,()=>({getImgData:Ht})),Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:$e}),Ft.createElement(ln.Z,{align:"middle"},Ft.createElement(Pt.Z,{flex:1},Ft.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:wi,onChange:de=>Mi(de)})),Ft.createElement(Pt.Z,null,Ft.createElement(ne.ZP,{size:"large",onClick:Ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ze=Nt(76562),Je=Nt(6767);const jn="link",Sn="upload-image",Mn="add-flowchart",Hn="draw-image",yi="add-flowchart",Jn="code-block",xi="add-table",Vi="------------",Ii={default:Vi,left:`:${Vi}`,center:`:${Vi}:`,right:`${Vi}:`};var Wi=Nt(37808);function Ji(){}let er=0;const ji=1e4,Ai="\u2581",nr="@\u2581\u2581@",Ct="@\u2581@",li=`
|
|
**\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`,pi=["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 Yn(me){return/^\d+$/.test(me)?`${me}px`:me}const ri=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vi={[ri+"-B"]:"bold",[ri+"-I"]:"italic"},Ri={[jn]:"\u6DFB\u52A0\u94FE\u63A5",[Jn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[Hn]:"\u6DFB\u52A0\u753B\u56FE",[Mn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[xi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ni=({defaultValue:me="",onChange:ue,width:ce="100%",height:zn=400,miniToolbar:Xn=!1,isFocus:ni=!1,watch:$e,insertTemp:In,mode:wi="markdown",id:Mi="markdown-editor-id",showResizeBar:Gi=!1,noStorage:Ht=!1,showNullButton:de=!1,showNullProgramButton:wn=!1,hidetoolBar:Bn=!1,fullScreen:ke=!1,onBlur:vn,onCMBeforeChange:un,onFullScreen:Pn,className:$n="",disablePaste:Dn=!1,disabled:Un=!1,disabledFill:Wn=!1,placeholder:bi="",values:Pi="",extraUse:Ci})=>{const[je,$i]=(0,Ft.useState)(null),[or,Fr]=(0,Ft.useState)(me),[Ue,Rn]=(0,Ft.useState)($e),[fi,ci]=(0,Ft.useState)(ke),[Ei,Zi]=(0,Ft.useState)(""),[tr,sr]=(0,Ft.useState)(0),[dr,gr]=(0,Ft.useState)(zn),[tn,Br]=(0,Ft.useState)(!1),[en,ki]=(0,Ft.useState)(0),[vr,yr]=(0,Ft.useState)(0),Wr=(0,Ft.useRef)(),Pr=(0,Ft.useRef)(),ir=(0,Ft.useRef)(),Kr=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{const ii=window.scrollY||window.pageYOffset;Fr(Pi),je==null||je.setValue(Pi),window.scrollTo(0,ii)},[Pi]),(0,Ft.useEffect)(()=>{Pn==null||Pn(fi)},[fi]),(0,Ft.useEffect)(()=>{if(Wr.current){let ii=function(Ve,gi){var Di;if(Dn){gi.preventDefault();return}const lr=gi.clipboardData;if(lr){const Xi=lr.types.toString(),kr=lr.items;if(Xi==="Files"||lr.types.indexOf("Files")>-1){if(gi.preventDefault(),wi=="stex")return;try{let br=kr[1];((Di=kr[0])==null?void 0:Di.kind)==="file"&&(br=kr[0]);const Lr=br.getAsFile(),Dr=Lr.name.split(".").pop();(0,Ae.I)(Lr,Nr=>{var _r,Ce,Mr;Nr.id?((_r=Lr==null?void 0:Lr.type)==null?void 0:_r.indexOf("image"))>-1?Gn.replaceSelection(`<img width="100%" src="/api/attachments/${Nr.id}?type=${Nr.content_type})" alt="" />`):((Ce=Lr==null?void 0:Lr.type)==null?void 0:Ce.indexOf("video"))>-1?Gn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Nr.id}"></video>`):((Mr=Lr==null?void 0:Lr.type)==null?void 0:Mr.indexOf("pdf"))>-1?Gn.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):pi.includes(Dr)?Gn.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):Gn.replaceSelection(`[${Lr.name}](/api/attachments/${Nr.id}?type=${Nr.content_type})`):(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(br){Je.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Gn=we().fromTextArea(Wr.current,{mode:wi,lineNumbers:!Xn,lineWrapping:!0,value:me,autoCloseTags:!0,autoCloseBrackets:!0});return Gn.on("keyup",function(Ve,gi){gi.keyCode===8&&(Ve.getValue()==""?Gn.setOption("placeholder",bi):Gn.setOption("placeholder",null))}),Gn.on("keydown",function(Ve,gi){if(gi.keyCode===8){var Di=an(Ve);Di&&gi.preventDefault()}}),ni&&Gn.focus(),Gn.on("paste",ii),Un&&Gn.on("beforeChange",function(Ve,gi){(gi.origin==="paste"||gi.origin==="+input")&&gi.cancel()}),$i(Gn),()=>{Gn.off("paste",ii)}}},[]);const Ee=(0,Ft.useCallback)(()=>{if(Pr.current)try{}catch(ii){console.log(ii,"---- to set md editor body height")}},[dr,Pr,fi]);(0,Ft.useEffect)(()=>{function ii(){let Gn=new Ie.Z(Ve=>{for(let gi of Ve)(gi.target.offsetHeight>0||gi.target.offsetWidth>0)&&(Ee(),je.setSize("100%","100%"),je.refresh())});return Gn.observe(Wr.current.parentElement),Gn}if(je){const Gn=ii();return()=>{var Ve,gi;(Ve=Wr.current)!=null&&Ve.parentElement&&Gn.unobserve((gi=Wr.current)==null?void 0:gi.parentElement)}}},[je,Ee]),(0,Ft.useEffect)(()=>{if(je){let ii=[];for(const[Gn,Ve]of Object.entries(vi)){let gi={[Gn]:()=>{Pe(Ve)}};ii.push(gi),je.addKeyMap(gi)}return()=>{for(let Gn of ii)je.removeKeyMap(Gn)}}},[je]),(0,Ft.useEffect)(()=>{ke!==fi&&ci(ke)},[ke]),(0,Wi.Z)(()=>{if(!Ht&&tr>0){let ii=new Date().getTime(),Gn=window.sessionStorage.getItem(Mi);ii>=tr+ji&&(!Gn||Gn!==or)&&(window.sessionStorage.setItem(Mi,or),Br(!0))}},ji),(0,Ft.useEffect)(()=>{Rn($e)},[je,$e]),(0,Ft.useEffect)(()=>{je&&ni&&je.focus()},[je,ni]),(0,Ft.useEffect)(()=>{if(Ue&&je){let ii=function(Ve){let gi=Ve.target;if(Kr.current){let Di=gi.scrollTop/gi.scrollHeight;Kr.current.scrollTop=Kr.current.scrollHeight*Di}};const Gn=je.getScrollerElement();return Gn.addEventListener("scroll",ii),()=>{Gn.removeEventListener("scroll",ii)}}},[je,Ue]),(0,Ft.useEffect)(()=>{if(je&&un){let ii=function(Gn,Ve){un(Gn,Ve)};return je.on("beforeChange",ii),()=>{je.off("beforeChange",ii)}}},[je,un]),(0,Ft.useEffect)(()=>{if(je&&vn){let ii=function(){vn(je.getValue())};return je.on("blur",ii),()=>{je.off("blur",ii)}}},[je,vn]);function an(ii,Gn){var Ve=ii.getDoc(),gi=Ve.getCursor(),Di=Ve.getLine(gi.line),lr=Di.charAt(gi.ch-1),Xi=Di.lastIndexOf("@\u2581@",gi.ch),kr=Di.lastIndexOf("@\u2581\u2581@",gi.ch),br=Xi>kr?Xi:kr,Lr=Xi>kr?3:4;if(nr.indexOf(lr)===-1)return null;if(console.log("change1:",Gn,ii,Di,gi,br,Xi,kr,lr),br>=0&&gi.ch-br<5){var Dr=br+Lr;return Ve.replaceRange("",{line:gi.line,ch:br},{line:gi.line,ch:Dr}),{line:gi.line,ch:Dr}}return null}(0,Ft.useEffect)(()=>{if(je){let ii=function(Gn,Ve){const gi=Gn.getValue();Fr(gi),sr(new Date().getTime()),Gn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ue&&(wn?ue(gi,kn(gi)):ue(gi))};return je.on("change",ii),()=>{je.off("change",ii)}}},[je,ue]),(0,Ft.useEffect)(()=>{if(je)if(me==null)je.setValue(""),Fr("");else{const ii=window.scrollY||window.pageYOffset;me!==je.getValue()&&(je.setValue(me),Fr(me),je.setCursor(Un?1:je.lineCount(),0),window.scrollTo(0,ii))}},[je,me]);const Pe=(0,Ft.useCallback)(ii=>{const Gn=je.getCursor(),Ve=je.getSelection();let gi=Ve.split(`
|
|
`);switch(ii){case"bold":return je.replaceSelection("**"+Ve+"**"),Ve===""&&je.setCursor(Gn.line,Gn.ch+2),je.focus();case"italic":return je.replaceSelection("*"+Ve+"*"),Ve===""&&je.setCursor(Gn.line,Gn.ch+1),je.focus();case"code":return je.replaceSelection("`"+Ve+"`"),Ve===""&&je.setCursor(Gn.line,Gn.ch+1),je.focus();case"inline-latex":return Zi("inline-latex"),je.focus();case"latex":return je.replaceSelection("```latex\n"+Ve+"\n```"),je.setCursor(Gn.line+1,Ve.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
|
|
`),je.focus();case"list-ul":return Ve===""?je.replaceSelection("- "+Ve):je.replaceSelection(gi.map(Di=>Di===""?"":`- ${Di}`).join(`
|
|
`)),je.focus();case"list-ol":return Ve===""?je.replaceSelection("1. "+Ve):je.replaceSelection(gi.map((Di,lr)=>Di===""?"":`${lr+1}. ${Di}`).join(`
|
|
`)),je.focus();case"add-null-ch":return Ve===""&&je.setCursor(Gn.line,Gn.ch),je.replaceSelection(Ai),je.focus();case"add-signal":return Ve===""&&je.setCursor(Gn.line,Gn.ch),je.replaceSelection(Ct),je.focus();case"add-multiple":return Ve===""&&je.setCursor(Gn.line,Gn.ch),je.replaceSelection(nr),je.focus();case"inster-template-1":return Ve===""&&je.setCursor(Gn.line,Gn.ch),je.replaceSelection(li),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return Rn(!Ue),je.focus();case"trigger-full-screen":return ci(!fi),je.focus();case jn:Zi(jn);return;case Jn:Zi(Jn);return;case Sn:Zi(Sn);return;case Hn:Zi(Hn);return;case"maths-latex":Zi("maths-latex");return;case Mn:Zi(Mn);return;case xi:Zi(xi);return;default:throw new Error}},[je,Ue,fi]),Mt=(0,Ft.useCallback)((ii,Gn)=>{var Ve,gi,Di,lr,Xi,kr;switch(Zi(""),Ei){case jn:const{title:_r,link:Ce}=ii;return je.replaceSelection(`[${_r}](${Ce})`),je.focus();case Jn:const{language:Mr,content:Ar}=ii;return je.replaceSelection(["```"+Mr,Ar,"```"].join(`
|
|
`)),je.focus();case"maths-latex":for(var br=atob(ii),Lr=new Uint8Array(br.length),Dr=0;Dr<br.length;Dr++)Lr[Dr]=br.charCodeAt(Dr);var Nr=new Blob([Lr],{type:"image/png"});(0,Ae.I)(Nr,Bo=>{Bo.id?je.replaceSelection(``):(Bo==null?void 0:Bo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":je.replaceSelection("`$$"+ii+"$$`");break;case Sn:case Hn:case yi:const{src:qi,alt:pr}=ii,rr=Gn,Hr=(Di=(gi=(Ve=rr==null?void 0:rr.name)==null?void 0:Ve.split("."))==null?void 0:gi.pop)==null?void 0:Di.call(gi);return((lr=rr==null?void 0:rr.type)==null?void 0:lr.indexOf("image"))>-1||!(rr!=null&&rr.type)?rr!=null&&rr.align||rr!=null&&rr.width?je.replaceSelection(`<p style="text-align:${rr.align||"initial"}"><img width="${rr.width?rr.width+"%":"initial"}" src="${qi}" alt="${pr||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${qi}" alt="${pr||""}" />`):((Xi=rr==null?void 0:rr.type)==null?void 0:Xi.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${qi}"></video>`):((kr=rr==null?void 0:rr.type)==null?void 0:kr.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${qi}?type=${rr.type}&disposition=inline" target="_blank">${rr.name}</a>`):pi.includes(Hr)?je.replaceSelection(`<a href="${qi}?type=office&disposition=inline" target="_blank">${rr.name}</a>`):je.replaceSelection(`[${rr.name}](${qi})`),je.focus();case xi:const{row:Gr,col:cr,align:eo}=ii;let ga=`
|
|
`;for(let Bo=0;Bo<Gr;Bo++){let Ps=[],wa=[];for(let Hi=0;Hi<cr;Hi++)Bo===1&&wa.push(Ii[eo]),Ps.push(" ");Bo===1&&(ga+=`| ${wa.join(" | ")} |
|
|
`),ga+=`| ${Ps.join(cr===1?"":" | ")} |
|
|
`}return je.replaceSelection(ga+`
|
|
`),je.focus();default:throw new Error}},[je,Ei]),An=(0,Ft.useMemo)(()=>{switch(Ei){case jn:return Ft.createElement(pn,{callback:Mt,onCancel:Nn});case Jn:return Ft.createElement(mn.Z,{callback:Mt,onCancel:Nn});case Sn:return Ft.createElement(Ae.Z,{callback:Mt,onCancel:Nn});case Mn:return Ft.createElement(be,{callback:Mt,onCancel:Nn});case xi:return Ft.createElement(Te,{callback:Mt,onCancel:Nn});case"maths-latex":return Ft.createElement(Fe,{showSaveButton:!0,callback:Mt});case"inline-latex":return Ft.createElement(ze.Z,{showSaveButton:!0,callback:Mt});default:return null}},[Ei]);function Nn(){Zi("")}(0,Ft.useEffect)(()=>{if(ir.current){let ii=function(Xi){Di=!0,lr=Xi.pageY},Gn=function(){Di=!1},Ve=function(Xi){if(Di){let kr=Xi.pageY-lr;kr<0&&(kr=0),kr>300&&(kr=300);let br=zn+kr+"px";gr(br)}},gi=ir.current,Di=!1,lr=0;return gi.addEventListener("mousedown",ii),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",Gn),()=>{gi.removeEventListener("mousedown",ii),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",Gn)}}},[je,ir]),(0,Ft.useEffect)(()=>{gr(zn)},[zn]);const ui=Yn(ce),ai=Yn(dr),Qn={width:ui,height:ai},nn=(0,Ft.useMemo)(()=>{if(tr){let ii=new Date(tr),Gn=ii.getHours(),Ve=ii.getMinutes(),gi=ii.getSeconds();return Gn=Gn<10?"0"+Gn:Gn,Ve=Ve<10?"0"+Ve:Ve,gi=gi<10?"0"+gi:gi,`${Gn}:${Ve}:${gi}`}return 0},[tr]),kn=ii=>{const Gn=[];if(wn){let Ve=-1;ii=ii.replace(/(@▁▁@|@▁@)/g,function(gi,Di,lr){Gn.push({multiLine:gi!==Ct})})}return Gn};function Tn(){window.sessionStorage.removeItem(Mi),Br(!1),sr(0)}function yn(){Br(!1),sr(0),je.setValue(window.sessionStorage.getItem(Mi))}(0,Ft.useEffect)(()=>{Ri[Ei]&&Ei!==Hn&&Ei!==Mn&&setTimeout(()=>{const ii=document.getElementsByClassName("markdown-popup-form")[0],Gn=window.innerWidth/2-ii.offsetWidth/2,Ve=window.innerHeight/2-ii.offsetHeight/2;ki(Gn),yr(Ve)},0)},[Ei]);const On=ii=>{ii.preventDefault();const Gn=ii.clientX-en,Ve=ii.clientY-vr;document.body.onmousemove=gi=>{let Di=gi.clientX-Gn,lr=gi.clientY-Ve;const Xi=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth-Xi.offsetWidth,br=window.innerHeight-Xi.offsetHeight;Di=Math.max(0,Math.min(Di,kr)),lr=Math.max(0,Math.min(lr,br)),Si(gi.clientX,gi.clientY,Gn,Ve)&&(ki(Di),yr(lr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Si=(ii,Gn,Ve,gi)=>{const Di=document.body.clientHeight,lr=document.body.clientWidth;return ii<20&&Ve>ii||ii>lr-20&&Ve<ii||Gn<20&&gi>Gn||Gn>Di-20&&gi<Gn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"markdown-editor-wrapper",ref:Pr},Ft.createElement("div",{className:`markdown-editor-container ${$n} ${Ue?"on-preview":""} ${Xn?"mini":""} ${fi?"full-screen":""}`,style:Qn},Ft.createElement(_t,{insertTemp:In,watch:Ue,fullScreen:fi,showNullButton:de,showNullProgramButton:wn,onActionCallback:Pe,hidetoolBar:Bn,extraUse:Ci}),Ft.createElement("div",{className:"markdown-editor-body"},Ft.createElement("div",{className:"codemirror-container"},Ft.createElement("textarea",{ref:Wr,placeholder:bi})),Ue?Ft.createElement("div",{ref:Kr,className:"preview-container"},wi==="stex"&&Ft.createElement(te,{value:or}),wi!=="stex"&&Ft.createElement(qe.Z,{disabledFill:Wn,showProgramFill:wn,value:or})):null))),Gi?Ft.createElement("a",{ref:ir,className:"editor-resize"}):null,Ei===Hn&&Ft.createElement(cn,{callback:Mt,onCancel:Nn}),Ei===Mn&&Ft.createElement(be,{callback:Mt,onCancel:Nn}),Ft.createElement(Jt.Z,null,Ri[Ei]&&Ei!==Hn&&Ei!==Mn?Ft.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:en,top:vr},title:Ft.createElement("div",{style:{cursor:"move"},onMouseDown:On},Ri[Ei]),open:!0,onCancel:Nn,footer:null,destroyOnClose:!0,width:Ei===Mn?"1200px":null,height:Ei===Mn?"80vh":null,className:"markdown-popup-form"},An):null))}},17077:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Tt},I:function(){return _t}});var Ft=Nt(28284),se=Nt(6767),we=Nt(37568),Ie=Nt(77736),ge=Nt(71051),zt=Nt(47889),ie=Nt(99571),Re=Nt(46699),he=Nt(59301),Vt=Nt(59301),qe=Object.defineProperty,te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ct=(Jt,Ut,fe)=>Ut in Jt?qe(Jt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Jt[Ut]=fe,lt=(Jt,Ut)=>{for(var fe in Ut||(Ut={}))nt.call(Ut,fe)&&ct(Jt,fe,Ut[fe]);if(Bt)for(var fe of Bt(Ut))et.call(Ut,fe)&&ct(Jt,fe,Ut[fe]);return Jt},pt=(Jt,Ut)=>te(Jt,He(Ut));const{useForm:vt}=Ft.default,xt={width:280,marginRight:10},Et={labelCol:{span:5},wrapperCol:{span:19}};var Tt=({callback:Jt,onCancel:Ut})=>{const[fe]=vt();let ne=(0,he.useRef)();function Ne(Ln){ne.current.width=fe.getFieldValue("width"),ne.current.align=fe.getFieldValue("align"),Jt(Ln,ne.current)}function Ge(Ln,hn){if(Ln.status===-1){se.ZP.error(Ln.message);return}fe.setFieldsValue({src:`/api/attachments/${Ln.id}`,type:hn.type})}function Ye(Ln){let hn=Ln.target.files[0];ne.current=hn,_t(hn,Ge)}return Vt.createElement(Ft.default,pt(lt({form:fe},Et),{className:"upload-image-panel",onFinish:Ne,style:{width:470,overflow:"hidden"}}),Vt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Vt.createElement("div",{className:"flex-container"},Vt.createElement(Ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Vt.createElement(we.default,{style:xt})),Vt.createElement(jt,{onFileChange:Ye}))),Vt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Vt.createElement(we.default,{style:{width:264}})),Vt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Vt.createElement(Ie.Z,null,Vt.createElement(Ft.default.Item,{name:"width",style:{margin:0}},Vt.createElement(ge.Z,{style:{width:264}})),Vt.createElement("span",{className:"ml8"},"%"))),Vt.createElement(Ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Vt.createElement(zt.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"}]})),Vt.createElement("aside",null,Vt.createElement(Ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Vt.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Vt.createElement(ie.ZP,{type:"default",onClick:Ut},"\u53D6\u6D88"))))};function jt({onFileChange:Jt}){return Vt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Vt.createElement("input",{type:"file",onChange:Jt}))}function _t(Jt,Ut){if(!Jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let fe=new FormData;fe.append("editormd-image-file",Jt),fe.append("file_param_name","editormd-image-file"),fe.append("byxhr","true");var ne=new window.XMLHttpRequest;ne.withCredentials=!0,ne.addEventListener("load",function(Ne){Ut(JSON.parse(Ne.target.responseText),Jt)},!1),ne.addEventListener("error",function(Ne){console.error(Ne)},!1),ne.open("POST",`${Re.KI}/api/attachments.json`),ne.send(fe)}},91558:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return we}});var Ft=Nt(59301),se=Nt(4676);class we extends Ft.Component{constructor(ge){super(ge);const zt=window.document;this.node=zt.createElement("div"),zt.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,se.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Cn,_n,Nt){"use strict";Nt.d(_n,{SV:function(){return Me},ZP:function(){return Yt}});var Ft=Nt(59301),se=Nt(76374);const we={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"]},Ie={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"]},ge={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(`
|
|
`)}]},zt={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(`
|
|
`)}]},ie={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 Re=Nt(53184),he=Nt.n(Re),Vt=Object.defineProperty,qe=Object.defineProperties,te=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,et=(be,We,pe)=>We in be?Vt(be,We,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[We]=pe,ct=(be,We)=>{for(var pe in We||(We={}))Bt.call(We,pe)&&et(be,pe,We[pe]);if(He)for(var pe of He(We))nt.call(We,pe)&&et(be,pe,We[pe]);return be},lt=(be,We)=>qe(be,te(We)),pt=(be,We,pe)=>new Promise((ve,xe)=>{var Te=_e=>{try{xn(pe.next(_e))}catch(Zn){xe(Zn)}},Ke=_e=>{try{xn(pe.throw(_e))}catch(Zn){xe(Zn)}},xn=_e=>_e.done?ve(_e.value):Promise.resolve(_e.value).then(Te,Ke);xn((pe=pe.apply(be,We)).next())});const vt={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"]}},xt=(be,We)=>We.map(pe=>({label:pe,kind:be.languages.CompletionItemKind.Keyword,insertText:pe})),Et=be=>Object.keys(vt.tables).map(We=>({label:We,kind:be.languages.CompletionItemKind.Variable,insertText:We})),Tt=(be,We)=>{const pe=vt.tables[be];return pe?pe.map(ve=>({label:ve,kind:We.languages.CompletionItemKind.Field,insertText:ve})):[]};function jt(be,We,pe,ve,xe){let Te=We.getWordUntilPosition(pe),Ke={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},xn=ve.map(_e=>({label:_e,kind:be.languages.CompletionItemKind.Keyword,insertText:_e,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ke}));return xe.map(_e=>{xn.push(lt(ct({},_e),{range:Ke}))}),xn}var _t=be=>{vt.languages.map(xe=>(be.languages.registerDocumentFormattingEditProvider(xe,{provideDocumentFormattingEdits(Te,Ke,xn){return pt(this,null,function*(){const _e=he()(Te.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:Te.getFullModelRange(),text:_e}]})}}),xe));const We=ge.quickKey.map(xe=>({label:xe.label,kind:be.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet})),pe=zt.quickKey.map(xe=>({label:xe.label,kind:be.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ve=Ie.quickKey.map(xe=>({label:xe.label,kind:be.languages.CompletionItemKind.Method,insertText:xe.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet}));be.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xe,Te){var Ke=xe.getWordUntilPosition(Te),xn={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...ge.keywords.map(Zn=>({label:Zn,kind:be.languages.CompletionItemKind.Function,documentation:Zn,insertText:Zn,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn})),...ge.quickKey.map(Zn=>({label:Zn.label,kind:be.languages.CompletionItemKind.Function,documentation:Zn.content,insertText:_e.startsWith("#")?Zn.content.replace(/#/,""):Zn.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn}))]}}}),be.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xe,Te){var Ke=xe.getWordUntilPosition(Te),xn={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn};return{suggestions:[...we.keywords.map(_e=>({label:_e,kind:be.languages.CompletionItemKind.Function,documentation:_e,insertText:_e,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn}))]}}}),be.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xe,Te){var Ke=xe.getWordUntilPosition(Te),xn={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...Ie.keywords.map(Zn=>({label:Zn,kind:be.languages.CompletionItemKind.Function,documentation:Zn,insertText:Zn,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn})),...Ie.quickKey.map(Zn=>({label:Zn.label,kind:be.languages.CompletionItemKind.Function,documentation:Zn.content,insertText:_e.startsWith("#")?Zn.content.replace(/#/,""):Zn.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn}))]}}}),be.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xe,Te){var Ke=xe.getWordUntilPosition(Te),xn={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...ie.keywords.map(Zn=>({label:Zn,kind:be.languages.CompletionItemKind.Function,documentation:Zn,insertText:Zn,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn})),...ie.quickKey.map(Zn=>({label:Zn.label,kind:be.languages.CompletionItemKind.Function,documentation:Zn.content,insertText:_e.startsWith("#")?Zn.content.replace(/#/,""):Zn.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn}))]}}}),be.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xe,Te){var Ke=xe.getWordUntilPosition(Te),xn={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ke.startColumn,endColumn:Ke.endColumn},_e=xe.getLineContent(Te.lineNumber).substring(Ke.startColumn-2,Ke.endColumn);return{suggestions:[...zt.keywords.map(Zn=>({label:Zn,kind:be.languages.CompletionItemKind.Function,documentation:Zn,insertText:Zn,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn})),...zt.quickKey.map(Zn=>({label:Zn.label,kind:be.languages.CompletionItemKind.Function,documentation:Zn.content,insertText:_e.startsWith("#")?Zn.content.replace(/#/,""):Zn.content,insertTextRules:be.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xn}))]}}})};const Jt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ut=Object.defineProperty,fe=(be,We,pe)=>We in be?Ut(be,We,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[We]=pe,ne=(be,We,pe)=>fe(be,typeof We!="symbol"?We+"":We,pe);const Ne=class px{constructor(We,pe,ve){this.placeholder=We,this.editor=pe,this.monaco=ve,pe.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)}};ne(Ne,"ID","editor.widget.placeholderHint");var Ye=Ne,Ln=Nt(96236),hn=Nt(6767),Be=Nt(25399),sn=Nt(89392),ee=Nt(49535),Kt=Nt(56102),Oe=Object.defineProperty,pn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Vn=(be,We,pe)=>We in be?Oe(be,We,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[We]=pe,Le=(be,We)=>{for(var pe in We||(We={}))Qe.call(We,pe)&&Vn(be,pe,We[pe]);if(Ae)for(var pe of Ae(We))ln.call(We,pe)&&Vn(be,pe,We[pe]);return be},cn=(be,We)=>pn(be,mn(We)),le=(be,We)=>{var pe={};for(var ve in be)Qe.call(be,ve)&&We.indexOf(ve)<0&&(pe[ve]=be[ve]);if(be!=null&&Ae)for(var ve of Ae(be))We.indexOf(ve)<0&&ln.call(be,ve)&&(pe[ve]=be[ve]);return pe},bn=(be,We,pe)=>new Promise((ve,xe)=>{var Te=_e=>{try{xn(pe.next(_e))}catch(Zn){xe(Zn)}},Ke=_e=>{try{xn(pe.throw(_e))}catch(Zn){xe(Zn)}},xn=_e=>_e.done?ve(_e.value):Promise.resolve(_e.value).then(Te,Ke);xn((pe=pe.apply(be,We)).next())});function hi(be){return/^\d+$/.test(be)?`${be}px`:be}function Ot(){}let Pt=!1;const St={"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 kt(be=[]){let We=be;if(Array.isArray(be)){for(let pe=0;pe<be.length;pe++){let ve=St[be[pe]];if(ve)return ve}return We[0]}return St[We]||We}let Rt=null;const At=()=>bn(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(be){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",be)}});var Yt=be=>{var We=be,{width:pe="100%",height:ve="100%",value:xe,language:Te="javascript",style:Ke={},options:xn={},overrideServices:_e={},theme:Zn="vs-dark",onEditBlur:Fe,isCopy:ze=!1,onSave:Je,autoHeight:jn=!1,forbidCopy:Sn=!1,onChange:Mn=Ot,editorDidMount:Hn=Ot,onFocus:yi=Ot,onBreakPoint:Jn=Ot,breakPointValue:xi=[],filename:Vi="educoder.txt",errorLine:Ii,errorContent:Wi="",highlightLine:Ji,openBreakPoint:er=!1,placeholder:ji="",showMiniMap:Ai=!0}=We,nr=le(We,["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 Ct=(0,Ft.useRef)(),li=(0,Ft.useRef)({}),pi=(0,Ft.useRef)(),Yn=(0,Ft.useRef)(),ti=(0,Ft.useRef)([]),ri=(0,Ft.useRef)(!1),vi=(0,Ft.useRef)(),Ri=(0,Ft.useRef)(),Ni=(0,Ft.useRef)(!1),[me,ue]=(0,Ft.useState)(!1);function ce(){let un;return Ct.current&&(un=new se.Z(Pn=>{for(let $n of Pn)($n.target.offsetHeight>0||$n.target.offsetWidth>0)&&li.current.instance.layout()}),un.observe(Ct.current)),un}function zn(){hn.ZP.warning({content:decodeURIComponent(Jt),key:"monaco-editor-tip"})}const Xn=()=>{let un=li.current.instance;if(xe!=null&&un&&me){const Pn=un.getModel();Pn&&xe!==Pn.getValue()&&(Pt=!0,Pn.setValue(xe),un.layout(),Pt=!1)}};(0,Ft.useEffect)(()=>{const un=ee.Z.subscribe("formatDocument",Pn=>{var $n;let Dn=li.current.instance;($n=Dn==null?void 0:Dn.getAction)==null||$n.call(Dn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Pn=>{Mn(Pn)},un},[]),(0,Ft.useEffect)(()=>{var un;let Pn=li.current.instance;Yn.current&&clearTimeout(Yn.current),Yn.current=setTimeout(()=>{Xn()},500),xe&&(xe!=null&&xe.length)&&((un=Pn==null?void 0:Pn.updateOptions)==null||un.call(Pn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xe.split(/\r\n|\r|\n/g).length))+3,5)}))},[xe,me,li.current]),(0,Ft.useEffect)(()=>{if(Ii&&li.current&&li.current.instance){let Pn=li.current.instance;Pn.changeViewZones(function($n){var Dn=document.createElement("div");Dn.style.padding="10px 20px",Dn.style.width="calc(100% - 20px)",Dn.className="my-error-line-wrp",Dn.innerHTML=Wi,$n.addZone({afterLineNumber:Ii||11,heightInLines:3,domNode:Dn})});var un={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}};Pn.addOverlayWidget(un),Pn.revealPositionInCenter({lineNumber:20,column:1})}},[Ii,li.current,me]);const ni=(un="",Pn)=>{if(!un||un.trim()==="")return!0;const Dn=li.current.instance.getModel().getLineTokens(Pn);let Un=!1;for(let Wn=0;Wn<2;Wn++)Dn.getStandardTokenType(Wn)===1&&(Un=!0);return Un};(0,Ft.useEffect)(()=>{var un;const Pn=(un=li.current)==null?void 0:un.instance;if(Pn&&me&&Sn){const $n=Pn.onDidBlurEditorWidget(()=>{Ni.current=!1}),Dn=Pn.onDidFocusEditorText(()=>{Ni.current=!0});return()=>{$n.dispose(),Dn.dispose()}}},[li.current,me,Sn]),(0,Ft.useEffect)(()=>{var un;if((un=li.current)!=null&&un.instance&&me&&er){let Pn=li.current.instance,$n=Pn.getModel();if(!$n)return;(()=>{var Rn;let fi=[],ci=[];const Ei=$n.getAllDecorations();for(let tr of Ei)tr.options.className==="highlighted-line"&&(fi.push((Rn=tr==null?void 0:tr.range)==null?void 0:Rn.startLineNumber),ci.push(tr==null?void 0:tr.id));if(Ji===fi[0])return;$n.deltaDecorations(ci,[]);const Zi=$n.getLineCount();Ji&&Ji<=Zi&&(Pn.deltaDecorations([],[{range:new Rt.Range(Ji,1,Ji,$n.getLineMaxColumn(Ji)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Pn.revealLineInCenter(Ji))})();const Un=(Rn=!1)=>{var fi;let ci=[],Ei=[];const Zi=$n.getAllDecorations();for(let tr of Zi)tr.options.linesDecorationsClassName==="breakpoints-select"&&(ci.push((fi=tr==null?void 0:tr.range)==null?void 0:fi.startLineNumber),Ei.push(tr==null?void 0:tr.id));if(Rn)return{lines:ci,ids:Ei};Jn(ci)},Wn=Rn=>bn(void 0,null,function*(){let fi={range:new Rt.Range(Rn,1,Rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $n.deltaDecorations([],[fi]),Un()}),bi=Rn=>bn(void 0,null,function*(){let fi=[];const ci=Pn.getLineDecorations(Rn);for(let Ei of ci)Ei.options.linesDecorationsClassName==="breakpoints-select"&&fi.push(Ei.id);yield $n.deltaDecorations(fi,[]),Un()}),Pi=Rn=>{let fi=Pn.getLineDecorations(Rn);for(let ci of fi)if(ci.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,sn.isEqual)(xi,Un(!0).lines)){$n.deltaDecorations(Un(!0).ids,[]);const Rn=xi.map(fi=>({range:new Rt.Range(fi,1,fi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$n.deltaDecorations([],Rn)}const Ci=Pn.onDidChangeModelContent(Rn=>{let fi=Pn.getPosition();if(fi){let ci=fi.lineNumber;clearTimeout(Ri.current),Ri.current=setTimeout(()=>{ni($n.getLineContent(ci),ci)?bi(ci):Pi(ci)?(bi(ci),Wn(ci)):Un()},100)}}),je=Pn.onMouseDown(Rn=>{var fi,ci,Ei;if(Rn.target.detail&&((Ei=(ci=(fi=Rn.target)==null?void 0:fi.element)==null?void 0:ci.className)!=null&&Ei.includes("line-numbers"))){let Zi=Rn.target.position.lineNumber;if(ni($n.getLineContent(Zi),Zi))return;Pi(Zi)?bi(Zi):Wn(Zi)}}),$i=Rn=>{let fi={range:new Rt.Range(Rn,1,Rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ti.current=Pn.deltaDecorations(ti.current,[fi])},or=()=>{ti.current=Pn.deltaDecorations(ti.current,[])},Fr=Pn.onMouseMove(Rn=>{var fi,ci,Ei;if(or(),Rn.target.detail&&((Ei=(ci=(fi=Rn.target)==null?void 0:fi.element)==null?void 0:ci.className)!=null&&Ei.includes("line-numbers"))){let Zi=Rn.target.position.lineNumber;if(ni($n.getLineContent(Zi),Zi))return;$i(Zi)}}),Ue=Pn.onMouseLeave(()=>{or()});return()=>{Ci.dispose(),je.dispose(),Fr.dispose(),Ue.dispose()}}},[li.current,me,xi,Ji,er,Te]),(0,Ft.useEffect)(()=>{var un;(un=li.current)!=null&&un.instance&&er&&li.current.instance.setPosition({lineNumber:0,column:0})},[Ji]);function $e(){let un=li.current.instance;if(un){const Pn=un.getSelection(),$n=li.current.pastePos||{},Dn=new Rt.Range($n.startLineNumber||Pn.endLineNumber,$n.startColumn||Pn.endColumn,$n.endLineNumber||Pn.endLineNumber,$n.endColumn||Pn.endColumn);setTimeout(()=>{un.executeEdits("",[{range:Dn,text:""}])},300)}}function In(un){(window.navigator.platform.match("Mac")?un.metaKey:un.ctrlKey)&&un.keyCode==83&&(un.preventDefault(),Je())}const wi=()=>{if(jn&&li.current.instance){const un=li.current.instance.getContentHeight();ke(un<ve?ve:un)}else ke(ve)};function Mi(un){var Pn=document.createEvent("MouseEvents");Pn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),un.dispatchEvent(Pn)}const Gi=un=>{if(!Ni.current)return;const{keyCode:Pn,ctrlKey:$n,metaKey:Dn,target:Un,type:Wn}=un;return(Wn==="paste"||(Pn===67||Pn===86)&&(Dn||$n))&&Un.nodeName==="TEXTAREA"&&(zn(),un.preventDefault()),!1};function Ht(un,Pn){var $n=window.URL||window.webkitURL||window,Dn=new Blob([Pn]),Un=document.createElementNS("http://www.w3.org/1999/xhtml","a");Un.href=$n.createObjectURL(Dn),Un.download=un,Mi(Un)}(0,Ft.useEffect)(()=>{wi()},[wi]),(0,Ft.useEffect)(()=>{Ct.current&&!me&&Promise.all([Nt.e(8909),Nt.e(6656)]).then(Nt.bind(Nt,71448)).then(un=>{try{Rt=un,li.current.instance=Rt.editor.create(Ct.current,{value:xe,language:kt(Te),theme:Zn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ai||!1}},_e);const Pn=li.current.instance;let Un=[...Ln.BH._menuItems].find(Ci=>Ci[0]._debugName=="EditorContext")[1],Wn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bi=(Ci,je)=>{var $i,or;let Fr=Ci._first;do je.includes((or=($i=Fr.element)==null?void 0:$i.command)==null?void 0:or.id)&&Ci._remove(Fr);while(Fr=Fr.next)};if(Hn(Pn,Rt),setTimeout(()=>{wi(),li.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ht(Vi||"educoder.txt",Pn.getValue())}})},500),li.current.subscription=Pn.onDidChangeModelContent(Ci=>{ri.current?clearTimeout(vi.current):(wi(),Mn(Pn.getValue(),Ci)),vi.current=setTimeout(()=>{ri.current=!1},500)}),window.Monaco||_t(Rt,kt(Te)),Sn&&(bi(Un,Wn),Ct.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Gi),window.removeEventListener("paste",Gi),window.addEventListener("keydown",Gi),window.addEventListener("paste",Gi)),window.Monaco=Rt,Fe&&Pn.onDidBlurEditorWidget(()=>{Fe(Pn.getValue())}),yi&&Pn.onDidFocusEditorText(()=>{Sn&&At(),yi(Pn.getValue())}),Sn){At();try{Pn.onDidPaste(Ci=>{const je=Pn.getSelection(),$i=li.current.pastePos||{},or=new Rt.Range($i.startLineNumber||je.endLineNumber,$i.startColumn||je.endColumn,$i.endLineNumber||je.endLineNumber,$i.endColumn||je.endColumn);Pn.executeEdits("",[{range:Ci.range,text:""}])})}catch(Ci){}}let Pi=ce();return ji&&typeof ji=="string"&&new Ye(ji,Pn,Rt),ue(!0),()=>{const Ci=li.current.instance;Ci.dispose();const je=Ci.getModel();je&&je.dispose(),li.current.subscription&&li.current.subscription.dispose(),Pi.unobserve(Ct.current)}}catch(Pn){}})},[]),(0,Ft.useEffect)(()=>{if(li.current.instance&&me)return document.addEventListener("keydown",In,!1),()=>{document.removeEventListener("keydown",In)}},[Je,me]),(0,Ft.useEffect)(()=>{let un=li.current.instance;if(un&&me){let Pn=kt(Te);Rt.editor.setModelLanguage(un.getModel(),Pn)}},[Te,me]),(0,Ft.useEffect)(()=>{li.current.instance&&me&&Rt.editor.setTheme(Zn)},[Zn,me]),(0,Ft.useEffect)(()=>{let un=li.current.instance;pi.current=xn,un&&me&&(un.updateOptions(Le({},xn)),setTimeout(()=>{un.getModel().updateOptions(Le({},xn))},200))},[JSON.stringify(xn),me]),(0,Ft.useEffect)(()=>{let un=li.current.instance;un&&me&&un.layout()},[pe,ve,me]);const[de,wn]=(0,Ft.useState)(hi(pe)),[Bn,ke]=(0,Ft.useState)(hi(ve)),vn=cn(Le({},Ke),{width:de,height:Bn,position:"relative"});return Ft.createElement("div",{className:"my-monaco-editor",ref:Ct,style:vn},ze&&Ft.createElement(Kt.CopyToClipboard,{text:xe,onCopy:()=>hn.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(Be.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ft.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ft.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Me({width:be="100%",height:We="100%",original:pe,modified:ve,language:xe,options:Te={}}){const Ke=(0,Ft.useRef)(),[xn,_e]=(0,Ft.useState)(null);function Zn(jn){let Sn;return Ke.current&&(Sn=new se.Z(Mn=>{for(let Hn of Mn)(Hn.target.offsetHeight>0||Hn.target.offsetWidth>0)&&jn.layout()}),Sn.observe(Ke.current)),Sn}(0,Ft.useEffect)(()=>(Ke.current&&Promise.all([Nt.e(8909),Nt.e(9404)]).then(Nt.bind(Nt,2550)).then(jn=>{Rt=jn;const Sn=Rt.editor.createDiffEditor(Ke.current,cn(Le({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},Te),{wordWrap:!0}));_e(Sn);let Mn=Zn(Sn);return()=>{Sn.dispose();const Hn=Sn.getModel();Hn&&Hn.dispose(),Mn.unobserve(Ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ft.useEffect)(()=>{xn&&xn.setModel({original:Rt.editor.createModel(pe,xe),modified:Rt.editor.createModel(ve,xe)})},[pe,ve,xe,xn]);const Fe=hi(be),ze=hi(We),Je={width:Fe,height:ze};return Ft.createElement("div",{className:"my-diff-editor",ref:Ke,style:Je})}},10661:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return qe}});var Ft={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"},se=Nt(29787),we=Nt(25399),Ie=Nt(92310),ge=Nt.n(Ie),zt=Nt(51257),ie=Nt(28426),Re=Nt(48790),he=Nt(59301),qe=({className:te,dataSource:He=[],col:Bt=4,right:nt,bottom:et=23,precision:ct=0,wrapWidth:lt=1200,trackEventItems:pt,loading:vt,onRemove:xt=()=>{},isCurrent:Et=!0,showAlias:Tt=!1})=>{const jt=Math.floor((lt-(Bt-1)*nt)/Bt),_t=[{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 he.createElement(se.Z,{spinning:vt},he.createElement("div",{className:ge()(Ft.list,te)},!!(He!=null&&He.length)&&(He==null?void 0:He.map((Jt,Ut)=>{var fe;const{name:ne,id:Ne,identifier:Ge,featured:Ye,school_name:Ln,image_url:hn,excellent:Be,is_plan:sn}=Jt;return he.createElement("div",{key:Ne,className:Ft.wrap,style:{width:jt,marginRight:(1+Ut)%Bt===0?0:nt+ct,marginBottom:et}},he.createElement("a",{className:Ft.li,onClick:ee=>{ee.preventDefault(),ee.stopPropagation(),pt&&(0,zt.L9)([pt]),(0,zt.xg)(`/paths/${Ge}`)}},he.createElement("div",{className:Ft.img},he.createElement("img",{className:Ft.cover,src:`${hn}`}),Et&&(0,Re.bg)()&&(Jt==null?void 0:Jt.studying)&&he.createElement("div",{className:`${Ft.movebq} user-path-items`,onClick:ee=>{ee.stopPropagation(),xt(Jt)}},he.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),he.createElement("span",{className:"c-red"},"\u79FB\u9664")),(fe=Jt==null?void 0:Jt.subject_tags)==null?void 0:fe.map((ee,Kt)=>{var Oe,pn;if(Kt===0){const Ae=(Oe=_t.find(Qe=>Qe.name==ee))==null?void 0:Oe.swimg;return he.createElement("img",{className:Ft.sign,src:Ae,style:{left:"-4px"}})}const mn=(pn=_t.find(Ae=>Ae.name==ee))==null?void 0:pn.ptimg;return he.createElement("img",{className:Ft.sign,src:mn,style:{left:`${48+52*(Kt-1)+2*Kt}px`}})}),he.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Jt==null?void 0:Jt.excellent)&&he.createElement("div",{className:Ft.bq},"\u5F00\u653E\u8BFE\u7A0B"))),he.createElement("div",{className:Ft.name},he.createElement(we.Z,{title:Tt&&(Jt!=null&&Jt.excellent_alias_name)?he.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ne}`,he.createElement("br",null),he.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Jt==null?void 0:Jt.excellent_alias_name}`)):ne},he.createElement("span",{className:Ft.e},Tt&&(Jt==null?void 0:Jt.excellent_alias_name)||ne))),he.createElement(we.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ln}`},he.createElement("div",{className:Ft.unit},he.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ln)),he.createElement("div",{className:Ft.tags},he.createElement("div",null,he.createElement(we.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),he.createElement("span",null,Jt.stages_count))),he.createElement(we.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),he.createElement("span",null,Jt.members_count)))))))})),!He.length&&he.createElement(ie.Z,null)))}},9148:function(Cn,_n,Nt){"use strict";Nt.d(_n,{jL:function(){return ge},w9:function(){return Oe},QD:function(){return Fe},cQ:function(){return hn.Z},op:function(){return xe},O5:function(){return pi},_b:function(){return Hn},t7:function(){return lt},Gi:function(){return Vn},YG:function(){return Qe},qp:function(){return qe},vr:function(){return jn},qE:function(){return xn},Je:function(){return xt},wb:function(){return Ln},cq:function(){return Ot},tp:function(){return Bt}});var Ft=Nt(59301),se={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"},we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurj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tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ge=({dataSource:Yn=[],img:ti,imgWidth:ri=346,title:vi,sunTitle:Ri,bannerExtraContent:Ni})=>Ft.createElement("div",{className:se.banner},Ft.createElement("div",{className:se.content},Ft.createElement("aside",null,Ft.createElement("p",null,Ft.createElement("b",null,vi),Ft.createElement("span",null,Ri)),Yn.length>0&&Ft.createElement("div",{className:se.btns},Yn.map((me,ue)=>Ft.createElement("div",{key:ue,onClick:me.click},me.name,me.sign?Ft.createElement("img",{src:we,width:39}):null))),Ni),ti&&Ft.createElement("img",{style:{marginTop:33,marginRight:38},src:ti,width:ri}))),zt={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"},ie=Nt(92310),Re=Nt.n(ie),he=Nt(89392),qe=({dataSource:Yn=[],value:ti,onChange:ri,onTitleChange:vi,className:Ri,title:Ni,titleWidth:me=41,style:ue={},fontColor:ce="#6A7283",showCount:zn})=>{const[Xn,ni]=(0,Ft.useState)(0),[$e,In]=(0,Ft.useState)(!1),wi=(0,Ft.useRef)(null),Mi=(0,Ft.useRef)(null);return(0,Ft.useEffect)(()=>{var Gi;Yn.length!==0&&(((Gi=wi==null?void 0:wi.current)==null?void 0:Gi.clientHeight)>97?ni(1):ni(0)),Yn.length===0&&ni(0),In(!1)},[Yn]),Ft.createElement("div",{className:Re()(zt.row,Ri),style:ue},Ft.createElement("div",{onClick:(0,he.throttle)(()=>vi==null?void 0:vi(),2e3),style:{width:me,marginTop:$e?12:4},className:`${zt.title} ${vi?"current":""}`},Ni),Ft.createElement("div",{className:$e?`${zt.tagsWrap} ${zt.tagsBorderWrap}`:zt.tagsWrap},Ft.createElement("div",{className:zt.bar,ref:Mi,style:Xn>0?{height:Xn===1?97:"auto",overflow:Xn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ft.createElement("div",{className:zt.tag,ref:wi},Yn==null?void 0:Yn.map(Gi=>Ft.createElement("span",{onClick:()=>ri(Gi.id),key:Gi.id,style:{color:ce},className:ti===Gi.id?zt.active:""},Ft.createElement("span",{title:Gi.name,className:zt.name},Gi.name),!!zn&&Ft.createElement("span",{className:zt.num},Gi.count))))),!!Xn&&Ft.createElement(Ft.Fragment,null,Xn===1?Ft.createElement("div",{onClick:()=>{var Gi;ni(2),((Gi=wi==null?void 0:wi.current)==null?void 0:Gi.clientHeight)>245?In(!0):In(!1)},className:zt.action},"\u5C55\u5F00",Ft.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ft.createElement("div",{onClick:()=>{Mi.current.scrollTop=0,ni(1),In(!1)},className:zt.action},"\u6536\u8D77",Ft.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},te={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Bt=({dataSource:Yn=[],value:ti,onChange:ri,className:vi,style:Ri={}})=>Ft.createElement("div",{style:Ri,className:Re()(te.tabs,vi)},Yn.map(Ni=>Ft.createElement("span",{onClick:()=>ri(Ni.id),className:ti===Ni.id?te.active:"",key:Ni.id},Ni.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=Nt(37568),lt=({dataSource:Yn=[],value:ti="",onChange:ri,onInputChange:vi=()=>{},className:Ri,style:Ni={},placeholder:me,allowClear:ue=!1})=>{var ce;const[zn,Xn]=(0,Ft.useState)(""),[ni,$e]=(0,Ft.useState)("");(0,Ft.useEffect)(()=>{var Mi;let Gi=ti;(Mi=JSON.stringify(ti))!=null&&Mi.includes("{")&&(Xn(ti.id),Gi=ti.value||"");try{$e(decodeURIComponent(Gi||""))}catch(Ht){$e(decodeURIComponent(Gi||""))}},[ti]);const In=()=>{ri(encodeURIComponent(ni),zn||null)},wi=Mi=>{Mi!==zn&&(Xn(Mi),ri(encodeURIComponent(ni),Mi))};return Ft.createElement("div",{className:Re()(nt.input,Ri),style:Ni},!!Yn.length&&Ft.createElement("div",{className:nt.dropdown},Ft.createElement("div",{className:nt.text},(ce=Yn.find(Mi=>Mi.id===zn))==null?void 0:ce.name,Ft.createElement("i",{className:"iconfont icon-zhankai4"}),Ft.createElement("b",{className:nt.b1}),Ft.createElement("b",{className:nt.b2})),Ft.createElement("div",{className:nt.menu},Yn.map((Mi,Gi)=>Ft.createElement("div",{key:Gi,onClick:()=>wi(Mi.id)},Mi.name)))),Ft.createElement(et.default,{onPressEnter:In,value:ni,onChange:Mi=>{$e(Mi.target.value),vi(encodeURIComponent(Mi.target.value),zn||null)},bordered:!1,placeholder:me}),Ft.createElement("i",{onClick:In,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"},xt=({value:Yn,onChange:ti,className:ri,total:vi,pageSize:Ri,style:Ni={}})=>{const me=Yn<2,ue=Yn>=Math.ceil(vi/Ri);return vi<=Ri?Ft.createElement(Ft.Fragment,null):Ft.createElement("div",{className:Re()(pt.quickPager,ri),style:Ni},Ft.createElement("div",{onClick:()=>{me||ti(Yn-1,"prev")},className:me?pt.disabled:""},"\u4E0A\u4E00\u9875"),Ft.createElement("div",{onClick:()=>{ue||ti(Yn+1,"next")},className:ue?pt.disabled:""},"\u4E0B\u4E00\u9875"))},Et={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"},Tt=Nt(29787),jt=Nt(25399),_t=Nt(58018),Jt=Nt(346),Ut=Nt(51257),fe=Nt(96908),ne=Nt(57177),Ne=Nt(81378),Ge=Nt(28426),Ln=({className:Yn,dataSource:ti=[],col:ri=4,right:vi,bottom:Ri=23,precision:Ni=0,wrapWidth:me=1200,trackEventItems:ue,loading:ce})=>{const zn=Math.floor((me-(ri-1)*vi)/ri);return Ft.createElement(Tt.Z,{spinning:ce},Ft.createElement("div",{className:Re()(Et.list,Yn)},!!ti.length&&ti.map((Xn,ni)=>{const{name:$e,id:In,identifier:wi,power:Mi,cover_image_id:Gi,pic:Ht}=Xn;return Ft.createElement("div",{className:Et.wrap,key:In,style:{width:zn,marginRight:(1+ni)%ri===0?0:vi+Ni,marginBottom:Ri}},Ft.createElement("a",{target:"_blank",href:`/shixuns/${wi}/challenges`,className:Et.li,onClick:de=>{de.preventDefault(),ue&&(0,Ut.L9)([ue]),Mi&&(0,Ut.xg)(`/shixuns/${wi}/challenges`)}},Ft.createElement("div",{className:Et.img},Ft.createElement("img",{className:Et.cover,src:`${Ht}`}),Xn.is_jupyter&&Ft.createElement("img",{className:Et.sign,src:fe}),Xn.is_jupyter_lab&&Ft.createElement("img",{className:Et.sign,src:ne}),Xn.is_unity_3d&&Ft.createElement("img",{className:Et.sign,src:Ne})),Ft.createElement("div",{className:Et.name},Ft.createElement(jt.Z,{title:$e||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ft.createElement("span",{className:Et.e},$e||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ft.createElement("div",{className:Et.tags},Ft.createElement(jt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ft.createElement("span",null,Xn.challenges_count))),!!Xn.myshixuns_count&&Ft.createElement(jt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ft.createElement("span",null,Xn.myshixuns_count))),Ft.createElement(jt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ft.createElement("span",null,Ft.createElement("span",null,Xn.level))),Ft.createElement("div",{className:Et.rate},Ft.createElement(_t.Z,{allowHalf:!0,disabled:!0,defaultValue:Xn.score_info}),Ft.createElement("span",null,"\xA0",Xn.score_info?`${Xn.score_info}\u5206`:"5\u5206")))),!Mi&&Ft.createElement("div",{className:Et.lockWrap},Ft.createElement("img",{src:`${Jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ft.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!ti.length&&Ft.createElement(Ge.Z,null)))},hn=Nt(10661),Be={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"},sn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/Uq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IsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ee=Nt(59301),Oe=({className:Yn,dataSource:ti=[],col:ri=4,right:vi,bottom:Ri=23,precision:Ni=0,wrapWidth:me=1200,trackEventItems:ue,loading:ce,handleVery:zn=()=>!0})=>{const Xn=Math.floor((me-(ri-1)*vi)/ri);return ee.createElement(Tt.Z,{spinning:ce},ee.createElement("div",{className:Re()(Be.list,Yn)},!!ti.length&&ti.map((ni,$e)=>{const{subject_identifier:In,id:wi,identifier:Mi,power:Gi}=ni,Ht=ni.is_public!=0&&ni.is_public;return ee.createElement("div",{className:Be.wrap,key:wi,style:{width:Xn,marginRight:(1+$e)%ri===0?0:vi+Ni,marginBottom:Ri}},ee.createElement("a",{className:Be.li,onClick:de=>{de.preventDefault(),zn(ni==null?void 0:ni.first_category_url)&&(ue&&(0,Ut.L9)([ue]),(0,Ut.xg)(ni.first_category_url))}},ee.createElement("div",{className:Be.top},ee.createElement(jt.Z,{title:ni.name},ee.createElement("div",{className:Be.name},ni.name)),ee.createElement("img",{className:Be.img,src:Jt.Z.IMG_SERVER+"/images/"+ni.avatar_url}),ee.createElement("div",{className:Be.text,title:ni.creator},ni.creator),In&&ee.createElement("div",{className:Be.btns},ee.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ee.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ht&&ee.createElement("div",{className:Be.sign},"\u516C\u5F00")),ee.createElement("div",{className:Be.bottom},ni.visits>0&&ee.createElement(jt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-liulanyan"}),ee.createElement("span",null,ni.visits))),ni.course_members_count>0&&ee.createElement(jt.Z,{title:"\u6210\u5458",placement:"bottom"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan"}),ni.course_members_count)),ni.tasks_count>0&&ee.createElement(jt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-zuoye"}),ni.tasks_count)),ni.is_end?ee.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ee.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ni.is_accessible&&ee.createElement("div",{className:Be.lockWrap},ee.createElement("img",{src:`${Jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!ti.length&&ee.createElement(Ge.Z,null)))},pn={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"},mn=Nt(25690),Qe=({dataSource:Yn=[],value:ti,onChange:ri,className:vi,style:Ri={},tabBarExtraContent:Ni})=>Ft.createElement("div",{className:Re()(pn.tabs,vi),style:Ri},Ft.createElement("div",{className:pn.tabsWrap},Yn.map((me,ue)=>!(me!=null&&me.hide)&&Ft.createElement("aside",{className:pn.tab,onClick:()=>{ri(me.id),me.link&&mn.history.push(me.link)},key:ue},Ft.createElement("div",{className:ti===me.id?pn.active:""},me.name),(me==null?void 0:me.resetCount)==null&&(me==null?void 0:me.total)!==void 0&&Ft.createElement("span",null,"\uFF08",me==null?void 0:me.total,"\uFF09"),(me==null?void 0:me.resetCount)!==void 0&&(me==null?void 0:me.total)!==void 0&&Ft.createElement(jt.Z,{title:(me==null?void 0:me.tip)!=null?me==null?void 0:me.tip:""},Ft.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ft.createElement("span",{style:{color:"#000"}},me==null?void 0:me.resetCount),"/",Ft.createElement("span",null,me==null?void 0:me.total),"\uFF09"))))),Ft.createElement("div",{className:pn.tabBar},Ni)),Vn=({className:Yn,style:ti={},children:ri})=>Ft.createElement("div",{className:Re()(Yn),style:ti},ri),Le={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"},cn=Nt(75727),le=Nt(93041);const bn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ot=({sortValue:Yn,dropValue:ti,className:ri,onSort:vi,onDrop:Ri,dataSource:Ni=bn})=>{var me;return Ft.createElement("div",{className:Re()(Le.orderWrap,ri)},Ft.createElement(cn.Z,{dropdownRender:()=>Ft.createElement(le.default,null,Ni.map((ue,ce)=>Ft.createElement(le.default.Item,{key:ce,onClick:()=>Ri(ue.id)},ue.name)))},Ft.createElement("span",{className:Le.orderTextWrap},(me=Ni.find(ue=>ti===ue.id))==null?void 0:me.name)),Ft.createElement("span",{className:Le.orderIconWrap},Ft.createElement("span",{className:Le.orderAsc},Ft.createElement("i",{className:Yn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Le.cursorPointer} ${Le.active}`:`iconfont icon-sanjiaoxing-up font12 ${Le.cursorPointer}`,onClick:()=>vi(Yn==="asc"?"desc":"asc")})),Ft.createElement("span",{className:Le.orderDesc},Ft.createElement("i",{className:Yn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Le.cursorPointer} ${Le.active}`:`iconfont icon-sanjiaoxing-down font12 ${Le.cursorPointer}`,onClick:()=>vi(Yn==="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"},St=Nt(99571),kt=Object.defineProperty,Rt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Me=(Yn,ti,ri)=>ti in Yn?kt(Yn,ti,{enumerable:!0,configurable:!0,writable:!0,value:ri}):Yn[ti]=ri,be=(Yn,ti)=>{for(var ri in ti||(ti={}))At.call(ti,ri)&&Me(Yn,ri,ti[ri]);if(Rt)for(var ri of Rt(ti))Yt.call(ti,ri)&&Me(Yn,ri,ti[ri]);return Yn},We=(Yn,ti)=>{var ri={};for(var vi in Yn)At.call(Yn,vi)&&ti.indexOf(vi)<0&&(ri[vi]=Yn[vi]);if(Yn!=null&&Rt)for(var vi of Rt(Yn))ti.indexOf(vi)<0&&Yt.call(Yn,vi)&&(ri[vi]=Yn[vi]);return ri},pe=(Yn,ti,ri)=>new Promise((vi,Ri)=>{var Ni=ce=>{try{ue(ri.next(ce))}catch(zn){Ri(zn)}},me=ce=>{try{ue(ri.throw(ce))}catch(zn){Ri(zn)}},ue=ce=>ce.done?vi(ce.value):Promise.resolve(ce.value).then(Ni,me);ue((ri=ri.apply(Yn,ti)).next())}),xe=Yn=>{var ti=Yn,{className:ri,style:vi,children:Ri,loading:Ni=!1,openLoading:me,onClick:ue=()=>{},size:ce="middle",shape:zn="round"}=ti,Xn=We(ti,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ni,$e]=(0,Ft.useState)(!1);return Ft.createElement(St.ZP,be({onClick:(0,he.throttle)(In=>pe(void 0,null,function*(){me&&$e(!0);try{yield ue(In)}catch(wi){console.log("error",wi)}me&&$e(!1)}),2e3,{leading:!0,trailing:!1}),className:Re()(Pt.btn,Pt[`${ce}-${zn}`],ri),style:vi,size:ce,shape:zn,loading:ni||Ni},Xn),Ri)},Te={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"},xn=({className:Yn,style:ti,children:ri=null,onClick:vi,title:Ri})=>Ft.createElement("div",{className:Re()(Te.head,Yn),style:ti},Ft.createElement("span",{className:"primary-hover",onClick:vi},Ft.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ft.createElement("b",{title:Ri},Ri),Ft.createElement("div",{className:Te.node},ri)),_e={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"},Fe=({confirmShow:Yn=!0,confirmTitle:ti,confirmClick:ri,cancelShow:vi=!0,cancelTitle:Ri,cancelClick:Ni,className:me,style:ue,confirmLoading:ce=!1})=>Ft.createElement("div",{className:Re()(_e.btns,me),style:ue},Yn&&Ft.createElement(St.ZP,{loading:ce,onClick:ri,type:"primary",className:_e.confirm},ti),vi&&Ft.createElement(St.ZP,{onClick:Ni,className:_e.cancel},Ri)),ze={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"},jn=({className:Yn,style:ti={},LeftContent:ri,children:vi,RightContent:Ri})=>Ft.createElement("div",{className:Re()(ze.fixedBottom,Yn),style:ti},Ft.createElement("div",{className:ze.wrap},Ft.createElement("div",{className:ze.left},ri),Ft.createElement("div",{className:ze.center},vi),Ft.createElement("div",{className:ze.right},Ri))),Sn={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"},Hn=({className:Yn,style:ti={},dataSource:ri=[]})=>Ft.createElement("div",{className:Re()(Sn.crumbs,Yn),style:ti},ri.map((vi,Ri)=>Ri<ri.length-1?Ft.createElement(Ft.Fragment,{key:Ri},vi.path||vi.onClick?Ft.createElement("span",{className:Sn.hover,onClick:vi!=null&&vi.onClick?vi.onClick:()=>mn.history.push(vi.path)},vi.name):Ft.createElement("span",null,vi.name),Ft.createElement("span",null,"\xA0",">","\xA0")):Ft.createElement("span",{key:Ri,style:{color:"#5F6368"}},vi.name))),yi=Nt(11938),Jn=Object.defineProperty,xi=Object.defineProperties,Vi=Object.getOwnPropertyDescriptors,Ii=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,er=(Yn,ti,ri)=>ti in Yn?Jn(Yn,ti,{enumerable:!0,configurable:!0,writable:!0,value:ri}):Yn[ti]=ri,ji=(Yn,ti)=>{for(var ri in ti||(ti={}))Wi.call(ti,ri)&&er(Yn,ri,ti[ri]);if(Ii)for(var ri of Ii(ti))Ji.call(ti,ri)&&er(Yn,ri,ti[ri]);return Yn},Ai=(Yn,ti)=>xi(Yn,Vi(ti)),nr=(Yn,ti)=>{var ri={};for(var vi in Yn)Wi.call(Yn,vi)&&ti.indexOf(vi)<0&&(ri[vi]=Yn[vi]);if(Yn!=null&&Ii)for(var vi of Ii(Yn))ti.indexOf(vi)<0&&Ji.call(Yn,vi)&&(ri[vi]=Yn[vi]);return ri};const{Countdown:Ct}=yi.default;var pi=Yn=>{var ti=Yn,{onChange:ri}=ti,vi=nr(ti,["onChange"]);const[Ri,Ni]=(0,Ft.useState)(null);(0,Ft.useEffect)(()=>{typeof Ri=="number"&&Ri>=0&&ri(Ri)},[Ri]);const me=ue=>{const ce=Math.floor(ue/1e3);Ni(ce)};return Ft.createElement(Ct,Ai(ji({},vi),{onChange:me}))}},37808:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return se}});var Ft=Nt(59301);function se(we,Ie){const ge=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{ge.current=we}),(0,Ft.useEffect)(()=>{function zt(){ge.current()}if(Ie!==null){let ie=setInterval(zt,Ie);return()=>clearInterval(ie)}},[Ie])}},80256:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Ot}});var Ft=Nt(59301),se=Nt(25690),we=Nt(82326),Ie=Nt(14566),ge=Nt(28284),zt=Nt(6767),ie=Nt(62957),Re=Nt(77019),he=Nt(5269),Vt=Nt(29787),qe=Nt(37568),te=Nt(1560),He=Nt(99571),Bt=Nt(346),nt=Nt(51941),et=Nt(21069),ct=Nt(51257),lt=Nt(79671),pt=Nt(17149),vt=Nt(29679),xt=Nt(19248),Et=Nt(98846),Tt={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},jt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Ut=(Pt,St)=>{var kt={};for(var Rt in Pt)_t.call(Pt,Rt)&&St.indexOf(Rt)<0&&(kt[Rt]=Pt[Rt]);if(Pt!=null&&jt)for(var Rt of jt(Pt))St.indexOf(Rt)<0&&Jt.call(Pt,Rt)&&(kt[Rt]=Pt[Rt]);return kt},fe=(Pt,St,kt)=>new Promise((Rt,At)=>{var Yt=We=>{try{be(kt.next(We))}catch(pe){At(pe)}},Me=We=>{try{be(kt.throw(We))}catch(pe){At(pe)}},be=We=>We.done?Rt(We.value):Promise.resolve(We.value).then(Yt,Me);be((kt=kt.apply(Pt,St)).next())});const ne=(Pt,St)=>St.some(kt=>kt.label.toLowerCase().indexOf(Pt.toLowerCase())>-1),Ne=qe.default.TextArea,Ge=Pt=>{var St=Pt,{account:kt,globalSetting:Rt,loading:At,dispatch:Yt,schoolName:Me,visible:be,onClose:We=()=>{},onSuccess:pe=()=>{}}=St,ve=Ut(St,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[xe]=ge.default.useForm();(0,Ft.useEffect)(()=>{xe.setFieldsValue({name:Me})},[Me]);const Te=Ke=>fe(void 0,null,function*(){const{name:xn,city:_e=[],address:Zn,remarks:Fe}=Ke||{},ze=yield Yt({type:"account/appplySchool",payload:{name:xn,province:_e[0],city:_e[1],address:Zn,remarks:Fe}});We(),ze&&(zt.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),pe(xn))});return Ft.createElement(ie.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:be,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},Ft.createElement(ge.default,{className:Tt.formWrap,form:xe,labelCol:{span:4},wrapperCol:{span:20},onFinish:Te},Ft.createElement(ge.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},Ft.createElement(qe.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),Ft.createElement("div",{className:`${Tt.flexRow} ${Tt.example}`},Ft.createElement("div",null,"\u793A\u4F8B\uFF1A"),Ft.createElement("div",{className:Tt.flexColumn},Ft.createElement("div",null,Ft.createElement(vt.Z,{style:{color:"rgb(82, 196, 26)"}}),Ft.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),Ft.createElement("div",null,Ft.createElement(xt.Z,{style:{color:"red"}}),Ft.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),Ft.createElement(ge.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},Ft.createElement(pt.Z,{allowClear:!0,size:"middle",options:Et.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:ne}})),Ft.createElement(ge.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},Ft.createElement(qe.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),Ft.createElement(ge.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},Ft.createElement(Ne,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),Ft.createElement("div",{className:Tt.footerWrap},Ft.createElement(ge.default.Item,null,Ft.createElement(He.ZP,{className:"mr5",size:"middle",onClick:()=>{We()}},"\u53D6\u6D88"),Ft.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:At["account/appplySchool"]},"\u4FDD\u5B58")))))};var Ye=(0,se.connect)(({account:Pt,loading:St,globalSetting:kt})=>({account:Pt,globalSetting:kt,loading:St.effects}))(Ge),Ln=Nt(82220),hn=Nt(89392),Be=Nt(59301),sn=Object.defineProperty,ee=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Ae=(Pt,St,kt)=>St in Pt?sn(Pt,St,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Pt[St]=kt,Qe=(Pt,St)=>{for(var kt in St||(St={}))pn.call(St,kt)&&Ae(Pt,kt,St[kt]);if(Oe)for(var kt of Oe(St))mn.call(St,kt)&&Ae(Pt,kt,St[kt]);return Pt},ln=(Pt,St)=>ee(Pt,Kt(St)),Vn=(Pt,St)=>{var kt={};for(var Rt in Pt)pn.call(Pt,Rt)&&St.indexOf(Rt)<0&&(kt[Rt]=Pt[Rt]);if(Pt!=null&&Oe)for(var Rt of Oe(Pt))St.indexOf(Rt)<0&&mn.call(Pt,Rt)&&(kt[Rt]=Pt[Rt]);return kt},Le=(Pt,St,kt)=>new Promise((Rt,At)=>{var Yt=We=>{try{be(kt.next(We))}catch(pe){At(pe)}},Me=We=>{try{be(kt.throw(We))}catch(pe){At(pe)}},be=We=>We.done?Rt(We.value):Promise.resolve(We.value).then(Yt,Me);be((kt=kt.apply(Pt,St)).next())});const cn=we.default.Option,le=Ie.default.Dragger;var bn=(Pt=>(Pt[Pt.Professor=1]="Professor",Pt[Pt.AssistantProfessor=2]="AssistantProfessor",Pt[Pt.Student=3]="Student",Pt))(bn||{});const hi=Pt=>{var St=Pt,{user:kt,account:Rt,globalSetting:At,loading:Yt,dispatch:Me,Scoid:be}=St,We=Vn(St,["user","account","globalSetting","loading","dispatch","Scoid"]),pe,ve;const[xe]=ge.default.useForm(),[Te,Ke]=(0,Ft.useState)({}),[xn,_e]=(0,Ft.useState)([]),[Zn,Fe]=(0,Ft.useState)([]),[ze,Je]=(0,Ft.useState)([]),[jn,Sn]=(0,Ft.useState)([]),[Mn,Hn]=(0,Ft.useState)(),[yi,Jn]=(0,Ft.useState)(),[xi,Vi]=(0,Ft.useState)(),[Ii,Wi]=(0,Ft.useState)(),[Ji,er]=(0,Ft.useState)(),ji=(0,Ft.useRef)((0,hn.throttle)(ue=>Ai(ue),1200,{leading:!0,trailing:!0})).current;(0,Ft.useEffect)(()=>{},[]),(0,Ft.useEffect)(()=>{Le(void 0,null,function*(){if(!be)return;const ue=yield nr(be);Je(ue==null?void 0:ue.departments)})},[be]);const Ai=ue=>Le(void 0,null,function*(){var ce,zn;const Xn=yield Me({type:"account/getSchoolOption",payload:{keyword:ue,limit:10}});_e(Xn==null?void 0:Xn.schools),ue&&ue!=""&&(Fe((ce=Xn==null?void 0:Xn.schools)==null?void 0:ce.filter($e=>$e.name.includes(ue))),(((zn=Xn==null?void 0:Xn.schools)==null?void 0:zn.find($e=>$e.name===ue))||{}).id?ti(ue,null,Xn==null?void 0:Xn.schools):(xe.setFieldsValue({department:""}),Ke(Qe(Qe({},Te),{school:ue,department:""}))))}),nr=ue=>{if(ue)return Me({type:"account/getDepartmentOption",payload:{id:ue}})};(0,Ft.useEffect)(()=>{if(!Rt.basicInfo)return;const{basicInfo:ue}=Rt,ce={identity:ue.identity,school:ue.school_name,department:ue.department_name,studentNo:ue.student_id,jobTitle:ue.identity=="teacher"?ue.technical_title:"\u6559\u6388",manager:ue.identity=="professional"?ue.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};xe.setFieldsValue(ce),Ke(ce)},[Rt.basicInfo]);const Ct=()=>{Wi(!0)},li=()=>{if(!xn.find(ue=>ue.name===Te.school)){zt.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}er(!0)},pi=ue=>{Ke(Qe({},xe.getFieldsValue())),"school"in ue&&(Fe(xn.filter(zn=>zn.name.includes(ue.school))),(xn.find(zn=>zn.name===ue.school)||{}).id?ti(ue.school):(xe.setFieldsValue({department:""}),Ke(Qe(Qe({},Te),{school:ue.school,department:""}))))},Yn=(ue,ce)=>{if(Rt.actionTabs.checkedList.includes(1)){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Be.createElement("div",{className:"tc"},ce||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${ue}/students`}});return}window.location.href=`/classrooms/${ue}/students`},ti=(ue,ce,zn)=>Le(void 0,null,function*(){var Xn,ni,$e;const In=(Xn=(zn||xn).find(Gi=>Gi.name===ue))==null?void 0:Xn.id,wi=(yield nr(In))||{};Je(wi==null?void 0:wi.departments);const Mi=ce||(($e=(ni=wi==null?void 0:wi.departments)==null?void 0:ni[0])==null?void 0:$e.name);xe.setFieldsValue({department:Mi}),Ke(Qe(Qe({},Te),{school:ue,department:Mi}))}),ri=ue=>Le(void 0,null,function*(){yield Ai(),xe.setFieldsValue({school:ue,department:""}),Ke(Qe(Qe({},Te),{school:ue,department:""}))}),vi=ue=>{var ce;if(ue.file.status==="uploading"){Vi(!0);return}ue.file.status==="done"&&(console.log(ue.file,ue.file.response),Jn((ce=ue.file.response)==null?void 0:ce.id),(0,ct.y3)(ue.file.originFileObj,zn=>{Hn(zn),Vi(!1)}))},Ri=ue=>Le(void 0,null,function*(){var ce,zn,Xn,ni,$e;const{school:In,department:wi,identity:Mi,studentNo:Gi,jobTitle:Ht,manager:de}=ue||{};if(!Mn){zt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const wn=(ce=xn.find(un=>un.name===In))==null?void 0:ce.id,Bn=(zn=ze.find(un=>un.name===wi))==null?void 0:zn.id;let ke;Mi==="student"?ke=Gi:Mi==="teacher"?ke=Ht:ke=de;const vn=yield Me({type:"account/applyProfessionalAuth",payload:{id:((Xn=Rt.basicInfo)==null?void 0:Xn.id)||((ni=kt.userInfo)==null?void 0:ni.login),school_id:wn,department_id:Bn,identity:Mi,extra:ke,attachment_ids:[yi]}});if(Rt.actionTabs.code){let un=yield(0,Ln.cR)({invite_code:Rt.actionTabs.code,professor:Rt.actionTabs.checkedList.includes(1)?1:null,assistant_professor:Rt.actionTabs.checkedList.includes(2)?1:null,student:Rt.actionTabs.checkedList.includes(3)?1:null});un.message==="\u52A0\u5165\u6210\u529F"&&(un!=null&&un.course_id?Yn(un.course_id,un.message):zt.ZP.success(un.message))}Ni(),vn&&(zt.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Me({type:"account/getBasicInfo",payload:{login:($e=kt.userInfo)==null?void 0:$e.login}}))}),Ni=()=>{Me({type:"account/setActionTabs",payload:{}})},me={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${Bt.Z.API_SERVER}/api/attachments.json`,className:et.Z.uploader,onChange:vi,beforeUpload:ue=>{const ce=ue.type==="image/jpeg"||ue.type==="image/png"||ue.type==="image/jpg"||ue.type==="image/bmp";return ce||zt.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),ce}};return Be.createElement(ie.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:et.Z.modal,open:Rt.actionTabs.key==="Account-ProfessionalAuth",title:Be.createElement(Re.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},Be.createElement(he.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),Be.createElement(he.Z,null,Be.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:Ni}))),width:"660px",footer:null},Be.createElement(Vt.Z,{spinning:!!xi},Be.createElement(ge.default,{className:et.Z.formWrap,form:xe,colon:!1,onValuesChange:pi,onFinish:Ri},Be.createElement(Re.Z,{gutter:[10,0]},Be.createElement(he.Z,{flex:"300px"},Be.createElement(ge.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},Be.createElement(we.default,null,Be.createElement(cn,{value:"teacher"},"\u6559\u5E08"),Be.createElement(cn,{value:"student"},"\u5B66\u751F"),Be.createElement(cn,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Te.identity==="student"&&Be.createElement(he.Z,{flex:"200px"},Be.createElement(ge.default.Item,{initialValue:Te.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},Be.createElement(qe.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Te.identity==="teacher"&&Be.createElement(he.Z,{flex:"200px"},Be.createElement(ge.default.Item,{initialValue:Te.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},Be.createElement(we.default,null,Be.createElement(cn,{value:"\u6559\u6388"},"\u6559\u6388"),Be.createElement(cn,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),Be.createElement(cn,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),Be.createElement(cn,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Te.identity==="professional"&&Be.createElement(he.Z,{flex:"200px"},Be.createElement(ge.default.Item,{initialValue:Te.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},Be.createElement(we.default,null,Be.createElement(cn,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),Be.createElement(cn,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),Be.createElement(cn,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),Be.createElement(cn,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),Be.createElement(cn,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),Be.createElement(ge.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Te.school&&!(xn!=null&&xn.find(ue=>ue.name===Te.school))&&Be.createElement("div",{className:et.Z.schoolHintWrap},Be.createElement("span",{className:et.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Te.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),Be.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:Ct},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},Be.createElement(te.Z,{showSearch:!0,onSearch:ji,options:Zn==null?void 0:Zn.map(ue=>({value:ue.name}))})),Be.createElement(ge.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Te.department&&!(ze!=null&&ze.find(ue=>ue.name===Te.department))&&Be.createElement("div",{className:et.Z.schoolHintWrap},Be.createElement("span",{className:et.Z.colorCDCDCD},Te.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Te.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),Be.createElement("span",{className:`${et.Z.color0152d9} current`,onClick:li},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},Be.createElement(te.Z,{showSearch:!0,onChange:ue=>Sn(ze.filter(ce=>ce.name.includes(ue))),options:jn==null?void 0:jn.map(ue=>({value:ue.name}))})),Be.createElement(ge.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},Be.createElement("div",{className:et.Z.flexRow},Be.createElement("div",{className:et.Z.flexColumn},Be.createElement(le,ln(Qe({},me),{accept:".png,.jpg,.bmp,.jpeg"}),Mn?Be.createElement("img",{src:Mn,className:et.Z.uploadImg}):Be.createElement("div",{className:et.Z.imageTip},Be.createElement("p",null,Be.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${et.Z.uploadTipIcon}`})),Be.createElement("p",{className:et.Z.uploadTip},Be.createElement("a",{className:et.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),Be.createElement("span",{className:"tc"},Be.createElement("p",{className:et.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),Be.createElement("div",{className:`${et.Z.flexColumn} ${et.Z.example}`},Be.createElement("span",{className:et.Z.exampleImg},Be.createElement("img",{src:nt})),Be.createElement("span",{className:"tc"},Be.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),Be.createElement("p",{className:`${et.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),Be.createElement("div",{className:et.Z.footerWrap},Be.createElement(ge.default.Item,null,Be.createElement(He.ZP,{className:"mr5",size:"middle",onClick:Ni},"\u53D6\u6D88"),Be.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Yt["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),Be.createElement("div",{className:et.Z.note},Be.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),Be.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"),Be.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"),Be.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"),Be.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"),Be.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"),Be.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",!((pe=At==null?void 0:At.setting)!=null&&pe.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),Be.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")))),Be.createElement(Ye,{visible:Ii,onClose:()=>Wi(!1),schoolName:Te.school,onSuccess:ri}),Be.createElement(lt.Z,{visible:Ji,onClose:()=>er(!1),schoolId:(ve=xn.find(ue=>ue.name===Te.school))==null?void 0:ve.id,schoolName:Te.school,departmentName:Te.department,onSuccess:ue=>ti(Te.school,ue)}))};var Ot=(0,se.connect)(({user:Pt,account:St,loading:kt,globalSetting:Rt})=>({user:Pt,account:St,globalSetting:Rt,loading:kt.effects}))(hi)},98846:function(Cn,_n,Nt){"use strict";Nt.d(_n,{P:function(){return Ft}});const Ft=[{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"}]}]},81428:function(Cn,_n,Nt){"use strict";Nt.d(_n,{AL:function(){return xt},Iy:function(){return qe},Qv:function(){return Bt},ez:function(){return vt},jb:function(){return te}});var Ft=Nt(32834),se=Nt.n(Ft),we=Nt(11690),Ie=Nt.n(we);let ge=1;function zt(Jt,Ut){const fe=Jt.match(/^(\s+)(?:```)/);if(fe===null)return Ut;const ne=fe[1];return Ut.split(`
|
|
`).map(Ne=>{const Ge=Ne.match(/^\s+/);if(Ge===null)return Ne;const[Ye]=Ge;return Ye.length>=ne.length?Ne.slice(ne.length):Ne}).join(`
|
|
`)}let ie=[],Re=["<ul>"];const he=new(se()).Renderer,Vt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function qe(){ie.length=0,Re=["<ul>"]}const te={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function He(Jt,Ut,fe,ne){if(Ut>=Jt.length||Jt[Ut].level<=fe)return Ut;var Ne=Jt[Ut];ne.push("<li><a href='#"+ge+Ne.anchor+"'>"+Ne.text+"</a>"),Ut++;var Ge=[];return Ut=He(Jt,Ut,Ne.level,Ge),Ge.length>0&&(ne.push("<ul>"),Ge.forEach(function(Ye){ne.push(Ye)}),ne.push("</ul>")),ne.push("</li>"),Ut=He(Jt,Ut,fe,ne),Ut}function Bt(){return He(ie,0,0,Re),Re.push("</ul>"),Re.join("")}const nt={heading(Jt){const Ut=Vt.exec(Jt);if(ge+=1,Ut)return{type:"heading",raw:Ut[0],depth:Ut[1].length,text:Ut[2]}},fences(Jt){const Ut=this.rules.block.fences.exec(Jt);if(Ut){const fe=Ut[0];let ne=zt(fe,Ut[3]||"");const Ne=Ut[2]?Ut[2].trim():Ut[2];if(["latex","katex","math"].indexOf(Ne)>=0){const Ge=lt(),Ye=ne;ne=Ge,pt[Ge]={type:"block",expression:Ye}}return{type:"code",raw:fe,lang:Ne,text:ne}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ct=0;const lt=()=>`__special_katext_id_${ct++}__`;let pt={};function vt(){return pt}function xt(){ct=0,pt={}}function Et(Jt){return Jt=Jt.replace(et,(Ut,fe)=>{const ne=lt();return pt[ne]={type:"inline",expression:fe},ne}),Jt}const Tt=he.listitem;he.listitem=function(Jt){return Tt(Et(Jt))};const jt=he.paragraph;he.paragraph=function(Jt){return jt(Et(Jt))};const _t=he.tablecell;he.tablecell=function(Jt,Ut){return _t(Et(Jt),Ut)},he.code=function(Jt,Ut,fe){const ne=(Ut||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?`<p class='editormd-tex'>${Jt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ut}">${fe?Jt:(0,we.escape)(Jt,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(fe?Jt:(0,we.escape)(Jt,!0))+"</code></pre>"},he.heading=function(Jt,Ut,fe){let ne=this.options.headerPrefix+fe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ie.push({anchor:ne,level:Ut,text:Jt}),"<h"+Ut+' id="'+ge+ne+'">'+Jt+"</h"+Ut+">"},se().setOptions({silent:!0,gfm:!0,pedantic:!1}),se().use({tokenizer:nt,renderer:he}),_n.ZP=se()},40197:function(Cn,_n,Nt){"use strict";Nt.d(_n,{rX:function(){return Et},pW:function(){return Tt},gy:function(){return jt},xY:function(){return xt},O5:function(){return vt},hs:function(){return et},tJ:function(){return Bt},o1:function(){return nt},Rd:function(){return pt}});var Ft=Nt(25690),se=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",Vt=Nt.p+"static/newqrcode.a8740efb.png",qe=Nt(32637),te=Nt(59301),He=(_t,Jt,Ut)=>new Promise((fe,ne)=>{var Ne=Ln=>{try{Ye(Ut.next(Ln))}catch(hn){ne(hn)}},Ge=Ln=>{try{Ye(Ut.throw(Ln))}catch(hn){ne(hn)}},Ye=Ln=>Ln.done?fe(Ln.value):Promise.resolve(Ln.value).then(Ne,Ge);Ye((Ut=Ut.apply(_t,Jt)).next())});const Bt=(_t,Jt=!1,Ut=!1,fe="",ne=!1)=>!!(nt(_t)&&ct(_t,Jt,Ut,fe,ne)),nt=_t=>(0,ge.bg)()?!0:(_t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=_t=>{var Jt,Ut,fe;const{user:ne}=(0,Ft.getDvaApp)()._store.getState();(0,ge.bg)()&&!((Ut=(Jt=ne==null?void 0:ne.userInfo)==null?void 0:Jt.course)!=null&&Ut.course_public)&&!((fe=ne==null?void 0:ne.userInfo)!=null&&fe.profile_completed)&&_t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ct=(_t,Jt=!1,Ut=!0,fe="",ne=!1)=>{var Ne;const{user:Ge}=(0,Ft.getDvaApp)()._store.getState();return(Ne=Ge.userInfo)!=null&&Ne.profile_completed?!0:(Ut?_t({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:fe,isCurrentPage:ne}}):se.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,zt.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{se.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=()=>{se.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:te.createElement("div",{style:{textAlign:"center"}},te.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"),te.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:qe}),te.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 _t;const{user:Jt}=(0,Ft.getDvaApp)()._store.getState();return(_t=Jt.userInfo)!=null&&_t.professional_certification?!0:(se.default.confirm({title:"\u63D0\u793A",centered:!0,content:te.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,zt.xg)("/account/certification")}}),!1)},xt=()=>(0,ge.V9)()?!0:(se.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:te.createElement("div",{className:"tc",style:{marginLeft:-38}},te.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),te.createElement("img",{src:Vt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Et=(_t,Jt)=>_t?!0:(se.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:te.createElement("div",null,te.createElement("p",null,Jt||"\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"),te.createElement("div",{style:{marginLeft:"110px"}},te.createElement("img",{src:he,width:200}),te.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,zt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Tt=_t=>{se.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:te.createElement("div",null,te.createElement("div",null,te.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"),te.createElement(we.Z,null),te.createElement("p",{style:{color:"#666666",fontSize:12}}," ",te.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 ",te.createElement("a",null,_t),"\u5929\u3002"),te.createElement("p",{style:{color:"#666666",fontSize:12}}," ",te.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")),te.createElement("div",{style:{textAlign:"center",marginTop:30}},te.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Re,alt:"\u4E8C\u7EF4\u7801",width:160})))})},jt=(_t,Jt="")=>{const{shixunsDetail:{detail:Ut}}=(0,Ft.getDvaApp)()._store.getState();if((Ut==null?void 0:Ut.public)===2||(Ut==null?void 0:Ut.public)===1||(Ut==null?void 0:Ut.shixun_status)===3){let fe="";return(Ut==null?void 0:Ut.public)===2&&(fe="\u5DF2\u516C\u5F00"),(Ut==null?void 0:Ut.public)===1&&(fe="\u5F85\u5BA1\u6838"),(Ut==null?void 0:Ut.shixun_status)===3&&(fe="\u5DF2\u5173\u95ED"),se.default.info({centered:!0,icon:te.createElement(ie.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:te.createElement("div",{className:"tc",style:{marginLeft:-38}},te.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},te.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",fe,"\uFF0C",Jt,"\u3002"),te.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),te.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Re,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ut==null?void 0:Ut.shixun_status)===2?(se.default.confirm({centered:!0,icon:te.createElement(ie.Z,null),title:"\u63D0\u793A",content:te.createElement("div",null,te.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Jt,"\u3002"),te.createElement("br",null),te.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:()=>{se.default.confirm({width:440,centered:!0,icon:te.createElement(ie.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:()=>He(void 0,null,function*(){(yield _t({type:"shixunsDetail/cancelRelease",payload:{id:Ut==null?void 0:Ut.identifier}})).status!==401&&(Ie.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_t({type:"shixunsDetail/getShixunsDetail",payload:{id:Ut==null?void 0:Ut.identifier}}),_t({type:"practiceSetting/getCommonData",payload:{id:Ut==null?void 0:Ut.identifier}}))})})}}),!0):!1}},99498:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){Ft.defineOption("placeholder","",function(Re,he,Vt){var qe=Vt&&Vt!=Ft.Init;if(he&&!qe)Re.on("blur",ge),Re.on("change",zt),Re.on("swapDoc",zt),Ft.on(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose=function(){Ie(Re)}),zt(Re);else if(!he&&qe){Re.off("blur",ge),Re.off("change",zt),Re.off("swapDoc",zt),Ft.off(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose),se(Re);var te=Re.getWrapperElement();te.className=te.className.replace(" CodeMirror-empty","")}he&&!Re.hasFocus()&&ge(Re)});function se(Re){Re.state.placeholder&&(Re.state.placeholder.parentNode.removeChild(Re.state.placeholder),Re.state.placeholder=null)}function we(Re){se(Re);var he=Re.state.placeholder=document.createElement("pre");he.style.cssText="height: 0; overflow: visible",he.style.direction=Re.getOption("direction"),he.className="CodeMirror-placeholder CodeMirror-line-like";var Vt=Re.getOption("placeholder");typeof Vt=="string"&&(Vt=document.createTextNode(Vt)),he.appendChild(Vt),Re.display.lineSpace.insertBefore(he,Re.display.lineSpace.firstChild)}function Ie(Re){setTimeout(function(){var he=!1,Vt=Re.getInputField();Vt.nodeName=="TEXTAREA"?he=!Vt.value:Re.lineCount()==1&&(he=!/[^\u200b]/.test(Vt.querySelector(".CodeMirror-line").textContent)),he?we(Re):se(Re)},20)}function ge(Re){ie(Re)&&we(Re)}function zt(Re){var he=Re.getWrapperElement(),Vt=ie(Re);he.className=he.className.replace(" CodeMirror-empty","")+(Vt?" CodeMirror-empty":""),Vt?we(Re):se(Re)}function ie(Re){return Re.lineCount()===1&&Re.getLine(0)===""}})},25717:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){var se={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},we=Ft.Pos;Ft.defineOption("autoCloseBrackets",!1,function(nt,et,ct){ct&&ct!=Ft.Init&&(nt.removeKeyMap(ge),nt.state.closeBrackets=null),et&&(zt(Ie(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(ge))});function Ie(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:se[et]}var ge={Backspace:he,Enter:Vt};function zt(nt){for(var et=0;et<nt.length;et++){var ct=nt.charAt(et),lt="'"+ct+"'";ge[lt]||(ge[lt]=ie(ct))}}zt(se.pairs+"`");function ie(nt){return function(et){return te(et,nt)}}function Re(nt){var et=nt.state.closeBrackets;if(!et||et.override)return et;var ct=nt.getModeAt(nt.getCursor());return ct.closeBrackets||et}function he(nt){var et=Re(nt);if(!et||nt.getOption("disableInput"))return Ft.Pass;for(var ct=Ie(et,"pairs"),lt=nt.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return Ft.Pass;var vt=He(nt,lt[pt].head);if(!vt||ct.indexOf(vt)%2!=0)return Ft.Pass}for(var pt=lt.length-1;pt>=0;pt--){var xt=lt[pt].head;nt.replaceRange("",we(xt.line,xt.ch-1),we(xt.line,xt.ch+1),"+delete")}}function Vt(nt){var et=Re(nt),ct=et&&Ie(et,"explode");if(!ct||nt.getOption("disableInput"))return Ft.Pass;for(var lt=nt.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return Ft.Pass;var vt=He(nt,lt[pt].head);if(!vt||ct.indexOf(vt)%2!=0)return Ft.Pass}nt.operation(function(){var xt=nt.lineSeparator()||`
|
|
`;nt.replaceSelection(xt+xt,null),nt.execCommand("goCharLeft"),lt=nt.listSelections();for(var Et=0;Et<lt.length;Et++){var Tt=lt[Et].head.line;nt.indentLine(Tt,null,!0),nt.indentLine(Tt+1,null,!0)}})}function qe(nt){var et=Ft.cmpPos(nt.anchor,nt.head)>0;return{anchor:new we(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new we(nt.head.line,nt.head.ch+(et?1:-1))}}function te(nt,et){var ct=Re(nt);if(!ct||nt.getOption("disableInput"))return Ft.Pass;var lt=Ie(ct,"pairs"),pt=lt.indexOf(et);if(pt==-1)return Ft.Pass;for(var vt=Ie(ct,"closeBefore"),xt=Ie(ct,"triples"),Et=lt.charAt(pt+1)==et,Tt=nt.listSelections(),jt=pt%2==0,_t,Jt=0;Jt<Tt.length;Jt++){var Ut=Tt[Jt],fe=Ut.head,ne,Ne=nt.getRange(fe,we(fe.line,fe.ch+1));if(jt&&!Ut.empty())ne="surround";else if((Et||!jt)&&Ne==et)Et&&Bt(nt,fe)?ne="both":xt.indexOf(et)>=0&&nt.getRange(fe,we(fe.line,fe.ch+3))==et+et+et?ne="skipThree":ne="skip";else if(Et&&fe.ch>1&&xt.indexOf(et)>=0&&nt.getRange(we(fe.line,fe.ch-2),fe)==et+et){if(fe.ch>2&&/\bstring/.test(nt.getTokenTypeAt(we(fe.line,fe.ch-2))))return Ft.Pass;ne="addFour"}else if(Et){var Ge=fe.ch==0?" ":nt.getRange(we(fe.line,fe.ch-1),fe);if(!Ft.isWordChar(Ne)&&Ge!=et&&!Ft.isWordChar(Ge))ne="both";else return Ft.Pass}else if(jt&&(Ne.length===0||/\s/.test(Ne)||vt.indexOf(Ne)>-1))ne="both";else return Ft.Pass;if(!_t)_t=ne;else if(_t!=ne)return Ft.Pass}var Ye=pt%2?lt.charAt(pt-1):et,Ln=pt%2?et:lt.charAt(pt+1);nt.operation(function(){if(_t=="skip")nt.execCommand("goCharRight");else if(_t=="skipThree")for(var hn=0;hn<3;hn++)nt.execCommand("goCharRight");else if(_t=="surround"){for(var Be=nt.getSelections(),hn=0;hn<Be.length;hn++)Be[hn]=Ye+Be[hn]+Ln;nt.replaceSelections(Be,"around"),Be=nt.listSelections().slice();for(var hn=0;hn<Be.length;hn++)Be[hn]=qe(Be[hn]);nt.setSelections(Be)}else _t=="both"?(nt.replaceSelection(Ye+Ln,null),nt.triggerElectric(Ye+Ln),nt.execCommand("goCharLeft")):_t=="addFour"&&(nt.replaceSelection(Ye+Ye+Ye+Ye,"before"),nt.execCommand("goCharRight"))})}function He(nt,et){var ct=nt.getRange(we(et.line,et.ch-1),we(et.line,et.ch+1));return ct.length==2?ct:null}function Bt(nt,et){var ct=nt.getTokenAt(we(et.line,et.ch+1));return/\bstring/.test(ct.type)&&ct.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},6313:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780),Nt(32855))})(function(Ft){Ft.defineOption("autoCloseTags",!1,function(he,Vt,qe){if(qe!=Ft.Init&&qe&&he.removeKeyMap("autoCloseTags"),!!Vt){var te={name:"autoCloseTags"};(typeof Vt!="object"||Vt.whenClosing!==!1)&&(te["'/'"]=function(He){return zt(He)}),(typeof Vt!="object"||Vt.whenOpening!==!1)&&(te["'>'"]=function(He){return Ie(He)}),he.addKeyMap(te)}});var se=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],we=["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 Ie(he){if(he.getOption("disableInput"))return Ft.Pass;for(var Vt=he.listSelections(),qe=[],te=he.getOption("autoCloseTags"),He=0;He<Vt.length;He++){if(!Vt[He].empty())return Ft.Pass;var Bt=Vt[He].head,nt=he.getTokenAt(Bt),et=Ft.innerMode(he.getMode(),nt.state),ct=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(ct),pt=lt&<.name;if(!pt)return Ft.Pass;var vt=et.mode.configuration=="html",xt=typeof te=="object"&&te.dontCloseTags||vt&&se,Et=typeof te=="object"&&te.indentTags||vt&&we;nt.end>Bt.ch&&(pt=pt.slice(0,pt.length-nt.end+Bt.ch));var Tt=pt.toLowerCase();if(!pt||nt.type=="string"&&(nt.end!=Bt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&<.close||nt.string.indexOf("/")==Bt.ch-nt.start-1||xt&&ie(xt,Tt)>-1||Re(he,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(ct)||[],pt,Bt,!0))return Ft.Pass;var jt=typeof te=="object"&&te.emptyTags;if(jt&&ie(jt,pt)>-1){qe[He]={text:"/>",newPos:Ft.Pos(Bt.line,Bt.ch+2)};continue}var _t=Et&&ie(Et,Tt)>-1;qe[He]={indent:_t,text:">"+(_t?`
|
|
|
|
`:"")+"</"+pt+">",newPos:_t?Ft.Pos(Bt.line+1,0):Ft.Pos(Bt.line,Bt.ch+1)}}for(var Jt=typeof te=="object"&&te.dontIndentOnAutoClose,He=Vt.length-1;He>=0;He--){var Ut=qe[He];he.replaceRange(Ut.text,Vt[He].head,Vt[He].anchor,"+insert");var fe=he.listSelections().slice(0);fe[He]={head:Ut.newPos,anchor:Ut.newPos},he.setSelections(fe),!Jt&&Ut.indent&&(he.indentLine(Ut.newPos.line,null,!0),he.indentLine(Ut.newPos.line+1,null,!0))}}function ge(he,Vt){for(var qe=he.listSelections(),te=[],He=Vt?"/":"</",Bt=he.getOption("autoCloseTags"),nt=typeof Bt=="object"&&Bt.dontIndentOnSlash,et=0;et<qe.length;et++){if(!qe[et].empty())return Ft.Pass;var ct=qe[et].head,lt=he.getTokenAt(ct),pt=Ft.innerMode(he.getMode(),lt.state),vt=pt.state;if(Vt&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ct.ch-1))return Ft.Pass;var xt,Et=pt.mode.name!="xml"&&he.getMode().name=="htmlmixed";if(Et&&pt.mode.name=="javascript")xt=He+"script";else if(Et&&pt.mode.name=="css")xt=He+"style";else{var Tt=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(vt);if(!Tt||Tt.length&&Re(he,Tt,Tt[Tt.length-1],ct))return Ft.Pass;xt=He+Tt[Tt.length-1]}he.getLine(ct.line).charAt(lt.end)!=">"&&(xt+=">"),te[et]=xt}if(he.replaceSelections(te),qe=he.listSelections(),!nt)for(var et=0;et<qe.length;et++)(et==qe.length-1||qe[et].head.line<qe[et+1].head.line)&&he.indentLine(qe[et].head.line)}function zt(he){return he.getOption("disableInput")?Ft.Pass:ge(he,!0)}Ft.commands.closeTag=function(he){return ge(he)};function ie(he,Vt){if(he.indexOf)return he.indexOf(Vt);for(var qe=0,te=he.length;qe<te;++qe)if(he[qe]==Vt)return qe;return-1}function Re(he,Vt,qe,te,He){if(!Ft.scanForClosingTag)return!1;var Bt=Math.min(he.lastLine()+1,te.line+500),nt=Ft.scanForClosingTag(he,te,null,Bt);if(!nt||nt.tag!=qe)return!1;for(var et=He?1:0,ct=Vt.length-1;ct>=0&&Vt[ct]==qe;ct--)++et;te=nt.to;for(var ct=1;ct<et;ct++){var lt=Ft.scanForClosingTag(he,te,null,Bt);if(!lt||lt.tag!=qe)return!1;te=lt.to}return!0}})},32855:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){"use strict";var se=Ft.Pos;function we(ct,lt){return ct.line-lt.line||ct.ch-lt.ch}var Ie="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",ge=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",zt=new RegExp("<(/?)(["+Ie+"]["+ge+"]*)","g");function ie(ct,lt,pt,vt){this.line=lt,this.ch=pt,this.cm=ct,this.text=ct.getLine(lt),this.min=vt?Math.max(vt.from,ct.firstLine()):ct.firstLine(),this.max=vt?Math.min(vt.to-1,ct.lastLine()):ct.lastLine()}function Re(ct,lt){var pt=ct.cm.getTokenTypeAt(se(ct.line,lt));return pt&&/\btag\b/.test(pt)}function he(ct){if(!(ct.line>=ct.max))return ct.ch=0,ct.text=ct.cm.getLine(++ct.line),!0}function Vt(ct){if(!(ct.line<=ct.min))return ct.text=ct.cm.getLine(--ct.line),ct.ch=ct.text.length,!0}function qe(ct){for(;;){var lt=ct.text.indexOf(">",ct.ch);if(lt==-1){if(he(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt+1;continue}var pt=ct.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,vt?"selfClose":"regular"}}function te(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf("<",ct.ch-1):-1;if(lt==-1){if(Vt(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt;continue}zt.lastIndex=lt,ct.ch=lt;var pt=zt.exec(ct.text);if(pt&&pt.index==lt)return pt}}function He(ct){for(;;){zt.lastIndex=ct.ch;var lt=zt.exec(ct.text);if(!lt){if(he(ct))continue;return}if(!Re(ct,lt.index+1)){ct.ch=lt.index+1;continue}return ct.ch=lt.index+lt[0].length,lt}}function Bt(ct){for(;;){var lt=ct.ch?ct.text.lastIndexOf(">",ct.ch-1):-1;if(lt==-1){if(Vt(ct))continue;return}if(!Re(ct,lt+1)){ct.ch=lt;continue}var pt=ct.text.lastIndexOf("/",lt),vt=pt>-1&&!/\S/.test(ct.text.slice(pt+1,lt));return ct.ch=lt+1,vt?"selfClose":"regular"}}function nt(ct,lt){for(var pt=[];;){var vt=He(ct),xt,Et=ct.line,Tt=ct.ch-(vt?vt[0].length:0);if(!vt||!(xt=qe(ct)))return;if(xt!="selfClose")if(vt[1]){for(var jt=pt.length-1;jt>=0;--jt)if(pt[jt]==vt[2]){pt.length=jt;break}if(jt<0&&(!lt||lt==vt[2]))return{tag:vt[2],from:se(Et,Tt),to:se(ct.line,ct.ch)}}else pt.push(vt[2])}}function et(ct,lt){for(var pt=[];;){var vt=Bt(ct);if(!vt)return;if(vt=="selfClose"){te(ct);continue}var xt=ct.line,Et=ct.ch,Tt=te(ct);if(!Tt)return;if(Tt[1])pt.push(Tt[2]);else{for(var jt=pt.length-1;jt>=0;--jt)if(pt[jt]==Tt[2]){pt.length=jt;break}if(jt<0&&(!lt||lt==Tt[2]))return{tag:Tt[2],from:se(ct.line,ct.ch),to:se(xt,Et)}}}}Ft.registerHelper("fold","xml",function(ct,lt){for(var pt=new ie(ct,lt.line,0);;){var vt=He(pt);if(!vt||pt.line!=lt.line)return;var xt=qe(pt);if(!xt)return;if(!vt[1]&&xt!="selfClose"){var Et=se(pt.line,pt.ch),Tt=nt(pt,vt[2]);return Tt&&we(Tt.from,Et)>0?{from:Et,to:Tt.from}:null}}}),Ft.findMatchingTag=function(ct,lt,pt){var vt=new ie(ct,lt.line,lt.ch,pt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var xt=qe(vt),Et=xt&&se(vt.line,vt.ch),Tt=xt&&te(vt);if(!(!xt||!Tt||we(vt,lt)>0)){var jt={from:se(vt.line,vt.ch),to:Et,tag:Tt[2]};return xt=="selfClose"?{open:jt,close:null,at:"open"}:Tt[1]?{open:et(vt,Tt[2]),close:jt,at:"close"}:(vt=new ie(ct,Et.line,Et.ch,pt),{open:jt,close:nt(vt,Tt[2]),at:"open"})}}},Ft.findEnclosingTag=function(ct,lt,pt,vt){for(var xt=new ie(ct,lt.line,lt.ch,pt);;){var Et=et(xt,vt);if(!Et)break;var Tt=new ie(ct,lt.line,lt.ch,pt),jt=nt(Tt,Et.tag);if(jt)return{open:Et,close:jt}}},Ft.scanForClosingTag=function(ct,lt,pt,vt){var xt=new ie(ct,lt.line,lt.ch,vt?{from:0,to:vt}:null);return nt(xt,pt)}})},89780:function(Cn){(function(_n,Nt){Cn.exports=Nt()})(this,function(){"use strict";var _n=navigator.userAgent,Nt=navigator.platform,Ft=/gecko\/\d/i.test(_n),se=/MSIE \d/.test(_n),we=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_n),Ie=/Edge\/(\d+)/.exec(_n),ge=se||we||Ie,zt=ge&&(se?document.documentMode||6:+(Ie||we)[1]),ie=!Ie&&/WebKit\//.test(_n),Re=ie&&/Qt\/\d+\.\d+/.test(_n),he=!Ie&&/Chrome\//.test(_n),Vt=/Opera\//.test(_n),qe=/Apple Computer/.test(navigator.vendor),te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_n),He=/PhantomJS/.test(_n),Bt=!Ie&&/AppleWebKit/.test(_n)&&/Mobile\/\w+/.test(_n),nt=/Android/.test(_n),et=Bt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_n),ct=Bt||/Mac/.test(Nt),lt=/\bCrOS\b/.test(_n),pt=/win/i.test(Nt),vt=Vt&&_n.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(Vt=!1,ie=!0);var xt=ct&&(Re||Vt&&(vt==null||vt<12.11)),Et=Ft||ge&&zt>=9;function Tt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var jt=function(it,at){var dt=it.className,ht=Tt(at).exec(dt);if(ht){var gt=dt.slice(ht.index+ht[0].length);it.className=dt.slice(0,ht.index)+(gt?ht[1]+gt:"")}};function _t(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Jt(it,at){return _t(it).appendChild(at)}function Ut(it,at,dt,ht){var gt=document.createElement(it);if(dt&&(gt.className=dt),ht&&(gt.style.cssText=ht),typeof at=="string")gt.appendChild(document.createTextNode(at));else if(at)for(var Lt=0;Lt<at.length;++Lt)gt.appendChild(at[Lt]);return gt}function fe(it,at,dt,ht){var gt=Ut(it,at,dt,ht);return gt.setAttribute("role","presentation"),gt}var ne;document.createRange?ne=function(it,at,dt,ht){var gt=document.createRange();return gt.setEnd(ht||it,dt),gt.setStart(it,at),gt}:ne=function(it,at,dt){var ht=document.body.createTextRange();try{ht.moveToElementText(it.parentNode)}catch(gt){return ht}return ht.collapse(!0),ht.moveEnd("character",dt),ht.moveStart("character",at),ht};function Ne(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 Ge(){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 Ye(it,at){var dt=it.className;Tt(at).test(dt)||(it.className+=(dt?" ":"")+at)}function Ln(it,at){for(var dt=it.split(" "),ht=0;ht<dt.length;ht++)dt[ht]&&!Tt(dt[ht]).test(at)&&(at+=" "+dt[ht]);return at}var hn=function(it){it.select()};Bt?hn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ge&&(hn=function(it){try{it.select()}catch(at){}});function Be(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function sn(it,at,dt){at||(at={});for(var ht in it)it.hasOwnProperty(ht)&&(dt!==!1||!at.hasOwnProperty(ht))&&(at[ht]=it[ht]);return at}function ee(it,at,dt,ht,gt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Lt=ht||0,Dt=gt||0;;){var Zt=it.indexOf(" ",Lt);if(Zt<0||Zt>=at)return Dt+(at-Lt);Dt+=Zt-Lt,Dt+=dt-Dt%dt,Lt=Zt+1}}var Kt=function(){this.id=null,this.f=null,this.time=0,this.handler=Be(this.onTimeout,this)};Kt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Kt.prototype.set=function(it,at){this.f=at;var dt=+new Date+it;(!this.id||dt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=dt)};function Oe(it,at){for(var dt=0;dt<it.length;++dt)if(it[dt]==at)return dt;return-1}var pn=50,mn={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},Qe={origin:"*mouse"},ln={origin:"+move"};function Vn(it,at,dt){for(var ht=0,gt=0;;){var Lt=it.indexOf(" ",ht);Lt==-1&&(Lt=it.length);var Dt=Lt-ht;if(Lt==it.length||gt+Dt>=at)return ht+Math.min(Dt,at-gt);if(gt+=Lt-ht,gt+=dt-gt%dt,ht=Lt+1,gt>=at)return ht}}var Le=[""];function cn(it){for(;Le.length<=it;)Le.push(le(Le)+" ");return Le[it]}function le(it){return it[it.length-1]}function bn(it,at){for(var dt=[],ht=0;ht<it.length;ht++)dt[ht]=at(it[ht],ht);return dt}function hi(it,at,dt){for(var ht=0,gt=dt(at);ht<it.length&&dt(it[ht])<=gt;)ht++;it.splice(ht,0,at)}function Ot(){}function Pt(it,at){var dt;return Object.create?dt=Object.create(it):(Ot.prototype=it,dt=new Ot),at&&sn(at,dt),dt}var St=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function kt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||St.test(it))}function Rt(it,at){return at?at.source.indexOf("\\w")>-1&&kt(it)?!0:at.test(it):kt(it)}function At(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Yt=/[\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 Me(it){return it.charCodeAt(0)>=768&&Yt.test(it)}function be(it,at,dt){for(;(dt<0?at>0:at<it.length)&&Me(it.charAt(at));)at+=dt;return at}function We(it,at,dt){for(var ht=at>dt?-1:1;;){if(at==dt)return at;var gt=(at+dt)/2,Lt=ht<0?Math.ceil(gt):Math.floor(gt);if(Lt==at)return it(Lt)?at:dt;it(Lt)?dt=Lt:at=Lt+ht}}function pe(it,at,dt,ht){if(!it)return ht(at,dt,"ltr",0);for(var gt=!1,Lt=0;Lt<it.length;++Lt){var Dt=it[Lt];(Dt.from<dt&&Dt.to>at||at==dt&&Dt.to==at)&&(ht(Math.max(Dt.from,at),Math.min(Dt.to,dt),Dt.level==1?"rtl":"ltr",Lt),gt=!0)}gt||ht(at,dt,"ltr")}var ve=null;function xe(it,at,dt){var ht;ve=null;for(var gt=0;gt<it.length;++gt){var Lt=it[gt];if(Lt.from<at&&Lt.to>at)return gt;Lt.to==at&&(Lt.from!=Lt.to&&dt=="before"?ht=gt:ve=gt),Lt.from==at&&(Lt.from!=Lt.to&&dt!="before"?ht=gt:ve=gt)}return ht!=null?ht:ve}var Te=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function dt($t){return $t<=247?it.charAt($t):1424<=$t&&$t<=1524?"R":1536<=$t&&$t<=1785?at.charAt($t-1536):1774<=$t&&$t<=2220?"r":8192<=$t&&$t<=8203?"w":$t==8204?"b":"L"}var ht=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,gt=/[stwN]/,Lt=/[LRr]/,Dt=/[Lb1n]/,Zt=/[1n]/;function Wt($t,De,oe){this.level=$t,this.from=De,this.to=oe}return function($t,De){var oe=De=="ltr"?"L":"R";if($t.length==0||De=="ltr"&&!ht.test($t))return!1;for(var rn=$t.length,Xe=[],oi=0;oi<rn;++oi)Xe.push(dt($t.charCodeAt(oi)));for(var di=0,Li=oe;di<rn;++di){var zi=Xe[di];zi=="m"?Xe[di]=Li:Li=zi}for(var hr=0,_i=oe;hr<rn;++hr){var mr=Xe[hr];mr=="1"&&_i=="r"?Xe[hr]="n":Lt.test(mr)&&(_i=mr,mr=="r"&&(Xe[hr]="R"))}for(var jr=1,Qi=Xe[0];jr<rn-1;++jr){var to=Xe[jr];to=="+"&&Qi=="1"&&Xe[jr+1]=="1"?Xe[jr]="1":to==","&&Qi==Xe[jr+1]&&(Qi=="1"||Qi=="n")&&(Xe[jr]=Qi),Qi=to}for(var Jo=0;Jo<rn;++Jo){var Ra=Xe[Jo];if(Ra==",")Xe[Jo]="N";else if(Ra=="%"){var ra=void 0;for(ra=Jo+1;ra<rn&&Xe[ra]=="%";++ra);for(var zs=Jo&&Xe[Jo-1]=="!"||ra<rn&&Xe[ra]=="1"?"1":"N",ms=Jo;ms<ra;++ms)Xe[ms]=zs;Jo=ra-1}}for(var ka=0,Xs=oe;ka<rn;++ka){var as=Xe[ka];Xs=="L"&&as=="1"?Xe[ka]="L":Lt.test(as)&&(Xs=as)}for(var Ma=0;Ma<rn;++Ma)if(gt.test(Xe[Ma])){var mo=void 0;for(mo=Ma+1;mo<rn&>.test(Xe[mo]);++mo);for(var ua=(Ma?Xe[Ma-1]:oe)=="L",Xa=(mo<rn?Xe[mo]:oe)=="L",ss=ua==Xa?ua?"L":"R":oe,Ol=Ma;Ol<mo;++Ol)Xe[Ol]=ss;Ma=mo-1}for(var oa=[],Pl,fa=0;fa<rn;)if(Dt.test(Xe[fa])){var Mc=fa;for(++fa;fa<rn&&Dt.test(Xe[fa]);++fa);oa.push(new Wt(0,Mc,fa))}else{var hl=fa,Js=oa.length,js=De=="rtl"?1:0;for(++fa;fa<rn&&Xe[fa]!="L";++fa);for(var Ro=hl;Ro<fa;)if(Zt.test(Xe[Ro])){hl<Ro&&(oa.splice(Js,0,new Wt(1,hl,Ro)),Js+=js);var Ja=Ro;for(++Ro;Ro<fa&&Zt.test(Xe[Ro]);++Ro);oa.splice(Js,0,new Wt(2,Ja,Ro)),Js+=js,hl=Ro}else++Ro;hl<fa&&oa.splice(Js,0,new Wt(1,hl,fa))}return De=="ltr"&&(oa[0].level==1&&(Pl=$t.match(/^\s+/))&&(oa[0].from=Pl[0].length,oa.unshift(new Wt(0,0,Pl[0].length))),le(oa).level==1&&(Pl=$t.match(/\s+$/))&&(le(oa).to-=Pl[0].length,oa.push(new Wt(0,rn-Pl[0].length,rn)))),De=="rtl"?oa.reverse():oa}}();function Ke(it,at){var dt=it.order;return dt==null&&(dt=it.order=Te(it.text,at)),dt}var xn=[],_e=function(it,at,dt){if(it.addEventListener)it.addEventListener(at,dt,!1);else if(it.attachEvent)it.attachEvent("on"+at,dt);else{var ht=it._handlers||(it._handlers={});ht[at]=(ht[at]||xn).concat(dt)}};function Zn(it,at){return it._handlers&&it._handlers[at]||xn}function Fe(it,at,dt){if(it.removeEventListener)it.removeEventListener(at,dt,!1);else if(it.detachEvent)it.detachEvent("on"+at,dt);else{var ht=it._handlers,gt=ht&&ht[at];if(gt){var Lt=Oe(gt,dt);Lt>-1&&(ht[at]=gt.slice(0,Lt).concat(gt.slice(Lt+1)))}}}function ze(it,at){var dt=Zn(it,at);if(dt.length)for(var ht=Array.prototype.slice.call(arguments,2),gt=0;gt<dt.length;++gt)dt[gt].apply(null,ht)}function Je(it,at,dt){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),ze(it,dt||at.type,it,at),Jn(at)||at.codemirrorIgnore}function jn(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var dt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),ht=0;ht<at.length;++ht)Oe(dt,at[ht])==-1&&dt.push(at[ht])}function Sn(it,at){return Zn(it,at).length>0}function Mn(it){it.prototype.on=function(at,dt){_e(this,at,dt)},it.prototype.off=function(at,dt){Fe(this,at,dt)}}function Hn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function yi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Jn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function xi(it){Hn(it),yi(it)}function Vi(it){return it.target||it.srcElement}function Ii(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ct&&it.ctrlKey&&at==1&&(at=3),at}var Wi=function(){if(ge&&zt<9)return!1;var it=Ut("div");return"draggable"in it||"dragDrop"in it}(),Ji;function er(it){if(Ji==null){var at=Ut("span","\u200B");Jt(it,Ut("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Ji=at.offsetWidth<=1&&at.offsetHeight>2&&!(ge&&zt<8))}var dt=Ji?Ut("span","\u200B"):Ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return dt.setAttribute("cm-text",""),dt}var ji;function Ai(it){if(ji!=null)return ji;var at=Jt(it,document.createTextNode("A\u062EA")),dt=ne(at,0,1).getBoundingClientRect(),ht=ne(at,1,2).getBoundingClientRect();return _t(it),!dt||dt.left==dt.right?!1:ji=ht.right-dt.right<3}var nr=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var at=0,dt=[],ht=it.length;at<=ht;){var gt=it.indexOf(`
|
|
`,at);gt==-1&&(gt=it.length);var Lt=it.slice(at,it.charAt(gt-1)=="\r"?gt-1:gt),Dt=Lt.indexOf("\r");Dt!=-1?(dt.push(Lt.slice(0,Dt)),at+=Dt+1):(dt.push(Lt),at=gt+1)}return dt}:function(it){return it.split(/\r\n?|\n/)},Ct=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(dt){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},li=function(){var it=Ut("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),pi=null;function Yn(it){if(pi!=null)return pi;var at=Jt(it,Ut("span","x")),dt=at.getBoundingClientRect(),ht=ne(at,0,1).getBoundingClientRect();return pi=Math.abs(dt.left-ht.left)>1}var ti={},ri={};function vi(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),ti[it]=at}function Ri(it,at){ri[it]=at}function Ni(it){if(typeof it=="string"&&ri.hasOwnProperty(it))it=ri[it];else if(it&&typeof it.name=="string"&&ri.hasOwnProperty(it.name)){var at=ri[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 Ni("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Ni("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function me(it,at){at=Ni(at);var dt=ti[at.name];if(!dt)return me(it,"text/plain");var ht=dt(it,at);if(ue.hasOwnProperty(at.name)){var gt=ue[at.name];for(var Lt in gt)gt.hasOwnProperty(Lt)&&(ht.hasOwnProperty(Lt)&&(ht["_"+Lt]=ht[Lt]),ht[Lt]=gt[Lt])}if(ht.name=at.name,at.helperType&&(ht.helperType=at.helperType),at.modeProps)for(var Dt in at.modeProps)ht[Dt]=at.modeProps[Dt];return ht}var ue={};function ce(it,at){var dt=ue.hasOwnProperty(it)?ue[it]:ue[it]={};sn(at,dt)}function zn(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var dt={};for(var ht in at){var gt=at[ht];gt instanceof Array&&(gt=gt.concat([])),dt[ht]=gt}return dt}function Xn(it,at){for(var dt;it.innerMode&&(dt=it.innerMode(at),!(!dt||dt.mode==it));)at=dt.state,it=dt.mode;return dt||{mode:it,state:at}}function ni(it,at,dt){return it.startState?it.startState(at,dt):!0}var $e=function(it,at,dt){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=dt};$e.prototype.eol=function(){return this.pos>=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$e.prototype.eat=function(it){var at=this.string.charAt(this.pos),dt;if(typeof it=="string"?dt=at==it:dt=at&&(it.test?it.test(at):it(at)),dt)return++this.pos,at},$e.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},$e.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},$e.prototype.backUp=function(it){this.pos-=it},$e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ee(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},$e.prototype.indentation=function(){return ee(this.string,null,this.tabSize)-(this.lineStart?ee(this.string,this.lineStart,this.tabSize):0)},$e.prototype.match=function(it,at,dt){if(typeof it=="string"){var ht=function(Dt){return dt?Dt.toLowerCase():Dt},gt=this.string.substr(this.pos,it.length);if(ht(gt)==ht(it))return at!==!1&&(this.pos+=it.length),!0}else{var Lt=this.string.slice(this.pos).match(it);return Lt&&Lt.index>0?null:(Lt&&at!==!1&&(this.pos+=Lt[0].length),Lt)}},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},$e.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},$e.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function In(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 dt=it;!dt.lines;)for(var ht=0;;++ht){var gt=dt.children[ht],Lt=gt.chunkSize();if(at<Lt){dt=gt;break}at-=Lt}return dt.lines[at]}function wi(it,at,dt){var ht=[],gt=at.line;return it.iter(at.line,dt.line+1,function(Lt){var Dt=Lt.text;gt==dt.line&&(Dt=Dt.slice(0,dt.ch)),gt==at.line&&(Dt=Dt.slice(at.ch)),ht.push(Dt),++gt}),ht}function Mi(it,at,dt){var ht=[];return it.iter(at,dt,function(gt){ht.push(gt.text)}),ht}function Gi(it,at){var dt=at-it.height;if(dt)for(var ht=it;ht;ht=ht.parent)ht.height+=dt}function Ht(it){if(it.parent==null)return null;for(var at=it.parent,dt=Oe(at.lines,it),ht=at.parent;ht;at=ht,ht=ht.parent)for(var gt=0;ht.children[gt]!=at;++gt)dt+=ht.children[gt].chunkSize();return dt+at.first}function de(it,at){var dt=it.first;t:do{for(var ht=0;ht<it.children.length;++ht){var gt=it.children[ht],Lt=gt.height;if(at<Lt){it=gt;continue t}at-=Lt,dt+=gt.chunkSize()}return dt}while(!it.lines);for(var Dt=0;Dt<it.lines.length;++Dt){var Zt=it.lines[Dt],Wt=Zt.height;if(at<Wt)break;at-=Wt}return dt+Dt}function wn(it,at){return at>=it.first&&at<it.first+it.size}function Bn(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function ke(it,at,dt){if(dt===void 0&&(dt=null),!(this instanceof ke))return new ke(it,at,dt);this.line=it,this.ch=at,this.sticky=dt}function vn(it,at){return it.line-at.line||it.ch-at.ch}function un(it,at){return it.sticky==at.sticky&&vn(it,at)==0}function Pn(it){return ke(it.line,it.ch)}function $n(it,at){return vn(it,at)<0?at:it}function Dn(it,at){return vn(it,at)<0?it:at}function Un(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Wn(it,at){if(at.line<it.first)return ke(it.first,0);var dt=it.first+it.size-1;return at.line>dt?ke(dt,In(it,dt).text.length):bi(at,In(it,at.line).text.length)}function bi(it,at){var dt=it.ch;return dt==null||dt>at?ke(it.line,at):dt<0?ke(it.line,0):it}function Pi(it,at){for(var dt=[],ht=0;ht<at.length;ht++)dt[ht]=Wn(it,at[ht]);return dt}var Ci=function(it,at){this.state=it,this.lookAhead=at},je=function(it,at,dt,ht){this.state=at,this.doc=it,this.line=dt,this.maxLookAhead=ht||0,this.baseTokens=null,this.baseTokenPos=1};je.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},je.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}},je.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},je.fromSaved=function(it,at,dt){return at instanceof Ci?new je(it,zn(it.mode,at.state),dt,at.lookAhead):new je(it,zn(it.mode,at),dt)},je.prototype.save=function(it){var at=it!==!1?zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ci(at,this.maxLookAhead):at};function $i(it,at,dt,ht){var gt=[it.state.modeGen],Lt={};tr(it,at.text,it.doc.mode,dt,function($t,De){return gt.push($t,De)},Lt,ht);for(var Dt=dt.state,Zt=function($t){dt.baseTokens=gt;var De=it.state.overlays[$t],oe=1,rn=0;dt.state=!0,tr(it,at.text,De.mode,dt,function(Xe,oi){for(var di=oe;rn<Xe;){var Li=gt[oe];Li>Xe&>.splice(oe,1,Xe,gt[oe+1],Li),oe+=2,rn=Math.min(Xe,Li)}if(oi)if(De.opaque)gt.splice(di,oe-di,Xe,"overlay "+oi),oe=di+2;else for(;di<oe;di+=2){var zi=gt[di+1];gt[di+1]=(zi?zi+" ":"")+"overlay "+oi}},Lt),dt.state=Dt,dt.baseTokens=null,dt.baseTokenPos=1},Wt=0;Wt<it.state.overlays.length;++Wt)Zt(Wt);return{styles:gt,classes:Lt.bgClass||Lt.textClass?Lt:null}}function or(it,at,dt){if(!at.styles||at.styles[0]!=it.state.modeGen){var ht=Fr(it,Ht(at)),gt=at.text.length>it.options.maxHighlightLength&&zn(it.doc.mode,ht.state),Lt=$i(it,at,ht);gt&&(ht.state=gt),at.stateAfter=ht.save(!gt),at.styles=Lt.styles,Lt.classes?at.styleClasses=Lt.classes:at.styleClasses&&(at.styleClasses=null),dt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function Fr(it,at,dt){var ht=it.doc,gt=it.display;if(!ht.mode.startState)return new je(ht,!0,at);var Lt=sr(it,at,dt),Dt=Lt>ht.first&&In(ht,Lt-1).stateAfter,Zt=Dt?je.fromSaved(ht,Dt,Lt):new je(ht,ni(ht.mode),Lt);return ht.iter(Lt,at,function(Wt){Ue(it,Wt.text,Zt);var $t=Zt.line;Wt.stateAfter=$t==at-1||$t%5==0||$t>=gt.viewFrom&&$t<gt.viewTo?Zt.save():null,Zt.nextLine()}),dt&&(ht.modeFrontier=Zt.line),Zt}function Ue(it,at,dt,ht){var gt=it.doc.mode,Lt=new $e(at,it.options.tabSize,dt);for(Lt.start=Lt.pos=ht||0,at==""&&Rn(gt,dt.state);!Lt.eol();)fi(gt,Lt,dt.state),Lt.start=Lt.pos}function Rn(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var dt=Xn(it,at);if(dt.mode.blankLine)return dt.mode.blankLine(dt.state)}}function fi(it,at,dt,ht){for(var gt=0;gt<10;gt++){ht&&(ht[0]=Xn(it,dt).mode);var Lt=it.token(at,dt);if(at.pos>at.start)return Lt}throw new Error("Mode "+it.name+" failed to advance stream.")}var ci=function(it,at,dt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=dt};function Ei(it,at,dt,ht){var gt=it.doc,Lt=gt.mode,Dt;at=Wn(gt,at);var Zt=In(gt,at.line),Wt=Fr(it,at.line,dt),$t=new $e(Zt.text,it.options.tabSize,Wt),De;for(ht&&(De=[]);(ht||$t.pos<at.ch)&&!$t.eol();)$t.start=$t.pos,Dt=fi(Lt,$t,Wt.state),ht&&De.push(new ci($t,Dt,zn(gt.mode,Wt.state)));return ht?De:new ci($t,Dt,Wt.state)}function Zi(it,at){if(it)for(;;){var dt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!dt)break;it=it.slice(0,dt.index)+it.slice(dt.index+dt[0].length);var ht=dt[1]?"bgClass":"textClass";at[ht]==null?at[ht]=dt[2]:new RegExp("(?:^|\\s)"+dt[2]+"(?:$|\\s)").test(at[ht])||(at[ht]+=" "+dt[2])}return it}function tr(it,at,dt,ht,gt,Lt,Dt){var Zt=dt.flattenSpans;Zt==null&&(Zt=it.options.flattenSpans);var Wt=0,$t=null,De=new $e(at,it.options.tabSize,ht),oe,rn=it.options.addModeClass&&[null];for(at==""&&Zi(Rn(dt,ht.state),Lt);!De.eol();){if(De.pos>it.options.maxHighlightLength?(Zt=!1,Dt&&Ue(it,at,ht,De.pos),De.pos=at.length,oe=null):oe=Zi(fi(dt,De,ht.state,rn),Lt),rn){var Xe=rn[0].name;Xe&&(oe="m-"+(oe?Xe+" "+oe:Xe))}if(!Zt||$t!=oe){for(;Wt<De.start;)Wt=Math.min(De.start,Wt+5e3),gt(Wt,$t);$t=oe}De.start=De.pos}for(;Wt<De.pos;){var oi=Math.min(De.pos,Wt+5e3);gt(oi,$t),Wt=oi}}function sr(it,at,dt){for(var ht,gt,Lt=it.doc,Dt=dt?-1:at-(it.doc.mode.innerMode?1e3:100),Zt=at;Zt>Dt;--Zt){if(Zt<=Lt.first)return Lt.first;var Wt=In(Lt,Zt-1),$t=Wt.stateAfter;if($t&&(!dt||Zt+($t instanceof Ci?$t.lookAhead:0)<=Lt.modeFrontier))return Zt;var De=ee(Wt.text,null,it.options.tabSize);(gt==null||ht>De)&&(gt=Zt-1,ht=De)}return gt}function dr(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var dt=it.first,ht=at-1;ht>dt;ht--){var gt=In(it,ht).stateAfter;if(gt&&(!(gt instanceof Ci)||ht+gt.lookAhead<at)){dt=ht+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,dt)}}var gr=!1,tn=!1;function Br(){gr=!0}function en(){tn=!0}function ki(it,at,dt){this.marker=it,this.from=at,this.to=dt}function vr(it,at){if(it)for(var dt=0;dt<it.length;++dt){var ht=it[dt];if(ht.marker==at)return ht}}function yr(it,at){for(var dt,ht=0;ht<it.length;++ht)it[ht]!=at&&(dt||(dt=[])).push(it[ht]);return dt}function Wr(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function Pr(it,at,dt){var ht;if(it)for(var gt=0;gt<it.length;++gt){var Lt=it[gt],Dt=Lt.marker,Zt=Lt.from==null||(Dt.inclusiveLeft?Lt.from<=at:Lt.from<at);if(Zt||Lt.from==at&&Dt.type=="bookmark"&&(!dt||!Lt.marker.insertLeft)){var Wt=Lt.to==null||(Dt.inclusiveRight?Lt.to>=at:Lt.to>at);(ht||(ht=[])).push(new ki(Dt,Lt.from,Wt?null:Lt.to))}}return ht}function ir(it,at,dt){var ht;if(it)for(var gt=0;gt<it.length;++gt){var Lt=it[gt],Dt=Lt.marker,Zt=Lt.to==null||(Dt.inclusiveRight?Lt.to>=at:Lt.to>at);if(Zt||Lt.from==at&&Dt.type=="bookmark"&&(!dt||Lt.marker.insertLeft)){var Wt=Lt.from==null||(Dt.inclusiveLeft?Lt.from<=at:Lt.from<at);(ht||(ht=[])).push(new ki(Dt,Wt?null:Lt.from-at,Lt.to==null?null:Lt.to-at))}}return ht}function Kr(it,at){if(at.full)return null;var dt=wn(it,at.from.line)&&In(it,at.from.line).markedSpans,ht=wn(it,at.to.line)&&In(it,at.to.line).markedSpans;if(!dt&&!ht)return null;var gt=at.from.ch,Lt=at.to.ch,Dt=vn(at.from,at.to)==0,Zt=Pr(dt,gt,Dt),Wt=ir(ht,Lt,Dt),$t=at.text.length==1,De=le(at.text).length+($t?gt:0);if(Zt)for(var oe=0;oe<Zt.length;++oe){var rn=Zt[oe];if(rn.to==null){var Xe=vr(Wt,rn.marker);Xe?$t&&(rn.to=Xe.to==null?null:Xe.to+De):rn.to=gt}}if(Wt)for(var oi=0;oi<Wt.length;++oi){var di=Wt[oi];if(di.to!=null&&(di.to+=De),di.from==null){var Li=vr(Zt,di.marker);Li||(di.from=De,$t&&(Zt||(Zt=[])).push(di))}else di.from+=De,$t&&(Zt||(Zt=[])).push(di)}Zt&&(Zt=Ee(Zt)),Wt&&Wt!=Zt&&(Wt=Ee(Wt));var zi=[Zt];if(!$t){var hr=at.text.length-2,_i;if(hr>0&&Zt)for(var mr=0;mr<Zt.length;++mr)Zt[mr].to==null&&(_i||(_i=[])).push(new ki(Zt[mr].marker,null,null));for(var jr=0;jr<hr;++jr)zi.push(_i);zi.push(Wt)}return zi}function Ee(it){for(var at=0;at<it.length;++at){var dt=it[at];dt.from!=null&&dt.from==dt.to&&dt.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function an(it,at,dt){var ht=null;if(it.iter(at.line,dt.line+1,function(Xe){if(Xe.markedSpans)for(var oi=0;oi<Xe.markedSpans.length;++oi){var di=Xe.markedSpans[oi].marker;di.readOnly&&(!ht||Oe(ht,di)==-1)&&(ht||(ht=[])).push(di)}}),!ht)return null;for(var gt=[{from:at,to:dt}],Lt=0;Lt<ht.length;++Lt)for(var Dt=ht[Lt],Zt=Dt.find(0),Wt=0;Wt<gt.length;++Wt){var $t=gt[Wt];if(!(vn($t.to,Zt.from)<0||vn($t.from,Zt.to)>0)){var De=[Wt,1],oe=vn($t.from,Zt.from),rn=vn($t.to,Zt.to);(oe<0||!Dt.inclusiveLeft&&!oe)&&De.push({from:$t.from,to:Zt.from}),(rn>0||!Dt.inclusiveRight&&!rn)&&De.push({from:Zt.to,to:$t.to}),gt.splice.apply(gt,De),Wt+=De.length-3}}return gt}function Pe(it){var at=it.markedSpans;if(at){for(var dt=0;dt<at.length;++dt)at[dt].marker.detachLine(it);it.markedSpans=null}}function Mt(it,at){if(at){for(var dt=0;dt<at.length;++dt)at[dt].marker.attachLine(it);it.markedSpans=at}}function An(it){return it.inclusiveLeft?-1:0}function Nn(it){return it.inclusiveRight?1:0}function ui(it,at){var dt=it.lines.length-at.lines.length;if(dt!=0)return dt;var ht=it.find(),gt=at.find(),Lt=vn(ht.from,gt.from)||An(it)-An(at);if(Lt)return-Lt;var Dt=vn(ht.to,gt.to)||Nn(it)-Nn(at);return Dt||at.id-it.id}function ai(it,at){var dt=tn&&it.markedSpans,ht;if(dt)for(var gt=void 0,Lt=0;Lt<dt.length;++Lt)gt=dt[Lt],gt.marker.collapsed&&(at?gt.from:gt.to)==null&&(!ht||ui(ht,gt.marker)<0)&&(ht=gt.marker);return ht}function Qn(it){return ai(it,!0)}function nn(it){return ai(it,!1)}function kn(it,at){var dt=tn&&it.markedSpans,ht;if(dt)for(var gt=0;gt<dt.length;++gt){var Lt=dt[gt];Lt.marker.collapsed&&(Lt.from==null||Lt.from<at)&&(Lt.to==null||Lt.to>at)&&(!ht||ui(ht,Lt.marker)<0)&&(ht=Lt.marker)}return ht}function Tn(it,at,dt,ht,gt){var Lt=In(it,at),Dt=tn&&Lt.markedSpans;if(Dt)for(var Zt=0;Zt<Dt.length;++Zt){var Wt=Dt[Zt];if(Wt.marker.collapsed){var $t=Wt.marker.find(0),De=vn($t.from,dt)||An(Wt.marker)-An(gt),oe=vn($t.to,ht)||Nn(Wt.marker)-Nn(gt);if(!(De>=0&&oe<=0||De<=0&&oe>=0)&&(De<=0&&(Wt.marker.inclusiveRight&>.inclusiveLeft?vn($t.to,dt)>=0:vn($t.to,dt)>0)||De>=0&&(Wt.marker.inclusiveRight&>.inclusiveLeft?vn($t.from,ht)<=0:vn($t.from,ht)<0)))return!0}}}function yn(it){for(var at;at=Qn(it);)it=at.find(-1,!0).line;return it}function On(it){for(var at;at=nn(it);)it=at.find(1,!0).line;return it}function Si(it){for(var at,dt;at=nn(it);)it=at.find(1,!0).line,(dt||(dt=[])).push(it);return dt}function ii(it,at){var dt=In(it,at),ht=yn(dt);return dt==ht?at:Ht(ht)}function Gn(it,at){if(at>it.lastLine())return at;var dt=In(it,at),ht;if(!Ve(it,dt))return at;for(;ht=nn(dt);)dt=ht.find(1,!0).line;return Ht(dt)+1}function Ve(it,at){var dt=tn&&at.markedSpans;if(dt){for(var ht=void 0,gt=0;gt<dt.length;++gt)if(ht=dt[gt],!!ht.marker.collapsed){if(ht.from==null)return!0;if(!ht.marker.widgetNode&&ht.from==0&&ht.marker.inclusiveLeft&&gi(it,at,ht))return!0}}}function gi(it,at,dt){if(dt.to==null){var ht=dt.marker.find(1,!0);return gi(it,ht.line,vr(ht.line.markedSpans,dt.marker))}if(dt.marker.inclusiveRight&&dt.to==at.text.length)return!0;for(var gt=void 0,Lt=0;Lt<at.markedSpans.length;++Lt)if(gt=at.markedSpans[Lt],gt.marker.collapsed&&!gt.marker.widgetNode&>.from==dt.to&&(gt.to==null||gt.to!=dt.from)&&(gt.marker.inclusiveLeft||dt.marker.inclusiveRight)&&gi(it,at,gt))return!0}function Di(it){it=yn(it);for(var at=0,dt=it.parent,ht=0;ht<dt.lines.length;++ht){var gt=dt.lines[ht];if(gt==it)break;at+=gt.height}for(var Lt=dt.parent;Lt;dt=Lt,Lt=dt.parent)for(var Dt=0;Dt<Lt.children.length;++Dt){var Zt=Lt.children[Dt];if(Zt==dt)break;at+=Zt.height}return at}function lr(it){if(it.height==0)return 0;for(var at=it.text.length,dt,ht=it;dt=Qn(ht);){var gt=dt.find(0,!0);ht=gt.from.line,at+=gt.from.ch-gt.to.ch}for(ht=it;dt=nn(ht);){var Lt=dt.find(0,!0);at-=ht.text.length-Lt.from.ch,ht=Lt.to.line,at+=ht.text.length-Lt.to.ch}return at}function Xi(it){var at=it.display,dt=it.doc;at.maxLine=In(dt,dt.first),at.maxLineLength=lr(at.maxLine),at.maxLineChanged=!0,dt.iter(function(ht){var gt=lr(ht);gt>at.maxLineLength&&(at.maxLineLength=gt,at.maxLine=ht)})}var kr=function(it,at,dt){this.text=it,Mt(this,at),this.height=dt?dt(this):1};kr.prototype.lineNo=function(){return Ht(this)},Mn(kr);function br(it,at,dt,ht){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Pe(it),Mt(it,dt);var gt=ht?ht(it):1;gt!=it.height&&Gi(it,gt)}function Lr(it){it.parent=null,Pe(it)}var Dr={},Nr={};function _r(it,at){if(!it||/^\s*$/.test(it))return null;var dt=at.addModeClass?Nr:Dr;return dt[it]||(dt[it]=it.replace(/\S+/g,"cm-$&"))}function Ce(it,at){var dt=fe("span",null,null,ie?"padding-right: .1px":null),ht={pre:fe("pre",[dt],"CodeMirror-line"),content:dt,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 Lt=gt?at.rest[gt-1]:at.line,Dt=void 0;ht.pos=0,ht.addToken=Ar,Ai(it.display.measure)&&(Dt=Ke(Lt,it.doc.direction))&&(ht.addToken=pr(ht.addToken,Dt)),ht.map=[];var Zt=at!=it.display.externalMeasured&&Ht(Lt);Hr(Lt,ht,or(it,Lt,Zt)),Lt.styleClasses&&(Lt.styleClasses.bgClass&&(ht.bgClass=Ln(Lt.styleClasses.bgClass,ht.bgClass||"")),Lt.styleClasses.textClass&&(ht.textClass=Ln(Lt.styleClasses.textClass,ht.textClass||""))),ht.map.length==0&&ht.map.push(0,0,ht.content.appendChild(er(it.display.measure))),gt==0?(at.measure.map=ht.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(ht.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(ie){var Wt=ht.content.lastChild;(/\bcm-tab\b/.test(Wt.className)||Wt.querySelector&&Wt.querySelector(".cm-tab"))&&(ht.content.className="cm-tab-wrap-hack")}return ze(it,"renderLine",it,at.line,ht.pre),ht.pre.className&&(ht.textClass=Ln(ht.pre.className,ht.textClass||"")),ht}function Mr(it){var at=Ut("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function Ar(it,at,dt,ht,gt,Lt,Dt){if(at){var Zt=it.splitSpaces?qi(at,it.trailingSpace):at,Wt=it.cm.state.specialChars,$t=!1,De;if(!Wt.test(at))it.col+=at.length,De=document.createTextNode(Zt),it.map.push(it.pos,it.pos+at.length,De),ge&&zt<9&&($t=!0),it.pos+=at.length;else{De=document.createDocumentFragment();for(var oe=0;;){Wt.lastIndex=oe;var rn=Wt.exec(at),Xe=rn?rn.index-oe:at.length-oe;if(Xe){var oi=document.createTextNode(Zt.slice(oe,oe+Xe));ge&&zt<9?De.appendChild(Ut("span",[oi])):De.appendChild(oi),it.map.push(it.pos,it.pos+Xe,oi),it.col+=Xe,it.pos+=Xe}if(!rn)break;oe+=Xe+1;var di=void 0;if(rn[0]==" "){var Li=it.cm.options.tabSize,zi=Li-it.col%Li;di=De.appendChild(Ut("span",cn(zi),"cm-tab")),di.setAttribute("role","presentation"),di.setAttribute("cm-text"," "),it.col+=zi}else rn[0]=="\r"||rn[0]==`
|
|
`?(di=De.appendChild(Ut("span",rn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),di.setAttribute("cm-text",rn[0]),it.col+=1):(di=it.cm.options.specialCharPlaceholder(rn[0]),di.setAttribute("cm-text",rn[0]),ge&&zt<9?De.appendChild(Ut("span",[di])):De.appendChild(di),it.col+=1);it.map.push(it.pos,it.pos+1,di),it.pos++}}if(it.trailingSpace=Zt.charCodeAt(at.length-1)==32,dt||ht||gt||$t||Lt||Dt){var hr=dt||"";ht&&(hr+=ht),gt&&(hr+=gt);var _i=Ut("span",[De],hr,Lt);if(Dt)for(var mr in Dt)Dt.hasOwnProperty(mr)&&mr!="style"&&mr!="class"&&_i.setAttribute(mr,Dt[mr]);return it.content.appendChild(_i)}it.content.appendChild(De)}}function qi(it,at){if(it.length>1&&!/ /.test(it))return it;for(var dt=at,ht="",gt=0;gt<it.length;gt++){var Lt=it.charAt(gt);Lt==" "&&dt&&(gt==it.length-1||it.charCodeAt(gt+1)==32)&&(Lt="\xA0"),ht+=Lt,dt=Lt==" "}return ht}function pr(it,at){return function(dt,ht,gt,Lt,Dt,Zt,Wt){gt=gt?gt+" cm-force-border":"cm-force-border";for(var $t=dt.pos,De=$t+ht.length;;){for(var oe=void 0,rn=0;rn<at.length&&(oe=at[rn],!(oe.to>$t&&oe.from<=$t));rn++);if(oe.to>=De)return it(dt,ht,gt,Lt,Dt,Zt,Wt);it(dt,ht.slice(0,oe.to-$t),gt,Lt,null,Zt,Wt),Lt=null,ht=ht.slice(oe.to-$t),$t=oe.to}}}function rr(it,at,dt,ht){var gt=!ht&&dt.widgetNode;gt&&it.map.push(it.pos,it.pos+at,gt),!ht&&it.cm.display.input.needsContentAttribute&&(gt||(gt=it.content.appendChild(document.createElement("span"))),gt.setAttribute("cm-marker",dt.id)),gt&&(it.cm.display.input.setUneditable(gt),it.content.appendChild(gt)),it.pos+=at,it.trailingSpace=!1}function Hr(it,at,dt){var ht=it.markedSpans,gt=it.text,Lt=0;if(!ht){for(var Dt=1;Dt<dt.length;Dt+=2)at.addToken(at,gt.slice(Lt,Lt=dt[Dt]),_r(dt[Dt+1],at.cm.options));return}for(var Zt=gt.length,Wt=0,$t=1,De="",oe,rn,Xe=0,oi,di,Li,zi,hr;;){if(Xe==Wt){oi=di=Li=rn="",hr=null,zi=null,Xe=1/0;for(var _i=[],mr=void 0,jr=0;jr<ht.length;++jr){var Qi=ht[jr],to=Qi.marker;if(to.type=="bookmark"&&Qi.from==Wt&&to.widgetNode)_i.push(to);else if(Qi.from<=Wt&&(Qi.to==null||Qi.to>Wt||to.collapsed&&Qi.to==Wt&&Qi.from==Wt)){if(Qi.to!=null&&Qi.to!=Wt&&Xe>Qi.to&&(Xe=Qi.to,di=""),to.className&&(oi+=" "+to.className),to.css&&(rn=(rn?rn+";":"")+to.css),to.startStyle&&Qi.from==Wt&&(Li+=" "+to.startStyle),to.endStyle&&Qi.to==Xe&&(mr||(mr=[])).push(to.endStyle,Qi.to),to.title&&((hr||(hr={})).title=to.title),to.attributes)for(var Jo in to.attributes)(hr||(hr={}))[Jo]=to.attributes[Jo];to.collapsed&&(!zi||ui(zi.marker,to)<0)&&(zi=Qi)}else Qi.from>Wt&&Xe>Qi.from&&(Xe=Qi.from)}if(mr)for(var Ra=0;Ra<mr.length;Ra+=2)mr[Ra+1]==Xe&&(di+=" "+mr[Ra]);if(!zi||zi.from==Wt)for(var ra=0;ra<_i.length;++ra)rr(at,0,_i[ra]);if(zi&&(zi.from||0)==Wt){if(rr(at,(zi.to==null?Zt+1:zi.to)-Wt,zi.marker,zi.from==null),zi.to==null)return;zi.to==Wt&&(zi=!1)}}if(Wt>=Zt)break;for(var zs=Math.min(Zt,Xe);;){if(De){var ms=Wt+De.length;if(!zi){var ka=ms>zs?De.slice(0,zs-Wt):De;at.addToken(at,ka,oe?oe+oi:oi,Li,Wt+ka.length==Xe?di:"",rn,hr)}if(ms>=zs){De=De.slice(zs-Wt),Wt=zs;break}Wt=ms,Li=""}De=gt.slice(Lt,Lt=dt[$t++]),oe=_r(dt[$t++],at.cm.options)}}}function Gr(it,at,dt){this.line=at,this.rest=Si(at),this.size=this.rest?Ht(le(this.rest))-dt+1:1,this.node=this.text=null,this.hidden=Ve(it,at)}function cr(it,at,dt){for(var ht=[],gt,Lt=at;Lt<dt;Lt=gt){var Dt=new Gr(it.doc,In(it.doc,Lt),Lt);gt=Lt+Dt.size,ht.push(Dt)}return ht}var eo=null;function ga(it){eo?eo.ops.push(it):it.ownsGroup=eo={ops:[it],delayedCallbacks:[]}}function Bo(it){var at=it.delayedCallbacks,dt=0;do{for(;dt<at.length;dt++)at[dt].call(null);for(var ht=0;ht<it.ops.length;ht++){var gt=it.ops[ht];if(gt.cursorActivityHandlers)for(;gt.cursorActivityCalled<gt.cursorActivityHandlers.length;)gt.cursorActivityHandlers[gt.cursorActivityCalled++].call(null,gt.cm)}}while(dt<at.length)}function Ps(it,at){var dt=it.ownsGroup;if(dt)try{Bo(dt)}finally{eo=null,at(dt)}}var wa=null;function Hi(it,at){var dt=Zn(it,at);if(dt.length){var ht=Array.prototype.slice.call(arguments,2),gt;eo?gt=eo.delayedCallbacks:wa?gt=wa:(gt=wa=[],setTimeout(Po,0));for(var Lt=function(Zt){gt.push(function(){return dt[Zt].apply(null,ht)})},Dt=0;Dt<dt.length;++Dt)Lt(Dt)}}function Po(){var it=wa;wa=null;for(var at=0;at<it.length;++at)it[at]()}function Co(it,at,dt,ht){for(var gt=0;gt<at.changes.length;gt++){var Lt=at.changes[gt];Lt=="text"?ei(it,at):Lt=="gutter"?ur(it,at,dt,ht):Lt=="class"?Ki(it,at):Lt=="widget"&&Er(it,at,ht)}at.changes=null}function ea(it){return it.node==it.text&&(it.node=Ut("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ge&&zt<8&&(it.node.style.zIndex=2)),it.node}function Do(it,at){var dt=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(dt&&(dt+=" CodeMirror-linebackground"),at.background)dt?at.background.className=dt:(at.background.parentNode.removeChild(at.background),at.background=null);else if(dt){var ht=ea(at);at.background=ht.insertBefore(Ut("div",null,dt),ht.firstChild),it.display.input.setUneditable(at.background)}}function Vo(it,at){var dt=it.display.externalMeasured;return dt&&dt.line==at.line?(it.display.externalMeasured=null,at.measure=dt.measure,dt.built):Ce(it,at)}function ei(it,at){var dt=at.text.className,ht=Vo(it,at);at.text==at.node&&(at.node=ht.pre),at.text.parentNode.replaceChild(ht.pre,at.text),at.text=ht.pre,ht.bgClass!=at.bgClass||ht.textClass!=at.textClass?(at.bgClass=ht.bgClass,at.textClass=ht.textClass,Ki(it,at)):dt&&(at.text.className=dt)}function Ki(it,at){Do(it,at),at.line.wrapClass?ea(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var dt=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=dt||""}function ur(it,at,dt,ht){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=ea(at);at.gutterBackground=Ut("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px; width: "+ht.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),gt.insertBefore(at.gutterBackground,at.text)}var Lt=at.line.gutterMarkers;if(it.options.lineNumbers||Lt){var Dt=ea(at),Zt=at.gutter=Ut("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ht.fixedPos:-ht.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Zt),Dt.insertBefore(Zt,at.text),at.line.gutterClass&&(Zt.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Lt||!Lt["CodeMirror-linenumbers"])&&(at.lineNumber=Zt.appendChild(Ut("div",Bn(it.options,dt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ht.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Lt)for(var Wt=0;Wt<it.display.gutterSpecs.length;++Wt){var $t=it.display.gutterSpecs[Wt].className,De=Lt.hasOwnProperty($t)&&Lt[$t];De&&Zt.appendChild(Ut("div",[De],"CodeMirror-gutter-elt","left: "+ht.gutterLeft[$t]+"px; width: "+ht.gutterWidth[$t]+"px"))}}}function Er(it,at,dt){at.alignable&&(at.alignable=null);for(var ht=Tt("CodeMirror-linewidget"),gt=at.node.firstChild,Lt=void 0;gt;gt=Lt)Lt=gt.nextSibling,ht.test(gt.className)&&at.node.removeChild(gt);no(it,at,dt)}function Tr(it,at,dt,ht){var gt=Vo(it,at);return at.text=at.node=gt.pre,gt.bgClass&&(at.bgClass=gt.bgClass),gt.textClass&&(at.textClass=gt.textClass),Ki(it,at),ur(it,at,dt,ht),no(it,at,ht),at.node}function no(it,at,dt){if(Ui(it,at.line,at,dt,!0),at.rest)for(var ht=0;ht<at.rest.length;ht++)Ui(it,at.rest[ht],at,dt,!1)}function Ui(it,at,dt,ht,gt){if(at.widgets)for(var Lt=ea(dt),Dt=0,Zt=at.widgets;Dt<Zt.length;++Dt){var Wt=Zt[Dt],$t=Ut("div",[Wt.node],"CodeMirror-linewidget"+(Wt.className?" "+Wt.className:""));Wt.handleMouseEvents||$t.setAttribute("cm-ignore-events","true"),Ba(Wt,$t,dt,ht),it.display.input.setUneditable($t),gt&&Wt.above?Lt.insertBefore($t,dt.gutter||dt.text):Lt.appendChild($t),Hi(Wt,"redraw")}}function Ba(it,at,dt,ht){if(it.noHScroll){(dt.alignable||(dt.alignable=[])).push(at);var gt=ht.wrapperWidth;at.style.left=ht.fixedPos+"px",it.coverGutter||(gt-=ht.gutterTotalWidth,at.style.paddingLeft=ht.gutterTotalWidth+"px"),at.style.width=gt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-ht.gutterTotalWidth+"px"))}function Wo(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Ne(document.body,it.node)){var dt="position: relative;";it.coverGutter&&(dt+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(dt+="width: "+at.display.wrapper.clientWidth+"px;"),Jt(at.display.measure,Ut("div",[it.node],null,dt))}return it.height=it.node.parentNode.offsetHeight}function No(it,at){for(var dt=Vi(at);dt!=it.wrapper;dt=dt.parentNode)if(!dt||dt.nodeType==1&&dt.getAttribute("cm-ignore-events")=="true"||dt.parentNode==it.sizer&&dt!=it.mover)return!0}function zr(it){return it.lineSpace.offsetTop}function Uo(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Da(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Jt(it.measure,Ut("pre","x","CodeMirror-line-like")),dt=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,ht={left:parseInt(dt.paddingLeft),right:parseInt(dt.paddingRight)};return!isNaN(ht.left)&&!isNaN(ht.right)&&(it.cachedPaddingH=ht),ht}function vo(it){return pn-it.display.nativeBarWidth}function cs(it){return it.display.scroller.clientWidth-vo(it)-it.display.barWidth}function fs(it){return it.display.scroller.clientHeight-vo(it)-it.display.barHeight}function Cs(it,at,dt){var ht=it.options.lineWrapping,gt=ht&&cs(it);if(!at.measure.heights||ht&&at.measure.width!=gt){var Lt=at.measure.heights=[];if(ht){at.measure.width=gt;for(var Dt=at.text.firstChild.getClientRects(),Zt=0;Zt<Dt.length-1;Zt++){var Wt=Dt[Zt],$t=Dt[Zt+1];Math.abs(Wt.bottom-$t.bottom)>2&&Lt.push((Wt.bottom+$t.top)/2-dt.top)}}Lt.push(dt.bottom-dt.top)}}function na(it,at,dt){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var ht=0;ht<it.rest.length;ht++)if(it.rest[ht]==at)return{map:it.measure.maps[ht],cache:it.measure.caches[ht]};for(var gt=0;gt<it.rest.length;gt++)if(Ht(it.rest[gt])>dt)return{map:it.measure.maps[gt],cache:it.measure.caches[gt],before:!0}}function $u(it,at){at=yn(at);var dt=Ht(at),ht=it.display.externalMeasured=new Gr(it.doc,at,dt);ht.lineN=dt;var gt=ht.built=Ce(it,ht);return ht.text=gt.pre,Jt(it.display.lineMeasure,gt.pre),ht}function Bu(it,at,dt,ht){return Ns(it,yl(it,at),dt,ht)}function il(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[Os(it,at)];var dt=it.display.externalMeasured;if(dt&&at>=dt.lineN&&at<dt.lineN+dt.size)return dt}function yl(it,at){var dt=Ht(at),ht=il(it,dt);ht&&!ht.text?ht=null:ht&&ht.changes&&(Co(it,ht,dt,rl(it)),it.curOp.forceUpdate=!0),ht||(ht=$u(it,at));var gt=na(ht,at,dt);return{line:at,view:ht,rect:null,map:gt.map,cache:gt.cache,before:gt.before,hasHeights:!1}}function Ns(it,at,dt,ht,gt){at.before&&(dt=-1);var Lt=dt+(ht||""),Dt;return at.cache.hasOwnProperty(Lt)?Dt=at.cache[Lt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(Cs(it,at.view,at.rect),at.hasHeights=!0),Dt=Yo(it,at,dt,ht),Dt.bogus||(at.cache[Lt]=Dt)),{left:Dt.left,right:Dt.right,top:gt?Dt.rtop:Dt.top,bottom:gt?Dt.rbottom:Dt.bottom}}var Vl={left:0,right:0,top:0,bottom:0};function th(it,at,dt){for(var ht,gt,Lt,Dt,Zt,Wt,$t=0;$t<it.length;$t+=3)if(Zt=it[$t],Wt=it[$t+1],at<Zt?(gt=0,Lt=1,Dt="left"):at<Wt?(gt=at-Zt,Lt=gt+1):($t==it.length-3||at==Wt&&it[$t+3]>at)&&(Lt=Wt-Zt,gt=Lt-1,at>=Wt&&(Dt="right")),gt!=null){if(ht=it[$t+2],Zt==Wt&&dt==(ht.insertLeft?"left":"right")&&(Dt=dt),dt=="left"&>==0)for(;$t&&it[$t-2]==it[$t-3]&&it[$t-1].insertLeft;)ht=it[($t-=3)+2],Dt="left";if(dt=="right"&>==Wt-Zt)for(;$t<it.length-3&&it[$t+3]==it[$t+4]&&!it[$t+5].insertLeft;)ht=it[($t+=3)+2],Dt="right";break}return{node:ht,start:gt,end:Lt,collapse:Dt,coverStart:Zt,coverEnd:Wt}}function eh(it,at){var dt=Vl;if(at=="left")for(var ht=0;ht<it.length&&(dt=it[ht]).left==dt.right;ht++);else for(var gt=it.length-1;gt>=0&&(dt=it[gt]).left==dt.right;gt--);return dt}function Yo(it,at,dt,ht){var gt=th(at.map,dt,ht),Lt=gt.node,Dt=gt.start,Zt=gt.end,Wt=gt.collapse,$t;if(Lt.nodeType==3){for(var De=0;De<4;De++){for(;Dt&&Me(at.line.text.charAt(gt.coverStart+Dt));)--Dt;for(;gt.coverStart+Zt<gt.coverEnd&&Me(at.line.text.charAt(gt.coverStart+Zt));)++Zt;if(ge&&zt<9&&Dt==0&&Zt==gt.coverEnd-gt.coverStart?$t=Lt.parentNode.getBoundingClientRect():$t=eh(ne(Lt,Dt,Zt).getClientRects(),ht),$t.left||$t.right||Dt==0)break;Zt=Dt,Dt=Dt-1,Wt="right"}ge&&zt<11&&($t=Du(it.display.measure,$t))}else{Dt>0&&(Wt=ht="right");var oe;it.options.lineWrapping&&(oe=Lt.getClientRects()).length>1?$t=oe[ht=="right"?oe.length-1:0]:$t=Lt.getBoundingClientRect()}if(ge&&zt<9&&!Dt&&(!$t||!$t.left&&!$t.right)){var rn=Lt.parentNode.getClientRects()[0];rn?$t={left:rn.left,right:rn.left+Ts(it.display),top:rn.top,bottom:rn.bottom}:$t=Vl}for(var Xe=$t.top-at.rect.top,oi=$t.bottom-at.rect.top,di=(Xe+oi)/2,Li=at.view.measure.heights,zi=0;zi<Li.length-1&&!(di<Li[zi]);zi++);var hr=zi?Li[zi-1]:0,_i=Li[zi],mr={left:(Wt=="right"?$t.right:$t.left)-at.rect.left,right:(Wt=="left"?$t.left:$t.right)-at.rect.left,top:hr,bottom:_i};return!$t.left&&!$t.right&&(mr.bogus=!0),it.options.singleCursorHeightPerLine||(mr.rtop=Xe,mr.rbottom=oi),mr}function Du(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Yn(it))return at;var dt=screen.logicalXDPI/screen.deviceXDPI,ht=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*dt,right:at.right*dt,top:at.top*ht,bottom:at.bottom*ht}}function nh(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 Ul(it){it.display.externalMeasure=null,_t(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)nh(it.display.view[at])}function lu(it){Ul(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function La(){return he&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Na(){return he&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function aa(it){var at=0;if(it.widgets)for(var dt=0;dt<it.widgets.length;++dt)it.widgets[dt].above&&(at+=Wo(it.widgets[dt]));return at}function pa(it,at,dt,ht,gt){if(!gt){var Lt=aa(at);dt.top+=Lt,dt.bottom+=Lt}if(ht=="line")return dt;ht||(ht="local");var Dt=Di(at);if(ht=="local"?Dt+=zr(it.display):Dt-=it.display.viewOffset,ht=="page"||ht=="window"){var Zt=it.display.lineSpace.getBoundingClientRect();Dt+=Zt.top+(ht=="window"?0:Na());var Wt=Zt.left+(ht=="window"?0:La());dt.left+=Wt,dt.right+=Wt}return dt.top+=Dt,dt.bottom+=Dt,dt}function Yl(it,at,dt){if(dt=="div")return at;var ht=at.left,gt=at.top;if(dt=="page")ht-=La(),gt-=Na();else if(dt=="local"||!dt){var Lt=it.display.sizer.getBoundingClientRect();ht+=Lt.left,gt+=Lt.top}var Dt=it.display.lineSpace.getBoundingClientRect();return{left:ht-Dt.left,top:gt-Dt.top}}function Ga(it,at,dt,ht,gt){return ht||(ht=In(it.doc,at.line)),pa(it,ht,Bu(it,ht,at.ch,gt),dt)}function co(it,at,dt,ht,gt,Lt){ht=ht||In(it.doc,at.line),gt||(gt=yl(it,ht));function Dt(oi,di){var Li=Ns(it,gt,oi,di?"right":"left",Lt);return di?Li.left=Li.right:Li.right=Li.left,pa(it,ht,Li,dt)}var Zt=Ke(ht,it.doc.direction),Wt=at.ch,$t=at.sticky;if(Wt>=ht.text.length?(Wt=ht.text.length,$t="before"):Wt<=0&&(Wt=0,$t="after"),!Zt)return Dt($t=="before"?Wt-1:Wt,$t=="before");function De(oi,di,Li){var zi=Zt[di],hr=zi.level==1;return Dt(Li?oi-1:oi,hr!=Li)}var oe=xe(Zt,Wt,$t),rn=ve,Xe=De(Wt,oe,$t=="before");return rn!=null&&(Xe.other=De(Wt,rn,$t!="before")),Xe}function oo(it,at){var dt=0;at=Wn(it.doc,at),it.options.lineWrapping||(dt=Ts(it.display)*at.ch);var ht=In(it.doc,at.line),gt=Di(ht)+zr(it.display);return{left:dt,right:dt,top:gt,bottom:gt+ht.height}}function Qr(it,at,dt,ht,gt){var Lt=ke(it,at,dt);return Lt.xRel=gt,ht&&(Lt.outside=ht),Lt}function sa(it,at,dt){var ht=it.doc;if(dt+=it.display.viewOffset,dt<0)return Qr(ht.first,0,null,-1,-1);var gt=de(ht,dt),Lt=ht.first+ht.size-1;if(gt>Lt)return Qr(ht.first+ht.size-1,In(ht,Lt).text.length,null,1,1);at<0&&(at=0);for(var Dt=In(ht,gt);;){var Zt=dn(it,Dt,gt,at,dt),Wt=kn(Dt,Zt.ch+(Zt.xRel>0||Zt.outside>0?1:0));if(!Wt)return Zt;var $t=Wt.find(1);if($t.line==gt)return $t;Dt=In(ht,gt=$t.line)}}function Fi(it,at,dt,ht){ht-=aa(at);var gt=at.text.length,Lt=We(function(Dt){return Ns(it,dt,Dt-1).bottom<=ht},gt,0);return gt=We(function(Dt){return Ns(it,dt,Dt).top>ht},Lt,gt),{begin:Lt,end:gt}}function ca(it,at,dt,ht){dt||(dt=yl(it,at));var gt=pa(it,at,Ns(it,dt,ht),"line").top;return Fi(it,at,dt,gt)}function ae(it,at,dt,ht){return it.bottom<=dt?!1:it.top>dt?!0:(ht?it.left:it.right)>at}function dn(it,at,dt,ht,gt){gt-=Di(at);var Lt=yl(it,at),Dt=aa(at),Zt=0,Wt=at.text.length,$t=!0,De=Ke(at,it.doc.direction);if(De){var oe=(it.options.lineWrapping?Bl:Ks)(it,at,dt,Lt,De,ht,gt);$t=oe.level!=1,Zt=$t?oe.from:oe.to-1,Wt=$t?oe.to:oe.from-1}var rn=null,Xe=null,oi=We(function(jr){var Qi=Ns(it,Lt,jr);return Qi.top+=Dt,Qi.bottom+=Dt,ae(Qi,ht,gt,!1)?(Qi.top<=gt&&Qi.left<=ht&&(rn=jr,Xe=Qi),!0):!1},Zt,Wt),di,Li,zi=!1;if(Xe){var hr=ht-Xe.left<Xe.right-ht,_i=hr==$t;oi=rn+(_i?0:1),Li=_i?"after":"before",di=hr?Xe.left:Xe.right}else{!$t&&(oi==Wt||oi==Zt)&&oi++,Li=oi==0?"after":oi==at.text.length?"before":Ns(it,Lt,oi-($t?1:0)).bottom+Dt<=gt==$t?"after":"before";var mr=co(it,ke(dt,oi,Li),"line",at,Lt);di=mr.left,zi=gt<mr.top?-1:gt>=mr.bottom?1:0}return oi=be(at.text,oi,1),Qr(dt,oi,Li,zi,ht-di)}function Ks(it,at,dt,ht,gt,Lt,Dt){var Zt=We(function(oe){var rn=gt[oe],Xe=rn.level!=1;return ae(co(it,ke(dt,Xe?rn.to:rn.from,Xe?"before":"after"),"line",at,ht),Lt,Dt,!0)},0,gt.length-1),Wt=gt[Zt];if(Zt>0){var $t=Wt.level!=1,De=co(it,ke(dt,$t?Wt.from:Wt.to,$t?"after":"before"),"line",at,ht);ae(De,Lt,Dt,!0)&&De.top>Dt&&(Wt=gt[Zt-1])}return Wt}function Bl(it,at,dt,ht,gt,Lt,Dt){var Zt=Fi(it,at,ht,Dt),Wt=Zt.begin,$t=Zt.end;/\s/.test(at.text.charAt($t-1))&&$t--;for(var De=null,oe=null,rn=0;rn<gt.length;rn++){var Xe=gt[rn];if(!(Xe.from>=$t||Xe.to<=Wt)){var oi=Xe.level!=1,di=Ns(it,ht,oi?Math.min($t,Xe.to)-1:Math.max(Wt,Xe.from)).right,Li=di<Lt?Lt-di+1e9:di-Lt;(!De||oe>Li)&&(De=Xe,oe=Li)}}return De||(De=gt[gt.length-1]),De.from<Wt&&(De={from:Wt,to:De.to,level:De.level}),De.to>$t&&(De={from:De.from,to:$t,level:De.level}),De}var _o;function Pa(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(_o==null){_o=Ut("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)_o.appendChild(document.createTextNode("x")),_o.appendChild(Ut("br"));_o.appendChild(document.createTextNode("x"))}Jt(it.measure,_o);var dt=_o.offsetHeight/50;return dt>3&&(it.cachedTextHeight=dt),_t(it.measure),dt||1}function Ts(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Ut("span","xxxxxxxxxx"),dt=Ut("pre",[at],"CodeMirror-line-like");Jt(it.measure,dt);var ht=at.getBoundingClientRect(),gt=(ht.right-ht.left)/10;return gt>2&&(it.cachedCharWidth=gt),gt||10}function rl(it){for(var at=it.display,dt={},ht={},gt=at.gutters.clientLeft,Lt=at.gutters.firstChild,Dt=0;Lt;Lt=Lt.nextSibling,++Dt){var Zt=it.display.gutterSpecs[Dt].className;dt[Zt]=Lt.offsetLeft+Lt.clientLeft+gt,ht[Zt]=Lt.clientWidth}return{fixedPos:Nu(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:dt,gutterWidth:ht,wrapperWidth:at.wrapper.clientWidth}}function Nu(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function To(it){var at=Pa(it.display),dt=it.options.lineWrapping,ht=dt&&Math.max(5,it.display.scroller.clientWidth/Ts(it.display)-3);return function(gt){if(Ve(it.doc,gt))return 0;var Lt=0;if(gt.widgets)for(var Dt=0;Dt<gt.widgets.length;Dt++)gt.widgets[Dt].height&&(Lt+=gt.widgets[Dt].height);return dt?Lt+(Math.ceil(gt.text.length/ht)||1)*at:Lt+at}}function xr(it){var at=it.doc,dt=To(it);at.iter(function(ht){var gt=dt(ht);gt!=ht.height&&Gi(ht,gt)})}function Ha(it,at,dt,ht){var gt=it.display;if(!dt&&Vi(at).getAttribute("cm-not-content")=="true")return null;var Lt,Dt,Zt=gt.lineSpace.getBoundingClientRect();try{Lt=at.clientX-Zt.left,Dt=at.clientY-Zt.top}catch(oe){return null}var Wt=sa(it,Lt,Dt),$t;if(ht&&Wt.xRel>0&&($t=In(it.doc,Wt.line).text).length==Wt.ch){var De=ee($t,$t.length,it.options.tabSize)-$t.length;Wt=ke(Wt.line,Math.max(0,Math.round((Lt-Da(it.display).left)/Ts(it.display))-De))}return Wt}function Os(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var dt=it.display.view,ht=0;ht<dt.length;ht++)if(at-=dt[ht].size,at<0)return ht}function Oo(it,at,dt,ht){at==null&&(at=it.doc.first),dt==null&&(dt=it.doc.first+it.doc.size),ht||(ht=0);var gt=it.display;if(ht&&dt<gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>at)&&(gt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=gt.viewTo)tn&&ii(it.doc,at)<gt.viewTo&&Go(it);else if(dt<=gt.viewFrom)tn&&Gn(it.doc,dt+ht)>gt.viewFrom?Go(it):(gt.viewFrom+=ht,gt.viewTo+=ht);else if(at<=gt.viewFrom&&dt>=gt.viewTo)Go(it);else if(at<=gt.viewFrom){var Lt=gs(it,dt,dt+ht,1);Lt?(gt.view=gt.view.slice(Lt.index),gt.viewFrom=Lt.lineN,gt.viewTo+=ht):Go(it)}else if(dt>=gt.viewTo){var Dt=gs(it,at,at,-1);Dt?(gt.view=gt.view.slice(0,Dt.index),gt.viewTo=Dt.lineN):Go(it)}else{var Zt=gs(it,at,at,-1),Wt=gs(it,dt,dt+ht,1);Zt&&Wt?(gt.view=gt.view.slice(0,Zt.index).concat(cr(it,Zt.lineN,Wt.lineN)).concat(gt.view.slice(Wt.index)),gt.viewTo+=ht):Go(it)}var $t=gt.externalMeasured;$t&&(dt<$t.lineN?$t.lineN+=ht:at<$t.lineN+$t.size&&(gt.externalMeasured=null))}function Zr(it,at,dt){it.curOp.viewChanged=!0;var ht=it.display,gt=it.display.externalMeasured;if(gt&&at>=gt.lineN&&at<gt.lineN+gt.size&&(ht.externalMeasured=null),!(at<ht.viewFrom||at>=ht.viewTo)){var Lt=ht.view[Os(it,at)];if(Lt.node!=null){var Dt=Lt.changes||(Lt.changes=[]);Oe(Dt,dt)==-1&&Dt.push(dt)}}}function Go(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function gs(it,at,dt,ht){var gt=Os(it,at),Lt,Dt=it.display.view;if(!tn||dt==it.doc.first+it.doc.size)return{index:gt,lineN:dt};for(var Zt=it.display.viewFrom,Wt=0;Wt<gt;Wt++)Zt+=Dt[Wt].size;if(Zt!=at){if(ht>0){if(gt==Dt.length-1)return null;Lt=Zt+Dt[gt].size-at,gt++}else Lt=Zt-at;at+=Lt,dt+=Lt}for(;ii(it.doc,dt)!=dt;){if(gt==(ht<0?0:Dt.length-1))return null;dt+=ht*Dt[gt-(ht<0?1:0)].size,gt+=ht}return{index:gt,lineN:dt}}function xo(it,at,dt){var ht=it.display,gt=ht.view;gt.length==0||at>=ht.viewTo||dt<=ht.viewFrom?(ht.view=cr(it,at,dt),ht.viewFrom=at):(ht.viewFrom>at?ht.view=cr(it,at,ht.viewFrom).concat(ht.view):ht.viewFrom<at&&(ht.view=ht.view.slice(Os(it,at))),ht.viewFrom=at,ht.viewTo<dt?ht.view=ht.view.concat(cr(it,ht.viewTo,dt)):ht.viewTo>dt&&(ht.view=ht.view.slice(0,Os(it,dt)))),ht.viewTo=dt}function Ls(it){for(var at=it.display.view,dt=0,ht=0;ht<at.length;ht++){var gt=at[ht];!gt.hidden&&(!gt.node||gt.changes)&&++dt}return dt}function ma(it){it.display.input.showSelection(it.display.input.prepareSelection())}function uu(it,at){at===void 0&&(at=!0);for(var dt=it.doc,ht={},gt=ht.cursors=document.createDocumentFragment(),Lt=ht.selection=document.createDocumentFragment(),Dt=0;Dt<dt.sel.ranges.length;Dt++)if(!(!at&&Dt==dt.sel.primIndex)){var Zt=dt.sel.ranges[Dt];if(!(Zt.from().line>=it.display.viewTo||Zt.to().line<it.display.viewFrom)){var Wt=Zt.empty();(Wt||it.options.showCursorWhenSelecting)&&ao(it,Zt.head,gt),Wt||io(it,Zt,Lt)}}return ht}function ao(it,at,dt){var ht=co(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),gt=dt.appendChild(Ut("div","\xA0","CodeMirror-cursor"));if(gt.style.left=ht.left+"px",gt.style.top=ht.top+"px",gt.style.height=Math.max(0,ht.bottom-ht.top)*it.options.cursorHeight+"px",ht.other){var Lt=dt.appendChild(Ut("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Lt.style.display="",Lt.style.left=ht.other.left+"px",Lt.style.top=ht.other.top+"px",Lt.style.height=(ht.other.bottom-ht.other.top)*.85+"px"}}function Aa(it,at){return it.top-at.top||it.left-at.left}function io(it,at,dt){var ht=it.display,gt=it.doc,Lt=document.createDocumentFragment(),Dt=Da(it.display),Zt=Dt.left,Wt=Math.max(ht.sizerWidth,cs(it)-ht.sizer.offsetLeft)-Dt.right,$t=gt.direction=="ltr";function De(_i,mr,jr,Qi){mr<0&&(mr=0),mr=Math.round(mr),Qi=Math.round(Qi),Lt.appendChild(Ut("div",null,"CodeMirror-selected","position: absolute; left: "+_i+`px;
|
|
top: `+mr+"px; width: "+(jr==null?Wt-_i:jr)+`px;
|
|
height: `+(Qi-mr)+"px"))}function oe(_i,mr,jr){var Qi=In(gt,_i),to=Qi.text.length,Jo,Ra;function ra(ka,Xs){return Ga(it,ke(_i,ka),"div",Qi,Xs)}function zs(ka,Xs,as){var Ma=ca(it,Qi,null,ka),mo=Xs=="ltr"==(as=="after")?"left":"right",ua=as=="after"?Ma.begin:Ma.end-(/\s/.test(Qi.text.charAt(Ma.end-1))?2:1);return ra(ua,mo)[mo]}var ms=Ke(Qi,gt.direction);return pe(ms,mr||0,jr==null?to:jr,function(ka,Xs,as,Ma){var mo=as=="ltr",ua=ra(ka,mo?"left":"right"),Xa=ra(Xs-1,mo?"right":"left"),ss=mr==null&&ka==0,Ol=jr==null&&Xs==to,oa=Ma==0,Pl=!ms||Ma==ms.length-1;if(Xa.top-ua.top<=3){var fa=($t?ss:Ol)&&oa,Mc=($t?Ol:ss)&&Pl,hl=fa?Zt:(mo?ua:Xa).left,Js=Mc?Wt:(mo?Xa:ua).right;De(hl,ua.top,Js-hl,ua.bottom)}else{var js,Ro,Ja,vu;mo?(js=$t&&ss&&oa?Zt:ua.left,Ro=$t?Wt:zs(ka,as,"before"),Ja=$t?Zt:zs(Xs,as,"after"),vu=$t&&Ol&&Pl?Wt:Xa.right):(js=$t?zs(ka,as,"before"):Zt,Ro=!$t&&ss&&oa?Wt:ua.right,Ja=!$t&&Ol&&Pl?Zt:Xa.left,vu=$t?zs(Xs,as,"after"):Wt),De(js,ua.top,Ro-js,ua.bottom),ua.bottom<Xa.top&&De(Zt,ua.bottom,null,Xa.top),De(Ja,Xa.top,vu-Ja,Xa.bottom)}(!Jo||Aa(ua,Jo)<0)&&(Jo=ua),Aa(Xa,Jo)<0&&(Jo=Xa),(!Ra||Aa(ua,Ra)<0)&&(Ra=ua),Aa(Xa,Ra)<0&&(Ra=Xa)}),{start:Jo,end:Ra}}var rn=at.from(),Xe=at.to();if(rn.line==Xe.line)oe(rn.line,rn.ch,Xe.ch);else{var oi=In(gt,rn.line),di=In(gt,Xe.line),Li=yn(oi)==yn(di),zi=oe(rn.line,rn.ch,Li?oi.text.length+1:null).end,hr=oe(Xe.line,Li?0:null,Xe.ch).start;Li&&(zi.top<hr.top-2?(De(zi.right,zi.top,null,zi.bottom),De(Zt,hr.top,hr.left,hr.bottom)):De(zi.right,zi.top,hr.left-zi.right,zi.bottom)),zi.bottom<hr.top&&De(Zt,zi.bottom,null,hr.top)}dt.appendChild(Lt)}function wo(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var dt=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||Tu(it),at.cursorDiv.style.visibility=(dt=!dt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function Ao(it){it.state.focused||(it.display.input.focus(),ho(it))}function Ho(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Tu(it))},100)}function ho(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(ze(it,"focus",it,at),it.state.focused=!0,Ye(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),ie&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),wo(it))}function Tu(it,at){it.state.delayingBlurEvent||(it.state.focused&&(ze(it,"blur",it,at),it.state.focused=!1,jt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Sr(it){for(var at=it.display,dt=at.lineDiv.offsetTop,ht=0;ht<at.view.length;ht++){var gt=at.view[ht],Lt=it.options.lineWrapping,Dt=void 0,Zt=0;if(!gt.hidden){if(ge&&zt<8){var Wt=gt.node.offsetTop+gt.node.offsetHeight;Dt=Wt-dt,dt=Wt}else{var $t=gt.node.getBoundingClientRect();Dt=$t.bottom-$t.top,!Lt&>.text.firstChild&&(Zt=gt.text.firstChild.getBoundingClientRect().right-$t.left-1)}var De=gt.line.height-Dt;if((De>.005||De<-.005)&&(Gi(gt.line,Dt),sc(gt.line),gt.rest))for(var oe=0;oe<gt.rest.length;oe++)sc(gt.rest[oe]);if(Zt>it.display.sizerWidth){var rn=Math.ceil(Zt/Ts(it.display));rn>it.display.maxLineLength&&(it.display.maxLineLength=rn,it.display.maxLine=gt.line,it.display.maxLineChanged=!0)}}}}function sc(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var dt=it.widgets[at],ht=dt.node.parentNode;ht&&(dt.height=ht.offsetHeight)}}function qr(it,at,dt){var ht=dt&&dt.top!=null?Math.max(0,dt.top):it.scroller.scrollTop;ht=Math.floor(ht-zr(it));var gt=dt&&dt.bottom!=null?dt.bottom:ht+it.wrapper.clientHeight,Lt=de(at,ht),Dt=de(at,gt);if(dt&&dt.ensure){var Zt=dt.ensure.from.line,Wt=dt.ensure.to.line;Zt<Lt?(Lt=Zt,Dt=de(at,Di(In(at,Zt))+it.wrapper.clientHeight)):Math.min(Wt,at.lastLine())>=Dt&&(Lt=de(at,Di(In(at,Wt))-it.wrapper.clientHeight),Dt=Wt)}return{from:Lt,to:Math.max(Dt,Lt+1)}}function Cd(it,at){if(!Je(it,"scrollCursorIntoView")){var dt=it.display,ht=dt.sizer.getBoundingClientRect(),gt=null;if(at.top+ht.top<0?gt=!0:at.bottom+ht.top>(window.innerHeight||document.documentElement.clientHeight)&&(gt=!1),gt!=null&&!He){var Lt=Ut("div","\u200B",null,`position: absolute;
|
|
top: `+(at.top-dt.viewOffset-zr(it.display))+`px;
|
|
height: `+(at.bottom-at.top+vo(it)+dt.barHeight)+`px;
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Lt),Lt.scrollIntoView(gt),it.display.lineSpace.removeChild(Lt)}}}function hu(it,at,dt,ht){ht==null&&(ht=0);var gt;!it.options.lineWrapping&&at==dt&&(at=at.ch?ke(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,dt=at.sticky=="before"?ke(at.line,at.ch+1,"before"):at);for(var Lt=0;Lt<5;Lt++){var Dt=!1,Zt=co(it,at),Wt=!dt||dt==at?Zt:co(it,dt);gt={left:Math.min(Zt.left,Wt.left),top:Math.min(Zt.top,Wt.top)-ht,right:Math.max(Zt.left,Wt.left),bottom:Math.max(Zt.bottom,Wt.bottom)+ht};var $t=Ld(it,gt),De=it.doc.scrollTop,oe=it.doc.scrollLeft;if($t.scrollTop!=null&&(Xl(it,$t.scrollTop),Math.abs(it.doc.scrollTop-De)>1&&(Dt=!0)),$t.scrollLeft!=null&&(Jl(it,$t.scrollLeft),Math.abs(it.doc.scrollLeft-oe)>1&&(Dt=!0)),!Dt)break}return gt}function ih(it,at){var dt=Ld(it,at);dt.scrollTop!=null&&Xl(it,dt.scrollTop),dt.scrollLeft!=null&&Jl(it,dt.scrollLeft)}function Ld(it,at){var dt=it.display,ht=Pa(it.display);at.top<0&&(at.top=0);var gt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:dt.scroller.scrollTop,Lt=fs(it),Dt={};at.bottom-at.top>Lt&&(at.bottom=at.top+Lt);var Zt=it.doc.height+Uo(dt),Wt=at.top<ht,$t=at.bottom>Zt-ht;if(at.top<gt)Dt.scrollTop=Wt?0:at.top;else if(at.bottom>gt+Lt){var De=Math.min(at.top,($t?Zt:at.bottom)-Lt);De!=gt&&(Dt.scrollTop=De)}var oe=it.options.fixedGutter?0:dt.gutters.offsetWidth,rn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:dt.scroller.scrollLeft-oe,Xe=cs(it)-dt.gutters.offsetWidth,oi=at.right-at.left>Xe;return oi&&(at.right=at.left+Xe),at.left<10?Dt.scrollLeft=0:at.left<rn?Dt.scrollLeft=Math.max(0,at.left+oe-(oi?0:10)):at.right>Xe+rn-3&&(Dt.scrollLeft=at.right+(oi?0:10)-Xe),Dt}function zh(it,at){at!=null&&(ol(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Dl(it){ol(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Ou(it,at,dt){(at!=null||dt!=null)&&ol(it),at!=null&&(it.curOp.scrollLeft=at),dt!=null&&(it.curOp.scrollTop=dt)}function uo(it,at){ol(it),it.curOp.scrollToPos=at}function ol(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var dt=oo(it,at.from),ht=oo(it,at.to);jh(it,dt,ht,at.margin)}}function jh(it,at,dt,ht){var gt=Ld(it,{left:Math.min(at.left,dt.left),top:Math.min(at.top,dt.top)-ht,right:Math.max(at.right,dt.right),bottom:Math.max(at.bottom,dt.bottom)+ht});Ou(it,gt.scrollLeft,gt.scrollTop)}function Xl(it,at){Math.abs(it.doc.scrollTop-at)<2||(Ft||oh(it,{top:at}),Ad(it,at,!0),Ft&&oh(it),Ed(it,100))}function Ad(it,at,dt){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!dt)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function Jl(it,at,dt,ht){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((dt?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!ht)&&(it.doc.scrollLeft=at,$c(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function Vr(it){var at=it.display,dt=at.gutters.offsetWidth,ht=Math.round(it.doc.height+Uo(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?dt:0,docHeight:ht,scrollHeight:ht+vo(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:dt}}var so=function(it,at,dt){this.cm=dt;var ht=this.vert=Ut("div",[Ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),gt=this.horiz=Ut("div",[Ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ht.tabIndex=gt.tabIndex=-1,it(ht),it(gt),_e(ht,"scroll",function(){ht.clientHeight&&at(ht.scrollTop,"vertical")}),_e(gt,"scroll",function(){gt.clientWidth&&at(gt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&zt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};so.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,dt=it.scrollHeight>it.clientHeight+1,ht=it.nativeBarWidth;if(dt){this.vert.style.display="block",this.vert.style.bottom=at?ht+"px":"0";var gt=it.viewHeight-(at?ht:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+gt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=dt?ht+"px":"0",this.horiz.style.left=it.barLeft+"px";var Lt=it.viewWidth-it.barLeft-(dt?ht:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Lt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ht==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:dt?ht:0,bottom:at?ht:0}},so.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},so.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},so.prototype.zeroWidthHack=function(){var it=ct&&!te?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Kt,this.disableVert=new Kt},so.prototype.enableZeroWidthBar=function(it,at,dt){it.style.pointerEvents="auto";function ht(){var gt=it.getBoundingClientRect(),Lt=dt=="vert"?document.elementFromPoint(gt.right-1,(gt.top+gt.bottom)/2):document.elementFromPoint((gt.right+gt.left)/2,gt.bottom-1);Lt!=it?it.style.pointerEvents="none":at.set(1e3,ht)}at.set(1e3,ht)},so.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Xo=function(){};Xo.prototype.update=function(){return{bottom:0,right:0}},Xo.prototype.setScrollLeft=function(){},Xo.prototype.setScrollTop=function(){},Xo.prototype.clear=function(){};function Ta(it,at){at||(at=Vr(it));var dt=it.display.barWidth,ht=it.display.barHeight;Ea(it,at);for(var gt=0;gt<4&&dt!=it.display.barWidth||ht!=it.display.barHeight;gt++)dt!=it.display.barWidth&&it.options.lineWrapping&&Sr(it),Ea(it,Vr(it)),dt=it.display.barWidth,ht=it.display.barHeight}function Ea(it,at){var dt=it.display,ht=dt.scrollbars.update(at);dt.sizer.style.paddingRight=(dt.barWidth=ht.right)+"px",dt.sizer.style.paddingBottom=(dt.barHeight=ht.bottom)+"px",dt.heightForcer.style.borderBottom=ht.bottom+"px solid transparent",ht.right&&ht.bottom?(dt.scrollbarFiller.style.display="block",dt.scrollbarFiller.style.height=ht.bottom+"px",dt.scrollbarFiller.style.width=ht.right+"px"):dt.scrollbarFiller.style.display="",ht.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(dt.gutterFiller.style.display="block",dt.gutterFiller.style.height=ht.bottom+"px",dt.gutterFiller.style.width=at.gutterWidth+"px"):dt.gutterFiller.style.display=""}var du={native:so,null:Xo};function Ql(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&jt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new du[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),_e(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,dt){dt=="horizontal"?Jl(it,at):Xl(it,at)},it),it.display.scrollbars.addClass&&Ye(it.display.wrapper,it.display.scrollbars.addClass)}var cu=0;function al(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:++cu},ga(it.curOp)}function Nl(it){var at=it.curOp;at&&Ps(at,function(dt){for(var ht=0;ht<dt.ops.length;ht++)dt.ops[ht].cm.curOp=null;Q0(dt)})}function Q0(it){for(var at=it.ops,dt=0;dt<at.length;dt++)q0(at[dt]);for(var ht=0;ht<at.length;ht++)_0(at[ht]);for(var gt=0;gt<at.length;gt++)Rp(at[gt]);for(var Lt=0;Lt<at.length;Lt++)la(at[Lt]);for(var Dt=0;Dt<at.length;Dt++)rh(at[Dt])}function q0(it){var at=it.cm,dt=at.display;zp(at),it.updateMaxLine&&Xi(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<dt.viewFrom||it.scrollToPos.to.line>=dt.viewTo)||dt.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new Wh(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _0(it){it.updatedDisplay=it.mustUpdate&&_c(it.cm,it.update)}function Rp(it){var at=it.cm,dt=at.display;it.updatedDisplay&&Sr(at),it.barMeasure=Vr(at),dt.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Bu(at,dt.maxLine,dt.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(dt.scroller.clientWidth,dt.sizer.offsetLeft+it.adjustWidthTo+vo(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,dt.sizer.offsetLeft+it.adjustWidthTo-cs(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=dt.input.prepareSelection())}function la(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&Jl(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var dt=it.focus&&it.focus==Ge();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,dt),(it.updatedDisplay||it.startHeight!=at.doc.height)&&Ta(at,it.barMeasure),it.updatedDisplay&&sh(at,it.barMeasure),it.selectionChanged&&wo(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),dt&&Ao(it.cm)}function rh(it){var at=it.cm,dt=at.display,ht=at.doc;if(it.updatedDisplay&&Eo(at,it.update),dt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(dt.wheelStartX=dt.wheelStartY=null),it.scrollTop!=null&&Ad(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Jl(at,it.scrollLeft,!0,!0),it.scrollToPos){var gt=hu(at,Wn(ht,it.scrollToPos.from),Wn(ht,it.scrollToPos.to),it.scrollToPos.margin);Cd(at,gt)}var Lt=it.maybeHiddenMarkers,Dt=it.maybeUnhiddenMarkers;if(Lt)for(var Zt=0;Zt<Lt.length;++Zt)Lt[Zt].lines.length||ze(Lt[Zt],"hide");if(Dt)for(var Wt=0;Wt<Dt.length;++Wt)Dt[Wt].lines.length&&ze(Dt[Wt],"unhide");dt.wrapper.offsetHeight&&(ht.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&ze(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function yo(it,at){if(it.curOp)return at();al(it);try{return at()}finally{Nl(it)}}function Oa(it,at){return function(){if(it.curOp)return at.apply(it,arguments);al(it);try{return at.apply(it,arguments)}finally{Nl(it)}}}function Za(it){return function(){if(this.curOp)return it.apply(this,arguments);al(this);try{return it.apply(this,arguments)}finally{Nl(this)}}}function Ka(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);al(at);try{return it.apply(this,arguments)}finally{Nl(at)}}}function Ed(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,Be(Va,it))}function Va(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var dt=+new Date+it.options.workTime,ht=Fr(it,at.highlightFrontier),gt=[];at.iter(ht.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Lt){if(ht.line>=it.display.viewFrom){var Dt=Lt.styles,Zt=Lt.text.length>it.options.maxHighlightLength?zn(at.mode,ht.state):null,Wt=$i(it,Lt,ht,!0);Zt&&(ht.state=Zt),Lt.styles=Wt.styles;var $t=Lt.styleClasses,De=Wt.classes;De?Lt.styleClasses=De:$t&&(Lt.styleClasses=null);for(var oe=!Dt||Dt.length!=Lt.styles.length||$t!=De&&(!$t||!De||$t.bgClass!=De.bgClass||$t.textClass!=De.textClass),rn=0;!oe&&rn<Dt.length;++rn)oe=Dt[rn]!=Lt.styles[rn];oe&>.push(ht.line),Lt.stateAfter=ht.save(),ht.nextLine()}else Lt.text.length<=it.options.maxHighlightLength&&Ue(it,Lt.text,ht),Lt.stateAfter=ht.line%5==0?ht.save():null,ht.nextLine();if(+new Date>dt)return Ed(it,it.options.workDelay),!0}),at.highlightFrontier=ht.line,at.modeFrontier=Math.max(at.modeFrontier,ht.line),gt.length&&yo(it,function(){for(var Lt=0;Lt<gt.length;Lt++)Zr(it,gt[Lt],"text")})}}var Wh=function(it,at,dt){var ht=it.display;this.viewport=at,this.visible=qr(ht,it.doc,at),this.editorIsHidden=!ht.wrapper.offsetWidth,this.wrapperHeight=ht.wrapper.clientHeight,this.wrapperWidth=ht.wrapper.clientWidth,this.oldDisplayWidth=cs(it),this.force=dt,this.dims=rl(it),this.events=[]};Wh.prototype.signal=function(it,at){Sn(it,at)&&this.events.push(arguments)},Wh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)ze.apply(null,this.events[it])};function zp(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=vo(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=vo(it)+"px",at.scrollbarsClipped=!0)}function jp(it){if(it.hasFocus())return null;var at=Ge();if(!at||!Ne(it.display.lineDiv,at))return null;var dt={activeElt:at};if(window.getSelection){var ht=window.getSelection();ht.anchorNode&&ht.extend&&Ne(it.display.lineDiv,ht.anchorNode)&&(dt.anchorNode=ht.anchorNode,dt.anchorOffset=ht.anchorOffset,dt.focusNode=ht.focusNode,dt.focusOffset=ht.focusOffset)}return dt}function Is(it){if(!(!it||!it.activeElt||it.activeElt==Ge())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ne(document.body,it.anchorNode)&&Ne(document.body,it.focusNode))){var at=window.getSelection(),dt=document.createRange();dt.setEnd(it.anchorNode,it.anchorOffset),dt.collapse(!1),at.removeAllRanges(),at.addRange(dt),at.extend(it.focusNode,it.focusOffset)}}function _c(it,at){var dt=it.display,ht=it.doc;if(at.editorIsHidden)return Go(it),!1;if(!at.force&&at.visible.from>=dt.viewFrom&&at.visible.to<=dt.viewTo&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo)&&dt.renderedView==dt.view&&Ls(it)==0)return!1;Ca(it)&&(Go(it),at.dims=rl(it));var gt=ht.first+ht.size,Lt=Math.max(at.visible.from-it.options.viewportMargin,ht.first),Dt=Math.min(gt,at.visible.to+it.options.viewportMargin);dt.viewFrom<Lt&&Lt-dt.viewFrom<20&&(Lt=Math.max(ht.first,dt.viewFrom)),dt.viewTo>Dt&&dt.viewTo-Dt<20&&(Dt=Math.min(gt,dt.viewTo)),tn&&(Lt=ii(it.doc,Lt),Dt=Gn(it.doc,Dt));var Zt=Lt!=dt.viewFrom||Dt!=dt.viewTo||dt.lastWrapHeight!=at.wrapperHeight||dt.lastWrapWidth!=at.wrapperWidth;xo(it,Lt,Dt),dt.viewOffset=Di(In(it.doc,dt.viewFrom)),it.display.mover.style.top=dt.viewOffset+"px";var Wt=Ls(it);if(!Zt&&Wt==0&&!at.force&&dt.renderedView==dt.view&&(dt.updateLineNumbers==null||dt.updateLineNumbers>=dt.viewTo))return!1;var $t=jp(it);return Wt>4&&(dt.lineDiv.style.display="none"),sg(it,dt.updateLineNumbers,at.dims),Wt>4&&(dt.lineDiv.style.display=""),dt.renderedView=dt.view,Is($t),_t(dt.cursorDiv),_t(dt.selectionDiv),dt.gutters.style.height=dt.sizer.style.minHeight=0,Zt&&(dt.lastWrapHeight=at.wrapperHeight,dt.lastWrapWidth=at.wrapperWidth,Ed(it,400)),dt.updateLineNumbers=null,!0}function Eo(it,at){for(var dt=at.viewport,ht=!0;;ht=!1){if(!ht||!it.options.lineWrapping||at.oldDisplayWidth==cs(it)){if(dt&&dt.top!=null&&(dt={top:Math.min(it.doc.height+Uo(it.display)-fs(it),dt.top)}),at.visible=qr(it.display,it.doc,dt),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else ht&&(at.visible=qr(it.display,it.doc,dt));if(!_c(it,at))break;Sr(it);var gt=Vr(it);ma(it),Ta(it,gt),sh(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 oh(it,at){var dt=new Wh(it,at);if(_c(it,dt)){Sr(it),Eo(it,dt);var ht=Vr(it);ma(it),Ta(it,ht),sh(it,ht),dt.finish()}}function sg(it,at,dt){var ht=it.display,gt=it.options.lineNumbers,Lt=ht.lineDiv,Dt=Lt.firstChild;function Zt(oi){var di=oi.nextSibling;return ie&&ct&&it.display.currentWheelTarget==oi?oi.style.display="none":oi.parentNode.removeChild(oi),di}for(var Wt=ht.view,$t=ht.viewFrom,De=0;De<Wt.length;De++){var oe=Wt[De];if(!oe.hidden)if(!oe.node||oe.node.parentNode!=Lt){var rn=Tr(it,oe,$t,dt);Lt.insertBefore(rn,Dt)}else{for(;Dt!=oe.node;)Dt=Zt(Dt);var Xe=gt&&at!=null&&at<=$t&&oe.lineNumber;oe.changes&&(Oe(oe.changes,"gutter")>-1&&(Xe=!1),Co(it,oe,$t,dt)),Xe&&(_t(oe.lineNumber),oe.lineNumber.appendChild(document.createTextNode(Bn(it.options,$t)))),Dt=oe.node.nextSibling}$t+=oe.size}for(;Dt;)Dt=Zt(Dt)}function ah(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function sh(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+vo(it)+"px"}function $c(it){var at=it.display,dt=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var ht=Nu(at)-at.scroller.scrollLeft+it.doc.scrollLeft,gt=at.gutters.offsetWidth,Lt=ht+"px",Dt=0;Dt<dt.length;Dt++)if(!dt[Dt].hidden){it.options.fixedGutter&&(dt[Dt].gutter&&(dt[Dt].gutter.style.left=Lt),dt[Dt].gutterBackground&&(dt[Dt].gutterBackground.style.left=Lt));var Zt=dt[Dt].alignable;if(Zt)for(var Wt=0;Wt<Zt.length;Wt++)Zt[Wt].style.left=Lt}it.options.fixedGutter&&(at.gutters.style.left=ht+gt+"px")}}function Ca(it){if(!it.options.lineNumbers)return!1;var at=it.doc,dt=Bn(it.options,at.first+at.size-1),ht=it.display;if(dt.length!=ht.lineNumChars){var gt=ht.measure.appendChild(Ut("div",[Ut("div",dt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Lt=gt.firstChild.offsetWidth,Dt=gt.offsetWidth-Lt;return ht.lineGutter.style.width="",ht.lineNumInnerWidth=Math.max(Lt,ht.lineGutter.offsetWidth-Dt)+1,ht.lineNumWidth=ht.lineNumInnerWidth+Dt,ht.lineNumChars=ht.lineNumInnerWidth?dt.length:-1,ht.lineGutter.style.width=ht.lineNumWidth+"px",ah(it.display),!0}return!1}function Ua(it,at){for(var dt=[],ht=!1,gt=0;gt<it.length;gt++){var Lt=it[gt],Dt=null;if(typeof Lt!="string"&&(Dt=Lt.style,Lt=Lt.className),Lt=="CodeMirror-linenumbers")if(at)ht=!0;else continue;dt.push({className:Lt,style:Dt})}return at&&!ht&&dt.push({className:"CodeMirror-linenumbers",style:null}),dt}function Gh(it){var at=it.gutters,dt=it.gutterSpecs;_t(at),it.lineGutter=null;for(var ht=0;ht<dt.length;++ht){var gt=dt[ht],Lt=gt.className,Dt=gt.style,Zt=at.appendChild(Ut("div",null,"CodeMirror-gutter "+Lt));Dt&&(Zt.style.cssText=Dt),Lt=="CodeMirror-linenumbers"&&(it.lineGutter=Zt,Zt.style.width=(it.lineNumWidth||1)+"px")}at.style.display=dt.length?"":"none",ah(it)}function sl(it){Gh(it.display),Oo(it),$c(it)}function lh(it,at,dt,ht){var gt=this;this.input=dt,gt.scrollbarFiller=Ut("div",null,"CodeMirror-scrollbar-filler"),gt.scrollbarFiller.setAttribute("cm-not-content","true"),gt.gutterFiller=Ut("div",null,"CodeMirror-gutter-filler"),gt.gutterFiller.setAttribute("cm-not-content","true"),gt.lineDiv=fe("div",null,"CodeMirror-code"),gt.selectionDiv=Ut("div",null,null,"position: relative; z-index: 1"),gt.cursorDiv=Ut("div",null,"CodeMirror-cursors"),gt.measure=Ut("div",null,"CodeMirror-measure"),gt.lineMeasure=Ut("div",null,"CodeMirror-measure"),gt.lineSpace=fe("div",[gt.measure,gt.lineMeasure,gt.selectionDiv,gt.cursorDiv,gt.lineDiv],null,"position: relative; outline: none");var Lt=fe("div",[gt.lineSpace],"CodeMirror-lines");gt.mover=Ut("div",[Lt],null,"position: relative"),gt.sizer=Ut("div",[gt.mover],"CodeMirror-sizer"),gt.sizerWidth=null,gt.heightForcer=Ut("div",null,null,"position: absolute; height: "+pn+"px; width: 1px;"),gt.gutters=Ut("div",null,"CodeMirror-gutters"),gt.lineGutter=null,gt.scroller=Ut("div",[gt.sizer,gt.heightForcer,gt.gutters],"CodeMirror-scroll"),gt.scroller.setAttribute("tabIndex","-1"),gt.wrapper=Ut("div",[gt.scrollbarFiller,gt.gutterFiller,gt.scroller],"CodeMirror"),ge&&zt<8&&(gt.gutters.style.zIndex=-1,gt.scroller.style.paddingRight=0),!ie&&!(Ft&&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=Ua(ht.gutters,ht.lineNumbers),Gh(gt),dt.init(gt)}var Vs=0,va=null;ge?va=-.53:Ft?va=15:he?va=-.7:qe&&(va=-1/3);function ql(it){var at=it.wheelDeltaX,dt=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),dt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?dt=it.detail:dt==null&&(dt=it.wheelDelta),{x:at,y:dt}}function ll(it){var at=ql(it);return at.x*=va,at.y*=va,at}function Ya(it,at){var dt=ql(at),ht=dt.x,gt=dt.y,Lt=it.display,Dt=Lt.scroller,Zt=Dt.scrollWidth>Dt.clientWidth,Wt=Dt.scrollHeight>Dt.clientHeight;if(ht&&Zt||gt&&Wt){if(gt&&ct&&ie){t:for(var $t=at.target,De=Lt.view;$t!=Dt;$t=$t.parentNode)for(var oe=0;oe<De.length;oe++)if(De[oe].node==$t){it.display.currentWheelTarget=$t;break t}}if(ht&&!Ft&&!Vt&&va!=null){gt&&Wt&&Xl(it,Math.max(0,Dt.scrollTop+gt*va)),Jl(it,Math.max(0,Dt.scrollLeft+ht*va)),(!gt||gt&&Wt)&&Hn(at),Lt.wheelStartX=null;return}if(gt&&va!=null){var rn=gt*va,Xe=it.doc.scrollTop,oi=Xe+Lt.wrapper.clientHeight;rn<0?Xe=Math.max(0,Xe+rn-50):oi=Math.min(it.doc.height,oi+rn+50),oh(it,{top:Xe,bottom:oi})}Vs<20&&(Lt.wheelStartX==null?(Lt.wheelStartX=Dt.scrollLeft,Lt.wheelStartY=Dt.scrollTop,Lt.wheelDX=ht,Lt.wheelDY=gt,setTimeout(function(){if(Lt.wheelStartX!=null){var di=Dt.scrollLeft-Lt.wheelStartX,Li=Dt.scrollTop-Lt.wheelStartY,zi=Li&&Lt.wheelDY&&Li/Lt.wheelDY||di&&Lt.wheelDX&&di/Lt.wheelDX;Lt.wheelStartX=Lt.wheelStartY=null,zi&&(va=(va*Vs+zi)/(Vs+1),++Vs)}},200)):(Lt.wheelDX+=ht,Lt.wheelDY+=gt))}}var Sl=function(it,at){this.ranges=it,this.primIndex=at};Sl.prototype.primary=function(){return this.ranges[this.primIndex]},Sl.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 dt=this.ranges[at],ht=it.ranges[at];if(!un(dt.anchor,ht.anchor)||!un(dt.head,ht.head))return!1}return!0},Sl.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new bo(Pn(this.ranges[at].anchor),Pn(this.ranges[at].head));return new Sl(it,this.primIndex)},Sl.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Sl.prototype.contains=function(it,at){at||(at=it);for(var dt=0;dt<this.ranges.length;dt++){var ht=this.ranges[dt];if(vn(at,ht.from())>=0&&vn(it,ht.to())<=0)return dt}return-1};var bo=function(it,at){this.anchor=it,this.head=at};bo.prototype.from=function(){return Dn(this.anchor,this.head)},bo.prototype.to=function(){return $n(this.anchor,this.head)},bo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tl(it,at,dt){var ht=it&&it.options.selectionsMayTouch,gt=at[dt];at.sort(function(rn,Xe){return vn(rn.from(),Xe.from())}),dt=Oe(at,gt);for(var Lt=1;Lt<at.length;Lt++){var Dt=at[Lt],Zt=at[Lt-1],Wt=vn(Zt.to(),Dt.from());if(ht&&!Dt.empty()?Wt>0:Wt>=0){var $t=Dn(Zt.from(),Dt.from()),De=$n(Zt.to(),Dt.to()),oe=Zt.empty()?Dt.from()==Dt.head:Zt.from()==Zt.head;Lt<=dt&&--dt,at.splice(--Lt,2,new bo(oe?De:$t,oe?$t:De))}}return new Sl(at,dt)}function Iu(it,at){return new Sl([new bo(it,at||it)],0)}function uh(it){return it.text?ke(it.from.line+it.text.length-1,le(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Hh(it,at){if(vn(it,at.from)<0)return it;if(vn(it,at.to)<=0)return uh(at);var dt=it.line+at.text.length-(at.to.line-at.from.line)-1,ht=it.ch;return it.line==at.to.line&&(ht+=uh(at).ch-at.to.ch),ke(dt,ht)}function lc(it,at){for(var dt=[],ht=0;ht<it.sel.ranges.length;ht++){var gt=it.sel.ranges[ht];dt.push(new bo(Hh(gt.anchor,at),Hh(gt.head,at)))}return Tl(it.cm,dt,it.sel.primIndex)}function bd(it,at,dt){return it.line==at.line?ke(dt.line,it.ch-at.ch+dt.ch):ke(dt.line+(it.line-at.line),it.ch)}function uc(it,at,dt){for(var ht=[],gt=ke(it.first,0),Lt=gt,Dt=0;Dt<at.length;Dt++){var Zt=at[Dt],Wt=bd(Zt.from,gt,Lt),$t=bd(uh(Zt),gt,Lt);if(gt=Zt.to,Lt=$t,dt=="around"){var De=it.sel.ranges[Dt],oe=vn(De.head,De.anchor)<0;ht[Dt]=new bo(oe?$t:Wt,oe?Wt:$t)}else ht[Dt]=new bo(Wt,Wt)}return new Sl(ht,it.sel.primIndex)}function $r(it){it.doc.mode=me(it.options,it.doc.modeOption),hc(it)}function hc(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,Ed(it,100),it.state.modeGen++,it.curOp&&Oo(it)}function lg(it,at){return at.from.ch==0&&at.to.ch==0&&le(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function tf(it,at,dt,ht){function gt(hr){return dt?dt[hr]:null}function Lt(hr,_i,mr){br(hr,_i,mr,ht),Hi(hr,"change",hr,at)}function Dt(hr,_i){for(var mr=[],jr=hr;jr<_i;++jr)mr.push(new kr($t[jr],gt(jr),ht));return mr}var Zt=at.from,Wt=at.to,$t=at.text,De=In(it,Zt.line),oe=In(it,Wt.line),rn=le($t),Xe=gt($t.length-1),oi=Wt.line-Zt.line;if(at.full)it.insert(0,Dt(0,$t.length)),it.remove($t.length,it.size-$t.length);else if(lg(it,at)){var di=Dt(0,$t.length-1);Lt(oe,oe.text,Xe),oi&&it.remove(Zt.line,oi),di.length&&it.insert(Zt.line,di)}else if(De==oe)if($t.length==1)Lt(De,De.text.slice(0,Zt.ch)+rn+De.text.slice(Wt.ch),Xe);else{var Li=Dt(1,$t.length-1);Li.push(new kr(rn+De.text.slice(Wt.ch),Xe,ht)),Lt(De,De.text.slice(0,Zt.ch)+$t[0],gt(0)),it.insert(Zt.line+1,Li)}else if($t.length==1)Lt(De,De.text.slice(0,Zt.ch)+$t[0]+oe.text.slice(Wt.ch),gt(0)),it.remove(Zt.line+1,oi);else{Lt(De,De.text.slice(0,Zt.ch)+$t[0],gt(0)),Lt(oe,rn+oe.text.slice(Wt.ch),Xe);var zi=Dt(1,$t.length-1);oi>1&&it.remove(Zt.line+1,oi-1),it.insert(Zt.line+1,zi)}Hi(it,"change",it,at)}function _l(it,at,dt){function ht(gt,Lt,Dt){if(gt.linked)for(var Zt=0;Zt<gt.linked.length;++Zt){var Wt=gt.linked[Zt];if(Wt.doc!=Lt){var $t=Dt&&Wt.sharedHist;dt&&!$t||(at(Wt.doc,$t),ht(Wt.doc,gt,$t))}}}ht(it,null,!0)}function ef(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,xr(it),$r(it),dc(it),it.options.lineWrapping||Xi(it),it.options.mode=at.modeOption,Oo(it)}function dc(it){(it.doc.direction=="rtl"?Ye:jt)(it.display.lineDiv,"CodeMirror-rtl")}function $0(it){yo(it,function(){dc(it),Oo(it)})}function kd(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 nf(it,at){var dt={from:Pn(at.from),to:uh(at),text:wi(it,at.from,at.to)};return hh(it,dt,at.from.line,at.to.line+1),_l(it,function(ht){return hh(ht,dt,at.from.line,at.to.line+1)},!0),dt}function Md(it){for(;it.length;){var at=le(it);if(at.ranges)it.pop();else break}}function cc(it,at){if(at)return Md(it.done),le(it.done);if(it.done.length&&!le(it.done).ranges)return le(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),le(it.done)}function fc(it,at,dt,ht){var gt=it.history;gt.undone.length=0;var Lt=+new Date,Dt,Zt;if((gt.lastOp==ht||gt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&>.lastModTime>Lt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Dt=cc(gt,gt.lastOp==ht)))Zt=le(Dt.changes),vn(at.from,at.to)==0&&vn(at.from,Zt.to)==0?Zt.to=uh(at):Dt.changes.push(nf(it,at));else{var Wt=le(gt.done);for((!Wt||!Wt.ranges)&&Fd(it.sel,gt.done),Dt={changes:[nf(it,at)],generation:gt.generation},gt.done.push(Dt);gt.done.length>gt.undoDepth;)gt.done.shift(),gt.done[0].ranges||gt.done.shift()}gt.done.push(dt),gt.generation=++gt.maxGeneration,gt.lastModTime=gt.lastSelTime=Lt,gt.lastOp=gt.lastSelOp=ht,gt.lastOrigin=gt.lastSelOrigin=at.origin,Zt||ze(it,"historyAdded")}function ug(it,at,dt,ht){var gt=at.charAt(0);return gt=="*"||gt=="+"&&dt.ranges.length==ht.ranges.length&&dt.somethingSelected()==ht.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function gc(it,at,dt,ht){var gt=it.history,Lt=ht&&ht.origin;dt==gt.lastSelOp||Lt&>.lastSelOrigin==Lt&&(gt.lastModTime==gt.lastSelTime&>.lastOrigin==Lt||ug(it,Lt,le(gt.done),at))?gt.done[gt.done.length-1]=at:Fd(at,gt.done),gt.lastSelTime=+new Date,gt.lastSelOrigin=Lt,gt.lastSelOp=dt,ht&&ht.clearRedo!==!1&&Md(gt.undone)}function Fd(it,at){var dt=le(at);dt&&dt.ranges&&dt.equals(it)||at.push(it)}function hh(it,at,dt,ht){var gt=at["spans_"+it.id],Lt=0;it.iter(Math.max(it.first,dt),Math.min(it.first+it.size,ht),function(Dt){Dt.markedSpans&&((gt||(gt=at["spans_"+it.id]={}))[Lt]=Dt.markedSpans),++Lt})}function As(it){if(!it)return null;for(var at,dt=0;dt<it.length;++dt)it[dt].marker.explicitlyCleared?at||(at=it.slice(0,dt)):at&&at.push(it[dt]);return at?at.length?at:null:it}function fu(it,at){var dt=at["spans_"+it.id];if(!dt)return null;for(var ht=[],gt=0;gt<at.text.length;++gt)ht.push(As(dt[gt]));return ht}function rf(it,at){var dt=fu(it,at),ht=Kr(it,at);if(!dt)return ht;if(!ht)return dt;for(var gt=0;gt<dt.length;++gt){var Lt=dt[gt],Dt=ht[gt];if(Lt&&Dt)t:for(var Zt=0;Zt<Dt.length;++Zt){for(var Wt=Dt[Zt],$t=0;$t<Lt.length;++$t)if(Lt[$t].marker==Wt.marker)continue t;Lt.push(Wt)}else Dt&&(dt[gt]=Dt)}return dt}function Ru(it,at,dt){for(var ht=[],gt=0;gt<it.length;++gt){var Lt=it[gt];if(Lt.ranges){ht.push(dt?Sl.prototype.deepCopy.call(Lt):Lt);continue}var Dt=Lt.changes,Zt=[];ht.push({changes:Zt});for(var Wt=0;Wt<Dt.length;++Wt){var $t=Dt[Wt],De=void 0;if(Zt.push({from:$t.from,to:$t.to,text:$t.text}),at)for(var oe in $t)(De=oe.match(/^spans_(\d+)$/))&&Oe(at,Number(De[1]))>-1&&(le(Zt)[oe]=$t[oe],delete $t[oe])}}return ht}function of(it,at,dt,ht){if(ht){var gt=it.anchor;if(dt){var Lt=vn(at,gt)<0;Lt!=vn(dt,gt)<0?(gt=at,at=dt):Lt!=vn(at,dt)<0&&(at=dt)}return new bo(gt,at)}else return new bo(dt||at,at)}function af(it,at,dt,ht,gt){gt==null&&(gt=it.cm&&(it.cm.display.shift||it.extend)),ps(it,new Sl([of(it.sel.primary(),at,dt,gt)],0),ht)}function Wp(it,at,dt){for(var ht=[],gt=it.cm&&(it.cm.display.shift||it.extend),Lt=0;Lt<it.sel.ranges.length;Lt++)ht[Lt]=of(it.sel.ranges[Lt],at[Lt],null,gt);var Dt=Tl(it.cm,ht,it.sel.primIndex);ps(it,Dt,dt)}function dh(it,at,dt,ht){var gt=it.sel.ranges.slice(0);gt[at]=dt,ps(it,Tl(it.cm,gt,it.sel.primIndex),ht)}function Zh(it,at,dt,ht){ps(it,Iu(at,dt),ht)}function Gp(it,at,dt){var ht={ranges:at.ranges,update:function(gt){this.ranges=[];for(var Lt=0;Lt<gt.length;Lt++)this.ranges[Lt]=new bo(Wn(it,gt[Lt].anchor),Wn(it,gt[Lt].head))},origin:dt&&dt.origin};return ze(it,"beforeSelectionChange",it,ht),it.cm&&ze(it.cm,"beforeSelectionChange",it.cm,ht),ht.ranges!=at.ranges?Tl(it.cm,ht.ranges,ht.ranges.length-1):at}function sf(it,at,dt){var ht=it.history.done,gt=le(ht);gt&>.ranges?(ht[ht.length-1]=at,Kh(it,at,dt)):ps(it,at,dt)}function ps(it,at,dt){Kh(it,at,dt),gc(it,it.sel,it.cm?it.cm.curOp.id:NaN,dt)}function Kh(it,at,dt){(Sn(it,"beforeSelectionChange")||it.cm&&Sn(it.cm,"beforeSelectionChange"))&&(at=Gp(it,at,dt));var ht=dt&&dt.bias||(vn(at.primary().head,it.sel.primary().head)<0?-1:1);hg(it,mc(it,at,ht,!0)),!(dt&&dt.scroll===!1)&&it.cm&&Dl(it.cm)}function hg(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,jn(it.cm)),Hi(it,"cursorActivity",it))}function pc(it){hg(it,mc(it,it.sel,null,!1))}function mc(it,at,dt,ht){for(var gt,Lt=0;Lt<at.ranges.length;Lt++){var Dt=at.ranges[Lt],Zt=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Lt],Wt=vc(it,Dt.anchor,Zt&&Zt.anchor,dt,ht),$t=vc(it,Dt.head,Zt&&Zt.head,dt,ht);(gt||Wt!=Dt.anchor||$t!=Dt.head)&&(gt||(gt=at.ranges.slice(0,Lt)),gt[Lt]=new bo(Wt,$t))}return gt?Tl(it.cm,gt,at.primIndex):at}function zu(it,at,dt,ht,gt){var Lt=In(it,at.line);if(Lt.markedSpans)for(var Dt=0;Dt<Lt.markedSpans.length;++Dt){var Zt=Lt.markedSpans[Dt],Wt=Zt.marker,$t="selectLeft"in Wt?!Wt.selectLeft:Wt.inclusiveLeft,De="selectRight"in Wt?!Wt.selectRight:Wt.inclusiveRight;if((Zt.from==null||($t?Zt.from<=at.ch:Zt.from<at.ch))&&(Zt.to==null||(De?Zt.to>=at.ch:Zt.to>at.ch))){if(gt&&(ze(Wt,"beforeCursorEnter"),Wt.explicitlyCleared))if(Lt.markedSpans){--Dt;continue}else break;if(!Wt.atomic)continue;if(dt){var oe=Wt.find(ht<0?1:-1),rn=void 0;if((ht<0?De:$t)&&(oe=dg(it,oe,-ht,oe&&oe.line==at.line?Lt:null)),oe&&oe.line==at.line&&(rn=vn(oe,dt))&&(ht<0?rn<0:rn>0))return zu(it,oe,at,ht,gt)}var Xe=Wt.find(ht<0?-1:1);return(ht<0?$t:De)&&(Xe=dg(it,Xe,ht,Xe.line==at.line?Lt:null)),Xe?zu(it,Xe,at,ht,gt):null}}return at}function vc(it,at,dt,ht,gt){var Lt=ht||1,Dt=zu(it,at,dt,Lt,gt)||!gt&&zu(it,at,dt,Lt,!0)||zu(it,at,dt,-Lt,gt)||!gt&&zu(it,at,dt,-Lt,!0);return Dt||(it.cantEdit=!0,ke(it.first,0))}function dg(it,at,dt,ht){return dt<0&&at.ch==0?at.line>it.first?Wn(it,ke(at.line-1)):null:dt>0&&at.ch==(ht||In(it,at.line)).text.length?at.line<it.first+it.size-1?ke(at.line+1,0):null:new ke(at.line,at.ch+dt)}function ya(it){it.setSelection(ke(it.firstLine(),0),ke(it.lastLine()),Ae)}function yc(it,at,dt){var ht={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return ht.canceled=!0}};return dt&&(ht.update=function(gt,Lt,Dt,Zt){gt&&(ht.from=Wn(it,gt)),Lt&&(ht.to=Wn(it,Lt)),Dt&&(ht.text=Dt),Zt!==void 0&&(ht.origin=Zt)}),ze(it,"beforeChange",it,ht),it.cm&&ze(it.cm,"beforeChange",it.cm,ht),ht.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:ht.from,to:ht.to,text:ht.text,origin:ht.origin}}function ch(it,at,dt){if(it.cm){if(!it.cm.curOp)return Oa(it.cm,ch)(it,at,dt);if(it.cm.state.suppressEdits)return}if(!((Sn(it,"beforeChange")||it.cm&&Sn(it.cm,"beforeChange"))&&(at=yc(it,at,!0),!at))){var ht=gr&&!dt&&an(it,at.from,at.to);if(ht)for(var gt=ht.length-1;gt>=0;--gt)Vh(it,{from:ht[gt].from,to:ht[gt].to,text:gt?[""]:at.text,origin:at.origin});else Vh(it,at)}}function Vh(it,at){if(!(at.text.length==1&&at.text[0]==""&&vn(at.from,at.to)==0)){var dt=lc(it,at);fc(it,at,dt,it.cm?it.cm.curOp.id:NaN),Bd(it,at,dt,Kr(it,at));var ht=[];_l(it,function(gt,Lt){!Lt&&Oe(ht,gt.history)==-1&&(fg(gt.history,at),ht.push(gt.history)),Bd(gt,at,null,Kr(gt,at))})}}function Sc(it,at,dt){var ht=it.cm&&it.cm.state.suppressEdits;if(!(ht&&!dt)){for(var gt=it.history,Lt,Dt=it.sel,Zt=at=="undo"?gt.done:gt.undone,Wt=at=="undo"?gt.undone:gt.done,$t=0;$t<Zt.length&&(Lt=Zt[$t],!(dt?Lt.ranges&&!Lt.equals(it.sel):!Lt.ranges));$t++);if($t!=Zt.length){for(gt.lastOrigin=gt.lastSelOrigin=null;;)if(Lt=Zt.pop(),Lt.ranges){if(Fd(Lt,Wt),dt&&!Lt.equals(it.sel)){ps(it,Lt,{clearRedo:!1});return}Dt=Lt}else if(ht){Zt.push(Lt);return}else break;var De=[];Fd(Dt,Wt),Wt.push({changes:De,generation:gt.generation}),gt.generation=Lt.generation||++gt.maxGeneration;for(var oe=Sn(it,"beforeChange")||it.cm&&Sn(it.cm,"beforeChange"),rn=function(di){var Li=Lt.changes[di];if(Li.origin=at,oe&&!yc(it,Li,!1))return Zt.length=0,{};De.push(nf(it,Li));var zi=di?lc(it,Li):le(Zt);Bd(it,Li,zi,rf(it,Li)),!di&&it.cm&&it.cm.scrollIntoView({from:Li.from,to:uh(Li)});var hr=[];_l(it,function(_i,mr){!mr&&Oe(hr,_i.history)==-1&&(fg(_i.history,Li),hr.push(_i.history)),Bd(_i,Li,null,rf(_i,Li))})},Xe=Lt.changes.length-1;Xe>=0;--Xe){var oi=rn(Xe);if(oi)return oi.v}}}}function cg(it,at){if(at!=0&&(it.first+=at,it.sel=new Sl(bn(it.sel.ranges,function(gt){return new bo(ke(gt.anchor.line+at,gt.anchor.ch),ke(gt.head.line+at,gt.head.ch))}),it.sel.primIndex),it.cm)){Oo(it.cm,it.first,it.first-at,at);for(var dt=it.cm.display,ht=dt.viewFrom;ht<dt.viewTo;ht++)Zr(it.cm,ht,"gutter")}}function Bd(it,at,dt,ht){if(it.cm&&!it.cm.curOp)return Oa(it.cm,Bd)(it,at,dt,ht);if(at.to.line<it.first){cg(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);cg(it,gt),at={from:ke(it.first,0),to:ke(at.to.line+gt,at.to.ch),text:[le(at.text)],origin:at.origin}}var Lt=it.lastLine();at.to.line>Lt&&(at={from:at.from,to:ke(Lt,In(it,Lt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=wi(it,at.from,at.to),dt||(dt=lc(it,at)),it.cm?Hp(it.cm,at,ht):tf(it,at,ht),Kh(it,dt,Ae),it.cantEdit&&vc(it,ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function Hp(it,at,dt){var ht=it.doc,gt=it.display,Lt=at.from,Dt=at.to,Zt=!1,Wt=Lt.line;it.options.lineWrapping||(Wt=Ht(yn(In(ht,Lt.line))),ht.iter(Wt,Dt.line+1,function(Xe){if(Xe==gt.maxLine)return Zt=!0,!0})),ht.sel.contains(at.from,at.to)>-1&&jn(it),tf(ht,at,dt,To(it)),it.options.lineWrapping||(ht.iter(Wt,Lt.line+at.text.length,function(Xe){var oi=lr(Xe);oi>gt.maxLineLength&&(gt.maxLine=Xe,gt.maxLineLength=oi,gt.maxLineChanged=!0,Zt=!1)}),Zt&&(it.curOp.updateMaxLine=!0)),dr(ht,Lt.line),Ed(it,400);var $t=at.text.length-(Dt.line-Lt.line)-1;at.full?Oo(it):Lt.line==Dt.line&&at.text.length==1&&!lg(it.doc,at)?Zr(it,Lt.line,"text"):Oo(it,Lt.line,Dt.line+1,$t);var De=Sn(it,"changes"),oe=Sn(it,"change");if(oe||De){var rn={from:Lt,to:Dt,text:at.text,removed:at.removed,origin:at.origin};oe&&Hi(it,"change",it,rn),De&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(rn)}it.display.selForContextMenu=null}function Uh(it,at,dt,ht,gt){var Lt;ht||(ht=dt),vn(ht,dt)<0&&(Lt=[ht,dt],dt=Lt[0],ht=Lt[1]),typeof at=="string"&&(at=it.splitLines(at)),ch(it,{from:dt,to:ht,text:at,origin:gt})}function xl(it,at,dt,ht){dt<it.line?it.line+=ht:at<it.line&&(it.line=at,it.ch=0)}function Zp(it,at,dt,ht){for(var gt=0;gt<it.length;++gt){var Lt=it[gt],Dt=!0;if(Lt.ranges){Lt.copied||(Lt=it[gt]=Lt.deepCopy(),Lt.copied=!0);for(var Zt=0;Zt<Lt.ranges.length;Zt++)xl(Lt.ranges[Zt].anchor,at,dt,ht),xl(Lt.ranges[Zt].head,at,dt,ht);continue}for(var Wt=0;Wt<Lt.changes.length;++Wt){var $t=Lt.changes[Wt];if(dt<$t.from.line)$t.from=ke($t.from.line+ht,$t.from.ch),$t.to=ke($t.to.line+ht,$t.to.ch);else if(at<=$t.to.line){Dt=!1;break}}Dt||(it.splice(0,gt+1),gt=0)}}function fg(it,at){var dt=at.from.line,ht=at.to.line,gt=at.text.length-(ht-dt)-1;Zp(it.done,dt,ht,gt),Zp(it.undone,dt,ht,gt)}function Yh(it,at,dt,ht){var gt=at,Lt=at;return typeof at=="number"?Lt=In(it,Un(it,at)):gt=Ht(at),gt==null?null:(ht(Lt,gt)&&it.cm&&Zr(it.cm,gt,dt),Lt)}function Dd(it){this.lines=it,this.parent=null;for(var at=0,dt=0;dt<it.length;++dt)it[dt].parent=this,at+=it[dt].height;this.height=at}Dd.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var dt=it,ht=it+at;dt<ht;++dt){var gt=this.lines[dt];this.height-=gt.height,Lr(gt),Hi(gt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,dt){this.height+=dt,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var ht=0;ht<at.length;++ht)at[ht].parent=this},iterN:function(it,at,dt){for(var ht=it+at;it<ht;++it)if(dt(this.lines[it]))return!0}};function ia(it){this.children=it;for(var at=0,dt=0,ht=0;ht<it.length;++ht){var gt=it[ht];at+=gt.chunkSize(),dt+=gt.height,gt.parent=this}this.size=at,this.height=dt,this.parent=null}ia.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var dt=0;dt<this.children.length;++dt){var ht=this.children[dt],gt=ht.chunkSize();if(it<gt){var Lt=Math.min(at,gt-it),Dt=ht.height;if(ht.removeInner(it,Lt),this.height-=Dt-ht.height,gt==Lt&&(this.children.splice(dt--,1),ht.parent=null),(at-=Lt)==0)break;it=0}else it-=gt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof Dd))){var Zt=[];this.collapse(Zt),this.children=[new Dd(Zt)],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,dt){this.size+=at.length,this.height+=dt;for(var ht=0;ht<this.children.length;++ht){var gt=this.children[ht],Lt=gt.chunkSize();if(it<=Lt){if(gt.insertInner(it,at,dt),gt.lines&>.lines.length>50){for(var Dt=gt.lines.length%25+25,Zt=Dt;Zt<gt.lines.length;){var Wt=new Dd(gt.lines.slice(Zt,Zt+=25));gt.height-=Wt.height,this.children.splice(++ht,0,Wt),Wt.parent=this}gt.lines=gt.lines.slice(0,Dt),this.maybeSpill()}break}it-=Lt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),dt=new ia(at);if(it.parent){it.size-=dt.size,it.height-=dt.height;var gt=Oe(it.parent.children,it);it.parent.children.splice(gt+1,0,dt)}else{var ht=new ia(it.children);ht.parent=it,it.children=[ht,dt],it=ht}dt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,dt){for(var ht=0;ht<this.children.length;++ht){var gt=this.children[ht],Lt=gt.chunkSize();if(it<Lt){var Dt=Math.min(at,Lt-it);if(gt.iterN(it,Dt,dt))return!0;if((at-=Dt)==0)break;it=0}else it-=Lt}}};var ju=function(it,at,dt){if(dt)for(var ht in dt)dt.hasOwnProperty(ht)&&(this[ht]=dt[ht]);this.doc=it,this.node=at};ju.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,dt=this.line,ht=Ht(dt);if(!(ht==null||!at)){for(var gt=0;gt<at.length;++gt)at[gt]==this&&at.splice(gt--,1);at.length||(dt.widgets=null);var Lt=Wo(this);Gi(dt,Math.max(0,dt.height-Lt)),it&&(yo(it,function(){Kp(it,dt,-Lt),Zr(it,ht,"widget")}),Hi(it,"lineWidgetCleared",it,this,ht))}},ju.prototype.changed=function(){var it=this,at=this.height,dt=this.doc.cm,ht=this.line;this.height=null;var gt=Wo(this)-at;gt&&(Ve(this.doc,ht)||Gi(ht,ht.height+gt),dt&&yo(dt,function(){dt.curOp.forceUpdate=!0,Kp(dt,ht,gt),Hi(dt,"lineWidgetChanged",dt,it,Ht(ht))}))},Mn(ju);function Kp(it,at,dt){Di(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&zh(it,dt)}function lf(it,at,dt,ht){var gt=new ju(it,dt,ht),Lt=it.cm;return Lt&>.noHScroll&&(Lt.display.alignWidgets=!0),Yh(it,at,"widget",function(Dt){var Zt=Dt.widgets||(Dt.widgets=[]);if(gt.insertAt==null?Zt.push(gt):Zt.splice(Math.min(Zt.length-1,Math.max(0,gt.insertAt)),0,gt),gt.line=Dt,Lt&&!Ve(it,Dt)){var Wt=Di(Dt)<it.scrollTop;Gi(Dt,Dt.height+Wo(gt)),Wt&&zh(Lt,gt.height),Lt.curOp.forceUpdate=!0}return!0}),Lt&&Hi(Lt,"lineWidgetAdded",Lt,gt,typeof at=="number"?at:Ht(at)),gt}var Vp=0,Se=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++Vp};Se.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&al(it),Sn(this,"clear")){var dt=this.find();dt&&Hi(this,"clear",dt.from,dt.to)}for(var ht=null,gt=null,Lt=0;Lt<this.lines.length;++Lt){var Dt=this.lines[Lt],Zt=vr(Dt.markedSpans,this);it&&!this.collapsed?Zr(it,Ht(Dt),"text"):it&&(Zt.to!=null&&(gt=Ht(Dt)),Zt.from!=null&&(ht=Ht(Dt))),Dt.markedSpans=yr(Dt.markedSpans,Zt),Zt.from==null&&this.collapsed&&!Ve(this.doc,Dt)&&it&&Gi(Dt,Pa(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Wt=0;Wt<this.lines.length;++Wt){var $t=yn(this.lines[Wt]),De=lr($t);De>it.display.maxLineLength&&(it.display.maxLine=$t,it.display.maxLineLength=De,it.display.maxLineChanged=!0)}ht!=null&&it&&this.collapsed&&Oo(it,ht,gt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&pc(it.doc)),it&&Hi(it,"markerCleared",it,this,ht,gt),at&&Nl(it),this.parent&&this.parent.clear()}},Se.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var dt,ht,gt=0;gt<this.lines.length;++gt){var Lt=this.lines[gt],Dt=vr(Lt.markedSpans,this);if(Dt.from!=null&&(dt=ke(at?Lt:Ht(Lt),Dt.from),it==-1))return dt;if(Dt.to!=null&&(ht=ke(at?Lt:Ht(Lt),Dt.to),it==1))return ht}return dt&&{from:dt,to:ht}},Se.prototype.changed=function(){var it=this,at=this.find(-1,!0),dt=this,ht=this.doc.cm;!at||!ht||yo(ht,function(){var gt=at.line,Lt=Ht(at.line),Dt=il(ht,Lt);if(Dt&&(nh(Dt),ht.curOp.selectionChanged=ht.curOp.forceUpdate=!0),ht.curOp.updateMaxLine=!0,!Ve(dt.doc,gt)&&dt.height!=null){var Zt=dt.height;dt.height=null;var Wt=Wo(dt)-Zt;Wt&&Gi(gt,gt.height+Wt)}Hi(ht,"markerChanged",ht,it)})},Se.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||Oe(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Se.prototype.detachLine=function(it){if(this.lines.splice(Oe(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},Mn(Se);function Xh(it,at,dt,ht,gt){if(ht&&ht.shared)return Up(it,at,dt,ht,gt);if(it.cm&&!it.cm.curOp)return Oa(it.cm,Xh)(it,at,dt,ht,gt);var Lt=new Se(it,gt),Dt=vn(at,dt);if(ht&&sn(ht,Lt,!1),Dt>0||Dt==0&&Lt.clearWhenEmpty!==!1)return Lt;if(Lt.replacedWith&&(Lt.collapsed=!0,Lt.widgetNode=fe("span",[Lt.replacedWith],"CodeMirror-widget"),ht.handleMouseEvents||Lt.widgetNode.setAttribute("cm-ignore-events","true"),ht.insertLeft&&(Lt.widgetNode.insertLeft=!0)),Lt.collapsed){if(Tn(it,at.line,at,dt,Lt)||at.line!=dt.line&&Tn(it,dt.line,at,dt,Lt))throw new Error("Inserting collapsed marker partially overlapping an existing one");en()}Lt.addToHistory&&fc(it,{from:at,to:dt,origin:"markText"},it.sel,NaN);var Zt=at.line,Wt=it.cm,$t;if(it.iter(Zt,dt.line+1,function(oe){Wt&&Lt.collapsed&&!Wt.options.lineWrapping&&yn(oe)==Wt.display.maxLine&&($t=!0),Lt.collapsed&&Zt!=at.line&&Gi(oe,0),Wr(oe,new ki(Lt,Zt==at.line?at.ch:null,Zt==dt.line?dt.ch:null)),++Zt}),Lt.collapsed&&it.iter(at.line,dt.line+1,function(oe){Ve(it,oe)&&Gi(oe,0)}),Lt.clearOnEnter&&_e(Lt,"beforeCursorEnter",function(){return Lt.clear()}),Lt.readOnly&&(Br(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Lt.collapsed&&(Lt.id=++Vp,Lt.atomic=!0),Wt){if($t&&(Wt.curOp.updateMaxLine=!0),Lt.collapsed)Oo(Wt,at.line,dt.line+1);else if(Lt.className||Lt.startStyle||Lt.endStyle||Lt.css||Lt.attributes||Lt.title)for(var De=at.line;De<=dt.line;De++)Zr(Wt,De,"text");Lt.atomic&&pc(Wt.doc),Hi(Wt,"markerAdded",Wt,Lt)}return Lt}var gu=function(it,at){this.markers=it,this.primary=at;for(var dt=0;dt<it.length;++dt)it[dt].parent=this};gu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Hi(this,"clear")}},gu.prototype.find=function(it,at){return this.primary.find(it,at)},Mn(gu);function Up(it,at,dt,ht,gt){ht=sn(ht),ht.shared=!1;var Lt=[Xh(it,at,dt,ht,gt)],Dt=Lt[0],Zt=ht.widgetNode;return _l(it,function(Wt){Zt&&(ht.widgetNode=Zt.cloneNode(!0)),Lt.push(Xh(Wt,Wn(Wt,at),Wn(Wt,dt),ht,gt));for(var $t=0;$t<Wt.linked.length;++$t)if(Wt.linked[$t].isParent)return;Dt=le(Lt)}),new gu(Lt,Dt)}function gg(it){return it.findMarks(ke(it.first,0),it.clipPos(ke(it.lastLine())),function(at){return at.parent})}function Yp(it,at){for(var dt=0;dt<at.length;dt++){var ht=at[dt],gt=ht.find(),Lt=it.clipPos(gt.from),Dt=it.clipPos(gt.to);if(vn(Lt,Dt)){var Zt=Xh(it,Lt,Dt,ht.primary,ht.primary.type);ht.markers.push(Zt),Zt.parent=ht}}}function pg(it){for(var at=function(ht){var gt=it[ht],Lt=[gt.primary.doc];_l(gt.primary.doc,function(Wt){return Lt.push(Wt)});for(var Dt=0;Dt<gt.markers.length;Dt++){var Zt=gt.markers[Dt];Oe(Lt,Zt.doc)==-1&&(Zt.parent=null,gt.markers.splice(Dt--,1))}},dt=0;dt<it.length;dt++)at(dt)}var tv=0,os=function(it,at,dt,ht,gt){if(!(this instanceof os))return new os(it,at,dt,ht,gt);dt==null&&(dt=0),ia.call(this,[new Dd([new kr("",null)])]),this.first=dt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=dt;var Lt=ke(dt,0);this.sel=Iu(Lt),this.history=new kd(null),this.id=++tv,this.modeOption=at,this.lineSep=ht,this.direction=gt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),tf(this,{from:Lt,to:Lt,text:it}),ps(this,Iu(Lt),Ae)};os.prototype=Pt(ia.prototype,{constructor:os,iter:function(it,at,dt){dt?this.iterN(it-this.first,at-it,dt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var dt=0,ht=0;ht<at.length;++ht)dt+=at[ht].height;this.insertInner(it-this.first,at,dt)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Mi(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:Ka(function(it){var at=ke(this.first,0),dt=this.first+this.size-1;ch(this,{from:at,to:ke(dt,In(this,dt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Ou(this.cm,0,0),ps(this,Iu(at),Ae)}),replaceRange:function(it,at,dt,ht){at=Wn(this,at),dt=dt?Wn(this,dt):at,Uh(this,it,at,dt,ht)},getRange:function(it,at,dt){var ht=wi(this,Wn(this,it),Wn(this,at));return dt===!1?ht:ht.join(dt||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(wn(this,it))return In(this,it)},getLineNumber:function(it){return Ht(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=In(this,it)),yn(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Wn(this,it)},getCursor:function(it){var at=this.sel.primary(),dt;return it==null||it=="head"?dt=at.head:it=="anchor"?dt=at.anchor:it=="end"||it=="to"||it===!1?dt=at.to():dt=at.from(),dt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ka(function(it,at,dt){Zh(this,Wn(this,typeof it=="number"?ke(it,at||0):it),null,dt)}),setSelection:Ka(function(it,at,dt){Zh(this,Wn(this,it),Wn(this,at||it),dt)}),extendSelection:Ka(function(it,at,dt){af(this,Wn(this,it),at&&Wn(this,at),dt)}),extendSelections:Ka(function(it,at){Wp(this,Pi(this,it),at)}),extendSelectionsBy:Ka(function(it,at){var dt=bn(this.sel.ranges,it);Wp(this,Pi(this,dt),at)}),setSelections:Ka(function(it,at,dt){if(it.length){for(var ht=[],gt=0;gt<it.length;gt++)ht[gt]=new bo(Wn(this,it[gt].anchor),Wn(this,it[gt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),ps(this,Tl(this.cm,ht,at),dt)}}),addSelection:Ka(function(it,at,dt){var ht=this.sel.ranges.slice(0);ht.push(new bo(Wn(this,it),Wn(this,at||it))),ps(this,Tl(this.cm,ht,ht.length-1),dt)}),getSelection:function(it){for(var at=this.sel.ranges,dt,ht=0;ht<at.length;ht++){var gt=wi(this,at[ht].from(),at[ht].to());dt=dt?dt.concat(gt):gt}return it===!1?dt:dt.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],dt=this.sel.ranges,ht=0;ht<dt.length;ht++){var gt=wi(this,dt[ht].from(),dt[ht].to());it!==!1&&(gt=gt.join(it||this.lineSeparator())),at[ht]=gt}return at},replaceSelection:function(it,at,dt){for(var ht=[],gt=0;gt<this.sel.ranges.length;gt++)ht[gt]=it;this.replaceSelections(ht,at,dt||"+input")},replaceSelections:Ka(function(it,at,dt){for(var ht=[],gt=this.sel,Lt=0;Lt<gt.ranges.length;Lt++){var Dt=gt.ranges[Lt];ht[Lt]={from:Dt.from(),to:Dt.to(),text:this.splitLines(it[Lt]),origin:dt}}for(var Zt=at&&at!="end"&&uc(this,ht,at),Wt=ht.length-1;Wt>=0;Wt--)ch(this,ht[Wt]);Zt?sf(this,Zt):this.cm&&Dl(this.cm)}),undo:Ka(function(){Sc(this,"undo")}),redo:Ka(function(){Sc(this,"redo")}),undoSelection:Ka(function(){Sc(this,"undo",!0)}),redoSelection:Ka(function(){Sc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,dt=0,ht=0;ht<it.done.length;ht++)it.done[ht].ranges||++at;for(var gt=0;gt<it.undone.length;gt++)it.undone[gt].ranges||++dt;return{undo:at,redo:dt}},clearHistory:function(){var it=this;this.history=new kd(this.history.maxGeneration),_l(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:Ru(this.history.done),undone:Ru(this.history.undone)}},setHistory:function(it){var at=this.history=new kd(this.history.maxGeneration);at.done=Ru(it.done.slice(0),null,!0),at.undone=Ru(it.undone.slice(0),null,!0)},setGutterMarker:Ka(function(it,at,dt){return Yh(this,it,"gutter",function(ht){var gt=ht.gutterMarkers||(ht.gutterMarkers={});return gt[at]=dt,!dt&&At(gt)&&(ht.gutterMarkers=null),!0})}),clearGutter:Ka(function(it){var at=this;this.iter(function(dt){dt.gutterMarkers&&dt.gutterMarkers[it]&&Yh(at,dt,"gutter",function(){return dt.gutterMarkers[it]=null,At(dt.gutterMarkers)&&(dt.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!wn(this,it)||(at=it,it=In(this,it),!it))return null}else if(at=Ht(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:Ka(function(it,at,dt){return Yh(this,it,at=="gutter"?"gutter":"class",function(ht){var gt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!ht[gt])ht[gt]=dt;else{if(Tt(dt).test(ht[gt]))return!1;ht[gt]+=" "+dt}return!0})}),removeLineClass:Ka(function(it,at,dt){return Yh(this,it,at=="gutter"?"gutter":"class",function(ht){var gt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Lt=ht[gt];if(Lt)if(dt==null)ht[gt]=null;else{var Dt=Lt.match(Tt(dt));if(!Dt)return!1;var Zt=Dt.index+Dt[0].length;ht[gt]=Lt.slice(0,Dt.index)+(!Dt.index||Zt==Lt.length?"":" ")+Lt.slice(Zt)||null}else return!1;return!0})}),addLineWidget:Ka(function(it,at,dt){return lf(this,it,at,dt)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,dt){return Xh(this,Wn(this,it),Wn(this,at),dt,dt&&dt.type||"range")},setBookmark:function(it,at){var dt={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=Wn(this,it),Xh(this,it,it,dt,"bookmark")},findMarksAt:function(it){it=Wn(this,it);var at=[],dt=In(this,it.line).markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht){var gt=dt[ht];(gt.from==null||gt.from<=it.ch)&&(gt.to==null||gt.to>=it.ch)&&at.push(gt.marker.parent||gt.marker)}return at},findMarks:function(it,at,dt){it=Wn(this,it),at=Wn(this,at);var ht=[],gt=it.line;return this.iter(it.line,at.line+1,function(Lt){var Dt=Lt.markedSpans;if(Dt)for(var Zt=0;Zt<Dt.length;Zt++){var Wt=Dt[Zt];!(Wt.to!=null&>==it.line&&it.ch>=Wt.to||Wt.from==null&>!=it.line||Wt.from!=null&>==at.line&&Wt.from>=at.ch)&&(!dt||dt(Wt.marker))&&ht.push(Wt.marker.parent||Wt.marker)}++gt}),ht},getAllMarks:function(){var it=[];return this.iter(function(at){var dt=at.markedSpans;if(dt)for(var ht=0;ht<dt.length;++ht)dt[ht].from!=null&&it.push(dt[ht].marker)}),it},posFromIndex:function(it){var at,dt=this.first,ht=this.lineSeparator().length;return this.iter(function(gt){var Lt=gt.text.length+ht;if(Lt>it)return at=it,!0;it-=Lt,++dt}),Wn(this,ke(dt,at))},indexFromPos:function(it){it=Wn(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var dt=this.lineSeparator().length;return this.iter(this.first,it.line,function(ht){at+=ht.text.length+dt}),at},copy:function(it){var at=new os(Mi(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,dt=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<dt&&(dt=it.to);var ht=new os(Mi(this,at,dt),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(ht.history=this.history),(this.linked||(this.linked=[])).push({doc:ht,sharedHist:it.sharedHist}),ht.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Yp(ht,gg(this)),ht},unlinkDoc:function(it){if(it instanceof po&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var dt=this.linked[at];if(dt.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),pg(gg(this));break}}if(it.history==this.history){var ht=[it.id];_l(it,function(gt){return ht.push(gt.id)},!0),it.history=new kd(null),it.history.done=Ru(this.history.done,ht),it.history.undone=Ru(this.history.undone,ht)}},iterLinkedDocs:function(it){_l(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):nr(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Ka(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&$0(this.cm))})}),os.prototype.eachLine=os.prototype.iter;var xc=0;function mg(it){var at=this;if(Qp(at),!(Je(at,it)||No(at.display,it))){Hn(it),ge&&(xc=+new Date);var dt=Ha(at,it,!0),ht=it.dataTransfer.files;if(!(!dt||at.isReadOnly()))if(ht&&ht.length&&window.FileReader&&window.File)for(var gt=ht.length,Lt=Array(gt),Dt=0,Zt=function(){++Dt==gt&&Oa(at,function(){dt=Wn(at.doc,dt);var Xe={from:dt,to:dt,text:at.doc.splitLines(Lt.filter(function(oi){return oi!=null}).join(at.doc.lineSeparator())),origin:"paste"};ch(at.doc,Xe),sf(at.doc,Iu(Wn(at.doc,dt),Wn(at.doc,uh(Xe))))})()},Wt=function(Xe,oi){if(at.options.allowDropFileTypes&&Oe(at.options.allowDropFileTypes,Xe.type)==-1){Zt();return}var di=new FileReader;di.onerror=function(){return Zt()},di.onload=function(){var Li=di.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Li)){Zt();return}Lt[oi]=Li,Zt()},di.readAsText(Xe)},$t=0;$t<ht.length;$t++)Wt(ht[$t],$t);else{if(at.state.draggingText&&at.doc.sel.contains(dt)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var De=it.dataTransfer.getData("Text");if(De){var oe;if(at.state.draggingText&&!at.state.draggingText.copy&&(oe=at.listSelections()),Kh(at.doc,Iu(dt,dt)),oe)for(var rn=0;rn<oe.length;++rn)Uh(at.doc,"",oe[rn].anchor,oe[rn].head,"drag");at.replaceSelection(De,"around","paste"),at.display.input.focus()}}catch(Xe){}}}}function Xp(it,at){if(ge&&(!it.state.draggingText||+new Date-xc<100)){xi(at);return}if(!(Je(it,at)||No(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!qe)){var dt=Ut("img",null,null,"position: fixed; left: 0; top: 0;");dt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Vt&&(dt.width=dt.height=1,it.display.wrapper.appendChild(dt),dt._top=dt.offsetTop),at.dataTransfer.setDragImage(dt,0,0),Vt&&dt.parentNode.removeChild(dt)}}function Jp(it,at){var dt=Ha(it,at);if(dt){var ht=document.createDocumentFragment();ao(it,dt,ht),it.display.dragCursor||(it.display.dragCursor=Ut("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Jt(it.display.dragCursor,ht)}}function Qp(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function qp(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),dt=[],ht=0;ht<at.length;ht++){var gt=at[ht].CodeMirror;gt&&dt.push(gt)}dt.length&&dt[0].operation(function(){for(var Lt=0;Lt<dt.length;Lt++)it(dt[Lt])})}}var vg=!1;function ul(){vg||(Nd(),vg=!0)}function Nd(){var it;_e(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(yg)},100))}),_e(window,"blur",function(){return qp(Tu)})}function yg(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var pu={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"},wc=0;wc<10;wc++)pu[wc+48]=pu[wc+96]=String(wc);for(var uf=65;uf<=90;uf++)pu[uf]=String.fromCharCode(uf);for(var Pc=1;Pc<=12;Pc++)pu[Pc+111]=pu[Pc+63235]="F"+Pc;var Us={};Us.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"},Us.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"},Us.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"},Us.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"]},Us.default=ct?Us.macDefault:Us.pcDefault;function Sg(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var dt,ht,gt,Lt,Dt=0;Dt<at.length-1;Dt++){var Zt=at[Dt];if(/^(cmd|meta|m)$/i.test(Zt))Lt=!0;else if(/^a(lt)?$/i.test(Zt))dt=!0;else if(/^(c|ctrl|control)$/i.test(Zt))ht=!0;else if(/^s(hift)?$/i.test(Zt))gt=!0;else throw new Error("Unrecognized modifier name: "+Zt)}return dt&&(it="Alt-"+it),ht&&(it="Ctrl-"+it),Lt&&(it="Cmd-"+it),gt&&(it="Shift-"+it),it}function xg(it){var at={};for(var dt in it)if(it.hasOwnProperty(dt)){var ht=it[dt];if(/^(name|fallthrough|(de|at)tach)$/.test(dt))continue;if(ht=="..."){delete it[dt];continue}for(var gt=bn(dt.split(" "),Sg),Lt=0;Lt<gt.length;Lt++){var Dt=void 0,Zt=void 0;Lt==gt.length-1?(Zt=gt.join(" "),Dt=ht):(Zt=gt.slice(0,Lt+1).join(" "),Dt="...");var Wt=at[Zt];if(!Wt)at[Zt]=Dt;else if(Wt!=Dt)throw new Error("Inconsistent bindings for "+Zt)}delete it[dt]}for(var $t in at)it[$t]=at[$t];return it}function wl(it,at,dt,ht){at=Jh(at);var gt=at.call?at.call(it,ht):at[it];if(gt===!1)return"nothing";if(gt==="...")return"multi";if(gt!=null&&dt(gt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return wl(it,at.fallthrough,dt,ht);for(var Lt=0;Lt<at.fallthrough.length;Lt++){var Dt=wl(it,at.fallthrough[Lt],dt,ht);if(Dt)return Dt}}}function Td(it){var at=typeof it=="string"?it:pu[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function wg(it,at,dt){var ht=it;return at.altKey&&ht!="Alt"&&(it="Alt-"+it),(xt?at.metaKey:at.ctrlKey)&&ht!="Ctrl"&&(it="Ctrl-"+it),(xt?at.ctrlKey:at.metaKey)&&ht!="Mod"&&(it="Cmd-"+it),!dt&&at.shiftKey&&ht!="Shift"&&(it="Shift-"+it),it}function _p(it,at){if(Vt&&it.keyCode==34&&it.char)return!1;var dt=pu[it.keyCode];return dt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(dt=it.code),wg(dt,it,at))}function Jh(it){return typeof it=="string"?Us[it]:it}function Ys(it,at){for(var dt=it.doc.sel.ranges,ht=[],gt=0;gt<dt.length;gt++){for(var Lt=at(dt[gt]);ht.length&&vn(Lt.from,le(ht).to)<=0;){var Dt=ht.pop();if(vn(Dt.from,Lt.from)<0){Lt.from=Dt.from;break}}ht.push(Lt)}yo(it,function(){for(var Zt=ht.length-1;Zt>=0;Zt--)Uh(it.doc,"",ht[Zt].from,ht[Zt].to,"+delete");Dl(it)})}function Pg(it,at,dt){var ht=be(it.text,at+dt,dt);return ht<0||ht>it.text.length?null:ht}function Sa(it,at,dt){var ht=Pg(it,at.ch,dt);return ht==null?null:new ke(at.line,ht,dt<0?"after":"before")}function Cc(it,at,dt,ht,gt){if(it){at.doc.direction=="rtl"&&(gt=-gt);var Lt=Ke(dt,at.doc.direction);if(Lt){var Dt=gt<0?le(Lt):Lt[0],Zt=gt<0==(Dt.level==1),Wt=Zt?"after":"before",$t;if(Dt.level>0||at.doc.direction=="rtl"){var De=yl(at,dt);$t=gt<0?dt.text.length-1:0;var oe=Ns(at,De,$t).top;$t=We(function(rn){return Ns(at,De,rn).top==oe},gt<0==(Dt.level==1)?Dt.from:Dt.to-1,$t),Wt=="before"&&($t=Pg(dt,$t,1))}else $t=gt<0?Dt.to:Dt.from;return new ke(ht,$t,Wt)}}return new ke(ht,gt<0?dt.text.length:0,gt<0?"before":"after")}function hf(it,at,dt,ht){var gt=Ke(at,it.doc.direction);if(!gt)return Sa(at,dt,ht);dt.ch>=at.text.length?(dt.ch=at.text.length,dt.sticky="before"):dt.ch<=0&&(dt.ch=0,dt.sticky="after");var Lt=xe(gt,dt.ch,dt.sticky),Dt=gt[Lt];if(it.doc.direction=="ltr"&&Dt.level%2==0&&(ht>0?Dt.to>dt.ch:Dt.from<dt.ch))return Sa(at,dt,ht);var Zt=function(zi,hr){return Pg(at,zi instanceof ke?zi.ch:zi,hr)},Wt,$t=function(zi){return it.options.lineWrapping?(Wt=Wt||yl(it,at),ca(it,at,Wt,zi)):{begin:0,end:at.text.length}},De=$t(dt.sticky=="before"?Zt(dt,-1):dt.ch);if(it.doc.direction=="rtl"||Dt.level==1){var oe=Dt.level==1==ht<0,rn=Zt(dt,oe?1:-1);if(rn!=null&&(oe?rn<=Dt.to&&rn<=De.end:rn>=Dt.from&&rn>=De.begin)){var Xe=oe?"before":"after";return new ke(dt.line,rn,Xe)}}var oi=function(zi,hr,_i){for(var mr=function(Jo,Ra){return Ra?new ke(dt.line,Zt(Jo,1),"before"):new ke(dt.line,Jo,"after")};zi>=0&&zi<gt.length;zi+=hr){var jr=gt[zi],Qi=hr>0==(jr.level!=1),to=Qi?_i.begin:Zt(_i.end,-1);if(jr.from<=to&&to<jr.to||(to=Qi?jr.from:Zt(jr.to,-1),_i.begin<=to&&to<_i.end))return mr(to,Qi)}},di=oi(Lt+ht,ht,De);if(di)return di;var Li=ht>0?De.end:Zt(De.begin,-1);return Li!=null&&!(ht>0&&Li==at.text.length)&&(di=oi(ht>0?0:gt.length-1,ht,$t(Li)),di)?di:null}var fh={selectAll:ya,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ae)},killLine:function(it){return Ys(it,function(at){if(at.empty()){var dt=In(it.doc,at.head.line).text.length;return at.head.ch==dt&&at.head.line<it.lastLine()?{from:at.head,to:ke(at.head.line+1,0)}:{from:at.head,to:ke(at.head.line,dt)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return Ys(it,function(at){return{from:ke(at.from().line,0),to:Wn(it.doc,ke(at.to().line+1,0))}})},delLineLeft:function(it){return Ys(it,function(at){return{from:ke(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return Ys(it,function(at){var dt=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return{from:ht,to:at.from()}})},delWrappedLineRight:function(it){return Ys(it,function(at){var dt=it.charCoords(at.head,"div").top+5,ht=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div");return{from:at.from(),to:ht}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(ke(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(ke(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return Od(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return Cg(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return Id(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:dt},"div")},ln)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:dt},"div")},ln)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var dt=it.cursorCoords(at.head,"div").top+5,ht=it.coordsChar({left:0,top:dt},"div");return ht.ch<it.getLine(ht.line).search(/\S/)?Cg(it,at.head):ht},ln)},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=[],dt=it.listSelections(),ht=it.options.tabSize,gt=0;gt<dt.length;gt++){var Lt=dt[gt].from(),Dt=ee(it.getLine(Lt.line),Lt.ch,ht);at.push(cn(ht-Dt%ht))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return yo(it,function(){for(var at=it.listSelections(),dt=[],ht=0;ht<at.length;ht++)if(at[ht].empty()){var gt=at[ht].head,Lt=In(it.doc,gt.line).text;if(Lt){if(gt.ch==Lt.length&&(gt=new ke(gt.line,gt.ch-1)),gt.ch>0)gt=new ke(gt.line,gt.ch+1),it.replaceRange(Lt.charAt(gt.ch-1)+Lt.charAt(gt.ch-2),ke(gt.line,gt.ch-2),gt,"+transpose");else if(gt.line>it.doc.first){var Dt=In(it.doc,gt.line-1).text;Dt&&(gt=new ke(gt.line,1),it.replaceRange(Lt.charAt(0)+it.doc.lineSeparator()+Dt.charAt(Dt.length-1),ke(gt.line-1,Dt.length-1),gt,"+transpose"))}}dt.push(new bo(gt,gt))}it.setSelections(dt)})},newlineAndIndent:function(it){return yo(it,function(){for(var at=it.listSelections(),dt=at.length-1;dt>=0;dt--)it.replaceRange(it.doc.lineSeparator(),at[dt].anchor,at[dt].head,"+input");at=it.listSelections();for(var ht=0;ht<at.length;ht++)it.indentLine(at[ht].from().line,null,!0);Dl(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Od(it,at){var dt=In(it.doc,at),ht=yn(dt);return ht!=dt&&(at=Ht(ht)),Cc(!0,it,ht,at,1)}function Id(it,at){var dt=In(it.doc,at),ht=On(dt);return ht!=dt&&(at=Ht(ht)),Cc(!0,it,dt,at,-1)}function Cg(it,at){var dt=Od(it,at.line),ht=In(it.doc,dt.line),gt=Ke(ht,it.doc.direction);if(!gt||gt[0].level==0){var Lt=Math.max(dt.ch,ht.text.search(/\S/)),Dt=at.line==dt.line&&at.ch<=Lt&&at.ch;return ke(dt.line,Dt?0:Lt,dt.sticky)}return dt}function Rd(it,at,dt){if(typeof at=="string"&&(at=fh[at],!at))return!1;it.display.input.ensurePolled();var ht=it.display.shift,gt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),dt&&(it.display.shift=!1),gt=at(it)!=mn}finally{it.display.shift=ht,it.state.suppressEdits=!1}return gt}function Lg(it,at,dt){for(var ht=0;ht<it.state.keyMaps.length;ht++){var gt=wl(at,it.state.keyMaps[ht],dt,it);if(gt)return gt}return it.options.extraKeys&&wl(at,it.options.extraKeys,dt,it)||wl(at,it.options.keyMap,dt,it)}var mu=new Kt;function Qh(it,at,dt,ht){var gt=it.state.keySeq;if(gt){if(Td(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:mu.set(50,function(){it.state.keySeq==gt&&(it.state.keySeq=null,it.display.input.reset())}),df(it,gt+" "+at,dt,ht))return!0}return df(it,at,dt,ht)}function df(it,at,dt,ht){var gt=Lg(it,at,ht);return gt=="multi"&&(it.state.keySeq=at),gt=="handled"&&Hi(it,"keyHandled",it,at,dt),(gt=="handled"||gt=="multi")&&(Hn(dt),wo(it)),!!gt}function cf(it,at){var dt=_p(at,!0);return dt?at.shiftKey&&!it.state.keySeq?Qh(it,"Shift-"+dt,at,function(ht){return Rd(it,ht,!0)})||Qh(it,dt,at,function(ht){if(typeof ht=="string"?/^go[A-Z]/.test(ht):ht.motion)return Rd(it,ht)}):Qh(it,dt,at,function(ht){return Rd(it,ht)}):!1}function ff(it,at,dt){return Qh(it,"'"+dt+"'",at,function(ht){return Rd(it,ht,!0)})}var qh=null;function Ag(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=Ge(),!Je(at,it))){ge&&zt<11&&it.keyCode==27&&(it.returnValue=!1);var dt=it.keyCode;at.display.shift=dt==16||it.shiftKey;var ht=cf(at,it);Vt&&(qh=ht?dt:null,!ht&&dt==88&&!li&&(ct?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),Ft&&!ct&&!ht&&dt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),dt==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Eg(at)}}function Eg(it){var at=it.display.lineDiv;Ye(at,"CodeMirror-crosshair");function dt(ht){(ht.keyCode==18||!ht.altKey)&&(jt(at,"CodeMirror-crosshair"),Fe(document,"keyup",dt),Fe(document,"mouseover",dt))}_e(document,"keyup",dt),_e(document,"mouseover",dt)}function bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),Je(this,it)}function $l(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(No(at.display,it)||Je(at,it)||it.ctrlKey&&!it.altKey||ct&&it.metaKey)){var dt=it.keyCode,ht=it.charCode;if(Vt&&dt==qh){qh=null,Hn(it);return}if(!(Vt&&(!it.which||it.which<10)&&cf(at,it))){var gt=String.fromCharCode(ht==null?dt:ht);gt!="\b"&&(ff(at,it,gt)||at.display.input.onKeyPress(it))}}}var $p=400,kg=function(it,at,dt){this.time=it,this.pos=at,this.button=dt};kg.prototype.compare=function(it,at,dt){return this.time+$p>it&&vn(at,this.pos)==0&&dt==this.button};var zd,_h;function Mg(it,at){var dt=+new Date;return _h&&_h.compare(dt,it,at)?(zd=_h=null,"triple"):zd&&zd.compare(dt,it,at)?(_h=new kg(dt,it,at),zd=null,"double"):(zd=new kg(dt,it,at),_h=null,"single")}function tu(it){var at=this,dt=at.display;if(!(Je(at,it)||dt.activeTouch&&dt.input.supportsTouch())){if(dt.input.ensurePolled(),dt.shift=it.shiftKey,No(dt,it)){ie||(dt.scroller.draggable=!1,setTimeout(function(){return dt.scroller.draggable=!0},100));return}if(!mf(at,it)){var ht=Ha(at,it),gt=Ii(it),Lt=ht?Mg(ht,gt):"single";window.focus(),gt==1&&at.state.selectingText&&at.state.selectingText(it),!(ht&&Fg(at,gt,ht,Lt,it))&&(gt==1?ht?tm(at,ht,Lt,it):Vi(it)==dt.scroller&&Hn(it):gt==2?(ht&&af(at.doc,ht),setTimeout(function(){return dt.input.focus()},20)):gt==3&&(Et?at.display.input.onContextMenu(it):Ho(at)))}}}function Fg(it,at,dt,ht,gt){var Lt="Click";return ht=="double"?Lt="Double"+Lt:ht=="triple"&&(Lt="Triple"+Lt),Lt=(at==1?"Left":at==2?"Middle":"Right")+Lt,Qh(it,wg(Lt,gt),gt,function(Dt){if(typeof Dt=="string"&&(Dt=fh[Dt]),!Dt)return!1;var Zt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Zt=Dt(it,dt)!=mn}finally{it.state.suppressEdits=!1}return Zt})}function gf(it,at,dt){var ht=it.getOption("configureMouse"),gt=ht?ht(it,at,dt):{};if(gt.unit==null){var Lt=lt?dt.shiftKey&&dt.metaKey:dt.altKey;gt.unit=Lt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(gt.extend==null||it.doc.extend)&&(gt.extend=it.doc.extend||dt.shiftKey),gt.addNew==null&&(gt.addNew=ct?dt.metaKey:dt.ctrlKey),gt.moveOnDrag==null&&(gt.moveOnDrag=!(ct?dt.altKey:dt.ctrlKey)),gt}function tm(it,at,dt,ht){ge?setTimeout(Be(Ao,it),0):it.curOp.focus=Ge();var gt=gf(it,dt,ht),Lt=it.doc.sel,Dt;it.options.dragDrop&&Wi&&!it.isReadOnly()&&dt=="single"&&(Dt=Lt.contains(at))>-1&&(vn((Dt=Lt.ranges[Dt]).from(),at)<0||at.xRel>0)&&(vn(Dt.to(),at)>0||at.xRel<0)?Bg(it,ht,at,gt):ev(it,ht,at,gt)}function Bg(it,at,dt,ht){var gt=it.display,Lt=!1,Dt=Oa(it,function($t){ie&&(gt.scroller.draggable=!1),it.state.draggingText=!1,Fe(gt.wrapper.ownerDocument,"mouseup",Dt),Fe(gt.wrapper.ownerDocument,"mousemove",Zt),Fe(gt.scroller,"dragstart",Wt),Fe(gt.scroller,"drop",Dt),Lt||(Hn($t),ht.addNew||af(it.doc,dt,null,null,ht.extend),ie&&!qe||ge&&zt==9?setTimeout(function(){gt.wrapper.ownerDocument.body.focus({preventScroll:!0}),gt.input.focus()},20):gt.input.focus())}),Zt=function($t){Lt=Lt||Math.abs(at.clientX-$t.clientX)+Math.abs(at.clientY-$t.clientY)>=10},Wt=function(){return Lt=!0};ie&&(gt.scroller.draggable=!0),it.state.draggingText=Dt,Dt.copy=!ht.moveOnDrag,gt.scroller.dragDrop&>.scroller.dragDrop(),_e(gt.wrapper.ownerDocument,"mouseup",Dt),_e(gt.wrapper.ownerDocument,"mousemove",Zt),_e(gt.scroller,"dragstart",Wt),_e(gt.scroller,"drop",Dt),Ho(it),setTimeout(function(){return gt.input.focus()},20)}function Dg(it,at,dt){if(dt=="char")return new bo(at,at);if(dt=="word")return it.findWordAt(at);if(dt=="line")return new bo(ke(at.line,0),Wn(it.doc,ke(at.line+1,0)));var ht=dt(it,at);return new bo(ht.from,ht.to)}function ev(it,at,dt,ht){var gt=it.display,Lt=it.doc;Hn(at);var Dt,Zt,Wt=Lt.sel,$t=Wt.ranges;if(ht.addNew&&!ht.extend?(Zt=Lt.sel.contains(dt),Zt>-1?Dt=$t[Zt]:Dt=new bo(dt,dt)):(Dt=Lt.sel.primary(),Zt=Lt.sel.primIndex),ht.unit=="rectangle")ht.addNew||(Dt=new bo(dt,dt)),dt=Ha(it,at,!0,!0),Zt=-1;else{var De=Dg(it,dt,ht.unit);ht.extend?Dt=of(Dt,De.anchor,De.head,ht.extend):Dt=De}ht.addNew?Zt==-1?(Zt=$t.length,ps(Lt,Tl(it,$t.concat([Dt]),Zt),{scroll:!1,origin:"*mouse"})):$t.length>1&&$t[Zt].empty()&&ht.unit=="char"&&!ht.extend?(ps(Lt,Tl(it,$t.slice(0,Zt).concat($t.slice(Zt+1)),0),{scroll:!1,origin:"*mouse"}),Wt=Lt.sel):dh(Lt,Zt,Dt,Qe):(Zt=0,ps(Lt,new Sl([Dt],0),Qe),Wt=Lt.sel);var oe=dt;function rn(_i){if(vn(oe,_i)!=0)if(oe=_i,ht.unit=="rectangle"){for(var mr=[],jr=it.options.tabSize,Qi=ee(In(Lt,dt.line).text,dt.ch,jr),to=ee(In(Lt,_i.line).text,_i.ch,jr),Jo=Math.min(Qi,to),Ra=Math.max(Qi,to),ra=Math.min(dt.line,_i.line),zs=Math.min(it.lastLine(),Math.max(dt.line,_i.line));ra<=zs;ra++){var ms=In(Lt,ra).text,ka=Vn(ms,Jo,jr);Jo==Ra?mr.push(new bo(ke(ra,ka),ke(ra,ka))):ms.length>ka&&mr.push(new bo(ke(ra,ka),ke(ra,Vn(ms,Ra,jr))))}mr.length||mr.push(new bo(dt,dt)),ps(Lt,Tl(it,Wt.ranges.slice(0,Zt).concat(mr),Zt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(_i)}else{var Xs=Dt,as=Dg(it,_i,ht.unit),Ma=Xs.anchor,mo;vn(as.anchor,Ma)>0?(mo=as.head,Ma=Dn(Xs.from(),as.anchor)):(mo=as.anchor,Ma=$n(Xs.to(),as.head));var ua=Wt.ranges.slice(0);ua[Zt]=em(it,new bo(Wn(Lt,Ma),mo)),ps(Lt,Tl(it,ua,Zt),Qe)}}var Xe=gt.wrapper.getBoundingClientRect(),oi=0;function di(_i){var mr=++oi,jr=Ha(it,_i,!0,ht.unit=="rectangle");if(jr)if(vn(jr,oe)!=0){it.curOp.focus=Ge(),rn(jr);var Qi=qr(gt,Lt);(jr.line>=Qi.to||jr.line<Qi.from)&&setTimeout(Oa(it,function(){oi==mr&&di(_i)}),150)}else{var to=_i.clientY<Xe.top?-20:_i.clientY>Xe.bottom?20:0;to&&setTimeout(Oa(it,function(){oi==mr&&(gt.scroller.scrollTop+=to,di(_i))}),50)}}function Li(_i){it.state.selectingText=!1,oi=1/0,_i&&(Hn(_i),gt.input.focus()),Fe(gt.wrapper.ownerDocument,"mousemove",zi),Fe(gt.wrapper.ownerDocument,"mouseup",hr),Lt.history.lastSelOrigin=null}var zi=Oa(it,function(_i){_i.buttons===0||!Ii(_i)?Li(_i):di(_i)}),hr=Oa(it,Li);it.state.selectingText=hr,_e(gt.wrapper.ownerDocument,"mousemove",zi),_e(gt.wrapper.ownerDocument,"mouseup",hr)}function em(it,at){var dt=at.anchor,ht=at.head,gt=In(it.doc,dt.line);if(vn(dt,ht)==0&&dt.sticky==ht.sticky)return at;var Lt=Ke(gt);if(!Lt)return at;var Dt=xe(Lt,dt.ch,dt.sticky),Zt=Lt[Dt];if(Zt.from!=dt.ch&&Zt.to!=dt.ch)return at;var Wt=Dt+(Zt.from==dt.ch==(Zt.level!=1)?0:1);if(Wt==0||Wt==Lt.length)return at;var $t;if(ht.line!=dt.line)$t=(ht.line-dt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var De=xe(Lt,ht.ch,ht.sticky),oe=De-Dt||(ht.ch-dt.ch)*(Zt.level==1?-1:1);De==Wt-1||De==Wt?$t=oe<0:$t=oe>0}var rn=Lt[Wt+($t?-1:0)],Xe=$t==(rn.level==1),oi=Xe?rn.from:rn.to,di=Xe?"after":"before";return dt.ch==oi&&dt.sticky==di?at:new bo(new ke(dt.line,oi,di),ht)}function pf(it,at,dt,ht){var gt,Lt;if(at.touches)gt=at.touches[0].clientX,Lt=at.touches[0].clientY;else try{gt=at.clientX,Lt=at.clientY}catch(rn){return!1}if(gt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ht&&Hn(at);var Dt=it.display,Zt=Dt.lineDiv.getBoundingClientRect();if(Lt>Zt.bottom||!Sn(it,dt))return Jn(at);Lt-=Zt.top-Dt.viewOffset;for(var Wt=0;Wt<it.display.gutterSpecs.length;++Wt){var $t=Dt.gutters.childNodes[Wt];if($t&&$t.getBoundingClientRect().right>=gt){var De=de(it.doc,Lt),oe=it.display.gutterSpecs[Wt];return ze(it,dt,it,De,oe.className,at),Jn(at)}}}function mf(it,at){return pf(it,at,"gutterClick",!0)}function vf(it,at){No(it.display,at)||nm(it,at)||Je(it,at,"contextmenu")||Et||it.display.input.onContextMenu(at)}function nm(it,at){return Sn(it,"gutterContextMenu")?pf(it,at,"gutterContextMenu",!1):!1}function yf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lu(it)}var gh={toString:function(){return"CodeMirror.Init"}},Ng={},Lc={};function im(it){var at=it.optionHandlers;function dt(ht,gt,Lt,Dt){it.defaults[ht]=gt,Lt&&(at[ht]=Dt?function(Zt,Wt,$t){$t!=gh&&Lt(Zt,Wt,$t)}:Lt)}it.defineOption=dt,it.Init=gh,dt("value","",function(ht,gt){return ht.setValue(gt)},!0),dt("mode",null,function(ht,gt){ht.doc.modeOption=gt,$r(ht)},!0),dt("indentUnit",2,$r,!0),dt("indentWithTabs",!1),dt("smartIndent",!0),dt("tabSize",4,function(ht){hc(ht),lu(ht),Oo(ht)},!0),dt("lineSeparator",null,function(ht,gt){if(ht.doc.lineSep=gt,!!gt){var Lt=[],Dt=ht.doc.first;ht.doc.iter(function(Wt){for(var $t=0;;){var De=Wt.text.indexOf(gt,$t);if(De==-1)break;$t=De+gt.length,Lt.push(ke(Dt,De))}Dt++});for(var Zt=Lt.length-1;Zt>=0;Zt--)Uh(ht.doc,gt,Lt[Zt],ke(Lt[Zt].line,Lt[Zt].ch+gt.length))}}),dt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ht,gt,Lt){ht.state.specialChars=new RegExp(gt.source+(gt.test(" ")?"":"| "),"g"),Lt!=gh&&ht.refresh()}),dt("specialCharPlaceholder",Mr,function(ht){return ht.refresh()},!0),dt("electricChars",!0),dt("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),dt("spellcheck",!1,function(ht,gt){return ht.getInputField().spellcheck=gt},!0),dt("autocorrect",!1,function(ht,gt){return ht.getInputField().autocorrect=gt},!0),dt("autocapitalize",!1,function(ht,gt){return ht.getInputField().autocapitalize=gt},!0),dt("rtlMoveVisually",!pt),dt("wholeLineUpdateBefore",!0),dt("theme","default",function(ht){yf(ht),sl(ht)},!0),dt("keyMap","default",function(ht,gt,Lt){var Dt=Jh(gt),Zt=Lt!=gh&&Jh(Lt);Zt&&Zt.detach&&Zt.detach(ht,Dt),Dt.attach&&Dt.attach(ht,Zt||null)}),dt("extraKeys",null),dt("configureMouse",null),dt("lineWrapping",!1,rm,!0),dt("gutters",[],function(ht,gt){ht.display.gutterSpecs=Ua(gt,ht.options.lineNumbers),sl(ht)},!0),dt("fixedGutter",!0,function(ht,gt){ht.display.gutters.style.left=gt?Nu(ht.display)+"px":"0",ht.refresh()},!0),dt("coverGutterNextToScrollbar",!1,function(ht){return Ta(ht)},!0),dt("scrollbarStyle","native",function(ht){Ql(ht),Ta(ht),ht.display.scrollbars.setScrollTop(ht.doc.scrollTop),ht.display.scrollbars.setScrollLeft(ht.doc.scrollLeft)},!0),dt("lineNumbers",!1,function(ht,gt){ht.display.gutterSpecs=Ua(ht.options.gutters,gt),sl(ht)},!0),dt("firstLineNumber",1,sl,!0),dt("lineNumberFormatter",function(ht){return ht},sl,!0),dt("showCursorWhenSelecting",!1,ma,!0),dt("resetSelectionOnContextMenu",!0),dt("lineWiseCopyCut",!0),dt("pasteLinesPerSelection",!0),dt("selectionsMayTouch",!1),dt("readOnly",!1,function(ht,gt){gt=="nocursor"&&(Tu(ht),ht.display.input.blur()),ht.display.input.readOnlyChanged(gt)}),dt("screenReaderLabel",null,function(ht,gt){gt=gt===""?null:gt,ht.display.input.screenReaderLabelChanged(gt)}),dt("disableInput",!1,function(ht,gt){gt||ht.display.input.reset()},!0),dt("dragDrop",!0,Sf),dt("allowDropFileTypes",null),dt("cursorBlinkRate",530),dt("cursorScrollMargin",0),dt("cursorHeight",1,ma,!0),dt("singleCursorHeightPerLine",!0,ma,!0),dt("workTime",100),dt("workDelay",100),dt("flattenSpans",!0,hc,!0),dt("addModeClass",!1,hc,!0),dt("pollInterval",100),dt("undoDepth",200,function(ht,gt){return ht.doc.history.undoDepth=gt}),dt("historyEventDelay",1250),dt("viewportMargin",10,function(ht){return ht.refresh()},!0),dt("maxHighlightLength",1e4,hc,!0),dt("moveInputWithCursor",!0,function(ht,gt){gt||ht.display.input.resetPosition()}),dt("tabindex",null,function(ht,gt){return ht.display.input.getField().tabIndex=gt||""}),dt("autofocus",null),dt("direction","ltr",function(ht,gt){return ht.doc.setDirection(gt)},!0),dt("phrases",null)}function Sf(it,at,dt){var ht=dt&&dt!=gh;if(!at!=!ht){var gt=it.display.dragFunctions,Lt=at?_e:Fe;Lt(it.display.scroller,"dragstart",gt.start),Lt(it.display.scroller,"dragenter",gt.enter),Lt(it.display.scroller,"dragover",gt.over),Lt(it.display.scroller,"dragleave",gt.leave),Lt(it.display.scroller,"drop",gt.drop)}}function rm(it){it.options.lineWrapping?(Ye(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(jt(it.display.wrapper,"CodeMirror-wrap"),Xi(it)),xr(it),Oo(it),lu(it),setTimeout(function(){return Ta(it)},100)}function po(it,at){var dt=this;if(!(this instanceof po))return new po(it,at);this.options=at=at?sn(at):{},sn(Ng,at,!1);var ht=at.value;typeof ht=="string"?ht=new os(ht,at.mode,null,at.lineSeparator,at.direction):at.mode&&(ht.modeOption=at.mode),this.doc=ht;var gt=new po.inputStyles[at.inputStyle](this),Lt=this.display=new lh(it,ht,gt,at);Lt.wrapper.CodeMirror=this,yf(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ql(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 Kt,keySeq:null,specialChars:null},at.autofocus&&!et&&Lt.input.focus(),ge&&zt<11&&setTimeout(function(){return dt.display.input.reset(!0)},20),jd(this),ul(),al(this),this.curOp.forceUpdate=!0,ef(this,ht),at.autofocus&&!et||this.hasFocus()?setTimeout(function(){dt.hasFocus()&&!dt.state.focused&&ho(dt)},20):Tu(this);for(var Dt in Lc)Lc.hasOwnProperty(Dt)&&Lc[Dt](this,at[Dt],gh);Ca(this),at.finishInit&&at.finishInit(this);for(var Zt=0;Zt<$h.length;++Zt)$h[Zt](this);Nl(this),ie&&at.lineWrapping&&getComputedStyle(Lt.lineDiv).textRendering=="optimizelegibility"&&(Lt.lineDiv.style.textRendering="auto")}po.defaults=Ng,po.optionHandlers=Lc;function jd(it){var at=it.display;_e(at.scroller,"mousedown",Oa(it,tu)),ge&&zt<11?_e(at.scroller,"dblclick",Oa(it,function(Wt){if(!Je(it,Wt)){var $t=Ha(it,Wt);if(!(!$t||mf(it,Wt)||No(it.display,Wt))){Hn(Wt);var De=it.findWordAt($t);af(it.doc,De.anchor,De.head)}}})):_e(at.scroller,"dblclick",function(Wt){return Je(it,Wt)||Hn(Wt)}),_e(at.scroller,"contextmenu",function(Wt){return vf(it,Wt)}),_e(at.input.getField(),"contextmenu",function(Wt){at.scroller.contains(Wt.target)||vf(it,Wt)});var dt,ht={end:0};function gt(){at.activeTouch&&(dt=setTimeout(function(){return at.activeTouch=null},1e3),ht=at.activeTouch,ht.end=+new Date)}function Lt(Wt){if(Wt.touches.length!=1)return!1;var $t=Wt.touches[0];return $t.radiusX<=1&&$t.radiusY<=1}function Dt(Wt,$t){if($t.left==null)return!0;var De=$t.left-Wt.left,oe=$t.top-Wt.top;return De*De+oe*oe>20*20}_e(at.scroller,"touchstart",function(Wt){if(!Je(it,Wt)&&!Lt(Wt)&&!mf(it,Wt)){at.input.ensurePolled(),clearTimeout(dt);var $t=+new Date;at.activeTouch={start:$t,moved:!1,prev:$t-ht.end<=300?ht:null},Wt.touches.length==1&&(at.activeTouch.left=Wt.touches[0].pageX,at.activeTouch.top=Wt.touches[0].pageY)}}),_e(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),_e(at.scroller,"touchend",function(Wt){var $t=at.activeTouch;if($t&&!No(at,Wt)&&$t.left!=null&&!$t.moved&&new Date-$t.start<300){var De=it.coordsChar(at.activeTouch,"page"),oe;!$t.prev||Dt($t,$t.prev)?oe=new bo(De,De):!$t.prev.prev||Dt($t,$t.prev.prev)?oe=it.findWordAt(De):oe=new bo(ke(De.line,0),Wn(it.doc,ke(De.line+1,0))),it.setSelection(oe.anchor,oe.head),it.focus(),Hn(Wt)}gt()}),_e(at.scroller,"touchcancel",gt),_e(at.scroller,"scroll",function(){at.scroller.clientHeight&&(Xl(it,at.scroller.scrollTop),Jl(it,at.scroller.scrollLeft,!0),ze(it,"scroll",it))}),_e(at.scroller,"mousewheel",function(Wt){return Ya(it,Wt)}),_e(at.scroller,"DOMMouseScroll",function(Wt){return Ya(it,Wt)}),_e(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Wt){Je(it,Wt)||xi(Wt)},over:function(Wt){Je(it,Wt)||(Jp(it,Wt),xi(Wt))},start:function(Wt){return Xp(it,Wt)},drop:Oa(it,mg),leave:function(Wt){Je(it,Wt)||Qp(it)}};var Zt=at.input.getField();_e(Zt,"keyup",function(Wt){return bg.call(it,Wt)}),_e(Zt,"keydown",Oa(it,Ag)),_e(Zt,"keypress",Oa(it,$l)),_e(Zt,"focus",function(Wt){return ho(it,Wt)}),_e(Zt,"blur",function(Wt){return Tu(it,Wt)})}var $h=[];po.defineInitHook=function(it){return $h.push(it)};function Ia(it,at,dt,ht){var gt=it.doc,Lt;dt==null&&(dt="add"),dt=="smart"&&(gt.mode.indent?Lt=Fr(it,at).state:dt="prev");var Dt=it.options.tabSize,Zt=In(gt,at),Wt=ee(Zt.text,null,Dt);Zt.stateAfter&&(Zt.stateAfter=null);var $t=Zt.text.match(/^\s*/)[0],De;if(!ht&&!/\S/.test(Zt.text))De=0,dt="not";else if(dt=="smart"&&(De=gt.mode.indent(Lt,Zt.text.slice($t.length),Zt.text),De==mn||De>150)){if(!ht)return;dt="prev"}dt=="prev"?at>gt.first?De=ee(In(gt,at-1).text,null,Dt):De=0:dt=="add"?De=Wt+it.options.indentUnit:dt=="subtract"?De=Wt-it.options.indentUnit:typeof dt=="number"&&(De=Wt+dt),De=Math.max(0,De);var oe="",rn=0;if(it.options.indentWithTabs)for(var Xe=Math.floor(De/Dt);Xe;--Xe)rn+=Dt,oe+=" ";if(rn<De&&(oe+=cn(De-rn)),oe!=$t)return Uh(gt,oe,ke(at,0),ke(at,$t.length),"+input"),Zt.stateAfter=null,!0;for(var oi=0;oi<gt.sel.ranges.length;oi++){var di=gt.sel.ranges[oi];if(di.head.line==at&&di.head.ch<$t.length){var Li=ke(at,$t.length);dh(gt,oi,new bo(Li,Li));break}}}var Rs=null;function td(it){Rs=it}function Ac(it,at,dt,ht,gt){var Lt=it.doc;it.display.shift=!1,ht||(ht=Lt.sel);var Dt=+new Date-200,Zt=gt=="paste"||it.state.pasteIncoming>Dt,Wt=nr(at),$t=null;if(Zt&&ht.ranges.length>1)if(Rs&&Rs.text.join(`
|
|
`)==at){if(ht.ranges.length%Rs.text.length==0){$t=[];for(var De=0;De<Rs.text.length;De++)$t.push(Lt.splitLines(Rs.text[De]))}}else Wt.length==ht.ranges.length&&it.options.pasteLinesPerSelection&&($t=bn(Wt,function(zi){return[zi]}));for(var oe=it.curOp.updateInput,rn=ht.ranges.length-1;rn>=0;rn--){var Xe=ht.ranges[rn],oi=Xe.from(),di=Xe.to();Xe.empty()&&(dt&&dt>0?oi=ke(oi.line,oi.ch-dt):it.state.overwrite&&!Zt?di=ke(di.line,Math.min(In(Lt,di.line).text.length,di.ch+le(Wt).length)):Zt&&Rs&&Rs.lineWise&&Rs.text.join(`
|
|
`)==Wt.join(`
|
|
`)&&(oi=di=ke(oi.line,0)));var Li={from:oi,to:di,text:$t?$t[rn%$t.length]:Wt,origin:gt||(Zt?"paste":it.state.cutIncoming>Dt?"cut":"+input")};ch(it.doc,Li),Hi(it,"inputRead",it,Li)}at&&!Zt&&Og(it,at),Dl(it),it.curOp.updateInput<2&&(it.curOp.updateInput=oe),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Tg(it,at){var dt=it.clipboardData&&it.clipboardData.getData("Text");if(dt)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&yo(at,function(){return Ac(at,dt,0,null,"paste")}),!0}function Og(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var dt=it.doc.sel,ht=dt.ranges.length-1;ht>=0;ht--){var gt=dt.ranges[ht];if(!(gt.head.ch>100||ht&&dt.ranges[ht-1].head.line==gt.head.line)){var Lt=it.getModeAt(gt.head),Dt=!1;if(Lt.electricChars){for(var Zt=0;Zt<Lt.electricChars.length;Zt++)if(at.indexOf(Lt.electricChars.charAt(Zt))>-1){Dt=Ia(it,gt.head.line,"smart");break}}else Lt.electricInput&&Lt.electricInput.test(In(it.doc,gt.head.line).text.slice(0,gt.head.ch))&&(Dt=Ia(it,gt.head.line,"smart"));Dt&&Hi(it,"electricInput",it,gt.head.line)}}}function Ig(it){for(var at=[],dt=[],ht=0;ht<it.doc.sel.ranges.length;ht++){var gt=it.doc.sel.ranges[ht].head.line,Lt={anchor:ke(gt,0),head:ke(gt+1,0)};dt.push(Lt),at.push(it.getRange(Lt.anchor,Lt.head))}return{text:at,ranges:dt}}function Rg(it,at,dt,ht){it.setAttribute("autocorrect",dt?"":"off"),it.setAttribute("autocapitalize",ht?"":"off"),it.setAttribute("spellcheck",!!at)}function zg(){var it=Ut("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Ut("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ie?it.style.width="1000px":it.setAttribute("wrap","off"),Bt&&(it.style.border="1px solid black"),Rg(it),at}function ph(it){var at=it.optionHandlers,dt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ht,gt){var Lt=this.options,Dt=Lt[ht];Lt[ht]==gt&&ht!="mode"||(Lt[ht]=gt,at.hasOwnProperty(ht)&&Oa(this,at[ht])(this,gt,Dt),ze(this,"optionChange",this,ht))},getOption:function(ht){return this.options[ht]},getDoc:function(){return this.doc},addKeyMap:function(ht,gt){this.state.keyMaps[gt?"push":"unshift"](Jh(ht))},removeKeyMap:function(ht){for(var gt=this.state.keyMaps,Lt=0;Lt<gt.length;++Lt)if(gt[Lt]==ht||gt[Lt].name==ht)return gt.splice(Lt,1),!0},addOverlay:Za(function(ht,gt){var Lt=ht.token?ht:it.getMode(this.options,ht);if(Lt.startState)throw new Error("Overlays may not be stateful.");hi(this.state.overlays,{mode:Lt,modeSpec:ht,opaque:gt&>.opaque,priority:gt&>.priority||0},function(Dt){return Dt.priority}),this.state.modeGen++,Oo(this)}),removeOverlay:Za(function(ht){for(var gt=this.state.overlays,Lt=0;Lt<gt.length;++Lt){var Dt=gt[Lt].modeSpec;if(Dt==ht||typeof ht=="string"&&Dt.name==ht){gt.splice(Lt,1),this.state.modeGen++,Oo(this);return}}}),indentLine:Za(function(ht,gt,Lt){typeof gt!="string"&&typeof gt!="number"&&(gt==null?gt=this.options.smartIndent?"smart":"prev":gt=gt?"add":"subtract"),wn(this.doc,ht)&&Ia(this,ht,gt,Lt)}),indentSelection:Za(function(ht){for(var gt=this.doc.sel.ranges,Lt=-1,Dt=0;Dt<gt.length;Dt++){var Zt=gt[Dt];if(Zt.empty())Zt.head.line>Lt&&(Ia(this,Zt.head.line,ht,!0),Lt=Zt.head.line,Dt==this.doc.sel.primIndex&&Dl(this));else{var Wt=Zt.from(),$t=Zt.to(),De=Math.max(Lt,Wt.line);Lt=Math.min(this.lastLine(),$t.line-($t.ch?0:1))+1;for(var oe=De;oe<Lt;++oe)Ia(this,oe,ht);var rn=this.doc.sel.ranges;Wt.ch==0&>.length==rn.length&&rn[Dt].from().ch>0&&dh(this.doc,Dt,new bo(Wt,rn[Dt].to()),Ae)}}}),getTokenAt:function(ht,gt){return Ei(this,ht,gt)},getLineTokens:function(ht,gt){return Ei(this,ke(ht),gt,!0)},getTokenTypeAt:function(ht){ht=Wn(this.doc,ht);var gt=or(this,In(this.doc,ht.line)),Lt=0,Dt=(gt.length-1)/2,Zt=ht.ch,Wt;if(Zt==0)Wt=gt[2];else for(;;){var $t=Lt+Dt>>1;if(($t?gt[$t*2-1]:0)>=Zt)Dt=$t;else if(gt[$t*2+1]<Zt)Lt=$t+1;else{Wt=gt[$t*2+2];break}}var De=Wt?Wt.indexOf("overlay "):-1;return De<0?Wt:De==0?null:Wt.slice(0,De-1)},getModeAt:function(ht){var gt=this.doc.mode;return gt.innerMode?it.innerMode(gt,this.getTokenAt(ht).state).mode:gt},getHelper:function(ht,gt){return this.getHelpers(ht,gt)[0]},getHelpers:function(ht,gt){var Lt=[];if(!dt.hasOwnProperty(gt))return Lt;var Dt=dt[gt],Zt=this.getModeAt(ht);if(typeof Zt[gt]=="string")Dt[Zt[gt]]&&Lt.push(Dt[Zt[gt]]);else if(Zt[gt])for(var Wt=0;Wt<Zt[gt].length;Wt++){var $t=Dt[Zt[gt][Wt]];$t&&Lt.push($t)}else Zt.helperType&&Dt[Zt.helperType]?Lt.push(Dt[Zt.helperType]):Dt[Zt.name]&&Lt.push(Dt[Zt.name]);for(var De=0;De<Dt._global.length;De++){var oe=Dt._global[De];oe.pred(Zt,this)&&Oe(Lt,oe.val)==-1&&Lt.push(oe.val)}return Lt},getStateAfter:function(ht,gt){var Lt=this.doc;return ht=Un(Lt,ht==null?Lt.first+Lt.size-1:ht),Fr(this,ht+1,gt).state},cursorCoords:function(ht,gt){var Lt,Dt=this.doc.sel.primary();return ht==null?Lt=Dt.head:typeof ht=="object"?Lt=Wn(this.doc,ht):Lt=ht?Dt.from():Dt.to(),co(this,Lt,gt||"page")},charCoords:function(ht,gt){return Ga(this,Wn(this.doc,ht),gt||"page")},coordsChar:function(ht,gt){return ht=Yl(this,ht,gt||"page"),sa(this,ht.left,ht.top)},lineAtHeight:function(ht,gt){return ht=Yl(this,{top:ht,left:0},gt||"page").top,de(this.doc,ht+this.display.viewOffset)},heightAtLine:function(ht,gt,Lt){var Dt=!1,Zt;if(typeof ht=="number"){var Wt=this.doc.first+this.doc.size-1;ht<this.doc.first?ht=this.doc.first:ht>Wt&&(ht=Wt,Dt=!0),Zt=In(this.doc,ht)}else Zt=ht;return pa(this,Zt,{top:0,left:0},gt||"page",Lt||Dt).top+(Dt?this.doc.height-Di(Zt):0)},defaultTextHeight:function(){return Pa(this.display)},defaultCharWidth:function(){return Ts(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ht,gt,Lt,Dt,Zt){var Wt=this.display;ht=co(this,Wn(this.doc,ht));var $t=ht.bottom,De=ht.left;if(gt.style.position="absolute",gt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(gt),Wt.sizer.appendChild(gt),Dt=="over")$t=ht.top;else if(Dt=="above"||Dt=="near"){var oe=Math.max(Wt.wrapper.clientHeight,this.doc.height),rn=Math.max(Wt.sizer.clientWidth,Wt.lineSpace.clientWidth);(Dt=="above"||ht.bottom+gt.offsetHeight>oe)&&ht.top>gt.offsetHeight?$t=ht.top-gt.offsetHeight:ht.bottom+gt.offsetHeight<=oe&&($t=ht.bottom),De+gt.offsetWidth>rn&&(De=rn-gt.offsetWidth)}gt.style.top=$t+"px",gt.style.left=gt.style.right="",Zt=="right"?(De=Wt.sizer.clientWidth-gt.offsetWidth,gt.style.right="0px"):(Zt=="left"?De=0:Zt=="middle"&&(De=(Wt.sizer.clientWidth-gt.offsetWidth)/2),gt.style.left=De+"px"),Lt&&ih(this,{left:De,top:$t,right:De+gt.offsetWidth,bottom:$t+gt.offsetHeight})},triggerOnKeyDown:Za(Ag),triggerOnKeyPress:Za($l),triggerOnKeyUp:bg,triggerOnMouseDown:Za(tu),execCommand:function(ht){if(fh.hasOwnProperty(ht))return fh[ht].call(null,this)},triggerElectric:Za(function(ht){Og(this,ht)}),findPosH:function(ht,gt,Lt,Dt){var Zt=1;gt<0&&(Zt=-1,gt=-gt);for(var Wt=Wn(this.doc,ht),$t=0;$t<gt&&(Wt=Ec(this.doc,Wt,Zt,Lt,Dt),!Wt.hitSide);++$t);return Wt},moveH:Za(function(ht,gt){var Lt=this;this.extendSelectionsBy(function(Dt){return Lt.display.shift||Lt.doc.extend||Dt.empty()?Ec(Lt.doc,Dt.head,ht,gt,Lt.options.rtlMoveVisually):ht<0?Dt.from():Dt.to()},ln)}),deleteH:Za(function(ht,gt){var Lt=this.doc.sel,Dt=this.doc;Lt.somethingSelected()?Dt.replaceSelection("",null,"+delete"):Ys(this,function(Zt){var Wt=Ec(Dt,Zt.head,ht,gt,!1);return ht<0?{from:Wt,to:Zt.head}:{from:Zt.head,to:Wt}})}),findPosV:function(ht,gt,Lt,Dt){var Zt=1,Wt=Dt;gt<0&&(Zt=-1,gt=-gt);for(var $t=Wn(this.doc,ht),De=0;De<gt;++De){var oe=co(this,$t,"div");if(Wt==null?Wt=oe.left:oe.left=Wt,$t=mh(this,oe,Zt,Lt),$t.hitSide)break}return $t},moveV:Za(function(ht,gt){var Lt=this,Dt=this.doc,Zt=[],Wt=!this.display.shift&&!Dt.extend&&Dt.sel.somethingSelected();if(Dt.extendSelectionsBy(function(De){if(Wt)return ht<0?De.from():De.to();var oe=co(Lt,De.head,"div");De.goalColumn!=null&&(oe.left=De.goalColumn),Zt.push(oe.left);var rn=mh(Lt,oe,ht,gt);return gt=="page"&&De==Dt.sel.primary()&&zh(Lt,Ga(Lt,rn,"div").top-oe.top),rn},ln),Zt.length)for(var $t=0;$t<Dt.sel.ranges.length;$t++)Dt.sel.ranges[$t].goalColumn=Zt[$t]}),findWordAt:function(ht){var gt=this.doc,Lt=In(gt,ht.line).text,Dt=ht.ch,Zt=ht.ch;if(Lt){var Wt=this.getHelper(ht,"wordChars");(ht.sticky=="before"||Zt==Lt.length)&&Dt?--Dt:++Zt;for(var $t=Lt.charAt(Dt),De=Rt($t,Wt)?function(oe){return Rt(oe,Wt)}:/\s/.test($t)?function(oe){return/\s/.test(oe)}:function(oe){return!/\s/.test(oe)&&!Rt(oe)};Dt>0&&De(Lt.charAt(Dt-1));)--Dt;for(;Zt<Lt.length&&De(Lt.charAt(Zt));)++Zt}return new bo(ke(ht.line,Dt),ke(ht.line,Zt))},toggleOverwrite:function(ht){ht!=null&&ht==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ye(this.display.cursorDiv,"CodeMirror-overwrite"):jt(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ge()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Za(function(ht,gt){Ou(this,ht,gt)}),getScrollInfo:function(){var ht=this.display.scroller;return{left:ht.scrollLeft,top:ht.scrollTop,height:ht.scrollHeight-vo(this)-this.display.barHeight,width:ht.scrollWidth-vo(this)-this.display.barWidth,clientHeight:fs(this),clientWidth:cs(this)}},scrollIntoView:Za(function(ht,gt){ht==null?(ht={from:this.doc.sel.primary().head,to:null},gt==null&&(gt=this.options.cursorScrollMargin)):typeof ht=="number"?ht={from:ke(ht,0),to:null}:ht.from==null&&(ht={from:ht,to:null}),ht.to||(ht.to=ht.from),ht.margin=gt||0,ht.from.line!=null?uo(this,ht):jh(this,ht.from,ht.to,ht.margin)}),setSize:Za(function(ht,gt){var Lt=this,Dt=function(Wt){return typeof Wt=="number"||/^\d+$/.test(String(Wt))?Wt+"px":Wt};ht!=null&&(this.display.wrapper.style.width=Dt(ht)),gt!=null&&(this.display.wrapper.style.height=Dt(gt)),this.options.lineWrapping&&Ul(this);var Zt=this.display.viewFrom;this.doc.iter(Zt,this.display.viewTo,function(Wt){if(Wt.widgets){for(var $t=0;$t<Wt.widgets.length;$t++)if(Wt.widgets[$t].noHScroll){Zr(Lt,Zt,"widget");break}}++Zt}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(ht){return yo(this,ht)},startOperation:function(){return al(this)},endOperation:function(){return Nl(this)},refresh:Za(function(){var ht=this.display.cachedTextHeight;Oo(this),this.curOp.forceUpdate=!0,lu(this),Ou(this,this.doc.scrollLeft,this.doc.scrollTop),ah(this.display),(ht==null||Math.abs(ht-Pa(this.display))>.5||this.options.lineWrapping)&&xr(this),ze(this,"refresh",this)}),swapDoc:Za(function(ht){var gt=this.doc;return gt.cm=null,this.state.selectingText&&this.state.selectingText(),ef(this,ht),lu(this),this.display.input.reset(),Ou(this,ht.scrollLeft,ht.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,gt),gt}),phrase:function(ht){var gt=this.options.phrases;return gt&&Object.prototype.hasOwnProperty.call(gt,ht)?gt[ht]:ht},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Mn(it),it.registerHelper=function(ht,gt,Lt){dt.hasOwnProperty(ht)||(dt[ht]=it[ht]={_global:[]}),dt[ht][gt]=Lt},it.registerGlobalHelper=function(ht,gt,Lt,Dt){it.registerHelper(ht,gt,Dt),dt[ht]._global.push({pred:Lt,val:Dt})}}function Ec(it,at,dt,ht,gt){var Lt=at,Dt=dt,Zt=In(it,at.line),Wt=gt&&it.direction=="rtl"?-dt:dt;function $t(){var hr=at.line+Wt;return hr<it.first||hr>=it.first+it.size?!1:(at=new ke(hr,at.ch,at.sticky),Zt=In(it,hr))}function De(hr){var _i;if(ht=="codepoint"){var mr=Zt.text.charCodeAt(at.ch+(ht>0?0:-1));isNaN(mr)?_i=null:_i=new ke(at.line,Math.max(0,Math.min(Zt.text.length,at.ch+dt*(mr>=55296&&mr<56320?2:1))),-dt)}else gt?_i=hf(it.cm,Zt,at,dt):_i=Sa(Zt,at,dt);if(_i==null)if(!hr&&$t())at=Cc(gt,it.cm,Zt,at.line,Wt);else return!1;else at=_i;return!0}if(ht=="char"||ht=="codepoint")De();else if(ht=="column")De(!0);else if(ht=="word"||ht=="group")for(var oe=null,rn=ht=="group",Xe=it.cm&&it.cm.getHelper(at,"wordChars"),oi=!0;!(dt<0&&!De(!oi));oi=!1){var di=Zt.text.charAt(at.ch)||`
|
|
`,Li=Rt(di,Xe)?"w":rn&&di==`
|
|
`?"n":!rn||/\s/.test(di)?null:"p";if(rn&&!oi&&!Li&&(Li="s"),oe&&oe!=Li){dt<0&&(dt=1,De(),at.sticky="after");break}if(Li&&(oe=Li),dt>0&&!De(!oi))break}var zi=vc(it,at,Lt,Dt,!0);return un(Lt,zi)&&(zi.hitSide=!0),zi}function mh(it,at,dt,ht){var gt=it.doc,Lt=at.left,Dt;if(ht=="page"){var Zt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Wt=Math.max(Zt-.5*Pa(it.display),3);Dt=(dt>0?at.bottom:at.top)+dt*Wt}else ht=="line"&&(Dt=dt>0?at.bottom+3:at.top-3);for(var $t;$t=sa(it,Lt,Dt),!!$t.outside;){if(dt<0?Dt<=0:Dt>=gt.height){$t.hitSide=!0;break}Dt+=dt*5}return $t}var Io=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Kt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Io.prototype.init=function(it){var at=this,dt=this,ht=dt.cm,gt=dt.div=it.lineDiv;Rg(gt,ht.options.spellcheck,ht.options.autocorrect,ht.options.autocapitalize);function Lt(Zt){for(var Wt=Zt.target;Wt;Wt=Wt.parentNode){if(Wt==gt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Wt.className))break}return!1}_e(gt,"paste",function(Zt){!Lt(Zt)||Je(ht,Zt)||Tg(Zt,ht)||zt<=11&&setTimeout(Oa(ht,function(){return at.updateFromDOM()}),20)}),_e(gt,"compositionstart",function(Zt){at.composing={data:Zt.data,done:!1}}),_e(gt,"compositionupdate",function(Zt){at.composing||(at.composing={data:Zt.data,done:!1})}),_e(gt,"compositionend",function(Zt){at.composing&&(Zt.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),_e(gt,"touchstart",function(){return dt.forceCompositionEnd()}),_e(gt,"input",function(){at.composing||at.readFromDOMSoon()});function Dt(Zt){if(!(!Lt(Zt)||Je(ht,Zt))){if(ht.somethingSelected())td({lineWise:!1,text:ht.getSelections()}),Zt.type=="cut"&&ht.replaceSelection("",null,"cut");else if(ht.options.lineWiseCopyCut){var Wt=Ig(ht);td({lineWise:!0,text:Wt.text}),Zt.type=="cut"&&ht.operation(function(){ht.setSelections(Wt.ranges,0,Ae),ht.replaceSelection("",null,"cut")})}else return;if(Zt.clipboardData){Zt.clipboardData.clearData();var $t=Rs.text.join(`
|
|
`);if(Zt.clipboardData.setData("Text",$t),Zt.clipboardData.getData("Text")==$t){Zt.preventDefault();return}}var De=zg(),oe=De.firstChild;ht.display.lineSpace.insertBefore(De,ht.display.lineSpace.firstChild),oe.value=Rs.text.join(`
|
|
`);var rn=document.activeElement;hn(oe),setTimeout(function(){ht.display.lineSpace.removeChild(De),rn.focus(),rn==gt&&dt.showPrimarySelection()},50)}}_e(gt,"copy",Dt),_e(gt,"cut",Dt)},Io.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Io.prototype.prepareSelection=function(){var it=uu(this.cm,!1);return it.focus=document.activeElement==this.div,it},Io.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Io.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Io.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,dt=at.doc.sel.primary(),ht=dt.from(),gt=dt.to();if(at.display.viewTo==at.display.viewFrom||ht.line>=at.display.viewTo||gt.line<at.display.viewFrom){it.removeAllRanges();return}var Lt=bc(at,it.anchorNode,it.anchorOffset),Dt=bc(at,it.focusNode,it.focusOffset);if(!(Lt&&!Lt.bad&&Dt&&!Dt.bad&&vn(Dn(Lt,Dt),ht)==0&&vn($n(Lt,Dt),gt)==0)){var Zt=at.display.view,Wt=ht.line>=at.display.viewFrom&&xf(at,ht)||{node:Zt[0].measure.map[2],offset:0},$t=gt.line<at.display.viewTo&&xf(at,gt);if(!$t){var De=Zt[Zt.length-1].measure,oe=De.maps?De.maps[De.maps.length-1]:De.map;$t={node:oe[oe.length-1],offset:oe[oe.length-2]-oe[oe.length-3]}}if(!Wt||!$t){it.removeAllRanges();return}var rn=it.rangeCount&&it.getRangeAt(0),Xe;try{Xe=ne(Wt.node,Wt.offset,$t.offset,$t.node)}catch(oi){}Xe&&(!Ft&&at.state.focused?(it.collapse(Wt.node,Wt.offset),Xe.collapsed||(it.removeAllRanges(),it.addRange(Xe))):(it.removeAllRanges(),it.addRange(Xe)),rn&&it.anchorNode==null?it.addRange(rn):Ft&&this.startGracePeriod()),this.rememberSelection()}},Io.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)},Io.prototype.showMultipleSelections=function(it){Jt(this.cm.display.cursorDiv,it.cursors),Jt(this.cm.display.selectionDiv,it.selection)},Io.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Io.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Ne(this.div,at)},Io.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Io.prototype.blur=function(){this.div.blur()},Io.prototype.getField=function(){return this.div},Io.prototype.supportsTouch=function(){return!0},Io.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():yo(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)},Io.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Io.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(nt&&he&&this.cm.display.gutterSpecs.length&&jg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var dt=bc(at,it.anchorNode,it.anchorOffset),ht=bc(at,it.focusNode,it.focusOffset);dt&&ht&&yo(at,function(){ps(at.doc,Iu(dt,ht),Ae),(dt.bad||ht.bad)&&(at.curOp.selectionChanged=!0)})}}},Io.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,dt=it.doc.sel.primary(),ht=dt.from(),gt=dt.to();if(ht.ch==0&&ht.line>it.firstLine()&&(ht=ke(ht.line-1,In(it.doc,ht.line-1).length)),gt.ch==In(it.doc,gt.line).text.length&>.line<it.lastLine()&&(gt=ke(gt.line+1,0)),ht.line<at.viewFrom||gt.line>at.viewTo-1)return!1;var Lt,Dt,Zt;ht.line==at.viewFrom||(Lt=Os(it,ht.line))==0?(Dt=Ht(at.view[0].line),Zt=at.view[0].node):(Dt=Ht(at.view[Lt].line),Zt=at.view[Lt-1].node.nextSibling);var Wt=Os(it,gt.line),$t,De;if(Wt==at.view.length-1?($t=at.viewTo-1,De=at.lineDiv.lastChild):($t=Ht(at.view[Wt+1].line)-1,De=at.view[Wt+1].node.previousSibling),!Zt)return!1;for(var oe=it.doc.splitLines(Gd(it,Zt,De,Dt,$t)),rn=wi(it.doc,ke(Dt,0),ke($t,In(it.doc,$t).text.length));oe.length>1&&rn.length>1;)if(le(oe)==le(rn))oe.pop(),rn.pop(),$t--;else if(oe[0]==rn[0])oe.shift(),rn.shift(),Dt++;else break;for(var Xe=0,oi=0,di=oe[0],Li=rn[0],zi=Math.min(di.length,Li.length);Xe<zi&&di.charCodeAt(Xe)==Li.charCodeAt(Xe);)++Xe;for(var hr=le(oe),_i=le(rn),mr=Math.min(hr.length-(oe.length==1?Xe:0),_i.length-(rn.length==1?Xe:0));oi<mr&&hr.charCodeAt(hr.length-oi-1)==_i.charCodeAt(_i.length-oi-1);)++oi;if(oe.length==1&&rn.length==1&&Dt==ht.line)for(;Xe&&Xe>ht.ch&&hr.charCodeAt(hr.length-oi-1)==_i.charCodeAt(_i.length-oi-1);)Xe--,oi++;oe[oe.length-1]=hr.slice(0,hr.length-oi).replace(/^\u200b+/,""),oe[0]=oe[0].slice(Xe).replace(/\u200b+$/,"");var jr=ke(Dt,Xe),Qi=ke($t,rn.length?le(rn).length-oi:0);if(oe.length>1||oe[0]||vn(jr,Qi))return Uh(it.doc,oe,jr,Qi,"+input"),!0},Io.prototype.ensurePolled=function(){this.forceCompositionEnd()},Io.prototype.reset=function(){this.forceCompositionEnd()},Io.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Io.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))},Io.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&yo(this.cm,function(){return Oo(it.cm)})},Io.prototype.setUneditable=function(it){it.contentEditable="false"},Io.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Oa(this.cm,Ac)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Io.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Io.prototype.onContextMenu=function(){},Io.prototype.resetPosition=function(){},Io.prototype.needsContentAttribute=!0;function xf(it,at){var dt=il(it,at.line);if(!dt||dt.hidden)return null;var ht=In(it.doc,at.line),gt=na(dt,ht,at.line),Lt=Ke(ht,it.doc.direction),Dt="left";if(Lt){var Zt=xe(Lt,at.ch);Dt=Zt%2?"right":"left"}var Wt=th(gt.map,at.ch,Dt);return Wt.offset=Wt.collapse=="right"?Wt.end:Wt.start,Wt}function jg(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function Wd(it,at){return at&&(it.bad=!0),it}function Gd(it,at,dt,ht,gt){var Lt="",Dt=!1,Zt=it.doc.lineSeparator(),Wt=!1;function $t(Xe){return function(oi){return oi.id==Xe}}function De(){Dt&&(Lt+=Zt,Wt&&(Lt+=Zt),Dt=Wt=!1)}function oe(Xe){Xe&&(De(),Lt+=Xe)}function rn(Xe){if(Xe.nodeType==1){var oi=Xe.getAttribute("cm-text");if(oi){oe(oi);return}var di=Xe.getAttribute("cm-marker"),Li;if(di){var zi=it.findMarks(ke(ht,0),ke(gt+1,0),$t(+di));zi.length&&(Li=zi[0].find(0))&&oe(wi(it.doc,Li.from,Li.to).join(Zt));return}if(Xe.getAttribute("contenteditable")=="false")return;var hr=/^(pre|div|p|li|table|br)$/i.test(Xe.nodeName);if(!/^br$/i.test(Xe.nodeName)&&Xe.textContent.length==0)return;hr&&De();for(var _i=0;_i<Xe.childNodes.length;_i++)rn(Xe.childNodes[_i]);/^(pre|p)$/i.test(Xe.nodeName)&&(Wt=!0),hr&&(Dt=!0)}else Xe.nodeType==3&&oe(Xe.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;rn(at),at!=dt;)at=at.nextSibling,Wt=!1;return Lt}function bc(it,at,dt){var ht;if(at==it.display.lineDiv){if(ht=it.display.lineDiv.childNodes[dt],!ht)return Wd(it.clipPos(ke(it.display.viewTo-1)),!0);at=null,dt=0}else for(ht=at;;ht=ht.parentNode){if(!ht||ht==it.display.lineDiv)return null;if(ht.parentNode&&ht.parentNode==it.display.lineDiv)break}for(var gt=0;gt<it.display.view.length;gt++){var Lt=it.display.view[gt];if(Lt.node==ht)return om(Lt,at,dt)}}function om(it,at,dt){var ht=it.text.firstChild,gt=!1;if(!at||!Ne(ht,at))return Wd(ke(Ht(it.line),0),!0);if(at==ht&&(gt=!0,at=ht.childNodes[dt],dt=0,!at)){var Lt=it.rest?le(it.rest):it.line;return Wd(ke(Ht(Lt),Lt.text.length),gt)}var Dt=at.nodeType==3?at:null,Zt=at;for(!Dt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Dt=at.firstChild,dt&&(dt=Dt.nodeValue.length));Zt.parentNode!=ht;)Zt=Zt.parentNode;var Wt=it.measure,$t=Wt.maps;function De(Li,zi,hr){for(var _i=-1;_i<($t?$t.length:0);_i++)for(var mr=_i<0?Wt.map:$t[_i],jr=0;jr<mr.length;jr+=3){var Qi=mr[jr+2];if(Qi==Li||Qi==zi){var to=Ht(_i<0?it.line:it.rest[_i]),Jo=mr[jr]+hr;return(hr<0||Qi!=Li)&&(Jo=mr[jr+(hr?1:0)]),ke(to,Jo)}}}var oe=De(Dt,Zt,dt);if(oe)return Wd(oe,gt);for(var rn=Zt.nextSibling,Xe=Dt?Dt.nodeValue.length-dt:0;rn;rn=rn.nextSibling){if(oe=De(rn,rn.firstChild,0),oe)return Wd(ke(oe.line,oe.ch-Xe),gt);Xe+=rn.textContent.length}for(var oi=Zt.previousSibling,di=dt;oi;oi=oi.previousSibling){if(oe=De(oi,oi.firstChild,-1),oe)return Wd(ke(oe.line,oe.ch+di),gt);di+=oi.textContent.length}}var ba=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Kt,this.hasSelection=!1,this.composing=null};ba.prototype.init=function(it){var at=this,dt=this,ht=this.cm;this.createField(it);var gt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Bt&&(gt.style.width="0px"),_e(gt,"input",function(){ge&&zt>=9&&at.hasSelection&&(at.hasSelection=null),dt.poll()}),_e(gt,"paste",function(Dt){Je(ht,Dt)||Tg(Dt,ht)||(ht.state.pasteIncoming=+new Date,dt.fastPoll())});function Lt(Dt){if(!Je(ht,Dt)){if(ht.somethingSelected())td({lineWise:!1,text:ht.getSelections()});else if(ht.options.lineWiseCopyCut){var Zt=Ig(ht);td({lineWise:!0,text:Zt.text}),Dt.type=="cut"?ht.setSelections(Zt.ranges,null,Ae):(dt.prevInput="",gt.value=Zt.text.join(`
|
|
`),hn(gt))}else return;Dt.type=="cut"&&(ht.state.cutIncoming=+new Date)}}_e(gt,"cut",Lt),_e(gt,"copy",Lt),_e(it.scroller,"paste",function(Dt){if(!(No(it,Dt)||Je(ht,Dt))){if(!gt.dispatchEvent){ht.state.pasteIncoming=+new Date,dt.focus();return}var Zt=new Event("paste");Zt.clipboardData=Dt.clipboardData,gt.dispatchEvent(Zt)}}),_e(it.lineSpace,"selectstart",function(Dt){No(it,Dt)||Hn(Dt)}),_e(gt,"compositionstart",function(){var Dt=ht.getCursor("from");dt.composing&&dt.composing.range.clear(),dt.composing={start:Dt,range:ht.markText(Dt,ht.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(gt,"compositionend",function(){dt.composing&&(dt.poll(),dt.composing.range.clear(),dt.composing=null)})},ba.prototype.createField=function(it){this.wrapper=zg(),this.textarea=this.wrapper.firstChild},ba.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ba.prototype.prepareSelection=function(){var it=this.cm,at=it.display,dt=it.doc,ht=uu(it);if(it.options.moveInputWithCursor){var gt=co(it,dt.sel.primary().head,"div"),Lt=at.wrapper.getBoundingClientRect(),Dt=at.lineDiv.getBoundingClientRect();ht.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,gt.top+Dt.top-Lt.top)),ht.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,gt.left+Dt.left-Lt.left))}return ht},ba.prototype.showSelection=function(it){var at=this.cm,dt=at.display;Jt(dt.cursorDiv,it.cursors),Jt(dt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ba.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var dt=at.getSelection();this.textarea.value=dt,at.state.focused&&hn(this.textarea),ge&&zt>=9&&(this.hasSelection=dt)}else it||(this.prevInput=this.textarea.value="",ge&&zt>=9&&(this.hasSelection=null))}},ba.prototype.getField=function(){return this.textarea},ba.prototype.supportsTouch=function(){return!1},ba.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||Ge()!=this.textarea))try{this.textarea.focus()}catch(it){}},ba.prototype.blur=function(){this.textarea.blur()},ba.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ba.prototype.receivedFocus=function(){this.slowPoll()},ba.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ba.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function dt(){var ht=at.poll();!ht&&!it?(it=!0,at.polling.set(60,dt)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,dt)},ba.prototype.poll=function(){var it=this,at=this.cm,dt=this.textarea,ht=this.prevInput;if(this.contextMenuPending||!at.state.focused||Ct(dt)&&!ht&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var gt=dt.value;if(gt==ht&&!at.somethingSelected())return!1;if(ge&&zt>=9&&this.hasSelection===gt||ct&&/[\uf700-\uf7ff]/.test(gt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Lt=gt.charCodeAt(0);if(Lt==8203&&!ht&&(ht="\u200B"),Lt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Dt=0,Zt=Math.min(ht.length,gt.length);Dt<Zt&&ht.charCodeAt(Dt)==gt.charCodeAt(Dt);)++Dt;return yo(at,function(){Ac(at,gt.slice(Dt),ht.length-Dt,null,it.composing?"*compose":null),gt.length>1e3||gt.indexOf(`
|
|
`)>-1?dt.value=it.prevInput="":it.prevInput=gt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ba.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ba.prototype.onKeyPress=function(){ge&&zt>=9&&(this.hasSelection=null),this.fastPoll()},ba.prototype.onContextMenu=function(it){var at=this,dt=at.cm,ht=dt.display,gt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Lt=Ha(dt,it),Dt=ht.scroller.scrollTop;if(!Lt||Vt)return;var Zt=dt.options.resetSelectionOnContextMenu;Zt&&dt.doc.sel.contains(Lt)==-1&&Oa(dt,ps)(dt.doc,Iu(Lt),Ae);var Wt=gt.style.cssText,$t=at.wrapper.style.cssText,De=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",gt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-De.top-5)+"px; left: "+(it.clientX-De.left-5)+`px;
|
|
z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var oe;ie&&(oe=window.scrollY),ht.input.focus(),ie&&window.scrollTo(null,oe),ht.input.reset(),dt.somethingSelected()||(gt.value=at.prevInput=" "),at.contextMenuPending=Xe,ht.selForContextMenu=dt.doc.sel,clearTimeout(ht.detectingSelectAll);function rn(){if(gt.selectionStart!=null){var di=dt.somethingSelected(),Li="\u200B"+(di?gt.value:"");gt.value="\u21DA",gt.value=Li,at.prevInput=di?"":"\u200B",gt.selectionStart=1,gt.selectionEnd=Li.length,ht.selForContextMenu=dt.doc.sel}}function Xe(){if(at.contextMenuPending==Xe&&(at.contextMenuPending=!1,at.wrapper.style.cssText=$t,gt.style.cssText=Wt,ge&&zt<9&&ht.scrollbars.setScrollTop(ht.scroller.scrollTop=Dt),gt.selectionStart!=null)){(!ge||ge&&zt<9)&&rn();var di=0,Li=function(){ht.selForContextMenu==dt.doc.sel&>.selectionStart==0&>.selectionEnd>0&&at.prevInput=="\u200B"?Oa(dt,ya)(dt):di++<10?ht.detectingSelectAll=setTimeout(Li,500):(ht.selForContextMenu=null,ht.input.reset())};ht.detectingSelectAll=setTimeout(Li,200)}}if(ge&&zt>=9&&rn(),Et){xi(it);var oi=function(){Fe(window,"mouseup",oi),setTimeout(Xe,20)};_e(window,"mouseup",oi)}else setTimeout(Xe,50)},ba.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ba.prototype.setUneditable=function(){},ba.prototype.needsContentAttribute=!1;function am(it,at){if(at=at?sn(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 dt=Ge();at.autofocus=dt==it||it.getAttribute("autofocus")!=null&&dt==document.body}function ht(){it.value=Zt.getValue()}var gt;if(it.form&&(_e(it.form,"submit",ht),!at.leaveSubmitMethodAlone)){var Lt=it.form;gt=Lt.submit;try{var Dt=Lt.submit=function(){ht(),Lt.submit=gt,Lt.submit(),Lt.submit=Dt}}catch(Wt){}}at.finishInit=function(Wt){Wt.save=ht,Wt.getTextArea=function(){return it},Wt.toTextArea=function(){Wt.toTextArea=isNaN,ht(),it.parentNode.removeChild(Wt.getWrapperElement()),it.style.display="",it.form&&(Fe(it.form,"submit",ht),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=gt))}},it.style.display="none";var Zt=po(function(Wt){return it.parentNode.insertBefore(Wt,it.nextSibling)},at);return Zt}function Hd(it){it.off=Fe,it.on=_e,it.wheelEventPixels=ll,it.Doc=os,it.splitLines=nr,it.countColumn=ee,it.findColumn=Vn,it.isWordChar=kt,it.Pass=mn,it.signal=ze,it.Line=kr,it.changeEnd=uh,it.scrollbarModel=du,it.Pos=ke,it.cmpPos=vn,it.modes=ti,it.mimeModes=ri,it.resolveMode=Ni,it.getMode=me,it.modeExtensions=ue,it.extendMode=ce,it.copyState=zn,it.startState=ni,it.innerMode=Xn,it.commands=fh,it.keyMap=Us,it.keyName=_p,it.isModifierKey=Td,it.lookupKey=wl,it.normalizeKeyMap=xg,it.StringStream=$e,it.SharedTextMarker=gu,it.TextMarker=Se,it.LineWidget=ju,it.e_preventDefault=Hn,it.e_stopPropagation=yi,it.e_stop=xi,it.addClass=Ye,it.contains=Ne,it.rmClass=jt,it.keyNames=pu}im(po),ph(po);var Wu="iter insert remove copy getEditor constructor".split(" ");for(var kc in os.prototype)os.prototype.hasOwnProperty(kc)&&Oe(Wu,kc)<0&&(po.prototype[kc]=function(it){return function(){return it.apply(this.doc,arguments)}}(os.prototype[kc]));return Mn(os),po.inputStyles={textarea:ba,contenteditable:Io},po.defineMode=function(it){!po.defaults.mode&&it!="null"&&(po.defaults.mode=it),vi.apply(this,arguments)},po.defineMIME=Ri,po.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),po.defineMIME("text/plain","null"),po.defineExtension=function(it,at){po.prototype[it]=at},po.defineDocExtension=function(it,at){os.prototype[it]=at},po.fromTextArea=am,Hd(po),po.version="5.58.2",po})},25419:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780),Nt(15525),Nt(98101))})(function(Ft){"use strict";Ft.defineMode("markdown",function(se,we){var Ie=Ft.getMode(se,"text/html"),ge=Ie.name=="null";function zt(ee){if(Ft.findModeByName){var Kt=Ft.findModeByName(ee);Kt&&(ee=Kt.mime||Kt.mimes[0])}var Oe=Ft.getMode(se,ee);return Oe.name=="null"?null:Oe}we.highlightFormatting===void 0&&(we.highlightFormatting=!1),we.maxBlockquoteDepth===void 0&&(we.maxBlockquoteDepth=0),we.taskLists===void 0&&(we.taskLists=!1),we.strikethrough===void 0&&(we.strikethrough=!1),we.emoji===void 0&&(we.emoji=!1),we.fencedCodeBlockHighlighting===void 0&&(we.fencedCodeBlockHighlighting=!0),we.fencedCodeBlockDefaultMode===void 0&&(we.fencedCodeBlockDefaultMode="text/plain"),we.xml===void 0&&(we.xml=!0),we.tokenTypeOverrides===void 0&&(we.tokenTypeOverrides={});var ie={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 Re in ie)ie.hasOwnProperty(Re)&&we.tokenTypeOverrides[Re]&&(ie[Re]=we.tokenTypeOverrides[Re]);var he=/^([*\-_])(?:\s*\1){2,}\s*$/,Vt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,qe=/^\[(x| )\](?=\s)/i,te=we.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,He=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Bt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ct=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function pt(ee,Kt,Oe){return Kt.f=Kt.inline=Oe,Oe(ee,Kt)}function vt(ee,Kt,Oe){return Kt.f=Kt.block=Oe,Oe(ee,Kt)}function xt(ee){return!ee||!/\S/.test(ee.string)}function Et(ee){if(ee.linkTitle=!1,ee.linkHref=!1,ee.linkText=!1,ee.em=!1,ee.strong=!1,ee.strikethrough=!1,ee.quote=0,ee.indentedCode=!1,ee.f==jt){var Kt=ge;if(!Kt){var Oe=Ft.innerMode(Ie,ee.htmlState);Kt=Oe.mode.name=="xml"&&Oe.state.tagStart===null&&!Oe.state.context&&Oe.state.tokenize.isInText}Kt&&(ee.f=fe,ee.block=Tt,ee.htmlState=null)}return ee.trailingSpace=0,ee.trailingSpaceNewLine=!1,ee.prevLine=ee.thisLine,ee.thisLine={stream:null},null}function Tt(ee,Kt){var Oe=ee.column()===Kt.indentation,pn=xt(Kt.prevLine.stream),mn=Kt.indentedCode,Ae=Kt.prevLine.hr,Qe=Kt.list!==!1,ln=(Kt.listStack[Kt.listStack.length-1]||0)+3;Kt.indentedCode=!1;var Vn=Kt.indentation;if(Kt.indentationDiff===null&&(Kt.indentationDiff=Kt.indentation,Qe)){for(Kt.list=null;Vn<Kt.listStack[Kt.listStack.length-1];)Kt.listStack.pop(),Kt.listStack.length?Kt.indentation=Kt.listStack[Kt.listStack.length-1]:Kt.list=!1;Kt.list!==!1&&(Kt.indentationDiff=Vn-Kt.listStack[Kt.listStack.length-1])}var Le=!pn&&!Ae&&!Kt.prevLine.header&&(!Qe||!mn)&&!Kt.prevLine.fencedCodeEnd,cn=(Kt.list===!1||Ae||pn)&&Kt.indentation<=ln&&ee.match(he),le=null;if(Kt.indentationDiff>=4&&(mn||Kt.prevLine.fencedCodeEnd||Kt.prevLine.header||pn))return ee.skipToEnd(),Kt.indentedCode=!0,ie.code;if(ee.eatSpace())return null;if(Oe&&Kt.indentation<=ln&&(le=ee.match(te))&&le[1].length<=6)return Kt.quote=0,Kt.header=le[1].length,Kt.thisLine.header=!0,we.highlightFormatting&&(Kt.formatting="header"),Kt.f=Kt.inline,Jt(Kt);if(Kt.indentation<=ln&&ee.eat(">"))return Kt.quote=Oe?1:Kt.quote+1,we.highlightFormatting&&(Kt.formatting="quote"),ee.eatSpace(),Jt(Kt);if(!cn&&!Kt.setext&&Oe&&Kt.indentation<=ln&&(le=ee.match(Vt))){var bn=le[1]?"ol":"ul";return Kt.indentation=Vn+ee.current().length,Kt.list=!0,Kt.quote=0,Kt.listStack.push(Kt.indentation),Kt.em=!1,Kt.strong=!1,Kt.code=!1,Kt.strikethrough=!1,we.taskLists&&ee.match(qe,!1)&&(Kt.taskList=!0),Kt.f=Kt.inline,we.highlightFormatting&&(Kt.formatting=["list","list-"+bn]),Jt(Kt)}else{if(Oe&&Kt.indentation<=ln&&(le=ee.match(nt,!0)))return Kt.quote=0,Kt.fencedEndRE=new RegExp(le[1]+"+ *$"),Kt.localMode=we.fencedCodeBlockHighlighting&&zt(le[2]||we.fencedCodeBlockDefaultMode),Kt.localMode&&(Kt.localState=Ft.startState(Kt.localMode)),Kt.f=Kt.block=_t,we.highlightFormatting&&(Kt.formatting="code-block"),Kt.code=-1,Jt(Kt);if(Kt.setext||(!Le||!Qe)&&!Kt.quote&&Kt.list===!1&&!Kt.code&&!cn&&!et.test(ee.string)&&(le=ee.lookAhead(1))&&(le=le.match(He)))return Kt.setext?(Kt.header=Kt.setext,Kt.setext=0,ee.skipToEnd(),we.highlightFormatting&&(Kt.formatting="header")):(Kt.header=le[0].charAt(0)=="="?1:2,Kt.setext=Kt.header),Kt.thisLine.header=!0,Kt.f=Kt.inline,Jt(Kt);if(cn)return ee.skipToEnd(),Kt.hr=!0,Kt.thisLine.hr=!0,ie.hr;if(ee.peek()==="[")return pt(ee,Kt,Ln)}return pt(ee,Kt,Kt.inline)}function jt(ee,Kt){var Oe=Ie.token(ee,Kt.htmlState);if(!ge){var pn=Ft.innerMode(Ie,Kt.htmlState);(pn.mode.name=="xml"&&pn.state.tagStart===null&&!pn.state.context&&pn.state.tokenize.isInText||Kt.md_inside&&ee.current().indexOf(">")>-1)&&(Kt.f=fe,Kt.block=Tt,Kt.htmlState=null)}return Oe}function _t(ee,Kt){var Oe=Kt.listStack[Kt.listStack.length-1]||0,pn=Kt.indentation<Oe,mn=Oe+3;if(Kt.fencedEndRE&&Kt.indentation<=mn&&(pn||ee.match(Kt.fencedEndRE))){we.highlightFormatting&&(Kt.formatting="code-block");var Ae;return pn||(Ae=Jt(Kt)),Kt.localMode=Kt.localState=null,Kt.block=Tt,Kt.f=fe,Kt.fencedEndRE=null,Kt.code=0,Kt.thisLine.fencedCodeEnd=!0,pn?vt(ee,Kt,Kt.block):Ae}else return Kt.localMode?Kt.localMode.token(ee,Kt.localState):(ee.skipToEnd(),ie.code)}function Jt(ee){var Kt=[];if(ee.formatting){Kt.push(ie.formatting),typeof ee.formatting=="string"&&(ee.formatting=[ee.formatting]);for(var Oe=0;Oe<ee.formatting.length;Oe++)Kt.push(ie.formatting+"-"+ee.formatting[Oe]),ee.formatting[Oe]==="header"&&Kt.push(ie.formatting+"-"+ee.formatting[Oe]+"-"+ee.header),ee.formatting[Oe]==="quote"&&(!we.maxBlockquoteDepth||we.maxBlockquoteDepth>=ee.quote?Kt.push(ie.formatting+"-"+ee.formatting[Oe]+"-"+ee.quote):Kt.push("error"))}if(ee.taskOpen)return Kt.push("meta"),Kt.length?Kt.join(" "):null;if(ee.taskClosed)return Kt.push("property"),Kt.length?Kt.join(" "):null;if(ee.linkHref?Kt.push(ie.linkHref,"url"):(ee.strong&&Kt.push(ie.strong),ee.em&&Kt.push(ie.em),ee.strikethrough&&Kt.push(ie.strikethrough),ee.emoji&&Kt.push(ie.emoji),ee.linkText&&Kt.push(ie.linkText),ee.code&&Kt.push(ie.code),ee.image&&Kt.push(ie.image),ee.imageAltText&&Kt.push(ie.imageAltText,"link"),ee.imageMarker&&Kt.push(ie.imageMarker)),ee.header&&Kt.push(ie.header,ie.header+"-"+ee.header),ee.quote&&(Kt.push(ie.quote),!we.maxBlockquoteDepth||we.maxBlockquoteDepth>=ee.quote?Kt.push(ie.quote+"-"+ee.quote):Kt.push(ie.quote+"-"+we.maxBlockquoteDepth)),ee.list!==!1){var pn=(ee.listStack.length-1)%3;pn?pn===1?Kt.push(ie.list2):Kt.push(ie.list3):Kt.push(ie.list1)}return ee.trailingSpaceNewLine?Kt.push("trailing-space-new-line"):ee.trailingSpace&&Kt.push("trailing-space-"+(ee.trailingSpace%2?"a":"b")),Kt.length?Kt.join(" "):null}function Ut(ee,Kt){if(ee.match(Bt,!0))return Jt(Kt)}function fe(ee,Kt){var Oe=Kt.text(ee,Kt);if(typeof Oe!="undefined")return Oe;if(Kt.list)return Kt.list=null,Jt(Kt);if(Kt.taskList){var pn=ee.match(qe,!0)[1]===" ";return pn?Kt.taskOpen=!0:Kt.taskClosed=!0,we.highlightFormatting&&(Kt.formatting="task"),Kt.taskList=!1,Jt(Kt)}if(Kt.taskOpen=!1,Kt.taskClosed=!1,Kt.header&&ee.match(/^#+$/,!0))return we.highlightFormatting&&(Kt.formatting="header"),Jt(Kt);var mn=ee.next();if(Kt.linkTitle){Kt.linkTitle=!1;var Ae=mn;mn==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Qe="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(ee.match(new RegExp(Qe),!0))return ie.linkHref}if(mn==="`"){var ln=Kt.formatting;we.highlightFormatting&&(Kt.formatting="code"),ee.eatWhile("`");var Vn=ee.current().length;if(Kt.code==0&&(!Kt.quote||Vn==1))return Kt.code=Vn,Jt(Kt);if(Vn==Kt.code){var Le=Jt(Kt);return Kt.code=0,Le}else return Kt.formatting=ln,Jt(Kt)}else if(Kt.code)return Jt(Kt);if(mn==="\\"&&(ee.next(),we.highlightFormatting)){var cn=Jt(Kt),le=ie.formatting+"-escape";return cn?cn+" "+le:le}if(mn==="!"&&ee.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Kt.imageMarker=!0,Kt.image=!0,we.highlightFormatting&&(Kt.formatting="image"),Jt(Kt);if(mn==="["&&Kt.imageMarker&&ee.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Kt.imageMarker=!1,Kt.imageAltText=!0,we.highlightFormatting&&(Kt.formatting="image"),Jt(Kt);if(mn==="]"&&Kt.imageAltText){we.highlightFormatting&&(Kt.formatting="image");var cn=Jt(Kt);return Kt.imageAltText=!1,Kt.image=!1,Kt.inline=Kt.f=Ne,cn}if(mn==="["&&!Kt.image)return Kt.linkText&&ee.match(/^.*?\]/)||(Kt.linkText=!0,we.highlightFormatting&&(Kt.formatting="link")),Jt(Kt);if(mn==="]"&&Kt.linkText){we.highlightFormatting&&(Kt.formatting="link");var cn=Jt(Kt);return Kt.linkText=!1,Kt.inline=Kt.f=ee.match(/\(.*?\)| ?\[.*?\]/,!1)?Ne:fe,cn}if(mn==="<"&&ee.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Kt.f=Kt.inline=ne,we.highlightFormatting&&(Kt.formatting="link");var cn=Jt(Kt);return cn?cn+=" ":cn="",cn+ie.linkInline}if(mn==="<"&&ee.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Kt.f=Kt.inline=ne,we.highlightFormatting&&(Kt.formatting="link");var cn=Jt(Kt);return cn?cn+=" ":cn="",cn+ie.linkEmail}if(we.xml&&mn==="<"&&ee.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bn=ee.string.indexOf(">",ee.pos);if(bn!=-1){var hi=ee.string.substring(ee.start,bn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(hi)&&(Kt.md_inside=!0)}return ee.backUp(1),Kt.htmlState=Ft.startState(Ie),vt(ee,Kt,jt)}if(we.xml&&mn==="<"&&ee.match(/^\/\w*?>/))return Kt.md_inside=!1,"tag";if(mn==="*"||mn==="_"){for(var Ot=1,Pt=ee.pos==1?" ":ee.string.charAt(ee.pos-2);Ot<3&&ee.eat(mn);)Ot++;var St=ee.peek()||" ",kt=!/\s/.test(St)&&(!ct.test(St)||/\s/.test(Pt)||ct.test(Pt)),Rt=!/\s/.test(Pt)&&(!ct.test(Pt)||/\s/.test(St)||ct.test(St)),At=null,Yt=null;if(Ot%2&&(!Kt.em&&kt&&(mn==="*"||!Rt||ct.test(Pt))?At=!0:Kt.em==mn&&Rt&&(mn==="*"||!kt||ct.test(St))&&(At=!1)),Ot>1&&(!Kt.strong&&kt&&(mn==="*"||!Rt||ct.test(Pt))?Yt=!0:Kt.strong==mn&&Rt&&(mn==="*"||!kt||ct.test(St))&&(Yt=!1)),Yt!=null||At!=null){we.highlightFormatting&&(Kt.formatting=At==null?"strong":Yt==null?"em":"strong em"),At===!0&&(Kt.em=mn),Yt===!0&&(Kt.strong=mn);var Le=Jt(Kt);return At===!1&&(Kt.em=!1),Yt===!1&&(Kt.strong=!1),Le}}else if(mn===" "&&(ee.eat("*")||ee.eat("_"))){if(ee.peek()===" ")return Jt(Kt);ee.backUp(1)}if(we.strikethrough){if(mn==="~"&&ee.eatWhile(mn)){if(Kt.strikethrough){we.highlightFormatting&&(Kt.formatting="strikethrough");var Le=Jt(Kt);return Kt.strikethrough=!1,Le}else if(ee.match(/^[^\s]/,!1))return Kt.strikethrough=!0,we.highlightFormatting&&(Kt.formatting="strikethrough"),Jt(Kt)}else if(mn===" "&&ee.match(/^~~/,!0)){if(ee.peek()===" ")return Jt(Kt);ee.backUp(2)}}if(we.emoji&&mn===":"&&ee.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Kt.emoji=!0,we.highlightFormatting&&(Kt.formatting="emoji");var Me=Jt(Kt);return Kt.emoji=!1,Me}return mn===" "&&(ee.match(/^ +$/,!1)?Kt.trailingSpace++:Kt.trailingSpace&&(Kt.trailingSpaceNewLine=!0)),Jt(Kt)}function ne(ee,Kt){var Oe=ee.next();if(Oe===">"){Kt.f=Kt.inline=fe,we.highlightFormatting&&(Kt.formatting="link");var pn=Jt(Kt);return pn?pn+=" ":pn="",pn+ie.linkInline}return ee.match(/^[^>]+/,!0),ie.linkInline}function Ne(ee,Kt){if(ee.eatSpace())return null;var Oe=ee.next();return Oe==="("||Oe==="["?(Kt.f=Kt.inline=Ye(Oe==="("?")":"]"),we.highlightFormatting&&(Kt.formatting="link-string"),Kt.linkHref=!0,Jt(Kt)):"error"}var Ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ye(ee){return function(Kt,Oe){var pn=Kt.next();if(pn===ee){Oe.f=Oe.inline=fe,we.highlightFormatting&&(Oe.formatting="link-string");var mn=Jt(Oe);return Oe.linkHref=!1,mn}return Kt.match(Ge[ee]),Oe.linkHref=!0,Jt(Oe)}}function Ln(ee,Kt){return ee.match(/^([^\]\\]|\\.)*\]:/,!1)?(Kt.f=hn,ee.next(),we.highlightFormatting&&(Kt.formatting="link"),Kt.linkText=!0,Jt(Kt)):pt(ee,Kt,fe)}function hn(ee,Kt){if(ee.match(/^\]:/,!0)){Kt.f=Kt.inline=Be,we.highlightFormatting&&(Kt.formatting="link");var Oe=Jt(Kt);return Kt.linkText=!1,Oe}return ee.match(/^([^\]\\]|\\.)+/,!0),ie.linkText}function Be(ee,Kt){return ee.eatSpace()?null:(ee.match(/^[^\s]+/,!0),ee.peek()===void 0?Kt.linkTitle=!0:ee.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Kt.f=Kt.inline=fe,ie.linkHref+" url")}var sn={startState:function(){return{f:Tt,prevLine:{stream:null},thisLine:{stream:null},block:Tt,htmlState:null,indentation:0,inline:fe,text:Ut,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(ee){return{f:ee.f,prevLine:ee.prevLine,thisLine:ee.thisLine,block:ee.block,htmlState:ee.htmlState&&Ft.copyState(Ie,ee.htmlState),indentation:ee.indentation,localMode:ee.localMode,localState:ee.localMode?Ft.copyState(ee.localMode,ee.localState):null,inline:ee.inline,text:ee.text,formatting:!1,linkText:ee.linkText,linkTitle:ee.linkTitle,linkHref:ee.linkHref,code:ee.code,em:ee.em,strong:ee.strong,strikethrough:ee.strikethrough,emoji:ee.emoji,header:ee.header,setext:ee.setext,hr:ee.hr,taskList:ee.taskList,list:ee.list,listStack:ee.listStack.slice(0),quote:ee.quote,indentedCode:ee.indentedCode,trailingSpace:ee.trailingSpace,trailingSpaceNewLine:ee.trailingSpaceNewLine,md_inside:ee.md_inside,fencedEndRE:ee.fencedEndRE}},token:function(ee,Kt){if(Kt.formatting=!1,ee!=Kt.thisLine.stream){if(Kt.header=0,Kt.hr=!1,ee.match(/^\s*$/,!0))return Et(Kt),null;if(Kt.prevLine=Kt.thisLine,Kt.thisLine={stream:ee},Kt.taskList=!1,Kt.trailingSpace=0,Kt.trailingSpaceNewLine=!1,!Kt.localState&&(Kt.f=Kt.block,Kt.f!=jt)){var Oe=ee.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Kt.indentation=Oe,Kt.indentationDiff=null,Oe>0)return null}}return Kt.f(ee,Kt)},innerMode:function(ee){return ee.block==jt?{state:ee.htmlState,mode:Ie}:ee.localState?{state:ee.localState,mode:ee.localMode}:{state:ee,mode:sn}},indent:function(ee,Kt,Oe){return ee.block==jt&&Ie.indent?Ie.indent(ee.htmlState,Kt,Oe):ee.localState&&ee.localMode.indent?ee.localMode.indent(ee.localState,Kt,Oe):Ft.Pass},blankLine:Et,getType:Jt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return sn},"xml"),Ft.defineMIME("text/markdown","markdown"),Ft.defineMIME("text/x-markdown","markdown")})},98101:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){"use strict";Ft.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 se=0;se<Ft.modeInfo.length;se++){var we=Ft.modeInfo[se];we.mimes&&(we.mime=we.mimes[0])}Ft.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var ge=0;ge<Ft.modeInfo.length;ge++){var zt=Ft.modeInfo[ge];if(zt.mime==Ie)return zt;if(zt.mimes){for(var ie=0;ie<zt.mimes.length;ie++)if(zt.mimes[ie]==Ie)return zt}}if(/\+xml$/.test(Ie))return Ft.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return Ft.findModeByMIME("application/json")},Ft.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var ge=0;ge<Ft.modeInfo.length;ge++){var zt=Ft.modeInfo[ge];if(zt.ext){for(var ie=0;ie<zt.ext.length;ie++)if(zt.ext[ie]==Ie)return zt}}},Ft.findModeByFileName=function(Ie){for(var ge=0;ge<Ft.modeInfo.length;ge++){var zt=Ft.modeInfo[ge];if(zt.file&&zt.file.test(Ie))return zt}var ie=Ie.lastIndexOf("."),Re=ie>-1&&Ie.substring(ie+1,Ie.length);if(Re)return Ft.findModeByExtension(Re)},Ft.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var ge=0;ge<Ft.modeInfo.length;ge++){var zt=Ft.modeInfo[ge];if(zt.name.toLowerCase()==Ie)return zt;if(zt.alias){for(var ie=0;ie<zt.alias.length;ie++)if(zt.alias[ie].toLowerCase()==Ie)return zt}}}})},67549:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){"use strict";Ft.defineMode("stex",function(se,we){"use strict";function Ie(Bt,nt){Bt.cmdState.push(nt)}function ge(Bt){return Bt.cmdState.length>0?Bt.cmdState[Bt.cmdState.length-1]:null}function zt(Bt){var nt=Bt.cmdState.pop();nt&&nt.closeBracket()}function ie(Bt){for(var nt=Bt.cmdState,et=nt.length-1;et>=0;et--){var ct=nt[et];if(ct.name!="DEFAULT")return ct}return{styleIdentifier:function(){return null}}}function Re(Bt,nt,et){return function(){this.name=Bt,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 he={};he.importmodule=Re("importmodule","tag",["string","builtin"]),he.documentclass=Re("documentclass","tag",["","atom"]),he.usepackage=Re("usepackage","tag",["atom"]),he.begin=Re("begin","tag",["atom"]),he.end=Re("end","tag",["atom"]),he.label=Re("label","tag",["atom"]),he.ref=Re("ref","tag",["atom"]),he.eqref=Re("eqref","tag",["atom"]),he.cite=Re("cite","tag",["atom"]),he.bibitem=Re("bibitem","tag",["atom"]),he.Bibitem=Re("Bibitem","tag",["atom"]),he.RBibitem=Re("RBibitem","tag",["atom"]),he.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Vt(Bt,nt){Bt.f=nt}function qe(Bt,nt){var et;if(Bt.match(/^\\[a-zA-Z@]+/)){var ct=Bt.current().slice(1);return et=he.hasOwnProperty(ct)?he[ct]:he.DEFAULT,et=new et,Ie(nt,et),Vt(nt,He),et.style}if(Bt.match(/^\\[$&%#{}_]/)||Bt.match(/^\\[,;!\/\\]/))return"tag";if(Bt.match("\\["))return Vt(nt,function(pt,vt){return te(pt,vt,"\\]")}),"keyword";if(Bt.match("\\("))return Vt(nt,function(pt,vt){return te(pt,vt,"\\)")}),"keyword";if(Bt.match("$$"))return Vt(nt,function(pt,vt){return te(pt,vt,"$$")}),"keyword";if(Bt.match("$"))return Vt(nt,function(pt,vt){return te(pt,vt,"$")}),"keyword";var lt=Bt.next();if(lt=="%")return Bt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=ge(nt),et)et.closeBracket(lt),Vt(nt,He);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=he.DEFAULT,et=new et,Ie(nt,et),"bracket"):/\d/.test(lt)?(Bt.eatWhile(/[\w.%]/),"atom"):(Bt.eatWhile(/[\w\-_]/),et=ie(nt),et.name=="begin"&&(et.argument=Bt.current()),et.styleIdentifier())}function te(Bt,nt,et){if(Bt.eatSpace())return null;if(et&&Bt.match(et))return Vt(nt,qe),"keyword";if(Bt.match(/^\\[a-zA-Z@]+/))return"tag";if(Bt.match(/^[a-zA-Z]+/))return"variable-2";if(Bt.match(/^\\[$&%#{}_]/)||Bt.match(/^\\[,;!\/]/)||Bt.match(/^[\^_&]/))return"tag";if(Bt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Bt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ct=Bt.next();return ct=="{"||ct=="}"||ct=="["||ct=="]"||ct=="("||ct==")"?"bracket":ct=="%"?(Bt.skipToEnd(),"comment"):"error"}function He(Bt,nt){var et=Bt.peek(),ct;return et=="{"||et=="["?(ct=ge(nt),ct.openBracket(et),Bt.eat(et),Vt(nt,qe),"bracket"):/[ \t\r]/.test(et)?(Bt.eat(et),null):(Vt(nt,qe),zt(nt),qe(Bt,nt))}return{startState:function(){var Bt=we.inMathMode?function(nt,et){return te(nt,et)}:qe;return{cmdState:[],f:Bt}},copyState:function(Bt){return{cmdState:Bt.cmdState.slice(),f:Bt.f}},token:function(Bt,nt){return nt.f(Bt,nt)},blankLine:function(Bt){Bt.f=qe,Bt.cmdState.length=0},lineComment:"%"}}),Ft.defineMIME("text/x-stex","stex"),Ft.defineMIME("text/x-latex","stex")})},15525:function(Cn,_n,Nt){(function(Ft){Ft(Nt(89780))})(function(Ft){"use strict";var se={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},we={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ft.defineMode("xml",function(Ie,ge){var zt=Ie.indentUnit,ie={},Re=ge.htmlMode?se:we;for(var he in Re)ie[he]=Re[he];for(var he in ge)ie[he]=ge[he];var Vt,qe;function te(ne,Ne){function Ge(hn){return Ne.tokenize=hn,hn(ne,Ne)}var Ye=ne.next();if(Ye=="<")return ne.eat("!")?ne.eat("[")?ne.match("CDATA[")?Ge(nt("atom","]]>")):null:ne.match("--")?Ge(nt("comment","-->")):ne.match("DOCTYPE",!0,!0)?(ne.eatWhile(/[\w\._\-]/),Ge(et(1))):null:ne.eat("?")?(ne.eatWhile(/[\w\._\-]/),Ne.tokenize=nt("meta","?>"),"meta"):(Vt=ne.eat("/")?"closeTag":"openTag",Ne.tokenize=He,"tag bracket");if(Ye=="&"){var Ln;return ne.eat("#")?ne.eat("x")?Ln=ne.eatWhile(/[a-fA-F\d]/)&&ne.eat(";"):Ln=ne.eatWhile(/[\d]/)&&ne.eat(";"):Ln=ne.eatWhile(/[\w\.\-:]/)&&ne.eat(";"),Ln?"atom":"error"}else return ne.eatWhile(/[^&<]/),null}te.isInText=!0;function He(ne,Ne){var Ge=ne.next();if(Ge==">"||Ge=="/"&&ne.eat(">"))return Ne.tokenize=te,Vt=Ge==">"?"endTag":"selfcloseTag","tag bracket";if(Ge=="=")return Vt="equals",null;if(Ge=="<"){Ne.tokenize=te,Ne.state=vt,Ne.tagName=Ne.tagStart=null;var Ye=Ne.tokenize(ne,Ne);return Ye?Ye+" tag error":"tag error"}else return/[\'\"]/.test(Ge)?(Ne.tokenize=Bt(Ge),Ne.stringStartCol=ne.column(),Ne.tokenize(ne,Ne)):(ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Bt(ne){var Ne=function(Ge,Ye){for(;!Ge.eol();)if(Ge.next()==ne){Ye.tokenize=He;break}return"string"};return Ne.isInAttribute=!0,Ne}function nt(ne,Ne){return function(Ge,Ye){for(;!Ge.eol();){if(Ge.match(Ne)){Ye.tokenize=te;break}Ge.next()}return ne}}function et(ne){return function(Ne,Ge){for(var Ye;(Ye=Ne.next())!=null;){if(Ye=="<")return Ge.tokenize=et(ne+1),Ge.tokenize(Ne,Ge);if(Ye==">")if(ne==1){Ge.tokenize=te;break}else return Ge.tokenize=et(ne-1),Ge.tokenize(Ne,Ge)}return"meta"}}function ct(ne,Ne,Ge){this.prev=ne.context,this.tagName=Ne,this.indent=ne.indented,this.startOfLine=Ge,(ie.doNotIndent.hasOwnProperty(Ne)||ne.context&&ne.context.noIndent)&&(this.noIndent=!0)}function lt(ne){ne.context&&(ne.context=ne.context.prev)}function pt(ne,Ne){for(var Ge;;){if(!ne.context||(Ge=ne.context.tagName,!ie.contextGrabbers.hasOwnProperty(Ge)||!ie.contextGrabbers[Ge].hasOwnProperty(Ne)))return;lt(ne)}}function vt(ne,Ne,Ge){return ne=="openTag"?(Ge.tagStart=Ne.column(),xt):ne=="closeTag"?Et:vt}function xt(ne,Ne,Ge){return ne=="word"?(Ge.tagName=Ne.current(),qe="tag",_t):ie.allowMissingTagName&&ne=="endTag"?(qe="tag bracket",_t(ne,Ne,Ge)):(qe="error",xt)}function Et(ne,Ne,Ge){if(ne=="word"){var Ye=Ne.current();return Ge.context&&Ge.context.tagName!=Ye&&ie.implicitlyClosed.hasOwnProperty(Ge.context.tagName)&<(Ge),Ge.context&&Ge.context.tagName==Ye||ie.matchClosing===!1?(qe="tag",Tt):(qe="tag error",jt)}else return ie.allowMissingTagName&&ne=="endTag"?(qe="tag bracket",Tt(ne,Ne,Ge)):(qe="error",jt)}function Tt(ne,Ne,Ge){return ne!="endTag"?(qe="error",Tt):(lt(Ge),vt)}function jt(ne,Ne,Ge){return qe="error",Tt(ne,Ne,Ge)}function _t(ne,Ne,Ge){if(ne=="word")return qe="attribute",Jt;if(ne=="endTag"||ne=="selfcloseTag"){var Ye=Ge.tagName,Ln=Ge.tagStart;return Ge.tagName=Ge.tagStart=null,ne=="selfcloseTag"||ie.autoSelfClosers.hasOwnProperty(Ye)?pt(Ge,Ye):(pt(Ge,Ye),Ge.context=new ct(Ge,Ye,Ln==Ge.indented)),vt}return qe="error",_t}function Jt(ne,Ne,Ge){return ne=="equals"?Ut:(ie.allowMissing||(qe="error"),_t(ne,Ne,Ge))}function Ut(ne,Ne,Ge){return ne=="string"?fe:ne=="word"&&ie.allowUnquoted?(qe="string",_t):(qe="error",_t(ne,Ne,Ge))}function fe(ne,Ne,Ge){return ne=="string"?fe:_t(ne,Ne,Ge)}return{startState:function(ne){var Ne={tokenize:te,state:vt,indented:ne||0,tagName:null,tagStart:null,context:null};return ne!=null&&(Ne.baseIndent=ne),Ne},token:function(ne,Ne){if(!Ne.tagName&&ne.sol()&&(Ne.indented=ne.indentation()),ne.eatSpace())return null;Vt=null;var Ge=Ne.tokenize(ne,Ne);return(Ge||Vt)&&Ge!="comment"&&(qe=null,Ne.state=Ne.state(Vt||Ge,ne,Ne),qe&&(Ge=qe=="error"?Ge+" error":qe)),Ge},indent:function(ne,Ne,Ge){var Ye=ne.context;if(ne.tokenize.isInAttribute)return ne.tagStart==ne.indented?ne.stringStartCol+1:ne.indented+zt;if(Ye&&Ye.noIndent)return Ft.Pass;if(ne.tokenize!=He&&ne.tokenize!=te)return Ge?Ge.match(/^(\s*)/)[0].length:0;if(ne.tagName)return ie.multilineTagIndentPastTag!==!1?ne.tagStart+ne.tagName.length+2:ne.tagStart+zt*(ie.multilineTagIndentFactor||1);if(ie.alignCDATA&&/<!\[CDATA\[/.test(Ne))return 0;var Ln=Ne&&/^<(\/)?([\w_:\.-]*)/.exec(Ne);if(Ln&&Ln[1])for(;Ye;)if(Ye.tagName==Ln[2]){Ye=Ye.prev;break}else if(ie.implicitlyClosed.hasOwnProperty(Ye.tagName))Ye=Ye.prev;else break;else if(Ln)for(;Ye;){var hn=ie.contextGrabbers[Ye.tagName];if(hn&&hn.hasOwnProperty(Ln[2]))Ye=Ye.prev;else break}for(;Ye&&Ye.prev&&!Ye.startOfLine;)Ye=Ye.prev;return Ye?Ye.indent+zt:ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ie.htmlMode?"html":"xml",helperType:ie.htmlMode?"html":"xml",skipAttribute:function(ne){ne.state==Ut&&(ne.state=_t)},xmlCurrentTag:function(ne){return ne.tagName?{name:ne.tagName,close:ne.type=="closeTag"}:null},xmlCurrentContext:function(ne){for(var Ne=[],Ge=ne.context;Ge;Ge=Ge.prev)Ge.tagName&&Ne.push(Ge.tagName);return Ne.reverse()}}}),Ft.defineMIME("text/xml","xml"),Ft.defineMIME("application/xml","xml"),Ft.mimeModes.hasOwnProperty("text/html")||Ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Cn,_n,Nt){"use strict";Nt.d(_n,{$u:function(){return he},BD:function(){return Ot},E9:function(){return Re},FF:function(){return Ji},FJ:function(){return vt},Hn:function(){return pt},KX:function(){return Et},NB:function(){return pe},S0:function(){return le},UL:function(){return Vt},Vk:function(){return lt},Vm:function(){return xe},YI:function(){return bn},ZA:function(){return we},Zt:function(){return qe},al:function(){return At},bn:function(){return Rt},bx:function(){return Pt},g2:function(){return hi},h1:function(){return Ut},hD:function(){return Mn},l4:function(){return zt},rU:function(){return ve},s_:function(){return St},uz:function(){return We},z6:function(){return te}}),Cn=Nt.hmd(Cn),function(){var Ct;function li(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function pi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:li(a)}}function Yn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var ti=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ri;if(typeof Object.setPrototypeOf=="function")ri=Object.setPrototypeOf;else{var vi;t:{var Ri={a:!0},Ni={};try{Ni.__proto__=Ri,vi=Ni.a;break t}catch(a){}vi=!1}ri=vi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var me=ri;function ue(a,y){if(a.prototype=ti(y.prototype),a.prototype.constructor=a,me)me(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 ce=typeof Nt.g!="undefined"&&Nt.g!=null?Nt.g:self,zn=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},Xn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ni(a,y){if(y){var x=ce;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&&Xn(x,a,{writable:!0,value:y})}}ni("Object.assign",function(a){return a||zn}),ni("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 $e=typeof globalThis=="object"&&globalThis||typeof Nt.g=="object"&&Nt.g.global===Nt.g&&Nt.g||typeof self=="object"&&self.self===self&&self||{};$e.requestAnimationFrame===void 0&&($e.setImmediate===void 0?$e.requestAnimationFrame=function(a){$e.setTimeout(a,0)}:$e.requestAnimationFrame=$e.setImmediate);function In(){}function wi(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&$e.clearTimeout(x),x=Mi(function(){x=-1,a.apply(E,b)},y)}}function Mi(a,y){return $e.setTimeout(a,y)}function Gi(a){return $e.document.createElement(a)}function Ht(a){throw Error(a)}function de(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ht(a)}function wn(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),Ht(x+" is not in the range "+y+": "+a)}function Bn(a){$e.console&&$e.console.log(a)}function ke(a){return typeof a=="object"&&a!==null}function vn(a){return Array.isArray(a)||$e.NodeList&&a instanceof $e.NodeList||$e.HTMLCollection&&a instanceof $e.HTMLCollection}function un(a){return Array.prototype.slice.call(a)}function Pn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ht("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function $n(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ht("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Dn(){var a=Fr.pop();return a===void 0?[]:a}function Un(a){a.length=0,Fr.push(a)}function Wn(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(ke(a)&&a.constructor)return Wn(a.constructor);return typeof a}function bi(a){var y=a;return ke(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 Pi(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 Ci(a,y,x){Object.defineProperty(qr.prototype,a,{get:y,set:x})}function je(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 $i=$e.navigator!==void 0&&0<$e.navigator.userAgent.indexOf("Trident/7"),or=$e.navigator!==void 0&&$e.navigator.platform!==void 0&&$e.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Fr=[];Object.freeze([]),In.className="Util",In.Dx="32ab5ff3b26f42dc0ed90f21472913b5",In.adym="gojs.net",In.vfo="28e645fdb266",In.className="Util";function Ue(a,y,x){ki(this),this.j=a,this.xa=y,this.o=x}Ue.prototype.toString=function(){return"EnumValue."+this.xa};function Rn(a,y){return y==null||y===""?null:a[y]}ce.Object.defineProperties(Ue.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ue.className="EnumValue";function fi(){this.ew=[]}fi.prototype.toString=function(){return this.ew.join("")},fi.prototype.add=function(a){a!==""&&this.ew.push(a)},fi.className="StringBuilder";function ci(){}ci.className="PropertyCollection";var Ei={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){$e.console&&$e.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 Zi(){}Zi.prototype.reset=function(){},Zi.prototype.next=function(){return!1},Zi.prototype.Ad=function(){return!1},Zi.prototype.first=function(){return null},Zi.prototype.any=function(){return!1},Zi.prototype.all=function(){return!0},Zi.prototype.each=function(){return this},Zi.prototype.map=function(){return this},Zi.prototype.filter=function(){return this},Zi.prototype.de=function(){},Zi.prototype.toString=function(){return"EmptyIterator"},ce.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset;var tr=null;Zi.className="EmptyIterator",tr=new Zi;function sr(a){this.key=-1,this.value=a}sr.prototype.reset=function(){this.key=-1},sr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},sr.prototype.Ad=function(){return this.next()},sr.prototype.first=function(){return this.key=0,this.value},sr.prototype.any=function(a){return this.key=-1,a(this.value)},sr.prototype.all=function(a){return this.key=-1,a(this.value)},sr.prototype.each=function(a){return this.key=-1,a(this.value),this},sr.prototype.map=function(a){return new sr(a(this.value))},sr.prototype.filter=function(a){return a(this.value)?new sr(this.value):tr},sr.prototype.de=function(){this.value=null},sr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ce.Object.defineProperties(sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),sr.prototype.first=sr.prototype.first,sr.prototype.hasNext=sr.prototype.Ad,sr.prototype.next=sr.prototype.next,sr.prototype.reset=sr.prototype.reset,sr.className="SingletonIterator";function dr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}dr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},dr.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},dr.prototype.Ad=function(){return this.next()},dr.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},dr.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},dr.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},dr.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},dr.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 tn,a.s=x,a.xb(),a.iterator},dr.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 tn,a.s=x,a.xb(),a.iterator},dr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},dr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ce.Object.defineProperties(dr.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}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset,dr.className="ListIterator";function gr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}gr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},gr.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)},gr.prototype.Ad=function(){return this.next()},gr.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},gr.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},gr.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},gr.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},gr.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 tn,a.s=x,a.xb(),a.iterator},gr.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 tn,a.s=x,a.xb(),a.iterator},gr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},gr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ce.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),gr.prototype.first=gr.prototype.first,gr.prototype.hasNext=gr.prototype.Ad,gr.prototype.next=gr.prototype.next,gr.prototype.reset=gr.prototype.reset,gr.className="ListIteratorBackwards";function tn(a){ki(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=tn.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"List()#"+yr(this)},Ct.add=function(a){return a===null?this:(this._isFrozen&&de(this,a),this.s.push(a),this.xb(),this)},Ct.push=function(a){this.add(a)},Ct.addAll=function(a){if(a===null)return this;this._isFrozen&&de(this);var y=this.s;if(vn(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},Ct.clear=function(){this._isFrozen&&de(this),this.s.length=0,this.xb()},Ct.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ct.has=function(a){return this.contains(a)},Ct.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ct.M=function(a){var y=this.s;return(0>a||a>=y.length)&&wn(a,"0 <= i < length",tn,"elt:i"),y[a]},Ct.get=function(a){return this.M(a)},Ct.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&wn(a,"0 <= i < length",tn,"setElt:i"),this._isFrozen&&de(this,a),x[a]=y},Ct.set=function(a,y){this.cd(a,y)},Ct.first=function(){var a=this.s;return a.length===0?null:a[0]},Ct.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ct.pop=function(){this._isFrozen&&de(this);var a=this.s;return 0<a.length?a.pop():null},tn.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},tn.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},tn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},tn.prototype.map=function(a){for(var y=new tn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},tn.prototype.filter=function(a){for(var y=new tn,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},Ct=tn.prototype,Ct.Gb=function(a,y){0>a&&wn(a,">= 0",tn,"insertAt:i"),this._isFrozen&&de(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&de(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)},Ct.delete=function(a){return this.remove(a)},Ct.mb=function(a){var y=this.s;(0>a||a>=y.length)&&wn(a,"0 <= i < length",tn,"removeAt:i"),this._isFrozen&&de(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ct.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&&de(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},tn.prototype.copy=function(){var a=new tn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ct=tn.prototype,Ct.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Ct.Iv=function(){for(var a=new en,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Ct.sort=function(a){return this._isFrozen&&de(this),this.s.sort(a),this.xb(),this},Ct.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&de(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&wn(y,"0 <= from < length",tn,"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},Ct.reverse=function(){return this._isFrozen&&de(this),this.s.reverse(),this.xb(),this},ce.Object.defineProperties(tn.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 tr;var a=this.Sa;return a!==null?(a.reset(),a):new dr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return tr;var a=this.Hg;return a!==null?(a.reset(),a):new gr(this)}}}),tn.prototype.reverse=tn.prototype.reverse,tn.prototype.sortRange=tn.prototype.zi,tn.prototype.sort=tn.prototype.sort,tn.prototype.toSet=tn.prototype.Iv,tn.prototype.toArray=tn.prototype.Fa,tn.prototype.removeRange=tn.prototype.removeRange,tn.prototype.removeAt=tn.prototype.mb,tn.prototype.delete=tn.prototype.delete,tn.prototype.remove=tn.prototype.remove,tn.prototype.insertAt=tn.prototype.Gb,tn.prototype.pop=tn.prototype.pop,tn.prototype.last=tn.prototype.jc,tn.prototype.first=tn.prototype.first,tn.prototype.set=tn.prototype.set,tn.prototype.setElt=tn.prototype.cd,tn.prototype.get=tn.prototype.get,tn.prototype.elt=tn.prototype.M,tn.prototype.indexOf=tn.prototype.indexOf,tn.prototype.has=tn.prototype.has,tn.prototype.contains=tn.prototype.contains,tn.prototype.clear=tn.prototype.clear,tn.prototype.addAll=tn.prototype.addAll,tn.prototype.push=tn.prototype.push,tn.prototype.add=tn.prototype.add,tn.prototype.thaw=tn.prototype.ka,tn.prototype.freeze=tn.prototype.freeze,tn.className="List";function Br(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Br.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Br.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)},Br.prototype.Ad=function(){return this.next()},Br.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},Br.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},Br.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},Br.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},Br.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Br.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Br.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Br.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ce.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="SetIterator";function en(a){ki(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=en.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"Set()#"+yr(this)},Ct.add=function(a){if(a===null)return this;this._isFrozen&&de(this,a);var y=a;return ke(a)&&(y=vr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ee(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},Ct.addAll=function(a){if(a===null)return this;if(this._isFrozen&&de(this),vn(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},Ct.contains=function(a){if(a===null)return!1;var y=a;return ke(a)&&(y=yr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ct.has=function(a){return this.contains(a)},Ct.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ct.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ct.first=function(){var a=this.ea;return a===null?null:a.value},en.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},en.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},en.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},en.prototype.map=function(a){for(var y=new en,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},en.prototype.filter=function(a){for(var y=new en,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Ct=en.prototype,Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&de(this,a);var y=a;if(ke(a)&&(y=yr(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},Ct.delete=function(a){return this.remove(a)},Ct.hp=function(a){if(a===null)return this;if(this._isFrozen&&de(this),vn(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},Ct.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&de(this);var y=new en;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Ct.clear=function(){this._isFrozen&&de(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},en.prototype.copy=function(){var a=new en,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},en.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},en.prototype.Hv=function(){var a=new tn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ki(a){a.__gohashid=Wr++}function vr(a){var y=a.__gohashid;return y===void 0&&(y=Wr++,a.__gohashid=y),y}function yr(a){return a.__gohashid}ce.Object.defineProperties(en.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return tr;var a=this.Sa;return a!==null?(a.reset(),a):new Br(this)}}}),en.prototype.toList=en.prototype.Hv,en.prototype.toArray=en.prototype.Fa,en.prototype.clear=en.prototype.clear,en.prototype.retainAll=en.prototype.pA,en.prototype.removeAll=en.prototype.hp,en.prototype.delete=en.prototype.delete,en.prototype.remove=en.prototype.remove,en.prototype.first=en.prototype.first,en.prototype.containsAny=en.prototype.Ty,en.prototype.containsAll=en.prototype.Sy,en.prototype.has=en.prototype.has,en.prototype.contains=en.prototype.contains,en.prototype.addAll=en.prototype.addAll,en.prototype.add=en.prototype.add,en.prototype.thaw=en.prototype.ka,en.prototype.freeze=en.prototype.freeze;var Wr=1;en.className="Set",en.uniqueHash=ki,en.hashIdUnique=vr,en.hashId=yr;function Pr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Pr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Pr.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)},Pr.prototype.Ad=function(){return this.next()},Pr.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},Pr.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},Pr.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},Pr.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},Pr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Pr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Pr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Pr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ce.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset,Pr.className="MapKeySetIterator";function ir(a){en.call(this),ki(this),this._isFrozen=!0,this.ma=a}ue(ir,en),Ct=ir.prototype,Ct.freeze=function(){return this},Ct.ka=function(){return this},Ct.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ct.add=function(){Ht("This Set is read-only: "+this.toString())},Ct.contains=function(a){return this.ma.contains(a)},Ct.has=function(a){return this.contains(a)},Ct.remove=function(){Ht("This Set is read-only: "+this.toString())},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){Ht("This Set is read-only: "+this.toString())},Ct.first=function(){var a=this.ma.ea;return a!==null?a.key:null},ir.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},ir.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},ir.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},ir.prototype.map=function(a){for(var y=new en,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},ir.prototype.filter=function(a){for(var y=new en,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},ir.prototype.copy=function(){return new ir(this.ma)},ir.prototype.Iv=function(){var a=new en,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ir.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},ir.prototype.Hv=function(){var a=new tn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},ce.Object.defineProperties(ir.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?tr:new Pr(this.ma)}}}),ir.prototype.toList=ir.prototype.Hv,ir.prototype.toArray=ir.prototype.Fa,ir.prototype.toSet=ir.prototype.Iv,ir.prototype.first=ir.prototype.first,ir.prototype.clear=ir.prototype.clear,ir.prototype.delete=ir.prototype.delete,ir.prototype.remove=ir.prototype.remove,ir.prototype.has=ir.prototype.has,ir.prototype.contains=ir.prototype.contains,ir.prototype.add=ir.prototype.add,ir.prototype.thaw=ir.prototype.ka,ir.prototype.freeze=ir.prototype.freeze,ir.className="MapKeySet";function Kr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Kr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Kr.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)},Kr.prototype.Ad=function(){return this.next()},Kr.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},Kr.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},Kr.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},Kr.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},Kr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Kr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new tn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Kr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Kr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ce.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset,Kr.className="MapValueSetIterator";function Ee(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ee.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ee.className="KeyValuePair";function an(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}an.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},an.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)},an.prototype.Ad=function(){return this.next()},an.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},an.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},an.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},an.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},an.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},an.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new tn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},an.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},an.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ce.Object.defineProperties(an.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),an.prototype.first=an.prototype.first,an.prototype.hasNext=an.prototype.Ad,an.prototype.next=an.prototype.next,an.prototype.reset=an.prototype.reset,an.className="MapIterator";function Pe(a){ki(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"&&Ht("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ct=Pe.prototype,Ct.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.toString=function(){return"Map()#"+yr(this)},Ct.add=function(a,y){this._isFrozen&&de(this,a);var x=a;ke(a)&&(x=vr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Ee(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},Ct.set=function(a,y){return this.add(a,y)},Ct.addAll=function(a){if(a===null)return this;if(vn(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 Pe)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},Ct.first=function(){return this.ea},Pe.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Pe.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Pe.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Pe.prototype.map=function(a){for(var y=new Pe,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Pe.prototype.filter=function(a){for(var y=new Pe,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ct=Pe.prototype,Ct.contains=function(a){var y=a;return ke(a)&&(y=yr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ct.has=function(a){return this.contains(a)},Ct.I=function(a){var y=a;return ke(a)&&(y=yr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ct.get=function(a){return this.I(a)},Ct.remove=function(a){if(a===null)return!1;this._isFrozen&&de(this,a);var y=a;if(ke(a)&&(y=yr(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},Ct.delete=function(a){return this.remove(a)},Ct.clear=function(){this._isFrozen&&de(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()},Pe.prototype.copy=function(){var a=new Pe,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Pe.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 Ee(b.key,b.value),x++}return y},Pe.prototype.Lf=function(){return new ir(this)},ce.Object.defineProperties(Pe.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return tr;var a=this.Sa;return a!==null?(a.reset(),a):new an(this)}},iteratorKeys:{get:function(){return 0>=this.count?tr:new Pr(this)}},iteratorValues:{get:function(){if(0>=this.count)return tr;var a=this.jf;return a!==null?(a.reset(),a):new Kr(this)}}}),Pe.prototype.toKeySet=Pe.prototype.Lf,Pe.prototype.toArray=Pe.prototype.Fa,Pe.prototype.clear=Pe.prototype.clear,Pe.prototype.delete=Pe.prototype.delete,Pe.prototype.remove=Pe.prototype.remove,Pe.prototype.get=Pe.prototype.get,Pe.prototype.getValue=Pe.prototype.I,Pe.prototype.has=Pe.prototype.has,Pe.prototype.contains=Pe.prototype.contains,Pe.prototype.first=Pe.prototype.first,Pe.prototype.addAll=Pe.prototype.addAll,Pe.prototype.set=Pe.prototype.set,Pe.prototype.add=Pe.prototype.add,Pe.prototype.thaw=Pe.prototype.ka,Pe.prototype.freeze=Pe.prototype.freeze,Pe.className="Map";function Mt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ht("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var An,Nn,ui,ai,Qn;Mt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Mt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Mt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Mt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Mt.prototype.copy=function(){var a=new Mt;return a.x=this.x,a.y=this.y,a},Ct=Mt.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function nn(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 Mt(x,b)}return new Mt}function kn(a){return a.x.toString()+" "+a.y.toString()}Ct.toString=function(){return"Point("+this.x+","+this.y+")"},Ct.D=function(a){return a instanceof Mt?this.x===a.x&&this.y===a.y:!1},Ct.hi=function(a,y){return this.x===a&&this.y===y},Ct.Xa=function(a){return ae.B(this.x,a.x)&&ae.B(this.y,a.y)},Ct.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ct.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Mt.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},Ct=Mt.prototype,Ct.scale=function(a,y){return this.x*=a,this.y*=y,this},Ct.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ct.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ct.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},Ct.ab=function(a){return Tn(a.x-this.x,a.y-this.y)},Ct.direction=function(a,y){return Tn(a-this.x,y-this.y)};function Tn(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}Ct.Ry=function(a,y){return ae.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ct.fA=function(a,y,x,E){return ae.qh(a,y,x,E,this.x,this.y,this),this},Ct.gA=function(a,y){return ae.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ct.uA=function(a,y,x,E){return ae.No(this.x,this.y,a,y,x,E,this),this},Ct.vA=function(a,y){return ae.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ct.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},Ct.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},Ct.transform=function(a){return a.Ga(this),this};function yn(a,y){return y.Cd(a),a}function On(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 Si(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function ii(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)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)},Mt.alloc=function(){var a=Gn.pop();return a===void 0?new Mt:a},Mt.allocAt=function(a,y){var x=Gn.pop();return x===void 0?new Mt(a,y):(x.x=a,x.y=y,x)},Mt.free=function(a){Gn.push(a)},Mt.prototype.isReal=Mt.prototype.w,Mt.prototype.setSpot=Mt.prototype.yi,Mt.prototype.setRectSpot=Mt.prototype.xi,Mt.prototype.snapToGridPoint=Mt.prototype.vA,Mt.prototype.snapToGrid=Mt.prototype.uA,Mt.prototype.projectOntoLineSegmentPoint=Mt.prototype.gA,Mt.prototype.projectOntoLineSegment=Mt.prototype.fA,Mt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return ae.Rl(a,y,x,E,b,z,tt,rt)},Mt.prototype.compareWithLineSegmentPoint=Mt.prototype.Ry,Mt.compareWithLineSegment=function(a,y,x,E,b,z){return ae.Fl(a,y,x,E,b,z)},Mt.prototype.direction=Mt.prototype.direction,Mt.prototype.directionPoint=Mt.prototype.ab,Mt.prototype.normalize=Mt.prototype.normalize,Mt.prototype.distanceSquared=Mt.prototype.zd,Mt.prototype.distanceSquaredPoint=Mt.prototype.Bf,Mt.prototype.scale=Mt.prototype.scale,Mt.prototype.rotate=Mt.prototype.rotate,Mt.prototype.offset=Mt.prototype.offset,Mt.prototype.subtract=Mt.prototype.re,Mt.prototype.add=Mt.prototype.add,Mt.prototype.equalsApprox=Mt.prototype.Xa,Mt.prototype.equalTo=Mt.prototype.hi,Mt.prototype.equals=Mt.prototype.D,Mt.prototype.set=Mt.prototype.set,Mt.prototype.setTo=Mt.prototype.sg;var Gn=[];Mt.className="Point",Mt.parse=nn,Mt.stringify=kn,Mt.distanceLineSegmentSquared=On,Mt.distanceSquared=Si,Mt.direction=ii,Mt.Origin=An=new Mt(0,0).ja(),Mt.InfiniteTopLeft=Nn=new Mt(-1/0,-1/0).ja(),Mt.InfiniteBottomRight=ui=new Mt(1/0,1/0).ja(),Mt.SixPoint=ai=new Mt(6,6).ja(),Mt.NoPoint=Qn=new Mt(NaN,NaN).ja(),Mt.parse=nn,Mt.stringify=kn,Mt.distanceLineSegmentSquared=On,Mt.distanceSquared=Si,Mt.direction=ii;function Ve(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):Ht("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var gi,Di,lr,Xi,kr,br,Lr;Ve.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ve.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ve.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ve.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ve.prototype.copy=function(){var a=new Ve;return a.width=this.width,a.height=this.height,a},Ct=Ve.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Dr(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 Ve(x,b)}return new Ve}function Nr(a){return a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Size("+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Ve?this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y){return this.width===a&&this.height===y},Ct.Xa=function(a){return ae.B(this.width,a.width)&&ae.B(this.height,a.height)},Ct.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},Ct.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ve.alloc=function(){var a=_r.pop();return a===void 0?new Ve:a},Ve.free=function(a){_r.push(a)},Ve.prototype.isReal=Ve.prototype.w,Ve.prototype.inflate=Ve.prototype.Bc,Ve.prototype.equalsApprox=Ve.prototype.Xa,Ve.prototype.equalTo=Ve.prototype.hi,Ve.prototype.equals=Ve.prototype.D,Ve.prototype.set=Ve.prototype.set,Ve.prototype.setTo=Ve.prototype.sg;var _r=[];Ve.className="Size",Ve.parse=Dr,Ve.stringify=Nr,Ve.ZeroSize=gi=new Ve(0,0).ja(),Ve.OneSize=Di=new Ve(1,1).ja(),Ve.SixSize=lr=new Ve(6,6).ja(),Ve.EightSize=Xi=new Ve(8,8).ja(),Ve.TenSize=kr=new Ve(10,10).ja(),Ve.InfiniteSize=br=new Ve(1/0,1/0).ja(),Ve.NoSize=Lr=new Ve(NaN,NaN).ja(),Ve.parse=Dr,Ve.stringify=Nr;function Ce(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 Mt?(x=a.x,a=a.y,y instanceof Mt?(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 Ve?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ht("Incorrect second argument supplied to Rect constructor "+y)):Ht("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ct=Ce.prototype,Ct.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Mr(a,y,x){a.width=y,a.height=x}Ct.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ct.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ct.dd=function(a){return this.x=a.x,this.y=a.y,this},Ct.tA=function(a){return this.width=a.width,this.height=a.height,this},Ce.prototype.copy=function(){var a=new Ce;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ct=Ce.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ar(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 Ce(x,b,z,tt)}return new Ce}function qi(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ct.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ct.D=function(a){return a instanceof Ce?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ct.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ct.Xa=function(a){return ae.B(this.x,a.x)&&ae.B(this.y,a.y)&&ae.B(this.width,a.width)&&ae.B(this.height,a.height)};function pr(a,y){return ae.$(a.x,y.x)&&ae.$(a.y,y.y)&&ae.$(a.width,y.width)&&ae.$(a.height,y.height)}Ct.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ct.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},Ct.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},Ct.offset=function(a,y){return this.x+=a,this.y+=y,this},Ct.Bc=function(a,y){return rr(this,y,a,y,a)},Ct.Co=function(a){return rr(this,a.top,a.right,a.bottom,a.left)},Ct.Fv=function(a){return rr(this,-a.top,-a.right,-a.bottom,-a.left)},Ct.Hz=function(a,y,x,E){return rr(this,a,y,x,E)};function rr(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}Ct.Ex=function(a){return Hr(this,a.x,a.y,a.width,a.height)},Ct.Uu=function(a,y,x,E){return Hr(this,a,y,x,E)};function Hr(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}Ct.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ct.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 Gr(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))}Ct.Ye=function(a){return cr(this,a.x,a.y,0,0)},Ct.ed=function(a){return cr(this,a.x,a.y,a.width,a.height)},Ct.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),cr(this,a,y,x,E)};function cr(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}Ct.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 eo(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 ga(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}Ct.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ct.Mz=function(){return this.width===0&&this.height===0},Ce.alloc=function(){var a=wa.pop();return a===void 0?new Ce:a},Ce.allocAt=function(a,y,x,E){var b=wa.pop();return b===void 0?new Ce(a,y,x,E):b.h(a,y,x,E)},Ce.free=function(a){wa.push(a)},ce.Object.defineProperties(Ce.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 Mt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ve(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Mt(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}}}),Ce.prototype.isEmpty=Ce.prototype.Mz,Ce.prototype.isReal=Ce.prototype.w,Ce.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return ae.Fx(a,y,x,E,b,z,tt,rt)},Ce.prototype.setSpot=Ce.prototype.yi,Ce.prototype.union=Ce.prototype.Kv,Ce.prototype.unionRect=Ce.prototype.ed,Ce.prototype.unionPoint=Ce.prototype.Ye,Ce.prototype.intersects=Ce.prototype.Vu,Ce.prototype.intersectsRect=Ce.prototype.Yc,Ce.prototype.intersect=Ce.prototype.Uu,Ce.prototype.intersectRect=Ce.prototype.Ex,Ce.prototype.grow=Ce.prototype.Hz,Ce.prototype.subtractMargin=Ce.prototype.Fv,Ce.prototype.addMargin=Ce.prototype.Co,Ce.prototype.inflate=Ce.prototype.Bc,Ce.prototype.offset=Ce.prototype.offset,Ce.prototype.contains=Ce.prototype.contains,Ce.prototype.containsRect=Ce.prototype.Re,Ce.prototype.containsPoint=Ce.prototype.ca,Ce.prototype.equalsApprox=Ce.prototype.Xa,Ce.prototype.equalTo=Ce.prototype.hi,Ce.prototype.equals=Ce.prototype.D,Ce.prototype.setSize=Ce.prototype.tA,Ce.prototype.setPoint=Ce.prototype.dd,Ce.prototype.set=Ce.prototype.set,Ce.prototype.setTo=Ce.prototype.sg;var Bo=null,Ps=null,wa=[];Ce.className="Rect",Ce.parse=Ar,Ce.stringify=qi,Ce.contains=eo,Ce.intersects=ga,Ce.ZeroRect=Bo=new Ce(0,0,0,0).ja(),Ce.NoRect=Ps=new Ce(NaN,NaN,NaN,NaN).ja(),Ce.parse=Ar,Ce.stringify=qi,Ce.contains=eo,Ce.intersects=ga;function Hi(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):Ht("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Hi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Hi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hi.prototype.copy=function(){var a=new Hi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ct=Hi.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function Po(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 Hi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Hi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Hi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new Hi(x,b):new Hi(x,b,z,tt)}return new Hi}function Co(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ct.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ct.D=function(a){return a instanceof Hi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ct.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ct.Xa=function(a){return ae.B(this.top,a.top)&&ae.B(this.right,a.right)&&ae.B(this.bottom,a.bottom)&&ae.B(this.left,a.left)},Ct.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Hi.alloc=function(){var a=Vo.pop();return a===void 0?new Hi:a},Hi.free=function(a){Vo.push(a)},Hi.prototype.isReal=Hi.prototype.w,Hi.prototype.equalsApprox=Hi.prototype.Xa,Hi.prototype.equalTo=Hi.prototype.hi,Hi.prototype.equals=Hi.prototype.D,Hi.prototype.set=Hi.prototype.set,Hi.prototype.setTo=Hi.prototype.sg;var ea=null,Do=null,Vo=[];Hi.className="Margin",Hi.parse=Po,Hi.stringify=Co,Hi.ZeroMargin=ea=new Hi(0,0,0,0).ja(),Hi.TwoMargin=Do=new Hi(2,2,2,2).ja(),Hi.parse=Po,Hi.stringify=Co;function ei(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 Ki,ur,Er,Tr,no,Ui,Ba,Wo,No,zr,Uo,Da,vo,cs,fs,Cs,na,$u,Bu,il,yl,Ns,Vl,th,eh,Yo,Du,nh,Ul,lu,La,Na,aa,pa,Yl,Ga;ei.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ei.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ei.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ei.prototype.copy=function(){var a=new ei;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ct=ei.prototype,Ct.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ct.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this};function co(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function oo(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ki;if(a==="TopLeft")return ur;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Er;if(a==="TopRight")return Tr;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return no;if(a==="Center")return Ui;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ba;if(a==="BottomLeft")return Wo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return No;if(a==="BottomRight")return zr;if(a==="TopSide")return Uo;if(a==="LeftSide")return Da;if(a==="RightSide")return vo;if(a==="BottomSide")return cs;if(a==="TopBottomSides")return fs;if(a==="LeftRightSides")return Cs;if(a==="TopLeftSides")return na;if(a==="TopRightSides")return $u;if(a==="BottomLeftSides")return Bu;if(a==="BottomRightSides")return il;if(a==="NotTopSide")return yl;if(a==="NotLeftSide")return Ns;if(a==="NotRightSide")return Vl;if(a==="NotBottomSide")return th;if(a==="AllSides")return eh;if(a==="Default")return Yo;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 ei(x,b,z,tt)}return new ei}function Qr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ct.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(Ki)?"None":this.D(ur)?"TopLeft":this.D(Er)?"Top":this.D(Tr)?"TopRight":this.D(no)?"Left":this.D(Ui)?"Center":this.D(Ba)?"Right":this.D(Wo)?"BottomLeft":this.D(No)?"Bottom":this.D(zr)?"BottomRight":this.D(Uo)?"TopSide":this.D(Da)?"LeftSide":this.D(vo)?"RightSide":this.D(cs)?"BottomSide":this.D(fs)?"TopBottomSides":this.D(Cs)?"LeftRightSides":this.D(na)?"TopLeftSides":this.D($u)?"TopRightSides":this.D(Bu)?"BottomLeftSides":this.D(il)?"BottomRightSides":this.D(yl)?"NotTopSide":this.D(Ns)?"NotLeftSide":this.D(Vl)?"NotRightSide":this.D(th)?"NotBottomSide":this.D(eh)?"AllSides":this.D(Yo)?"Default":"None"},Ct.D=function(a){return a instanceof ei?(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},Ct.gv=function(){return new ei(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ct.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Du))a=Da;else if(a.D(nh))a=vo;else if(a.D(Ul))a=Uo;else if(a.D(lu))a=cs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ct.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ct.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ct.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ct.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ct.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ei.alloc=function(){var a=sa.pop();return a===void 0?new ei:a},ei.free=function(a){sa.push(a)},ei.prototype.isDefault=ei.prototype.Xb,ei.prototype.isNone=ei.prototype.ys,ei.prototype.isSide=ei.prototype.$c,ei.prototype.isNoSpot=ei.prototype.Mc,ei.prototype.isSpot=ei.prototype.sb,ei.prototype.includesSide=ei.prototype.Hf,ei.prototype.opposite=ei.prototype.gv,ei.prototype.equals=ei.prototype.D,ei.prototype.set=ei.prototype.set,ei.prototype.setTo=ei.prototype.sg;var sa=[];ei.className="Spot",ei.parse=oo,ei.stringify=Qr,ei.None=Ki=co(new ei(0,0,0,0),0).ja(),ei.Default=Yo=co(new ei(0,0,-1,0),-1).ja(),ei.TopLeft=ur=new ei(0,0,0,0).ja(),ei.TopCenter=Er=new ei(.5,0,0,0).ja(),ei.TopRight=Tr=new ei(1,0,0,0).ja(),ei.LeftCenter=no=new ei(0,.5,0,0).ja(),ei.Center=Ui=new ei(.5,.5,0,0).ja(),ei.RightCenter=Ba=new ei(1,.5,0,0).ja(),ei.BottomLeft=Wo=new ei(0,1,0,0).ja(),ei.BottomCenter=No=new ei(.5,1,0,0).ja(),ei.BottomRight=zr=new ei(1,1,0,0).ja(),ei.MiddleTop=La=Er,ei.MiddleLeft=Na=no,ei.MiddleRight=aa=Ba,ei.MiddleBottom=pa=No,ei.Top=Ul=Er,ei.Left=Du=no,ei.Right=nh=Ba,ei.Bottom=lu=No,ei.TopSide=Uo=co(new ei(0,0,1,1),1).ja(),ei.LeftSide=Da=co(new ei(0,0,1,2),1).ja(),ei.RightSide=vo=co(new ei(0,0,1,4),1).ja(),ei.BottomSide=cs=co(new ei(0,0,1,8),1).ja(),ei.TopBottomSides=fs=co(new ei(0,0,1,9),1).ja(),ei.LeftRightSides=Cs=co(new ei(0,0,1,6),1).ja(),ei.TopLeftSides=na=co(new ei(0,0,1,3),1).ja(),ei.TopRightSides=$u=co(new ei(0,0,1,5),1).ja(),ei.BottomLeftSides=Bu=co(new ei(0,0,1,10),1).ja(),ei.BottomRightSides=il=co(new ei(0,0,1,12),1).ja(),ei.NotTopSide=yl=co(new ei(0,0,1,14),1).ja(),ei.NotLeftSide=Ns=co(new ei(0,0,1,13),1).ja(),ei.NotRightSide=Vl=co(new ei(0,0,1,11),1).ja(),ei.NotBottomSide=th=co(new ei(0,0,1,7),1).ja(),ei.AllSides=eh=co(new ei(0,0,1,15),1).ja(),Yl=new ei(.156,.156).ja(),Ga=new ei(.844,.844).ja(),ei.parse=oo,ei.stringify=Qr;function Fi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Fi.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},Fi.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},Fi.prototype.copy=function(){var a=new Fi;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},Fi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Fi.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},Fi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Fi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Fi.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},Fi.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},Fi.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},Fi.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},Ct=Fi.prototype,Ct.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ct.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ct.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)},Ct.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))},Ct.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))},Ct.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,wt=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,wt),mt=Math.max(mt,wt),b=Math.min(b,x),ft=Math.max(ft,x),yt=Math.min(yt,y),mt=Math.max(mt,y),b=Math.min(b,z),ft=Math.max(ft,z),yt=Math.min(yt,E),mt=Math.max(mt,E),a.h(b,yt,ft-b,mt-yt),a},Fi.alloc=function(){var a=ca.pop();return a===void 0?new Fi:a},Fi.free=function(a){ca.push(a)},Fi.prototype.transformRect=Fi.prototype.pp,Fi.prototype.transformPoint=Fi.prototype.Ga,Fi.prototype.scale=Fi.prototype.scale,Fi.prototype.translate=Fi.prototype.translate,Fi.prototype.rotate=Fi.prototype.rotate,Fi.prototype.invert=Fi.prototype.Vj,Fi.prototype.multiplyInverted=Fi.prototype.bv,Fi.prototype.multiply=Fi.prototype.multiply,Fi.prototype.reset=Fi.prototype.reset,Fi.prototype.isIdentity=Fi.prototype.ws,Fi.prototype.equals=Fi.prototype.D,Fi.prototype.setTransform=Fi.prototype.setTransform,Fi.prototype.set=Fi.prototype.set;var ca=[];Fi.className="Transform",Fi.xF="54a702f3e53909c447824c6706603faf4c";var ae={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=ae.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);ae.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(ae.Yb(a,y,tt,rt,ft,x,E)&&ae.Yb(a,y,tt,rt,ft,b,z))return ae.Yb(a,y,tt,rt,ft,st,ut);var mt=(a+x)/2,yt=(y+E)/2,wt=(x+b)/2,bt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(mt+wt)/2,x=(yt+bt)/2,wt=(wt+b)/2,bt=(bt+z)/2;var Gt=(E+wt)/2,It=(x+bt)/2;return ae.cs(a,y,mt,yt,E,x,Gt,It,ot,st,ut,ft)||ae.cs(Gt,It,wt,bt,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 ii(((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(ae.Yb(a,y,tt,rt,ot,x,E)&&ae.Yb(a,y,tt,rt,ot,b,z))cr(st,a,y,0,0),cr(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 wt=(E+mt)/2,bt=(x+yt)/2;ae.Dl(a,y,ut,ft,E,x,wt,bt,ot,st),ae.Dl(wt,bt,mt,yt,b,z,tt,rt,ot,st)}return st},Qe:function(a,y,x,E,b,z,tt,rt,ot,st){if(ae.Yb(a,y,tt,rt,ot,x,E)&&ae.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 wt=(E+mt)/2,bt=(x+yt)/2;ae.Qe(a,y,ut,ft,E,x,wt,bt,ot,st),ae.Qe(wt,bt,mt,yt,b,z,tt,rt,ot,st)}return st},jv:function(a,y,x,E,b,z,tt,rt,ot,st){if(ae.Yb(a,y,b,z,st,x,E))return ae.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 ae.jv(a,y,ut,ft,mt,yt,tt,rt,ot,st)||ae.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(ae.Yb(a,y,b,z,tt,x,E))cr(rt,a,y,0,0),cr(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;ae.iv(a,y,ot,st,ut,ft,tt,rt),ae.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(ae.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var ot=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(ot+x)/2,ft=(st+E)/2;ae.ep(a,y,ot,st,ut,ft,tt,rt),ae.ep(ut,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft,mt,yt){if(ae.Yb(a,y,tt,rt,mt,x,E)&&ae.Yb(a,y,tt,rt,mt,b,z))return!ae.Rl(a,y,tt,rt,ot,st,ut,ft)||(mt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),mt===0)?!1:(yt.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/mt,((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/mt),!0);var wt=(a+x)/2,bt=(y+E)/2,Gt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(wt+Gt)/2,x=(bt+It)/2,Gt=(Gt+b)/2,It=(It+z)/2;var Xt=(E+Gt)/2,Qt=(x+It)/2,qt=1/0,re=!1,ye=0,En=0;return ae.Eo(a,y,wt,bt,E,x,Xt,Qt,ot,st,ut,ft,mt,yt)&&(a=(yt.x-ot)*(yt.x-ot)+(yt.y-st)*(yt.y-st),a<qt&&(qt=a,re=!0,ye=yt.x,En=yt.y)),ae.Eo(Xt,Qt,Gt,It,b,z,tt,rt,ot,st,ut,ft,mt,yt)&&(yt.x-ot)*(yt.x-ot)+(yt.y-st)*(yt.y-st)<qt&&(re=!0,ye=yt.x,En=yt.y),re&&(yt.x=ye,yt.y=En),re},Fo:function(a,y,x,E,b,z,tt,rt,ot,st,ut,ft,mt){var yt=0;if(ae.Yb(a,y,tt,rt,mt,x,E)&&ae.Yb(a,y,tt,rt,mt,b,z)){if(mt=(a-tt)*(st-ft)-(y-rt)*(ot-ut),mt===0)return yt;var wt=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-st*ut))/mt,bt=((a*rt-y*tt)*(st-ft)-(y-rt)*(ot*ft-st*ut))/mt;if(wt>=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),bt<ot||bt>a)return yt}else if(a<tt?(ot=a,a=tt):ot=tt,wt<ot||wt>a)return yt;0<mt?yt++:0>mt&&yt--}else{wt=(a+x)/2,bt=(y+E)/2;var Gt=(x+b)/2,It=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(wt+Gt)/2,x=(bt+It)/2,Gt=(Gt+b)/2,It=(It+z)/2;var Xt=(E+Gt)/2,Qt=(x+It)/2;yt+=ae.Fo(a,y,wt,bt,E,x,Xt,Qt,ot,st,ut,ft,mt),yt+=ae.Fo(Xt,Qt,Gt,It,b,z,tt,rt,ot,st,ut,ft,mt)}return yt},qh:function(a,y,x,E,b,z,tt){return ae.$(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)):ae.$(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 ae.B(a,x)&&ae.B(y,E)?(ot.h(a,y),!1):ae.$(b,tt)?ae.$(a,x)?(ae.qh(a,y,x,E,b,z,ot),!1):ae.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ot):(rt=(rt-z)/(tt-b),ae.$(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),ae.$(rt,tt)?(ae.qh(a,y,x,E,b,z,ot),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),ae.$(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)):ae.qh(a,y,x,E,b,tt*(b-a)+y,ot))))},MA:function(a,y,x,E,b){return ae.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(Gt,It){var Xt=(Gt-a)*(Gt-a)+(It-y)*(It-y);Xt<ft&&(ft=Xt,ot.h(Gt,It))}var ft=1/0;ut(ot.x,ot.y);var mt=0,yt=0,wt=0,bt=0;if(b<tt?(mt=b,yt=tt):(mt=tt,yt=b),z<rt?(wt=b,bt=tt):(wt=tt,bt=b),mt=(yt-mt)/2+st,st=(bt-wt)/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(ae.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 ae.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)),ae.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)),ae.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 ae.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):!!(eo(a,y,x,E,b,z)||eo(a,y,x,E,tt,rt)||ae.Rl(a,y,ot,y,b,z,tt,rt)||ae.Rl(ot,y,ot,st,b,z,tt,rt)||ae.Rl(ot,st,a,st,b,z,tt,rt)||ae.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>=ae.Fl(a,y,x,E,b,z)*ae.Fl(a,y,x,E,tt,rt)&&0>=ae.Fl(b,z,tt,rt,a,y)*ae.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(ae.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),ae.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 ci,um:new ci,Mf:new ci,Nf:0,vm:100};ae.za=ae.AA;function dn(a){ki(this),this.l=2,a===void 0&&(a=dn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===dn.o?this.ee=new tn:(dn.V===null&&(dn.V=new tn().freeze()),this.ee=dn.V),this.aq=this.ee.Ja,this.Ip=new Ce().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ur,this.gg=zr,this.Rk=this.Sk=NaN,this.Uf=rn}dn.prototype.copy=function(){var a=new dn;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===dn.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},dn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},dn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==dn.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},dn.prototype.ka=function(){if(Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==dn.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},dn.prototype.Xa=function(a){if(!(a instanceof dn))return!1;if(this.type!==a.type)return this.type===dn.j&&a.type===dn.o?Ks(this,a):a.type===dn.j&&this.type===dn.o?Ks(a,this):!1;if(this.type===dn.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 ae.B(this.startX,a.startX)&&ae.B(this.startY,a.startY)&&ae.B(this.endX,a.endX)&&ae.B(this.endY,a.endY)};function Ks(a,y){return a.type!==dn.j||y.type!==dn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&ae.B(a.startX,y.startX)&&ae.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Zr&&ae.B(a.endX,y.endX)&&ae.B(a.endY,y.endY))))}dn.ia=function(a){return a.toString()},dn.prototype.qb=function(a){a.classType===dn&&(this.type=a)},dn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case dn.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 dn.u:var y=new Ce(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 dn.F:if(y=new Ce(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 dn.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()}},dn.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},dn.parse=function(a,y){function x(){return bt>=qt-1?!0:st[bt+1].match(re)!==null}function E(){return bt++,st[bt]}function b(Ti){var Bi=parseFloat(E()),Cr=parseFloat(E());Gt===Gt.toLowerCase()&&(Bi=Qt.x+Bi,Cr=Qt.y+Cr),Ti.h(Bi,Cr)}function z(){return b(Qt),Qt}function tt(){return b(Xt),Xt}function rt(){var Ti=It.toLowerCase();return Ti!=="c"&&Ti!=="s"&&Ti!=="q"&&Ti!=="t"?Qt:new Mt(2*Qt.x-Xt.x,2*Qt.y-Xt.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=Dn();for(var ft="",mt=!1,yt=0;yt<ut.length;yt++){var wt=ut[yt];wt!=="."||mt?wt==="."?(ot.push(ft),ft="."):ft+=wt:(mt=!0,ft+=wt)}for(ot.push(ft),st.splice(a,1),ut=0;ut<ot.length;ut++)st.splice(a+ut,0,ot[ut]);a+=ot.length-1,Un(ot)}}var bt=-1,Gt="",It="";ot=new Mt(0,0);var Xt=new Mt(0,0),Qt=new Mt(0,0),qt=st.length;a=F1(null),mt=ft=ut=!1,yt=!0,wt=null;for(var re=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(bt>=qt-1);)if(It=Gt,Gt=E(),Gt!=="")switch(Gt.toUpperCase()){case"X":yt=!0,ft=ut=!1;break;case"M":for(wt=z(),a.mc===null||yt===!0?(Tf(a,wt.x,wt.y,ut,!ft,mt),yt=!1):a.moveTo(wt.x,wt.y),ot.assign(Qt);!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"L":for(;!x();)wt=z(),a.lineTo(wt.x,wt.y);break;case"H":for(;!x();)Qt=new Mt((Gt===Gt.toLowerCase()?Qt.x:0)+parseFloat(E()),Qt.y),a.lineTo(Qt.x,Qt.y);break;case"V":for(;!x();)Qt=new Mt(Qt.x,(Gt===Gt.toLowerCase()?Qt.y:0)+parseFloat(E())),a.lineTo(Qt.x,Qt.y);break;case"C":for(;!x();){wt=new Mt,b(wt);var ye=tt(),En=z();xh(a,wt.x,wt.y,ye.x,ye.y,En.x,En.y)}break;case"S":for(;!x();)wt=rt(),ye=tt(),En=z(),xh(a,wt.x,wt.y,ye.x,ye.y,En.x,En.y);break;case"Q":for(;!x();)wt=tt(),ye=z(),Im(a,wt.x,wt.y,ye.x,ye.y);break;case"T":for(;!x();)Xt=wt=rt(),ye=z(),Im(a,wt.x,wt.y,ye.x,ye.y);break;case"B":for(;!x();){wt=parseFloat(E()),ye=parseFloat(E()),En=parseFloat(E());var qn=parseFloat(E()),Kn=parseFloat(E()),fn=Kn,Ze=!1;x()||(fn=parseFloat(E()),x()||(Ze=parseFloat(E())!==0)),Gt===Gt.toLowerCase()&&(En+=Qt.x,qn+=Qt.y),a.arcTo(wt,ye,En,qn,Kn,fn,Ze)}break;case"A":for(;!x();)wt=Math.abs(parseFloat(E())),ye=Math.abs(parseFloat(E())),En=parseFloat(E()),Kn=qn=!1,Ze=fn=0,fn=E(),fn.length===1?(qn=!!parseFloat(fn),Kn=!!parseFloat(E()),fn=parseFloat(E())):fn.length===2?(qn=!!parseFloat(fn[0]),Kn=!!parseFloat(fn[1]),fn=parseFloat(E())):(qn=!!parseFloat(fn[0]),Kn=!!parseFloat(fn[1]),fn=parseFloat(fn.slice(2))),Ze=parseFloat(E()),Gt===Gt.toLowerCase()&&(fn=Qt.x+fn,Ze=Qt.y+Ze),Qt.h(fn,Ze),Px(a,wt,ye,En,qn,Kn,fn,Ze);break;case"Z":wx(a),Qt.assign(ot);break;case"F":for(wt="",ye=1;st[bt+ye];)if(st[bt+ye]==="0")mt=!0,ye++;else if(st[bt+ye].match(/[Uu]/)!==null)ye++;else if(st[bt+ye].match(re)===null)ye++;else{wt=st[bt+ye];break}wt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(wt="",ye=1;st[bt+ye];)if(st[bt+ye].match(/[Ff]/)!==null)ye++;else if(st[bt+ye].match(re)===null)ye++;else{wt=st[bt+ye];break}wt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Rm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},dn.Ha=function(a,y){for(var x=a.length,E=Mt.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}Mt.free(E)},dn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===dn.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},dn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===dn.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),Bl(this,a,!1),cr(a,0,0,0,0),a.freeze()},dn.prototype.ix=function(){var a=new Ce;return Bl(this,a,!0),a};function Bl(a,y,x){switch(a.type){case dn.j:case dn.u:case dn.F:x?y.h(a.od,a.pd,0,0):cr(y,a.od,a.pd,0,0),cr(y,a.Dc,a.Ec,0,0);break;case dn.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):cr(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 Zr:case Oo:ot=ft.endX,st=ft.endY,cr(y,ot,st,0,0);break;case Go:ae.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 gs:ae.iv(ot,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,st=ft.endY;break;case xo:case Ls:var mt=ft.type===xo?Ha(ft,z):Os(ft,z,ot,st),yt=mt.length;if(yt===0){ot=ft.type===xo?ft.centerX:ft.endX,st=ft.type===xo?ft.centerY:ft.endY,cr(y,ot,st,0,0);break}ft=null;for(var wt=0;wt<yt;wt++)ft=mt[wt],ae.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:Ht("Unknown Segment type: "+ft.type)}}}break;default:Ht("Unknown Geometry type: "+a.type)}}dn.prototype.normalize=function(){this._isFrozen&&de(this);var a=this.ix();return this.offset(-a.x,-a.y),new Mt(-a.x,-a.y)},dn.prototype.offset=function(a,y){return this._isFrozen&&de(this),this.transform(1,0,0,1,a,y),this},dn.prototype.scale=function(a,y){return this._isFrozen&&de(this),this.transform(a,0,0,y,0,0),this},dn.prototype.rotate=function(a,y,x){this._isFrozen&&de(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Fi.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Fi.free(E),this},Ct=dn.prototype,Ct.transform=function(a,y,x,E,b,z){switch(this.type){case dn.j:case dn.u:case dn.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 dn.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 wt=ft[yt];switch(wt.type){case Zr:case Oo:tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case Go:tt=wt.point1X,rt=wt.point1Y,wt.point1X=tt*a+rt*x+b,wt.point1Y=tt*y+rt*E+z,tt=wt.point2X,rt=wt.point2Y,wt.point2X=tt*a+rt*x+b,wt.point2Y=tt*y+rt*E+z,tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case gs:tt=wt.point1X,rt=wt.point1Y,wt.point1X=tt*a+rt*x+b,wt.point1Y=tt*y+rt*E+z,tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z;break;case xo:tt=wt.centerX,rt=wt.centerY,wt.centerX=tt*a+rt*x+b,wt.centerY=tt*y+rt*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.startAngle+=tt),0>a&&(wt.startAngle=180-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),0>E&&(wt.startAngle=-wt.startAngle,wt.sweepAngle=-wt.sweepAngle),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY!==void 0&&(wt.radiusY*=Math.sqrt(y*y+E*E));break;case Ls:if(tt=wt.endX,rt=wt.endY,wt.endX=tt*a+rt*x+b,wt.endY=tt*y+rt*E+z,wt.radiusX===0||wt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),wt.xAxisRotation+=tt),0>a&&(wt.xAxisRotation=180-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),0>E&&(wt.xAxisRotation=-wt.xAxisRotation,wt.isClockwiseArc=!wt.isClockwiseArc),wt.radiusX*=Math.sqrt(a*a+x*x),wt.radiusY*=Math.sqrt(y*y+E*E);break;default:Ht("Unknown Segment type: "+wt.type)}}}}return this._isInvalidBounds=!0,this},Ct.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 dn.j:return ae.Yb(x,E,b,z,y,a.x,a.y);case dn.u:var tt=Ce.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),Ce.free(tt),a;case dn.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 dn.o:return _o(this,a,y,!0,!1);default:return!1}};function _o(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,wt=0;wt<yt;wt++){var bt=mt[wt],Gt=!bt.isEvenOdd;if(bt.isFilled){if(E&&bt.ca(z,y,x))return!0;var It=bt.segments;ot=bt.startX,st=bt.startY;for(var Xt=ot,Qt=st,qt=It.s,re=0;re<=It.length;re++){var ye=void 0;if(re!==It.length){ye=qt[re];var En=ye.type;a=ye.endX,ft=ye.endY}else En=Zr,a=Xt,ft=Qt;switch(En){case Oo:if(Xt=Pa(z,y,tt,y,ot,st,Xt,Qt),isNaN(Xt))return!0;rt+=Xt,Xt=a,Qt=ft;break;case Zr:if(ot=Pa(z,y,tt,y,ot,st,a,ft),isNaN(ot))return!0;rt+=ot;break;case Go:ut=ae.Fo(ot,st,ye.point1X,ye.point1Y,ye.point2X,ye.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case gs:ut=ae.Fo(ot,st,(ot+2*ye.point1X)/3,(st+2*ye.point1Y)/3,(2*ye.point1X+a)/3,(2*ye.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case xo:case Ls:En=ye.type===xo?Ha(ye,bt):Os(ye,bt,ot,st);var qn=En.length;if(qn===0){if(ot=Pa(z,y,tt,y,ot,st,ye.type===xo?ye.centerX:ye.endX,ye.type===xo?ye.centerY:ye.endY),isNaN(ot))return!0;rt+=ot;break}ye=null;for(var Kn=0;Kn<qn;Kn++){if(ye=En[Kn],Kn===0){if(ut=Pa(z,y,tt,y,ot,st,ye[0],ye[1]),isNaN(ut))return!0;rt+=ut}ut=ae.Fo(ye[0],ye[1],ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],tt,y,z,y,.5),rt+=ut}ye!==null&&(a=ye[6],ft=ye[7]);break;default:Ht("Unknown Segment type: "+ye.type)}ot=a,st=ft}if(Gt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(bt.ca(z,y,b?x:x+2))return!0}return!1}function Pa(a,y,x,E,b,z,tt,rt){if(ae.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 Ts(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}Ct.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Mt),this.type===dn.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},Ct.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===dn.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},Ct.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===dn.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},Ct.xx=function(a){if(this.type===dn.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=Mt.alloc();return ae.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Mt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===dn.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=Mt.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],wt=mt.length,bt=0;bt<wt;bt+=2){var Gt=mt[bt],It=mt[bt+1];if(bt!==0){ae.qh(st,ut,Gt,It,a.x,a.y,E);var Xt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Xt<b&&(b=Xt,tt=rt,tt+=Math.sqrt((E.x-st)*(E.x-st)+(E.y-ut)*(E.y-ut))),rt+=yt[(bt-2)/2]}st=Gt,ut=It}return Mt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function rl(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===dn.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===dn.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===dn.F){var z=new To;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new xr(xo);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=Ha(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];ae.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(Nu(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 Oo:4<=E.length&&(y.push(E),x.push(Nu(E))),E=[],E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY,rt=tt,ot=z;break;case Zr:E.push(mt.endX),E.push(mt.endY),tt=mt.endX,z=mt.endY;break;case Go:ae.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 gs:ae.ep(tt,z,mt.point1X,mt.point1Y,mt.endX,mt.endY,.5,E),tt=mt.endX,z=mt.endY;break;case xo:var yt=Ha(mt,b),wt=yt.length;if(wt===0){E.push(mt.centerX),E.push(mt.centerY),tt=mt.centerX,z=mt.centerY;break}for(var bt=0;bt<wt;bt++){var Gt=yt[bt];ae.Qe(tt,z,Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],.5,E),tt=Gt[6],z=Gt[7]}break;case Ls:if(yt=Os(mt,b,tt,z),wt=yt.length,bt=mt.endX,Gt=mt.endY,wt===0){E.push(bt),E.push(Gt),tt=bt,z=Gt;break}for(bt=0;bt<wt;bt++)Gt=yt[bt],ae.Qe(tt,z,Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],.5,E),tt=Gt[6],z=Gt[7];break;default:Ht("Segment not of valid type: "+mt.type)}mt.isClosed&&(E.push(rt),E.push(ot))}4<=E.length&&(y.push(E),x.push(Nu(E)))}}}function Nu(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(Si(x,E,tt,rt))),x=tt,E=rt}return y}Ct.add=function(a){return this.ee.add(a),this},Ct.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&de(this),this.fg=new ei(a,y,b,z).freeze(),this.gg=new ei(x,E,tt,rt).freeze(),this},ce.Object.defineProperties(dn.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 rl(this),this.tk}},flattenedLengths:{get:function(){return rl(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===dn.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===dn.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&&de(this,a),this.na=a,a===dn.o?this.ee=new tn:(dn.V===null&&(dn.V=new tn().freeze()),this.ee=dn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&de(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&de(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&de(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&de(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&de(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&de(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&de(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&de(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),dn.prototype.setSpots=dn.prototype.pm,dn.prototype.add=dn.prototype.add,dn.prototype.getFractionForPoint=dn.prototype.xx,dn.prototype.getPointAndAngleAlongPath=dn.prototype.Qu,dn.prototype.getAngleAlongPath=dn.prototype.wx,dn.prototype.getPointAlongPath=dn.prototype.Pu,dn.prototype.containsPoint=dn.prototype.ca,dn.prototype.transform=dn.prototype.transform,dn.prototype.rotate=dn.prototype.rotate,dn.prototype.scale=dn.prototype.scale,dn.prototype.offset=dn.prototype.offset,dn.prototype.normalize=dn.prototype.normalize,dn.prototype.computeBoundsWithoutOrigin=dn.prototype.ix,dn.prototype.equalsApprox=dn.prototype.Xa,dn.className="Geometry",dn.j=new Ue(dn,"Line",0),dn.u=new Ue(dn,"Rectangle",1),dn.F=new Ue(dn,"Ellipse",2),dn.o=new Ue(dn,"Path",3),dn.V=null,dn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",dn.className="Geometry",dn.stringify=dn.ia,dn.fillPath=dn.nb,dn.parse=dn.parse,dn.Line=dn.j,dn.Rectangle=dn.u,dn.Ellipse=dn.F,dn.Path=dn.o;function To(a,y,x,E,b){ki(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 tn,this.sr=this.pl.Ja,this.fw=null}To.prototype.copy=function(){var a=new To;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},Ct=To.prototype,Ct.Xa=function(a){if(!(a instanceof To&&ae.B(this.startX,a.startX)&&ae.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},Ct.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},Ct.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},Ct.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},Ct.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},Ct.add=function(a){return this.pl.add(a),this},Ct.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 Oo:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case Zr:if(ae.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case Go:if(ae.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 gs:if(ae.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 xo:case Ls:var ft=ut.type===xo?Ha(ut,this):Os(ut,this,E,b),mt=ft.length,yt=ut.type===xo?ut.centerX:ut.endX,wt=ut.type===xo?ut.centerY:ut.endY;if(mt===0){if(ae.Yb(E,b,yt,wt,x,a,y))return!0;E=yt,b=wt;break}for(yt=null,wt=0;wt<mt;wt++)if(yt=ft[wt],wt===0&&ae.Yb(E,b,yt[0],yt[1],x,a,y)||ae.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:Ht("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&ae.Yb(E,b,z,tt,x,a,y))return!0}return!1},ce.Object.defineProperties(To.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&&de(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&de(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&de(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&de(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&de(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&de(this,a),this.pl=a,this._isInvalidBounds=!0}}}),To.prototype.add=To.prototype.add,To.prototype.equalsApprox=To.prototype.Xa,To.className="PathFigure";function xr(a,y,x,E,b,z,tt,rt){ki(this),a===void 0&&(a=Zr),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===Ls?(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===xo&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===xo&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}xr.prototype.copy=function(){var a=new xr;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},Ct=xr.prototype,Ct.Xa=function(a){if(!(a instanceof xr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Oo:case Zr:return ae.B(this.endX,a.endX)&&ae.B(this.endY,a.endY);case Go:return ae.B(this.endX,a.endX)&&ae.B(this.endY,a.endY)&&ae.B(this.point1X,a.point1X)&&ae.B(this.point1Y,a.point1Y)&&ae.B(this.point2X,a.point2X)&&ae.B(this.point2Y,a.point2Y);case gs:return ae.B(this.endX,a.endX)&&ae.B(this.endY,a.endY)&&ae.B(this.point1X,a.point1X)&&ae.B(this.point1Y,a.point1Y);case xo:return ae.B(this.startAngle,a.startAngle)&&ae.B(this.sweepAngle,a.sweepAngle)&&ae.B(this.centerX,a.centerX)&&ae.B(this.centerY,a.centerY)&&ae.B(this.radiusX,a.radiusX)&&ae.B(this.radiusY,a.radiusY);case Ls:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&ae.B(this.xAxisRotation,a.xAxisRotation)&&ae.B(this.endX,a.endX)&&ae.B(this.endY,a.endY)&&ae.B(this.radiusX,a.radiusX)&&ae.B(this.radiusY,a.radiusY);default:return!1}},Ct.qb=function(a){a.classType===xr&&(this.type=a)},Ct.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Oo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Go: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 gs: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 xo: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 Ls: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":"")},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.close=function(){return this.isClosed=!0,this};function Ha(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=ae.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=Fi.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),dn.Ha(z,tt),Fi.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 Os(a,y,x,E){function b(bt,Gt,It,Xt){return(bt*Xt<Gt*It?-1:1)*Math.acos((bt*It+Gt*Xt)/(Math.sqrt(bt*bt+Gt*Gt)*Math.sqrt(It*It+Xt*Xt)))}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 wt=yt*yt/(y*y)+tt*tt/(z*z);return 1<wt&&(y*=Math.sqrt(wt),z*=Math.sqrt(wt)),wt=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*yt*yt)/(y*y*tt*tt+z*z*yt*yt)),isNaN(wt)&&(wt=0),rt=wt*y*tt/z,wt=wt*-z*yt/y,isNaN(rt)&&(rt=0),isNaN(wt)&&(wt=0),x=(x+st)/2+ft*rt-mt*wt,E=(E+ut)/2+mt*rt+ft*wt,ut=b(1,0,(yt-rt)/y,(tt-wt)/z),ft=(yt-rt)/y,st=(tt-wt)/z,yt=(-yt-rt)/y,rt=(-tt-wt)/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=ae.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Fi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ot,yt),dn.Ha(y,z),Fi.free(z),a.ae=y,a.ae}ce.Object.defineProperties(xr.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&&de(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&de(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&de(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&de(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&de(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&de(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&de(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&de(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&de(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&wn(a,">= zero",xr,"radiusX"),this._isFrozen&&de(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&wn(a,">= zero",xr,"radiusY"),this._isFrozen&&de(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&de(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&&de(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&&de(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&&de(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&&de(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),xr.prototype.equalsApprox=xr.prototype.Xa;var Oo=new Ue(xr,"Move",0),Zr=new Ue(xr,"Line",1),Go=new Ue(xr,"Bezier",2),gs=new Ue(xr,"QuadraticBezier",3),xo=new Ue(xr,"Arc",4),Ls=new Ue(xr,"SvgArc",4);xr.className="PathSegment",xr.Move=Oo,xr.Line=Zr,xr.Bezier=Go,xr.QuadraticBezier=gs,xr.Arc=xo,xr.SvgArc=Ls;function ma(){this.H=null,this.xu=new Mt(0,0).freeze(),this.mt=new Mt(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}ma.prototype.copy=function(){var a=new ma;return this.clone(a)},ma.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},ma.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},ma.prototype.So=function(a,y){var x=this.diagram;return x===null||wg(x,a,y),y},ma.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(wg(x,a,y),y.assign(x.Ps(y))),y},ce.Object.defineProperties(ma.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}}}),ma.prototype.getMultiTouchDocumentPoint=ma.prototype.Bz,ma.prototype.getMultiTouchViewPoint=ma.prototype.So,ma.className="InputEvent";function uu(){this.H=null,this.xa="",this.ar=this.Lr=null}uu.prototype.copy=function(){var a=new uu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},uu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},ce.Object.defineProperties(uu.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}}}),uu.className="DiagramEvent";function ao(){this.Fm=io,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ao.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ao.prototype.copy=function(){var a=new ao;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=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ke(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ke(y)&&typeof y.J=="function"?y.J():y,a},ao.prototype.qb=function(a){a.classType===ao&&(this.change=a)},ao.prototype.toString=function(){var a="";return a=this.change===Aa?a+"* ":this.change===io?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===Aa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=bi(this.object)),this.oldValue!==null&&(a+=" old: "+bi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+bi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ao.prototype.I=function(a){return a?this.oldValue:this.newValue},ao.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ao.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ao.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ao.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ao.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ce.Object.defineProperties(ao.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===Aa&&(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}}}),ao.prototype.redo=ao.prototype.redo,ao.prototype.canRedo=ao.prototype.canRedo,ao.prototype.undo=ao.prototype.undo,ao.prototype.canUndo=ao.prototype.canUndo,ao.prototype.getParam=ao.prototype.Dz,ao.prototype.getValue=ao.prototype.I,ao.prototype.clear=ao.prototype.clear;var Aa=new Ue(ao,"Transaction",-1),io=new Ue(ao,"Property",0),wo=new Ue(ao,"Insert",1),Ao=new Ue(ao,"Remove",2);ao.className="ChangedEvent",ao.Transaction=Aa,ao.Property=io,ao.Insert=wo,ao.Remove=Ao;function Ho(){this.o=new tn().freeze(),this.xa="",this.j=!1}Ho.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},Ho.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()},Ho.prototype.canUndo=function(){return this.isComplete},Ho.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()}},Ho.prototype.canRedo=function(){return this.isComplete},Ho.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()}},Ho.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Pe,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===io&&E.object){var b=y.get(E.object);b||(b=new Pe,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()}},ce.Object.defineProperties(Ho.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}}}),Ho.prototype.optimize=Ho.prototype.ak,Ho.prototype.redo=Ho.prototype.redo,Ho.prototype.canRedo=Ho.prototype.canRedo,Ho.prototype.undo=Ho.prototype.undo,Ho.prototype.canUndo=Ho.prototype.canUndo,Ho.prototype.clear=Ho.prototype.clear,Ho.className="Transaction";function ho(){this.Pt=new en,this.Jd=!1,this.u=new tn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new tn().freeze(),this.hl=new tn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ho.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},ho.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},ho.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ct=ho.prototype,Ct.Xw=function(a){this.Pt.add(a)},Ct.Rx=function(a){this.Pt.remove(a)},Ct.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},Ct.eb=function(a){return a===void 0&&(a=""),Tu(this,!0,a)},Ct.Kf=function(){return Tu(this,!1,"")};function Tu(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Bn("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}Ct.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()}},ho.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ho.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){Bn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ho.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ho.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){Bn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ho.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new ao;for(E.change=Aa,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},ho.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ho);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||Bn("Change not within a transaction: "+x.toString()))}},ho.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},ce.Object.defineProperties(ho.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}}}),ho.prototype.handleChanged=ho.prototype.Tu,ho.prototype.redo=ho.prototype.redo,ho.prototype.undo=ho.prototype.undo,ho.prototype.canUndo=ho.prototype.canUndo,ho.prototype.discardHistoryAfterIndex=ho.prototype.lx,ho.prototype.rollbackTransaction=ho.prototype.Kf,ho.prototype.commitTransaction=ho.prototype.eb,ho.prototype.startTransaction=ho.prototype.Ea,ho.prototype.removeModel=ho.prototype.Rx,ho.prototype.addModel=ho.prototype.Xw,ho.prototype.clear=ho.prototype.clear,ho.className="UndoManager";function Sr(){ki(this),this.H=gu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ma,this.Zr=-1}Sr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Wn(this.constructor)},Sr.prototype.updateAdornments=function(){},Sr.prototype.canStart=function(){return this.isEnabled},Sr.prototype.doStart=function(){},Sr.prototype.doActivate=function(){this.isActive=!0},Sr.prototype.doDeactivate=function(){this.isActive=!1},Sr.prototype.doStop=function(){},Sr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Sr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Sr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Sr.prototype.doMouseMove=function(){},Sr.prototype.doMouseUp=function(){this.stopTool()},Sr.prototype.doMouseWheel=function(){},Sr.prototype.canStartMultiTouch=function(){return!0},Sr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Mt.allocAt(NaN,NaN)),E=y.So(1,Mt.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}Mt.free(x),Mt.free(E)},Sr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Mt.allocAt(NaN,NaN)),E=y.So(1,Mt.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 Mt((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}Mt.free(x),Mt.free(E)},Sr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Sr.prototype.doKeyUp=function(){},Sr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Sr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Sr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(or?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||(or?y.meta:y.control)||y.shift||a.clearSelection()}},Sr.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,sc(a,E,x),E.handled};function sc(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)}}}Sr.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}},Sr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Sr.prototype.doCurrentObjectChanged=function(){},Sr.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===ih&&!y.shift||b===hu&&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===ih&&y.shift||b===hu&&!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)}}},Sr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Sr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Mi(function(){x.doWaitAfter(E)},a)},Sr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&$e.clearTimeout(this.Zr),this.Zr=-1},Sr.prototype.doWaitAfter=function(){},Sr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof wr);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Sr.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},ce.Object.defineProperties(Sr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Se&&(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}}}),Sr.prototype.startTransaction=Sr.prototype.Ea,Sr.className="Tool";function qr(){Sr.call(this),this.name="ToolManager",this.hb=new tn,this.ob=new tn,this.Hb=new tn,this.F=this.V=850,this.o=new Ve(2,2).ja(),this.Ha=5e3,this.ia=hu,this.u=zh,this.Mp=this.j=null,this.zj=-1}ue(qr,Sr),qr.prototype.initializeStandardTools=function(){},qr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof wr&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},qr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Dl&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Ou){y.bubbles=!0;return}if(this.gestureBehavior===Dl)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===hu?this.mouseWheelBehavior=ih:this.mouseWheelBehavior===ih&&(this.mouseWheelBehavior=hu)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},qr.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Ou){y.bubbles=!0;return}if(this.gestureBehavior===Dl)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}}Cd(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Cd(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}qr.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof wr&&(y===a||y.rg(a))||this.hideToolTip()},qr.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()))},qr.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)},qr.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 wr)||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()},qr.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof wr){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 ql&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&($e.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Mi(function(){b.hideToolTip()},a)}},qr.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}},qr.prototype.hideToolTip=function(){this.zj!==-1&&($e.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof wr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ql&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},qr.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()},qr.prototype.doMouseWheel=function(){this.standardMouseWheel()},qr.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},qr.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},qr.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},qr.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},qr.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)},ce.Object.defineProperties(qr.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 wr?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}}}),qr.prototype.replaceStandardTool=qr.prototype.gb;var hu=new Ue(qr,"WheelScroll",0),ih=new Ue(qr,"WheelZoom",1),Ld=new Ue(qr,"WheelNone",2),zh=new Ue(qr,"GestureZoom",3),Dl=new Ue(qr,"GestureCancel",4),Ou=new Ue(qr,"GestureNone",5);qr.className="ToolManager",qr.WheelScroll=hu,qr.WheelZoom=ih,qr.WheelNone=Ld,qr.GestureZoom=zh,qr.GestureCancel=Dl,qr.GestureNone=Ou;function uo(){Sr.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 Mt(NaN,NaN),this.Fr=new Mt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new en().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var ol;ue(uo,Sr),uo.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},uo.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},uo.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,(or?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},uo.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),la=null,this.isActive=!0,this.tl.set(a.position),jh(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&&os(a),ff(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,la=this,rh=this.diagram,this.doSimulatedDragOut()))};function jh(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof gn?(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 Is,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},uo.prototype.Pd=function(a){return a===void 0?new Wu(An):this.isGridSnapEnabled?new Wu(new Mt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Wu(a.copy())},uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Xl(this),qh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ol.count){for(var y=ol,x=y.length,E=0;E<x;E++){var b=y.M(E);so(b),Vr(b),Xl(b),b.diagram.ug()}y.clear()}so(this),this.tl.h(NaN,NaN),rh!==null&&(rh.currentCursor=""),la=rh=null,Vr(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),xc(a,!0)},uo.prototype.stopTransaction=function(){var a=this.diagram,y=Sr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Xl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,du(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Ad(){var a=la;Vr(a),Ta(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}uo.prototype.doCancel=function(){Vr(this),Ta(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Jl(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")):Ta(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 Pe,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 gn&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,jh(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ch(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Vr(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 gn&&(x.value.point=new Mt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function so(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 Xo(a,y,x){var E=a.diagram,b=a.startPoint,z=Mt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Mt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(os(E),E.hk())}uo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Qh(E,a,y,this.dragOptions,x)};function Ta(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 gn&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Ch(E,-b.x,-b.y)}y.bd()}}function Ea(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),al(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=du(a,b,E),!a.isActive&&la===null)return;var rt=E!==null?E.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Oi)){var ot=x.mouseDragOver;ot!==null&&(ot(b),tt=!0)}if(!a.isActive&&la===null||(a.doDragOver(y,E),!a.isActive&&la===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)}uo.prototype.findDragOverObject=function(a){var y=this;return pu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof wr||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},uo.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 du(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&&la===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=Ql(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 Ql(a){var y=a.panel;return y!==null?y:a instanceof mi&&!(a instanceof Oi)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function cu(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=Mt.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(Ui,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Mt.free(a),tt}function al(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=cu(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=cu(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)):_c(b,tt,z,ot,rt):_c(b,null,null,null,null)}}}}uo.prototype.doDragOver=function(){};function Nl(a,y){var x=a.diagram;a.dragsLink&&al(a,!0),Xl(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;Q0(a,b,z),z=Ql(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||la!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Fn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||la!==null){for(a=Ce.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Fn&&q0(x,E,a);Ce.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Oi||(x=a.mouseDrop,x!==null&&x(y))}function q0(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 gn},!0,function(b){return b instanceof gn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}uo.prototype.doDropOnto=function(){},uo.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()?(Jl(this,!1),ff(a,this.copiedParts),Xo(this,this.copiedParts,!1),qh(a,this.copiedParts)):this.mayMove()?(Vr(this),Xo(this,this.draggedParts,!0)):this.mayDragOut()?(Jl(this,!1),Xo(this,this.copiedParts,!1)):Vr(this),Ea(this,a.lastInput.documentPoint))}},uo.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?(Vr(this),Jl(this,!0),ff(a,this.copiedParts),Xo(this,this.copiedParts,!1),qh(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,Vr(this),this.mayMove()&&(Xo(this,this.draggedParts,!0),Ea(this,a.lastInput.documentPoint))),this.Ym=!0,Nl(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_0(this),a.Ya(),qh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},uo.prototype.simulatedMouseMove=function(a,y,x){if(la===null)return!1;var E=la.diagram;x instanceof Se||(x=null);var b=rh;return x!==b&&(b!==null&&b!==E&&(b.ug(),la.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),rh=x,x!==null&&x!==E&&(Ad(),b=x.toolManager.findTool("Dragging"),b!==null&&(ol.contains(b)||ol.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)},uo.prototype.simulatedMouseUp=function(a,y,x){if(la===null)return!1;var E=rh,b=la.diagram;if(x===null)return la.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),la.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;rh=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Ad(),ol.contains(E)||ol.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 Mt),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=la,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function _0(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Fn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(or?!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())},uo.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())},uo.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())},uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},uo.prototype.Az=function(){return la},uo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=la;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},uo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Ys(a),a.animationManager.Cc(),a=la,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},uo.prototype.doSimulatedDragLeave=function(){var a=la;a!==null&&a.doSimulatedDragOut(),this.doCancel()},uo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=la;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Rp(this,y.draggedParts.Lf(),!1,a.firstInput),Xo(this,this.copiedParts,!1),Ea(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=la;if(y!==null){var x=y.diagram;if(y.Ym=!0,Vr(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Rp(this,y.draggedParts.Lf(),!0,a.lastInput),Xo(this,this.copiedParts,!1);var E=new en;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Nl(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 Rp(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=Ce.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,Ce.free(z),z=a.Fr,tt=new Pe,rt=Mt.alloc(),ot=y.iterator;ot.next();)st=ot.value,st instanceof gn&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Ch(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))));Mt.free(rt),a.copiedParts=tt,jh(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ch(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},uo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Mt},ce.Object.defineProperties(uo.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}}}),uo.prototype.getDraggingSource=uo.prototype.Az;var la=null,rh=null;uo.className="DraggingTool",ol=new tn,Ci("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),qr.prototype.doCancel=function(){la!==null&&la.doCancel(),Sr.prototype.doCancel.call(this)};function yo(){Sr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new gn,y=new Yi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Yi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Fn,y=new Yi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Di,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Fn,y=new Yi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Di,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 Pe,this.Of=this.gj=this.Pf=null}ue(yo,Sr),yo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},yo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Ve.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Ve.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Ui,z=Mt.alloc(),x.location=y.ga(Ui,z),Mt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},yo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Di,y.fromSpot=Ki,y.toSpot=Ki),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},yo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},yo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Fn){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)}},yo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Fn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Fn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},yo.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 Fn){var ot=tt.ga(Ui,Mt.alloc()),st=x.x-ot.x,ut=x.y-ot.y;Mt.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 Fn&&(x.layer===null||x.layer.allowLink))?y:null},yo.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},yo.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},yo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},yo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Fn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Fn))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},yo.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)},yo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new en;return E.add(a),Oa(this,x,y,E)};function Oa(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Oa(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Oa(a,y.labeledLink,x,E))))}yo.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!==Ac){if(E===Rg){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!Za(this,a,y,x,!0)}if(E===zg){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!Za(this,a,y,x,!0)}if(E===Tg)return a===y?a=!0:(E=new en,E.add(y),a=Ka(this,E,a,y,x)),!a;if(E===Og)return!Za(this,a,y,x,!1);if(E===Ig)return a===y?a=!0:(E=new en,E.add(y),a=Ed(this,E,a,y,x)),!a}return!0};function Za(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&&Za(a,tt,x,E,b)))return!0}return!1}function Ka(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&&Ka(a,y,tt,E,b)))return!0}return!1}function Ed(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&&Ed(a,y,rt,E,b))return!0}}return!1}ce.Object.defineProperties(yo.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}}}),yo.className="LinkingBaseTool";function Va(){yo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Wh,this.Xd=null}ue(Va,yo),Va.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},Va.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 Fn)))return null;var x=this.direction;if(x===Wh||x===zp){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===Wh||x===jp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Va.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 Fn&&(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 Fn&&(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)},Va.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()},Va.prototype.doStop=function(){yo.prototype.doStop.call(this),this.startObject=null},Va.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 Fn&&(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)}}},Va.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof gn)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)},Va.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},Va.prototype.doNoLink=function(){},ce.Object.defineProperties(Va.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 Wh=new Ue(Va,"Either",0),zp=new Ue(Va,"ForwardsOnly",0),jp=new Ue(Va,"BackwardsOnly",0);Va.className="LinkingTool",Va.Either=Wh,Va.ForwardsOnly=zp,Va.BackwardsOnly=jp;function Is(){yo.call(this),this.name="Relinking";var a=new Yi;a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Yi,a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Ce}ue(Is,yo),Is.prototype.updateAdornments=function(a){if(a!==null&&a instanceof gn){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)}},Is.prototype.makeAdornment=function(a,y){var x=new wr;return x.type=on.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Is.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},Is.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 wr&&x.adornedPart instanceof gn))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=gi),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=gi),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},Is.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Rf||x===Lh)&&(x=_a),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}},Is.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()},Is.prototype.doStop=function(){yo.prototype.doStop.call(this),this.handle=null},Is.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 Fn&&(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()}}},Is.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},Is.prototype.doNoRelink=function(){};function _c(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)}ce.Object.defineProperties(Is.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 wr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Is.className="RelinkingTool",Ci("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Ci("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Eo(){Sr.call(this),this.name="LinkReshaping";var a=new Yi;a.figure="Rectangle",a.desiredSize=lr,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Yi,a.figure="Diamond",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Mt,this.Yq=new tn}ue(Eo,Sr),Eo.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:sg},Eo.prototype.om=function(a,y){a.reshapingBehavior=y},Eo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof gn){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)}},Eo.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new wr,b.type=on.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==Gs)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);ae.B(ot.x,st.x)&&ae.B(ot.y,st.y)&&(st=y.i(x-1)),ae.B(ot.x,st.x)?(this.om(rt,sh),rt.cursor="n-resize"):ae.B(ot.y,st.y)&&(this.om(rt,ah),rt.cursor="w-resize")}else tt===z-1&&E?(ot=y.i(z-1),st=y.i(z),ae.B(ot.x,st.x)&&ae.B(ot.y,st.y)&&(ot=y.i(z+1)),ae.B(ot.x,st.x)?(this.om(rt,sh),rt.cursor="n-resize"):ae.B(ot.y,st.y)&&(this.om(rt,ah),rt.cursor="w-resize")):tt!==z&&(this.om(rt,$c),rt.cursor="move");b.add(rt)}b.adornedObject=a}return b},Eo.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Eo.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Eo.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},Eo.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 gn){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}}},Eo.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Eo.prototype.stopTransaction=function(){var a=this.diagram,y=Sr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Eo.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Eo.prototype.getResegmentingPoint=function(){return this.handle.ga(Ui)},Eo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Eo.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&&(oh(this,tt,E,b,z,!0)||oh(this,tt,E,b,z,!1))){var rt=y.points.copy();oh(this,tt,E,b,z,!0)?(rt.cd(x-2,new Mt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Mt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Mt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Mt((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&&(oh(this,E,b,z,tt,!0)||oh(this,E,b,z,tt,!1))&&(rt=y.points.copy(),oh(this,E,b,z,tt,!0)?(rt.cd(x-1,new Mt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Mt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Mt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Mt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Mt.alloc(),ae.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()),Mt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function oh(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}Eo.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===sh?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===ah&&(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===sh?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===ah&&(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);ae.B(z.x,b.x)&&ae.B(b.y,tt.y)?(ae.B(z.x,y.i(E-2).x)&&!ae.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),ae.B(tt.y,y.i(E+2).y)&&!ae.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):ae.B(z.y,b.y)&&ae.B(b.x,tt.x)?(ae.B(z.y,y.i(E-2).y)&&!ae.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),ae.B(tt.x,y.i(E+2).x)&&!ae.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):ae.B(z.x,b.x)&&ae.B(b.x,tt.x)?(ae.B(z.x,y.i(E-2).x)&&!ae.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),ae.B(tt.x,y.i(E+2).x)&&!ae.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):ae.B(z.y,b.y)&&ae.B(b.y,tt.y)&&(ae.B(z.y,y.i(E-2).y)&&!ae.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),ae.B(tt.y,y.i(E+2).y)&&!ae.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(Ui,Mt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Mt.alloc()),y.L(0,E.x,E.y),Mt.free(z),Mt.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(Ui,Mt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Mt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Mt.free(x),Mt.free(a));y.zf()},Eo.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case $c:return a;case sh:return new Mt(y.i(x).x,a.y);case ah:return new Mt(a.x,y.i(x).y);default:case sg:return y.i(x)}},ce.Object.defineProperties(Eo.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 wr))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}}}),Eo.prototype.setReshapingBehavior=Eo.prototype.om,Eo.prototype.getReshapingBehavior=Eo.prototype.Ru;var sg=new Ue(Eo,"None",0),ah=new Ue(Eo,"Horizontal",1),sh=new Ue(Eo,"Vertical",2),$c=new Ue(Eo,"All",3);Eo.className="LinkReshapingTool",Eo.None=sg,Eo.Horizontal=ah,Eo.Vertical=sh,Eo.All=$c,Ci("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ca(){Sr.call(this),this.name="Resizing",this.o=new Ve(1,1).freeze(),this.j=new Ve(9999,9999).freeze(),this.yg=new Ve(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Yi;a.alignmentFocus=Ui,a.figure="Rectangle",a.desiredSize=lr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Mt,this.Dw=new Ve,this.Tn=new Mt,this.rt=new Ve(0,0),this.qt=new Ve(1/0,1/0),this.pt=new Ve(1,1)}ue(Ca,Sr),Ca.prototype.updateAdornments=function(a){if(!(a===null||a instanceof gn)){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(),id(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Ca.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new wr,y.type=on.Spot,y.locationSpot=Ui;var x=new qa;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ur)),y.add(this.makeHandle(a,Tr)),y.add(this.makeHandle(a,zr)),y.add(this.makeHandle(a,Wo)),y.add(this.makeHandle(a,La)),y.add(this.makeHandle(a,aa)),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,Na))}else if(cl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ca.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ca.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=Ui),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 on)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ca.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},Ca.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))},Ca.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ca.prototype.stopTransaction=function(){var a=this.diagram,y=Sr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ca.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ca.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,Mt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Mt.free(b)}},Ca.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,Mt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Mt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ca.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 Oi){var E=new tn;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()}},Ca.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Ui);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=Mt.alloc(),ae.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))),Mt.free(mt),a},Ca.prototype.computeReshape=function(){var a=Xe;return this.adornedObject instanceof Yi&&(a=Lv(this.adornedObject)),!(a===oi||this.diagram.lastInput.shift)},Ca.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},Ca.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},Ca.prototype.computeCellSize=function(){var a=new Ve(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},ce.Object.defineProperties(Ca.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 wr))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 wr)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}}}),Ca.className="ResizingTool",Ci("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ua(){Sr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Mt,this.ue=null;var a=new Yi;a.figure="Ellipse",a.desiredSize=Xi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Mt(NaN,NaN),this.u=0,this.F=50}ue(Ua,Sr),Ua.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)}},Ua.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new wr,y.type=on.Position,y.locationSpot=Ui;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(cl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ua.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},Ua.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)},Ua.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(Ui)},Ua.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)},Ua.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Mt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ua.prototype.stopTransaction=function(){var a=this.diagram,y=Sr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ua.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ua.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ua.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()},Ua.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()}},Ua.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},ce.Object.defineProperties(Ua.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 wr))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 wr)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}}}),Ua.className="RotatingTool",Ci("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Gh(){Sr.call(this),this.name="ClickSelecting"}ue(Gh,Sr),Gh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Gh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Gh.className="ClickSelectingTool";function sl(){Sr.call(this),this.name="Action",this.pk=null}ue(sl,Sr),sl.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},sl.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()},sl.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))}},sl.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()},sl.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())},sl.prototype.doStop=function(){this.pk=null},sl.className="ActionTool";function lh(){Sr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Mt(0,0)}ue(lh,Sr),lh.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)},lh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},lh.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 mi)x.Zc()&&(cl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);ke(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Mt.allocAt(a.x,a.y);this.isGridSnapEnabled&&cf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Mt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},ce.Object.defineProperties(lh.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}}}),lh.className="ClickCreatingTool";function Vs(){Sr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new mi;a.layerName="Tool",a.selectable=!1;var y=new Yi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ue(Vs,Sr),Vs.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))},Vs.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Vs.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Vs.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=Ve.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Ve.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Vs.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()},Vs.prototype.computeBoxBounds=function(){var a=this.diagram;return new Ce(a.firstInput.documentPoint,a.lastInput.documentPoint)},Vs.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),or?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 tn,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)}},ce.Object.defineProperties(Vs.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}}}),Vs.className="DragSelectingTool";function va(){Sr.call(this),this.name="Panning",this.Xt=new Mt,this.xy=new Mt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener($e.document,"scroll",a.Kw,!1),a.stopTool()}}ue(va,Sr),va.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())},va.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener($e.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},va.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},va.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},va.prototype.doMouseMove=function(){this.move()},va.prototype.doMouseUp=function(){this.move(),this.stopTool()},va.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)}},ce.Object.defineProperties(va.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),va.className="PanningTool",Ci("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Ci("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Ci("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Ci("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Ci("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ql(){this.F=this.u=this.j=this.o=null}ce.Object.defineProperties(ql.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}}}),ql.className="HTMLInfo";function ll(a,y,x){this.text=a,this.hx=y,this.visible=x}ll.className="ContextMenuButtonInfo";function Ya(){Sr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Mt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}ue(Ya,Sr);function Sl(a){var y=new ql;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Hh=y,a.tu=function(){a.stopTool()},y=Gi("div");var x=Gi("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=Gi("style");$e.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",bo,!1),E.addEventListener(y,"selectstart",bo,!1),E.addEventListener(x,"contextmenu",bo,!1)),y.className="goCXforeground",x.className="goCXbackground",$e.document.body&&($e.document.body.appendChild(y),$e.document.body.appendChild(x)),uc=y,bd=x,lc=!0}function bo(a){return a.preventDefault(),!1}Ya.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)},Ya.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ya.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ya.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Se||(a instanceof oe?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},Ya.prototype.doActivate=function(){},Ya.prototype.doMouseDown=function(){if(Sr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof wr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Tl(this)},Ya.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof wr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Tl(this)};function Tl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof ql||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Iu(a,!0),a.isActive||a.stopTool())}Ya.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Iu(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=Hh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof oe?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof wr&&!a.currentContextMenu.visible&&a.stopTool()}}Ya.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ya.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof wr){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 ql&&a.show(y,x,this);this.currentContextMenu=a},Ya.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}},Ya.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof wr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ql&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function uh(a){var y=new tn;return y.add(new ll("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new ll("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new ll("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new ll("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new ll("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new ll("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new ll("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new ll("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new ll("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new ll("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new ll("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new ll("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new ll("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ya.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=uh(this)),uc.innerHTML="",bd.addEventListener("pointerdown",this.tu,!1);var y=this,x=Gi("ul");x.className="goCXul",uc.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=Gi("li"),z.className="goCXli";var tt=Gi("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)}}uc.style.display="block",bd.style.display="block"},Ya.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Hh){uc.style.display="none",bd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(bd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ce.Object.defineProperties(Ya.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof wr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return lc===!1&&Hh===null&&po&&Sl(this),Hh},set:function(a){a===null&&(lc=!0),Hh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Hh=null,lc=!1,bd=null,uc=null;Ya.className="ContextMenuTool",Ci("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function $r(){Sr.call(this),this.name="TextEditing",this.Zh=new Yr,this.ia=null,this.V=kd,this.vj=null,this.qa=Md,this.u=1,this.F=!0,this.o=null,this.j=new ql,this.kt=null,hc(this,this.j)}ue($r,Sr);function hc(a,y){if(po){var x=Gi("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(dc)):b==="Tab"?(a.acceptText(ef),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Md){var E=a.kt;a.qa===cc&&(a.qa=fc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Md){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 Yr&&z instanceof $r)if(z.state===gc)x.style.border="3px solid red",x.focus();else{var tt=E.ga(Ui),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)}}}$r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||hh&&hh!==this&&(hh.acceptText(_l),hh&&hh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Yr&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===kd&&!y.isSelected||this.starting===nf&&2>a.lastInput.clickCount)):!1},$r.prototype.doStart=function(){hh=this,this.textBlock!==null&&this.doActivate()},$r.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 Yr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=cc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Ce(this.textBlock.ga(ur),this.textBlock.ga(zr));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},$r.prototype.doCancel=function(){this.stopTool()},$r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},$r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(_l)},$r.prototype.acceptText=function(a){switch(a){case _l:this.qa===Fd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===cc||this.qa===gc||this.qa===fc)&&(this.qa=ug,lg(this));break;case tf:case dc:case ef:(dc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===cc||this.qa===gc||this.qa===fc)&&(this.qa=ug,lg(this))}};function lg(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=Fd,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=gc,a.doError(b,z))}}$r.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)},$r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},$r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Md,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},$r.prototype.doStop=function(){hh=null},$r.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)))},$r.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},ce.Object.defineProperties($r.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)}}}),$r.prototype.measureTemporaryTextBlock=$r.prototype.Lx;var tf=new Ue($r,"LostFocus",0),_l=new Ue($r,"MouseDown",1),ef=new Ue($r,"Tab",2),dc=new Ue($r,"Enter",3),$0=new Ue($r,"SingleClick",0),kd=new Ue($r,"SingleClickSelected",1),nf=new Ue($r,"DoubleClick",2),Md=new Ue($r,"StateNone",0),cc=new Ue($r,"StateActive",1),fc=new Ue($r,"StateEditing",2),ug=new Ue($r,"StateValidating",3),gc=new Ue($r,"StateInvalid",4),Fd=new Ue($r,"StateValidated",5),hh=null;$r.className="TextEditingTool",$r.LostFocus=tf,$r.MouseDown=_l,$r.Tab=ef,$r.Enter=dc,$r.SingleClick=$0,$r.SingleClickSelected=kd,$r.DoubleClick=nf,$r.StateNone=Md,$r.StateActive=cc,$r.StateEditing=fc,$r.StateValidating=ug,$r.StateInvalid=gc,$r.StateValidated=Fd,Ci("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function As(a){mc||(hg(),mc=!0),this.H=gu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=zu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new en,this.ce=new ya,this.ce.Yd=this,this.Ei=new en,this.pu=new en,this.Sr=new en,this.pr=new en,a&&Object.assign(this,a)}As.prototype.Xe=function(a){this.H=a},As.prototype.canStart=function(){return!0};function fu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Sa(a.H),a.zb=!0)}function rf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===zu?(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===dg&&y.vc.clear(),a.Qw=!!(a.Pk===vc&&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(),yc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==Ia&&E!==null&&(delete E.start.scale,delete E.end.scale),$e.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&os(x),mg(x),a.zb=!1,y.start(),y.bc&&(dh(a),x.Ya(),cg(y,0),Ys(x,!0),Zh(a),x.R("AnimationStarting",a)))}))}}function Ru(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function of(a,y,x,E){a.isTicking||Ru(a)||y instanceof gn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ct=As.prototype,Ct.fv=function(a){return this.ce.fv(a)},Ct.Xu=function(a){return this.ce.Xu(a)};function af(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 oe&&ot.diagram!==null||ot instanceof Se){rt=!0;break t}}rt=!1}rt?Sc(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(dh(b),Ys(b.H),Zh(b)),$e.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),$e.requestAnimationFrame(function(){x()}))}function Wp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function dh(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 Zh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ct.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(),yc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),yc(y,this.H)},Ct.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))},Ct.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ps(this,a))},Ct.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ch(this.ce,y,"position",y.position,y.position),ps(this,a))};function Gp(a,y,x){!a.zb||y.D(x)||Ru(a)||(a.H.pi||(y=x.copy()),ch(a.ce,a.H,"position",y,x))}function sf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ps(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Kh(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 hg(){function a(x,E,b,z,tt,rt){x.position=new Mt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new Pe;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 Mt(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 Mt(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 Mt(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 Mt(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 Ce(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=Kh(E,b,tt,rt,z)}),y.add("stroke",function(x,E,b,z,tt,rt){x.stroke=Kh(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=Kh(E,b,tt,rt,z)}),y.add("areaBackground",function(x,E,b,z,tt,rt){x.areaBackground=Kh(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)}),pc=y}ce.Object.defineProperties(As.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&&wn(a,">= 1",As,"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}}}),As.prototype.stopAnimation=As.prototype.Cc;var pc=null,mc=!1,zu=new Ue(As,"Default",1),vc=new Ue(As,"AnimateLocations",2),dg=new Ue(As,"None",3);As.className="AnimationManager",As.defineAnimationEffect=function(a,y){mc||(hg(),mc=!0),pc.add(a,y)},As.Default=zu,As.AnimateLocations=vc,As.None=dg;function ya(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=Bd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=An,this.vc=new Pe,this.Tt=new Pe,this.yl=new en,this.Ut=new en,this.dw=ph,a&&Object.assign(this,a)}ya.prototype.suspend=function(){this.Xk=!0},ya.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Sc(this,!0),dh(this.Yd),Ys(this.H),Zh(this.Yd),this.H.redraw()};function yc(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}Ct=ya.prototype,Ct.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 Se?a=x:x instanceof oe&&(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===zu&&this===y.defaultAnimation&&(this.Lp=Hp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Ec),dh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Zh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,af(y,this),this)},Ct.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ct.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof Se?this.H=a:a instanceof oe&&a.diagram!==null&&(this.H=a.diagram)),a instanceof mi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ch(this,a,y,x,E,b),this};function ch(a,y,x,E,b,z){var tt=a.vc;if(y instanceof Se&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Hu(E),av(),E=[Ws.j,Ws.u,Ws.o,Ws.F],Hu(b),av(),b=[Ws.j,Ws.u,Ws.o,Ws.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,st=rt.end;ot[x]===void 0&&(ot[x]=Vh(E)),st[x]=Vh(b)}else ot={},st={},ot[x]=Vh(E),st[x]=Vh(b),rt=ot.position,y instanceof oe&&rt instanceof Mt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new Uh(ot,st,z),tt.add(y,rt);tt=ot[x],tt instanceof Mt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof mi?rt.Ku.location=Vh(y.location):z&&(rt.Ku[x]=Vh(E))}function Vh(a){return a instanceof Mt||a instanceof Ve?a.copy():a}Ct.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ct.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Sc(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),dh(x),cg(a,b),Ys(a.H,!0),Zh(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 cg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof oe&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?tt.start:tt.end;var ot=pc,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)}}}Ct.stop=function(){return this.bc?(this.Ml(!0),this):this},Ct.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,dh(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=pc;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 mi&&(tt.location=ut.location),rt.nv&&tt instanceof mi&&tt.Zb(!1)}if(y.As.clear(),xc(y,!1),y.Ya(),y.N(),Ys(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()}Ys(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Zh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),yc(this,null),x.Ml(this),y.$b())}},Ct.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Oi&&(E=y.placeholder),E!==null?(x=E.ga(ur),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Mt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Oi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Fn&&this.Cj(E,y)},Ct.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Oi&&(x=y.placeholder),x!==null){var E=x.ga(ur);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 Oi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Fn&&this.Aj(E,y)}},Ct.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},ce.Object.defineProperties(ya.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&wn(a,">= 1",ya,"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:Ht("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}}}),ya.prototype.getTemporaryState=ya.prototype.Ez,ya.prototype.stop=ya.prototype.stop,ya.prototype.add=ya.prototype.add,ya.prototype.addTemporaryPart=ya.prototype.Iy;function Bd(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Hp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}ya.className="Animation",ya.EaseLinear=function(a,y,x,E){return x*a/E+y},ya.EaseInOutQuad=Bd,ya.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},ya.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},ya.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},ya.EaseOutExpo=Hp;function Uh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Uh.className="AnimationState";function xl(a,y,x){this.xd=null,this.rf=a,this.so=x||fg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Yh))}xl.prototype.copy=function(){var a=new xl(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 Zp(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))}ce.Object.defineProperties(xl.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 fg=new Ue(xl,"Default",1),Yh=new Ue(xl,"Immediate",2),Dd=new Ue(xl,"Bundled",3);xl.className="AnimationTrigger",xl.Default=fg,xl.Immediate=Yh,xl.Bundled=Dd;function ia(a){ki(this),this.H=null,this.Pa=new tn,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)}Ct=ia.prototype,Ct.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ma(x)}a.clear(),this.Zq.length=0},Ct.Xe=function(a){this.H=a},Ct.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 Oi?b++:ot instanceof Fn?E++:ot instanceof gn?z++:ot instanceof wr?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&&yr(E)&&(rt+=" #"+yr(E)),x instanceof Fn?rt+=" "+bi(E):x instanceof gn&&(rt+=" "+bi(x.fromNode)+" "+bi(x.toNode));return y+" "+this.Pa.count+": "+rt},Ct.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=Mt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||id(rt)!==!1)&&rt.isVisible()&&(b.assign(a),yn(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Mt.free(b),rt}return Mt.free(b),null},Ct.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof tn||E instanceof en||(E=new en),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Mt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((b!==!0||id(ot)!==!1)&&ot.isVisible()){z.assign(a),yn(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 Mt.free(z),E},Ct.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 tn||b instanceof en||(b=new en),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||id(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},Ct.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||id(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},Ct.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 tn||b instanceof en)&&(z=b),b=!0),z instanceof tn||z instanceof en||(z=new en),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Mt.alloc(),ot=Mt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||id(ft)!==!1)&&ft.isVisible()){rt.assign(a),yn(rt,ft.oe),ot.h(a.x+y,a.y),yn(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 Mt.free(rt),Mt.free(ot),z},Ct.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Dn();for(var b=Dn(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof gn){if(tt.fd===!1)continue}else if(tt instanceof wr&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Gr(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]);Un(a),Un(b)}}};function ju(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ct.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=ju(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=Ce.alloc(),ot=0;ot<E;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(Ce.free(rt),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Kp(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=ju(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,st=Ce.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,ot,st,!1)}Ce.free(st),y.globalAlpha=tt}}}Ct.Oj=function(a,y,x,E,b,z,tt){if(tt&&!id(y))a.Hs(y);else{if(E!==null&&y instanceof gn&&(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 Es?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&&(mo(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(mo(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),mo(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))}},Ct.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(io,a,this,y,x,E,b)},Ct.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Ma(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)),lf(this,a,y),a},Ct.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,Ma(y),a};function lf(a,y,x){if(y=Vp(a,y,x),x instanceof Oi&&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&&lf(a,-1,y)}x.svg!==null&&x.svg.remove()}function Vp(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}ce.Object.defineProperties(ia.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===""&&Ht("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ht("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)&&wn(a,"0 <= value <= 1",ia,"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))}}}),ia.prototype.findObjectsNear=ia.prototype.og,ia.prototype.findObjectsIn=ia.prototype.Cf,ia.prototype.findObjectsAt=ia.prototype.ji,ia.prototype.findObjectAt=ia.prototype.ic,ia.className="Layer";function Se(a,y){if(om||(ba(),om=!0),ki(this),gu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,po){var x=this,E=function(){x.removeEventListener($e.document,"DOMContentLoaded",E,!1),x.setRTL()};$e.document.body!==null?this.setRTL():x.addEventListener($e.document,"DOMContentLoaded",E,!1)}this.ol=null,Sf.add("Model",Ir);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===io&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Up(this),this.model=hy(),this.Wg=!0,Xp(this),this.layout=new lo,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 am,a!==void 0&&(typeof a=="string"||$e.Element&&a instanceof Element?pg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Xh,gu;function Up(a){a.Yd=new As,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new tn,a.pj=new Pe,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Mt(NaN,NaN).freeze(),a.du=new Mt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Mt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Fi,a.zu=new Mt(NaN,NaN).freeze(),a.ut=new Ce(NaN,NaN,NaN,NaN).freeze(),a.rj=new Hi(0,0,0,0).freeze(),a.sj=ph,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ia,a.zk=Yo,a.Fg=Ia,a.pq=Yo,a.yt=ur,a.Bt=ur,a.Fc=!0,a.pn=!1,a.De=new en,a.Eh=new Pe,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Hi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ma,a.bq.diagram=a,a.Qg=new ma,a.Qg.diagram=a,a.cj=new ma,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new en,a.Ht=!0,a.uu=mh,a.pw=!1,a.wu=Ac,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 Pe,a.Xn=new tn,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 Hi(5).freeze(),a.Hw=new en().freeze(),a.Nt=999999999,a.nw=new en().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new en,a.ow=new en,a.Xh=null,a.aw=new Ve(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Mt,bounds:new Ce,Py:new Ve,bA:new Ve,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Ce(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ve(NaN,NaN).freeze(),a.Sp=new Ce(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Pe;var y=new Fn,x=new Yr;x.bind(new ko("text","",bi)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Fn,x=new Yr,x.stroke="brown",x.bind(new ko("text","",bi)),y.add(x),a.Lg.add("Comment",y),y=new Fn,y.selectable=!1,y.avoidable=!1,x=new Yi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ve(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Pe,y=new Oi,y.selectionObjectName="GROUPPANEL",y.type=on.Vertical,x=new Yr,x.font="bold 12pt sans-serif",x.bind(new ko("text","",bi)),y.add(x),x=new on(on.Auto),x.name="GROUPPANEL";var E=new Yi;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new qa,E.padding=new Hi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Pe,y=new gn,x=new Yi,x.isPanelMain=!0,y.add(x),x=new Yi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new gn,x=new Yi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new wr,y.type=on.Auto,x=new Yi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new qa,x.margin=new Hi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new wr,y.type=on.Link,x=new Yi,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 Ir,a.toolManager=new qr,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=Yp(),a.eq=null,a.fq=Qn,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 Mt,a.zy=500,a.wp=new Mt,a.wq=!1}Se.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),jd=null,$h="",gg(this,!1),this.Xn.clear(),Df(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function gg(a,y){a.animationManager.Cc(!0),a.Hw=new en().freeze(),a.nw=new en().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==b&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Df(),a.Og.clear(),Fr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Yp(){return null}Se.prototype.reset=function(){this.clear(),this.vb=!0,Up(this),tu(this),this.Wg=!0,Xp(this),this.layout=new lo,this.Wg=!1,this.model=hy(),this.model.undoManager=new ho,this.vb=this.rn=!1,this.N()},Se.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=$e.document.body);var y=Gi("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},Se.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=$e.document.body);var y=0;if(po){var x=rm;y=Xh,x===null&&(x=rm=Gi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Xh=Gi("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||or||(y=11)}this.Db=y,this.Gw=!0},Se.prototype.qb=function(a){a.classType===Se&&(this.autoScale=a)},Se.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 pg(a,y){if(po){if(y!=null||Ht("Diagram setup requires an argument DIV."),a.Ka!==null&&Ht("Diagram has already completed setup."),typeof y=="string"?a.Ka=$e.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ht("No DIV or DIV id supplied: "+y),a.Ka===null&&Ht("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ht("Invalid div id; div already has a Diagram associated with it."),!a.ol&&$e.ResizeObserver){var x=wi(function(){a.$b()},250);a.ol=new $e.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}$e.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=$e.go;var b=new dl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",$e.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),Cg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new dl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,po){b=Gi("div");var z=Gi("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=Qp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=wi(function(){a.Yh=null,a.N()},300),a.Ov=wi(function(){mg(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Us(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(),wl(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Us(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=xg(a,tt,!0,!1,!0,st),Td(a,tt,ot),ot.targetDiagram=Sg(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():wl(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=xg(a,tt,!1,!1,!1,rt[1]!==null);var ot=$e.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,Td(a,ut,rt),rt.targetObject=null,a.doMouseMove(),wl(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=xg(a,tt,!1,!0,!0,!1);var st=$e.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 Se&&st.H!==a&&Td(st.H,tt,ot),st===null&&(st=tt.target),Td(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=Sg(tt,st),ot.targetObject=null,a.doMouseUp(),wl(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"+kc[1]+kc[2]+"wI"+Gd.slice(1,5)]["b"+Dx.slice(1,y)](E.Z,bc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Se.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Se.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener($e,"resize",a.Ov,!1)}function os(a){30<a.Sq&&(a.Yh=1)}function xc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ei&&Ei.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Se.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:$e.devicePixelRatio||1},Se.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Se.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Se.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Se.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Se.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Se.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Se.prototype.doFocus=function(){this.focus()},Se.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=$e.scrollX||$e.pageXOffset,y=$e.scrollY||$e.pageYOffset;this.ta.focus(),$e.scrollTo(a,y)}},Se.prototype.Oy=function(){this.H.R("GainedFocus")},Se.prototype.Ny=function(){this.H.R("LostFocus")};function mg(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===Ia&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Xp(a){var y=new ia;y.name="Background",a.Al(y),y=new ia,y.name="",a.Al(y),y=new ia,y.name="Foreground",a.Al(y),y=new ia,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ia,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ia,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new on(on.Grid);y.name="GRID";var x=new Yi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Yi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Yi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Yi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Yi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Yi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new mi,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 Qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Rd(this.H)}function qp(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Rd(this.H)}Se.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,wt=b.right,bt=b.bottom;b=this.scale;var Gt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Gt=Gt+a.scrollWidth-a.clientWidth;break;case"reverse":Gt=a.scrollWidth-Gt-a.clientWidth}var It=Gt;mt<ot||yt<st?(Gt=Mt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==It&&(Gt.x=It/b+tt,this.ju=It),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Gt.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Gt,Mt.free(Gt),this.Ee=this.qr=!1):(Gt=Mt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Gt.h(It+tt,this.position.y)),ut>wt&&(this.position=Gt.h(-(y.scrollWidth-this.Aa)+It-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<E&&(this.position=Gt.h(this.position.x,a.scrollTop+rt)),z>bt&&(this.position=Gt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Mt.free(Gt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,wt=b.right,z=E.bottom,bt=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,mt>=ot&&tt>=ft&&ut<=wt&&(x.style.width="1px"),yt>=st&&rt>=E&&z<=bt&&(x.style.height="1px"))}},Se.prototype.computeBounds=function(a){return a===void 0&&(a=new Ce),Sa(this),vg(this,a)};function vg(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}Se.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(vn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof gn||(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 gn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new Ce(NaN,NaN,0,0):x};function ul(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=Mt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=Ce.allocAt(0,0,E.width,E.height);var b=Mt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,Ce.free(E),Mt.free(b),Mt.free(x)}x=a.yh,y&&a.Fg!==Ia&&(x=a.Fg);var z=x!==Ia?Nd(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()?Ui:ot),yg(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,ae.B(z.x,x)&&ae.B(z.y,E)&&ae.B(z.width,b)&&ae.B(z.height,tt)||a.onViewportBoundsChanged(new Ce(x,E,b,tt),z,y,!1)}}function Nd(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===Rs?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===td?(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}Se.prototype.zoomToFit=function(){var a=this.sj;this.sj=ph,this.scale=Nd(this,Rs),a!==ph&&(ul(this,!1),yg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ct=Se.prototype,Ct.BA=function(a,y){y===void 0&&(y=Rs);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===Rs||y===td)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===td?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 Mt(a.x,a.y)}},Ct.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Mt(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))},Ct.zz=function(a){if(a instanceof oe){this.eq=a;var y=Mt.alloc();this.fq=this.op(a.ga(ur,y)),Mt.free(y)}else this.eq=null,this.fq=Qn};function yg(a,y,x,E,b,z){var tt=Mt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var st=Mt.alloc();st=a.eq.ga(ur,st),rt=st.x-a.fq.x/a.scale,ot=st.y-a.fq.y/a.scale,b=Ki,Mt.free(st)}(z||a.scrollMode===ph)&&(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),Gp(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),tu(a),Mt.free(tt)}Ct.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=pu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof mi)return a}else if(a=pu(this,a,function(x){return x.part}),a instanceof mi)return a;return null},Ct.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Sa(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 pu(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Sa(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}Ct.lz=function(a,y,x){return y===void 0&&(y=!0),wc(this,a,function(E){return E.part},y?function(E){return E instanceof mi&&E.canSelect()}:null,x)};function wc(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof tn||b instanceof en||(b=new en),Sa(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Ct.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof tn||E instanceof en||(E=new en),Sa(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Ct.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),uf(this,a,function(b){return b instanceof mi&&(!x||b.canSelect())},y,E)},Ct.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof tn||b instanceof en||(b=new en),Sa(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},Ct.Nu=function(a,y,x,E,b,z){var tt=new en;Sa(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 uf(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 tn||b instanceof en||(b=new en),Sa(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}Ct.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Pc(this,a,y,function(z){return z instanceof mi&&(!E||z.canSelect())},x,b)},Ct.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 tn||b instanceof en)&&(z=b),b=!0),z instanceof tn||z instanceof en||(z=new en),Sa(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 Pc(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 tn||b instanceof en)&&(z=b),b=!0),z instanceof tn||z instanceof en||(z=new en),Sa(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}Se.prototype.acceptEvent=function(a){return Us(this,a,a instanceof MouseEvent)};function Us(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Td(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),or&&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=Sg(y,y.target),E.targetObject=null,E}function Sg(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 xg(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,or&&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 wl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Se.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Us(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(),wl(x,a)},Se.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Us(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(),wl(x,a)},Se.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Us(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),wl(x,a)},Se.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Us(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),wl(x,a)},Se.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Mt(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?yn(new Mt(y,a),this.Ab):new Mt(y,a)};function Td(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=Mt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Mt.free(y)):x.documentPoint.h(tt,rt)}function wg(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))}}Se.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function _p(a){a.ld||Sa(a),a.Va()}Se.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ct=Se.prototype,Ct.Pz=function(){return this.kg},Ct.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Ys(this),this.hf=!1,this.du=new Mt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Mi(function(){E.ld=!1,fu(y,"Model"),a(E)},1)},Ct.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;$e.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ct.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Ys(this))};function Jh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Rd(a)||(y&&Sa(a),x&&ul(a,!1))}function Ys(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];Ro(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||mg(a),Jh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&($l(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Sa(a),z=!1,(!a.hf||a.xh)&&(a.hf?Bg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Bg(a,!1)),z=!0),a.Jk=!1,Sa(a),a.ou||_p(a),Jh(a,!0,!1),tt=!1,z?(x=Ce.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Pg(a)),a.R("LayoutCompleted"),Jh(a,!0,!1),Ce.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ia?a.scale=Nd(a,a.Fg):a.yh!==Ia?a.scale=Nd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),ul(a,!0)),z&&tt&&a.eb("Initial Layout"),Sa(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Pg(a){if(a.Fg!==Ia)a.scale=Nd(a,a.Fg);else if(a.yh!==Ia)a.scale=Nd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}ul(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),$l(a)}function Sa(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new en,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Oi&&E.U&65536&&(E.U=E.U^65536)})}}Ct.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Oi||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Oi&&x.isVisible()&&Cc(this,x);for(a.reset();a.next();)x=a.value,x instanceof gn&&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 wr&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Cc(a,y){for(var x=Dn(),E=Dn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Oi?(js(z)||Ja(z)||nd(z))&&Cc(a,z):z instanceof gn?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(Un(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();Un(E)}Ct.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Ct.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ht("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Id(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),fh(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?Hd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Fi.prototype.Cd=Fi.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Id(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),fh(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?Hd(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Fi.prototype.Cd=Fi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Ei&&Ei.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 hf(a,y,x,E,b,z,tt,rt,ot,st){if(a.Ka!==null){a.ta===null&&Ht("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),st===void 0&&(st=!1),Id(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 Ce(z.x,z.y,E.width/b,E.height/b),wt=yt.copy();wt.Co(x),$l(a,wt),Sa(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 bt=a.Mb;y.scale(bt,bt);var Gt=Fi.alloc();Gt.reset(),Gt.translate(x.left,x.top),Gt.scale(b),z.x===0&&z.y===0||Gt.translate(-z.x,-z.y),y.setTransform(Gt.m11,Gt.m12,Gt.m21,Gt.m22,Gt.dx,Gt.dy),y.yc(),y instanceof Es&&Xy(y,Gt.m11,Gt.m12,Gt.m21,Gt.m22,Gt.dx,Gt.dy),Fi.free(Gt),fh(a,y),y.globalAlpha=a.pb;var It=a.Qj("Grid");if(tt){var Xt=new en,Qt=tt.iterator;for(Qt.reset();Qt.next();){var qt=Qt.value;qt instanceof mi&&(st||qt.layer!==It)&&(qt.Gj(),Xt.add(qt))}for(st=0;st<mt;st++)Kp(ft[st],y,a,Xt,ot);Xt.each(function(ye){return ye.Gj()})}else for(Xt=0;Xt<mt;Xt++){var re=ft[Xt];re===It?st&&re.gc(y,a,!0):re.gc(y,a,ot)}a.$i=!1,a.Yf&&Hd(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,mt,a,a.viewportBounds),$l(a),a.ib instanceof Es&&(a.ib.Nj.PA(),a.redraw())}}}Ct.Gf=function(a){return this.Rg[a]},Ct.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ct.Tx=function(){this.Rg=new ci,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(or||$i),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function fh(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ct.Ql=function(a){return this.on[a]},Ct.sA=function(a,y){this.on[a]=y},Ct.Sx=function(){this.on=new ci,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ct.set=function(a){return Object.assign(this,a),this},Ct.Du=function(a){return this.nm(a)},Ct.nm=function(a){return Od(this,a),this};function Od(a,y){var x=a instanceof on,E=a instanceof Se,b;for(b in y){b===""&&Ht("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])),ke(z)?tt=b.substr(rt+1):Ht("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!Pi(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&Pi(a.toolManager,tt))z=a.toolManager;else if(E&&em(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof si&&tt==="Changed"){a.Pe(y[tt]);continue}else Ht('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof oe&&z.Vw(tt)}}Ct.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Pe,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ct.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")},Se.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!==Ec&&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=Ce.alloc(),Fg(this,this.computeBounds(E)),Ce.free(E)),E=this.ta,E===null||E instanceof eu)))){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),Hd(this.Yf,this)&&a.clearRect(0,0,ot,st),E=Dn(),a=Dn(),yt=Math.abs(z),mt=Math.abs(y);var wt=ut===0?0:b-yt;ut=Mt.allocAt(wt,0),yt=Mt.allocAt(yt+wt,rt),a.push(new Ce(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 bt=this.Ab;if(bt.reset(),bt.scale(tt,tt),this.Ca!==1&&bt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&bt.translate(-tt.x,-tt.y),yn(ut,bt),yn(yt,bt),E.push(new Ce(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),wt=ft===0?0:rt-mt,ut.h(0,wt),yt.h(b,mt+wt),a.push(new Ce(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),yn(ut,bt),yn(yt,bt),E.push(new Ce(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),Hd(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 Ce(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y))),yn(ut,bt),yn(yt,bt),E.push(new Ce(Math.min(ut.x,yt.x),Math.min(ut.y,yt.y),Math.abs(ut.x-yt.x),Math.abs(ut.y-yt.y)))),Mt.free(ut),Mt.free(yt),Jh(this,!1,!0),this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Id(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),fh(this,b),b.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=E,tt.visible&&tt.pb!==0){st=ju(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,mt=Ce.alloc(),yt=tt.Pa.s,bt=yt.length,wt=ot.length;for(var Gt=0;Gt<bt;Gt++){var It=yt[Gt],Xt=Jd(It,It.actualBounds);t:{for(var Qt=2/ut,qt=4/ut,re=0;re<wt;re++){var ye=ot[re];if(ye.width!==0&&ye.height!==0&&Xt.Vu(ye.x-Qt,ye.y-Qt,ye.width+qt,ye.height+qt)){Xt=!0;break t}}Xt=!1}Xt&&tt.Oj(b,It,this,ft,ut,mt,!0)}Ce.free(mt),b.globalAlpha=st}b.restore(),b.Vc(!0),this.Yf&&Hd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Un(E),Un(a),this.ld=!1}}else this.bd();x&&(os(this),this.bd(),xc(this,!0))}else x?(os(this),this.bd(),xc(this,!0)):this.bd()}};function Id(a){a.pn!==!1&&(a.pn=!1,Cg(a,a.Aa,a.ya))}function Cg(a,y,x){tu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Rd(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,tu(a)),!a.hf||!a.viewportBounds.w())return!0;var wt=a.ku,bt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Gt=a.documentBounds,It=0,Xt=0,Qt=0,qt=0,re=ut.width,ye=ut.height,En=a.rj;a.contentAlignment.sb()?(Gt.width>re&&(It=En.left,Xt=En.right),Gt.height>ye&&(Qt=En.top,qt=En.bottom)):(It=En.left,Xt=En.right,Qt=En.top,qt=En.bottom);var qn=Gt.width+It+Xt,Kn=Gt.height+Qt+qt;En=a.scale;var fn=qn>ot/En,Ze=Kn>st/En;if(!(z||a.gf||a.Be||fn||Ze))return!0;It=Gt.x-It,ot=ut.x,Xt=Gt.right+Xt,st=ut.right+tt,Qt=Gt.y-Qt;var Ti=ut.y;Gt=Gt.bottom+qt,ut=ut.bottom+rt;var Bi="1px";if(qt="1px",a.scrollMode===ph&&(fn||Ze)&&(fn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(fn=1,It+1<ot&&(fn=Math.max((ot-It)*En+a.Aa,fn)),Xt>st+1&&(fn=Math.max((Xt-st)*En+a.Aa,fn)),re+tt+1<qn&&(fn=Math.max((qn-re)*En+a.Aa,fn)),Bi=fn.toString()+"px"),Ze&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(fn=1,Qt+1<Ti&&(fn=Math.max((Ti-Qt)*En+a.ya,fn)),Gt>ut+1&&(fn=Math.max((Gt-ut)*En+a.ya,fn)),ye+rt+1<Kn&&(fn=Math.max((Kn-ye)*En+a.ya,fn)),qt=fn.toString()+"px")),fn=Bi!=="1px",Ze=qt!=="1px",fn&&Ze||!fn&&!Ze||(Ze&&(st-=a.Db),fn&&(ut-=a.Db),qn<re+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,It+1<ot&&(tt=Math.max((ot-It)*En+a.Aa,tt)),Xt>st+1&&(tt=Math.max((Xt-st)*En+a.Aa,tt)),re+1<qn&&(tt=Math.max((qn-re)*En+a.Aa,tt)),Bi=tt.toString()+"px"),fn=Bi!=="1px",tt=a.ya,fn!==a.Be&&(tt=fn?a.ya-a.Db:a.ya+a.Db),Kn<ye+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,Qt+1<Ti&&(rt=Math.max((Ti-Qt)*En+tt,rt)),Gt>ut+1&&(rt=Math.max((Gt-ut)*En+tt,rt)),ye+1<Kn&&(rt=Math.max((Kn-ye)*En+tt,rt)),qt=rt.toString()+"px"),Ze=qt!=="1px"),a.qr&&fn===a.Be&&Ze===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(fn!==a.Be&&(Bi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=fn,bt.style.width=Bi,Ze!==a.gf&&(qt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Mt.alloc(),Ze?(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)),Mt.free(rt))),z&&tu(a),a.gf=Ze,bt.style.height=qt,a.gu=!0,z&&(a.pn=!0),y=wt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(re+1<qn?y=(a.position.x-It)*En:It+1<ot?y=wt.scrollWidth-wt.clientWidth:Xt>st+1&&(y=a.position.x*En)),a.tn)switch(a.bu){case"negative":y=-(wt.scrollWidth-y-wt.clientWidth);break;case"reverse":y=wt.scrollWidth-y-wt.clientWidth}return wt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ye+1<Kn?wt.scrollTop=(a.position.y-Qt)*En:Qt+1<Ti?wt.scrollTop=wt.scrollHeight-wt.clientHeight:Gt>ut+1&&(wt.scrollTop=a.position.y*En)),ot=a.Aa,st=a.ya,wt.style.width=ot+(a.gf?a.Db:0)+"px",wt.style.height=st+(a.Be?a.Db:0)+"px",x!==ot||E!==st||a.animationManager.zb?(x=Ce.allocAt(b,ft,mt,yt),a.onViewportBoundsChanged(x,a.viewportBounds,En,z),Ce.free(x),!1):!0}Ct=Se.prototype,Ct.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ht("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&&Ht('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(wo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ct.oi=function(a){this.partManager.oi(a);var y=this;Ud(a,function(x){zd(y,x)}),(a instanceof wr||a instanceof Oi&&a.placeholder!==null)&&a.v(),a.data!==null&&Ud(a,function(x){sy(y.partManager,x)}),Ja(a)!==!0&&nd(a)!==!0||this.De.add(a),R1(a,!0,this),j1(a)?(a.actualBounds.w()&&this.N(Jd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jd(a,a.actualBounds)),this.$b()},Ct.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ud(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),j1(a)?(a.actualBounds.w()&&this.N(Jd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jd(a,a.actualBounds)),this.$b()},Ct.remove=function(a){Lg(this,a,!0)};function Lg(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(Ao,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ct.Is=function(a,y){if(y===void 0&&(y=!1),vn(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new en,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ct.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Se.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=df(this)),this.toolManager!==null){var b=new Pe;if(a!==null)if(vn(a))for(var z=0;z<a.length;z++)mu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)mu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)mu(this,b,a.value,x,E);for(a=this.nodes;a.next();)mu(this,b,a.value,x,E);for(a=this.links;a.next();)mu(this,b,a.value,x,E)}Qh(this,b,y,E,x)}};function mu(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=df(a)),x instanceof Fn){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Oi&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)mu(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)&&mu(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)mu(a,y,x.value,E,b)}else if(x instanceof gn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)mu(a,y,x.value,E,b);else x instanceof wr||y.add(x,a.Pd(b,x,x.location))}function Qh(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Mt.alloc(),tt=Mt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||ff(a,y);for(var rt=Dn(),ot=Dn(),st=y.iterator,ut=Mt.alloc();st.next();){var ft=st.key,mt=st.value;if(ft.Zc()){var yt=Ag(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 Mt),mt.shifted.assign(ut.re(yt)))}else st.key instanceof gn&&ot.push(st.sa)}for(Mt.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 Mt),ft.node.location=z.add(ft.Su.shifted);for(b=Mt.alloc(),st=Mt.alloc(),ft=ot.length,mt=0;mt<ft;mt++){var wt=ot[mt];if(yt=wt.key,yt instanceof gn)if(yt.suspendsRouting){yt.Tg=null,ut=yt.fromNode;var bt=yt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(bt=wt.value.point,yt.dragComputation===null)y.add(yt,a.Pd(E,yt,tt)),Ch(yt,tt.x-bt.x,tt.y-bt.y);else{wt=Mt.allocAt(0,0),(ut=yt.i(0))&&ut.w()&&wt.assign(ut);var Gt=ut=Mt.alloc().assign(wt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Gt=Mt.alloc(),cf(a,yt,ut,Gt,E)),ut.assign(yt.dragComputation(yt,ut,Gt)).re(wt),y.add(yt,a.Pd(E,yt,ut)),Ch(yt,ut.x-bt.x,ut.y-bt.y),Mt.free(wt),Mt.free(ut),Gt!==ut&&Mt.free(Gt)}else ut!==null&&(b.assign(ut.location),Gt=y.I(ut),Gt!==null&&b.re(Gt.point)),bt!==null&&(st.assign(bt.location),Gt=y.I(bt),Gt!==null&&st.re(Gt.point)),ut!==null&&bt!==null?b.Xa(st)?(ut=wt.value.point,bt=z,bt.assign(b),bt.re(ut),y.add(yt,a.Pd(E,yt,b)),Ch(yt,bt.x,bt.y)):(yt.suspendsRouting=!1,yt.bb()):(wt=wt.value.point,ut=ut!==null?b:bt!==null?st:tt,y.add(yt,a.Pd(E,yt,ut)),Ch(yt,ut.x-wt.x,ut.y-wt.y))}else(yt.fromNode===null||yt.toNode===null)&&(ut=wt.value.point,y.add(yt,a.Pd(E,yt,tt)),Ch(yt,tt.x-ut.x,tt.y-ut.y))}Mt.free(z),Mt.free(tt),Mt.free(b),Mt.free(st),Un(rt),Un(ot),x||(Sa(a),qh(a,y))}}Se.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Mt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Mt.alloc(),cf(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&&Mt.free(b),E};function df(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function cf(a,y,x,E,b){if(b===void 0&&(b=df(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=Mt.allocAt(0,0),z.yi(0,0,a,y,b),ae.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Mt.free(z)}}function ff(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof gn&&(y.suspendsRouting=!0)}function qh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof gn&&(x.suspendsRouting=!1,Yv(x)&&x.bb())}a.Mr=!1}}function Ag(a,y,x){return y=y.containingGroup,y!==null&&(a=Ag(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ct=Se.prototype,Ct.Pd=function(a,y,x){if(x===void 0)return new Wu(An);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Wu(new Mt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Wu(x.copy())};function Eg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ht("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ht("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ht("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ht("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&&Ht("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ct.Al=function(a){Eg(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(wo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ct.Ww=function(a,y){Eg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ao,"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(wo,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Ct.Cy=function(a,y){Eg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ao,"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(wo,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Ct.kA=function(a){if(a.diagram!==this&&Ht("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(Ao,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ct.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ct.Yw=function(a){return this.pf===null&&(this.pf=new tn),this.pf.add(a),this.model.Pe(a),this},Ct.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ct.Pe=function(a){return this.zg===null&&(this.zg=new tn),this.zg.add(a),this},Ct.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ct.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Aa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ct.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new ao;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)},Ct.g=function(a,y,x,E,b){this.cb(io,a,this,y,x,E,b)},Se.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===io){var b=a.object;if(ro(b,a.propertyName,a.I(y)),b instanceof oe){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===wo){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof on)if(typeof rt=="number"&&ot instanceof oe){y?tt.pc(rt):tt.Gb(rt,ot);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&ot instanceof zo&&(ot.isRow?h1(tt,rt,y?void 0:ot):d1(tt,rt,y?void 0:ot));else if(tt instanceof ia){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof mi&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof Se?typeof rt=="number"&&ot instanceof ia&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):Ht("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Ao){var ft=a.object,mt=a.oldParam,yt=a.oldValue;if(ft instanceof on)typeof mt=="number"&&yt instanceof oe?y?ft.Gb(mt,yt):ft.pc(mt):typeof mt=="number"&&yt instanceof zo&&(yt.isRow?h1(ft,mt,y?yt:void 0):d1(ft,mt,y?yt:void 0));else if(ft instanceof ia){var wt=a.newParam===!0;typeof mt=="number"&&yt instanceof mi&&(y?0>ft.Pa.indexOf(yt)&&ft.oi(mt,yt,wt):(yt.isSelected=!1,yt.isHighlighted=!1,yt.Wb(),ft.pc(wt?mt:-1,yt,wt)))}else ft instanceof Se?typeof mt=="number"&&yt instanceof ia&&(y?(yt.Xe(this),this.Wa.Gb(mt,yt)):this.Wa.mb(mt)):Ht("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Aa&&Ht("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Se.prototype.Ea=function(a){return this.undoManager.Ea(a)},Se.prototype.eb=function(a){return this.undoManager.eb(a)},Se.prototype.Kf=function(){return this.undoManager.Kf()},Se.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}},Se.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Se.prototype.rp=function(){this.partManager.rp()};function bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,tu(a),a.N(),a.Ee=!0,E.zb&&(Ru(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,tu(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(Da)?rt=0:st.Hf(vo)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(ot)&&(st.$c()?st.Hf(Uo)?ot=0:st.Hf(cs)&&(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=Mt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Mt.free(z),a.Ca=x,tu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),ul(a,!1),E.zb&&(Ru(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Se.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!==Ia||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof qr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Cd(b,this)),this.vb||this.invalidateViewport(a,y),$l(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 $l(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Ve.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/ae.vx(z,ut):b=b*ut/ae.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=Ce.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Ce.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,Ce.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Mt.alloc(),ae.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Ve.free(E),x.part.location=y,Mt.free(y)}}Se.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)}},Se.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))},Se.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),vn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof mi||Ht("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 mi||Ht("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Se.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()}},Ct=Se.prototype,Ct.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ct.Jz=function(a){a=new en().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof mi||Ht("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ct.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Mt.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)),Mt.free(z);return}Ht("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):Ht("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Mt.free(z)},Ct.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)},Ct.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ct.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)},Ct.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 Ce(z,yt,mt-z,y-yt)},Ct.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),yn(a.copy(),this.Ab)};function $p(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function kg(a){return a=Sf.get(a),a!==null?new a:new Ir}Se.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Aa&&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===Aa){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Sa(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||rf(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&&($p(this),this.As.clear(),Wp(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Mi(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function zd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)_h(a,y[E])}function _h(a,y){if(y instanceof us){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof en&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Mg(a,y){if(y instanceof us){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof en&&x.Bg.remove(a),Df(E));break}}}}}Se.prototype.Wd=function(){this.partManager.Wd()},Se.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Se.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Se.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Se.prototype.Vb=function(a){return this.partManager.Vb(a)},Se.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ct=Se.prototype,Ct.Lc=function(a){return this.partManager.Lc(a)},Ct.ii=function(a){return this.partManager.ii(a)},Ct.Kc=function(a){return this.partManager.Kc(a)},Ct.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:Yn(pi(y)))},Ct.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:Yn(pi(y)))};function tu(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 Fg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),ul(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ct.Va=function(){if(this.Zi){var a=Ce.alloc();Fg(this,this.computeBounds(a)),Ce.free(a)}},Ct.rz=function(){for(var a=new en,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ct.qz=function(){return this.ai.iterator},Ct.Uz=function(a){Sa(this),a&&gf(this,!0),this.ld?Bg(this,!1):(this.Jk=!0,Ys(this))};function gf(a,y){for(var x=a.ai.iterator;x.next();)tm(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function tm(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)tm(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Bg(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||fu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Dg(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Sa(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||rf(z),a.aa=x}}}function Dg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Dg(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),Cc(a,y),b.isValidLayout=!0):a.xh=!0)}}Ct.yz=function(){for(var a=new tn,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 tn;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new Pe,E=new Pe;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 em(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function pf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ht("Unknown DiagramEvent name: "+y)}Ct.Bj=function(a,y){return a=pf(this,a),a!==null&&a.add(y),this},Ct.am=function(a,y){a=pf(this,a),a!==null&&a.remove(y)},Ct.R=function(a,y,x){var E=pf(this,a),b=new uu;if(b.diagram=this,a=em(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 mf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ct.Yj=function(a,y){return vf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Se.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?vg(this,a):a.assign(this.documentBounds)};function vf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new sp(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=nm(a,x)),x===null){y=Ce.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&&yf(a,tt,E,y)}Ce.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=Ce.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Fn&&yf(a,tt,E,y);Ce.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&rS(b);return b}function nm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?nm(a,y.containingGroup):null}function yf(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(zf(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(Ah,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Ah}else if(y instanceof Oi)for(y=y.memberParts;y.next();)b=y.value,b instanceof Fn&&yf(a,b,x,E)}}function gh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Se.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Ng(this)};function Ng(a){a.vk===-1&&(a.vk=Mi(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=Ce.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Fg(a,y),Ce.free(y),a.Fc=!0,a.bd(),Ng(a))}},a.vp))}Se.prototype.ug=function(){this.vk!==-1&&($e.clearTimeout(this.vk),this.vk=-1)},Se.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=Ce.allocAt(0,0,E.width*b,E.height*b);var z=Mt.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(An)||(y=new Mt(y.x+z.x/b,y.y+z.y/b)),Ce.free(E),Mt.free(z),y},Ct=Se.prototype,Ct.Cs=function(){return null},Ct.av=function(){return null},Ct.bs=function(a,y){this.pj.add(a,y)},Ct.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Oi&&(y.$p=null)})};function Lc(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):$e.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 $e.requestAnimationFrame(function(){E()}),null}Ct.Wz=function(a){return po?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ct.Jx=function(a){return a===void 0&&(a={}),Lc(this,this.Xz,a)},Ct.Xz=function(a,y,x){var E=im(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 Gd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Gd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Ht('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 im(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ht("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 Ve(1/0,1/0):new Ve(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,wt=y.showTemporary;wt===void 0&&(wt=!ft),y=y.showGrid,y===void 0&&(y=wt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof st=="number"?st=new Hi(st):st instanceof Hi||Ht("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 dl(null,mt,void 0,!0);var bt=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,hf(a,E.context,st,new Ve(ft.width,ft.height),a.Ca,a.pa,ot,ut,wt,y),E.context):(a.Xm=!1,hf(a,bt,st,new Ve(ft.width,ft.height),a.Ca,a.pa,ot,ut,wt,y),a.Xm=!0,ft.context);var Gt=a.Pp,It=a.documentBounds.copy();if(It.Fv(a.yb),wt)for(var Xt=a.Wa.s,Qt=Xt.length,qt=0;qt<Qt;qt++){var re=Xt[qt];if(re.visible&&re.isTemporary){re=re.Pa.s;for(var ye=re.length,En=0;En<ye;En++){var qn=re[En];qn.isInDocumentBounds&&qn.isVisible()&&(qn=qn.actualBounds,qn.w()&&It.ed(qn))}}}if(Xt=new Mt(It.x,It.y),ot!==null){for(Qt=new Ce(0,0,0,0),qt=!0,re=ot.iterator,re.reset();re.next();)ye=re.value,ye instanceof mi&&(En=ye.layer,En!==null&&!En.visible||En!==null&&!wt&&En.isTemporary||!ye.isVisible()||(ye=ye.actualBounds,ye.w()&&(qt?(qt=!1,Qt.assign(ye)):Qt.ed(ye))));It.width=Qt.width,It.height=Qt.height,Xt.x=Qt.x,Xt.y=Qt.y}return rt!==null&&rt.w()&&(Xt=rt,z||(z=Gt)),Qt=rt=0,st!==null&&(rt=st.left+st.right,Qt=st.top+st.bottom),qt=re=0,b!==null&&(re=b.width,qt=b.height,isFinite(re)&&(re=Math.max(0,re-rt)),isFinite(qt)&&(qt=Math.max(0,qt-Qt))),b!==null&&z!==null?(z==="NaN"&&(z=Gt),b.w()?(b=re,It=qt):isNaN(qt)?(b=re,It=It.height*z):(b=It.width*z,It=qt)):b!==null?b.w()?(z=Math.min(re/It.width,qt/It.height),b=re,It=qt):isNaN(qt)?(z=re/It.width,b=re,It=It.height*z):(z=qt/It.height,b=It.width*z,It=qt):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/It.width,(tt.height-Qt)/It.height),z>Gt?(z=Gt,b=It.width,It=It.height):(b=tt.width,It=tt.height)):(b=It.width*z,It=It.height*z):(z=Gt,b=It.width,It=It.height),st!==null?(b+=rt,It+=Qt):st=new Hi(0),tt!==null&&(Gt=tt.width,tt=tt.height,isNaN(Gt)&&(Gt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Gt)&&(b=Math.min(b,Gt)),isFinite(tt)&&(It=Math.min(It,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(It),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=mt,E.hs=yt,hf(a,E.context,st,new Ve(Math.ceil(b),Math.ceil(It)),z,Xt,ot,ut,wt,y),E.context):(a.Xm=!1,hf(a,bt,st,new Ve(Math.ceil(b),Math.ceil(It)),z,Xt,ot,ut,wt,y),a.Xm=!0,ft.context)}ce.Object.defineProperties(Se.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 eu(this,$e.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 eu(this,$e.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($e,"resize",this.Ov,!1),this.removeEventListener($e,"wheel",this.$j,!0),gu===this&&(gu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),pg(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)&&wn(a,"0 <= value <= 1",Se,"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),ul(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),ul(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),ul(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),ul(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&wn(a,">= 0",Se,"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&&wn(a,">= 0",Se,"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 wn(a,">= 0",Se,"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||$p(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&&Ht("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=gg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,fu(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=kg(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($e,"pointermove",this.dk,!0),this.addEventListener($e,"pointerdown",this.ui,!0),this.addEventListener($e,"pointerup",this.fk,!0),this.addEventListener($e,"pointerout",this.ek,!0),this.addEventListener($e,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener($e,"wheel",this.$j,!0),this.addEventListener($e,"selectstart",this.preventDefault,!1)):(this.removeEventListener($e,"pointermove",this.dk,!0),this.removeEventListener($e,"pointerdown",this.ui,!0),this.removeEventListener($e,"pointerup",this.fk,!0),this.removeEventListener($e,"pointerout",this.ek,!0),this.removeEventListener($e,"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($e,"wheel",this.$j,!0),this.removeEventListener($e,"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=Mt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Gp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?tu(this):(this.vb=!0,a=this.scale,yg(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)}Mt.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=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==on.Grid&&Ht("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),$l(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),tu(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||Ht("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 Hi(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===ph&&ul(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,ul(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,bg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&bg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Ia&&ul(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()||Ht("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()||Ht("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)):wn(a,"> 0",Se,"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)):wn(a,"> 0",Se,"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),ul(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 Hi(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&&Ht("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();)qg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==mh&&a!==Io&&a!==xf&&Ht("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 Ve(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 Hi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),ce.Object.defineProperties(Se,{licenseKey:{get:function(){return jg.jc()},set:function(a){jg.add(a.replace(/\s/g,""))}},version:{get:function(){return Wd}}}),Se.prototype.makeImageData=Se.prototype.Jx,Se.prototype.makeImage=Se.prototype.Wz,Se.prototype.cacheGroupExternalLinks=Se.prototype.Fu,Se.prototype.addRenderer=Se.prototype.bs,Se.prototype.makeSVG=Se.prototype.av,Se.prototype.makeSvg=Se.prototype.Cs,Se.prototype.stopAutoScroll=Se.prototype.ug,Se.prototype.doAutoScroll=Se.prototype.gs,Se.prototype.isUnoccupied=Se.prototype.Yj,Se.prototype.raiseDiagramEvent=Se.prototype.R,Se.prototype.removeDiagramListener=Se.prototype.am,Se.prototype.addDiagramListener=Se.prototype.Bj,Se.prototype.findTreeRoots=Se.prototype.yz,Se.prototype.layoutDiagram=Se.prototype.Uz,Se.prototype.findTopLevelGroups=Se.prototype.qz,Se.prototype.findTopLevelNodesAndLinks=Se.prototype.rz,Se.prototype.ensureBounds=Se.prototype.Va,Se.prototype.findLinksByExample=Se.prototype.ls,Se.prototype.findNodesByExample=Se.prototype.ms,Se.prototype.findLinkForData=Se.prototype.Kc,Se.prototype.findNodeForData=Se.prototype.ii,Se.prototype.findPartForData=Se.prototype.Lc,Se.prototype.findLinkForKey=Se.prototype.findLinkForKey,Se.prototype.findNodeForKey=Se.prototype.Vb,Se.prototype.findPartForKey=Se.prototype.findPartForKey,Se.prototype.rebuildParts=Se.prototype.Wd,Se.prototype.transformViewToDoc=Se.prototype.Ps,Se.prototype.transformRectDocToView=Se.prototype.zA,Se.prototype.transformDocToView=Se.prototype.op,Se.prototype.centerRect=Se.prototype.es,Se.prototype.scrollToRect=Se.prototype.tv,Se.prototype.scroll=Se.prototype.scroll,Se.prototype.highlightCollection=Se.prototype.Jz,Se.prototype.highlight=Se.prototype.Iz,Se.prototype.selectCollection=Se.prototype.rA,Se.prototype.select=Se.prototype.select,Se.prototype.updateAllRelationshipsFromData=Se.prototype.rp,Se.prototype.updateAllTargetBindings=Se.prototype.updateAllTargetBindings,Se.prototype.commit=Se.prototype.commit,Se.prototype.rollbackTransaction=Se.prototype.Kf,Se.prototype.commitTransaction=Se.prototype.eb,Se.prototype.startTransaction=Se.prototype.Ea,Se.prototype.raiseChanged=Se.prototype.g,Se.prototype.raiseChangedEvent=Se.prototype.cb,Se.prototype.removeChangedListener=Se.prototype.ik,Se.prototype.addChangedListener=Se.prototype.Pe,Se.prototype.removeModelChangedListener=Se.prototype.mA,Se.prototype.addModelChangedListener=Se.prototype.Yw,Se.prototype.findLayer=Se.prototype.Qj,Se.prototype.removeLayer=Se.prototype.kA,Se.prototype.addLayerAfter=Se.prototype.Cy,Se.prototype.addLayerBefore=Se.prototype.Ww,Se.prototype.addLayer=Se.prototype.Al,Se.prototype.moveParts=Se.prototype.moveParts,Se.prototype.copyParts=Se.prototype.Kj,Se.prototype.removeParts=Se.prototype.Is,Se.prototype.remove=Se.prototype.remove,Se.prototype.add=Se.prototype.add,Se.prototype.clearDelayedGeometries=Se.prototype.bx,Se.prototype.setProperties=Se.prototype.nm,Se.prototype.attach=Se.prototype.Du,Se.prototype.set=Se.prototype.set,Se.prototype.resetInputOptions=Se.prototype.Sx,Se.prototype.setInputOption=Se.prototype.sA,Se.prototype.getInputOption=Se.prototype.Ql,Se.prototype.resetRenderingHints=Se.prototype.Tx,Se.prototype.setRenderingHint=Se.prototype.Xx,Se.prototype.getRenderingHint=Se.prototype.Gf,Se.prototype.maybeUpdate=Se.prototype.bd,Se.prototype.requestUpdate=Se.prototype.$b,Se.prototype.delayInitialization=Se.prototype.Xy,Se.prototype.isUpdateRequested=Se.prototype.Pz,Se.prototype.invalidateDocumentBounds=Se.prototype.Ya,Se.prototype.findObjectsNear=Se.prototype.og,Se.prototype.findPartsNear=Se.prototype.mz,Se.prototype.findObjectsIn=Se.prototype.Cf,Se.prototype.findPartsIn=Se.prototype.ux,Se.prototype.findObjectsAt=Se.prototype.ji,Se.prototype.findPartsAt=Se.prototype.lz,Se.prototype.findObjectAt=Se.prototype.ic,Se.prototype.findPartAt=Se.prototype.Ol,Se.prototype.focusObject=Se.prototype.zz,Se.prototype.alignDocument=Se.prototype.Jy,Se.prototype.zoomToRect=Se.prototype.BA,Se.prototype.zoomToFit=Se.prototype.zoomToFit,Se.prototype.diagramScroll=Se.prototype.kx,Se.prototype.focus=Se.prototype.focus;var Sf=new Pe,rm=null,po=$e.document!==void 0,jd=null,$h="",Ia=new Ue(Se,"None",0),Rs=new Ue(Se,"Uniform",1),td=new Ue(Se,"UniformToFill",2),Ac=new Ue(Se,"CycleAll",10),Tg=new Ue(Se,"CycleNotDirected",11),Og=new Ue(Se,"CycleNotDirectedFast",12),Ig=new Ue(Se,"CycleNotUndirected",13),Rg=new Ue(Se,"CycleDestinationTree",14),zg=new Ue(Se,"CycleSourceTree",15),ph=new Ue(Se,"DocumentScroll",1),Ec=new Ue(Se,"InfiniteScroll",2),mh=new Ue(Se,"TreeParentCollapsed",21),Io=new Ue(Se,"AllParentsCollapsed",22),xf=new Ue(Se,"AnyParentsCollapsed",23),jg=new tn,Wd="2.3.10",Gd="image",bc=null,om=!1;function ba(){if(po){var a=$e.document.createElement("canvas"),y=a.getContext("2d"),x=je("7ca11abfd022028846");y[x]=je("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",In.Dx+"4ae6247590da4bb21c324ba3a84e385776",Fi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",ae.za],b=1;5>b;b++)y[je("7ca11abfd7330390")](je(E[b-1]),10,15*b);for(y[x]=je("39f046ebb36e4b"),x=1;5>x;x++)y[je("7ca11abfd7330390")](je(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Fi.prototype.Cd=Fi.prototype.Eu),bc=a}}Se.className="Diagram",Se.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=$e.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Se?y.H:null},Se.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},Se.useDOM=function(a){po=a?$e.document!==void 0:!1},Se.isUsingDOM=function(){return po},Se.None=Ia,Se.Uniform=Rs,Se.UniformToFill=td,Se.CycleAll=Ac,Se.CycleNotDirected=Tg,Se.CycleNotDirectedFast=Og,Se.CycleNotUndirected=Ig,Se.CycleDestinationTree=Rg,Se.CycleSourceTree=zg,Se.DocumentScroll=ph,Se.InfiniteScroll=Ec,Se.TreeParentCollapsed=mh,Se.AllParentsCollapsed=Io,Se.AnyParentsCollapsed=xf;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Hd(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=$e[je("76a715b2f73f148a")][je("72ba13b5")]||"";if(a.Rc=!0,po){var E=Se[je("76a115b6ed251eaf4692")];if(E)for(var b=jg.iterator;b.next()&&(E=b.value,E=je(E).split(je("39e9")),!(6>E.length));){var z=je(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=je(In[je("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=$e[je("74a900bae4370f8b51")][je("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[je("73a612b6fb191d")](je("3aad1ab6e022098b4dc4")),z=je(E[2]),-1<tt&&(rt=rt[je("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[je("76ad18b4f73e")],rt=x[je("73a612b6fb191d")](je("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[je("73a612b6fb191d")](z),0>tt&&z!==je("7da71ca0ad381e90")&&(tt=y[je("73a612b6fb191d")](je("76a715b2ef3e149757"))),0>tt&&(tt=y[je("73a612b6fb191d")](je("76a715b2ef3e149757"))),0>tt&&(tt=y[je("73a612b6fb191d")](je("2bfa41fdb3784bca12"))),0>tt&&(tt=x[je("73a612b6fb191d")](je("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[je("73a612b6fb191d")](je("35"))||y[je("73a612b6fb191d")](je("35"))===-1),!a.Rc||x[je("73a612b6fb191d")](je("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[je("73a612b6fb191d")](z)),!a.Rc)||(tt=$e[je("76a715b2f73f148a")][je("69ad17a1e03e")],rt=tt[je("73a612b6fb191d")](je("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[je("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=$e.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[je("79a417a0f0181a8946")]=E,$e.document[je("78a712aa")]){$e.document[je("78a712aa")][je("7bb806b6ed32388c4a875b")](tt),ot=$e.getComputedStyle(tt).getPropertyValue(je("78a704b7e62456904c9b12701b6532a8"));var st=$e.getComputedStyle(tt).getPropertyValue(je("75b817b0ea2202"));if($e.document[je("78a712aa")][je("68ad1bbcf533388c4a875b")](tt),ot){if(tt=$e[je("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(je("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[je("76ad18b4f73e")],b=x[je("73a612b6fb191d")](je("35e7"))+2;b<ut;b++)y+=x[b];x=y[je("73a612b6fb191d")](je("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[je("73a612b6fb191d")](je("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function Wu(a){this.j=a===void 0?new Mt:a,this.o=new Mt}ce.Object.defineProperties(Wu.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 kc="DraggingInfo";Wu.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 Ve(NaN,NaN).freeze(),this.gridSnapCellSpot=ur,this.gridSnapOrigin=new Mt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function dt(a,y){if(typeof a=="string"||$e.Element&&a instanceof Element)var x=Se.call(this,a)||this;else x=Se.call(this)||this,y=a;return ht(x),y&&x.nm(y),x}ue(dt,Se);function ht(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Er,a.layout=new ha}dt.prototype.reset=function(){Se.prototype.reset.call(this),ht(this)},dt.className="Palette";function gt(a,y){if(typeof a=="string"||$e.Element&&a instanceof Element)var x=Se.call(this,a)||this;else x=Se.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 mi;var b=new Yi;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 Hi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Zt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Mt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Dt(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&&Dt(E)},x.autoScale=Rs,x.vb=!1,y&&Object.assign(x,y),x}ue(gt,Se),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(Id(this),this.ql===null){var x=new dl(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),Lt(this)}finally{this.ta=a,this.ib=y}}}Se.prototype.redraw.call(this)},gt.prototype.gc=function(){if(this.Ka===null&&Ht("No div specified"),this.ta===null&&Ht("No canvas specified"),!(this.ta instanceof eu)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Id(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?Lt(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 Lt(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=Ce.alloc().assign(a.viewportBounds).ed(y.viewportBounds),$l(y,b),Ce.free(b),Sa(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=ju(rt,b),st.gc(b,ot),b.globalAlpha=rt);else{for(var ut=ju(rt,b),ft=ot.scale,mt=Ce.alloc(),yt=rt.Pa.s,wt=yt.length,bt=0;bt<wt;bt++){var Gt=yt[bt];(E||Gt!==st)&&rt.Oj(b,Gt,ot,null,ft,mt,!1)}Ce.free(mt),b.globalAlpha=ut}}}}}function Dt(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=Ve.alloc();b.h(x.width,x.height),E.desiredSize=b,Ve.free(b),a=2/a.scale,E instanceof Yi&&(E.strokeWidth=a),y.location=new Mt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}gt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Bo;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(),Dt(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))},ce.Object.defineProperties(gt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof gt&&Ht("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),Dt(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),Dt(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 Zt(){uo.call(this),this.j=null}ue(Zt,uo),Zt.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 Mt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Mt(a.x-this.j.x,a.y-this.j.y)),!0)},Zt.prototype.doActivate=function(){this.j=null,uo.prototype.doActivate.call(this)},Zt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Zt.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 Mt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Mt(a.x-this.j.x,a.y-this.j.y)}}},Zt.className="OverviewDraggingTool";function Wt(){ki(this),this.H=gu,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=Bo,this.hb=!0,this.cg=null,this.ob=200}Wt.prototype.toString=function(){return"CommandHandler"},Wt.prototype.Xe=function(a){this.H=a},Wt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=or?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()},Wt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Wt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof qr&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Wt.prototype.canStopCommand=function(){return!0},Wt.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=""}},Wt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Wt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new en,x=a.selection.iterator;x.next();)rd(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=""}},Wt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Wt.prototype.copySelection=function(){var a=this.diagram,y=new en;for(a=a.selection.iterator;a.next();)rd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Wt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Wt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Wt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Wt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)jd=null,$h="";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 tn,x.addAll(z),jd=x,$h=y.model.dataFormat}}y.R("ClipboardChanged",x)},Wt.prototype.pasteFromClipboard=function(){var a=new en,y=jd;if(y===null)return a;var x=this.diagram;if($h!==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},Wt.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);Qh(y,z,new Mt(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=""}},Wt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||jd===null||jd.count===0||$h!==a.model.dataFormat)},Wt.prototype.undo=function(){this.diagram.undoManager.undo()},Wt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Wt.prototype.redo=function(){this.diagram.undoManager.redo()},Wt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Wt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ia&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Wt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ia?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Wt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ia&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Wt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ia?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Wt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Wt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Wt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;fu(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=Bo):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),rf(y)},Wt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Wt.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;fu(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=$t(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var ot=b.pop();0<b.length&&ot instanceof Fn&&ot.isTreeExpanded&&(!(ot instanceof Oi)||ot.isSubGraphExpanded);)ot=b.pop();0<b.length?(ot instanceof mi&&y.tv(ot.actualBounds),ot instanceof Fn&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Oi&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof mi&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Mi(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function $t(a,y,x){if(y.isVisible())return x;if(y instanceof wr)$t(a,y.adornedPart,x);else if(y instanceof gn){var E=y.fromNode;E!==null&&$t(a,E,x),y=y.toNode,y!==null&&$t(a,y,x)}else y instanceof Fn&&(E=y.labeledLink,E!==null&&$t(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),$t(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),$t(a,y,x));return x}Wt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof mi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Wt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),fu(y.animationManager,"Collapse Tree");var x=new tn;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 Fn&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Wt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn&&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 Fn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Wt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),fu(y.animationManager,"Expand Tree");var x=new tn;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 Fn&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Wt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn)||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 Fn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Wt.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 tn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new tn,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 Oi)cl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var yt=y.copyNodeData(x);ke(yt)&&(y.xf(yt),E=a.ii(yt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var wt=rt.iterator;wt.next();){var bt=wt.value;this.isValidMember(E,bt)&&(bt.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Wt.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 De(a){var y=Dn();for(a=a.iterator;a.next();){var x=a.value;x instanceof gn||y.push(x)}a=new en,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,tt=0;tt<x;tt++)if(b.Td(y[tt])){z=!1;break}z&&a.add(b)}return Un(y),a}Wt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof gn)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},Wt.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 tn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Oi&&z.canUngroup()&&E.add(z)}var tt=new tn;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 gn)){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=""}},Wt.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 Oi))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Oi&&y.canUngroup())return!0;return!1},Wt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=De(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Wt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),fu(y.animationManager,"Collapse SubGraph");var x=new tn;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 Oi&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Wt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Oi&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Oi&&y.isSubGraphExpanded)return!0;return!1},Wt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),fu(y.animationManager,"Expand SubGraph");var x=new tn;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 Oi&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Wt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Oi&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Oi&&!y.isSubGraphExpanded)return!0;return!1},Wt.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 Yr&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Wt.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 Yr))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 Yr&&x.editable}),a!==null))return!0;return!1},Wt.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 oe?b=a.ga(Ui):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Mt(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,Iu(x,!1,a)}},Wt.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)},Wt.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 Pe,a===null)return E;for(var z=a.iterator;z.next();)mu(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 gn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},ce.Object.defineProperties(Wt.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||Ht("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}}}),Wt.className="CommandHandler",Yp=function(){return new Wt};function oe(){ki(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Mt(NaN,NaN).freeze(),this.jd=Lr,this.Ab=new Fi,this.wh=new Fi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ea,this.uc=new Ce(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Ce(NaN,NaN,NaN,NaN).freeze(),this.dc=new Ce(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Yo,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 rn,Xe,oi,di,Li,zi,hr,_i,mr,jr;oe.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=un(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},oe.prototype.Vw=function(a){var y=this.Dh;if(vn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},oe.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},oe.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},oe.prototype.copy=function(){return this.clone()},Ct=oe.prototype,Ct.qb=function(a){a.classType===gn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ht("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===oe&&(this.stretch=a)},Ct.toString=function(){return Wn(this.constructor)+"#"+yr(this)},Ct.th=function(){this.A!==null&&(this.A.nc=!0)};function Qi(a){a.A===null?a.A=new Fc:a.A.nc&&(a.A=a.A.copy())}Ct.Xc=function(){if(this.ba===null){var a=new Wg;a.Xi=Ki,a.yj=Ki,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ct.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===io&&fa(this)&&to(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 Pe),tt=z.undoManager.transactionLevel===0,a.startCondition===Yh?tt=!0:a.startCondition===Dd&&(tt=!1),tt?(z=new ya,Zp(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()):(fu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof on&&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 on&&Ud(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function to(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,tt=null;if(z.sourceName!==null){if(tt=ES(z,E,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,E)}else{if(rt=E.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,E)}tt===a&&(rt=E.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Ct.ks=function(a){return this.bindingId===a?this:null},Ct.g=function(a,y,x){this.cb(io,a,this,y,x)},Ct.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 Fi);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function Jo(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Ct.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?On(a.x,a.y,0,0,0,E.height)<=y||On(a.x,a.y,0,E.height,E.width,E.height)<=y||On(a.x,a.y,E.width,E.height,E.width,0)<=y||On(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},Ct.se=function(){return!0},Ct.ca=function(a){var y=Mt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Mt.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=eo(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Mt.free(y),a}return b=!1,(this instanceof wr||this instanceof Yi?eo(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)),Mt.free(y),b},Ct.gh=function(a){var y=this.naturalBounds;return eo(0,0,y.width,y.height,a.x,a.y)},Ct.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Ce.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Mt.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)))),Mt.free(b),Ce.free(y),E},Ct.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Mt.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)))),Mt.free(b),E},Ct.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Mt.allocAt(0,0),b=Mt.allocAt(0,x.height),z=Mt.allocAt(x.width,x.height),tt=Mt.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=Ce.allocAt(0,0,x.width,x.height);var ot=Mt.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)))),Mt.free(ot),Ce.free(x),!rt&&(ae.us(a,E,b)||ae.us(a,b,z)||ae.us(a,z,tt)||ae.us(a,tt,E))&&(rt=!0)}return Mt.free(E),Mt.free(b),Mt.free(z),Mt.free(tt),rt},Ct.ga=function(a,y){if(y===void 0&&(y=new Mt),a instanceof ei){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},Ct.mi=function(a){a===void 0&&(a=new Ce);var y=this.naturalBounds,x=this.oe,E=Mt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),cr(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),cr(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),cr(a,E.x,E.y,0,0),Mt.free(E),a},Ct.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},Ct.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ct.qs=function(a,y){return y===void 0&&(y=new Mt),y.assign(a),this.oe.Cd(y),y},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.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,ae.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=ae.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},oe.prototype.measure=function(a,y,x,E){if(js(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 on;switch(ss(this,!0)){case Xe:tt=b=0,rt&&(y=a=1/0);break;case rn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case di:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Li: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()||Ht("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ro(this,!1)}},oe.prototype.Wl=function(){},oe.prototype.Dd=function(){return!1},oe.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=Ce.alloc();z.assign(this.Ib),this.Ib.ka(),Ja(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&&Sh(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 Yr&&(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()||Ht("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),vu(this,!1),Ce.free(z)},Ct=oe.prototype,Ct.eh=function(){};function Ra(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=ss(a,!0),x===E&&z===b&&(y=Xe),y){case Xe:(x>E||z>b)&&(Ro(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case rn:Ro(a,!0),a.measure(E,b,0,0);break;case di:Ro(a,!0),a.measure(E,z,0,0);break;case Li:Ro(a,!0),a.measure(x,b,0,0)}}}Ct.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(),pr(a,y)||(x.oh(),this.Pn(x)))},Ct.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Fn&&Z1(a,this))},Ct.gc=function(a,y){if(!Xs(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 on&&Sh(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&&(mo(this,a,st,!0,!0,ot,rt),st instanceof Or&&st.type===qs?(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&&(mo(this,a,ut,!0,!1,ot,rt),ut instanceof Or&&ut.type===qs?(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&&ua(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 wt=mt.m11,bt=mt.m21,Gt=mt.dx,It=mt.m12,Xt=mt.m22,Qt=mt.dy,qt,re=qt=0;mt=qt*wt+re*bt+Gt;var ye=qt*It+re*Xt+Qt;qt=yt.width+ft,re=0;var En=qt*wt+re*bt+Gt;qt=qt*It+re*Xt+Qt,re=Math.min(mt,En);var qn=Math.min(ye,qt),Kn=Math.max(mt+0,En)-re,fn=Math.max(ye+0,qt)-qn;mt=re,ye=qn,qt=yt.width+ft,re=yt.height+ft,En=qt*wt+re*bt+Gt,qt=qt*It+re*Xt+Qt,re=Math.min(mt,En),qn=Math.min(ye,qt),Kn=Math.max(mt+Kn,En)-re,fn=Math.max(ye+fn,qt)-qn,mt=re,ye=qn,qt=0,re=yt.height+ft,En=qt*wt+re*bt+Gt,qt=qt*It+re*Xt+Qt,re=Math.min(mt,En),qn=Math.min(ye,qt),Kn=Math.max(mt+Kn,En)-re,fn=Math.max(ye+fn,qt)-qn,mt=re,ye=qn,ft=y.viewportBounds,yt=ft.x,wt=ft.y,mt=!(mt>ft.width+yt||yt>Kn+mt||ye>ft.height+wt||wt>fn+ye)}if(mt){if(mt=(this.l&256)!==0,a.clipInsteadOfFill&&(mt=!1),this instanceof Yr&&(a.font=this.font),mt){if(ye=rt.se()?rt.naturalBounds:rt.actualBounds,Kn=Math.max(tt.x,ye.x),fn=Math.max(tt.y,ye.y),ft=Math.min(tt.right,ye.right)-Kn,yt=Math.min(tt.bottom,ye.bottom)-fn,wt=this.tb,wt!==null&&(Kn=wt.x,fn=wt.y,ft=wt.width,yt=wt.height),Kn>tt.width+tt.x||tt.x>ye.width+ye.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Kn,fn,ft,yt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ot&&(ye=st.shadowOffset,a.Ev(ye.x*y.scale*this.scale*y.Mb,ye.y*y.scale*this.scale*y.Mb,st.shadowBlur),Gu(a),a.shadowColor=st.shadowColor)}ot&&this.shadowVisible===!0?Gu(a):ot&&this.shadowVisible===!1&&yu(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),zs(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&ra(this,rt)&&this.shadowVisible===null&&yu(a),this.Ma!==null&&(a.yc(),ms(this,a,st,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||ra(this,rt))?(Pl(this,!0),this.shadowVisible===null&&yu(a)):Pl(this,!1),this.hh(a,y),ot&&this.l&512&&Gu(a),ut&&ot&&yu(a),mt&&(a.restore(),a.Vc(this instanceof on)),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 ra(a,y){return y===null?!1:(Sh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===on.Auto||y.type===on.Spot)&&y.Pb()!==a)}Ct.Dv=function(){};function zs(a,y,x,E){mo(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Or&&a.areaBackground.type===qs?(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 ms(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,ot=x.height+b;mo(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Or&&a.Ma.type===qs?(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 ka(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===on.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 Xs(a,y,x){if(!(y instanceof Es))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&&ka(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),Gu(y),y.shadowColor=a.shadowColor}a instanceof Yr&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof on;var rt=a instanceof on?Sh(a):!1;a.l&4096&&ua(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&rt?(Gg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Gg(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Gg(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],zs(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]),ms(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],ms(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&&Gu(y),rt&&a.shadowVisible===!0?Gu(y):rt&&a.shadowVisible===!1&&yu(y),b=a.panel,rt&&ra(a,b)&&a.shadowVisible===null&&yu(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||ra(a,b))?(Pl(a,!0),a.shadowVisible===null&&yu(y)):Pl(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),as(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(lm(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&&Gu(y),a.Dd()&&yu(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&&ka(a,E,rt),tt!==null&&tt(a,rt)),!0)}Ct.$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"+Wr++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof on&&(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"),as(a,E)};function as(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ma(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=pi(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()}}Ct.hh=function(){},Ct.lv=function(){this.Uc=!0},Ct.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 on?Sh(this):!1;if(!(this instanceof on&&b))if(this instanceof us){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 on)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Yi){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],zs(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&&um(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(um(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof on))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),ms(this,a,this.naturalBounds,this.actualBounds),y.Ma?(um(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&&um(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ct.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 mo(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===yh)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 Vd)&&x.xe&&(x.type===bf||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,mt=0,yt=0,wt=0,bt=0,Gt=0;if(Gt=bt=0,b?(bt=tt.x,Gt=tt.y):E||(bt-=st/2,Gt-=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,wt=x.end.y*ot+x.end.offsetY,ft+=bt,yt+=bt,mt+=Gt,wt+=Gt,x.type===Zu)ut=y.createLinearGradient(ft,mt,yt,wt);else if(x.type===qs)Gt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(bt=0,Gt=Math.max(rt,ot)/2):bt=x.startRadius,ut=y.createRadialGradient(ft,mt,bt,yt,wt,Gt);else if(x.type===bf)try{ut=y.createPattern(x.pattern,"repeat")}catch(Xt){ut=null}if(x.type!==bf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ut.addColorStop(b.key,b.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===bf&&x.yk!==-1)){x.yk=-1;var It=a.diagram;It!==null&&x.yk===-1&&Mi(function(){It.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}Ct.rg=function(a){if(a instanceof on)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},Ct.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ct.If=function(){for(var a=this instanceof on?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function ua(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){hl(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)}hl(a,!1),Js(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Js(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,Js(a,!1)))}Ct.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Mt.alloc();z.yi(y,x,E,b,Ui),a.rotate(this.Kb,z.x,z.y),Mt.free(z)}},Ct.v=function(a){if(!js(this)){a===void 0&&(a=!1),Ro(this,!0),vu(this,!0);var y=this.panel;y===null||a||y.v()}},Ct.Uj=function(){js(this)||(Ro(this,!0),vu(this,!0))};function Xa(a){if(!Ja(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Fn&&a.Bd(),y.$b())),vu(a,!0)}}Ct.Uk=function(){!(this.l&2048)&&(hl(this,!0),Js(this,!0))},Ct.Wu=function(){Js(this,!0)},Ct.N=function(){var a=this.part;a!==null&&a.N()};function ss(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===on.Table?Ol(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===on.Auto&&E.Pb()===a?oa(a,rn,y):x===zi?E!==null?E.type===on.Spot&&E.Pb()===a?oa(a,rn,y):(x=E.defaultStretch,x===zi?oa(a,Xe,y):oa(a,x,y)):oa(a,Xe,y):oa(a,x,y)}function Ol(a,y,x,E){var b=a.stretch;if(b!==zi)return oa(a,b,E);var z=b=null;switch(y.stretch){case Li:z=!0;break;case rn:z=!0}switch(x.stretch){case di:b=!0;break;case rn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===di||y===rn),z===null&&(z=y===Li||y===rn),b===!0&&z===!0?oa(a,rn,E):b===!0?oa(a,di,E):z===!0?oa(a,Li,E):oa(a,Xe,E)}function oa(a,y,x){if(x)return y;if(y===Xe||(x=a.desiredSize,x.w()))return Xe;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===di)return Xe;if(y===rn)return Li}else{if(y===Li)return Xe;if(y===rn)return di}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Li)return Xe;if(y===rn)return di}else{if(y===di)return Xe;if(y===rn)return Li}return y}function Pl(a,y){a.l=y?a.l|512:a.l&-513}function fa(a){return(a.l&1024)!==0}function Mc(a,y){a.l=y?a.l|1024:a.l&-1025}function hl(a,y){a.l=y?a.l|2048:a.l&-2049}function Js(a,y){a.l=y?a.l|4096:a.l&-4097}function js(a){return(a.l&8192)!==0}function Ro(a,y){a.l=y?a.l|8192:a.l&-8193}function Ja(a){return(a.l&16384)!==0}function vu(a,y){a.l=y?a.l|16384:a.l&-16385}Ct.Gj=function(){this.svg=null},Ct.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ct.Av=function(){},Ct.zv=function(a){return this.pa=a,Xa(this),!0},Ct.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ct.kq=function(){return 0};function Zd(a){var y=a.part;if(y instanceof Fn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Z1(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof on?a instanceof Fn?a.Bd():a.qm(a,function(x){Zd(x)}):Zd(a))}Ct.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ko(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&c1(a)&&Ht("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new tn),this.localBindings.add(b),this},Ct.set=function(a){return Object.assign(this,a),this},Ct.Du=function(a){return nv(this,a),this},Ct.apply=function(a){return a(this),this},Ct.nm=function(a){return Od(this,a),this},Ct.pz=function(){return this.ih()},Ct.ih=function(){for(var a=this instanceof on?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ct.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Pe),this.animationTriggers.add(a.propertyName,a),this};function Qs(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=wf.I(a);typeof z=="function"?(x=un(arguments),E=z(x),ke(E)||Ht('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=$e.go[a]}if(E===null&&(b!=null&&b.constructor||Ht("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 Se&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(pg(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?Ht("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 Yr)a.text=y;else if(a instanceof Yi)a.figure=y;else if(a instanceof us)a.source=y;else if(a instanceof on)y=Cl.I(y),y!==null&&(a.type=y);else if(a instanceof Or){var x=Rn(Or,y);x!==null?a.type=x:Ht("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof dn?(y=Rn(dn,y),y!==null&&(a.type=y)):a instanceof xr&&(y=Rn(xr,y),y!==null&&(a.type=y));else if(y instanceof oe)a instanceof on||Ht("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof zo){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 zo?Am(E,y):Ht("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Ue)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Zo)a.type=y;else if(y instanceof ko)a instanceof oe||a instanceof zo?a.bind(y):Ht("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof xl)a instanceof oe?a.Jv(y):Ht("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof To)a instanceof dn&&a.type===dn.o?a.figures.add(y):Ht("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof xr)a instanceof To?a.segments.add(y):Ht("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof lo)a instanceof Se||a instanceof Oi?a.layout=y:Ht("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 Or){x=new ci;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);Od(a,x)}else if(a instanceof zo){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&Ht("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)&&Ht("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new ci;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Od(a,b)}else Od(a,y);else Ht('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function vh(a,y){wf.add(a,y)}function sm(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}ce.Object.defineProperties(oe.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Fc),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 Fc),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 Fc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Qi(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&&(Qi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:_a},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new ed),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===_a&&(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 ed),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 ed),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:An},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new ed),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:zi},set:function(a){var y=this.stretch;y!==a&&(Qi(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&&(Qi(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)&&wn(a,"0 <= value <= 1",oe,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Jd(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(Jd(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&&Dc(a,"GraphObject.areaBackground"),a instanceof Or&&a.freeze(),Qi(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&&Dc(a,"GraphObject.background"),a instanceof Or&&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 mi)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 Mt(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&&Ht("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 Yi&&this.qc(),this.g("desiredSize",E,a),fa(this)&&(a=this.part,a!==null&&(to(this,a,"width"),to(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 Ve(a,this.jd.height).freeze(),this.v(),this instanceof Yi&&this.qc(),this.g("desiredSize",y,a),fa(this)&&(a=this.part,a!==null&&to(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 Ve(this.jd.width,a).freeze(),this.v(),this instanceof Yi&&this.qc(),this.g("desiredSize",y,a),fa(this)&&(a=this.part,a!==null&&to(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:gi},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(),Qi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:br},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(),Qi(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 Hi(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&&ua(this),this.Ab}},oe:{get:function(){return this.l&4096&&ua(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Qi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Xe},set:function(a){this.reshapingBehavior!==a&&(Qi(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()&&Ht("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Xa(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&&wn(a,">= 0",oe,"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&&wn(a,">= 1",oe,"columnSpan"),Qi(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&&wn(a,">= 0",oe,"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&&wn(a,">= 1",oe,"rowSpan"),Qi(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&&(Qi(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 Fn||Ht("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Hv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,U1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ki},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Zd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&wn(a,">= 0",oe,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Zd(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),Zd(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&&wn(a,">= 0",oe,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ki},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Zd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&wn(a,">= 0",oe,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Zd(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),Zd(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&&wn(a,">= 0",oe,"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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(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&&(Qi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),oe.prototype.trigger=oe.prototype.Jv,oe.prototype.findBindingPanel=oe.prototype.ih,oe.prototype.findTemplateBinder=oe.prototype.pz,oe.prototype.setProperties=oe.prototype.nm,oe.prototype.apply=oe.prototype.apply,oe.prototype.attach=oe.prototype.Du,oe.prototype.set=oe.prototype.set,oe.prototype.isEnabledObject=oe.prototype.If,oe.prototype.isVisibleObject=oe.prototype.Ed,oe.prototype.isContainedBy=oe.prototype.rg,oe.prototype.getNearestIntersectionPoint=oe.prototype.rs,oe.prototype.getLocalPoint=oe.prototype.qs,oe.prototype.getDocumentScale=oe.prototype.Df,oe.prototype.getDocumentAngle=oe.prototype.li,oe.prototype.getDocumentBounds=oe.prototype.mi,oe.prototype.getDocumentPoint=oe.prototype.ga,oe.prototype.intersectsRect=oe.prototype.Yc,oe.prototype.containedInRect=oe.prototype.fh,oe.prototype.containsRect=oe.prototype.Re,oe.prototype.containsPoint=oe.prototype.ca,oe.prototype.raiseChanged=oe.prototype.g,oe.prototype.raiseChangedEvent=oe.prototype.cb,oe.prototype.addCopyProperty=oe.prototype.Vw;var wf=null;oe.className="GraphObject",wf=new Pe,vh("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=Qs(on,on.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof on){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"},Qs(Yi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ei(0,0,2.76142374915397,2.761423749153969),spot2:new ei(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 on&&(x=E.fb("ButtonBorder"),x instanceof Yi)){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 on&&(x=E.fb("ButtonBorder"),x instanceof Yi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof on&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Yi){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 on&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Yi){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 on&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Yi){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 on&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Yi))){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}),vh("TreeExpanderButton",function(){var a=Qs("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Qs(Yi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xi},new ko("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ko("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof wr&&(x=x.adornedPart),x instanceof Fn){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}),vh("SubGraphExpanderButton",function(){var a=Qs("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Qs(Yi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Xi},new ko("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 wr&&(x=x.adornedPart),x instanceof Oi){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}),vh("ToolTip",function(){return Qs(wr,on.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Mt(0,3),shadowBlur:5},Qs(Yi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ei(0,0,4,6),spot2:new ei(1,1,-4,-4)}))}),vh("ContextMenu",function(){return Qs(wr,on.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Mt(0,3),shadowBlur:5},new ko("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),vh("ContextMenuButton",function(){var a=Qs("Button");a.stretch=di;var y=a.fb("ButtonBorder");return y instanceof Yi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ei(0,0,2,3),y.spot2=new ei(1,1,-2,-2)),a}),vh("PanelExpanderButton",function(a){var y=sm(a,"COLLAPSIBLE"),x=Qs("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},Qs(Yi,{name:"ButtonIcon",strokeWidth:2},new ko("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Yi&&(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}),vh("CheckBoxButton",function(a){var y=sm(a);return a=Qs("Button",{desiredSize:new Ve(14,14)},Qs(Yi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:rn,geometryStretch:oi,visible:!1},y!==""?new ko("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof on){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}),vh("CheckBox",function(a){a=sm(a),a=Qs("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Hi(0,1,0,0)});var y=Qs(on,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Hi(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}),oe.None=Xe=new Ue(oe,"None",0),oe.Default=zi=new Ue(oe,"Default",0),oe.Vertical=Li=new Ue(oe,"Vertical",4),oe.Horizontal=di=new Ue(oe,"Horizontal",5),oe.Fill=rn=new Ue(oe,"Fill",3),oe.Uniform=oi=new Ue(oe,"Uniform",1),oe.UniformToFill=hr=new Ue(oe,"UniformToFill",2),oe.FlipVertical=_i=new Ue(oe,"FlipVertical",1),oe.FlipHorizontal=mr=new Ue(oe,"FlipHorizontal",2),oe.FlipBoth=jr=new Ue(oe,"FlipBoth",3),oe.make=Qs,oe.getBuilders=function(){var a=new Pe,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},oe.defineBuilder=vh,oe.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=wf.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof oe))return y&&E.set(y),E;Ht('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},oe.takeBuilderArgument=sm;function Fc(){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=gi,this.o=br,this.hg=zi,this.ob=this.Bi=1,this.Pf=Xe,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Fc.prototype.copy=function(){var a=new Fc;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 ed(){this.u=-1/0,this.o=0,this.F=An,this.rr=_a,this.j=this.V="None"}ed.prototype.copy=function(){var a=new ed;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},ed.className="LinkElementSettings";function Wg(){this.yj=this.Xi=Yo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Wg.prototype.copy=function(){var a=new Wg;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},Wg.className="LinkSettings";function Kd(){this.ha=[1,0,0,1,0,0]}Kd.prototype.copy=function(){var a=new Kd;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},Kd.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},Kd.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Kd.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)}},Kd.className="STransform";function Bc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Bc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Bc.className="SGradient";function eu(a,y,x){this.ownerDocument=a=y===void 0?$e.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 Es(this,x)}eu.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},eu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ke(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},eu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},eu.prototype.focus=function(){this.Oa.focus()},eu.prototype.mx=function(){this.ownerDocument=null},ce.Object.defineProperties(eu.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}}}),eu.className="SVGSurface";function Es(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 Kd,this.j=lm(this),this.Nj=lm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Wr++,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?Gg(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}Ct=Es.prototype,Ct.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,wt=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(tt-mt)||1e-6<Math.abs(rt-yt))&&this.path.push(["L",mt,+yt]),0>E&&(E=E%ot+ot),E>st?(this.path.push(["A",x,x,0,1,wt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,wt,mt,yt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),wt,a+x*Math.cos(b),y+x*Math.sin(b)])},Ct.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ct.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ct.clearRect=function(){},Ct.clip=function(){this.Yl.clipPath=!0},Ct.closePath=function(){this.path.push(["z"])},Ct.createLinearGradient=function(a,y,x,E){var b=new Bc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ct.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"+Wr++,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(Gd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ct.createRadialGradient=function(a,y,x,E,b,z){var tt=new Bc("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)}Ct.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},ae.$(E,rt)&&ae.$(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')"),Pf(this,Gd,z,this.rb),this.addElement(Gd,z)},Ct.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Ct.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ct.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pf(this,"fill",a,this.rb),this.addElement("rect",a)},Ct.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Pf(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Ct.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},Pf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ct.lineTo=function(a,y){this.path.push(["L",a,y])},Ct.moveTo=function(a,y){this.path.push(["M",a,y])},Ct.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ct.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"])},Ct.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},Ct.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())},Ct.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Gg(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]+")"}Ct.scale=function(a,y){this.rb.scale(a,y)},Ct.translate=function(a,y){this.rb.translate(a,y)},Ct.transform=function(){},Ct.yc=function(){},Ct.stroke=function(){_y(this,this.Yl)},Ct.jk=function(){this.clipInsteadOfFill||this.stroke()},Ct.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ct.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 Pf(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 Bc?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 Bc?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 Bc)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"+Wr++,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+")"}Ct.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=un(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,Pf(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 Gg(a,y,x,E,b,z,tt){var rt=new Kd;rt.ha=[y,x,E,b,z,tt],y={},Pf(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function lm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function yu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Gu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ct.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ct.fs=function(){this.Ct=!1},Ct.Vc=function(){},Ct.Wx=function(){},Es.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Es.prototype.getImageData=function(){return null},Es.prototype.measureText=function(){return null};function um(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()))}Es.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Es.className="SVGContext",Se.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new eu(this,$e.document));var y=new eu(this,$e.document,!0);a===void 0&&(a=new ci);var x=this;return Lc(this,function(E,b){return E=im(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Se.prototype.makeSvg=Se.prototype.Cs,Se.prototype.av=function(a){return this.Cs(a)},Se.prototype.makeSVG=Se.prototype.av;function dl(a,y,x,E){this.ownerDocument=y=y===void 0?$e.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Vd(y,x,E),y.H=a}dl.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},dl.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},dl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},dl.prototype.focus=function(){this.Oa.focus()},dl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ce.Object.defineProperties(dl.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}}}),dl.className="CanvasSurface";function Vd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ht("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 Fi,this.isTemporary=!!x}Ct=Vd.prototype,Ct.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ct.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Ct.beginPath=function(){this.Z.beginPath()},Ct.Se=function(){},Ct.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Ct.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Ct.clip=function(){this.Z.clip()},Ct.closePath=function(){this.Z.closePath()},Ct.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Ct.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ct.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Ct.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)},Ct.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ct.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ct.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ct.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ct.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Ct.lineTo=function(a,y){this.Z.lineTo(a,y)},Ct.measureText=function(a){return this.Z.measureText(a)},Ct.moveTo=function(a,y){this.Z.moveTo(a,y)},Ct.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Ct.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Ct.restore=function(){this.Z.restore()},Ct.save=function(){this.yc(),this.Z.save()},Vd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ct=Vd.prototype,Ct.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Ct.scale=function(a,y){this.El.scale(a,y)},Ct.translate=function(a,y){this.El.translate(a,y)},Ct.stroke=function(){this.Z.stroke()},Ct.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}},Ct.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ct.ng=function(a,y){if(a instanceof Or&&a.type===qs){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)},Ct.jk=function(){this.Hm||this.stroke()},Ct.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ct.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ct.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Ct.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ct.Hs=function(){},ce.Object.defineProperties(Vd.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([]);Vd.className="CanvasSurfaceContext";function Hg(){this.F=this.o=this.u=this.j=0}Hg.className="ColorNumbers";function Or(a,y){Ef||(hv(),Ef=!0),ki(this),this._isFrozen=!1,a===void 0?(this.na=yh,this.xk="black"):typeof a=="string"?(this.na=yh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Zu?(this.Qd=Er,this.Lk=No):this.Lk=a===qs?this.Qd=Ui:this.Qd=Ki,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Or.prototype.copy=function(){var a=new Or;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},Ct=Or.prototype,Ct.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ct.ka=function(){return Object.isFrozen(this)&&Ht("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ct.qb=function(a){a.classType===Or&&(this.type=a)},Ct.toString=function(){var a="Brush(";if(this.type===yh)a+=this.color;else if(a=this.type===Zu?a+"Linear ":this.type===qs?a+"Radial ":this.type===bf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ct.addColorStop=function(a,y){return this._isFrozen&&de(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&wn(a,"0 <= loc <= 1",Or,"addColorStop:loc"),this.we===null&&(this.we=new Pe),this.we.add(a,y),this.na===yh&&(this.type=Zu),this.xe=null,this},Ct.Vz=function(a,y){if(this._isFrozen&&de(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?kf:y,this.type===yh)Hu(this.color),this.color=Lf(a,y);else if((this.type===Zu||this.type===qs)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Hu(x.value),this.addColorStop(x.key,Lf(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?kf:x,Hu(a),Lf(y,x)}Ct.Wy=function(a,y){if(this._isFrozen&&de(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?kf:y,this.type===yh)Hu(this.color),this.color=Lf(-a,y);else if((this.type===Zu||this.type===qs)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Hu(x.value),this.addColorStop(x.key,Lf(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?kf:x,Hu(a),Lf(-y,x)}function ov(a,y,x){Hu(a),a=Jr.j;var E=Jr.u,b=Jr.o,z=Jr.F;return Hu(y),x===void 0&&(x=.5),"rgba("+Math.round((Jr.j-a)*x+a)+", "+Math.round((Jr.u-E)*x+E)+", "+Math.round((Jr.o-b)*x+b)+", "+Math.round((Jr.F-z)*x+z)+")"}Ct.Gx=function(){if(this.type===yh)return Cf(this.color);if((this.type===Zu||this.type===qs)&&this.colorStops!==null){var a=this.colorStops;if(this.type===qs)return Cf(a.first().value);if(a.get(.5)!==null)return Cf(a.get(.5));if(a.count===2)return a=a.Fa(),Cf(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,Cf(ov(a.get(x),a.get(E),1-z/b))}return!1};function Cf(a){return a?a instanceof Or?a.Gx():(Hu(a),128>(299*Jr.j+587*Jr.u+114*Jr.o)/1e3):!1}function Lf(a,y){switch(y){case kf:y=100*sv(Jr.j);var x=100*sv(Jr.u),E=100*sv(Jr.o);return Qa.j=.4124564*y+.3575761*x+.1804375*E,Qa.u=.2126729*y+.7151522*x+.072175*E,Qa.o=.0193339*y+.119192*x+.9503041*E,Qa.F=Jr.F,y=uv(Qa.j/Af[0]),x=uv(Qa.u/Af[1]),E=uv(Qa.o/Af[2]),Su.j=116*x-16,Su.u=500*(y-x),Su.o=200*(x-E),Su.F=Qa.F,Su.j=Math.min(100,Math.max(0,Su.j+100*a)),a=(Su.j+16)/116,y=a-Su.o/200,Qa.j=Af[0]*e1(Su.u/500+a),Qa.u=Af[1]*(Su.j>hm*dv?Math.pow(a,3):Su.j/hm),Qa.o=Af[2]*e1(y),Qa.F=Su.F,a=-.969266*Qa.j+1.8760108*Qa.u+.041556*Qa.o,y=.0556434*Qa.j+-.2040259*Qa.u+1.0572252*Qa.o,Jr.j=255*lv((3.2404542*Qa.j+-1.5371385*Qa.u+-.4985314*Qa.o)/100),Jr.u=255*lv(a/100),Jr.o=255*lv(y/100),Jr.F=Qa.F,Jr.j=Math.round(Jr.j),255<Jr.j?Jr.j=255:0>Jr.j&&(Jr.j=0),Jr.u=Math.round(Jr.u),255<Jr.u?Jr.u=255:0>Jr.u&&(Jr.u=0),Jr.o=Math.round(Jr.o),255<Jr.o?Jr.o=255:0>Jr.o&&(Jr.o=0),"rgba("+Jr.j+", "+Jr.u+", "+Jr.o+", "+Jr.F+")";case n1:return av(),Ws.o=Math.min(100,Math.max(0,Ws.o+100*a)),"hsla("+Ws.j+", "+Ws.u+"%, "+Ws.o+"%, "+Ws.F+")";default:Ht("Unknown color space: "+y)}}function Hu(a){Ef||(hv(),Ef=!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,Jr.j=a[0],Jr.u=a[1],Jr.o=a[2],Jr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Jr.j=0,Jr.u=0,Jr.o=0,Jr.F=1)}}function av(){var a=Jr.j/255,y=Jr.u/255,x=Jr.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))}Ws.j=Math.round(tt),Ws.u=Math.round(100*a),Ws.o=Math.round(100*b),Ws.F=Jr.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):(hm*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/hm}function Dc(a,y){typeof a!="string"&&(a instanceof Or||Ht("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=po?new dl(null,void 0,{willReadFrequently:!0}).context:null}ce.Object.defineProperties(Or.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&de(this,a),this.na=a,this.start.Mc()&&(a===Zu?this.start=Er:a===qs&&(this.start=Ui)),this.end.Mc()&&(a===Zu?this.end=No:a===qs&&(this.end=Ui)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&de(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&de(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&de(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&de(this,a),0>a&&wn(a,">= zero",Or,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&de(this,a),0>a&&wn(a,">= zero",Or,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&de(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&de(this,a),this.cr=a,this.xe=null}}}),Or.prototype.isDark=Or.prototype.Gx,Or.prototype.darkenBy=Or.prototype.Wy,Or.prototype.lightenBy=Or.prototype.Vz,Or.prototype.addColorStop=Or.prototype.addColorStop;var dv=216/24389,hm=24389/27,Af=[95.047,100,108.883],cv=null,Jr=new Hg,Ws=new Hg,Qa=new Hg,Su=new Hg,Ef=!1;Or.className="Brush";var yh;Or.Solid=yh=new Ue(Or,"Solid",0);var Zu;Or.Linear=Zu=new Ue(Or,"Linear",1);var qs;Or.Radial=qs=new Ue(Or,"Radial",2);var bf;Or.Pattern=bf=new Ue(Or,"Pattern",4);var kf;Or.Lab=kf=new Ue(Or,"Lab",5);var n1;Or.HSL=n1=new Ue(Or,"HSL",6),Or.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},Or.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Ef||(hv(),Ef=!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)},Or.lighten=function(a){return $y(a)},Or.lightenBy=$y,Or.darken=function(a){return t1(a)},Or.darkenBy=t1,Or.mix=ov,Or.isDark=Cf;function Zo(){this.xa="Base"}Zo.prototype.measure=function(){},Zo.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Zo.prototype.arrange=function(){},Zo.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Zo.prototype.iA=function(a){a.Uj()},Zo.prototype.gc=function(){},ce.Object.defineProperties(Zo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return on}}}),Zo.prototype.remeasureObject=Zo.prototype.iA,Zo.prototype.arrangeElement=Zo.prototype.Ly,Zo.prototype.measureElement=Zo.prototype.Yz,Zo.className="PanelLayout";function dm(){this.xa="Base"}ue(dm,Zo),dm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=Ku(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 Yi&&st.isGeometryPositioned&&(st=st.strokeWidth/2,mt-=st,yt-=st),cr(b,mt,yt,ft,ut)}}},dm.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 Yi&&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 cm(){this.xa="Base"}ue(cm,Zo),cm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=Dn(),z=Ku(a);for(var ot=0;ot<rt;ot++){var st=E[ot];if(st.visible||st===z){var ut=ss(st,!1);if(ut!==Xe&&ut!==di)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));Un(y)},cm.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,wt=z+b.bottom,bt=ft.height,Gt=ss(ut,!1);(isNaN(ut.desiredSize.height)&&Gt===rn||Gt===Li)&&(bt=Math.max(x.height-yt-wt,0)),yt=bt+yt+wt,wt=ut.alignment,wt.Xb()&&(wt=a.defaultAlignment),wt.sb()||(wt=Ui),tt&&(rt-=ft.width+mt.left+mt.right),ut.arrange(rt+wt.offsetX+mt.left,st+wt.offsetY+mt.top+(x.height*wt.y-yt*wt.y),ft.width,bt),tt||(rt+=ft.width+mt.left+mt.right)}}};function fm(){this.xa="Base"}ue(fm,Zo),fm.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=Dn();for(var rt=Ku(a),ot=0;ot<tt;ot++){var st=E[ot];if(st.visible||st===rt){var ut=ss(st,!1);if(ut!==Xe&&ut!==Li)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,Mr(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);Un(x)}},fm.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,wt=z+b.right,bt=ft.width,Gt=ss(ut,!1);(isNaN(ut.desiredSize.width)&&Gt===rn||Gt===di)&&(bt=Math.max(x.width-yt-wt,0)),yt=bt+yt+wt,wt=ut.alignment,wt.Xb()&&(wt=a.defaultAlignment),wt.sb()||(wt=Ui),tt&&(rt-=ft.height+mt.bottom+mt.top),ut.arrange(st+wt.offsetX+mt.left+(x.width*wt.x-yt*wt.x),rt+wt.offsetY+mt.top,bt,ft.height),tt||(rt+=ft.height+mt.bottom+mt.top)}}};function gm(){this.xa="Base"}ue(gm,Zo),gm.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),wt=Math.max(tt+ft,0),bt=a.isClipping,Gt=Ce.allocAt(-st.left,-st.top,yt,wt),It=Ce.allocAt(0,0,z,tt);fv(ot,It,!0),z=It.width,tt=It.height;for(var Xt=!0,Qt=Ku(a),qt=0;qt<rt;qt++){var re=E[qt];mt=y;var ye=x;if(re!==ot&&(re.visible||re===Qt)){st=re.margin;var En=st.left,qn=st.top;switch(yt=st.right+st.left,wt=st.top+st.bottom,st=ss(re,!1),st){case rn:mt=z,ye=tt,qn=En=wt=yt=0;break;case di:mt=z,En=yt=0;break;case Li:ye=tt,qn=wt=0}re.measure(mt,ye,0,0),mt=re.measuredBounds,yt=Math.max(mt.width+yt,0),wt=Math.max(mt.height+wt,0),st=re.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=Ui);var Kn=re.alignmentFocus;if(Kn.Xb()&&(Kn=Ui),ye=null,re instanceof on&&re.$e!==""&&(ye=re.fb(re.$e),ye===re&&(ye=null)),En=It.x-En,qn=It.y-qn,ye!==null){for(re.arrange(0,0,mt.width,mt.height),mt=ye.actualBounds,mt=Mt.allocAt(mt.x+(Kn.x*mt.width-Kn.offsetX),mt.y+(Kn.y*mt.height-Kn.offsetY)),ye=ye.panel;ye!==re;)ye.transform.Ga(mt),ye=ye.panel;En+=st.x*z+st.offsetX-mt.x,qn+=st.y*tt+st.offsetY-mt.y,Mt.free(mt)}else En+=st.x*z+st.offsetX-(Kn.x*mt.width+Kn.offsetX),qn+=st.y*tt+st.offsetY-(Kn.y*mt.height+Kn.offsetY);Xt?(Xt=!1,b.h(En,qn,yt,wt)):cr(b,En,qn,yt,wt)}}switch(Xt?b.assign(Gt):bt?b.Uu(It.x,It.y,It.width,It.height):cr(b,Gt.x,Gt.y,Gt.width,Gt.height),Ce.free(Gt),Ce.free(It),st=ot.stretch,st===zi&&(st=ss(ot,!1)),st){case Xe:return;case rn:if(!isFinite(y)&&!isFinite(x))return;break;case di:if(!isFinite(y))return;break;case Li:if(!isFinite(x))return}for(mt=ot.measuredBounds,z=mt.width,tt=mt.height,yt=Math.max(z+ut,0),wt=Math.max(tt+ft,0),st=ot.margin,It=Ce.allocAt(-st.left,-st.top,yt,wt),fv(ot,It,!0),z=It.width,tt=It.height,y=0;y<rt;y++)x=E[y],x===ot||!x.visible&&x!==Qt||(st=x.margin,yt=st.right+st.left,wt=st.top+st.bottom,mt=x.measuredBounds,yt=Math.max(mt.width+yt,0),wt=Math.max(mt.height+wt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Ui),x=x.alignmentFocus,x.Xb()&&(x=Ui),Xt?(Xt=!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,wt)):cr(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,wt));Xt?b.assign(Gt):bt?b.Uu(It.x,It.y,It.width,It.height):cr(b,Gt.x,Gt.y,Gt.width,Gt.height),Ce.free(It)},gm.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=Ce.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=Ui);var wt=ft.alignmentFocus;if(wt.Xb()&&(wt=Ui),st=null,ft instanceof on&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var bt=st.actualBounds;for(wt=Mt.allocAt(bt.x+(wt.x*bt.width-wt.offsetX),bt.y+(wt.y*bt.height-wt.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(wt),st=st.panel;st=ut.x*tt.width+ut.offsetX-wt.x,ut=ut.y*tt.height+ut.offsetY-wt.y,Mt.free(wt)}else st=ut.x*tt.width+ut.offsetX-(wt.x*mt+wt.offsetX),ut=ut.y*tt.height+ut.offsetY-(wt.y*yt+wt.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,ot+ut,mt,yt)}}Ce.free(tt)};function fv(a,y,x){var E=null;if(a instanceof on&&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 pm(){this.xa="Base"}ue(pm,Zo),pm.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 wt=0,bt=null;ot instanceof Yi&&(bt=ot,wt=bt.strokeWidth*bt.scale);var Gt=Math.max(st.width+mt,0);st=Math.max(st.height+yt,0);var It=vv(ot),Xt=It.x*Gt+It.offsetX;It=It.y*st+It.offsetY;var Qt=yv(ot),qt=Qt.x*Gt+Qt.offsetX;for(Qt=Qt.y*st+Qt.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(Xt-qt)-wt,0)),isFinite(x)&&(ft=Math.max(Math.abs(It-Qt)-wt,0)),wt=Ve.alloc(),wt.h(0,0),a=Ku(a),Qt=0;Qt<rt;Qt++)It=E[Qt],It===ot||!It.visible&&It!==a||(st=It.margin,Gt=st.right+st.left,Xt=st.top+st.bottom,It.measure(ut,ft,0,0),st=It.measuredBounds,Gt=Math.max(st.width+Gt,0),st=Math.max(st.height+Xt,0),wt.h(Math.max(Gt,wt.width),Math.max(st,wt.height)));if(rt===1)b.width=Gt,b.height=st,Ve.free(wt);else{switch(It=vv(ot),Qt=yv(ot),rt=E=0,Qt.x!==It.x&&Qt.y!==It.y&&(E=wt.width/Math.abs(Qt.x-It.x),rt=wt.height/Math.abs(Qt.y-It.y)),Ve.free(wt),wt=0,bt!==null&&(wt=bt.strokeWidth*bt.scale,Lv(bt)===oi&&(E=rt=Math.max(E,rt))),E+=Math.abs(It.offsetX)+Math.abs(Qt.offsetX)+wt,rt+=Math.abs(It.offsetY)+Math.abs(Qt.offsetY)+wt,bt=ot.stretch,bt===zi&&(bt=ss(ot,!1)),bt){case Xe:tt=z=0;break;case rn:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case di:isFinite(y)&&(E=y),tt=0;break;case Li: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}},pm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=Ce.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,cr(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=Ui),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&&(eo(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 Ce(z.x,z.y,z.width,z.height))));Ce.free(z)};function mm(){this.xa="Base",this.name="Table"}ue(mm,Zo),mm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=Dn(),rt=Dn(),ot=0;ot<z;ot++){var st=E[ot],ut=st instanceof on?st:null;if(ut!==null&&Sh(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,mt=ft.length,yt=0;yt<mt;yt++){var wt=ft[yt];ut.type===on.TableRow?wt.row=st.row:ut.type===on.TableColumn&&(wt.column=st.column),tt.push(wt)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var bt=[],Gt=0;Gt<z;Gt++){var It=tt[Gt];It.visible&&(Ro(It,!0),vu(It,!0),bt[It.row]||(bt[It.row]=[]),bt[It.row][It.column]||(bt[It.row][It.column]=[]),bt[It.row][It.column].push(It))}Un(tt);var Xt=Dn(),Qt=Dn(),qt=Dn(),re={count:0},ye={count:0},En=y,qn=x,Kn=a.rowDefs,fn=a.colDefs,Ze=null;z=Kn.length;for(var Ti=0;Ti<z;Ti++)Ze=Kn[Ti],Ze!==void 0&&(Ze.actual=0);z=fn.length;for(var Bi=0;Bi<z;Bi++)Ze=fn[Bi],Ze!==void 0&&(Ze.actual=0);for(var Cr=bt.length,Ur=0,Qo=0;Qo<Cr;Qo++)bt[Qo]&&(Ur=Math.max(Ur,bt[Qo].length));var ta=Math.min(a.topIndex,Cr-1),za=Math.min(a.leftIndex,Ur-1),qo=0;Cr=bt.length;for(var Mh=Ku(a),Mo=0;Mo<Cr;Mo++)if(bt[Mo]){Ur=bt[Mo].length;var Wl=a.Fb(Mo);Wl.actual=0;for(var ja=Wl.oc=0;ja<Ur;ja++)if(bt[Mo][ja]){var Fh=a.Eb(ja);Xt[ja]===void 0&&(Fh.actual=0,Fh.oc=0,Xt[ja]=!0);for(var Zs=bt[Mo][ja],pl=Zs.length,Ms=0;Ms<pl;Ms++){var ys=Zs[Ms];if(ys.visible||ys===Mh){var pd=1<ys.rowSpan||1<ys.columnSpan;pd&&(Mo<ta||ja<za||Qt.push(ys));var Gl=ys.margin,qf=Gl.right+Gl.left,Fs=Gl.top+Gl.bottom,Wa=Ol(ys,Wl,Fh,!1),Mp=ys.desiredSize,Kc=!isNaN(Mp.height),ru=!isNaN(Mp.width)&&Kc;if(pd||Wa===Xe||ru||Mo<ta||ja<za||(re[ja]!==void 0||Wa!==rn&&Wa!==di||(re[ja]=-1,re.count++),ye[Mo]!==void 0||Wa!==rn&&Wa!==Li||(ye[Mo]=-1,ye.count++),qt.push(ys)),ys.measure(1/0,1/0,0,0),!(Mo<ta||ja<za)){var Ss=ys.measuredBounds,tc=Math.max(Ss.width+qf,0),Bs=Math.max(Ss.height+Fs,0);if(ys.rowSpan===1&&(Wa===Xe||Wa===di)){Ze=a.Fb(Mo);var md=Ze.Wc();qo=Math.max(Bs-Ze.actual,0),qo+md>qn&&(qo=Math.max(qn-md,0));var j0=Ze.oa===0;Ze.oc=Ze.oc+qo,Ze.actual=Ze.oa+qo,qn=Math.max(qn-(qo+(j0?md:0)),0)}if(ys.columnSpan===1&&(Wa===Xe||Wa===Li)){Ze=a.Eb(ja);var Fp=Ze.Wc();qo=Math.max(tc-Ze.actual,0),qo+Fp>En&&(qo=Math.max(En-Fp,0));var Wy=Ze.oa===0;Ze.oc=Ze.oc+qo,Ze.actual=Ze.oa+qo,En=Math.max(En-(qo+(Wy?Fp:0)),0)}pd&&ys.Uj()}}}}}Un(Xt);var ku=0,Yu=0;z=a.columnCount;for(var Vc=0;Vc<z;Vc++){var vd=fn[Vc];vd!==void 0&&(ku+=isNaN(vd.Hc)?vd.oc:vd.Hc,vd.oc!==0&&(ku+=vd.Wc()))}z=a.rowCount;for(var _f=0;_f<z;_f++){var yd=Kn[_f];yd!==void 0&&(Yu+=isNaN(yd.Hc)?yd.oc:yd.Hc,yd.oc!==0&&(Yu+=yd.Wc()))}En=Math.max(y-ku,0);var Mu=qn=Math.max(x-Yu,0),Bh=En;z=qt.length;for(var xs=0;xs<z;xs++){var ou=qt[xs],W0=a.Fb(ou.row),Xu=a.Eb(ou.column),$f=ou.measuredBounds,Hl=ou.margin,ec=Hl.right+Hl.left,au=Hl.top+Hl.bottom;re[ou.column]=Xu.oc===0&&re[ou.column]!==void 0?Math.max($f.width+ec,re[ou.column]):null,ye[ou.row]=W0.oc===0&&ye[ou.row]!==void 0?Math.max($f.height+au,ye[ou.row]):null}var Uc=0,tg=0,Ml;for(Ml in ye)Ml!=="count"&&(Uc+=ye[Ml]);for(Ml in re)Ml!=="count"&&(tg+=re[Ml]);for(var da=Ve.alloc(),Bp=0;Bp<z;Bp++){var is=qt[Bp];if(is.visible||is===Mh){var Fo=a.Fb(is.row),rs=a.Eb(is.column),Ju=0;isFinite(rs.width)?Ju=rs.width:(isFinite(En)&&re[is.column]!==null?tg===0?Ju=rs.actual+En:Ju=re[is.column]/tg*Bh:re[is.column]!==null?Ju=En:Ju=rs.actual||En,Ju=Math.max(0,Ju-rs.Wc()));var Dh=0;switch(isFinite(Fo.height)?Dh=Fo.height:(isFinite(qn)&&ye[is.row]!==null?Uc===0?Dh=Fo.actual+qn:Dh=ye[is.row]/Uc*Mu:ye[is.row]!==null?Dh=qn:Dh=Fo.actual||qn,Dh=Math.max(0,Dh-Fo.Wc())),da.h(Math.max(rs.minimum,Math.min(Ju,rs.maximum)),Math.max(Fo.minimum,Math.min(Dh,Fo.maximum))),Wa=Ol(is,Fo,rs,!1),Wa){case di:da.height=Math.max(da.height,Fo.actual+qn);break;case Li:da.width=Math.max(da.width,rs.actual+En)}var nc=is.margin,Gy=nc.right+nc.left,G0=nc.top+nc.bottom;is.Uj(),is.measure(da.width,da.height,rs.minimum,Fo.minimum);var eg=is.measuredBounds,ic=Math.max(eg.width+Gy,0),Yc=Math.max(eg.height+G0,0);isFinite(En)&&(ic=Math.min(ic,da.width)),isFinite(qn)&&(Yc=Math.min(Yc,da.height));var ws=0;ws=Fo.actual,Fo.actual=Math.max(Fo.actual,Yc),Fo.oc=Math.max(Fo.oc,Yc),qo=Fo.actual-ws,qn=Math.max(qn-qo,0),ye[is.row]===null&&(Mu=Math.max(Mu-qo,0)),ws=rs.actual,rs.actual=Math.max(rs.actual,ic),rs.oc=Math.max(rs.oc,ic),qo=rs.actual-ws,En=Math.max(En-qo,0),re[is.column]===null&&(Bh=Math.max(Bh-qo,0))}}Un(qt);var Qu=Ve.alloc(),Zl=Dn(),nl=Dn();if(z=Qt.length,z!==0){for(var Sd=0;Sd<Cr;Sd++)if(bt[Sd]){Ur=bt[Sd].length;var ng=a.Fb(Sd);Zl[Sd]=ng.actual;for(var xd=0;xd<Ur;xd++)if(bt[Sd][xd]){var H0=a.Eb(xd);nl[xd]=H0.actual}}}for(var ig=0;ig<z;ig++){var So=Qt[ig];if(So.visible||So===Mh){var Fl=a.Fb(So.row),ml=a.Eb(So.column);switch(da.h(Math.max(ml.minimum,Math.min(y,ml.maximum)),Math.max(Fl.minimum,Math.min(x,Fl.maximum))),Wa=Ol(So,Fl,ml,!1),Wa){case rn:nl[ml.index]!==0&&(da.width=Math.min(da.width,nl[ml.index])),Zl[Fl.index]!==0&&(da.height=Math.min(da.height,Zl[Fl.index]));break;case di:nl[ml.index]!==0&&(da.width=Math.min(da.width,nl[ml.index]));break;case Li:Zl[Fl.index]!==0&&(da.height=Math.min(da.height,Zl[Fl.index]))}isFinite(ml.width)&&(da.width=ml.width),isFinite(Fl.height)&&(da.height=Fl.height),Qu.h(0,0);for(var Z0=ml.minimum,Ds=Fl.minimum,Nh=1;Nh<So.rowSpan&&!(So.row+Nh>=a.rowCount);Nh++)Ze=a.Fb(So.row+Nh),qo=0,qo=Wa===rn||Wa===Li?Math.max(Ze.minimum,Zl[So.row+Nh]===0?Ze.maximum:Math.min(Zl[So.row+Nh],Ze.maximum)):Math.max(Ze.minimum,isNaN(Ze.Hc)?Ze.maximum:Math.min(Ze.Hc,Ze.maximum)),Qu.height+=qo,Ds+=Ze.minimum;for(var vl=1;vl<So.columnSpan&&!(So.column+vl>=a.columnCount);vl++)Ze=a.Eb(So.column+vl),qo=0,qo=Wa===rn||Wa===di?Math.max(Ze.minimum,nl[So.column+vl]===0?Ze.maximum:Math.min(nl[So.column+vl],Ze.maximum)):Math.max(Ze.minimum,isNaN(Ze.Hc)?Ze.maximum:Math.min(Ze.Hc,Ze.maximum)),Qu.width+=qo,Z0+=Ze.minimum;da.width+=Qu.width,da.height+=Qu.height;var rg=So.margin,wd=rg.right+rg.left,Dp=rg.top+rg.bottom;So.measure(da.width,da.height,Z0,Ds);for(var og=So.measuredBounds,su=Math.max(og.width+wd,0),rc=Math.max(og.height+Dp,0),Pd=0,ag=0;ag<So.rowSpan&&!(So.row+ag>=a.rowCount);ag++)Ze=a.Fb(So.row+ag),Pd+=Ze.total||0;if(Pd<rc){var Th=rc-Pd,Fu=rc-Pd;if(So.spanAllocation!==null)for(var Oh=So.spanAllocation,qu=0;qu<So.rowSpan&&!(0>=Th)&&!(So.row+qu>=a.rowCount);qu++){Ze=a.Fb(So.row+qu);var Ih=Ze.oa||0,oc=Oh(So,Ze,Fu);Ze.actual=Math.min(Ze.maximum,Ih+oc),Ze.oa!==Ih&&(Th-=Ze.oa-Ih)}for(;0<Th;){var Kl=Ze.oa||0;if(isNaN(Ze.height)&&Ze.maximum>Kl&&(Ze.actual=Math.min(Ze.maximum,Kl+Th),Ze.oa!==Kl&&(Th-=Ze.oa-Kl)),Ze.index===0)break;Ze=a.Fb(Ze.index-1)}}for(var Xc=0,Rh=0;Rh<So.columnSpan&&!(So.column+Rh>=a.columnCount);Rh++)Ze=a.Eb(So.column+Rh),Xc+=Ze.total||0;if(Xc<su){var Jc=su-Xc,Hy=su-Xc;if(So.spanAllocation!==null)for(var _u=So.spanAllocation,ac=0;ac<So.columnSpan&&!(0>=Jc)&&!(So.column+ac>=a.columnCount);ac++){Ze=a.Eb(So.column+ac);var Np=Ze.oa||0,Zy=_u(So,Ze,Hy);Ze.actual=Math.min(Ze.maximum,Np+Zy),Ze.oa!==Np&&(Jc-=Ze.oa-Np)}for(;0<Jc;){var K0=Ze.oa||0;if(isNaN(Ze.width)&&Ze.maximum>K0&&(Ze.actual=Math.min(Ze.maximum,K0+Jc),Ze.oa!==K0&&(Jc-=Ze.oa-K0)),Ze.index===0)break;Ze=a.Eb(Ze.index-1)}}}}Un(Qt),Ve.free(Qu),Ve.free(da),Zl!==void 0&&Un(Zl),nl!==void 0&&Un(nl);var Qc=0,qc=0,V0=a.desiredSize,gx=a.maxSize;Wa=ss(a,!0);var Tp=Yu=ku=0,Op=0;z=a.columnCount;for(var U0=0;U0<z;U0++)fn[U0]!==void 0&&(Ze=a.Eb(U0),isFinite(Ze.width)?(Tp+=Ze.width,Tp+=Ze.Wc()):Em(Ze)===Ug?(Tp+=Ze.oa,Tp+=Ze.Wc()):Ze.oa!==0&&(ku+=Ze.oa,ku+=Ze.Wc()));isFinite(V0.width)?Qc=Math.min(V0.width,gx.width):Qc=Wa!==Xe&&isFinite(y)?y:ku,Qc=Math.max(Qc,a.minSize.width),Qc=Math.max(Qc-Tp,0);for(var qx=ku===0?1:Math.max(Qc/ku,1),Y0=0;Y0<z;Y0++)fn[Y0]!==void 0&&(Ze=a.Eb(Y0),isFinite(Ze.width)||Em(Ze)===Ug||(Ze.actual=Ze.oa*qx),Ze.position=b.width,Ze.oa!==0&&(b.width+=Ze.oa,b.width+=Ze.Wc()));z=a.rowCount;for(var X0=0;X0<z;X0++)Kn[X0]!==void 0&&(Ze=a.Fb(X0),isFinite(Ze.height)?(Op+=Ze.height,Op+=Ze.Wc()):Em(Ze)===Ug?(Op+=Ze.oa,Op+=Ze.Wc()):Ze.oa!==0&&(Yu+=Ze.oa,Yu+=Ze.Wc()));isFinite(V0.height)?qc=Math.min(V0.height,gx.height):qc=Wa!==Xe&&isFinite(x)?x:Yu,qc=Math.max(qc,a.minSize.height),qc=Math.max(qc-Op,0);for(var _x=Yu===0?1:Math.max(qc/Yu,1),J0=0;J0<z;J0++)Kn[J0]!==void 0&&(Ze=a.Fb(J0),isFinite(Ze.height)||Em(Ze)===Ug||(Ze.actual=Ze.oa*_x),Ze.position=b.height,Ze.oa!==0&&(b.height+=Ze.oa,b.height+=Ze.Wc()));z=rt.length;for(var Ky=0;Ky<z;Ky++){var Ip=rt[Ky],Vy=0,Uy=0;Ip.type===on.TableRow?(Vy=b.width,Ze=a.Fb(Ip.row),Uy=Ze.actual):(Ze=a.Eb(Ip.column),Vy=Ze.actual,Uy=b.height),Ip.measuredBounds.h(0,0,Vy,Uy),Ro(Ip,!1)}Un(rt),a.inRowsCols=bt},mm.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 wt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;wt!==ut&&(rt[wt]===void 0||rt[wt].oa===0);)wt++;wt=Math.max(Math.min(wt,ut-1),0),mt=-rt[wt].position}for(var bt=0,Gt=0;bt!==st&&ot[bt]===void 0;)bt++;for(;Gt!==st&&rt[Gt]===void 0;)Gt++;ut=a.part,a.Fb(bt),a.Eb(Gt);for(var It=0;It<y.length;It++){var Xt=y[It];if(Xt instanceof on&&Xt.visible&&Sh(Xt)){if(Xt.type===on.TableRow){rt=a.Fb(Xt.row);var Qt=a.Eb(Gt)}else rt=a.Fb(bt),Qt=a.Eb(Xt.column);ot=rt.position+ft+b,rt.oa!==0&&(ot+=rt.Io(Math.max(bt,yt))),rt=Qt.position+mt+z,Qt.oa!==0&&(rt+=Qt.Io(Math.max(Gt,wt))),Qt=Xt.measuredBounds,Xt.Uk(),Xt.actualBounds.ka();var qt=Xt.actualBounds,re=Ce.allocAt(qt.x,qt.y,qt.width,qt.height);qt.x=Xt.type===on.TableRow?z:rt,qt.y=Xt.type===on.TableColumn?b:ot,qt.width=Qt.width,qt.height=Qt.height,Xt.actualBounds.freeze(),vu(Xt,!1),pr(re,qt)||ut===null||(ut.oh(),Xt.Pn(ut)),Ce.free(re)}}for(It=Ve.alloc(),Xt=0;Xt<st;Xt++)if(tt[Xt]){for(ut=tt[Xt].length,Qt=a.Fb(Xt),ot=Qt.position+ft+b,Qt.oa!==0&&(ot+=Qt.Io(Math.max(bt,yt))),qt=0;qt<ut;qt++)if(tt[Xt][qt]){re=a.Eb(qt),rt=re.position+mt+z,re.oa!==0&&(rt+=re.Io(Math.max(Gt,wt)));for(var ye=tt[Xt][qt],En=ye.length,qn=0;qn<En;qn++){var Kn=ye[qn],fn=Kn.measuredBounds;It.h(0,0);for(var Ze=1;Ze<Kn.rowSpan&&!(Xt+Ze>=a.rowCount);Ze++){var Ti=a.Fb(Xt+Ze);Ti.oa!==0&&(It.height+=Ti.total)}for(Ze=1;Ze<Kn.columnSpan&&!(qt+Ze>=a.columnCount);Ze++)Ti=a.Eb(qt+Ze),Ti.oa!==0&&(It.width+=Ti.total);var Bi=re.oa+It.width,Cr=Qt.oa+It.height;Ze=rt,Ti=ot;var Ur=Bi,Qo=Cr,ta=rt,za=ot,qo=Bi,Mh=Cr;rt+Bi>x.width&&(qo=Math.max(x.width-rt,0)),ot+Cr>x.height&&(Mh=Math.max(x.height-ot,0));var Mo=Kn.alignment;if(Mo.Xb()){Mo=a.defaultAlignment,Mo.sb()||(Mo=Ui);var Wl=Mo.x,ja=Mo.y,Fh=Mo.offsetX;Mo=Mo.offsetY;var Zs=re.alignment,pl=Qt.alignment;Zs.sb()&&(Wl=Zs.x,Fh=Zs.offsetX),pl.sb()&&(ja=pl.y,Mo=pl.offsetY)}else Wl=Mo.x,ja=Mo.y,Fh=Mo.offsetX,Mo=Mo.offsetY;(isNaN(Wl)||isNaN(ja))&&(ja=Wl=.5,Mo=Fh=0),Zs=fn.width,pl=fn.height;var Ms=Kn.margin,ys=Ms.left+Ms.right,pd=Ms.top+Ms.bottom,Gl=Ol(Kn,Qt,re,!1);!isNaN(Kn.desiredSize.width)||Gl!==rn&&Gl!==di||(Zs=Math.max(Bi-ys,0)),!isNaN(Kn.desiredSize.height)||Gl!==rn&&Gl!==Li||(pl=Math.max(Cr-pd,0)),Bi=Kn.maxSize,Cr=Kn.minSize,Zs=Math.min(Bi.width,Zs),pl=Math.min(Bi.height,pl),Zs=Math.max(Cr.width,Zs),pl=Math.max(Cr.height,pl),Bi=pl+pd,Ze+=Ur*Wl-(Zs+ys)*Wl+Fh+Ms.left,Ti+=Qo*ja-Bi*ja+Mo+Ms.top,Kn.visible&&(eo(ta,za,qo,Mh,Ze,Ti,fn.width,fn.height)?Kn.arrange(Ze,Ti,Zs,pl):Kn.arrange(Ze,Ti,Zs,pl,new Ce(ta,za,qo,Mh)))}}}for(Ve.free(It),a=0;a<E;a++)x=y[a],z=x instanceof on?x:null,z!==null&&Sh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function vm(){this.xa="Base"}ue(vm,Zo),vm.prototype.measure=function(){},vm.prototype.arrange=function(){};function ym(){this.xa="Base"}ue(ym,Zo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}ue(Sm,Zo),Sm.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&Ht("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),wt=1;a.viewboxStretch===oi?ft!==0&&rt!==0&&(wt=Math.min(mt/ft,yt/rt)):ft!==0&&rt!==0&&(wt=Math.max(mt/ft,yt/rt)),wt===0&&(wt=1e-4),E.Ca*=wt,ut!==E.scale&&(Ro(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)},Sm.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=Ui),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 Zg(){this.xa="Base"}ue(Zg,Zo),Zg.prototype.measure=function(){},Zg.prototype.arrange=function(){},Zg.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=[],wt=a.O.s,bt=wt.length,Gt=0;Gt<bt;Gt++){var It=wt[Gt],Xt=[];if(yt.push(Xt),It.visible){var Qt=It.interval;if(!(0>Qt)){It=pv(It.figure);for(var qt=0;qt<bt;qt++)if(qt!==Gt){var re=wt[qt];re.visible&&pv(re.figure)===It&&(re=re.interval,re>Qt&&Xt.push(re))}}}}for(wt=a.O.s,bt=wt.length,Gt=0;Gt<bt;Gt++){var ye=wt[Gt];if(ye.visible&&(Xt=ye.interval||1,It=Math.abs(Xt),!(2>b*It*x))){if(Qt=ye.segmentIndex,(!isFinite(Qt)||isNaN(Qt))&&(Qt=0),0>Qt&&(Qt=It-Math.min(-Qt,It)),Qt=Math.round(Qt%It),It=ye.opacity,qt=1,It!==1){if(It===0)continue;qt=y.globalAlpha,y.globalAlpha=qt*It}re=yt[Gt];var En=!1,qn=ye.strokeDashArray;if(qn!==null&&(En=!0,y.js(qn,ye.strokeDashOffset)),ye.figure==="LineV"&&ye.stroke!==null&&0<ye.strokeWidth){for(y.lineWidth=ye.strokeWidth,mo(a,y,ye.stroke,!1,!1,z,tt),y.beginPath(),qn=ye=Math.floor((mt-b)/b);qn<=ye+st;qn++){var Kn=qn*b+mt;0<=Kn&&Kn<=rt&&xm(qn,Xt,Qt,re)&&(y.moveTo(Kn,0),y.lineTo(Kn,ot))}y.stroke(),y.Se()}else if(ye.figure==="LineH"&&ye.stroke!==null&&0<ye.strokeWidth){for(y.lineWidth=ye.strokeWidth,mo(a,y,ye.stroke,!1,!1,z,tt),y.beginPath(),qn=ye=Math.floor((ft-E)/E);qn<=ye+ut;qn++)Kn=qn*E+ft,0<=Kn&&Kn<=ot&&xm(qn,Xt,Qt,re)&&(y.moveTo(0,Kn),y.lineTo(rt,Kn));y.stroke(),y.Se()}else if(ye.figure==="BarV"&&ye.fill!==null)for(mo(a,y,ye.fill,!0,!1,z,tt),ye=ye.width,isNaN(ye)&&(ye=b),Kn=qn=Math.floor((mt-b)/b);Kn<=qn+st;Kn++){var fn=Kn*b+mt;0<=fn+ye&&fn<=rt&&xm(Kn,Xt,Qt,re)&&y.fillRect(fn,0,ye,ot)}else if(ye.figure==="BarH"&&ye.fill!==null)for(mo(a,y,ye.fill,!0,!1,z,tt),ye=ye.height,isNaN(ye)&&(ye=E),Kn=qn=Math.floor((ft-E)/E);Kn<=qn+ut;Kn++)fn=Kn*E+ft,0<=fn+ye&&fn<=ot&&xm(Kn,Xt,Qt,re)&&y.fillRect(0,fn,rt,ye);En&&y.fs(),It!==1&&(y.globalAlpha=qt)}}y.restore(),y.Vc(!1)};function xm(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 wm(){this.xa="Base"}ue(wm,Zo),wm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof wr||a instanceof gn){var tt=null,rt=null;if(a instanceof gn&&(tt=a),a instanceof wr&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof gn){var ot=tt;if(z===0)Mr(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof wr?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){i1(a,rt,mt,st);var wt=st.measuredBounds;x.ed(wt),yt.push(wt)}wt=Fi.alloc();for(var bt=Mt.alloc(),Gt=Mt.alloc(),It=0;It<z;It++){var Xt=E[It];if(Xt!==st)if(Xt.isPanelMain&&Xt instanceof Yi){i1(a,rt,mt,Xt);var Qt=Xt.measuredBounds;x.ed(Qt),yt.push(Qt)}else if(2>ft)Xt.measure(1/0,1/0,0,0),Qt=Xt.measuredBounds,x.ed(Qt),yt.push(Qt);else{var qt=Xt.segmentIndex,re=Xt.segmentFraction,ye=Xt.alignmentFocus;ye.Mc()&&(ye=Ui);var En=Xt.segmentOrientation,qn=Xt.segmentOffset;if(isNaN(qt)){var Kn=ot.ua;Qt=Dn(),Kn.Qu(re,Qt);var fn=Mt.allocAt(Qt[0],Qt[1]);if(fn.add(ot.i(0)),Kn.type===dn.j?fn.offset(-Kn.startX,-Kn.startY):(Kn=Kn.figures.first(),Kn!==null&&fn.offset(-Kn.startX,-Kn.startY)),Kn=Qt[2],En!==_a){var Ze=ot.computeAngle(Xt,En,Kn);Xt.Kb=Ze}Ze=fn.x-y.x;var Ti=fn.y-y.y;Mt.free(fn),Un(Qt)}else if(qt<-ft||qt>=ft)Qt=Mt.alloc(),ot.vg(),ot.computeMidPoint(Qt),Kn=ot.midAngle,En!==_a&&(Ze=ot.computeAngle(Xt,En,Kn),Xt.Kb=Ze),Ze=Qt.x-y.x,Ti=Qt.y-y.y,Mt.free(Qt);else{if(Ze=0,0<=qt?(Ti=ut.M(qt),Qt=qt<ft-1?ut.M(qt+1):Ti):(Ze=ft+qt,Ti=ut.M(Ze),Qt=0<Ze?ut.M(Ze-1):Ti),Ti.Xa(Qt)){0<=qt?(Kn=0<qt?ut.M(qt-1):Ti,Ze=qt<ft-2?ut.M(qt+2):Qt):(Kn=Ze<ft-1?ut.M(Ze+1):Ti,Ze=1<Ze?ut.M(Ze-2):Qt),fn=Kn.Bf(Ti);var Bi=Qt.Bf(Ze);Kn=fn>Bi+10?0<=qt?Kn.ab(Ti):Ti.ab(Kn):Bi>fn+10?0<=qt?Qt.ab(Ze):Ze.ab(Qt):0<=qt?Kn.ab(Ze):Ze.ab(Kn)}else Kn=0<=qt?Ti.ab(Qt):Qt.ab(Ti);En!==_a&&(Ze=ot.computeAngle(Xt,En,Kn),Xt.Kb=Ze),Ze=Ti.x+(Qt.x-Ti.x)*re-y.x,Ti=Ti.y+(Qt.y-Ti.y)*re-y.y}Xt.measure(1/0,1/0,0,0),Qt=Xt.measuredBounds,fn=Xt.naturalBounds;var Cr=0;Xt instanceof Yi&&(Cr=Xt.strokeWidth),Bi=fn.width+Cr;var Ur=fn.height+Cr;wt.reset(),wt.translate(-Qt.x,-Qt.y),wt.scale(Xt.scale,Xt.scale),wt.rotate(En===_a?Xt.angle:Kn,Bi/2,Ur/2),En!==np&&En!==rp||wt.rotate(90,Bi/2,Ur/2),En!==ip&&En!==op||wt.rotate(-90,Bi/2,Ur/2),En===qm&&(45<Kn&&135>Kn||225<Kn&&315>Kn)&&wt.rotate(-Kn,Bi/2,Ur/2),fn=new Ce(0,0,Bi,Ur),bt.xi(fn,ye),wt.Ga(bt),ye=-bt.x+Cr/2*Xt.scale,Xt=-bt.y+Cr/2*Xt.scale,Gt.assign(qn),Cr=isNaN(qn.x);var Qo=isNaN(qn.y);if(Cr||Qo){Bi=Bi/2+3,Ur=Ur/2+3;var ta=45<=Kn&&135>=Kn,za=225<=Kn&&315>=Kn;En===_a&&(ta||za)?(Gt.x=Qo?Bi:qn.y,Gt.y=Cr?Ur:qn.x,ta?0<=qt||isNaN(qt)&&.5>re||!Cr||(Gt.y=-Ur):za&&((0<=qt||isNaN(qt)&&.5>re)&&Cr&&(Gt.y=-Ur),Qo&&(Gt.x=-Bi))):(Cr&&(Gt.x=0<=qt||isNaN(qt)&&.5>re?Bi:-Bi),Qo&&(Gt.y=-Ur),Gt.rotate(Kn))}else Gt.rotate(Kn);Ze+=Gt.x,Ti+=Gt.y,fn.set(Qt),fn.h(Ze+ye,Ti+Xt,Qt.width,Qt.height),yt.push(fn),x.ed(fn)}}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),Mr(b,x.width||0,x.height||0),Fi.free(wt),Mt.free(bt),Mt.free(Gt)}}}},wm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof wr||a instanceof gn){var E=a,b=null;a instanceof wr&&(b=a,E=b.adornedPart);var z=a instanceof wr?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 gn)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,wt=Dn();yt.Qu(ot,wt);var bt=Mt.allocAt(wt[0],wt[1]);bt.add(ft.i(0)),yt.type===dn.j||(yt=yt.figures.first()),bt.offset(-yt.startX,-yt.startY),yt=wt[2],st!==_a&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=bt.x;var Gt=bt.y;Mt.free(bt),Un(wt)}else if(rt<-x||rt>=x)wt=Mt.alloc(),yt=ft,Gt=wt,yt.vg(),yt.computeMidPoint(Gt),yt=ft.midAngle,st!==_a&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=wt.x,Gt=wt.y,Mt.free(wt);else{if(bt=0,0<=rt?(wt=y.s[rt],Gt=rt<x-1?y.s[rt+1]:wt):(bt=x+rt,wt=y.s[bt],Gt=0<bt?y.s[bt-1]:wt),wt.Xa(Gt)){0<=rt?(yt=0<rt?y.s[rt-1]:wt,bt=rt<x-2?y.s[rt+2]:Gt):(yt=bt<x-1?y.s[bt+1]:wt,bt=1<bt?y.s[bt-2]:Gt);var It=yt.Bf(wt),Xt=Gt.Bf(bt);yt=It>Xt+10?0<=rt?yt.ab(wt):wt.ab(yt):Xt>It+10?0<=rt?Gt.ab(bt):bt.ab(Gt):0<=rt?yt.ab(bt):bt.ab(yt)}else yt=0<=rt?wt.ab(Gt):Gt.ab(wt);st!==_a&&(ft=ft.computeAngle(tt,st,yt),tt.angle=ft),ft=wt.x+(Gt.x-wt.x)*ot,Gt=wt.y+(Gt.y-wt.y)*ot}if(mt.ys())tt.location=new Mt(ft,Gt);else{mt.Mc()&&(mt=Ui),wt=Fi.alloc(),wt.reset(),wt.scale(tt.scale,tt.scale),wt.rotate(tt.angle,0,0);var Qt=tt.naturalBounds;bt=Ce.allocAt(0,0,Qt.width,Qt.height),It=Mt.alloc(),It.xi(bt,mt),wt.Ga(It),mt=-It.x,Xt=-It.y;var qt=Qt.width,re=Qt.height;Qt=Mt.alloc(),Qt.assign(ut);var ye=isNaN(ut.x),En=isNaN(ut.y);if(ye||En){qt=qt/2+3,re=re/2+3;var qn=45<=yt&&135>=yt,Kn=225<=yt&&315>=yt;st===_a&&(qn||Kn)?(Qt.x=En?qt:ut.y,Qt.y=ye?re:ut.x,qn?0<=rt||isNaN(rt)&&.5>ot||!ye||(Qt.y=-re):Kn&&((0<=rt||isNaN(rt)&&.5>ot)&&ye&&(Qt.y=-re),En&&(Qt.x=-qt))):(ye&&(Qt.x=0<=rt||isNaN(rt)&&.5>ot?qt:-qt),En&&(Qt.y=-re),Qt.rotate(yt))}else Qt.rotate(yt);ft+=Qt.x,Gt+=Qt.y,wt.pp(bt),mt+=bt.x,Xt+=bt.y,rt=Mt.allocAt(ft+mt,Gt+Xt),tt.move(rt),Mt.free(rt),Mt.free(Qt),Mt.free(It),Ce.free(bt),Fi.free(wt)}}b!==null?b.Ul(!1):E.Ul(!1),E=D1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Mt.free(E)}};function i1(a,y,x,E){if(js(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof wr&&a.type===on.Link&&a.adornedObject instanceof Yi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof gn&&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 wr&&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),Ro(E,!1)}}function Kg(){this.xa="Base"}ue(Kg,Zo),Kg.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 Ce(-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,wt=rt.strokeWidth,bt=yt.flattenedSegments,Gt=yt.flattenedLengths,It=yt.flattenedTotalLength,Xt=bt.length,Qt=0,qt=0,re=Dn(),ye=0;ye<Xt;ye++){var En=bt[ye],qn=[];qt=Qt=0;for(var Kn=En.length,fn=0;fn<Kn;fn+=2){var Ze=En[fn],Ti=En[fn+1];if(fn!==0){var Bi=180*Math.atan2(Ti-qt,Ze-Qt)/Math.PI;0>Bi&&(Bi+=360),qn.push(Bi)}Qt=Ze,qt=Ti}re.push(qn)}if(a.graduatedIntervals===null){for(var Cr=[],Ur=a.O.s,Qo=Ur.length,ta=0;ta<Qo;ta++){var za=Ur[ta],qo=[];if(Cr.push(qo),za.visible){var Mh=za.interval;if(!(0>Mh)){for(var Mo=0;Mo<Qo;Mo++)if(Mo!==ta){var Wl=Ur[Mo];if(Wl.visible&&za.constructor===Wl.constructor){var ja=Wl.interval;ja>Mh&&qo.push(ja)}}}}}a.graduatedIntervals=Cr}var Fh=a.graduatedIntervals,Zs=a.O.s,pl=Zs.length,Ms=0,ys=0,pd=It;a.graduatedMarks=[];for(var Gl,qf=0;qf<pl;qf++){var Fs=Zs[qf];if(Gl=[],Fs.visible&&Fs!==rt){var Wa=Math.abs(Fs.interval),Mp=a.graduatedTickUnit;if(!(2>Mp*Wa*It/a.graduatedRange&&Fs.graduatedSkip===null)){var Kc=Gt[0][0],ru=0,Ss=0;ys=It*Fs.graduatedStart-1e-4,pd=It*Fs.graduatedEnd+1e-4;var tc=Mp*Wa,Bs=a.graduatedTickBase;if(Bs<a.graduatedMin){var md=(a.graduatedMin-Bs)/tc;md=md%1===0?md:Math.floor(md+1),Bs+=md*tc}else Bs>a.graduatedMin+tc&&(Bs-=Math.floor((Bs-a.graduatedMin)/tc)*tc);for(var j0=Fh[qf],Fp=Bs,Wy=1e-6*a.graduatedMax,ku=1;Bs<=a.graduatedMax+Wy;ku++){t:{for(var Yu=j0.length,Vc=0;Vc<Yu;Vc++){var vd=(Bs-a.graduatedTickBase)%(j0[Vc]*a.graduatedTickUnit),_f=1e-6*a.graduatedTickUnit;if(vd<_f&&vd>-_f){var yd=!1;break t}}yd=!0}if(yd&&(Bs>a.graduatedMax&&(Bs=a.graduatedMax),Fs.graduatedSkip===null||Fs instanceof Yr&&!Fs.graduatedSkip(Bs,Fs)||Fs instanceof Yi&&!Fs.graduatedSkip(Bs,Fs))&&(Ms=(Bs-a.graduatedMin)*It/a.graduatedRange,Ms>It&&(Ms=It),ys<=Ms&&Ms<=pd)){for(var Mu=re[ru][Ss],Bh=Gt[ru][Ss];ru<Gt.length;){for(;Ms>Kc&&Ss<Gt[ru].length-1;)Ss++,Mu=re[ru][Ss],Bh=Gt[ru][Ss],Kc+=Bh;if(Ms<=Kc)break;ru++,Ss=0,Mu=re[ru][Ss],Bh=Gt[ru][Ss],Kc+=Bh}var xs=bt[ru],ou=xs[2*Ss],W0=xs[2*Ss+1],Xu=(Ms-(Kc-Bh))/Bh,$f=new Mt(ou+(xs[2*Ss+2]-ou)*Xu+wt/2-yt.bounds.x,W0+(xs[2*Ss+3]-W0)*Xu+wt/2-yt.bounds.y);$f.scale(rt.scale,rt.scale);t:{var Hl=Mu,ec=re[ru];if(!(.5005>Xu&&.4995<Xu)){var au=Hl;if(.5>Xu?0<Ss?au=ec[Ss-1]:ae.$(xs[0],xs[xs.length-2])&&ae.$(xs[1],xs[xs.length-1])&&(au=ec[ec.length-1]):.5<Xu&&(Ss+1<ec.length?au=ec[Ss+1]:ae.$(xs[0],xs[xs.length-2])&&ae.$(xs[1],xs[xs.length-1])&&(au=ec[0])),Hl!==au){var Uc=Math.abs(Hl-au);if(180<Uc&&(Hl<au?Hl+=360:au+=360,Uc=Math.abs(Hl-au)),5e-4>Xu||.9995<Xu){Mu=(Hl+au)/2%360;break t}if(10>Uc){var tg=1-Math.abs(.5-Xu);Mu=(Hl*tg+au*(1-tg))%360;break t}}}Mu=Hl}if(Fs instanceof Yr){var Ml="";Fs.graduatedFunction!==null?(Ml=Fs.graduatedFunction(Bs,Fs),Ml=Ml!=null?Ml.toString():""):Ml=(+Bs.toFixed(2)).toString(),Ml!==""&&Gl.push({$l:$f,angle:Mu,text:Ml})}else Gl.push({$l:$f,angle:Mu})}Bs=Fp+ku*tc}}}a.graduatedMarks.push(Gl)}Un(re);var da=a.graduatedMarks;if(da!==null)for(var Bp=E.length,is=0;is<Bp;is++){var Fo=E[is],rs=da[is];if(Fo.visible&&Fo!==rt&&rs.length!==0){if(Fo instanceof Yi){var Ju=a,Dh=b,nc=Fo.alignmentFocus;nc.Mc()&&(nc=Er);var Gy=Fo.angle;Fo.Kb=0,Fo.measure(1/0,1/0,0,0),Fo.Kb=Gy;var G0=Fo.measuredBounds,eg=G0.width,ic=G0.height,Yc=Ce.allocAt(0,0,eg,ic),ws=Mt.alloc();ws.xi(Yc,nc),Ce.free(Yc);for(var Qu=-ws.x,Zl=-ws.y,nl=new Ce,Sd=rs.length,ng=0;ng<Sd;ng++)for(var xd=rs[ng],H0=xd.$l.x,ig=xd.$l.y,So=xd.angle,Fl=0;4>Fl;Fl++){switch(Fl){case 0:ws.h(Qu,Zl);break;case 1:ws.h(Qu+eg,Zl);break;case 2:ws.h(Qu,Zl+ic);break;case 3:ws.h(Qu+eg,Zl+ic)}ws.rotate(So+Fo.angle),ws.offset(H0,ig),ng===0&&Fl===0?nl.h(ws.x,ws.y,0,0):nl.Ye(ws),ws.offset(-H0,-ig),ws.rotate(-So-Fo.angle)}Mt.free(ws),Ju.graduatedBounds!==null&&Ju.graduatedBounds.push(nl),cr(Dh,nl.x,nl.y,nl.width,nl.height)}else if(Fo instanceof Yr){var ml=a,Z0=b;ml.temporaryTextBlock===null&&(ml.temporaryTextBlock=new Yr);var Ds=ml.temporaryTextBlock;y1(Ds,Fo);var Nh=Fo.alignmentFocus;Nh.Mc()&&(Nh=Er);for(var vl=Fo.segmentOrientation,rg=Fo.segmentOffset,wd=new Ce,Dp=0,og=0,su=0,rc=0,Pd=0,ag=rs.length,Th=0;Th<ag;Th++){var Fu=rs[Th];Dp=Fu.$l.x,og=Fu.$l.y,su=Fu.angle,Pd=rc=Fo.angle,vl!==_a&&(Pd=vl===ep||vl===Qm?su+Fo.angle:su,rc=gn.computeAngle(vl,Pd)),Ds.Kb=rc,Ds.text=Fu.text||"",Ds.measure(1/0,1/0,0,0);var Oh=Ds.measuredBounds,qu=Ds.naturalBounds,Ih=qu.width,oc=qu.height,Kl=Fi.alloc();Kl.reset(),Kl.translate(-Oh.x,-Oh.y),Kl.scale(Ds.scale,Ds.scale),Kl.rotate(Pd,Ih/2,oc/2),vl!==np&&vl!==rp||Kl.rotate(90,Ih/2,oc/2),vl!==ip&&vl!==op||Kl.rotate(-90,Ih/2,oc/2),vl===qm&&(45<su&&135>su||225<su&&315>su)&&Kl.rotate(-su,Ih/2,oc/2);var Xc=Ce.allocAt(0,0,Ih,oc),Rh=Mt.alloc();Rh.xi(Xc,Nh),Kl.Ga(Rh);var Jc=-Rh.x,Hy=-Rh.y,_u=Mt.alloc();_u.assign(rg),isNaN(_u.x)&&(_u.x=Ih/2+3),isNaN(_u.y)&&(_u.y=-(oc/2+3)),_u.rotate(su),Dp+=_u.x+Jc,og+=_u.y+Hy;var ac=new Ce(Dp,og,Oh.width,Oh.height),Np=new Ce(Oh.x,Oh.y,Oh.width,Oh.height),Zy=new Ce(qu.x,qu.y,qu.width,qu.height);Fu.Sz=rc,Fu.lineCount=Ds.lineCount,Fu.lines=[Ds.Cb,Ds.Ih,Ds.df,Ds.Le,Ds.Qc,Ds.Qb,Ds.ze],Fu.actualBounds=ac,Fu.measuredBounds=Np,Fu.naturalBounds=Zy,Th===0?wd.assign(ac):wd.ed(ac),Mt.free(_u),Mt.free(Rh),Ce.free(Xc),Fi.free(Kl)}ml.graduatedBounds!==null&&ml.graduatedBounds.push(wd),cr(Z0,wd.x,wd.y,wd.width,wd.height)}Ro(Fo,!1)}}},Kg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,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}}},Kg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,tt=b.height;b=y instanceof Es,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],wt=yt.length;if(mt.visible&&mt!==z&&yt.length!==0){if(mt instanceof Yi){if(!(2>a.graduatedTickUnit*mt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&mt.graduatedSkip===null)){var bt=mt.measuredBounds,Gt=mt.strokeWidth*mt.scale,It=mt.alignmentFocus;It.Mc()&&(It=Er);for(var Xt=0;Xt<wt;Xt++){var Qt=yt[Xt].$l,qt=yt[Xt].angle,re=It,ye=mt.Ab;ye.reset(),ye.translate(Qt.x+rt.x,Qt.y+rt.y),ye.rotate(qt+mt.angle,0,0),ye.translate(-bt.width*re.x+re.offsetX+Gt/2,-bt.height*re.y+re.offsetY+Gt/2),ye.scale(mt.scale,mt.scale),hl(mt,!1),mt.wh.set(mt.Ab),mt.Kk=mt.scale,Js(mt,!1),mt.gc(y,x),b&&(a.svg.appendChild(mt.svg),mt.svg=null),mt.Ab.reset()}}}else if(mt instanceof Yr)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Yr),bt=a.temporaryTextBlock,y1(bt,mt),Gt=0;Gt<wt;Gt++)It=yt[Gt],It.actualBounds&&It.measuredBounds&&It.naturalBounds&&(bt.ec=It.text||"",bt.Kb=It.Sz||0,bt.Gc=It.lineCount||0,Xt=It.lines,Xt!==void 0&&(bt.Cb=Xt[0],bt.Ih=Xt[1],bt.df=Xt[2],bt.Le=Xt[3],bt.Qc=Xt[4],bt.Qb=Xt[5],bt.ze=Xt[6]),It.naturalBounds&&(bt.dc=It.naturalBounds),It.actualBounds&&(Xt=It.actualBounds,bt.arrange(Xt.x,Xt.y,Xt.width,Xt.height)),Xt=It.actualBounds,bt.arrange(Xt.x,Xt.y,Xt.width,Xt.height),Qt=It.measuredBounds,It=It.naturalBounds,qt=bt.Ab,qt.reset(),qt.translate(Xt.x+rt.x,Xt.y+rt.y),qt.translate(-Qt.x,-Qt.y),bt.no(qt,It.x,It.y,It.width,It.height),hl(bt,!1),bt.wh.set(bt.Ab),bt.Kk=bt.scale,Js(bt,!1),bt.Ng=mt.part,bt.Me=mt.panel,bt.gc(y,x),bt.Me=null,bt.Ng=null,b&&(a.svg.appendChild(bt.svg),bt.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function on(a,y){if(oe.call(this),this.na=null,a===void 0)this.na=on.Position;else if(typeof a=="string"){var x=Cl.I(a);x!==null&&(this.na=x)}else a instanceof Zo?this.na=a:a&&(this.na=on.Position,y=a);this.na===null&&Ht("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===on.Grid?1048576:0),this.O=new tn,this.yb=ea,this.Tm=Yo,this.Uf=zi,this.$g=null,this.$e="",this.jg=new Ce(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=oi,this.jn=kr,this.kn=An,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}ue(on,oe),on.prototype.cloneProtected=function(a){oe.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},on.prototype.Af=function(a){oe.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},on.prototype.copy=function(){var a=oe.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 Fn&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(wo,"elements",a,null,b,null,tt)}}return a}return null},Ct=on.prototype,Ct.toString=function(){return"Panel("+this.type.name+")#"+yr(this)},Ct.Pn=function(a){oe.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Ct.hh=function(a,y){if(this.na===on.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===on.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===on.Table)if(a.yc(),a instanceof Es){var x=a.yd;a.yd=lm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===on.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&&Pm(a,y,!0,x,!0),E!==null&&Pm(a,y,!1,E,!0),x!==null&&r1(a,y,!0,x),E!==null&&r1(a,y,!1,E),x!==null&&Pm(a,y,!0,x,!1),E!==null&&Pm(a,y,!1,E,!1)}function r1(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<b;ot++){var 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){mo(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 Pm(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,ot=o1(a,!0),st=o1(a,!1),ut=0;ut<z;ut++){var ft=E[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==b&&ft.actual!==0){var mt=x?tt.height:tt.width;if(!(ft.position>mt)){var yt=ft.Wc(),wt=ft.separatorStrokeWidth;isNaN(wt)&&(wt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var bt=ft.separatorStroke;bt===null&&(bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(bt===null||ft.index===(x?ot:st))&&(wt=0),yt-=wt,wt=ft.position+wt,yt+=ft.actual,wt+yt>mt&&(yt=mt-wt),0>=yt||(mt=a.yb,mo(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(mt.left,wt+mt.top,tt.width-(mt.left+mt.right),yt):y.fillRect(wt+mt.left,mt.top,yt,tt.height-(mt.top+mt.bottom)))}}}}function o1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}Ct.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ct.kk=function(a,y,x){if(!oe.prototype.kk.call(this,a,y,x))return!1;if(this.type===on.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===on.Grid||this.na===on.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},Ct.nk=function(){return!0},Ct.$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 oe.prototype.$o.call(this,a,y,x,E)},Ct.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,ae.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=ae.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=Mt.alloc(),mt=null,y=1/0;var wt=null,bt=this.isClipping&&this.na===on.Spot;bt&&(wt=Mt.alloc(),mt=this.Pb(),(st=mt.Sj(rt,a,ot,x,wt))&&(y=(rt-wt.x)*(rt-wt.x)+(a-wt.y)*(a-wt.y)));for(var Gt=0;Gt<yt;Gt++){var It=ft[Gt];It.visible&&It!==mt&&It.Sj(rt,a,ot,x,ut)&&(st=!0,It=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),It<E&&(E=It,b.set(ut)))}return bt&&(y>E&&b.set(wt),Mt.free(wt)),Mt.free(ut),z&&b.transform(tt),st},Ct.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();oe.prototype.Gj.call(this)},Ct.v=function(a){if(!js(this)){oe.prototype.v.call(this,a),a=null,(this.na===on.Auto||this.na===on.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=ss(b,!1);(b instanceof qa||b instanceof on||b instanceof Yr||z!==Xe)&&b.v(!0)}}}},Ct.Uj=function(){if(!js(this)){Ro(this,!0),vu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ct.Uk=function(){if(!(this.l&2048)){hl(this,!0),Js(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ct.Wu=function(){Js(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ct.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),Mr(b,a,ot),Mr(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Ct.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 Ku(a){return a.part!==null?a.part.locationObject:null}Ct.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=ss(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=Xe),a){case Xe:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case rn:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case di:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Li:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},Ct.gh=function(a){var y=this.naturalBounds,x=Ku(this);if(eo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Mt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(yn(b.set(a),z.transform),z.ca(b)))return Mt.free(b),!0}return Mt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ct.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},Ct.qm=function(a,y){if(y(this,a),a instanceof on){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Ud(a,y){a1(a,a,y)}function a1(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 on&&a1(a,z,x)}}function vx(a,y){s1(a,a,y)}function s1(a,y,x){if(x(y),y instanceof on){y=y.O.s;for(var E=y.length,b=0;b<E;b++)s1(a,y[b],x)}}Ct.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof on){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=l1(a,y[b],x);if(z!==null)return z}}return null}Ct.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Vg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof on){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function u1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof on?x=Math.max(x,u1(b)):b instanceof Yi&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Ct.se=function(){return!(this.type===on.TableRow||this.type===on.TableColumn)};function Sh(a){return a.type===on.TableRow||a.type===on.TableColumn}Ct.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ja(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:yn(Mt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,st=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),st=ot/2),eo(-(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=Mt.alloc(),st=(ot=this.isClipping&&this.na===on.Spot)?this.Pb():null,ot&&(st.se()?yn(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Mt.free(rt),z||Mt.free(tt),null;for(var ft=Ku(this);ut--;){var mt=b[ut];if((mt.visible||mt===ft)&&(mt.se()?yn(rt.set(a),mt.transform):rt.set(a),!ot||mt!==st)){var yt=null;if(mt instanceof on?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 Mt.free(rt),z||Mt.free(tt),yt}}Mt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Mt.free(tt),null):(a=eo(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Mt.free(tt),a)}return z||Mt.free(tt),null},Ct.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:yn(Mt.allocAt(a.x,a.y),this.transform);if(b=eo(0,0,b.width,b.height,tt.x,tt.y),Sh(this)||b){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,st=Mt.alloc(),ut=Ku(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?yn(st.set(a),ft.transform):st.set(a);var mt=ft;ft=ft instanceof on?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))}}Mt.free(st)}return z||Mt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Mt.free(tt),!1},Ct.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=Fi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&Fi.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=Ku(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 on?ut:null,mt=Fi.alloc(),mt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,mt):Jo(ft,a,E,mt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Fi.free(mt))}}return z===void 0&&Fi.free(tt),E}return z===void 0&&Fi.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 on&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}Ct.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:yn(Mt.allocAt(a.x,a.y),this.transform),st=rt?y:yn(Mt.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||On(ot.x,ot.y,0,0,0,tt.height)<=ut||On(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||On(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||On(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||(Mt.free(ot),Mt.free(st)),ft){if(!this.isAtomic){ot=Mt.alloc(),st=Mt.alloc(),ut=Ku(this);for(var mt=this.O.s,yt=mt.length;yt--;){var wt=mt[yt];if(wt.visible||wt===ut){var bt=wt.actualBounds,Gt=this.naturalBounds;(!rt||!(bt.x>Gt.width||bt.y>Gt.height||0>bt.x+bt.width||0>bt.y+bt.height))&&(wt.se()?(bt=wt.transform,yn(ot.set(a),bt),yn(st.set(y),bt)):(ot.set(a),st.set(y)),bt=wt,wt=wt instanceof on?wt:null,(wt!==null?wt.og(ot,st,x,E,b,z):bt.tx(ot,st,b))&&(x!==null&&(bt=x(bt)),bt===null||E!==null&&!E(bt)||z.add(bt)))}}Mt.free(ot),Mt.free(st)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Yi&&(y=a.spot1,y===Yo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ur),y}function yv(a){var y=null;return a instanceof Yi&&(y=a.spot2,y===Yo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=zr),y}Ct.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},Ct.M=function(a){return this.O.M(a)},Ct.Gb=function(a,y){y instanceof mi&&Ht("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ht("Cannot make a Panel contain itself: "+this.toString()),Ht("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ht("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!==on.Grid||y instanceof Yi||Ht("Can only add Shapes to a Grid Panel, not: "+y),this.na!==on.Graduated||y instanceof Yi||y instanceof Yr||Ht("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 Pe),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 Ht("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),js(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof on&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Lm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Fn&&(x.Te=!0),x.Te&&x instanceof Fn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Ao,"elements",this,y,null,E,null),x.cb(wo,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ct.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)},Ct.mb=function(a){0<=a&&this.pc(a,!0)},Ct.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),Ro(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 Fn&&(E instanceof on?E.qm(E,function(tt,rt){Hv(z,rt,y)}):Hv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ao,"elements",this,E,null,a,null))},Ct.Fb=function(a){0>a&&wn(a,">= 0",on,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new zo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(wo,"rowdefs",this,null,x,null,a)}return y[a]},Ct.oA=function(a){if(0>a&&wn(a,">= 0",on,"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(Ao,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof zo?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Eb=function(a){0>a&&wn(a,">= 0",on,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new zo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(wo,"coldefs",this,null,x,null,a)}return y[a]},Ct.jA=function(a){if(0>a&&wn(a,">= 0",on,"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(Ao,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof zo?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ct.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Am(y,a),this},Ct.Hy=function(a,y){return(a=this.Fb(a))&&Am(a,new zo(y)),this},Ct.By=function(a,y){return(a=this.Eb(a))&&Am(a,new zo(y)),this},Ct.nz=function(a){if(0>a||this.type!==on.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},Ct.fz=function(a){if(0>a||this.type!==on.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},Ct.Fz=function(a,y){if(y===void 0&&(y=new Mt(NaN,NaN)),this.type!==on.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)},Ct.Gz=function(a){if(this.type!==on.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function c1(a){return a=a.allBindings,a!==null&&a._isFrozen}function cl(a){var y=a.allBindings;if(y===null)a.data!==null&&Ht("Template cannot have .data be non-null: "+a),a.allBindings=y=new tn;else if(y._isFrozen)return;var x=new tn;Sv(a,!1),a.qm(a,function(st,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Mc(ut,!1),ft=ft.iterator;ft.next();){var mt=ft.value;mt.mode===fp&&Mc(ut,!0);var yt=mt.sourceName;yt!==null&&(yt==="/"&&Sv(st,!0),yt=ES(mt,st,ut),yt!==null&&(x.add(yt),yt.srcBindings===null&&(yt.srcBindings=new tn),yt.srcBindings.add(mt))),y.add(mt)}if(ut instanceof on&&ut.type===on.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 wt=yt.be.iterator;wt.next();){var bt=wt.value;bt.xd=yt,bt.to=2,bt.wl=yt.index,y.add(bt)}}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();)wt=yt.value,wt.xd=mt,wt.to=1,wt.wl=mt.index,y.add(wt)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Mc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new tn),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 on&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,b.targetProperty=rt):Bn('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof zo?(tt=yr(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof oe?(tt=yr(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):Ht("Unknown type of binding target: "+z)}y.freeze(),a instanceof mi&&a.Zc()&&a.Va()}Ct.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof on&&(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&&cl(y),y},Ct.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 on))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Ct.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 on&&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 on)||z.data!==y[tt])return!0;b++,tt++}return!1}function Vg(a){if(a.type===on.Spot||a.type===on.Auto)return Math.min(a.O.length,1);if(a.type===on.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Yi&&E.isPanelMain))break}return x}return a.type===on.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof on&&Sh(a))?1:0}Ct.mv=function(){for(var a=Vg(this);this.O.length>a;)this.pc(this.O.length-1,!1);f1(this,this.itemArray)};function f1(a,y){var x=Vg(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++)Cm(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 on){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),Cm(a,z,b,!1)):tt.data=z}}else Cm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,xv(a,x,0),js(a)||a.v(),a.graduatedIntervals=null,a.If()||Lm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Fn&&(y.Te=!0),y.Te&&y instanceof Fn&&(y.wc=null))}}function Cm(a,y,x,E){if(!(y==null||0>x)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(cl(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 Pe),a.ge.add(y,b)),z=x+Vg(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 on){var b=y,z=x;E.type===on.TableRow?E.row=b:E.type===on.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=Lo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ht("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(g1||(g1=!0,Bn('No item template Panel found for category "'+y+'" on '+a),Bn(" Using default item template."),a=new on,y=new Yr,y.bind(new ko("text","",bi)),a.add(y),p1=a),E=p1)),E}function Lm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof on){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof on&&!z.isEnabled||Lm(a,z,x)}}}function nu(a,y){y.name=a,Cl.add(a,y)}ce.Object.defineProperties(on.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===on.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&&wn(a,">= 0",on,"padding"),a=new Hi(a)):(0>a.left&&wn(a.left,">= 0",on,"padding:value.left"),0>a.right&&wn(a.right,">= 0",on,"padding:value.right"),0>a.top&&wn(a.top,">= 0",on,"padding:value.top"),0>a.bottom&&wn(a.bottom,">= 0",on,"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:ea},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new _s),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 Or)&&(a instanceof Or&&a.freeze(),this.T===null&&(this.T=new _s),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 _s),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)||Ht("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 _s),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 Or)&&(a instanceof Or&&a.freeze(),this.T===null&&(this.T=new _s),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 _s),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)||Ht("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 _s),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 _s),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||Ht("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&$l(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()||Ht("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&$l(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 Vu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),fa(this)&&(a=this.part,a!==null&&to(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 Vu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),fa(this)&&(a=this.part,a!==null&&to(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 Vu),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 Vu),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 Vu,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 Vu,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 Vu,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 Vu,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 _s),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new _s),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:bm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new _s),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:bm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new _s),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)&&Ht("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new _s),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)&&Ht("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new _s),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 mi&&!(this instanceof wr);cl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof gn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof mi&&(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 Fc),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||f1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Pe}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof mi||a.isPanelMain)&&Ht("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(););Qi(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&&(Qi(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 Oi&&(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&&Lm(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))}}}),ce.Object.defineProperties(on,{Position:{get:function(){return Cl.I("Position")}},Horizontal:{get:function(){return Cl.I("Horizontal")}},Vertical:{get:function(){return Cl.I("Vertical")}},Spot:{get:function(){return Cl.I("Spot")}},Auto:{get:function(){return Cl.I("Auto")}},Table:{get:function(){return Cl.I("Table")}},Viewbox:{get:function(){return Cl.I("Viewbox")}},TableRow:{get:function(){return Cl.I("TableRow")}},TableColumn:{get:function(){return Cl.I("TableColumn")}},Link:{get:function(){return Cl.I("Link")}},Grid:{get:function(){return Cl.I("Grid")}},Graduated:{get:function(){return Cl.I("Graduated")}}}),on.prototype.rebuildItemElements=on.prototype.mv,on.prototype.findItemPanelForData=on.prototype.sx,on.prototype.updateTargetBindings=on.prototype.La,on.prototype.copyTemplate=on.prototype.Uy,on.prototype.graduatedValueForPoint=on.prototype.Gz,on.prototype.graduatedPointForValue=on.prototype.Fz,on.prototype.findColumnForLocalX=on.prototype.fz,on.prototype.findRowForLocalY=on.prototype.nz,on.prototype.addColumnDefinition=on.prototype.By,on.prototype.addRowDefinition=on.prototype.Hy,on.prototype.addRowColumnDefinition=on.prototype.Gy,on.prototype.removeColumnDefinition=on.prototype.jA,on.prototype.getColumnDefinition=on.prototype.Eb,on.prototype.removeRowDefinition=on.prototype.oA,on.prototype.getRowDefinition=on.prototype.Fb,on.prototype.removeAt=on.prototype.mb,on.prototype.remove=on.prototype.remove,on.prototype.insertAt=on.prototype.Gb,on.prototype.elt=on.prototype.M,on.prototype.add=on.prototype.add,on.prototype.findObject=on.prototype.fb,on.prototype.findInVisualTree=on.prototype.Nl,on.prototype.walkVisualTreeFrom=on.prototype.qm,on.prototype.findMainElement=on.prototype.Pb;var g1=!1,p1=null,Cl=new Pe;on.className="Panel",on.definePanelLayout=nu,nu("Position",new dm),nu("Vertical",new fm),nu("Auto",new pm),nu("Link",new wm);function Vu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Vu.prototype.copy=function(){var a=new Vu;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},Vu.className="GradPanelSettings";function _s(){this.Pc=[],this.Oc=[],this.j=this.ob=bm,this.hb=this.Hb=0,this.Qp=ea,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}_s.prototype.copy=function(a){for(var y=new _s,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},_s.className="TablePanelSettings";function zo(a){ki(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Yo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=zi,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}zo.prototype.copy=function(){var a=new zo;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=un(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Am(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=un(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ct=zo.prototype,Ct.qb=function(a){a.classType===zo&&(this.sizing=a)},Ct.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+yr(this)},Ct.wi=function(a){this.Me=a},Ct.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)},Ct.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===on.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)},Ct.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(io,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 Em(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ct.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ko(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&Ht("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new tn),this.be.add(b),this},ce.Object.defineProperties(zo.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&&wn(a,">= 0",zo,"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&&wn(a,">= 0",zo,"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))&&wn(a,">= 0",zo,"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&&wn(a,">= 0",zo,"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 Hi(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&&Dc(a,"RowColumnDefinition.separatorStroke"),a instanceof Or&&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)||Ht("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&&Dc(a,"RowColumnDefinition.background"),a instanceof Or&&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}}}),zo.prototype.computeEffectiveSpacing=zo.prototype.Wc,zo.prototype.computeEffectiveSpacingTop=zo.prototype.Io;var Cv=new Ue(zo,"Default",0),Ug=new Ue(zo,"None",1),bm=new Ue(zo,"ProportionalExtra",2);zo.className="RowColumnDefinition",zo.Default=Cv,zo.None=Ug,zo.ProportionalExtra=bm;function Yi(a,y){oe.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)}ue(Yi,oe),Yi.prototype.cloneProtected=function(a){oe.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=un(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 Yd(a){a.Na===null?a.Na=new Ev:a.Na.nc&&(a.Na=a.Na.copy())}Ct=Yi.prototype,Ct.th=function(){oe.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ct.qb=function(a){a===Xe||a===oi||a===hr||a===zi?this.geometryStretch=a:oe.prototype.qb.call(this,a)},Ct.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+yr(this)};function Mf(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,wt,bt=0,Gt=Dn(),It=2;It<b;It+=2)st=x[It],ut=x[It+1],ft=st-rt,rt=ut-ot,ft===0&&(ft=.001),mt=rt/ft,yt=Math.atan2(rt,ft),wt=Math.sqrt(ft*ft+rt*rt),Gt.push([ft,yt,mt,wt]),bt+=wt,rt=st,ot=ut;rt=x[0],ot=x[1],ft=E.measuredBounds.width,E instanceof Yi&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,It=0,wt=Gt[It],ft=wt[0],yt=wt[1],mt=wt[2],wt=wt[3];for(var Xt=0;.1<=bt;){if(Xt===0&&(ut?(b=x,b-=st,bt-=st,ut=!1):b=x,b===0&&(b=1)),b>bt){Un(Gt);return}b>wt?(Xt=b-wt,b=wt):Xt=0;var Qt=Math.sqrt(b*b/(1+mt*mt));if(0>ft&&(Qt=-Qt),rt+=Qt,ot+=mt*Qt,a.translate(rt,ot),a.rotate(yt),a.translate(-(tt/2),-(z/2)),Xt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-yt),a.translate(-rt,-ot),bt-=b,wt-=b,Xt!==0){if(It++,It===Gt.length){Un(Gt);return}wt=Gt[It],ft=wt[0],yt=wt[1],mt=wt[2],wt=wt[3],b=Xt}}Un(Gt)}}Ct.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&&mo(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===on.Link&&rt instanceof wr&&rt.category==="Selection"&&rt.adornedObject instanceof Yi&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(mo(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===dn.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===dn.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&&yu(a),a.jk(),rt&&z&&Gu(a)),a.Se()}else if(b.type===dn.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+ae.wg*b,ot-mt,st+b,ot-ae.wg*mt,st+b,ot),a.bezierCurveTo(st+b,ot+ae.wg*mt,st+ae.wg*b,ot+mt,st,ot+mt),a.bezierCurveTo(st-ae.wg*b,ot+mt,st-b,ot+ae.wg*mt,st-b,ot),a.bezierCurveTo(st-b,ot-ae.wg*mt,st-ae.wg*b,ot-mt,st,ot-mt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&yu(a),a.jk(),rt&&z&&Gu(a)),a.Se();else if(b.type===dn.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,wt=0;wt<ft;wt++){var bt=ut[wt];switch(bt.type){case Oo:a.moveTo(bt.endX,bt.endY);break;case Zr:a.lineTo(bt.endX,bt.endY);break;case Go:a.bezierCurveTo(bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,bt.endX,bt.endY);break;case gs:a.quadraticCurveTo(bt.point1X,bt.point1Y,bt.endX,bt.endY);break;case xo:if(bt.radiusX===bt.radiusY){var Gt=Math.PI/180;a.arc(bt.point1X,bt.point1Y,bt.radiusX,bt.startAngle*Gt,(bt.startAngle+bt.sweepAngle)*Gt,0>bt.sweepAngle,yt!==null?yt.endX:st.startX,yt!==null?yt.endY:st.startY)}else if(yt=Ha(bt,st),Gt=yt.length,Gt===0)a.lineTo(bt.centerX,bt.centerY);else for(var It=0;It<Gt;It++){var Xt=yt[It];It===0&&a.lineTo(Xt[0],Xt[1]),a.bezierCurveTo(Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7])}break;case Ls:if(It=Gt=0,yt!==null&&yt.type===xo){if(yt=Ha(yt,st),Xt=yt.length,Xt===0){a.lineTo(bt.endX,bt.endY);break}yt=yt[Xt-1]||null,yt!==null&&(Gt=yt[6],It=yt[7])}else Gt=yt!==null?yt.endX:st.startX,It=yt!==null?yt.endY:st.startY;if(yt=Os(bt,st,Gt,It),Gt=yt.length,Gt===0){a.lineTo(bt.endX,bt.endY);break}for(It=0;It<Gt;It++)Xt=yt[It],a.bezierCurveTo(Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7]);break;default:Ht("Segment not of valid type: "+bt.type)}bt.isClosed&&a.closePath(),yt=bt}ut=st.isFilled,z?st.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&(ut&&rt&&yu(a),a.jk(),ut&&rt&&Gu(a))):(yu(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&a.jk(),Gu(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=Dn(),z.type===dn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Mf(a,y,E,x);else if(z.type===dn.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(wt=st[ft],wt.type){case Oo:Mf(a,y,E,x),E.length=0,E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY,ot=tt,mt=b;break;case Zr:E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY;break;case Go:ae.Qe(tt,b,wt.point1X,wt.point1Y,wt.point2X,wt.point2Y,wt.endX,wt.endY,.5,E),tt=wt.endX,b=wt.endY;break;case gs:ae.ep(tt,b,wt.point1X,wt.point1Y,wt.endX,wt.endY,.5,E),tt=wt.endX,b=wt.endY;break;case xo:if(bt=Ha(wt,rt),yt=bt.length,yt===0){E.push(wt.centerX),E.push(wt.centerY),tt=wt.centerX,b=wt.centerY;break}for(Gt=0;Gt<yt;Gt++)It=bt[Gt],ae.Qe(tt,b,It[2],It[3],It[4],It[5],It[6],It[7],.5,E),tt=It[6],b=It[7];break;case Ls:if(bt=Os(wt,rt,tt,b),yt=bt.length,yt===0){E.push(wt.endX),E.push(wt.endY),tt=wt.endX,b=wt.endY;break}for(Gt=0;Gt<yt;Gt++)It=bt[Gt],ae.Qe(tt,b,It[2],It[3],It[4],It[5],It[6],It[7],.5,E),tt=It[6],b=It[7];break;default:Ht("Segment not of valid type: "+wt.type)}wt.isClosed&&(E.push(ot),E.push(mt),Mf(a,y,E,x))}Mf(a,y,E,x)}else if(z.type===dn.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),Mf(a,y,E,x);else if(z.type===dn.F){if(b=new To,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new xr(xo),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=Ha(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],ae.Qe(tt,b,mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],.5,E),tt=mt[6],b=mt[7];Mf(a,y,E,x)}Un(E),a.restore(),a.Vc(!1)}}}},Ct.kk=function(a,y,x){return!oe.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)},Ct.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:oe.prototype.nk.call(this,a)},Ct.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)}},Ct.ga=function(a,y){if(y===void 0&&(y=new Mt),a instanceof ei){a.Mc()&&Ht("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},Ct.mi=function(a){a===void 0&&(a=new Ce);var y=this.naturalBounds,x=this.oe;y=Ce.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Mt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),cr(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),cr(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),cr(a,E.x,E.y,0,0),Ce.free(y),Mt.free(E),a},Ct.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!==dn.j||y||(b+=2);var z=Ce.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return Ce.free(z),!1;if(E=b+1e-4,x.type===dn.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:(Ce.free(z),ae.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===dn.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 Ce.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Ce.free(z),a}if(x.type===dn.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 Ce.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),Ce.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===dn.o)return Ce.free(z),this.fill===null?Ts(x,a.x,a.y,b):_o(x,a,b,1<this.strokeWidth,y);Ht("Unknown Geometry type: "+x.type)},Ct.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=Av[rt];if(ot===void 0){var st=ae.Ze[rt];typeof st=="string"&&(st=ae.Ze[st]),typeof st=="function"?(ot=st(null,100,100),Av[rt]=ot):Ht("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,st=tt.width;var ut=tt.height;switch(ss(this,!0)){case Xe:E=x=0;break;case rn:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case di:st=Math.max(a-z,0),E=0;break;case Li: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=Lv(this),x){case Xe:break;case rn:rt=st,ot=ut;break;case oi:x=Math.min(st/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:Ht(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&&ae.$(this.ua.Sk,a-z)&&ae.$(this.ua.Rk,y-z)||(this.ua=Yi.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 Lv(a){var y=a.geometryStretch;return a.Rd!==null?y===zi?rn:y:y===zi?Av[a.figure].defaultStretch:y}Ct.eh=function(a,y,x,E){Ra(this,a,y,x,E)},Ct.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ct.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===dn.j)if(1.5>=this.strokeWidth)ut=ae.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=Dn(),a=new Mt,ae.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Mt,ae.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Mt,ae.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Mt,ae.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 Un(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);Un(y)}else if(st.type===dn.u)ut=ae.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===dn.F){y=Ce.allocAt(yt.x,yt.y,yt.width,yt.height).Bc(ft,ft);t:if(y.width===0)ut=ae.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,b);else if(y.height===0)ut=ae.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}Ce.free(y)}else if(st.type===dn.o){mt=Mt.alloc();var wt=rt-z,bt=ot-tt,Gt=wt*wt+bt*bt,It=z,Xt=tt;if(0<Gt&&yt.contains(It,Xt)&&(mt.x=It,mt.y=Xt,this.ca(mt)))for(wt!==0&&.5>Math.abs(wt)?(bt*=.5/wt,wt=.5):bt!==0&&.5>Math.abs(bt)&&(wt*=.5/bt,bt=.5),It-=wt,Xt-=bt;yt.contains(It,Xt);)It-=wt,Xt-=bt;for(b.x=rt,b.y=ot,bt=0;bt<st.figures.count;bt++){var Qt=st.figures.s[bt],qt=Qt.isFilled?It:z,re=Qt.isFilled?Xt:tt,ye=Qt.segments;yt=Qt.startX,wt=Qt.startY;for(var En=yt,qn=wt,Kn=0;Kn<ye.count;Kn++){var fn=ye.s[Kn],Ze=fn.type,Ti=fn.endX,Bi=fn.endY,Cr=!1;switch(Ze){case Oo:En=Ti,qn=Bi;break;case Zr:Cr=Mm(yt,wt,Ti,Bi,qt,re,rt,ot,mt);break;case Go:Cr=ae.Eo(yt,wt,fn.point1X,fn.point1Y,fn.point2X,fn.point2Y,Ti,Bi,qt,re,rt,ot,.6,mt);break;case gs:Cr=ae.Eo(yt,wt,yt+2/3*(fn.point1X-yt),wt+2/3*(fn.point1Y-wt),Ti+2/3*(fn.point1X-Ti),Bi+2/3*(fn.point1Y-Bi),Ti,Bi,qt,re,rt,ot,.6,mt);break;case xo:case Ls:Ze=fn.type===xo?Ha(fn,Qt):Os(fn,Qt,yt,wt);var Ur=Ze.length;if(Ur===0){Cr=Mm(yt,wt,fn.type===xo?fn.centerX:fn.endX,fn.type===xo?fn.centerY:fn.endY,qt,re,rt,ot,mt);break}for(Bi=null,Ti=0;Ti<Ur;Ti++){if(Bi=Ze[Ti],Ti===0&&Mm(yt,wt,Bi[0],Bi[1],qt,re,rt,ot,mt)){var Qo=km(qt,re,mt,Gt,b);Qo<Gt&&(Gt=Qo,ut=!0)}ae.Eo(Bi[0],Bi[1],Bi[2],Bi[3],Bi[4],Bi[5],Bi[6],Bi[7],qt,re,rt,ot,.6,mt)&&(Qo=km(qt,re,mt,Gt,b),Qo<Gt&&(Gt=Qo,ut=!0))}Ti=Bi[6],Bi=Bi[7];break;default:Ht("Unknown Segment type: "+Ze)}yt=Ti,wt=Bi,Cr&&(Cr=km(qt,re,mt,Gt,b),Cr<Gt&&(Gt=Cr,ut=!0)),fn.isClosed&&(Ti=En,Bi=qn,Mm(yt,wt,Ti,Bi,qt,re,rt,ot,mt)&&(fn=km(qt,re,mt,Gt,b),fn<Gt&&(Gt=fn,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,Mt.free(mt)}else Ht("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(b),!0):!1};function km(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 Mm(a,y,x,E,b,z,tt,rt,ot){if(ae.$(a,x)&&ae.$(y,E)||ae.$(b,tt)&&ae.$(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||ae.$(ot.y,a))&&(ot.y<y||ae.$(ot.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||ae.$(ot.x,y))&&(ot.x<a||ae.$(ot.x,a))&&(st=!0)),st)}Ct.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=Mt.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)))),Mt.free(z),b},Ct.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Fi.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Mt.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 Mt.free(tt),!0;var rt=Mt.alloc(),ot=Mt.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,Xd(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),Xd(this,tt,rt,ot)?y=!0:(rt.x=E,rt.y=a,rt.transform(x),Xd(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),Xd(this,tt,rt,ot)&&(y=!0)))),Mt.free(tt),Fi.free(x),Mt.free(rt),Mt.free(ot),y};function Xd(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)}Ct.tx=function(a,y,x){function E(Gt,It){for(var Xt=Gt.length,Qt=0;Qt<Xt;Qt+=2)if(It.zd(Gt[Qt],Gt[Qt+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,Si(a.x,a.y,rt,ot)<=b&&Si(a.x,a.y,st,ot)<=b&&Si(a.x,a.y,rt,tt)<=b&&Si(a.x,a.y,st,tt)<=b)return!0}if(rt=y.startX,ot=y.startY,st=y.endX,tt=y.endY,y.type===dn.j){if(x=(rt-st)*(a.x-st)+(ot-tt)*(a.y-tt),On(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===dn.u)return y=!1,x&&(y=On(a.x,a.y,rt,ot,rt,tt)<=b||On(a.x,a.y,rt,ot,st,ot)<=b||On(a.x,a.y,st,ot,st,tt)<=b||On(a.x,a.y,rt,tt,st,tt)<=b),y;if(y.type===dn.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 On(a.x,a.y,rt,ot,st,tt)<=b;if(x){if(a=ae.$y(ut,ft,y,z),a*a<=b)return!0}else return!(Si(y,z,-ut,0)>=b||Si(y,z,0,-ft)>=b||Si(y,z,0,ft)>=b||Si(y,z,ut,0)>=b)}else if(y.type===dn.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&&On(a.x,a.y,z,rt,z,st)>b&&On(a.x,a.y,z,rt,ot,rt)>b&&On(a.x,a.y,ot,st,z,st)>b&&On(a.x,a.y,ot,st,ot,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Ts(y,a.x,a.y,z):_o(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 Oo:case Zr:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case Go:var mt=Dn();if(ae.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Un(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case gs:if(mt=Dn(),ae.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,mt),tt=E(mt,a),Un(mt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case xo:case Ls:mt=ft.type===xo?Ha(ft,z):Os(ft,z,tt,ut);var yt=mt.length;if(yt===0){if(tt=ft.type===xo?ft.centerX:ft.endX,ut=ft.type===xo?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var wt=Dn(),bt=0;bt<yt;bt++)if(ft=mt[bt],wt.length=0,ae.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,wt),E(wt,a))return Un(wt),!1;Un(wt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:Ht("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Ct.qc=function(){this.ua=null},Ct.kq=function(){return this.ig};function m1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=ep,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=aa):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ei(1-aa.x,aa.y)))}Yi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=xu[a.toArrow];else a.fromArrow!=="None"?E=xu[a.fromArrow]:(E=ae.Ze[a.figure],typeof E=="string"&&(E=ae.Ze[E]),E===void 0&&Ht("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=ae.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function v1(a){var y=xu[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=xu[x],y===void 0){var E=null,b;for(b in ae.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=dn.parse(ae.um[E],!1),xu[E]=a,x!==E&&(xu[x]=E),E}}return typeof y=="string"?y:y instanceof dn?a:null}ce.Object.defineProperties(Yi.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),fa(this)&&(a=this.part,a!==null&&to(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=dn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Mt.allocAt(-y.x,-y.y),Mt.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&&Dc(a,"Shape.fill"),a instanceof Or&&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&&Dc(a,"Shape.stroke"),a instanceof Or&&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 wn(a,"value >= 0",Yi,"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"?wn(a,'"butt", "round", or "square"',Yi,"strokeCap"):(Yd(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"?wn(a,'"miter", "bevel", or "round"',Yi,"strokeJoin"):(Yd(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){Yd(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)||Ht("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&&(Yd(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=ae.Ze[a];typeof x=="function"?x=a:(x=ae.Ze[a.toLowerCase()])||Ht("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=v1(a);x===null?Ht("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ed),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=v1(a);x===null?Ht("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ed),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Yo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Yd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Yo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Yd(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&&(Yd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:zi},set:function(a){var y=this.geometryStretch;y!==a&&(Yd(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 wu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&$l(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 wu),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 wu),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 wu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Yi.prototype.intersectsRect=Yi.prototype.Yc,Yi.prototype.containedInRect=Yi.prototype.fh,Yi.prototype.getNearestIntersectionPoint=Yi.prototype.rs,Yi.prototype.getDocumentBounds=Yi.prototype.mi,Yi.prototype.getDocumentPoint=Yi.prototype.ga;var xu=new ci,Av=new ci;Yi.className="Shape",Yi.getFigureGenerators=function(){var a=new Pe,y;for(y in ae.Ze)y!==y.toLowerCase()&&a.add(y,ae.Ze[y]);return a.freeze(),a},Yi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=ae.Ze;E[a]=y,E[x]=a},Yi.getArrowheadGeometries=function(){var a=new Pe;for(E in ae.um)if(xu[E]===void 0){var y=dn.parse(ae.um[E],!1);xu[E]=y,y=E.toLowerCase(),y!==E&&(xu[y]=E)}for(var x in xu)if(x!==x.toLowerCase()){var E=xu[x];E instanceof dn&&a.add(x,E)}return a.freeze(),a},Yi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=dn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ht("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=xu;E[a]=x,E[y]=a};function Ev(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=zi,this.gg=this.fg=Yo}Ev.prototype.copy=function(){var a=new Ev;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Yr(a,y){return oe.call(this),Tm||(ls=po?new dl(null).context:null,Tm=!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}ue(Yr,oe),Yr.prototype.cloneProtected=function(a){oe.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 iu(a){a.da===null?a.da=new Nv:a.da.nc&&(a.da=a.da.copy())}Ct=Yr.prototype,Ct.th=function(){oe.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function y1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ct.qb=function(a){a.classType===Yr?this.wrap=a:oe.prototype.qb.call(this,a)},Ct.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ct.v=function(){oe.prototype.v.call(this)},Ct.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=Xg(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;mo(this,a,this.xc,!0,!1,x,E),(ot||st)&&mo(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 Es&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case mr:a.translate(b,0),a.scale(-1,1);break;case _i:a.translate(0,z),a.scale(1,-1);break;case jr: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 mr:a.scale(-1,1),a.translate(-b,0);break;case _i:a.scale(1,-1),a.translate(0,-z);break;case jr:a.scale(-1,-1),a.translate(-b,-z)}}},Ct.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=Fm!==null?Fm(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=Bm!==null?Bm(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 Es&&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 Es&&y.ad.classList.add("gojs-td"))}},Ct.kk=function(a,y,x){if(!oe.prototype.kk.call(this,a,y,x))return!1;if(mo(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},Ct.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:oe.prototype.nk.call(this,a)},Ct.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)}},Ct.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;ls!==null&&A1!==z&&(A1=ls.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===Jg&&(rt=rt.trim()),tt=Math.max(tt,Ll(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=Ll(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Dm&&(y=this.Ae,y=this.overflow===Dm?S1(y):0,st=this.spacingAbove+this.spacingBelow,st=Math.max(0,Xg(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);Ll(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=Qg,y=Ll(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===w1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),Mr(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Ct.eh=function(a,y,x,E){Ra(this,a,y,x,E)};function Yg(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===Jg;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Xg(a)+rt);var ot=a.overflow===Dm?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===kv){a.Le=1;var st=Ll(y);if(ot===0||st<=x)a.Cb=Math.max(a.Cb,st),Yg(a,y,a.Cb),E!==null&&E.h(st,rt);else{for(z=Ff(a,tt),tt=tt.substr(z.length),y=Ff(a,tt),st=Ll(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=Ff(a,tt),st=z+y,b&&(st=st.trim()),st=Ll(st);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);Ll(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Qg;var ut=Ll(z);a.Cb=ut,Yg(a,z,ut),E!==null&&E.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,Yg(a,tt,0));0<tt.length;){for(y=Ff(a,tt),tt=tt.substr(y.length);Ll(y)>x;){var ft=1;for(st=Ll(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=Ll(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),Yg(a,y.substr(0,ft),mt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Ff(a,tt),st=Ll(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=Ff(a,tt),st=y+ut,b&&(st=st.trim()),st=Ll(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=Ll(y),z=Math.max(z,ut)),Yg(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 Ff(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===C1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Ll(a){return ls===null?8*a.length:ls.measureText(a).width}function Xg(a){if(a.df!==null)return a.df;var y=a.Ae;if(ls===null){var x=16;return a.df=x}return Bv[y]!==void 0&&5e3>L1?x=Bv[y]:(x=1.3*ls.measureText("M").width,Bv[y]=x,L1++),a.df=x}function S1(a){if(ls===null)return 6;if(Nm[a]!==void 0&&5e3>Dv)var y=Nm[a];else y=ls.measureText(Qg).width,Nm[a]=y,Dv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Xg(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!==kv){a.Le=0;var ot=Ve.alloc();bv(a,z,y,ot),b+=ot.height,Ve.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}ce.Object.defineProperties(Yr.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"||(iu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Xe},set:function(a){var y=this.flip;y!==a&&(iu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ul},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),iu(this),this.da.Yr=a,Xa(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ve.alloc();bv(this,this.ec,999999,a);var y=a.width;Ve.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Mr(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:Mv},set:function(a){var y=this.wrap;y!==a&&(iu(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&&(iu(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&&Dc(a,"TextBlock.stroke"),a instanceof Or&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Xg(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&&(iu(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&&(iu(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 wu),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 wu),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 wu),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 wu),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 wu),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&&(iu(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&&(iu(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&&(iu(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&&(iu(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Jg},set:function(a){var y=this.formatting;y!==a&&(iu(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&&wn(a,"> 0",Yr,"maxLines"),iu(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 Fm=null,Bm=null,kv=new Ue(Yr,"None",0),w1=new Ue(Yr,"WrapFit",1),Mv=new Ue(Yr,"WrapDesiredSize",2),P1=new Ue(Yr,"WrapBreakAll",3),Fv=new Ue(Yr,"OverflowClip",0),Dm=new Ue(Yr,"OverflowEllipsis",1),Jg=new Ue(Yr,"FormatTrim",0),C1=new Ue(Yr,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Bv=new ci,L1=0,Nm=new ci,Dv=0,Qg="...",A1="",ls=null,Tm=!1;Yr.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=Xe,this.gq=Jg,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ul,this.$r=Mv}Nv.prototype.copy=function(){var a=new Nv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Yr.getEllipsis=function(){return Qg},Yr.setEllipsis=function(a){Qg=a,Nm=new ci,Dv=0},Yr.getBaseline=function(){return Fm},Yr.setBaseline=function(a){Fm=a},Yr.getUnderline=function(){return Bm},Yr.setUnderline=function(a){Bm=a},Yr.isValidFont=function(a){if(Tm||(ls=po?new dl(null).context:null,Tm=!0),ls===null)return!0;var y=ls.font;if(a===y||a==="10px sans-serif")return!0;ls.font="10px sans-serif",ls.font=a;var x=ls.font;if(x!=="10px sans-serif")return ls.font=y,!0;ls.font="19px serif";var E=ls.font;return ls.font=a,x=ls.font,ls.font=y,x!==E},Yr.FormatNone=C1,Yr.FormatTrim=Jg,Yr.None=kv,Yr.OverflowClip=Fv,Yr.OverflowEllipsis=Dm,Yr.WrapBreakAll=P1,Yr.WrapDesiredSize=Mv,Yr.WrapFit=w1;function wu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}wu.prototype.copy=function(){var a=new wu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},wu.className="GradElementSettings";function us(a,y){oe.call(this),this.Eg=null,this.qo="",this.Xg=Ps,this.Nk=rn,this.Zg=this.Hd=null,this.Mk=Ui,this.Xf=Xe,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 Bf;ue(us,oe),us.prototype.cloneProtected=function(a){oe.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},us.prototype.qb=function(a){a===Xe||a===oi||a===hr?this.imageStretch=a:oe.prototype.qb.call(this,a)},us.prototype.toString=function(){return"Picture("+this.source+")#"+yr(this)};function Df(a){a===void 0&&(a=""),a!==""?Bf[a]&&(delete Bf[a],Om--):(Bf=new ci,Om=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ro(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=Dn();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);Un(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}us.prototype.hA=function(){if(this.source!==""){Df(this.source);var a=this.source;this.source="",this.source=a}},us.prototype.redraw=function(){this.N(),this.Uc=!0},us.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 Vd)){var b=a instanceof Es;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,wt=this.Mk;switch(yt){case Xe:if(this.sourceRect.w())break;ft>=E.width&&(z=z+wt.offsetX+(ft*wt.x-E.width*wt.x)),mt>=E.height&&(tt=tt+wt.offsetY+(mt*wt.y-E.height*wt.y)),ot=Math.min(E.width,ft),rt=Math.min(E.height,mt);break;case rn:ft=E.width,mt=E.height;break;case oi:case hr:yt===oi?(yt=Math.min(E.height/mt,E.width/ft),ft*=yt,mt*=yt):yt===hr&&(yt=Math.max(E.height/mt,E.width/ft),ft*=yt,mt*=yt,ft>=E.width&&(z=(z+wt.offsetX+(ft*wt.x-E.width*wt.x)/ft)*ot),mt>=E.height&&(tt=(tt+wt.offsetY+(mt*wt.y-E.height*wt.y)/mt)*rt),ot*=1/(ft/E.width),rt*=1/(mt/E.height),ft=E.width,mt=E.height)}yt=this.Df()*y.scale;var bt=ft*yt*mt*yt,Gt=ot*rt/bt,It=x.__goCache;yt=null;var Xt=xx;if(!b){if(x.sq&&It!==void 0&&4<bt&&Gt>Xt*Xt)for(It.gi===null&&(k1(It,4,st,ut,x),k1(It,16,st,ut,x)),b=It.gi,st=b.length,ut=0;ut<st&&b[ut].ratio*b[ut].ratio<Gt;ut++)yt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new dl(null).context;try{b.drawImage(this.Eg,0,0)}catch(Qt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Qt){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?wt.offsetX+(E.width*wt.x-ft*wt.x):0,wt=mt<E.height?wt.offsetY+(E.height*wt.y-mt*wt.y):0,this.flip){case mr:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case _i:a.translate(0,Math.min(E.height,mt)),a.scale(1,-1);break;case jr:a.translate(Math.min(E.width,ft),Math.min(E.height,mt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&It!==void 0&&yt!==null&&yt.ratio!==1){a.save(),y=yt.ratio;try{a.drawImage(yt.source,z/y,tt/y,Math.min(yt.source.width,ot/y),Math.min(yt.source.height,rt/y),b,wt,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof Es&&(this.bt=[z/y,tt/y,Math.min(yt.source.width,ot/y),Math.min(yt.source.height,rt/y),b,wt,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(Qt){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,b,wt,Math.min(E.width,ft),Math.min(E.height,mt)),a instanceof Es&&(this.bt=[z,tt,ot,rt,b,wt,Math.min(E.width,ft),Math.min(E.height,mt)])}catch(Qt){this.en=!1}switch(this.flip){case mr:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case _i:a.scale(1,-1),a.translate(0,-Math.min(E.height,mt));break;case jr:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,mt))}}}}},us.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=ss(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===rn||z===di?(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===rn||z===Li?(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)),Mr(this.dc,a,y),this.Ge(0,0,a,y)},us.prototype.eh=function(a,y,x,E){Ra(this,a,y,x,E)},ce.Object.defineProperties(us.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||Ht("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Mg(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new en),E!==null&&x&&_h(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()||(Ro(this,!1),this.v())):x&&E1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Bf;if(po){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Om&&(Df(),x=Bf),E=Gi("img"),E.hn=!0,E1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Om++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new b1),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}}}),us.prototype.redraw=us.prototype.redraw,us.prototype.reloadSource=us.prototype.hA;var Om=0,xx=4;us.className="Picture",Bf=new ci,us.clearCache=Df;function b1(){this.gi=null}function k1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new dl(null),tt=z.context,rt=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new M1(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))}b1.className="PictureCacheArray";function M1(a,y){this.source=a,this.ratio=y}M1.className="PictureCacheInstance";function Nf(){this.os=new dn,this.mc=null}Nf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new dn,this.mc=null};function Tf(a,y,x,E,b,z){a.mc=new To,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()}Nf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new xr(Oo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Nf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new xr(Zr);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function xh(a,y,x,E,b,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new xr(Go);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 Im(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new xr(gs);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}Nf.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new xr(xo);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 xr(Ls,tt,rt,y,x,E,b,z),ot&&y.close(),a.mc.segments.add(y)}function F1(a){var y=Rm;return y!==null?(Rm=null,y.reset(a),y):(y=new Nf,y.reset(a),y)}var Rm=null;Nf.className="StreamGeometryContext";function Fa(a,y){var x=a.toLowerCase(),E=ae.Ze;E[a]=y,E[x]=a}Fa("Rectangle",function(a,y,x){a="r"+y+","+x;var E=ae.Mf[a];return E!==void 0||(E=new dn(dn.u),E.endX=y,E.endY=x,ae.Nf<ae.vm&&(ae.Mf[a]=E,ae.Nf++)),E}),Fa("Square",function(a,y,x){a="s"+y+","+x;var E=ae.Mf[a];return E!==void 0||(E=new dn(dn.u),E.endX=y,E.endY=x,E.defaultStretch=oi,ae.Nf<ae.vm&&(ae.Mf[a]=E,ae.Nf++)),E}),Fa("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=ae.Mf[E];if(b!==void 0)return b;var z=a*ae.wg;return b=new dn().add(new To(a,0,!0).add(new xr(Zr,y-a,0)).add(new xr(Go,y,a,y-z,0,y,z)).add(new xr(Zr,y,x-a)).add(new xr(Go,y-a,x,y,x-z,y-z,x)).add(new xr(Zr,a,x)).add(new xr(Go,0,x-a,z,x,0,x-z)).add(new xr(Zr,0,a)).add(new xr(Go,a,0,0,z,z,0).close())),1<z&&(b.spot1=new ei(0,0,z,z),b.spot2=new ei(1,1,-z,-z)),ae.Nf<ae.vm&&(ae.Mf[E]=b,ae.Nf++),b}),Fa("Border","RoundedRectangle"),Fa("Ellipse",function(a,y,x){a="e"+y+","+x;var E=ae.Mf[a];return E!==void 0||(E=new dn(dn.F),E.endX=y,E.endY=x,E.spot1=Yl,E.spot2=Ga,ae.Nf<ae.vm&&(ae.Mf[a]=E,ae.Nf++)),E}),Fa("Circle",function(a,y,x){a="c"+y+","+x;var E=ae.Mf[a];return E!==void 0||(E=new dn(dn.F),E.endX=y,E.endY=x,E.spot1=Yl,E.spot2=Ga,E.defaultStretch=oi,ae.Nf<ae.vm&&(ae.Mf[a]=E,ae.Nf++)),E}),Fa("TriangleRight",function(a,y,x){return new dn().add(new To(0,0).add(new xr(Zr,y,.5*x)).add(new xr(Zr,0,x).close())).pm(0,.25,.5,.75)}),Fa("TriangleDown",function(a,y,x){return new dn().add(new To(0,0).add(new xr(Zr,y,0)).add(new xr(Zr,.5*y,x).close())).pm(.25,0,.75,.5)}),Fa("TriangleLeft",function(a,y,x){return new dn().add(new To(y,x).add(new xr(Zr,0,.5*x)).add(new xr(Zr,y,0).close())).pm(.5,.25,1,.75)}),Fa("TriangleUp",function(a,y,x){return new dn().add(new To(y,x).add(new xr(Zr,0,x)).add(new xr(Zr,.5*y,0).close())).pm(.25,.5,.75,1)}),Fa("Triangle","TriangleUp"),Fa("Diamond",function(a,y,x){return new dn().add(new To(.5*y,0).add(new xr(Zr,0,.5*x)).add(new xr(Zr,.5*y,x)).add(new xr(Zr,y,.5*x).close())).pm(.25,.25,.75,.75)}),Fa("LineH",function(a,y,x){return a=new dn(dn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Fa("LineV",function(a,y,x){return a=new dn(dn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Fa("None","Rectangle"),Fa("BarH","Rectangle"),Fa("BarV","Rectangle"),Fa("MinusLine","LineH"),Fa("PlusLine",function(a,y,x){return new dn().add(new To(0,x/2,!1).add(new xr(Zr,y,x/2)).add(new xr(Oo,y/2,0)).add(new xr(Zr,y/2,x)))}),Fa("XLine",function(a,y,x){return new dn().add(new To(0,x,!1).add(new xr(Zr,y,0)).add(new xr(Oo,0,0)).add(new xr(Zr,y,x)))}),Fa("LineRight",function(a,y,x){return new dn().add(new To(.25*y,0,!1).add(new xr(Zr,.75*y,.5*x)).add(new xr(Zr,.25*y,x)))}),Fa("LineDown",function(a,y,x){return new dn().add(new To(0,.25*x,!1).add(new xr(Zr,.5*y,.75*x)).add(new xr(Zr,y,.25*x)))}),Fa("LineLeft",function(a,y,x){return new dn().add(new To(.75*y,0,!1).add(new xr(Zr,.25*y,.5*x)).add(new xr(Zr,.75*y,x)))}),Fa("LineUp",function(a,y,x){return new dn().add(new To(0,.75*x,!1).add(new xr(Zr,.5*y,.25*x)).add(new xr(Zr,y,.75*x)))}),ae.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Tv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Lr,this.ir=null,this.jr="",this.lr=Yo,this.Gq="",this.Hq=ur,this.Pq=Nn,this.Kq=ui,this.Up=null,this.Cq=127,this.zr=ai,this.yr="gray",this.Vg=4}Tv.prototype.copy=function(){var a=new Tv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function mi(a,y){a===void 0||a instanceof Zo||typeof a=="string"?on.call(this,a):(on.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 Mt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Ce,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}ue(mi,on),mi.prototype.cloneProtected=function(a){on.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},Ct=mi.prototype,Ct.Af=function(a){on.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ct.toString=function(){var a=Wn(this.constructor)+"#"+yr(this);return this.data!==null&&(a+="("+bi(this.data)+")"),a};function hs(a){a.P===null?a.P=new Tv:a.P.nc&&(a.P=a.P.copy())}Ct.th=function(){on.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ct.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===wo&&y==="elements"?b instanceof on?Ud(b,function(ot){sy(rt.partManager,ot),zd(rt,ot)}):_h(rt,b):a===Ao&&y==="elements"&&(b instanceof on?Ud(b,function(ot){ly(rt.partManager,ot,rt)}):Mg(rt,b)),rt.cb(a,y,x,E,b,z,tt))},Ct.La=function(a){if(on.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 on&&Ud(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},mi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},mi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},mi.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 Pe),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)))}}},mi.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)}},mi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Dn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Un(y)}},mi.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 Oi?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof wr))break t;cl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=on.Link),x.adornedObject=y)}if(x!==null){x.type===on.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},mi.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 zm(a){if(nd(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function B1(a){if(a.G|=2097152,nd(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||T1(a,y,x),x=a.Ib;var E=Ce.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),Ce.free(E),Rv(a,!1)}}mi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Fi);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},mi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ui;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Mt.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),Mt.free(tt)}},mi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},mi.prototype.moveTo=function(a,y,x){a=Mt.allocAt(a,y),this.move(a,x),Mt.free(a)},mi.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())},mi.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())},mi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Pe),y.I(a)!==null)return y.I(a);var x=on.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function wh(a,y,x,E){E===void 0&&(E=new Mt),x=x.Mc()?Ui: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}mi.prototype.mi=function(a){return a===void 0&&(a=new Ce),a.assign(this.actualBounds)},mi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function D1(a){var y=Mt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Yi?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 Jd(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=u1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,E-=tt/2,b-=tt/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}mi.prototype.arrange=function(){if(Ja(this)===!1)B1(this);else{vu(this,!1);var a=this.Ib,y=Ce.alloc();y.assign(a);var x=id(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;T1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||ae.B(y.width,a.width)&&ae.B(y.height,a.height)||0<=this.vw&&this.C(16),Ce.free(y),Rv(this,!1)}},Ct=mi.prototype,Ct.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=Ce.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),Ce.free(b)}!(this.G&65536)&&a.D(y)||R1(this,E,x),x.N(),!a.w()&&!y.w()||pr(a,y)||(this instanceof Fn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ct.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&N1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Mt(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),nd(this)===!1&&Ja(this)===!1&&(zm(this),B1(this)),!0};function N1(a,y,x,E,b){y===null||a instanceof wr||(y=y.animationManager,y.zb&&of(y,a,new Mt(E,b),x))}Ct.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;nd(this)||Ja(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)}zm(this)},Ct.Av=function(){this.G&=-2097153,zm(this)};function T1(a,y,x){var E=D1(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?O1(a,y,x,b,E):I1(a,y,x,b,E):z?O1(a,y,x,b,E):tt&&I1(a,y,x,b,E),a.G|=2097152,Mt.free(E),a.Uk()}function O1(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 wr||of(x,a,new Mt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Mt(z,tt),y.copy()))}function I1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function R1(a,y,x){zv(a,!1),a instanceof Fn&&gh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?id(a)?(Gr(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ct.si=function(){return!0},Ct.Zc=function(){return!0},Ct.ph=function(){return!1},Ct.Dd=function(){return!0};function Iv(a,y,x,E){y.constructor===a.constructor||W1||(W1=!0,Bn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Bn(" Old class: "+Wn(a.constructor)+", new class: "+Wn(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 Fn&&(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 Fn&&(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)}mi.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},mi.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},mi.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},mi.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},mi.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},mi.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},mi.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},mi.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},mi.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 nd(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 id(a){return(a.G&131072)!==0}Ct=mi.prototype,Ct.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function jm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ct.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ct.N=function(){var a=this.diagram;a!==null&&!Ja(this)&&!nd(this)&&this.isVisible()&&this.Ib.w()&&a.N(Jd(this,this.Ib))},Ct.v=function(){on.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Fn&&this.labeledLink!==null&&Xa(this.labeledLink),a.$b(!0))},Ct.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Ct.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Ct.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ct.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof Fn&&(y=y.labeledLink,y!==null)?jv(a,y):0}Ct.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof Fn&&(x=y.labeledLink,x!==null)?z1(a,x):y}Ct.Td=function(a){return a instanceof Oi?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 Fn&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}Ct.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Oi&&jm(y,!0),y instanceof Fn){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 Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Oi&&jm(y,!1),y instanceof Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},mi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Fn&&this.isLinkLabel)},mi.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 Fn&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function j1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function rd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof wr)){if(a.add(y),y instanceof Fn){if(x&&y instanceof Oi)for(var tt=y.memberParts;tt.next();)rd(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)&&rd(a,rt,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)rd(a,y.value,x,E-1,b,z)}else if(y instanceof gn)for(y=y.labelNodes;y.next();)rd(a,y.value,x,E,b,z)}}ce.Object.defineProperties(mi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?tr: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(Ao,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(wo,"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&&(hs(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&&lf(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 wr?this.type!==on.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:Nn},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),hs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ui},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),hs(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&&(hs(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:ur},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),hs(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,Ja(this)===!1&&(zm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),N1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof wr)){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 wr?this instanceof wr&&(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&&(cl(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(E,a),x=dS(x.partManager,E,a),x!==null&&(cl(x),x=x.copy(),x===null||x instanceof gn||(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&&(hs(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&&(hs(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&&(hs(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 gn?(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&&(hs(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&&(hs(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&&(hs(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:Lr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),hs(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&&(hs(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&&(hs(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:Yo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),hs(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&&Ht("Cannot make a Group a member of itself: "+this.toString()),Ht("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Oi&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Oi&&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 Oi){for(x=new en,rd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Fn)for(E=E.linksConnected;E.next();)Of(E.value)}if(this instanceof Fn){for(x=this.linksConnected;x.next();)Of(x.value);x=this.labeledLink,x!==null&&Of(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&lf(y,-1,a))}}else Ht("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&&(hs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Fn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(hs(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&&(hs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ai},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),hs(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&&(hs(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&&(hs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),mi.prototype.invalidateLayout=mi.prototype.C,mi.prototype.findCommonContainingGroup=mi.prototype.px,mi.prototype.isMemberOf=mi.prototype.Td,mi.prototype.findTopLevelPart=mi.prototype.sz,mi.prototype.findSubGraphLevel=mi.prototype.oz,mi.prototype.ensureBounds=mi.prototype.Va,mi.prototype.getDocumentBounds=mi.prototype.mi,mi.prototype.findObject=mi.prototype.fb,mi.prototype.moveTo=mi.prototype.moveTo,mi.prototype.invalidateAdornments=mi.prototype.Wb,mi.prototype.clearAdornments=mi.prototype.Ej,mi.prototype.removeAdornment=mi.prototype.Jf,mi.prototype.addAdornment=mi.prototype.bh,mi.prototype.findAdornment=mi.prototype.Pj,mi.prototype.updateTargetBindings=mi.prototype.La;var W1=!1;mi.className="Part",mi.LayoutNone=0,mi.LayoutAdded=1,mi.LayoutRemoved=2,mi.LayoutShown=4,mi.LayoutHidden=8,mi.LayoutNodeSized=16,mi.LayoutGroupLayout=32,mi.LayoutNodeReplaced=64,mi.LayoutStandard=127,mi.LayoutAll=16777215;function wr(a,y){a===void 0||a instanceof Zo||typeof a=="string"?mi.call(this,a):(mi.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)}ue(wr,mi),wr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},wr.prototype.updateRelationshipsFromData=function(){},wr.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof gn&&y instanceof Yi){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 Yi&&(b.ua=a)}}},wr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ja(a))},wr.prototype.Zc=function(){return!1},wr.prototype.gk=function(a,y,x,E,b,z,tt){if(a===wo&&y==="elements"){if(b instanceof qa)this.$a===null&&(this.$a=b);else if(b instanceof on){var rt=b.Nl(function(ot){return ot instanceof qa});rt instanceof qa&&this.$a===null&&(this.$a=rt)}}else a===Ao&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof on&&this.$a.rg(E)&&(this.$a=null));mi.prototype.gk.call(this,a,y,x,E,b,z,tt)},wr.prototype.updateAdornments=function(){},wr.prototype.Lj=function(){},ce.Object.defineProperties(wr.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}}}),wr.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Do,this.er=Hm,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Fn(a,y){a===void 0||a instanceof Zo||typeof a=="string"?mi.call(this,a):(mi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new tn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}ue(Fn,mi),Fn.prototype.cloneProtected=function(a){mi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ct=Fn.prototype,Ct.Af=function(a){mi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ph(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ct.th=function(){mi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function G1(a,y){y!==null&&(a.af===null&&(a.af=new en),a.af.add(y))}function H1(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}Ct.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=H1(this,a,y,x),a!==null&&a.Sl()},Ct.gk=function(a,y,x,E,b,z,tt){a===wo&&y==="elements"?this.wc=null:a===Ao&&y==="elements"&&(this.wc=null),mi.prototype.gk.call(this,a,y,x,E,b,z,tt)},Ct.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(bs(x.fromPort),bs(x.toPort),x.bb())}};function Z1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(bs(x.fromPort),bs(x.toPort),x.bb())}}function bs(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||bs(y.port)}}Ct.si=function(){return!0},Fn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Fn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Fn.prototype.isVisible=function(){if(!mi.prototype.isVisible.call(this))return!1;var a=!0,y=mh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===mh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Io){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===xf&&(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},Fn.prototype.Zb=function(a){mi.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)}},Fn.prototype.qx=function(){var a=new en,y=new en;return K1(this,this,a,y),y.iterator};function K1(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)&&K1(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}Fn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new dr(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Ct=Fn.prototype,Ct.Mo=function(a){a===void 0&&(a=null);var y=new dr(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Ct.Sd=function(a){a===void 0&&(a=null);var y=new dr(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Ct.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new sr(x):tr},Ct.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new sr(x):tr},Ct.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new en,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new sr(x):tr},Ct.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new dr(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},Ct.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new dr(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 Wm(a,y,x){bs(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 Gm(a,y,x){bs(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)):qg(y)))}function qg(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}}}Fn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ct=Fn.prototype,Ct.Vo=function(a){mi.prototype.Vo.call(this,a),a||(qg(this),a=this.Yk,a!==null&&$1(a,this))},Ct.Wo=function(a){mi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ct.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,mi.prototype.Lj.call(this)},Ct.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new Pe:a.wc.clear(),a.qm(a,function(y,x){U1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function U1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Hv(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=Dn()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Un(x)}}}Ct.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},Ct.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}},Ct.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)jm(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;)jm(y,!1),y=y.pg();return x},Ct.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},Ct.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Fn)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},Ct.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new en;return a(this,y),y},Ct.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}Ct.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new dr(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},Ct.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 tn,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 tn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new sr(x):tr},Ct.wz=function(a){a===void 0&&(a=1/0);var y=new en;return rd(y,this,!1,a,!0),y},Fn.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===mh),y.Ue=!1}};function X1(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),X1(ot,y,x,E-1,b,z,tt)))}else J1(a,y,x,b,z,tt)}function J1(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||J1(st,y,x,E,b,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}Fn.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new en;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===mh),y.Ue=!1}};function Q1(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,Q1(ut,y,x,E-1,b,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}ce.Object.defineProperties(Fn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Hm},set:function(a){var y=this.portSpreading;y!==a&&(Ph(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&&gh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Do},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ph(this),this.Ba.yp=a;var x=this.diagram;x!==null&&gh(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&&(Ph(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&&(Ph(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&&(Ph(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var tt=z.wa(E);tt!==void 0&&z.Qx(b,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($1(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),Xa(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(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&&(Ph(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))}}}),Fn.prototype.expandTree=Fn.prototype.expandTree,Fn.prototype.collapseTree=Fn.prototype.collapseTree,Fn.prototype.findTreeParts=Fn.prototype.wz,Fn.prototype.findTreeChildrenNodes=Fn.prototype.Ou,Fn.prototype.findTreeChildrenLinks=Fn.prototype.Qo,Fn.prototype.findTreeLevel=Fn.prototype.uz,Fn.prototype.findTreeParentChain=Fn.prototype.vz,Fn.prototype.findTreeParentNode=Fn.prototype.pg,Fn.prototype.findTreeParentLink=Fn.prototype.kh,Fn.prototype.findCommonTreeParent=Fn.prototype.gz,Fn.prototype.findTreeRoot=Fn.prototype.xz,Fn.prototype.isInTreeOf=Fn.prototype.Nz,Fn.prototype.findPort=Fn.prototype.ns,Fn.prototype.findLinksTo=Fn.prototype.kz,Fn.prototype.findLinksBetween=Fn.prototype.jz,Fn.prototype.findNodesInto=Fn.prototype.Oo,Fn.prototype.findNodesOutOf=Fn.prototype.Po,Fn.prototype.findNodesConnected=Fn.prototype.Mu,Fn.prototype.findLinksInto=Fn.prototype.Sd,Fn.prototype.findLinksOutOf=Fn.prototype.Mo,Fn.prototype.findExternalTreeLinksConnected=Fn.prototype.qx,Fn.prototype.invalidateConnectedLinks=Fn.prototype.Bd,Fn.prototype.invalidateLinkBundle=Fn.prototype.Lz;var Lx=new Ue(Fn,"SpreadingNone",10),Hm=new Ue(Fn,"SpreadingEvenly",11),Zv=new Ue(Fn,"SpreadingPacked",12);Fn.className="Node",Fn.SpreadingNone=Lx,Fn.SpreadingEvenly=Hm,Fn.SpreadingPacked=Zv;function Oi(a,y){a===void 0||a instanceof Zo||typeof a=="string"?Fn.call(this,a):(Fn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new en,this.$a=null,this.Sc=new lo,this.Sc.group=this,this.gl=new en,this.tb=this.$p=null,y&&Object.assign(this,y)}ue(Oi,Fn),Oi.prototype.cloneProtected=function(a){Fn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof qa});y instanceof qa?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())},Ct=Oi.prototype,Ct.Af=function(a){Fn.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 Fn)x.Bd(y);else if(x instanceof gn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ct.gk=function(a,y,x,E,b,z,tt){if(a===wo&&y==="elements"){if(b instanceof qa)this.$a===null?this.$a=b:this.$a!==b&&Ht("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof on){var rt=b.Nl(function(ot){return ot instanceof qa});rt instanceof qa&&(this.$a===null?this.$a=rt:this.$a!==rt&&Ht("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ao&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof on&&this.$a.rg(E)&&(this.$a=null));Fn.prototype.gk.call(this,a,y,x,E,b,z,tt)},Ct.Xl=function(a,y){Fn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==on.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof on&&(a=a.Pb()),this.tb===null&&(this.tb=new Ce),a.mi(this.tb),a instanceof Yi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ct.eh=function(a,y,x,E){this.nf=this.$a,Fn.prototype.eh.call(this,a,y,x,E)},Ct.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof gn||y.Va()}),Fn.prototype.Va.call(this)},Ct.si=function(){if(!Fn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Fn){if(y.isVisible()&&Ja(y))return!1}else if(y instanceof gn&&y.isVisible()&&Ja(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof Oi&&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 gn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof Oi&&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 gn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ct.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)}Fn.prototype.Lj.call(this)},Oi.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=De(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Oi.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=De(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Oi.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))},Ct=Oi.prototype,Ct.Bd=function(a){var y=(this.U&65536)!==0;if(Fn.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()?(bs(x.fromPort),bs(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(bs(x.fromPort),bs(x.toPort),x.bb()))}}},Ct.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new en,E=y.iterator;E.next();){var b=E.value;if(b instanceof Fn)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ct.iz=function(){var a=this.Rj();a.add(this);for(var y=new en,x=a.iterator;x.next();){var E=x.value;if(E instanceof Fn)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},Ct.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new en;return a(this,y),y},Ct.Rj=function(){var a=new en;return rd(a,this,!0,0,!0),a.remove(this),a},Ct.Zb=function(a){Fn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Oi.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Oi&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,E)),z instanceof Fn)z.Bd(y),x.Aj(z,E);else if(z instanceof gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Oi.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_1(this,y,a,this),a.Ue=!1}};function _1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Oi&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_1(z,y,x,E)),z instanceof Fn)z.Bd(y),x.Cj(z,E);else if(z instanceof gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Oi.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=Mt.alloc(),Fn.prototype.move.call(this,a,y),a=new en,y=this.Rj().iterator;y.next();)b=y.value,b instanceof gn&&(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 Fn&&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 gn&&(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());Mt.free(z)}},ce.Object.defineProperties(Oi.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&&Ht("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&&(Ph(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&&(Ph(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&&(Ph(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&&(Ph(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)}}}),Oi.prototype.expandSubGraph=Oi.prototype.expandSubGraph,Oi.prototype.collapseSubGraph=Oi.prototype.collapseSubGraph,Oi.prototype.findSubGraphParts=Oi.prototype.Rj,Oi.prototype.findContainingGroupChain=Oi.prototype.hz,Oi.prototype.findExternalNodesConnected=Oi.prototype.iz,Oi.prototype.findExternalLinksConnected=Oi.prototype.Lu,Oi.prototype.ensureBounds=Oi.prototype.Va,Oi.className="Group";function qa(a){oe.call(this),this.yb=ea,this.ko=new Ce(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}ue(qa,oe),qa.prototype.cloneProtected=function(a){oe.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},qa.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return eo(0,0,y.width,y.height,a.x,a.y)},qa.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Oi||a instanceof wr)||Ht("Placeholder is not inside a Group or Adornment."),a instanceof Oi){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Mr(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=Mt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Mt.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 Yi&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,st=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==on.Link&&(rt=z.ga(a.category==="Selection"?ur:a.locationSpot,Mt.alloc()),a.location=rt,Mt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(ur,Mt.alloc()),st=Ce.allocAt(a.x,a.y,0,0),st.Ye(z.ga(zr,a)),st.Ye(z.ga(Tr,a)),st.Ye(z.ga(Wo,a)),Mr(y,st.width+E||0,st.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Mt.free(a),Ce.free(st)):(Mr(y,st+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},qa.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},qa.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Oi&&!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=Ce.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Oi&&!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)),Ce.free(x),E&&y instanceof Oi&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},qa.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Oi))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 gn&&(!y.computesBoundsIncludingLinks||js(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},ce.Object.defineProperties(qa.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Hi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),qa.className="Placeholder";function gn(a){mi.call(this,on.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=_a,this.Om=0,this.Qm=_a,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new tn().freeze(),this.Tg=this.Mg=null,this.ml=new Ce,this.ua=new dn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Mt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ue(gn,mi),gn.prototype.cloneProtected=function(a){mi.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())},Ct=gn.prototype,Ct.Af=function(a){mi.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&&bs(y),a=a.toPort,a!==null&&bs(a)},Ct.qb=function(a){a.classType===gn?(a.value&2)===2?this.routing=a:a===Gs||a===Lh||a===Rf?this.curve=a:a===tp||a===Xm||a===Jm?this.adjusting=a:a!==Qv&&a!==_a&&Ht("Unknown Link enum value for a Link property: "+a):mi.prototype.qb.call(this,a)},Ct.Xc=function(){this.ba===null&&(this.ba=new Wg)},Ct.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ja(a)||nd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ja(a)||nd(a)))},Ct.zv=function(){return!1},Ct.Av=function(){},Ct.Zc=function(){return!1},gn.prototype.computeAngle=function(a,y,x){return gn.computeAngle(y,x)},gn.computeAngle=function(a,y){switch(a){default:case _a:a=0;break;case ep:a=y;break;case np:a=y+90;break;case ip:a=y-90;break;case qv:a=y+180;break;case Qm:a=ae.bp(y),90<a&&270>a&&(a-=180);break;case rp:a=ae.bp(y+90),90<a&&270>a&&(a-=180);break;case op:a=ae.bp(y-90),90<a&&270>a&&(a-=180);break;case qm:if(a=ae.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return ae.bp(a)};function Of(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&&Vv(x,a),a.Ah=y,y!==null&&Kv(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}Ct=gn.prototype,Ct.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&mi.prototype.oh.call(this)},Ct.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ct.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new en),a.wd.add(y),a.v()}Ct.Vo=function(a){if(mi.prototype.Vo.call(this,a),Qd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Wm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Wm(x,this,E)}_g(this)}},Ct.Wo=function(a){if(mi.prototype.Wo.call(this,a),Qd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Gm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Gm(x,this,E)}$g(this)}},Ct.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))},gn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},gn.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?mi.prototype.move.call(this,a,!1):(a=Mt.allocAt(x.x+E,x.y+b),mi.prototype.move.call(this,a,!1),Mt.free(a)),Ch(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},gn.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},gn.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},gn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Qn),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()===Gs))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()===Gs){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return ae.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),ae.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},gn.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()===Gs))return this.ua.wx(.5);if(this.computeCurve()===Gs&&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),ae.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)},Ct=gn.prototype,Ct.i=function(a){return this.Nb.s[a]},Ct.dd=function(a,y){this.Nb.cd(a,y)},Ct.L=function(a,y,x){this.Nb.cd(a,new Mt(y,x))},Ct.Kz=function(a,y){this.Nb.Gb(a,y)},Ct.m=function(a,y,x){this.Nb.Gb(a,new Mt(y,x))},Ct.ne=function(a){this.Nb.add(a)},Ct.yf=function(a,y){this.Nb.add(new Mt(a,y))},Ct.pv=function(a){this.Nb.mb(a)},Ct.Fj=function(){this.Nb.clear()};function Ch(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 tn,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Mt(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),Xa(a)),E?Zm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&sf(tt.animationManager,a,b),a.g("points",z,b)}}Ct.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ct.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&&sf(x.animationManager,this,y),Zm(this),this.g("points",a,y)}},Ct.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Zm(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),Ym(a,!1))}Ct.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())}},Ct.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()}}},gn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Oc||(Oc=new Fn,Oc.desiredSize=gi,Oc.Va()),this.defaultFromPoint&&(Oc.location=this.defaultFromPoint,Oc.Va(),y=a=Oc)):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?(Ic||(Ic=new Fn,Ic.desiredSize=gi,Ic.Va()),this.defaultToPoint&&(Ic.location=this.defaultToPoint,Ic.Va(),b=E=Ic)):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=If(tt),ot=If(x),st=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===Gs;this.Wf=st&&!ut?ft=!0:!1;var mt=this.computeAdjusting()===_a||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,wt=z.y+ot/3,bt=yt,Gt=wt;ae.B(ot,0)?Gt=0<rt?Gt-st:Gt+st:(ut=-rt/ot,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),bt=(0>ot?-1:1)*ft+yt,Gt=ut*(bt-yt)+wt),yt=z.x+2*rt/3,wt=z.y+2*ot/3;var It=yt,Xt=wt;ae.B(ot,0)?Xt=0<rt?Xt-st:Xt+st:(It=(0>ot?-1:1)*ft+yt,Xt=ut*(It-yt)+wt),this.Fj(),this.ne(z),this.yf(bt,Gt),this.yf(It,Xt),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,ae.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=Ce.alloc(),y.mi(rt),ot=rt.ca(b),mt.mi(rt),st=rt.ca(E),(ot||st)&&(tt=y.ga(Vm(tt),new Mt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=mt.ga(Vm(x),new Mt),this.dd(1,this.getLinkPointFromPoint(z,mt,x,E,!1,x))),Ce.free(rt))}else{ft=this.isAvoiding,mt&&(ut&&ft||st)&&this.Fj();var Qt=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),yt=bt=wt=0,(ut||!rt||st)&&(Gt=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>Qt&&(yt-=180)),0>yt?yt+=360:360<=yt&&(yt-=360),st&&(Gt+=Math.abs(Qt)*(ut?1:2)),yt===0?wt=Gt:yt===90?bt=Gt:yt===180?wt=-Gt:yt===270?bt=-Gt:(wt=Gt*Math.cos(yt*Math.PI/180),bt=Gt*Math.sin(yt*Math.PI/180)),tt.Mc()&&st&&(Gt=y.ga(Ui,Mt.alloc()),It=Mt.allocAt(Gt.x+1e3*wt,Gt.y+1e3*bt),this.getLinkPointFromPoint(a,y,Gt,It,!0,ft),Mt.free(Gt),Mt.free(It))),Gt=this.getLinkPoint(E,b,x,!1,ut,a,y);var qt=Xt=It=0;if(ut||!ot||st){var re=this.computeEndSegmentLength(E,b,x,!1);qt=this.getLinkDirection(E,b,Gt,x,!1,ut,a,y),st&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(qt+=ut?0:30,0>Qt&&(qt+=180)),0>qt?qt+=360:360<=qt&&(qt-=360),st&&(re+=Math.abs(Qt)*(ut?1:2)),qt===0?It=re:qt===90?Xt=re:qt===180?It=-re:qt===270?Xt=-re:(It=re*Math.cos(qt*Math.PI/180),Xt=re*Math.sin(qt*Math.PI/180)),x.Mc()&&st&&(x=b.ga(Ui,Mt.alloc()),tt=Mt.allocAt(x.x+1e3*It,x.y+1e3*Xt),this.getLinkPointFromPoint(E,b,x,tt,!1,Gt),Mt.free(x),Mt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Mt(ft.x+wt,ft.y+bt)),tt=Gt,(ut||!ot||st)&&(tt=new Mt(Gt.x+It,Gt.y+Xt)),!mt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Gt):!mt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,Gt)?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,Gt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,yt,tt,qt,a,E),(ut||!ot||st)&&this.ne(tt),this.ne(Gt))}return!0};function Uv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}gn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Mt),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 Km(a,y){var x=y.Zn;return x===null&&(x=new Rc,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}gn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Mt),x.sb()&&!If(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Km(this,y);if(ot!==null){if(rt.assign(ot.Zo),b&&this.routing===eS){var st=Km(this,tt);if(st!==null&&ot.Gl<st.Gl){ot=Mt.alloc(),st=Mt.alloc();var ut=new Ce(y.ga(ur,ot),y.ga(zr,st)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,st),(x.Hf(Da)||x.Hf(vo))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Uo)||x.Hf(cs))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Mt.free(ot),Mt.free(st)}}return rt}}return x=y.ga(Vm(x),Mt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Uv(x,tt.copy()))):(ot=this.computeSpot(!E,tt),z=Mt.alloc(),tt=tt.ga(Vm(ot),z),b&&(tt=Uv(x,tt)),Mt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Mt.free(x),rt},gn.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=Km(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(Ui,Mt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Uv(ot,rt.copy()):x):(x=Mt.alloc(),rt=rt.ga(Ui,x),Mt.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,Mt.free(ot),ot=x}return E.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),If(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},gn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Km(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)},gn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Ui:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Yo?Ki:y)):(a=y||this.toPort,a===null?a=Ui:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Yo?Ki:y)),a};function If(a){return a===Ki||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:Ui}gn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==_a&&4<this.pointsCount?this.computeMidPoint(new Mt):(a=y.Zn,a=a!==null?sS(a,this):null,a!==null?a.Zo:y.ga(Ui))},gn.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},gn.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=Fi.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&Fi.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=Fi.alloc(),ft.set(tt),ut instanceof on)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Yi)if(rt=a,mt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),mt)t:{var yt=rt,wt=ft;if(ut.fh(yt,wt))rt=!0;else{if(wt===void 0&&(wt=ut.transform,yt.Re(ut.actualBounds))){rt=!0;break t}rt=yt.left,mt=yt.right;var bt=yt.top;yt=yt.bottom;var Gt=Mt.alloc(),It=Mt.alloc(),Xt=Mt.alloc(),Qt=Fi.alloc();Qt.set(wt),Qt.bv(ut.transform),Qt.Vj(),It.x=mt,It.y=bt,It.transform(Qt),Gt.x=rt,Gt.y=bt,Gt.transform(Qt),wt=!1,Xd(ut,Gt,It,Xt)?wt=!0:(Gt.x=mt,Gt.y=yt,Gt.transform(Qt),Xd(ut,Gt,It,Xt)?wt=!0:(It.x=rt,It.y=yt,It.transform(Qt),Xd(ut,Gt,It,Xt)?wt=!0:(Gt.x=rt,Gt.y=bt,Gt.transform(Qt),Xd(ut,Gt,It,Xt)&&(wt=!0)))),Fi.free(Qt),Mt.free(Gt),Mt.free(It),Mt.free(Xt),rt=wt}}else rt=ut.fh(rt,ft)}else rt=Jo(ut,a,E,ft);rt&&(mt=ut,y!==null&&(mt=y(ut)),mt&&(x===null||x(mt))&&b.add(mt)),Fi.free(ft)}}}return z===void 0&&Fi.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&Fi.free(tt),!1},gn.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?Gs:this.curve},gn.prototype.computeCorner=function(){if(this.curve===Gs)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},gn.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},gn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,tt=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===ep||E===Qm||E===qv?a=Math.max(a,b):E===ip||E===op||E===np||E===rp?a=Math.max(a,tt):(y=y.ga(Ui).ab(x.ga(Ui))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*b)+1)),this.curve===Gs&&(a*=1.333)}}return a},gn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===_a&&x.bb()}},gn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=Dn(),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),Un(x)}}return a},gn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},gn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},gn.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===Xm)return!1;b===Jm&&(b=tp)}switch(b){case Xm: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(!ae.$(st,0)){if(ae.$(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),ae.$(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),ae.$(y,0)||(ae.$(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 Jm: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 wt=(mt-ut)/(ot-rt);yt=Math.sqrt(1+1/(wt*wt))}else wt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var bt=y.x,Gt=y.y,It=.5;st!==0&&(It=((b-bt)*(b-tt)+(z-Gt)*(z-ft))/st);var Xt=b+It*(tt-b),Qt=z+It*(ft-z);y=Math.sqrt((bt-Xt)*(bt-Xt)+(Gt-Qt)*(Gt-Qt)),Gt<wt*(bt-Xt)+Qt&&(y=-y),0<wt&&(y=-y),bt=rt+It*(ot-rt),It=ut+It*(mt-ut),wt!==0?(y=bt+y/yt,this.L(a,y,It-(y-bt)/wt)):this.L(a,bt,It+y)}this.dd(x,E)}return!0;case tp: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,ae.B(b.y,z.y)?ae.B(z.x,tt.x)?ut=y.y:ae.B(z.y,tt.y)&&(rt=y.x):ae.B(b.x,z.x)&&(ae.B(z.y,tt.y)?rt=y.x:ae.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,ae.B(b.y,z.y)?ae.B(z.x,tt.x)?ut=E.y:ae.B(z.y,tt.y)&&(rt=E.x):ae.B(b.x,z.x)&&(ae.B(z.y,tt.y)?rt=E.x:ae.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}},gn.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(ap,ap),ot.Bc(ap,ap),rt.Ye(a),ot.Ye(x);var st=Mt.alloc(),ut=Mt.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||!mf(mt)||rt.ca(ft)&&!z.Td(b)||ot.ca(a)&&!b.Td(z))y=!1;else{var yt=vf(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 wt=x=null;if(mt.isVirtualized){mt=yt.bounds.copy(),mt.Bc(-yt.Ho,-yt.Go);var bt=Mt.alloc();zf(yt,a.x,a.y)||(ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,a.x,a.y,st.x,st.y,bt)?(x=a=bt.copy(),y=bt.ab(st)):ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,st.x,st.y,ut.x,ut.y,bt)?(x=a=bt.copy(),y=bt.ab(ut)):ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ut.x,ut.y,ft.x,ft.y,bt)&&(x=a=bt.copy(),y=bt.ab(ft))),zf(yt,ft.x,ft.y)||(ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ft.x,ft.y,ut.x,ut.y,bt)?(wt=ft=bt.copy(),E=ut.ab(bt)):ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,ut.x,ut.y,st.x,st.y,bt)?(wt=ft=bt.copy(),E=st.ab(bt)):ae.Ff(mt.x,mt.y,mt.x+mt.width,mt.y+mt.height,st.x,st.y,a.x,a.y,bt)&&(wt=ft=bt.copy(),E=a.ab(bt))),Mt.free(bt)}rt=rt.copy().ed(ot),rt.Bc(yt.Ho*yt.Os,yt.Go*yt.Os),oS(yt,a,y,ft,E,rt,!0),ot=Pu(yt,ft.x,ft.y),!yt.abort&&ot>=jf&&(rS(yt),rt.Bc(yt.Ho*yt.Hx,yt.Go*yt.Ix),oS(yt,a,y,ft,E,rt,!1),ot=Pu(yt,ft.x,ft.y)),!yt.abort&&ot<jf&&Pu(yt,ft.x,ft.y)!==Ah?(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?ae.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)):ae.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)&&(ae.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)):ae.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=yt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),wt!==null&&(E===0||E===180?this.yf(z.x,wt.y):this.yf(wt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Mt.free(st),Mt.free(ut)}},gn.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||!mf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=vf(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=Pu(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>qd&&Pu(y,ut,ft)!==st-1&&(Pu(y,x-rt,E)===st-1?(b=180,ut=x-rt,ft=E):Pu(y,x+rt,E)===st-1?(b=0,ut=x+rt,ft=E):Pu(y,x,E-ot)===st-1?(b=270,ut=x,ft=E-ot):Pu(y,x,E+ot)===st-1&&(b=90,ut=x,ft=E+ot));st>qd&&Pu(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>qd&&(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>qd&&(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),Pu(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),Pu(y,tt,ut)===st-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}gn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=On(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=On(y,a,E.x,E.y,x.x,x.y);E=x,rt<b&&(z=tt,b=rt)}return z},gn.prototype.qc=function(){this.lk=!1,this.v()},gn.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 Yi&&(b.ua=this.ua)}}},gn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Qd(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===Gs&&3<=y&&!ae.$(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||Qd(this)){if(a.type=dn.o,rt=F1(a),this.computeShortLength(!0)!==0&&(b=Nc(this,b,!0,z)),Tf(rt,b.x,b.y,!1),tt===Gs&&3<=y&&!ae.$(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=Nc(this,b,!1,z)),xh(rt,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Mt.allocAt(E,ot),x=Mt.alloc(),x.assign(this.i(1)),z=Mt.allocAt(E,ot),b=Mt.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,wt=this.i(Jv(this,st,ft,!1));if((!ae.$(mt.x,yt.x)||!ae.$(yt.x,wt.x))&&(!ae.$(mt.y,yt.y)||!ae.$(yt.y,wt.y))){var bt=ut;isNaN(bt)&&(bt=this.smoothness/3);var Gt=mt.x;mt=mt.y;var It=yt.x;yt=yt.y;var Xt=wt.x;wt=wt.y;var Qt=bt*Um(Gt,mt,It,yt);bt*=Um(It,yt,Xt,wt),ae.$(mt,yt)&&ae.$(It,Xt)&&(It>Gt?wt>yt?(z.x=It-Qt,z.y=yt-Qt,b.x=It+bt,b.y=yt+bt):(z.x=It-Qt,z.y=yt+Qt,b.x=It+bt,b.y=yt-bt):wt>yt?(z.x=It+Qt,z.y=yt-Qt,b.x=It-bt,b.y=yt+bt):(z.x=It+Qt,z.y=yt+Qt,b.x=It-bt,b.y=yt-bt)),ae.$(Gt,It)&&ae.$(yt,wt)&&(yt>mt?(Xt>It?(z.x=It-Qt,z.y=yt-Qt,b.x=It+bt):(z.x=It+Qt,z.y=yt-Qt,b.x=It-bt),b.y=yt+bt):(Xt>It?(z.x=It-Qt,z.y=yt+Qt,b.x=It+bt):(z.x=It+Qt,z.y=yt+Qt,b.x=It-bt),b.y=yt-bt)),(ae.$(Gt,It)&&ae.$(It,Xt)||ae.$(mt,yt)&&ae.$(yt,wt))&&(Gt=.5*(Gt+Xt),mt=.5*(mt+wt),z.x=Gt,z.y=mt,b.x=Gt,b.y=mt),(ft===1||ft===2&&ae.$(tt.x,this.i(0).x)&&ae.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+st.x),x.y=.5*(tt.y+st.y)),xh(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=Nc(this,ut.copy(),!1,An)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),xh(rt,b.x-E,b.y-ot,st-E,tt-ot,ut.x-E,ut.y-ot),Mt.free(y),Mt.free(x),Mt.free(z),Mt.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=Nc(this,tt.copy(),!1,An)),xh(rt,z.x-E,z.y-ot,b.x-E,b.y-ot,tt.x-E,tt.y-ot);else{for(z=Mt.alloc(),z.assign(this.i(0)),b=Mt.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=Nc(this,ut.copy(),!1,An)),Tc(this,rt,-E,-ot,z,ut,x);else if(st===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),Tc(this,rt,-E,-ot,z,ut,x),z.assign(ut);break}if(st=Jv(this,ut,ft+1,ft<y-3),ft=-E,Gt=-ot,mt=ut,It=this.i(st),bt=x,ae.B(z.y,mt.y)&&ae.B(mt.x,It.x))if(wt=Math.min(tt,Math.abs(mt.x-b.x)/2),wt=Qt=Math.min(wt,Math.abs(It.y-mt.y)/2),ae.B(wt,0))Tc(this,rt,ft,Gt,z,mt,bt),z.assign(mt);else{var qt=mt.x,re=mt.y;yt=qt,Xt=re,mt.x>z.x?qt=mt.x-wt:qt=mt.x+wt,It.y>mt.y?Xt=mt.y+Qt:Xt=mt.y-Qt,It=Mt.allocAt(qt,re),Tc(this,rt,ft,Gt,z,It,bt),Mt.free(It),Im(rt,mt.x+ft,mt.y+Gt,yt+ft,Xt+Gt),z.h(yt,Xt)}else ae.B(z.x,mt.x)&&ae.B(mt.y,It.y)?(wt=Math.min(tt,Math.abs(mt.y-b.y)/2),wt=Qt=Math.min(wt,Math.abs(It.x-mt.x)/2),ae.B(Qt,0)?(Tc(this,rt,ft,Gt,z,mt,bt),z.assign(mt)):(qt=mt.x,re=mt.y,yt=qt,Xt=re,mt.y>z.y?re=mt.y-wt:re=mt.y+wt,It.x>mt.x?yt=mt.x+Qt:yt=mt.x-Qt,It=Mt.allocAt(qt,re),Tc(this,rt,ft,Gt,z,It,bt),Mt.free(It),Im(rt,mt.x+ft,mt.y+Gt,yt+ft,Xt+Gt),z.h(yt,Xt))):(Tc(this,rt,ft,Gt,z,mt,bt),z.assign(mt));b.assign(ut),ft=st}Mt.free(z)}Rm=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=ot,this.computeShortLength(!0)!==0&&(b=Nc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=Nc(this,rt,!1,z)),a.type=dn.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function Um(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),ae.$(a,0)?y:ae.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Nc(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=Um(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=Um(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;ae.$(y.x,z.x)&&ae.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!ae.$(y.x,z.x)&&!ae.$(y.y,z.y))return x-1;for(var tt=z;ae.$(y.x,z.x)&&ae.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||ae.$(y.y,z.y)&&ae.$(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}gn.prototype.computeJumpLength=function(){return 10};function Tc(a,y,x,E,b,z,tt){if(!tt&&Qd(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],st=0;if(a.isVisible()&&(st=Ax(a,b,z,ot)),0<st){if(ae.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 wt=z.y+E;a.curve===Lh?Tf(y,yt,wt,!1):xh(y,mt,ft,yt,ft,yt,wt)}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===Lh?Tf(y,ft,yt,!1):xh(y,mt,ut,ft,ut,ft,yt)}else if(ae.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,wt=z.x+x,ft+=E,a.curve===Lh?Tf(y,wt,ft,!1):xh(y,yt,mt,yt,ft,wt,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===Lh?Tf(y,yt,ut,!1):xh(y,ft,mt,ft,ut,yt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Ax(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 gn){if(ot===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length;if(ot.isVisible()&&Qd(ot)){var st=ot.routeBounds;st.w()&&a.routeBounds.Yc(st)&&!a.usesSamePort(ot)&&(st=ot.path,st!==null&&st.Ed()&&Ex(y,x,E,ot))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Ex(a,y,x,E){for(var b=ae.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Mt.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,wt=tt.x;tt=tt.y;var bt=st.x,Gt=st.y;if(ae.B(ut,mt)){if(!ae.B(ft,yt)&&ae.B(tt,Gt)&&Math.min(ft,yt)<tt&&Math.max(ft,yt)>tt&&Math.min(wt,bt)<ut&&Math.max(wt,bt)>ut&&!ae.B(wt,bt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(ae.B(ft,yt)&&ae.B(wt,bt)&&Math.min(ut,mt)<wt&&Math.max(ut,mt)>wt&&Math.min(tt,Gt)<ft&&Math.max(tt,Gt)>ft&&!ae.B(tt,Gt)){rt.x=wt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(b?x.push(rt.x):x.push(rt.y)),tt=st}Mt.free(rt)}function Qd(a){return a=a.curve,a===Rf||a===Lh}function Ym(a,y){(y||Qd(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()))}gn.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 gn&&(ot===this?z=!0:z&&tS(this,ot,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)rt=z[tt],rt instanceof gn&&tS(this,rt,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Qd(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}gn.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},gn.prototype.isVisible=function(){if(!mi.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},gn.prototype.Zb=function(a){if(mi.prototype.Zb.call(this,a),a&&Ym(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},gn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?tp:this.qk};function _g(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=H1(y,x,E,b),z===null&&(z=new _m(y,E,x,b),G1(y,z),G1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function $g(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&($n(y.links,a),y.Sl()))}gn.prototype.ph=function(){return!0},ce.Object.defineProperties(gn.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&&Gm(y,this,x),$g(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&&Wm(a,this,b),_g(this),this.C(1)),this.g("fromNode",y,a),Of(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&bs(x),$g(this),this.ff=a;var E=this.fromPort;E!==null&&bs(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))),_g(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&&Gm(y,this,x),$g(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&&Wm(a,this,b),_g(this),this.C(1)),this.g("toNode",y,a),Of(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&bs(x),$g(this),this.vf=a;var E=this.toPort;E!==null&&bs(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))),_g(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:Yo},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&&bs(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&&wn(a,">= 0",gn,"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:Yo},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&&bs(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&&wn(a,">= 0",gn,"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?tr: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&&qg(this.fromNode),this.toNode!==null&&qg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Yi?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()===Gs&&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),ae.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);ae.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 Mt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Zm(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);ae.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):ae.$(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 tn,E=0;E<a.length/2;E++)b=new Mt(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(!ke(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new tn,E=0;E<a.length;E++)b=a[E],x.add(new Mt(b.x,b.y).freeze())}}else if(a instanceof tn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ht("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Zm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&sf(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||!If(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!If(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(),Ym(this,y===Lh||y===Rf||a===Lh||a===Rf),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(),Ym(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)}}}),gn.prototype.invalidateOtherJumpOvers=gn.prototype.Xo,gn.prototype.findClosestSegment=gn.prototype.ez,gn.prototype.updateRoute=gn.prototype.vg,gn.prototype.invalidateRoute=gn.prototype.bb,gn.prototype.rollbackRoute=gn.prototype.rv,gn.prototype.commitRoute=gn.prototype.zf,gn.prototype.startRoute=gn.prototype.uh,gn.prototype.clearPoints=gn.prototype.Fj,gn.prototype.removePoint=gn.prototype.pv,gn.prototype.addPointAt=gn.prototype.yf,gn.prototype.addPoint=gn.prototype.ne,gn.prototype.insertPointAt=gn.prototype.m,gn.prototype.insertPoint=gn.prototype.Kz,gn.prototype.setPointAt=gn.prototype.L,gn.prototype.setPoint=gn.prototype.dd,gn.prototype.getPoint=gn.prototype.i,gn.prototype.getOtherPort=gn.prototype.Cz,gn.prototype.getOtherNode=gn.prototype.To;var Oc=null,Ic=null,Qv=new Ue(gn,"Normal",1),bx=new Ue(gn,"Orthogonal",2),kx=new Ue(gn,"AvoidsNodes",6),eS=new Ue(gn,"AvoidsNodesStraight",7),_a=new Ue(gn,"None",0),Gs=new Ue(gn,"Bezier",9),Lh=new Ue(gn,"JumpGap",10),Rf=new Ue(gn,"JumpOver",11),tp=new Ue(gn,"End",17),Xm=new Ue(gn,"Scale",18),Jm=new Ue(gn,"Stretch",19),ep=new Ue(gn,"OrientAlong",21),np=new Ue(gn,"OrientPlus90",22),ip=new Ue(gn,"OrientMinus90",23),qv=new Ue(gn,"OrientOpposite",24),Qm=new Ue(gn,"OrientUpright",25),rp=new Ue(gn,"OrientPlus90Upright",26),op=new Ue(gn,"OrientMinus90Upright",27),qm=new Ue(gn,"OrientUpright45",28),nS=16,iS=14,ap=8;gn.className="Link",gn.Normal=Qv,gn.Orthogonal=bx,gn.AvoidsNodes=kx,gn.AvoidsNodesStraight=eS,gn.None=_a,gn.Bezier=Gs,gn.JumpGap=Lh,gn.JumpOver=Rf,gn.End=tp,gn.Scale=Xm,gn.Stretch=Jm,gn.OrientAlong=ep,gn.OrientPlus90=np,gn.OrientMinus90=ip,gn.OrientOpposite=qv,gn.OrientUpright=Qm,gn.OrientPlus90Upright=rp,gn.OrientMinus90Upright=op,gn.OrientUpright45=qm,gn.EndSegmentStep=8,gn.CurvinessStart=nS,gn.SpacingMin=iS,gn.OrthoShortCut=ap;function _m(a,y,x,E){ki(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_m.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},_m.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))}},_m.className="LinkBundle";function sp(a){ki(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}sp.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 zf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Pu(a,y,x){return zf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function rS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=qd&&(x[E]=_v)}sp.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]===Ah)return!1}return!0};function Cu(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>=qd&&ft<jf)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)Cu(a,y,x,1,!b,z,tt,rt,ot),Cu(a,y,x,-1,!b,z,tt,rt,ot);else for(x+=E;x>st;x+=E)Cu(a,y,x,1,!b,z,tt,rt,ot),Cu(a,y,x,-1,!b,z,tt,rt,ot);else if(0<E)for(y+=E;y<st;y+=E)Cu(a,y,x,1,!b,z,tt,rt,ot),Cu(a,y,x,-1,!b,z,tt,rt,ot);else for(y+=E;y>st;y+=E)Cu(a,y,x,1,!b,z,tt,rt,ot),Cu(a,y,x,-1,!b,z,tt,rt,ot)}}function $m(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=Ah,ut=qd;for(a.ac[y][x]=ut;st===Ah&&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 t0(a,y,x,E,b,z,tt,rt,ot){y|=0,x|=0;var st=Ah,ut=jf;for(a.ac[y][x]=ut;st===Ah&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function oS(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(zf(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var st=E.x,ut=E.y;if(zf(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]===Ah?($m(a,rt,ot,yt,x,z,y,ft,mt),$m(a,rt,ot,1,!x,z,y,ft,mt),$m(a,rt,ot,-1,!x,z,y,ft,mt)):$m(a,rt,ot,yt,x,rt,ot,rt,ot),E[st][ut]===Ah?(t0(a,st,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,mt),t0(a,st,ut,1,!(b===90||b===270),z,y,ft,mt),t0(a,st,ut,-1,!(b===90||b===270),z,y,ft,mt)):t0(a,st,ut,yt,x,st,ut,st,ut),x=Dn(),tt&&aS(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=qd,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 Cu(a,rt,ot,1,!1,z,y,ft,mt),Cu(a,rt,ot,-1,!1,z,y,ft,mt),Cu(a,rt,ot,1,!0,z,y,ft,mt),Cu(a,rt,ot,-1,!0,z,y,ft,mt);Un(x)}}}}function aS(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),aS(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++}}}ce.Object.defineProperties(sp.prototype,{bounds:{get:function(){return new Ce(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 Ah=0,qd=1,jf=999999,_v=jf+1,$v=jf+2;sp.className="PositionArray";function Rc(){ki(this),this.port=this.node=null,this.pe=[],this.ap=!1}Rc.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 Mx(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}Rc.prototype.Sl=function(){this.pe.length=0};function sS(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 Oi?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(ur,Mt.alloc()),ot=a.port.ga(zr,Mt.alloc());for(b=Ce.allocAt(rt.x,rt.y,0,0),b.Ye(ot),Mt.free(rt),Mt.free(ot),rt=Mt.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=Mx(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(Mt.free(rt),a.pe.sort(Rc.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=Mt.alloc(),ot=Mt.alloc(),tt=Mt.alloc(),st=Mt.alloc(),ft.ga(ur,rt),ft.ga(Tr,ot),ft.ga(zr,tt),ft.ga(Wo,st),yt=mt=ut=ft=0,E===Zv)for(var wt=0;wt<z.length;wt++){var bt=z[wt];if(bt!==null){var Gt=bt.link.computeThickness();switch(bt.Nc){case 8:mt+=Gt;break;case 2:yt+=Gt;break;case 1:ft+=Gt;break;default:case 4:ut+=Gt}}}var It=wt=0,Xt=1,Qt=bt=0;for(Gt=0;Gt<z.length;Gt++){var qt=z[Gt];if(qt!==null){if(wt!==qt.Nc){switch(wt=qt.Nc,wt){case 8:var re=tt;It=st;break;case 2:re=st,It=rt;break;case 1:re=rt,It=ot;break;default:case 4:re=ot,It=tt}switch(bt=It.x-re.x,Qt=It.y-re.y,wt){case 8:mt>Math.abs(bt)?(Xt=Math.abs(bt)/mt,mt=Math.abs(bt)):Xt=1;break;case 2:yt>Math.abs(Qt)?(Xt=Math.abs(Qt)/yt,yt=Math.abs(Qt)):Xt=1;break;case 1:ft>Math.abs(bt)?(Xt=Math.abs(bt)/ft,ft=Math.abs(bt)):Xt=1;break;default:case 4:ut>Math.abs(Qt)?(Xt=Math.abs(Qt)/ut,ut=Math.abs(Qt)):Xt=1}It=0}var ye=qt.Zo;if(E===Zv){switch(qt=qt.link.computeThickness(),qt*=Xt,ye.set(re),wt){case 8:ye.x=re.x+bt/2+mt/2-It-qt/2;break;case 2:ye.y=re.y+Qt/2+yt/2-It-qt/2;break;case 1:ye.x=re.x+bt/2-ft/2+It+qt/2;break;default:case 4:ye.y=re.y+Qt/2-ut/2+It+qt/2}It+=qt}else{var En=.5;E===Hm&&(En=(qt.Uo+1)/(qt.Gl+1)),ye.x=re.x+bt*En,ye.y=re.y+Qt*En}}}for(Mt.free(rt),Mt.free(ot),Mt.free(tt),Mt.free(st),re=a.pe,z=0;z<re.length;z++)E=re[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,Ce.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}Rc.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},Rc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ki,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)},Rc.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Mt,this.Gl=this.Uo=0,this.Zo=new Mt,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 lo(a){ki(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Mt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}lo.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},lo.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},lo.prototype.qb=function(){},lo.prototype.toString=function(){var a=Wn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},lo.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())}}},lo.prototype.createNetwork=function(){return new Xr(this)},lo.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Se?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Oi?y.lg(a.memberParts):y.lg(a.iterator),y},lo.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")}},lo.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()}},lo.prototype.doLayout=function(a){var y=new en;a instanceof Se?(od(this,y,a.nodes,!0,this.rh,!0,!1,!0),od(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Oi?od(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},lo.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;lp(rt);var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(E,b),rt instanceof Oi&&(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++}},lo.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 gn)&&(lp(rt),this.rh(rt))){var ot=rt.measuredBounds,st=ot.width;ot=ot.height,rt.moveTo(x,E),rt instanceof Oi&&(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++}}},lo.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Oi&&a.rh)};function od(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 Fn?ot.isLinkLabel||(ot instanceof Oi&&ot.layout===null?od(a,y,ot.memberParts,!1,b,z,tt,rt):(lp(ot),y.add(ot))):tt&&ot instanceof gn?y.add(ot):!rt||!ot.Zc()||ot instanceof Fn||(lp(ot),y.add(ot)))}}function lp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}lo.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Ce),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},lo.prototype.ex=function(a){var y=new en;return a instanceof Se?(od(this,y,a.nodes,!0,null,!0,!0,!0),od(this,y,a.links,!0,null,!0,!0,!0),od(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Oi?od(this,y,a.memberParts,!1,null,!0,!0,!0):od(this,y,a.iterator,!1,null,!0,!0,!0),y},lo.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(ur),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},ce.Object.defineProperties(lo.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())}}}),lo.prototype.collectParts=lo.prototype.ex,lo.prototype.getLayoutBounds=lo.prototype.ni,lo.prototype.invalidateLayout=lo.prototype.C,lo.className="Layout";function Xr(a){ki(this),this.Sc=a,this.wf=new en,this.ye=new en,this.Es=new Pe,this.zs=new Pe}Xr.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new en,this.ye=new en,this.Es=new Pe,this.zs=new Pe},Xr.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},Xr.prototype.createVertex=function(){return new Ko(this)},Xr.prototype.createEdge=function(){return new ks(this)},Xr.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 Fn)return!tt.isLinkLabel;if(tt instanceof gn){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 Fn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Oi&&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 gn&&(!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))}}},Xr.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},Ct=Xr.prototype,Ct.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ct.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},Ct.Iu=function(a){if(a!==null&&lS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function lS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ct.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ct.ki=function(a){return a===null?null:this.Es.I(a)},Ct.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}}Ct.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},Ct.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))}Ct.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ct.Lo=function(a){return a===null?null:this.zs.I(a)},Ct.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},Ct.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))}},Ct.Ko=function(){for(var a=Dn(),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]);Un(a)},Xr.prototype.deleteArtificialVertexes=function(){for(var a=Dn(),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=Dn(),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]);Un(a),Un(y)};function Fx(a){for(var y=Dn(),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]);Un(y)}Xr.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new tn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){lS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ny(a,b),ey(y,b),iy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}Xr.prototype.dz=function(){for(var a=new en,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},ce.Object.defineProperties(Xr.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}}}),Xr.prototype.findAllParts=Xr.prototype.dz,Xr.prototype.splitIntoSubNetworks=Xr.prototype.Zx,Xr.prototype.deleteSelfEdges=Xr.prototype.Ko,Xr.prototype.reverseEdge=Xr.prototype.gm,Xr.prototype.linkVertexes=Xr.prototype.Zj,Xr.prototype.findEdge=Xr.prototype.Lo,Xr.prototype.deleteLink=Xr.prototype.Yy,Xr.prototype.deleteEdge=Xr.prototype.Mj,Xr.prototype.addLink=Xr.prototype.Dy,Xr.prototype.addEdge=Xr.prototype.Bo,Xr.prototype.findVertex=Xr.prototype.ki,Xr.prototype.deleteNode=Xr.prototype.Zy,Xr.prototype.deleteVertex=Xr.prototype.Iu,Xr.prototype.addNode=Xr.prototype.Bl,Xr.prototype.addVertex=Xr.prototype.dh,Xr.prototype.addParts=Xr.prototype.lg,Xr.className="LayoutNetwork";function Ko(a){ki(this),this.ob=a,this.j=new Ce(0,0,10,10).freeze(),this.o=new Mt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn}Ko.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new tn,this.mg=new tn},Ko.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+yr(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},Ko.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;ke(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 Oi)){x=Ce.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Ui);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),Ce.free(x);return}Ce.free(x)}a.moveTo(y.x,y.y)}},Ko.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ko.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ko.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ko.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}ce.Object.defineProperties(Ko.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=Ce.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),Ce.free(x),!(a instanceof Oi)&&(a=a.locationObject.ga(Ui),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new en,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new en,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new tn,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}}}),Ko.prototype.deleteDestinationEdge=Ko.prototype.Jl,Ko.prototype.addDestinationEdge=Ko.prototype.zl,Ko.prototype.deleteSourceEdge=Ko.prototype.Kl,Ko.prototype.addSourceEdge=Ko.prototype.Cl,Ko.className="LayoutVertex",Ko.standardComparer=ry,Ko.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 ks(a){ki(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ks.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ks.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+yr(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},ks.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ks.prototype.commit=function(){},ks.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},ce.Object.defineProperties(ks.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)}}}),ks.prototype.getOtherVertex=ks.prototype.Ax,ks.className="LayoutEdge";function ha(a){lo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ve(NaN,NaN).freeze(),this.tf=new Ve(10,10).freeze(),this.Jb=up,this.Rb=n0,this.nd=hp,this.hd=uS,a&&Object.assign(this,a)}ue(ha,lo),ha.prototype.cloneProtected=function(a){lo.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},ha.prototype.qb=function(a){a.classType===ha?a===hp||a===r0||a===oy||a===i0?this.sorting=a:a===n0||a===Il?this.arrangement=a:a===up||a===e0?this.alignment=a:Ht("Unknown enum value: "+a):lo.prototype.qb.call(this,a)},ha.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 Oi)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 i0:b.reverse();break;case hp:b.sort(this.comparer);break;case r0: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 e0:var rt=y,ot=x,st=Ce.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 wt=yt=this.arrangementOrigin.x,bt=this.arrangementOrigin.y,Gt=0,It=0,Xt=0;Xt<b.length;Xt++){var Qt=b[Xt],qt=this.ni(Qt,st),re=Math.ceil((qt.width+rt)/ut)*ut,ye=Math.ceil((qt.height+ot)/ft)*ft;switch(mt){case Il:var En=Math.abs(wt-qt.width);break;default:En=wt+qt.width}switch((0<z&&Gt>z-1||0<tt&&0<Gt&&En-yt>tt)&&(E.push(new Ce(0,bt,tt+rt,It)),Gt=0,wt=yt,bt+=It,It=0),It=Math.max(It,ye),mt){case Il:qt=-qt.width;break;default:qt=0}switch(Qt.moveTo(wt+qt,bt),mt){case Il:wt-=re;break;default:wt+=re}Gt++}E.push(new Ce(0,bt,tt+rt,It)),Ce.free(st);break;case up:for(ot=tt,ut=z,ft=y,mt=x,tt=Ce.alloc(),yt=Math.max(this.cellSize.width,1),z=bt=st=0,rt=Mt.alloc(),wt=0;wt<b.length;wt++)It=b[wt],Gt=this.ni(It,tt),It=wh(It,It.locationObject,It.locationSpot,rt),st=Math.max(st,It.x),bt=Math.max(bt,Gt.width-It.x),z=Math.max(z,It.y);switch(wt=this.arrangement,wt){case Il:st+=ft;break;default:bt+=ft}yt=isFinite(yt)?Math.max(yt+ft,1):Math.max(st+bt,1);var qn=It=this.arrangementOrigin.x;for(Xt=this.arrangementOrigin.y,bt=0,ot>=st&&(ot-=st),st=Qt=0,re=Math.max(this.cellSize.height,1),qt=z=0,ye=!0,Gt=Mt.alloc(),En=0;En<b.length;En++){var Kn=b[En],fn=this.ni(Kn,tt),Ze=wh(Kn,Kn.locationObject,Kn.locationSpot,rt);if(0<bt)switch(wt){case Il:qn=(qn-It-(fn.width-Ze.x))/yt,qn=ae.$(Math.round(qn),qn)?Math.round(qn):Math.floor(qn),qn=qn*yt+It;break;default:qn=(qn-It+Ze.x)/yt,qn=ae.$(Math.round(qn),qn)?Math.round(qn):Math.ceil(qn),qn=qn*yt+It}else switch(wt){case Il:Qt=qn+Ze.x+fn.width;break;default:Qt=qn-Ze.x}switch(wt){case Il:var Ti=-(qn+Ze.x)+Qt;break;default:Ti=qn+fn.width-Ze.x-Qt}if(0<ut&&bt>ut-1||0<ot&&0<bt&&Ti>ot){for(E.push(new Ce(0,ye?Xt-z:Xt,ot+ft,qt+z+mt)),qn=0;qn<bt&&En!==bt;qn++){Ti=b[En-bt+qn];var Bi=wh(Ti,Ti.locationObject,Ti.locationSpot,Gt);Ti.moveTo(Ti.position.x,Ti.position.y+z-Bi.y)}qt+=mt,Xt=ye?Xt+qt:Xt+(qt+z),bt=qt=z=0,qn=It,ye=!1}switch(qn===It&&(st=wt===Il?Math.max(st,fn.width-Ze.x):Math.min(st,-Ze.x)),z=Math.max(z,Ze.y),qt=Math.max(qt,fn.height-Ze.y),isFinite(re)&&(qt=Math.max(qt,Math.max(fn.height,re)-Ze.y)),ye?Kn.moveTo(qn-Ze.x,Xt-Ze.y):Kn.moveTo(qn-Ze.x,Xt),wt){case Il:qn-=Ze.x+ft;break;default:qn+=fn.width-Ze.x+ft}bt++}if(E.push(new Ce(0,Xt,ot+ft,(ye?qt:qt+z)+mt)),b.length!==bt)for(ot=0;ot<bt;ot++)ut=b[b.length-bt+ot],ft=wh(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Mt.free(rt),Mt.free(Gt),wt===Il)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);Ce.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===Il?this.commitLayers(E,new Mt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Mt(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ha.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}ce.Object.defineProperties(ha.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!==up&&a!==e0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==n0&&a!==Il||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==i0&&a!==hp&&a!==r0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var e0=new Ue(ha,"Position",0),up=new Ue(ha,"Location",1),n0=new Ue(ha,"LeftToRight",2),Il=new Ue(ha,"RightToLeft",3),oy=new Ue(ha,"Forward",4),i0=new Ue(ha,"Reverse",5),hp=new Ue(ha,"Ascending",6),r0=new Ue(ha,"Descending",7);ha.className="GridLayout",ha.standardComparer=uS,ha.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},ha.Position=e0,ha.Location=up,ha.LeftToRight=n0,ha.RightToLeft=Il,ha.Forward=oy,ha.Reverse=i0,ha.Ascending=hp,ha.Descending=r0;function Ir(){this.On=new en,this.Dn=new en,this.Pa=new en,this.cf=new Pe,this.bf=new Pe,this.aj=new Pe,this.H=null,this.tp=!1}Ct=Ir.prototype,Ct.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ct.Xe=function(a){this.H=a},Ct.oi=function(a){if(a instanceof Fn){if(this.On.add(a),a instanceof Oi){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 gn?this.Dn.add(a):a instanceof wr||this.Pa.add(a);y=a.data,y===null||a instanceof wr||(a instanceof gn?this.bf.add(y,a):this.cf.add(y,a))},Ct.pc=function(a){if(a.Ej(),a instanceof Fn){if(this.On.remove(a),a instanceof Oi){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 gn?this.Dn.remove(a):a instanceof wr||this.Pa.remove(a);y=a.data,y===null||a instanceof wr||(a instanceof gn?this.bf.remove(y):this.cf.remove(y))},Ct.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 Oi)&&Ht('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 Oi||Ht('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 gn||Ht('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Dn(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Dn(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Dn(),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]);Un(y),Un(x),Un(a)}},Ir.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ir.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&hS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&gf(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=dS(a,y,E);if(b!==null&&(cl(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)}}Ir.prototype.insertLink=function(){return null},Ir.prototype.resolveReferencesForData=function(){},Ir.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(gS||(gS=!0,Bn('No Group template found for category "'+x+'"'),Bn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(fS||(fS=!0,Bn('No Node template found for category "'+x+'"'),Bn(" Using default node template")),y=a.ny))),y}Ir.prototype.getLinkCategoryForData=function(){return""},Ir.prototype.setLinkCategoryForData=function(){},Ir.prototype.setFromNodeForLink=function(){},Ir.prototype.setToNodeForLink=function(){},Ir.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(pS||(pS=!0,Bn('No Link template found for category "'+a+'"'),Bn(" Using default link template")),x=y.my)),x},Ir.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ir.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ir.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Lg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ir.prototype.unresolveReferencesForPart=function(){},Ir.prototype.removeDataForLink=function(){},Ir.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ir.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Fn?a:null)},Ir.prototype.findLinkForKey=function(){return null},Ct=Ir.prototype,Ct.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ct.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Fn?a:null)},Ct.Kc=function(a){return a===null?null:this.bf.I(a)},Ct.ms=function(a){for(var y=0;y<arguments.length;++y);y=new en;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(ke(tt)&&ay(this,b,tt)){y.add(E);break}}}return y.iterator},Ct.ls=function(a){for(var y=0;y<arguments.length;++y);y=new en;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(ke(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(vn(z)){if(!vn(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var rt=z[tt];if(rt!==void 0&&!cS(a,b[tt],rt))return!1}}else if(!cS(a,b,z))return!1}return!0}function cS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(ke(y)&&ke(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Ir.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===io){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===wo){var tt=a.newValue;E==="nodeDataArray"&&ke(tt)&&hS(this,tt),y.isModified=!0}else if(x===Ao){var rt=a.oldValue;E==="nodeDataArray"&&ke(rt)&&this.ip(rt),y.isModified=!0}else x===Aa&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===io){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===wo||x===Ao){var ut=a.change===wo,ft=ut?a.newParam:a.oldParam,mt=ut?a.newValue:a.oldValue,yt=this.aj.I(a.object);if(Array.isArray(yt))for(a=0;a<yt.length;a++){var wt=yt[a];if(ut)Cm(wt,mt,ft,!0);else if(!(0>ft)){var bt=ft+Vg(wt);wt.pc(bt,!0),xv(wt,bt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ir.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)},Ir.prototype.rp=function(){for(var a=this.H.model,y=new en,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),b.forEach(function(tt){LS(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&CS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Ir.prototype.refreshDataBoundLinks=function(){},Ir.prototype.updateRelationshipsFromData=function(){},Ir.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=Dn()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Un(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(vn(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){Ud(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Mg(x,tt[ot])});var E=y.Hh;if(vn(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}}}}Ir.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Pe;if(vn(a))for(var b=0;b<a.length;b++)o0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)o0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new en;for(var z=new Pe,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof gn)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof Fn&&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 Pe;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 o0(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 mi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Fn){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 Oi&&z instanceof Oi)for(y=y.memberParts;y.next();)tt=o0(a,y.value,x,E,b),tt instanceof gn||tt===null||(tt.containingGroup=z)}else if(y instanceof gn&&z instanceof gn)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=o0(a,y.value,x,E,b),tt!==null&&tt instanceof Fn&&(tt.labeledLink=z);return z}Ir.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof gn||(E=b.copyNodeData(E),ke(E)&&(b.xf(E),x=y.Lc(E)))}else cl(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 gn||(b=y.copyNodeData(E)),ke(b)&&(x.data=b)));return x},ce.Object.defineProperties(Ir.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}}}),Ir.prototype.updateAllRelationshipsFromData=Ir.prototype.rp,Ir.prototype.findLinksByExample=Ir.prototype.ls,Ir.prototype.findNodesByExample=Ir.prototype.ms,Ir.prototype.findLinkForData=Ir.prototype.Kc,Ir.prototype.findNodeForData=Ir.prototype.ii,Ir.prototype.findPartForData=Ir.prototype.Lc,Ir.prototype.findNodeForKey=Ir.prototype.Vb,Ir.prototype.removeModeledPart=Ir.prototype.ip,Ir.prototype.removeModeledParts=Ir.prototype.Gs,Ir.prototype.rebuildParts=Ir.prototype.Wd;var fS=!1,gS=!1,pS=!1;Ir.className="PartManager";function $o(a){Ir.apply(this,arguments)}ue($o,Ir),$o.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},$o.prototype.addModeledParts=function(a){for(Ir.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Of(a.value);gf(this.diagram,!1)};function mS(a,y){y.forEach(function(x){vS(a,x)}),gf(a.diagram,!1)}function vS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){cl(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=u0(x,y,!0);z!==""&&(b.fromPortId=z),z=Hs(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(b.fromNode=z)),z=u0(x,y,!1),z!==""&&(b.toPortId=z),z=Hs(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(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}}}}$o.prototype.removeAllModeledParts=function(){var a=this.diagram.model;yS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function yS(a,y){y.forEach(function(x){a.ip(x)})}$o.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},$o.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},$o.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},$o.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},$o.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},$o.prototype.findPartForKey=function(a){var y=Ir.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},$o.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},$o.prototype.doModelChanged=function(a){var y=this;if(Ir.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===io){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 wt=a.newValue;if(wt!==void 0){var bt=this.Vb(wt);bt instanceof Oi?yt.containingGroup=bt:yt.containingGroup=null}else yt.containingGroup=null}}else if(b==="linkLabelKeys"){var Gt=this.Kc(a.object);if(Gt!==null){var It=a.oldValue,Xt=a.newValue;Array.isArray(It)&&It.forEach(function(Ze){0<=Xt.indexOf(Ze)||(Ze=y.Vb(Ze),Ze!==null&&(Ze.labeledLink=null))}),Array.isArray(Xt)&&Xt.forEach(function(Ze){Ze=y.Vb(Ze),Ze!==null&&(Ze.labeledLink=Gt)})}}else if(b==="linkCategory"){var Qt=this.Kc(a.object),qt=a.newValue;Qt!==null&&typeof qt=="string"&&(Qt.category=qt)}else b==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(E===wo){var re=a.newValue;if(b==="linkDataArray"&&typeof re=="object"&&re!==null)vS(this,re);else if(b==="linkLabelKeys"&&sd(re)){var ye=this.Kc(a.object),En=this.Vb(re);ye!==null&&En!==null&&(En.labeledLink=ye)}x.isModified=!0}else if(E===Ao){var qn=a.oldValue;if(b==="linkDataArray"&&typeof qn=="object"&&qn!==null)this.ip(qn);else if(b==="linkLabelKeys"&&sd(qn)){var Kn=this.Vb(qn);Kn!==null&&(Kn.labeledLink=null)}x.isModified=!0}}else if(E===io){var fn=a.propertyName;a.object!==x.model||fn!=="linkFromKeyProperty"&&fn!=="linkToKeyProperty"&&fn!=="linkFromPortIdProperty"&&fn!=="linkToPortIdProperty"&&fn!=="linkLabelKeysProperty"&&fn!=="nodeIsGroupProperty"&&fn!=="nodeGroupKeyProperty"&&fn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},$o.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new en,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){FS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&MS(y,z,!1)})},$o.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 gn){var b=Hs(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Hs(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new en().addAll(y);var tt=new en;a.labelNodes.each(function(rt){rt.data!==null&&(rt=E.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(b),b=b.copy(),b.hp(tt),(0<y.count||0<b.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),b.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof wr)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Oi)&&(a.containingGroup=y)}}},$o.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=dp(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 Oi&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof Fn&&(Hs(y,tt,!0)===x&&(z.link.fromNode=b),Hs(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}}zl(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Oi&&(b.containingGroup=a))}},$o.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)Rl(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&Rl(y,x,E.data)),a instanceof Oi)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&Rl(y,x,E)}}},$o.prototype.copyPartData=function(a,y){var x=Ir.prototype.copyPartData.call(this,a,y);if(a instanceof gn)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},$o.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 gn){if(cl(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 Fn&&(cl(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&&Gf(z,E,z.wa(a.data),!0),Hf(z,E,rt,!0),x!==null&&Gf(z,E,z.wa(x.data),!1),Hf(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof Fn||(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},$o.prototype.findLinkForKey=$o.prototype.findLinkForKey,$o.prototype.findPartForKey=$o.prototype.findPartForKey,$o.prototype.removeAllModeledParts=$o.prototype.removeAllModeledParts,$o.prototype.addModeledParts=$o.prototype.addModeledParts,$o.prototype.addAllModeledParts=$o.prototype.addAllModeledParts,$o.className="GraphLinksPartManager";function $s(){Ir.apply(this,arguments),this.Sg=null}ue($s,Ir);function a0(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||!Za(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(cl(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}}}$s.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},$s.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},$s.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}},$s.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))},$s.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},$s.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},$s.prototype.doModelChanged=function(a){if(Ir.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===io){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:a0(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===io){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},$s.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Fn&&(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:a0(this,y,a):E!==null&&Lg(x,E,!1)))}}},$s.prototype.updateDataBindings=function(a,y){Ir.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},$s.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=dp(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 Fn&&y.mh(z)===x&&a0(this,b,this.ii(z))}zl(y,x)}a=y.mh(a),a!==void 0&&b instanceof Fn&&(a=this.Vb(a),a0(this,a,b))}},$s.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){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(Ao,"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)&&Rl(y,x,b)}},$s.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},$s.prototype.findLinkForKey=$s.prototype.findLinkForKey,$s.className="TreePartManager";function si(a,y){this.kl=new en,this.il=new en,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,ki(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Pe,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 Pe,this.Lt=new tn,this.Wg=!1,this.o=null,this.undoManager=new ho,a!==void 0&&(vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}si.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},si.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},si.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},si.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)+":"+bi(b)}}return y},si.prototype.xA=function(a){a.change!==Aa&&Ht("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ho?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},si.prototype.Qv=function(a,y){var x=this,E=!1,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===wo?b.add(ft.newValue):ft.change===Ao&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==io||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 si||x.ri()&&x.Jc(ft.object)||wS(x,ft.object).each(function(mt){z.add(mt)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var 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},si.prototype.cloneDeep=function(a){return Wf(this,a,!0)};function Wf(a,y,x,E,b,z){function tt(ft,mt){rt?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,mt)):(ft=Wr++,E.set(ft,mt),b.set(ft,y))}if(!ke(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new Pe),rt){var ot=E.get(y);if(ot)return ot}else for(b||(b=new Pe),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(Wf(a,y[ut],!1,E,b,z))}else if(y instanceof Mt||y instanceof Ve||y instanceof Ce||y instanceof Hi||y instanceof ei)ot=y.copy(),tt(y,ot);else{if(y instanceof Or||y instanceof dn||y instanceof Ue)return y;if(y instanceof tn)ot=new tn().addAll(Wf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof en)ot=new en().addAll(Wf(a,y.Fa(),!1,E,b,z)),tt(y,ot);else if(y instanceof Pe)ot=new Pe().addAll(Wf(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]=Wf(a,y[ut],!1,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Ct=si.prototype,Ct.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ct.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},Ct.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function SS(a,y){y=y.modelData,ke(y)&&(a.dm(y),a.modelData=y)}Ct.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+ad(this,this.nodeDataArray,!0)},Ct.kv=function(a){SS(this,a),a=a.nodeDataArray,vn(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new en,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new Pe,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===io?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===wo||z===Ao)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function wS(a,y){for(var x=new en,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];s0(a,y,b,b,x)}return x}function s0(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(s0(a,y,tt,E,b))return!0}else if(ke(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(s0(a,y,tt,E,b))return!0}return!1}Ct.Pv=function(a,y){var x=this,E=!1,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===wo?b.add(ut.newValue):ut.change===Ao&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==io||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 si||x.ri()&&x.Jc(ut.object)||wS(x,ut.object).each(function(ft){z.add(ft)})):E=!0)});var ot=this.il;ot.clear(),b.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var 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)+ad(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+ad(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+ad(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Ct.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)&&Ht("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Pe;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)},Ct.$x=function(a,y){a.change!==Aa&&Ht("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ho?(y===void 0&&(y=cp(this,this)),xS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ct.yA=function(a,y){return this.$x(a,y)},Ct.np=function(a){return a===void 0&&(a=cp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ct.toJSON=function(a){return this.np(a)},Ct.Zw=function(a){var y=null;if(typeof a=="string")try{y=$e.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Ht("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ht("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ct.Ky=function(a){return this.Zw(a)},si.constructGraphLinksModel=function(){return new si},Ct=si.prototype,Ct.dm=function(a){if(vn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(ke(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:Ht("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(ke(a)){for(y in a)if(x=a[y],ke(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 tn,E=0;E<x.length/2;E++)b.add(new Mt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Bx(a)}return a},Ct.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()):vn(a)?ad(this,a):ke(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function ad(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new fi;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var tt=y[z];tt!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(tt)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function $a(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Mt)y={class:"go.Point",x:$a(x.x),y:$a(x.y)};else if(x instanceof Ve)y={class:"go.Size",width:$a(x.width),height:$a(x.height)};else if(x instanceof Ce)y={class:"go.Rect",x:$a(x.x),y:$a(x.y),width:$a(x.width),height:$a(x.height)};else if(x instanceof Hi)y={class:"go.Margin",top:$a(x.top),right:$a(x.right),bottom:$a(x.bottom),left:$a(x.left)};else if(x instanceof ei)x.sb()?y={class:"go.Spot",x:$a(x.x),y:$a(x.y),offsetX:$a(x.offsetX),offsetY:$a(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Or){if(y={class:"go.Brush",type:x.type.name},x.type===yh?y.color=x.color:(x.type===Zu||x.type===qs)&&(y.start=x.start,y.end=x.end,x.type===qs&&(x.startRadius!==0&&(y.startRadius=$a(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=$a(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 dn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=$a(x.startX)),x.startY!==0&&(y.startY=$a(x.startY)),x.endX!==0&&(y.endX=$a(x.endX)),x.endY!==0&&(y.endY=$a(x.endY)),x.spot1.D(ur)||(y.spot1=x.spot1),x.spot2.D(zr)||(y.spot2=x.spot2),x.type===dn.o&&(y.path=dn.ia(x))):x instanceof Ue&&(y={class:"go.EnumValue",classType:cp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Lo(y,b);if(!PS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof tn){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 ts(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Bx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Mt(ts(a.x),ts(a.y));else if(y==="Size")x=new Ve(ts(a.width),ts(a.height));else if(y==="Rect")x=new Ce(ts(a.x),ts(a.y),ts(a.width),ts(a.height));else if(y==="Margin")x=new Hi(ts(a.top),ts(a.right),ts(a.bottom),ts(a.left));else if(y==="Spot")typeof a.enum=="string"?x=oo(a.enum):x=new ei(ts(a.x),ts(a.y),ts(a.offsetX),ts(a.offsetY));else if(y==="Brush"){if(x=new Or,x.type=Rn(Or,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ei&&(x.start=a.start),a.end instanceof ei&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=ts(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ts(a.endRadius)),a=a.colorStops,ke(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=dn.parse(a.path):x=new dn,x.type=Rn(dn,a.type),typeof a.startX=="number"&&(x.startX=ts(a.startX)),typeof a.startY=="number"&&(x.startY=ts(a.startY)),typeof a.endX=="number"&&(x.endX=ts(a.endX)),typeof a.endY=="number"&&(x.endY=ts(a.endY)),a.spot1 instanceof ei&&(x.spot1=a.spot1),a.spot2 instanceof ei&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=dy(E),typeof E=="function"&&(x=Rn(E,a.name)));return x}Ct.Pe=function(a){return this.Lt.add(a),this},Ct.ik=function(a){this.Lt.remove(a)},Ct.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)},Ct.cb=function(a,y,x,E,b,z,tt){jo(this,"",a,y,x,E,b,z,tt)},Ct.g=function(a,y,x,E,b){jo(this,"",io,a,this,y,x,E,b)},Ct.Fs=function(a,y,x,E,b,z){jo(this,"",io,y,a,x,E,b,z)};function jo(a,y,x,E,b,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var st=new ao;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)}si.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===io){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)),ro(x,E,b)}else a.change===wo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,ke(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&$n(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Pn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!vn(E)&&a.propertyName&&(E=Lo(a.object,a.propertyName)),vn(E)&&typeof x=="number"&&(a=a.newValue,y?$n(E,x):Pn(E,x,a))):Ht("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ao?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,ke(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Pn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&$n(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!vn(E)&&a.propertyName&&(E=Lo(a.object,a.propertyName)),vn(E)&&typeof x=="number"&&(a=a.oldValue,y?Pn(E,x,a):$n(E,x))):Ht("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Aa&&Ht("unknown ChangedEvent: "+a.toString())},si.prototype.Ea=function(a){return this.undoManager.Ea(a)},si.prototype.eb=function(a){return this.undoManager.eb(a)},si.prototype.Kf=function(){return this.undoManager.Kf()},si.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}},Ct=si.prototype,Ct.La=function(a,y){y===void 0&&(y=""),jo(this,"SourceChanged",Aa,y,a,null,null)},Ct.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Lo(a,y),y!==void 0)){if(sd(y))return y;Ht("Key value for node data "+a+" is not a number or a string: "+y)}}},Ct.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Lo(a,x);E!==y&&this.hc(y)===null&&(ro(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),jo(this,"nodeKey",io,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else ro(a,x,y)}};function sd(a){return typeof a=="number"||typeof a=="string"}Ct.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ct.hc=function(a){return a===null&&Ht("Model.findNodeDataForKey:key must not be null"),a!==void 0&&sd(a)?this.kb.I(a):null},Ct.$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))){ro(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;ro(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ro(a,y,x)}}}}},Ct.xf=function(a){a!==null&&(vr(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&Ht("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Pn(a.Tc,E,y)),jo(a,"nodeDataArray",wo,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Ct.Fy=function(a){if(vn(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)},Ct.cm=function(a){a!==null&&LS(this,a,!0)};function LS(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;$n(a.Tc,E)}jo(a,"nodeDataArray",Ao,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ct.nA=function(a){if(vn(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)},Ct.$z=function(a){if(a!==this.nodeDataArray&&vn(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()}},Ct.jp=function(a,y){y!==void 0&&(a=dp(this,a),a instanceof en&&this.Vf.add(y,a))},Ct.Lv=function(){},Ct.fm=function(){},Ct.em=function(){},Ct.qp=function(){};function Rl(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new en,a.Vf.add(y,E)),E.add(x)}}function zl(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof en&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function dp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof en?a:null)}Ct.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},si.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):l0(this,a,!0),ke(a)&&ki(a),a};function l0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=l0(a,y[x],a.copiesArrayObjects);E.push(b)}return ki(E),E}if(x&&ke(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=Lo(y,E),tt=cp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof si||z instanceof ho||z instanceof Ho||z instanceof ao||(z=l0(a,z,!1)),ro(x,E,z)}return ki(x),x}return y instanceof Mt||y instanceof Ve||y instanceof Ce||y instanceof ei||y instanceof Hi?y.copy():y}si.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!AS&&a instanceof oe&&(AS=!0,Bn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Bn(" Is that really your intent?"));var E=Lo(a,y);E!==x&&(ro(a,y,x),this.Fs(a,y,E,x))},Ct=si.prototype,Ct.set=function(a,y,x){this.setDataProperty(a,y,x)},Ct.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])}},Ct.Ay=function(a,y){this.ts(a,-1,y)},Ct.ts=function(a,y,x){0>y&&(y=a.length),Pn(a,y,x),jo(this,"",wo,"",a,null,x,null,y)},Ct.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ht("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];$n(a,y),jo(this,"",Ao,"",a,x,null,y,null)},Ct.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Ht("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ct.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Lo(a,x);E===void 0&&(E=""),E!==y&&(ro(a,x,y),jo(this,"nodeCategory",io,x,a,E,y))}else ro(a,x,y)}},Ct.lm=function(a,y){this.jm(y,this.Ro(a))},Ct.Tl=function(){return!1},Ct.Wj=function(){return!1},Ct.ri=function(){return!1},Ct.xs=function(){return!1},Ct.Xj=function(){return!1};function hy(){return new si}function cp(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 cp(a,y.constructor);return typeof y}function dy(a){return Al[a]?Al[a]:$e.go!==void 0&&$e.go[a]?$e.go[a]:null}function Lo(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 ro(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){}}ce.Object.defineProperties(si.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===""&&Ht("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ht("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];ke(b)||Ht("Model.nodeDataArray must only contain Objects, not: "+b),vr(b)}for(this.Tc=a,E=new tn,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(jo(this,"nodeDataArray",io,"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"}}}),si.prototype.setCategoryForNodeData=si.prototype.jm,si.prototype.getCategoryForNodeData=si.prototype.Ro,si.prototype.removeArrayItem=si.prototype.ov,si.prototype.insertArrayItem=si.prototype.ts,si.prototype.addArrayItem=si.prototype.Ay,si.prototype.assignAllDataProperties=si.prototype.Do,si.prototype.set=si.prototype.set,si.prototype.clearUnresolvedReferences=si.prototype.Qy,si.prototype.mergeNodeDataArray=si.prototype.$z,si.prototype.removeNodeDataCollection=si.prototype.nA,si.prototype.removeNodeData=si.prototype.cm,si.prototype.addNodeDataCollection=si.prototype.Fy,si.prototype.addNodeData=si.prototype.xf,si.prototype.makeNodeDataKeyUnique=si.prototype.$u,si.prototype.findNodeDataForKey=si.prototype.hc,si.prototype.containsNodeData=si.prototype.lb,si.prototype.setKeyForNodeData=si.prototype.km,si.prototype.getKeyForNodeData=si.prototype.wa,si.prototype.updateTargetBindings=si.prototype.La,si.prototype.commit=si.prototype.commit,si.prototype.rollbackTransaction=si.prototype.Kf,si.prototype.commitTransaction=si.prototype.eb,si.prototype.startTransaction=si.prototype.Ea,si.prototype.raiseDataChanged=si.prototype.Fs,si.prototype.raiseChanged=si.prototype.g,si.prototype.raiseChangedEvent=si.prototype.cb,si.prototype.removeChangedListener=si.prototype.ik,si.prototype.addChangedListener=si.prototype.Pe,si.prototype.writeJsonValue=si.prototype.sm,si.prototype.replaceJsonObjects=si.prototype.dm,si.prototype.applyIncrementalJSON=si.prototype.Ky,si.prototype.applyIncrementalJson=si.prototype.Zw,si.prototype.toJSON=si.prototype.toJSON,si.prototype.toJson=si.prototype.np,si.prototype.toIncrementalJSON=si.prototype.yA,si.prototype.toIncrementalJson=si.prototype.$x,si.prototype.toIncrementalData=si.prototype.xA,si.prototype.clear=si.prototype.clear;var AS=!1,Al={};si.className="Model",si.fromJSON=si.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=$e.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Ht("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=$e[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof si?y=a:Ht("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=si.constructGraphLinksModel()),y.gp(x),y.kv(x),y},si.safePropertyValue=Lo,si.safePropertySet=ro,Al.Brush=Or,Al.ChangedEvent=ao,Al.Geometry=dn,Al.Margin=Hi,Al.Panel=on,Al.Point=Mt,Al.Rect=Ce,Al.Size=Ve,Al.Spot=ei,Al.Transaction=Ho,Al.UndoManager=ho;function ko(a,y,x,E){ki(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=bS,this.wk=null):(this.el=fp,this.wk=E),this.st=new en}ko.prototype.copy=function(){var a=new ko;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},Ct=ko.prototype,Ct.qb=function(a){a.classType===ko&&(this.mode=a)},Ct.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ct.freeze=function(){return this._isFrozen=!0,this},Ct.ka=function(){return this._isFrozen=!1,this},Ct.Kx=function(a){return a===void 0&&(a=null),this.mode=fp,this.backConverter=a,this},Ct.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ct.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function ES(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ct.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==="")Bn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Lo(y,E)),z!==void 0)if(b===null)x!==""&&ro(a,x,z);else try{if(x!==""){var tt=b(z,a);ro(a,x,tt)}else b(z,a)}catch(rt){}}}},Ct.sp=function(a,y,x,E){if(this.el===fp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=Lo(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):ro(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):ro(y,x,ft)}else{var mt=z(tt,y,ot);if(mt!==void 0&&ot!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var yt=E.itemIndex,wt=E.panel.itemArray;ot.ov(wt,yt),ot.ts(wt,yt,mt)}}}catch(bt){}}finally{this.st.remove(a)}}}},ce.Object.defineProperties(ko.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&de(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&de(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&de(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&de(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&de(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&de(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&de(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&de(this),this.el=a}}}),ko.prototype.updateSource=ko.prototype.sp,ko.prototype.updateTarget=ko.prototype.Mv,ko.prototype.ofModel=ko.prototype.dA,ko.prototype.ofObject=ko.prototype.cp,ko.prototype.makeTwoWay=ko.prototype.Kx;var Dx="Binding",bS=new Ue(ko,"OneWay",1),fp=new Ue(ko,"TwoWay",2);ko.className="Binding",ko.parseEnum=function(a,y){return function(x){return x=Rn(a,x),x===null?y:x}},ko.toString=bi,ko.OneWay=bS,ko.TwoWay=fp;function fr(a,y,x){si.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new en,this.wb=new Pe,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&&(vn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}ue(fr,si),fr.constructGraphLinksModel=si.constructGraphLinksModel,fr.prototype.cloneProtected=function(a){si.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},Ct=fr.prototype,Ct.clear=function(){si.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ct.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)+":"+bi(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Hs(this,b,!0)+"-->"+Hs(this,b,!1)}return y},Ct.Qv=function(a,y){this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=si.prototype.Qv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===wo?b.add(ut.newValue):ut.change===Ao&&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 si||E.lb(ut.object)||kS(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},Ct.rm=function(){var a=si.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},Ct.gp=function(a){si.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)},Ct.Rv=function(){var a=si.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+ad(this,this.linkDataArray,!0);return a+y},Ct.kv=function(a){si.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new en,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];s0(a,y,b,b,x)}return x}Ct.Pv=function(a,y){this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=si.prototype.Pv.call(this,a,y),E=this,b=new en,z=new en,tt=new en,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===wo?b.add(ut.newValue):ut.change===Ao&&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 si||E.lb(ut.object)||kS(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)+ad(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+ad(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+ad(this,st.Fa(),!0)),st.clear(),ot.clear(),a},Ct.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)&&Ht("applyIncrementalJson cannot change Model properties"),si.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var tt in b)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,b[tt]);BS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},fr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===io){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),ro(x,E,b);return}}else if(a.change===wo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,ke(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===Ao){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ke(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}}si.prototype.changeState.call(this,a,y)}},Ct=fr.prototype,Ct.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),ro(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ct.yx=function(a){return Hs(this,a,!0)},Ct.wv=function(a,y){Gf(this,a,y,!0)},Ct.Bx=function(a){return Hs(this,a,!1)},Ct.Bv=function(a,y){Gf(this,a,y,!1)};function Hs(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Lo(y,a),a!==void 0))){if(sd(a))return a;Ht((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Gf(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=Lo(y,b);z!==x&&(zl(a,z,y),ro(y,b,x),a.hc(x)===null&&Rl(a,x,y),jo(a,E?"linkFromKey":"linkToKey",io,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ro(y,b,x)}}Ct.zx=function(a){return u0(this,a,!0)},Ct.xv=function(a,y){Hf(this,a,y,!0)},Ct.Cx=function(a){return u0(this,a,!1)},Ct.Cv=function(a,y){Hf(this,a,y,!1)};function u0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Lo(y,a),y===void 0?"":y)}function Hf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Lo(y,b);z===void 0&&(z=""),z!==x&&(ro(y,b,x),jo(a,E?"linkFromPortId":"linkToPortId",io,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ro(y,b,x)}}Ct.Ef=function(a){if(a===null)return h0;var y=this.je;return y===""?h0:(a=Lo(a,y),a===void 0?h0:a)},Ct.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Lo(a,x);if(E===void 0&&(E=h0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)zl(this,E[z],a);for(ro(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&Rl(this,tt,a)}jo(this,"linkLabelKeys",io,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ro(a,x,y)}},Ct.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Lo(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&&Rl(this,y,a),jo(this,"linkLabelKeys",wo,x,a,null,y,null,b)))}else Ht(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ct.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Lo(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(zl(this,y,a),jo(this,"linkLabelKeys",Ao,x,a,y,null,b,null)))}else E!==void 0&&Ht(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ct.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Lo(a,y),y!==void 0)){if(sd(y))return y;Ht("Key value for link data "+a+" is not a number or a string: "+y)}}},Ct.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Lo(a,x);E!==y&&this.jh(y)===null&&(ro(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),jo(this,"linkKey",io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ro(a,x,y)}},Ct.jh=function(a){return a===null&&Ht("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&sd(a)?this.wb.I(a):null},Ct.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))){ro(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ro(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ro(a,y,x)}}}}},Ct.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ct.fi=function(a){a!==null&&(vr(a),this.Jc(a)||MS(this,a,!0))};function MS(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&&Ht("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)),jo(a,"linkDataArray",wo,"linkDataArray",a,null,y,null,E),cy(a,y)}Ct.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)},Ct.bm=function(a){a!==null&&FS(this,a,!0)};function FS(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(jo(a,"linkDataArray",Ao,"linkDataArray",a,y,null,E,null),x=Hs(a,y,!0),zl(a,x,y),x=Hs(a,y,!1),zl(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],zl(a,x,y)}Ct.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)},Ct.Zz=function(a){if(this.linkKeyProperty===""&&Ht("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&vn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),BS(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function cy(a,y){var x=Hs(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Rl(a,x,y),x=Hs(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Rl(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&&Rl(a,x,y)}Ct.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):l0(this,a,!0),ke(a)&&(ki(a),this.lf!==""&&ro(a,this.lf,void 0),this.mf!==""&&ro(a,this.mf,void 0),this.je!==""&&ro(a,this.je,[])),a},Ct.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Lo(a,y)},Ct.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Lo(a,y),y!==void 0)){if(sd(y))return y;Ht("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ct.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Lo(a,x);E!==y&&(zl(this,E,a),ro(a,x,y),this.hc(y)===null&&Rl(this,y,a),jo(this,"nodeGroupKey",io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ro(a,x,y)}},fr.prototype.copyNodeData=function(a){return a===null?null:(a=si.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Lo(a,this.Je)===void 0||ro(a,this.Je,void 0),a)},fr.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){Gf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Gf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Hf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Hf(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=Lo(a,y);E!==x&&(ro(a,y,x),this.Fs(a,y,E,x))},Ct=fr.prototype,Ct.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&&Lo(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Ct.jp=function(a,y){si.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(Hs(this,E,!0)===b){var tt=this.lf;ro(E,tt,z),jo(this,"linkFromKey",io,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(Hs(this,E,!1)===b&&(tt=this.mf,ro(E,tt,z),jo(this,"linkToKey",io,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,jo(this,"linkLabelKeys",wo,ot,E,b,z,st,st))}},Ct.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ro(a,E,x),jo(this,"nodeGroupKey",io,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ct.Lv=function(){si.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Ct.fm=function(a){si.prototype.fm.call(this,a),a=this.wa(a);var y=dp(this,a);if(y!==null){var x=Dn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;jo(this,"nodeGroupKey",io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Hs(this,E,!0)===a&&(b=this.lf,jo(this,"linkFromKey",io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Hs(this,E,!1)===a&&(b=this.mf,jo(this,"linkToKey",io,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&&(jo(this,"linkLabelKeys",wo,tt,E,a,a,rt,rt),x.push(E))}for(y=0;y<x.length;y++)zl(this,a,x[y]);Un(x)}},Ct.em=function(a){si.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Rl(this,y,a)},Ct.qp=function(a){si.prototype.qp.call(this,a);var y=this.lh(a);zl(this,y,a)},Ct.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Ht("getCategoryForLinkData found a non-string category for "+a+": "+y)},fr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},fr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Lo(a,x);E===void 0&&(E=""),E!==y&&(ro(a,x,y),jo(this,"linkCategory",io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ro(a,x,y)}},fr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ct=fr.prototype,Ct.lm=function(a,y){si.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function BS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ct.Wj=function(){return!0},Ct.ri=function(){return!0},Ct.xs=function(){return!0},Ct.Xj=function(){return!0},ce.Object.defineProperties(fr.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];ke(b)||Ht("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),vr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new tn,b=0;b<x;b++){var z=a[b],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?E.add(z):this.wb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new en,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,jo(this,"linkDataArray",io,"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"}}}),fr.prototype.setCategoryForLinkData=fr.prototype.lp,fr.prototype.getCategoryForLinkData=fr.prototype.ps,fr.prototype.assignAllDataProperties=fr.prototype.Do,fr.prototype.setGroupKeyForNodeData=fr.prototype.mp,fr.prototype.getGroupKeyForNodeData=fr.prototype.lh,fr.prototype.isGroupForNodeData=fr.prototype.Yu,fr.prototype.copyLinkData=fr.prototype.Jo,fr.prototype.mergeLinkDataArray=fr.prototype.Zz,fr.prototype.removeLinkDataCollection=fr.prototype.lA,fr.prototype.removeLinkData=fr.prototype.bm,fr.prototype.addLinkDataCollection=fr.prototype.Ey,fr.prototype.addLinkData=fr.prototype.fi,fr.prototype.containsLinkData=fr.prototype.Jc,fr.prototype.makeLinkDataKeyUnique=fr.prototype.Bs,fr.prototype.findLinkDataForKey=fr.prototype.jh,fr.prototype.setKeyForLinkData=fr.prototype.Ks,fr.prototype.getKeyForLinkData=fr.prototype.Ac,fr.prototype.removeLabelKeyForLinkData=fr.prototype.Qx,fr.prototype.addLabelKeyForLinkData=fr.prototype.Bu,fr.prototype.setLabelKeysForLinkData=fr.prototype.Ls,fr.prototype.getLabelKeysForLinkData=fr.prototype.Ef,fr.prototype.setToPortIdForLinkData=fr.prototype.Cv,fr.prototype.getToPortIdForLinkData=fr.prototype.Cx,fr.prototype.setFromPortIdForLinkData=fr.prototype.xv,fr.prototype.getFromPortIdForLinkData=fr.prototype.zx,fr.prototype.setToKeyForLinkData=fr.prototype.Bv,fr.prototype.getToKeyForLinkData=fr.prototype.Bx,fr.prototype.setFromKeyForLinkData=fr.prototype.wv,fr.prototype.getFromKeyForLinkData=fr.prototype.yx,fr.prototype.clear=fr.prototype.clear;var h0=Object.freeze([]);fr.className="GraphLinksModel",Al.GraphLinksModel=fr,si.constructGraphLinksModel=si.constructGraphLinksModel=function(){return new fr},si.initDiagramModel=hy=function(){return new fr};function es(a,y){si.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(vn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ue(es,si),es.constructGraphLinksModel=si.constructGraphLinksModel,es.prototype.cloneProtected=function(a){si.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ct=es.prototype,Ct.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)+":"+bi(b)}}return y},Ct.rm=function(){var a=si.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ct.gp=function(a){si.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ct.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ht("applyIncrementalJson cannot change Model properties"),si.prototype.fp.call(this,a)},Ct.Vl=function(a){return a},Ct.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Lo(a,y),y!==void 0)){if(sd(y))return y;Ht("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ct.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=Lo(a,x);E!==y&&(zl(this,E,a),ro(a,x,y),this.hc(y)===null&&Rl(this,y,a),jo(this,"nodeParentKey",io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ro(a,x,y)}},Ct.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Lo(a,y),y===void 0)?"":typeof y=="string"?y:(Ht("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},es.prototype.getLinkCategoryForData=function(a){return this.ss(a)},es.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=Lo(a,x);E===void 0&&(E=""),E!==y&&(ro(a,x,y),jo(this,"parentLinkCategory",io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ro(a,x,y)}},es.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},es.prototype.copyNodeData=function(a){return a===null?null:(a=si.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Lo(a,this.Ke)===void 0||ro(a,this.Ke,void 0),a)},es.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=Lo(a,y);E!==x&&(ro(a,y,x),this.Fs(a,y,E,x))},Ct=es.prototype,Ct.jp=function(a,y){si.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ct.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ro(a,E,x),jo(this,"nodeParentKey",io,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ct.fm=function(a){si.prototype.fm.call(this,a),a=this.wa(a);var y=dp(this,a);if(y!==null){var x=Dn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;jo(this,"nodeParentKey",io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)zl(this,a,x[y]);Un(x)}},Ct.em=function(a){si.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Rl(this,y,a)},Ct.qp=function(a){si.prototype.qp.call(this,a);var y=this.mh(a);zl(this,y,a)},Ct.lm=function(a,y){si.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ct.Tl=function(){return!0},Ct.xs=function(){return!0},ce.Object.defineProperties(es.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"}}}),es.prototype.setParentLinkCategoryForNodeData=es.prototype.Ms,es.prototype.getParentLinkCategoryForNodeData=es.prototype.ss,es.prototype.setParentKeyForNodeData=es.prototype.qe,es.prototype.getParentKeyForNodeData=es.prototype.mh,es.className="TreeModel",Al.TreeModel=es;function fo(a){lo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=El,this.Ti=0,this.Zv=new Mt,this.Jp=this.me=0,this.Xr=new vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=El,this.K=ns,this.nd=Kf,this.hd=ry,this.tf=6,this.Nn=v0,a&&Object.assign(this,a)}ue(fo,lo),fo.prototype.cloneProtected=function(a){lo.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},fo.prototype.qb=function(a){a.classType===fo?a===p0||a===m0||a===f0||a===g0||a===Kf?this.sorting=a:a===_d||a===Zf||a===ns||a===ud?this.direction=a:a===Eh||a===ld||a===El||a===bl?this.arrangement=a:(a===zc||a===v0)&&(this.nodeDiameterFormula=a):lo.prototype.qb.call(this,a)},fo.prototype.createNetwork=function(){return new Vf(this)},fo.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 tn;y.addAll(a.iterator),a=new tn;var x=new tn,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===bl&&ot===zc?rt=El:rt===bl&&ot!==zc&&(rt=this.arrangement),(this.direction===_d||this.direction===Zf)&&this.sorting!==Kf){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===_d?(this.arrangement===bl&&a.reverse(),E=new tn,E.addAll(a),E.addAll(x)):(this.arrangement===bl&&x.reverse(),E=new tn,E.addAll(x),E.addAll(a))}ot=E.length;for(var yt=z=b=0;yt<E.length;yt++){var wt=ft+mt*z*(this.direction===ns?1:-1)/ot,bt=E.M(yt).diameter;isNaN(bt)&&(bt=hd(E.M(yt),wt)),360>mt&&(yt===0||yt===E.length-1)&&(bt/=2),b+=bt,z++}if(isNaN(st)||rt===bl){if(isNaN(y)&&(y=6),rt!==El&&rt!==bl){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)&&hd(yt,0),isNaN(b.diameter)&&hd(b,0),z=Math.max(z,(yt.diameter+b.diameter)/2);tt=z+y,rt===Eh?st=(z+y)/(2*Math.PI/ot):st=d0(this,tt*(360<=mt?ot:ot-1),ut,ft*Math.PI/180,mt*Math.PI/180)}else st=d0(this,b+(360<=mt?ot:ot-1)*(rt!==bl?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===El||rt===bl)&&(y=(yt-b)/(360<=mt?ot:ot-1));else if(rt===El||rt===bl)yt=(yt-b)/(360<=mt?ot:ot-1),yt<y?(st=d0(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++)wt=E.M(b),bt=E.M(b===ot-1?0:b+1),isNaN(wt.diameter)&&hd(wt,0),isNaN(bt.diameter)&&hd(bt,0),tt=Math.max(tt,(wt.diameter+bt.diameter)/2);tt+=y,b=d0(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!==_d&&this.direction!==Zf||E!==bl)if(this.direction===_d||this.direction===Zf){switch(tt=0,E){case ld:tt=180*c0(this,rt,mt,st,ot)/Math.PI;break;case El:ot=y=0,tt=a.first(),tt!==null&&(y=hd(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=hd(tt,Math.PI/2)),tt=180*c0(this,rt,mt,st,ft+(y+ot)/2)/Math.PI;break;case Eh:tt=ut/y.length}if(this.direction===_d){switch(E){case ld:mp(this,a,st,ud);break;case El:pp(this,a,st,ud);break;case Eh:gp(this,a,ut/2,st,ud)}switch(E){case ld:mp(this,x,st+tt,ns);break;case El:pp(this,x,st+tt,ns);break;case Eh:gp(this,x,ut/2,st+tt,ns)}}else{switch(E){case ld:mp(this,x,st,ud);break;case El:pp(this,x,st,ud);break;case Eh:gp(this,x,ut/2,st,ud)}switch(E){case ld:mp(this,a,st+tt,ns);break;case El:pp(this,a,st+tt,ns);break;case Eh:gp(this,a,ut/2,st+tt,ns)}}}else switch(E){case ld:mp(this,y,st,this.direction);break;case El:pp(this,y,st,this.direction);break;case Eh:gp(this,y,ut,st,this.direction);break;case bl:DS(this,y,ut,st,this.direction)}else DS(this,y,ut,st-ut/2,ns)}this.updateParts(),this.network=null,this.isValidLayout=!0};function gp(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===ns?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 pp(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)&&hd(st,0),isNaN(ut.diameter)&&hd(ut,0),st=c0(a,b,z,E===ns?x:-x,(st.diameter+ut.diameter)/2+tt),x+=E===ns?st:-st}}function mp(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=c0(a,b,z,E===ns?x:-x,tt),x+=E===ns?st:-st}}function DS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new vp,360>x){for(z=E+(b===ns?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,TS(a,y,x,E,b)}else NS(a,y,x,E,b);a.Xr.commit(y)}function NS(a,y,x,E,b){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),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=Mt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=st,!(ft>=ut.length-1));ft++)OS(a,ot,st,ut,ft,b,z)||IS(a,ot,st,ut,ft,b,z),ot=z.x,st=z.y;if(Mt.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===ns?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,NS(a,y,x,E,b))}}}function TS(a,y,x,E,b){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(E*Math.PI/180),st=tt*Math.sin(E*Math.PI/180),ut=Mt.alloc(),ft=y.Fa(),mt=0;mt<ft.length&&(ft[mt].centerX=ot,ft[mt].centerY=st,!(mt>=ft.length-1));mt++)OS(a,ot,st,ft,mt,b,ut)||IS(a,ot,st,ft,mt,b,ut),ot=ut.x,st=ut.y;if(Mt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(st,ot),ot=b===ns?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,TS(a,y,x,E,b))}}function OS(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===ns)){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 IS(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===ns)){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}fo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},fo.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 Mt(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))},fo.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 d0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function c0(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}}fo.prototype.sort=function(a){switch(this.sorting){case f0:break;case g0:a.reverse();break;case p0:a.sort(this.comparer);break;case m0:a.sort(this.comparer),a.reverse();break;case Kf:return this.ak(Nx(a));default:Ht("Invalid sorting type.")}return a};function Nx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new tn;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}fo.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 tn;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=[],wt=0;wt<x.length;wt++)0>y[x[wt]].indexOf(x[wt===x.length-1?0:wt+1])&&yt.push(wt===x.length-1?0:wt+1);if(yt.length===0)for(wt=0;wt<x.length;wt++)yt.push(wt);for(wt=0;wt<yt.length;wt++){for(var bt=yt[wt],Gt=y[st],It=0,Xt=0;Xt<tt.length;Xt++){var Qt=z[tt[Xt]],qt=z[rt[Xt]];if(Qt<qt){var re=Qt;Qt=qt}else re=qt;if(re<bt&&bt<=Qt)for(qt=0;qt<Gt.length;qt++){var ye=Gt[qt];0>x.indexOf(ye)||re<z[ye]&&z[ye]<Qt||re===z[ye]||Qt===z[ye]||It++}else for(qt=0;qt<Gt.length;qt++)ye=Gt[qt],0>x.indexOf(ye)||re<z[ye]&&z[ye]<Qt&&re!==z[ye]&&Qt!==z[ye]&&It++}for(Gt=It,Xt=It=0;Xt<y[st].length;Xt++)re=x.indexOf(y[st][Xt]),0<=re&&(re=Math.abs(bt-(re>=bt?re+1:re)),It+=re<x.length+1-re?re:x.length+1-re);for(Xt=0;Xt<tt.length;Xt++)re=z[tt[Xt]],Qt=z[rt[Xt]],re>=bt&&re++,Qt>=bt&&Qt++,re>Qt&&(qt=Qt,Qt=re,re=qt),Qt-re<(x.length+2)/2==(re<bt&&bt<=Qt)&&It++;(Gt<ut||Gt===ut&&It<ft)&&(ut=Gt,ft=It,mt=bt)}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||(wt=yt>ut?yt-ut:ut-yt,ft+=yt<ut!=wt>tt-wt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},ce.Object.defineProperties(fo.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!==bl&&a!==El&&a!==ld&&a!==Eh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==ns&&a!==ud&&a!==_d&&a!==Zf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==f0&&a!==g0&&a!==p0&&!m0&&a!==Kf||(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!==v0&&a!==zc||(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 El=new Ue(fo,"ConstantSpacing",0),ld=new Ue(fo,"ConstantDistance",1),Eh=new Ue(fo,"ConstantAngle",2),bl=new Ue(fo,"Packed",3),ns=new Ue(fo,"Clockwise",4),ud=new Ue(fo,"Counterclockwise",5),_d=new Ue(fo,"BidirectionalLeft",6),Zf=new Ue(fo,"BidirectionalRight",7),f0=new Ue(fo,"Forwards",8),g0=new Ue(fo,"Reverse",9),p0=new Ue(fo,"Ascending",10),m0=new Ue(fo,"Descending",11),Kf=new Ue(fo,"Optimized",12),v0=new Ue(fo,"Pythagorean",13),zc=new Ue(fo,"Circular",14);fo.className="CircularLayout",fo.ConstantSpacing=El,fo.ConstantDistance=ld,fo.ConstantAngle=Eh,fo.Packed=bl,fo.Clockwise=ns,fo.Counterclockwise=ud,fo.BidirectionalLeft=_d,fo.BidirectionalRight=Zf,fo.Forwards=f0,fo.Reverse=g0,fo.Ascending=p0,fo.Descending=m0,fo.Optimized=Kf,fo.Pythagorean=v0,fo.Circular=zc;function vp(){this.Pl=-1/0,this.tm=this.mk=null}vp.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},vp.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]}},vp.className="VertexArrangement";function Vf(a){Xr.call(this,a)}ue(Vf,Xr),Vf.prototype.createVertex=function(){return new yp(this)},Vf.prototype.createEdge=function(){return new y0(this)},Vf.className="CircularNetwork";function yp(a){Ko.call(this,a),this.u=this.Si=NaN}ue(yp,Ko);function hd(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===bl)if(x.nodeDiameterFormula===zc)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===zc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}ce.Object.defineProperties(yp.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)}}}),yp.className="CircularVertex";function y0(a){ks.call(this,a)}ue(y0,ks),y0.className="CircularEdge";function xa(a){lo.call(this),this.ah=null,this.An=0,this.$d=new Ve(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)}ue(xa,lo),xa.prototype.cloneProtected=function(a){lo.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},xa.prototype.createNetwork=function(){return new jc(this)},xa.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}RS(this,0,a)}this.network=y;var tt=E=x.iterator;E=this.arrangementSpacing;var rt=tt.count,ot=!0;z=b=0;for(var st=Dn(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=Ce.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 Mt(ft.x+ft.width+E.width,ft.y),st[1]=new Mt(ft.x,ft.y+ft.height+E.height),rt=2;else{var mt=zS(st,rt,b,z,ft.width,ft.height,E),yt=st[mt],wt=new Mt(yt.x+ft.width+E.width,yt.y),bt=new Mt(yt.x,yt.y+ft.height+E.height);for(mt+1<rt&&st.splice(mt+1,0,null),st[mt]=wt,st[mt+1]=bt,rt++,mt=yt.x-ft.x,yt=yt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)wt=ut.value,wt.centerX+=mt,wt.centerY+=yt}for(Ce.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 Mt(mt.x+mt.width+E.width,mt.y),st[1]=new Mt(mt.x,mt.y+mt.height+E.height),rt=2):(ot=zS(st,rt,b,z,mt.width,mt.height,E),ft=st[ot],yt=new Mt(ft.x+mt.width+E.width,ft.y),mt=new Mt(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(Un(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)}}WS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},xa.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},xa.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function RS(a,y,x){if(Tx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,RS(a,y+1,x),WS(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 Tx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ox(a,y){for(var x=a.network,E=new jc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new GS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new tn),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 tn,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new tn,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,ae.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=ae.sqrt((rt+yt+st*st*4/(tt*tt))/yt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new Ce(z-mt.x-tt,ot-mt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Mt(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 Ce(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Mt(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=ae.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,wt){return yt===null||wt===null||yt===wt?0:wt.width*wt.height-yt.width*yt.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var mt=ot.height;ft=ae.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 zS(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}xa.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},xa.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function jS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,E+b<tt?a>y+z?(x=E+b-tt,a=a-y-z,ae.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,ae.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,ae.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,ae.sqrt(E*E+a*a)):E-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function WS(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(bt,Gt){return bt===null||Gt===null||bt===Gt?0:bt.centerX-Gt.centerX}):y.sort(function(bt,Gt){return bt===null||Gt===null||bt===Gt?0:bt.centerY-Gt.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 wt=jS(tt,mt);1>wt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new S0),wt=E.random(),rt=E.random(),ot>st?(E=Math.abs(mt.bounds.right-tt.bounds.x),E=(1+E)*wt):ot<st?(E=Math.abs(mt.bounds.x-tt.bounds.right),E=-(1+E)*wt):(E=Math.max(mt.width,tt.width),E=(1+E)*wt-E/2),ut>yt?(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)/(wt*wt),E=(st-ot)/wt*rt,st=(yt-ut)/wt*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=jS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new S0),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}xa.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},xa.prototype.moveFixedVertex=function(){},xa.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},xa.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Yo,y.toSpot=Yo)}},xa.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Ce.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Ce.free(x)}x=Ce.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()}Ce.free(x)},xa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},xa.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},xa.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},xa.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},xa.prototype.electricalFieldX=function(){return 0},xa.prototype.electricalFieldY=function(){return 0},xa.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},xa.prototype.gravitationalFieldX=function(){return 0},xa.prototype.gravitationalFieldY=function(){return 0},xa.prototype.isFixed=function(a){return a.isFixed},ce.Object.defineProperties(xa.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"&&Ht('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())}}}),xa.className="ForceDirectedLayout";function GS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}GS.className="ForceDirectedSubnet";function jc(a){Xr.call(this,a)}ue(jc,Xr),jc.prototype.createVertex=function(){return new Sp(this)},jc.prototype.createEdge=function(){return new xp(this)},jc.className="ForceDirectedNetwork";function Sp(a){Ko.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}ue(Sp,Ko),ce.Object.defineProperties(Sp.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)}}}),Sp.className="ForceDirectedVertex";function xp(a){ks.call(this,a),this.j=this.o=NaN}ue(xp,ks),ce.Object.defineProperties(xp.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)}}}),xp.className="ForceDirectedEdge";function S0(){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()}S0.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},S0.className="RandomNumberGenerator";function Rr(a){lo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=L0,this.Zk=A0,this.Qk=E0,this.bj=4,this.rk=b0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Mt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}ue(Rr,lo),Rr.prototype.cloneProtected=function(a){lo.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},Rr.prototype.qb=function(a){a.classType===Rr?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:Ht("Unknown enum value: "+a):lo.prototype.qb.call(this,a)},Rr.prototype.createNetwork=function(){return new Yf(this)},Rr.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!==Pp&&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===Pp&&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 wt=b.focus;st=z.focus;var bt=E.rev?z.bounds:b.bounds;yt=Mt.alloc(),ut!==ft?bt.w()&&ft.isVisible()?ft.actualBounds.w()?(wh(ft,mt,Ui,yt),yt.x+=ft.actualBounds.x-bt.x,yt.y+=ft.actualBounds.y-bt.y):(wh(ft,mt,Ui,yt),yt.w()||yt.assign(wt)):yt.assign(wt):bt.w()?(wh(ft,mt,Ui,yt),yt.w()||yt.assign(wt)):yt.assign(wt),ft=E.rev?b.bounds:z.bounds,ut=Mt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(wh(ot,rt,Ui,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(wh(ot,rt,Ui,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(wh(ot,rt,Ui,ut),ut.w()||ut.assign(st)):ut.assign(st),this.K===90||this.K===270?(tt=Math.round((yt.x-wt.x)/this.kc),ot=yt.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((yt.y-wt.y)/this.kc),ot=yt.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Mt.free(yt),Mt.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,bt=E.link,bt!==null){var Gt=bt.fromPort,It=bt.toPort;if(Gt!==null&&It!==null){var Xt=bt.fromNode;if(mt=bt.toNode,Xt!==null&&mt!==null){var Qt=C0(this,!0),qt=C0(this,!1),re=this.setsPortSpots?Qt:bt.computeSpot(!0,Gt);wt=this.setsPortSpots?qt:bt.computeSpot(!1,It);var ye=bt.isOrthogonal;re.$c()&&re.Hf(qt)&&wt.$c()&&wt.Hf(Qt)?ft=0:(Qt=bt.getLinkPoint(Xt,Gt,re,!0,ye,mt,It,Mt.alloc()),qt=bt.getLinkDirection(Xt,Gt,Qt,re,!0,ye,mt,It),Mt.free(Qt),re.ys()||qt!==QS(this,E,!0)?this.setsPortSpots&&Xt!==null&&Xt.ports.count===1&&E.rev&&(ft+=1):ft+=1,re=bt.getLinkPoint(mt,It,wt,!1,ye,Xt,Gt,Mt.alloc()),bt=bt.getLinkDirection(mt,It,re,wt,!1,ye,Xt,Gt),Mt.free(re),wt.ys()||bt!==QS(this,E,!1)?this.setsPortSpots&&mt!==null&&mt.ports.count===1&&E.rev&&(ft+=2):ft+=2)}}}if(mt=ft,ft=mt===1||mt===3,(mt=mt===2||mt===3)&&(wt=a.createVertex(),wt.node=null,wt.Dj=1,wt.layer=yt,wt.near=b,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=ot,b.portToPos=0,b=wt),bt=1,ft&&bt--,yt-ut>bt&&0<yt){for(E.valid=!1,wt=a.createVertex(),wt.node=null,wt.Dj=2,wt.layer=yt-1,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=mt?0:tt,b.portToColOffset=0,b.portFromPos=mt?0:ot,b.portToPos=0,b=wt,yt--;yt-ut>bt&&0<yt;)wt=a.createVertex(),wt.node=null,wt.Dj=3,wt.layer=yt-1,a.dh(wt),b=a.Zj(b,wt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=wt,yt--;b=a.Zj(wt,z,E.link),b.valid=!ft,ft&&(wt.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=rt,b.portFromPos=0,b.portToPos=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=dd(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),cd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Rr.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}Rr.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},Rr.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 ds(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 tl(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 HS(a,y,x){var E=dd(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 wt=ot[mt];if(wt.valid&&wt.fromVertex.layer!==y){var bt=wt.fromVertex.index,Gt=wt.portToPos;wt=wt.portFromPos,ut<Gt&&(ft>bt||ft===bt&&yt>wt)&&rt++,Gt<ut&&(bt>ft||bt===ft&&wt>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++)wt=ot[mt],wt.valid&&wt.toVertex.layer!==y&&(bt=wt.toVertex.index,Gt=wt.portToPos,wt=wt.portFromPos,yt<wt&&(ft>bt||ft===bt&&ut>Gt)&&rt++,wt<yt&&(bt>ft||bt===ft&&Gt>ut)&&rt++)}for(z[tt*b+tt]=rt,ot=tt+1;ot<b;ot++){var It=0,Xt=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var Qt=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<Qt.length;mt++)wt=Qt[mt],wt.valid&&wt.fromVertex.layer!==y&&(bt=wt.fromVertex.index,wt=wt.portFromPos,(ft<bt||ft===bt&&yt<wt)&&Xt++,(bt<ft||bt===ft&&wt<yt)&&It++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,Qt=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<Qt.length;mt++)wt=Qt[mt],wt.valid&&wt.toVertex.layer!==y&&(bt=wt.toVertex.index,Gt=wt.portToPos,(ft<bt||ft===bt&&ut<Gt)&&Xt++,(bt<ft||bt===ft&&Gt<ut)&&It++)}z[tt*b+ot]=It,z[ot*b+tt]=Xt}}return cd(a,y,E),z}Rr.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=HS(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 x0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=dd(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)}}}cd(E,b,z),y+=rt}return y}Rr.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=dd(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 cd(a,y,E),z}function ZS(a,y,x){for(var E=dd(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(wt,bt){return wt-bt}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return cd(a,y,E),z}function wp(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&&wp(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&&wp(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)}}Rr.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=KS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=KS(a);for(b=VS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=VS(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 L0: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 Pp: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 KS(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 VS(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++}Rr.prototype.assignLayers=function(){switch(this.Zk){case xy:US(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(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 A0:for(US(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function US(a){for(var y=a.network.vertexes.iterator;y.next();){var x=YS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function YS(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,YS(a,z)+b)}y.layer=x}else x=y.layer;return x}function XS(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,XS(a,z)+b)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(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&&wp(a,rt,0,-1,!0,!1)}for(wp(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 wt=mt[yt],bt=wt.fromVertex;ut+=1,bt.component!==1&&(z+=1,bt=bt.layer-st.layer,wt=a.linkMinLength(wt),E=Math.min(E,bt-wt))}for(mt=st.destinationEdgesArrayAccess,b=mt.length,yt=0;yt<b;yt++)wt=mt[yt].toVertex,--ut,wt.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=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(wp(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++)wt=mt[yt].fromVertex,st+=1,wt.component!==1?E+=1:ut=!0;for(mt=tt.destinationEdgesArrayAccess,ft=mt.length,yt=0;yt<ft;yt++)wt=mt[yt],bt=wt.toVertex,--st,bt.component!==1&&(--E,bt=tt.layer-bt.layer,wt=a.linkMinLength(wt),b=Math.min(b,bt-wt));(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 QS(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}Rr.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 E0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&qS(a,E))}function _S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&_S(a,E))}Rr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=ds(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)w0(this,E,1),fl(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=ds(this)),E=this.Ia;0<=E;E--)w0(this,E,-1),fl(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=ds(this))}for(tl(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)w0(this,E,0),fl(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=ds(this)),E=this.Ia;0<=E;E--)w0(this,E,0),fl(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=ds(this))}tl(this,y);var z,tt,rt;switch(this.rk){case Ly:break;case Ay: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=fl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=fl(this,E,1)||z;for(b=this.countCrossings(),b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,1)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,-1)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=fl(this,E,0)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,0)||z;b>=a?tl(this,y):(a=b,y=ds(this))}break;default:case b0:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())<rt;){for(rt=E,z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=fl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=fl(this,E,1)||z;for(b=this.countCrossings(),b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,1)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,-1)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=fl(this,E,0)||z;for(b>=a?tl(this,y):(a=b,y=ds(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=fl(this,E,0)||z;b>=a?tl(this,y):(a=b,y=ds(this))}}tl(this,y)};function w0(a,y,x){var E=dd(a,y),b=a.tc[y],z=ZS(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);cd(a,y,E)}function fl(a,y,x){var E=dd(a,y),b=a.tc[y];x=HS(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,wt=E[z].column,bt=E[z+1].column,Gt=a.nodeMinColumnSpace(E[z],!0),It=a.nodeMinColumnSpace(E[z],!1),Xt=a.nodeMinColumnSpace(E[z+1],!0),Qt=a.nodeMinColumnSpace(E[z+1],!1);Gt=wt-Gt+Xt,It=bt-It+Qt;var qt=E[z].sourceEdges.iterator;for(qt.reset();qt.next();)if(Xt=qt.value,Qt=Xt.fromVertex,Xt.valid&&Qt.layer===y){for(Xt=0;E[Xt]!==Qt;)Xt++;Xt<z&&(mt+=2*(z-Xt),yt+=2*(z+1-Xt)),Xt===z+1&&(mt+=1),Xt>z+1&&(mt+=4*(Xt-z),yt+=4*(Xt-(z+1)))}for(qt=E[z].destinationEdges.iterator,qt.reset();qt.next();)if(Xt=qt.value,Qt=Xt.toVertex,Xt.valid&&Qt.layer===y){for(Xt=0;E[Xt]!==Qt;)Xt++;Xt===z+1&&(yt+=1)}for(qt=E[z+1].sourceEdges.iterator,qt.reset();qt.next();)if(Xt=qt.value,Qt=Xt.fromVertex,Xt.valid&&Qt.layer===y){for(Xt=0;E[Xt]!==Qt;)Xt++;Xt<z&&(mt+=2*(z+1-Xt),yt+=2*(z-Xt)),Xt===z&&(yt+=1),Xt>z+1&&(mt+=4*(Xt-(z+1)),yt+=4*(Xt-z))}for(qt=E[z+1].destinationEdges.iterator,qt.reset();qt.next();)if(Xt=qt.value,Qt=Xt.toVertex,Xt.valid&&Qt.layer===y){for(Xt=0;E[Xt]!==Qt;)Xt++;Xt===z&&(mt+=1)}Xt=Qt=0,qt=tt[E[z].index];var re=rt[E[z].index],ye=tt[E[z+1].index],En=rt[E[z+1].index];qt!==-1&&(Qt+=Math.abs(qt-wt),Xt+=Math.abs(qt-It)),re!==-1&&(Qt+=Math.abs(re-wt),Xt+=Math.abs(re-It)),ye!==-1&&(Qt+=Math.abs(ye-bt),Xt+=Math.abs(ye-Gt)),En!==-1&&(Qt+=Math.abs(En-bt),Xt+=Math.abs(En-Gt)),(yt<mt-.5||yt===mt&&ft<ut-.5||yt===mt&&ft===ut&&Xt<Qt-.5)&&(st=ot=!0,E[z].column=It,E[z+1].column=Gt,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return cd(a,y,E),ot}Rr.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=Uf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Uf(this,y,-1)||x;x=Uf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Uf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Uf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Uf(this,y,0)||x}}else Zx(this)};function Uf(a,y,x){for(var E=!1;Wx(a,y,x);)E=!0;return E}function Wx(a,y,x){var E,b=dd(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 wt=mt=0,bt=0;if(0>=x)for(var Gt=b[E].sourceEdges.iterator;Gt.next();){var It=Gt.value,Xt=It.fromVertex;if(It.valid&&Xt.layer!==y){var Qt=gy(It),qt=It.portFromColOffset;It=It.portToColOffset,Xt=Xt.column,mt+=(Math.abs(ut+It-(Xt+qt))+1)*Qt,wt+=(Math.abs(yt+It-(Xt+qt))+1)*Qt,bt+=(Math.abs(ft+It-(Xt+qt))+1)*Qt}}if(0<=x)for(Gt=b[E].destinationEdges.iterator;Gt.next();)It=Gt.value,Xt=It.toVertex,It.valid&&Xt.layer!==y&&(Qt=gy(It),qt=It.portFromColOffset,It=It.portToColOffset,Xt=Xt.column,mt+=(Math.abs(ut+qt-(Xt+It))+1)*Qt,wt+=(Math.abs(yt+qt-(Xt+It))+1)*Qt,bt+=(Math.abs(ft+qt-(Xt+It))+1)*Qt);It=qt=Qt=0,Gt=tt[b[E].index],Xt=rt[b[E].index],Gt!==-1&&(Qt+=Math.abs(Gt-ut),qt+=Math.abs(Gt-yt),It+=Math.abs(Gt-ft)),Xt!==-1&&(Qt+=Math.abs(Xt-ut),qt+=Math.abs(Xt-yt),It+=Math.abs(Xt-ft)),wt<mt||wt===mt&&qt<Qt?(st=ot=!0,b[E].column=yt):(bt<mt||bt===mt&&It<Qt)&&(st=ot=!0,b[E].column=ft)}return cd(a,y,b),a.normalize(),ot}function yy(a,y,x){var E=dd(a,y),b=a.tc[y],z=ZS(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)}cd(a,y,E),a.normalize()}function Gx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Hx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),ot=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&ot>=y&&(b[E.layer]=!0),rt<=x&&ot>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Gx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Hx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=ds(a),z=x0(a);for(E=z+1;z<E;){E=z,tx(a,x,1);var tt=x0(a);tt>z?tl(a,b):tt<z&&(z=tt,b=ds(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=ds(a),z=x0(a),E=z+1;z<E;)E=z,tx(a,x,-1),tt=x0(a),tt>z?tl(a,b):tt<z&&(z=tt,b=ds(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 Zx(a){for(var y=Dn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new en,Kx(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=P0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=P0(a,y,!1,!1)),E=pi(y),b=E.next();!b.done;b=E.next())b.value.reverse();mt&&(a.verticalAlignment(y,x,!1),ot=P0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=P0(a,y,!0,!0)),Un(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(yt){var wt=Dn();st&&wt.push(z.get(yt)),ut&&wt.push(tt.get(yt)),ft&&wt.push(rt.get(yt)),mt&&wt.push(ot.get(yt)),wt.sort(function(Gt,It){return Gt-It});var bt=wt.length;bt=(wt[Math.floor((bt-1)/2)]+wt[Math.ceil((bt-1)/2)])/2,Un(wt),yt.zc=bt})}function Kx(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=Ey(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=Ey(st)[0].index);z<=ot;){if(st=rt[z],!st.bo){ft=[];for(var mt=pi(st.sourceEdgesArrayAccess),yt=mt.next();!yt.done;yt=mt.next())yt=yt.value,yt.valid&&ft.push(yt);st.bo=ft}for(st=pi(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}}}Rr.prototype.verticalAlignment=function(a,y,x){Vx(a),a=pi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=pi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ey(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?k0(st,z):k0(z,st),!y.contains(ut)&&b<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,b=st.vi)}}}}};function Vx(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 P0(a,y,x,E){for(var b=a.K===90||a.K===270,z=pi(y),tt=z.next();!tt.done;tt=z.next()){var rt=pi(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=pi(y),rt=z.next();!rt.done;rt=z.next()){rt=pi(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 wt=k0(ut,ft),bt=wt.portFromPos,Gt=wt.portToPos;wt.link!==null&&(ut.node&&ut.node!==wt.link.fromNode&&(bt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==wt.link.toNode&&(Gt=tt?ft.focusX:ft.focusY))}else wt=k0(ft,ut),bt=wt.portToPos,Gt=wt.portFromPos,wt.link!==null&&(ut.node&&ut.node!==wt.link.toNode&&(bt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==wt.link.fromNode&&(Gt=tt?ft.focusX:ft.focusY));mt=E?ut.qg+(mt-bt)-(yt-Gt):ut.qg+bt-Gt,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=pi(y),tt=x.next();!tt.done;tt=x.next())for(z=pi(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 Pe,y=pi(y),tt=y.next();!tt.done;tt=y.next())for(x=pi(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&&Ht("Could not determine previous vertex in layer"),y[x][a-1]}Rr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Dn(),b=Dn(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Ux(this,y[tt],E,b,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(ot){return function(st){st.value+=ot.delta}}(z)));Un(E),Un(b)};function Ux(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[b]=z,E[b]=tt,tt-z}Rr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(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 C0(a,y){return a.K===270?y?La:pa:a.K===90?y?pa:La:a.K===180?y?Na:aa:y?aa:Na}Rr.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 Mt(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Rr.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 Ce(0,0,x,Math.abs(this.Ta[0]))):y.push(new Ce(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new Ce(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Ce(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new Ce(0,0,Math.abs(this.Ta[0]),x)):y.push(new Ce(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new Ce(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Ce(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Rr.prototype.commitLayers=function(){},Rr.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===Gs&&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===Ki&&(E=!0),rt!==null&&ot===Ki&&(x=!0),(E||x)&&(ot=null,E&&(ot=y.getLinkPointFromPoint(b,tt,tt.ga(Ui),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(Ui),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var mt=!1,yt=!1,wt=this.ie,bt=y.firstPickIndex+1;if(y.isOrthogonal){yt=!0;var Gt=y.pointsCount;4<Gt&&y.points.removeRange(2,Gt-3)}else if(y.curve===Gs)mt=!0,Gt=y.pointsCount,4<Gt&&y.points.removeRange(2,Gt-3),Gt===4&&(bt=2);else{Gt=y.pointsCount;var It=st===Ki,Xt=ot===Ki;2<Gt&&It&&Xt?y.points.removeRange(1,Gt-2):3<Gt&&It&&!Xt?y.points.removeRange(1,Gt-3):3<Gt&&!It&&Xt?y.points.removeRange(2,Gt-2):4<Gt&&!It&&!Xt&&y.points.removeRange(2,Gt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var Qt=Gt=null;for(It=ft.sourceEdges.iterator;It.next()&&(Xt=It.value,Xt.link!==x.link||(Gt=Xt.fromVertex,Qt=Xt.toVertex,Gt.node!==null)););if(Gt===null)break;if(Gt!==ut){It=y.i(bt-1).x,Xt=y.i(bt-1).y;var qt=Gt.centerX,re=Gt.centerY;if(yt)this.K===180||this.K===0?bt===y.firstPickIndex+1?(y.m(bt++,It,Xt),y.m(bt++,It,re)):(Qt!==null?Qt.centerY:Xt)!==re&&(Qt=this.Ta[Gt.layer-1]+this.Rf.x,y.m(bt++,Qt,Xt),y.m(bt++,Qt,re)):bt===y.firstPickIndex+1?(y.m(bt++,It,Xt),y.m(bt++,qt,Xt)):(Qt!==null?Qt.centerX:It)!==qt&&(Qt=this.Ta[Gt.layer-1]+this.Rf.y,y.m(bt++,It,Qt),y.m(bt++,qt,Qt));else if(bt===y.firstPickIndex+1){Qt=Math.max(10,this.he[ft.layer]);var ye=Math.max(10,this.Ld[ft.layer]);if(mt)this.K===180?qt<=ft.bounds.x?(ft=ft.bounds.x,y.m(bt++,ft-Qt,re),y.m(bt++,ft,re),y.m(bt++,ft+ye,re)):(y.m(bt++,qt-Qt,re),y.m(bt++,qt,re),y.m(bt++,qt+ye,re)):this.K===90?re>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(bt++,qt,ft+ye),y.m(bt++,qt,ft),y.m(bt++,qt,ft-Qt)):(y.m(bt++,qt,re+ye),y.m(bt++,qt,re),y.m(bt++,qt,re-Qt)):this.K===270?re<=ft.bounds.y?(ft=ft.bounds.y,y.m(bt++,qt,ft-Qt),y.m(bt++,qt,ft),y.m(bt++,qt,ft+ye)):(y.m(bt++,qt,re-Qt),y.m(bt++,qt,re),y.m(bt++,qt,re+ye)):this.K===0&&(qt>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(bt++,ft+ye,re),y.m(bt++,ft,re),y.m(bt++,ft-Qt,re)):(y.m(bt++,qt+ye,re),y.m(bt++,qt,re),y.m(bt++,qt-Qt,re)));else{y.m(bt++,It,Xt);var En=0;this.K===180||this.K===0?((this.K===180?qt>=ft.bounds.right:qt<=ft.bounds.x)&&(En=(this.K===0?-Qt:ye)/2),y.m(bt++,It+En,re)):((this.K===270?re>=ft.bounds.bottom:re<=ft.bounds.y)&&(En=(this.K===90?-Qt:ye)/2),y.m(bt++,qt,Xt+En)),y.m(bt++,qt,re)}}else Qt=Math.max(10,this.he[Gt.layer]),ye=Math.max(10,this.Ld[Gt.layer]),mt?this.K===180?(y.m(bt++,qt-Qt-wt,re),y.m(bt++,Math.min(qt-Qt+wt/2,qt),re),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,Math.max(qt+ye-wt/2,qt),re),y.m(bt++,qt+ye+wt,re)):this.K===90?(y.m(bt++,qt,re+ye+wt),y.m(bt++,qt,Math.max(re+ye-wt/2,re)),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,qt,Math.min(re-Qt+wt/2,re)),y.m(bt++,qt,re-Qt-wt)):this.K===270?(y.m(bt++,qt,re-Qt-wt),y.m(bt++,qt,Math.min(re-Qt+wt/2,re)),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,qt,Math.max(re+ye-wt/2,re)),y.m(bt++,qt,re+ye+wt)):(y.m(bt++,qt+ye+wt,re),y.m(bt++,Math.max(qt+ye-wt/2,qt),re),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,Math.min(qt-Qt+wt/2,qt),re),y.m(bt++,qt-Qt-wt,re)):y.m(bt++,qt,re)}ft=Gt}(rt===null||st!==Ki||yt)&&(It=y.i(bt-1).x,Xt=y.i(bt-1).y,qt=y.i(bt).x,re=y.i(bt).y,yt?(wt=this.Ld[ut.layer],this.K===180||this.K===0?(yt=Xt,yt>=ut.bounds.y&&yt<=ut.bounds.bottom&&(this.K===180?qt>=ut.bounds.x:qt<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-wt:wt),yt<ut.bounds.y+ut.bounds.height/2?yt=ut.bounds.y-this.kc/2:yt=ut.bounds.bottom+this.kc/2,y.m(bt++,ft,Xt),y.m(bt++,ft,yt)),y.m(bt++,qt,yt)):(yt=It,yt>=ut.bounds.x&&yt<=ut.bounds.right&&(this.K===270?re>=ut.bounds.y:re<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-wt:wt),yt<ut.bounds.x+ut.bounds.width/2?yt=ut.bounds.x-this.kc/2:yt=ut.bounds.right+this.kc/2,y.m(bt++,It,ft),y.m(bt++,yt,ft)),y.m(bt++,yt,re)),y.m(bt++,qt,re)):mt?(Qt=Math.max(10,this.he[ut.layer]),ye=Math.max(10,this.Ld[ut.layer]),this.K===180&&qt>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(bt-2,ft,Xt),y.L(bt-1,ft+ye,Xt)):this.K===90&&re<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(bt-2,It,ft),y.L(bt-1,It,ft-Qt)):this.K===270&&re>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(bt-2,It,ft),y.L(bt-1,It,ft+ye)):this.K===0&&qt<=ut.bounds.right&&(ft=ut.bounds.x,y.L(bt-2,ft,Xt),y.L(bt-1,ft-Qt,Xt))):(Qt=Math.max(10,this.he[ut.layer]),ye=Math.max(10,this.Ld[ut.layer]),yt=0,this.K===180||this.K===0?((this.K===180?qt<=ut.bounds.x:qt>=ut.bounds.right)&&(yt=(this.K===0?ye:-Qt)/2),y.m(bt++,qt+yt,Xt)):((this.K===270?re<=ut.bounds.y:re>=ut.bounds.bottom)&&(yt=(this.K===90?ye:-Qt)/2),y.m(bt++,It,re+yt)),y.m(bt++,qt,re)))}else{for(;ut!==null&&ut!==ft;){for(Qt=Gt=null,ut=ut.destinationEdges.iterator;ut.next()&&(It=ut.value,It.link!==x.link||(Gt=It.toVertex,Qt=It.fromVertex,Qt.node!==null&&(Qt=null),Gt.node!==null)););if(Gt===null)break;Gt!==ft&&(It=y.i(bt-1).x,Xt=y.i(bt-1).y,qt=Gt.centerX,re=Gt.centerY,yt?this.K===180||this.K===0?(Qt!==null?Qt.centerY:Xt)!==re&&(Qt=this.Ta[Gt.layer]+this.Rf.x,bt===y.firstPickIndex+1&&(Qt=this.K===0?Math.max(Qt,It):Math.min(Qt,It)),y.m(bt++,Qt,Xt),y.m(bt++,Qt,re)):(Qt!==null?Qt.centerX:It)!==qt&&(Qt=this.Ta[Gt.layer]+this.Rf.y,bt===y.firstPickIndex+1&&(Qt=this.K===90?Math.max(Qt,Xt):Math.min(Qt,Xt)),y.m(bt++,It,Qt),y.m(bt++,qt,Qt)):(Qt=Math.max(10,this.he[Gt.layer]),ye=Math.max(10,this.Ld[Gt.layer]),mt?this.K===180?(y.m(bt++,qt+ye+wt,re),y.m(bt++,Math.max(qt+ye-wt/2,qt),re),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,Math.min(qt-Qt+wt/2,qt),re),y.m(bt++,qt-Qt-wt,re)):this.K===90?(y.m(bt++,qt,re-Qt-wt),y.m(bt++,qt,Math.min(re-Qt+wt/2,re)),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,qt,Math.max(re+ye-wt/2,re)),y.m(bt++,qt,re+ye+wt)):this.K===270?(y.m(bt++,qt,re+ye+wt),y.m(bt++,qt,Math.max(re+ye-wt/2,re)),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,qt,Math.min(re-Qt+wt/2,re)),y.m(bt++,qt,re-Qt-wt)):(y.m(bt++,qt-Qt-wt,re),y.m(bt++,Math.min(qt-Qt+wt/2,qt),re),y.m(bt++,qt,re),y.m(bt++,qt,re),y.m(bt++,Math.max(qt+ye-wt/2,qt),re),y.m(bt++,qt+ye+wt,re)):this.K===180?(y.m(bt++,qt+ye,re),y.m(bt++,qt-Qt,re)):this.K===90?(y.m(bt++,qt,re-Qt),y.m(bt++,qt,re+ye)):this.K===270?(y.m(bt++,qt,re+ye),y.m(bt++,qt,re-Qt)):(y.m(bt++,qt-Qt,re),y.m(bt++,qt+ye,re)))),ut=Gt}yt&&(It=y.i(bt-1).x,Xt=y.i(bt-1).y,qt=y.i(bt).x,re=y.i(bt).y,this.K===180||this.K===0?Xt!==re&&(Qt=this.K===0?Math.min(Math.max((qt+It)/2,this.Ta[ft.layer]+this.Rf.x),qt):Math.max(Math.min((qt+It)/2,this.Ta[ft.layer]+this.Rf.x),qt),y.m(bt++,Qt,Xt),y.m(bt++,Qt,re)):It!==qt&&(Qt=this.K===90?Math.min(Math.max((re+Xt)/2,this.Ta[ft.layer]+this.Rf.y),re):Math.max(Math.min((re+Xt)/2,this.Ta[ft.layer]+this.Rf.y),re),y.m(bt++,It,Qt),y.m(bt++,qt,Qt)))}E!==null&&mt&&4<=y.pointsCount&&(tt!==null&&(tt=st===Ki?y.getLinkPointFromPoint(b,tt,tt.ga(Ui),y.i(3),!0):y.i(0),st===Ki&&(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===Ki?y.getLinkPointFromPoint(z,rt,rt.ga(Ui),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Ki&&(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()},Rr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new tn,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 fd;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 wt=this.linkSpacing*(ut-(st-1)/2);y++,yt.uh(),yt.L(mt.index,z.x,z.y+wt),yt.L(mt.index+1,tt.x,tt.y+wt),yt.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),tt=E.i(b+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new fd,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),wt=this.linkSpacing*(ut-(st-1)/2),y++,yt.uh(),yt.L(mt.index,z.x+wt,z.y),yt.L(mt.index+1,tt.x+wt,tt.y),yt.zf()}z=b}a=E}}}},Ct=Rr.prototype,Ct.Vx=function(a,y){return a instanceof fd&&y instanceof fd&&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},Ct.Ux=function(a,y){return a instanceof fd&&y instanceof fd&&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},Ct.Js=function(a,y){return a instanceof fd&&y instanceof fd&&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},Ct.B=function(a,y){return a-=y,-1<a&&1>a},Ct.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Ht("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 dd(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 cd(a,y,x){a.He[a.tc[y]]=x}ce.Object.defineProperties(Rr.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()):Ht("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==L0&&a!==Pp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==A0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==E0&&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!==Ly&&a!==b0&&a!==Ay||(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 L0=new Ue(Rr,"CycleDepthFirst",0),Sy=new Ue(Rr,"CycleGreedy",1),Pp=new Ue(Rr,"CycleFromLayers",2),A0=new Ue(Rr,"LayerOptimalLinkLength",0),xy=new Ue(Rr,"LayerLongestPathSink",1),wy=new Ue(Rr,"LayerLongestPathSource",2),E0=new Ue(Rr,"InitDepthFirstOut",0),Py=new Ue(Rr,"InitDepthFirstIn",1),Cy=new Ue(Rr,"InitNaive",2),Ly=new Ue(Rr,"AggressiveNone",0),b0=new Ue(Rr,"AggressiveLess",1),Ay=new Ue(Rr,"AggressiveMore",2),Yx=8;Rr.className="LayeredDigraphLayout",Rr.CycleDepthFirst=L0,Rr.CycleGreedy=Sy,Rr.CycleFromLayers=Pp,Rr.LayerOptimalLinkLength=A0,Rr.LayerLongestPathSink=xy,Rr.LayerLongestPathSource=wy,Rr.InitDepthFirstOut=E0,Rr.InitDepthFirstIn=Py,Rr.InitNaive=Cy,Rr.AggressiveNone=Ly,Rr.AggressiveLess=b0,Rr.AggressiveMore=Ay,Rr.PackNone=0,Rr.PackExpand=1,Rr.PackStraighten=2,Rr.PackMedian=4,Rr.PackAll=15,Rr.AlignNone=0,Rr.AlignUpperLeft=1,Rr.AlignUpperRight=2,Rr.AlignLowerLeft=4,Rr.AlignLowerRight=8,Rr.AlignAll=15;function fd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}fd.className="SegInfo";function Yf(a){Xr.call(this,a)}ue(Yf,Xr),Yf.prototype.createVertex=function(){return new el(this)},Yf.prototype.createEdge=function(){return new Cp(this)},Yf.className="LayeredDigraphNetwork";function el(a){Ko.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}ue(el,Ko);function ix(a,y){return a.index-y.index}function k0(a,y){if(!a.$n){for(var x=[],E=pi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=pi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ht("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=pi(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=pi(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}el.prototype.Cl=function(a){Ko.prototype.Cl.call(this,a),this.bo=this.co=null},el.prototype.Kl=function(a){Ko.prototype.Kl.call(this,a),this.bo=this.co=null},el.prototype.zl=function(a){Ko.prototype.zl.call(this,a),this.$n=this.ao=null},el.prototype.Jl=function(a){Ko.prototype.Jl.call(this,a),this.$n=this.ao=null},ce.Object.defineProperties(el.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)}}}),el.prototype.deleteDestinationEdge=el.prototype.Jl,el.prototype.addDestinationEdge=el.prototype.zl,el.prototype.deleteSourceEdge=el.prototype.Kl,el.prototype.addSourceEdge=el.prototype.Cl,el.className="LayeredDigraphVertex";function Cp(a){ks.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}ue(Cp,ks),ce.Object.defineProperties(Cp.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)}}}),Cp.className="LayeredDigraphEdge";function ar(a){lo.call(this),this.Ub=new en,this.Wn=D0,this.ud=Lu,this.vo=T0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=O0,this.$d=new Ve(10,10).freeze();var y=new Zc(this);this.W=new gl(y),this.Y=new gl(y),this.ru=[],a&&Object.assign(this,a)}ue(ar,lo),ar.prototype.cloneProtected=function(a){lo.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)},ar.prototype.qb=function(a){a.classType===ar?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:Ht("Unknown enum value: "+a):lo.prototype.qb.call(this,a)},ar.prototype.createNetwork=function(){return new Zc(this)},ar.prototype.makeNetwork=function(a){function y(E){if(E instanceof Fn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof gn){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 Se?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Oi?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ar.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==I0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Se&&(y=a),this.path===D0&&y!==null?this.ud=y.isTreePathToChildren?Lu:Gc:this.ud=this.path===D0?Lu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new en,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Fn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof gl&&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 gl&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gl&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gl&&lx(this,y);if(this.Cu(),this.layerStyle===R0){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 gl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new en,this.isValidLayout=!0};function Jx(a){var y=new en;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ar.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Lu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Gc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ht("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 Lu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Gc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:Ht("Unhandled path value "+a.ud.toString())}}return E}function by(a,y){if(y!==null){switch(a.ud){case Lu:if(0<y.destinationEdges.count){for(var x=new tn,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 Gc:if(0<y.sourceEdges.count){for(x=new tn,E=y.sourceVertexes;E.next();)b=E.value,ox(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:Ht("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}ar.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===bu&&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 T0: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 Ty:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ny:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}ar.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===bu){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])}}ar.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==bu&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)lx(a,y[E])}}ar.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xf:break;case Ap:a.children.reverse();break;case Ep:a.children.sort(a.comparer);break;case bp:a.children.sort(a.comparer),a.children.reverse();break;default:Ht("Unhandled sorting value "+a.sorting.toString())}},ar.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ar.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=gd(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=Ce.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,Ce.free(b))};function gd(a){return a===bh||a===bu||a===kh||a===Uu}function Lp(a){return a===bh||a===bu}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(gd(x)){if(Lp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kh)return!0}}return!1}ar.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=gd(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,rt=ky(a),ot=0,st=a.comments,ut=st.length,ft=Mt.alloc(),mt=0;mt<ut;mt++){var yt=st[mt],wt=yt.measuredBounds;if(E&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<b&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-wt.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();){var bt=yt.value;bt.fromSpot=Na,bt.toSpot=aa}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();)bt=yt.value,bt.fromSpot=aa,bt.toSpot=Na;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();)bt=yt.value,bt.fromSpot=aa,bt.toSpot=Na;else for(ft.h(a.bounds.x+a.commentMargin-wt.width,a.bounds.y+ot),yt.move(ft),yt=yt.Sd();yt.next();)bt=yt.value,bt.fromSpot=Na,bt.toSpot=aa;ot=0<=a.commentSpacing?ot+(wt.height+a.commentSpacing):ot+(a.commentSpacing-wt.height)}else{if(135<b&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-wt.height),yt.move(ft),yt=yt.Sd();yt.next();)bt=yt.value,bt.fromSpot=La,bt.toSpot=pa;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();)bt=yt.value,bt.fromSpot=pa,bt.toSpot=La;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();)bt=yt.value,bt.fromSpot=pa,bt.toSpot=La;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-wt.height),yt.move(ft),yt=yt.Sd();yt.next();)bt=yt.value,bt.fromSpot=La,bt.toSpot=pa;ot=0<=a.commentSpacing?ot+(wt.width+a.commentSpacing):ot+(a.commentSpacing-wt.width)}}if(Mt.free(ft),y=ot-a.commentSpacing-(E?y.height:y.width),this.ud===Lu)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)}},ar.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 N0:ux(this,a);break;case kp:if(a.alignment===bu)ux(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=gd(x)),E=ky(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=kl(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===Au;var st=ot===Eu,ut=gd(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var mt=a.nodeSpacing,yt=this.computeNodeIndent(a),wt=a.rowSpacing,bt=0;(E||st||a.hm||a.im&&a.maxGenerationCount===1)&&(bt=Math.max(0,a.rowIndent)),E=a.width;var Gt=a.height,It=0,Xt=0,Qt=0,qt=null,re=null,ye=0,En=0,qn=0,Kn=0,fn=0,Ze=0,Ti=0,Bi=0;if(ut&&!Lp(ot)&&135<b&&tt.reverse(),Lp(ot))if(1<rt)for(var Cr=0;Cr<rt;Cr++)Cr%2===0&&Cr!==rt-1&&(Bi=Math.max(Bi,y?tt[Cr].Da.width:tt[Cr].Da.height));else rt===1&&(Bi=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case bh:Xt=135>b?hx(this,a,tt,Bi,It,Xt):dx(this,a,tt,Bi,It,Xt),Bi=Xt.x,It=Xt.width,Xt=Xt.height;break;case kh:for(qt=0;qt<rt;qt++)re=tt[qt],ft=re.Da,Qt=Ze===0?0:wt,y?(re.S.h(z-ft.width,Kn+Qt),It=Math.max(It,ft.width),Xt=Math.max(Xt,Kn+Qt+ft.height),Kn+=Qt+ft.height):(re.S.h(qn+Qt,z-ft.height),It=Math.max(It,qn+Qt+ft.width),Xt=Math.max(Xt,ft.height),qn+=Qt+ft.width),Ze++;break;case Uu:for(qt=0;qt<rt;qt++)re=tt[qt],z=re.Da,ft=Ze===0?0:wt,y?(re.S.h(mt/2+a.focus.x,Kn+ft),It=Math.max(It,z.width),Xt=Math.max(Xt,Kn+ft+z.height),Kn+=ft+z.height):(re.S.h(qn+ft,mt/2+a.focus.y),It=Math.max(It,qn+ft+z.width),Xt=Math.max(Xt,z.height),qn+=ft+z.width),Ze++}qt=vs(this,2),re=vs(this,2),y?(qt[0].h(0,0),qt[1].h(0,Xt),re[0].h(It,0)):(qt[0].h(0,0),qt[1].h(It,0),re[0].h(0,Xt)),re[1].h(It,Xt)}else for(Cr=0;Cr<rt;Cr++){var Ur=tt[Cr],Qo=Ur.Da;if(y){0<ft&&0<Ze&&qn+mt+Qo.width>ft&&(qn<z&&$d(a,ot,z-qn,0,Ti,Cr-1),fn++,Ze=0,Ti=Cr,Qt=Xt,qn=0,Kn=135<b?-Xt-wt:Xt+wt),F0(this,Ur,0,Kn);var ta=0;if(Ze===0)qt=Ur.Yo,re=Ur.kp,ye=Qo.width,En=Qo.height,(qt===null||re===null||b!==kl(Ur))&&(qt=vs(this,2),re=vs(this,2),qt[0].h(0,0),qt[1].h(0,En),re[0].h(ye,0),re[1].h(ye,En));else{var za=Dn();En=cx(this,a,Ur,qt,re,ye,En,za),ta=En.x,qt=za[0],re=za[1],ye=En.width,En=En.height,Un(za),qn<Qo.width&&0>ta&&(Wc(a,-ta,0,Ti,Cr-1),B0(qt,-ta,0),B0(re,-ta,0),ta=0)}Ur.S.h(ta,Kn),It=Math.max(It,ye),Xt=Math.max(Xt,Qt+(fn===0?0:wt)+Qo.height),qn=ye}else 0<ft&&0<Ze&&Kn+mt+Qo.height>ft&&(Kn<z&&$d(a,ot,0,z-Kn,Ti,Cr-1),fn++,Ze=0,Ti=Cr,Qt=It,Kn=0,qn=135<b?-It-wt:It+wt),F0(this,Ur,qn,0),ta=0,Ze===0?(qt=Ur.Yo,re=Ur.kp,ye=Qo.width,En=Qo.height,(qt===null||re===null||b!==kl(Ur))&&(qt=vs(this,2),re=vs(this,2),qt[0].h(0,0),qt[1].h(ye,0),re[0].h(0,En),re[1].h(ye,En))):(za=Dn(),En=cx(this,a,Ur,qt,re,ye,En,za),ta=En.x,qt=za[0],re=za[1],ye=En.width,En=En.height,Un(za),Kn<Qo.height&&0>ta&&(Wc(a,0,-ta,Ti,Cr-1),B0(qt,0,-ta),B0(re,0,-ta),ta=0)),Ur.S.h(qn,ta),Xt=Math.max(Xt,En),It=Math.max(It,Qt+(fn===0?0:wt)+Qo.width),Kn=En;Ze++}switch(0<fn&&(y?(Xt+=Math.max(0,x),qn<It&&$d(a,ot,It-qn,0,Ti,rt-1),0<bt&&(st||Wc(a,bt,0,0,rt-1),It+=bt)):(It+=Math.max(0,x),Kn<Xt&&$d(a,ot,0,Xt-Kn,Ti,rt-1),0<bt&&(st||Wc(a,0,bt,0,rt-1),Xt+=bt))),bt=st=0,ot){case Jf:y?st+=It/2-a.focus.x-yt/2:bt+=Xt/2-a.focus.y-yt/2;break;case Hc:0<fn?y?st+=It/2-a.focus.x-yt/2:bt+=Xt/2-a.focus.y-yt/2:y?(Bi=tt[0].S.x+tt[0].la.x,st+=Bi+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Bi)/2-a.focus.x-yt/2):(Bi=tt[0].S.y+tt[0].la.y,bt+=Bi+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Bi)/2-a.focus.y-yt/2);break;case Au:y?(st-=yt,It+=yt):(bt-=yt,Xt+=yt);break;case Eu:y?(st+=It-a.width+yt,It+=yt):(bt+=Xt-a.height+yt,Xt+=yt);break;case bh:y?1<rt?st+=Bi+mt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?bt+=Bi+mt/2-a.focus.y:bt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case kh:y?st+=It+mt/2-a.focus.x:bt+=Xt+mt/2-a.focus.y;break;case Uu:break;default:Xt=this.customAlignment(a,st,bt,It,Xt),st=Xt[0],bt=Xt[1],It=Xt[2],Xt=Xt[3]}for(yt=0;yt<rt;yt++)Bi=tt[yt],y?Bi.S.h(Bi.S.x+Bi.la.x-st,Bi.S.y+(135<b?(ut?-Xt:-Bi.Da.height)+Bi.la.y-x:Gt+x+Bi.la.y)):Bi.S.h(Bi.S.x+(135<b?(ut?-It:-Bi.Da.width)+Bi.la.x-x:E+x+Bi.la.x),Bi.S.y+Bi.la.y-bt);if(rt=tt=0,ut?y?(It=My(a,It,st),0>st&&(st=0),135<b&&(bt+=Xt+x),Xt+=Gt+x,ot===Uu&&(tt+=mt/2+a.focus.x),rt+=Gt+x):(135<b&&(st+=It+x),It+=E+x,Xt=Fy(a,Xt,bt),0>bt&&(bt=0),ot===Uu&&(rt+=mt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>It&&(It=By(ot,E-It,0),tt=It.x,rt=It.y,It=E,st=0):It=My(a,It,st),0>st&&(tt-=st,st=0),135<b&&(bt+=Xt+x),Xt=Math.max(Math.max(Xt,Gt),Xt+Gt+x),rt+=Gt+x):(135<b&&(st+=It+x),It=Math.max(Math.max(It,E),It+E+x),a.comments===null?Gt>Xt&&(Xt=By(ot,0,Gt-Xt),tt=Xt.x,rt=Xt.y,Xt=Gt,bt=0):Xt=Fy(a,Xt,bt),0>bt&&(rt-=bt,bt=0),tt+=E+x),0<fn)b=vs(this,4),fn=vs(this,4),y?(b[2].h(0,Gt+x),b[3].h(b[2].x,Xt),fn[2].h(It,b[2].y),fn[3].h(fn[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(It,b[2].y),fn[2].h(b[2].x,Xt),fn[3].h(b[3].x,fn[2].y));else{for(b=vs(this,qt.length+2),fn=vs(this,re.length+2),ot=0;ot<qt.length;ot++)ut=qt[ot],b[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<re.length;ot++)ut=re[ot],fn[ot+2].h(ut.x+tt,ut.y+rt)}y?(b[0].h(st,0),b[1].h(b[0].x,Gt),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])),fn[0].h(st+E,0),fn[1].h(fn[0].x,Gt),fn[2].y<fn[1].y&&(fn[2].x<fn[0].x?fn[2].assign(fn[1]):fn[1].assign(fn[2])),fn[3].y<fn[2].y&&(fn[3].x<fn[0].x?fn[3].assign(fn[2]):fn[2].assign(fn[3])),b[2].y-=x/2,fn[2].y-=x/2):(b[0].h(0,bt),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])),fn[0].h(0,bt+Gt),fn[1].h(E,fn[0].y),fn[2].x<fn[1].x&&(fn[2].y<fn[0].y?fn[2].assign(fn[1]):fn[1].assign(fn[2])),fn[3].x<fn[2].x&&(fn[3].y<fn[0].y?fn[3].assign(fn[2]):fn[2].assign(fn[3])),b[2].x-=x/2,fn[2].x-=x/2),jl(this,qt),jl(this,re),a.Yo=b,a.kp=fn,a.la.h(st,bt),a.Da.h(It,Xt)}break;default:Ht("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=gd(x));var b=ky(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=kl(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===Au,ft=st===Eu;rt=gd(st);var mt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var yt=y.nodeSpacing,wt=a.computeNodeIndent(y),bt=ut||ft?0:wt/2,Gt=y.rowSpacing,It=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(It=Math.max(0,y.rowIndent)),ut=y.width;var Xt=y.height,Qt=0,qt=0,re=0,ye=0,En=0,qn=0,Kn=0,fn=0,Ze=0,Ti=0;if(rt&&!Lp(st)&&135<E&&b.reverse(),Lp(st))if(1<tt)for(var Bi=0;Bi<tt;Bi++){var Cr=b[Bi],Ur=Cr.Da;Bi%2===0&&Bi!==tt-1?Ze=Math.max(Ze,(x?Ur.width:Ur.height)+a.computeBusNodeSpacing(Cr)-yt):Bi%2!==0&&(Ti=Math.max(Ti,(x?Ur.width:Ur.height)+a.computeBusNodeSpacing(Cr)-yt))}else tt===1&&(Ze=x?b[0].Da.width:b[0].Da.height);if(rt)switch(st){case bh:case bu:qt=135>E?hx(a,y,b,Ze,Qt,qt):dx(a,y,b,Ze,Qt,qt),Ze=qt.x,Qt=qt.width,qt=qt.height;break;case kh:for(mt=0;mt<tt;mt++)bt=b[mt],re=bt.Da,Ti=Kn===0?0:Gt,x?(bt.S.h(z-re.width,En+Ti),Qt=Math.max(Qt,re.width),qt=Math.max(qt,En+Ti+re.height),En+=Ti+re.height):(bt.S.h(ye+Ti,z-re.height),Qt=Math.max(Qt,ye+Ti+re.width),qt=Math.max(qt,re.height),ye+=Ti+re.width),Kn++;break;case Uu:for(z=0;z<tt;z++)mt=b[z],bt=mt.Da,re=Kn===0?0:Gt,x?(mt.S.h(yt/2+y.focus.x,En+re),Qt=Math.max(Qt,bt.width),qt=Math.max(qt,En+re+bt.height),En+=re+bt.height):(mt.S.h(ye+re,yt/2+y.focus.y),Qt=Math.max(Qt,ye+re+bt.width),qt=Math.max(qt,bt.height),ye+=re+bt.width),Kn++}else for(Ti=0;Ti<tt;Ti++)Bi=b[Ti],Cr=Bi.Da,x?(0<mt&&0<Kn&&ye+yt+Cr.width>mt&&(ye<z&&$d(y,st,z-ye,0,fn,Ti-1),qn++,Kn=0,fn=Ti,re=qt,ye=0,En=135<E?-qt-Gt:qt+Gt),Ur=Kn===0?bt:yt,F0(a,Bi,0,En),Bi.S.h(ye+Ur,En),Qt=Math.max(Qt,ye+Ur+Cr.width),qt=Math.max(qt,re+(qn===0?0:Gt)+Cr.height),ye+=Ur+Cr.width):(0<mt&&0<Kn&&En+yt+Cr.height>mt&&(En<z&&$d(y,st,0,z-En,fn,Ti-1),qn++,Kn=0,fn=Ti,re=Qt,En=0,ye=135<E?-Qt-Gt:Qt+Gt),Ur=Kn===0?bt:yt,F0(a,Bi,ye,0),Bi.S.h(ye,En+Ur),qt=Math.max(qt,En+Ur+Cr.height),Qt=Math.max(Qt,re+(qn===0?0:Gt)+Cr.width),En+=Ur+Cr.height),Kn++;switch(0<qn&&(x?(qt+=Math.max(0,ot),ye<Qt&&$d(y,st,Qt-ye,0,fn,tt-1),0<It&&(ft||Wc(y,It,0,0,tt-1),Qt+=It)):(Qt+=Math.max(0,ot),En<qt&&$d(y,st,0,qt-En,fn,tt-1),0<It&&(ft||Wc(y,0,It,0,tt-1),qt+=It))),It=ft=0,st){case Jf:x?ft+=Qt/2-y.focus.x-wt/2:It+=qt/2-y.focus.y-wt/2;break;case Hc:0<qn?x?ft+=Qt/2-y.focus.x-wt/2:It+=qt/2-y.focus.y-wt/2:x?(a=b[0].S.x+b[0].la.x,ft+=a+(b[tt-1].S.x+b[tt-1].la.x+2*b[tt-1].focus.x-a)/2-y.focus.x-wt/2):(a=b[0].S.y+b[0].la.y,It+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-wt/2);break;case Au:x?(ft-=wt,Qt+=wt):(It-=wt,qt+=wt);break;case Eu:x?(ft+=Qt-y.width+wt,Qt+=wt):(It+=qt-y.height+wt,qt+=wt);break;case bh:case bu:x?1<tt?ft+=Ze+yt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?It+=Ze+yt/2-y.focus.y:It+=b[0].focus.y-y.focus.y+b[0].la.y;break;case kh:x?ft+=Qt+yt/2-y.focus.x:It+=qt+yt/2-y.focus.y;break;case Uu:break;default:a=a.customAlignment(y,ft,It,Qt,qt),ft=a[0],It=a[1],Qt=a[2],qt=a[3]}for(a=0;a<tt;a++)wt=b[a],x?wt.S.h(wt.S.x+wt.la.x-ft,wt.S.y+(135<E?(rt?-qt:-wt.Da.height)+wt.la.y-ot:Xt+ot+wt.la.y)):wt.S.h(wt.S.x+(135<E?(rt?-Qt:-wt.Da.width)+wt.la.x-ot:ut+ot+wt.la.x),wt.S.y+wt.la.y-It);x?(Qt=My(y,Qt,ft),0>ft&&(ft=0),135<E&&(It+=qt+ot),qt=Math.max(Math.max(qt,Xt),qt+Xt+ot)):(135<E&&(ft+=Qt+ot),Qt=Math.max(Math.max(Qt,ut),Qt+ut+ot),qt=Fy(y,qt,It),0>It&&(It=0)),y.la.h(ft,It),y.Da.h(Qt,qt)}}ar.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 Ce(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Ce(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=kl(y)===90,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var wt=x[yt],bt=wt.Da,Gt=ut===0?0:ot;if(st){var It=a.computeBusNodeSpacing(wt)-rt;wt.S.h(E-(bt.width+It),mt+Gt),b=Math.max(b,bt.width+It),z=Math.max(z,mt+Gt+bt.height),mt+=Gt+bt.height}else It=a.computeBusNodeSpacing(wt)-rt,wt.S.h(ft+Gt,E-(bt.height+It)),z=Math.max(z,bt.height+It),b=Math.max(b,ft+Gt+bt.width),ft+=Gt+bt.width;ut++}for(ut=0,wt=ft,yt=mt,st?(ft=E+rt,mt=0):(ft=0,mt=E+rt),bt=0;bt<tt;bt++)if(bt%2!==0){Gt=x[bt],It=Gt.Da;var Xt=ut===0?0:ot;if(st){var Qt=a.computeBusNodeSpacing(Gt)-rt;Gt.S.h(ft+Qt,mt+Xt),b=Math.max(b,ft+It.width+Qt),z=Math.max(z,mt+Xt+It.height),mt+=Xt+It.height}else Qt=a.computeBusNodeSpacing(Gt)-rt,Gt.S.h(ft+Xt,mt+Qt),b=Math.max(b,ft+Xt+It.width),z=Math.max(z,mt+It.height+Qt),ft+=Xt+It.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(wt),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=M0(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(wt,ft)+a+tt.width),mt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,mt+tt.height),0>mt&&(z-=mt),0>x.S.y&&(E=M0(y,x.S.y,!0,E,rt)))),new Ce(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Ce(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Ce(E,0,b,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,st=kl(y)===270,ut=0,ft=0,mt=0,yt=0;yt<tt;yt++)if(!(yt%2!==0||1<tt&&yt===tt-1)){var wt=x[yt],bt=wt.Da,Gt=ut===0?0:ot;if(st){var It=a.computeBusNodeSpacing(wt)-rt;mt-=Gt+bt.height,wt.S.h(E-(bt.width+It),mt),b=Math.max(b,bt.width+It),z=Math.max(z,Math.abs(mt))}else It=a.computeBusNodeSpacing(wt)-rt,ft-=Gt+bt.width,wt.S.h(ft,E-(bt.height+It)),z=Math.max(z,bt.height+It),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,wt=ft,yt=mt,st?(ft=E+rt,mt=0):(ft=0,mt=E+rt),bt=0;bt<tt;bt++)if(bt%2!==0){Gt=x[bt],It=Gt.Da;var Xt=ut===0?0:ot;if(st){var Qt=a.computeBusNodeSpacing(Gt)-rt;mt-=Xt+It.height,Gt.S.h(ft+Qt,mt),b=Math.max(b,ft+It.width+Qt),z=Math.max(z,Math.abs(mt))}else Qt=a.computeBusNodeSpacing(Gt)-rt,ft-=Xt+It.width,Gt.S.h(ft,mt+Qt),z=Math.max(z,mt+It.height+Qt),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(wt),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=M0(y,ot.S.x,!1,E,rt))):(ot.S.h(-b-ut.width-a,E+rt/2-ot.focus.y-ot.la.y),b=Math.max(b,Math.abs(Math.min(wt,ft))+a+ut.width),mt=E+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,mt+ut.height),0>mt&&(z-=mt),0>ot.S.y&&(E=M0(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 Ce(E,0,b,z)}ar.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ar.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function M0(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 My(a,y,x){switch(a.alignment){case Hc:case Jf:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Au:return a.width>y?a.width:y;case Eu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case bh:case bu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kh:return a.width-a.focus.x+a.nodeSpacing/2+y;case Uu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case Hc:case Jf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Au:return a.height>y?a.height:y;case Eu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case bh:case bu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kh:return a.height-a.focus.y+a.nodeSpacing/2+y;case Uu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a){case Jf:y/=2,x/=2;break;case Hc:y/=2,x/=2;break;case Au:x=y=0;break;case Eu:break;default:Ht("Unhandled alignment value "+a.toString())}return new Mt(y,x)}function $d(a,y,x,E,b,z){y=By(y,x,E),Wc(a,y.x,y.y,b,z)}function Wc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function F0(a,y,x,E){var b=y.parent;switch(a.ud){case Lu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Gc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Ht("Unhandled path value "+a.ud.toString())}}function B0(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=kl(y),st=ot===90||ot===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var mt=tt,yt=x.Yo,wt=x.kp;tt=x.Da;var bt=st?Math.max(mt,tt.height):Math.max(E,tt.width);if((yt===null||ot!==kl(x))&&(yt=vs(a,2),wt=vs(a,2),st?(yt[0].h(0,0),yt[1].h(0,tt.height),wt[0].h(tt.width,0),wt[1].h(wt[0].x,yt[1].y)):(yt[0].h(0,0),yt[1].h(tt.width,0),wt[0].h(0,tt.height),wt[1].h(yt[1].x,wt[0].y))),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 Gt=yt[b];ot=Gt.x,st=Gt.y,ot+=E;var It=z;x+1<ft.length&&(It=ft[x+1]);var Xt=Gt;Gt=Xt.x,Xt=Xt.y,b+1<yt.length&&(Xt=yt[b+1],Gt=Xt.x,Xt=Xt.y,Gt+=E);var Qt=mt;z.y===st?Qt=ot-z.x:z.y>st&&z.y<Xt?Qt=ot+(z.y-st)/(Xt-st)*(Gt-ot)-z.x:st>z.y&&st<It.y&&(Qt=ot-(z.x+(st-z.y)/(It.y-z.y)*(It.x-z.x))),Qt<mt&&(mt=Qt),It.y<=z.y?x++:Xt<=st?b++:(It.y<=Xt&&x++,Xt<=It.y&&b++)}if(mt=E-mt,mt+=ut,x=yt,b=mt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=vs(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=vs(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);jl(a,ut),E=x}if(z=wt,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=vs(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].y<z[0].y;)It=ft[x++],ut[b++].h(It.x,It.y);for(;st<z.length;)It=z[st++],ut[b++].h(It.x+ot,It.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=vs(a,b),x=0;x<b;x++)z[x].assign(ut[x]);jl(a,ut),b=z}return z=Math.max(0,mt)+tt.width,tt=bt,jl(a,y),jl(a,yt),jl(a,ft),jl(a,wt),rt[0]=E,rt[1]=b,new Ce(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],Gt=yt[b],ot=Gt.x,st=Gt.y,st+=mt,It=z,x+1<ft.length&&(It=ft[x+1]),Xt=Gt,Gt=Xt.x,Xt=Xt.y,b+1<yt.length&&(Xt=yt[b+1],Gt=Xt.x,Xt=Xt.y,Xt+=mt),Qt=E,z.x===ot?Qt=st-z.y:z.x>ot&&z.x<Gt?Qt=st+(z.x-ot)/(Gt-ot)*(Xt-st)-z.y:ot>z.x&&ot<It.x&&(Qt=st-(z.y+(ot-z.x)/(It.x-z.x)*(It.y-z.y))),Qt<E&&(E=Qt),It.x<=z.x?x++:Gt<=ot?b++:(It.x<=Gt&&x++,Gt<=It.x&&b++);if(mt-=E,mt+=ut,x=yt,b=mt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=vs(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=vs(a,E),ot=0;ot<E;ot++)x[ot].assign(ut[ot]);jl(a,ut),E=x}if(z=wt,ot=mt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=vs(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].x<z[0].x;)It=ft[x++],ut[b++].h(It.x,It.y);for(;st<z.length;)It=z[st++],ut[b++].h(It.x,It.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[b++].h(ot.x,ot.y);for(z=vs(a,b),x=0;x<b;x++)z[x].assign(ut[x]);jl(a,ut),b=z}return z=bt,tt=Math.max(0,mt)+tt.height,jl(a,y),jl(a,yt),jl(a,ft),jl(a,wt),rt[0]=E,rt[1]=b,new Ce(mt,0,z,tt)}function vs(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 Mt;return a}function jl(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}ar.prototype.arrangeTrees=function(){if(this.Rb===I0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof gl){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 gl&&a.push(x);switch(this.sorting){case Xf:break;case Ap:a.reverse();break;case Ep:a.sort(this.comparer);break;case bp:a.sort(this.comparer),a.reverse();break;default:Ht("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 O0:x+=b.Da.height+this.$d.height;break;case Iy:y+=b.Da.width+this.$d.width;break;default:Ht("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)}}}ar.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ar.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ar.prototype.Gu=function(){if(this.layerStyle===R0){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 Mt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Mt(-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 Ce(0,z,x,rt))):this.angle===90?(b.push(new Ce(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new Ce(z,0,rt,x))):(b.push(new Ce(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},ar.prototype.commitLayers=function(){},ar.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ar.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof gl&&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])}}ar.prototype.setPortSpots=function(a){var y=a.alignment;if(gd(y)){var x=this.ud===Lu,E=kl(a);switch(E){case 0:var b=aa;break;case 90:b=pa;break;case 180:b=Na;break;default:b=La}var z=a.children,tt=z.length;switch(y){case bh:case bu: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?Na:La;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:ot=Na;break;case 90:ot=La;break;case 180:ot=aa;break;default:ot=pa}else y%2===0&&(ot=E===90||E===270?aa:pa);x?(a.setsPortSpot&&(rt.fromSpot=b),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=b))}}break;case kh:for(E=E===90||E===270?aa:pa,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 Uu:for(E=E===90||E===270?Na:La,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=kl(a),this.ud===Lu){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=aa;break;case 90:E.fromSpot=pa;break;case 180:E.fromSpot=Na;break;default:E.fromSpot=La}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Na;break;case 90:E.toSpot=La;break;case 180:E.toSpot=aa;break;default:E.toSpot=pa}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=aa;break;case 90:E.toSpot=pa;break;case 180:E.toSpot=Na;break;default:E.toSpot=La}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Na;break;case 90:E.fromSpot=La;break;case 180:E.fromSpot=aa;break;default:E.fromSpot=pa}else E.fromSpot=a.childPortSpot}};function kl(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ar.prototype.computeLayerSpacing=function(a){var y=kl(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},ar.prototype.computeNodeIndent=function(a){var y=kl(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)},ce.Object.defineProperties(ar.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!==T0&&a!==Ty&&a!==Ny&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==R0||(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!==O0&&a!==Iy&&a!==I0||(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!==Xf&&a!==Ap&&a!==Ep&&!bp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Ht("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!==N0&&a!==kp||(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!==Xf&&a!==Ap&&a!==Ep&&!bp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==N0&&a!==kp||(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 D0=new Ue(ar,"PathDefault",-1),Lu=new Ue(ar,"PathDestination",0),Gc=new Ue(ar,"PathSource",1),Xf=new Ue(ar,"SortingForwards",10),Ap=new Ue(ar,"SortingReverse",11),Ep=new Ue(ar,"SortingAscending",12),bp=new Ue(ar,"SortingDescending",13),Jf=new Ue(ar,"AlignmentCenterSubtrees",20),Hc=new Ue(ar,"AlignmentCenterChildren",21),Au=new Ue(ar,"AlignmentStart",22),Eu=new Ue(ar,"AlignmentEnd",23),bh=new Ue(ar,"AlignmentBus",24),bu=new Ue(ar,"AlignmentBusBranching",25),kh=new Ue(ar,"AlignmentTopLeftBus",26),Uu=new Ue(ar,"AlignmentBottomRightBus",27),N0=new Ue(ar,"CompactionNone",30),kp=new Ue(ar,"CompactionBlock",31),T0=new Ue(ar,"StyleLayered",40),Ny=new Ue(ar,"StyleLastParents",41),Ty=new Ue(ar,"StyleAlternating",42),Oy=new Ue(ar,"StyleRootOnly",43),O0=new Ue(ar,"ArrangementVertical",50),Iy=new Ue(ar,"ArrangementHorizontal",51),I0=new Ue(ar,"ArrangementFixedRoots",52),Ry=new Ue(ar,"LayerIndividual",60),zy=new Ue(ar,"LayerSiblings",61),R0=new Ue(ar,"LayerUniform",62);ar.className="TreeLayout",ar.PathDefault=D0,ar.PathDestination=Lu,ar.PathSource=Gc,ar.SortingForwards=Xf,ar.SortingReverse=Ap,ar.SortingAscending=Ep,ar.SortingDescending=bp,ar.AlignmentCenterSubtrees=Jf,ar.AlignmentCenterChildren=Hc,ar.AlignmentStart=Au,ar.AlignmentEnd=Eu,ar.AlignmentBus=bh,ar.AlignmentBusBranching=bu,ar.AlignmentTopLeftBus=kh,ar.AlignmentBottomRightBus=Uu,ar.CompactionNone=N0,ar.CompactionBlock=kp,ar.StyleLayered=T0,ar.StyleLastParents=Ny,ar.StyleAlternating=Ty,ar.StyleRootOnly=Oy,ar.ArrangementVertical=O0,ar.ArrangementHorizontal=Iy,ar.ArrangementFixedRoots=I0,ar.LayerIndividual=Ry,ar.LayerSiblings=zy,ar.LayerUniform=R0;function Zc(a){Xr.call(this,a)}ue(Zc,Xr),Zc.prototype.createVertex=function(){return new gl(this)},Zc.prototype.createEdge=function(){return new Qf(this)},Zc.className="TreeNetwork";function gl(a){Ko.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 Mt(0,0),this.Da=new Ve(0,0),this.la=new Mt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xf,this.hd=ry,this.Kb=0,this.Jb=Hc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=kp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Yo,this.wr=!0,this.Dp=Yo}ue(gl,Ko),gl.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)},ce.Object.defineProperties(gl.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)}}}),gl.className="TreeVertex";function Qf(a){ks.call(this,a),this.$t=new Mt(0,0)}ue(Qf,ks),Qf.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 Lu:x=this.fromVertex,E=this.toVertex;break;case Gc:x=this.toVertex,E=this.fromVertex;break;default:Ht("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=kl(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===Gs,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===Eu?(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===Au?(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===Eu?(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===Au?(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===Eu?(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===Au?(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===Eu?(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===Au?(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))):Ht("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=kl(x),y!==kl(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===Gs,b=a.isOrthogonal,E=gd(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()))}}},ce.Object.defineProperties(Qf.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)}}}),Qf.className="TreeEdge",qr.prototype.initializeStandardTools=function(){this.gb("Action",new sl,this.mouseDownTools),this.gb("Relinking",new Is,this.mouseDownTools),this.gb("LinkReshaping",new Eo,this.mouseDownTools),this.gb("Rotating",new Ua,this.mouseDownTools),this.gb("Resizing",new Ca,this.mouseDownTools),this.gb("Linking",new Va,this.mouseMoveTools),this.gb("Dragging",new uo,this.mouseMoveTools),this.gb("DragSelecting",new Vs,this.mouseMoveTools),this.gb("Panning",new va,this.mouseMoveTools),this.gb("ContextMenu",new Ya,this.mouseUpTools),this.gb("TextEditing",new $r,this.mouseUpTools),this.gb("ClickCreating",new lh,this.mouseUpTools),this.gb("ClickSelecting",new Gh,this.mouseUpTools)},nu("Horizontal",new cm),nu("Spot",new gm),nu("Table",new mm),nu("Viewbox",new Sm),nu("TableRow",new vm),nu("TableColumn",new ym),nu("Graduated",new Kg),nu("Grid",new Zg),Sf.add("GraphLinksModel",$o),Sf.add("TreeModel",$s);var z0=$e.go,jy={get licenseKey(){return Se.licenseKey},set licenseKey(a){Se.licenseKey=a},get version(){return Se.version},Group:Oi,EnumValue:Ue,List:tn,Set:en,Map:Pe,Point:Mt,Size:Ve,Rect:Ce,Margin:Hi,Spot:ei,Geometry:dn,PathFigure:To,PathSegment:xr,InputEvent:ma,DiagramEvent:uu,ChangedEvent:ao,Model:si,GraphLinksModel:fr,TreeModel:es,Binding:ko,Transaction:Ho,UndoManager:ho,CommandHandler:Wt,Tool:Sr,DraggingTool:uo,DraggingInfo:Wu,DraggingOptions:at,LinkingBaseTool:yo,LinkingTool:Va,RelinkingTool:Is,LinkReshapingTool:Eo,ResizingTool:Ca,RotatingTool:Ua,ClickSelectingTool:Gh,ActionTool:sl,ClickCreatingTool:lh,HTMLInfo:ql,ContextMenuTool:Ya,DragSelectingTool:Vs,PanningTool:va,TextEditingTool:$r,ToolManager:qr,Animation:ya,AnimationManager:As,AnimationTrigger:xl,Layer:ia,Diagram:Se,Palette:dt,Overview:gt,Brush:Or,GraphObject:oe,Panel:on,RowColumnDefinition:zo,Shape:Yi,TextBlock:Yr,Picture:us,Part:mi,Adornment:wr,Node:Fn,Link:gn,Placeholder:qa,Layout:lo,LayoutNetwork:Xr,LayoutVertex:Ko,LayoutEdge:ks,GridLayout:ha,PanelLayout:Zo,CircularLayout:fo,CircularNetwork:Vf,CircularVertex:yp,CircularEdge:y0,ForceDirectedLayout:xa,ForceDirectedNetwork:jc,ForceDirectedVertex:Sp,ForceDirectedEdge:xp,LayeredDigraphLayout:Rr,LayeredDigraphNetwork:Yf,LayeredDigraphVertex:el,LayeredDigraphEdge:Cp,TreeLayout:ar,TreeNetwork:Zc,TreeVertex:gl,TreeEdge:Qf};typeof z0=="object"&&z0.version&&Bn("WARNING: a `go` object on the root object is already defined. "+("Debug"in z0?"debug ":"")+"version: "+z0.version+", replaced with version: "+jy.version),Se.prototype.go=jy,$e.go=jy,typeof Cn.exports=="object"&&(Cn.exports=typeof Nt.g!="undefined"?Nt.g.go:self.go)}();var Ft=typeof Nt.g!="undefined"?Nt.g.go:self.go;const se=typeof Nt.g!="undefined"?Nt.g.go:self.go,we=se.Group,Ie=se.EnumValue,ge=se.List,zt=se.Set,ie=se.Map,Re=se.Point,he=se.Size,Vt=se.Rect,qe=se.Margin,te=se.Spot,He=se.Geometry,Bt=se.PathFigure,nt=se.PathSegment,et=se.InputEvent,ct=se.DiagramEvent,lt=se.ChangedEvent,pt=se.Model,vt=se.GraphLinksModel,xt=se.TreeModel,Et=se.Binding,Tt=se.Transaction,jt=se.UndoManager,_t=se.CommandHandler,Jt=se.Tool,Ut=se.DraggingTool,fe=se.DraggingInfo,ne=se.LinkingBaseTool,Ne=se.LinkingTool,Ge=se.RelinkingTool,Ye=se.LinkReshapingTool,Ln=se.ResizingTool,hn=se.RotatingTool,Be=se.ClickSelectingTool,sn=se.ActionTool,ee=se.ClickCreatingTool,Kt=se.HTMLInfo,Oe=se.ContextMenuTool,pn=se.DragSelectingTool,mn=se.PanningTool,Ae=se.TextEditingTool,Qe=se.ToolManager,ln=se.Animation,Vn=se.AnimationManager,Le=se.AnimationTrigger,cn=se.Layer,le=se.Diagram,bn=se.Palette,hi=se.Overview,Ot=se.Brush,Pt=se.GraphObject,St=se.Panel,kt=se.RowColumnDefinition,Rt=se.Shape,At=se.TextBlock,Yt=se.TextBlockMetrics,Me=se.Picture,be=se.Part,We=se.Adornment,pe=se.Node,ve=se.Link,xe=se.Placeholder,Te=se.Layout,Ke=se.LayoutNetwork,xn=se.LayoutVertex,_e=se.LayoutEdge,Zn=se.GridLayout,Fe=se.PanelLayout,ze=se.CircularLayout,Je=se.CircularNetwork,jn=se.CircularVertex,Sn=se.CircularEdge,Mn=se.ForceDirectedLayout,Hn=se.ForceDirectedNetwork,yi=se.ForceDirectedVertex,Jn=se.ForceDirectedEdge,xi=se.LayeredDigraphLayout,Vi=se.LayeredDigraphNetwork,Ii=se.LayeredDigraphVertex,Wi=se.LayeredDigraphEdge,Ji=se.TreeLayout,er=se.TreeNetwork,ji=se.TreeVertex,Ai=se.TreeEdge,nr=se.version},2859:function(Cn,_n,Nt){"use strict";Nt.d(_n,{hP:function(){return hi}});var Ft=function(Ot,Pt){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(St,kt){St.__proto__=kt}||function(St,kt){for(var Rt in kt)Object.prototype.hasOwnProperty.call(kt,Rt)&&(St[Rt]=kt[Rt])})(Ot,Pt)};function se(Ot,Pt){function St(){this.constructor=Ot}Ft(Ot,Pt),Ot.prototype=Pt===null?Object.create(Pt):(St.prototype=Pt.prototype,new St)}function we(Ot,Pt,St,kt){return new(St||(St=Promise))(function(Rt,At){function Yt(We){try{be(kt.next(We))}catch(pe){At(pe)}}function Me(We){try{be(kt.throw(We))}catch(pe){At(pe)}}function be(We){var pe;We.done?Rt(We.value):(pe=We.value,pe instanceof St?pe:new St(function(ve){ve(pe)})).then(Yt,Me)}be((kt=kt.apply(Ot,Pt||[])).next())})}function Ie(Ot,Pt){var St,kt,Rt,At,Yt={label:0,sent:function(){if(1&Rt[0])throw Rt[1];return Rt[1]},trys:[],ops:[]};return At={next:Me(0),throw:Me(1),return:Me(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function Me(be){return function(We){return function(pe){if(St)throw new TypeError("Generator is already executing.");for(;Yt;)try{if(St=1,kt&&(Rt=2&pe[0]?kt.return:pe[0]?kt.throw||((Rt=kt.return)&&Rt.call(kt),0):kt.next)&&!(Rt=Rt.call(kt,pe[1])).done)return Rt;switch(kt=0,Rt&&(pe=[2&pe[0],Rt.value]),pe[0]){case 0:case 1:Rt=pe;break;case 4:return Yt.label++,{value:pe[1],done:!1};case 5:Yt.label++,kt=pe[1],pe=[0];continue;case 7:pe=Yt.ops.pop(),Yt.trys.pop();continue;default:if(Rt=Yt.trys,!((Rt=Rt.length>0&&Rt[Rt.length-1])||pe[0]!==6&&pe[0]!==2)){Yt=0;continue}if(pe[0]===3&&(!Rt||pe[1]>Rt[0]&&pe[1]<Rt[3])){Yt.label=pe[1];break}if(pe[0]===6&&Yt.label<Rt[1]){Yt.label=Rt[1],Rt=pe;break}if(Rt&&Yt.label<Rt[2]){Yt.label=Rt[2],Yt.ops.push(pe);break}Rt[2]&&Yt.ops.pop(),Yt.trys.pop();continue}pe=Pt.call(Ot,Yt)}catch(ve){pe=[6,ve],kt=0}finally{St=Rt=0}if(5&pe[0])throw pe[1];return{value:pe[0]?pe[1]:void 0,done:!0}}([be,We])}}}function ge(){for(var Ot=0,Pt=0,St=arguments.length;Pt<St;Pt++)Ot+=arguments[Pt].length;var kt=Array(Ot),Rt=0;for(Pt=0;Pt<St;Pt++)for(var At=arguments[Pt],Yt=0,Me=At.length;Yt<Me;Yt++,Rt++)kt[Rt]=At[Yt];return kt}var zt=function(){function Ot(){}return Ot.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ot.setAttributes=function(Pt,St){for(var kt=0,Rt=St;kt<Rt.length;kt++){var At=Rt[kt],Yt=At[0],Me=At[1];Pt.setAttribute(Yt,Me)}},Ot.createRect=function(Pt,St,kt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Rt.setAttribute("width",Pt.toString()),Rt.setAttribute("height",St.toString()),kt&&Ot.setAttributes(Rt,kt),Rt},Ot.createLine=function(Pt,St,kt,Rt,At){var Yt=document.createElementNS("http://www.w3.org/2000/svg","line");return Yt.setAttribute("x1",Pt.toString()),Yt.setAttribute("y1",St.toString()),Yt.setAttribute("x2",kt.toString()),Yt.setAttribute("y2",Rt.toString()),At&&Ot.setAttributes(Yt,At),Yt},Ot.createPolygon=function(Pt,St){var kt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return kt.setAttribute("points",Pt),St&&Ot.setAttributes(kt,St),kt},Ot.createCircle=function(Pt,St){var kt=document.createElementNS("http://www.w3.org/2000/svg","circle");return kt.setAttribute("cx",(Pt/2).toString()),kt.setAttribute("cy",(Pt/2).toString()),kt.setAttribute("r",Pt.toString()),St&&Ot.setAttributes(kt,St),kt},Ot.createEllipse=function(Pt,St,kt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Rt.setAttribute("cx",(Pt/2).toString()),Rt.setAttribute("cy",(St/2).toString()),Rt.setAttribute("rx",(Pt/2).toString()),Rt.setAttribute("ry",(St/2).toString()),kt&&Ot.setAttributes(Rt,kt),Rt},Ot.createGroup=function(Pt){var St=document.createElementNS("http://www.w3.org/2000/svg","g");return Pt&&Ot.setAttributes(St,Pt),St},Ot.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ot.createMarker=function(Pt,St,kt,Rt,At,Yt,Me){var be=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ot.setAttributes(be,[["id",Pt],["orient",St],["markerWidth",kt.toString()],["markerHeight",Rt.toString()],["refX",At.toString()],["refY",Yt.toString()]]),be.appendChild(Me),be},Ot.createText=function(Pt){var St=document.createElementNS("http://www.w3.org/2000/svg","text");return St.setAttribute("x","0"),St.setAttribute("y","0"),Pt&&Ot.setAttributes(St,Pt),St},Ot.createTSpan=function(Pt,St){var kt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return kt.textContent=Pt,St&&Ot.setAttributes(kt,St),kt},Ot.createImage=function(Pt){var St=document.createElementNS("http://www.w3.org/2000/svg","image");return Pt&&Ot.setAttributes(St,Pt),St},Ot.createPoint=function(Pt,St){var kt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return kt.x=Pt,kt.y=St,kt},Ot.createPath=function(Pt,St){var kt=document.createElementNS("http://www.w3.org/2000/svg","path");return kt.setAttribute("d",Pt),St&&Ot.setAttributes(kt,St),kt},Ot}(),ie=function(){function Ot(){}return Ot.addKey=function(Pt){Ot.key=Pt},Object.defineProperty(Ot,"isLicensed",{get:function(){return!!Ot.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ot.key)},enumerable:!1,configurable:!0}),Ot}(),Re=function(){function Ot(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ot.prototype.rasterize=function(Pt,St,kt){var Rt=this;return new Promise(function(At){var Yt=kt!==void 0?kt:document.createElement("canvas");Pt===null&&(Rt.markersOnly=!0,Rt.naturalSize=!1);var Me=document.createElementNS("http://www.w3.org/2000/svg","svg");Me.setAttribute("xmlns","http://www.w3.org/2000/svg"),Me.setAttribute("width",St.width.baseVal.valueAsString),Me.setAttribute("height",St.height.baseVal.valueAsString),Me.setAttribute("viewBox","0 0 "+St.viewBox.baseVal.width.toString()+" "+St.viewBox.baseVal.height.toString()),Me.innerHTML=St.innerHTML,Rt.naturalSize===!0?(Me.width.baseVal.value=Pt.naturalWidth,Me.height.baseVal.value=Pt.naturalHeight):Rt.width!==void 0&&Rt.height!==void 0&&(Me.width.baseVal.value=Rt.width,Me.height.baseVal.value=Rt.height),Yt.width=Me.width.baseVal.value,Yt.height=Me.height.baseVal.value;var be=Me.outerHTML,We=Yt.getContext("2d");Rt.markersOnly!==!0&&We.drawImage(Pt,0,0,Yt.width,Yt.height);var pe=window.URL,ve=new Image(Yt.width,Yt.height);ve.setAttribute("crossOrigin","anonymous");var xe=new Blob([be],{type:"image/svg+xml"}),Te=pe.createObjectURL(xe);ve.onload=function(){We.drawImage(ve,0,0),pe.revokeObjectURL(Te);var Ke=Yt.toDataURL(Rt.imageType,Rt.imageQuality);At(Ke)},ve.src=Te})},Ot}(),he=function(){},Vt=function(){function Ot(Pt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Pt+"_"}return Object.defineProperty(Ot.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.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(Ot.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ot.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},Ot.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)},Ot.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 qe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new qe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new qe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new te("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new te("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ot.prototype.removeStyleSheet=function(){var Pt;this.styleSheet&&(((Pt=this.styleSheetRoot)!==null&&Pt!==void 0?Pt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ot}(),qe=function(Ot,Pt){this.selector=Ot,this.style=Pt},te=function(Ot,Pt){this.localName=Ot,this.style=Pt},He=function(){function Ot(Pt,St,kt,Rt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Pt,this.displayMode=St,this.markerItems=kt,this.uiStyleSettings=Rt,this.styles=At,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ot.prototype.show=function(Pt){var St=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 kt=document.createElement("div");kt.className=this.toolbarBlockStyleClass.name,kt.style.whiteSpace="nowrap",this.uiContainer.appendChild(kt),this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(kt,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(At){var Yt=document.createElement("div");Yt.className=""+St.toolbarButtonStyleClass.name,Yt.setAttribute("data-type-name",At.typeName),Yt.innerHTML=At.icon,Yt.addEventListener("click",function(){St.markerToolbarButtonClicked(Yt,At)}),St.buttons.push(Yt),St.markerButtons.push(Yt)}),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 Rt=document.createElement("div");Rt.className=this.toolbarBlockStyleClass.name,Rt.style.whiteSpace="nowrap",Rt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Rt),this.addActionButton(Rt,'<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(Rt,'<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()},Ot.prototype.addButtonClickListener=function(Pt){this.buttonClickListeners.push(Pt)},Ot.prototype.removeButtonClickListener=function(Pt){this.buttonClickListeners.indexOf(Pt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Pt),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.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 St=0;St<this.markerButtons.length;St++)St<Pt||St===Pt&&this.markerButtons.length-1===Pt?this.markerButtonBlock.appendChild(this.markerButtons[St]):(St===Pt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[St]))}},Ot.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")},Ot.prototype.resetButtonStyles=function(){var Pt=this;this.buttons.forEach(function(St){St.className=St.className.replace(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name,"").trim(),St.className=St.className.replace(Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Pt.toolbarActiveButtonStyleColorsClass.name,"").trim(),St.className+=" "+(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name)})},Ot.prototype.addActionButton=function(Pt,St,kt){var Rt=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=St,At.setAttribute("data-action",kt),At.addEventListener("click",function(){Rt.actionToolbarButtonClicked(At,kt)}),kt){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)},Ot.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new te("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 te("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new te("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new te("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 te("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Pt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new te("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 te("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new te("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new qe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new qe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Ot.prototype.markerToolbarButtonClicked=function(Pt,St){this.setActiveButton(Pt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("marker",St)}),this.markerButtonOverflowBlock.style.display="none"},Ot.prototype.actionToolbarButtonClicked=function(Pt,St){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("action",St)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ot.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)},Ot.prototype.setActiveMarkerButton=function(Pt){var St=this.markerButtons.find(function(kt){return kt.getAttribute("data-type-name")===Pt});St&&this.setActiveButton(St)},Ot.prototype.setCurrentMarker=function(Pt){var St=this;this.currentMarker=Pt,this.buttons.filter(function(kt){return/delete|notes/.test(kt.getAttribute("data-action"))}).forEach(function(kt){St.currentMarker===void 0?(kt.style.fillOpacity="0.4",kt.style.pointerEvents="none"):(kt.style.fillOpacity="1",kt.style.pointerEvents="all")})},Ot}(),Bt=function(){function Ot(Pt,St,kt,Rt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Pt,this.displayMode=St,this.uiStyleSettings=kt,this.styles=Rt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ot.prototype.addStyles=function(){var Pt;this.toolboxStyleClass=this.styles.addClass(new te("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 te("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var St=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new te("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new te("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new te("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 te("toolbox-panel-row_colors",`
|
|
background-color: `+((Pt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Pt!==void 0?Pt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new te("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*St)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*St)+`px;
|
|
padding: `+St+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new te("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new te("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new qe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new qe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Ot.prototype.show=function(Pt){var St;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((St=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&St!==void 0?St:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ot.prototype.setPanelButtons=function(Pt){var St,kt,Rt=this;this.panels=Pt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((St=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&St!==void 0?St:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((kt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&kt!==void 0?kt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var Yt;At.uiStyleSettings=Rt.uiStyleSettings;var Me=document.createElement("div");Me.className=Rt.toolboxButtonStyleClass.name+" "+((Yt=Rt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Yt!==void 0?Yt:Rt.toolboxButtonStyleColorsClass.name),Me.innerHTML=At.icon,Me.title=At.title,Me.addEventListener("click",function(){Rt.panelButtonClick(At)}),Rt.panelButtons.push(Me),Rt.buttonRow.appendChild(Me)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(Pt){var St=this,kt=-1;if(Pt!==this.activePanel){kt=this.panels.indexOf(Pt),this.panelRow.innerHTML="";var Rt=Pt.getUi();Rt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Rt),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(){St.displayMode==="inline"?St.panelRow.style.display="none":St.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(At,Yt){var Me,be;At.className=St.toolboxButtonStyleClass.name+" "+(Yt===kt?""+((Me=St.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Me!==void 0?Me:St.toolboxActiveButtonStyleColorsClass.name):""+((be=St.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&be!==void 0?be:St.toolboxButtonStyleColorsClass.name))})},Ot}(),nt=function(Ot,Pt){this.title=Ot,this.icon=Pt},et=function(Ot){function Pt(St,kt,Rt,At){var Yt=Ot.call(this,St,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 Yt.colors=[],Yt.addTransparent=!1,Yt.colorBoxes=[],Yt.colors=kt,Yt.currentColor=Rt,Yt.setCurrentColor=Yt.setCurrentColor.bind(Yt),Yt.getColorBox=Yt.getColorBox.bind(Yt),Yt}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.whiteSpace="nowrap",this.colors.forEach(function(Rt){var At=St.getColorBox(Rt);kt.appendChild(At),St.colorBoxes.push(At)}),kt},Pt.prototype.getColorBox=function(St){var kt=this,Rt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-Rt,Yt=document.createElement("div");Yt.style.display="inline-block",Yt.style.boxSizing="content-box",Yt.style.width=At-2+"px",Yt.style.height=At-2+"px",Yt.style.padding="1px",Yt.style.marginRight="2px",Yt.style.marginBottom="2px",Yt.style.borderWidth="2px",Yt.style.borderStyle="solid",Yt.style.borderRadius=(At+2)/2+"px",Yt.style.borderColor=St===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Yt.addEventListener("click",function(){kt.setCurrentColor(St,Yt)});var Me=document.createElement("div");return Me.style.display="inline-block",Me.style.width=At-2+"px",Me.style.height=At-2+"px",Me.style.backgroundColor=St,Me.style.borderRadius=At/2+"px",St==="transparent"&&(Me.style.fill=this.uiStyleSettings.toolboxAccentColor,Me.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>`),Yt.appendChild(Me),Yt},Pt.prototype.setCurrentColor=function(St,kt){var Rt=this;this.currentColor=St,this.colorBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(St)},Pt}(nt),ct=function(){function Ot(Pt,St,kt){this._state="new",this._isSelected=!1,this._container=Pt,this._overlayContainer=St,this.globalSettings=kt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(Pt){return!1},Object.defineProperty(Ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ot.prototype.pointerDown=function(Pt,St){},Ot.prototype.dblClick=function(Pt,St){},Ot.prototype.manipulate=function(Pt){},Ot.prototype.pointerUp=function(Pt){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(Pt){this.container.childNodes.length>0?this.container.insertBefore(Pt,this.container.childNodes[0]):this.container.appendChild(Pt)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(Pt){this._state=Pt.state,this.notes=Pt.notes},Ot.prototype.scale=function(Pt,St){},Ot.prototype.colorChanged=function(Pt){this.onColorChanged&&this.onColorChanged(Pt),this.stateChanged()},Ot.prototype.fillColorChanged=function(Pt){this.onFillColorChanged&&this.onFillColorChanged(Pt),this.stateChanged()},Ot.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)}},Ot.typeName="MarkerBase",Ot}(),lt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.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},Ot}(),pt=function(){function Ot(){this.GRIP_SIZE=10,this.visual=zt.createGroup(),this.visual.appendChild(zt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(zt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ot.prototype.ownsTarget=function(Pt){return Pt===this.visual||Pt===this.visual.childNodes[0]||Pt===this.visual.childNodes[1]},Ot}(),vt=function(){function Ot(){}return Ot.toITransformMatrix=function(Pt){return{a:Pt.a,b:Pt.b,c:Pt.c,d:Pt.d,e:Pt.e,f:Pt.f}},Ot.toSVGMatrix=function(Pt,St){return Pt.a=St.a,Pt.b=St.b,Pt.c=St.c,Pt.d=St.d,Pt.e=St.e,Pt.f=St.f,Pt},Ot}(),xt=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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(zt.createTransform()),At.setupControlBox(),At}return se(Pt,Ot),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(St){this._visual=St;var kt=zt.createTransform();this._visual.transform.baseVal.appendItem(kt)},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(St){return!!Ot.prototype.ownsTarget.call(this,St)||!!(this.controlGrips.findGripByVisual(St)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(St))},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.state==="new"&&(this.left=St.x,this.top=St.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Rt=this.unrotatePoint(St);if(this.manipulationStartX=Rt.x,this.manipulationStartY=Rt.y,this.offsetX=Rt.x-this.left,this.offsetY=Rt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(kt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(kt)){this.activeGrip=this.rotatorGrip;var 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 Yt=this.container.transform.baseVal.getItem(0);Yt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Yt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Pt.prototype.pointerUp=function(St){var kt=this.state;Ot.prototype.pointerUp.call(this,St),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(St),this._state="select",kt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Pt.prototype.moveVisual=function(St){this.visual.style.transform="translate("+St.x+"px, "+St.y+"px)"},Pt.prototype.manipulate=function(St){var kt=this.unrotatePoint(St);this.state==="creating"?this.resize(St):this.state==="move"?(this.left=this.manipulationStartLeft+(kt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(kt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(kt):this.state==="rotate"&&this.rotate(St)},Pt.prototype.resize=function(St){var kt=this.manipulationStartLeft,Rt=this.manipulationStartWidth,At=this.manipulationStartTop,Yt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:kt=this.manipulationStartLeft+St.x-this.manipulationStartX,Rt=this.manipulationStartWidth+this.manipulationStartLeft-kt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Rt=this.manipulationStartWidth+St.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+St.y-this.manipulationStartY,Yt=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Yt=this.manipulationStartHeight+St.y-this.manipulationStartY}Rt>=0?(this.left=kt,this.width=Rt):(this.left=kt+Rt,this.width=-Rt),Yt>=0?(this.top=At,this.height=Yt):(this.top=At+Yt,this.height=-Yt),this.setSize()},Pt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Pt.prototype.rotate=function(St){if(Math.abs(St.x-this.centerX)>.1){var kt=Math.sign(St.x-this.centerX);this.rotationAngle=180*Math.atan((St.y-this.centerY)/(St.x-this.centerX))/Math.PI+90*kt,this.applyRotation()}},Pt.prototype.applyRotation=function(){var St=this.container.transform.baseVal.getItem(0);St.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(St,0)},Pt.prototype.rotatePoint=function(St){if(this.rotationAngle===0)return St;var kt=this.container.getCTM(),Rt=zt.createPoint(St.x,St.y);return{x:(Rt=Rt.matrixTransform(kt)).x,y:Rt.y}},Pt.prototype.unrotatePoint=function(St){if(this.rotationAngle===0)return St;var kt=this.container.getCTM();kt=kt.inverse();var Rt=zt.createPoint(St.x,St.y);return{x:(Rt=Rt.matrixTransform(kt)).x,y:Rt.y}},Pt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=zt.createGroup();var St=zt.createTransform();St.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(St),this.container.appendChild(this.controlBox),this.controlRect=zt.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=zt.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 St=this.controlBox.transform.baseVal.getItem(0);St.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(St,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 St=new pt;return St.visual.transform.baseVal.appendItem(zt.createTransform()),this.controlBox.appendChild(St.visual),St},Pt.prototype.positionGrips=function(){var St=this.controlGrips.topLeft.GRIP_SIZE,kt=-St/2,Rt=kt,At=(this.width+this.CB_DISTANCE)/2-St/2,Yt=(this.height+this.CB_DISTANCE)/2-St/2,Me=this.height+this.CB_DISTANCE-St/2,be=this.width+this.CB_DISTANCE-St/2;this.positionGrip(this.controlGrips.topLeft.visual,kt,Rt),this.positionGrip(this.controlGrips.topCenter.visual,At,Rt),this.positionGrip(this.controlGrips.topRight.visual,be,Rt),this.positionGrip(this.controlGrips.centerLeft.visual,kt,Yt),this.positionGrip(this.controlGrips.centerRight.visual,be,Yt),this.positionGrip(this.controlGrips.bottomLeft.visual,kt,Me),this.positionGrip(this.controlGrips.bottomCenter.visual,At,Me),this.positionGrip(this.controlGrips.bottomRight.visual,be,Me),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,Rt-3*this.CB_DISTANCE)},Pt.prototype.positionGrip=function(St,kt,Rt){var At=St.transform.baseVal.getItem(0);At.setTranslate(kt,Rt),St.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)},Ot.prototype.getState.call(this))},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St);var kt=St;this.left=kt.left,this.top=kt.top,this.width=kt.width,this.height=kt.height,this.rotationAngle=kt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,kt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(vt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,kt.containerTransformMatrix))},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt);var Rt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:Rt.x*St,y:Rt.y*kt});this.left=At.x,this.top=At.y,this.width=this.width*St,this.height=this.height*kt,this.adjustControlBox()},Pt}(ct),Et=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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 se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual)},Pt.prototype.createVisual=function(){this.visual=zt.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(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Pt.prototype.manipulate=function(St){Ot.prototype.manipulate.call(this,St)},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),this.setSize()},Pt.prototype.setSize=function(){Ot.prototype.setSize.call(this),zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(St){Ot.prototype.pointerUp.call(this,St),this.setSize()},Pt.prototype.setStrokeColor=function(St){this.strokeColor=St,this.visual&&zt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Pt.prototype.setFillColor=function(St){this.fillColor=St,this.visual&&zt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Pt.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.visual&&zt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.visual&&zt.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},Ot.prototype.getState.call(this))},Pt.prototype.restoreState=function(St){var kt=St;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,St),this.setSize()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),this.setSize()},Pt.title="Rectangle marker",Pt}(xt),Tt=function(Ot){function Pt(St,kt,Rt,At){var Yt=Ot.call(this,St,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Yt.widths=[],Yt.widthBoxes=[],Yt.widths=kt,Yt.currentWidth=Rt,Yt.setCurrentWidth=Yt.setCurrentWidth.bind(Yt),Yt}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.widths.forEach(function(Rt){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=Rt===St.currentWidth?St.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){St.setCurrentWidth(Rt,At)}),kt.appendChild(At);var Yt=document.createElement("div");Yt.innerText=Rt.toString(),Yt.style.marginRight="5px",At.appendChild(Yt);var Me=document.createElement("div");Me.style.minHeight="20px",Me.style.flexGrow="2",Me.style.display="flex",Me.style.alignItems="center";var be=document.createElement("hr");be.style.minWidth="20px",be.style.border="0px",be.style.borderTop=Rt+"px solid "+St.uiStyleSettings.toolboxColor,be.style.flexGrow="2",Me.appendChild(be),At.appendChild(Me),St.widthBoxes.push(At)}),kt},Pt.prototype.setCurrentWidth=function(St,kt){var Rt=this;this.currentWidth=St,this.widthBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Pt}(nt),jt=function(Ot){function Pt(St,kt,Rt,At){var Yt=Ot.call(this,St,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 Yt.styles=[],Yt.styleBoxes=[],Yt.styles=kt,Yt.currentStyle=Rt,Yt.setCurrentStyle=Yt.setCurrentStyle.bind(Yt),Yt}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.styles.forEach(function(Rt){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/St.styles.length-5+"%",At.style.borderColor=Rt===St.currentStyle?St.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){St.setCurrentStyle(Rt,At)}),kt.appendChild(At);var Yt=document.createElement("div");Yt.style.minHeight="20px",Yt.style.flexGrow="2",Yt.style.overflow="hidden";var Me=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+St.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Rt!==""?'stroke-dasharray="'+Rt+'"':"")+` />
|
|
</svg>`;Yt.innerHTML=Me,At.appendChild(Yt),St.styleBoxes.push(At)}),kt},Pt.prototype.setCurrentStyle=function(St,kt){var Rt=this;this.currentStyle=St,this.styleBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Pt}(nt),_t=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new jt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return se(Pt,Ot),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var St=Ot.prototype.getState.call(this);return St.typeName=Pt.typeName,St},Pt.typeName="FrameMarker",Pt.title="Frame marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Pt}(Et),Jt=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"},Ut=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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 se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!!Ot.prototype.ownsTarget.call(this,St)||!(!this.grip1.ownsTarget(St)&&!this.grip2.ownsTarget(St))},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.manipulationStartX=St.x,this.manipulationStartY=St.y,this.state==="new"&&(this.x1=St.x,this.y1=St.y,this.x2=St.x,this.y2=St.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(kt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(kt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Pt.prototype.pointerUp=function(St){var kt=this.state;Ot.prototype.pointerUp.call(this,St),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(St),this._state="select",kt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Pt.prototype.adjustVisual=function(){},Pt.prototype.manipulate=function(St){this.state==="creating"?this.resize(St):this.state==="move"?(this.x1=this.manipulationStartX1+St.x-this.manipulationStartX,this.y1=this.manipulationStartY1+St.y-this.manipulationStartY,this.x2=this.manipulationStartX2+St.x-this.manipulationStartX,this.y2=this.manipulationStartY2+St.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(St)},Pt.prototype.resize=function(St){switch(this.activeGrip){case this.grip1:this.x1=St.x,this.y1=St.y;break;case this.grip2:case void 0:this.x2=St.x,this.y2=St.y}this.adjustVisual(),this.adjustControlBox()},Pt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=zt.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 St=new pt;return St.visual.transform.baseVal.appendItem(zt.createTransform()),this.controlBox.appendChild(St.visual),St},Pt.prototype.positionGrips=function(){var St=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-St/2,this.y1-St/2),this.positionGrip(this.grip2.visual,this.x2-St/2,this.y2-St/2)},Pt.prototype.positionGrip=function(St,kt,Rt){var At=St.transform.baseVal.getItem(0);At.setTranslate(kt,Rt),St.transform.baseVal.replaceItem(At,0)},Pt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ot.prototype.getState.call(this))},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St);var kt=St;this.x1=kt.x1,this.y1=kt.y1,this.x2=kt.x2,this.y2=kt.y2},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),this.x1=this.x1*St,this.y1=this.y1*kt,this.x2=this.x2*St,this.y2=this.y2*kt,this.adjustVisual(),this.adjustControlBox()},Pt}(ct),fe=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new jt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.selectorLine&&St!==this.visibleLine)},Pt.prototype.createVisual=function(){this.visual=zt.createGroup(),this.selectorLine=zt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=zt.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(St,kt){Ot.prototype.pointerDown.call(this,St,kt),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()),zt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),zt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),zt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setStrokeColor=function(St){this.strokeColor=St,this.adjustVisual(),this.colorChanged(St)},Pt.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,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 St=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St);var kt=St;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.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}(Ut),ne=function(Ot){function Pt(St,kt,Rt,At){var Yt=Ot.call(this,St,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 Yt.fonts=[],Yt.fontBoxes=[],Yt.fonts=kt,Yt.currentFont=Rt,Yt.setCurrentFont=Yt.setCurrentFont.bind(Yt),Yt}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.flexGrow="2",this.fonts.forEach(function(Rt){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/St.fonts.length-5+"%",At.style.borderColor=Rt===St.currentFont?St.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){St.setCurrentFont(Rt,At)}),kt.appendChild(At);var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.minHeight="20px",Yt.style.flexGrow="2",Yt.style.fontFamily=Rt,Yt.style.overflow="hidden";var Me=document.createElement("div");Me.style.whiteSpace="nowrap",Me.style.overflow="hidden",Me.style.textOverflow="ellipsis",Me.innerHTML="The quick brown fox jumps over the lazy dog",Yt.appendChild(Me),At.appendChild(Yt),St.fontBoxes.push(At)}),kt},Pt.prototype.setCurrentFont=function(St,kt){var Rt=this;this.currentFont=St,this.fontBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Pt}(nt),Ne=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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=Rt.defaultColor,At.fontFamily=Rt.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",Rt.defaultColorSet,Rt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new ne("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){if(Ot.prototype.ownsTarget.call(this,St)||St===this.visual||St===this.textElement||St===this.bgRectangle)return!0;var kt=!1;return this.textElement.childNodes.forEach(function(Rt){Rt===St&&(kt=!0)}),kt},Pt.prototype.createVisual=function(){this.visual=zt.createGroup(),this.bgRectangle=zt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=zt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(zt.createTransform()),this.textElement.transform.baseVal.appendItem(zt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.isMoved=!1,this.pointerDownPoint=St,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Pt.prototype.renderText=function(){var St=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(kt){St.textElement.appendChild(zt.createTSpan(kt.trim()===""?" ":kt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Pt.prototype.getTextScale=function(){var St=this.textElement.getBBox(),kt=1;if(St.width>0&&St.height>0){var Rt=(1*this.width-this.width*this.padding*2/100)/St.width,At=(1*this.height-this.height*this.padding*2/100)/St.height;kt=Math.min(Rt,At)}return kt},Pt.prototype.getTextPosition=function(St){var kt=this.textElement.getBBox(),Rt=0,At=0;return kt.width>0&&kt.height>0&&(Rt=(this.width-kt.width*St)/2,At=this.height/2-kt.height*St/2),{x:Rt,y:At}},Pt.prototype.sizeText=function(){var St=this.textElement.getBBox(),kt=this.getTextScale(),Rt=this.getTextPosition(kt);Rt.y-=St.y*kt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Rt.x+"px, "+Rt.y+"px) scale("+kt+", "+kt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Rt.x,Rt.y),this.textElement.transform.baseVal.getItem(1).setScale(kt,kt))},Pt.prototype.manipulate=function(St){Ot.prototype.manipulate.call(this,St),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(St.x-this.pointerDownPoint.x)>5||Math.abs(St.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),this.isMoved=!0,this.setSize(),this.sizeText()},Pt.prototype.setSize=function(){Ot.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),zt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Pt.prototype.pointerUp=function(St){var kt=this.state;kt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,St),this.setSize(),(kt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.showTextEditor=function(){var St=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(kt){kt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var kt=Number.parseFloat(St.textEditor.style.fontSize);St.textEditor.clientWidth>=Number.parseInt(St.textEditor.style.maxWidth)&&kt>.9;)kt-=.1,St.textEditor.style.fontSize=Math.max(kt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(kt){if(kt.clipboardData){var Rt=kt.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(Rt)),kt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){St.textEditDivClicked(St.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 St=this.getTextScale(),kt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Rt=this.textElement.getBBox(),At={x:Rt.width*St,y:Rt.height*St};kt.x-=At.x/2,kt.y-=At.y/2,this.textEditor.style.top=kt.y+"px",this.textEditor.style.left=kt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-kt.x+"px",this.textEditor.style.fontSize=Math.max(16*St,12)+"px",this.textElement.style.display="none"}},Pt.prototype.textEditDivClicked=function(St){this.text=St.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Pt.prototype.select=function(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Pt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},Pt.prototype.dblClick=function(St,kt){Ot.prototype.dblClick.call(this,St,kt),this.showTextEditor()},Pt.prototype.setColor=function(St){this.textElement&&zt.setAttributes(this.textElement,[["fill",St]]),this.color=St,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(St)},Pt.prototype.setFont=function(St){this.textElement&&zt.setAttributes(this.textElement,[["font-family",St]]),this.fontFamily=St,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 St=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){var kt=St;this.color=kt.color,this.fontFamily=kt.fontFamily,this.padding=kt.padding,this.text=kt.text,this.createVisual(),Ot.prototype.restoreState.call(this,St),this.setSize()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),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}(xt),Ge=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=Rt.defaultColor,At.lineWidth=Rt.defaultStrokeWidth,At.pixelRatio=Rt.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",Rt.defaultColorSet,Rt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.drawingImage)},Pt.prototype.createVisual=function(){this.visual=zt.createGroup(),this.drawingImage=zt.createImage(),this.visual.appendChild(this.drawingImage);var St=zt.createTransform();this.visual.transform.baseVal.appendItem(St),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(St,kt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(St.x,St.y),this.drawing=!0):Ot.prototype.pointerDown.call(this,St,kt)},Pt.prototype.manipulate=function(St){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(St.x,St.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,St)},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),zt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),zt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(St){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ot.prototype.pointerUp.call(this,St)},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(),Ot.prototype.select.call(this)},Pt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},Pt.prototype.finishCreation=function(){for(var St=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),kt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Rt=kt[0],At=kt[1],Yt=kt[2],Me=kt[3],be=!1,We=0;We<this.canvasElement.height;We++)for(var pe=0;pe<this.canvasElement.width;pe++)St.data[We*this.canvasElement.width*4+4*pe+3]>0&&(be=!0,We<At&&(At=We),pe<Rt&&(Rt=pe),We>Me&&(Me=We),pe>Yt&&(Yt=pe));if(be){this.left=Rt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(Yt-Rt)/this.pixelRatio,this.height=(Me-At)/this.pixelRatio;var ve=document.createElement("canvas");ve.width=Yt-Rt,ve.height=Me-At,ve.getContext("2d").putImageData(this.canvasContext.getImageData(Rt,At,Yt-Rt,Me-At),0,0),this.drawingImgUrl=ve.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Pt.prototype.setDrawingImage=function(){zt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),zt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Pt.prototype.setColor=function(St){this.color=St,this.colorChanged(St)},Pt.prototype.setLineWidth=function(St){this.lineWidth=St},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 St=Object.assign({drawingImgUrl:this.drawingImgUrl},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){this.createVisual(),Ot.prototype.restoreState.call(this,St),this.drawingImgUrl=St.drawingImgUrl,this.setDrawingImage()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),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}(xt),Ye=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,Rt||'<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=kt,At.setCurrentType=At.setCurrentType.bind(At),At}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2";for(var Rt=function(Me){var be="both";switch(Me){case 0:be="both";break;case 1:be="start";break;case 2:be="end";break;case 3:be="none"}var We=document.createElement("div");if(We.style.display="flex",We.style.flexGrow="2",We.style.alignItems="center",We.style.justifyContent="space-between",We.style.padding="5px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderColor=be===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){St.setCurrentType(be,We)}),kt.appendChild(We),be==="both"||be==="start"){var pe=document.createElement("div");pe.style.display="flex",pe.style.alignItems="center",pe.style.minHeight="20px",pe.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>`,pe.style.marginLeft="5px",We.appendChild(pe)}var ve=document.createElement("div");ve.style.display="flex",ve.style.alignItems="center",ve.style.minHeight="20px",ve.style.flexGrow="2";var xe=document.createElement("hr");if(xe.style.minWidth="20px",xe.style.border="0px",xe.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),xe.style.flexGrow="2",ve.appendChild(xe),We.appendChild(ve),be==="both"||be==="end"){var Te=document.createElement("div");Te.style.display="flex",Te.style.alignItems="center",Te.style.minHeight="20px",Te.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>`,Te.style.marginRight="5px",We.appendChild(Te)}At.typeBoxes.push(We)},At=this,Yt=0;Yt<4;Yt++)Rt(Yt);return kt},Pt.prototype.setCurrentType=function(St,kt){var Rt=this;this.currentType=St,this.typeBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Pt}(nt),Ln=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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 Ye("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.arrow1&&St!==this.arrow2)},Pt.prototype.getArrowPoints=function(St,kt){var Rt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return St-Rt/2+","+(kt+At/2)+" "+St+","+(kt-At/2)+" "+(St+Rt/2)+","+(kt+At/2)},Pt.prototype.createTips=function(){this.arrow1=zt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(zt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=zt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(zt.createTransform()),this.visual.appendChild(this.arrow2)},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if(Ot.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",zt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),zt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var St=0;Math.abs(this.x1-this.x2)>.1&&(St=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var kt=this.arrow1.transform.baseVal.getItem(0);kt.setRotate(St,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(kt,0);var Rt=this.arrow2.transform.baseVal.getItem(0);Rt.setRotate(St+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Rt,0)}},Pt.prototype.setArrowType=function(St){this.arrowType=St,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 St=Object.assign({arrowType:this.arrowType},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St);var kt=St;this.arrowType=kt.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}(fe),hn=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.fillColor=Rt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new et("Color",Rt.defaultColorSet,Rt.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return se(Pt,Ot),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var St=Ot.prototype.getState.call(this);return St.typeName=Pt.typeName,St},Pt.typeName="CoverMarker",Pt.title="Cover marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Pt}(Et),Be=function(Ot){function Pt(St,kt,Rt,At){var Yt=Ot.call(this,St,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 Yt.opacities=[],Yt.opacityBoxes=[],Yt.opacities=kt,Yt.currentOpacity=Rt,Yt.setCurrentOpacity=Yt.setCurrentOpacity.bind(Yt),Yt}return se(Pt,Ot),Pt.prototype.getUi=function(){var St=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",kt.style.justifyContent="space-between",this.opacities.forEach(function(Rt){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=Rt===St.currentOpacity?St.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){St.setCurrentOpacity(Rt,At)}),kt.appendChild(At);var Yt=document.createElement("div");Yt.innerText=100*Rt+"%",At.appendChild(Yt),St.opacityBoxes.push(At)}),kt},Pt.prototype.setCurrentOpacity=function(St,kt){var Rt=this;this.currentOpacity=St,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===kt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Pt}(nt),sn=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=Rt.defaultHighlightColor,At.strokeWidth=0,At.opacity=Rt.defaultHighlightOpacity,At.fillPanel=new et("Color",Rt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new Be("Opacity",Rt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return se(Pt,Ot),Pt.prototype.setOpacity=function(St){this.opacity=St,this.visual&&zt.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 St=Ot.prototype.getState.call(this);return St.typeName=Pt.typeName,St},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}(hn),ee='<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>',Kt='<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>',Oe=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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=Rt.defaultStrokeColor,At.bgColor=Rt.defaultFillColor,At.fontFamily=Rt.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",Rt.defaultColorSet,At.color,ee),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new et("Fill color",Rt.defaultColorSet,At.bgColor,Kt),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new ne("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new pt,At.tipGrip.visual.transform.baseVal.appendItem(zt.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return Ot.prototype.ownsTarget.call(this,St)||this.tipGrip.ownsTarget(St)||this.tip===St},Pt.prototype.createTip=function(){zt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=zt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Pt.prototype.pointerDown=function(St,kt){this.state==="new"&&Ot.prototype.pointerDown.call(this,St,kt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(kt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,St,kt)},Pt.prototype.pointerUp=function(St){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,St);else{var kt=this.state==="creating";Ot.prototype.pointerUp.call(this,St),this.setTipPoints(kt),this.positionTip()}},Pt.prototype.manipulate=function(St){if(this.tipMoving){var kt=this.unrotatePoint(St);this.tipPosition={x:kt.x-this.manipulationStartLeft,y:kt.y-this.manipulationStartTop},this.positionTip()}else Ot.prototype.manipulate.call(this,St)},Pt.prototype.setBgColor=function(St){this.bgRectangle&&this.tip&&(zt.setAttributes(this.bgRectangle,[["fill",St]]),zt.setAttributes(this.tip,[["fill",St]])),this.bgColor=St,this.fillColorChanged(St)},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(St){St===void 0&&(St=!1);var kt=Math.min(this.height/2,15),Rt=this.height/5;St&&(this.tipPosition={x:kt+Rt/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))?(Rt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:0},this.tipBase2Position={x:kt+Rt,y:0}):(this.tipBase1Position={x:0,y:kt},this.tipBase2Position={x:0,y:kt+Rt}):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))?(Rt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-Rt,y:0},this.tipBase2Position={x:this.width-kt,y:0}):(this.tipBase1Position={x:this.width,y:kt},this.tipBase2Position={x:this.width,y:kt+Rt}):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))?(Rt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-Rt,y:this.height},this.tipBase2Position={x:this.width-kt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-kt-Rt},this.tipBase2Position={x:this.width,y:this.height-kt}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Rt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:this.height},this.tipBase2Position={x:kt+Rt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-kt},this.tipBase2Position={x:0,y:this.height-kt-Rt})},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),this.positionTip()},Pt.prototype.positionTip=function(){zt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var St=this.tipGrip.visual.transform.baseVal.getItem(0);St.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(St,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(),Ot.prototype.select.call(this)},Pt.prototype.getState=function(){var St=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){var kt=St;this.bgColor=kt.bgColor,this.tipPosition=kt.tipPosition,Ot.prototype.restoreState.call(this,St),this.createTip(),this.setTipPoints()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),this.tipPosition={x:this.tipPosition.x*St,y:this.tipPosition.y*kt},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}(Ne),pn=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.fillColor=Rt.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",ge(Rt.defaultColorSet,["transparent"]),Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new et("Fill color",ge(Rt.defaultColorSet,["transparent"]),At.fillColor,Kt),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new jt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new Be("Opacity",Rt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual)},Pt.prototype.createVisual=function(){this.visual=zt.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(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Pt.prototype.manipulate=function(St){Ot.prototype.manipulate.call(this,St)},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),this.setSize()},Pt.prototype.setSize=function(){Ot.prototype.setSize.call(this),zt.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(St){Ot.prototype.pointerUp.call(this,St),this.setSize()},Pt.prototype.setStrokeColor=function(St){this.strokeColor=St,this.visual&&zt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Pt.prototype.setFillColor=function(St){this.fillColor=St,this.visual&&zt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(St),this.stateChanged()},Pt.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.visual&&zt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.visual&&zt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pt.prototype.setOpacity=function(St){this.opacity=St,this.visual&&zt.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 St=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){var kt=St;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,St),this.setSize()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),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}(xt),mn=function(Ot){function Pt(St,kt,Rt){return Ot.call(this,St,kt,Rt)||this}return se(Pt,Ot),Object.defineProperty(Pt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.tip1&&St!==this.tip2)},Pt.prototype.createTips=function(){this.tip1=zt.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(zt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=zt.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(zt.createTransform()),this.visual.appendChild(this.tip2)},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if(Ot.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(zt.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()]]),zt.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 St=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),kt=this.tip1.transform.baseVal.getItem(0);kt.setRotate(St,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(kt,0);var Rt=this.tip2.transform.baseVal.getItem(0);Rt.setRotate(St+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Rt,0)}},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var St=Ot.prototype.getState.call(this);return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St),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}(fe),Ae=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||this;return At.strokePanel.colors=Rt.defaultColorSet,At.fillColor="transparent",At}return se(Pt,Ot),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var St=Ot.prototype.getState.call(this);return St.typeName=Pt.typeName,St},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}(pn),Qe=function(){function Ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ot.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))},Ot.prototype.replaceLastUndoStep=function(Pt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Pt)},Ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ot.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}},Ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ot}(),ln=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.strokePanel=new et("Line color",Rt.defaultColorSet,Rt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new jt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.selectorCurve&&St!==this.visibleCurve&&!this.curveGrip.ownsTarget(St))},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=zt.createGroup(),this.selectorCurve=zt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=zt.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(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=St.x,this.curveY=St.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(kt)&&(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()),zt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),zt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),zt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setupControlBox=function(){Ot.prototype.setupControlBox.call(this),this.curveControlLine1=zt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=zt.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,Ot.prototype.addControlGrips.call(this)},Pt.prototype.positionGrips=function(){Ot.prototype.positionGrips.call(this);var St=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-St/2,this.curveY-St/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(St){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+St.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+St.y-this.manipulationStartY),Ot.prototype.manipulate.call(this,St)},Pt.prototype.resize=function(St){this.activeGrip===this.curveGrip&&(this.curveX=St.x,this.curveY=St.y),Ot.prototype.resize.call(this,St),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(St){this.strokeColor=St,this.adjustVisual(),this.colorChanged(St)},Pt.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.adjustVisual()},Pt.prototype.scale=function(St,kt){this.curveX=this.curveX*St,this.curveY=this.curveY*kt,Ot.prototype.scale.call(this,St,kt)},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var St=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ot.prototype.getState.call(this));return St.typeName=Pt.typeName,St},Pt.prototype.restoreState=function(St){Ot.prototype.restoreState.call(this,St);var kt=St;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.curveX=kt.curveX,this.curveY=kt.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}(Ut),Vn=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,kt,Rt)||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=Rt.defaultColor,At.strokeWidth=Rt.defaultStrokeWidth,At.strokeDasharray=Rt.defaultStrokeDasharray,At.fillColor=Rt.defaultFillColor,At.textColor=Rt.defaultStrokeColor,At.fontFamily=Rt.defaultFontFamily,At.fontSize=Rt.defaultCaptionFontSize,At.captionText=Rt.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",ge(Rt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new et("Fill color",ge(Rt.defaultColorSet,["transparent"]),At.fillColor,Kt),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Tt("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new jt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new ne("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new et("Text color",Rt.defaultColorSet,At.textColor,ee),At.textColorPanel.onColorChanged=At.setTextColor,At}return se(Pt,Ot),Pt.prototype.ownsTarget=function(St){return!(!Ot.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.frame&&St!==this.captionBg&&St!==this.captionElement)},Pt.prototype.createVisual=function(){this.visual=zt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=zt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=zt.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=zt.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(St){this.captionText=St,this.captionElement.textContent=this.captionText,this.sizeCaption()},Pt.prototype.pointerDown=function(St,kt){Ot.prototype.pointerDown.call(this,St,kt),this.isMoved=!1,this.pointerDownPoint=St,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Pt.prototype.manipulate=function(St){Ot.prototype.manipulate.call(this,St),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(St.x-this.pointerDownPoint.x)>5||Math.abs(St.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(St){Ot.prototype.resize.call(this,St),this.setSize()},Pt.prototype.sizeCaption=function(){var St=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=St.width+2*this.PADDING,this.captionBoxHeight=St.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),zt.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')"]]),zt.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 St=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(kt){kt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(kt){kt.key==="Enter"&&St.finishTextEditing(St.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){St.finishTextEditing(St.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){St.finishTextEditing(St.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(St){this.setCaptionText(St.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Pt.prototype.setFont=function(St){this.captionElement&&zt.setAttributes(this.captionElement,[["font-family",St]]),this.fontFamily=St,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Pt.prototype.setTextColor=function(St){this.captionElement&&zt.setAttributes(this.captionElement,[["fill",St]]),this.textColor=St,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Pt.prototype.setSize=function(){Ot.prototype.setSize.call(this),zt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Pt.prototype.pointerUp=function(St){Ot.prototype.pointerUp.call(this,St),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.dblClick=function(St,kt){Ot.prototype.dblClick.call(this,St,kt),this.showTextEditor()},Pt.prototype.setStrokeColor=function(St){this.strokeColor=St,this.frame&&zt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Pt.prototype.setFillColor=function(St){this.fillColor=St,this.captionBg&&zt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(St),this.stateChanged()},Pt.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.frame&&zt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.frame&&zt.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 St=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},Ot.prototype.getState.call(this));return St.typeName=this.typeName,St},Pt.prototype.restoreState=function(St){var kt=St;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.textColor=kt.textColor,this.fontFamily=kt.fontFamily,this.captionText=kt.captionText,this.fontSize=kt.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,St),this.setSize()},Pt.prototype.scale=function(St,kt){Ot.prototype.scale.call(this,St,kt),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}(xt),Le=function(){function Ot(Pt,St){St===void 0&&(St=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Pt,this.cancelable=St}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),cn=function(Ot){function Pt(St,kt,Rt){var At=Ot.call(this,St,!1)||this;return At.dataUrl=kt,At.state=Rt,At}return se(Pt,Ot),Pt}(Le),le=function(Ot){function Pt(St,kt,Rt){Rt===void 0&&(Rt=!1);var At=Ot.call(this,St,Rt)||this;return At.marker=kt,At}return se(Pt,Ot),Pt}(Le),bn=function(){function Ot(){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 Ot.prototype.addEventListener=function(Pt,St){this[Pt].push(St)},Ot.prototype.removeEventListener=function(Pt,St){var kt=this[Pt].indexOf(St);kt>-1&&this[Pt].splice(kt,1)},Ot}(),hi=function(){function Ot(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 Jt,this._isOpen=!1,this.undoRedoManager=new Qe,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 bn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new Vt(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(Ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[_t,Ge,Ln,Ne,Ae,pn,sn,Oe,mn,hn,fe,ln,Vn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[_t,Ge,Ln,Ne,pn,sn,Oe]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[_t,Ge,Ln,Ne,sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Pt){var St=this;this._availableMarkerTypes.splice(0),Pt.forEach(function(kt){if(typeof kt=="string"){var Rt=St.ALL_MARKER_TYPES.find(function(At){return At.typeName===kt});Rt!==void 0&&St._availableMarkerTypes.push(Rt)}else St._availableMarkerTypes.push(kt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.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(Ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var Pt=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(St){return St(new Le(Pt))})},Ot.prototype.render=function(){return we(this,void 0,void 0,function(){var Pt;return Ie(this,function(St){switch(St.label){case 0:return this.setCurrentMarker(),(Pt=new Re).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 St.sent(),[4,Pt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,St.sent()]}})})},Ot.prototype.close=function(Pt){var St=this;if(Pt===void 0&&(Pt=!1),this.isOpen){var kt=!1;Pt||this.eventListeners.beforeclose.forEach(function(Rt){var At=new Le(St,!0);Rt(At),At.defaultPrevented&&(kt=!0)}),kt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Rt){return Rt(new Le(St))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Pt,St=[],kt=0;kt<arguments.length;kt++)St[kt]=arguments[kt];(Pt=this._availableMarkerTypes).push.apply(Pt,St)},Ot.prototype.addRenderEventListener=function(Pt){this.addEventListener("render",function(St){Pt(St.dataUrl,St.state)})},Ot.prototype.removeRenderEventListener=function(Pt){},Ot.prototype.addCloseEventListener=function(Pt){this.addEventListener("close",function(){Pt()})},Ot.prototype.removeCloseEventListener=function(Pt){},Ot.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))},Ot.prototype.onPopupTargetResize=function(){var Pt=1*this.target.clientWidth/this.target.clientHeight,St=this.editorCanvas.clientWidth/Pt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Pt:this.editorCanvas.clientWidth,kt=St<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Pt;this.resize(St,kt)},Ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ot.prototype.resize=function(Pt,St){this._isResizing=!0;var kt=Pt/this.imageWidth,Rt=St/this.imageHeight;this.imageWidth=Math.round(Pt),this.imageHeight=Math.round(St),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(kt,Rt),this._isResizing=!1},Ot.prototype.scaleMarkers=function(Pt,St){var kt,Rt=this;this._currentMarker&&this._currentMarker instanceof Ne?this._currentMarker.scale(Pt,St):(kt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==Rt._currentMarker&&At.scale(Pt,St)}),kt!==void 0&&this.setCurrentMarker(kt)},Ot.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"},Ot.prototype.setTopLeft=function(){var Pt=this.editingTarget.getBoundingClientRect(),St=this.editorCanvas.getBoundingClientRect();this.left=Pt.left-St.left,this.top=Pt.top-St.top},Ot.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)},Ot.prototype.addDefs=function(){for(var Pt,St=[],kt=0;kt<arguments.length;kt++)St[kt]=arguments[kt];this.defs=zt.createDefs(),this.addDefsToImage(),(Pt=this.defs).append.apply(Pt,St)},Ot.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ot.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)},Ot.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ot.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ot.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)},Ot.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ot.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)},Ot.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()},Ot.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")},Ot.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"},Ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ot.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 He(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Bt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ot.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ot.prototype.removeMarker=function(Pt){this.markerImage.removeChild(Pt.container),this.markers.indexOf(Pt)>-1&&this.markers.splice(this.markers.indexOf(Pt),1),Pt.dispose()},Ot.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())},Ot.prototype.toolbarButtonClicked=function(Pt,St){if(Pt==="marker"&&St!==void 0)this.createNewMarker(St);else if(Pt==="action")switch(St){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()}},Ot.prototype.deleteSelectedMarker=function(){var Pt=this;if(this._currentMarker!==void 0){var St=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Rt){var At=new le(Pt,Pt._currentMarker,!0);Rt(At),At.defaultPrevented&&(St=!0)}),!St){var kt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Rt){return Rt(new le(Pt,kt))})}}},Ot.prototype.clear=function(){var Pt=this,St=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Yt){var Me=new le(Pt,void 0,!0);Yt(Me),Me.defaultPrevented&&(St=!0)}),!St)){this.setCurrentMarker();for(var kt=function(Yt){var Me=Rt.markers[Yt];Rt.setCurrentMarker(Rt.markers[Yt]),Rt._currentMarker.dispose(),Rt.markerImage.removeChild(Rt._currentMarker.container),Rt.markers.splice(Rt.markers.indexOf(Rt._currentMarker),1),Rt.eventListeners.markerdelete.forEach(function(be){return be(new le(Pt,Me))})},Rt=this,At=this.markers.length-1;At>=0;At--)kt(At);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.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))},Ot.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)},Ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ot.prototype.addUndoStep=function(){var Pt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var St=this.getState(),kt=this.undoRedoManager.getLastUndoStep();if(!kt||kt.width===St.width&&kt.height===St.height){var Rt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(St),Rt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(At){return At(new Le(Pt))})}else this.undoRedoManager.replaceLastUndoStep(St),this.eventListeners.statechange.forEach(function(At){return At(new Le(Pt))})}},Ot.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ot.prototype.undoStep=function(){var Pt=this,St=this.undoRedoManager.undo();St!==void 0&&(this.restoreState(St),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Le(Pt))}))},Ot.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ot.prototype.redoStep=function(){var Pt=this,St=this.undoRedoManager.redo();St!==void 0&&(this.restoreState(St),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new Le(Pt))}))},Ot.prototype.stepZoom=function(){var Pt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Pt<this.zoomSteps.length-1?this.zoomSteps[Pt+1]:this.zoomSteps[0]},Ot.prototype.panTo=function(Pt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Pt.x,top:this.prevPanPoint.y-Pt.y}),this.prevPanPoint=Pt},Ot.prototype.startRenderAndClose=function(){return we(this,void 0,void 0,function(){var Pt,St,kt=this;return Ie(this,function(Rt){switch(Rt.label){case 0:return[4,this.render()];case 1:return Pt=Rt.sent(),St=this.getState(),this.eventListeners.render.forEach(function(At){return At(new cn(kt,Pt,St))}),this.close(!0),[2]}})})},Ot.prototype.getState=function(Pt){Pt===!0&&this.setCurrentMarker();var St={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(kt){return St.markers.push(kt.getState())}),St},Ot.prototype.restoreState=function(Pt){var St=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Pt.markers.forEach(function(kt){var Rt=St._availableMarkerTypes.find(function(Yt){return Yt.typeName===kt.typeName});if(Rt!==void 0){var At=St.addNewMarker(Rt);At.restoreState(kt),St.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(kt){return kt(new Le(St))})},Ot.prototype.addNewMarker=function(Pt){var St=zt.createGroup();return this.markerImage.appendChild(St),new Pt(St,this.overlayContainer,this.settings)},Ot.prototype.createNewMarker=function(Pt){var St,kt=this;(St=typeof Pt=="string"?this._availableMarkerTypes.find(function(Rt){return Rt.typeName===Pt}):Pt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(St),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(St.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Rt){return Rt(new le(kt,kt._currentMarker))}))},Ot.prototype.markerCreated=function(Pt){var St=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Pt),this.setCurrentMarker(Pt),Pt instanceof Ge&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ge):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(kt){return kt(new le(St,St._currentMarker))})},Ot.prototype.colorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Pt,this.settings.defaultStrokeColor=Pt)},Ot.prototype.fillColorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Pt)},Ot.prototype.markerStateChanged=function(Pt){var St=this;this.eventListeners.markerchange.forEach(function(kt){return kt(new le(St,Pt))})},Ot.prototype.setCurrentMarker=function(Pt){var St=this;this._currentMarker!==Pt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(kt){return kt(new le(St,St._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(kt){return kt(new le(St,St._currentMarker))}))},Ot.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 St=this.markers.find(function(kt){return kt.ownsTarget(Pt.target)});St!==void 0?(this.setCurrentMarker(St),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))},Ot.prototype.onDblClick=function(Pt){if(this._isFocused||this.focus(),this.mode==="select"){var St=this.markers.find(function(kt){return kt.ownsTarget(Pt.target)});St!==void 0&&St!==this._currentMarker&&this.setCurrentMarker(St),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY),Pt.target):this.setCurrentMarker()}},Ot.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}))},Ot.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()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(Pt){this._currentMarker===void 0||this.notesArea!==void 0||Pt.key!=="Delete"&&Pt.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(Pt,St){var kt=this.markerImage.getBoundingClientRect();return{x:(Pt-kt.left)/this.zoomLevel,y:(St-kt.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.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()},Ot.prototype.addLicenseKey=function(Pt){ie.addKey(Pt)},Ot.prototype.addEventListener=function(Pt,St){this.eventListeners.addEventListener(Pt,St)},Ot.prototype.removeEventListener=function(Pt,St){this.eventListeners.removeEventListener(Pt,St)},Ot.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(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.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(St){return St(new Le(Pt))}))},Ot.prototype.blur=function(){var Pt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(St){return St(new Le(Pt))}))},Ot.instanceCounter=0,Ot}()},63727:function(Cn,_n,Nt){"use strict";Nt.d(_n,{s:function(){return pe},default:function(){return Zn}});var Ft=Nt(14809),se=Nt(20439),we=Nt(95190),Ie=Nt(50298),ge=Nt(62646),zt=Nt(37463),ie=Nt(6551),Re=Nt(6089),he=Nt(18929),Vt=Nt(59301),qe=Vt.createContext({}),te=qe,He=Nt(93664),Bt=Nt(4635),nt="__rc_cascader_search_mark__",et=function(ze,Je,jn){var Sn=jn.label,Mn=Sn===void 0?"":Sn;return Je.some(function(Hn){return String(Hn[Mn]).toLowerCase().includes(ze.toLowerCase())})},ct=function(ze,Je,jn,Sn){return Je.map(function(Mn){return Mn[Sn.label]}).join(" / ")},lt=function(ze,Je,jn,Sn,Mn,Hn){var yi=Mn.filter,Jn=yi===void 0?et:yi,xi=Mn.render,Vi=xi===void 0?ct:xi,Ii=Mn.limit,Wi=Ii===void 0?50:Ii,Ji=Mn.sort;return Vt.useMemo(function(){var er=[];if(!ze)return[];function ji(Ai,nr){var Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ai.forEach(function(li){if(!(!Ji&&Wi!==!1&&Wi>0&&er.length>=Wi)){var pi=[].concat((0,we.Z)(nr),[li]),Yn=li[jn.children],ti=Ct||li.disabled;if((!Yn||Yn.length===0||Hn)&&Jn(ze,pi,{label:jn.label})){var ri;er.push((0,se.Z)((0,se.Z)({},li),{},(ri={disabled:ti},(0,Bt.Z)(ri,jn.label,Vi(ze,pi,Sn,jn)),(0,Bt.Z)(ri,nt,pi),(0,Bt.Z)(ri,jn.children,void 0),ri)))}Yn&&ji(li[jn.children],pi,ti)}})}return ji(Je,[]),Ji&&er.sort(function(Ai,nr){return Ji(Ai[nt],nr[nt],ze,jn)}),Wi!==!1&&Wi>0?er.slice(0,Wi):er},[ze,Je,jn,Sn,Vi,Hn,Jn,Ji,Wi])},pt=lt,vt="__RC_CASCADER_SPLIT__",xt="SHOW_PARENT",Et="SHOW_CHILD";function Tt(Fe){return Fe.join(vt)}function jt(Fe){return Fe.map(Tt)}function _t(Fe){return Fe.split(vt)}function Jt(Fe){var ze=Fe||{},Je=ze.label,jn=ze.value,Sn=ze.children,Mn=jn||"value";return{label:Je||"label",value:Mn,key:Mn,children:Sn||"children"}}function Ut(Fe,ze){var Je,jn;return(Je=Fe.isLeaf)!==null&&Je!==void 0?Je:!((jn=Fe[ze.children])!==null&&jn!==void 0&&jn.length)}function fe(Fe){var ze=Fe.parentElement;if(ze){var Je=Fe.offsetTop-ze.offsetTop;Je-ze.scrollTop<0?ze.scrollTo({top:Je}):Je+Fe.offsetHeight-ze.scrollTop>ze.offsetHeight&&ze.scrollTo({top:Je+Fe.offsetHeight-ze.offsetHeight})}}function ne(Fe,ze){return Fe.map(function(Je){var jn;return(jn=Je[nt])===null||jn===void 0?void 0:jn.map(function(Sn){return Sn[ze.value]})})}function Ne(Fe){return Array.isArray(Fe)&&Array.isArray(Fe[0])}function Ge(Fe){return Fe?Ne(Fe)?Fe:(Fe.length===0?[]:[Fe]).map(function(ze){return Array.isArray(ze)?ze:[ze]}):[]}function Ye(Fe,ze,Je){var jn=new Set(Fe),Sn=ze();return Fe.filter(function(Mn){var Hn=Sn[Mn],yi=Hn?Hn.parent:null,Jn=Hn?Hn.children:null;return Hn&&Hn.node.disabled?!0:Je===Et?!(Jn&&Jn.some(function(xi){return xi.key&&jn.has(xi.key)})):!(yi&&!yi.node.disabled&&jn.has(yi.key))})}function Ln(Fe,ze,Je){for(var jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Sn=ze,Mn=[],Hn=function(){var xi,Vi,Ii,Wi=Fe[yi],Ji=(xi=Sn)===null||xi===void 0?void 0:xi.findIndex(function(ji){var Ai=ji[Je.value];return jn?String(Ai)===String(Wi):Ai===Wi}),er=Ji!==-1?(Vi=Sn)===null||Vi===void 0?void 0:Vi[Ji]:null;Mn.push({value:(Ii=er==null?void 0:er[Je.value])!==null&&Ii!==void 0?Ii:Wi,index:Ji,option:er}),Sn=er==null?void 0:er[Je.children]},yi=0;yi<Fe.length;yi+=1)Hn();return Mn}var hn=function(Fe,ze,Je,jn,Sn){return Vt.useMemo(function(){var Mn=Sn||function(Hn){var yi=jn?Hn.slice(-1):Hn,Jn=" / ";return yi.every(function(xi){return["string","number"].includes((0,He.Z)(xi))})?yi.join(Jn):yi.reduce(function(xi,Vi,Ii){var Wi=Vt.isValidElement(Vi)?Vt.cloneElement(Vi,{key:Ii}):Vi;return Ii===0?[Wi]:[].concat((0,we.Z)(xi),[Jn,Wi])},[])};return Fe.map(function(Hn){var yi,Jn=Ln(Hn,ze,Je),xi=Mn(Jn.map(function(Ii){var Wi,Ji=Ii.option,er=Ii.value;return(Wi=Ji==null?void 0:Ji[Je.label])!==null&&Wi!==void 0?Wi:er}),Jn.map(function(Ii){var Wi=Ii.option;return Wi})),Vi=Tt(Hn);return{label:xi,value:Vi,key:Vi,valueCells:Hn,disabled:(yi=Jn[Jn.length-1])===null||yi===void 0||(yi=yi.option)===null||yi===void 0?void 0:yi.disabled}})},[Fe,ze,Je,Sn,jn])};function Be(Fe,ze){return Vt.useCallback(function(Je){var jn=[],Sn=[];return Je.forEach(function(Mn){var Hn=Ln(Mn,Fe,ze);Hn.every(function(yi){return yi.option})?Sn.push(Mn):jn.push(Mn)}),[Sn,jn]},[Fe,ze])}var sn=Nt(34061),ee=function(Fe,ze){var Je=Vt.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),jn=Vt.useCallback(function(){return Je.current.options!==Fe&&(Je.current.options=Fe,Je.current.info=(0,sn.I8)(Fe,{fieldNames:ze,initWrapper:function(Mn){return(0,se.Z)((0,se.Z)({},Mn),{},{pathKeyEntities:{}})},processEntity:function(Mn,Hn){var yi=Mn.nodes.map(function(Jn){return Jn[ze.value]}).join(vt);Hn.pathKeyEntities[yi]=Mn,Mn.key=yi}})),Je.current.info.pathKeyEntities},[ze,Fe]);return jn};function Kt(Fe,ze){var Je=Vt.useMemo(function(){return ze||[]},[ze]),jn=ee(Je,Fe),Sn=Vt.useCallback(function(Mn){var Hn=jn();return Mn.map(function(yi){var Jn=Hn[yi].nodes;return Jn.map(function(xi){return xi[Fe.value]})})},[jn,Fe]);return[Je,jn,Sn]}var Oe=Nt(48736);function pn(Fe){return Vt.useMemo(function(){if(!Fe)return[!1,{}];var ze={matchInputWidth:!0,limit:50};return Fe&&(0,He.Z)(Fe)==="object"&&(ze=(0,se.Z)((0,se.Z)({},ze),Fe)),ze.limit<=0&&(ze.limit=!1),[!0,ze]},[Fe])}var mn=Nt(34643);function Ae(Fe,ze,Je,jn,Sn,Mn,Hn,yi){return function(Jn){if(!Fe)ze(Jn);else{var xi=Tt(Jn),Vi=jt(Je),Ii=jt(jn),Wi=Vi.includes(xi),Ji=Sn.some(function(ti){return Tt(ti)===xi}),er=Je,ji=Sn;if(Ji&&!Wi)ji=Sn.filter(function(ti){return Tt(ti)!==xi});else{var Ai=Wi?Vi.filter(function(ti){return ti!==xi}):[].concat((0,we.Z)(Vi),[xi]),nr=Mn(),Ct;if(Wi){var li=(0,mn.S)(Ai,{checked:!1,halfCheckedKeys:Ii},nr);Ct=li.checkedKeys}else{var pi=(0,mn.S)(Ai,!0,nr);Ct=pi.checkedKeys}var Yn=Ye(Ct,Mn,yi);er=Hn(Yn)}ze([].concat((0,we.Z)(ji),(0,we.Z)(er)))}}}function Qe(Fe,ze,Je,jn,Sn){return Vt.useMemo(function(){var Mn=Sn(ze),Hn=(0,Ie.Z)(Mn,2),yi=Hn[0],Jn=Hn[1];if(!Fe||!ze.length)return[yi,[],Jn];var xi=jt(yi),Vi=Je(),Ii=(0,mn.S)(xi,!0,Vi),Wi=Ii.checkedKeys,Ji=Ii.halfCheckedKeys;return[jn(Wi),jn(Ji),Jn]},[Fe,ze,Je,jn,Sn])}var ln=Nt(92310),Vn=Nt.n(ln),Le=Vt.memo(function(Fe){var ze=Fe.children;return ze},function(Fe,ze){return!ze.open}),cn=Le;function le(Fe){var ze,Je=Fe.prefixCls,jn=Fe.checked,Sn=Fe.halfChecked,Mn=Fe.disabled,Hn=Fe.onClick,yi=Fe.disableCheckbox,Jn=Vt.useContext(te),xi=Jn.checkable,Vi=typeof xi!="boolean"?xi:null;return Vt.createElement("span",{className:Vn()("".concat(Je),(ze={},(0,Bt.Z)(ze,"".concat(Je,"-checked"),jn),(0,Bt.Z)(ze,"".concat(Je,"-indeterminate"),!jn&&Sn),(0,Bt.Z)(ze,"".concat(Je,"-disabled"),Mn||yi),ze)),onClick:Hn},Vi)}var bn="__cascader_fix_label__";function hi(Fe){var ze=Fe.prefixCls,Je=Fe.multiple,jn=Fe.options,Sn=Fe.activeValue,Mn=Fe.prevValuePath,Hn=Fe.onToggleOpen,yi=Fe.onSelect,Jn=Fe.onActive,xi=Fe.checkedSet,Vi=Fe.halfCheckedSet,Ii=Fe.loadingKeys,Wi=Fe.isSelectable,Ji=Fe.disabled,er="".concat(ze,"-menu"),ji="".concat(ze,"-menu-item"),Ai=Vt.useContext(te),nr=Ai.fieldNames,Ct=Ai.changeOnSelect,li=Ai.expandTrigger,pi=Ai.expandIcon,Yn=Ai.loadingIcon,ti=Ai.dropdownMenuColumnStyle,ri=Ai.optionRender,vi=li==="hover",Ri=function(ue){return Ji||ue},Ni=Vt.useMemo(function(){return jn.map(function(me){var ue,ce=me.disabled,zn=me.disableCheckbox,Xn=me[nt],ni=(ue=me[bn])!==null&&ue!==void 0?ue:me[nr.label],$e=me[nr.value],In=Ut(me,nr),wi=Xn?Xn.map(function(wn){return wn[nr.value]}):[].concat((0,we.Z)(Mn),[$e]),Mi=Tt(wi),Gi=Ii.includes(Mi),Ht=xi.has(Mi),de=Vi.has(Mi);return{disabled:ce,label:ni,value:$e,isLeaf:In,isLoading:Gi,checked:Ht,halfChecked:de,option:me,disableCheckbox:zn,fullPath:wi,fullPathKey:Mi}})},[jn,xi,nr,Vi,Ii,Mn]);return Vt.createElement("ul",{className:er,role:"menu"},Ni.map(function(me){var ue,ce=me.disabled,zn=me.label,Xn=me.value,ni=me.isLeaf,$e=me.isLoading,In=me.checked,wi=me.halfChecked,Mi=me.option,Gi=me.fullPath,Ht=me.fullPathKey,de=me.disableCheckbox,wn=function(){if(!Ri(ce)){var un=(0,we.Z)(Gi);vi&&ni&&un.pop(),Jn(un)}},Bn=function(){Wi(Mi)&&!Ri(ce)&&yi(Gi,ni)},ke;return typeof Mi.title=="string"?ke=Mi.title:typeof zn=="string"&&(ke=zn),Vt.createElement("li",{key:Ht,className:Vn()(ji,(ue={},(0,Bt.Z)(ue,"".concat(ji,"-expand"),!ni),(0,Bt.Z)(ue,"".concat(ji,"-active"),Sn===Xn||Sn===Ht),(0,Bt.Z)(ue,"".concat(ji,"-disabled"),Ri(ce)),(0,Bt.Z)(ue,"".concat(ji,"-loading"),$e),ue)),style:ti,role:"menuitemcheckbox",title:ke,"aria-checked":In,"data-path-key":Ht,onClick:function(){wn(),!de&&(!Je||ni)&&Bn()},onDoubleClick:function(){Ct&&Hn(!1)},onMouseEnter:function(){vi&&wn()},onMouseDown:function(un){un.preventDefault()}},Je&&Vt.createElement(le,{prefixCls:"".concat(ze,"-checkbox"),checked:In,halfChecked:wi,disabled:Ri(ce)||de,disableCheckbox:de,onClick:function(un){de||(un.stopPropagation(),Bn())}}),Vt.createElement("div",{className:"".concat(ji,"-content")},ri?ri(Mi):zn),!$e&&pi&&!ni&&Vt.createElement("div",{className:"".concat(ji,"-expand-icon")},pi),$e&&Yn&&Vt.createElement("div",{className:"".concat(ji,"-loading-icon")},Yn))}))}var Ot=function(ze,Je){var jn=Vt.useContext(te),Sn=jn.values,Mn=Sn[0],Hn=Vt.useState([]),yi=(0,Ie.Z)(Hn,2),Jn=yi[0],xi=yi[1];return Vt.useEffect(function(){ze||xi(Mn||[])},[Je,Mn]),[Jn,xi]},Pt=Ot,St=Nt(10228),kt=function(Fe,ze,Je,jn,Sn,Mn,Hn){var yi=Hn.direction,Jn=Hn.searchValue,xi=Hn.toggleOpen,Vi=Hn.open,Ii=yi==="rtl",Wi=Vt.useMemo(function(){for(var ti=-1,ri=ze,vi=[],Ri=[],Ni=jn.length,me=ne(ze,Je),ue=function($e){var In=ri.findIndex(function(wi,Mi){return(me[Mi]?Tt(me[Mi]):wi[Je.value])===jn[$e]});if(In===-1)return 1;ti=In,vi.push(ti),Ri.push(jn[$e]),ri=ri[ti][Je.children]},ce=0;ce<Ni&&ri&&!ue(ce);ce+=1);for(var zn=ze,Xn=0;Xn<vi.length-1;Xn+=1)zn=zn[vi[Xn]][Je.children];return[Ri,ti,zn,me]},[jn,Je,ze]),Ji=(0,Ie.Z)(Wi,4),er=Ji[0],ji=Ji[1],Ai=Ji[2],nr=Ji[3],Ct=function(ri){Sn(ri)},li=function(ri){var vi=Ai.length,Ri=ji;Ri===-1&&ri<0&&(Ri=vi);for(var Ni=0;Ni<vi;Ni+=1){Ri=(Ri+ri+vi)%vi;var me=Ai[Ri];if(me&&!me.disabled){var ue=er.slice(0,-1).concat(nr[Ri]?Tt(nr[Ri]):me[Je.value]);Ct(ue);return}}},pi=function(){if(er.length>1){var ri=er.slice(0,-1);Ct(ri)}else xi(!1)},Yn=function(){var ri,vi=((ri=Ai[ji])===null||ri===void 0?void 0:ri[Je.children])||[],Ri=vi.find(function(me){return!me.disabled});if(Ri){var Ni=[].concat((0,we.Z)(er),[Ri[Je.value]]);Ct(Ni)}};Vt.useImperativeHandle(Fe,function(){return{onKeyDown:function(ri){var vi=ri.which;switch(vi){case St.Z.UP:case St.Z.DOWN:{var Ri=0;vi===St.Z.UP?Ri=-1:vi===St.Z.DOWN&&(Ri=1),Ri!==0&&li(Ri);break}case St.Z.LEFT:{if(Jn)break;Ii?Yn():pi();break}case St.Z.RIGHT:{if(Jn)break;Ii?pi():Yn();break}case St.Z.BACKSPACE:{Jn||pi();break}case St.Z.ENTER:{if(er.length){var Ni=Ai[ji],me=(Ni==null?void 0:Ni[nt])||[];me.length?Mn(me.map(function(ue){return ue[Je.value]}),me[me.length-1]):Mn(er,Ai[ji])}break}case St.Z.ESC:xi(!1),Vi&&ri.stopPropagation()}},onKeyUp:function(){}}})},Rt=Vt.forwardRef(function(Fe,ze){var Je,jn,Sn,Mn=Fe.prefixCls,Hn=Fe.multiple,yi=Fe.searchValue,Jn=Fe.toggleOpen,xi=Fe.notFoundContent,Vi=Fe.direction,Ii=Fe.open,Wi=Fe.disabled,Ji=Vt.useRef(null),er=Vi==="rtl",ji=Vt.useContext(te),Ai=ji.options,nr=ji.values,Ct=ji.halfValues,li=ji.fieldNames,pi=ji.changeOnSelect,Yn=ji.onSelect,ti=ji.searchOptions,ri=ji.dropdownPrefixCls,vi=ji.loadData,Ri=ji.expandTrigger,Ni=ri||Mn,me=Vt.useState([]),ue=(0,Ie.Z)(me,2),ce=ue[0],zn=ue[1],Xn=function(bi){if(!(!vi||yi)){var Pi=Ln(bi,Ai,li),Ci=Pi.map(function(or){var Fr=or.option;return Fr}),je=Ci[Ci.length-1];if(je&&!Ut(je,li)){var $i=Tt(bi);zn(function(or){return[].concat((0,we.Z)(or),[$i])}),vi(Ci)}}};Vt.useEffect(function(){ce.length&&ce.forEach(function(Wn){var bi=_t(Wn),Pi=Ln(bi,Ai,li,!0).map(function(je){var $i=je.option;return $i}),Ci=Pi[Pi.length-1];(!Ci||Ci[li.children]||Ut(Ci,li))&&zn(function(je){return je.filter(function($i){return $i!==Wn})})})},[Ai,ce,li]);var ni=Vt.useMemo(function(){return new Set(jt(nr))},[nr]),$e=Vt.useMemo(function(){return new Set(jt(Ct))},[Ct]),In=Pt(Hn,Ii),wi=(0,Ie.Z)(In,2),Mi=wi[0],Gi=wi[1],Ht=function(bi){Gi(bi),Xn(bi)},de=function(bi){if(Wi)return!1;var Pi=bi.disabled,Ci=Ut(bi,li);return!Pi&&(Ci||pi||Hn)},wn=function(bi,Pi){var Ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Yn(bi),!Hn&&(Pi||pi&&(Ri==="hover"||Ci))&&Jn(!1)},Bn=Vt.useMemo(function(){return yi?ti:Ai},[yi,ti,Ai]),ke=Vt.useMemo(function(){for(var Wn=[{options:Bn}],bi=Bn,Pi=ne(bi,li),Ci=function(){var or=Mi[je],Fr=bi.find(function(Rn,fi){return(Pi[fi]?Tt(Pi[fi]):Rn[li.value])===or}),Ue=Fr==null?void 0:Fr[li.children];if(!(Ue!=null&&Ue.length))return 1;bi=Ue,Wn.push({options:Ue})},je=0;je<Mi.length&&!Ci();je+=1);return Wn},[Bn,Mi,li]),vn=function(bi,Pi){de(Pi)&&wn(bi,Ut(Pi,li),!0)};kt(ze,Bn,li,Mi,Ht,vn,{direction:Vi,searchValue:yi,toggleOpen:Jn,open:Ii}),Vt.useEffect(function(){if(!yi)for(var Wn=0;Wn<Mi.length;Wn+=1){var bi,Pi=Mi.slice(0,Wn+1),Ci=Tt(Pi),je=(bi=Ji.current)===null||bi===void 0?void 0:bi.querySelector('li[data-path-key="'.concat(Ci.replace(/\\{0,2}"/g,'\\"'),'"]'));je&&fe(je)}},[Mi,yi]);var un=!((Je=ke[0])!==null&&Je!==void 0&&(Je=Je.options)!==null&&Je!==void 0&&Je.length),Pn=[(jn={},(0,Bt.Z)(jn,li.value,"__EMPTY__"),(0,Bt.Z)(jn,bn,xi),(0,Bt.Z)(jn,"disabled",!0),jn)],$n=(0,se.Z)((0,se.Z)({},Fe),{},{multiple:!un&&Hn,onSelect:wn,onActive:Ht,onToggleOpen:Jn,checkedSet:ni,halfCheckedSet:$e,loadingKeys:ce,isSelectable:de}),Dn=un?[{options:Pn}]:ke,Un=Dn.map(function(Wn,bi){var Pi=Mi.slice(0,bi),Ci=Mi[bi];return Vt.createElement(hi,(0,Ft.Z)({key:bi},$n,{prefixCls:Ni,options:Wn.options,prevValuePath:Pi,activeValue:Ci}))});return Vt.createElement(cn,{open:Ii},Vt.createElement("div",{className:Vn()("".concat(Ni,"-menus"),(Sn={},(0,Bt.Z)(Sn,"".concat(Ni,"-menu-empty"),un),(0,Bt.Z)(Sn,"".concat(Ni,"-rtl"),er),Sn)),ref:Ji},Un))}),At=Rt,Yt=Vt.forwardRef(function(Fe,ze){var Je=(0,zt.lk)();return Vt.createElement(At,(0,Ft.Z)({},Fe,Je,{ref:ze}))}),Me=Yt,be=Nt(70425);function We(){}function pe(Fe){var ze,Je=Fe,jn=Je.prefixCls,Sn=jn===void 0?"rc-cascader":jn,Mn=Je.style,Hn=Je.className,yi=Je.options,Jn=Je.checkable,xi=Je.defaultValue,Vi=Je.value,Ii=Je.fieldNames,Wi=Je.changeOnSelect,Ji=Je.onChange,er=Je.showCheckedStrategy,ji=Je.loadData,Ai=Je.expandTrigger,nr=Je.expandIcon,Ct=nr===void 0?">":nr,li=Je.loadingIcon,pi=Je.direction,Yn=Je.notFoundContent,ti=Yn===void 0?"Not Found":Yn,ri=Je.disabled,vi=!!Jn,Ri=(0,be.C8)(xi,{value:Vi,postState:Ge}),Ni=(0,Ie.Z)(Ri,2),me=Ni[0],ue=Ni[1],ce=Vt.useMemo(function(){return Jt(Ii)},[JSON.stringify(Ii)]),zn=Kt(ce,yi),Xn=(0,Ie.Z)(zn,3),ni=Xn[0],$e=Xn[1],In=Xn[2],wi=Be(ni,ce),Mi=Qe(vi,me,$e,In,wi),Gi=(0,Ie.Z)(Mi,3),Ht=Gi[0],de=Gi[1],wn=Gi[2],Bn=(0,be.zX)(function(Dn){if(ue(Dn),Ji){var Un=Ge(Dn),Wn=Un.map(function(Ci){return Ln(Ci,ni,ce).map(function(je){return je.option})}),bi=vi?Un:Un[0],Pi=vi?Wn:Wn[0];Ji(bi,Pi)}}),ke=Ae(vi,Bn,Ht,de,wn,$e,In,er),vn=(0,be.zX)(function(Dn){ke(Dn)}),un=Vt.useMemo(function(){return{options:ni,fieldNames:ce,values:Ht,halfValues:de,changeOnSelect:Wi,onSelect:vn,checkable:Jn,searchOptions:[],dropdownPrefixCls:void 0,loadData:ji,expandTrigger:Ai,expandIcon:Ct,loadingIcon:li,dropdownMenuColumnStyle:void 0}},[ni,ce,Ht,de,Wi,vn,Jn,ji,Ai,Ct,li]),Pn="".concat(Sn,"-panel"),$n=!ni.length;return Vt.createElement(te.Provider,{value:un},Vt.createElement("div",{className:Vn()(Pn,(ze={},(0,Bt.Z)(ze,"".concat(Pn,"-rtl"),pi==="rtl"),(0,Bt.Z)(ze,"".concat(Pn,"-empty"),$n),ze),Hn),style:Mn},$n?ti:Vt.createElement(At,{prefixCls:Sn,searchValue:"",multiple:vi,toggleOpen:We,open:!0,direction:pi,disabled:ri})))}function ve(Fe){var ze=Fe.onPopupVisibleChange,Je=Fe.popupVisible,jn=Fe.popupClassName,Sn=Fe.popupPlacement;warning(!ze,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Je===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(jn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Sn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function xe(Fe,ze){if(Fe){var Je=function jn(Sn){for(var Mn=0;Mn<Sn.length;Mn++){var Hn=Sn[Mn];if(Hn[ze==null?void 0:ze.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Hn[ze==null?void 0:ze.children])&&jn(Hn[ze==null?void 0:ze.children]))return!0}};Je(Fe)}}var Te=null,Ke=["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"],xn=Vt.forwardRef(function(Fe,ze){var Je=Fe.id,jn=Fe.prefixCls,Sn=jn===void 0?"rc-cascader":jn,Mn=Fe.fieldNames,Hn=Fe.defaultValue,yi=Fe.value,Jn=Fe.changeOnSelect,xi=Fe.onChange,Vi=Fe.displayRender,Ii=Fe.checkable,Wi=Fe.autoClearSearchValue,Ji=Wi===void 0?!0:Wi,er=Fe.searchValue,ji=Fe.onSearch,Ai=Fe.showSearch,nr=Fe.expandTrigger,Ct=Fe.options,li=Fe.dropdownPrefixCls,pi=Fe.loadData,Yn=Fe.popupVisible,ti=Fe.open,ri=Fe.popupClassName,vi=Fe.dropdownClassName,Ri=Fe.dropdownMenuColumnStyle,Ni=Fe.dropdownStyle,me=Fe.popupPlacement,ue=Fe.placement,ce=Fe.onDropdownVisibleChange,zn=Fe.onPopupVisibleChange,Xn=Fe.expandIcon,ni=Xn===void 0?">":Xn,$e=Fe.loadingIcon,In=Fe.children,wi=Fe.dropdownMatchSelectWidth,Mi=wi===void 0?!1:wi,Gi=Fe.showCheckedStrategy,Ht=Gi===void 0?xt:Gi,de=Fe.optionRender,wn=(0,ge.Z)(Fe,Ke),Bn=(0,ie.ZP)(Je),ke=!!Ii,vn=(0,he.Z)(Hn,{value:yi,postState:Ge}),un=(0,Ie.Z)(vn,2),Pn=un[0],$n=un[1],Dn=Vt.useMemo(function(){return Jt(Mn)},[JSON.stringify(Mn)]),Un=Kt(Dn,Ct),Wn=(0,Ie.Z)(Un,3),bi=Wn[0],Pi=Wn[1],Ci=Wn[2],je=(0,he.Z)("",{value:er,postState:function(ui){return ui||""}}),$i=(0,Ie.Z)(je,2),or=$i[0],Fr=$i[1],Ue=function(ui,ai){Fr(ui),ai.source!=="blur"&&ji&&ji(ui)},Rn=pn(Ai),fi=(0,Ie.Z)(Rn,2),ci=fi[0],Ei=fi[1],Zi=pt(or,bi,Dn,li||Sn,Ei,Jn||ke),tr=Be(bi,Dn),sr=Qe(ke,Pn,Pi,Ci,tr),dr=(0,Ie.Z)(sr,3),gr=dr[0],tn=dr[1],Br=dr[2],en=Vt.useMemo(function(){var Nn=jt(gr),ui=Ye(Nn,Pi,Ht);return[].concat((0,we.Z)(Br),(0,we.Z)(Ci(ui)))},[gr,Pi,Ci,Br,Ht]),ki=hn(en,bi,Dn,ke,Vi),vr=(0,Re.Z)(function(Nn){if($n(Nn),xi){var ui=Ge(Nn),ai=ui.map(function(kn){return Ln(kn,bi,Dn).map(function(Tn){return Tn.option})}),Qn=ke?ui:ui[0],nn=ke?ai:ai[0];xi(Qn,nn)}}),yr=Ae(ke,vr,gr,tn,Br,Pi,Ci,Ht),Wr=(0,Re.Z)(function(Nn){(!ke||Ji)&&Fr(""),yr(Nn)}),Pr=function(ui,ai){if(ai.type==="clear"){vr([]);return}var Qn=ai.values[0],nn=Qn.valueCells;Wr(nn)},ir=ti!==void 0?ti:Yn,Kr=vi||ri,Ee=ue||me,an=function(ui){ce==null||ce(ui),zn==null||zn(ui)},Pe=Vt.useMemo(function(){return{options:bi,fieldNames:Dn,values:gr,halfValues:tn,changeOnSelect:Jn,onSelect:Wr,checkable:Ii,searchOptions:Zi,dropdownPrefixCls:li,loadData:pi,expandTrigger:nr,expandIcon:ni,loadingIcon:$e,dropdownMenuColumnStyle:Ri,optionRender:de}},[bi,Dn,gr,tn,Jn,Wr,Ii,Zi,li,pi,nr,ni,$e,Ri,de]),Mt=!(or?Zi:bi).length,An=or&&Ei.matchInputWidth||Mt?{}:{minWidth:"auto"};return Vt.createElement(te.Provider,{value:Pe},Vt.createElement(zt.Ac,(0,Ft.Z)({},wn,{ref:ze,id:Bn,prefixCls:Sn,autoClearSearchValue:Ji,dropdownMatchSelectWidth:Mi,dropdownStyle:(0,se.Z)((0,se.Z)({},An),Ni),displayValues:ki,onDisplayValuesChange:Pr,mode:ke?"multiple":void 0,searchValue:or,onSearch:Ue,showSearch:ci,OptionList:Me,emptyOptions:Mt,open:ir,dropdownClassName:Kr,placement:Ee,onDropdownVisibleChange:an,getRawInputElement:function(){return In}})))});xn.SHOW_PARENT=xt,xn.SHOW_CHILD=Et,xn.Panel=pe;var _e=xn,Zn=_e},23425:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return jt}});var Ft=Nt(4635),se=Nt(14809),we=Nt(93664),Ie=Nt(20439),ge=Nt(50298),zt=Nt(92310),ie=Nt.n(zt),Re=Nt(18929),he=Nt(10228),Vt=Nt(26112),qe=Nt(48736),te=Nt(59301),He=Nt(17119),Bt=[10,20,50,100],nt=function(Jt){var Ut=Jt.pageSizeOptions,fe=Ut===void 0?Bt:Ut,ne=Jt.locale,Ne=Jt.changeSize,Ge=Jt.pageSize,Ye=Jt.goButton,Ln=Jt.quickGo,hn=Jt.rootPrefixCls,Be=Jt.disabled,sn=Jt.buildOptionText,ee=Jt.showSizeChanger,Kt=Jt.sizeChangerRender,Oe=te.useState(""),pn=(0,ge.Z)(Oe,2),mn=pn[0],Ae=pn[1],Qe=function(){return!mn||Number.isNaN(mn)?void 0:Number(mn)},ln=typeof sn=="function"?sn:function(St){return"".concat(St," ").concat(ne.items_per_page)},Vn=function(kt){Ae(kt.target.value)},Le=function(kt){Ye||mn===""||(Ae(""),!(kt.relatedTarget&&(kt.relatedTarget.className.indexOf("".concat(hn,"-item-link"))>=0||kt.relatedTarget.className.indexOf("".concat(hn,"-item"))>=0))&&(Ln==null||Ln(Qe())))},cn=function(kt){mn!==""&&(kt.keyCode===he.Z.ENTER||kt.type==="click")&&(Ae(""),Ln==null||Ln(Qe()))},le=function(){return fe.some(function(kt){return kt.toString()===Ge.toString()})?fe:fe.concat([Ge]).sort(function(kt,Rt){var At=Number.isNaN(Number(kt))?0:Number(kt),Yt=Number.isNaN(Number(Rt))?0:Number(Rt);return At-Yt})},bn="".concat(hn,"-options");if(!ee&&!Ln)return null;var hi=null,Ot=null,Pt=null;return ee&&Kt&&(hi=Kt({disabled:Be,size:Ge,onSizeChange:function(kt){Ne==null||Ne(Number(kt))},"aria-label":ne.page_size,className:"".concat(bn,"-size-changer"),options:le().map(function(St){return{label:ln(St),value:St}})})),Ln&&(Ye&&(Pt=typeof Ye=="boolean"?te.createElement("button",{type:"button",onClick:cn,onKeyUp:cn,disabled:Be,className:"".concat(bn,"-quick-jumper-button")},ne.jump_to_confirm):te.createElement("span",{onClick:cn,onKeyUp:cn},Ye)),Ot=te.createElement("div",{className:"".concat(bn,"-quick-jumper")},ne.jump_to,te.createElement("input",{disabled:Be,type:"text",value:mn,onChange:Vn,onKeyUp:cn,onBlur:Le,"aria-label":ne.page}),ne.page,Pt)),te.createElement("li",{className:bn},hi,Ot)},et=nt,ct=function(Jt){var Ut=Jt.rootPrefixCls,fe=Jt.page,ne=Jt.active,Ne=Jt.className,Ge=Jt.showTitle,Ye=Jt.onClick,Ln=Jt.onKeyPress,hn=Jt.itemRender,Be="".concat(Ut,"-item"),sn=ie()(Be,"".concat(Be,"-").concat(fe),(0,Ft.Z)((0,Ft.Z)({},"".concat(Be,"-active"),ne),"".concat(Be,"-disabled"),!fe),Ne),ee=function(){Ye(fe)},Kt=function(mn){Ln(mn,Ye,fe)},Oe=hn(fe,"page",te.createElement("a",{rel:"nofollow"},fe));return Oe?te.createElement("li",{title:Ge?String(fe):null,className:sn,onClick:ee,onKeyDown:Kt,tabIndex:0},Oe):null},lt=ct,pt=function(Jt,Ut,fe){return fe};function vt(){}function xt(_t){var Jt=Number(_t);return typeof Jt=="number"&&!Number.isNaN(Jt)&&isFinite(Jt)&&Math.floor(Jt)===Jt}function Et(_t,Jt,Ut){var fe=typeof _t=="undefined"?Jt:_t;return Math.floor((Ut-1)/fe)+1}var Tt=function(Jt){var Ut=Jt.prefixCls,fe=Ut===void 0?"rc-pagination":Ut,ne=Jt.selectPrefixCls,Ne=ne===void 0?"rc-select":ne,Ge=Jt.className,Ye=Jt.current,Ln=Jt.defaultCurrent,hn=Ln===void 0?1:Ln,Be=Jt.total,sn=Be===void 0?0:Be,ee=Jt.pageSize,Kt=Jt.defaultPageSize,Oe=Kt===void 0?10:Kt,pn=Jt.onChange,mn=pn===void 0?vt:pn,Ae=Jt.hideOnSinglePage,Qe=Jt.align,ln=Jt.showPrevNextJumpers,Vn=ln===void 0?!0:ln,Le=Jt.showQuickJumper,cn=Jt.showLessItems,le=Jt.showTitle,bn=le===void 0?!0:le,hi=Jt.onShowSizeChange,Ot=hi===void 0?vt:hi,Pt=Jt.locale,St=Pt===void 0?He.Z:Pt,kt=Jt.style,Rt=Jt.totalBoundaryShowSizeChanger,At=Rt===void 0?50:Rt,Yt=Jt.disabled,Me=Jt.simple,be=Jt.showTotal,We=Jt.showSizeChanger,pe=We===void 0?sn>At:We,ve=Jt.sizeChangerRender,xe=Jt.pageSizeOptions,Te=Jt.itemRender,Ke=Te===void 0?pt:Te,xn=Jt.jumpPrevIcon,_e=Jt.jumpNextIcon,Zn=Jt.prevIcon,Fe=Jt.nextIcon,ze=te.useRef(null),Je=(0,Re.Z)(10,{value:ee,defaultValue:Oe}),jn=(0,ge.Z)(Je,2),Sn=jn[0],Mn=jn[1],Hn=(0,Re.Z)(1,{value:Ye,defaultValue:hn,postState:function(vr){return Math.max(1,Math.min(vr,Et(void 0,Sn,sn)))}}),yi=(0,ge.Z)(Hn,2),Jn=yi[0],xi=yi[1],Vi=te.useState(Jn),Ii=(0,ge.Z)(Vi,2),Wi=Ii[0],Ji=Ii[1];(0,te.useEffect)(function(){Ji(Jn)},[Jn]);var er=mn!==vt,ji="current"in Jt,Ai=Math.max(1,Jn-(cn?3:5)),nr=Math.min(Et(void 0,Sn,sn),Jn+(cn?3:5));function Ct(ki,vr){var yr=ki||te.createElement("button",{type:"button","aria-label":vr,className:"".concat(fe,"-item-link")});return typeof ki=="function"&&(yr=te.createElement(ki,(0,Ie.Z)({},Jt))),yr}function li(ki){var vr=ki.target.value,yr=Et(void 0,Sn,sn),Wr;return vr===""?Wr=vr:Number.isNaN(Number(vr))?Wr=Wi:vr>=yr?Wr=yr:Wr=Number(vr),Wr}function pi(ki){return xt(ki)&&ki!==Jn&&xt(sn)&&sn>0}var Yn=sn>Sn?Le:!1;function ti(ki){(ki.keyCode===he.Z.UP||ki.keyCode===he.Z.DOWN)&&ki.preventDefault()}function ri(ki){var vr=li(ki);switch(vr!==Wi&&Ji(vr),ki.keyCode){case he.Z.ENTER:Ni(vr);break;case he.Z.UP:Ni(vr-1);break;case he.Z.DOWN:Ni(vr+1);break;default:break}}function vi(ki){Ni(li(ki))}function Ri(ki){var vr=Et(ki,Sn,sn),yr=Jn>vr&&vr!==0?vr:Jn;Mn(ki),Ji(yr),Ot==null||Ot(Jn,ki),xi(yr),mn==null||mn(yr,ki)}function Ni(ki){if(pi(ki)&&!Yt){var vr=Et(void 0,Sn,sn),yr=ki;return ki>vr?yr=vr:ki<1&&(yr=1),yr!==Wi&&Ji(yr),xi(yr),mn==null||mn(yr,Sn),yr}return Jn}var me=Jn>1,ue=Jn<Et(void 0,Sn,sn);function ce(){me&&Ni(Jn-1)}function zn(){ue&&Ni(Jn+1)}function Xn(){Ni(Ai)}function ni(){Ni(nr)}function $e(ki,vr){if(ki.key==="Enter"||ki.charCode===he.Z.ENTER||ki.keyCode===he.Z.ENTER){for(var yr=arguments.length,Wr=new Array(yr>2?yr-2:0),Pr=2;Pr<yr;Pr++)Wr[Pr-2]=arguments[Pr];vr.apply(void 0,Wr)}}function In(ki){$e(ki,ce)}function wi(ki){$e(ki,zn)}function Mi(ki){$e(ki,Xn)}function Gi(ki){$e(ki,ni)}function Ht(ki){var vr=Ke(ki,"prev",Ct(Zn,"prev page"));return te.isValidElement(vr)?te.cloneElement(vr,{disabled:!me}):vr}function de(ki){var vr=Ke(ki,"next",Ct(Fe,"next page"));return te.isValidElement(vr)?te.cloneElement(vr,{disabled:!ue}):vr}function wn(ki){(ki.type==="click"||ki.keyCode===he.Z.ENTER)&&Ni(Wi)}var Bn=null,ke=(0,Vt.Z)(Jt,{aria:!0,data:!0}),vn=be&&te.createElement("li",{className:"".concat(fe,"-total-text")},be(sn,[sn===0?0:(Jn-1)*Sn+1,Jn*Sn>sn?sn:Jn*Sn])),un=null,Pn=Et(void 0,Sn,sn);if(Ae&&sn<=Sn)return null;var $n=[],Dn={rootPrefixCls:fe,onClick:Ni,onKeyPress:$e,showTitle:bn,itemRender:Ke,page:-1},Un=Jn-1>0?Jn-1:0,Wn=Jn+1<Pn?Jn+1:Pn,bi=Le&&Le.goButton,Pi=(0,we.Z)(Me)==="object"?Me.readOnly:!Me,Ci=bi,je=null;Me&&(bi&&(typeof bi=="boolean"?Ci=te.createElement("button",{type:"button",onClick:wn,onKeyUp:wn},St.jump_to_confirm):Ci=te.createElement("span",{onClick:wn,onKeyUp:wn},bi),Ci=te.createElement("li",{title:bn?"".concat(St.jump_to).concat(Jn,"/").concat(Pn):null,className:"".concat(fe,"-simple-pager")},Ci)),je=te.createElement("li",{title:bn?"".concat(Jn,"/").concat(Pn):null,className:"".concat(fe,"-simple-pager")},Pi?Wi:te.createElement("input",{type:"text","aria-label":St.jump_to,value:Wi,disabled:Yt,onKeyDown:ti,onKeyUp:ri,onChange:ri,onBlur:vi,size:3}),te.createElement("span",{className:"".concat(fe,"-slash")},"/"),Pn));var $i=cn?1:2;if(Pn<=3+$i*2){Pn||$n.push(te.createElement(lt,(0,se.Z)({},Dn,{key:"noPager",page:1,className:"".concat(fe,"-item-disabled")})));for(var or=1;or<=Pn;or+=1)$n.push(te.createElement(lt,(0,se.Z)({},Dn,{key:or,page:or,active:Jn===or})))}else{var Fr=cn?St.prev_3:St.prev_5,Ue=cn?St.next_3:St.next_5,Rn=Ke(Ai,"jump-prev",Ct(xn,"prev page")),fi=Ke(nr,"jump-next",Ct(_e,"next page"));Vn&&(Bn=Rn?te.createElement("li",{title:bn?Fr:null,key:"prev",onClick:Xn,tabIndex:0,onKeyDown:Mi,className:ie()("".concat(fe,"-jump-prev"),(0,Ft.Z)({},"".concat(fe,"-jump-prev-custom-icon"),!!xn))},Rn):null,un=fi?te.createElement("li",{title:bn?Ue:null,key:"next",onClick:ni,tabIndex:0,onKeyDown:Gi,className:ie()("".concat(fe,"-jump-next"),(0,Ft.Z)({},"".concat(fe,"-jump-next-custom-icon"),!!_e))},fi):null);var ci=Math.max(1,Jn-$i),Ei=Math.min(Jn+$i,Pn);Jn-1<=$i&&(Ei=1+$i*2),Pn-Jn<=$i&&(ci=Pn-$i*2);for(var Zi=ci;Zi<=Ei;Zi+=1)$n.push(te.createElement(lt,(0,se.Z)({},Dn,{key:Zi,page:Zi,active:Jn===Zi})));if(Jn-1>=$i*2&&Jn!==3&&($n[0]=te.cloneElement($n[0],{className:ie()("".concat(fe,"-item-after-jump-prev"),$n[0].props.className)}),$n.unshift(Bn)),Pn-Jn>=$i*2&&Jn!==Pn-2){var tr=$n[$n.length-1];$n[$n.length-1]=te.cloneElement(tr,{className:ie()("".concat(fe,"-item-before-jump-next"),tr.props.className)}),$n.push(un)}ci!==1&&$n.unshift(te.createElement(lt,(0,se.Z)({},Dn,{key:1,page:1}))),Ei!==Pn&&$n.push(te.createElement(lt,(0,se.Z)({},Dn,{key:Pn,page:Pn})))}var sr=Ht(Un);if(sr){var dr=!me||!Pn;sr=te.createElement("li",{title:bn?St.prev_page:null,onClick:ce,tabIndex:dr?null:0,onKeyDown:In,className:ie()("".concat(fe,"-prev"),(0,Ft.Z)({},"".concat(fe,"-disabled"),dr)),"aria-disabled":dr},sr)}var gr=de(Wn);if(gr){var tn,Br;Me?(tn=!ue,Br=me?0:null):(tn=!ue||!Pn,Br=tn?null:0),gr=te.createElement("li",{title:bn?St.next_page:null,onClick:zn,tabIndex:Br,onKeyDown:wi,className:ie()("".concat(fe,"-next"),(0,Ft.Z)({},"".concat(fe,"-disabled"),tn)),"aria-disabled":tn},gr)}var en=ie()(fe,Ge,(0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)((0,Ft.Z)({},"".concat(fe,"-start"),Qe==="start"),"".concat(fe,"-center"),Qe==="center"),"".concat(fe,"-end"),Qe==="end"),"".concat(fe,"-simple"),Me),"".concat(fe,"-disabled"),Yt));return te.createElement("ul",(0,se.Z)({className:en,style:kt,ref:ze},ke),vn,sr,Me?je:$n,gr,te.createElement(et,{locale:St,rootPrefixCls:fe,disabled:Yt,selectPrefixCls:Ne,changeSize:Ri,pageSize:Sn,pageSizeOptions:xe,quickGo:Yn?Ni:null,goButton:Ci,showSizeChanger:pe,sizeChangerRender:ve}))},jt=Tt},25930:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Cd:function(){return fe}});var Ft=Nt(14809),se=Nt(20439),we=Nt(62646),Ie=Nt(59301),ge=Nt(92310),zt=Nt.n(ge),ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Re=function(){var Ge=(0,Ie.useRef)([]),Ye=(0,Ie.useRef)(null);return(0,Ie.useEffect)(function(){var Ln=Date.now(),hn=!1;Ge.current.forEach(function(Be){if(Be){hn=!0;var sn=Be.style;sn.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&Ln-Ye.current<100&&(sn.transitionDuration="0s, 0s")}}),hn&&(Ye.current=Date.now())}),Ge.current},he=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Vt=function(Ge){var Ye=(0,se.Z)((0,se.Z)({},ie),Ge),Ln=Ye.className,hn=Ye.percent,Be=Ye.prefixCls,sn=Ye.strokeColor,ee=Ye.strokeLinecap,Kt=Ye.strokeWidth,Oe=Ye.style,pn=Ye.trailColor,mn=Ye.trailWidth,Ae=Ye.transition,Qe=(0,we.Z)(Ye,he);delete Qe.gapPosition;var ln=Array.isArray(hn)?hn:[hn],Vn=Array.isArray(sn)?sn:[sn],Le=Re(),cn=Kt/2,le=100-Kt/2,bn="M ".concat(ee==="round"?cn:0,",").concat(cn,`
|
|
L `).concat(ee==="round"?le:100,",").concat(cn),hi="0 0 100 ".concat(Kt),Ot=0;return Ie.createElement("svg",(0,Ft.Z)({className:zt()("".concat(Be,"-line"),Ln),viewBox:hi,preserveAspectRatio:"none",style:Oe},Qe),Ie.createElement("path",{className:"".concat(Be,"-line-trail"),d:bn,strokeLinecap:ee,stroke:pn,strokeWidth:mn||Kt,fillOpacity:"0"}),ln.map(function(Pt,St){var kt=1;switch(ee){case"round":kt=1-Kt/100;break;case"square":kt=1-Kt/2/100;break;default:kt=1;break}var Rt={strokeDasharray:"".concat(Pt*kt,"px, 100px"),strokeDashoffset:"-".concat(Ot,"px"),transition:Ae||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},At=Vn[St]||Vn[Vn.length-1];return Ot+=Pt,Ie.createElement("path",{key:St,className:"".concat(Be,"-line-path"),d:bn,strokeLinecap:ee,stroke:At,strokeWidth:Kt,fillOpacity:"0",ref:function(Me){Le[St]=Me},style:Rt})}))},qe=Vt,te=Nt(93664),He=Nt(50298),Bt=Nt(47273),nt=0,et=(0,Bt.Z)();function ct(){var Ne;return et?(Ne=nt,nt+=1):Ne="TEST_OR_SSR",Ne}var lt=function(Ne){var Ge=Ie.useState(),Ye=(0,He.Z)(Ge,2),Ln=Ye[0],hn=Ye[1];return Ie.useEffect(function(){hn("rc_progress_".concat(ct()))},[]),Ne||Ln},pt=function(Ge){var Ye=Ge.bg,Ln=Ge.children;return Ie.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},Ln)};function vt(Ne,Ge){return Object.keys(Ne).map(function(Ye){var Ln=parseFloat(Ye),hn="".concat(Math.floor(Ln*Ge),"%");return"".concat(Ne[Ye]," ").concat(hn)})}var xt=Ie.forwardRef(function(Ne,Ge){var Ye=Ne.prefixCls,Ln=Ne.color,hn=Ne.gradientId,Be=Ne.radius,sn=Ne.style,ee=Ne.ptg,Kt=Ne.strokeLinecap,Oe=Ne.strokeWidth,pn=Ne.size,mn=Ne.gapDegree,Ae=Ln&&(0,te.Z)(Ln)==="object",Qe=Ae?"#FFF":void 0,ln=pn/2,Vn=Ie.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Be,cx:ln,cy:ln,stroke:Qe,strokeLinecap:Kt,strokeWidth:Oe,opacity:ee===0?0:1,style:sn,ref:Ge});if(!Ae)return Vn;var Le="".concat(hn,"-conic"),cn=mn?"".concat(180+mn/2,"deg"):"0deg",le=vt(Ln,(360-mn)/360),bn=vt(Ln,1),hi="conic-gradient(from ".concat(cn,", ").concat(le.join(", "),")"),Ot="linear-gradient(to ".concat(mn?"bottom":"top",", ").concat(bn.join(", "),")");return Ie.createElement(Ie.Fragment,null,Ie.createElement("mask",{id:Le},Vn),Ie.createElement("foreignObject",{x:0,y:0,width:pn,height:pn,mask:"url(#".concat(Le,")")},Ie.createElement(pt,{bg:Ot},Ie.createElement(pt,{bg:hi}))))}),Et=xt,Tt=100,jt=function(Ge,Ye,Ln,hn,Be,sn,ee,Kt,Oe,pn){var mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ae=Ln/100*360*((360-sn)/360),Qe=sn===0?0:{bottom:0,top:180,left:90,right:-90}[ee],ln=(100-hn)/100*Ye;Oe==="round"&&hn!==100&&(ln+=pn/2,ln>=Ye&&(ln=Ye-.01));var Vn=Tt/2;return{stroke:typeof Kt=="string"?Kt:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Ge),strokeDashoffset:ln+mn,transform:"rotate(".concat(Be+Ae+Qe,"deg)"),transformOrigin:"".concat(Vn,"px ").concat(Vn,"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}},_t=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Jt(Ne){var Ge=Ne!=null?Ne:[];return Array.isArray(Ge)?Ge:[Ge]}var Ut=function(Ge){var Ye=(0,se.Z)((0,se.Z)({},ie),Ge),Ln=Ye.id,hn=Ye.prefixCls,Be=Ye.steps,sn=Ye.strokeWidth,ee=Ye.trailWidth,Kt=Ye.gapDegree,Oe=Kt===void 0?0:Kt,pn=Ye.gapPosition,mn=Ye.trailColor,Ae=Ye.strokeLinecap,Qe=Ye.style,ln=Ye.className,Vn=Ye.strokeColor,Le=Ye.percent,cn=(0,we.Z)(Ye,_t),le=Tt/2,bn=lt(Ln),hi="".concat(bn,"-gradient"),Ot=le-sn/2,Pt=Math.PI*2*Ot,St=Oe>0?90+Oe/2:-90,kt=Pt*((360-Oe)/360),Rt=(0,te.Z)(Be)==="object"?Be:{count:Be,gap:2},At=Rt.count,Yt=Rt.gap,Me=Jt(Le),be=Jt(Vn),We=be.find(function(_e){return _e&&(0,te.Z)(_e)==="object"}),pe=We&&(0,te.Z)(We)==="object",ve=pe?"butt":Ae,xe=jt(Pt,kt,0,100,St,Oe,pn,mn,ve,sn),Te=Re(),Ke=function(){var Zn=0;return Me.map(function(Fe,ze){var Je=be[ze]||be[be.length-1],jn=jt(Pt,kt,Zn,Fe,St,Oe,pn,Je,ve,sn);return Zn+=Fe,Ie.createElement(Et,{key:ze,color:Je,ptg:Fe,radius:Ot,prefixCls:hn,gradientId:hi,style:jn,strokeLinecap:ve,strokeWidth:sn,gapDegree:Oe,ref:function(Mn){Te[ze]=Mn},size:Tt})}).reverse()},xn=function(){var Zn=Math.round(At*(Me[0]/100)),Fe=100/At,ze=0;return new Array(At).fill(null).map(function(Je,jn){var Sn=jn<=Zn-1?be[0]:mn,Mn=Sn&&(0,te.Z)(Sn)==="object"?"url(#".concat(hi,")"):void 0,Hn=jt(Pt,kt,ze,Fe,St,Oe,pn,Sn,"butt",sn,Yt);return ze+=(kt-Hn.strokeDashoffset+Yt)*100/kt,Ie.createElement("circle",{key:jn,className:"".concat(hn,"-circle-path"),r:Ot,cx:le,cy:le,stroke:Mn,strokeWidth:sn,opacity:1,style:Hn,ref:function(Jn){Te[jn]=Jn}})})};return Ie.createElement("svg",(0,Ft.Z)({className:zt()("".concat(hn,"-circle"),ln),viewBox:"0 0 ".concat(Tt," ").concat(Tt),style:Qe,id:Ln,role:"presentation"},cn),!At&&Ie.createElement("circle",{className:"".concat(hn,"-circle-trail"),r:Ot,cx:le,cy:le,stroke:mn,strokeLinecap:ve,strokeWidth:ee||sn,style:xe}),At?xn():Ke())},fe=Ut,ne={Line:qe,Circle:fe}},738:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return vt}});var Ft=Nt(14809),se=Nt(4635),we=Nt(50298),Ie=Nt(62646),ge=Nt(92310),zt=Nt.n(ge),ie=Nt(18929),Re=Nt(10228),he=Nt(26112),Vt=Nt(59301);function qe(xt,Et){var Tt=xt.disabled,jt=xt.prefixCls,_t=xt.character,Jt=xt.characterRender,Ut=xt.index,fe=xt.count,ne=xt.value,Ne=xt.allowHalf,Ge=xt.focused,Ye=xt.onHover,Ln=xt.onClick,hn=function(Ae){Ye(Ae,Ut)},Be=function(Ae){Ln(Ae,Ut)},sn=function(Ae){Ae.keyCode===Re.Z.ENTER&&Ln(Ae,Ut)},ee=Ut+1,Kt=new Set([jt]);ne===0&&Ut===0&&Ge?Kt.add("".concat(jt,"-focused")):Ne&&ne+.5>=ee&&ne<ee?(Kt.add("".concat(jt,"-half")),Kt.add("".concat(jt,"-active")),Ge&&Kt.add("".concat(jt,"-focused"))):(ee<=ne?Kt.add("".concat(jt,"-full")):Kt.add("".concat(jt,"-zero")),ee===ne&&Ge&&Kt.add("".concat(jt,"-focused")));var Oe=typeof _t=="function"?_t(xt):_t,pn=Vt.createElement("li",{className:zt()(Array.from(Kt)),ref:Et},Vt.createElement("div",{onClick:Tt?null:Be,onKeyDown:Tt?null:sn,onMouseMove:Tt?null:hn,role:"radio","aria-checked":ne>Ut?"true":"false","aria-posinset":Ut+1,"aria-setsize":fe,tabIndex:Tt?-1:0},Vt.createElement("div",{className:"".concat(jt,"-first")},Oe),Vt.createElement("div",{className:"".concat(jt,"-second")},Oe)));return Jt&&(pn=Jt(pn,xt)),pn}var te=Vt.forwardRef(qe);function He(){var xt=Vt.useRef({});function Et(jt){return xt.current[jt]}function Tt(jt){return function(_t){xt.current[jt]=_t}}return[Et,Tt]}function Bt(xt){var Et=xt.pageXOffset,Tt="scrollLeft";if(typeof Et!="number"){var jt=xt.document;Et=jt.documentElement[Tt],typeof Et!="number"&&(Et=jt.body[Tt])}return Et}function nt(xt){var Et,Tt,jt=xt.ownerDocument,_t=jt.body,Jt=jt&&jt.documentElement,Ut=xt.getBoundingClientRect();return Et=Ut.left,Tt=Ut.top,Et-=Jt.clientLeft||_t.clientLeft||0,Tt-=Jt.clientTop||_t.clientTop||0,{left:Et,top:Tt}}function et(xt){var Et=nt(xt),Tt=xt.ownerDocument,jt=Tt.defaultView||Tt.parentWindow;return Et.left+=Bt(jt),Et.left}var ct=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(xt,Et){var Tt=xt.prefixCls,jt=Tt===void 0?"rc-rate":Tt,_t=xt.className,Jt=xt.defaultValue,Ut=xt.value,fe=xt.count,ne=fe===void 0?5:fe,Ne=xt.allowHalf,Ge=Ne===void 0?!1:Ne,Ye=xt.allowClear,Ln=Ye===void 0?!0:Ye,hn=xt.keyboard,Be=hn===void 0?!0:hn,sn=xt.character,ee=sn===void 0?"\u2605":sn,Kt=xt.characterRender,Oe=xt.disabled,pn=xt.direction,mn=pn===void 0?"ltr":pn,Ae=xt.tabIndex,Qe=Ae===void 0?0:Ae,ln=xt.autoFocus,Vn=xt.onHoverChange,Le=xt.onChange,cn=xt.onFocus,le=xt.onBlur,bn=xt.onKeyDown,hi=xt.onMouseLeave,Ot=(0,Ie.Z)(xt,ct),Pt=He(),St=(0,we.Z)(Pt,2),kt=St[0],Rt=St[1],At=Vt.useRef(null),Yt=function(){if(!Oe){var Ai;(Ai=At.current)===null||Ai===void 0||Ai.focus()}};Vt.useImperativeHandle(Et,function(){return{focus:Yt,blur:function(){if(!Oe){var Ai;(Ai=At.current)===null||Ai===void 0||Ai.blur()}}}});var Me=(0,ie.Z)(Jt||0,{value:Ut}),be=(0,we.Z)(Me,2),We=be[0],pe=be[1],ve=(0,ie.Z)(null),xe=(0,we.Z)(ve,2),Te=xe[0],Ke=xe[1],xn=function(Ai,nr){var Ct=mn==="rtl",li=Ai+1;if(Ge){var pi=kt(Ai),Yn=et(pi),ti=pi.clientWidth;(Ct&&nr-Yn>ti/2||!Ct&&nr-Yn<ti/2)&&(li-=.5)}return li},_e=function(Ai){pe(Ai),Le==null||Le(Ai)},Zn=Vt.useState(!1),Fe=(0,we.Z)(Zn,2),ze=Fe[0],Je=Fe[1],jn=function(){Je(!0),cn==null||cn()},Sn=function(){Je(!1),le==null||le()},Mn=Vt.useState(null),Hn=(0,we.Z)(Mn,2),yi=Hn[0],Jn=Hn[1],xi=function(Ai,nr){var Ct=xn(nr,Ai.pageX);Ct!==Te&&(Jn(Ct),Ke(null)),Vn==null||Vn(Ct)},Vi=function(Ai){Oe||(Jn(null),Ke(null),Vn==null||Vn(void 0)),Ai&&(hi==null||hi(Ai))},Ii=function(Ai,nr){var Ct=xn(nr,Ai.pageX),li=!1;Ln&&(li=Ct===We),Vi(),_e(li?0:Ct),Ke(li?Ct:null)},Wi=function(Ai){var nr=Ai.keyCode,Ct=mn==="rtl",li=Ge?.5:1;Be&&(nr===Re.Z.RIGHT&&We<ne&&!Ct?(_e(We+li),Ai.preventDefault()):nr===Re.Z.LEFT&&We>0&&!Ct||nr===Re.Z.RIGHT&&We>0&&Ct?(_e(We-li),Ai.preventDefault()):nr===Re.Z.LEFT&&We<ne&&Ct&&(_e(We+li),Ai.preventDefault())),bn==null||bn(Ai)};Vt.useEffect(function(){ln&&!Oe&&Yt()},[]);var Ji=new Array(ne).fill(0).map(function(ji,Ai){return Vt.createElement(te,{ref:Rt(Ai),index:Ai,count:ne,disabled:Oe,prefixCls:"".concat(jt,"-star"),allowHalf:Ge,value:yi===null?We:yi,onClick:Ii,onHover:xi,key:ji||Ai,character:ee,characterRender:Kt,focused:ze})}),er=zt()(jt,_t,(0,se.Z)((0,se.Z)({},"".concat(jt,"-disabled"),Oe),"".concat(jt,"-rtl"),mn==="rtl"));return Vt.createElement("ul",(0,Ft.Z)({className:er,onMouseLeave:Vi,tabIndex:Oe?-1:Qe,onFocus:Oe?null:jn,onBlur:Oe?null:Sn,onKeyDown:Oe?null:Wi,ref:At},(0,he.Z)(Ot,{aria:!0,data:!0,attr:!0})),Ji)}var pt=Vt.forwardRef(lt),vt=pt},6551:function(Cn,_n,Nt){"use strict";Nt.d(_n,{ZP:function(){return ie}});var Ft=Nt(50298),se=Nt(59301),we=Nt(47273),Ie=0,ge=(0,we.Z)();function zt(){var Re;return ge?(Re=Ie,Ie+=1):Re="TEST_OR_SSR",Re}function ie(Re){var he=se.useState(),Vt=(0,Ft.Z)(he,2),qe=Vt[0],te=Vt[1];return se.useEffect(function(){te("rc_select_".concat(zt()))},[]),Re||qe}},37463:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Ac:function(){return Je},Xo:function(){return Sn},Wx:function(){return Hn},ZP:function(){return Gi},lk:function(){return vt}});var Ft=Nt(14809),se=Nt(95190),we=Nt(4635),Ie=Nt(20439),ge=Nt(50298),zt=Nt(62646),ie=Nt(93664),Re=Nt(18929),he=Nt(48736),Vt=Nt(59301),qe=Nt(92310),te=Nt.n(qe),He=Nt(34280),Bt=Nt(49658),nt=Nt(8654),et=function(de){var wn=de.className,Bn=de.customizeIcon,ke=de.customizeIconProps,vn=de.children,un=de.onMouseDown,Pn=de.onClick,$n=typeof Bn=="function"?Bn(ke):Bn;return Vt.createElement("span",{className:wn,onMouseDown:function(Un){Un.preventDefault(),un==null||un(Un)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Pn,"aria-hidden":!0},$n!==void 0?$n:Vt.createElement("span",{className:te()(wn.split(/\s+/).map(function(Dn){return"".concat(Dn,"-icon")}))},vn))},ct=et,lt=function(de,wn,Bn,ke,vn){var un=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Pn=arguments.length>6?arguments[6]:void 0,$n=arguments.length>7?arguments[7]:void 0,Dn=Vt.useMemo(function(){if((0,ie.Z)(ke)==="object")return ke.clearIcon;if(vn)return vn},[ke,vn]),Un=Vt.useMemo(function(){return!!(!un&&ke&&(Bn.length||Pn)&&!($n==="combobox"&&Pn===""))},[ke,un,Bn.length,Pn,$n]);return{allowClear:Un,clearIcon:Vt.createElement(ct,{className:"".concat(de,"-clear"),onMouseDown:wn,customizeIcon:Dn},"\xD7")}},pt=Vt.createContext(null);function vt(){return Vt.useContext(pt)}function xt(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,de=Vt.useState(!1),wn=(0,ge.Z)(de,2),Bn=wn[0],ke=wn[1],vn=Vt.useRef(null),un=function(){window.clearTimeout(vn.current)};Vt.useEffect(function(){return un},[]);var Pn=function(Dn,Un){un(),vn.current=window.setTimeout(function(){ke(Dn),Un&&Un()},Ht)};return[Bn,Pn,un]}function Et(){var Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,de=Vt.useRef(null),wn=Vt.useRef(null);Vt.useEffect(function(){return function(){window.clearTimeout(wn.current)}},[]);function Bn(ke){(ke||de.current===null)&&(de.current=ke),window.clearTimeout(wn.current),wn.current=window.setTimeout(function(){de.current=null},Ht)}return[function(){return de.current},Bn]}function Tt(Ht,de,wn,Bn){var ke=Vt.useRef(null);ke.current={open:de,triggerOpen:wn,customizedTrigger:Bn},Vt.useEffect(function(){function vn(un){var Pn;if(!((Pn=ke.current)!==null&&Pn!==void 0&&Pn.customizedTrigger)){var $n=un.target;$n.shadowRoot&&un.composed&&($n=un.composedPath()[0]||$n),ke.current.open&&Ht().filter(function(Dn){return Dn}).every(function(Dn){return!Dn.contains($n)&&Dn!==$n})&&ke.current.triggerOpen(!1)}}return window.addEventListener("mousedown",vn),function(){return window.removeEventListener("mousedown",vn)}},[])}var jt=Nt(10228);function _t(Ht){return Ht&&![jt.Z.ESC,jt.Z.SHIFT,jt.Z.BACKSPACE,jt.Z.TAB,jt.Z.WIN_KEY,jt.Z.ALT,jt.Z.META,jt.Z.WIN_KEY_RIGHT,jt.Z.CTRL,jt.Z.SEMICOLON,jt.Z.EQUALS,jt.Z.CAPS_LOCK,jt.Z.CONTEXT_MENU,jt.Z.F1,jt.Z.F2,jt.Z.F3,jt.Z.F4,jt.Z.F5,jt.Z.F6,jt.Z.F7,jt.Z.F8,jt.Z.F9,jt.Z.F10,jt.Z.F11,jt.Z.F12].includes(Ht)}var Jt=Nt(26112),Ut=Nt(11780);function fe(Ht,de,wn){var Bn=(0,Ie.Z)((0,Ie.Z)({},Ht),wn?de:{});return Object.keys(de).forEach(function(ke){var vn=de[ke];typeof vn=="function"&&(Bn[ke]=function(){for(var un,Pn=arguments.length,$n=new Array(Pn),Dn=0;Dn<Pn;Dn++)$n[Dn]=arguments[Dn];return vn.apply(void 0,$n),(un=Ht[ke])===null||un===void 0?void 0:un.call.apply(un,[Ht].concat($n))})}),Bn}var ne=fe,Ne=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ge=function(de,wn){var Bn=de.prefixCls,ke=de.id,vn=de.inputElement,un=de.autoFocus,Pn=de.autoComplete,$n=de.editable,Dn=de.activeDescendantId,Un=de.value,Wn=de.open,bi=de.attrs,Pi=(0,zt.Z)(de,Ne),Ci=vn||Vt.createElement("input",null),je=Ci,$i=je.ref,or=je.props;return(0,he.Kp)(!("maxLength"in Ci.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ci=Vt.cloneElement(Ci,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},ne(Pi,or,!0)),{},{id:ke,ref:(0,nt.sQ)(wn,$i),autoComplete:Pn||"off",autoFocus:un,className:te()("".concat(Bn,"-selection-search-input"),or==null?void 0:or.className),role:"combobox","aria-expanded":Wn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ke,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ke,"_list"),"aria-activedescendant":Wn?Dn:void 0},bi),{},{value:$n?Un:"",readOnly:!$n,unselectable:$n?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},or.style),{},{opacity:$n?null:0})})),Ci},Ye=Vt.forwardRef(Ge),Ln=Ye;function hn(Ht){return Array.isArray(Ht)?Ht:Ht!==void 0?[Ht]:[]}var Be=typeof window!="undefined"&&window.document&&window.document.documentElement,sn=Be;function ee(Ht){return Ht!=null}function Kt(Ht){return!Ht&&Ht!==0}function Oe(Ht){return["string","number"].includes((0,ie.Z)(Ht))}function pn(Ht){var de=void 0;return Ht&&(Oe(Ht.title)?de=Ht.title.toString():Oe(Ht.label)&&(de=Ht.label.toString())),de}function mn(Ht,de){sn?Vt.useLayoutEffect(Ht,de):Vt.useEffect(Ht,de)}function Ae(Ht){var de;return(de=Ht.key)!==null&&de!==void 0?de:Ht.value}var Qe=function(de){de.preventDefault(),de.stopPropagation()},ln=function(de){var wn=de.id,Bn=de.prefixCls,ke=de.values,vn=de.open,un=de.searchValue,Pn=de.autoClearSearchValue,$n=de.inputRef,Dn=de.placeholder,Un=de.disabled,Wn=de.mode,bi=de.showSearch,Pi=de.autoFocus,Ci=de.autoComplete,je=de.activeDescendantId,$i=de.tabIndex,or=de.removeIcon,Fr=de.maxTagCount,Ue=de.maxTagTextLength,Rn=de.maxTagPlaceholder,fi=Rn===void 0?function(Tn){return"+ ".concat(Tn.length," ...")}:Rn,ci=de.tagRender,Ei=de.onToggleOpen,Zi=de.onRemove,tr=de.onInputChange,sr=de.onInputPaste,dr=de.onInputKeyDown,gr=de.onInputMouseDown,tn=de.onInputCompositionStart,Br=de.onInputCompositionEnd,en=de.onInputBlur,ki=Vt.useRef(null),vr=(0,Vt.useState)(0),yr=(0,ge.Z)(vr,2),Wr=yr[0],Pr=yr[1],ir=(0,Vt.useState)(!1),Kr=(0,ge.Z)(ir,2),Ee=Kr[0],an=Kr[1],Pe="".concat(Bn,"-selection"),Mt=vn||Wn==="multiple"&&Pn===!1||Wn==="tags"?un:"",An=Wn==="tags"||Wn==="multiple"&&Pn===!1||bi&&(vn||Ee);mn(function(){Pr(ki.current.scrollWidth)},[Mt]);var Nn=function(yn,On,Si,ii,Gn){return Vt.createElement("span",{title:pn(yn),className:te()("".concat(Pe,"-item"),(0,we.Z)({},"".concat(Pe,"-item-disabled"),Si))},Vt.createElement("span",{className:"".concat(Pe,"-item-content")},On),ii&&Vt.createElement(ct,{className:"".concat(Pe,"-item-remove"),onMouseDown:Qe,onClick:Gn,customizeIcon:or},"\xD7"))},ui=function(yn,On,Si,ii,Gn,Ve){var gi=function(lr){Qe(lr),Ei(!vn)};return Vt.createElement("span",{onMouseDown:gi},ci({label:On,value:yn,disabled:Si,closable:ii,onClose:Gn,isMaxTag:!!Ve}))},ai=function(yn){var On=yn.disabled,Si=yn.label,ii=yn.value,Gn=!Un&&!On,Ve=Si;if(typeof Ue=="number"&&(typeof Si=="string"||typeof Si=="number")){var gi=String(Ve);gi.length>Ue&&(Ve="".concat(gi.slice(0,Ue),"..."))}var Di=function(Xi){Xi&&Xi.stopPropagation(),Zi(yn)};return typeof ci=="function"?ui(ii,Ve,On,Gn,Di):Nn(yn,Ve,On,Gn,Di)},Qn=function(yn){if(!ke.length)return null;var On=typeof fi=="function"?fi(yn):fi;return typeof ci=="function"?ui(void 0,On,!1,!1,void 0,!0):Nn({title:On},On,!1)},nn=Vt.createElement("div",{className:"".concat(Pe,"-search"),style:{width:Wr},onFocus:function(){an(!0)},onBlur:function(){an(!1)}},Vt.createElement(Ln,{ref:$n,open:vn,prefixCls:Bn,id:wn,inputElement:null,disabled:Un,autoFocus:Pi,autoComplete:Ci,editable:An,activeDescendantId:je,value:Mt,onKeyDown:dr,onMouseDown:gr,onChange:tr,onPaste:sr,onCompositionStart:tn,onCompositionEnd:Br,onBlur:en,tabIndex:$i,attrs:(0,Jt.Z)(de,!0)}),Vt.createElement("span",{ref:ki,className:"".concat(Pe,"-search-mirror"),"aria-hidden":!0},Mt,"\xA0")),kn=Vt.createElement(Ut.Z,{prefixCls:"".concat(Pe,"-overflow"),data:ke,renderItem:ai,renderRest:Qn,suffix:nn,itemKey:Ae,maxCount:Fr});return Vt.createElement("span",{className:"".concat(Pe,"-wrap")},kn,!ke.length&&!Mt&&Vt.createElement("span",{className:"".concat(Pe,"-placeholder")},Dn))},Vn=ln,Le=function(de){var wn=de.inputElement,Bn=de.prefixCls,ke=de.id,vn=de.inputRef,un=de.disabled,Pn=de.autoFocus,$n=de.autoComplete,Dn=de.activeDescendantId,Un=de.mode,Wn=de.open,bi=de.values,Pi=de.placeholder,Ci=de.tabIndex,je=de.showSearch,$i=de.searchValue,or=de.activeValue,Fr=de.maxLength,Ue=de.onInputKeyDown,Rn=de.onInputMouseDown,fi=de.onInputChange,ci=de.onInputPaste,Ei=de.onInputCompositionStart,Zi=de.onInputCompositionEnd,tr=de.onInputBlur,sr=de.title,dr=Vt.useState(!1),gr=(0,ge.Z)(dr,2),tn=gr[0],Br=gr[1],en=Un==="combobox",ki=en||je,vr=bi[0],yr=$i||"";en&&or&&!tn&&(yr=or),Vt.useEffect(function(){en&&Br(!1)},[en,or]);var Wr=Un!=="combobox"&&!Wn&&!je?!1:!!yr,Pr=sr===void 0?pn(vr):sr,ir=Vt.useMemo(function(){return vr?null:Vt.createElement("span",{className:"".concat(Bn,"-selection-placeholder"),style:Wr?{visibility:"hidden"}:void 0},Pi)},[vr,Wr,Pi,Bn]);return Vt.createElement("span",{className:"".concat(Bn,"-selection-wrap")},Vt.createElement("span",{className:"".concat(Bn,"-selection-search")},Vt.createElement(Ln,{ref:vn,prefixCls:Bn,id:ke,open:Wn,inputElement:wn,disabled:un,autoFocus:Pn,autoComplete:$n,editable:ki,activeDescendantId:Dn,value:yr,onKeyDown:Ue,onMouseDown:Rn,onChange:function(Ee){Br(!0),fi(Ee)},onPaste:ci,onCompositionStart:Ei,onCompositionEnd:Zi,onBlur:tr,tabIndex:Ci,attrs:(0,Jt.Z)(de,!0),maxLength:en?Fr:void 0})),!en&&vr?Vt.createElement("span",{className:"".concat(Bn,"-selection-item"),title:Pr,style:Wr?{visibility:"hidden"}:void 0},vr.label):null,ir)},cn=Le,le=function(de,wn){var Bn=(0,Vt.useRef)(null),ke=(0,Vt.useRef)(!1),vn=de.prefixCls,un=de.open,Pn=de.mode,$n=de.showSearch,Dn=de.tokenWithEnter,Un=de.disabled,Wn=de.prefix,bi=de.autoClearSearchValue,Pi=de.onSearch,Ci=de.onSearchSubmit,je=de.onToggleOpen,$i=de.onInputKeyDown,or=de.onInputBlur,Fr=de.domRef;Vt.useImperativeHandle(wn,function(){return{focus:function(Pr){Bn.current.focus(Pr)},blur:function(){Bn.current.blur()}}});var Ue=Et(0),Rn=(0,ge.Z)(Ue,2),fi=Rn[0],ci=Rn[1],Ei=function(Pr){var ir=Pr.which,Kr=Bn.current instanceof HTMLTextAreaElement;!Kr&&un&&(ir===jt.Z.UP||ir===jt.Z.DOWN)&&Pr.preventDefault(),$i&&$i(Pr),ir===jt.Z.ENTER&&Pn==="tags"&&!ke.current&&!un&&(Ci==null||Ci(Pr.target.value)),!(Kr&&!un&&~[jt.Z.UP,jt.Z.DOWN,jt.Z.LEFT,jt.Z.RIGHT].indexOf(ir))&&_t(ir)&&je(!0)},Zi=function(){ci(!0)},tr=(0,Vt.useRef)(null),sr=function(Pr){Pi(Pr,!0,ke.current)!==!1&&je(!0)},dr=function(){ke.current=!0},gr=function(Pr){ke.current=!1,Pn!=="combobox"&&sr(Pr.target.value)},tn=function(Pr){var ir=Pr.target.value;if(Dn&&tr.current&&/[\r\n]/.test(tr.current)){var Kr=tr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ir=ir.replace(Kr,tr.current)}tr.current=null,sr(ir)},Br=function(Pr){var ir=Pr.clipboardData,Kr=ir==null?void 0:ir.getData("text");tr.current=Kr||""},en=function(Pr){var ir=Pr.target;if(ir!==Bn.current){var Kr=document.body.style.msTouchAction!==void 0;Kr?setTimeout(function(){Bn.current.focus()}):Bn.current.focus()}},ki=function(Pr){var ir=fi();Pr.target!==Bn.current&&!ir&&!(Pn==="combobox"&&Un)&&Pr.preventDefault(),(Pn!=="combobox"&&(!$n||!ir)||!un)&&(un&&bi!==!1&&Pi("",!0,!1),je())},vr={inputRef:Bn,onInputKeyDown:Ei,onInputMouseDown:Zi,onInputChange:tn,onInputPaste:Br,onInputCompositionStart:dr,onInputCompositionEnd:gr,onInputBlur:or},yr=Pn==="multiple"||Pn==="tags"?Vt.createElement(Vn,(0,Ft.Z)({},de,vr)):Vt.createElement(cn,(0,Ft.Z)({},de,vr));return Vt.createElement("div",{ref:Fr,className:"".concat(vn,"-selector"),onClick:en,onMouseDown:ki},Wn&&Vt.createElement("div",{className:"".concat(vn,"-prefix")},Wn),yr)},bn=Vt.forwardRef(le),hi=bn,Ot=Nt(65352),Pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],St=function(de){var wn=de===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"}}},kt=function(de,wn){var Bn=de.prefixCls,ke=de.disabled,vn=de.visible,un=de.children,Pn=de.popupElement,$n=de.animation,Dn=de.transitionName,Un=de.dropdownStyle,Wn=de.dropdownClassName,bi=de.direction,Pi=bi===void 0?"ltr":bi,Ci=de.placement,je=de.builtinPlacements,$i=de.dropdownMatchSelectWidth,or=de.dropdownRender,Fr=de.dropdownAlign,Ue=de.getPopupContainer,Rn=de.empty,fi=de.getTriggerDOMNode,ci=de.onPopupVisibleChange,Ei=de.onPopupMouseEnter,Zi=(0,zt.Z)(de,Pt),tr="".concat(Bn,"-dropdown"),sr=Pn;or&&(sr=or(Pn));var dr=Vt.useMemo(function(){return je||St($i)},[je,$i]),gr=$n?"".concat(tr,"-").concat($n):Dn,tn=typeof $i=="number",Br=Vt.useMemo(function(){return tn?null:$i===!1?"minWidth":"width"},[$i,tn]),en=Un;tn&&(en=(0,Ie.Z)((0,Ie.Z)({},en),{},{width:$i}));var ki=Vt.useRef(null);return Vt.useImperativeHandle(wn,function(){return{getPopupElement:function(){var yr;return(yr=ki.current)===null||yr===void 0?void 0:yr.popupElement}}}),Vt.createElement(Ot.Z,(0,Ft.Z)({},Zi,{showAction:ci?["click"]:[],hideAction:ci?["click"]:[],popupPlacement:Ci||(Pi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:dr,prefixCls:tr,popupTransitionName:gr,popup:Vt.createElement("div",{onMouseEnter:Ei},sr),ref:ki,stretch:Br,popupAlign:Fr,popupVisible:vn,getPopupContainer:Ue,popupClassName:te()(Wn,(0,we.Z)({},"".concat(tr,"-empty"),Rn)),popupStyle:en,getTriggerDOMNode:fi,onPopupVisibleChange:ci}),un)},Rt=Vt.forwardRef(kt),At=Rt,Yt=Nt(21696);function Me(Ht,de){var wn=Ht.key,Bn;return"value"in Ht&&(Bn=Ht.value),wn!=null?wn:Bn!==void 0?Bn:"rc-index-key-".concat(de)}function be(Ht){return typeof Ht!="undefined"&&!Number.isNaN(Ht)}function We(Ht,de){var wn=Ht||{},Bn=wn.label,ke=wn.value,vn=wn.options,un=wn.groupLabel,Pn=Bn||(de?"children":"label");return{label:Pn,value:ke||"value",options:vn||"options",groupLabel:un||Pn}}function pe(Ht){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wn=de.fieldNames,Bn=de.childrenAsData,ke=[],vn=We(wn,!1),un=vn.label,Pn=vn.value,$n=vn.options,Dn=vn.groupLabel;function Un(Wn,bi){Array.isArray(Wn)&&Wn.forEach(function(Pi){if(bi||!($n in Pi)){var Ci=Pi[Pn];ke.push({key:Me(Pi,ke.length),groupOption:bi,data:Pi,label:Pi[un],value:Ci})}else{var je=Pi[Dn];je===void 0&&Bn&&(je=Pi.label),ke.push({key:Me(Pi,ke.length),group:!0,data:Pi,label:je}),Un(Pi[$n],!0)}})}return Un(Ht,!1),ke}function ve(Ht){var de=(0,Ie.Z)({},Ht);return"props"in de||Object.defineProperty(de,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),de}}),de}var xe=function(de,wn,Bn){if(!wn||!wn.length)return null;var ke=!1,vn=function Pn($n,Dn){var Un=(0,Yt.Z)(Dn),Wn=Un[0],bi=Un.slice(1);if(!Wn)return[$n];var Pi=$n.split(Wn);return ke=ke||Pi.length>1,Pi.reduce(function(Ci,je){return[].concat((0,se.Z)(Ci),(0,se.Z)(Pn(je,bi)))},[]).filter(Boolean)},un=vn(de,wn);return ke?typeof Bn!="undefined"?un.slice(0,Bn):un:null},Te=Vt.createContext(null),Ke=Te;function xn(Ht){var de=Ht.visible,wn=Ht.values;if(!de)return null;var Bn=50;return Vt.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(wn.slice(0,Bn).map(function(ke){var vn=ke.label,un=ke.value;return["number","string"].includes((0,ie.Z)(vn))?vn:un}).join(", ")),wn.length>Bn?", ...":null)}var _e=["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"],Zn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Fe=function(de){return de==="tags"||de==="multiple"},ze=Vt.forwardRef(function(Ht,de){var wn,Bn=Ht.id,ke=Ht.prefixCls,vn=Ht.className,un=Ht.showSearch,Pn=Ht.tagRender,$n=Ht.direction,Dn=Ht.omitDomProps,Un=Ht.displayValues,Wn=Ht.onDisplayValuesChange,bi=Ht.emptyOptions,Pi=Ht.notFoundContent,Ci=Pi===void 0?"Not Found":Pi,je=Ht.onClear,$i=Ht.mode,or=Ht.disabled,Fr=Ht.loading,Ue=Ht.getInputElement,Rn=Ht.getRawInputElement,fi=Ht.open,ci=Ht.defaultOpen,Ei=Ht.onDropdownVisibleChange,Zi=Ht.activeValue,tr=Ht.onActiveValueChange,sr=Ht.activeDescendantId,dr=Ht.searchValue,gr=Ht.autoClearSearchValue,tn=Ht.onSearch,Br=Ht.onSearchSplit,en=Ht.tokenSeparators,ki=Ht.allowClear,vr=Ht.prefix,yr=Ht.suffixIcon,Wr=Ht.clearIcon,Pr=Ht.OptionList,ir=Ht.animation,Kr=Ht.transitionName,Ee=Ht.dropdownStyle,an=Ht.dropdownClassName,Pe=Ht.dropdownMatchSelectWidth,Mt=Ht.dropdownRender,An=Ht.dropdownAlign,Nn=Ht.placement,ui=Ht.builtinPlacements,ai=Ht.getPopupContainer,Qn=Ht.showAction,nn=Qn===void 0?[]:Qn,kn=Ht.onFocus,Tn=Ht.onBlur,yn=Ht.onKeyUp,On=Ht.onKeyDown,Si=Ht.onMouseDown,ii=(0,zt.Z)(Ht,_e),Gn=Fe($i),Ve=(un!==void 0?un:Gn)||$i==="combobox",gi=(0,Ie.Z)({},ii);Zn.forEach(function(oo){delete gi[oo]}),Dn==null||Dn.forEach(function(oo){delete gi[oo]});var Di=Vt.useState(!1),lr=(0,ge.Z)(Di,2),Xi=lr[0],kr=lr[1];Vt.useEffect(function(){kr((0,Bt.Z)())},[]);var br=Vt.useRef(null),Lr=Vt.useRef(null),Dr=Vt.useRef(null),Nr=Vt.useRef(null),_r=Vt.useRef(null),Ce=Vt.useRef(!1),Mr=xt(),Ar=(0,ge.Z)(Mr,3),qi=Ar[0],pr=Ar[1],rr=Ar[2];Vt.useImperativeHandle(de,function(){var oo,Qr;return{focus:(oo=Nr.current)===null||oo===void 0?void 0:oo.focus,blur:(Qr=Nr.current)===null||Qr===void 0?void 0:Qr.blur,scrollTo:function(Fi){var ca;return(ca=_r.current)===null||ca===void 0?void 0:ca.scrollTo(Fi)},nativeElement:br.current||Lr.current}});var Hr=Vt.useMemo(function(){var oo;if($i!=="combobox")return dr;var Qr=(oo=Un[0])===null||oo===void 0?void 0:oo.value;return typeof Qr=="string"||typeof Qr=="number"?String(Qr):""},[dr,$i,Un]),Gr=$i==="combobox"&&typeof Ue=="function"&&Ue()||null,cr=typeof Rn=="function"&&Rn(),eo=(0,nt.x1)(Lr,cr==null||(wn=cr.props)===null||wn===void 0?void 0:wn.ref),ga=Vt.useState(!1),Bo=(0,ge.Z)(ga,2),Ps=Bo[0],wa=Bo[1];(0,He.Z)(function(){wa(!0)},[]);var Hi=(0,Re.Z)(!1,{defaultValue:ci,value:fi}),Po=(0,ge.Z)(Hi,2),Co=Po[0],ea=Po[1],Do=Ps?Co:!1,Vo=!Ci&&bi;(or||Vo&&Do&&$i==="combobox")&&(Do=!1);var ei=Vo?!1:Do,Ki=Vt.useCallback(function(oo){var Qr=oo!==void 0?oo:!Do;or||(ea(Qr),Do!==Qr&&(Ei==null||Ei(Qr)))},[or,Do,ea,Ei]),ur=Vt.useMemo(function(){return(en||[]).some(function(oo){return[`
|
|
`,`\r
|
|
`].includes(oo)})},[en]),Er=Vt.useContext(Ke)||{},Tr=Er.maxCount,no=Er.rawValues,Ui=function(Qr,sa,Fi){if(!(Gn&&be(Tr)&&(no==null?void 0:no.size)>=Tr)){var ca=!0,ae=Qr;tr==null||tr(null);var dn=xe(Qr,en,be(Tr)?Tr-no.size:void 0),Ks=Fi?null:dn;return $i!=="combobox"&&Ks&&(ae="",Br==null||Br(Ks),Ki(!1),ca=!1),tn&&Hr!==ae&&tn(ae,{source:sa?"typing":"effect"}),ca}},Ba=function(Qr){!Qr||!Qr.trim()||tn(Qr,{source:"submit"})};Vt.useEffect(function(){!Do&&!Gn&&$i!=="combobox"&&Ui("",!1,!1)},[Do]),Vt.useEffect(function(){Co&&or&&ea(!1),or&&!Ce.current&&pr(!1)},[or]);var Wo=Et(),No=(0,ge.Z)(Wo,2),zr=No[0],Uo=No[1],Da=Vt.useRef(!1),vo=function(Qr){var sa=zr(),Fi=Qr.key,ca=Fi==="Enter";if(ca&&($i!=="combobox"&&Qr.preventDefault(),Do||Ki(!0)),Uo(!!Hr),Fi==="Backspace"&&!sa&&Gn&&!Hr&&Un.length){for(var ae=(0,se.Z)(Un),dn=null,Ks=ae.length-1;Ks>=0;Ks-=1){var Bl=ae[Ks];if(!Bl.disabled){ae.splice(Ks,1),dn=Bl;break}}dn&&Wn(ae,{type:"remove",values:[dn]})}for(var _o=arguments.length,Pa=new Array(_o>1?_o-1:0),Ts=1;Ts<_o;Ts++)Pa[Ts-1]=arguments[Ts];if(Do&&(!ca||!Da.current)){var rl;ca&&(Da.current=!0),(rl=_r.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[Qr].concat(Pa))}On==null||On.apply(void 0,[Qr].concat(Pa))},cs=function(Qr){for(var sa=arguments.length,Fi=new Array(sa>1?sa-1:0),ca=1;ca<sa;ca++)Fi[ca-1]=arguments[ca];if(Do){var ae;(ae=_r.current)===null||ae===void 0||ae.onKeyUp.apply(ae,[Qr].concat(Fi))}Qr.key==="Enter"&&(Da.current=!1),yn==null||yn.apply(void 0,[Qr].concat(Fi))},fs=function(Qr){var sa=Un.filter(function(Fi){return Fi!==Qr});Wn(sa,{type:"remove",values:[Qr]})},Cs=function(){Da.current=!1},na=Vt.useRef(!1),$u=function(){pr(!0),or||(kn&&!na.current&&kn.apply(void 0,arguments),nn.includes("focus")&&Ki(!0)),na.current=!0},Bu=function(){Ce.current=!0,pr(!1,function(){na.current=!1,Ce.current=!1,Ki(!1)}),!or&&(Hr&&($i==="tags"?tn(Hr,{source:"submit"}):$i==="multiple"&&tn("",{source:"blur"})),Tn&&Tn.apply(void 0,arguments))},il=[];Vt.useEffect(function(){return function(){il.forEach(function(oo){return clearTimeout(oo)}),il.splice(0,il.length)}},[]);var yl=function(Qr){var sa,Fi=Qr.target,ca=(sa=Dr.current)===null||sa===void 0?void 0:sa.getPopupElement();if(ca&&ca.contains(Fi)){var ae=setTimeout(function(){var _o=il.indexOf(ae);if(_o!==-1&&il.splice(_o,1),rr(),!Xi&&!ca.contains(document.activeElement)){var Pa;(Pa=Nr.current)===null||Pa===void 0||Pa.focus()}});il.push(ae)}for(var dn=arguments.length,Ks=new Array(dn>1?dn-1:0),Bl=1;Bl<dn;Bl++)Ks[Bl-1]=arguments[Bl];Si==null||Si.apply(void 0,[Qr].concat(Ks))},Ns=Vt.useState({}),Vl=(0,ge.Z)(Ns,2),th=Vl[1];function eh(){th({})}var Yo;cr&&(Yo=function(Qr){Ki(Qr)}),Tt(function(){var oo;return[br.current,(oo=Dr.current)===null||oo===void 0?void 0:oo.getPopupElement()]},ei,Ki,!!cr);var Du=Vt.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},Ht),{},{notFoundContent:Ci,open:Do,triggerOpen:ei,id:Bn,showSearch:Ve,multiple:Gn,toggleOpen:Ki})},[Ht,Ci,ei,Do,Bn,Ve,Gn,Ki]),nh=!!yr||Fr,Ul;nh&&(Ul=Vt.createElement(ct,{className:te()("".concat(ke,"-arrow"),(0,we.Z)({},"".concat(ke,"-arrow-loading"),Fr)),customizeIcon:yr,customizeIconProps:{loading:Fr,searchValue:Hr,open:Do,focused:qi,showSearch:Ve}}));var lu=function(){var Qr;je==null||je(),(Qr=Nr.current)===null||Qr===void 0||Qr.focus(),Wn([],{type:"clear",values:Un}),Ui("",!1,!1)},La=lt(ke,lu,Un,ki,Wr,or,Hr,$i),Na=La.allowClear,aa=La.clearIcon,pa=Vt.createElement(Pr,{ref:_r}),Yl=te()(ke,vn,(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(ke,"-focused"),qi),"".concat(ke,"-multiple"),Gn),"".concat(ke,"-single"),!Gn),"".concat(ke,"-allow-clear"),ki),"".concat(ke,"-show-arrow"),nh),"".concat(ke,"-disabled"),or),"".concat(ke,"-loading"),Fr),"".concat(ke,"-open"),Do),"".concat(ke,"-customize-input"),Gr),"".concat(ke,"-show-search"),Ve)),Ga=Vt.createElement(At,{ref:Dr,disabled:or,prefixCls:ke,visible:ei,popupElement:pa,animation:ir,transitionName:Kr,dropdownStyle:Ee,dropdownClassName:an,direction:$n,dropdownMatchSelectWidth:Pe,dropdownRender:Mt,dropdownAlign:An,placement:Nn,builtinPlacements:ui,getPopupContainer:ai,empty:bi,getTriggerDOMNode:function(Qr){return Lr.current||Qr},onPopupVisibleChange:Yo,onPopupMouseEnter:eh},cr?Vt.cloneElement(cr,{ref:eo}):Vt.createElement(hi,(0,Ft.Z)({},Ht,{domRef:Lr,prefixCls:ke,inputElement:Gr,ref:Nr,id:Bn,prefix:vr,showSearch:Ve,autoClearSearchValue:gr,mode:$i,activeDescendantId:sr,tagRender:Pn,values:Un,open:Do,onToggleOpen:Ki,activeValue:Zi,searchValue:Hr,onSearch:Ui,onSearchSubmit:Ba,onRemove:fs,tokenWithEnter:ur,onInputBlur:Cs}))),co;return cr?co=Ga:co=Vt.createElement("div",(0,Ft.Z)({className:Yl},gi,{ref:br,onMouseDown:yl,onKeyDown:vo,onKeyUp:cs,onFocus:$u,onBlur:Bu}),Vt.createElement(xn,{visible:qi&&!Do,values:Un}),Ga,Ul,Na&&aa),Vt.createElement(pt.Provider,{value:Du},co)}),Je=ze,jn=function(){return null};jn.isSelectOptGroup=!0;var Sn=jn,Mn=function(){return null};Mn.isSelectOption=!0;var Hn=Mn,yi=Nt(80547),Jn=Nt(2738),xi=Nt(65283);function Vi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ii=["disabled","title","children","style","className"];function Wi(Ht){return typeof Ht=="string"||typeof Ht=="number"}var Ji=function(de,wn){var Bn=vt(),ke=Bn.prefixCls,vn=Bn.id,un=Bn.open,Pn=Bn.multiple,$n=Bn.mode,Dn=Bn.searchValue,Un=Bn.toggleOpen,Wn=Bn.notFoundContent,bi=Bn.onPopupScroll,Pi=Vt.useContext(Ke),Ci=Pi.maxCount,je=Pi.flattenOptions,$i=Pi.onActiveValue,or=Pi.defaultActiveFirstOption,Fr=Pi.onSelect,Ue=Pi.menuItemSelectedIcon,Rn=Pi.rawValues,fi=Pi.fieldNames,ci=Pi.virtual,Ei=Pi.direction,Zi=Pi.listHeight,tr=Pi.listItemHeight,sr=Pi.optionRender,dr="".concat(ke,"-item"),gr=(0,yi.Z)(function(){return je},[un,je],function(Qn,nn){return nn[0]&&Qn[1]!==nn[1]}),tn=Vt.useRef(null),Br=Vt.useMemo(function(){return Pn&&be(Ci)&&(Rn==null?void 0:Rn.size)>=Ci},[Pn,Ci,Rn==null?void 0:Rn.size]),en=function(nn){nn.preventDefault()},ki=function(nn){var kn;(kn=tn.current)===null||kn===void 0||kn.scrollTo(typeof nn=="number"?{index:nn}:nn)},vr=Vt.useCallback(function(Qn){return $n==="combobox"?!1:Rn.has(Qn)},[$n,(0,se.Z)(Rn).toString(),Rn.size]),yr=function(nn){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Tn=gr.length,yn=0;yn<Tn;yn+=1){var On=(nn+yn*kn+Tn)%Tn,Si=gr[On]||{},ii=Si.group,Gn=Si.data;if(!ii&&!(Gn!=null&&Gn.disabled)&&(vr(Gn.value)||!Br))return On}return-1},Wr=Vt.useState(function(){return yr(0)}),Pr=(0,ge.Z)(Wr,2),ir=Pr[0],Kr=Pr[1],Ee=function(nn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Kr(nn);var Tn={source:kn?"keyboard":"mouse"},yn=gr[nn];if(!yn){$i(null,-1,Tn);return}$i(yn.value,nn,Tn)};(0,Vt.useEffect)(function(){Ee(or!==!1?yr(0):-1)},[gr.length,Dn]);var an=Vt.useCallback(function(Qn){return $n==="combobox"?String(Qn).toLowerCase()===Dn.toLowerCase():Rn.has(Qn)},[$n,Dn,(0,se.Z)(Rn).toString(),Rn.size]);(0,Vt.useEffect)(function(){var Qn=setTimeout(function(){if(!Pn&&un&&Rn.size===1){var kn=Array.from(Rn)[0],Tn=gr.findIndex(function(yn){var On=yn.data;return Dn?String(On.value).startsWith(Dn):On.value===kn});Tn!==-1&&(Ee(Tn),ki(Tn))}});if(un){var nn;(nn=tn.current)===null||nn===void 0||nn.scrollTo(void 0)}return function(){return clearTimeout(Qn)}},[un,Dn]);var Pe=function(nn){nn!==void 0&&Fr(nn,{selected:!Rn.has(nn)}),Pn||Un(!1)};if(Vt.useImperativeHandle(wn,function(){return{onKeyDown:function(nn){var kn=nn.which,Tn=nn.ctrlKey;switch(kn){case jt.Z.N:case jt.Z.P:case jt.Z.UP:case jt.Z.DOWN:{var yn=0;if(kn===jt.Z.UP?yn=-1:kn===jt.Z.DOWN?yn=1:Vi()&&Tn&&(kn===jt.Z.N?yn=1:kn===jt.Z.P&&(yn=-1)),yn!==0){var On=yr(ir+yn,yn);ki(On),Ee(On,!0)}break}case jt.Z.TAB:case jt.Z.ENTER:{var Si,ii=gr[ir];ii&&!(ii!=null&&(Si=ii.data)!==null&&Si!==void 0&&Si.disabled)&&!Br?Pe(ii.value):Pe(void 0),un&&nn.preventDefault();break}case jt.Z.ESC:Un(!1),un&&nn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(nn){ki(nn)}}}),gr.length===0)return Vt.createElement("div",{role:"listbox",id:"".concat(vn,"_list"),className:"".concat(dr,"-empty"),onMouseDown:en},Wn);var Mt=Object.keys(fi).map(function(Qn){return fi[Qn]}),An=function(nn){return nn.label};function Nn(Qn,nn){var kn=Qn.group;return{role:kn?"presentation":"option",id:"".concat(vn,"_list_").concat(nn)}}var ui=function(nn){var kn=gr[nn];if(!kn)return null;var Tn=kn.data||{},yn=Tn.value,On=kn.group,Si=(0,Jt.Z)(Tn,!0),ii=An(kn);return kn?Vt.createElement("div",(0,Ft.Z)({"aria-label":typeof ii=="string"&&!On?ii:null},Si,{key:nn},Nn(kn,nn),{"aria-selected":an(yn)}),yn):null},ai={role:"listbox",id:"".concat(vn,"_list")};return Vt.createElement(Vt.Fragment,null,ci&&Vt.createElement("div",(0,Ft.Z)({},ai,{style:{height:0,width:0,overflow:"hidden"}}),ui(ir-1),ui(ir),ui(ir+1)),Vt.createElement(xi.Z,{itemKey:"key",ref:tn,data:gr,height:Zi,itemHeight:tr,fullHeight:!1,onMouseDown:en,onScroll:bi,virtual:ci,direction:Ei,innerProps:ci?null:ai},function(Qn,nn){var kn=Qn.group,Tn=Qn.groupOption,yn=Qn.data,On=Qn.label,Si=Qn.value,ii=yn.key;if(kn){var Gn,Ve=(Gn=yn.title)!==null&&Gn!==void 0?Gn:Wi(On)?On.toString():void 0;return Vt.createElement("div",{className:te()(dr,"".concat(dr,"-group"),yn.className),title:Ve},On!==void 0?On:ii)}var gi=yn.disabled,Di=yn.title,lr=yn.children,Xi=yn.style,kr=yn.className,br=(0,zt.Z)(yn,Ii),Lr=(0,Jn.Z)(br,Mt),Dr=vr(Si),Nr=gi||!Dr&&Br,_r="".concat(dr,"-option"),Ce=te()(dr,_r,kr,(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(_r,"-grouped"),Tn),"".concat(_r,"-active"),ir===nn&&!Nr),"".concat(_r,"-disabled"),Nr),"".concat(_r,"-selected"),Dr)),Mr=An(Qn),Ar=!Ue||typeof Ue=="function"||Dr,qi=typeof Mr=="number"?Mr:Mr||Si,pr=Wi(qi)?qi.toString():void 0;return Di!==void 0&&(pr=Di),Vt.createElement("div",(0,Ft.Z)({},(0,Jt.Z)(Lr),ci?{}:Nn(Qn,nn),{"aria-selected":an(Si),className:Ce,title:pr,onMouseMove:function(){ir===nn||Nr||Ee(nn)},onClick:function(){Nr||Pe(Si)},style:Xi}),Vt.createElement("div",{className:"".concat(_r,"-content")},typeof sr=="function"?sr(Qn,{index:nn}):qi),Vt.isValidElement(Ue)||Dr,Ar&&Vt.createElement(ct,{className:"".concat(dr,"-option-state"),customizeIcon:Ue,customizeIconProps:{value:Si,disabled:Nr,isSelected:Dr}},Dr?"\u2713":null))}))},er=Vt.forwardRef(Ji),ji=er,Ai=function(Ht,de){var wn=Vt.useRef({values:new Map,options:new Map}),Bn=Vt.useMemo(function(){var vn=wn.current,un=vn.values,Pn=vn.options,$n=Ht.map(function(Wn){if(Wn.label===void 0){var bi;return(0,Ie.Z)((0,Ie.Z)({},Wn),{},{label:(bi=un.get(Wn.value))===null||bi===void 0?void 0:bi.label})}return Wn}),Dn=new Map,Un=new Map;return $n.forEach(function(Wn){Dn.set(Wn.value,Wn),Un.set(Wn.value,de.get(Wn.value)||Pn.get(Wn.value))}),wn.current.values=Dn,wn.current.options=Un,$n},[Ht,de]),ke=Vt.useCallback(function(vn){return de.get(vn)||wn.current.options.get(vn)},[de]);return[Bn,ke]};function nr(Ht,de){return hn(Ht).join("").toUpperCase().includes(de)}var Ct=function(Ht,de,wn,Bn,ke){return Vt.useMemo(function(){if(!wn||Bn===!1)return Ht;var vn=de.options,un=de.label,Pn=de.value,$n=[],Dn=typeof Bn=="function",Un=wn.toUpperCase(),Wn=Dn?Bn:function(Pi,Ci){return ke?nr(Ci[ke],Un):Ci[vn]?nr(Ci[un!=="children"?un:"label"],Un):nr(Ci[Pn],Un)},bi=Dn?function(Pi){return ve(Pi)}:function(Pi){return Pi};return Ht.forEach(function(Pi){if(Pi[vn]){var Ci=Wn(wn,bi(Pi));if(Ci)$n.push(Pi);else{var je=Pi[vn].filter(function($i){return Wn(wn,bi($i))});je.length&&$n.push((0,Ie.Z)((0,Ie.Z)({},Pi),{},(0,we.Z)({},vn,je)))}return}Wn(wn,bi(Pi))&&$n.push(Pi)}),$n},[Ht,Bn,ke,wn,de])},li=Nt(6551),pi=Nt(11592),Yn=["children","value"],ti=["children"];function ri(Ht){var de=Ht,wn=de.key,Bn=de.props,ke=Bn.children,vn=Bn.value,un=(0,zt.Z)(Bn,Yn);return(0,Ie.Z)({key:wn,value:vn!==void 0?vn:wn,children:ke},un)}function vi(Ht){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,pi.Z)(Ht).map(function(wn,Bn){if(!Vt.isValidElement(wn)||!wn.type)return null;var ke=wn,vn=ke.type.isSelectOptGroup,un=ke.key,Pn=ke.props,$n=Pn.children,Dn=(0,zt.Z)(Pn,ti);return de||!vn?ri(wn):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(un===null?Bn:un,"__"),label:un},Dn),{},{options:vi($n)})}).filter(function(wn){return wn})}var Ri=function(de,wn,Bn,ke,vn){return Vt.useMemo(function(){var un=de,Pn=!de;Pn&&(un=vi(wn));var $n=new Map,Dn=new Map,Un=function(Pi,Ci,je){je&&typeof je=="string"&&Pi.set(Ci[je],Ci)},Wn=function bi(Pi){for(var Ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=0;je<Pi.length;je+=1){var $i=Pi[je];!$i[Bn.options]||Ci?($n.set($i[Bn.value],$i),Un(Dn,$i,Bn.label),Un(Dn,$i,ke),Un(Dn,$i,vn)):bi($i[Bn.options],!0)}};return Wn(un),{options:un,valueOptions:$n,labelOptions:Dn}},[de,wn,Bn,ke,vn])},Ni=Ri;function me(Ht){var de=Vt.useRef();de.current=Ht;var wn=Vt.useCallback(function(){return de.current.apply(de,arguments)},[]);return wn}function ue(Ht){var de=Ht.mode,wn=Ht.options,Bn=Ht.children,ke=Ht.backfill,vn=Ht.allowClear,un=Ht.placeholder,Pn=Ht.getInputElement,$n=Ht.showSearch,Dn=Ht.onSearch,Un=Ht.defaultOpen,Wn=Ht.autoFocus,bi=Ht.labelInValue,Pi=Ht.value,Ci=Ht.inputValue,je=Ht.optionLabelProp,$i=isMultiple(de),or=$n!==void 0?$n:$i||de==="combobox",Fr=wn||convertChildrenToData(Bn);if(warning(de!=="tags"||Fr.every(function(ci){return!ci.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),de==="tags"||de==="combobox"){var Ue=Fr.some(function(ci){return ci.options?ci.options.some(function(Ei){return typeof("value"in Ei?Ei.value:Ei.key)=="number"}):typeof("value"in ci?ci.value:ci.key)=="number"});warning(!Ue,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(de!=="combobox"||!je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(de==="combobox"||!ke,"`backfill` only works with `combobox` mode."),warning(de==="combobox"||!Pn,"`getInputElement` only work with `combobox` mode."),noteOnce(de!=="combobox"||!Pn||!vn||!un,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Dn&&!or&&de!=="combobox"&&de!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Un||Wn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pi!=null){var Rn=toArray(Pi);warning(!bi||Rn.every(function(ci){return _typeof(ci)==="object"&&("key"in ci||"value"in ci)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!$i||Array.isArray(Pi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Bn){var fi=null;toNodeArray(Bn).some(function(ci){if(!React.isValidElement(ci)||!ci.type)return!1;var Ei=ci,Zi=Ei.type;if(Zi.isSelectOption)return!1;if(Zi.isSelectOptGroup){var tr=toNodeArray(ci.props.children).every(function(sr){return!React.isValidElement(sr)||!ci.type||sr.type.isSelectOption?!0:(fi=sr.type,!1)});return!tr}return fi=Zi,!0}),fi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(fi.displayName||fi.name||fi,"`.")),warning(Ci===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ce(Ht,de){if(Ht){var wn=function Bn(ke){for(var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=0;un<ke.length;un++){var Pn=ke[un];if(Pn[de==null?void 0:de.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!vn&&Array.isArray(Pn[de==null?void 0:de.options])&&Bn(Pn[de==null?void 0:de.options],!0))break}};wn(Ht)}}var zn=null,Xn=["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"],ni=["inputValue"];function $e(Ht){return!Ht||(0,ie.Z)(Ht)!=="object"}var In=Vt.forwardRef(function(Ht,de){var wn=Ht.id,Bn=Ht.mode,ke=Ht.prefixCls,vn=ke===void 0?"rc-select":ke,un=Ht.backfill,Pn=Ht.fieldNames,$n=Ht.inputValue,Dn=Ht.searchValue,Un=Ht.onSearch,Wn=Ht.autoClearSearchValue,bi=Wn===void 0?!0:Wn,Pi=Ht.onSelect,Ci=Ht.onDeselect,je=Ht.dropdownMatchSelectWidth,$i=je===void 0?!0:je,or=Ht.filterOption,Fr=Ht.filterSort,Ue=Ht.optionFilterProp,Rn=Ht.optionLabelProp,fi=Ht.options,ci=Ht.optionRender,Ei=Ht.children,Zi=Ht.defaultActiveFirstOption,tr=Ht.menuItemSelectedIcon,sr=Ht.virtual,dr=Ht.direction,gr=Ht.listHeight,tn=gr===void 0?200:gr,Br=Ht.listItemHeight,en=Br===void 0?20:Br,ki=Ht.labelRender,vr=Ht.value,yr=Ht.defaultValue,Wr=Ht.labelInValue,Pr=Ht.onChange,ir=Ht.maxCount,Kr=(0,zt.Z)(Ht,Xn),Ee=(0,li.ZP)(wn),an=Fe(Bn),Pe=!!(!fi&&Ei),Mt=Vt.useMemo(function(){return or===void 0&&Bn==="combobox"?!1:or},[or,Bn]),An=Vt.useMemo(function(){return We(Pn,Pe)},[JSON.stringify(Pn),Pe]),Nn=(0,Re.Z)("",{value:Dn!==void 0?Dn:$n,postState:function(ur){return ur||""}}),ui=(0,ge.Z)(Nn,2),ai=ui[0],Qn=ui[1],nn=Ni(fi,Ei,An,Ue,Rn),kn=nn.valueOptions,Tn=nn.labelOptions,yn=nn.options,On=Vt.useCallback(function(Ki){var ur=hn(Ki);return ur.map(function(Er){var Tr,no,Ui,Ba,Wo;if($e(Er))Tr=Er;else{var No;Ui=Er.key,no=Er.label,Tr=(No=Er.value)!==null&&No!==void 0?No:Ui}var zr=kn.get(Tr);if(zr){var Uo;if(no===void 0&&(no=zr==null?void 0:zr[Rn||An.label]),Ui===void 0&&(Ui=(Uo=zr==null?void 0:zr.key)!==null&&Uo!==void 0?Uo:Tr),Ba=zr==null?void 0:zr.disabled,Wo=zr==null?void 0:zr.title,0)var Da}return{label:no,value:Tr,key:Ui,disabled:Ba,title:Wo}})},[An,Rn,kn]),Si=(0,Re.Z)(yr,{value:vr}),ii=(0,ge.Z)(Si,2),Gn=ii[0],Ve=ii[1],gi=Vt.useMemo(function(){var Ki,ur=an&&Gn===null?[]:Gn,Er=On(ur);return Bn==="combobox"&&Kt((Ki=Er[0])===null||Ki===void 0?void 0:Ki.value)?[]:Er},[Gn,On,Bn,an]),Di=Ai(gi,kn),lr=(0,ge.Z)(Di,2),Xi=lr[0],kr=lr[1],br=Vt.useMemo(function(){if(!Bn&&Xi.length===1){var Ki=Xi[0];if(Ki.value===null&&(Ki.label===null||Ki.label===void 0))return[]}return Xi.map(function(ur){var Er;return(0,Ie.Z)((0,Ie.Z)({},ur),{},{label:(Er=typeof ki=="function"?ki(ur):ur.label)!==null&&Er!==void 0?Er:ur.value})})},[Bn,Xi,ki]),Lr=Vt.useMemo(function(){return new Set(Xi.map(function(Ki){return Ki.value}))},[Xi]);Vt.useEffect(function(){if(Bn==="combobox"){var Ki,ur=(Ki=Xi[0])===null||Ki===void 0?void 0:Ki.value;Qn(ee(ur)?String(ur):"")}},[Xi]);var Dr=me(function(Ki,ur){var Er=ur!=null?ur:Ki;return(0,we.Z)((0,we.Z)({},An.value,Ki),An.label,Er)}),Nr=Vt.useMemo(function(){if(Bn!=="tags")return yn;var Ki=(0,se.Z)(yn),ur=function(Tr){return kn.has(Tr)};return(0,se.Z)(Xi).sort(function(Er,Tr){return Er.value<Tr.value?-1:1}).forEach(function(Er){var Tr=Er.value;ur(Tr)||Ki.push(Dr(Tr,Er.label))}),Ki},[Dr,yn,kn,Xi,Bn]),_r=Ct(Nr,An,ai,Mt,Ue),Ce=Vt.useMemo(function(){return Bn!=="tags"||!ai||_r.some(function(Ki){return Ki[Ue||"value"]===ai})||_r.some(function(Ki){return Ki[An.value]===ai})?_r:[Dr(ai)].concat((0,se.Z)(_r))},[Dr,Ue,Bn,_r,ai,An]),Mr=function Ki(ur){var Er=(0,se.Z)(ur).sort(function(Tr,no){return Fr(Tr,no,{searchValue:ai})});return Er.map(function(Tr){return Array.isArray(Tr.options)?(0,Ie.Z)((0,Ie.Z)({},Tr),{},{options:Tr.options.length>0?Ki(Tr.options):Tr.options}):Tr})},Ar=Vt.useMemo(function(){return Fr?Mr(Ce):Ce},[Ce,Fr,ai]),qi=Vt.useMemo(function(){return pe(Ar,{fieldNames:An,childrenAsData:Pe})},[Ar,An,Pe]),pr=function(ur){var Er=On(ur);if(Ve(Er),Pr&&(Er.length!==Xi.length||Er.some(function(Ui,Ba){var Wo;return((Wo=Xi[Ba])===null||Wo===void 0?void 0:Wo.value)!==(Ui==null?void 0:Ui.value)}))){var Tr=Wr?Er:Er.map(function(Ui){return Ui.value}),no=Er.map(function(Ui){return ve(kr(Ui.value))});Pr(an?Tr:Tr[0],an?no:no[0])}},rr=Vt.useState(null),Hr=(0,ge.Z)(rr,2),Gr=Hr[0],cr=Hr[1],eo=Vt.useState(0),ga=(0,ge.Z)(eo,2),Bo=ga[0],Ps=ga[1],wa=Zi!==void 0?Zi:Bn!=="combobox",Hi=Vt.useCallback(function(Ki,ur){var Er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Tr=Er.source,no=Tr===void 0?"keyboard":Tr;Ps(ur),un&&Bn==="combobox"&&Ki!==null&&no==="keyboard"&&cr(String(Ki))},[un,Bn]),Po=function(ur,Er,Tr){var no=function(){var fs,Cs=kr(ur);return[Wr?{label:Cs==null?void 0:Cs[An.label],value:ur,key:(fs=Cs==null?void 0:Cs.key)!==null&&fs!==void 0?fs:ur}:ur,ve(Cs)]};if(Er&&Pi){var Ui=no(),Ba=(0,ge.Z)(Ui,2),Wo=Ba[0],No=Ba[1];Pi(Wo,No)}else if(!Er&&Ci&&Tr!=="clear"){var zr=no(),Uo=(0,ge.Z)(zr,2),Da=Uo[0],vo=Uo[1];Ci(Da,vo)}},Co=me(function(Ki,ur){var Er,Tr=an?ur.selected:!0;Tr?Er=an?[].concat((0,se.Z)(Xi),[Ki]):[Ki]:Er=Xi.filter(function(no){return no.value!==Ki}),pr(Er),Po(Ki,Tr),Bn==="combobox"?cr(""):(!Fe||bi)&&(Qn(""),cr(""))}),ea=function(ur,Er){pr(ur);var Tr=Er.type,no=Er.values;(Tr==="remove"||Tr==="clear")&&no.forEach(function(Ui){Po(Ui.value,!1,Tr)})},Do=function(ur,Er){if(Qn(ur),cr(null),Er.source==="submit"){var Tr=(ur||"").trim();if(Tr){var no=Array.from(new Set([].concat((0,se.Z)(Lr),[Tr])));pr(no),Po(Tr,!0),Qn("")}return}Er.source!=="blur"&&(Bn==="combobox"&&pr(ur),Un==null||Un(ur))},Vo=function(ur){var Er=ur;Bn!=="tags"&&(Er=ur.map(function(no){var Ui=Tn.get(no);return Ui==null?void 0:Ui.value}).filter(function(no){return no!==void 0}));var Tr=Array.from(new Set([].concat((0,se.Z)(Lr),(0,se.Z)(Er))));pr(Tr),Tr.forEach(function(no){Po(no,!0)})},ei=Vt.useMemo(function(){var Ki=sr!==!1&&$i!==!1;return(0,Ie.Z)((0,Ie.Z)({},nn),{},{flattenOptions:qi,onActiveValue:Hi,defaultActiveFirstOption:wa,onSelect:Co,menuItemSelectedIcon:tr,rawValues:Lr,fieldNames:An,virtual:Ki,direction:dr,listHeight:tn,listItemHeight:en,childrenAsData:Pe,maxCount:ir,optionRender:ci})},[ir,nn,qi,Hi,wa,Co,tr,Lr,An,sr,$i,dr,tn,en,Pe,ci]);return Vt.createElement(Ke.Provider,{value:ei},Vt.createElement(Je,(0,Ft.Z)({},Kr,{id:Ee,prefixCls:vn,ref:de,omitDomProps:ni,mode:Bn,displayValues:br,onDisplayValuesChange:ea,direction:dr,searchValue:ai,onSearch:Do,autoClearSearchValue:bi,onSearchSplit:Vo,dropdownMatchSelectWidth:$i,OptionList:ji,emptyOptions:!qi.length,activeValue:Gr,activeDescendantId:"".concat(Ee,"_list_").concat(Bo)})))}),wi=In;wi.Option=Hn,wi.OptGroup=Sn;var Mi=wi,Gi=Mi},63158:function(Cn,_n,Nt){"use strict";var Ft=Nt(14809),se=Nt(4635),we=Nt(50298),Ie=Nt(62646),ge=Nt(59301),zt=Nt(92310),ie=Nt.n(zt),Re=Nt(18929),he=Nt(10228),Vt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],qe=ge.forwardRef(function(te,He){var Bt,nt=te.prefixCls,et=nt===void 0?"rc-switch":nt,ct=te.className,lt=te.checked,pt=te.defaultChecked,vt=te.disabled,xt=te.loadingIcon,Et=te.checkedChildren,Tt=te.unCheckedChildren,jt=te.onClick,_t=te.onChange,Jt=te.onKeyDown,Ut=(0,Ie.Z)(te,Vt),fe=(0,Re.Z)(!1,{value:lt,defaultValue:pt}),ne=(0,we.Z)(fe,2),Ne=ne[0],Ge=ne[1];function Ye(sn,ee){var Kt=Ne;return vt||(Kt=sn,Ge(Kt),_t==null||_t(Kt,ee)),Kt}function Ln(sn){sn.which===he.Z.LEFT?Ye(!1,sn):sn.which===he.Z.RIGHT&&Ye(!0,sn),Jt==null||Jt(sn)}function hn(sn){var ee=Ye(!Ne,sn);jt==null||jt(ee,sn)}var Be=ie()(et,ct,(Bt={},(0,se.Z)(Bt,"".concat(et,"-checked"),Ne),(0,se.Z)(Bt,"".concat(et,"-disabled"),vt),Bt));return ge.createElement("button",(0,Ft.Z)({},Ut,{type:"button",role:"switch","aria-checked":Ne,disabled:vt,className:Be,ref:He,onKeyDown:Ln,onClick:hn}),xt,ge.createElement("span",{className:"".concat(et,"-inner")},ge.createElement("span",{className:"".concat(et,"-inner-checked")},Et),ge.createElement("span",{className:"".concat(et,"-inner-unchecked")},Tt)))});qe.displayName="Switch",_n.Z=qe},86351:function(Cn,_n,Nt){"use strict";Nt.d(_n,{R:function(){return se},w:function(){return Ft}});var Ft={},se="rc-table-internal-hook"},97347:function(Cn,_n,Nt){"use strict";Nt.d(_n,{L:function(){return et},Z:function(){return xt}});var Ft=Nt(50298),se=Nt(4635),we=Nt(95190),Ie=Nt(93664),ge=Nt(20439),zt=Nt(62646),ie=Nt(11592),Re=Nt(48736),he=Nt(59301),Vt=Nt(86351),qe=Nt(54451);function te(Et){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Tt=="number"?Tt:Tt.endsWith("%")?Et*parseFloat(Tt)/100:null}function He(Et,Tt,jt){return he.useMemo(function(){if(Tt&&Tt>0){var _t=0,Jt=0;Et.forEach(function(hn){var Be=te(Tt,hn.width);Be?_t+=Be:Jt+=1});var Ut=Math.max(Tt,jt),fe=Math.max(Ut-_t,Jt),ne=Jt,Ne=fe/Jt,Ge=0,Ye=Et.map(function(hn){var Be=(0,ge.Z)({},hn),sn=te(Tt,Be.width);if(sn)Be.width=sn;else{var ee=Math.floor(Ne);Be.width=ne===1?fe:ee,fe-=ee,ne-=1}return Ge+=Be.width,Be});if(Ge<Ut){var Ln=Ut/Ge;fe=Ut,Ye.forEach(function(hn,Be){var sn=Math.floor(hn.width*Ln);hn.width=Be===Ye.length-1?fe:sn,fe-=sn})}return[Ye,Math.max(Ge,Ut)]}return[Et,Tt]},[Et,Tt,jt])}var Bt=["children"],nt=["fixed"];function et(Et){return(0,ie.Z)(Et).filter(function(Tt){return he.isValidElement(Tt)}).map(function(Tt){var jt=Tt.key,_t=Tt.props,Jt=_t.children,Ut=(0,zt.Z)(_t,Bt),fe=(0,ge.Z)({key:jt},Ut);return Jt&&(fe.children=et(Jt)),fe})}function ct(Et){return Et.filter(function(Tt){return Tt&&(0,Ie.Z)(Tt)==="object"&&!Tt.hidden}).map(function(Tt){var jt=Tt.children;return jt&&jt.length>0?(0,ge.Z)((0,ge.Z)({},Tt),{},{children:ct(jt)}):Tt})}function lt(Et){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Et.filter(function(jt){return jt&&(0,Ie.Z)(jt)==="object"}).reduce(function(jt,_t,Jt){var Ut=_t.fixed,fe=Ut===!0?"left":Ut,ne="".concat(Tt,"-").concat(Jt),Ne=_t.children;return Ne&&Ne.length>0?[].concat((0,we.Z)(jt),(0,we.Z)(lt(Ne,ne).map(function(Ge){return(0,ge.Z)({fixed:fe},Ge)}))):[].concat((0,we.Z)(jt),[(0,ge.Z)((0,ge.Z)({key:ne},_t),{},{fixed:fe})])},[])}function pt(Et){return Et.map(function(Tt){var jt=Tt.fixed,_t=(0,zt.Z)(Tt,nt),Jt=jt;return jt==="left"?Jt="right":jt==="right"&&(Jt="left"),(0,ge.Z)({fixed:Jt},_t)})}function vt(Et,Tt){var jt=Et.prefixCls,_t=Et.columns,Jt=Et.children,Ut=Et.expandable,fe=Et.expandedKeys,ne=Et.columnTitle,Ne=Et.getRowKey,Ge=Et.onTriggerExpand,Ye=Et.expandIcon,Ln=Et.rowExpandable,hn=Et.expandIconColumnIndex,Be=Et.direction,sn=Et.expandRowByClick,ee=Et.columnWidth,Kt=Et.fixed,Oe=Et.scrollWidth,pn=Et.clientWidth,mn=he.useMemo(function(){var hi=_t||et(Jt)||[];return ct(hi.slice())},[_t,Jt]),Ae=he.useMemo(function(){if(Ut){var hi=mn.slice();if(!hi.includes(Vt.w)){var Ot=hn||0;Ot>=0&&(Ot||Kt==="left"||!Kt)&&hi.splice(Ot,0,Vt.w),Kt==="right"&&hi.splice(mn.length,0,Vt.w)}var Pt=hi.indexOf(Vt.w);hi=hi.filter(function(At,Yt){return At!==Vt.w||Yt===Pt});var St=mn[Pt],kt;Kt?kt=Kt:kt=St?St.fixed:null;var Rt=(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},qe.v,{className:"".concat(jt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ne),"fixed",kt),"className","".concat(jt,"-row-expand-icon-cell")),"width",ee),"render",function(Yt,Me,be){var We=Ne(Me,be),pe=fe.has(We),ve=Ln?Ln(Me):!0,xe=Ye({prefixCls:jt,expanded:pe,expandable:ve,record:Me,onExpand:Ge});return sn?he.createElement("span",{onClick:function(Ke){return Ke.stopPropagation()}},xe):xe});return hi.map(function(At){return At===Vt.w?Rt:At})}return mn.filter(function(At){return At!==Vt.w})},[Ut,mn,Ne,fe,Ye,Be]),Qe=he.useMemo(function(){var hi=Ae;return Tt&&(hi=Tt(hi)),hi.length||(hi=[{render:function(){return null}}]),hi},[Tt,Ae,Be]),ln=he.useMemo(function(){return Be==="rtl"?pt(lt(Qe)):lt(Qe)},[Qe,Be,Oe]),Vn=he.useMemo(function(){for(var hi=-1,Ot=ln.length-1;Ot>=0;Ot-=1){var Pt=ln[Ot].fixed;if(Pt==="left"||Pt===!0){hi=Ot;break}}if(hi>=0)for(var St=0;St<=hi;St+=1){var kt=ln[St].fixed;if(kt!=="left"&&kt!==!0)return!0}var Rt=ln.findIndex(function(Me){var be=Me.fixed;return be==="right"});if(Rt>=0)for(var At=Rt;At<ln.length;At+=1){var Yt=ln[At].fixed;if(Yt!=="right")return!0}return!1},[ln]),Le=He(ln,Oe,pn),cn=(0,Ft.Z)(Le,2),le=cn[0],bn=cn[1];return[Qe,le,bn,Vn]}var xt=vt},4030:function(Cn,_n,Nt){"use strict";Nt.d(_n,{w2:function(){return Ft.w},vP:function(){return Wi.v},RQ:function(){return Ft.R},ER:function(){return We},Q$:function(){return or},TN:function(){return Pr}});var Ft=Nt(86351),se=Nt(50298),we=Nt(6089),Ie=Nt(34280),ge=Nt(13697),zt=Nt(59301),ie=Nt(4676);function Re(Ee){var an=zt.createContext(void 0),Pe=function(An){var Nn=An.value,ui=An.children,ai=zt.useRef(Nn);ai.current=Nn;var Qn=zt.useState(function(){return{getValue:function(){return ai.current},listeners:new Set}}),nn=(0,se.Z)(Qn,1),kn=nn[0];return(0,Ie.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){kn.listeners.forEach(function(Tn){Tn(Nn)})})},[Nn]),zt.createElement(an.Provider,{value:kn},ui)};return{Context:an,Provider:Pe,defaultValue:Ee}}function he(Ee,an){var Pe=(0,we.Z)(typeof an=="function"?an:function(Tn){if(an===void 0)return Tn;if(!Array.isArray(an))return Tn[an];var yn={};return an.forEach(function(On){yn[On]=Tn[On]}),yn}),Mt=zt.useContext(Ee==null?void 0:Ee.Context),An=Mt||{},Nn=An.listeners,ui=An.getValue,ai=zt.useRef();ai.current=Pe(Mt?ui():Ee==null?void 0:Ee.defaultValue);var Qn=zt.useState({}),nn=(0,se.Z)(Qn,2),kn=nn[1];return(0,Ie.Z)(function(){if(!Mt)return;function Tn(yn){var On=Pe(yn);(0,ge.Z)(ai.current,On,!0)||kn({})}return Nn.add(Tn),function(){Nn.delete(Tn)}},[Mt]),ai.current}var Vt=Nt(14809),qe=Nt(8654);function te(){var Ee=zt.createContext(null);function an(){return zt.useContext(Ee)}function Pe(An,Nn){var ui=(0,qe.Yr)(An),ai=function(nn,kn){var Tn=ui?{ref:kn}:{},yn=zt.useRef(0),On=zt.useRef(nn),Si=an();return Si!==null?zt.createElement(An,(0,Vt.Z)({},nn,Tn)):((!Nn||Nn(On.current,nn))&&(yn.current+=1),On.current=nn,zt.createElement(Ee.Provider,{value:yn.current},zt.createElement(An,(0,Vt.Z)({},nn,Tn))))};return ui?zt.forwardRef(ai):ai}function Mt(An,Nn){var ui=(0,qe.Yr)(An),ai=function(nn,kn){var Tn=ui?{ref:kn}:{};return an(),zt.createElement(An,(0,Vt.Z)({},nn,Tn))};return ui?zt.memo(zt.forwardRef(ai),Nn):zt.memo(ai,Nn)}return{makeImmutable:Pe,responseImmutable:Mt,useImmutableMark:an}}var He=te(),Bt=He.makeImmutable,nt=He.responseImmutable,et=He.useImmutableMark,ct=te(),lt=ct.makeImmutable,pt=ct.responseImmutable,vt=ct.useImmutableMark,xt=Re(),Et=xt;function Tt(Ee,an){var Pe=React.useRef(0);Pe.current+=1;var Mt=React.useRef(Ee),An=[];Object.keys(Ee||{}).map(function(ui){var ai;(Ee==null?void 0:Ee[ui])!==((ai=Mt.current)===null||ai===void 0?void 0:ai[ui])&&An.push(ui)}),Mt.current=Ee;var Nn=React.useRef([]);return An.length&&(Nn.current=An),React.useDebugValue(Pe.current),React.useDebugValue(Nn.current.join(", ")),an&&console.log("".concat(an,":"),Pe.current,Nn.current),Pe.current}var jt=null,_t=null,Jt=Nt(93664),Ut=Nt(20439),fe=Nt(4635),ne=Nt(92310),Ne=Nt.n(ne),Ge=Nt(80547),Ye=Nt(97938),Ln=Nt(48736),hn=zt.createContext({renderWithProps:!1}),Be=hn,sn="RC_TABLE_KEY";function ee(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Kt(Ee){var an=[],Pe={};return Ee.forEach(function(Mt){for(var An=Mt||{},Nn=An.key,ui=An.dataIndex,ai=Nn||ee(ui).join("-")||sn;Pe[ai];)ai="".concat(ai,"_next");Pe[ai]=!0,an.push(ai)}),an}function Oe(Ee){return Ee!=null}function pn(Ee){return typeof Ee=="number"&&!Number.isNaN(Ee)}function mn(Ee){return Ee&&(0,Jt.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!zt.isValidElement(Ee)}function Ae(Ee,an,Pe,Mt,An,Nn){var ui=zt.useContext(Be),ai=vt(),Qn=(0,Ge.Z)(function(){if(Oe(Mt))return[Mt];var nn=an==null||an===""?[]:Array.isArray(an)?an:[an],kn=(0,Ye.Z)(Ee,nn),Tn=kn,yn=void 0;if(An){var On=An(kn,Ee,Pe);mn(On)?(Tn=On.children,yn=On.props,ui.renderWithProps=!0):Tn=On}return[Tn,yn]},[ai,Ee,Mt,an,An,Pe],function(nn,kn){if(Nn){var Tn=(0,se.Z)(nn,2),yn=Tn[1],On=(0,se.Z)(kn,2),Si=On[1];return Nn(Si,yn)}return ui.renderWithProps?!0:!(0,ge.Z)(nn,kn,!0)});return Qn}function Qe(Ee,an,Pe,Mt){var An=Ee+an-1;return Ee<=Mt&&An>=Pe}function ln(Ee,an){return he(Et,function(Pe){var Mt=Qe(Ee,an||1,Pe.hoverStartRow,Pe.hoverEndRow);return[Mt,Pe.onHover]})}var Vn=Nt(70425),Le=function(an){var Pe=an.ellipsis,Mt=an.rowType,An=an.children,Nn,ui=Pe===!0?{showTitle:!0}:Pe;return ui&&(ui.showTitle||Mt==="header")&&(typeof An=="string"||typeof An=="number"?Nn=An.toString():zt.isValidElement(An)&&typeof An.props.children=="string"&&(Nn=An.props.children)),Nn};function cn(Ee){var an,Pe,Mt,An,Nn,ui,ai,Qn,nn=Ee.component,kn=Ee.children,Tn=Ee.ellipsis,yn=Ee.scope,On=Ee.prefixCls,Si=Ee.className,ii=Ee.align,Gn=Ee.record,Ve=Ee.render,gi=Ee.dataIndex,Di=Ee.renderIndex,lr=Ee.shouldCellUpdate,Xi=Ee.index,kr=Ee.rowType,br=Ee.colSpan,Lr=Ee.rowSpan,Dr=Ee.fixLeft,Nr=Ee.fixRight,_r=Ee.firstFixLeft,Ce=Ee.lastFixLeft,Mr=Ee.firstFixRight,Ar=Ee.lastFixRight,qi=Ee.appendNode,pr=Ee.additionalProps,rr=pr===void 0?{}:pr,Hr=Ee.isSticky,Gr="".concat(On,"-cell"),cr=he(Et,["supportSticky","allColumnsFixedLeft","rowHoverable"]),eo=cr.supportSticky,ga=cr.allColumnsFixedLeft,Bo=cr.rowHoverable,Ps=Ae(Gn,gi,Di,kn,Ve,lr),wa=(0,se.Z)(Ps,2),Hi=wa[0],Po=wa[1],Co={},ea=typeof Dr=="number"&&eo,Do=typeof Nr=="number"&&eo;ea&&(Co.position="sticky",Co.left=Dr),Do&&(Co.position="sticky",Co.right=Nr);var Vo=(an=(Pe=(Mt=Po==null?void 0:Po.colSpan)!==null&&Mt!==void 0?Mt:rr.colSpan)!==null&&Pe!==void 0?Pe:br)!==null&&an!==void 0?an:1,ei=(An=(Nn=(ui=Po==null?void 0:Po.rowSpan)!==null&&ui!==void 0?ui:rr.rowSpan)!==null&&Nn!==void 0?Nn:Lr)!==null&&An!==void 0?An:1,Ki=ln(Xi,ei),ur=(0,se.Z)(Ki,2),Er=ur[0],Tr=ur[1],no=(0,Vn.zX)(function(Da){var vo;Gn&&Tr(Xi,Xi+ei-1),rr==null||(vo=rr.onMouseEnter)===null||vo===void 0||vo.call(rr,Da)}),Ui=(0,Vn.zX)(function(Da){var vo;Gn&&Tr(-1,-1),rr==null||(vo=rr.onMouseLeave)===null||vo===void 0||vo.call(rr,Da)});if(Vo===0||ei===0)return null;var Ba=(ai=rr.title)!==null&&ai!==void 0?ai:Le({rowType:kr,ellipsis:Tn,children:Hi}),Wo=Ne()(Gr,Si,(Qn={},(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)(Qn,"".concat(Gr,"-fix-left"),ea&&eo),"".concat(Gr,"-fix-left-first"),_r&&eo),"".concat(Gr,"-fix-left-last"),Ce&&eo),"".concat(Gr,"-fix-left-all"),Ce&&ga&&eo),"".concat(Gr,"-fix-right"),Do&&eo),"".concat(Gr,"-fix-right-first"),Mr&&eo),"".concat(Gr,"-fix-right-last"),Ar&&eo),"".concat(Gr,"-ellipsis"),Tn),"".concat(Gr,"-with-append"),qi),"".concat(Gr,"-fix-sticky"),(ea||Do)&&Hr&&eo),(0,fe.Z)(Qn,"".concat(Gr,"-row-hover"),!Po&&Er)),rr.className,Po==null?void 0:Po.className),No={};ii&&(No.textAlign=ii);var zr=(0,Ut.Z)((0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},Po==null?void 0:Po.style),Co),No),rr.style),Uo=Hi;return(0,Jt.Z)(Uo)==="object"&&!Array.isArray(Uo)&&!zt.isValidElement(Uo)&&(Uo=null),Tn&&(Ce||Mr)&&(Uo=zt.createElement("span",{className:"".concat(Gr,"-content")},Uo)),zt.createElement(nn,(0,Vt.Z)({},Po,rr,{className:Wo,style:zr,title:Ba,scope:yn,onMouseEnter:Bo?no:void 0,onMouseLeave:Bo?Ui:void 0,colSpan:Vo!==1?Vo:null,rowSpan:ei!==1?ei:null}),qi,Uo)}var le=zt.memo(cn);function bn(Ee,an,Pe,Mt,An){var Nn=Pe[Ee]||{},ui=Pe[an]||{},ai,Qn;Nn.fixed==="left"?ai=Mt.left[An==="rtl"?an:Ee]:ui.fixed==="right"&&(Qn=Mt.right[An==="rtl"?Ee:an]);var nn=!1,kn=!1,Tn=!1,yn=!1,On=Pe[an+1],Si=Pe[Ee-1],ii=On&&!On.fixed||Si&&!Si.fixed||Pe.every(function(lr){return lr.fixed==="left"});if(An==="rtl"){if(ai!==void 0){var Gn=Si&&Si.fixed==="left";yn=!Gn&&ii}else if(Qn!==void 0){var Ve=On&&On.fixed==="right";Tn=!Ve&&ii}}else if(ai!==void 0){var gi=On&&On.fixed==="left";nn=!gi&&ii}else if(Qn!==void 0){var Di=Si&&Si.fixed==="right";kn=!Di&&ii}return{fixLeft:ai,fixRight:Qn,lastFixLeft:nn,firstFixRight:kn,lastFixRight:Tn,firstFixLeft:yn,isSticky:Mt.isSticky}}var hi=zt.createContext({}),Ot=hi;function Pt(Ee){var an=Ee.className,Pe=Ee.index,Mt=Ee.children,An=Ee.colSpan,Nn=An===void 0?1:An,ui=Ee.rowSpan,ai=Ee.align,Qn=he(Et,["prefixCls","direction"]),nn=Qn.prefixCls,kn=Qn.direction,Tn=zt.useContext(Ot),yn=Tn.scrollColumnIndex,On=Tn.stickyOffsets,Si=Tn.flattenColumns,ii=Pe+Nn-1,Gn=ii+1===yn?Nn+1:Nn,Ve=bn(Pe,Pe+Gn-1,Si,On,kn);return zt.createElement(le,(0,Vt.Z)({className:an,index:Pe,component:"td",prefixCls:nn,record:null,dataIndex:null,align:ai,colSpan:Gn,rowSpan:ui,render:function(){return Mt}},Ve))}var St=Nt(62646),kt=["children"];function Rt(Ee){var an=Ee.children,Pe=(0,St.Z)(Ee,kt);return zt.createElement("tr",Pe,an)}function At(Ee){var an=Ee.children;return an}At.Row=Rt,At.Cell=Pt;var Yt=At;function Me(Ee){var an=Ee.children,Pe=Ee.stickyOffsets,Mt=Ee.flattenColumns,An=he(Et,"prefixCls"),Nn=Mt.length-1,ui=Mt[Nn],ai=zt.useMemo(function(){return{stickyOffsets:Pe,flattenColumns:Mt,scrollColumnIndex:ui!=null&&ui.scrollbar?Nn:null}},[ui,Mt,Nn,Pe]);return zt.createElement(Ot.Provider,{value:ai},zt.createElement("tfoot",{className:"".concat(An,"-summary")},an))}var be=pt(Me),We=Yt,pe=Nt(29301),ve=Nt(24514),xe=Nt(75152),Te=Nt(26112);function Ke(Ee,an,Pe,Mt,An,Nn,ui){Ee.push({record:an,indent:Pe,index:ui});var ai=Nn(an),Qn=An==null?void 0:An.has(ai);if(an&&Array.isArray(an[Mt])&&Qn)for(var nn=0;nn<an[Mt].length;nn+=1)Ke(Ee,an[Mt][nn],Pe+1,Mt,An,Nn,nn)}function xn(Ee,an,Pe,Mt){var An=zt.useMemo(function(){if(Pe!=null&&Pe.size){for(var Nn=[],ui=0;ui<(Ee==null?void 0:Ee.length);ui+=1){var ai=Ee[ui];Ke(Nn,ai,0,an,Pe,Mt,ui)}return Nn}return Ee==null?void 0:Ee.map(function(Qn,nn){return{record:Qn,indent:0,index:nn}})},[Ee,an,Pe,Mt]);return An}function _e(Ee,an,Pe,Mt){var An=he(Et,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Nn=An.flattenColumns,ui=An.expandableType,ai=An.expandedKeys,Qn=An.childrenColumnName,nn=An.onTriggerExpand,kn=An.rowExpandable,Tn=An.onRow,yn=An.expandRowByClick,On=An.rowClassName,Si=ui==="nest",ii=ui==="row"&&(!kn||kn(Ee)),Gn=ii||Si,Ve=ai&&ai.has(an),gi=Qn&&Ee&&Ee[Qn],Di=(0,Vn.zX)(nn),lr=Tn==null?void 0:Tn(Ee,Pe),Xi=lr==null?void 0:lr.onClick,kr=function(Nr){yn&&Gn&&nn(Ee,Nr);for(var _r=arguments.length,Ce=new Array(_r>1?_r-1:0),Mr=1;Mr<_r;Mr++)Ce[Mr-1]=arguments[Mr];Xi==null||Xi.apply(void 0,[Nr].concat(Ce))},br;typeof On=="string"?br=On:typeof On=="function"&&(br=On(Ee,Pe,Mt));var Lr=Kt(Nn);return(0,Ut.Z)((0,Ut.Z)({},An),{},{columnsKey:Lr,nestExpandable:Si,expanded:Ve,hasNestChildren:gi,record:Ee,onTriggerExpand:Di,rowSupportExpand:ii,expandable:Gn,rowProps:(0,Ut.Z)((0,Ut.Z)({},lr),{},{className:Ne()(br,lr==null?void 0:lr.className),onClick:kr})})}function Zn(Ee){var an=Ee.prefixCls,Pe=Ee.children,Mt=Ee.component,An=Ee.cellComponent,Nn=Ee.className,ui=Ee.expanded,ai=Ee.colSpan,Qn=Ee.isEmpty,nn=he(Et,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),kn=nn.scrollbarSize,Tn=nn.fixHeader,yn=nn.fixColumn,On=nn.componentWidth,Si=nn.horizonScroll,ii=Pe;return(Qn?Si&&On:yn)&&(ii=zt.createElement("div",{style:{width:On-(Tn&&!Qn?kn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(an,"-expanded-row-fixed")},ii)),zt.createElement(Mt,{className:Nn,style:{display:ui?null:"none"}},zt.createElement(le,{component:An,prefixCls:an,colSpan:ai},ii))}var Fe=Zn;function ze(Ee){var an=Ee.prefixCls,Pe=Ee.record,Mt=Ee.onExpand,An=Ee.expanded,Nn=Ee.expandable,ui="".concat(an,"-row-expand-icon");if(!Nn)return zt.createElement("span",{className:Ne()(ui,"".concat(an,"-row-spaced"))});var ai=function(nn){Mt(Pe,nn),nn.stopPropagation()};return zt.createElement("span",{className:Ne()(ui,(0,fe.Z)((0,fe.Z)({},"".concat(an,"-row-expanded"),An),"".concat(an,"-row-collapsed"),!An)),onClick:ai})}function Je(Ee,an,Pe){var Mt=[];function An(Nn){(Nn||[]).forEach(function(ui,ai){Mt.push(an(ui,ai)),An(ui[Pe])})}return An(Ee),Mt}function jn(Ee,an,Pe,Mt){return typeof Ee=="string"?Ee:typeof Ee=="function"?Ee(an,Pe,Mt):""}function Sn(Ee,an,Pe,Mt,An){var Nn=Ee.record,ui=Ee.prefixCls,ai=Ee.columnsKey,Qn=Ee.fixedInfoList,nn=Ee.expandIconColumnIndex,kn=Ee.nestExpandable,Tn=Ee.indentSize,yn=Ee.expandIcon,On=Ee.expanded,Si=Ee.hasNestChildren,ii=Ee.onTriggerExpand,Gn=ai[Pe],Ve=Qn[Pe],gi;Pe===(nn||0)&&kn&&(gi=zt.createElement(zt.Fragment,null,zt.createElement("span",{style:{paddingLeft:"".concat(Tn*Mt,"px")},className:"".concat(ui,"-row-indent indent-level-").concat(Mt)}),yn({prefixCls:ui,expanded:On,expandable:Si,record:Nn,onExpand:ii})));var Di;return an.onCell&&(Di=an.onCell(Nn,An)),{key:Gn,fixedInfo:Ve,appendCellNode:gi,additionalCellProps:Di||{}}}function Mn(Ee){var an=Ee.className,Pe=Ee.style,Mt=Ee.record,An=Ee.index,Nn=Ee.renderIndex,ui=Ee.rowKey,ai=Ee.indent,Qn=ai===void 0?0:ai,nn=Ee.rowComponent,kn=Ee.cellComponent,Tn=Ee.scopeCellComponent,yn=_e(Mt,ui,An,Qn),On=yn.prefixCls,Si=yn.flattenColumns,ii=yn.expandedRowClassName,Gn=yn.expandedRowRender,Ve=yn.rowProps,gi=yn.expanded,Di=yn.rowSupportExpand,lr=zt.useRef(!1);lr.current||(lr.current=gi);var Xi=jn(ii,Mt,An,Qn),kr=zt.createElement(nn,(0,Vt.Z)({},Ve,{"data-row-key":ui,className:Ne()(an,"".concat(On,"-row"),"".concat(On,"-row-level-").concat(Qn),Ve==null?void 0:Ve.className,(0,fe.Z)({},Xi,Qn>=1)),style:(0,Ut.Z)((0,Ut.Z)({},Pe),Ve==null?void 0:Ve.style)}),Si.map(function(Dr,Nr){var _r=Dr.render,Ce=Dr.dataIndex,Mr=Dr.className,Ar=Sn(yn,Dr,Nr,Qn,An),qi=Ar.key,pr=Ar.fixedInfo,rr=Ar.appendCellNode,Hr=Ar.additionalCellProps;return zt.createElement(le,(0,Vt.Z)({className:Mr,ellipsis:Dr.ellipsis,align:Dr.align,scope:Dr.rowScope,component:Dr.rowScope?Tn:kn,prefixCls:On,key:qi,record:Mt,index:An,renderIndex:Nn,dataIndex:Ce,render:_r,shouldCellUpdate:Dr.shouldCellUpdate},pr,{appendNode:rr,additionalProps:Hr}))})),br;if(Di&&(lr.current||gi)){var Lr=Gn(Mt,An,Qn+1,gi);br=zt.createElement(Fe,{expanded:gi,className:Ne()("".concat(On,"-expanded-row"),"".concat(On,"-expanded-row-level-").concat(Qn+1),Xi),prefixCls:On,component:nn,cellComponent:kn,colSpan:Si.length,isEmpty:!1},Lr)}return zt.createElement(zt.Fragment,null,kr,br)}var Hn=pt(Mn);function yi(Ee){var an=Ee.columnKey,Pe=Ee.onColumnResize,Mt=zt.useRef();return(0,Ie.Z)(function(){Mt.current&&Pe(an,Mt.current.offsetWidth)},[]),zt.createElement(pe.Z,{data:an},zt.createElement("td",{ref:Mt,style:{padding:0,border:0,height:0}},zt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Jn=Nt(29194);function xi(Ee){var an=Ee.prefixCls,Pe=Ee.columnsKey,Mt=Ee.onColumnResize,An=zt.useRef(null);return zt.createElement("tr",{"aria-hidden":"true",className:"".concat(an,"-measure-row"),style:{height:0,fontSize:0},ref:An},zt.createElement(pe.Z.Collection,{onBatchResize:function(ui){(0,Jn.Z)(An.current)&&ui.forEach(function(ai){var Qn=ai.data,nn=ai.size;Mt(Qn,nn.offsetWidth)})}},Pe.map(function(Nn){return zt.createElement(yi,{key:Nn,columnKey:Nn,onColumnResize:Mt})})))}function Vi(Ee){var an=Ee.data,Pe=Ee.measureColumnWidth,Mt=he(Et,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),An=Mt.prefixCls,Nn=Mt.getComponent,ui=Mt.onColumnResize,ai=Mt.flattenColumns,Qn=Mt.getRowKey,nn=Mt.expandedKeys,kn=Mt.childrenColumnName,Tn=Mt.emptyNode,yn=xn(an,kn,nn,Qn),On=zt.useRef({renderWithProps:!1}),Si=Nn(["body","wrapper"],"tbody"),ii=Nn(["body","row"],"tr"),Gn=Nn(["body","cell"],"td"),Ve=Nn(["body","cell"],"th"),gi;an.length?gi=yn.map(function(lr,Xi){var kr=lr.record,br=lr.indent,Lr=lr.index,Dr=Qn(kr,Xi);return zt.createElement(Hn,{key:Dr,rowKey:Dr,record:kr,index:Xi,renderIndex:Lr,rowComponent:ii,cellComponent:Gn,scopeCellComponent:Ve,indent:br})}):gi=zt.createElement(Fe,{expanded:!0,className:"".concat(An,"-placeholder"),prefixCls:An,component:ii,cellComponent:Gn,colSpan:ai.length,isEmpty:!0},Tn);var Di=Kt(ai);return zt.createElement(Be.Provider,{value:On.current},zt.createElement(Si,{className:"".concat(An,"-tbody")},Pe&&zt.createElement(xi,{prefixCls:An,columnsKey:Di,onColumnResize:ui}),gi))}var Ii=pt(Vi),Wi=Nt(54451),Ji=["columnType"];function er(Ee){for(var an=Ee.colWidths,Pe=Ee.columns,Mt=Ee.columCount,An=he(Et,["tableLayout"]),Nn=An.tableLayout,ui=[],ai=Mt||Pe.length,Qn=!1,nn=ai-1;nn>=0;nn-=1){var kn=an[nn],Tn=Pe&&Pe[nn],yn=void 0,On=void 0;if(Tn&&(yn=Tn[Wi.v],Nn==="auto"&&(On=Tn.minWidth)),kn||On||yn||Qn){var Si=yn||{},ii=Si.columnType,Gn=(0,St.Z)(Si,Ji);ui.unshift(zt.createElement("col",(0,Vt.Z)({key:nn,style:{width:kn,minWidth:On}},Gn))),Qn=!0}}return zt.createElement("colgroup",null,ui)}var ji=er,Ai=Nt(95190),nr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ct(Ee,an){return(0,zt.useMemo)(function(){for(var Pe=[],Mt=0;Mt<an;Mt+=1){var An=Ee[Mt];if(An!==void 0)Pe[Mt]=An;else return null}return Pe},[Ee.join("_"),an])}var li=zt.forwardRef(function(Ee,an){var Pe=Ee.className,Mt=Ee.noData,An=Ee.columns,Nn=Ee.flattenColumns,ui=Ee.colWidths,ai=Ee.columCount,Qn=Ee.stickyOffsets,nn=Ee.direction,kn=Ee.fixHeader,Tn=Ee.stickyTopOffset,yn=Ee.stickyBottomOffset,On=Ee.stickyClassName,Si=Ee.onScroll,ii=Ee.maxContentScroll,Gn=Ee.children,Ve=(0,St.Z)(Ee,nr),gi=he(Et,["prefixCls","scrollbarSize","isSticky","getComponent"]),Di=gi.prefixCls,lr=gi.scrollbarSize,Xi=gi.isSticky,kr=gi.getComponent,br=kr(["header","table"],"table"),Lr=Xi&&!kn?0:lr,Dr=zt.useRef(null),Nr=zt.useCallback(function(Hr){(0,qe.mH)(an,Hr),(0,qe.mH)(Dr,Hr)},[]);zt.useEffect(function(){var Hr;function Gr(cr){var eo=cr,ga=eo.currentTarget,Bo=eo.deltaX;Bo&&(Si({currentTarget:ga,scrollLeft:ga.scrollLeft+Bo}),cr.preventDefault())}return(Hr=Dr.current)===null||Hr===void 0||Hr.addEventListener("wheel",Gr,{passive:!1}),function(){var cr;(cr=Dr.current)===null||cr===void 0||cr.removeEventListener("wheel",Gr)}},[]);var _r=zt.useMemo(function(){return Nn.every(function(Hr){return Hr.width})},[Nn]),Ce=Nn[Nn.length-1],Mr={fixed:Ce?Ce.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Di,"-cell-scrollbar")}}},Ar=(0,zt.useMemo)(function(){return Lr?[].concat((0,Ai.Z)(An),[Mr]):An},[Lr,An]),qi=(0,zt.useMemo)(function(){return Lr?[].concat((0,Ai.Z)(Nn),[Mr]):Nn},[Lr,Nn]),pr=(0,zt.useMemo)(function(){var Hr=Qn.right,Gr=Qn.left;return(0,Ut.Z)((0,Ut.Z)({},Qn),{},{left:nn==="rtl"?[].concat((0,Ai.Z)(Gr.map(function(cr){return cr+Lr})),[0]):Gr,right:nn==="rtl"?Hr:[].concat((0,Ai.Z)(Hr.map(function(cr){return cr+Lr})),[0]),isSticky:Xi})},[Lr,Qn,Xi]),rr=Ct(ui,ai);return zt.createElement("div",{style:(0,Ut.Z)({overflow:"hidden"},Xi?{top:Tn,bottom:yn}:{}),ref:Nr,className:Ne()(Pe,(0,fe.Z)({},On,!!On))},zt.createElement(br,{style:{tableLayout:"fixed",visibility:Mt||rr?null:"hidden"}},(!Mt||!ii||_r)&&zt.createElement(ji,{colWidths:rr?[].concat((0,Ai.Z)(rr),[Lr]):[],columCount:ai+1,columns:qi}),Gn((0,Ut.Z)((0,Ut.Z)({},Ve),{},{stickyOffsets:pr,columns:Ar,flattenColumns:qi}))))}),pi=zt.memo(li),Yn=function(an){var Pe=an.cells,Mt=an.stickyOffsets,An=an.flattenColumns,Nn=an.rowComponent,ui=an.cellComponent,ai=an.onHeaderRow,Qn=an.index,nn=he(Et,["prefixCls","direction"]),kn=nn.prefixCls,Tn=nn.direction,yn;ai&&(yn=ai(Pe.map(function(Si){return Si.column}),Qn));var On=Kt(Pe.map(function(Si){return Si.column}));return zt.createElement(Nn,yn,Pe.map(function(Si,ii){var Gn=Si.column,Ve=bn(Si.colStart,Si.colEnd,An,Mt,Tn),gi;return Gn&&Gn.onHeaderCell&&(gi=Si.column.onHeaderCell(Gn)),zt.createElement(le,(0,Vt.Z)({},Si,{scope:Gn.title?Si.colSpan>1?"colgroup":"col":null,ellipsis:Gn.ellipsis,align:Gn.align,component:ui,prefixCls:kn,key:On[ii]},Ve,{additionalProps:gi,rowType:"header"}))}))},ti=Yn;function ri(Ee){var an=[];function Pe(ui,ai){var Qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;an[Qn]=an[Qn]||[];var nn=ai,kn=ui.filter(Boolean).map(function(Tn){var yn={key:Tn.key,className:Tn.className||"",children:Tn.title,column:Tn,colStart:nn},On=1,Si=Tn.children;return Si&&Si.length>0&&(On=Pe(Si,nn,Qn+1).reduce(function(ii,Gn){return ii+Gn},0),yn.hasSubColumns=!0),"colSpan"in Tn&&(On=Tn.colSpan),"rowSpan"in Tn&&(yn.rowSpan=Tn.rowSpan),yn.colSpan=On,yn.colEnd=yn.colStart+On-1,an[Qn].push(yn),nn+=On,On});return kn}Pe(Ee,0);for(var Mt=an.length,An=function(ai){an[ai].forEach(function(Qn){!("rowSpan"in Qn)&&!Qn.hasSubColumns&&(Qn.rowSpan=Mt-ai)})},Nn=0;Nn<Mt;Nn+=1)An(Nn);return an}var vi=function(an){var Pe=an.stickyOffsets,Mt=an.columns,An=an.flattenColumns,Nn=an.onHeaderRow,ui=he(Et,["prefixCls","getComponent"]),ai=ui.prefixCls,Qn=ui.getComponent,nn=zt.useMemo(function(){return ri(Mt)},[Mt]),kn=Qn(["header","wrapper"],"thead"),Tn=Qn(["header","row"],"tr"),yn=Qn(["header","cell"],"th");return zt.createElement(kn,{className:"".concat(ai,"-thead")},nn.map(function(On,Si){var ii=zt.createElement(ti,{key:Si,flattenColumns:An,cells:On,stickyOffsets:Pe,rowComponent:Tn,cellComponent:yn,onHeaderRow:Nn,index:Si});return ii}))},Ri=pt(vi),Ni=Nt(97347);function me(Ee,an,Pe){var Mt=(0,Wi.g)(Ee),An=Mt.expandIcon,Nn=Mt.expandedRowKeys,ui=Mt.defaultExpandedRowKeys,ai=Mt.defaultExpandAllRows,Qn=Mt.expandedRowRender,nn=Mt.onExpand,kn=Mt.onExpandedRowsChange,Tn=Mt.childrenColumnName,yn=An||ze,On=Tn||"children",Si=zt.useMemo(function(){return Qn?"row":Ee.expandable&&Ee.internalHooks===Ft.R&&Ee.expandable.__PARENT_RENDER_ICON__||an.some(function(Xi){return Xi&&(0,Jt.Z)(Xi)==="object"&&Xi[On]})?"nest":!1},[!!Qn,an]),ii=zt.useState(function(){return ui||(ai?Je(an,Pe,On):[])}),Gn=(0,se.Z)(ii,2),Ve=Gn[0],gi=Gn[1],Di=zt.useMemo(function(){return new Set(Nn||Ve||[])},[Nn,Ve]),lr=zt.useCallback(function(Xi){var kr=Pe(Xi,an.indexOf(Xi)),br,Lr=Di.has(kr);Lr?(Di.delete(kr),br=(0,Ai.Z)(Di)):br=[].concat((0,Ai.Z)(Di),[kr]),gi(br),nn&&nn(!Lr,Xi),kn&&kn(br)},[Pe,Di,an,nn,kn]);return[Mt,Si,Di,yn,On,lr]}function ue(Ee,an,Pe){var Mt=Ee.map(function(An,Nn){return bn(Nn,Nn,Ee,an,Pe)});return(0,Ge.Z)(function(){return Mt},[Mt],function(An,Nn){return!(0,ge.Z)(An,Nn)})}function ce(Ee){var an=(0,zt.useRef)(Ee),Pe=(0,zt.useState)({}),Mt=(0,se.Z)(Pe,2),An=Mt[1],Nn=(0,zt.useRef)(null),ui=(0,zt.useRef)([]);function ai(Qn){ui.current.push(Qn);var nn=Promise.resolve();Nn.current=nn,nn.then(function(){if(Nn.current===nn){var kn=ui.current,Tn=an.current;ui.current=[],kn.forEach(function(yn){an.current=yn(an.current)}),Nn.current=null,Tn!==an.current&&An({})}})}return(0,zt.useEffect)(function(){return function(){Nn.current=null}},[]),[an.current,ai]}function zn(Ee){var an=(0,zt.useRef)(Ee||null),Pe=(0,zt.useRef)();function Mt(){window.clearTimeout(Pe.current)}function An(ui){an.current=ui,Mt(),Pe.current=window.setTimeout(function(){an.current=null,Pe.current=void 0},100)}function Nn(){return an.current}return(0,zt.useEffect)(function(){return Mt},[]),[An,Nn]}function Xn(){var Ee=zt.useState(-1),an=(0,se.Z)(Ee,2),Pe=an[0],Mt=an[1],An=zt.useState(-1),Nn=(0,se.Z)(An,2),ui=Nn[0],ai=Nn[1],Qn=zt.useCallback(function(nn,kn){Mt(nn),ai(kn)},[]);return[Pe,ui,Qn]}var ni=Nt(47273),$e=(0,ni.Z)()?window:null;function In(Ee,an){var Pe=(0,Jt.Z)(Ee)==="object"?Ee:{},Mt=Pe.offsetHeader,An=Mt===void 0?0:Mt,Nn=Pe.offsetSummary,ui=Nn===void 0?0:Nn,ai=Pe.offsetScroll,Qn=ai===void 0?0:ai,nn=Pe.getContainer,kn=nn===void 0?function(){return $e}:nn,Tn=kn()||$e,yn=!!Ee;return zt.useMemo(function(){return{isSticky:yn,stickyClassName:yn?"".concat(an,"-sticky-holder"):"",offsetHeader:An,offsetSummary:ui,offsetScroll:Qn,container:Tn}},[yn,Qn,An,ui,an,Tn])}function wi(Ee,an,Pe){var Mt=(0,zt.useMemo)(function(){var An=an.length,Nn=function(nn,kn,Tn){for(var yn=[],On=0,Si=nn;Si!==kn;Si+=Tn)yn.push(On),an[Si].fixed&&(On+=Ee[Si]||0);return yn},ui=Nn(0,An,1),ai=Nn(An-1,-1,-1).reverse();return Pe==="rtl"?{left:ai,right:ui}:{left:ui,right:ai}},[Ee,an,Pe]);return Mt}var Mi=wi;function Gi(Ee){var an=Ee.className,Pe=Ee.children;return zt.createElement("div",{className:an},Pe)}var Ht=Gi,de=Nt(8224),wn=Nt(16089),Bn=Nt(76846);function ke(Ee){var an=(0,Bn.bn)(Ee),Pe=an.getBoundingClientRect(),Mt=document.documentElement;return{left:Pe.left+(window.pageXOffset||Mt.scrollLeft)-(Mt.clientLeft||document.body.clientLeft||0),top:Pe.top+(window.pageYOffset||Mt.scrollTop)-(Mt.clientTop||document.body.clientTop||0)}}var vn=function(an,Pe){var Mt,An,Nn=an.scrollBodyRef,ui=an.onScroll,ai=an.offsetScroll,Qn=an.container,nn=an.direction,kn=he(Et,"prefixCls"),Tn=((Mt=Nn.current)===null||Mt===void 0?void 0:Mt.scrollWidth)||0,yn=((An=Nn.current)===null||An===void 0?void 0:An.clientWidth)||0,On=Tn&&yn*(yn/Tn),Si=zt.useRef(),ii=ce({scrollLeft:0,isHiddenScrollBar:!0}),Gn=(0,se.Z)(ii,2),Ve=Gn[0],gi=Gn[1],Di=zt.useRef({delta:0,x:0}),lr=zt.useState(!1),Xi=(0,se.Z)(lr,2),kr=Xi[0],br=Xi[1],Lr=zt.useRef(null);zt.useEffect(function(){return function(){wn.Z.cancel(Lr.current)}},[]);var Dr=function(){br(!1)},Nr=function(qi){qi.persist(),Di.current.delta=qi.pageX-Ve.scrollLeft,Di.current.x=0,br(!0),qi.preventDefault()},_r=function(qi){var pr,rr=qi||((pr=window)===null||pr===void 0?void 0:pr.event),Hr=rr.buttons;if(!kr||Hr===0){kr&&br(!1);return}var Gr=Di.current.x+qi.pageX-Di.current.x-Di.current.delta,cr=nn==="rtl";Gr=Math.max(cr?On-yn:0,Math.min(cr?0:yn-On,Gr));var eo=!cr||Math.abs(Gr)+Math.abs(On)<yn;eo&&(ui({scrollLeft:Gr/yn*(Tn+2)}),Di.current.x=qi.pageX)},Ce=function(){wn.Z.cancel(Lr.current),Lr.current=(0,wn.Z)(function(){if(Nn.current){var qi=ke(Nn.current).top,pr=qi+Nn.current.offsetHeight,rr=Qn===window?document.documentElement.scrollTop+window.innerHeight:ke(Qn).top+Qn.clientHeight;pr-(0,xe.Z)()<=rr||qi>=rr-ai?gi(function(Hr){return(0,Ut.Z)((0,Ut.Z)({},Hr),{},{isHiddenScrollBar:!0})}):gi(function(Hr){return(0,Ut.Z)((0,Ut.Z)({},Hr),{},{isHiddenScrollBar:!1})})}})},Mr=function(qi){gi(function(pr){return(0,Ut.Z)((0,Ut.Z)({},pr),{},{scrollLeft:qi/Tn*yn||0})})};return zt.useImperativeHandle(Pe,function(){return{setScrollLeft:Mr,checkScrollBarVisible:Ce}}),zt.useEffect(function(){var Ar=(0,de.Z)(document.body,"mouseup",Dr,!1),qi=(0,de.Z)(document.body,"mousemove",_r,!1);return Ce(),function(){Ar.remove(),qi.remove()}},[On,kr]),zt.useEffect(function(){if(Nn.current){for(var Ar=[],qi=(0,Bn.bn)(Nn.current);qi;)Ar.push(qi),qi=qi.parentElement;return Ar.forEach(function(pr){return pr.addEventListener("scroll",Ce,!1)}),window.addEventListener("resize",Ce,!1),window.addEventListener("scroll",Ce,!1),Qn.addEventListener("scroll",Ce,!1),function(){Ar.forEach(function(pr){return pr.removeEventListener("scroll",Ce)}),window.removeEventListener("resize",Ce),window.removeEventListener("scroll",Ce),Qn.removeEventListener("scroll",Ce)}}},[Qn]),zt.useEffect(function(){Ve.isHiddenScrollBar||gi(function(Ar){var qi=Nn.current;return qi?(0,Ut.Z)((0,Ut.Z)({},Ar),{},{scrollLeft:qi.scrollLeft/qi.scrollWidth*qi.clientWidth}):Ar})},[Ve.isHiddenScrollBar]),Tn<=yn||!On||Ve.isHiddenScrollBar?null:zt.createElement("div",{style:{height:(0,xe.Z)(),width:yn,bottom:ai},className:"".concat(kn,"-sticky-scroll")},zt.createElement("div",{onMouseDown:Nr,ref:Si,className:Ne()("".concat(kn,"-sticky-scroll-bar"),(0,fe.Z)({},"".concat(kn,"-sticky-scroll-bar-active"),kr)),style:{width:"".concat(On,"px"),transform:"translate3d(".concat(Ve.scrollLeft,"px, 0, 0)")}}))},un=zt.forwardRef(vn);function Pn(Ee){return null}var $n=Pn;function Dn(Ee){return null}var Un=Dn,Wn="rc-table",bi=[],Pi={};function Ci(){return"No Data"}function je(Ee,an){var Pe=(0,Ut.Z)({rowKey:"key",prefixCls:Wn,emptyText:Ci},Ee),Mt=Pe.prefixCls,An=Pe.className,Nn=Pe.rowClassName,ui=Pe.style,ai=Pe.data,Qn=Pe.rowKey,nn=Pe.scroll,kn=Pe.tableLayout,Tn=Pe.direction,yn=Pe.title,On=Pe.footer,Si=Pe.summary,ii=Pe.caption,Gn=Pe.id,Ve=Pe.showHeader,gi=Pe.components,Di=Pe.emptyText,lr=Pe.onRow,Xi=Pe.onHeaderRow,kr=Pe.onScroll,br=Pe.internalHooks,Lr=Pe.transformColumns,Dr=Pe.internalRefs,Nr=Pe.tailor,_r=Pe.getContainerWidth,Ce=Pe.sticky,Mr=Pe.rowHoverable,Ar=Mr===void 0?!0:Mr,qi=ai||bi,pr=!!qi.length,rr=br===Ft.R,Hr=zt.useCallback(function(Vr,so){return(0,Ye.Z)(gi,Vr)||so},[gi]),Gr=zt.useMemo(function(){return typeof Qn=="function"?Qn:function(Vr){var so=Vr&&Vr[Qn];return so}},[Qn]),cr=Hr(["body"]),eo=Xn(),ga=(0,se.Z)(eo,3),Bo=ga[0],Ps=ga[1],wa=ga[2],Hi=me(Pe,qi,Gr),Po=(0,se.Z)(Hi,6),Co=Po[0],ea=Po[1],Do=Po[2],Vo=Po[3],ei=Po[4],Ki=Po[5],ur=nn==null?void 0:nn.x,Er=zt.useState(0),Tr=(0,se.Z)(Er,2),no=Tr[0],Ui=Tr[1],Ba=(0,Ni.Z)((0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},Pe),Co),{},{expandable:!!Co.expandedRowRender,columnTitle:Co.columnTitle,expandedKeys:Do,getRowKey:Gr,onTriggerExpand:Ki,expandIcon:Vo,expandIconColumnIndex:Co.expandIconColumnIndex,direction:Tn,scrollWidth:rr&&Nr&&typeof ur=="number"?ur:null,clientWidth:no}),rr?Lr:null),Wo=(0,se.Z)(Ba,4),No=Wo[0],zr=Wo[1],Uo=Wo[2],Da=Wo[3],vo=Uo!=null?Uo:ur,cs=zt.useMemo(function(){return{columns:No,flattenColumns:zr}},[No,zr]),fs=zt.useRef(),Cs=zt.useRef(),na=zt.useRef(),$u=zt.useRef();zt.useImperativeHandle(an,function(){return{nativeElement:fs.current,scrollTo:function(so){var Xo;if(na.current instanceof HTMLElement){var Ta=so.index,Ea=so.top,du=so.key;if(pn(Ea)){var Ql;(Ql=na.current)===null||Ql===void 0||Ql.scrollTo({top:Ea})}else{var cu,al=du!=null?du:Gr(qi[Ta]);(cu=na.current.querySelector('[data-row-key="'.concat(al,'"]')))===null||cu===void 0||cu.scrollIntoView()}}else(Xo=na.current)!==null&&Xo!==void 0&&Xo.scrollTo&&na.current.scrollTo(so)}}});var Bu=zt.useRef(),il=zt.useState(!1),yl=(0,se.Z)(il,2),Ns=yl[0],Vl=yl[1],th=zt.useState(!1),eh=(0,se.Z)(th,2),Yo=eh[0],Du=eh[1],nh=zt.useState(new Map),Ul=(0,se.Z)(nh,2),lu=Ul[0],La=Ul[1],Na=Kt(zr),aa=Na.map(function(Vr){return lu.get(Vr)}),pa=zt.useMemo(function(){return aa},[aa.join("_")]),Yl=Mi(pa,zr,Tn),Ga=nn&&Oe(nn.y),co=nn&&Oe(vo)||!!Co.fixed,oo=co&&zr.some(function(Vr){var so=Vr.fixed;return so}),Qr=zt.useRef(),sa=In(Ce,Mt),Fi=sa.isSticky,ca=sa.offsetHeader,ae=sa.offsetSummary,dn=sa.offsetScroll,Ks=sa.stickyClassName,Bl=sa.container,_o=zt.useMemo(function(){return Si==null?void 0:Si(qi)},[Si,qi]),Pa=(Ga||Fi)&&zt.isValidElement(_o)&&_o.type===Yt&&_o.props.fixed,Ts,rl,Nu;Ga&&(rl={overflowY:pr?"scroll":"auto",maxHeight:nn.y}),co&&(Ts={overflowX:"auto"},Ga||(rl={overflowY:"hidden"}),Nu={width:vo===!0?"auto":vo,minWidth:"100%"});var To=zt.useCallback(function(Vr,so){La(function(Xo){if(Xo.get(Vr)!==so){var Ta=new Map(Xo);return Ta.set(Vr,so),Ta}return Xo})},[]),xr=zn(null),Ha=(0,se.Z)(xr,2),Os=Ha[0],Oo=Ha[1];function Zr(Vr,so){so&&(typeof so=="function"?so(Vr):so.scrollLeft!==Vr&&(so.scrollLeft=Vr,so.scrollLeft!==Vr&&setTimeout(function(){so.scrollLeft=Vr},0)))}var Go=(0,we.Z)(function(Vr){var so=Vr.currentTarget,Xo=Vr.scrollLeft,Ta=Tn==="rtl",Ea=typeof Xo=="number"?Xo:so.scrollLeft,du=so||Pi;if(!Oo()||Oo()===du){var Ql;Os(du),Zr(Ea,Cs.current),Zr(Ea,na.current),Zr(Ea,Bu.current),Zr(Ea,(Ql=Qr.current)===null||Ql===void 0?void 0:Ql.setScrollLeft)}var cu=so||Cs.current;if(cu){var al=rr&&Nr&&typeof vo=="number"?vo:cu.scrollWidth,Nl=cu.clientWidth;if(al===Nl){Vl(!1),Du(!1);return}Ta?(Vl(-Ea<al-Nl),Du(-Ea>0)):(Vl(Ea>0),Du(Ea<al-Nl))}}),gs=(0,we.Z)(function(Vr){Go(Vr),kr==null||kr(Vr)}),xo=function(){if(co&&na.current){var so;Go({currentTarget:(0,Bn.bn)(na.current),scrollLeft:(so=na.current)===null||so===void 0?void 0:so.scrollLeft})}else Vl(!1),Du(!1)},Ls=function(so){var Xo,Ta=so.width;(Xo=Qr.current)===null||Xo===void 0||Xo.checkScrollBarVisible();var Ea=fs.current?fs.current.offsetWidth:Ta;rr&&_r&&fs.current&&(Ea=_r(fs.current,Ea)||Ea),Ea!==no&&(xo(),Ui(Ea))},ma=zt.useRef(!1);zt.useEffect(function(){ma.current&&xo()},[co,ai,No.length]),zt.useEffect(function(){ma.current=!0},[]);var uu=zt.useState(0),ao=(0,se.Z)(uu,2),Aa=ao[0],io=ao[1],wo=zt.useState(!0),Ao=(0,se.Z)(wo,2),Ho=Ao[0],ho=Ao[1];(0,Ie.Z)(function(){(!Nr||!rr)&&(na.current instanceof Element?io((0,xe.o)(na.current).width):io((0,xe.o)($u.current).width)),ho((0,ve.G)("position","sticky"))},[]),zt.useEffect(function(){rr&&Dr&&(Dr.body.current=na.current)});var Tu=zt.useCallback(function(Vr){return zt.createElement(zt.Fragment,null,zt.createElement(Ri,Vr),Pa==="top"&&zt.createElement(be,Vr,_o))},[Pa,_o]),Sr=zt.useCallback(function(Vr){return zt.createElement(be,Vr,_o)},[_o]),sc=Hr(["table"],"table"),qr=zt.useMemo(function(){return kn||(oo?vo==="max-content"?"auto":"fixed":Ga||Fi||zr.some(function(Vr){var so=Vr.ellipsis;return so})?"fixed":"auto")},[Ga,oo,zr,kn,Fi]),Cd,hu={colWidths:pa,columCount:zr.length,stickyOffsets:Yl,onHeaderRow:Xi,fixHeader:Ga,scroll:nn},ih=zt.useMemo(function(){return pr?null:typeof Di=="function"?Di():Di},[pr,Di]),Ld=zt.createElement(Ii,{data:qi,measureColumnWidth:Ga||co||Fi}),zh=zt.createElement(ji,{colWidths:zr.map(function(Vr){var so=Vr.width;return so}),columns:zr}),Dl=ii!=null?zt.createElement("caption",{className:"".concat(Mt,"-caption")},ii):void 0,Ou=(0,Te.Z)(Pe,{data:!0}),uo=(0,Te.Z)(Pe,{aria:!0});if(Ga||Fi){var ol;typeof cr=="function"?(ol=cr(qi,{scrollbarSize:Aa,ref:na,onScroll:Go}),hu.colWidths=zr.map(function(Vr,so){var Xo=Vr.width,Ta=so===zr.length-1?Xo-Aa:Xo;return typeof Ta=="number"&&!Number.isNaN(Ta)?Ta:0})):ol=zt.createElement("div",{style:(0,Ut.Z)((0,Ut.Z)({},Ts),rl),onScroll:gs,ref:na,className:Ne()("".concat(Mt,"-body"))},zt.createElement(sc,(0,Vt.Z)({style:(0,Ut.Z)((0,Ut.Z)({},Nu),{},{tableLayout:qr})},uo),Dl,zh,Ld,!Pa&&_o&&zt.createElement(be,{stickyOffsets:Yl,flattenColumns:zr},_o)));var jh=(0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({noData:!qi.length,maxContentScroll:co&&vo==="max-content"},hu),cs),{},{direction:Tn,stickyClassName:Ks,onScroll:Go});Cd=zt.createElement(zt.Fragment,null,Ve!==!1&&zt.createElement(pi,(0,Vt.Z)({},jh,{stickyTopOffset:ca,className:"".concat(Mt,"-header"),ref:Cs}),Tu),ol,Pa&&Pa!=="top"&&zt.createElement(pi,(0,Vt.Z)({},jh,{stickyBottomOffset:ae,className:"".concat(Mt,"-summary"),ref:Bu}),Sr),Fi&&na.current&&na.current instanceof Element&&zt.createElement(un,{ref:Qr,offsetScroll:dn,scrollBodyRef:na,onScroll:Go,container:Bl,direction:Tn}))}else Cd=zt.createElement("div",{style:(0,Ut.Z)((0,Ut.Z)({},Ts),rl),className:Ne()("".concat(Mt,"-content")),onScroll:Go,ref:na},zt.createElement(sc,(0,Vt.Z)({style:(0,Ut.Z)((0,Ut.Z)({},Nu),{},{tableLayout:qr})},uo),Dl,zh,Ve!==!1&&zt.createElement(Ri,(0,Vt.Z)({},hu,cs)),Ld,_o&&zt.createElement(be,{stickyOffsets:Yl,flattenColumns:zr},_o)));var Xl=zt.createElement("div",(0,Vt.Z)({className:Ne()(Mt,An,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Mt,"-rtl"),Tn==="rtl"),"".concat(Mt,"-ping-left"),Ns),"".concat(Mt,"-ping-right"),Yo),"".concat(Mt,"-layout-fixed"),kn==="fixed"),"".concat(Mt,"-fixed-header"),Ga),"".concat(Mt,"-fixed-column"),oo),"".concat(Mt,"-fixed-column-gapped"),oo&&Da),"".concat(Mt,"-scroll-horizontal"),co),"".concat(Mt,"-has-fix-left"),zr[0]&&zr[0].fixed),"".concat(Mt,"-has-fix-right"),zr[zr.length-1]&&zr[zr.length-1].fixed==="right")),style:ui,id:Gn,ref:fs},Ou),yn&&zt.createElement(Ht,{className:"".concat(Mt,"-title")},yn(qi)),zt.createElement("div",{ref:$u,className:"".concat(Mt,"-container")},Cd),On&&zt.createElement(Ht,{className:"".concat(Mt,"-footer")},On(qi)));co&&(Xl=zt.createElement(pe.Z,{onResize:Ls},Xl));var Ad=ue(zr,Yl,Tn),Jl=zt.useMemo(function(){return{scrollX:vo,prefixCls:Mt,getComponent:Hr,scrollbarSize:Aa,direction:Tn,fixedInfoList:Ad,isSticky:Fi,supportSticky:Ho,componentWidth:no,fixHeader:Ga,fixColumn:oo,horizonScroll:co,tableLayout:qr,rowClassName:Nn,expandedRowClassName:Co.expandedRowClassName,expandIcon:Vo,expandableType:ea,expandRowByClick:Co.expandRowByClick,expandedRowRender:Co.expandedRowRender,onTriggerExpand:Ki,expandIconColumnIndex:Co.expandIconColumnIndex,indentSize:Co.indentSize,allColumnsFixedLeft:zr.every(function(Vr){return Vr.fixed==="left"}),emptyNode:ih,columns:No,flattenColumns:zr,onColumnResize:To,hoverStartRow:Bo,hoverEndRow:Ps,onHover:wa,rowExpandable:Co.rowExpandable,onRow:lr,getRowKey:Gr,expandedKeys:Do,childrenColumnName:ei,rowHoverable:Ar}},[vo,Mt,Hr,Aa,Tn,Ad,Fi,Ho,no,Ga,oo,co,qr,Nn,Co.expandedRowClassName,Vo,ea,Co.expandRowByClick,Co.expandedRowRender,Ki,Co.expandIconColumnIndex,Co.indentSize,ih,No,zr,To,Bo,Ps,wa,Co.rowExpandable,lr,Gr,Do,ei,Ar]);return zt.createElement(Et.Provider,{value:Jl},Xl)}var $i=zt.forwardRef(je);function or(Ee){return lt($i,Ee)}var Fr=or();Fr.EXPAND_COLUMN=Ft.w,Fr.INTERNAL_HOOKS=Ft.R,Fr.Column=$n,Fr.ColumnGroup=Un,Fr.Summary=We;var Ue=Fr,Rn=Nt(65283),fi=Re(null),ci=Re(null);function Ei(Ee,an,Pe){var Mt=an||1;return Pe[Ee+Mt]-(Pe[Ee]||0)}function Zi(Ee){var an=Ee.rowInfo,Pe=Ee.column,Mt=Ee.colIndex,An=Ee.indent,Nn=Ee.index,ui=Ee.component,ai=Ee.renderIndex,Qn=Ee.record,nn=Ee.style,kn=Ee.className,Tn=Ee.inverse,yn=Ee.getHeight,On=Pe.render,Si=Pe.dataIndex,ii=Pe.className,Gn=Pe.width,Ve=he(ci,["columnsOffset"]),gi=Ve.columnsOffset,Di=Sn(an,Pe,Mt,An,Nn),lr=Di.key,Xi=Di.fixedInfo,kr=Di.appendCellNode,br=Di.additionalCellProps,Lr=br.style,Dr=br.colSpan,Nr=Dr===void 0?1:Dr,_r=br.rowSpan,Ce=_r===void 0?1:_r,Mr=Mt-1,Ar=Ei(Mr,Nr,gi),qi=Nr>1?Gn-Ar:0,pr=(0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},Lr),nn),{},{flex:"0 0 ".concat(Ar,"px"),width:"".concat(Ar,"px"),marginRight:qi,pointerEvents:"auto"}),rr=zt.useMemo(function(){return Tn?Ce<=1:Nr===0||Ce===0||Ce>1},[Ce,Nr,Tn]);rr?pr.visibility="hidden":Tn&&(pr.height=yn==null?void 0:yn(Ce));var Hr=rr?function(){return null}:On,Gr={};return(Ce===0||Nr===0)&&(Gr.rowSpan=1,Gr.colSpan=1),zt.createElement(le,(0,Vt.Z)({className:Ne()(ii,kn),ellipsis:Pe.ellipsis,align:Pe.align,scope:Pe.rowScope,component:ui,prefixCls:an.prefixCls,key:lr,record:Qn,index:Nn,renderIndex:ai,dataIndex:Si,render:Hr,shouldCellUpdate:Pe.shouldCellUpdate},Xi,{appendNode:kr,additionalProps:(0,Ut.Z)((0,Ut.Z)({},br),{},{style:pr},Gr)}))}var tr=Zi,sr=["data","index","className","rowKey","style","extra","getHeight"],dr=zt.forwardRef(function(Ee,an){var Pe=Ee.data,Mt=Ee.index,An=Ee.className,Nn=Ee.rowKey,ui=Ee.style,ai=Ee.extra,Qn=Ee.getHeight,nn=(0,St.Z)(Ee,sr),kn=Pe.record,Tn=Pe.indent,yn=Pe.index,On=he(Et,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Si=On.scrollX,ii=On.flattenColumns,Gn=On.prefixCls,Ve=On.fixColumn,gi=On.componentWidth,Di=he(fi,["getComponent"]),lr=Di.getComponent,Xi=_e(kn,Nn,Mt,Tn),kr=lr(["body","row"],"div"),br=lr(["body","cell"],"div"),Lr=Xi.rowSupportExpand,Dr=Xi.expanded,Nr=Xi.rowProps,_r=Xi.expandedRowRender,Ce=Xi.expandedRowClassName,Mr;if(Lr&&Dr){var Ar=_r(kn,Mt,Tn+1,Dr),qi=jn(Ce,kn,Mt,Tn),pr={};Ve&&(pr={style:(0,fe.Z)({},"--virtual-width","".concat(gi,"px"))});var rr="".concat(Gn,"-expanded-row-cell");Mr=zt.createElement(kr,{className:Ne()("".concat(Gn,"-expanded-row"),"".concat(Gn,"-expanded-row-level-").concat(Tn+1),qi)},zt.createElement(le,{component:br,prefixCls:Gn,className:Ne()(rr,(0,fe.Z)({},"".concat(rr,"-fixed"),Ve)),additionalProps:pr},Ar))}var Hr=(0,Ut.Z)((0,Ut.Z)({},ui),{},{width:Si});ai&&(Hr.position="absolute",Hr.pointerEvents="none");var Gr=zt.createElement(kr,(0,Vt.Z)({},Nr,nn,{"data-row-key":Nn,ref:Lr?null:an,className:Ne()(An,"".concat(Gn,"-row"),Nr==null?void 0:Nr.className,(0,fe.Z)({},"".concat(Gn,"-row-extra"),ai)),style:(0,Ut.Z)((0,Ut.Z)({},Hr),Nr==null?void 0:Nr.style)}),ii.map(function(cr,eo){return zt.createElement(tr,{key:eo,component:br,rowInfo:Xi,column:cr,colIndex:eo,indent:Tn,index:Mt,renderIndex:yn,record:kn,inverse:ai,getHeight:Qn})}));return Lr?zt.createElement("div",{ref:an},Gr,Mr):Gr}),gr=pt(dr),tn=gr,Br=zt.forwardRef(function(Ee,an){var Pe=Ee.data,Mt=Ee.onScroll,An=he(Et,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Nn=An.flattenColumns,ui=An.onColumnResize,ai=An.getRowKey,Qn=An.expandedKeys,nn=An.prefixCls,kn=An.childrenColumnName,Tn=An.scrollX,yn=An.direction,On=he(fi),Si=On.sticky,ii=On.scrollY,Gn=On.listItemHeight,Ve=On.getComponent,gi=On.onScroll,Di=zt.useRef(),lr=xn(Pe,kn,Qn,ai),Xi=zt.useMemo(function(){var Mr=0;return Nn.map(function(Ar){var qi=Ar.width,pr=Ar.key;return Mr+=qi,[pr,qi,Mr]})},[Nn]),kr=zt.useMemo(function(){return Xi.map(function(Mr){return Mr[2]})},[Xi]);zt.useEffect(function(){Xi.forEach(function(Mr){var Ar=(0,se.Z)(Mr,2),qi=Ar[0],pr=Ar[1];ui(qi,pr)})},[Xi]),zt.useImperativeHandle(an,function(){var Mr,Ar={scrollTo:function(pr){var rr;(rr=Di.current)===null||rr===void 0||rr.scrollTo(pr)},nativeElement:(Mr=Di.current)===null||Mr===void 0?void 0:Mr.nativeElement};return Object.defineProperty(Ar,"scrollLeft",{get:function(){var pr;return((pr=Di.current)===null||pr===void 0?void 0:pr.getScrollInfo().x)||0},set:function(pr){var rr;(rr=Di.current)===null||rr===void 0||rr.scrollTo({left:pr})}}),Ar});var br=function(Ar,qi){var pr,rr=(pr=lr[qi])===null||pr===void 0?void 0:pr.record,Hr=Ar.onCell;if(Hr){var Gr,cr=Hr(rr,qi);return(Gr=cr==null?void 0:cr.rowSpan)!==null&&Gr!==void 0?Gr:1}return 1},Lr=function(Ar){var qi=Ar.start,pr=Ar.end,rr=Ar.getSize,Hr=Ar.offsetY;if(pr<0)return null;for(var Gr=Nn.filter(function(Vo){return br(Vo,qi)===0}),cr=qi,eo=function(ei){if(Gr=Gr.filter(function(Ki){return br(Ki,ei)===0}),!Gr.length)return cr=ei,1},ga=qi;ga>=0&&!eo(ga);ga-=1);for(var Bo=Nn.filter(function(Vo){return br(Vo,pr)!==1}),Ps=pr,wa=function(ei){if(Bo=Bo.filter(function(Ki){return br(Ki,ei)!==1}),!Bo.length)return Ps=Math.max(ei-1,pr),1},Hi=pr;Hi<lr.length&&!wa(Hi);Hi+=1);for(var Po=[],Co=function(ei){var Ki=lr[ei];if(!Ki)return 1;Nn.some(function(ur){return br(ur,ei)>1})&&Po.push(ei)},ea=cr;ea<=Ps;ea+=1)Co(ea);var Do=Po.map(function(Vo){var ei=lr[Vo],Ki=ai(ei.record,Vo),ur=function(no){var Ui=Vo+no-1,Ba=ai(lr[Ui].record,Ui),Wo=rr(Ki,Ba);return Wo.bottom-Wo.top},Er=rr(Ki);return zt.createElement(tn,{key:Vo,data:ei,rowKey:Ki,index:Vo,style:{top:-Hr+Er.top},extra:!0,getHeight:ur})});return Do},Dr=zt.useMemo(function(){return{columnsOffset:kr}},[kr]),Nr="".concat(nn,"-tbody"),_r=Ve(["body","wrapper"]),Ce={};return Si&&(Ce.position="sticky",Ce.bottom=0,(0,Jt.Z)(Si)==="object"&&Si.offsetScroll&&(Ce.bottom=Si.offsetScroll)),zt.createElement(ci.Provider,{value:Dr},zt.createElement(Rn.Z,{fullHeight:!1,ref:Di,prefixCls:"".concat(Nr,"-virtual"),styles:{horizontalScrollBar:Ce},className:Nr,height:ii,itemHeight:Gn||24,data:lr,itemKey:function(Ar){return ai(Ar.record)},component:_r,scrollWidth:Tn,direction:yn,onVirtualScroll:function(Ar){var qi,pr=Ar.x;Mt({currentTarget:(qi=Di.current)===null||qi===void 0?void 0:qi.nativeElement,scrollLeft:pr})},onScroll:gi,extraRender:Lr},function(Mr,Ar,qi){var pr=ai(Mr.record,Ar);return zt.createElement(tn,{data:Mr,rowKey:pr,index:Ar,style:qi.style})}))}),en=pt(Br),ki=en,vr=function(an,Pe){var Mt=Pe.ref,An=Pe.onScroll;return zt.createElement(ki,{ref:Mt,data:an,onScroll:An})};function yr(Ee,an){var Pe=Ee.data,Mt=Ee.columns,An=Ee.scroll,Nn=Ee.sticky,ui=Ee.prefixCls,ai=ui===void 0?Wn:ui,Qn=Ee.className,nn=Ee.listItemHeight,kn=Ee.components,Tn=Ee.onScroll,yn=An||{},On=yn.x,Si=yn.y;typeof On!="number"&&(On=1),typeof Si!="number"&&(Si=500);var ii=(0,Vn.zX)(function(gi,Di){return(0,Ye.Z)(kn,gi)||Di}),Gn=(0,Vn.zX)(Tn),Ve=zt.useMemo(function(){return{sticky:Nn,scrollY:Si,listItemHeight:nn,getComponent:ii,onScroll:Gn}},[Nn,Si,nn,ii,Gn]);return zt.createElement(fi.Provider,{value:Ve},zt.createElement(Ue,(0,Vt.Z)({},Ee,{className:Ne()(Qn,"".concat(ai,"-virtual")),scroll:(0,Ut.Z)((0,Ut.Z)({},An),{},{x:On}),components:(0,Ut.Z)((0,Ut.Z)({},kn),{},{body:Pe!=null&&Pe.length?vr:void 0}),columns:Mt,internalHooks:Ft.R,tailor:!0,ref:an})))}var Wr=zt.forwardRef(yr);function Pr(Ee){return lt(Wr,Ee)}var ir=Pr(),Kr=null},54451:function(Cn,_n,Nt){"use strict";Nt.d(_n,{g:function(){return zt},v:function(){return ge}});var Ft=Nt(20439),se=Nt(62646),we=Nt(48736),Ie=["expandable"],ge="RC_TABLE_INTERNAL_COL_DEFINE";function zt(ie){var Re=ie.expandable,he=(0,se.Z)(ie,Ie),Vt;return"expandable"in ie?Vt=(0,Ft.Z)((0,Ft.Z)({},he),Re):Vt=he,Vt.showExpandColumn===!1&&(Vt.expandIconColumnIndex=-1),Vt}},22711:function(Cn,_n,Nt){"use strict";Nt.r(_n),Nt.d(_n,{ResizableTextArea:function(){return ne},default:function(){return Ln}});var Ft=Nt(14809),se=Nt(4635),we=Nt(20439),Ie=Nt(95190),ge=Nt(50298),zt=Nt(62646),ie=Nt(92310),Re=Nt.n(ie),he=Nt(36901),Vt=Nt(66003),qe=Nt(30292),te=Nt(18929),He=Nt(59301),Bt=Nt(93664),nt=Nt(29301),et=Nt(34280),ct=Nt(16089),lt=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,pt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],vt={},xt;function Et(hn){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=hn.getAttribute("id")||hn.getAttribute("data-reactid")||hn.getAttribute("name");if(Be&&vt[sn])return vt[sn];var ee=window.getComputedStyle(hn),Kt=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),Oe=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),pn=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),mn=pt.map(function(Qe){return"".concat(Qe,":").concat(ee.getPropertyValue(Qe))}).join(";"),Ae={sizingStyle:mn,paddingSize:Oe,borderSize:pn,boxSizing:Kt};return Be&&sn&&(vt[sn]=Ae),Ae}function Tt(hn){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xt||(xt=document.createElement("textarea"),xt.setAttribute("tab-index","-1"),xt.setAttribute("aria-hidden","true"),xt.setAttribute("name","hiddenTextarea"),document.body.appendChild(xt)),hn.getAttribute("wrap")?xt.setAttribute("wrap",hn.getAttribute("wrap")):xt.removeAttribute("wrap");var Kt=Et(hn,Be),Oe=Kt.paddingSize,pn=Kt.borderSize,mn=Kt.boxSizing,Ae=Kt.sizingStyle;xt.setAttribute("style","".concat(Ae,";").concat(lt)),xt.value=hn.value||hn.placeholder||"";var Qe=void 0,ln=void 0,Vn,Le=xt.scrollHeight;if(mn==="border-box"?Le+=pn:mn==="content-box"&&(Le-=Oe),sn!==null||ee!==null){xt.value=" ";var cn=xt.scrollHeight-Oe;sn!==null&&(Qe=cn*sn,mn==="border-box"&&(Qe=Qe+Oe+pn),Le=Math.max(Qe,Le)),ee!==null&&(ln=cn*ee,mn==="border-box"&&(ln=ln+Oe+pn),Vn=Le>ln?"":"hidden",Le=Math.min(ln,Le))}var le={height:Le,overflowY:Vn,resize:"none"};return Qe&&(le.minHeight=Qe),ln&&(le.maxHeight=ln),le}var jt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_t=0,Jt=1,Ut=2,fe=He.forwardRef(function(hn,Be){var sn=hn,ee=sn.prefixCls,Kt=sn.defaultValue,Oe=sn.value,pn=sn.autoSize,mn=sn.onResize,Ae=sn.className,Qe=sn.style,ln=sn.disabled,Vn=sn.onChange,Le=sn.onInternalAutoSize,cn=(0,zt.Z)(sn,jt),le=(0,te.Z)(Kt,{value:Oe,postState:function(Hn){return Hn!=null?Hn:""}}),bn=(0,ge.Z)(le,2),hi=bn[0],Ot=bn[1],Pt=function(Hn){Ot(Hn.target.value),Vn==null||Vn(Hn)},St=He.useRef();He.useImperativeHandle(Be,function(){return{textArea:St.current}});var kt=He.useMemo(function(){return pn&&(0,Bt.Z)(pn)==="object"?[pn.minRows,pn.maxRows]:[]},[pn]),Rt=(0,ge.Z)(kt,2),At=Rt[0],Yt=Rt[1],Me=!!pn,be=function(){try{if(document.activeElement===St.current){var Hn=St.current,yi=Hn.selectionStart,Jn=Hn.selectionEnd,xi=Hn.scrollTop;St.current.setSelectionRange(yi,Jn),St.current.scrollTop=xi}}catch(Vi){}},We=He.useState(Ut),pe=(0,ge.Z)(We,2),ve=pe[0],xe=pe[1],Te=He.useState(),Ke=(0,ge.Z)(Te,2),xn=Ke[0],_e=Ke[1],Zn=function(){xe(_t)};(0,et.Z)(function(){Me&&Zn()},[Oe,At,Yt,Me]),(0,et.Z)(function(){if(ve===_t)xe(Jt);else if(ve===Jt){var Mn=Tt(St.current,!1,At,Yt);xe(Ut),_e(Mn)}else be()},[ve]);var Fe=He.useRef(),ze=function(){ct.Z.cancel(Fe.current)},Je=function(Hn){ve===Ut&&(mn==null||mn(Hn),pn&&(ze(),Fe.current=(0,ct.Z)(function(){Zn()})))};He.useEffect(function(){return ze},[]);var jn=Me?xn:null,Sn=(0,we.Z)((0,we.Z)({},Qe),jn);return(ve===_t||ve===Jt)&&(Sn.overflowY="hidden",Sn.overflowX="hidden"),He.createElement(nt.Z,{onResize:Je,disabled:!(pn||mn)},He.createElement("textarea",(0,Ft.Z)({},cn,{ref:St,style:Sn,className:Re()(ee,Ae,(0,se.Z)({},"".concat(ee,"-disabled"),ln)),disabled:ln,value:hi,onChange:Pt})))}),ne=fe,Ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ge=He.forwardRef(function(hn,Be){var sn,ee=hn.defaultValue,Kt=hn.value,Oe=hn.onFocus,pn=hn.onBlur,mn=hn.onChange,Ae=hn.allowClear,Qe=hn.maxLength,ln=hn.onCompositionStart,Vn=hn.onCompositionEnd,Le=hn.suffix,cn=hn.prefixCls,le=cn===void 0?"rc-textarea":cn,bn=hn.showCount,hi=hn.count,Ot=hn.className,Pt=hn.style,St=hn.disabled,kt=hn.hidden,Rt=hn.classNames,At=hn.styles,Yt=hn.onResize,Me=hn.onClear,be=hn.onPressEnter,We=hn.readOnly,pe=hn.autoSize,ve=hn.onKeyDown,xe=(0,zt.Z)(hn,Ne),Te=(0,te.Z)(ee,{value:Kt,defaultValue:ee}),Ke=(0,ge.Z)(Te,2),xn=Ke[0],_e=Ke[1],Zn=xn==null?"":String(xn),Fe=He.useState(!1),ze=(0,ge.Z)(Fe,2),Je=ze[0],jn=ze[1],Sn=He.useRef(!1),Mn=He.useState(null),Hn=(0,ge.Z)(Mn,2),yi=Hn[0],Jn=Hn[1],xi=(0,He.useRef)(null),Vi=(0,He.useRef)(null),Ii=function(){var wi;return(wi=Vi.current)===null||wi===void 0?void 0:wi.textArea},Wi=function(){Ii().focus()};(0,He.useImperativeHandle)(Be,function(){var In;return{resizableTextArea:Vi.current,focus:Wi,blur:function(){Ii().blur()},nativeElement:((In=xi.current)===null||In===void 0?void 0:In.nativeElement)||Ii()}}),(0,He.useEffect)(function(){jn(function(In){return!St&&In})},[St]);var Ji=He.useState(null),er=(0,ge.Z)(Ji,2),ji=er[0],Ai=er[1];He.useEffect(function(){if(ji){var In;(In=Ii()).setSelectionRange.apply(In,(0,Ie.Z)(ji))}},[ji]);var nr=(0,Vt.Z)(hi,bn),Ct=(sn=nr.max)!==null&&sn!==void 0?sn:Qe,li=Number(Ct)>0,pi=nr.strategy(Zn),Yn=!!Ct&&pi>Ct,ti=function(wi,Mi){var Gi=Mi;!Sn.current&&nr.exceedFormatter&&nr.max&&nr.strategy(Mi)>nr.max&&(Gi=nr.exceedFormatter(Mi,{max:nr.max}),Mi!==Gi&&Ai([Ii().selectionStart||0,Ii().selectionEnd||0])),_e(Gi),(0,qe.rJ)(wi.currentTarget,wi,mn,Gi)},ri=function(wi){Sn.current=!0,ln==null||ln(wi)},vi=function(wi){Sn.current=!1,ti(wi,wi.currentTarget.value),Vn==null||Vn(wi)},Ri=function(wi){ti(wi,wi.target.value)},Ni=function(wi){wi.key==="Enter"&&be&&be(wi),ve==null||ve(wi)},me=function(wi){jn(!0),Oe==null||Oe(wi)},ue=function(wi){jn(!1),pn==null||pn(wi)},ce=function(wi){_e(""),Wi(),(0,qe.rJ)(Ii(),wi,mn)},zn=Le,Xn;nr.show&&(nr.showFormatter?Xn=nr.showFormatter({value:Zn,count:pi,maxLength:Ct}):Xn="".concat(pi).concat(li?" / ".concat(Ct):""),zn=He.createElement(He.Fragment,null,zn,He.createElement("span",{className:Re()("".concat(le,"-data-count"),Rt==null?void 0:Rt.count),style:At==null?void 0:At.count},Xn)));var ni=function(wi){var Mi;Yt==null||Yt(wi),(Mi=Ii())!==null&&Mi!==void 0&&Mi.style.height&&Jn(!0)},$e=!pe&&!bn&&!Ae;return He.createElement(he.BaseInput,{ref:xi,value:Zn,allowClear:Ae,handleReset:ce,suffix:zn,prefixCls:le,classNames:(0,we.Z)((0,we.Z)({},Rt),{},{affixWrapper:Re()(Rt==null?void 0:Rt.affixWrapper,(0,se.Z)((0,se.Z)({},"".concat(le,"-show-count"),bn),"".concat(le,"-textarea-allow-clear"),Ae))}),disabled:St,focused:Je,className:Re()(Ot,Yn&&"".concat(le,"-out-of-range")),style:(0,we.Z)((0,we.Z)({},Pt),yi&&!$e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xn=="string"?Xn:void 0}},hidden:kt,readOnly:We,onClear:Me},He.createElement(ne,(0,Ft.Z)({},xe,{autoSize:pe,maxLength:Qe,onKeyDown:Ni,onChange:Ri,onFocus:me,onBlur:ue,onCompositionStart:ri,onCompositionEnd:vi,className:Re()(Rt==null?void 0:Rt.textarea),style:(0,we.Z)((0,we.Z)({},At==null?void 0:At.textarea),{},{resize:Pt==null?void 0:Pt.resize}),disabled:St,prefixCls:le,onResize:ni,ref:Vi,readOnly:We})))}),Ye=Ge,Ln=Ye},639:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return vt}});var Ft=Nt(14809),se=Nt(4635),we=Nt(20439),Ie=Nt(50298),ge=Nt(62646),zt=Nt(59301),ie=Nt(92310),Re=Nt.n(ie),he=Nt(26112),Vt=Nt(30699),qe=function(Et){for(var Tt=Et.prefixCls,jt=Et.level,_t=Et.isStart,Jt=Et.isEnd,Ut="".concat(Tt,"-indent-unit"),fe=[],ne=0;ne<jt;ne+=1)fe.push(zt.createElement("span",{key:ne,className:Re()(Ut,(0,se.Z)((0,se.Z)({},"".concat(Ut,"-start"),_t[ne]),"".concat(Ut,"-end"),Jt[ne]))}));return zt.createElement("span",{"aria-hidden":"true",className:"".concat(Tt,"-indent")},fe)},te=zt.memo(qe),He=Nt(65065),Bt=Nt(34061),nt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],et="open",ct="close",lt="---",pt=function(Et){var Tt,jt,_t,Jt=Et.eventKey,Ut=Et.className,fe=Et.style,ne=Et.dragOver,Ne=Et.dragOverGapTop,Ge=Et.dragOverGapBottom,Ye=Et.isLeaf,Ln=Et.isStart,hn=Et.isEnd,Be=Et.expanded,sn=Et.selected,ee=Et.checked,Kt=Et.halfChecked,Oe=Et.loading,pn=Et.domRef,mn=Et.active,Ae=Et.data,Qe=Et.onMouseMove,ln=Et.selectable,Vn=(0,ge.Z)(Et,nt),Le=zt.useContext(Vt.k),cn=zt.useContext(Vt.y),le=zt.useRef(null),bn=zt.useState(!1),hi=(0,Ie.Z)(bn,2),Ot=hi[0],Pt=hi[1],St=!!(Le.disabled||Et.disabled||(Tt=cn.nodeDisabled)!==null&&Tt!==void 0&&Tt.call(cn,Ae)),kt=zt.useMemo(function(){return!Le.checkable||Et.checkable===!1?!1:Le.checkable},[Le.checkable,Et.checkable]),Rt=function(pi){St||Le.onNodeSelect(pi,(0,Bt.F)(Et))},At=function(pi){St||!kt||Et.disableCheckbox||Le.onNodeCheck(pi,(0,Bt.F)(Et),!ee)},Yt=zt.useMemo(function(){return typeof ln=="boolean"?ln:Le.selectable},[ln,Le.selectable]),Me=function(pi){Le.onNodeClick(pi,(0,Bt.F)(Et)),Yt?Rt(pi):At(pi)},be=function(pi){Le.onNodeDoubleClick(pi,(0,Bt.F)(Et))},We=function(pi){Le.onNodeMouseEnter(pi,(0,Bt.F)(Et))},pe=function(pi){Le.onNodeMouseLeave(pi,(0,Bt.F)(Et))},ve=function(pi){Le.onNodeContextMenu(pi,(0,Bt.F)(Et))},xe=zt.useMemo(function(){return!!(Le.draggable&&(!Le.draggable.nodeDraggable||Le.draggable.nodeDraggable(Ae)))},[Le.draggable,Ae]),Te=function(pi){pi.stopPropagation(),Pt(!0),Le.onNodeDragStart(pi,Et);try{pi.dataTransfer.setData("text/plain","")}catch(Yn){}},Ke=function(pi){pi.preventDefault(),pi.stopPropagation(),Le.onNodeDragEnter(pi,Et)},xn=function(pi){pi.preventDefault(),pi.stopPropagation(),Le.onNodeDragOver(pi,Et)},_e=function(pi){pi.stopPropagation(),Le.onNodeDragLeave(pi,Et)},Zn=function(pi){pi.stopPropagation(),Pt(!1),Le.onNodeDragEnd(pi,Et)},Fe=function(pi){pi.preventDefault(),pi.stopPropagation(),Pt(!1),Le.onNodeDrop(pi,Et)},ze=function(pi){Oe||Le.onNodeExpand(pi,(0,Bt.F)(Et))},Je=zt.useMemo(function(){var li=(0,He.Z)(Le.keyEntities,Jt)||{},pi=li.children;return!!(pi||[]).length},[Le.keyEntities,Jt]),jn=zt.useMemo(function(){return Ye===!1?!1:Ye||!Le.loadData&&!Je||Le.loadData&&Et.loaded&&!Je},[Ye,Le.loadData,Je,Et.loaded]);zt.useEffect(function(){Oe||typeof Le.loadData=="function"&&Be&&!jn&&!Et.loaded&&Le.onNodeLoad((0,Bt.F)(Et))},[Oe,Le.loadData,Le.onNodeLoad,Be,jn,Et]);var Sn=zt.useMemo(function(){var li;return(li=Le.draggable)!==null&&li!==void 0&&li.icon?zt.createElement("span",{className:"".concat(Le.prefixCls,"-draggable-icon")},Le.draggable.icon):null},[Le.draggable]),Mn=function(pi){var Yn=Et.switcherIcon||Le.switcherIcon;return typeof Yn=="function"?Yn((0,we.Z)((0,we.Z)({},Et),{},{isLeaf:pi})):Yn},Hn=function(){if(jn){var pi=Mn(!0);return pi!==!1?zt.createElement("span",{className:Re()("".concat(Le.prefixCls,"-switcher"),"".concat(Le.prefixCls,"-switcher-noop"))},pi):null}var Yn=Mn(!1);return Yn!==!1?zt.createElement("span",{onClick:ze,className:Re()("".concat(Le.prefixCls,"-switcher"),"".concat(Le.prefixCls,"-switcher_").concat(Be?et:ct))},Yn):null},yi=zt.useMemo(function(){if(!kt)return null;var li=typeof kt!="boolean"?kt:null;return zt.createElement("span",{className:Re()("".concat(Le.prefixCls,"-checkbox"),(0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(Le.prefixCls,"-checkbox-checked"),ee),"".concat(Le.prefixCls,"-checkbox-indeterminate"),!ee&&Kt),"".concat(Le.prefixCls,"-checkbox-disabled"),St||Et.disableCheckbox)),onClick:At,role:"checkbox","aria-checked":Kt?"mixed":ee,"aria-disabled":St||Et.disableCheckbox,"aria-label":"Select ".concat(typeof Et.title=="string"?Et.title:"tree node")},li)},[kt,ee,Kt,St,Et.disableCheckbox,Et.title]),Jn=zt.useMemo(function(){return jn?null:Be?et:ct},[jn,Be]),xi=zt.useMemo(function(){return zt.createElement("span",{className:Re()("".concat(Le.prefixCls,"-iconEle"),"".concat(Le.prefixCls,"-icon__").concat(Jn||"docu"),(0,se.Z)({},"".concat(Le.prefixCls,"-icon_loading"),Oe))})},[Le.prefixCls,Jn,Oe]),Vi=zt.useMemo(function(){var li=!!Le.draggable,pi=!Et.disabled&&li&&Le.dragOverNodeKey===Jt;return pi?Le.dropIndicatorRender({dropPosition:Le.dropPosition,dropLevelOffset:Le.dropLevelOffset,indent:Le.indent,prefixCls:Le.prefixCls,direction:Le.direction}):null},[Le.dropPosition,Le.dropLevelOffset,Le.indent,Le.prefixCls,Le.direction,Le.draggable,Le.dragOverNodeKey,Le.dropIndicatorRender]),Ii=zt.useMemo(function(){var li=Et.title,pi=li===void 0?lt:li,Yn="".concat(Le.prefixCls,"-node-content-wrapper"),ti;if(Le.showIcon){var ri=Et.icon||Le.icon;ti=ri?zt.createElement("span",{className:Re()("".concat(Le.prefixCls,"-iconEle"),"".concat(Le.prefixCls,"-icon__customize"))},typeof ri=="function"?ri(Et):ri):xi}else Le.loadData&&Oe&&(ti=xi);var vi;return typeof pi=="function"?vi=pi(Ae):Le.titleRender?vi=Le.titleRender(Ae):vi=pi,zt.createElement("span",{ref:le,title:typeof pi=="string"?pi:"",className:Re()(Yn,"".concat(Yn,"-").concat(Jn||"normal"),(0,se.Z)({},"".concat(Le.prefixCls,"-node-selected"),!St&&(sn||Ot))),onMouseEnter:We,onMouseLeave:pe,onContextMenu:ve,onClick:Me,onDoubleClick:be},ti,zt.createElement("span",{className:"".concat(Le.prefixCls,"-title")},vi),Vi)},[Le.prefixCls,Le.showIcon,Et,Le.icon,xi,Le.titleRender,Ae,Jn,We,pe,ve,Me,be]),Wi=(0,he.Z)(Vn,{aria:!0,data:!0}),Ji=(0,He.Z)(Le.keyEntities,Jt)||{},er=Ji.level,ji=hn[hn.length-1],Ai=!St&&xe,nr=Le.draggingNodeKey===Jt,Ct=ln!==void 0?{"aria-selected":!!ln}:void 0;return zt.createElement("div",(0,Ft.Z)({ref:pn,role:"treeitem","aria-expanded":Ye?void 0:Be,className:Re()(Ut,"".concat(Le.prefixCls,"-treenode"),(_t={},(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)(_t,"".concat(Le.prefixCls,"-treenode-disabled"),St),"".concat(Le.prefixCls,"-treenode-switcher-").concat(Be?"open":"close"),!Ye),"".concat(Le.prefixCls,"-treenode-checkbox-checked"),ee),"".concat(Le.prefixCls,"-treenode-checkbox-indeterminate"),Kt),"".concat(Le.prefixCls,"-treenode-selected"),sn),"".concat(Le.prefixCls,"-treenode-loading"),Oe),"".concat(Le.prefixCls,"-treenode-active"),mn),"".concat(Le.prefixCls,"-treenode-leaf-last"),ji),"".concat(Le.prefixCls,"-treenode-draggable"),xe),"dragging",nr),(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)(_t,"drop-target",Le.dropTargetKey===Jt),"drop-container",Le.dropContainerKey===Jt),"drag-over",!St&&ne),"drag-over-gap-top",!St&&Ne),"drag-over-gap-bottom",!St&&Ge),"filter-node",(jt=Le.filterTreeNode)===null||jt===void 0?void 0:jt.call(Le,(0,Bt.F)(Et))),"".concat(Le.prefixCls,"-treenode-leaf"),jn))),style:fe,draggable:Ai,onDragStart:Ai?Te:void 0,onDragEnter:xe?Ke:void 0,onDragOver:xe?xn:void 0,onDragLeave:xe?_e:void 0,onDrop:xe?Fe:void 0,onDragEnd:xe?Zn:void 0,onMouseMove:Qe},Ct,Wi),zt.createElement(te,{prefixCls:Le.prefixCls,level:er,isStart:Ln,isEnd:hn}),Sn,Hn(),yi,Ii)};pt.isTreeNode=1;var vt=pt},30699:function(Cn,_n,Nt){"use strict";Nt.d(_n,{k:function(){return se},y:function(){return we}});var Ft=Nt(59301),se=Ft.createContext(null),we=Ft.createContext({})},29530:function(Cn,_n,Nt){"use strict";Nt.d(_n,{OF:function(){return Jt.Z},y6:function(){return ct.y},ZP:function(){return St}});var Ft=Nt(14809),se=Nt(93664),we=Nt(20439),Ie=Nt(95190),ge=Nt(99153),zt=Nt(84851),ie=Nt(13028),Re=Nt(19257),he=Nt(93046),Vt=Nt(4635),qe=Nt(92310),te=Nt.n(qe),He=Nt(10228),Bt=Nt(26112),nt=Nt(48736),et=Nt(59301),ct=Nt(30699),lt=function(Rt){var At=Rt.dropPosition,Yt=Rt.dropLevelOffset,Me=Rt.indent,be={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(At){case-1:be.top=0,be.left=-Yt*Me;break;case 1:be.bottom=0,be.left=-Yt*Me;break;case 0:be.bottom=0,be.left=Me;break}return et.createElement("div",{style:be})},pt=lt;function vt(kt){if(kt==null)throw new TypeError("Cannot destructure "+kt)}var xt=Nt(50298),Et=Nt(62646),Tt=Nt(34280),jt=Nt(65283),_t=Nt(77900),Jt=Nt(639);function Ut(kt,Rt){var At=et.useState(!1),Yt=(0,xt.Z)(At,2),Me=Yt[0],be=Yt[1];(0,Tt.Z)(function(){if(Me)return kt(),function(){Rt()}},[Me]),(0,Tt.Z)(function(){return be(!0),function(){be(!1)}},[])}var fe=Ut,ne=Nt(34061),Ne=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ge=et.forwardRef(function(kt,Rt){var At=kt.className,Yt=kt.style,Me=kt.motion,be=kt.motionNodes,We=kt.motionType,pe=kt.onMotionStart,ve=kt.onMotionEnd,xe=kt.active,Te=kt.treeNodeRequiredProps,Ke=(0,Et.Z)(kt,Ne),xn=et.useState(!0),_e=(0,xt.Z)(xn,2),Zn=_e[0],Fe=_e[1],ze=et.useContext(ct.k),Je=ze.prefixCls,jn=be&&We!=="hide";(0,Tt.Z)(function(){be&&jn!==Zn&&Fe(jn)},[be]);var Sn=function(){be&&pe()},Mn=et.useRef(!1),Hn=function(){be&&!Mn.current&&(Mn.current=!0,ve())};fe(Sn,Hn);var yi=function(xi){jn===xi&&Hn()};return be?et.createElement(_t.default,(0,Ft.Z)({ref:Rt,visible:Zn},Me,{motionAppear:We==="show",onVisibleChanged:yi}),function(Jn,xi){var Vi=Jn.className,Ii=Jn.style;return et.createElement("div",{ref:xi,className:te()("".concat(Je,"-treenode-motion"),Vi),style:Ii},be.map(function(Wi){var Ji=Object.assign({},(vt(Wi.data),Wi.data)),er=Wi.title,ji=Wi.key,Ai=Wi.isStart,nr=Wi.isEnd;delete Ji.children;var Ct=(0,ne.H8)(ji,Te);return et.createElement(Jt.Z,(0,Ft.Z)({},Ji,Ct,{title:er,active:xe,data:Wi.data,key:ji,isStart:Ai,isEnd:nr}))}))}):et.createElement(Jt.Z,(0,Ft.Z)({domRef:Rt,className:At,style:Yt},Ke,{active:xe}))}),Ye=Ge;function Ln(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],At=kt.length,Yt=Rt.length;if(Math.abs(At-Yt)!==1)return{add:!1,key:null};function Me(be,We){var pe=new Map;be.forEach(function(xe){pe.set(xe,!0)});var ve=We.filter(function(xe){return!pe.has(xe)});return ve.length===1?ve[0]:null}return At<Yt?{add:!0,key:Me(kt,Rt)}:{add:!1,key:Me(Rt,kt)}}function hn(kt,Rt,At){var Yt=kt.findIndex(function(pe){return pe.key===At}),Me=kt[Yt+1],be=Rt.findIndex(function(pe){return pe.key===At});if(Me){var We=Rt.findIndex(function(pe){return pe.key===Me.key});return Rt.slice(be+1,We)}return Rt.slice(be+1)}var Be=["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"],sn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ee=function(){},Kt="RC_TREE_MOTION_".concat(Math.random()),Oe={key:Kt},pn={key:Kt,level:0,index:0,pos:"0",node:Oe,nodes:[Oe]},mn={parent:null,children:[],pos:pn.pos,data:Oe,title:null,key:Kt,isStart:[],isEnd:[]};function Ae(kt,Rt,At,Yt){return Rt===!1||!At?kt:kt.slice(0,Math.ceil(At/Yt)+1)}function Qe(kt){var Rt=kt.key,At=kt.pos;return(0,ne.km)(Rt,At)}function ln(kt){for(var Rt=String(kt.data.key),At=kt;At.parent;)At=At.parent,Rt="".concat(At.data.key," > ").concat(Rt);return Rt}var Vn=et.forwardRef(function(kt,Rt){var At=kt.prefixCls,Yt=kt.data,Me=kt.selectable,be=kt.checkable,We=kt.expandedKeys,pe=kt.selectedKeys,ve=kt.checkedKeys,xe=kt.loadedKeys,Te=kt.loadingKeys,Ke=kt.halfCheckedKeys,xn=kt.keyEntities,_e=kt.disabled,Zn=kt.dragging,Fe=kt.dragOverNodeKey,ze=kt.dropPosition,Je=kt.motion,jn=kt.height,Sn=kt.itemHeight,Mn=kt.virtual,Hn=kt.scrollWidth,yi=kt.focusable,Jn=kt.activeItem,xi=kt.focused,Vi=kt.tabIndex,Ii=kt.onKeyDown,Wi=kt.onFocus,Ji=kt.onBlur,er=kt.onActiveChange,ji=kt.onListChangeStart,Ai=kt.onListChangeEnd,nr=(0,Et.Z)(kt,Be),Ct=et.useRef(null),li=et.useRef(null);et.useImperativeHandle(Rt,function(){return{scrollTo:function(Pn){Ct.current.scrollTo(Pn)},getIndentWidth:function(){return li.current.offsetWidth}}});var pi=et.useState(We),Yn=(0,xt.Z)(pi,2),ti=Yn[0],ri=Yn[1],vi=et.useState(Yt),Ri=(0,xt.Z)(vi,2),Ni=Ri[0],me=Ri[1],ue=et.useState(Yt),ce=(0,xt.Z)(ue,2),zn=ce[0],Xn=ce[1],ni=et.useState([]),$e=(0,xt.Z)(ni,2),In=$e[0],wi=$e[1],Mi=et.useState(null),Gi=(0,xt.Z)(Mi,2),Ht=Gi[0],de=Gi[1],wn=et.useRef(Yt);wn.current=Yt;function Bn(){var un=wn.current;me(un),Xn(un),wi([]),de(null),Ai()}(0,Tt.Z)(function(){ri(We);var un=Ln(ti,We);if(un.key!==null)if(un.add){var Pn=Ni.findIndex(function(Pi){var Ci=Pi.key;return Ci===un.key}),$n=Ae(hn(Ni,Yt,un.key),Mn,jn,Sn),Dn=Ni.slice();Dn.splice(Pn+1,0,mn),Xn(Dn),wi($n),de("show")}else{var Un=Yt.findIndex(function(Pi){var Ci=Pi.key;return Ci===un.key}),Wn=Ae(hn(Yt,Ni,un.key),Mn,jn,Sn),bi=Yt.slice();bi.splice(Un+1,0,mn),Xn(bi),wi(Wn),de("hide")}else Ni!==Yt&&(me(Yt),Xn(Yt))},[We,Yt]),et.useEffect(function(){Zn||Bn()},[Zn]);var ke=Je?zn:Yt,vn={expandedKeys:We,selectedKeys:pe,loadedKeys:xe,loadingKeys:Te,checkedKeys:ve,halfCheckedKeys:Ke,dragOverNodeKey:Fe,dropPosition:ze,keyEntities:xn};return et.createElement(et.Fragment,null,xi&&Jn&&et.createElement("span",{style:sn,"aria-live":"assertive"},ln(Jn)),et.createElement("div",null,et.createElement("input",{style:sn,disabled:yi===!1||_e,tabIndex:yi!==!1?Vi:null,onKeyDown:Ii,onFocus:Wi,onBlur:Ji,value:"",onChange:ee,"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:li,className:"".concat(At,"-indent-unit")}))),et.createElement(jt.Z,(0,Ft.Z)({},nr,{data:ke,itemKey:Qe,height:jn,fullHeight:!1,virtual:Mn,itemHeight:Sn,scrollWidth:Hn,prefixCls:"".concat(At,"-list"),ref:Ct,role:"tree",onVisibleChange:function(Pn){Pn.every(function($n){return Qe($n)!==Kt})&&Bn()}}),function(un){var Pn=un.pos,$n=Object.assign({},(vt(un.data),un.data)),Dn=un.title,Un=un.key,Wn=un.isStart,bi=un.isEnd,Pi=(0,ne.km)(Un,Pn);delete $n.key,delete $n.children;var Ci=(0,ne.H8)(Pi,vn);return et.createElement(Ye,(0,Ft.Z)({},$n,Ci,{title:Dn,active:!!Jn&&Un===Jn.key,pos:Pn,data:un.data,isStart:Wn,isEnd:bi,motion:Je,motionNodes:Un===Kt?In:null,motionType:Ht,onMotionStart:ji,onMotionEnd:Bn,treeNodeRequiredProps:vn,onMouseMove:function(){er(null)}}))}))}),Le=Vn,cn=Nt(82661),le=Nt(34643),bn=Nt(65065),hi=10,Ot=function(kt){(0,Re.Z)(At,kt);var Rt=(0,he.Z)(At);function At(){var Yt;(0,ge.Z)(this,At);for(var Me=arguments.length,be=new Array(Me),We=0;We<Me;We++)be[We]=arguments[We];return Yt=Rt.call.apply(Rt,[this].concat(be)),(0,Vt.Z)((0,ie.Z)(Yt),"destroyed",!1),(0,Vt.Z)((0,ie.Z)(Yt),"delayedDragEnterLogic",void 0),(0,Vt.Z)((0,ie.Z)(Yt),"loadingRetryTimes",{}),(0,Vt.Z)((0,ie.Z)(Yt),"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,ne.w$)()}),(0,Vt.Z)((0,ie.Z)(Yt),"dragStartMousePosition",null),(0,Vt.Z)((0,ie.Z)(Yt),"dragNodeProps",null),(0,Vt.Z)((0,ie.Z)(Yt),"currentMouseOverDroppableNodeKey",null),(0,Vt.Z)((0,ie.Z)(Yt),"listRef",et.createRef()),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDragStart",function(pe,ve){var xe=Yt.state,Te=xe.expandedKeys,Ke=xe.keyEntities,xn=Yt.props.onDragStart,_e=ve.eventKey;Yt.dragNodeProps=ve,Yt.dragStartMousePosition={x:pe.clientX,y:pe.clientY};var Zn=(0,cn._5)(Te,_e);Yt.setState({draggingNodeKey:_e,dragChildrenKeys:(0,cn.wA)(_e,Ke),indent:Yt.listRef.current.getIndentWidth()}),Yt.setExpandedKeys(Zn),window.addEventListener("dragend",Yt.onWindowDragEnd),xn==null||xn({event:pe,node:(0,ne.F)(ve)})}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDragEnter",function(pe,ve){var xe=Yt.state,Te=xe.expandedKeys,Ke=xe.keyEntities,xn=xe.dragChildrenKeys,_e=xe.flattenNodes,Zn=xe.indent,Fe=Yt.props,ze=Fe.onDragEnter,Je=Fe.onExpand,jn=Fe.allowDrop,Sn=Fe.direction,Mn=ve.pos,Hn=ve.eventKey;if(Yt.currentMouseOverDroppableNodeKey!==Hn&&(Yt.currentMouseOverDroppableNodeKey=Hn),!Yt.dragNodeProps){Yt.resetDragState();return}var yi=(0,cn.OM)(pe,Yt.dragNodeProps,ve,Zn,Yt.dragStartMousePosition,jn,_e,Ke,Te,Sn),Jn=yi.dropPosition,xi=yi.dropLevelOffset,Vi=yi.dropTargetKey,Ii=yi.dropContainerKey,Wi=yi.dropTargetPos,Ji=yi.dropAllowed,er=yi.dragOverNodeKey;if(xn.includes(Vi)||!Ji){Yt.resetDragState();return}if(Yt.delayedDragEnterLogic||(Yt.delayedDragEnterLogic={}),Object.keys(Yt.delayedDragEnterLogic).forEach(function(ji){clearTimeout(Yt.delayedDragEnterLogic[ji])}),Yt.dragNodeProps.eventKey!==ve.eventKey&&(pe.persist(),Yt.delayedDragEnterLogic[Mn]=window.setTimeout(function(){if(Yt.state.draggingNodeKey!==null){var ji=(0,Ie.Z)(Te),Ai=(0,bn.Z)(Ke,ve.eventKey);Ai&&(Ai.children||[]).length&&(ji=(0,cn.L0)(Te,ve.eventKey)),Yt.props.hasOwnProperty("expandedKeys")||Yt.setExpandedKeys(ji),Je==null||Je(ji,{node:(0,ne.F)(ve),expanded:!0,nativeEvent:pe.nativeEvent})}},800)),Yt.dragNodeProps.eventKey===Vi&&xi===0){Yt.resetDragState();return}Yt.setState({dragOverNodeKey:er,dropPosition:Jn,dropLevelOffset:xi,dropTargetKey:Vi,dropContainerKey:Ii,dropTargetPos:Wi,dropAllowed:Ji}),ze==null||ze({event:pe,node:(0,ne.F)(ve),expandedKeys:Te})}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDragOver",function(pe,ve){var xe=Yt.state,Te=xe.dragChildrenKeys,Ke=xe.flattenNodes,xn=xe.keyEntities,_e=xe.expandedKeys,Zn=xe.indent,Fe=Yt.props,ze=Fe.onDragOver,Je=Fe.allowDrop,jn=Fe.direction;if(Yt.dragNodeProps){var Sn=(0,cn.OM)(pe,Yt.dragNodeProps,ve,Zn,Yt.dragStartMousePosition,Je,Ke,xn,_e,jn),Mn=Sn.dropPosition,Hn=Sn.dropLevelOffset,yi=Sn.dropTargetKey,Jn=Sn.dropContainerKey,xi=Sn.dropTargetPos,Vi=Sn.dropAllowed,Ii=Sn.dragOverNodeKey;Te.includes(yi)||!Vi||(Yt.dragNodeProps.eventKey===yi&&Hn===0?Yt.state.dropPosition===null&&Yt.state.dropLevelOffset===null&&Yt.state.dropTargetKey===null&&Yt.state.dropContainerKey===null&&Yt.state.dropTargetPos===null&&Yt.state.dropAllowed===!1&&Yt.state.dragOverNodeKey===null||Yt.resetDragState():Mn===Yt.state.dropPosition&&Hn===Yt.state.dropLevelOffset&&yi===Yt.state.dropTargetKey&&Jn===Yt.state.dropContainerKey&&xi===Yt.state.dropTargetPos&&Vi===Yt.state.dropAllowed&&Ii===Yt.state.dragOverNodeKey||Yt.setState({dropPosition:Mn,dropLevelOffset:Hn,dropTargetKey:yi,dropContainerKey:Jn,dropTargetPos:xi,dropAllowed:Vi,dragOverNodeKey:Ii}),ze==null||ze({event:pe,node:(0,ne.F)(ve)}))}}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDragLeave",function(pe,ve){Yt.currentMouseOverDroppableNodeKey===ve.eventKey&&!pe.currentTarget.contains(pe.relatedTarget)&&(Yt.resetDragState(),Yt.currentMouseOverDroppableNodeKey=null);var xe=Yt.props.onDragLeave;xe==null||xe({event:pe,node:(0,ne.F)(ve)})}),(0,Vt.Z)((0,ie.Z)(Yt),"onWindowDragEnd",function(pe){Yt.onNodeDragEnd(pe,null,!0),window.removeEventListener("dragend",Yt.onWindowDragEnd)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDragEnd",function(pe,ve){var xe=Yt.props.onDragEnd;Yt.setState({dragOverNodeKey:null}),Yt.cleanDragState(),xe==null||xe({event:pe,node:(0,ne.F)(ve)}),Yt.dragNodeProps=null,window.removeEventListener("dragend",Yt.onWindowDragEnd)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDrop",function(pe,ve){var xe,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ke=Yt.state,xn=Ke.dragChildrenKeys,_e=Ke.dropPosition,Zn=Ke.dropTargetKey,Fe=Ke.dropTargetPos,ze=Ke.dropAllowed;if(ze){var Je=Yt.props.onDrop;if(Yt.setState({dragOverNodeKey:null}),Yt.cleanDragState(),Zn!==null){var jn=(0,we.Z)((0,we.Z)({},(0,ne.H8)(Zn,Yt.getTreeNodeRequiredProps())),{},{active:((xe=Yt.getActiveItem())===null||xe===void 0?void 0:xe.key)===Zn,data:(0,bn.Z)(Yt.state.keyEntities,Zn).node}),Sn=xn.includes(Zn);(0,nt.ZP)(!Sn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mn=(0,cn.yx)(Fe),Hn={event:pe,node:(0,ne.F)(jn),dragNode:Yt.dragNodeProps?(0,ne.F)(Yt.dragNodeProps):null,dragNodesKeys:[Yt.dragNodeProps.eventKey].concat(xn),dropToGap:_e!==0,dropPosition:_e+Number(Mn[Mn.length-1])};Te||Je==null||Je(Hn),Yt.dragNodeProps=null}}}),(0,Vt.Z)((0,ie.Z)(Yt),"cleanDragState",function(){var pe=Yt.state.draggingNodeKey;pe!==null&&Yt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Yt.dragStartMousePosition=null,Yt.currentMouseOverDroppableNodeKey=null}),(0,Vt.Z)((0,ie.Z)(Yt),"triggerExpandActionExpand",function(pe,ve){var xe=Yt.state,Te=xe.expandedKeys,Ke=xe.flattenNodes,xn=ve.expanded,_e=ve.key,Zn=ve.isLeaf;if(!(Zn||pe.shiftKey||pe.metaKey||pe.ctrlKey)){var Fe=Ke.filter(function(Je){return Je.key===_e})[0],ze=(0,ne.F)((0,we.Z)((0,we.Z)({},(0,ne.H8)(_e,Yt.getTreeNodeRequiredProps())),{},{data:Fe.data}));Yt.setExpandedKeys(xn?(0,cn._5)(Te,_e):(0,cn.L0)(Te,_e)),Yt.onNodeExpand(pe,ze)}}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeClick",function(pe,ve){var xe=Yt.props,Te=xe.onClick,Ke=xe.expandAction;Ke==="click"&&Yt.triggerExpandActionExpand(pe,ve),Te==null||Te(pe,ve)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeDoubleClick",function(pe,ve){var xe=Yt.props,Te=xe.onDoubleClick,Ke=xe.expandAction;Ke==="doubleClick"&&Yt.triggerExpandActionExpand(pe,ve),Te==null||Te(pe,ve)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeSelect",function(pe,ve){var xe=Yt.state.selectedKeys,Te=Yt.state,Ke=Te.keyEntities,xn=Te.fieldNames,_e=Yt.props,Zn=_e.onSelect,Fe=_e.multiple,ze=ve.selected,Je=ve[xn.key],jn=!ze;jn?Fe?xe=(0,cn.L0)(xe,Je):xe=[Je]:xe=(0,cn._5)(xe,Je);var Sn=xe.map(function(Mn){var Hn=(0,bn.Z)(Ke,Mn);return Hn?Hn.node:null}).filter(Boolean);Yt.setUncontrolledState({selectedKeys:xe}),Zn==null||Zn(xe,{event:"select",selected:jn,node:ve,selectedNodes:Sn,nativeEvent:pe.nativeEvent})}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeCheck",function(pe,ve,xe){var Te=Yt.state,Ke=Te.keyEntities,xn=Te.checkedKeys,_e=Te.halfCheckedKeys,Zn=Yt.props,Fe=Zn.checkStrictly,ze=Zn.onCheck,Je=ve.key,jn,Sn={event:"check",node:ve,checked:xe,nativeEvent:pe.nativeEvent};if(Fe){var Mn=xe?(0,cn.L0)(xn,Je):(0,cn._5)(xn,Je),Hn=(0,cn._5)(_e,Je);jn={checked:Mn,halfChecked:Hn},Sn.checkedNodes=Mn.map(function(Wi){return(0,bn.Z)(Ke,Wi)}).filter(Boolean).map(function(Wi){return Wi.node}),Yt.setUncontrolledState({checkedKeys:Mn})}else{var yi=(0,le.S)([].concat((0,Ie.Z)(xn),[Je]),!0,Ke),Jn=yi.checkedKeys,xi=yi.halfCheckedKeys;if(!xe){var Vi=new Set(Jn);Vi.delete(Je);var Ii=(0,le.S)(Array.from(Vi),{checked:!1,halfCheckedKeys:xi},Ke);Jn=Ii.checkedKeys,xi=Ii.halfCheckedKeys}jn=Jn,Sn.checkedNodes=[],Sn.checkedNodesPositions=[],Sn.halfCheckedKeys=xi,Jn.forEach(function(Wi){var Ji=(0,bn.Z)(Ke,Wi);if(Ji){var er=Ji.node,ji=Ji.pos;Sn.checkedNodes.push(er),Sn.checkedNodesPositions.push({node:er,pos:ji})}}),Yt.setUncontrolledState({checkedKeys:Jn},!1,{halfCheckedKeys:xi})}ze==null||ze(jn,Sn)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeLoad",function(pe){var ve,xe=pe.key,Te=Yt.state.keyEntities,Ke=(0,bn.Z)(Te,xe);if(!(Ke!=null&&(ve=Ke.children)!==null&&ve!==void 0&&ve.length)){var xn=new Promise(function(_e,Zn){Yt.setState(function(Fe){var ze=Fe.loadedKeys,Je=ze===void 0?[]:ze,jn=Fe.loadingKeys,Sn=jn===void 0?[]:jn,Mn=Yt.props,Hn=Mn.loadData,yi=Mn.onLoad;if(!Hn||Je.includes(xe)||Sn.includes(xe))return null;var Jn=Hn(pe);return Jn.then(function(){var xi=Yt.state.loadedKeys,Vi=(0,cn.L0)(xi,xe);yi==null||yi(Vi,{event:"load",node:pe}),Yt.setUncontrolledState({loadedKeys:Vi}),Yt.setState(function(Ii){return{loadingKeys:(0,cn._5)(Ii.loadingKeys,xe)}}),_e()}).catch(function(xi){if(Yt.setState(function(Ii){return{loadingKeys:(0,cn._5)(Ii.loadingKeys,xe)}}),Yt.loadingRetryTimes[xe]=(Yt.loadingRetryTimes[xe]||0)+1,Yt.loadingRetryTimes[xe]>=hi){var Vi=Yt.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Yt.setUncontrolledState({loadedKeys:(0,cn.L0)(Vi,xe)}),_e()}Zn(xi)}),{loadingKeys:(0,cn.L0)(Sn,xe)}})});return xn.catch(function(){}),xn}}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeMouseEnter",function(pe,ve){var xe=Yt.props.onMouseEnter;xe==null||xe({event:pe,node:ve})}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeMouseLeave",function(pe,ve){var xe=Yt.props.onMouseLeave;xe==null||xe({event:pe,node:ve})}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeContextMenu",function(pe,ve){var xe=Yt.props.onRightClick;xe&&(pe.preventDefault(),xe({event:pe,node:ve}))}),(0,Vt.Z)((0,ie.Z)(Yt),"onFocus",function(){var pe=Yt.props.onFocus;Yt.setState({focused:!0});for(var ve=arguments.length,xe=new Array(ve),Te=0;Te<ve;Te++)xe[Te]=arguments[Te];pe==null||pe.apply(void 0,xe)}),(0,Vt.Z)((0,ie.Z)(Yt),"onBlur",function(){var pe=Yt.props.onBlur;Yt.setState({focused:!1}),Yt.onActiveChange(null);for(var ve=arguments.length,xe=new Array(ve),Te=0;Te<ve;Te++)xe[Te]=arguments[Te];pe==null||pe.apply(void 0,xe)}),(0,Vt.Z)((0,ie.Z)(Yt),"getTreeNodeRequiredProps",function(){var pe=Yt.state,ve=pe.expandedKeys,xe=pe.selectedKeys,Te=pe.loadedKeys,Ke=pe.loadingKeys,xn=pe.checkedKeys,_e=pe.halfCheckedKeys,Zn=pe.dragOverNodeKey,Fe=pe.dropPosition,ze=pe.keyEntities;return{expandedKeys:ve||[],selectedKeys:xe||[],loadedKeys:Te||[],loadingKeys:Ke||[],checkedKeys:xn||[],halfCheckedKeys:_e||[],dragOverNodeKey:Zn,dropPosition:Fe,keyEntities:ze}}),(0,Vt.Z)((0,ie.Z)(Yt),"setExpandedKeys",function(pe){var ve=Yt.state,xe=ve.treeData,Te=ve.fieldNames,Ke=(0,ne.oH)(xe,pe,Te);Yt.setUncontrolledState({expandedKeys:pe,flattenNodes:Ke},!0)}),(0,Vt.Z)((0,ie.Z)(Yt),"onNodeExpand",function(pe,ve){var xe=Yt.state.expandedKeys,Te=Yt.state,Ke=Te.listChanging,xn=Te.fieldNames,_e=Yt.props,Zn=_e.onExpand,Fe=_e.loadData,ze=ve.expanded,Je=ve[xn.key];if(!Ke){var jn=xe.includes(Je),Sn=!ze;if((0,nt.ZP)(ze&&jn||!ze&&!jn,"Expand state not sync with index check"),xe=Sn?(0,cn.L0)(xe,Je):(0,cn._5)(xe,Je),Yt.setExpandedKeys(xe),Zn==null||Zn(xe,{node:ve,expanded:Sn,nativeEvent:pe.nativeEvent}),Sn&&Fe){var Mn=Yt.onNodeLoad(ve);Mn&&Mn.then(function(){var Hn=(0,ne.oH)(Yt.state.treeData,xe,xn);Yt.setUncontrolledState({flattenNodes:Hn})}).catch(function(){var Hn=Yt.state.expandedKeys,yi=(0,cn._5)(Hn,Je);Yt.setExpandedKeys(yi)})}}}),(0,Vt.Z)((0,ie.Z)(Yt),"onListChangeStart",function(){Yt.setUncontrolledState({listChanging:!0})}),(0,Vt.Z)((0,ie.Z)(Yt),"onListChangeEnd",function(){setTimeout(function(){Yt.setUncontrolledState({listChanging:!1})})}),(0,Vt.Z)((0,ie.Z)(Yt),"onActiveChange",function(pe){var ve=Yt.state.activeKey,xe=Yt.props,Te=xe.onActiveChange,Ke=xe.itemScrollOffset,xn=Ke===void 0?0:Ke;ve!==pe&&(Yt.setState({activeKey:pe}),pe!==null&&Yt.scrollTo({key:pe,offset:xn}),Te==null||Te(pe))}),(0,Vt.Z)((0,ie.Z)(Yt),"getActiveItem",function(){var pe=Yt.state,ve=pe.activeKey,xe=pe.flattenNodes;return ve===null?null:xe.find(function(Te){var Ke=Te.key;return Ke===ve})||null}),(0,Vt.Z)((0,ie.Z)(Yt),"offsetActiveKey",function(pe){var ve=Yt.state,xe=ve.flattenNodes,Te=ve.activeKey,Ke=xe.findIndex(function(Zn){var Fe=Zn.key;return Fe===Te});Ke===-1&&pe<0&&(Ke=xe.length),Ke=(Ke+pe+xe.length)%xe.length;var xn=xe[Ke];if(xn){var _e=xn.key;Yt.onActiveChange(_e)}else Yt.onActiveChange(null)}),(0,Vt.Z)((0,ie.Z)(Yt),"onKeyDown",function(pe){var ve=Yt.state,xe=ve.activeKey,Te=ve.expandedKeys,Ke=ve.checkedKeys,xn=ve.fieldNames,_e=Yt.props,Zn=_e.onKeyDown,Fe=_e.checkable,ze=_e.selectable;switch(pe.which){case He.Z.UP:{Yt.offsetActiveKey(-1),pe.preventDefault();break}case He.Z.DOWN:{Yt.offsetActiveKey(1),pe.preventDefault();break}}var Je=Yt.getActiveItem();if(Je&&Je.data){var jn=Yt.getTreeNodeRequiredProps(),Sn=Je.data.isLeaf===!1||!!(Je.data[xn.children]||[]).length,Mn=(0,ne.F)((0,we.Z)((0,we.Z)({},(0,ne.H8)(xe,jn)),{},{data:Je.data,active:!0}));switch(pe.which){case He.Z.LEFT:{Sn&&Te.includes(xe)?Yt.onNodeExpand({},Mn):Je.parent&&Yt.onActiveChange(Je.parent.key),pe.preventDefault();break}case He.Z.RIGHT:{Sn&&!Te.includes(xe)?Yt.onNodeExpand({},Mn):Je.children&&Je.children.length&&Yt.onActiveChange(Je.children[0].key),pe.preventDefault();break}case He.Z.ENTER:case He.Z.SPACE:{Fe&&!Mn.disabled&&Mn.checkable!==!1&&!Mn.disableCheckbox?Yt.onNodeCheck({},Mn,!Ke.includes(xe)):!Fe&&ze&&!Mn.disabled&&Mn.selectable!==!1&&Yt.onNodeSelect({},Mn);break}}}Zn==null||Zn(pe)}),(0,Vt.Z)((0,ie.Z)(Yt),"setUncontrolledState",function(pe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Yt.destroyed){var Te=!1,Ke=!0,xn={};Object.keys(pe).forEach(function(_e){if(Yt.props.hasOwnProperty(_e)){Ke=!1;return}Te=!0,xn[_e]=pe[_e]}),Te&&(!ve||Ke)&&Yt.setState((0,we.Z)((0,we.Z)({},xn),xe))}}),(0,Vt.Z)((0,ie.Z)(Yt),"scrollTo",function(pe){Yt.listRef.current.scrollTo(pe)}),Yt}return(0,zt.Z)(At,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Me=this.props,be=Me.activeKey,We=Me.itemScrollOffset,pe=We===void 0?0:We;be!==void 0&&be!==this.state.activeKey&&(this.setState({activeKey:be}),be!==null&&this.scrollTo({key:be,offset:pe}))}},{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 Me=this.state,be=Me.focused,We=Me.flattenNodes,pe=Me.keyEntities,ve=Me.draggingNodeKey,xe=Me.activeKey,Te=Me.dropLevelOffset,Ke=Me.dropContainerKey,xn=Me.dropTargetKey,_e=Me.dropPosition,Zn=Me.dragOverNodeKey,Fe=Me.indent,ze=this.props,Je=ze.prefixCls,jn=ze.className,Sn=ze.style,Mn=ze.showLine,Hn=ze.focusable,yi=ze.tabIndex,Jn=yi===void 0?0:yi,xi=ze.selectable,Vi=ze.showIcon,Ii=ze.icon,Wi=ze.switcherIcon,Ji=ze.draggable,er=ze.checkable,ji=ze.checkStrictly,Ai=ze.disabled,nr=ze.motion,Ct=ze.loadData,li=ze.filterTreeNode,pi=ze.height,Yn=ze.itemHeight,ti=ze.scrollWidth,ri=ze.virtual,vi=ze.titleRender,Ri=ze.dropIndicatorRender,Ni=ze.onContextMenu,me=ze.onScroll,ue=ze.direction,ce=ze.rootClassName,zn=ze.rootStyle,Xn=(0,Bt.Z)(this.props,{aria:!0,data:!0}),ni;Ji&&((0,se.Z)(Ji)==="object"?ni=Ji:typeof Ji=="function"?ni={nodeDraggable:Ji}:ni={});var $e={prefixCls:Je,selectable:xi,showIcon:Vi,icon:Ii,switcherIcon:Wi,draggable:ni,draggingNodeKey:ve,checkable:er,checkStrictly:ji,disabled:Ai,keyEntities:pe,dropLevelOffset:Te,dropContainerKey:Ke,dropTargetKey:xn,dropPosition:_e,dragOverNodeKey:Zn,indent:Fe,direction:ue,dropIndicatorRender:Ri,loadData:Ct,filterTreeNode:li,titleRender:vi,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(ct.k.Provider,{value:$e},et.createElement("div",{className:te()(Je,jn,ce,(0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({},"".concat(Je,"-show-line"),Mn),"".concat(Je,"-focused"),be),"".concat(Je,"-active-focused"),xe!==null)),style:zn},et.createElement(Le,(0,Ft.Z)({ref:this.listRef,prefixCls:Je,style:Sn,data:We,disabled:Ai,selectable:xi,checkable:!!er,motion:nr,dragging:ve!==null,height:pi,itemHeight:Yn,virtual:ri,focusable:Hn,focused:be,tabIndex:Jn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ni,onScroll:me,scrollWidth:ti},this.getTreeNodeRequiredProps(),Xn))))}}],[{key:"getDerivedStateFromProps",value:function(Me,be){var We=be.prevProps,pe={prevProps:Me};function ve(Jn){return!We&&Me.hasOwnProperty(Jn)||We&&We[Jn]!==Me[Jn]}var xe,Te=be.fieldNames;if(ve("fieldNames")&&(Te=(0,ne.w$)(Me.fieldNames),pe.fieldNames=Te),ve("treeData")?xe=Me.treeData:ve("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,ne.zn)(Me.children)),xe){pe.treeData=xe;var Ke=(0,ne.I8)(xe,{fieldNames:Te});pe.keyEntities=(0,we.Z)((0,Vt.Z)({},Kt,pn),Ke.keyEntities)}var xn=pe.keyEntities||be.keyEntities;if(ve("expandedKeys")||We&&ve("autoExpandParent"))pe.expandedKeys=Me.autoExpandParent||!We&&Me.defaultExpandParent?(0,cn.r7)(Me.expandedKeys,xn):Me.expandedKeys;else if(!We&&Me.defaultExpandAll){var _e=(0,we.Z)({},xn);delete _e[Kt];var Zn=[];Object.keys(_e).forEach(function(Jn){var xi=_e[Jn];xi.children&&xi.children.length&&Zn.push(xi.key)}),pe.expandedKeys=Zn}else!We&&Me.defaultExpandedKeys&&(pe.expandedKeys=Me.autoExpandParent||Me.defaultExpandParent?(0,cn.r7)(Me.defaultExpandedKeys,xn):Me.defaultExpandedKeys);if(pe.expandedKeys||delete pe.expandedKeys,xe||pe.expandedKeys){var Fe=(0,ne.oH)(xe||be.treeData,pe.expandedKeys||be.expandedKeys,Te);pe.flattenNodes=Fe}if(Me.selectable&&(ve("selectedKeys")?pe.selectedKeys=(0,cn.BT)(Me.selectedKeys,Me):!We&&Me.defaultSelectedKeys&&(pe.selectedKeys=(0,cn.BT)(Me.defaultSelectedKeys,Me))),Me.checkable){var ze;if(ve("checkedKeys")?ze=(0,cn.E6)(Me.checkedKeys)||{}:!We&&Me.defaultCheckedKeys?ze=(0,cn.E6)(Me.defaultCheckedKeys)||{}:xe&&(ze=(0,cn.E6)(Me.checkedKeys)||{checkedKeys:be.checkedKeys,halfCheckedKeys:be.halfCheckedKeys}),ze){var Je=ze,jn=Je.checkedKeys,Sn=jn===void 0?[]:jn,Mn=Je.halfCheckedKeys,Hn=Mn===void 0?[]:Mn;if(!Me.checkStrictly){var yi=(0,le.S)(Sn,!0,xn);Sn=yi.checkedKeys,Hn=yi.halfCheckedKeys}pe.checkedKeys=Sn,pe.halfCheckedKeys=Hn}}return ve("loadedKeys")&&(pe.loadedKeys=Me.loadedKeys),pe}}]),At}(et.Component);(0,Vt.Z)(Ot,"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,Vt.Z)(Ot,"TreeNode",Jt.Z);var Pt=Ot,St=Pt},82661:function(Cn,_n,Nt){"use strict";Nt.d(_n,{BT:function(){return et},E6:function(){return pt},L0:function(){return Vt},OM:function(){return nt},_5:function(){return he},r7:function(){return vt},wA:function(){return te},yx:function(){return qe}});var Ft=Nt(95190),se=Nt(93664),we=Nt(48736),Ie=Nt(59301),ge=Nt(639),zt=Nt(65065),ie=Nt(34061),Re=null;function he(xt,Et){if(!xt)return[];var Tt=xt.slice(),jt=Tt.indexOf(Et);return jt>=0&&Tt.splice(jt,1),Tt}function Vt(xt,Et){var Tt=(xt||[]).slice();return Tt.indexOf(Et)===-1&&Tt.push(Et),Tt}function qe(xt){return xt.split("-")}function te(xt,Et){var Tt=[],jt=(0,zt.Z)(Et,xt);function _t(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Jt.forEach(function(Ut){var fe=Ut.key,ne=Ut.children;Tt.push(fe),_t(ne)})}return _t(jt.children),Tt}function He(xt){if(xt.parent){var Et=qe(xt.pos);return Number(Et[Et.length-1])===xt.parent.children.length-1}return!1}function Bt(xt){var Et=qe(xt.pos);return Number(Et[Et.length-1])===0}function nt(xt,Et,Tt,jt,_t,Jt,Ut,fe,ne,Ne){var Ge,Ye=xt.clientX,Ln=xt.clientY,hn=xt.target.getBoundingClientRect(),Be=hn.top,sn=hn.height,ee=(Ne==="rtl"?-1:1)*(((_t==null?void 0:_t.x)||0)-Ye),Kt=(ee-12)/jt,Oe=ne.filter(function(St){var kt;return(kt=fe[St])===null||kt===void 0||(kt=kt.children)===null||kt===void 0?void 0:kt.length}),pn=(0,zt.Z)(fe,Tt.eventKey);if(Ln<Be+sn/2){var mn=Ut.findIndex(function(St){return St.key===pn.key}),Ae=mn<=0?0:mn-1,Qe=Ut[Ae].key;pn=(0,zt.Z)(fe,Qe)}var ln=pn.key,Vn=pn,Le=pn.key,cn=0,le=0;if(!Oe.includes(ln))for(var bn=0;bn<Kt&&He(pn);bn+=1)pn=pn.parent,le+=1;var hi=Et.data,Ot=pn.node,Pt=!0;return Bt(pn)&&pn.level===0&&Ln<Be+sn/2&&Jt({dragNode:hi,dropNode:Ot,dropPosition:-1})&&pn.key===Tt.eventKey?cn=-1:(Vn.children||[]).length&&Oe.includes(Le)?Jt({dragNode:hi,dropNode:Ot,dropPosition:0})?cn=0:Pt=!1:le===0?Kt>-1.5?Jt({dragNode:hi,dropNode:Ot,dropPosition:1})?cn=1:Pt=!1:Jt({dragNode:hi,dropNode:Ot,dropPosition:0})?cn=0:Jt({dragNode:hi,dropNode:Ot,dropPosition:1})?cn=1:Pt=!1:Jt({dragNode:hi,dropNode:Ot,dropPosition:1})?cn=1:Pt=!1,{dropPosition:cn,dropLevelOffset:le,dropTargetKey:pn.key,dropTargetPos:pn.pos,dragOverNodeKey:Le,dropContainerKey:cn===0?null:((Ge=pn.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:Pt}}function et(xt,Et){if(xt){var Tt=Et.multiple;return Tt?xt.slice():xt.length?[xt[0]]:xt}}var ct=function(Et){return Et};function lt(xt,Et){if(!xt)return[];var Tt=Et||{},jt=Tt.processProps,_t=jt===void 0?ct:jt,Jt=Array.isArray(xt)?xt:[xt];return Jt.map(function(Ut){var fe=Ut.children,ne=_objectWithoutProperties(Ut,Re),Ne=lt(fe,Et);return React.createElement(TreeNode,_extends({key:ne.key},_t(ne)),Ne)})}function pt(xt){if(!xt)return null;var Et;if(Array.isArray(xt))Et={checkedKeys:xt,halfCheckedKeys:void 0};else if((0,se.Z)(xt)==="object")Et={checkedKeys:xt.checked||void 0,halfCheckedKeys:xt.halfChecked||void 0};else return(0,we.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Et}function vt(xt,Et){var Tt=new Set;function jt(_t){if(!Tt.has(_t)){var Jt=(0,zt.Z)(Et,_t);if(Jt){Tt.add(_t);var Ut=Jt.parent,fe=Jt.node;fe.disabled||Ut&&jt(Ut.key)}}}return(xt||[]).forEach(function(_t){jt(_t)}),(0,Ft.Z)(Tt)}},34643:function(Cn,_n,Nt){"use strict";Nt.d(_n,{S:function(){return ie}});var Ft=Nt(48736),se=Nt(65065);function we(Re,he){var Vt=new Set;return Re.forEach(function(qe){he.has(qe)||Vt.add(qe)}),Vt}function Ie(Re){var he=Re||{},Vt=he.disabled,qe=he.disableCheckbox,te=he.checkable;return!!(Vt||qe)||te===!1}function ge(Re,he,Vt,qe){for(var te=new Set(Re),He=new Set,Bt=0;Bt<=Vt;Bt+=1){var nt=he.get(Bt)||new Set;nt.forEach(function(pt){var vt=pt.key,xt=pt.node,Et=pt.children,Tt=Et===void 0?[]:Et;te.has(vt)&&!qe(xt)&&Tt.filter(function(jt){return!qe(jt.node)}).forEach(function(jt){te.add(jt.key)})})}for(var et=new Set,ct=Vt;ct>=0;ct-=1){var lt=he.get(ct)||new Set;lt.forEach(function(pt){var vt=pt.parent,xt=pt.node;if(!(qe(xt)||!pt.parent||et.has(pt.parent.key))){if(qe(pt.parent.node)){et.add(vt.key);return}var Et=!0,Tt=!1;(vt.children||[]).filter(function(jt){return!qe(jt.node)}).forEach(function(jt){var _t=jt.key,Jt=te.has(_t);Et&&!Jt&&(Et=!1),!Tt&&(Jt||He.has(_t))&&(Tt=!0)}),Et&&te.add(vt.key),Tt&&He.add(vt.key),et.add(vt.key)}})}return{checkedKeys:Array.from(te),halfCheckedKeys:Array.from(we(He,te))}}function zt(Re,he,Vt,qe,te){for(var He=new Set(Re),Bt=new Set(he),nt=0;nt<=qe;nt+=1){var et=Vt.get(nt)||new Set;et.forEach(function(vt){var xt=vt.key,Et=vt.node,Tt=vt.children,jt=Tt===void 0?[]:Tt;!He.has(xt)&&!Bt.has(xt)&&!te(Et)&&jt.filter(function(_t){return!te(_t.node)}).forEach(function(_t){He.delete(_t.key)})})}Bt=new Set;for(var ct=new Set,lt=qe;lt>=0;lt-=1){var pt=Vt.get(lt)||new Set;pt.forEach(function(vt){var xt=vt.parent,Et=vt.node;if(!(te(Et)||!vt.parent||ct.has(vt.parent.key))){if(te(vt.parent.node)){ct.add(xt.key);return}var Tt=!0,jt=!1;(xt.children||[]).filter(function(_t){return!te(_t.node)}).forEach(function(_t){var Jt=_t.key,Ut=He.has(Jt);Tt&&!Ut&&(Tt=!1),!jt&&(Ut||Bt.has(Jt))&&(jt=!0)}),Tt||He.delete(xt.key),jt&&Bt.add(xt.key),ct.add(xt.key)}})}return{checkedKeys:Array.from(He),halfCheckedKeys:Array.from(we(Bt,He))}}function ie(Re,he,Vt,qe){var te=[],He;qe?He=qe:He=Ie;var Bt=new Set(Re.filter(function(lt){var pt=!!(0,se.Z)(Vt,lt);return pt||te.push(lt),pt})),nt=new Map,et=0;Object.keys(Vt).forEach(function(lt){var pt=Vt[lt],vt=pt.level,xt=nt.get(vt);xt||(xt=new Set,nt.set(vt,xt)),xt.add(pt),et=Math.max(et,vt)}),(0,Ft.ZP)(!te.length,"Tree missing follow keys: ".concat(te.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ct;return he===!0?ct=ge(Bt,nt,et,He):ct=zt(Bt,he.halfCheckedKeys,nt,et,He),ct}},65065:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Ft}});function Ft(se,we){return se[we]}},34061:function(Cn,_n,Nt){"use strict";Nt.d(_n,{F:function(){return vt},H8:function(){return pt},I8:function(){return lt},km:function(){return te},oH:function(){return et},w$:function(){return He},zn:function(){return nt}});var Ft=Nt(93664),se=Nt(95190),we=Nt(20439),Ie=Nt(62646),ge=Nt(11592),zt=Nt(2738),ie=Nt(48736),Re=Nt(65065),he=["children"];function Vt(xt,Et){return"".concat(xt,"-").concat(Et)}function qe(xt){return xt&&xt.type&&xt.type.isTreeNode}function te(xt,Et){return xt!=null?xt:Et}function He(xt){var Et=xt||{},Tt=Et.title,jt=Et._title,_t=Et.key,Jt=Et.children,Ut=Tt||"title";return{title:Ut,_title:jt||[Ut],key:_t||"key",children:Jt||"children"}}function Bt(xt,Et){var Tt=new Map;function jt(_t){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_t||[]).forEach(function(Ut){var fe=Ut[Et.key],ne=Ut[Et.children];warning(fe!=null,"Tree node must have a certain key: [".concat(Jt).concat(fe,"]"));var Ne=String(fe);warning(!Tt.has(Ne)||fe===null||fe===void 0,"Same 'key' exist in the Tree: ".concat(Ne)),Tt.set(Ne,!0),jt(ne,"".concat(Jt).concat(Ne," > "))})}jt(xt)}function nt(xt){function Et(Tt){var jt=(0,ge.Z)(Tt);return jt.map(function(_t){if(!qe(_t))return(0,ie.ZP)(!_t,"Tree/TreeNode can only accept TreeNode as children."),null;var Jt=_t.key,Ut=_t.props,fe=Ut.children,ne=(0,Ie.Z)(Ut,he),Ne=(0,we.Z)({key:Jt},ne),Ge=Et(fe);return Ge.length&&(Ne.children=Ge),Ne}).filter(function(_t){return _t})}return Et(xt)}function et(xt,Et,Tt){var jt=He(Tt),_t=jt._title,Jt=jt.key,Ut=jt.children,fe=new Set(Et===!0?[]:Et),ne=[];function Ne(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ge.map(function(Ln,hn){for(var Be=Vt(Ye?Ye.pos:"0",hn),sn=te(Ln[Jt],Be),ee,Kt=0;Kt<_t.length;Kt+=1){var Oe=_t[Kt];if(Ln[Oe]!==void 0){ee=Ln[Oe];break}}var pn=Object.assign((0,zt.Z)(Ln,[].concat((0,se.Z)(_t),[Jt,Ut])),{title:ee,key:sn,parent:Ye,pos:Be,children:null,data:Ln,isStart:[].concat((0,se.Z)(Ye?Ye.isStart:[]),[hn===0]),isEnd:[].concat((0,se.Z)(Ye?Ye.isEnd:[]),[hn===Ge.length-1])});return ne.push(pn),Et===!0||fe.has(sn)?pn.children=Ne(Ln[Ut]||[],pn):pn.children=[],pn})}return Ne(xt),ne}function ct(xt,Et,Tt){var jt={};(0,Ft.Z)(Tt)==="object"?jt=Tt:jt={externalGetKey:Tt},jt=jt||{};var _t=jt,Jt=_t.childrenPropName,Ut=_t.externalGetKey,fe=_t.fieldNames,ne=He(fe),Ne=ne.key,Ge=ne.children,Ye=Jt||Ge,Ln;Ut?typeof Ut=="string"?Ln=function(sn){return sn[Ut]}:typeof Ut=="function"&&(Ln=function(sn){return Ut(sn)}):Ln=function(sn,ee){return te(sn[Ne],ee)};function hn(Be,sn,ee,Kt){var Oe=Be?Be[Ye]:xt,pn=Be?Vt(ee.pos,sn):"0",mn=Be?[].concat((0,se.Z)(Kt),[Be]):[];if(Be){var Ae=Ln(Be,pn),Qe={node:Be,index:sn,pos:pn,key:Ae,parentPos:ee.node?ee.pos:null,level:ee.level+1,nodes:mn};Et(Qe)}Oe&&Oe.forEach(function(ln,Vn){hn(ln,Vn,{node:Be,pos:pn,level:ee?ee.level+1:-1},mn)})}hn(null)}function lt(xt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=Et.initWrapper,jt=Et.processEntity,_t=Et.onProcessFinished,Jt=Et.externalGetKey,Ut=Et.childrenPropName,fe=Et.fieldNames,ne=arguments.length>2?arguments[2]:void 0,Ne=Jt||ne,Ge={},Ye={},Ln={posEntities:Ge,keyEntities:Ye};return Tt&&(Ln=Tt(Ln)||Ln),ct(xt,function(hn){var Be=hn.node,sn=hn.index,ee=hn.pos,Kt=hn.key,Oe=hn.parentPos,pn=hn.level,mn=hn.nodes,Ae={node:Be,nodes:mn,index:sn,key:Kt,pos:ee,level:pn},Qe=te(Kt,ee);Ge[ee]=Ae,Ye[Qe]=Ae,Ae.parent=Ge[Oe],Ae.parent&&(Ae.parent.children=Ae.parent.children||[],Ae.parent.children.push(Ae)),jt&&jt(Ae,Ln)},{externalGetKey:Ne,childrenPropName:Ut,fieldNames:fe}),_t&&_t(Ln),Ln}function pt(xt,Et){var Tt=Et.expandedKeys,jt=Et.selectedKeys,_t=Et.loadedKeys,Jt=Et.loadingKeys,Ut=Et.checkedKeys,fe=Et.halfCheckedKeys,ne=Et.dragOverNodeKey,Ne=Et.dropPosition,Ge=Et.keyEntities,Ye=(0,Re.Z)(Ge,xt),Ln={eventKey:xt,expanded:Tt.indexOf(xt)!==-1,selected:jt.indexOf(xt)!==-1,loaded:_t.indexOf(xt)!==-1,loading:Jt.indexOf(xt)!==-1,checked:Ut.indexOf(xt)!==-1,halfChecked:fe.indexOf(xt)!==-1,pos:String(Ye?Ye.pos:""),dragOver:ne===xt&&Ne===0,dragOverGapTop:ne===xt&&Ne===-1,dragOverGapBottom:ne===xt&&Ne===1};return Ln}function vt(xt){var Et=xt.data,Tt=xt.expanded,jt=xt.selected,_t=xt.checked,Jt=xt.loaded,Ut=xt.loading,fe=xt.halfChecked,ne=xt.dragOver,Ne=xt.dragOverGapTop,Ge=xt.dragOverGapBottom,Ye=xt.pos,Ln=xt.active,hn=xt.eventKey,Be=(0,we.Z)((0,we.Z)({},Et),{},{expanded:Tt,selected:jt,checked:_t,loaded:Jt,loading:Ut,halfChecked:fe,dragOver:ne,dragOverGapTop:Ne,dragOverGapBottom:Ge,pos:Ye,active:Ln,key:hn});return"props"in Be||Object.defineProperty(Be,"props",{get:function(){return(0,ie.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xt}}),Be}},90472:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return hn}});var Ft=Nt(14809),se=Nt(99153),we=Nt(84851),Ie=Nt(13028),ge=Nt(19257),zt=Nt(93046),ie=Nt(4635),Re=Nt(59301),he=Nt(20439),Vt=Nt(62646),qe=Nt(93664),te=Nt(70539),He=Nt(95764),Bt=Nt(95190),nt=Nt(92310),et=Nt.n(nt),ct=Nt(26112),lt=Nt(48736),pt=function(Be,sn){if(Be&&sn){var ee=Array.isArray(sn)?sn:sn.split(","),Kt=Be.name||"",Oe=Be.type||"",pn=Oe.replace(/\/.*$/,"");return ee.some(function(mn){var Ae=mn.trim();if(/^\*(\/\*)?$/.test(mn))return!0;if(Ae.charAt(0)==="."){var Qe=Kt.toLowerCase(),ln=Ae.toLowerCase(),Vn=[ln];return(ln===".jpg"||ln===".jpeg")&&(Vn=[".jpg",".jpeg"]),Vn.some(function(Le){return Qe.endsWith(Le)})}return/\/\*$/.test(Ae)?pn===Ae.replace(/\/.*$/,""):Oe===Ae?!0:/^\w+$/.test(Ae)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ae,"'.Skip for check.")),!0):!1})}return!0};function vt(Be,sn){var ee="cannot ".concat(Be.method," ").concat(Be.action," ").concat(sn.status,"'"),Kt=new Error(ee);return Kt.status=sn.status,Kt.method=Be.method,Kt.url=Be.action,Kt}function xt(Be){var sn=Be.responseText||Be.response;if(!sn)return sn;try{return JSON.parse(sn)}catch(ee){return sn}}function Et(Be){var sn=new XMLHttpRequest;Be.onProgress&&sn.upload&&(sn.upload.onprogress=function(pn){pn.total>0&&(pn.percent=pn.loaded/pn.total*100),Be.onProgress(pn)});var ee=new FormData;Be.data&&Object.keys(Be.data).forEach(function(Oe){var pn=Be.data[Oe];if(Array.isArray(pn)){pn.forEach(function(mn){ee.append("".concat(Oe,"[]"),mn)});return}ee.append(Oe,pn)}),Be.file instanceof Blob?ee.append(Be.filename,Be.file,Be.file.name):ee.append(Be.filename,Be.file),sn.onerror=function(pn){Be.onError(pn)},sn.onload=function(){return sn.status<200||sn.status>=300?Be.onError(vt(Be,sn),xt(sn)):Be.onSuccess(xt(sn),sn)},sn.open(Be.method,Be.action,!0),Be.withCredentials&&"withCredentials"in sn&&(sn.withCredentials=!0);var Kt=Be.headers||{};return Kt["X-Requested-With"]!==null&&sn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Kt).forEach(function(Oe){Kt[Oe]!==null&&sn.setRequestHeader(Oe,Kt[Oe])}),sn.send(ee),{abort:function(){sn.abort()}}}var Tt=function(){var Be=(0,He.Z)((0,te.Z)().mark(function sn(ee,Kt){var Oe,pn,mn,Ae,Qe,ln,Vn,Le;return(0,te.Z)().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:ln=function(){return ln=(0,He.Z)((0,te.Z)().mark(function hi(Ot){return(0,te.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.abrupt("return",new Promise(function(kt){Ot.file(function(Rt){Kt(Rt)?(Ot.fullPath&&!Rt.webkitRelativePath&&(Object.defineProperties(Rt,{webkitRelativePath:{writable:!0}}),Rt.webkitRelativePath=Ot.fullPath.replace(/^\//,""),Object.defineProperties(Rt,{webkitRelativePath:{writable:!1}})),kt(Rt)):kt(null)})}));case 1:case"end":return St.stop()}},hi)})),ln.apply(this,arguments)},Qe=function(hi){return ln.apply(this,arguments)},Ae=function(){return Ae=(0,He.Z)((0,te.Z)().mark(function hi(Ot){var Pt,St,kt,Rt,At;return(0,te.Z)().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:Pt=Ot.createReader(),St=[];case 2:return Me.next=5,new Promise(function(be){Pt.readEntries(be,function(){return be([])})});case 5:if(kt=Me.sent,Rt=kt.length,Rt){Me.next=9;break}return Me.abrupt("break",12);case 9:for(At=0;At<Rt;At++)St.push(kt[At]);Me.next=2;break;case 12:return Me.abrupt("return",St);case 13:case"end":return Me.stop()}},hi)})),Ae.apply(this,arguments)},mn=function(hi){return Ae.apply(this,arguments)},Oe=[],pn=[],ee.forEach(function(bn){return pn.push(bn.webkitGetAsEntry())}),Vn=function(){var bn=(0,He.Z)((0,te.Z)().mark(function hi(Ot,Pt){var St,kt;return(0,te.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(Ot){At.next=2;break}return At.abrupt("return");case 2:if(Ot.path=Pt||"",!Ot.isFile){At.next=10;break}return At.next=6,Qe(Ot);case 6:St=At.sent,St&&Oe.push(St),At.next=15;break;case 10:if(!Ot.isDirectory){At.next=15;break}return At.next=13,mn(Ot);case 13:kt=At.sent,pn.push.apply(pn,(0,Bt.Z)(kt));case 15:case"end":return At.stop()}},hi)}));return function(Ot,Pt){return bn.apply(this,arguments)}}(),Le=0;case 9:if(!(Le<pn.length)){le.next=15;break}return le.next=12,Vn(pn[Le]);case 12:Le++,le.next=9;break;case 15:return le.abrupt("return",Oe);case 16:case"end":return le.stop()}},sn)}));return function(ee,Kt){return Be.apply(this,arguments)}}(),jt=Tt,_t=+new Date,Jt=0;function Ut(){return"rc-upload-".concat(_t,"-").concat(++Jt)}var fe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ne=function(Be){(0,ge.Z)(ee,Be);var sn=(0,zt.Z)(ee);function ee(){var Kt;(0,se.Z)(this,ee);for(var Oe=arguments.length,pn=new Array(Oe),mn=0;mn<Oe;mn++)pn[mn]=arguments[mn];return Kt=sn.call.apply(sn,[this].concat(pn)),(0,ie.Z)((0,Ie.Z)(Kt),"state",{uid:Ut()}),(0,ie.Z)((0,Ie.Z)(Kt),"reqs",{}),(0,ie.Z)((0,Ie.Z)(Kt),"fileInput",void 0),(0,ie.Z)((0,Ie.Z)(Kt),"_isMounted",void 0),(0,ie.Z)((0,Ie.Z)(Kt),"onChange",function(Ae){var Qe=Kt.props,ln=Qe.accept,Vn=Qe.directory,Le=Ae.target.files,cn=(0,Bt.Z)(Le).filter(function(le){return!Vn||pt(le,ln)});Kt.uploadFiles(cn),Kt.reset()}),(0,ie.Z)((0,Ie.Z)(Kt),"onClick",function(Ae){var Qe=Kt.fileInput;if(Qe){var ln=Ae.target,Vn=Kt.props.onClick;if(ln&&ln.tagName==="BUTTON"){var Le=Qe.parentNode;Le.focus(),ln.blur()}Qe.click(),Vn&&Vn(Ae)}}),(0,ie.Z)((0,Ie.Z)(Kt),"onKeyDown",function(Ae){Ae.key==="Enter"&&Kt.onClick(Ae)}),(0,ie.Z)((0,Ie.Z)(Kt),"onFileDrop",function(){var Ae=(0,He.Z)((0,te.Z)().mark(function Qe(ln){var Vn,Le,cn;return(0,te.Z)().wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(Vn=Kt.props.multiple,ln.preventDefault(),ln.type!=="dragover"){bn.next=4;break}return bn.abrupt("return");case 4:if(!Kt.props.directory){bn.next=11;break}return bn.next=7,jt(Array.prototype.slice.call(ln.dataTransfer.items),function(hi){return pt(hi,Kt.props.accept)});case 7:Le=bn.sent,Kt.uploadFiles(Le),bn.next=14;break;case 11:cn=(0,Bt.Z)(ln.dataTransfer.files).filter(function(hi){return pt(hi,Kt.props.accept)}),Vn===!1&&(cn=cn.slice(0,1)),Kt.uploadFiles(cn);case 14:case"end":return bn.stop()}},Qe)}));return function(Qe){return Ae.apply(this,arguments)}}()),(0,ie.Z)((0,Ie.Z)(Kt),"uploadFiles",function(Ae){var Qe=(0,Bt.Z)(Ae),ln=Qe.map(function(Vn){return Vn.uid=Ut(),Kt.processFile(Vn,Qe)});Promise.all(ln).then(function(Vn){var Le=Kt.props.onBatchStart;Le==null||Le(Vn.map(function(cn){var le=cn.origin,bn=cn.parsedFile;return{file:le,parsedFile:bn}})),Vn.filter(function(cn){return cn.parsedFile!==null}).forEach(function(cn){Kt.post(cn)})})}),(0,ie.Z)((0,Ie.Z)(Kt),"processFile",function(){var Ae=(0,He.Z)((0,te.Z)().mark(function Qe(ln,Vn){var Le,cn,le,bn,hi,Ot,Pt,St,kt;return(0,te.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(Le=Kt.props.beforeUpload,cn=ln,!Le){At.next=14;break}return At.prev=3,At.next=6,Le(ln,Vn);case 6:cn=At.sent,At.next=12;break;case 9:At.prev=9,At.t0=At.catch(3),cn=!1;case 12:if(cn!==!1){At.next=14;break}return At.abrupt("return",{origin:ln,parsedFile:null,action:null,data:null});case 14:if(le=Kt.props.action,typeof le!="function"){At.next=21;break}return At.next=18,le(ln);case 18:bn=At.sent,At.next=22;break;case 21:bn=le;case 22:if(hi=Kt.props.data,typeof hi!="function"){At.next=29;break}return At.next=26,hi(ln);case 26:Ot=At.sent,At.next=30;break;case 29:Ot=hi;case 30:return Pt=((0,qe.Z)(cn)==="object"||typeof cn=="string")&&cn?cn:ln,Pt instanceof File?St=Pt:St=new File([Pt],ln.name,{type:ln.type}),kt=St,kt.uid=ln.uid,At.abrupt("return",{origin:ln,data:Ot,parsedFile:kt,action:bn});case 35:case"end":return At.stop()}},Qe,null,[[3,9]])}));return function(Qe,ln){return Ae.apply(this,arguments)}}()),(0,ie.Z)((0,Ie.Z)(Kt),"saveFileInput",function(Ae){Kt.fileInput=Ae}),Kt}return(0,we.Z)(ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Oe){var pn=this,mn=Oe.data,Ae=Oe.origin,Qe=Oe.action,ln=Oe.parsedFile;if(this._isMounted){var Vn=this.props,Le=Vn.onStart,cn=Vn.customRequest,le=Vn.name,bn=Vn.headers,hi=Vn.withCredentials,Ot=Vn.method,Pt=Ae.uid,St=cn||Et,kt={action:Qe,filename:le,data:mn,file:ln,headers:bn,withCredentials:hi,method:Ot||"post",onProgress:function(At){var Yt=pn.props.onProgress;Yt==null||Yt(At,ln)},onSuccess:function(At,Yt){var Me=pn.props.onSuccess;Me==null||Me(At,ln,Yt),delete pn.reqs[Pt]},onError:function(At,Yt){var Me=pn.props.onError;Me==null||Me(At,Yt,ln),delete pn.reqs[Pt]}};Le(Ae),this.reqs[Pt]=St(kt)}}},{key:"reset",value:function(){this.setState({uid:Ut()})}},{key:"abort",value:function(Oe){var pn=this.reqs;if(Oe){var mn=Oe.uid?Oe.uid:Oe;pn[mn]&&pn[mn].abort&&pn[mn].abort(),delete pn[mn]}else Object.keys(pn).forEach(function(Ae){pn[Ae]&&pn[Ae].abort&&pn[Ae].abort(),delete pn[Ae]})}},{key:"render",value:function(){var Oe=this.props,pn=Oe.component,mn=Oe.prefixCls,Ae=Oe.className,Qe=Oe.classNames,ln=Qe===void 0?{}:Qe,Vn=Oe.disabled,Le=Oe.id,cn=Oe.name,le=Oe.style,bn=Oe.styles,hi=bn===void 0?{}:bn,Ot=Oe.multiple,Pt=Oe.accept,St=Oe.capture,kt=Oe.children,Rt=Oe.directory,At=Oe.openFileDialogOnClick,Yt=Oe.onMouseEnter,Me=Oe.onMouseLeave,be=Oe.hasControlInside,We=(0,Vt.Z)(Oe,fe),pe=et()((0,ie.Z)((0,ie.Z)((0,ie.Z)({},mn,!0),"".concat(mn,"-disabled"),Vn),Ae,Ae)),ve=Rt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},xe=Vn?{}:{onClick:At?this.onClick:function(){},onKeyDown:At?this.onKeyDown:function(){},onMouseEnter:Yt,onMouseLeave:Me,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:be?void 0:"0"};return Re.createElement(pn,(0,Ft.Z)({},xe,{className:pe,role:be?void 0:"button",style:le}),Re.createElement("input",(0,Ft.Z)({},(0,ct.Z)(We,{aria:!0,data:!0}),{id:Le,name:cn,disabled:Vn,type:"file",ref:this.saveFileInput,onClick:function(Ke){return Ke.stopPropagation()},key:this.state.uid,style:(0,he.Z)({display:"none"},hi.input),className:ln.input,accept:Pt},ve,{multiple:Ot,onChange:this.onChange},St!=null?{capture:St}:{})),kt)}}]),ee}(Re.Component),Ne=ne;function Ge(){}var Ye=function(Be){(0,ge.Z)(ee,Be);var sn=(0,zt.Z)(ee);function ee(){var Kt;(0,se.Z)(this,ee);for(var Oe=arguments.length,pn=new Array(Oe),mn=0;mn<Oe;mn++)pn[mn]=arguments[mn];return Kt=sn.call.apply(sn,[this].concat(pn)),(0,ie.Z)((0,Ie.Z)(Kt),"uploader",void 0),(0,ie.Z)((0,Ie.Z)(Kt),"saveUploader",function(Ae){Kt.uploader=Ae}),Kt}return(0,we.Z)(ee,[{key:"abort",value:function(Oe){this.uploader.abort(Oe)}},{key:"render",value:function(){return Re.createElement(Ne,(0,Ft.Z)({},this.props,{ref:this.saveUploader}))}}]),ee}(Re.Component);(0,ie.Z)(Ye,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ge,onError:Ge,onSuccess:Ge,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ln=Ye,hn=Ln},8224:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return se}});var Ft=Nt(4676);function se(we,Ie,ge,zt){var ie=Ft.unstable_batchedUpdates?function(he){Ft.unstable_batchedUpdates(ge,he)}:ge;return we!=null&&we.addEventListener&&we.addEventListener(Ie,ie,zt),{remove:function(){we!=null&&we.removeEventListener&&we.removeEventListener(Ie,ie,zt)}}}},24514:function(Cn,_n,Nt){"use strict";Nt.d(_n,{G:function(){return Ie}});var Ft=Nt(47273),se=function(zt){if((0,Ft.Z)()&&window.document.documentElement){var ie=Array.isArray(zt)?zt:[zt],Re=window.document.documentElement;return ie.some(function(he){return he in Re.style})}return!1},we=function(zt,ie){if(!se(zt))return!1;var Re=document.createElement("div"),he=Re.style[zt];return Re.style[zt]=ie,Re.style[zt]!==he};function Ie(ge,zt){return!Array.isArray(ge)&&zt!==void 0?we(ge,zt):se(ge)}},65283:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return hi}});var Ft=Nt(14809),se=Nt(93664),we=Nt(20439),Ie=Nt(4635),ge=Nt(50298),zt=Nt(62646),ie=Nt(92310),Re=Nt.n(ie),he=Nt(29301),Vt=Nt(70425),qe=Nt(34280),te=Nt(59301),He=Nt(4676),Bt=te.forwardRef(function(Ot,Pt){var St=Ot.height,kt=Ot.offsetY,Rt=Ot.offsetX,At=Ot.children,Yt=Ot.prefixCls,Me=Ot.onInnerResize,be=Ot.innerProps,We=Ot.rtl,pe=Ot.extra,ve={},xe={display:"flex",flexDirection:"column"};return kt!==void 0&&(ve={height:St,position:"relative",overflow:"hidden"},xe=(0,we.Z)((0,we.Z)({},xe),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(kt,"px)")},We?"marginRight":"marginLeft",-Rt),"position","absolute"),"left",0),"right",0),"top",0))),te.createElement("div",{style:ve},te.createElement(he.Z,{onResize:function(Ke){var xn=Ke.offsetHeight;xn&&Me&&Me()}},te.createElement("div",(0,Ft.Z)({style:xe,className:Re()((0,Ie.Z)({},"".concat(Yt,"-holder-inner"),Yt)),ref:Pt},be),At,pe)))});Bt.displayName="Filler";var nt=Bt;function et(Ot){var Pt=Ot.children,St=Ot.setRef,kt=te.useCallback(function(Rt){St(Rt)},[]);return te.cloneElement(Pt,{ref:kt})}function ct(Ot,Pt,St,kt,Rt,At,Yt,Me){var be=Me.getKey;return Ot.slice(Pt,St+1).map(function(We,pe){var ve=Pt+pe,xe=Yt(We,ve,{style:{width:kt},offsetX:Rt}),Te=be(We);return te.createElement(et,{key:Te,setRef:function(xn){return At(We,xn)}},xe)})}function lt(Ot,Pt,St,kt){var Rt=St-Ot,At=Pt-St,Yt=Math.min(Rt,At)*2;if(kt<=Yt){var Me=Math.floor(kt/2);return kt%2?St+Me+1:St-Me}return Rt>At?St-(kt-At):St+(kt-Rt)}function pt(Ot,Pt,St){var kt=Ot.length,Rt=Pt.length,At,Yt;if(kt===0&&Rt===0)return null;kt<Rt?(At=Ot,Yt=Pt):(At=Pt,Yt=Ot);var Me={__EMPTY_ITEM__:!0};function be(Ke){return Ke!==void 0?St(Ke):Me}for(var We=null,pe=Math.abs(kt-Rt)!==1,ve=0;ve<Yt.length;ve+=1){var xe=be(At[ve]),Te=be(Yt[ve]);if(xe!==Te){We=ve,pe=pe||xe!==be(Yt[ve+1]);break}}return We===null?null:{index:We,multiple:pe}}function vt(Ot,Pt,St){var kt=te.useState(Ot),Rt=(0,ge.Z)(kt,2),At=Rt[0],Yt=Rt[1],Me=te.useState(null),be=(0,ge.Z)(Me,2),We=be[0],pe=be[1];return te.useEffect(function(){var ve=pt(At||[],Ot||[],Pt);(ve==null?void 0:ve.index)!==void 0&&(St==null||St(ve.index),pe(Ot[ve.index])),Yt(Ot)},[Ot]),[We]}var xt=Nt(16089),Et=(typeof navigator=="undefined"?"undefined":(0,se.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Tt=Et,jt=function(Ot,Pt,St,kt){var Rt=(0,te.useRef)(!1),At=(0,te.useRef)(null);function Yt(){clearTimeout(At.current),Rt.current=!0,At.current=setTimeout(function(){Rt.current=!1},50)}var Me=(0,te.useRef)({top:Ot,bottom:Pt,left:St,right:kt});return Me.current.top=Ot,Me.current.bottom=Pt,Me.current.left=St,Me.current.right=kt,function(be,We){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ve=be?We<0&&Me.current.left||We>0&&Me.current.right:We<0&&Me.current.top||We>0&&Me.current.bottom;return pe&&ve?(clearTimeout(At.current),Rt.current=!1):(!ve||Rt.current)&&Yt(),!Rt.current&&ve}};function _t(Ot,Pt,St,kt,Rt,At,Yt){var Me=(0,te.useRef)(0),be=(0,te.useRef)(null),We=(0,te.useRef)(null),pe=(0,te.useRef)(!1),ve=jt(Pt,St,kt,Rt);function xe(Fe,ze){if(xt.Z.cancel(be.current),!ve(!1,ze)){var Je=Fe;if(!Je._virtualHandled)Je._virtualHandled=!0;else return;Me.current+=ze,We.current=ze,Tt||Je.preventDefault(),be.current=(0,xt.Z)(function(){var jn=pe.current?10:1;Yt(Me.current*jn,!1),Me.current=0})}}function Te(Fe,ze){Yt(ze,!0),Tt||Fe.preventDefault()}var Ke=(0,te.useRef)(null),xn=(0,te.useRef)(null);function _e(Fe){if(Ot){xt.Z.cancel(xn.current),xn.current=(0,xt.Z)(function(){Ke.current=null},2);var ze=Fe.deltaX,Je=Fe.deltaY,jn=Fe.shiftKey,Sn=ze,Mn=Je;(Ke.current==="sx"||!Ke.current&&jn&&Je&&!ze)&&(Sn=Je,Mn=0,Ke.current="sx");var Hn=Math.abs(Sn),yi=Math.abs(Mn);Ke.current===null&&(Ke.current=At&&Hn>yi?"x":"y"),Ke.current==="y"?xe(Fe,Mn):Te(Fe,Sn)}}function Zn(Fe){Ot&&(pe.current=Fe.detail===We.current)}return[_e,Zn]}function Jt(Ot,Pt,St,kt){var Rt=te.useMemo(function(){return[new Map,[]]},[Ot,St.id,kt]),At=(0,ge.Z)(Rt,2),Yt=At[0],Me=At[1],be=function(pe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pe,xe=Yt.get(pe),Te=Yt.get(ve);if(xe===void 0||Te===void 0)for(var Ke=Ot.length,xn=Me.length;xn<Ke;xn+=1){var _e,Zn=Ot[xn],Fe=Pt(Zn);Yt.set(Fe,xn);var ze=(_e=St.get(Fe))!==null&&_e!==void 0?_e:kt;if(Me[xn]=(Me[xn-1]||0)+ze,Fe===pe&&(xe=xn),Fe===ve&&(Te=xn),xe!==void 0&&Te!==void 0)break}return{top:Me[xe-1]||0,bottom:Me[Te]}};return be}var Ut=Nt(99153),fe=Nt(84851),ne=function(){function Ot(){(0,Ut.Z)(this,Ot),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,fe.Z)(Ot,[{key:"set",value:function(St,kt){this.diffRecords.set(St,this.maps[St]),this.maps[St]=kt,this.id+=1}},{key:"get",value:function(St){return this.maps[St]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ot}(),Ne=ne;function Ge(Ot){var Pt=parseFloat(Ot);return isNaN(Pt)?0:Pt}function Ye(Ot,Pt,St){var kt=te.useState(0),Rt=(0,ge.Z)(kt,2),At=Rt[0],Yt=Rt[1],Me=(0,te.useRef)(new Map),be=(0,te.useRef)(new Ne),We=(0,te.useRef)(0);function pe(){We.current+=1}function ve(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;pe();var Ke=function(){var Zn=!1;Me.current.forEach(function(Fe,ze){if(Fe&&Fe.offsetParent){var Je=Fe.offsetHeight,jn=getComputedStyle(Fe),Sn=jn.marginTop,Mn=jn.marginBottom,Hn=Ge(Sn),yi=Ge(Mn),Jn=Je+Hn+yi;be.current.get(ze)!==Jn&&(be.current.set(ze,Jn),Zn=!0)}}),Zn&&Yt(function(Fe){return Fe+1})};if(Te)Ke();else{We.current+=1;var xn=We.current;Promise.resolve().then(function(){xn===We.current&&Ke()})}}function xe(Te,Ke){var xn=Ot(Te),_e=Me.current.get(xn);Ke?(Me.current.set(xn,Ke),ve()):Me.current.delete(xn),!_e!=!Ke&&(Ke?Pt==null||Pt(Te):St==null||St(Te))}return(0,te.useEffect)(function(){return pe},[]),[xe,ve,be.current,At]}var Ln=14/15;function hn(Ot,Pt,St){var kt=(0,te.useRef)(!1),Rt=(0,te.useRef)(0),At=(0,te.useRef)(0),Yt=(0,te.useRef)(null),Me=(0,te.useRef)(null),be,We=function(Te){if(kt.current){var Ke=Math.ceil(Te.touches[0].pageX),xn=Math.ceil(Te.touches[0].pageY),_e=Rt.current-Ke,Zn=At.current-xn,Fe=Math.abs(_e)>Math.abs(Zn);Fe?Rt.current=Ke:At.current=xn;var ze=St(Fe,Fe?_e:Zn,!1,Te);ze&&Te.preventDefault(),clearInterval(Me.current),ze&&(Me.current=setInterval(function(){Fe?_e*=Ln:Zn*=Ln;var Je=Math.floor(Fe?_e:Zn);(!St(Fe,Je,!0)||Math.abs(Je)<=.1)&&clearInterval(Me.current)},16))}},pe=function(){kt.current=!1,be()},ve=function(Te){be(),Te.touches.length===1&&!kt.current&&(kt.current=!0,Rt.current=Math.ceil(Te.touches[0].pageX),At.current=Math.ceil(Te.touches[0].pageY),Yt.current=Te.target,Yt.current.addEventListener("touchmove",We,{passive:!1}),Yt.current.addEventListener("touchend",pe,{passive:!0}))};be=function(){Yt.current&&(Yt.current.removeEventListener("touchmove",We),Yt.current.removeEventListener("touchend",pe))},(0,qe.Z)(function(){return Ot&&Pt.current.addEventListener("touchstart",ve,{passive:!0}),function(){var xe;(xe=Pt.current)===null||xe===void 0||xe.removeEventListener("touchstart",ve),be(),clearInterval(Me.current)}},[Ot])}function Be(Ot){return Math.floor(Math.pow(Ot,.5))}function sn(Ot,Pt){var St="touches"in Ot?Ot.touches[0]:Ot;return St[Pt?"pageX":"pageY"]-window[Pt?"scrollX":"scrollY"]}function ee(Ot,Pt,St){te.useEffect(function(){var kt=Pt.current;if(Ot&&kt){var Rt=!1,At,Yt,Me=function(){xt.Z.cancel(At)},be=function xe(){Me(),At=(0,xt.Z)(function(){St(Yt),xe()})},We=function(Te){if(!(Te.target.draggable||Te.button!==0)){var Ke=Te;Ke._virtualHandled||(Ke._virtualHandled=!0,Rt=!0)}},pe=function(){Rt=!1,Me()},ve=function(Te){if(Rt){var Ke=sn(Te,!1),xn=kt.getBoundingClientRect(),_e=xn.top,Zn=xn.bottom;if(Ke<=_e){var Fe=_e-Ke;Yt=-Be(Fe),be()}else if(Ke>=Zn){var ze=Ke-Zn;Yt=Be(ze),be()}else Me()}};return kt.addEventListener("mousedown",We),kt.ownerDocument.addEventListener("mouseup",pe),kt.ownerDocument.addEventListener("mousemove",ve),function(){kt.removeEventListener("mousedown",We),kt.ownerDocument.removeEventListener("mouseup",pe),kt.ownerDocument.removeEventListener("mousemove",ve),Me()}}},[Ot])}var Kt=10;function Oe(Ot,Pt,St,kt,Rt,At,Yt,Me){var be=te.useRef(),We=te.useState(null),pe=(0,ge.Z)(We,2),ve=pe[0],xe=pe[1];return(0,qe.Z)(function(){if(ve&&ve.times<Kt){if(!Ot.current){xe(function(nr){return(0,we.Z)({},nr)});return}At();var Te=ve.targetAlign,Ke=ve.originAlign,xn=ve.index,_e=ve.offset,Zn=Ot.current.clientHeight,Fe=!1,ze=Te,Je=null;if(Zn){for(var jn=Te||Ke,Sn=0,Mn=0,Hn=0,yi=Math.min(Pt.length-1,xn),Jn=0;Jn<=yi;Jn+=1){var xi=Rt(Pt[Jn]);Mn=Sn;var Vi=St.get(xi);Hn=Mn+(Vi===void 0?kt:Vi),Sn=Hn}for(var Ii=jn==="top"?_e:Zn-_e,Wi=yi;Wi>=0;Wi-=1){var Ji=Rt(Pt[Wi]),er=St.get(Ji);if(er===void 0){Fe=!0;break}if(Ii-=er,Ii<=0)break}switch(jn){case"top":Je=Mn-_e;break;case"bottom":Je=Hn-Zn+_e;break;default:{var ji=Ot.current.scrollTop,Ai=ji+Zn;Mn<ji?ze="top":Hn>Ai&&(ze="bottom")}}Je!==null&&Yt(Je),Je!==ve.lastTop&&(Fe=!0)}Fe&&xe((0,we.Z)((0,we.Z)({},ve),{},{times:ve.times+1,targetAlign:ze,lastTop:Je}))}},[ve,Ot.current]),function(Te){if(Te==null){Me();return}if(xt.Z.cancel(be.current),typeof Te=="number")Yt(Te);else if(Te&&(0,se.Z)(Te)==="object"){var Ke,xn=Te.align;"index"in Te?Ke=Te.index:Ke=Pt.findIndex(function(Fe){return Rt(Fe)===Te.key});var _e=Te.offset,Zn=_e===void 0?0:_e;xe({times:0,index:Ke,offset:Zn,originAlign:xn})}}}var pn=te.forwardRef(function(Ot,Pt){var St=Ot.prefixCls,kt=Ot.rtl,Rt=Ot.scrollOffset,At=Ot.scrollRange,Yt=Ot.onStartMove,Me=Ot.onStopMove,be=Ot.onScroll,We=Ot.horizontal,pe=Ot.spinSize,ve=Ot.containerSize,xe=Ot.style,Te=Ot.thumbStyle,Ke=Ot.showScrollBar,xn=te.useState(!1),_e=(0,ge.Z)(xn,2),Zn=_e[0],Fe=_e[1],ze=te.useState(null),Je=(0,ge.Z)(ze,2),jn=Je[0],Sn=Je[1],Mn=te.useState(null),Hn=(0,ge.Z)(Mn,2),yi=Hn[0],Jn=Hn[1],xi=!kt,Vi=te.useRef(),Ii=te.useRef(),Wi=te.useState(Ke),Ji=(0,ge.Z)(Wi,2),er=Ji[0],ji=Ji[1],Ai=te.useRef(),nr=function(){Ke===!0||Ke===!1||(clearTimeout(Ai.current),ji(!0),Ai.current=setTimeout(function(){ji(!1)},3e3))},Ct=At-ve||0,li=ve-pe||0,pi=te.useMemo(function(){if(Rt===0||Ct===0)return 0;var ce=Rt/Ct;return ce*li},[Rt,Ct,li]),Yn=function(zn){zn.stopPropagation(),zn.preventDefault()},ti=te.useRef({top:pi,dragging:Zn,pageY:jn,startTop:yi});ti.current={top:pi,dragging:Zn,pageY:jn,startTop:yi};var ri=function(zn){Fe(!0),Sn(sn(zn,We)),Jn(ti.current.top),Yt(),zn.stopPropagation(),zn.preventDefault()};te.useEffect(function(){var ce=function($e){$e.preventDefault()},zn=Vi.current,Xn=Ii.current;return zn.addEventListener("touchstart",ce,{passive:!1}),Xn.addEventListener("touchstart",ri,{passive:!1}),function(){zn.removeEventListener("touchstart",ce),Xn.removeEventListener("touchstart",ri)}},[]);var vi=te.useRef();vi.current=Ct;var Ri=te.useRef();Ri.current=li,te.useEffect(function(){if(Zn){var ce,zn=function($e){var In=ti.current,wi=In.dragging,Mi=In.pageY,Gi=In.startTop;xt.Z.cancel(ce);var Ht=Vi.current.getBoundingClientRect(),de=ve/(We?Ht.width:Ht.height);if(wi){var wn=(sn($e,We)-Mi)*de,Bn=Gi;!xi&&We?Bn-=wn:Bn+=wn;var ke=vi.current,vn=Ri.current,un=vn?Bn/vn:0,Pn=Math.ceil(un*ke);Pn=Math.max(Pn,0),Pn=Math.min(Pn,ke),ce=(0,xt.Z)(function(){be(Pn,We)})}},Xn=function(){Fe(!1),Me()};return window.addEventListener("mousemove",zn,{passive:!0}),window.addEventListener("touchmove",zn,{passive:!0}),window.addEventListener("mouseup",Xn,{passive:!0}),window.addEventListener("touchend",Xn,{passive:!0}),function(){window.removeEventListener("mousemove",zn),window.removeEventListener("touchmove",zn),window.removeEventListener("mouseup",Xn),window.removeEventListener("touchend",Xn),xt.Z.cancel(ce)}}},[Zn]),te.useEffect(function(){return nr(),function(){clearTimeout(Ai.current)}},[Rt]),te.useImperativeHandle(Pt,function(){return{delayHidden:nr}});var Ni="".concat(St,"-scrollbar"),me={position:"absolute",visibility:er?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return We?(me.height=8,me.left=0,me.right=0,me.bottom=0,ue.height="100%",ue.width=pe,xi?ue.left=pi:ue.right=pi):(me.width=8,me.top=0,me.bottom=0,xi?me.right=0:me.left=0,ue.width="100%",ue.height=pe,ue.top=pi),te.createElement("div",{ref:Vi,className:Re()(Ni,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Ni,"-horizontal"),We),"".concat(Ni,"-vertical"),!We),"".concat(Ni,"-visible"),er)),style:(0,we.Z)((0,we.Z)({},me),xe),onMouseDown:Yn,onMouseMove:nr},te.createElement("div",{ref:Ii,className:Re()("".concat(Ni,"-thumb"),(0,Ie.Z)({},"".concat(Ni,"-thumb-moving"),Zn)),style:(0,we.Z)((0,we.Z)({},ue),Te),onMouseDown:ri}))}),mn=pn,Ae=20;function Qe(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,St=Ot/Pt*Ot;return isNaN(St)&&(St=0),St=Math.max(St,Ae),Math.floor(St)}var ln=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Vn=[],Le={overflowY:"auto",overflowAnchor:"none"};function cn(Ot,Pt){var St=Ot.prefixCls,kt=St===void 0?"rc-virtual-list":St,Rt=Ot.className,At=Ot.height,Yt=Ot.itemHeight,Me=Ot.fullHeight,be=Me===void 0?!0:Me,We=Ot.style,pe=Ot.data,ve=Ot.children,xe=Ot.itemKey,Te=Ot.virtual,Ke=Ot.direction,xn=Ot.scrollWidth,_e=Ot.component,Zn=_e===void 0?"div":_e,Fe=Ot.onScroll,ze=Ot.onVirtualScroll,Je=Ot.onVisibleChange,jn=Ot.innerProps,Sn=Ot.extraRender,Mn=Ot.styles,Hn=Ot.showScrollBar,yi=Hn===void 0?"optional":Hn,Jn=(0,zt.Z)(Ot,ln),xi=te.useCallback(function(nn){return typeof xe=="function"?xe(nn):nn==null?void 0:nn[xe]},[xe]),Vi=Ye(xi,null,null),Ii=(0,ge.Z)(Vi,4),Wi=Ii[0],Ji=Ii[1],er=Ii[2],ji=Ii[3],Ai=!!(Te!==!1&&At&&Yt),nr=te.useMemo(function(){return Object.values(er.maps).reduce(function(nn,kn){return nn+kn},0)},[er.id,er.maps]),Ct=Ai&&pe&&(Math.max(Yt*pe.length,nr)>At||!!xn),li=Ke==="rtl",pi=Re()(kt,(0,Ie.Z)({},"".concat(kt,"-rtl"),li),Rt),Yn=pe||Vn,ti=(0,te.useRef)(),ri=(0,te.useRef)(),vi=(0,te.useRef)(),Ri=(0,te.useState)(0),Ni=(0,ge.Z)(Ri,2),me=Ni[0],ue=Ni[1],ce=(0,te.useState)(0),zn=(0,ge.Z)(ce,2),Xn=zn[0],ni=zn[1],$e=(0,te.useState)(!1),In=(0,ge.Z)($e,2),wi=In[0],Mi=In[1],Gi=function(){Mi(!0)},Ht=function(){Mi(!1)},de={getKey:xi};function wn(nn){ue(function(kn){var Tn;typeof nn=="function"?Tn=nn(kn):Tn=nn;var yn=Zi(Tn);return ti.current.scrollTop=yn,yn})}var Bn=(0,te.useRef)({start:0,end:Yn.length}),ke=(0,te.useRef)(),vn=vt(Yn,xi),un=(0,ge.Z)(vn,1),Pn=un[0];ke.current=Pn;var $n=te.useMemo(function(){if(!Ai)return{scrollHeight:void 0,start:0,end:Yn.length-1,offset:void 0};if(!Ct){var nn;return{scrollHeight:((nn=ri.current)===null||nn===void 0?void 0:nn.offsetHeight)||0,start:0,end:Yn.length-1,offset:void 0}}for(var kn=0,Tn,yn,On,Si=Yn.length,ii=0;ii<Si;ii+=1){var Gn=Yn[ii],Ve=xi(Gn),gi=er.get(Ve),Di=kn+(gi===void 0?Yt:gi);Di>=me&&Tn===void 0&&(Tn=ii,yn=kn),Di>me+At&&On===void 0&&(On=ii),kn=Di}return Tn===void 0&&(Tn=0,yn=0,On=Math.ceil(At/Yt)),On===void 0&&(On=Yn.length-1),On=Math.min(On+1,Yn.length-1),{scrollHeight:kn,start:Tn,end:On,offset:yn}},[Ct,Ai,me,Yn,ji,At]),Dn=$n.scrollHeight,Un=$n.start,Wn=$n.end,bi=$n.offset;Bn.current.start=Un,Bn.current.end=Wn,te.useLayoutEffect(function(){var nn=er.getRecord();if(nn.size===1){var kn=Array.from(nn.keys())[0],Tn=nn.get(kn),yn=Yn[Un];if(yn&&Tn===void 0){var On=xi(yn);if(On===kn){var Si=er.get(kn),ii=Si-Yt;wn(function(Gn){return Gn+ii})}}}er.resetRecord()},[Dn]);var Pi=te.useState({width:0,height:At}),Ci=(0,ge.Z)(Pi,2),je=Ci[0],$i=Ci[1],or=function(kn){$i({width:kn.offsetWidth,height:kn.offsetHeight})},Fr=(0,te.useRef)(),Ue=(0,te.useRef)(),Rn=te.useMemo(function(){return Qe(je.width,xn)},[je.width,xn]),fi=te.useMemo(function(){return Qe(je.height,Dn)},[je.height,Dn]),ci=Dn-At,Ei=(0,te.useRef)(ci);Ei.current=ci;function Zi(nn){var kn=nn;return Number.isNaN(Ei.current)||(kn=Math.min(kn,Ei.current)),kn=Math.max(kn,0),kn}var tr=me<=0,sr=me>=ci,dr=Xn<=0,gr=Xn>=xn,tn=jt(tr,sr,dr,gr),Br=function(){return{x:li?-Xn:Xn,y:me}},en=(0,te.useRef)(Br()),ki=(0,Vt.zX)(function(nn){if(ze){var kn=(0,we.Z)((0,we.Z)({},Br()),nn);(en.current.x!==kn.x||en.current.y!==kn.y)&&(ze(kn),en.current=kn)}});function vr(nn,kn){var Tn=nn;kn?((0,He.flushSync)(function(){ni(Tn)}),ki()):wn(Tn)}function yr(nn){var kn=nn.currentTarget.scrollTop;kn!==me&&wn(kn),Fe==null||Fe(nn),ki()}var Wr=function(kn){var Tn=kn,yn=xn?xn-je.width:0;return Tn=Math.max(Tn,0),Tn=Math.min(Tn,yn),Tn},Pr=(0,Vt.zX)(function(nn,kn){kn?((0,He.flushSync)(function(){ni(function(Tn){var yn=Tn+(li?-nn:nn);return Wr(yn)})}),ki()):wn(function(Tn){var yn=Tn+nn;return yn})}),ir=_t(Ai,tr,sr,dr,gr,!!xn,Pr),Kr=(0,ge.Z)(ir,2),Ee=Kr[0],an=Kr[1];hn(Ai,ti,function(nn,kn,Tn,yn){var On=yn;return tn(nn,kn,Tn)?!1:!On||!On._virtualHandled?(On&&(On._virtualHandled=!0),Ee({preventDefault:function(){},deltaX:nn?kn:0,deltaY:nn?0:kn}),!0):!1}),ee(Ct,ti,function(nn){wn(function(kn){return kn+nn})}),(0,qe.Z)(function(){function nn(Tn){var yn=tr&&Tn.detail<0,On=sr&&Tn.detail>0;Ai&&!yn&&!On&&Tn.preventDefault()}var kn=ti.current;return kn.addEventListener("wheel",Ee,{passive:!1}),kn.addEventListener("DOMMouseScroll",an,{passive:!0}),kn.addEventListener("MozMousePixelScroll",nn,{passive:!1}),function(){kn.removeEventListener("wheel",Ee),kn.removeEventListener("DOMMouseScroll",an),kn.removeEventListener("MozMousePixelScroll",nn)}},[Ai,tr,sr]),(0,qe.Z)(function(){if(xn){var nn=Wr(Xn);ni(nn),ki({x:nn})}},[je.width,xn]);var Pe=function(){var kn,Tn;(kn=Fr.current)===null||kn===void 0||kn.delayHidden(),(Tn=Ue.current)===null||Tn===void 0||Tn.delayHidden()},Mt=Oe(ti,Yn,er,Yt,xi,function(){return Ji(!0)},wn,Pe);te.useImperativeHandle(Pt,function(){return{nativeElement:vi.current,getScrollInfo:Br,scrollTo:function(kn){function Tn(yn){return yn&&(0,se.Z)(yn)==="object"&&("left"in yn||"top"in yn)}Tn(kn)?(kn.left!==void 0&&ni(Wr(kn.left)),Mt(kn.top)):Mt(kn)}}}),(0,qe.Z)(function(){if(Je){var nn=Yn.slice(Un,Wn+1);Je(nn,Yn)}},[Un,Wn,Yn]);var An=Jt(Yn,xi,er,Yt),Nn=Sn==null?void 0:Sn({start:Un,end:Wn,virtual:Ct,offsetX:Xn,offsetY:bi,rtl:li,getSize:An}),ui=ct(Yn,Un,Wn,xn,Xn,Wi,ve,de),ai=null;At&&(ai=(0,we.Z)((0,Ie.Z)({},be?"height":"maxHeight",At),Le),Ai&&(ai.overflowY="hidden",xn&&(ai.overflowX="hidden"),wi&&(ai.pointerEvents="none")));var Qn={};return li&&(Qn.dir="rtl"),te.createElement("div",(0,Ft.Z)({ref:vi,style:(0,we.Z)((0,we.Z)({},We),{},{position:"relative"}),className:pi},Qn,Jn),te.createElement(he.Z,{onResize:or},te.createElement(Zn,{className:"".concat(kt,"-holder"),style:ai,ref:ti,onScroll:yr,onMouseEnter:Pe},te.createElement(nt,{prefixCls:kt,height:Dn,offsetX:Xn,offsetY:bi,scrollWidth:xn,onInnerResize:Ji,ref:ri,innerProps:jn,rtl:li,extra:Nn},ui))),Ct&&Dn>At&&te.createElement(mn,{ref:Fr,prefixCls:kt,scrollOffset:me,scrollRange:Dn,rtl:li,onScroll:vr,onStartMove:Gi,onStopMove:Ht,spinSize:fi,containerSize:je.height,style:Mn==null?void 0:Mn.verticalScrollBar,thumbStyle:Mn==null?void 0:Mn.verticalScrollBarThumb,showScrollBar:yi}),Ct&&xn>je.width&&te.createElement(mn,{ref:Ue,prefixCls:kt,scrollOffset:Xn,scrollRange:xn,rtl:li,onScroll:vr,onStartMove:Gi,onStopMove:Ht,spinSize:Rn,containerSize:je.width,horizontal:!0,style:Mn==null?void 0:Mn.horizontalScrollBar,thumbStyle:Mn==null?void 0:Mn.horizontalScrollBarThumb,showScrollBar:yi}))}var le=te.forwardRef(cn);le.displayName="List";var bn=le,hi=bn},25510:function(Cn){"use strict";Cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1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dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbFwzbr2RhxQsoTdi+xM6jPwjJ6kTH24gsv2ZxwEuEIe+KJx+0jWFjuutuOPupIY4vw2mutE8DUK6+9arNxs4wwGz9pUjiRuW+3z4iQL4bOvTZnlo3AtTZqVNj2/drsWX1bwQGANtImjhvft/26b6N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z5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/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+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GU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BEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Cn,_n,Nt){"use strict";Cn.exports=Nt.p+"static/AssistantCode3.a8740efb.jpeg"},51941:function(Cn){"use strict";Cn.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/eXtgSRgvFy2C24aX4ybq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epRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Cn,_n,Nt){"use strict";Nt.d(_n,{Z:function(){return Re}});const Ft=he=>typeof he=="object"&&he!=null&&he.nodeType===1,se=(he,Vt)=>(!Vt||he!=="hidden")&&he!=="visible"&&he!=="clip",we=(he,Vt)=>{if(he.clientHeight<he.scrollHeight||he.clientWidth<he.scrollWidth){const qe=getComputedStyle(he,null);return se(qe.overflowY,Vt)||se(qe.overflowX,Vt)||(te=>{const He=(Bt=>{if(!Bt.ownerDocument||!Bt.ownerDocument.defaultView)return null;try{return Bt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(te);return!!He&&(He.clientHeight<te.scrollHeight||He.clientWidth<te.scrollWidth)})(he)}return!1},Ie=(he,Vt,qe,te,He,Bt,nt,et)=>Bt<he&&nt>Vt||Bt>he&&nt<Vt?0:Bt<=he&&et<=qe||nt>=Vt&&et>=qe?Bt-he-te:nt>Vt&&et<qe||Bt<he&&et>qe?nt-Vt+He:0,ge=he=>{const Vt=he.parentElement;return Vt==null?he.getRootNode().host||null:Vt},zt=(he,Vt)=>{var qe,te,He,Bt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:ct,boundary:lt,skipOverflowHiddenElements:pt}=Vt,vt=typeof lt=="function"?lt:mn=>mn!==lt;if(!Ft(he))throw new TypeError("Invalid target");const xt=document.scrollingElement||document.documentElement,Et=[];let Tt=he;for(;Ft(Tt)&&vt(Tt);){if(Tt=ge(Tt),Tt===xt){Et.push(Tt);break}Tt!=null&&Tt===document.body&&we(Tt)&&!we(document.documentElement)||Tt!=null&&we(Tt,pt)&&Et.push(Tt)}const jt=(te=(qe=window.visualViewport)==null?void 0:qe.width)!=null?te:innerWidth,_t=(Bt=(He=window.visualViewport)==null?void 0:He.height)!=null?Bt:innerHeight,{scrollX:Jt,scrollY:Ut}=window,{height:fe,width:ne,top:Ne,right:Ge,bottom:Ye,left:Ln}=he.getBoundingClientRect(),{top:hn,right:Be,bottom:sn,left:ee}=(mn=>{const Ae=window.getComputedStyle(mn);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(he);let Kt=et==="start"||et==="nearest"?Ne-hn:et==="end"?Ye+sn:Ne+fe/2-hn+sn,Oe=ct==="center"?Ln+ne/2-ee+Be:ct==="end"?Ge+Be:Ln-ee;const pn=[];for(let mn=0;mn<Et.length;mn++){const Ae=Et[mn],{height:Qe,width:ln,top:Vn,right:Le,bottom:cn,left:le}=Ae.getBoundingClientRect();if(nt==="if-needed"&&Ne>=0&&Ln>=0&&Ye<=_t&&Ge<=jt&&(Ae===xt&&!we(Ae)||Ne>=Vn&&Ye<=cn&&Ln>=le&&Ge<=Le))return pn;const bn=getComputedStyle(Ae),hi=parseInt(bn.borderLeftWidth,10),Ot=parseInt(bn.borderTopWidth,10),Pt=parseInt(bn.borderRightWidth,10),St=parseInt(bn.borderBottomWidth,10);let kt=0,Rt=0;const At="offsetWidth"in Ae?Ae.offsetWidth-Ae.clientWidth-hi-Pt:0,Yt="offsetHeight"in Ae?Ae.offsetHeight-Ae.clientHeight-Ot-St:0,Me="offsetWidth"in Ae?Ae.offsetWidth===0?0:ln/Ae.offsetWidth:0,be="offsetHeight"in Ae?Ae.offsetHeight===0?0:Qe/Ae.offsetHeight:0;if(xt===Ae)kt=et==="start"?Kt:et==="end"?Kt-_t:et==="nearest"?Ie(Ut,Ut+_t,_t,Ot,St,Ut+Kt,Ut+Kt+fe,fe):Kt-_t/2,Rt=ct==="start"?Oe:ct==="center"?Oe-jt/2:ct==="end"?Oe-jt:Ie(Jt,Jt+jt,jt,hi,Pt,Jt+Oe,Jt+Oe+ne,ne),kt=Math.max(0,kt+Ut),Rt=Math.max(0,Rt+Jt);else{kt=et==="start"?Kt-Vn-Ot:et==="end"?Kt-cn+St+Yt:et==="nearest"?Ie(Vn,cn,Qe,Ot,St+Yt,Kt,Kt+fe,fe):Kt-(Vn+Qe/2)+Yt/2,Rt=ct==="start"?Oe-le-hi:ct==="center"?Oe-(le+ln/2)+At/2:ct==="end"?Oe-Le+Pt+At:Ie(le,Le,ln,hi,Pt+At,Oe,Oe+ne,ne);const{scrollLeft:We,scrollTop:pe}=Ae;kt=be===0?0:Math.max(0,Math.min(pe+kt/be,Ae.scrollHeight-Qe/be+Yt)),Rt=Me===0?0:Math.max(0,Math.min(We+Rt/Me,Ae.scrollWidth-ln/Me+At)),Kt+=pe-kt,Oe+=We-Rt}pn.push({el:Ae,top:kt,left:Rt})}return pn},ie=he=>he===!1?{block:"end",inline:"nearest"}:(Vt=>Vt===Object(Vt)&&Object.keys(Vt).length!==0)(he)?he:{block:"start",inline:"nearest"};function Re(he,Vt){if(!he.isConnected||!(He=>{let Bt=He;for(;Bt&&Bt.parentNode;){if(Bt.parentNode===document)return!0;Bt=Bt.parentNode instanceof ShadowRoot?Bt.parentNode.host:Bt.parentNode}return!1})(he))return;const qe=(He=>{const Bt=window.getComputedStyle(He);return{top:parseFloat(Bt.scrollMarginTop)||0,right:parseFloat(Bt.scrollMarginRight)||0,bottom:parseFloat(Bt.scrollMarginBottom)||0,left:parseFloat(Bt.scrollMarginLeft)||0}})(he);if((He=>typeof He=="object"&&typeof He.behavior=="function")(Vt))return Vt.behavior(zt(he,Vt));const te=typeof Vt=="boolean"||Vt==null?void 0:Vt.behavior;for(const{el:He,top:Bt,left:nt}of zt(he,ie(Vt))){const et=Bt-qe.top+qe.bottom,ct=nt-qe.left+qe.right;He.scroll({top:et,left:ct,behavior:te})}}}}]);
|