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.
1273 lines
2.4 MiB
1273 lines
2.4 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5314],{37388:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Ut}});var Pt=Mt(87462),ne=Mt(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Be=Ne,Pe=Mt(17207),Bt=function(se,Se){return ne.createElement(Pe.Z,(0,Pt.Z)({},se,{ref:Se,icon:Be}))},Ut=ne.forwardRef(Bt)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(un,Nn){"use strict";Nn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function un(Dt,nt,et,ht){et===void 0&&(et=0),ht===void 0&&(ht=1/0),this._name=Dt,this._defaultValue=nt,this._minimum=et,this._maximum=ht}Object.defineProperty(un.prototype,"name",{get:function(){return this._name},set:function(Dt){if(typeof Dt!="string"||Dt==="")throw new Error("Shape name must be a valid string.");this._name=Dt}}),Object.defineProperty(un.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Dt){if(typeof Dt!="number"||isNaN(Dt))throw new Error("The default value must be a real number, not: "+Dt);this._defaultValue=Dt}}),Object.defineProperty(un.prototype,"minimum",{get:function(){return this._minimum},set:function(Dt){if(typeof Dt!="number"||isNaN(Dt))throw new Error("Minimum must be a real number, not: "+Dt);this._minimum=Dt}}),Object.defineProperty(un.prototype,"maximum",{get:function(){return this._maximum},set:function(Dt){if(typeof Dt!="number"||isNaN(Dt))throw new Error("Maximum must be a real number, not: "+Dt);this._maximum=Dt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Dt,nt){var et=go.Shape._FigureParameters[Dt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Dt,nt,et){if(!(et instanceof un))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+et);if(et.defaultValue<et.minimum||et.defaultValue>et.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+et.defaultValue);var ht=go.Shape._FigureParameters[Dt];ht||(ht=[],go.Shape._FigureParameters[Dt]=ht),ht[nt]=et};var Nn=[];function Mt(Dt,nt){var et=Nn.pop();return et===void 0?new go.Point(Dt,nt):(et.x=Dt,et.y=nt,et)}function Pt(){var Dt=Nn.pop();return Dt===void 0?new go.Point:Dt}function ne(Dt){Nn.push(Dt)}function Ne(Dt,nt,et,ht,lt,gt,mt,xt,St){St||(St=new go.Point);var zt=Dt-et,Jt=lt-mt,re=NaN,oe=NaN;if(zt===0)if(Jt===0)Dt===et&&(re=Dt,oe=nt);else{var $t=(gt-xt)/Jt,Le=gt-$t*lt;re=Dt,oe=$t*re+Le}else if(Jt===0){var de=(nt-ht)/zt,Fe=nt-de*Dt;re=lt,oe=de*re+Fe}else{var de=(nt-ht)/zt,$t=(gt-xt)/Jt,Fe=nt-de*Dt,Le=gt-$t*lt;re=(Le-Fe)/(de-$t),oe=de*re+Fe}return St.x=re,St.y=oe,St}function Be(Dt,nt,et,ht,lt,gt,mt,xt,St,zt,Jt,re,oe,$t){var Le=1-St,de=St,Fe=Dt*Le+et*de,rn=nt*Le+ht*de,De=et*Le+lt*de,jn=ht*Le+gt*de,Bn=lt*Le+mt*de,an=gt*Le+xt*de,Zn=Fe*Le+De*de,_t=rn*Le+jn*de,Tt=De*Le+Bn*de,ce=jn*Le+an*de,_e=Zn*Le+Tt*de,Ye=_t*Le+ce*de;zt.x=Fe,zt.y=rn,Jt.x=Zn,Jt.y=_t,re.x=_e,re.y=Ye,oe.x=Tt,oe.y=ce,$t.x=Bn,$t.y=an}var Pe=new go.Spot(.156,.156),Bt=new go.Spot(.844,.844),Ut=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new un("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*Ut,gt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,nt-lt,0,nt,lt)).add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)).add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,et-lt,nt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,ht,et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,lt,et,0,et-lt)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,lt,lt,0).close()));return lt>1&&(gt.spot1=new go.Spot(0,0,lt,lt),gt.spot2=new go.Spot(1,1,-lt,-lt)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Dt,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(Dt,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(Dt,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(Dt,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(Dt,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(Dt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=et/2,ht.endX=nt,ht.endY=et/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Dt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=nt/2,ht.startY=0,ht.endX=nt/2,ht.endY=et,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Dt,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(Dt,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(Dt,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(Dt,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(Dt,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(Dt,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(Dt,nt,et){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*nt,(1-ht)*et,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Move,ht*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Move,0,et/2)).add(new go.PathSegment(go.PathSegment.Line,nt,et/2)).add(new go.PathSegment(go.PathSegment.Move,nt/2,0)).add(new go.PathSegment(go.PathSegment.Line,nt/2,et)))}),go.Shape.defineFigureGenerator("CircleLine",function(Dt,nt,et){var ht=nt/2,lt=new go.Geometry().add(new go.PathFigure(nt,nt/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return lt.spot1=Pe,lt.spot2=Bt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Dt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=nt,ht.endY=et,ht}),go.Shape.defineFigureGenerator("Line2",function(Dt,nt,et){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=nt,ht.startY=0,ht.endX=0,ht.endY=et,ht}),go.Shape.defineFigureGenerator("Curve1",function(Dt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Ut*nt,0,nt,(1-Ut)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Dt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,Ut*et,(1-Ut)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Dt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,Ut*et,Ut*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Dt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-Ut)*nt,0,0,(1-Ut)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Dt,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(Dt,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(Dt,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(Dt,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 un("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var lt=Math.abs(ht)*nt;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ht>0?gt.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())):gt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new un("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)?ht=10:ht<-nt?ht=-nt:ht>nt&&(ht=nt);var lt=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ht>0?gt.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())):gt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new un("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var lt=Math.abs(ht)*nt;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ht>0?gt.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())):gt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new un("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)?ht=20:ht<-nt?ht=-nt/2:ht>nt&&(ht=nt/2);var lt=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ht>0?gt.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())):gt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new un("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)?ht=10:ht<-nt?ht=-nt/2:ht>nt&&(ht=nt/2);var lt=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=nt,gt.endY=et,gt}else{var gt=new go.Geometry;return ht>0?gt.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())):gt.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&>.setSpots(lt/nt,0,(nt-lt)/nt,1),gt}});var ue=[];function se(){var Dt=ue.pop();return Dt===void 0?[]:Dt}function Se(Dt){Dt.length=0,ue.push(Dt)}function Xe(Dt){for(var nt=se(),et=.5,ht=.5,lt=Math.PI*1.5,gt=0,mt=0;mt<Dt;mt++)gt=2*Math.PI/Dt*mt+lt,nt[mt]=new go.Point(ht+et*Math.cos(gt),ht+et*Math.sin(gt));return nt.push(nt[0]),nt}function pe(Dt){var nt=Ht(Dt),et=se();et[0]=nt[0];for(var ht=1,lt=1;ht<nt.length;ht+=2,lt+=3)et[lt]=nt[ht],et[lt+1]=nt[ht],et[lt+2]=nt[ht+1];return Se(nt),et}function Ht(Dt){for(var nt=Xe(Dt),et=se(),ht=Math.floor(nt.length/2),lt=nt.length-1,gt=Dt%2===0?2:1,mt=0;mt<lt;mt++){var xt=nt[mt],St=nt[mt+1],zt=nt[(ht+mt-1)%lt],Jt=nt[(ht+mt+gt)%lt];et[mt*2]=xt,et[mt*2+1]=Ne(xt.x,xt.y,zt.x,zt.y,St.x,St.y,Jt.x,Jt.y,new go.Point)}return et[et.length]=et[0],Se(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Dt,nt,et){var ht=Xe(5),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<5;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Dt,nt,et){var ht=Xe(6),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<6;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Dt,nt,et){var ht=Xe(7),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<7;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Dt,nt,et){var ht=Xe(8),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<8;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Dt,nt,et){var ht=Xe(9),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<9;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Dt,nt,et){var ht=Xe(10),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Dt,nt,et){var ht=Xe(12),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Dt,nt,et){var ht=Ht(5),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<10;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Dt,nt,et){var ht=Ht(6),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<12;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Dt,nt,et){var ht=Ht(7),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<14;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Dt,nt,et){var ht=Ht(8),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<16;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Dt,nt,et){var ht=Ht(9),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<18;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Dt,nt,et){var ht=Ht(10),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<20;mt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[mt].x*nt,ht[mt].y*et));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*nt,ht[0].y*et).close()),Se(ht),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Dt,nt,et){var ht=pe(5),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Dt,nt,et){var ht=pe(6),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Dt,nt,et){var ht=pe(7),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Dt,nt,et){var ht=pe(8),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Dt,nt,et){var ht=pe(9),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Dt,nt,et){var ht=pe(10),lt=new go.Geometry,gt=new go.PathFigure(ht[0].x*nt,ht[0].y*et,!0);lt.add(gt);for(var mt=1;mt<ht.length;mt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[mt+2].x*nt,ht[mt+2].y*et,ht[mt].x*nt,ht[mt].y*et,ht[mt+1].x*nt,ht[mt+1].y*et));return gt.segments.last().close(),Se(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new un("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new un("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN,lt=Dt?Dt.parameter2:NaN;isNaN(ht)&&(ht=8),isNaN(lt)&&(lt=8);var gt=new go.Geometry,mt=new go.PathFigure(0,0,!0);return gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht<nt/2&<<et/2&&(mt.add(new go.PathSegment(go.PathSegment.Move,ht,lt)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,lt).close())),gt.setSpots(0,0,1,1,ht,lt,-ht,-lt),gt}),go.Shape.setFigureParameter("Ring",0,new un("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var lt=nt/2,gt=new go.Geometry,mt=new go.PathFigure(nt,nt/2,!0);gt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var xt=Math.max(lt-ht,0);return xt>0&&(mt.add(new go.PathSegment(go.PathSegment.Move,nt/2+xt,nt/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,xt,xt).close())),gt.spot1=Pe,gt.spot2=Bt,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Dt,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(Dt,nt,et){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*nt,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,0)).add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,nt,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,et)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*et)).add(new go.PathSegment(go.PathSegment.Line,0,ht*et).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new un("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new un("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN,lt=Dt?Dt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(lt)&&(lt=315);var gt=ht%360;gt<0&&(gt+=360);var mt=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,gt,mt,xt,xt,xt,xt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Dt,nt,et){var ht=Ut/Math.SQRT2*.5,lt=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(nt,et,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,gt*et,nt,(1-ht)*et,(lt+ht)*nt,(gt+ht)*et)).add(new go.PathSegment(go.PathSegment.Line,0,et).close()))}),go.Shape.setFigureParameter("ThickCross",0,new un("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var lt=Math.min(ht,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new un("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var lt=Math.min(ht,nt)/2,gt=nt/2,mt=et/2;return new go.Geometry().add(new go.PathFigure(gt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,nt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,gt+lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,et)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,mt-lt)).add(new go.PathSegment(go.PathSegment.Line,gt-lt,mt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new un("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),nt===0||et===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=nt,lt.endY=et,lt}else{var gt=nt/2,mt=et/2,xt=Math.atan2(et,nt),St=ht-Math.min(Math.cos(xt)*ht/2,gt),zt=ht-Math.min(Math.sin(xt)*ht/2,mt),lt=new go.Geometry,Jt=new go.PathFigure(St,0,!0);return lt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,gt,.2*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt-St,0)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,zt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt,et-zt)),Jt.add(new go.PathSegment(go.PathSegment.Line,nt-St,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,gt,.8*et)),Jt.add(new go.PathSegment(go.PathSegment.Line,St,et)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,et-zt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,zt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new un("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var lt=new go.Geometry,gt=new go.PathFigure(.1*nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new un("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.2);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*nt,ht*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*nt,(1-ht)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-ht)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*nt,(1-ht)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*nt,ht*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*et).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new un("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.5);var lt=new go.Geometry,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Math.abs(1-ht)*nt,.25*et,Math.abs(1-ht)*nt,.75*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*nt,.75*et,ht*nt,.25*et).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Dt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,Ut*nt,0,nt,(.5-Ut/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+Ut/2)*et,Ut*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Dt,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(Dt,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(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.4*nt,.6*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*nt,et,.5*nt,.75*et,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.6*et,.55*nt,.95*et,.5*nt,.75*et));var gt=.2,mt=.3,xt=0,St=gt*Ut;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+xt)*et,(.5-gt+mt)*nt,(.5+St+xt)*et,(.5-St+mt)*nt,(.5+gt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+xt)*et,(.5+St+mt)*nt,(.5+gt+xt)*et,(.5+gt+mt)*nt,(.5+St+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+xt)*et,(1-.5+gt+mt)*nt,(.5-St+xt)*et,(.5+St+mt)*nt,(.5-gt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-St+mt)*nt,(.5-gt+xt)*et,(.5-gt+mt+.05)*nt,(.5-St+xt-.02)*et)),gt=.2,mt=0,xt=-.3,St=gt*Ut,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+xt)*et,(.5+St+mt)*nt,(.5+gt+xt)*et,(.5+gt+mt)*nt,(.5+St+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+xt)*et,(1-.5+gt+mt)*nt,(.5-St+xt)*et,(.5+St+mt)*nt,(.5-gt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+xt)*et,(.5-St+mt)*nt,(.5-gt+xt)*et,(.5-gt+mt)*nt,(.5-St+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-St+mt)*nt,(.5+gt+xt)*et,(.5-gt+mt)*nt,(.5+St+xt)*et,(.5-St+mt)*nt,(.5+gt+xt)*et)),gt=.2,mt=-.3,xt=0,St=gt*Ut,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+xt)*et,(1-.5+gt+mt-.05)*nt,(.5-St+xt-.02)*et,(.5+St+mt)*nt,(.5-gt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+xt)*et,(.5-St+mt)*nt,(.5-gt+xt)*et,(.5-gt+mt)*nt,(.5-St+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+xt)*et,(.5-gt+mt)*nt,(.5+St+xt)*et,(.5-St+mt)*nt,(.5+gt+xt)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+St+mt)*nt,(.5+gt+xt)*et,(.5+gt+mt)*nt,(.5+St+xt)*et).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.5,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*.5,nt*.5,nt*.5,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,nt*.5,nt*.75,nt*.25,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,nt*.5,nt*.25,nt*.25,nt*.25));var gt=.1,mt=.5,xt=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*nt,xt*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*mt,et*xt,gt*nt,gt*nt).close()),lt=new go.PathFigure(nt*.5,0,!1),ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*.5,nt*.5,nt*.5,nt*.5)),xt=.75,lt=new go.PathFigure((mt+gt)*nt,xt*et,!0),ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*mt,et*xt,gt*nt,gt*nt).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Dt,nt,et){var ht=.8535533905932737,lt=.5*nt,gt=.5*et;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,gt,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,lt,et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Move,lt,gt)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,ht*et)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=.5,mt=.5,xt=.5,St=new go.PathFigure(mt*nt,(xt-gt)*et);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),gt=.4,lt=Ut*.4;var zt=Pt(),Jt=Pt(),re=Pt(),oe=Pt();Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.42,zt,Jt,re,oe,oe);var $t=Pt(),Le=Pt(),de=Pt();Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.58,oe,oe,de,$t,Le);var Fe=Pt(),rn=Pt(),De=Pt();Be(mt,xt+gt,mt-lt,xt+gt,mt-gt,xt+lt,mt-gt,xt,.42,Fe,rn,De,oe,oe);var jn=Pt(),Bn=Pt(),an=Pt();return Be(mt,xt+gt,mt-lt,xt+gt,mt-gt,xt+lt,mt-gt,xt,.58,oe,oe,an,jn,Bn),St.add(new go.PathSegment(go.PathSegment.Move,an.x*nt,an.y*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,jn.x*nt,jn.y*et,Bn.x*nt,Bn.y*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,re.x*nt,re.y*et,zt.x*nt,zt.y*et,Jt.x*nt,Jt.y*et)),St.add(new go.PathSegment(go.PathSegment.Line,an.x*nt,an.y*et).close()),St.add(new go.PathSegment(go.PathSegment.Move,De.x*nt,De.y*et)),St.add(new go.PathSegment(go.PathSegment.Line,de.x*nt,de.y*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,$t.x*nt,$t.y*et,Le.x*nt,Le.y*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,De.x*nt,De.y*et,Fe.x*nt,Fe.y*et,rn.x*nt,rn.y*et).close()),ne(zt),ne(Jt),ne(re),ne(oe),ne($t),ne(Le),ne(de),ne(Fe),ne(rn),ne(De),ne(jn),ne(Bn),ne(an),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Dt,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 un("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>nt&&(ht=nt);var lt=(nt-ht)/2,gt=lt+ht;return new go.Geometry().add(new go.PathFigure(gt,.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(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.4,gt=.4,mt=.5,xt=.5,St=Pt(),zt=Pt(),Jt=Pt(),re=Pt(),oe=new go.PathFigure((mt-gt)*nt,xt*et,!1);ht.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et)),Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.44,Jt,re,zt,St,St),oe.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,Jt.x*nt,Jt.y*et,re.x*nt,re.y*et));var $t=Mt(zt.x,zt.y);Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.56,St,St,zt,Jt,re);var Le=Mt(zt.x,zt.y);oe.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.95*.9)*nt,$t.y*.1*et)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*nt,$t.y*.1*et)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),oe.add(new go.PathSegment(go.PathSegment.Line,nt,0)),oe.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),oe.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*nt,.15*et)),oe.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*nt,(Le.y*.1+.05*.9)*et)),oe.add(new go.PathSegment(go.PathSegment.Line,Le.x*nt,Le.y*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,Jt.x*nt,Jt.y*et,re.x*nt,re.y*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et)),gt=.35,lt=Ut*.35;var de=new go.PathFigure(mt*nt,(xt-gt)*et,!1);ht.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),de.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et));var Fe=new go.PathFigure((mt-gt)*nt,xt*et,!1);return ht.add(Fe),ne(St),ne(zt),ne(Jt),ne(re),ne($t),ne(Le),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Dt,nt,et){var ht=new go.Geometry,lt=.375,gt=0,mt=-.125,xt=lt*Ut,St=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+xt+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+xt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-xt+mt)*et,(.5+xt+gt)*nt,(.5-lt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-xt+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-xt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+xt+mt)*et,(.5-xt+gt)*nt,(.5+lt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),St.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),St.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),St.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),St.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,gt=0,mt=-.125,xt=lt*Ut;var St=new go.PathFigure((1-.5+lt+gt)*nt,(.5+mt)*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+xt+mt)*et,(.5+xt+gt)*nt,(.5+lt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-xt+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+xt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-xt+mt)*et,(.5-xt+gt)*nt,(.5-lt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+xt+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-xt+mt)*et));var St=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);return ht.add(St),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Move,ht*nt,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,ht*nt,et))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Dt,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(Dt,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(Dt,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(Dt,nt,et){var ht=new go.Geometry().add(new go.PathFigure(.5*nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)).add(new go.PathSegment(go.PathSegment.Move,0,.5*et)).add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*nt,.5*et,.5*nt,.5*et)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Dt,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(Dt,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(Dt,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(Dt,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(Dt,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(Dt,nt,et){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,et,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*et)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*nt,ht*et,ht*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,nt,et))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Dt,nt,et){var ht=.5;return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Line,nt,ht*et)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*nt,ht*et,ht*nt,ht*et)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new un("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new un("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-ht)*nt,mt=(.5-lt/2)*et,xt=(.5+lt/2)*et,St=new go.Geometry,zt=new go.PathFigure(0,mt,!0);St.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,xt)),zt.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),St.spot1=new go.Spot(0,mt/et);var Jt=Ne(0,xt/et,1,xt/et,gt/nt,1,1,.5,Pt());return St.spot2=new go.Spot(Jt.x,Jt.y),ne(Jt),St}),go.Shape.setFigureParameter("Arrow2",0,new un("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new un("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>nt&&(ht=nt);var lt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var gt=nt-ht,mt=(et-lt)/2,xt=mt+lt,St=new go.Geometry,zt=new go.PathFigure(0,mt,!0);St.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt,mt)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),zt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,et)),zt.add(new go.PathSegment(go.PathSegment.Line,gt,xt)),zt.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),St.spot1=new go.Spot(0,mt/et);var Jt=Ne(0,xt/et,1,xt/et,gt/nt,1,1,.5,Pt());return St.spot2=new go.Spot(Jt.x,Jt.y),ne(Jt),St}),go.Shape.defineFigureGenerator("Chevron",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.214*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.786*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*et).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new un("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);mt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),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 St=Ne(0,.5,.3,0,0,lt/et,.1,lt/et,Pt());return mt.spot1=new go.Spot(St.x,St.y),St=Ne(.7,1,1,.5,0,gt/et,1,gt/et,St),mt.spot2=new go.Spot(St.x,St.y),ne(St),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new un("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new un("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ht)/2,mt=gt+ht,xt=(et-lt)/2,St=xt+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,gt=(et-ht)/2,mt=gt+ht,xt=0,St=et):(gt=0,mt=et,xt=0,St=et));var zt=new go.Geometry,Jt=new go.PathFigure(nt,.5*et,!0);zt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),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,gt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,xt).close());var re=Ne(0,.5,.3,xt/et,0,gt/et,1,gt/et,Pt());return zt.spot1=new go.Spot(re.x,re.y),re=Ne(.7,St/et,1,.5,0,mt/et,1,mt/et,re),zt.spot2=new go.Spot(re.x,re.y),ne(re),zt}),go.Shape.setFigureParameter("IBeamArrow",0,new un("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);mt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),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()),mt.spot1=new go.Spot(0,lt/et);var St=Ne(.7,1,1,.5,0,gt/et,1,gt/et,Pt());return mt.spot2=new go.Spot(St.x,St.y),ne(St),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new un("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new un("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ht)/2,mt=gt+ht,xt=(et-lt)/2,St=xt+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,gt=(et-ht)/2,mt=gt+ht,xt=0,St=et):(gt=0,mt=et,xt=0,St=et));var zt=new go.Geometry,Jt=new go.PathFigure(nt,.5*et,!0);zt.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),Jt.add(new go.PathSegment(go.PathSegment.Line,0,St)),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,gt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),Jt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,xt).close()),zt.spot1=new go.Spot(0,gt/et);var re=Ne(.7,St/et,1,.5,0,mt/et,1,mt/et,Pt());return zt.spot2=new go.Spot(re.x,re.y),ne(re),zt}),go.Shape.setFigureParameter("Pointer",0,new un("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.1);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(ht,.35);var mt=Ne(.2,.65,1,.65,0,1,1,.5,Pt());return lt.spot2=new go.Spot(mt.x,mt.y),ne(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new un("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*nt,.75*et,ht*nt,.25*et).close()),lt.spot1=new go.Spot(ht,.35);var mt=Ne(0,.65,1,.65,0,1,1,.5,Pt());return lt.spot2=new go.Spot(mt.x,mt.y),ne(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new un("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.4);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);mt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),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()),mt.spot1=new go.Spot(.2,.3);var St=Ne(.7,1,1,.5,0,gt/et,1,gt/et,Pt());return mt.spot2=new go.Spot(St.x,St.y),ne(St),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new un("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=50);var lt=(et-ht)/2,gt=lt+ht;ht>et&&(lt=0,gt=et);var mt=new go.Geometry,xt=new go.PathFigure(nt,.5*et,!0);mt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),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()),mt.spot1=new go.Spot(.2,lt/et);var St=Ne(.7,1,1,.5,0,gt/et,1,gt/et,Pt());return mt.spot2=new go.Spot(St.x,St.y),ne(St),mt}),go.Shape.setFigureParameter("SquareArrow",0,new un("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.7);var lt=new go.Geometry,gt=new go.PathFigure(nt,.5*et,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(ht,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=Ut*.1,mt=new go.PathFigure(0,.9*et,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.9*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,et,.85/.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*et).close());var gt=new go.PathFigure(0,.9*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.9*et,(1-.85/.9)*nt,.8*et,.85/.9*nt,.8*et)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.3*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0).close());var gt=new go.PathFigure(0,.3*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,gt=Ut*.5,mt=new go.PathFigure(0,ht,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,Ut*ht,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ht,(.5+gt)*nt,0,1*nt,Ut*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,1*et,1*nt,et-Ut*ht,(.5+gt)*nt,1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-gt)*nt,1*et,0,et-Ut*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var xt=new go.PathFigure(nt,ht,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ht,1*nt,2*ht-Ut*ht,(.5+gt)*nt,2*ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*nt,2*ht,0,2*ht-Ut*ht)),lt.spot1=new go.Spot(0,0,0,2*ht),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,gt=Ut*.5,mt=new go.PathFigure(0,et-ht,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,Ut*ht,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,(.5+gt)*nt,0,nt,Ut*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-ht)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,et-Ut*ht,(.5+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-gt)*nt,et,0,et-Ut*ht));var xt=new go.PathFigure(0,et-ht,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ht,0,et-ht-Ut*ht,(.5-gt)*nt,et-2*ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ht,(.5+gt)*nt,et-2*ht,nt,et-ht-Ut*ht)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ht),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,gt=Ut*.5,mt=new go.PathFigure(ht,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-Ut*ht,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+gt)*et,nt-Ut*ht,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,Ut*ht,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*et,Ut*ht,0));var xt=new go.PathFigure(ht,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*et,ht+Ut*ht,0,2*ht,(.5-gt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,ht,et,2*ht,(.5+gt)*et,ht+Ut*ht,et)),lt.spot1=new go.Spot(0,0,2*ht,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,gt=Ut*.5,mt=new go.PathFigure(nt-ht,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-Ut*ht,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+gt)*et,nt-Ut*ht,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,Ut*ht,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*et,Ut*ht,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0));var xt=new go.PathFigure(nt-ht,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ht,.5*et,nt-ht-Ut*ht,0,nt-2*ht,(.5-gt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt-2*ht,(.5+gt)*et,nt-ht-Ut*ht,et)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*ht,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,.25*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.25*nt,.25*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.25*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.5*et)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et).close());var gt=new go.PathFigure(.5*nt,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Dt,nt,et){var ht=new go.Geometry,lt=.2,gt=.1,mt=Ut*lt,xt=Ut*gt,St=.5,zt=.1,Jt=new go.PathFigure(St*nt,(zt+gt)*et,!0);ht.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(St-lt)*nt,zt*et,(St-mt)*nt,(zt+gt)*et,(St-lt)*nt,(zt+xt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-gt)*et,(St-lt)*nt,(zt-xt)*et,(St-mt)*nt,(zt-gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(St+lt)*nt,zt*et,(St+mt)*nt,(zt-gt)*et,(St+lt)*nt,(zt-xt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt+gt)*et,(St+lt)*nt,(zt+xt)*et,(St+mt)*nt,(zt+gt)*et));var re=.05,oe=Ut*re;St=.05,zt=.25;var $t=new go.PathFigure(.5*nt,.2*et,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),St=.95,zt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,(St+re)*nt,zt*et,(St+oe)*nt,(zt-re)*et,(St+re)*nt,(zt-oe)*et)),$t.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),re=.025,oe=Ut*re,St=.825,zt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-re)*et,(St+re)*nt,(zt-oe)*et,(St+oe)*nt,(zt-re)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(St-re)*nt,zt*et,(St-oe)*nt,(zt-re)*et,(St-re)*nt,(zt-oe)*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),re=.05,oe=Ut*re,St=.5,zt=.7,$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-re)*et,(St+re)*nt,(zt-oe)*et,(St+oe)*nt,(zt-re)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(St-re)*nt,zt*et,(St-oe)*nt,(zt-re)*et,(St-re)*nt,(zt-oe)*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),$t.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),re=.025,oe=Ut*re,St=.175,zt=.35,$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-re)*et,(St+re)*nt,(zt-oe)*et,(St+oe)*nt,(zt-re)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(St-re)*nt,zt*et,(St-oe)*nt,(zt-re)*et,(St-re)*nt,(zt-oe)*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),$t.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),re=.05,oe=Ut*re,St=.05,zt=.25,$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-re)*et,(St-re)*nt,(zt-oe)*et,(St-oe)*nt,(zt-re)*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new un("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;isNaN(ht)&&(ht=.2);var lt=new go.Geometry,gt=new go.PathFigure(nt,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*et)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*nt,0).close()),lt.spot1=new go.Spot(0,ht),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et));var gt=new go.PathFigure(.5*nt,.5*et,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ht}),go.Shape.defineFigureGenerator("Database",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=Ut*.1,mt=new go.PathFigure(nt,.1*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var xt=new go.PathFigure(nt,.1*et,!1);return ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*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+gt)*et,(.5+lt)*nt,.3*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*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+gt)*et,(.5+lt)*nt,.4*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*et,(.5-lt)*nt,.4*et,0,(.3+gt)*et)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.9*et,.25*nt,.1*et).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=Ut*.1,mt=new go.PathFigure(nt,.1*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.9+gt)*et,(.5+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,(.5-lt)*nt,et,0,(.9+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,(.1-gt)*et,(.5-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,(.5+lt)*nt,0,nt,(.1-gt)*et));var xt=new go.PathFigure(nt,.1*et,!1);return ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*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+gt)*et,(.5+lt)*nt,.3*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,et,nt,0,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=Ut*.2,mt=new go.PathFigure(0,.2*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,0,(.2-gt)*et,(.2-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.2*et,(.8+gt)*nt,0,nt,(.2-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,et,nt,(.8+gt)*et,(.8+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*et,(.2-gt)*nt,et,0,(.8+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et));var xt=new go.PathFigure(0,lt*et,!1);return ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(0,lt*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ht}),go.Shape.defineFigureGenerator("Document",function(Dt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,(1-lt)*et)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(.1*nt,.4*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.9*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.9*et)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(.75*nt,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et));var gt=new go.PathFigure(nt,.5*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et));var mt=new go.PathFigure(nt,.5*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN,gt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.1);var mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var xt=new go.PathFigure(lt*nt,0,!1);return ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),xt.add(new go.PathSegment(go.PathSegment.Move,0,gt*et)),xt.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et)),ht}),go.Shape.defineFigureGenerator("Junction",function(Dt,nt,et){var ht=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=Ut*.5,xt=.5,St=new go.PathFigure(nt,xt*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,et,nt,(xt+mt)*et,(xt+mt)*nt,et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,xt*et,(xt-mt)*nt,et,0,(xt+mt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,0,0,(xt-mt)*et,(xt-mt)*nt,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,xt*et,(xt+mt)*nt,0,nt,(xt-mt)*et));var zt=new go.PathFigure((gt+lt)*nt,(gt+lt)*et,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,gt*nt,gt*et)),zt.add(new go.PathSegment(go.PathSegment.Move,gt*nt,(gt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Line,(gt+lt)*nt,gt*et)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Dt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close());var gt=new go.PathFigure(.1*nt,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.75*et)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=.5,mt=new go.PathFigure(.5*nt,et,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*nt,.9*et,nt,(gt+lt)*et,(gt+lt)*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.7);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,lt*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Dt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.44*et,.96*nt,.47*et,.93*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.54*et,.86*nt,.57*et,.83*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.4*nt,.4*et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0).close());var gt=new go.PathFigure(.1*nt,.2*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.44*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,.1*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.2*et).close());var gt=new go.PathFigure(.2*nt,.1*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.1*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.9*et)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=1-lt,mt=new go.PathFigure(0,0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close());var xt=new go.PathFigure(.5*lt*nt,lt*et,!1);return ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var xt=new go.PathFigure(nt,.5*et,!1);return ht.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)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Dt,nt,et){var ht=new go.Geometry;et=et/.8;var lt=new go.PathFigure(0,.7*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.3*et,.5*nt,.6*et,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*et,.5*nt,.4*et,.5*nt,et).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN,gt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN,gt=Dt?Dt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(gt)&&(gt=.3);var mt=new go.PathFigure(0,0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure((1-lt)*nt,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,lt*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ht}),go.Shape.defineFigureGenerator("Process",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var mt=new go.PathFigure(lt*nt,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et).close());var gt=new go.PathFigure(0,.5*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.25);var gt=new go.PathFigure(lt*nt,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et));var mt=new go.PathFigure(lt*nt,0,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*nt,et)),ht.spot1=new go.Spot(lt,0),ht.spot2=new go.Spot(1-lt,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.25*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*nt,.5*et,.25*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*nt,.5*et,.25*nt,.5*et)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Dt,nt,et){var ht=new go.Geometry,lt=Dt?Dt.parameter1:NaN;isNaN(lt)&&(lt=.1);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,(1-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*et).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(.5+lt)*nt,0,nt,(.5-lt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,(.5+lt)*et,(.5+lt)*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=.5,mt=new go.PathFigure(nt,gt*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,et,nt,(gt+lt)*et,(gt+lt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*et,(gt-lt)*nt,et,0,(gt+lt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,gt*nt,0,0,(gt-lt)*et,(gt-lt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,gt*et,(gt+lt)*nt,0,nt,(gt-lt)*et));var xt=new go.PathFigure(nt,gt*et,!1);ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et));var St=new go.PathFigure(.8*nt,.75*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),St.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),St.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),St.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),St.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ht}),go.Shape.defineFigureGenerator("Ground",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.1,gt=.1,mt=.9,xt=.5,St=new go.PathFigure(.8*nt,.5*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var zt=new go.PathFigure((mt+gt)*nt,xt*et,!0);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,(mt+lt)*nt,(xt-gt)*et,(mt+gt)*nt,(xt-lt)*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=Ut*.4,mt=Ut*.1,xt=.1,St=.9,zt=.5,Jt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+gt)*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-gt)*et));var re=new go.PathFigure((St+xt)*nt,zt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt+xt)*et,(St+xt)*nt,(zt+mt)*et,(St+mt)*nt,(zt+xt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt)*nt,zt*et,(St-mt)*nt,(zt+xt)*et,(St-xt)*nt,(zt+mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-xt)*et,(St-xt)*nt,(zt-mt)*et,(St-mt)*nt,(zt-xt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt)*nt,zt*et,(St+mt)*nt,(zt-xt)*et,(St+xt)*nt,(zt-mt)*et)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*lt,mt=0,xt=.5,St=new go.PathFigure(.8*nt,.5*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(xt-lt)*et,.7*nt,(xt-gt)*et)),lt=.1,gt=Ut*.1,mt=.9,xt=.5;var zt=new go.PathFigure((mt-lt)*nt,xt*et,!0);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*lt,mt=0,xt=.5,St=new go.PathFigure(0,0,!0);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt+gt)*nt,(xt-lt)*et,.8*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(xt+gt)*et,(mt+gt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*lt,mt=.2,xt=.5,St=new go.PathFigure(.1*nt,0,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var zt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.7*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(xt-lt)*et,.7*nt,(xt-gt)*et)),lt=.1,gt=Ut*.1,mt=.9,xt=.5;var Jt=new go.PathFigure((mt-lt)*nt,xt*et,!0);return ht.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*lt,mt=.2,xt=.5,St=new go.PathFigure(.1*nt,0,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,et,.35*nt,.25*et,.35*nt,.75*et));var zt=new go.PathFigure(.2*nt,0,!0);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt)*nt,(xt-lt)*et,.9*nt,(xt-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,0,.45*nt,.75*et,.45*nt,.25*et).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.1,gt=.1,mt=.1,xt=.5,St=new go.PathFigure((mt-lt*.5)*nt,et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.3,St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.5,St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.7,St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.9,St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt*.5)*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.5,gt=.5,mt=.5,xt=.5,St=new go.PathFigure((mt-gt)*nt,xt*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,(mt+lt)*nt,(xt-gt)*et,(mt+gt)*nt,(xt-lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*nt,xt*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*nt,xt*et,mt*nt,(xt-gt)*et,mt*nt,(xt+gt)*et)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("Diode",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Dt,nt,et){var ht=new go.Geometry,lt=nt,gt=et;nt=nt*.38,et=et*.6;var mt=Ut*.8,xt=.8,St=0,zt=.5,Jt=(lt-nt)/2,re=(gt-et)/2,oe=new go.PathFigure(St*nt+Jt,(zt+xt)*et+re,!0);ht.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt)*nt+Jt,zt*et+re,(St-mt)*nt+Jt,(zt+xt)*et+re,(St-xt)*nt+Jt,(zt+mt)*et+re)),oe.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt-xt)*et+re,(St-xt)*nt+Jt,(zt-mt)*et+re,(St-mt)*nt+Jt,(zt-xt)*et+re)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt+mt*.5)*nt+Jt,zt*et+re,St*nt+Jt,(zt-xt)*et+re,(St-xt+mt*.5)*nt+Jt,(zt-mt)*et+re)),oe.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt+xt)*et+re,(St-xt+mt*.5)*nt+Jt,(zt+mt)*et+re,St*nt+Jt,(zt+xt)*et+re).close()),mt=Ut*.4,xt=.4,St=.2,zt=.5;var $t=new go.PathFigure(St*nt+Jt,(zt+xt)*et+re,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt)*nt+Jt,zt*et+re,(St-mt)*nt+Jt,(zt+xt)*et+re,(St-xt)*nt+Jt,(zt+mt)*et+re)),$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt-xt)*et+re,(St-xt)*nt+Jt,(zt-mt)*et+re,(St-mt)*nt+Jt,(zt-xt)*et+re)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt+mt*.5)*nt+Jt,zt*et+re,St*nt+Jt,(zt-xt)*et+re,(St-xt+mt*.5)*nt+Jt,(zt-mt)*et+re)),$t.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt+xt)*et+re,(St-xt+mt*.5)*nt+Jt,(zt+mt)*et+re,St*nt+Jt,(zt+xt)*et+re).close()),mt=Ut*.2,xt=.2,St=.5,zt=.5;var Le=new go.PathFigure((St-xt)*nt+Jt,zt*et+re,!0);ht.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt-xt)*et+re,(St-xt)*nt+Jt,(zt-mt)*et+re,(St-mt)*nt+Jt,(zt-xt)*et+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt)*nt+Jt,zt*et+re,(St+mt)*nt+Jt,(zt-xt)*et+re,(St+xt)*nt+Jt,(zt-mt)*et+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt+xt)*et+re,(St+xt)*nt+Jt,(zt+mt)*et+re,(St+mt)*nt+Jt,(zt+xt)*et+re)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(St-xt)*nt+Jt,zt*et+re,(St-mt)*nt+Jt,(zt+xt)*et+re,(St-xt)*nt+Jt,(zt+mt)*et+re)),mt=Ut*.4,xt=.4,St=.8,zt=.5;var de=new go.PathFigure(St*nt+Jt,(zt-xt)*et+re,!0);ht.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt)*nt+Jt,zt*et+re,(St+mt)*nt+Jt,(zt-xt)*et+re,(St+xt)*nt+Jt,(zt-mt)*et+re)),de.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt+xt)*et+re,(St+xt)*nt+Jt,(zt+mt)*et+re,(St+mt)*nt+Jt,(zt+xt)*et+re)),de.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt-mt*.5)*nt+Jt,zt*et+re,St*nt+Jt,(zt+xt)*et+re,(St+xt-mt*.5)*nt+Jt,(zt+mt)*et+re)),de.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt-xt)*et+re,(St+xt-mt*.5)*nt+Jt,(zt-mt)*et+re,St*nt+Jt,(zt-xt)*et+re).close()),mt=Ut*.8,xt=.8,St=1,zt=.5;var Fe=new go.PathFigure(St*nt+Jt,(zt-xt)*et+re,!0);return ht.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt)*nt+Jt,zt*et+re,(St+mt)*nt+Jt,(zt-xt)*et+re,(St+xt)*nt+Jt,(zt-mt)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt+xt)*et+re,(St+xt)*nt+Jt,(zt+mt)*et+re,(St+mt)*nt+Jt,(zt+xt)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(St+xt-mt*.5)*nt+Jt,zt*et+re,St*nt+Jt,(zt+xt)*et+re,(St+xt-mt*.5)*nt+Jt,(zt+mt)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,St*nt+Jt,(zt-xt)*et+re,(St+xt-mt*.5)*nt+Jt,(zt-mt)*et+re,St*nt+Jt,(zt-xt)*et+re).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Move,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.54*et)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.35*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,0).close());var gt=new go.PathFigure(.1*nt,et,!0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var mt=new go.PathFigure(.6*nt,et,!0,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,et).close());var xt=new go.PathFigure(0,.5*et,!1);return ht.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)),ht}),go.Shape.defineFigureGenerator("Power",function(Dt,nt,et){var ht=new go.Geometry,lt=Ut*.4,gt=.4,mt=.5,xt=.5,St=Pt(),zt=Pt(),Jt=Pt(),re=Pt();Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.5,St,St,zt,Jt,re);var oe=Mt(zt.x,zt.y),$t=new go.PathFigure(zt.x*nt,zt.y*et,!0);ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,Jt.x*nt,Jt.y*et,re.x*nt,re.y*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,(mt-lt)*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et)),Be(mt-gt,xt,mt-gt,xt-lt,mt-lt,xt-gt,mt,xt-gt,.5,Jt,re,zt,St,St),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,Jt.x*nt,Jt.y*et,re.x*nt,re.y*et)),lt=Ut*.3,gt=.3,Be(mt-gt,xt,mt-gt,xt-lt,mt-lt,xt-gt,mt,xt-gt,.5,Jt,re,zt,St,St),$t.add(new go.PathSegment(go.PathSegment.Line,zt.x*nt,zt.y*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,xt*et,re.x*nt,re.y*et,Jt.x*nt,Jt.y*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+gt)*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,xt*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),Be(mt,xt-gt,mt+lt,xt-gt,mt+gt,xt-lt,mt+gt,xt,.5,St,St,zt,Jt,re),$t.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,re.x*nt,re.y*et,Jt.x*nt,Jt.y*et).close());var $t=new go.PathFigure(.45*nt,0,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),$t.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),ne(St),ne(zt),ne(Jt),ne(re),ne(oe),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et/2,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,nt/2,et/2,nt/2,et/2));function gt(mt,xt,St){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+xt)*nt,(.8+St)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+xt)*nt,(.5+St)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+xt)*nt,(.5+St)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+xt)*nt,(.8+St)*et).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.37*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.11*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.04*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.49*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.37*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.86*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*nt,.91*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*nt,.78*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.56*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*nt,0,-.25*nt,.63*et,.45*nt,.44*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*nt,.42*et,.48*nt,.17*et,.54*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*nt,.18*et,.59*nt,.29*et,.58*nt,.28*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*nt,.6*et,.8*nt,.34*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*nt,.31*et,.87*nt,.48*et,.88*nt,.43*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,1.17*nt,.76*et,.82*nt,.8*et).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=0,mt=0,xt=lt*Ut,St=.4*Math.SQRT2/2+.5,zt=.5-.5*Math.SQRT2/2,Jt=1,re=.5,oe=.5,$t=0,Le=new go.PathFigure(St*nt,(1-zt)*et,!1);return ht.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,re*et,Jt*nt,.7*et,Jt*nt,re*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(oe+gt)*nt,($t+gt)*et,(.5+lt+gt)*nt,(.5-xt+gt)*et,(.5+xt+gt)*nt,(.5-lt+gt)*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-xt+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-xt+mt)*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*nt,.9*et,(.5-lt+gt)*nt,(.5+xt+mt)*et,(.5-xt+gt)*nt,.9*et)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*nt,.8*et)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*nt,.9*et)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*nt,.95*et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var gt=new go.PathFigure(nt,et,!1);ht.add(gt);var mt=new go.PathFigure(0,.5*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.2*nt,.35*et,.3*nt,.35*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.7*nt,.65*et,.8*nt,.65*et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et).close());var lt=new go.PathFigure(0,.2*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.7*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,0,.6*nt,.5*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,et,.4*nt,.5*et,nt,.5*et).close());var gt=new go.PathFigure(.45*nt,.73*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.73*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*nt,.27*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*nt,.27*et)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var gt=new go.PathFigure(.335*nt,(1-.555)*et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.68*et,(1-.12)*nt,.46*et,(1-.02)*nt,.54*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*nt,(1-.555)*et,.02*nt,.54*et,.12*nt,.46*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*nt,(1-.595)*et));var mt=.5-.285,xt=.5,St=mt,zt=Math.PI/4,Jt=4*(1-Math.cos(zt))/(3*Math.sin(zt)),re=Jt*.5,oe=mt,$t=mt,Le=Jt*oe,de=Jt*$t;gt.add(new go.PathSegment(go.PathSegment.Bezier,(xt-oe)*nt,St*et,(xt-(Le+oe)/2)*nt,(St+($t+de)/2)*et,(xt-oe)*nt,(St+de)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,xt*nt,(St-$t)*et,(xt-oe)*nt,(St-de)*et,(xt-Le)*nt,(St-$t)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(xt+oe)*nt,St*et,(xt+Le)*nt,(St-$t)*et,(xt+oe)*nt,(St-de)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(xt+oe)*nt,(St+de)*et,(xt+(Le+oe)/2)*nt,(St+($t+de)/2)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*nt,(1-.595)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.555)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*nt,(1-.405)*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*nt,(1-.405)*et));var Fe=new go.PathFigure(.2*nt,et,!1);ht.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.8*et));var rn=new go.PathFigure(.8*nt,et,!1);return ht.add(rn),rn.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,et).close());var gt=new go.PathFigure(.2*nt,.2*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt);var gt=new go.PathFigure(nt,et,!1);ht.add(gt);var mt=new go.PathFigure(.1*nt,et,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.05*nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.8*et,0,et,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*nt,.1*et,.5*nt,0,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,et,nt,et,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,et));var gt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*nt,.875*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*nt,.875*et,gt*nt,gt*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.325*et,.575*nt,.725*et,.625*nt,.375*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.75*et,.375*nt,.375*et,.425*nt,.725*et)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.45*nt,.95*et,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*nt,.85*et,.17*nt,.95*et,.15*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,.625*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*nt,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*nt,.95*et,0,.675*et,0,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.775*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*nt,.775*et));var gt=new go.PathFigure(.475*nt,.2*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*nt,.175*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.05*et,.35*nt,0,.375*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.375*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.475*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.315*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.32*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.05*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,0,.65*nt,.05*et,.625*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*nt,.0105*et));var mt=new go.PathFigure(.675*nt,.575*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.875*nt,.525*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.85*nt,.95*et,nt,.8*et,nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.95*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.85*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.725*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.775*et)),mt.add(new go.PathSegment(go.PathSegment.Move,.675*nt,.575*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.775*nt,.775*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*.5,mt=new go.PathFigure(nt,lt*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,et,nt,(lt+gt)*et,(lt+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*et,(lt-gt)*nt,et,0,(lt+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt*nt,0,0,(lt-gt)*et,(lt-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,lt*et,(lt+gt)*nt,0,nt,(lt-gt)*et));var xt=new go.PathFigure(lt*nt,0,!1);return ht.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)),ht}),go.Shape.defineFigureGenerator("Package",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.15*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close());var gt=new go.PathFigure(0,.15*et,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.15*et).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(0,.5*et,!1);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close());var gt=new go.PathFigure(0,.2*et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.2*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*et).close());var mt=new go.PathFigure(0,.6*et,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.6*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.15*nt,.6*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et));var gt=new go.PathFigure(.15*nt,.6*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.33*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Move,nt,.66*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(nt,.8*et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et).close());var mt=.1,xt=Ut*.1,St=.2,zt=.9,Jt=new go.PathFigure((St-mt)*nt,zt*et,!0);ht.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-mt)*et,(St-mt)*nt,(zt-xt)*et,(St-xt)*nt,(zt-mt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(St+mt)*nt,zt*et,(St+xt)*nt,(zt-mt)*et,(St+mt)*nt,(zt-xt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt+mt)*et,(St+mt)*nt,(zt+xt)*et,(St+xt)*nt,(zt+mt)*et)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(St-mt)*nt,zt*et,(St-xt)*nt,(zt+mt)*et,(St-mt)*nt,(zt+xt)*et).close()),mt=.1,xt=Ut*.1,St=.8,zt=.9;var re=new go.PathFigure((St-mt)*nt,zt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt-mt)*et,(St-mt)*nt,(zt-xt)*et,(St-xt)*nt,(zt-mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(St+mt)*nt,zt*et,(St+xt)*nt,(zt-mt)*et,(St+mt)*nt,(zt-xt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(zt+mt)*et,(St+mt)*nt,(zt+xt)*et,(St+xt)*nt,(zt+mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(St-mt)*nt,zt*et,(St-xt)*nt,(zt+mt)*et,(St-mt)*nt,(zt+xt)*et).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.2*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var mt=new go.PathFigure(.5*nt,.8*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.1*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.8*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.8*et));var xt=new go.PathFigure(.5*nt,.7*et,!1);ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var St=.1,zt=Ut*.1,Jt=.1,re=.9,oe=new go.PathFigure((Jt-St)*nt,re*et,!0);ht.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(re-St)*et,(Jt-St)*nt,(re-zt)*et,(Jt-zt)*nt,(re-St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+St)*nt,re*et,(Jt+zt)*nt,(re-St)*et,(Jt+St)*nt,(re-zt)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(re+St)*et,(Jt+St)*nt,(re+zt)*et,(Jt+zt)*nt,(re+St)*et)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-St)*nt,re*et,(Jt-zt)*nt,(re+St)*et,(Jt-St)*nt,(re+zt)*et)),St=.1,zt=Ut*.1,Jt=.4,re=.9;var $t=new go.PathFigure((Jt-St)*nt,re*et,!0);return ht.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(re-St)*et,(Jt-St)*nt,(re-zt)*et,(Jt-zt)*nt,(re-St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Jt+St)*nt,re*et,(Jt+zt)*nt,(re-St)*et,(Jt+St)*nt,(re-zt)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Jt*nt,(re+St)*et,(Jt+St)*nt,(re+zt)*et,(Jt+zt)*nt,(re+St)*et)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Jt-St)*nt,re*et,(Jt-zt)*nt,(re+St)*et,(Jt-St)*nt,(re+zt)*et)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.1*nt,.4*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.9*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.4*et).close());var gt=new go.PathFigure(.45*nt,.7*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et));var mt=new go.PathFigure(.55*nt,.4*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.9*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.4*et).close());var Jt=.05,re=Ut*.05,oe=.175,$t=.95,xt=new go.PathFigure((oe-Jt)*nt,$t*et,!0);ht.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t-Jt)*et,(oe-Jt)*nt,($t-re)*et,(oe-re)*nt,($t-Jt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Jt)*nt,$t*et,(oe+re)*nt,($t-Jt)*et,(oe+Jt)*nt,($t-re)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t+Jt)*et,(oe+Jt)*nt,($t+re)*et,(oe+re)*nt,($t+Jt)*et)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Jt)*nt,$t*et,(oe-re)*nt,($t+Jt)*et,(oe-Jt)*nt,($t+re)*et));var Jt=.05,re=Ut*.05,oe=.375,$t=.95,St=new go.PathFigure((oe-Jt)*nt,$t*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t-Jt)*et,(oe-Jt)*nt,($t-re)*et,(oe-re)*nt,($t-Jt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Jt)*nt,$t*et,(oe+re)*nt,($t-Jt)*et,(oe+Jt)*nt,($t-re)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t+Jt)*et,(oe+Jt)*nt,($t+re)*et,(oe+re)*nt,($t+Jt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Jt)*nt,$t*et,(oe-re)*nt,($t+Jt)*et,(oe-Jt)*nt,($t+re)*et));var Jt=.05,re=Ut*.05,oe=.625,$t=.95,zt=new go.PathFigure((oe-Jt)*nt,$t*et,!0);ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t-Jt)*et,(oe-Jt)*nt,($t-re)*et,(oe-re)*nt,($t-Jt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Jt)*nt,$t*et,(oe+re)*nt,($t-Jt)*et,(oe+Jt)*nt,($t-re)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t+Jt)*et,(oe+Jt)*nt,($t+re)*et,(oe+re)*nt,($t+Jt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Jt)*nt,$t*et,(oe-re)*nt,($t+Jt)*et,(oe-Jt)*nt,($t+re)*et));var Jt=.05,re=Ut*.05,oe=.825,$t=.95,Le=new go.PathFigure((oe-Jt)*nt,$t*et,!0);ht.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t-Jt)*et,(oe-Jt)*nt,($t-re)*et,(oe-re)*nt,($t-Jt)*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Jt)*nt,$t*et,(oe+re)*nt,($t-Jt)*et,(oe+Jt)*nt,($t-re)*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,oe*nt,($t+Jt)*et,(oe+Jt)*nt,($t+re)*et,(oe+re)*nt,($t+Jt)*et)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Jt)*nt,$t*et,(oe-re)*nt,($t+Jt)*et,(oe-Jt)*nt,($t+re)*et).close());var de=new go.PathFigure(0,et,!1);return ht.add(de),de.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et).close());var mt=new go.PathFigure(.15*nt,et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.5*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,et).close());var xt=.05,St=Ut*.05,zt=.35,Jt=.775,re=new go.PathFigure((zt-xt)*nt,Jt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(Jt-xt)*et,(zt-xt)*nt,(Jt-St)*et,(zt-St)*nt,(Jt-xt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(zt+xt)*nt,Jt*et,(zt+St)*nt,(Jt-xt)*et,(zt+xt)*nt,(Jt-St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(Jt+xt)*et,(zt+xt)*nt,(Jt+St)*et,(zt+St)*nt,(Jt+xt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(zt-xt)*nt,Jt*et,(zt-St)*nt,(Jt+xt)*et,(zt-xt)*nt,(Jt+St)*et).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.8*et).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.75*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Globe",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,.75*nt,0,nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,nt,.75*et,.75*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.25*nt,et,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,.25*et,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et,.15*nt,.25*et,.15*nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.85*nt,.75*et,.85*nt,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.15*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.15*et,.35*nt,.3*et,.65*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*nt,.85*et,.35*nt,.7*et,.65*nt,.7*et)),ht}),go.Shape.defineFigureGenerator("Wave",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.25*et,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.25*et,.1*nt,0,.2*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.25*et,.425*nt,.5*et,.575*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.25*et,.8*nt,0,.9*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.75*et,.1*nt,.5*et,.2*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*nt,.75*et,.425*nt,et,.575*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.75*et,.8*nt,.5*et,.9*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Operator",function(Dt,nt,et){var ht=new go.Geometry,lt=.3,gt=Ut*.3,mt=.5,xt=.7,St=new go.PathFigure((mt-lt)*nt,xt*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et));var zt=new go.PathFigure(0,.7*et,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.7*et,0,0,nt,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.5*nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.65*nt,.3*et,.65*nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,.35*nt,.5*et,.35*nt,.3*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.3*nt,.6*et,.1*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.2*nt,et,.35*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,et,.7*nt,.6*et,.9*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.65*et,.8*nt,et,.65*nt,.95*et)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt,0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,0,.075*et,0,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,0,et,.4*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.4*et,.8*nt,et,.85*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.1*et));var gt=new go.PathFigure(0,.6*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*et)),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.4*et)),ht}),go.Shape.defineFigureGenerator("Delete",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*.5,mt=.5,xt=.5,St=new go.PathFigure((mt-lt)*nt,xt*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et));var zt=new go.PathFigure(.15*nt,.5*et,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.5*et)),ht}),go.Shape.defineFigureGenerator("Flag",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.1*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.1*et,.15*nt,0,.35*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.1*et,.65*nt,.2*et,.85*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.5*et,.85*nt,.6*et,.65*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,.35*nt,.4*et,.15*nt,.4*et).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Dt,nt,et){var ht=new go.Geometry,lt=.5,gt=Ut*.5,mt=.5,xt=.5,St=new go.PathFigure((mt-lt)*nt,xt*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et).close()),lt=.05,gt=Ut*.05,mt=.5,xt=.8;var zt=new go.PathFigure((mt-lt)*nt,xt*et,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt-lt)*et,(mt-lt)*nt,(xt-gt)*et,(mt-gt)*nt,(xt-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,xt*et,(mt+gt)*nt,(xt-lt)*et,(mt+lt)*nt,(xt-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(xt+lt)*et,(mt+lt)*nt,(xt+gt)*et,(mt+gt)*nt,(xt+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,xt*et,(mt-gt)*nt,(xt+lt)*et,(mt-lt)*nt,(xt+gt)*et).close()),zt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.7*et)),zt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.5*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,.75*nt,.475*et,.75*nt,.225*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.35*et,.4*nt,.2*et,.3*nt,.25*et)),ht}),go.Shape.defineFigureGenerator("Location",function(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.3*et)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et));var gt=new go.PathFigure(.2*nt,.5*et,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*nt,.5*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.3*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.3*et,.25*nt,0,.75*nt,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.35*et)),ht}),go.Shape.defineFigureGenerator("Gear",function(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.5*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*nt,.3*et,0,.375*et,.05*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*nt,.075*et,.3*nt,.225*et,.4*nt,.175*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*nt,.075*et,.46*nt,.05*et,.525*nt,.05*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*nt,.4*et,.525*nt,.275*et,.475*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*nt,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.55*et,nt,.4*et,nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*nt,.7*et,.675*nt,.55*et,.675*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*nt,.85*et,.65*nt,.7*et,.65*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*nt,et,.61*nt,.85*et,.61*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*et,.435*nt,et,0,et).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,.2*et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*nt,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("Eject",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.7).close());var gt=new go.PathFigure(0,et*.6,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*1,et*1,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*nt,et*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,nt,et*.85).close());var gt=new go.PathFigure(.126*nt,.85*et,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.45*et)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*nt,.85*et).close());var mt=new go.PathFigure(.402*nt,.85*et,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.402*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.45*et)),mt.add(new go.PathSegment(go.PathSegment.Line,.598*nt,.85*et).close());var xt=new go.PathFigure(.678*nt,.85*et,!1);ht.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 St=new go.PathFigure(.5*nt,.1*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,et*1,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.184,et*(1-.184)).close());var gt=new go.PathFigure(nt*.204,et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.204,et*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.388,et*1).close());var mt=new go.PathFigure(nt*.408,et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.408,et*(1-.184*2))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*(1-.184*3))),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.592,et*1).close());var xt=new go.PathFigure(nt*.612,et,!0);ht.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 St=new go.PathFigure(nt*.816,et,!0);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),St.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,0).close());var gt=new go.PathFigure(nt*.055,.07*et,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.1).close());var mt=new go.PathFigure(nt*.055,.13*et,!0);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.13)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.16)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.16).close());var xt=new go.PathFigure(nt*.055,.18*et,!0);ht.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 St=new go.PathFigure(nt*1,0,!0);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),St.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(.55*nt,et,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.7*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*nt,.525*et,0,.4*et,.225*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.475*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.325*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.1*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*nt,.2*et,.975*nt,0,nt,.08*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,.45*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.95*et)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*1,et*.5,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.4*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.2*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*et)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.15,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,.8*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.65*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,.55*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,.6*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,.575*et)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.9,.6*et).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*nt,.425*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*nt,.5*et,.075*nt,.075*et).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(0,0,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,nt*0,nt*.3,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.08,et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*1),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*2),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*3),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*4),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*5),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*6),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*7),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*8),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*9),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*10),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*11),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*12),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*13),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*14),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*(.08+.056*15),et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var gt=new go.PathFigure(0,0,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,nt*1,nt*.3,nt*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1));var mt=new go.PathFigure(nt*.11,et*.1,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*0),et*.8)),mt.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);ht.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 St=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Dt,nt,et){var ht=new go.Geometry,lt=8,gt=lt*Ut,mt=new go.PathFigure(lt,0,!1);ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.86,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.14)),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,gt,gt,0).close());var xt=new go.PathFigure(nt*.83,0,!1);ht.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 St=new go.PathFigure(nt*.83,et*1,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*1).close());var zt=new go.PathFigure(nt*.78,et*.05,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.05)),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.66,et*.25)),zt.add(new go.PathSegment(go.PathSegment.Line,nt*.78,et*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Dt,nt,et){var ht=Dt?Dt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*Ut,gt=et*.8,mt=new go.Geometry,xt=new go.PathFigure(ht,0,!0);return mt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,nt-lt,0,nt,lt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt,gt-ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,gt,nt,gt-lt,nt-lt,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),xt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,gt)),xt.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,lt,gt,0,gt-lt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,lt,lt,0).close()),lt>1?(mt.spot1=new go.Spot(0,0,lt,lt),mt.spot2=new go.Spot(1,.8,-lt,-lt)):(mt.spot1=go.Spot.TopLeft,mt.spot2=new go.Spot(1,.8)),mt}),go.Shape.defineFigureGenerator("Repeat",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*.45,!0);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.2,et*.45).close());var gt=new go.PathFigure(nt*1,et*.55,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*0)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.8,et*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Dt,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(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*.1,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.9).close());var gt=new go.PathFigure(nt*.1,et*.2,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.22,et*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.1,et*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.275,et*.25).close());var mt=new go.PathFigure(nt*.28,et*.37,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.37)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.41)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.28,et*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Dt,nt,et){var ht=new go.Geometry,lt=15,gt=lt*Ut,mt=new go.PathFigure(nt*.62,et*.475,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt,et-lt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-lt,et,nt,et-gt,nt-gt,et)),mt.add(new go.PathSegment(go.PathSegment.Line,lt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-lt,gt,et,0,et-gt)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.475)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.38,et*.03)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.36,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.62,et*.03).close()),gt>1?(ht.spot1=new go.Spot(0,0,gt,gt),ht.spot2=new go.Spot(1,1,-gt,-gt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var gt=.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-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),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-gt)).close());var mt=new go.PathFigure(nt*.4,et*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*.66)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*(1-.26),et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.44)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var gt=.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-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),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-gt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*0,et*1,!0);ht.add(lt);var gt=.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-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.64,et*(1-gt))),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-gt))),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.07,et*(1-gt))),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-gt)).close());var mt=new go.PathFigure(nt*.5,et*0,!0);return ht.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.26,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.63)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.6,et*.25)),mt.add(new go.PathSegment(go.PathSegment.Line,nt*.74,et*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.15,et*0,!1);ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.85,et*0)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.3,et*1).close());var gt=new go.PathFigure(nt*.235,et*.28,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.765,et*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.655,et*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,nt*.345,et*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Dt,nt,et){var ht=new go.Geometry,lt=new go.PathFigure(nt*.5,et*0,!0);return ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.75,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.55,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.65,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.5,et*1)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*0,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.25,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.45,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,nt*.35,et*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var un={},Nn="5.0",Mt={},Pt=null,ne=!1,Ne=!1,Be=null,Pe=!1,Bt=null,Ut=null,ue=0;ue<arguments.length;ue++){var se=arguments[ue];if(se!==null)switch(typeof se){case"number":Nn=se.toFixed(1);break;case"string":se.match(new RegExp("^[0-9]\\.[0-9]+$"))?Nn=se:Be=se;break;case"object":typeof se.is3D!="undefined"?Pt=se:Mt=se;break;case"boolean":ne=se,Ne=!0;break}}Pt===null&&(Pt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Mt.material_id!==void 0&&!Ne&&(ne=!0)),Be!==null&&Mt.id===void 0&&(Mt.id=Be);var Se="",Xe="",pe=!1,Ht=null,Dt=null,nt=null,et=!1,ht=null,lt=null,gt=null,mt=null,xt=null;Mt.height!==void 0&&(Mt.height=Math.round(Mt.height)),Mt.width!==void 0&&(Mt.width=Math.round(Mt.width));var St=function(xe){return parseFloat(xe)>4?parseFloat(xe):5};un.setHTML5Codebase=function(xe,on){Ut=xe,ce(xe,on)},un.setJavaCodebase=un.setJavaCodebaseVersion=un.isCompiledInstalled=un.setPreCompiledScriptPath=un.setPreCompiledResourcePath=function(){},un.setHTML5CodebaseVersion=function(xe,on){var tn=parseFloat(xe);if(tn!==NaN&&tn<5){console.log("The GeoGebra HTML5 codebase version "+tn+" is deprecated. Using version latest instead.");return}Bt=xe,Tt(xe,on)},un.getHTML5CodebaseVersion=function(){return Dt},un.getParameters=function(){return Mt},un.setFontsCSSURL=function(xe){mt=xe},un.setGiacJSURL=function(xe){},un.setJNLPFile=function(xe){Se=xe},un.setJNLPBaseDir=function(xe){},un.inject=function(){function xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var on="auto",tn=Mt.id,Cn,Ie=!1,ve=0;ve<arguments.length;ve++){var ze=arguments[ve];typeof ze=="string"?(ze=ze.toLowerCase(),ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?on=ze:tn=arguments[ve]):typeof ze=="boolean"?Ie=ze:ze instanceof HTMLElement&&(Cn=ze)}je();function je(){if(!Pe){setTimeout(je,200);return}on=Zn(on);var He=Cn||document.getElementById(tn);if(!He){console.log("possibly bug on ajax loading? ");return}if(un.removeExistingApplet(He,!1),Mt.width===void 0&&He.clientWidth&&(Mt.width=He.clientWidth),Mt.height===void 0&&He.clientHeight&&(Mt.height=He.clientHeight),!(Mt.width&&Mt.height)&&on==="html5"&&(delete Mt.width,delete Mt.height),Ht=on,on==="screenshot")rn(He,Mt);else{var Ot=!1;Mt.hasOwnProperty("playButton")&&Mt.playButton||Mt.hasOwnProperty("clickToLoad")&&Mt.clickToLoad?Ot=!0:Mt.hasOwnProperty("playButtonAutoDecide")&&Mt.playButtonAutoDecide&&(Ot=(!zt()||xe())&&Jt()),Ot?(Ht="screenshot",jn(He,Mt,Ie,on)):Fe(He,Mt,Ie)}}};function zt(){try{return window.self!==window.top}catch(xe){return!0}}function Jt(){return Mt.hasOwnProperty("screenshotGenerator")&&Mt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}un.getViews=function(){return Pt},un.isJavaInstalled=function(){return!1};var re=function(xe){var on=function(ve){var ze=JSON.parse(ve),je=function(Lt){return Lt.type=="G"||Lt.type=="E"},He=ze.elements?ze.elements.filter(je)[0]:ze;if(!He||!He.url){tn();return}Mt.fileName=He.url,oe(He.settings||{}),Pt.is3D=!0;var Ot="https://www.geogebra.org/images/";un.setPreviewImage(ht||He.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),xe()},tn=function(){Mt.onError&&Mt.onError(),_e("Error: Fetching material (id "+Mt.material_id+") failed.",Mt)},Cn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ie="/materials/"+Mt.material_id+"?scope=basic";$t("https://"+Cn+"/api/proxy.php?path="+encodeURIComponent(Ie),on,tn)};function oe(xe){var on=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(tn){xe[tn]=!!xe[tn]}),on.forEach(function(tn){Mt[tn]===void 0&&xe[tn]!==void 0&&(Mt[tn]=xe[tn])}),Mt.showToolBarHelp===void 0&&(Mt.showToolBarHelp=Mt.showToolBar)}function $t(xe,on,tn){var Cn=new XMLHttpRequest;Cn.open("GET",xe),Cn.onload=function(){on(Cn.responseText)},Cn.onerror=tn,Cn.send()}un.isHTML5Installed=function(){return!0},un.getLoadedAppletType=function(){return Ht},un.setPreviewImage=function(xe,on,tn){ht=xe,lt=on,gt=tn},un.removeExistingApplet=function(xe,on){var tn;typeof xe=="string"&&(xe=document.getElementById(xe)),Ht=null;var Cn=null;for(tn=0;tn<xe.childNodes.length;tn++){var Ie=xe.childNodes[tn],ve=Ie.className;ve==="applet_screenshot"?on?(Ie.style.display="block",Ht="screenshot"):Ie.style.display="none":ve!=="applet_scaler prerender"&&(xe.removeChild(Ie),Cn=ve&&ve.indexOf("appletParameters")!=-1?Ie.id:null,tn--)}var ze=Mt.id!==void 0?Mt.id:Cn,je=window[ze];je&&typeof je.getBase64=="function"&&(je.remove(),window[ze]=null)},un.refreshHitPoints=function(){if(St(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xe=un.getAppletObject();return xe&&typeof xe.recalculateEnvironments=="function"?(xe.recalculateEnvironments(),!0):!1},un.startAnimation=function(){var xe=un.getAppletObject();return xe&&typeof xe.startAnimation=="function"?(xe.startAnimation(),!0):!1},un.stopAnimation=function(){var xe=un.getAppletObject();return xe&&typeof xe.stopAnimation=="function"?(xe.stopAnimation(),!0):!1},un.getAppletObject=function(){var xe=Mt.id!==void 0?Mt.id:"ggbApplet";return window[xe]},un.resize=function(){};var Le=function(xe,on,tn){var Cn=document.createElement("param");Cn.setAttribute("name",on),Cn.setAttribute("value",tn),xe.appendChild(Cn)},de=function(xe){return xe&&xe!=="false"},Fe=function(xe,on,tn){St(Dt)<=4.2&&(tn=!0);var Cn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Dt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(Cn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ie=document.createElement("div");Ie.classList.add("appletParameters","notranslate");var ve=on.width,ze=on.height;if(on.disableAutoScale=on.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():on.disableAutoScale,on.width!==void 0)if(St(Dt)<=4.4)de(on.showToolBar)&&(on.height-=7),de(on.showAlgebraInput)&&(on.height-=37),on.width<605&&de(on.showToolBar)&&(on.width=605,ve=605);else{var je=100;(de(on.showToolBar)||de(on.showMenuBar))&&(on.hasOwnProperty("customToolBar")&&(on.customToolbar=on.customToolBar),je=de(on.showMenuBar)?245:155),ve<je&&(on.width=je,ve=je)}Ie.style.border="none",Ie.style.display="inline-block";for(var He in on)on.hasOwnProperty(He)&&He!=="appletOnLoad"&&Ie.setAttribute("data-param-"+He,on[He]);mt&&Ie.setAttribute("data-param-fontscssurl",mt),un.resize=function(){GGBAppletUtils.responsiveResize(xe,on)},window.addEventListener("resize",function(Ue){un.resize()});var Ot=typeof on.appletOnLoad=="function"?on.appletOnLoad:function(){};if(!tn&&on.width!==void 0){on.hasOwnProperty("showSplash")||Ie.setAttribute("data-param-showSplash","false");var Lt=xe.querySelector(".applet_scaler.prerender"),wt=Lt!==null;if(wt)var Ft=Lt.querySelector(".ggb_preview");else{var Ft=an(ve,ze,on.borderColor,!1);Lt=document.createElement("div"),Lt.className="applet_scaler",Lt.style.position="relative",Lt.style.display="block",Lt.style.width=ve+"px",Lt.style.height=ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Lt,"66%"),St(Dt)>=5?(on.appletOnLoad=function(Ue){var ti=xe.querySelector(".ggb_preview");ti&&ti.parentNode.removeChild(ti),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Lt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Ue)},wt||Lt.appendChild(Ft)):Ie.appendChild(Ft),Lt.appendChild(Ie),wt||xe.appendChild(Lt),setTimeout(function(){un.resize()},1)}else{var Wt=document.createElement("div");Wt.className="applet_scaler",Wt.style.position="relative",Wt.style.display="block",Wt.appendChild(Ie),xe.appendChild(Wt),on.appletOnLoad=function(Ue){un.resize(),Ot(Ue)}}function kt(Ue,ti){ti&&typeof ti.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ue,ti.appletOnLoad):renderGGBElement(Ue),_e("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ti)}function Xt(Ue,ti){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ue,params:ti}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qn){kt(Qn.article,Qn.params)}),html5AppletsToProcess=null)},St(Dt)<5&&(Ue.className+=" geogebraweb")):kt(Ue,ti)}if(Cn){scriptLoadStarted=!0;for(var $e=0;$e<Ie.childNodes.length;$e++){var Je=Ie.childNodes[$e].tagName;Je==="TABLE"&&(Ie.removeChild(Ie.childNodes[$e]),$e--)}if(ggbHTML5LoadedScript!==null){var fn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');fn!=null&&fn.parentNode.removeChild(fn)}var Ve=document.createElement("script"),Mn=function(){Xt(Ie,on)};Ve.src=Xe+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Dt,ggbHTML5LoadedScript=Ve.src,_e("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",on),!Ut&&(!Bt||Bt=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Mn()):Xe.requirejs?__webpack_require__.e(12).then(function(){var Ue=[__webpack_require__(12)];Mn.apply(null,Ue)}.bind(this)).catch(__webpack_require__.oe):(Ve.onload=Mn,xe.appendChild(Ve))}else Xt(Ie,on);on.height=ze,on.width=ve},rn=function(xe,on,tn){var Cn=an(on.width,on.height,on.borderColor,tn),Ie=document.createElement("div");Ie.style.position="relative",Ie.style.display="block",Ie.style.width=on.width+"px",Ie.style.height=on.height+"px",Ie.className="applet_screenshot applet_scaler"+(tn?" applet_screenshot_play":""),Ie.appendChild(Cn);var ve=GGBAppletUtils.getScale(on,xe,tn);tn?(xe.appendChild(Bn()),window.GGBT_wsf_view||(xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),xe.appendChild(Ie),ve!==1&&!isNaN(ve)&&(GGBAppletUtils.scaleElement(Ie,ve),Ie.style.width=on.width+"px",Ie.style.height=on.height+"px",Ie.parentNode.style.width=on.width*ve+"px",Ie.parentNode.style.height=on.height*ve+"px"),un.resize=function(){De(xe,Cn,Ie,tn)},window.addEventListener("resize",function(ze){un.resize()}),un.resize()};function De(xe,on,tn,Cn){if(xe.contains(on)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}var Ie=GGBAppletUtils.getScale(Mt,xe,Cn);tn.parentNode!==null&&(!isNaN(Ie)&&Ie!==1?(GGBAppletUtils.scaleElement(tn,Ie),tn.parentNode.style.width=Mt.width*Ie+"px",tn.parentNode.style.height=Mt.height*Ie+"px"):(GGBAppletUtils.scaleElement(tn,1),tn.parentNode.style.width=Mt.width+"px",tn.parentNode.style.height=Mt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}un.onExitFullscreen=function(xe,on){on.appendChild(xe)};var jn=function(xe,on,tn,Cn){rn(xe,on,!0);for(var Ie=function(){var je=[];for(ze=0;ze<xe.childNodes.length;ze++)je.push(xe.childNodes[ze]);if(window.GGBT_wsf_view){var He=window.GGBT_wsf_view.renderFullScreen(xe,on.id),Ot=document.getElementById("fullscreencontainer"),Lt=jQuery(xe).find(".fullscreencontent");Lt.length>0?(He.remove(),Lt.attr("id","fullscreencontent").show(),jQuery(Ot).append(Lt),window.dispatchEvent(new Event("resize"))):Fe(He,on,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else Ht=Cn,Fe(xe,on,!1);if(!window.GGBT_wsf_view)for(ze=0;ze<je.length;ze++)xe.removeChild(je[ze])},ve=xe.getElementsByClassName("ggb_preview_play"),ze=0;ze<ve.length;ze++)ve[ze].addEventListener("click",Ie,!1),ve[ze].addEventListener("ontouchstart",Ie,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xe),Jt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Bn=function(){var xe=document.createElement("div");if(xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var on='.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");}',tn=document.createElement("style");tn.styleSheet?tn.styleSheet.cssText=on:tn.appendChild(document.createTextNode(on)),document.getElementsByTagName("head")[0].appendChild(tn)}return xe},an=function(xe,on,tn,Cn){var Ie=document.createElement("div");Ie.className="ggb_preview",Ie.style.position="absolute",Ie.style.zIndex="90",Ie.style.width=xe-2+"px",Ie.style.height=on-2+"px",Ie.style.top="0px",Ie.style.left="0px",Ie.style.overflow="hidden",Ie.style.backgroundColor="white";var ve="lightgrey";tn!==void 0&&(tn==="none"?ve="transparent":ve=tn),Ie.style.border="1px solid "+ve;var ze=document.createElement("img");if(ze.style.position="relative",ze.style.zIndex="1000",ze.style.top="-1px",ze.style.left="-1px",ht!==null&&ze.setAttribute("src",ht),ze.style.opacity=.7,lt!==null){var je,He,Ot;if(!Cn){je=document.createElement("img"),je.style.position="absolute",je.style.zIndex="1001",je.style.opacity=1,ze.style.opacity=.3,He=360,He>xe/4*3&&(He=xe/4*3),Ot=He/5.8,je.setAttribute("src",lt),je.setAttribute("width",He),je.setAttribute("height",Ot);var Lt=(xe-He)/2,wt=(on-Ot)/2;je.style.left=Lt+"px",je.style.top=wt+"px",Ie.appendChild(je)}}return Ie.appendChild(ze),Ie},Zn=function(xe){return xe=xe.toLowerCase(),xe==="html5"||xe==="screenshot"?xe:"html5"},_t=["web","webSimple","web3d","tablet","tablet3d","phone"],Tt=function(xe,on){if(Dt=xe,on){ce(Dt,!0);return}var tn=!ne;if(tn){var Cn=St(Dt);!isNaN(Cn)&&Cn<4.4&&(tn=!1)}var Ie,ve;window.location.protocol.substr(0,4)==="http"?Ie=window.location.protocol:Ie="http:";var ze=Dt.indexOf("//");ze>0?ve=Dt:ze===0?ve=Ie+Dt:ve="https://www.geogebra.org/apps/5.2.814.0/";for(var je in _t)if(Dt.slice(_t[je].length*-1)===_t[je]||Dt.slice((_t[je].length+1)*-1)===_t[je]+"/"){ce(ve,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tn&&!Pt.is3D&&!Pt.AV&&!Pt.SV&&!Pt.CV&&!Pt.EV2&&!Pt.CP&&!Pt.PC&&!Pt.DA&&!Pt.FI&&!Pt.PV&&!de(Mt.showToolBar)&&!de(Mt.showMenuBar)&&!de(Mt.showAlgebraInput)&&!de(Mt.enableRightClick)&&(!Mt.appName||Mt.appName=="classic")?ve+="webSimple/":ve+="web3d/",ce(ve,!1)},ce=function(xe,on){if(xe.requirejs){Xe=xe;return}xe.slice(-1)!=="/"&&(xe+="/"),Xe=xe,on===null&&(on=xe.indexOf("http")===-1),pe=on,nt="web.nocache.js",et=!1;var tn=Xe.split("/");tn.length>1&&(!on&&tn[tn.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):_t.indexOf(tn[tn.length-2])>=0&&(nt=tn[tn.length-2]+".nocache.js")),tn=xe.split("/"),Dt=tn[tn.length-3],Dt.substr(0,4)==="test"?Dt=Dt.substr(4,1)+"."+Dt.substr(5,1):(Dt.substr(0,3)==="war"||Dt.substr(0,4)==="beta")&&(Dt="5.0");var Cn=parseFloat(Dt);Cn!==NaN&&Cn<5&&xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Cn+" is deprecated. Using version latest instead."),Tt("5.0",on))},_e=function(xe,on){window.console&&window.console.log&&(!on||typeof on.showLogging=="undefined"||on.showLogging&&on.showLogging!=="false")&&console.log(xe)};Mt.material_id!==void 0?re(Ye):Ye();function Ye(){var xe=Nn;Bt!==null?xe=Bt:parseFloat(xe)<5&&(xe="5.0"),Tt(xe,!1),Ut!==null&&ce(Ut,pe),Pe=!0}return un},GGBAppletUtils=function(){"use strict";function un(){return window.GGBT_wsf_edit!==void 0}function Nn(Pe,Bt){Bt!=1?(Pe.style.transformOrigin="0% 0% 0px",Pe.style.webkitTransformOrigin="0% 0% 0px",Pe.style.transform="scale("+Bt+","+Bt+")",Pe.style.webkitTransform="scale("+Bt+","+Bt+")",Pe.style.maxWidth="initial",Pe.querySelector(".ggb_preview")!==null&&(Pe.querySelector(".ggb_preview").style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Pe.style.transform="none",Pe.style.webkitTransform="none")}function Mt(Pe,Bt,Ut,ue,se,Se){var Xe=null;if(Se!=null&&Se!="")for(var pe=Pe.parentNode;pe!=null;)if((" "+pe.className+" ").indexOf(" "+Se+" ")>-1){Xe=pe;break}else pe=pe.parentNode;var Ht=0,Dt=0,nt=0,et=0,ht=0,lt=0,gt=0;if(Xe)Ht=Xe.offsetWidth,Dt=Math.max(ue?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Dt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Ht):(Ht=window.innerWidth,Dt=window.innerHeight,nt=window.innerWidth),Pe){var mt=Pe.getBoundingClientRect();mt.left>0&&mt.left<=Ht&&(se===void 0||!se)&&(document.dir==="rtl"?(ht=Ht-mt.width-mt.left,lt=nt<=480?10:30):(lt=mt.left,ht=nt<=480?10:30),et=lt+ht)}if(Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xt=Pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,gt=40)}}return Pe&&((Ut===void 0||!Ut)&&Bt>0&&Bt+et<Ht?Ht=Bt:Ht-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ut===void 0||!Ut)&&(Dt-=gt)),{width:Ht,height:Dt}}function Pt(Pe,Bt,Ut,ue,se){if(Pe.isScreenshoGenerator)return 1;var Se=ue!==void 0&&ue,Xe=Pe.noScaleMargin!=null&&Pe.noScaleMargin,pe=function(xt){return xt&&xt!=="false"},Ht=pe(Pe.autoHeight),Dt=Mt(Bt,Pe.width,Ut,Ht,Se&&window.GGBT_wsf_view||Xe,se),nt=parseInt(Dt.width),et=Pe.width,ht=Pe.height;if(et===void 0){var lt=Bt.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,ht=lt.offsetHeight)}var gt=nt/et,mt=Se?1:Dt.height/ht;return Ut!==void 0&&!Ut&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function ne(Pe,Bt,Ut){var ue=1,se,Se=!1;if(Pe.hasOwnProperty("allowUpscale")&&(Se=Pe.allowUpscale),Pe.hasOwnProperty("scale")&&(ue=parseFloat(Pe.scale),(isNaN(ue)||ue===null||ue===0)&&(ue=1),ue>1&&(Se=!0)),Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))se=Pt(Pe,Bt,Se,Ut,Pe.scaleContainerClass);else return ue;return Se&&(!Pe.hasOwnProperty("scale")||ue===1)?se:Math.min(ue,se)}function Ne(Pe){var Bt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ut=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=Pe.getBoundingClientRect(),se=(Bt-ue.width)/2,Se=(Ut-ue.height)/2;Se<0&&(Se=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se<40?Pe.style.left="40px":Pe.style.left=se+"px",Pe.style.top=Se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Se<40?Pe.style.top="40px":Pe.style.top=Se+"px",Pe.style.left=se+"px")}function Be(Pe,Bt){var Ut=Pe.querySelector(".appletParameters");if(Ut){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Bt.id!==Ut.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}if(Ut.parentElement&&/fullscreen/.test(Ut.parentElement.className))return;var ue=ne(Bt,Pe);un()&&Ut.setAttribute("data-param-scale",ue);for(var se=null,Se=0;Se<Pe.childNodes.length;Se++)if(Pe.childNodes[Se].className!==void 0&&Pe.childNodes[Se].className.match(/^applet_scaler/)){se=Pe.childNodes[Se];break}if(se!==null&&se.querySelector(".noscale")!==null)return;var Xe=Bt.id!==void 0?Bt.id:"ggbApplet",pe=window[Xe];(pe==null||!pe.recalculateEnvironments)&&se!==null&&!se.className.match(/fullscreen/)&&(se.parentNode.style.transform="",!isNaN(ue)&&ue!==1?(se.parentNode.style.width=Bt.width*ue+"px",se.parentNode.style.height=Bt.height*ue+"px",Nn(se,ue)):(Nn(se,1),se.parentNode.style.width=Bt.width+"px",se.parentNode.style.height=Bt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ne(Pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ut).parents(".content-added-content"))}}return{responsiveResize:Be,isFlexibleWorksheetEditor:un,positionCenter:Ne,getScale:ne,scaleElement:Nn}}();__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 un=n.location.search;return un.indexOf(J)!=-1||un.indexOf(K)!=-1}function q(un,Nn){}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(un){var Nn=s[L].bindings;s[L].bindings=function(){for(var Mt=Nn?Nn():{},Pt=un[webModule.__softPermutationId],ne=O;ne<Pt.length;ne++){var Ne=Pt[ne];Mt[Ne[O]]=Ne[P]}return Mt}};var t;function u(){return v(),t}function v(){if(!t){var un=o.createElement(Q);if(un.id=L,un.style.cssText=R+S,un.tabIndex=-1,o.body.appendChild(un),t=un.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Nn=document.compatMode==U?V:W;t.write(Nn+X),t.close()}}}function w(un){function Nn(Pt){function ne(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ne=ne();if(Ne){Pt();return}function Be(){if(!Ne){if(!ne())return;Ne=!0,Pt(),o.removeEventListener&&o.removeEventListener(Z,Be,!1),Pe&&clearInterval(Pe)}}o.addEventListener&&o.addEventListener(Z,Be,!1);var Pe=setInterval(function(){Be()},$)}function Mt(Pt){var ne=u(),Ne=ne.body,Be=ne.createElement(_);Be.language=ab,Be.crossOrigin=W,Be.src=Pt,webModule.__errFn&&(Be.onerror=function(){webModule.__errFn(L,new Error(bb+Pt))}),Ne.appendChild(Be)}Nn(function(){Mt(un)})}webModule.__startLoadingFragment=function(un){return C(un)},webModule.__installRunAsyncCode=function(un){var Nn=u(),Mt=Nn.body,Pt=Nn.createElement(_);Pt.language=ab,Pt.text=un,Mt.appendChild(Pt),Mt.removeChild(Pt)};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(un){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(un){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(un){var Nn=c[un];return Nn==null?null:Nn},r=d,webModule.__errFn=e}function B(){function un(Pe){var Bt=Pe.lastIndexOf(rb);Bt==-1&&(Bt=Pe.length);var Ut=Pe.indexOf(sb);Ut==-1&&(Ut=Pe.length);var ue=Pe.lastIndexOf(tb,Math.min(Ut,Bt));return ue>=O?Pe.substring(O,ue+P):W}function Nn(Pe){if(!Pe.match(/^\w+:\/\//)){var Bt=o.createElement(ub);Bt.src=Pe+vb,Pe=un(Bt.src)}return Pe}function Mt(){var Pe=__gwt_getMetaProperty(wb);return Pe!=null?Pe:W}function Pt(){for(var Pe=o.getElementsByTagName(_),Bt=O;Bt<Pe.length;++Bt)if(Pe[Bt].src.indexOf(xb)!=-1)return un(Pe[Bt].src);return W}function ne(){var Pe=o.getElementsByTagName(yb);return Pe.length>O?Pe[Pe.length-P].href:W}function Ne(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var Be=Mt();return Be==W&&(Be=Pt()),Be==W&&(Be=ne()),Be==W&&Ne()&&(Be=un(o.location.href)),Be=Nn(Be),Be}function C(un){return un.match(/^\//)||un.match(/^[a-zA-Z]+:\/\//)?un:webModule.__moduleBase+un}function D(){var un=[],Nn=O,Mt=[],Pt=[];function ne(Pe){var Bt=Pt[Pe](),Ut=Mt[Pe];if(Bt in Ut)return Bt;var ue=[];for(var se in Ut)ue[Ut[se]]=se;throw r&&r(Pe,ue,Bt),null}if(__gwt_isKnownPropertyValue=function(Pe,Bt){return Bt in Mt[Pe]},webModule.__getPropMap=function(){var Pe={};for(var Bt in Mt)Mt.hasOwnProperty(Bt)&&(Pe[Bt]=ne(Bt));return Pe},webModule.__computePropValue=ne,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ne;try{Ne=Cb;var Be=Ne.indexOf(Db);Be!=-1&&(Nn=parseInt(Ne.substring(Be+P),$),Ne=Ne.substring(O,Be))}catch(Pe){}return webModule.__softPermutationId=Nn,C(Ne+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Ax:function(){return Be},Ds:function(){return Pe},KI:function(){return Ut},SI:function(){return Ne},f1:function(){return ne}});var Pt=Mt(11320);function ne(ue){let se=!0;if(ue.length>0){for(let Se=0;Se<ue.length;Se++)if(ue[Se].compile_success==0||!ue[Se].compile_success){se=!1;break}}else se=!1;return se}function Ne(ue,se=""){let Se=[];for(let Xe=0;Xe<ue.length;Xe++){let pe=ue[Xe],Ht=se?`${se}/${pe.name}`:`${pe.name}`;Se.push({title:pe.name,type:pe.type,isLeaf:pe.type!=="tree",key:Ht})}return Se}function Be(ue,se,Se){for(let Xe=0;Xe<ue.length;Xe++){let pe=ue[Xe];if(pe.key===se){pe.children=Se;break}pe.children&&Be(pe.children,se,Se)}return ue}function Pe(ue,se,Se){let Xe;return function(){let pe=this,Ht=arguments,Dt=function(){Xe=null,Se||ue.apply(pe,Ht)},nt=Se&&!Xe;clearTimeout(Xe),Xe=setTimeout(Dt,se),nt&&ue.apply(pe,Ht)}}const Bt=!0,Ut=Pt.Z.API_SERVER},96670:function(un,Nn,Mt){"use strict";Mt.d(Nn,{t:function(){return pe}});var Pt=Mt(67294),ne=Mt(85804),Ne={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},Be=Mt(94184),Pe=Mt.n(Be),Bt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,Se=(Ht,Dt,nt)=>Dt in Ht?Bt(Ht,Dt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ht[Dt]=nt,Xe=(Ht,Dt)=>{for(var nt in Dt||(Dt={}))ue.call(Dt,nt)&&Se(Ht,nt,Dt[nt]);if(Ut)for(var nt of Ut(Dt))se.call(Dt,nt)&&Se(Ht,nt,Dt[nt]);return Ht};const pe=({cancelText:Ht="\u53D6\u6D88",okText:Dt="\u786E\u5B9A",loading:nt=!1,hasOkBtn:et=!0,hasCancelBtn:ht=!0,okButtonProps:lt={},onCancel:gt=()=>{},onOk:mt=()=>{},className:xt=""})=>Pt.createElement("div",{className:Pe()(Ne.buttonFixed,xt)},Pt.createElement("div",{className:Ne.buttonWrap},ht&&Pt.createElement(ne.ZP,{size:"middle",className:`${Ne.button} mr20`,onClick:gt},Ht),et&&Pt.createElement(ne.ZP,Xe({size:"middle",type:"primary",className:`${Ne.button} mr20`,loading:nt,onClick:mt},lt),Dt)))},63205:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Xe}});var Pt=Mt(67294),ne={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ne=Mt(94184),Be=Mt.n(Ne),Pe=Mt(74330),Bt=Mt(15979),Ut=Mt(33170),ue=Mt(28706),se=(pe,Ht,Dt)=>new Promise((nt,et)=>{var ht=mt=>{try{gt(Dt.next(mt))}catch(xt){et(xt)}},lt=mt=>{try{gt(Dt.throw(mt))}catch(xt){et(xt)}},gt=mt=>mt.done?nt(mt.value):Promise.resolve(mt.value).then(ht,lt);gt((Dt=Dt.apply(pe,Ht)).next())}),Xe=({data:pe,className:Ht,fullWidth:Dt,style:nt={},onClose:et,onOk:ht,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,Pt.useRef)(null),xt=(0,Pt.useRef)(null),St=(0,Pt.useRef)(null),zt=(0,Pt.useRef)(null),[Jt,re]=(0,Pt.useState)(!1),[oe,$t]=(0,Pt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Pt.useEffect)(()=>(St.current||(St.current=document.createElement("style"),document.head.appendChild(St.current)),pe!=null&&pe.visible?(document.body.setAttribute("data-custom","y-hidden"),St.current.innerHTML=" html { overflow-y: hidden; }",pe!=null&&pe.src&&Le()):(document.body.removeAttribute("data-custom"),St.current&&(document.head.removeChild(St.current),St.current=null)),()=>{document.body.removeAttribute("data-custom"),St.current&&(document.head.removeChild(St.current),St.current=null)}),[pe==null?void 0:pe.visible]);const Le=()=>se(void 0,null,function*(){re(!0),$t("\u6B63\u5728\u52A0\u8F7D\u4E2D");const De=yield(0,ue.ZJ)(pe==null?void 0:pe.src);mt.current.src="",mt.current.src=De,mt.current.onload=function(){rn()},re(!1),$t("")}),de=De=>se(void 0,null,function*(){re(!0),$t("\u6B63\u5728\u4FDD\u5B58\u4E2D");const jn=yield(0,Ut.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:pe.title,file:De.dataUrl}});jn!=null&&jn.id&&!gt?(yield(0,Ut.ZP)(`/api/attachments/${pe.id}/add_subitem.json`,{method:"post",body:{subitem_id:jn==null?void 0:jn.id,settings:JSON.stringify(De.state)}})).status===0&&ht():jn!=null&&jn.id&&ht(jn),re(!1),$t("")}),Fe=()=>{const De=document.querySelector('a[href="https://markerjs.com/"]');De&&De.parentNode&&(De.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(Bn=>{const an=document.querySelector(Bn.name);an&&an.setAttribute("title",Bn.title)})},rn=()=>{xt.current=new Bt.hP(mt.current),xt.current.targetRoot=zt.current,xt.current.addEventListener("render",de),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(),pe!=null&&pe.snapshotData&&xt.current.restoreState(pe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Fe()},300)};return Pt.createElement(Pt.Fragment,null,(pe==null?void 0:pe.visible)&&Pt.createElement(Pe.Z,{spinning:Jt,tip:oe,style:{position:"absolute",width:"100vw"}},Pt.createElement("div",{ref:zt,className:Be()(ne.imageDimensions,Ht,Dt?ne.fullWidth:""),style:nt},Pt.createElement("img",{className:ne.img,ref:mt}))))}},36527:function(un,Nn,Mt){"use strict";var Pt=Mt(67294),ne=Mt(71230),Ne=Mt(15746),Be=Mt(55238),Pe=Mt(85804),Bt=Mt(65226),Ut=Mt(71736),ue=Mt(84279),se=Mt(67294);const Se=(0,Pt.forwardRef)(({callback:Xe,showSaveButton:pe,value:Ht=""},Dt)=>{const nt=(0,Pt.useRef)(),et=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ht=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],lt=xt=>{nt.current.setValue(nt.current.getValue()+" "+xt.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:se.createElement(ne.Z,{className:Ut.Z.lists,gutter:[10,10]},et.map((xt,St)=>se.createElement(Ne.Z,{flex:"110px",className:Ut.Z.item},se.createElement("div",null,se.createElement(Bt.Z,{value:`$$${xt.value}$$`}),xt.name),se.createElement("div",{className:Ut.Z.children},xt.children.map((zt,Jt)=>se.createElement("div",{key:Jt},se.createElement("h1",null,zt.name),se.createElement(ne.Z,{gutter:[10,10]},zt.data.map((re,oe)=>se.createElement(Ne.Z,{key:oe,onClick:()=>lt(re),className:Ut.Z.diamond},se.createElement(Bt.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:se.createElement(ne.Z,{className:Ut.Z.lists,gutter:[10,10]},ht.map((xt,St)=>se.createElement(Ne.Z,{flex:"110px",className:Ut.Z.item},se.createElement("div",null,se.createElement(Bt.Z,{value:"`$$"+xt.value+"$$`"}),xt.name),se.createElement("div",{className:Ut.Z.children},xt.children.map((zt,Jt)=>se.createElement("div",{key:Jt},zt.name&&se.createElement("h1",null,zt.name),se.createElement(ne.Z,{gutter:[10,10]},zt.data.map((re,oe)=>se.createElement(Ne.Z,{key:oe,onClick:()=>lt(re),className:Ut.Z.diamond},se.createElement(Bt.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],mt=()=>{var xt=document.createElement("div");xt.innerHTML=nt.current.getValue();var St=xt.innerText;return Xe&&Xe(St),St};return(0,Pt.useImperativeHandle)(Dt,()=>({getData:mt})),se.createElement("div",{className:Ut.Z.mathWrap},se.createElement(Be.default,{defaultActiveKey:"1",items:gt}),se.createElement("math-field",{locale:"zh_cn",className:Ut.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},Ht||""),pe&&se.createElement("div",{className:Ut.Z.button},se.createElement(Pe.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Nn.Z=Se},26194:function(un,Nn,Mt){"use strict";var Pt=Mt(67294),ne=Mt(4977),Ne=Mt(85804),Be=Object.defineProperty,Pe=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,Se=(Dt,nt,et)=>nt in Dt?Be(Dt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Dt[nt]=et,Xe=(Dt,nt)=>{for(var et in nt||(nt={}))ue.call(nt,et)&&Se(Dt,et,nt[et]);if(Ut)for(var et of Ut(nt))se.call(nt,et)&&Se(Dt,et,nt[et]);return Dt},pe=(Dt,nt)=>Pe(Dt,Bt(nt));const Ht=({img:Dt,buttonProps:nt={},styles:et={},customText:ht,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:xt,imgStyles:St,loading:zt=!1,className:Jt=""})=>Pt.createElement("section",{className:`tc animated fadeIn ${Jt}`,style:Xe({color:"#999",margin:"100px auto",visibility:zt?"hidden":"visible"},et)},Pt.createElement("img",{src:Dt||ne,style:pe(Xe({},St),{pointerEvents:"none",userSelect:"none"})}),Pt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&Pt.createElement(Ne.ZP,Xe({className:mt,onClick:gt},nt),lt),xt&&xt);Nn.Z=Ht},20819:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return mt}});var Pt=Mt(67294),ne={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ne=Mt(85804),Be=Mt(30153),Pe=Mt(36295),Bt=Mt(83062),Ut=Mt(28706),ue=Mt(15835),se=Mt(26194),Se=Mt(11320),Xe=Mt(66540),pe=Mt(67294),Ht=Object.defineProperty,Dt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(xt,St,zt)=>St in xt?Ht(xt,St,{enumerable:!0,configurable:!0,writable:!0,value:zt}):xt[St]=zt,lt=(xt,St)=>{for(var zt in St||(St={}))nt.call(St,zt)&&ht(xt,zt,St[zt]);if(Dt)for(var zt of Dt(St))et.call(St,zt)&&ht(xt,zt,St[zt]);return xt},gt=(xt,St,zt)=>new Promise((Jt,re)=>{var oe=de=>{try{Le(zt.next(de))}catch(Fe){re(Fe)}},$t=de=>{try{Le(zt.throw(de))}catch(Fe){re(Fe)}},Le=de=>de.done?Jt(de.value):Promise.resolve(de.value).then(oe,$t);Le((zt=zt.apply(xt,St)).next())}),mt=({editOffice:xt="view",data:St,issaver:zt,onSaver:Jt,theme:re,type:oe,filename:$t,monacoEditor:Le,className:de,style:Fe,close:rn,onClose:De,hasMask:jn,disabledDownload:Bn,onImgDimensions:an,showNodata:Zn,recordInfo:_t})=>{const[Tt,ce]=(0,Pt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[_e,Ye]=(0,Pt.useState)(""),[xe,on]=(0,Pt.useState)(),tn=window.ENV==="build"?"/react/build":"",Cn=location.host.startsWith("localhost")?Se.Z.PROXY_SERVER:Se.Z.API_SERVER,ve=10*(1024*1024),ze=(0,Pt.useRef)();St!=null&&St.startsWith("/api")&&oe!=="txt"&&(St=Se.Z.API_SERVER+St);const je=Ft=>Ft.substring(Ft.lastIndexOf("/")+1).split(".").pop();$t&&Le&&(Le.filename=$t),(0,Pt.useEffect)(()=>{var Ft,Wt;const kt=(Wt=(Ft=document.cookie)==null?void 0:Ft.replace(/\s/g,""))==null?void 0:Wt.split(";");kt==null||kt.map(Xt=>{let $e=Xt.split("=");$e[0]==="_educoder_session"&&Ye($e[1])})},[]),(0,Pt.useEffect)(()=>{oe==="office"&&(St.indexOf("bigfilescdn.")>-1||St.indexOf("bigfiles1")>-1?on({url:St,fileType:je(St),model:St.indexOf("model=edit")?"edit":"view"}):Ot())},[oe,St]);function He(Ft){return gt(this,null,function*(){Ft.data.type==="pdfdata"&&(Jt(Ft.data.data),window.removeEventListener("message",He,!1)),console.log("mess---:",Ft.data)})}const Ot=()=>gt(void 0,null,function*(){console.log("data:",St);let Ft=St;St.startsWith("http")||(Ft=location.origin+Ft);let Wt=new URL(Ft).pathname.split("/").pop();const kt=yield(0,ue.gJ)({attachment_id:Wt});kt.url=Cn+kt.url,on(kt)}),Lt=()=>{if(St.startsWith("http")||St.startsWith("blob:")){wt();return}(0,Ut.Sv)($t||"educoder",St,$t)},wt=()=>{_t&&(0,Xe.fc)({id:_t==null?void 0:_t.id,watch_type:1,course_id:_t==null?void 0:_t.course_id}),(0,Ut.Nd)($t||"educoder",decodeURIComponent(St))};return pe.createElement("div",{style:lt({},Fe||{}),className:`${jn&&ne.bgBlack} ${oe?ne.wrp:"hide"}`},rn&&pe.createElement("div",{className:ne.close,ref:ze},!!an&&pe.createElement(Bt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ze.current},pe.createElement("span",{onClick:()=>{De(),an()}},pe.createElement("i",{className:"icon-yulanpizhu"}))),!Bn&&pe.createElement(Bt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ze.current},pe.createElement("span",{onClick:wt},pe.createElement("i",{className:"icon-quxiaozhiding"}))),zt&&pe.createElement(Bt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ze.current},pe.createElement("span",{className:"",onClick:()=>{const Ft=document.getElementById("pdfiframe");window.addEventListener("message",He,!1),setTimeout(()=>{Ft.contentWindow.postMessage("getData","*")},300)}},pe.createElement("i",{className:"icon-baocun"}))),pe.createElement(Bt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ze.current},pe.createElement("span",{className:"",onClick:()=>{De()}},pe.createElement("i",{className:"icon-guanbi1"})))),pe.createElement("div",{className:`${ne[de]} ${de} ${ne.monaco} ${oe==="txt"?"show":"hide"}`},oe==="txt"&&pe.createElement(pe.Fragment,null,pe.createElement(Pe.ZP,lt({},Le)))),oe==="audio"&&pe.createElement("audio",{src:`${(St==null?void 0:St.indexOf("http://"))>-1||(St==null?void 0:St.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${St}`,autoPlay:!0}),oe==="video"&&pe.createElement(pe.Fragment,null,(St==null?void 0:St.indexOf("http"))>-1?pe.createElement("video",{controls:!0,src:`${St}`,autoPlay:!0}):pe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${St}`,autoPlay:!0})),oe==="office"&&xe&&pe.createElement("iframe",{src:`${tn}/office.html?key=${xe.key}&url=${btoa(xe.url)}&callbackUrl=${Cn+(xe.callbackUrl||"")}&fileType=${xe.fileType}&title=${xe.title||""}&model=${xt}&officeServer=${Se.Z.ONLYOFFICE}&disabledDownload=${!!Bn}`}),oe==="html"&&pe.createElement("iframe",{src:St+"&disposition=inline"}),oe==="pdf"&&pe.createElement("iframe",{id:"pdfiframe",src:`${tn}/js/pdfview/index.html?filename=${$t||"educoder.pdf"}&url=${encodeURIComponent(St)}&disabledDownload=${!!Bn}&model=${xt}`}),oe==="image"&&pe.createElement("img",{src:`${(St==null?void 0:St.indexOf("http://"))>-1||(St==null?void 0:St.indexOf("https://"))>-1?"":"data:image/png;base64,"}${St}`}),(oe==="other"||oe==="download")&&pe.createElement(pe.Fragment,null,Zn?pe.createElement(se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:pe.createElement(Ne.ZP,{icon:pe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Lt,disabled:Bn},"\u4E0B\u8F7D")}):pe.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:Lt,disabled:Bn},pe.createElement(Be.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(un,Nn,Mt){"use strict";Mt.d(Nn,{z:function(){return oe},Z:function(){return $t}});var Pt=Mt(67294),ne=Mt(81897),Ne=Mt(51161),Be=Mt(11771),Pe=Mt(67631),Bt=Mt.n(Pe),Ut=Mt(11320),ue=Mt(28706),se=Mt(20527),Se=Mt(25934),Xe=Mt(20819),pe=Mt(67294),Dt=({html:Le})=>{const de=(0,Pt.useRef)(null),Fe=(0,Pt.useRef)(null),rn=`.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,Pt.useEffect)(()=>{const De=de.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=Le,De.appendChild(Fe.current);const jn=document.createElement("style");return jn.textContent=rn,De.appendChild(jn),()=>{De.innerHTML=""}},[]),(0,Pt.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=Le)},[Le]),pe.createElement("div",{ref:de})};function nt(Le){const de=["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"],Fe=new RegExp(`\\b(${de.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Le.replace(Fe,"").trim()}var et=Object.defineProperty,ht=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(Le,de,Fe)=>de in Le?et(Le,de,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Le[de]=Fe,xt=(Le,de)=>{for(var Fe in de||(de={}))lt.call(de,Fe)&&mt(Le,Fe,de[Fe]);if(ht)for(var Fe of ht(de))gt.call(de,Fe)&&mt(Le,Fe,de[Fe]);return Le};const St="@\u2581\u2581@",zt="@\u2581@",Jt=/<pre[^>]*>/g;function re(Le){let de=document.createElement("div");return de.innerHTML=Le,de.childNodes.length===0?"":de.childNodes[0].nodeValue}const oe=(Le,de)=>{Le=Le||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,rn=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,jn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return de?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(Bn,an,Zn,_t,Tt,ce,_e)=>{const Ye=an||_t||ce,xe=Zn||Tt||_e||"?";return Ut.Z.API_SERVER+"/api/attachments/"+Ye+xe+"&t="+(0,ue.Jn)(Ye,Date.now())+(Bn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(jn,(Bn,an,Zn,_t,Tt,ce,_e)=>{const Ye=an||_t||ce,xe=Zn||Tt||_e||"?";return Ut.Z.API_SERVER+"/attachments/download/"+Ye+xe+"&t="+(0,ue.Jn)(Ye,Date.now())+(Bn.indexOf(")")>-1?")":"&")}).replace(Fe,(Bn,an,Zn,_t,Tt,ce,_e)=>{const Ye=an||_t||ce,xe=Zn||Tt||_e||"?";return Ut.Z.API_SERVER+"/api/attachments/"+Ye+xe+"&t="+(0,ue.Jn)(Ye,Date.now())+(Bn.indexOf(")")>-1?")":"&")}).replace(rn,(Bn,an,Zn,_t,Tt)=>{const ce=an||_t,_e=Zn||Tt||"";return'"'+Ut.Z.API_SERVER+"/api/attachments/"+ce+_e+ce+_e+"&t="+(0,ue.Jn)(ce,Date.now())}).replace(De,(Bn,an,Zn,_t,Tt)=>{const ce=an||_t,_e=Zn||Tt||"";return"("+Ut.Z.API_SERVER+"/files/uploads/"+ce+_e+ce+_e+"&t="+(0,ue.Jn)(ce,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,`
|
|
`),Le)};var $t=({value:Le="",className:de,showTextOnly:Fe,showLines:rn,style:De={},stylesPrev:jn={},highlightKeywords:Bn,showProgramFill:an,isProgramFill:Zn,disabledFill:_t=!1,programFillValue:Tt,onFillChange:ce=xe=>{},onFillBlur:_e=()=>{},onFillFocus:Ye=()=>{}})=>{let xe=nt(String(Le||""));const[on,tn]=(0,Pt.useState)(""),[Cn,Ie]=(0,Pt.useState)("office"),[ve,ze]=(0,Pt.useState)([]),je=(0,Pt.useRef)("a"+(0,Se.Z)()),He={},Ot=Ue=>/<style[\s\S]*?>/i.test(Ue||""),Lt=(Ue,ti,Qn)=>{const Hn=document.createElement(Ue===zt?"input":"textarea");Hn.style.width="100%",Hn.style.height=Ue===zt?"40px":"151px",Hn.rows=5,Hn.spellcheck=!1,Hn.name="edu-program-fill",Hn.placeholder="\u8BF7\u8F93\u5165",Hn.dataset.id=ti;const pn=Object.keys(He).length;return He[pn]=Hn,`<span class="edu-program-fill-wrap ${Ue===zt?"":"show"}" style="width:${Ue===zt?"600px":"100%"}" title=${Qn||""}><span>${Hn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function wt(Ue){return Ue=Ue.replace(/!\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(/\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ue=Ue.replace(/<embed.*?>/g,""),Ue=Ue.replace(/<img.*?>/g,""),Ue=Ue.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ue=Ue.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ue=Ue.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ue=Ue.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ue}const Ft=Ue=>!Fe&&Ot(xe)?Ue:Ue.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ti,Qn){let Hn=Qn.replace(/(\n|\r)/g,"").split("}"),pn=[];return Hn.map(gi=>{gi!=""&&pn.push(`.${je.current} ${gi}`)}),`<style>${pn.join("}")}</style>`}),Wt=(0,Pt.useMemo)(()=>{try{const Hn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,gi=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Mi=/\(\/attachments\/download\//g;xe=xe.replace(Mi,"("+Ut.Z.API_SERVER+"/attachments/download/").replace(Hn,"("+Ut.Z.API_SERVER+"/api/attachments/").replace(pn,'"'+Ut.Z.API_SERVER+"/api/attachments/").replace(gi,'"'+Ut.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(Hn){}if(an){let Hn=-1;return xe=xe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pn,gi,Mi){var In;return++Hn,Lt(pn,Hn,(In=Tt==null?void 0:Tt[Hn])==null?void 0:In.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ft(xe||"")}</pre>`}let Ue=Ft(xe);Ue=(0,Ne.ZP)(Ue);const ti=(0,Ne.ez)();xe.match(/\[TOC\]/)&&(Ue=Ue.replace("<p>[TOC]</p>",(0,Ne.Qv)()),(0,Ne.Iy)()),Ue=Ue.replace(/(__special_katext_id_\d+__)/g,(Hn,pn)=>{const{type:gi,expression:Mi}=ti[pn];return(0,se.renderToString)(re(Mi)||"",{displayMode:gi==="block",throwOnError:!1,output:"html"})}),Ue=Ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ne.AL)();const Qn=document.createElement("div");if(Qn.innerHTML=Ue,Fe)return Qn.innerText;if(Bn){const Hn=Bn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Je(Qn,Hn),Qn.innerHTML}return setTimeout(()=>Mn(),500),Qn.innerHTML},[xe,Bn]);(0,Pt.useEffect)(()=>{fn.current&&fn.current.querySelectorAll(["input","textarea"]).forEach(ti=>{ti.oninput=kt,ti.onblur=Xt,ti.onfocus=$e})},[ve]),(0,Pt.useEffect)(()=>{var Ue,ti,Qn,Hn,pn;if(Tt!=null&&Tt.length)try{const gi=fn.current.querySelectorAll(".edu-program-fill-score"),Mi=fn.current.querySelectorAll('[name="edu-program-fill"]');for(const[In,ei]of Mi.entries())ei.value=((Ue=Tt==null?void 0:Tt[In])==null?void 0:Ue.value)||"",((ti=Tt==null?void 0:Tt[In])==null?void 0:ti.type)==="warning"?ei.className="program-fill-warning":((Qn=Tt==null?void 0:Tt[In])==null?void 0:Qn.type)==="success"?ei.className="program-fill-success":ei.className="";for(const[In,ei]of gi.entries())ei.innerHTML=(Hn=Tt==null?void 0:Tt[In])!=null&&Hn.score?`${(pn=Tt==null?void 0:Tt[In])==null?void 0:pn.score}\u5206`:"";ze(Tt)}catch(gi){console.log(gi,"error")}},[Tt]);const kt=Ue=>{ve[Ue.target.dataset.id]=ve[Ue.target.dataset.id]||{},ve[Ue.target.dataset.id].value=Ue.target.value,ze([...ve]),ce(ve,Ue.target.dataset.id)},Xt=Ue=>{ve[Ue.target.dataset.id]=ve[Ue.target.dataset.id]||{},ve[Ue.target.dataset.id].value=Ue.target.value,ze([...ve]),_e(ve,Ue.target.dataset.id)},$e=Ue=>{ve[Ue.target.dataset.id]=ve[Ue.target.dataset.id]||{},ve[Ue.target.dataset.id].value=Ue.target.value,ze([...ve]),Ye(ve,Ue.target.dataset.id)};function Je(Ue,ti){return Ue.childNodes.forEach(Qn=>{var Hn;if(Qn.childNodes.length>0)Je(Qn,ti);else if(Qn.nodeName!=="IMG")if(Qn.innerHTML)Qn.innerHTML=(Hn=Qn.innerHTML)==null?void 0:Hn.replace(new RegExp(ti,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const pn=document.createElement("span");pn.innerHTML=Qn.textContent.replace(new RegExp(ti,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Qn.replaceWith(pn)}})}const fn=(0,Pt.useRef)();Ne.jb.WebkitLineClamp=rn,rn&&(De=xt(xt({},De),Ne.jb));function Ve(Ue){let ti=Ue.target;if(ti.tagName.toUpperCase()==="A"){let Qn=ti.getAttribute("href");if(Qn.indexOf("office")>-1)Ue.preventDefault(),tn(Qn),Ie("office");else if(Qn.indexOf("application/pdf")>-1)Ue.preventDefault(),tn(Qn),Ie("pdf");else if(Qn.indexOf("text/html")>-1)Ue.preventDefault(),tn(Qn),Ie("html");else if(Qn.startsWith("#")){Ue.preventDefault();let Hn=document.getElementById(Qn.replace("#",""));Hn&&Hn.scrollIntoView(!0)}}}const Mn=()=>{var Ue;const ti=(Ue=fn.current)==null?void 0:Ue.querySelectorAll("video");ti==null||ti.forEach(Qn=>{if(Qn.oncontextmenu=()=>!1,Qn.src.indexOf(".m3u8")>-1&&!Qn.canPlayType("application/vnd.apple.mpegurl")){if(Bt().isSupported()){var Hn=new(Bt());Hn.loadSource(Qn.src),Hn.attachMedia(Qn)}}})};return(0,Pt.useEffect)(()=>{if(fn.current&&Wt&&Wt.match(Jt)&&window.PR.prettyPrint(),fn.current)return fn.current.addEventListener("click",Ve),()=>{var Ue;(Ue=fn.current)==null||Ue.removeEventListener("click",Ve),(0,Ne.AL)(),(0,Ne.Iy)()}},[Wt,fn.current,Ve]),(0,Pt.useEffect)(()=>{var Ue;const ti=Qn=>{Qn.preventDefault(),Qn.clipboardData.setData("text",window.getSelection().toString())};return(Ue=fn.current)==null||Ue.addEventListener("copy",ti),()=>{var Qn;(Qn=fn.current)==null||Qn.removeEventListener("copy",ti)}},[fn.current]),Pt.createElement(Pt.Fragment,null,Fe&&Pt.createElement("div",{ref:fn},Wt),!Fe&&!Ot(Wt)&&Pt.createElement("div",{ref:fn,style:xt({},De),className:`${de||""} ${_t?"disabled-fill":""} markdown-body ${je.current}`,dangerouslySetInnerHTML:{__html:Wt}}),!Fe&&Ot(Wt)&&Pt.createElement(Dt,{html:Wt}),Pt.createElement(Xe.Z,{close:!0,data:on,type:on!=null&&on.length?Cn:"",style:xt({},jn),onClose:()=>tn("")}))}},57444:function(un,Nn,Mt){"use strict";Mt.d(Nn,{h:function(){return xt}});var Pt=Mt(67294),ne=Mt(88044),Ne=Mt(91773),Be=Mt(85804),Pe=Mt(4631),Bt=Mt.n(Pe),Ut=Mt(71749),ue=Mt(30483),se=Object.defineProperty,Se=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,nt=(St,zt,Jt)=>zt in St?se(St,zt,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):St[zt]=Jt,et=(St,zt)=>{for(var Jt in zt||(zt={}))Ht.call(zt,Jt)&&nt(St,Jt,zt[Jt]);if(pe)for(var Jt of pe(zt))Dt.call(zt,Jt)&&nt(St,Jt,zt[Jt]);return St},ht=(St,zt)=>Se(St,Xe(zt));const lt=ne.default.Option,gt={labelCol:{span:4},wrapperCol:{span:20}},mt={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"]};Nn.Z=({callback:St,onCancel:zt})=>{const[Jt,re]=(0,Pt.useState)("python");function oe(Le){re(mt[Le][1])}function $t(Le){St(Le)}return Pt.createElement(Ne.default,ht(et({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$t,style:{width:500}}),Pt.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Pt.createElement(ne.default,{getPopupContainer:Le=>Le.parentNode,onChange:oe},Object.keys(mt).map(Le=>Pt.createElement(lt,{key:Le,value:Le},mt[Le][0])))),Pt.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Pt.createElement(xt,{mode:Jt})),Pt.createElement("div",{className:"flex-container flex-end"},Pt.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Be.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))};function xt({value:St,onChange:zt,mode:Jt,options:re={}}){const oe=(0,Pt.useRef)(),[$t,Le]=(0,Pt.useState)();return(0,Pt.useEffect)(()=>{if($t){let de=function(Fe){const rn=Fe.getValue();zt&&zt(rn)};return $t.on("change",de),()=>{$t.off("change",de)}}},[$t,zt]),(0,Pt.useEffect)(()=>{$t&&$t.setOption("mode",Jt)},[$t,Jt]),(0,Pt.useEffect)(()=>{$t&&(St!==$t.getValue()||St==="")&&setTimeout(()=>{$t.setValue(St||"")},300)},[$t,St]),(0,Pt.useEffect)(()=>{if(oe.current&&!$t){const de=Bt().fromTextArea(oe.current,et({mode:Jt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Le(de)}},[oe.current,$t]),Pt.createElement("div",{className:"my-codemirror-container"},Pt.createElement("textarea",{ref:oe}))}},35567:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Di}});var Pt=Mt(67294),ne=Mt(4631),Ne=Mt.n(ne),Be=Mt(91033),Pe=Mt(71749),Bt=Mt(57341),Ut=Mt(82801),ue=Mt(88386),se=Mt(49047),Se=Mt(80785),Xe=Mt(65226),pe=({value:te="",className:le,showTextOnly:ae,showLines:Ae,style:Sn={}})=>{const An=(0,Pt.useMemo)(()=>"",[te]);return Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{dangerouslySetInnerHTML:{__html:An}}))},Ht=Object.defineProperty,Dt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(te,le,ae)=>le in te?Ht(te,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[le]=ae,mt=(te,le)=>{for(var ae in le||(le={}))ht.call(le,ae)&>(te,ae,le[ae]);if(et)for(var ae of et(le))lt.call(le,ae)&>(te,ae,le[ae]);return te},xt=(te,le)=>Dt(te,nt(le));let St=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function zt({onActionCallback:te,title:le,icon:ae,actionName:Ae,className:Sn="",children:An}){function En(){te(Ae)}return Pt.createElement("a",{title:le,className:Sn,onClick:En},Pt.createElement("i",{className:`${ae}`}),An)}var Jt=({watch:te,showNullButton:le,showNullProgramButton:ae,onActionCallback:Ae,fullScreen:Sn,insertTemp:An,hidetoolBar:En,extraUse:ke})=>{const cn=[...St,{title:`${te?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${te?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Pt.createElement("ul",{className:"markdown-toolbar-container"},!En&&cn.map((_n,vi)=>Pt.createElement("li",{key:vi},_n.actionName?Pt.createElement(zt,xt(mt({},_n),{onActionCallback:Ae})):Pt.createElement("span",{className:"v-line"}))),le?Pt.createElement("li",null,Pt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ae},Pt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ae?Pt.createElement(Pt.Fragment,null,Pt.createElement("li",null,Pt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ae},Pt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Pt.createElement("li",null,Pt.createElement(zt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ae},Pt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,An&&Pt.createElement("li",null,Pt.createElement(zt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${An}`,onActionCallback:Ae},Pt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ke&&Pt.createElement("li",null,ke),Pt.createElement("li",{className:"btn-full-screen"},Pt.createElement(zt,{icon:`${Sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ae})))},re=Mt(76621),oe=Mt(91773),$t=Mt(28802),Le=Mt(85804),de=Object.defineProperty,Fe=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,an=(te,le,ae)=>le in te?de(te,le,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[le]=ae,Zn=(te,le)=>{for(var ae in le||(le={}))jn.call(le,ae)&&an(te,ae,le[ae]);if(De)for(var ae of De(le))Bn.call(le,ae)&&an(te,ae,le[ae]);return te},_t=(te,le)=>Fe(te,rn(le));const Tt={labelCol:{span:4},wrapperCol:{span:20}};var ce=({callback:te,onCancel:le})=>{function ae(Ae){te(Ae)}return Pt.createElement(oe.default,_t(Zn({},Tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ae,style:{width:500}}),Pt.createElement(oe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Pt.createElement($t.default,null)),Pt.createElement(oe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Pt.createElement($t.default,null)),Pt.createElement("div",{className:"flex-container flex-end"},Pt.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Le.ZP,{type:"ghost",onClick:le},"\u53D6\u6D88")))},_e=Mt(57444),Ye=Mt(70859),xe=Mt(62844),on=Mt(71230),tn=Mt(63205),Cn=Mt(67294),Ie=({callback:te,onCancel:le})=>{const ae=document.createElement("canvas"),Ae=ae.getContext("2d");ae.width=1e3,ae.height=800,Ae.fillStyle="#ffffff",Ae.fillRect(0,0,ae.width,ae.height);const Sn=ae.toDataURL("image/png");return Cn.createElement(xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Cn.createElement(on.Z,{style:{height:"100vh"}},Cn.createElement(tn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:An=>{te({src:An.url})},onClose:le})))},ve=Mt(23495);function ze(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ze,go.CommandHandler),ze.prototype.canAlignSelection=function(){var te=this.diagram;return!(te===null||te.isReadOnly||te.isModelReadOnly||te.selection.count<2)},ze.prototype.alignLeft=function(){var te=this.diagram;te.startTransaction("aligning left");var le=1/0;te.selection.each(function(ae){ae instanceof go.Link||(le=Math.min(ae.position.x,le))}),te.selection.each(function(ae){ae instanceof go.Link||ae.move(new go.Point(le,ae.position.y))}),te.commitTransaction("aligning left")},ze.prototype.alignRight=function(){var te=this.diagram;te.startTransaction("aligning right");var le=-1/0;te.selection.each(function(ae){if(!(ae instanceof go.Link)){var Ae=ae.actualBounds.x+ae.actualBounds.width;le=Math.max(Ae,le)}}),te.selection.each(function(ae){ae instanceof go.Link||ae.move(new go.Point(le-ae.actualBounds.width,ae.position.y))}),te.commitTransaction("aligning right")},ze.prototype.alignTop=function(){var te=this.diagram;te.startTransaction("alignTop");var le=1/0;te.selection.each(function(ae){ae instanceof go.Link||(le=Math.min(ae.position.y,le))}),te.selection.each(function(ae){ae instanceof go.Link||ae.move(new go.Point(ae.position.x,le))}),te.commitTransaction("alignTop")},ze.prototype.alignBottom=function(){var te=this.diagram;te.startTransaction("aligning bottom");var le=-1/0;te.selection.each(function(ae){if(!(ae instanceof go.Link)){var Ae=ae.actualBounds.y+ae.actualBounds.height;le=Math.max(Ae,le)}}),te.selection.each(function(ae){ae instanceof go.Link||ae.move(new go.Point(ae.actualBounds.x,le-ae.actualBounds.height))}),te.commitTransaction("aligning bottom")},ze.prototype.alignCenterX=function(){var te=this.diagram,le=te.selection.first();if(le){te.startTransaction("aligning Center X");var ae=le.actualBounds.x+le.actualBounds.width/2;te.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(ae-Ae.actualBounds.width/2,Ae.actualBounds.y))}),te.commitTransaction("aligning Center X")}},ze.prototype.alignCenterY=function(){var te=this.diagram,le=te.selection.first();if(le){te.startTransaction("aligning Center Y");var ae=le.actualBounds.y+le.actualBounds.height/2;te.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,ae-Ae.actualBounds.height/2))}),te.commitTransaction("aligning Center Y")}},ze.prototype.alignColumn=function(te){var le=this.diagram;le.startTransaction("align Column"),te===void 0&&(te=0),te=parseFloat(te);var ae=new Array;le.selection.each(function(ke){ke instanceof go.Link||ae.push(ke)});for(var Ae=0;Ae<ae.length-1;Ae++){var Sn=ae[Ae],An=Sn.actualBounds.y+Sn.actualBounds.height+te,En=ae[Ae+1];En.move(new go.Point(Sn.actualBounds.x,An))}le.commitTransaction("align Column")},ze.prototype.alignRow=function(te){te===void 0&&(te=0),te=parseFloat(te);var le=this.diagram;le.startTransaction("align Row");var ae=new Array;le.selection.each(function(ke){ke instanceof go.Link||ae.push(ke)});for(var Ae=0;Ae<ae.length-1;Ae++){var Sn=ae[Ae],An=Sn.actualBounds.x+Sn.actualBounds.width+te,En=ae[Ae+1];En.move(new go.Point(An,Sn.actualBounds.y))}le.commitTransaction("align Row")},ze.prototype.canRotate=function(te){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<1)},ze.prototype.rotate=function(te){te===void 0&&(te=90);var le=this.diagram;le.startTransaction("rotate "+te.toString());var le=this.diagram;le.selection.each(function(ae){ae instanceof go.Link||ae instanceof go.Group||(ae.angle+=te)}),le.commitTransaction("rotate "+te.toString())},ze.prototype.pullToFront=function(){var te=this.diagram;te.startTransaction("pullToFront");var le=new go.Map;te.selection.each(function(ae){le.set(ae.layer,0)}),le.iteratorKeys.each(function(ae){var Ae=0;ae.parts.each(function(Sn){if(!Sn.isSelected){var An=Sn.zOrder;isNaN(An)?Sn.zOrder=0:Ae=Math.max(Ae,An)}}),le.set(ae,Ae)}),te.selection.each(function(ae){ze._assignZOrder(ae,le.get(ae.layer)+1)}),te.commitTransaction("pullToFront")},ze.prototype.pushToBack=function(){var te=this.diagram;te.startTransaction("pushToBack");var le=new go.Map;te.selection.each(function(ae){le.set(ae.layer,0)}),le.iteratorKeys.each(function(ae){var Ae=0;ae.parts.each(function(Sn){if(!Sn.isSelected){var An=Sn.zOrder;isNaN(An)?Sn.zOrder=0:Ae=Math.min(Ae,An)}}),le.set(ae,Ae)}),te.selection.each(function(ae){ze._assignZOrder(ae,le.get(ae.layer)-1-ze._findGroupDepth(ae))}),te.commitTransaction("pushToBack")},ze._assignZOrder=function(te,le,ae){ae===void 0&&(ae=te),te.layer===ae.layer&&(te.zOrder=le),te instanceof go.Group&&te.memberParts.each(function(Ae){ze._assignZOrder(Ae,le+1,ae)})},ze._findGroupDepth=function(te){if(te instanceof go.Group){var le=0;return te.memberParts.each(function(ae){le=Math.max(le,ze._findGroupDepth(ae))}),le+1}else return 0},ze.prototype.doKeyDown=function(){var te=this.diagram;if(te!==null){var le=te.lastInput;if(le.key==="Up"||le.key==="Down"||le.key==="Left"||le.key==="Right"){var ae=this.arrowKeyBehavior;if(ae==="none")return;if(ae==="select"){this._arrowKeySelect();return}else if(ae==="move"){this._arrowKeyMove();return}else if(ae==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ze.prototype._getAllParts=function(){var te=new Array;return this.diagram.nodes.each(function(le){te.push(le)}),this.diagram.parts.each(function(le){te.push(le)}),te},ze.prototype._arrowKeyMove=function(){var te=this.diagram,le=te.lastInput,ae=0,Ae=0;if(le.control||le.meta)ae=1,Ae=1;else if(te.grid!==null){var Sn=te.grid.gridCellSize;Ae=Sn.width,ae=Sn.height}te.startTransaction("arrowKeyMove"),te.selection.each(function(An){le.key==="Up"?An.move(new go.Point(An.actualBounds.x,An.actualBounds.y-ae)):le.key==="Down"?An.move(new go.Point(An.actualBounds.x,An.actualBounds.y+ae)):le.key==="Left"?An.move(new go.Point(An.actualBounds.x-Ae,An.actualBounds.y)):le.key==="Right"&&An.move(new go.Point(An.actualBounds.x+Ae,An.actualBounds.y))}),te.commitTransaction("arrowKeyMove")},ze.prototype._arrowKeySelect=function(){var te=this.diagram,le=te.lastInput,ae=null;le.key==="Up"?ae=this._findNearestPartTowards(270):le.key==="Down"?ae=this._findNearestPartTowards(90):le.key==="Left"?ae=this._findNearestPartTowards(180):le.key==="Right"&&(ae=this._findNearestPartTowards(0)),ae!==null&&(le.shift?ae.isSelected=!0:le.control||le.meta?ae.isSelected=!ae.isSelected:te.select(ae))},ze.prototype._findNearestPartTowards=function(te){var le=this.diagram.selection.first();if(le===null)return null;for(var ae=le.actualBounds.center,Ae=this._getAllParts(),Sn=1/0,An=le,En=0;En<Ae.length;En++){var ke=Ae[En];if(ke!==le&&ke.canSelect()){var cn=ke.actualBounds.center,_n=ae.directionPoint(cn),vi=this._angleCloseness(_n,te);if(vi<=45){var mn=ae.distanceSquaredPoint(cn);mn*=1+Math.sin(vi*Math.PI/180),mn<Sn&&(Sn=mn,An=ke)}}}return An},ze.prototype._angleCloseness=function(te,le){return Math.min(Math.abs(le-te),Math.min(Math.abs(le+360-te),Math.abs(le-360-te)))},ze.prototype._arrowKeyTree=function(){var te=this.diagram,le=te.selection.first();if(le instanceof go.Node){var ae=te.lastInput;if(ae.key==="Right"){if(!le.isTreeLeaf)if(!le.isTreeExpanded)te.commandHandler.canExpandTree(le)&&te.commandHandler.expandTree(le);else{var Ae=this._sortTreeChildrenByY(le).first();Ae!==null&&te.select(Ae)}}else if(ae.key==="Left")if(!le.isTreeLeaf&&le.isTreeExpanded)te.commandHandler.canCollapseTree(le)&&te.commandHandler.collapseTree(le);else{var Sn=le.findTreeParentNode();Sn!==null&&te.select(Sn)}else if(ae.key==="Up"){var Sn=le.findTreeParentNode();if(Sn!==null){var An=this._sortTreeChildrenByY(Sn),En=An.indexOf(le);if(En>0){for(var ke=An.elt(En-1);ke!==null&&ke.isTreeExpanded&&!ke.isTreeLeaf;){var cn=this._sortTreeChildrenByY(ke);ke=cn.last()}ke!==null&&te.select(ke)}else te.select(Sn)}}else if(ae.key==="Down")if(le.isTreeExpanded&&!le.isTreeLeaf){var Ae=this._sortTreeChildrenByY(le).first();Ae!==null&&te.select(Ae)}else for(;le!==null;){var Sn=le.findTreeParentNode();if(Sn===null)break;var An=this._sortTreeChildrenByY(Sn),En=An.indexOf(le);if(En<An.length-1){te.select(An.elt(En+1));break}else le=Sn}var _n=te.selection.first();_n!==null&&te.scrollToRect(_n.actualBounds)}},ze.prototype._sortTreeChildrenByY=function(te){var le=new go.List().addAll(te.findTreeChildrenNodes());return le.sort(function(ae,Ae){var Sn=ae.location,An=Ae.location;return Sn.y<An.y?-1:Sn.y>An.y?1:Sn.x<An.x?-1:Sn.x>An.x?1:0}),le},ze.prototype.copyToClipboard=function(te){go.CommandHandler.prototype.copyToClipboard.call(this,te),this._lastPasteOffset.set(this.pasteOffset)},ze.prototype.pasteFromClipboard=function(){var te=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(te,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),te},Object.defineProperty(ze.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(te){if(te!=="move"&&te!=="select"&&te!=="scroll"&&te!=="tree"&&te!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+te);this._arrowKeyBehavior=te}}),Object.defineProperty(ze.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(te){if(!(te instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+te);this._pasteOffset.set(te)}});var je=ze,He=Mt(18023),Ot=Mt(15746),Lt=Mt(33170),wt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ft=Mt(52262),Wt=Mt(67294),kt=(te,le,ae)=>new Promise((Ae,Sn)=>{var An=cn=>{try{ke(ae.next(cn))}catch(_n){Sn(_n)}},En=cn=>{try{ke(ae.throw(cn))}catch(_n){Sn(_n)}},ke=cn=>cn.done?Ae(cn.value):Promise.resolve(cn.value).then(An,En);ke((ae=ae.apply(te,le)).next())});function Xt({onCancel:te,callback:le}){let ae=(0,Pt.useRef)(),Ae=(0,Pt.useRef)(),Sn=(0,Pt.useRef)(),An=(0,Pt.useRef)(!1);const En=(0,Pt.useRef)(!1),[ke,cn]=(0,Pt.useState)(0);function _n(){const mn=ve.bx.make,Oe={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"};ae.current=new ve.S0(Ae.current,{padding:20,grid:mn(ve.s_,"Grid",mn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ke=>{var ur=Ke.diagram.commandHandler.addTopLevelParts(Ke.diagram.selection,!0);ur||Ke.diagram.currentTool.doCancel()},commandHandler:mn(je),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ke=>{var ur=Ke.subject;ur.location=ur.location.copy().snapToGridPoint(Ke.diagram.grid.gridOrigin,Ke.diagram.grid.gridCellSize),setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ke=>{var ur=Ke.subject;setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ke=>{var ur=Ke.parameter.part;ur.invalidateConnectedLinks();var Tr=Ke.subject;Ke.diagram.toolManager.linkingTool.isForwards?Tr.toNode.invalidateConnectedLinks():Tr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ae.current.nodeTemplate=mn(ve.NB,"Auto",{locationSpot:ve.z6.Center,locationObjectName:"SHAPE",desiredSize:new ve.$u(120,60),minSize:new ve.$u(40,40),resizable:!0,resizeCellSize:new ve.$u(10,10),rotatable:!0},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),new ve.KX("desiredSize","size",ve.$u.parse).makeTwoWay(ve.$u.stringify),mn(ve.bn,{name:"SHAPE",fill:Oe.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("figure"),new ve.KX("fill"),new ve.KX("stroke","borderColor"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),mn(ve.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mn(ve.al,{margin:1,textAlign:"center",overflow:ve.al.OverflowEllipsis,editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),ae.current.nodeTemplate.toolTip=mn("ToolTip",mn(ve.s_,"Vertical",{maxSize:new ve.$u(200,NaN)},mn(ve.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ve.KX("text")),mn(ve.al,{font:"10pt sans-serif",textAlign:"center"},new ve.KX("text","details"))));function ni(Ke,ur){var Tr=(or,Vo)=>{or.handled=!0,or.diagram.model.commit(eo=>{var uo=Vo.part.adornedPart,Xr=new ve.E9().setRectSpot(uo.actualBounds,Ke);Xr.subtract(uo.location),Xr.scale(2,2),Xr.x+=Math.sign(Xr.x)*130,Xr.y+=Math.sign(Xr.y)*130,Xr.add(uo.location),Xr.snapToGridPoint(or.diagram.grid.gridOrigin,or.diagram.grid.gridCellSize);var Ir=eo.copyNodeData(uo.data);eo.setGroupKeyForNodeData(Ir,eo.getGroupKeyForNodeData(uo.data)),eo.addNodeData(Ir);var Mo={from:uo.key,to:eo.getKeyForNodeData(Ir)};eo.addLinkData(Mo);var Ln=or.diagram.findNodeForData(Ir);Ln.location=Xr,or.diagram.select(Ln),setTimeout(()=>{or.diagram.commandHandler.editTextBlock()},20)})};return mn(ve.bn,{figure:ur,alignment:Ke,alignmentFocus:Ke.opposite(),width:Ke.equals(ve.z6.Top)||Ke.equals(ve.z6.Bottom)?25:18,height:Ke.equals(ve.z6.Top)||Ke.equals(ve.z6.Bottom)?18:25,fill:"orange",stroke:Oe.white,strokeWidth:4,mouseEnter:(or,Vo)=>Vo.fill="dodgerblue",mouseLeave:(or,Vo)=>Vo.fill="orange",isActionable:!0,click:Tr,contextClick:Tr})}function Pi(Ke){return mn(ve.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:(ur,Tr)=>Tr.fill="dodgerblue",mouseLeave:(ur,Tr)=>Tr.fill="orange",click:(ur,Tr)=>{ur.diagram.commandHandler.showContextMenu(Tr.part.adornedPart)}},Ke||{})}ae.current.nodeTemplate.selectionAdornmentTemplate=mn(ve.uz,"Spot",mn(ve.Vm,{padding:10}),ni(ve.z6.Top,"TriangleUp"),ni(ve.z6.Left,"TriangleLeft"),ni(ve.z6.Right,"TriangleRight"),ni(ve.z6.Bottom,"TriangleDown"),Pi({alignment:new ve.z6(.75,0)}));function Li(Ke,ur){return(Tr,or)=>{Tr.handled=!0,Tr.diagram.model.commit(Vo=>{Vo.set(or.part.adornedPart.data,Ke,ur)})}}function qe(Ke,ur){return ur||(ur="color"),mn(ve.bn,{width:16,height:16,stroke:"lightgray",fill:Ke,margin:1,background:"transparent",mouseEnter:(Tr,or)=>or.stroke="dodgerblue",mouseLeave:(Tr,or)=>or.stroke="lightgray",click:Li(ur,Ke),contextClick:Li(ur,Ke)})}function oi(){return[mn("ContextMenuButton",mn(ve.s_,"Horizontal",qe(Oe.white,"fill"),qe(Oe.beige,"fill"),qe(Oe.extralightblue,"fill"),qe(Oe.extralightred,"fill"))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",qe(Oe.lightgray,"fill"),qe(Oe.lightgreen,"fill"),qe(Oe.lightblue,"fill"),qe(Oe.lightred,"fill")))]}function Ni(){return[mn("ContextMenuButton",mn(ve.s_,"Horizontal",qe(Oe.black),qe(Oe.green),qe(Oe.blue),qe(Oe.red))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",qe(Oe.white),qe(Oe.magenta),qe(Oe.purple),qe(Oe.orange)))]}function gr(Ke,ur){return ur||(ur="thickness"),mn(ve.bn,"LineH",{width:16,height:16,strokeWidth:Ke,margin:1,background:"transparent",mouseEnter:(Tr,or)=>or.background="dodgerblue",mouseLeave:(Tr,or)=>or.background="transparent",click:Li(ur,Ke),contextClick:Li(ur,Ke)})}function xr(Ke,ur){return ur||(ur="dash"),mn(ve.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ke,margin:1,background:"transparent",mouseEnter:(Tr,or)=>or.background="dodgerblue",mouseLeave:(Tr,or)=>or.background="transparent",click:Li(ur,Ke),contextClick:Li(ur,Ke)})}function Si(){return[mn("ContextMenuButton",mn(ve.s_,"Horizontal",gr(1),gr(2),gr(3),gr(4))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",xr(null),xr([2,4]),xr([4,4])))]}function Fi(Ke,ur){return ur||(ur="figure"),mn(ve.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ke,margin:1,background:"transparent",mouseEnter:(Tr,or)=>or.fill="dodgerblue",mouseLeave:(Tr,or)=>or.fill="lightgray",click:Li(ur,Ke),contextClick:Li(ur,Ke)})}ae.current.nodeTemplate.contextMenu=mn("ContextMenu",mn("ContextMenuButton",mn(ve.s_,"Horizontal",Fi("Rectangle"),Fi("RoundedRectangle"),Fi("Ellipse"),Fi("Diamond"))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",Fi("Parallelogram2"),Fi("ManualOperation"),Fi("Procedure"),Fi("Cylinder1"))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",Fi("Terminator"),Fi("CreateRequest"),Fi("Document"),Fi("TriangleDown"))),oi(),Ni(),Si()),ae.current.groupTemplate=mn(ve.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ve.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ke,ur)=>{var Tr=ur.addMembers(ur.diagram.selection,!0);Tr||ur.diagram.currentTool.doCancel()},avoidable:!1},new ve.KX("location","loc",ve.E9.parse).makeTwoWay(ve.E9.stringify),mn(ve.s_,"Auto",{name:"BODY"},mn(ve.bn,{parameter1:10,fill:Oe.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ve.z6.AllSides,toSpot:ve.z6.AllSides},new ve.KX("fill"),new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),mn(ve.Vm,{background:"transparent",margin:20})),mn(ve.al,{alignment:ve.z6.Top,alignmentFocus:ve.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ve.KX("text"),new ve.KX("stroke","color"))),ae.current.groupTemplate.selectionAdornmentTemplate=mn(ve.uz,"Spot",mn(ve.s_,"Auto",mn(ve.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mn(ve.Vm,{margin:1.5})),Pi({alignment:ve.z6.TopRight,alignmentFocus:ve.z6.BottomRight})),ae.current.groupTemplate.contextMenu=mn("ContextMenu",oi(),Ni(),Si()),ae.current.linkTemplate=mn(ve.rU,{layerName:"Foreground",routing:ve.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ve.KX("fromSpot","fromSpot",ve.z6.parse),new ve.KX("toSpot","toSpot",ve.z6.parse),new ve.KX("fromShortLength","dir",Ke=>Ke>=1?10:0),new ve.KX("toShortLength","dir",Ke=>Ke>=1?10:0),new ve.KX("points").makeTwoWay(),mn(ve.bn,{strokeWidth:2},new ve.KX("stroke","color"),new ve.KX("strokeWidth","thickness"),new ve.KX("strokeDashArray","dash")),mn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,0),segmentOrientation:ve.rU.OrientAlong,alignmentFocus:ve.z6.Right,figure:"circle",width:10,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Ke=>Ke===1)),mn(ve.bn,{segmentIndex:-1,segmentOffset:new ve.E9(-10,6),segmentOrientation:ve.rU.OrientPlus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Ke=>Ke>=1),new ve.KX("width","thickness",Ke=>7+3*Ke),new ve.KX("height","thickness",Ke=>7+3*Ke),new ve.KX("segmentOffset","thickness",Ke=>new ve.E9(-15,4+1.5*Ke))),mn(ve.bn,{segmentIndex:0,segmentOffset:new ve.E9(15,-6),segmentOrientation:ve.rU.OrientMinus90,alignmentFocus:ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ve.KX("fill","color"),new ve.KX("visible","dir",Ke=>Ke===2),new ve.KX("width","thickness",Ke=>7+3*Ke),new ve.KX("height","thickness",Ke=>7+3*Ke),new ve.KX("segmentOffset","thickness",Ke=>new ve.E9(-15,4+1.5*Ke))),mn(ve.al,{alignmentFocus:new ve.z6(0,1,-4,0),editable:!0},new ve.KX("text").makeTwoWay(),new ve.KX("stroke","color"))),ae.current.linkTemplate.selectionAdornmentTemplate=mn(ve.uz,mn(ve.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Gi(2)},new ve.KX("pathPattern","thickness",Gi)),Pi({alignmentFocus:new ve.z6(0,0,-6,-4)}));function Gi(Ke){return mn(ve.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ke+4).toString()+" H3"})}function Mr(Ke){var ur="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ke===0?ur="M0 0 M16 16 M0 8 L16 8":Ke===2&&(ur="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mn(ve.bn,{geometryString:ur,margin:2,background:"transparent",mouseEnter:(Tr,or)=>or.background="dodgerblue",mouseLeave:(Tr,or)=>or.background="transparent",click:Li("dir",Ke),contextClick:Li("dir",Ke)})}function hr(Ke){var ur=(Tr,or)=>{Tr.handled=!0,Tr.diagram.model.commit(Vo=>{var eo=or.part.adornedPart;Vo.set(eo.data,Ke?"toSpot":"fromSpot",ve.z6.stringify(ve.z6.AllSides)),(Ke?eo.toNode:eo.fromNode).invalidateConnectedLinks()})};return mn(ve.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Tr,or)=>or.background="dodgerblue",mouseLeave:(Tr,or)=>or.background="transparent",click:ur,contextClick:ur})}function Yn(Ke,ur){var Tr=0,or=ve.z6.RightSide;Ke.equals(ve.z6.Top)?(Tr=270,or=ve.z6.TopSide):Ke.equals(ve.z6.Left)?(Tr=180,or=ve.z6.LeftSide):Ke.equals(ve.z6.Bottom)&&(Tr=90,or=ve.z6.BottomSide),ur||(Tr-=180);var Vo=(eo,uo)=>{eo.handled=!0,eo.diagram.model.commit(Xr=>{var Ir=uo.part.adornedPart;Xr.set(Ir.data,ur?"toSpot":"fromSpot",ve.z6.stringify(or)),(ur?Ir.toNode:Ir.fromNode).invalidateConnectedLinks()})};return mn(ve.bn,{alignment:Ke,alignmentFocus:Ke.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Tr,background:"transparent",mouseEnter:(eo,uo)=>uo.background="dodgerblue",mouseLeave:(eo,uo)=>uo.background="transparent",click:Vo,contextClick:Vo})}ae.current.linkTemplate.contextMenu=mn("ContextMenu",Ni(),Si(),mn("ContextMenuButton",mn(ve.s_,"Horizontal",Mr(0),Mr(1),Mr(2))),mn("ContextMenuButton",mn(ve.s_,"Horizontal",mn(ve.s_,"Spot",hr(!1),Yn(ve.z6.Top,!1),Yn(ve.z6.Left,!1),Yn(ve.z6.Right,!1),Yn(ve.z6.Bottom,!1)),mn(ve.s_,"Spot",{margin:new ve.Zt(0,0,0,2)},hr(!0),Yn(ve.z6.Top,!0),Yn(ve.z6.Left,!0),Yn(ve.z6.Right,!0),Yn(ve.z6.Bottom,!0)))));const zi=`{ "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 qo=["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 sa(Ke){return console.log("shapeName:",Ke),qo.indexOf(Ke)>=0}var la=new ve.YI(Sn.current,{maxSelectionCount:1,linkTemplate:mn(ve.rU,{locationSpot:ve.z6.Center,selectionAdornmentTemplate:mn(ve.uz,"Link",{locationSpot:ve.z6.Center},mn(ve.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mn(ve.bn,{toArrow:"Standard",stroke:null}))},{routing:ve.rU.AvoidsNodes,curve:ve.rU.JumpOver,corner:5,toShortLength:4},new ve.KX("points"),mn(ve.bn,{isPanelMain:!0,strokeWidth:2}),mn(ve.bn,{toArrow:"Standard",stroke:null})),model:new ve.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ve.bn.getFigureGenerators().toArray().map(Ke=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ke.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ae.current.addDiagramListener("TextEdited",function(Ke){var ur;const Tr=Ke.subject.part;var or=(ur=document.activeElement)==null?void 0:ur.value;typeof or=="string"&&or.trim()===""&&ae.current.model.commit(function(Vo){Vo.set(Tr.data,"text","\u672A\u547D\u540D"),ae.current.commandHandler.stopCommand()},"increment")}),la.nodeTemplate=mn(ve.NB,"Auto",{locationSpot:ve.z6.Center},new ve.KX("location","location",ve.E9.parse).makeTwoWay(ve.E9.stringify),mn(ve.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 ve.KX("stroke").makeTwoWay(),new ve.KX("fill").makeTwoWay(),new ve.KX("figure")),mn(ve.al,{margin:new ve.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ve.$u(16,16),maxSize:new ve.$u(10,NaN),textAlign:"center",editable:!0},new ve.KX("key").makeTwoWay())),setTimeout(()=>{ae.current.grid=mn(ve.s_,"Grid",mn(ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ae.current.grid.visible=!0,ae.current.grid.gridCellStroke="darkgray",ae.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ae.current,ae.current}const vi=()=>kt(this,null,function*(){var mn,Oe=ae.current.makeImage();const ni=yield(0,Lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Oe.src,file_data:JSON.stringify({login:(mn=(0,Ft.eY)())==null?void 0:mn.login,data:JSON.parse(ae.current.model.toJson())})}});le({src:ni.url})});return(0,Pt.useEffect)(()=>(setTimeout(()=>{_n()},500),cn(ke+1),()=>{ae.current=null}),[]),Wt.createElement("div",{ref:En,className:"body-overflow-initial"},Wt.createElement(xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ke,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Wt.createElement(on.Z,null,Wt.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Wt.createElement(Ot.Z,{onClick:()=>{var mn,Oe,ni=ae.current.selection.first();if(An.current=!An.current,document.activeElement&&ni){let Pi=(Oe=(mn=document.activeElement)==null?void 0:mn.value)==null?void 0:Oe.trim();typeof Pi=="string"&&ae.current.model.commit(function(Li){Li.set(ni.data,"text",Pi||"\u672A\u547D\u540D"),ae.current.commandHandler.stopCommand()},"increment")}cn(ke+1)}},Wt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:te},Wt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:An.current?"none":"block"},className:wt.flowChartWrp},Wt.createElement("div",{style:{display:"flex",height:"100%"}},Wt.createElement("div",{style:{width:"300px",height:"100%"}},Wt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Wt.createElement("div",{style:{height:"calc(100% - 50px)"},className:wt.myPaletteDiv,ref:Sn})),Wt.createElement("div",{style:{flex:1,position:"relative"}},Wt.createElement("div",{ref:Ae,style:{height:"80vh"}}))),Wt.createElement("div",{className:"tr"},Wt.createElement(Le.ZP,{size:"large",onClick:vi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $e=Xt,Je=Mt(98813),fn=Mt(37720);const Ve=Je.ZP.Group,Mn={margin:"0 8px"};var Ue=({callback:te,onCancel:le})=>{function ae(Ae){te(Ae)}return Pt.createElement(oe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ae},Pt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Pt.createElement("span",{style:Mn},"\u5355\u5143\u683C\u6570\uFF1A"),Pt.createElement("span",{style:Mn},"\u884C\u6570"),Pt.createElement(oe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Pt.createElement(fn.Z,null)),Pt.createElement("span",{style:Mn},"\u5217\u6570"),Pt.createElement(oe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Pt.createElement(fn.Z,null))),Pt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Pt.createElement("span",{style:Mn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Pt.createElement(oe.default.Item,{name:"align"},Pt.createElement(Ve,null,Pt.createElement(Je.ZP,{value:"default"},Pt.createElement("i",{className:"fa fa-align-justify"})),Pt.createElement(Je.ZP,{value:"left"},Pt.createElement("i",{className:"fa fa-align-left"})),Pt.createElement(Je.ZP,{value:"center"},Pt.createElement("i",{className:"fa fa-align-center"})),Pt.createElement(Je.ZP,{value:"right"},Pt.createElement("i",{className:"fa fa-align-right"}))))),Pt.createElement("div",{className:"flex-container flex-end"},Pt.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Le.ZP,{type:"ghost",onClick:le},"\u53D6\u6D88")))},ti=Mt(59637),Qn=Mt(61016),Hn=Mt.n(Qn),gi=(0,Pt.forwardRef)(({use3d:te,width:le,height:ae,callback:Ae,showSaveButton:Sn},An)=>{const En=(0,Pt.useRef)(),ke=(0,Pt.useRef)(),[cn,_n]=(0,Pt.useState)(!1),vi=(0,Pt.useRef)({id:En,appName:"graphing",width:le||1e3,height:ae||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Pt.useEffect)(()=>{ke.current=new(Hn())(vi.current,!0),window.onload=function(){ke.current.inject("applet_container")}},[]);const mn=()=>{var Oe=window.ggbApplet.getPNGBase64(1,!0,72);return Ae&&Ae(Oe),Oe};return(0,Pt.useEffect)(()=>{vi.current.appName=cn?"3D":"graphing",ke.current.inject("applet_container")},[cn]),(0,Pt.useEffect)(()=>{_n(te)},[te]),(0,Pt.useImperativeHandle)(An,()=>({getImgData:mn})),Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:En}),Pt.createElement(on.Z,{align:"middle"},Pt.createElement(Ot.Z,{flex:1},Pt.createElement(ti.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:cn,onChange:Oe=>_n(Oe)})),Pt.createElement(Ot.Z,null,Pt.createElement(Le.ZP,{size:"large",onClick:mn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Mi=Mt(36527),In=Mt(2453);const ei="link",Ki="upload-image",hi="add-flowchart",$i="draw-image",pr="add-flowchart",rr="code-block",ki="add-table",sr="------------",Ur={default:sr,left:`:${sr}`,center:`:${sr}:`,right:`${sr}:`};var Jo=Mt(99914);function Rr(){}let To=0;const pa=1e4,co="\u2581",Xi="@\u2581\u2581@",bn="@\u2581@",bt=`
|
|
**\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`,wn=["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 Fn(te){return/^\d+$/.test(te)?`${te}px`:te}const Xn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ai={[Xn+"-B"]:"bold",[Xn+"-I"]:"italic"},Tn={[ei]:"\u6DFB\u52A0\u94FE\u63A5",[rr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ki]:"\u6DFB\u52A0\u56FE\u7247",[$i]:"\u6DFB\u52A0\u753B\u56FE",[hi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ki]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Di=({defaultValue:te="",onChange:le,width:ae="100%",height:Ae=400,miniToolbar:Sn=!1,isFocus:An=!1,watch:En,insertTemp:ke,mode:cn="markdown",id:_n="markdown-editor-id",showResizeBar:vi=!1,noStorage:mn=!1,showNullButton:Oe=!1,showNullProgramButton:ni=!1,hidetoolBar:Pi=!1,fullScreen:Li=!1,onBlur:qe,onCMBeforeChange:oi,onFullScreen:Ni,className:gr="",disablePaste:xr=!1,disabled:Si=!1,disabledFill:Fi=!1,placeholder:Gi="",values:Mr="",extraUse:hr})=>{const[Yn,zi]=(0,Pt.useState)(null),[qo,sa]=(0,Pt.useState)(te),[la,Ke]=(0,Pt.useState)(En),[ur,Tr]=(0,Pt.useState)(Li),[or,Vo]=(0,Pt.useState)(""),[eo,uo]=(0,Pt.useState)(0),[Xr,Ir]=(0,Pt.useState)(Ae),[Mo,Ln]=(0,Pt.useState)(!1),[$r,Pn]=(0,Pt.useState)(0),[Br,Ga]=(0,Pt.useState)(0),Te=(0,Pt.useRef)(),Ze=(0,Pt.useRef)(),sn=(0,Pt.useRef)(),zn=(0,Pt.useRef)();(0,Pt.useEffect)(()=>{const er=window.scrollY||window.pageYOffset;sa(Mr),Yn==null||Yn.setValue(Mr),window.scrollTo(0,er)},[Mr]),(0,Pt.useEffect)(()=>{Ni==null||Ni(ur)},[ur]),(0,Pt.useEffect)(()=>{if(Te.current){let er=function(Er,hn){var ar;if(xr){hn.preventDefault();return}const oo=hn.clipboardData;if(oo){const ca=oo.types.toString(),$o=oo.items;if(ca==="Files"||oo.types.indexOf("Files")>-1){if(hn.preventDefault(),cn=="stex")return;try{let ia=$o[1];((ar=$o[0])==null?void 0:ar.kind)==="file"&&(ia=$o[0]);const as=ia.getAsFile(),Ks=as.name.split(".").pop();(0,Ye.I)(as,vs=>{var au,ks,en;vs.id?((au=as==null?void 0:as.type)==null?void 0:au.indexOf("image"))>-1?Qi.replaceSelection(`<img width="100%" src="/api/attachments/${vs.id}?type=${vs.content_type})" alt="" />`):((ks=as==null?void 0:as.type)==null?void 0:ks.indexOf("video"))>-1?Qi.replaceSelection(`<video width="100%" controls src="/api/attachments/${vs.id}"></video>`):((en=as==null?void 0:as.type)==null?void 0:en.indexOf("pdf"))>-1?Qi.replaceSelection(`<a href="/api/attachments/${vs.id}?type=${as.type}&disposition=inline" target="_blank">${as.name}</a>`):wn.includes(Ks)?Qi.replaceSelection(`<a href="/api/attachments/${vs.id}?type=office&disposition=inline" target="_blank">${as.name}</a>`):Qi.replaceSelection(`[${as.name}](/api/attachments/${vs.id}?type=${vs.content_type})`):(vs==null?void 0:vs.status)===401&&(document.location.href="/user/login")})}catch(ia){In.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qi=Ne().fromTextArea(Te.current,{mode:cn,lineNumbers:!Sn,lineWrapping:!0,value:te,autoCloseTags:!0,autoCloseBrackets:!0});return Qi.on("keyup",function(Er,hn){hn.keyCode===8&&(Er.getValue()==""?Qi.setOption("placeholder",Gi):Qi.setOption("placeholder",null))}),Qi.on("keydown",function(Er,hn){if(hn.keyCode===8){var ar=Nr(Er);ar&&hn.preventDefault()}}),An&&Qi.focus(),Qi.on("paste",er),Si&&Qi.on("beforeChange",function(Er,hn){(hn.origin==="paste"||hn.origin==="+input")&&hn.cancel()}),zi(Qi),()=>{Qi.off("paste",er)}}},[]);const Ii=(0,Pt.useCallback)(()=>{if(Ze.current)try{}catch(er){console.log(er,"---- to set md editor body height")}},[Xr,Ze,ur]);(0,Pt.useEffect)(()=>{function er(){let Qi=new Be.Z(Er=>{for(let hn of Er)(hn.target.offsetHeight>0||hn.target.offsetWidth>0)&&(Ii(),Yn.setSize("100%","100%"),Yn.refresh())});return Qi.observe(Te.current.parentElement),Qi}if(Yn){const Qi=er();return()=>{var Er,hn;(Er=Te.current)!=null&&Er.parentElement&&Qi.unobserve((hn=Te.current)==null?void 0:hn.parentElement)}}},[Yn,Ii]),(0,Pt.useEffect)(()=>{if(Yn){let er=[];for(const[Qi,Er]of Object.entries(ai)){let hn={[Qi]:()=>{lr(Er)}};er.push(hn),Yn.addKeyMap(hn)}return()=>{for(let Qi of er)Yn.removeKeyMap(Qi)}}},[Yn]),(0,Pt.useEffect)(()=>{Li!==ur&&Tr(Li)},[Li]),(0,Jo.Z)(()=>{if(!mn&&eo>0){let er=new Date().getTime(),Qi=window.sessionStorage.getItem(_n);er>=eo+pa&&(!Qi||Qi!==qo)&&(window.sessionStorage.setItem(_n,qo),Ln(!0))}},pa),(0,Pt.useEffect)(()=>{Ke(En)},[Yn,En]),(0,Pt.useEffect)(()=>{Yn&&An&&Yn.focus()},[Yn,An]),(0,Pt.useEffect)(()=>{if(la&&Yn){let er=function(Er){let hn=Er.target;if(zn.current){let ar=hn.scrollTop/hn.scrollHeight;zn.current.scrollTop=zn.current.scrollHeight*ar}};const Qi=Yn.getScrollerElement();return Qi.addEventListener("scroll",er),()=>{Qi.removeEventListener("scroll",er)}}},[Yn,la]),(0,Pt.useEffect)(()=>{if(Yn&&oi){let er=function(Qi,Er){oi(Qi,Er)};return Yn.on("beforeChange",er),()=>{Yn.off("beforeChange",er)}}},[Yn,oi]),(0,Pt.useEffect)(()=>{if(Yn&&qe){let er=function(){qe(Yn.getValue())};return Yn.on("blur",er),()=>{Yn.off("blur",er)}}},[Yn,qe]);function Nr(er,Qi){var Er=er.getDoc(),hn=Er.getCursor(),ar=Er.getLine(hn.line),oo=ar.charAt(hn.ch-1),ca=ar.lastIndexOf("@\u2581@",hn.ch),$o=ar.lastIndexOf("@\u2581\u2581@",hn.ch),ia=ca>$o?ca:$o,as=ca>$o?3:4;if(Xi.indexOf(oo)===-1)return null;if(console.log("change1:",Qi,er,ar,hn,ia,ca,$o,oo),ia>=0&&hn.ch-ia<5){var Ks=ia+as;return Er.replaceRange("",{line:hn.line,ch:ia},{line:hn.line,ch:Ks}),{line:hn.line,ch:Ks}}return null}(0,Pt.useEffect)(()=>{if(Yn){let er=function(Qi,Er){const hn=Qi.getValue();sa(hn),uo(new Date().getTime()),Qi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),le&&(ni?le(hn,Eo(hn)):le(hn))};return Yn.on("change",er),()=>{Yn.off("change",er)}}},[Yn,le]),(0,Pt.useEffect)(()=>{if(Yn)if(te==null)Yn.setValue(""),sa("");else{const er=window.scrollY||window.pageYOffset;te!==Yn.getValue()&&(Yn.setValue(te),sa(te),Yn.setCursor(Si?1:Yn.lineCount(),0),window.scrollTo(0,er))}},[Yn,te]);const lr=(0,Pt.useCallback)(er=>{const Qi=Yn.getCursor(),Er=Yn.getSelection();let hn=Er.split(`
|
|
`);switch(er){case"bold":return Yn.replaceSelection("**"+Er+"**"),Er===""&&Yn.setCursor(Qi.line,Qi.ch+2),Yn.focus();case"italic":return Yn.replaceSelection("*"+Er+"*"),Er===""&&Yn.setCursor(Qi.line,Qi.ch+1),Yn.focus();case"code":return Yn.replaceSelection("`"+Er+"`"),Er===""&&Yn.setCursor(Qi.line,Qi.ch+1),Yn.focus();case"inline-latex":return Vo("inline-latex"),Yn.focus();case"latex":return Yn.replaceSelection("```latex\n"+Er+"\n```"),Yn.setCursor(Qi.line+1,Er.length+1),Yn.focus();case"line-break":return Yn.replaceSelection(`<br/>
|
|
`),Yn.focus();case"list-ul":return Er===""?Yn.replaceSelection("- "+Er):Yn.replaceSelection(hn.map(ar=>ar===""?"":`- ${ar}`).join(`
|
|
`)),Yn.focus();case"list-ol":return Er===""?Yn.replaceSelection("1. "+Er):Yn.replaceSelection(hn.map((ar,oo)=>ar===""?"":`${oo+1}. ${ar}`).join(`
|
|
`)),Yn.focus();case"add-null-ch":return Er===""&&Yn.setCursor(Qi.line,Qi.ch),Yn.replaceSelection(co),Yn.focus();case"add-signal":return Er===""&&Yn.setCursor(Qi.line,Qi.ch),Yn.replaceSelection(bn),Yn.focus();case"add-multiple":return Er===""&&Yn.setCursor(Qi.line,Qi.ch),Yn.replaceSelection(Xi),Yn.focus();case"inster-template-1":return Er===""&&Yn.setCursor(Qi.line,Qi.ch),Yn.replaceSelection(bt),Yn.focus();case"eraser":return Yn.setValue(""),Yn.focus();case"trigger-watch":return Ke(!la),Yn.focus();case"trigger-full-screen":return Tr(!ur),Yn.focus();case ei:Vo(ei);return;case rr:Vo(rr);return;case Ki:Vo(Ki);return;case $i:Vo($i);return;case"maths-latex":Vo("maths-latex");return;case hi:Vo(hi);return;case ki:Vo(ki);return;default:throw new Error}},[Yn,la,ur]),si=(0,Pt.useCallback)((er,Qi)=>{var Er,hn,ar,oo,ca,$o;switch(Vo(""),or){case ei:const{title:au,link:ks}=er;return Yn.replaceSelection(`[${au}](${ks})`),Yn.focus();case rr:const{language:en,content:Us}=er;return Yn.replaceSelection(["```"+en,Us,"```"].join(`
|
|
`)),Yn.focus();case"maths-latex":for(var ia=atob(er),as=new Uint8Array(ia.length),Ks=0;Ks<ia.length;Ks++)as[Ks]=ia.charCodeAt(Ks);var vs=new Blob([as],{type:"image/png"});(0,Ye.I)(vs,so=>{so.id?Yn.replaceSelection(``):(so==null?void 0:so.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Yn.replaceSelection("`$$"+er+"$$`");break;case Ki:case $i:case pr:const{src:kl,alt:xu}=er,ma=Qi,Pl=(ar=(hn=(Er=ma==null?void 0:ma.name)==null?void 0:Er.split("."))==null?void 0:hn.pop)==null?void 0:ar.call(hn);return((oo=ma==null?void 0:ma.type)==null?void 0:oo.indexOf("image"))>-1||!(ma!=null&&ma.type)?ma!=null&&ma.align||ma!=null&&ma.width?Yn.replaceSelection(`<p style="text-align:${ma.align||"initial"}"><img width="${ma.width?ma.width+"%":"initial"}" src="${kl}" alt="${xu||""}" /></p>`):Yn.replaceSelection(`<img width="100%" src="${kl}" alt="${xu||""}" />`):((ca=ma==null?void 0:ma.type)==null?void 0:ca.indexOf("video"))>-1?Yn.replaceSelection(`<video width="100%" controls src="${kl}"></video>`):(($o=ma==null?void 0:ma.type)==null?void 0:$o.indexOf("pdf"))>-1?Yn.replaceSelection(`<a href="${kl}?type=${ma.type}&disposition=inline" target="_blank">${ma.name}</a>`):wn.includes(Pl)?Yn.replaceSelection(`<a href="${kl}?type=office&disposition=inline" target="_blank">${ma.name}</a>`):Yn.replaceSelection(`[${ma.name}](${kl})`),Yn.focus();case ki:const{row:wl,col:su,align:Aa}=er;let ps=`
|
|
`;for(let so=0;so<wl;so++){let Do=[],ka=[];for(let ls=0;ls<su;ls++)so===1&&ka.push(Ur[Aa]),Do.push(" ");so===1&&(ps+=`| ${ka.join(" | ")} |
|
|
`),ps+=`| ${Do.join(su===1?"":" | ")} |
|
|
`}return Yn.replaceSelection(ps+`
|
|
`),Yn.focus();default:throw new Error}},[Yn,or]),Zt=(0,Pt.useMemo)(()=>{switch(or){case ei:return Pt.createElement(ce,{callback:si,onCancel:Ao});case rr:return Pt.createElement(_e.Z,{callback:si,onCancel:Ao});case Ki:return Pt.createElement(Ye.Z,{callback:si,onCancel:Ao});case hi:return Pt.createElement($e,{callback:si,onCancel:Ao});case ki:return Pt.createElement(Ue,{callback:si,onCancel:Ao});case"maths-latex":return Pt.createElement(gi,{showSaveButton:!0,callback:si});case"inline-latex":return Pt.createElement(Mi.Z,{showSaveButton:!0,callback:si});default:return null}},[or]);function Ao(){Vo("")}(0,Pt.useEffect)(()=>{if(sn.current){let er=function(ca){ar=!0,oo=ca.pageY},Qi=function(){ar=!1},Er=function(ca){if(ar){let $o=ca.pageY-oo;$o<0&&($o=0),$o>300&&($o=300);let ia=Ae+$o+"px";Ir(ia)}},hn=sn.current,ar=!1,oo=0;return hn.addEventListener("mousedown",er),document.addEventListener("mousemove",Er),document.addEventListener("mouseup",Qi),()=>{hn.removeEventListener("mousedown",er),document.removeEventListener("mousemove",Er),document.removeEventListener("mouseup",Qi)}}},[Yn,sn]),(0,Pt.useEffect)(()=>{Ir(Ae)},[Ae]);const rs=Fn(ae),Ls=Fn(Xr),Xa={width:rs,height:Ls},Ea=(0,Pt.useMemo)(()=>{if(eo){let er=new Date(eo),Qi=er.getHours(),Er=er.getMinutes(),hn=er.getSeconds();return Qi=Qi<10?"0"+Qi:Qi,Er=Er<10?"0"+Er:Er,hn=hn<10?"0"+hn:hn,`${Qi}:${Er}:${hn}`}return 0},[eo]),Eo=er=>{const Qi=[];if(ni){let Er=-1;er=er.replace(/(@▁▁@|@▁@)/g,function(hn,ar,oo){Qi.push({multiLine:hn!==bn})})}return Qi};function gs(){window.sessionStorage.removeItem(_n),Ln(!1),uo(0)}function os(){Ln(!1),uo(0),Yn.setValue(window.sessionStorage.getItem(_n))}(0,Pt.useEffect)(()=>{Tn[or]&&or!==$i&&or!==hi&&setTimeout(()=>{const er=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth/2-er.offsetWidth/2,Er=window.innerHeight/2-er.offsetHeight/2;Pn(Qi),Ga(Er)},0)},[or]);const Ho=er=>{er.preventDefault();const Qi=er.clientX-$r,Er=er.clientY-Br;document.body.onmousemove=hn=>{let ar=hn.clientX-Qi,oo=hn.clientY-Er;const ca=document.getElementsByClassName("markdown-popup-form")[0],$o=window.innerWidth-ca.offsetWidth,ia=window.innerHeight-ca.offsetHeight;ar=Math.max(0,Math.min(ar,$o)),oo=Math.max(0,Math.min(oo,ia)),_o(hn.clientX,hn.clientY,Qi,Er)&&(Pn(ar),Ga(oo))},document.body.onmouseup=function(){document.body.onmousemove=null}},_o=(er,Qi,Er,hn)=>{const ar=document.body.clientHeight,oo=document.body.clientWidth;return er<20&&Er>er||er>oo-20&&Er<er||Qi<20&&hn>Qi||Qi>ar-20&&hn<Qi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{className:"markdown-editor-wrapper",ref:Ze},Pt.createElement("div",{className:`markdown-editor-container ${gr} ${la?"on-preview":""} ${Sn?"mini":""} ${ur?"full-screen":""}`,style:Xa},Pt.createElement(Jt,{insertTemp:ke,watch:la,fullScreen:ur,showNullButton:Oe,showNullProgramButton:ni,onActionCallback:lr,hidetoolBar:Pi,extraUse:hr}),Pt.createElement("div",{className:"markdown-editor-body"},Pt.createElement("div",{className:"codemirror-container"},Pt.createElement("textarea",{ref:Te,placeholder:Gi})),la?Pt.createElement("div",{ref:zn,className:"preview-container"},cn==="stex"&&Pt.createElement(pe,{value:qo}),cn!=="stex"&&Pt.createElement(Xe.Z,{disabledFill:Fi,showProgramFill:ni,value:qo})):null))),vi?Pt.createElement("a",{ref:sn,className:"editor-resize"}):null,or===$i&&Pt.createElement(Ie,{callback:si,onCancel:Ao}),or===hi&&Pt.createElement($e,{callback:si,onCancel:Ao}),Pt.createElement(re.Z,null,Tn[or]&&or!==$i&&or!==hi?Pt.createElement(xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$r,top:Br},title:Pt.createElement("div",{style:{cursor:"move"},onMouseDown:Ho},Tn[or]),open:!0,onCancel:Ao,footer:null,destroyOnClose:!0,width:or===hi?"1200px":null,height:or===hi?"80vh":null,className:"markdown-popup-form"},Zt):null))}},70859:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return zt},I:function(){return re}});var Pt=Mt(91773),ne=Mt(2453),Ne=Mt(28802),Be=Mt(78957),Pe=Mt(37720),Bt=Mt(98813),Ut=Mt(85804),ue=Mt(15476),se=Mt(67294),Se=Mt(67294),Xe=Object.defineProperty,pe=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(oe,$t,Le)=>$t in oe?Xe(oe,$t,{enumerable:!0,configurable:!0,writable:!0,value:Le}):oe[$t]=Le,lt=(oe,$t)=>{for(var Le in $t||($t={}))nt.call($t,Le)&&ht(oe,Le,$t[Le]);if(Dt)for(var Le of Dt($t))et.call($t,Le)&&ht(oe,Le,$t[Le]);return oe},gt=(oe,$t)=>pe(oe,Ht($t));const{useForm:mt}=Pt.default,xt={width:280,marginRight:10},St={labelCol:{span:5},wrapperCol:{span:19}};var zt=({callback:oe,onCancel:$t})=>{const[Le]=mt();let de=(0,se.useRef)();function Fe(jn){de.current.width=Le.getFieldValue("width"),de.current.align=Le.getFieldValue("align"),oe(jn,de.current)}function rn(jn,Bn){if(jn.status===-1){ne.ZP.error(jn.message);return}Le.setFieldsValue({src:`/api/attachments/${jn.id}`,type:Bn.type})}function De(jn){let Bn=jn.target.files[0];de.current=Bn,re(Bn,rn)}return Se.createElement(Pt.default,gt(lt({form:Le},St),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),Se.createElement(Pt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Se.createElement("div",{className:"flex-container"},Se.createElement(Pt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Se.createElement(Ne.default,{style:xt})),Se.createElement(Jt,{onFileChange:De}))),Se.createElement(Pt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Se.createElement(Ne.default,{style:{width:264}})),Se.createElement(Pt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Se.createElement(Be.Z,null,Se.createElement(Pt.default.Item,{name:"width",style:{margin:0}},Se.createElement(Pe.Z,{style:{width:264}})),Se.createElement("span",{className:"ml8"},"%"))),Se.createElement(Pt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Se.createElement(Bt.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"}]})),Se.createElement("aside",null,Se.createElement(Pt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Se.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(Ut.ZP,{type:"default",onClick:$t},"\u53D6\u6D88"))))};function Jt({onFileChange:oe}){return Se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Se.createElement("input",{type:"file",onChange:oe}))}function re(oe,$t){if(!oe)throw new String("\u6CA1\u6709\u6587\u4EF6");let Le=new FormData;Le.append("editormd-image-file",oe),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var de=new window.XMLHttpRequest;de.withCredentials=!0,de.addEventListener("load",function(Fe){$t(JSON.parse(Fe.target.responseText),oe)},!1),de.addEventListener("error",function(Fe){console.error(Fe)},!1),de.open("POST",`${ue.KI}/api/attachments.json`),de.send(Le)}},76621:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Ne}});var Pt=Mt(67294),ne=Mt(73935);class Ne extends Pt.Component{constructor(Pe){super(Pe);const Bt=window.document;this.node=Bt.createElement("div"),Bt.body.appendChild(this.node)}render(){const{children:Pe}=this.props;return(0,ne.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(un,Nn,Mt){"use strict";Mt.d(Nn,{SV:function(){return ve},ZP:function(){return Ie}});var Pt=Mt(67294),ne=Mt(91033);const Ne={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"]},Be={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"]},Pe={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(`
|
|
`)}]},Bt={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(`
|
|
`)}]},Ut={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 ue=Mt(84204),se=Mt.n(ue),Se=(ze,je,He)=>new Promise((Ot,Lt)=>{var wt=kt=>{try{Wt(He.next(kt))}catch(Xt){Lt(Xt)}},Ft=kt=>{try{Wt(He.throw(kt))}catch(Xt){Lt(Xt)}},Wt=kt=>kt.done?Ot(kt.value):Promise.resolve(kt.value).then(wt,Ft);Wt((He=He.apply(ze,je)).next())});const Xe={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"]}},pe=(ze,je,He,Ot)=>{const Lt=je.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:He.lineNumber,endColumn:He.column});return Array.from(new Set(Lt.match(/\b\w{2,}\b/g)||[])).map(Ft=>({label:Ft,kind:ze.languages.CompletionItemKind.Text,insertText:Ft,range:Ot}))},Ht=(ze,je,He,Ot)=>{ze.languages.registerCompletionItemProvider(je,{provideCompletionItems(Lt,wt){const Ft=Lt.getWordUntilPosition(wt),Wt={startLineNumber:wt.lineNumber,endLineNumber:wt.lineNumber,startColumn:Ft.startColumn,endColumn:Ft.endColumn},kt=Lt.getLineContent(wt.lineNumber).substring(Ft.startColumn-2,Ft.endColumn);return{suggestions:[...pe(ze,Lt,wt,Wt),...He.map($e=>({label:$e,kind:ze.languages.CompletionItemKind.Keyword,documentation:$e,insertText:$e,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wt})),...Ot.map($e=>({label:$e.label,kind:ze.languages.CompletionItemKind.Snippet,documentation:$e.content,insertText:kt.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wt}))]}}})};var Dt=ze=>{Xe.languages.forEach(je=>{ze.languages.registerDocumentFormattingEditProvider(je,{provideDocumentFormattingEdits(He){return Se(this,null,function*(){const Ot=se()(He.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:He.getFullModelRange(),text:Ot}]})}})}),Ht(ze,"java",Be.keywords,Be.quickKey),Ht(ze,"cpp",Pe.keywords,Pe.quickKey),Ht(ze,"c",Ne.keywords,[]),Ht(ze,"python",Bt.keywords,Bt.quickKey),Ht(ze,"scala",Ut.keywords,Ut.quickKey)};const nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var et=Object.defineProperty,ht=(ze,je,He)=>je in ze?et(ze,je,{enumerable:!0,configurable:!0,writable:!0,value:He}):ze[je]=He,lt=(ze,je,He)=>ht(ze,typeof je!="symbol"?je+"":je,He);const gt=class px{constructor(je,He,Ot){this.placeholder=je,this.editor=He,this.monaco=Ot,He.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};lt(gt,"ID","editor.widget.placeholderHint");var xt=gt,St=Mt(84144),zt=Mt(2453),Jt=Mt(83062),re=Mt(96486),oe=Mt(33054),$t=Mt(74855),Le=Object.defineProperty,de=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Bn=(ze,je,He)=>je in ze?Le(ze,je,{enumerable:!0,configurable:!0,writable:!0,value:He}):ze[je]=He,an=(ze,je)=>{for(var He in je||(je={}))De.call(je,He)&&Bn(ze,He,je[He]);if(rn)for(var He of rn(je))jn.call(je,He)&&Bn(ze,He,je[He]);return ze},Zn=(ze,je)=>de(ze,Fe(je)),_t=(ze,je)=>{var He={};for(var Ot in ze)De.call(ze,Ot)&&je.indexOf(Ot)<0&&(He[Ot]=ze[Ot]);if(ze!=null&&rn)for(var Ot of rn(ze))je.indexOf(Ot)<0&&jn.call(ze,Ot)&&(He[Ot]=ze[Ot]);return He},Tt=(ze,je,He)=>new Promise((Ot,Lt)=>{var wt=kt=>{try{Wt(He.next(kt))}catch(Xt){Lt(Xt)}},Ft=kt=>{try{Wt(He.throw(kt))}catch(Xt){Lt(Xt)}},Wt=kt=>kt.done?Ot(kt.value):Promise.resolve(kt.value).then(wt,Ft);Wt((He=He.apply(ze,je)).next())});function ce(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function _e(){}let Ye=!1;const xe={"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 on(ze=[]){let je=ze;if(Array.isArray(ze)){for(let He=0;He<ze.length;He++){let Ot=xe[ze[He]];if(Ot)return Ot}return je[0]}return xe[je]||je}let tn=null;const Cn=()=>Tt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ze){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ze)}});var Ie=ze=>{var je=ze,{width:He="100%",height:Ot="100%",value:Lt,language:wt="javascript",style:Ft={},options:Wt={},overrideServices:kt={},theme:Xt="vs-dark",onEditBlur:$e,isCopy:Je=!1,onSave:fn,autoHeight:Ve=!1,forbidCopy:Mn=!1,onChange:Ue=_e,editorDidMount:ti=_e,onFocus:Qn=_e,onBreakPoint:Hn=_e,breakPointValue:pn=[],filename:gi="educoder.txt",errorLine:Mi,errorContent:In="",highlightLine:ei,openBreakPoint:Ki=!1,placeholder:hi="",showMiniMap:$i=!0}=je,pr=_t(je,["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 rr=(0,Pt.useRef)(),ki=(0,Pt.useRef)({}),sr=(0,Pt.useRef)(),Ur=(0,Pt.useRef)(),Jo=(0,Pt.useRef)([]),Rr=(0,Pt.useRef)(!1),To=(0,Pt.useRef)(),pa=(0,Pt.useRef)(),co=(0,Pt.useRef)(!1),[Xi,bn]=(0,Pt.useState)(!1);function bt(){let ke;return rr.current&&(ke=new ne.Z(cn=>{for(let _n of cn)(_n.target.offsetHeight>0||_n.target.offsetWidth>0)&&ki.current.instance.layout()}),ke.observe(rr.current)),ke}function wn(){zt.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const Fn=()=>{let ke=ki.current.instance;if(Lt!=null&&ke&&Xi){const cn=ke.getModel();cn&&Lt!==cn.getValue()&&(Ye=!0,cn.setValue(Lt),ke.layout(),Ye=!1)}};(0,Pt.useEffect)(()=>{const ke=oe.Z.subscribe("formatDocument",cn=>{var _n;let vi=ki.current.instance;(_n=vi==null?void 0:vi.getAction)==null||_n.call(vi,"editor.action.formatDocument").run()});return window.updateMonacoValue=cn=>{Ue(cn)},ke},[]),(0,Pt.useEffect)(()=>{var ke;let cn=ki.current.instance;Ur.current&&clearTimeout(Ur.current),Ur.current=setTimeout(()=>{Fn()},500),Lt&&(Lt!=null&&Lt.length)&&((ke=cn==null?void 0:cn.updateOptions)==null||ke.call(cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Lt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Lt,Xi,ki.current]),(0,Pt.useEffect)(()=>{if(Mi&&ki.current&&ki.current.instance){let cn=ki.current.instance;cn.changeViewZones(function(_n){var vi=document.createElement("div");vi.style.padding="10px 20px",vi.style.width="calc(100% - 20px)",vi.className="my-error-line-wrp",vi.innerHTML=In,_n.addZone({afterLineNumber:Mi||11,heightInLines:3,domNode:vi})});var ke={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}};cn.addOverlayWidget(ke),cn.revealPositionInCenter({lineNumber:20,column:1})}},[Mi,ki.current,Xi]);const Un=(ke="",cn)=>{if(!ke||ke.trim()==="")return!0;const vi=ki.current.instance.getModel().getLineTokens(cn);let mn=!1;for(let Oe=0;Oe<2;Oe++)vi.getStandardTokenType(Oe)===1&&(mn=!0);return mn};(0,Pt.useEffect)(()=>{var ke;const cn=(ke=ki.current)==null?void 0:ke.instance;if(cn&&Xi&&Mn){const _n=cn.onDidBlurEditorWidget(()=>{co.current=!1}),vi=cn.onDidFocusEditorText(()=>{co.current=!0});return()=>{_n.dispose(),vi.dispose()}}},[ki.current,Xi,Mn]),(0,Pt.useEffect)(()=>{var ke;if((ke=ki.current)!=null&&ke.instance&&Xi&&Ki){let cn=ki.current.instance,_n=cn.getModel();if(!_n)return;(()=>{var Si;let Fi=[],Gi=[];const Mr=_n.getAllDecorations();for(let Yn of Mr)Yn.options.className==="highlighted-line"&&(Fi.push((Si=Yn==null?void 0:Yn.range)==null?void 0:Si.startLineNumber),Gi.push(Yn==null?void 0:Yn.id));if(ei===Fi[0])return;_n.deltaDecorations(Gi,[]);const hr=_n.getLineCount();ei&&ei<=hr&&(cn.deltaDecorations([],[{range:new tn.Range(ei,1,ei,_n.getLineMaxColumn(ei)),options:{isWholeLine:!0,className:"highlighted-line"}}]),cn.revealLineInCenter(ei))})();const mn=(Si=!1)=>{var Fi;let Gi=[],Mr=[];const hr=_n.getAllDecorations();for(let Yn of hr)Yn.options.linesDecorationsClassName==="breakpoints-select"&&(Gi.push((Fi=Yn==null?void 0:Yn.range)==null?void 0:Fi.startLineNumber),Mr.push(Yn==null?void 0:Yn.id));if(Si)return{lines:Gi,ids:Mr};Hn(Gi)},Oe=Si=>Tt(void 0,null,function*(){let Fi={range:new tn.Range(Si,1,Si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _n.deltaDecorations([],[Fi]),mn()}),ni=Si=>Tt(void 0,null,function*(){let Fi=[];const Gi=cn.getLineDecorations(Si);for(let Mr of Gi)Mr.options.linesDecorationsClassName==="breakpoints-select"&&Fi.push(Mr.id);yield _n.deltaDecorations(Fi,[]),mn()}),Pi=Si=>{let Fi=cn.getLineDecorations(Si);for(let Gi of Fi)if(Gi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,re.isEqual)(pn,mn(!0).lines)){_n.deltaDecorations(mn(!0).ids,[]);const Si=pn.map(Fi=>({range:new tn.Range(Fi,1,Fi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_n.deltaDecorations([],Si)}const Li=cn.onDidChangeModelContent(Si=>{let Fi=cn.getPosition();if(Fi){let Gi=Fi.lineNumber;clearTimeout(pa.current),pa.current=setTimeout(()=>{Un(_n.getLineContent(Gi),Gi)?ni(Gi):Pi(Gi)?(ni(Gi),Oe(Gi)):mn()},100)}}),qe=cn.onMouseDown(Si=>{var Fi,Gi,Mr;if(Si.target.detail&&((Mr=(Gi=(Fi=Si.target)==null?void 0:Fi.element)==null?void 0:Gi.className)!=null&&Mr.includes("line-numbers"))){let hr=Si.target.position.lineNumber;if(Un(_n.getLineContent(hr),hr))return;Pi(hr)?ni(hr):Oe(hr)}}),oi=Si=>{let Fi={range:new tn.Range(Si,1,Si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Jo.current=cn.deltaDecorations(Jo.current,[Fi])},Ni=()=>{Jo.current=cn.deltaDecorations(Jo.current,[])},gr=cn.onMouseMove(Si=>{var Fi,Gi,Mr;if(Ni(),Si.target.detail&&((Mr=(Gi=(Fi=Si.target)==null?void 0:Fi.element)==null?void 0:Gi.className)!=null&&Mr.includes("line-numbers"))){let hr=Si.target.position.lineNumber;if(Un(_n.getLineContent(hr),hr))return;oi(hr)}}),xr=cn.onMouseLeave(()=>{Ni()});return()=>{Li.dispose(),qe.dispose(),gr.dispose(),xr.dispose()}}},[ki.current,Xi,pn,ei,Ki,wt]),(0,Pt.useEffect)(()=>{var ke;(ke=ki.current)!=null&&ke.instance&&Ki&&ki.current.instance.setPosition({lineNumber:0,column:0})},[ei]);function Xn(){let ke=ki.current.instance;if(ke){const cn=ke.getSelection(),_n=ki.current.pastePos||{},vi=new tn.Range(_n.startLineNumber||cn.endLineNumber,_n.startColumn||cn.endColumn,_n.endLineNumber||cn.endLineNumber,_n.endColumn||cn.endColumn);setTimeout(()=>{ke.executeEdits("",[{range:vi,text:""}])},300)}}function ai(ke){(window.navigator.platform.match("Mac")?ke.metaKey:ke.ctrlKey)&&ke.keyCode==83&&(ke.preventDefault(),fn())}const Tn=()=>{if(Ve&&ki.current.instance){const ke=ki.current.instance.getContentHeight();An(ke<Ot?Ot:ke)}else An(Ot)};function Di(ke){var cn=document.createEvent("MouseEvents");cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ke.dispatchEvent(cn)}const te=ke=>{if(!co.current)return;const{keyCode:cn,ctrlKey:_n,metaKey:vi,target:mn,type:Oe}=ke;return(Oe==="paste"||(cn===67||cn===86)&&(vi||_n))&&mn.nodeName==="TEXTAREA"&&(wn(),ke.preventDefault()),!1};function le(ke,cn){var _n=window.URL||window.webkitURL||window,vi=new Blob([cn]),mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");mn.href=_n.createObjectURL(vi),mn.download=ke,Di(mn)}(0,Pt.useEffect)(()=>{Tn()},[Tn]),(0,Pt.useEffect)(()=>{rr.current&&!Xi&&Promise.all([Mt.e(5552),Mt.e(9651)]).then(Mt.bind(Mt,55826)).then(ke=>{try{tn=ke,ki.current.instance=tn.editor.create(rr.current,{value:Lt,language:on(wt),theme:Xt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:$i||!1}},kt);const cn=ki.current.instance;let mn=[...St.BH._menuItems].find(Li=>Li[0]._debugName=="EditorContext")[1],Oe=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ni=(Li,qe)=>{var oi,Ni;let gr=Li._first;do qe.includes((Ni=(oi=gr.element)==null?void 0:oi.command)==null?void 0:Ni.id)&&Li._remove(gr);while(gr=gr.next)};if(ti(cn,tn),setTimeout(()=>{Tn(),ki.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{le(gi||"educoder.txt",cn.getValue())}})},500),ki.current.subscription=cn.onDidChangeModelContent(Li=>{Rr.current?clearTimeout(To.current):(Tn(),Ue(cn.getValue(),Li)),To.current=setTimeout(()=>{Rr.current=!1},500)}),window.Monaco||Dt(tn,on(wt)),Mn&&(ni(mn,Oe),rr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",te),window.removeEventListener("paste",te),window.addEventListener("keydown",te),window.addEventListener("paste",te)),window.Monaco=tn,$e&&cn.onDidBlurEditorWidget(()=>{$e(cn.getValue())}),Qn&&cn.onDidFocusEditorText(()=>{Mn&&Cn(),Qn(cn.getValue())}),Mn){Cn();try{cn.onDidPaste(Li=>{const qe=cn.getSelection(),oi=ki.current.pastePos||{},Ni=new tn.Range(oi.startLineNumber||qe.endLineNumber,oi.startColumn||qe.endColumn,oi.endLineNumber||qe.endLineNumber,oi.endColumn||qe.endColumn);cn.executeEdits("",[{range:Li.range,text:""}])})}catch(Li){}}let Pi=bt();return hi&&typeof hi=="string"&&new xt(hi,cn,tn),bn(!0),()=>{const Li=ki.current.instance;Li.dispose();const qe=Li.getModel();qe&&qe.dispose(),ki.current.subscription&&ki.current.subscription.dispose(),Pi.unobserve(rr.current)}}catch(cn){}})},[]),(0,Pt.useEffect)(()=>{if(ki.current.instance&&Xi)return document.addEventListener("keydown",ai,!1),()=>{document.removeEventListener("keydown",ai)}},[fn,Xi]),(0,Pt.useEffect)(()=>{let ke=ki.current.instance;if(ke&&Xi){let cn=on(wt);tn.editor.setModelLanguage(ke.getModel(),cn)}},[wt,Xi]),(0,Pt.useEffect)(()=>{ki.current.instance&&Xi&&tn.editor.setTheme(Xt)},[Xt,Xi]),(0,Pt.useEffect)(()=>{let ke=ki.current.instance;sr.current=Wt,ke&&Xi&&(ke.updateOptions(an({},Wt)),setTimeout(()=>{ke.getModel().updateOptions(an({},Wt))},200))},[JSON.stringify(Wt),Xi]),(0,Pt.useEffect)(()=>{let ke=ki.current.instance;ke&&Xi&&ke.layout()},[He,Ot,Xi]);const[ae,Ae]=(0,Pt.useState)(ce(He)),[Sn,An]=(0,Pt.useState)(ce(Ot)),En=Zn(an({},Ft),{width:ae,height:Sn,position:"relative"});return Pt.createElement("div",{className:"my-monaco-editor",ref:rr,style:En},Je&&Pt.createElement($t.CopyToClipboard,{text:Lt,onCopy:()=>zt.ZP.success("\u590D\u5236\u6210\u529F")},Pt.createElement(Jt.Z,{title:"\u590D\u5236\u4EE3\u7801"},Pt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Pt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ve({width:ze="100%",height:je="100%",original:He,modified:Ot,language:Lt,options:wt={}}){const Ft=(0,Pt.useRef)(),[Wt,kt]=(0,Pt.useState)(null);function Xt(Ve){let Mn;return Ft.current&&(Mn=new ne.Z(Ue=>{for(let ti of Ue)(ti.target.offsetHeight>0||ti.target.offsetWidth>0)&&Ve.layout()}),Mn.observe(Ft.current)),Mn}(0,Pt.useEffect)(()=>(Ft.current&&Promise.all([Mt.e(5552),Mt.e(9404)]).then(Mt.bind(Mt,50048)).then(Ve=>{tn=Ve;const Mn=tn.editor.createDiffEditor(Ft.current,Zn(an({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},wt),{wordWrap:!0}));kt(Mn);let Ue=Xt(Mn);return()=>{Mn.dispose();const ti=Mn.getModel();ti&&ti.dispose(),Ue.unobserve(Ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Pt.useEffect)(()=>{Wt&&Wt.setModel({original:tn.editor.createModel(He,Lt),modified:tn.editor.createModel(Ot,Lt)})},[He,Ot,Lt,Wt]);const $e=ce(ze),Je=ce(je),fn={width:$e,height:Je};return Pt.createElement("div",{className:"my-diff-editor",ref:Ft,style:fn})}},5476:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Xe}});var Pt={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"},ne=Mt(74330),Ne=Mt(83062),Be=Mt(94184),Pe=Mt.n(Be),Bt=Mt(28706),Ut=Mt(26194),ue=Mt(52262),se=Mt(67294),Xe=({className:pe,dataSource:Ht=[],col:Dt=4,right:nt,bottom:et=23,precision:ht=0,wrapWidth:lt=1200,trackEventItems:gt,loading:mt,onRemove:xt=()=>{},isCurrent:St=!0,showAlias:zt=!1})=>{const Jt=Math.floor((lt-(Dt-1)*nt)/Dt),re=[{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 se.createElement(ne.Z,{spinning:mt},se.createElement("div",{className:Pe()(Pt.list,pe)},!!(Ht!=null&&Ht.length)&&(Ht==null?void 0:Ht.map((oe,$t)=>{var Le;const{name:de,id:Fe,identifier:rn,featured:De,school_name:jn,image_url:Bn,excellent:an,is_plan:Zn}=oe;return se.createElement("div",{key:Fe,className:Pt.wrap,style:{width:Jt,marginRight:(1+$t)%Dt===0?0:nt+ht,marginBottom:et}},se.createElement("a",{className:Pt.li,onClick:_t=>{_t.preventDefault(),_t.stopPropagation(),gt&&(0,Bt.L9)([gt]),(0,Bt.xg)(`/paths/${rn}`)}},se.createElement("div",{className:Pt.img},se.createElement("img",{className:Pt.cover,src:`${Bn}`}),St&&(0,ue.bg)()&&(oe==null?void 0:oe.studying)&&se.createElement("div",{className:`${Pt.movebq} user-path-items`,onClick:_t=>{_t.stopPropagation(),xt(oe)}},se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Le=oe==null?void 0:oe.subject_tags)==null?void 0:Le.map((_t,Tt)=>{var ce,_e;if(Tt===0){const xe=(ce=re.find(on=>on.name==_t))==null?void 0:ce.swimg;return se.createElement("img",{className:Pt.sign,src:xe,style:{left:"-4px"}})}const Ye=(_e=re.find(xe=>xe.name==_t))==null?void 0:_e.ptimg;return se.createElement("img",{className:Pt.sign,src:Ye,style:{left:`${48+52*(Tt-1)+2*Tt}px`}})}),se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(oe==null?void 0:oe.excellent)&&se.createElement("div",{className:Pt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),se.createElement("div",{className:Pt.name},se.createElement(Ne.Z,{title:zt&&(oe!=null&&oe.excellent_alias_name)?se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${de}`,se.createElement("br",null),se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${oe==null?void 0:oe.excellent_alias_name}`)):de},se.createElement("span",{className:Pt.e},zt&&(oe==null?void 0:oe.excellent_alias_name)||de))),se.createElement(Ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${jn}`},se.createElement("div",{className:Pt.unit},se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),jn)),se.createElement("div",{className:Pt.tags},se.createElement("div",null,se.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),se.createElement("span",null,oe.stages_count))),se.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),se.createElement("span",null,oe.members_count)))))))})),!Ht.length&&se.createElement(Ut.Z,null)))}},30001:function(un,Nn,Mt){"use strict";Mt.d(Nn,{jL:function(){return Pe},w9:function(){return ce},QD:function(){return Mi},cQ:function(){return Bn.Z},op:function(){return Ue},O5:function(){return Fn},_b:function(){return pr},t7:function(){return lt},Gi:function(){return Cn},YG:function(){return on},qp:function(){return Xe},vr:function(){return Ki},qE:function(){return Hn},Je:function(){return xt},wb:function(){return jn},cq:function(){return Ot},tp:function(){return Dt}});var Pt=Mt(67294),ne={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"},Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTT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:Un=[],img:Xn,imgWidth:ai=346,title:Tn,sunTitle:Di,bannerExtraContent:te})=>Pt.createElement("div",{className:ne.banner},Pt.createElement("div",{className:ne.content},Pt.createElement("aside",null,Pt.createElement("p",null,Pt.createElement("b",null,Tn),Pt.createElement("span",null,Di)),Un.length>0&&Pt.createElement("div",{className:ne.btns},Un.map((le,ae)=>Pt.createElement("div",{key:ae,onClick:le.click},le.name,le.sign?Pt.createElement("img",{src:Ne,width:39}):null))),te),Xn&&Pt.createElement("img",{style:{marginTop:33,marginRight:38},src:Xn,width:ai}))),Bt={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"},Ut=Mt(94184),ue=Mt.n(Ut),se=Mt(96486),Xe=({dataSource:Un=[],value:Xn,onChange:ai,onTitleChange:Tn,className:Di,title:te,titleWidth:le=41,style:ae={},fontColor:Ae="#6A7283",showCount:Sn})=>{const[An,En]=(0,Pt.useState)(0),[ke,cn]=(0,Pt.useState)(!1),_n=(0,Pt.useRef)(null),vi=(0,Pt.useRef)(null);return(0,Pt.useEffect)(()=>{var mn;Un.length!==0&&(((mn=_n==null?void 0:_n.current)==null?void 0:mn.clientHeight)>97?En(1):En(0)),Un.length===0&&En(0),cn(!1)},[Un]),Pt.createElement("div",{className:ue()(Bt.row,Di),style:ae},Pt.createElement("div",{onClick:(0,se.throttle)(()=>Tn==null?void 0:Tn(),2e3),style:{width:le,marginTop:ke?12:4},className:`${Bt.title} ${Tn?"current":""}`},te),Pt.createElement("div",{className:ke?`${Bt.tagsWrap} ${Bt.tagsBorderWrap}`:Bt.tagsWrap},Pt.createElement("div",{className:Bt.bar,ref:vi,style:An>0?{height:An===1?97:"auto",overflow:An===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Pt.createElement("div",{className:Bt.tag,ref:_n},Un==null?void 0:Un.map(mn=>Pt.createElement("span",{onClick:()=>ai(mn.id),key:mn.id,style:{color:Ae},className:Xn===mn.id?Bt.active:""},Pt.createElement("span",{title:mn.name,className:Bt.name},mn.name),!!Sn&&Pt.createElement("span",{className:Bt.num},mn.count))))),!!An&&Pt.createElement(Pt.Fragment,null,An===1?Pt.createElement("div",{onClick:()=>{var mn;En(2),((mn=_n==null?void 0:_n.current)==null?void 0:mn.clientHeight)>245?cn(!0):cn(!1)},className:Bt.action},"\u5C55\u5F00",Pt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Pt.createElement("div",{onClick:()=>{vi.current.scrollTop=0,En(1),cn(!1)},className:Bt.action},"\u6536\u8D77",Pt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},pe={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"},Dt=({dataSource:Un=[],value:Xn,onChange:ai,className:Tn,style:Di={}})=>Pt.createElement("div",{style:Di,className:ue()(pe.tabs,Tn)},Un.map(te=>Pt.createElement("span",{onClick:()=>ai(te.id),className:Xn===te.id?pe.active:"",key:te.id},te.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=Mt(28802),lt=({dataSource:Un=[],value:Xn="",onChange:ai,onInputChange:Tn=()=>{},className:Di,style:te={},placeholder:le,allowClear:ae=!1})=>{var Ae;const[Sn,An]=(0,Pt.useState)(""),[En,ke]=(0,Pt.useState)("");(0,Pt.useEffect)(()=>{var vi;let mn=Xn;(vi=JSON.stringify(Xn))!=null&&vi.includes("{")&&(An(Xn.id),mn=Xn.value||"");try{ke(decodeURIComponent(mn||""))}catch(Oe){ke(decodeURIComponent(mn||""))}},[Xn]);const cn=()=>{ai(encodeURIComponent(En),Sn||null)},_n=vi=>{vi!==Sn&&(An(vi),ai(encodeURIComponent(En),vi))};return Pt.createElement("div",{className:ue()(nt.input,Di),style:te},!!Un.length&&Pt.createElement("div",{className:nt.dropdown},Pt.createElement("div",{className:nt.text},(Ae=Un.find(vi=>vi.id===Sn))==null?void 0:Ae.name,Pt.createElement("i",{className:"iconfont icon-zhankai4"}),Pt.createElement("b",{className:nt.b1}),Pt.createElement("b",{className:nt.b2})),Pt.createElement("div",{className:nt.menu},Un.map((vi,mn)=>Pt.createElement("div",{key:mn,onClick:()=>_n(vi.id)},vi.name)))),Pt.createElement(et.default,{onPressEnter:cn,value:En,onChange:vi=>{ke(vi.target.value),Tn(encodeURIComponent(vi.target.value),Sn||null)},bordered:!1,placeholder:le}),Pt.createElement("i",{onClick:cn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},gt={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:Un,onChange:Xn,className:ai,total:Tn,pageSize:Di,style:te={}})=>{const le=Un<2,ae=Un>=Math.ceil(Tn/Di);return Tn<=Di?Pt.createElement(Pt.Fragment,null):Pt.createElement("div",{className:ue()(gt.quickPager,ai),style:te},Pt.createElement("div",{onClick:()=>{le||Xn(Un-1,"prev")},className:le?gt.disabled:""},"\u4E0A\u4E00\u9875"),Pt.createElement("div",{onClick:()=>{ae||Xn(Un+1,"next")},className:ae?gt.disabled:""},"\u4E0B\u4E00\u9875"))},St={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"},zt=Mt(74330),Jt=Mt(83062),re=Mt(57097),oe=Mt(11320),$t=Mt(28706),Le=Mt(96908),de=Mt(57177),Fe=Mt(81378),rn=Mt(26194),jn=({className:Un,dataSource:Xn=[],col:ai=4,right:Tn,bottom:Di=23,precision:te=0,wrapWidth:le=1200,trackEventItems:ae,loading:Ae})=>{const Sn=Math.floor((le-(ai-1)*Tn)/ai);return Pt.createElement(zt.Z,{spinning:Ae},Pt.createElement("div",{className:ue()(St.list,Un)},!!Xn.length&&Xn.map((An,En)=>{const{name:ke,id:cn,identifier:_n,power:vi,cover_image_id:mn,pic:Oe}=An;return Pt.createElement("div",{className:St.wrap,key:cn,style:{width:Sn,marginRight:(1+En)%ai===0?0:Tn+te,marginBottom:Di}},Pt.createElement("a",{target:"_blank",href:`/shixuns/${_n}/challenges`,className:St.li,onClick:ni=>{ni.preventDefault(),ae&&(0,$t.L9)([ae]),vi&&(0,$t.xg)(`/shixuns/${_n}/challenges`)}},Pt.createElement("div",{className:St.img},Pt.createElement("img",{className:St.cover,src:`${Oe}`}),An.is_jupyter&&Pt.createElement("img",{className:St.sign,src:Le}),An.is_jupyter_lab&&Pt.createElement("img",{className:St.sign,src:de}),An.is_unity_3d&&Pt.createElement("img",{className:St.sign,src:Fe})),Pt.createElement("div",{className:St.name},Pt.createElement(Jt.Z,{title:ke||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Pt.createElement("span",{className:St.e},ke||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Pt.createElement("div",{className:St.tags},Pt.createElement(Jt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Pt.createElement("span",null,Pt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Pt.createElement("span",null,An.challenges_count))),!!An.myshixuns_count&&Pt.createElement(Jt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Pt.createElement("span",null,Pt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Pt.createElement("span",null,An.myshixuns_count))),Pt.createElement(Jt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Pt.createElement("span",null,Pt.createElement("span",null,An.level))),Pt.createElement("div",{className:St.rate},Pt.createElement(re.Z,{allowHalf:!0,disabled:!0,defaultValue:An.score_info}),Pt.createElement("span",null,"\xA0",An.score_info?`${An.score_info}\u5206`:"5\u5206")))),!vi&&Pt.createElement("div",{className:St.lockWrap},Pt.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Pt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Xn.length&&Pt.createElement(rn.Z,null)))},Bn=Mt(5476),an={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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ZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",_t=Mt(67294),ce=({className:Un,dataSource:Xn=[],col:ai=4,right:Tn,bottom:Di=23,precision:te=0,wrapWidth:le=1200,trackEventItems:ae,loading:Ae,handleVery:Sn=()=>!0})=>{const An=Math.floor((le-(ai-1)*Tn)/ai);return _t.createElement(zt.Z,{spinning:Ae},_t.createElement("div",{className:ue()(an.list,Un)},!!Xn.length&&Xn.map((En,ke)=>{const{subject_identifier:cn,id:_n,identifier:vi,power:mn}=En,Oe=En.is_public!=0&&En.is_public;return _t.createElement("div",{className:an.wrap,key:_n,style:{width:An,marginRight:(1+ke)%ai===0?0:Tn+te,marginBottom:Di}},_t.createElement("a",{className:an.li,onClick:ni=>{ni.preventDefault(),Sn(En==null?void 0:En.first_category_url)&&(ae&&(0,$t.L9)([ae]),(0,$t.xg)(En.first_category_url))}},_t.createElement("div",{className:an.top},_t.createElement(Jt.Z,{title:En.name},_t.createElement("div",{className:an.name},En.name)),_t.createElement("img",{className:an.img,src:oe.Z.IMG_SERVER+"/images/"+En.avatar_url}),_t.createElement("div",{className:an.text,title:En.creator},En.creator),cn&&_t.createElement("div",{className:an.btns},_t.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),_t.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Oe&&_t.createElement("div",{className:an.sign},"\u516C\u5F00")),_t.createElement("div",{className:an.bottom},En.visits>0&&_t.createElement(Jt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},_t.createElement("span",null,_t.createElement("i",{className:"iconfont icon-liulanyan"}),_t.createElement("span",null,En.visits))),En.course_members_count>0&&_t.createElement(Jt.Z,{title:"\u6210\u5458",placement:"bottom"},_t.createElement("span",null,_t.createElement("i",{className:"iconfont icon-chengyuan"}),En.course_members_count)),En.tasks_count>0&&_t.createElement(Jt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},_t.createElement("span",null,_t.createElement("i",{className:"iconfont icon-zuoye"}),En.tasks_count)),En.is_end?_t.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):_t.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!En.is_accessible&&_t.createElement("div",{className:an.lockWrap},_t.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),_t.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xn.length&&_t.createElement(rn.Z,null)))},_e={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ye=Mt(35973),on=({dataSource:Un=[],value:Xn,onChange:ai,className:Tn,style:Di={},tabBarExtraContent:te})=>Pt.createElement("div",{className:ue()(_e.tabs,Tn),style:Di},Pt.createElement("div",{className:_e.tabsWrap},Un.map((le,ae)=>!(le!=null&&le.hide)&&Pt.createElement("aside",{className:_e.tab,onClick:()=>{ai(le.id),le.link&&Ye.history.push(le.link)},key:ae},Pt.createElement("div",{className:Xn===le.id?_e.active:""},le.name),(le==null?void 0:le.resetCount)==null&&(le==null?void 0:le.total)!==void 0&&Pt.createElement("span",null,"\uFF08",le==null?void 0:le.total,"\uFF09"),(le==null?void 0:le.resetCount)!==void 0&&(le==null?void 0:le.total)!==void 0&&Pt.createElement(Jt.Z,{title:(le==null?void 0:le.tip)!=null?le==null?void 0:le.tip:""},Pt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Pt.createElement("span",{style:{color:"#000"}},le==null?void 0:le.resetCount),"/",Pt.createElement("span",null,le==null?void 0:le.total),"\uFF09"))))),Pt.createElement("div",{className:_e.tabBar},te)),Cn=({className:Un,style:Xn={},children:ai})=>Pt.createElement("div",{className:ue()(Un),style:Xn},ai),Ie={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ve=Mt(85418),ze=Mt(50136);const je=[{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:Un,dropValue:Xn,className:ai,onSort:Tn,onDrop:Di,dataSource:te=je})=>{var le;return Pt.createElement("div",{className:ue()(Ie.orderWrap,ai)},Pt.createElement(ve.Z,{dropdownRender:()=>Pt.createElement(ze.default,null,te.map((ae,Ae)=>Pt.createElement(ze.default.Item,{key:Ae,onClick:()=>Di(ae.id)},ae.name)))},Pt.createElement("span",{className:Ie.orderTextWrap},(le=te.find(ae=>Xn===ae.id))==null?void 0:le.name)),Pt.createElement("span",{className:Ie.orderIconWrap},Pt.createElement("span",{className:Ie.orderAsc},Pt.createElement("i",{className:Un==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ie.cursorPointer} ${Ie.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ie.cursorPointer}`,onClick:()=>Tn(Un==="asc"?"desc":"asc")})),Pt.createElement("span",{className:Ie.orderDesc},Pt.createElement("i",{className:Un==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ie.cursorPointer} ${Ie.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ie.cursorPointer}`,onClick:()=>Tn(Un==="asc"?"desc":"asc")}))))},Lt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},wt=Mt(85804),Ft=Object.defineProperty,Wt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,$e=(Un,Xn,ai)=>Xn in Un?Ft(Un,Xn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):Un[Xn]=ai,Je=(Un,Xn)=>{for(var ai in Xn||(Xn={}))kt.call(Xn,ai)&&$e(Un,ai,Xn[ai]);if(Wt)for(var ai of Wt(Xn))Xt.call(Xn,ai)&&$e(Un,ai,Xn[ai]);return Un},fn=(Un,Xn)=>{var ai={};for(var Tn in Un)kt.call(Un,Tn)&&Xn.indexOf(Tn)<0&&(ai[Tn]=Un[Tn]);if(Un!=null&&Wt)for(var Tn of Wt(Un))Xn.indexOf(Tn)<0&&Xt.call(Un,Tn)&&(ai[Tn]=Un[Tn]);return ai},Ve=(Un,Xn,ai)=>new Promise((Tn,Di)=>{var te=Ae=>{try{ae(ai.next(Ae))}catch(Sn){Di(Sn)}},le=Ae=>{try{ae(ai.throw(Ae))}catch(Sn){Di(Sn)}},ae=Ae=>Ae.done?Tn(Ae.value):Promise.resolve(Ae.value).then(te,le);ae((ai=ai.apply(Un,Xn)).next())}),Ue=Un=>{var Xn=Un,{className:ai,style:Tn,children:Di,loading:te=!1,openLoading:le,onClick:ae=()=>{},size:Ae="middle",shape:Sn="round"}=Xn,An=fn(Xn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[En,ke]=(0,Pt.useState)(!1);return Pt.createElement(wt.ZP,Je({onClick:(0,se.throttle)(cn=>Ve(void 0,null,function*(){le&&ke(!0);try{yield ae(cn)}catch(_n){console.log("error",_n)}le&&ke(!1)}),2e3,{leading:!0,trailing:!1}),className:ue()(Lt.btn,Lt[`${Ae}-${Sn}`],ai),style:Tn,size:Ae,shape:Sn,loading:En||te},An),Di)},ti={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"},Hn=({className:Un,style:Xn,children:ai=null,onClick:Tn,title:Di})=>Pt.createElement("div",{className:ue()(ti.head,Un),style:Xn},Pt.createElement("span",{className:"primary-hover",onClick:Tn},Pt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Pt.createElement("b",{title:Di},Di),Pt.createElement("div",{className:ti.node},ai)),pn={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"},Mi=({confirmShow:Un=!0,confirmTitle:Xn,confirmClick:ai,cancelShow:Tn=!0,cancelTitle:Di,cancelClick:te,className:le,style:ae,confirmLoading:Ae=!1})=>Pt.createElement("div",{className:ue()(pn.btns,le),style:ae},Un&&Pt.createElement(wt.ZP,{loading:Ae,onClick:ai,type:"primary",className:pn.confirm},Xn),Tn&&Pt.createElement(wt.ZP,{onClick:te,className:pn.cancel},Di)),In={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"},Ki=({className:Un,style:Xn={},LeftContent:ai,children:Tn,RightContent:Di})=>Pt.createElement("div",{className:ue()(In.fixedBottom,Un),style:Xn},Pt.createElement("div",{className:In.wrap},Pt.createElement("div",{className:In.left},ai),Pt.createElement("div",{className:In.center},Tn),Pt.createElement("div",{className:In.right},Di))),hi={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"},pr=({className:Un,style:Xn={},dataSource:ai=[]})=>Pt.createElement("div",{className:ue()(hi.crumbs,Un),style:Xn},ai.map((Tn,Di)=>Di<ai.length-1?Pt.createElement(Pt.Fragment,{key:Di},Tn.path||Tn.onClick?Pt.createElement("span",{className:hi.hover,onClick:Tn!=null&&Tn.onClick?Tn.onClick:()=>Ye.history.push(Tn.path)},Tn.name):Pt.createElement("span",null,Tn.name),Pt.createElement("span",null,"\xA0",">","\xA0")):Pt.createElement("span",{key:Di,style:{color:"#5F6368"}},Tn.name))),rr=Mt(55054),ki=Object.defineProperty,sr=Object.defineProperties,Ur=Object.getOwnPropertyDescriptors,Jo=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,pa=(Un,Xn,ai)=>Xn in Un?ki(Un,Xn,{enumerable:!0,configurable:!0,writable:!0,value:ai}):Un[Xn]=ai,co=(Un,Xn)=>{for(var ai in Xn||(Xn={}))Rr.call(Xn,ai)&&pa(Un,ai,Xn[ai]);if(Jo)for(var ai of Jo(Xn))To.call(Xn,ai)&&pa(Un,ai,Xn[ai]);return Un},Xi=(Un,Xn)=>sr(Un,Ur(Xn)),bn=(Un,Xn)=>{var ai={};for(var Tn in Un)Rr.call(Un,Tn)&&Xn.indexOf(Tn)<0&&(ai[Tn]=Un[Tn]);if(Un!=null&&Jo)for(var Tn of Jo(Un))Xn.indexOf(Tn)<0&&To.call(Un,Tn)&&(ai[Tn]=Un[Tn]);return ai};const{Countdown:bt}=rr.default;var Fn=Un=>{var Xn=Un,{onChange:ai}=Xn,Tn=bn(Xn,["onChange"]);const[Di,te]=(0,Pt.useState)(null);(0,Pt.useEffect)(()=>{typeof Di=="number"&&Di>=0&&ai(Di)},[Di]);const le=ae=>{const Ae=Math.floor(ae/1e3);te(Ae)};return Pt.createElement(bt,Xi(co({},Tn),{onChange:le}))}},99914:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return ne}});var Pt=Mt(67294);function ne(Ne,Be){const Pe=(0,Pt.useRef)();(0,Pt.useEffect)(()=>{Pe.current=Ne}),(0,Pt.useEffect)(()=>{function Bt(){Pe.current()}if(Be!==null){let Ut=setInterval(Bt,Be);return()=>clearInterval(Ut)}},[Be])}},75319:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Zn}});var Pt=Mt(67294),ne=Mt(35973),Ne=Mt(69234),Be=Mt(28802),Pe=Mt(91773),Bt=Mt(2453),Ut=Mt(62844),ue=Mt(84567),se=Mt(83062),Se=Mt(37720),Xe=Mt(98813),pe=Mt(78957),Ht=Mt(71230),Dt=Mt(88044),nt=Mt(59637),et=Mt(96670),ht=Mt(30001),lt={wrap:"wrap___BgpUe",row:"row___UWxAG",textarea:"textarea___gaLin",btn:"btn___ZpuhS",sub:"sub___Jd_ZS"},gt=Mt(36295),mt=Mt(33170),xt=Mt(52262),St=Mt(67294),zt=Object.defineProperty,Jt=Object.defineProperties,re=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,de=(_t,Tt,ce)=>Tt in _t?zt(_t,Tt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):_t[Tt]=ce,Fe=(_t,Tt)=>{for(var ce in Tt||(Tt={}))$t.call(Tt,ce)&&de(_t,ce,Tt[ce]);if(oe)for(var ce of oe(Tt))Le.call(Tt,ce)&&de(_t,ce,Tt[ce]);return _t},rn=(_t,Tt)=>Jt(_t,re(Tt)),De=(_t,Tt,ce)=>new Promise((_e,Ye)=>{var xe=Cn=>{try{tn(ce.next(Cn))}catch(Ie){Ye(Ie)}},on=Cn=>{try{tn(ce.throw(Cn))}catch(Ie){Ye(Ie)}},tn=Cn=>Cn.done?_e(Cn.value):Promise.resolve(Cn.value).then(xe,on);tn((ce=ce.apply(_t,Tt)).next())});const{Panel:jn}=Ne.default,{TextArea:Bn}=Be.default;var Zn=({active:_t,type:Tt="jupyter"})=>{var ce,_e;const Ye=(0,ne.useParams)(),[xe]=Pe.default.useForm(),[on,tn]=(0,Pt.useState)({}),[Cn,Ie]=(0,Pt.useState)(!1),[ve,ze]=(0,Pt.useState)(0),[je,He]=(0,Pt.useState)([]),[Ot,Lt]=(0,Pt.useState)([]),[wt,Ft]=(0,Pt.useState)([]),Wt=(_e=(ce=(0,xt.eY)())==null?void 0:ce.shixun)==null?void 0:_e.editable;(0,Pt.useEffect)(()=>{_t==="testCase"&&kt()},[_t]),(0,Pt.useEffect)(()=>{Xt()},[]);const kt=()=>De(void 0,null,function*(){var Hn,pn,gi,Mi,In,ei,Ki,hi,$i,pr,rr,ki,sr,Ur;const Jo=[{hidden:0,input:"",output:"",score:100}],Rr=yield(0,mt.ZP)(`/api/shixuns/${Ye==null?void 0:Ye.id}/jupyter_evalute_setting.json`,{method:"get"});if((Rr==null?void 0:Rr.status)===0){Ft((Hn=Rr==null?void 0:Rr.data)==null?void 0:Hn.standard_scripts);const To={open_evaluate:(pn=Rr==null?void 0:Rr.data)==null?void 0:pn.open_evaluate,exec_time:((gi=Rr==null?void 0:Rr.data)==null?void 0:gi.exec_time)||3,test_set_score:((Mi=Rr==null?void 0:Rr.data)==null?void 0:Mi.test_set_score)===null?!1:(In=Rr==null?void 0:Rr.data)==null?void 0:In.test_set_score,test_set_average:((ei=Rr==null?void 0:Rr.data)==null?void 0:ei.test_set_average)===null?!0:(Ki=Rr==null?void 0:Rr.data)==null?void 0:Ki.test_set_average,choice_standard_scripts:((hi=Rr==null?void 0:Rr.data)==null?void 0:hi.choice_standard_scripts)||null,evaluate_script:(($i=Rr==null?void 0:Rr.data)==null?void 0:$i.evaluate_script)||"",evaluate_method:(pr=Rr==null?void 0:Rr.data)==null?void 0:pr.evaluate_method,use_jupyter_result:(rr=Rr==null?void 0:Rr.data)==null?void 0:rr.use_jupyter_result};xe.setFieldsValue(To),tn(To),He((sr=(ki=Rr==null?void 0:Rr.data)==null?void 0:ki.test_sets)!=null&&sr.length?(Ur=Rr==null?void 0:Rr.data)==null?void 0:Ur.test_sets:Jo)}}),Xt=()=>De(void 0,null,function*(){var Hn;const pn=yield(0,mt.ZP)(`/api/shixuns/${Ye==null?void 0:Ye.id}/get_jupyter_tags.json`,{method:"get"});(pn==null?void 0:pn.status)===0&&Lt(((Hn=pn==null?void 0:pn.data)==null?void 0:Hn.list)||[])}),$e=Hn=>De(void 0,null,function*(){const gi=je.map(In=>In.score).reduce((In,ei)=>In+ei,0);if(Hn.test_set_score&&gi!==100){Bt.ZP.warning("\u6D4B\u8BD5\u7528\u4F8B\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Hn.evaluate_method===3&&(je!=null&&je.some(In=>!In.tags))){Bt.ZP.warning("\u8BF7\u9009\u62E9\u6307\u5B9A\u4EE3\u7801\u5757");return}Ie(!0),(yield(0,mt.ZP)(`/api/shixuns/${Ye==null?void 0:Ye.id}/update_jupyter_evaluate_setting.json`,{method:"post",body:rn(Fe({},Hn),{mirror_script_id:Hn==null?void 0:Hn.choice_standard_scripts,open_evaluate:Hn!=null&&Hn.open_evaluate?1:0,test_set:je.map(In=>rn(Fe({},In),{is_file:!1}))})})).status===0&&Bt.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ie(!1)}),Je=Hn=>{tn(Fe({},xe.getFieldsValue())),"test_set_average"in Hn&&(Hn!=null&&Hn.test_set_average)&&fn(je),"test_set_score"in Hn&&(Hn!=null&&Hn.test_set_score)&&(xe.setFieldsValue({test_set_average:!0}),tn(rn(Fe({},xe.getFieldsValue()),{test_set_average:!0})),fn(je)),"choice_standard_scripts"in Hn&&Ut.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:St.createElement("div",{className:"tc font16"},"\u539F\u6709\u811A\u672C\u5C06\u88AB\u65B0\u7684\u811A\u672C\u8986\u76D6\uFF0C\u65E0\u6CD5\u64A4\u9500",St.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u6267\u884C\u8986\u76D6\u64CD\u4F5C"),onOk:()=>De(void 0,null,function*(){const pn=yield(0,mt.ZP)(`/api/shixuns/${Ye==null?void 0:Ye.id}/get_script_contents.json`,{method:"get",params:{id:Ye==null?void 0:Ye.id,script_id:Hn==null?void 0:Hn.choice_standard_scripts}});pn!=null&&pn.content&&(Ut.default.info({centered:!0,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:St.createElement("div",{className:"tc font16"},"\u8BC4\u6D4B\u811A\u672C\u751F\u6210\u6210\u529F\uFF01")}),xe.setFieldsValue({evaluate_script:pn==null?void 0:pn.content}),tn(rn(Fe({},xe.getFieldsValue()),{evaluate_script:pn==null?void 0:pn.content})))})})},fn=Hn=>{let pn=0;const gi=Math.floor((100-pn)/Hn.length),Mi=gi+(100-pn)%Hn.length;Hn=Hn.map((In,ei)=>ei===Hn.length-1?rn(Fe({},In),{score:Mi}):rn(Fe({},In),{score:gi})),He(Hn)},Ve=()=>{const Hn=[...je,{hidden:0,input:"",output:"",score:0}];xe.getFieldValue("test_set_average")?fn(Hn):He(Hn)},{test_set_score:Mn,test_set_average:Ue,choice_standard_scripts:ti,open_evaluate:Qn}=on;return St.createElement("section",{className:lt.wrap},St.createElement(Pe.default,{form:xe,disabled:!Qn,layout:"vertical",onValuesChange:Je,onFinish:$e},St.createElement(Pe.default.Item,{name:"open_evaluate",style:{marginTop:10},valuePropName:"checked"},St.createElement(ue.default,{disabled:!1},"\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD")),St.createElement("h4",{className:"font14"},"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement(Pe.default.Item,{label:"\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09\uFF1A",name:"exec_time",className:lt.row,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}]},St.createElement(Se.Z,{size:"large",style:{width:400},min:3}))),St.createElement("h4",{className:"font14 mb10"},"\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219"),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement(Pe.default.Item,{name:"test_set_score"},St.createElement(Xe.ZP.Group,null,St.createElement(pe.Z,{direction:"vertical"},St.createElement(Xe.ZP,{value:!1},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",St.createElement("span",{className:"c-grey-999"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),St.createElement(Xe.ZP,{value:!0},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",St.createElement("span",{className:"c-grey-999"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))))),St.createElement(Pe.default.Item,{label:St.createElement("span",{style:{fontWeight:500},className:"c-black"},"\u8BC4\u6D4B\u8BBE\u7F6E"),name:"evaluate_method",style:{flexDirection:"row",marginTop:15},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u8BBE\u7F6E"}]},St.createElement(Xe.ZP.Group,null,St.createElement(pe.Z,{direction:"vertical"},St.createElement(Xe.ZP,{value:1},"\u901A\u8FC7\u6240\u6709\u4EE3\u7801\u5757\u8BC4\u6D4B",St.createElement("span",{className:"c-grey-999"}," \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6240\u6709\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09")),St.createElement(Xe.ZP,{value:3},"\u901A\u8FC7\u6307\u5B9A\u4EE3\u7801\u5757\u8BC4\u6D4B",St.createElement("span",{className:"c-grey-999"}," \uFF08\u5BF9\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u7684\u6307\u5B9A\u975E\u7A7A\u4EE3\u7801\u5757\u8FDB\u884C\u8BC4\u6D4B\uFF09"))))),St.createElement(Ht.Z,{align:"middle",justify:"space-between",className:"font14"},St.createElement("div",{style:{fontWeight:500}},St.createElement("span",{className:lt.sub},"*"),"\u6D4B\u8BD5\u7528\u4F8B"),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement(ht.op,{style:{borderRadius:2},onClick:Ve},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B"))),Mn&&St.createElement(Pe.default.Item,{name:"test_set_average"},St.createElement(Xe.ZP.Group,null,St.createElement(Xe.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),St.createElement(Xe.ZP,{value:!1,style:{marginLeft:50}},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement("div",null,je.map((Hn,pn)=>St.createElement(Ne.default,{activeKey:ve,key:pn,onChange:()=>{ze(gi=>gi===pn?null:pn)}},St.createElement(jn,{header:St.createElement("div",{className:"font16"},St.createElement("span",{className:"mr10"},"\u6D4B\u8BD5\u7528\u4F8B",pn+1),on.test_set_score&&St.createElement("span",{style:{marginLeft:40}},St.createElement(Se.Z,{style:{width:120},value:Hn.score,onClick:gi=>gi.stopPropagation(),min:0,max:100,precision:0,onBlur:gi=>{if(Number(gi)<0||Number(gi)>100){Bt.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const Mi=je.map((ei,Ki)=>Ki===pn?rn(Fe({},ei),{score:100}):ei),In={test_set_average:!1};tn(Fe(Fe({},on),In)),xe.setFieldsValue(In),He(Mi)}},disabled:Ue,onChange:gi=>{const Mi=je.map((ei,Ki)=>Ki===pn?rn(Fe({},ei),{score:gi?Number(gi):0}):ei),In={test_set_average:!1};tn(Fe(Fe({},on),In)),xe.setFieldsValue(In),He(Mi)}}),St.createElement("span",{className:"ml10 mr10"},"%")),St.createElement("span",{className:"tr flex1",style:{float:"right"}},pn!==0&&St.createElement(se.Z,{placement:"bottom",title:"\u5220\u9664"},St.createElement("span",{style:{color:"#c5c5c5"},className:"current iconfont icon-shanchu4",onClick:gi=>{gi.stopPropagation(),Ut.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u6D4B\u8BD5\u7528\u4F8B\u5417\uFF1F",onOk:()=>{const Mi=je.filter((In,ei)=>ei!==pn);fn(Mi)}})}})))),key:pn},St.createElement("div",null,on.evaluate_method===3&&St.createElement(Ht.Z,{align:"middle",className:"mb20"},St.createElement("div",null,St.createElement("span",{className:lt.sub},"*"),St.createElement("span",null,"\u6307\u5B9A\u4EE3\u7801\u5757"),St.createElement(se.Z,{title:"\u8BF7\u5148\u5728Jupyter\u4E2D\u5BF9\u60A8\u9700\u8981\u8BC4\u6D4B\u7684\u6307\u5B9A\u4EE3\u7801\u5757\u5B8C\u6210\u6807\u7B7E\u8BBE\u7F6E\u3002"},St.createElement("i",{style:{marginLeft:6,marginRight:20,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),St.createElement(Dt.default,{value:Hn.tags,size:"large",style:{width:450},onChange:gi=>{const Mi=je.map((In,ei)=>ei===pn?rn(Fe({},In),{tags:gi}):In);He(Mi)}},Ot==null?void 0:Ot.map(gi=>St.createElement(Dt.default.Option,{value:gi==null?void 0:gi.tags,key:gi==null?void 0:gi.tags},gi==null?void 0:gi.tags)))),St.createElement(Ht.Z,{align:"middle"},St.createElement("div",null," ",St.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),St.createElement(Bn,{bordered:!1,className:lt.textarea,rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:Hn.output,onChange:gi=>{const Mi=je.map((In,ei)=>ei===pn?rn(Fe({},In),{output:gi.target.value}):In);He(Mi)}})),St.createElement(Ht.Z,{className:"mt20",align:"middle"},St.createElement("div",null,St.createElement("span",null,"\u53EF\u89C1\u6027"),St.createElement(se.Z,{title:St.createElement("div",null,St.createElement("div",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),St.createElement("div",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),St.createElement("div",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"))},St.createElement("i",{style:{marginLeft:6,marginRight:13,color:"#145DFF"},className:"iconfont icon-xiaowenhao2 font14"}))),St.createElement("div",null,St.createElement(ue.default,{className:"font14 ml5",checked:Hn.hidden===1,onChange:gi=>{const Mi=je.map((In,ei)=>{if(ei===pn){let Ki={is_invisible:!1,actual_output_visible:!1};return gi.target.checked&&(Ki={is_invisible:!0,actual_output_visible:!0}),rn(Fe(Fe({},In),Ki),{hidden:gi.target.checked?1:0})}return In});He(Mi)}},"\u5168\u90E8\u9690\u85CF")),St.createElement(ue.default,{checked:Hn.is_invisible,style:{margin:"0 60px"},onChange:gi=>{const Mi=je.map((In,ei)=>{if(ei===pn){let Ki=0;return gi.target.checked&&In.actual_output_visible&&(Ki=1),rn(Fe({},In),{hidden:Ki,is_invisible:gi.target.checked})}return In});He(Mi)}},"\u9690\u85CF\u9884\u671F\u8F93\u51FA"),St.createElement(ue.default,{checked:Hn.actual_output_visible,onChange:gi=>{const Mi=je.map((In,ei)=>{if(ei===pn){let Ki=0;return gi.target.checked&&In.is_invisible&&(Ki=1),rn(Fe({},In),{hidden:Ki,actual_output_visible:gi.target.checked})}return In});He(Mi)}},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),St.createElement("div",{className:"mt20"},St.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),St.createElement(ue.default,{checked:Hn.last_match_rule,onChange:gi=>{const Mi=je.map((In,ei)=>ei===pn?rn(Fe({},In),{last_match_rule:gi.target.checked}):In);He(Mi)}},St.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",St.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))))))),St.createElement("h4",{className:"font14 mt20 mb10"},St.createElement("span",{className:lt.sub},"*"),"\u8BC4\u6D4B\u811A\u672C"),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement(Pe.default.Item,{name:"choice_standard_scripts",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"}]},St.createElement(Dt.default,{getPopupContainer:Hn=>Hn.parentNode,size:"large",style:{width:400},placeholder:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u811A\u672C"},wt.map((Hn,pn)=>St.createElement(Dt.default.Option,{value:Hn.id,key:pn},Hn.scptname))))),St.createElement(se.Z,{title:!Qn&&"\u8BF7\u542F\u7528Jupyter\u8BC4\u6D4B\u529F\u80FD\u540E\uFF0C\u8FDB\u884C\u7F16\u8F91",placement:"topLeft"},St.createElement(Pe.default.Item,{name:"evaluate_script"},St.createElement(gt.ZP,{height:450,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light",options:{readOnly:!Qn}}))),(0,xt.Ny)()&&St.createElement(Ht.Z,{className:"mb20",align:"middle"},St.createElement(Pe.default.Item,{name:"use_jupyter_result",className:"mt10",valuePropName:"checked",noStyle:!0},St.createElement(nt.Z,null)),St.createElement("div",{className:"ml10"},"\u662F\u5426\u6CBF\u7528Jupyter\u8FD0\u884C\u7ED3\u679C"))),St.createElement(et.t,{okText:"\u4FDD\u5B58",hasOkBtn:Wt,loading:Cn,onCancel:()=>ne.history.push(`/shixuns/${Ye==null?void 0:Ye.id}/challenges`),onOk:()=>xe.submit(),className:Tt==="jupyterLab"?lt.btn:""}))}},99456:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return re}});var Pt=Mt(67294),ne=Mt(62844),Ne=Mt(85804),Be=Mt(2453),Pe=Mt(55238),Bt=Mt(74330),Ut=Mt(56672),ue=Mt(37720),se={modal:"modal___NEEbt",con_warp:"con_warp___fZ8It",flex:"flex___Vqd1D",config_Warp:"config_Warp___m6wfT",config_btn:"config_btn___OL6qH",sceneList:"sceneList___SKegj",sceneItem:"sceneItem___RPw0S",sceneItemActive:"sceneItemActive___O_xTR"},Se=Mt(37388),Xe=Mt(38308),pe=Mt(33170),Ht=Mt(67294),Dt=Object.defineProperty,nt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(oe,$t,Le)=>$t in oe?Dt(oe,$t,{enumerable:!0,configurable:!0,writable:!0,value:Le}):oe[$t]=Le,xt=(oe,$t)=>{for(var Le in $t||($t={}))lt.call($t,Le)&&mt(oe,Le,$t[Le]);if(ht)for(var Le of ht($t))gt.call($t,Le)&&mt(oe,Le,$t[Le]);return oe},St=(oe,$t)=>nt(oe,et($t)),zt=(oe,$t,Le)=>new Promise((de,Fe)=>{var rn=Bn=>{try{jn(Le.next(Bn))}catch(an){Fe(an)}},De=Bn=>{try{jn(Le.throw(Bn))}catch(an){Fe(an)}},jn=Bn=>Bn.done?de(Bn.value):Promise.resolve(Bn.value).then(rn,De);jn((Le=Le.apply(oe,$t)).next())}),re=({visible:oe,onOk:$t,onCancel:Le,info:de})=>{const[Fe,rn]=(0,Pt.useState)("1"),[De,jn]=(0,Pt.useState)([{name:"gpu_limit",label:"GPU\u663E\u5361\u6570\u91CF",value:1,min:0,max:4,typeName:"\u4E2A"},{name:"gpu_memory_limit",label:"GPU\u663E\u5B58\u5927\u5C0F",value:1,min:0,max:64,typeName:"GB"}]),[Bn,an]=(0,Pt.useState)([]),[Zn,_t]=(0,Pt.useState)(0),[Tt,ce]=(0,Pt.useState)(null),[_e,Ye]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{oe&&xe()},[oe]);const xe=()=>{rn("1"),ce(null),_t(0),De[0].value=(de==null?void 0:de.gpu_limit)||1,De[1].value=(de==null?void 0:de.gpu_memory_limit)||16,jn([...De])};(0,Pt.useEffect)(()=>{var Ot,Lt;((Lt=(Ot=Bn==null?void 0:Bn[Zn])==null?void 0:Ot.content)==null?void 0:Lt.length)>0&&ce(St(xt({},Bn[Zn].content[0]),{index:0}))},[Fe,Zn,Bn]);const on=()=>zt(void 0,null,function*(){yield(0,pe.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Ot=>{var Lt;if(an(Ot),(Ot==null?void 0:Ot.length)>0){let wt=St(xt({},(Lt=Ot==null?void 0:Ot[0])==null?void 0:Lt.content[0]),{index:0});ce(wt)}})}),tn=Ot=>{rn(Ot),Ot==="2"&&_t(0)},Cn=(Ot,Lt)=>{jn(De.map(wt=>wt.name===Ot?Lt(wt):wt))},Ie=(Ot,Lt)=>{isNaN(Ot)||Cn(Lt,wt=>St(xt({},wt),{value:Ot}))},ve=(Ot,Lt)=>{var wt;if(console.log("decline",Ot.value),Ot.value=Number(Ot.value),Ot.value<=((wt=Ot.min)!=null?wt:-1/0))return;let Ft=Ot.value-.5<Ot.min?Ot.min:Ot.value-(Lt||.5);Cn(Ot.name,Wt=>St(xt({},Wt),{value:Ft}))},ze=(Ot,Lt)=>{var wt;if(Ot.value=Number(Ot.value),Ot.value>=((wt=Ot.max)!=null?wt:1/0))return;let Ft=Ot.value+.5>Ot.max?Ot.max:Ot.value+(Lt||.5);Cn(Ot.name,Wt=>St(xt({},Wt),{value:Ft}))},je=(Ot,Lt)=>{isNaN(Ot)||Cn(Lt,wt=>St(xt({},wt),{value:Ot}))},He=Ot=>{if(Ot==null||Number.isInteger(Ot))return Ot;const Lt=Ot%1;return Lt===.5?Ot:Math.floor(Ot)+(Lt<.5?.5:1)};return Ht.createElement(Ht.Fragment,null,Ht.createElement(ne.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:oe,width:752,destroyOnClose:!0,centered:!0,onCancel:Le,className:se.modal,footer:[Ht.createElement("div",{className:se.btn_warp,key:"1"},Ht.createElement(Ne.ZP,{onClick:Le},"\u53D6\u6D88"),Ht.createElement(Ne.ZP,{type:"primary",onClick:()=>{let Ot=xt({},de);if(Fe=="1")Ot.gpu_limit=De[0].value,Ot.gpu_memory_limit=De[1].value;else if(Fe=="2"){if(!Tt){Be.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Ot=St(xt({},Ot),{gpu_limit:Tt.gpu_limit,gpu_memory_limit:Tt.gpu_memory_limit})}$t(Ot)}},"\u4FDD\u5B58"))]},Ht.createElement(Pe.default,{activeKey:Fe,onChange:tn},Ht.createElement(Pe.default.TabPane,{tab:"GPU\u914D\u7F6E",key:1},Ht.createElement(Bt.Z,{spinning:_e},De==null?void 0:De.map(Ot=>Ht.createElement("div",{className:se.con_warp,key:Ot==null?void 0:Ot.name},Ht.createElement("div",null,Ot==null?void 0:Ot.label),Ht.createElement("div",null,Ht.createElement(Ut.Z,{min:Ot==null?void 0:Ot.min,max:Ot==null?void 0:Ot.max,onChange:Lt=>Ie(Lt,Ot==null?void 0:Ot.name),value:Ot==null?void 0:Ot.value,step:Ot.name==="gpu_limit"?1:.5,style:{width:422,height:6,margin:"0 20px 0 12px"}})),Ht.createElement("div",{className:`${se.config_Warp} ${se.flex}`},Ht.createElement("div",{className:`${se.config_btn} ${se.flex}`,onClick:()=>ve(Ot,Ot.name==="gpu_limit"?1:.5)},Ht.createElement(Se.Z,null)),Ht.createElement(ue.Z,{min:Ot==null?void 0:Ot.min,max:Ot==null?void 0:Ot.max,size:"large",step:Ot.name==="gpu_limit"?1:.5,controls:!1,style:{width:55},value:Ot==null?void 0:Ot.value,onChange:Lt=>{const wt=He(Lt);je(wt,Ot==null?void 0:Ot.name)}}),Ht.createElement("div",{className:`${se.config_btn} ${se.flex}`,onClick:()=>ze(Ot,Ot.name==="gpu_limit"?1:.5)},Ht.createElement(Xe.Z,null))),Ht.createElement("div",null,Ot==null?void 0:Ot.typeName))))))))}},2156:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Lt}});var Pt=Mt(67294),ne=Mt(62844),Ne=Mt(2453),Be=Mt(95012),Pe=Mt(55238),Bt=Mt(74330),Ut=Mt(83062),ue=Mt(85804),se={header_body:"header_body___lAlEX",close:"close___OXweN",no_data:"no_data___h77J2",recommend_config_introduce:"recommend_config_introduce___ifFGY",recommend_config:"recommend_config___UXyKS",recommend_config_item:"recommend_config_item___zONum",item_title:"item_title___w5vXw",recommend_text:"recommend_text___f68Eu",item_content:"item_content___j_zbN",recommend_config_active_item:"recommend_config_active_item___SrTkJ",recommend_config_footer:"recommend_config_footer___PHnlA",application:"application___uh4gI",tooltip:"tooltip___f0uXh",disabled:"disabled___Ha9Ba"},Se=Mt(73475),Xe=Mt(17663),pe=Mt(13014),Ht=Mt(4977),Dt=Mt(33170),nt=Mt(70596),et={lineChart:"lineChart___dCEZW"},ht=Mt(94699),lt=Mt.n(ht),gt=Mt(67294),xt=({dataInfo:wt,indexKey:Ft,valueName:Wt,startAndEndTime:kt,colors:Xt=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"],imageTypeName:$e})=>{let Je=null;(0,Pt.useEffect)(()=>{Hn()},[wt]),(0,Pt.useEffect)(()=>{window.addEventListener("resize",fn(()=>{Je&&Je.resize()},200))},[window.onresize]);const fn=(pn,gi,Mi=!1)=>{let In,ei;return(...Ki)=>{if(Mi){pn.apply(ei,Ki),Mi=!1;return}clearTimeout(In),In=setTimeout(()=>{pn.apply(ei,Ki)},gi)}},Ve=pn=>pn?pn.map(gi=>{const Mi=new Date(gi),In=String(Mi.getMonth()+1).padStart(2,"0"),ei=String(Mi.getDate()).padStart(2,"0"),Ki=String(Mi.getHours()).padStart(2,"0"),hi=String(Mi.getMinutes()).padStart(2,"0");return`${In}/${ei} ${Ki}:${hi}`}):[],Mn=(pn,gi)=>pn.map(Mi=>{const In=gi.timestamps.indexOf(Mi);return In!==-1?gi.values[In]:null});function Ue(pn){let gi=1/0;for(let In=0;In<pn.length-1;In++){let ei=pn[In+1]-pn[In];ei<gi&&(gi=ei)}return{newArray:ti(pn[0],pn[pn.length-1],gi),minInterval:gi}}const ti=(pn,gi,Mi)=>{let In=[];for(let ei=pn;ei<=gi;ei+=Mi)In.push(ei);return In},Qn=()=>{var pn;const gi=((pn=wt==null?void 0:wt.x)==null?void 0:pn.flat())||[];let Mi=[...new Set(gi)].sort((ki,sr)=>ki-sr),In=Ue(Mi),ei=In==null?void 0:In.newArray,Ki=In==null?void 0:In.minInterval;Mi=[...new Set([...Mi,...ei])].sort((ki,sr)=>ki-sr);let hi=lt()(kt[0],"YYYY-MM-DD HH:mm").valueOf(),$i=ti(hi,Mi[0]-Ki,Ki),pr=lt()(kt[1],"YYYY-MM-DD HH:mm").valueOf(),rr=ti(Mi[Mi.length-1]+Ki,pr,Ki);return Mi=[...$i,...Mi,...rr],[...new Set(Mi)].sort((ki,sr)=>ki-sr)},Hn=()=>{var pn;Je=nt.init(document.getElementById(`lineChart${Ft}`));let gi=Qn(),Mi=(pn=wt==null?void 0:wt.y)==null?void 0:pn.map((ei,Ki)=>{var hi;let $i={timestamps:(hi=wt==null?void 0:wt.x)==null?void 0:hi[Ki],values:ei};return ei=Mn(gi,$i),{name:Wt[Ki],type:"line",itemStyle:{show:!1},lineStyle:{color:Xt[Ki]},data:ei}}),In={tooltip:{trigger:"axis",axisPointer:{type:"line",lineStyle:{color:"rgba(212, 217, 227, 1)",type:"dashed"}},backgroundColor:"#fff",textStyle:{color:"#333333"},padding:10,extraCssText:"box-shadow: 0px 4px 8px 0px rgba(184,194,202,0.5)",formatter:function(ei){var Ki;let hi="";return ei.forEach(($i,pr)=>{console.log("item",$i),hi+=`<div style="width: 100%; display: flex; justify-content: space-between; align-items: center; margin: 6px 0px;">
|
|
<div style="display: flex; align-items: center;">
|
|
<div style="width: 12px; height: 12px; border-radius: 50%; background: ${Xt[$i==null?void 0:$i.componentIndex]}; margin-right: 4px;"></div>
|
|
<span style="width: 144px; color: rgba(43,49,63,0.5); font-size: 12px;">${$e[$i==null?void 0:$i.componentIndex]}</span>
|
|
</div>
|
|
<div style="color: #393971; font-size: 13px; font-weight: 600;">${$i.value>0?$i.value.toFixed(5):$i.value==0?0:"--"} ${Ft==0?"Cores":"MiB"}</div>
|
|
</div>`}),`<div>
|
|
<div style="color: #333333; padding-top: 6px;">${(Ki=ei[0])==null?void 0:Ki.name}</div>
|
|
${hi}
|
|
</div>`}},grid:{right:"5%",bottom:"20%",top:"10%"},dataZoom:[{show:!0,start:0,end:100},{type:"inside",start:20,end:100}],xAxis:[{type:"category",gridIndex:0,boundaryGap:!0,axisTick:{show:!1,alignWithLabel:!1},axisLine:{show:!0,lineStyle:{color:"#F0F0F0",type:"solid"}},axisLabel:{show:!0,color:"#9096A3"},splitLine:{show:!1},data:Ve(gi)}],yAxis:[{type:"value",gridIndex:0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{show:!0,color:"#9096A3",formatter:Ft==1?"{value} MiB":"{value} Cores"},splitLine:{show:!0,lineStyle:{color:"#EDEDED",type:"dashed"}}}],series:Mi};Je.setOption(In)};return gt.createElement("div",{id:`lineChart${Ft}`,className:et.lineChart})},St=Mt(30001),zt={flex_warp:"flex_warp___Rtigf",chart_content:"chart_content___tVmUj",chart_title:"chart_title___AOPx7",listdata:"listdata___mi4KG",block:"block___prArl",typename:"typename___j4diD",val:"val___MeuWc",info_con:"info_con___eIdJL",info_top:"info_top___UKMbT",fullscreen:"fullscreen___PICBn",chart_content_qp:"chart_content_qp___ae1n1",spin_dom:"spin_dom___T7PCy"},Jt=Mt(88044),re=Mt(18046),oe=Mt(63960);const $t=wt=>{const Ft=new Date,kt=(Xt=>{const $e=new Date(Ft);switch(Xt){case"\u6700\u8FD130\u5206\u949F":$e.setMinutes(Ft.getMinutes()-30);break;case"\u6700\u8FD13\u5C0F\u65F6":$e.setHours(Ft.getHours()-3);break;case"\u6700\u8FD124\u5C0F\u65F6":$e.setDate(Ft.getDate()-1);break;case"\u6700\u8FD17\u5929":$e.setDate(Ft.getDate()-7);break;case"\u6700\u8FD115\u5929":$e.setDate(Ft.getDate()-15);break;default:return null}return $e})(wt);return kt?{startTime:kt,endTime:Ft}:null},Le=(wt,Ft,Wt)=>{if(!wt)return!1;const kt=lt()(),[Xt,$e]=Ft;if(wt.isAfter(kt))return!0;if(Xt){const Je=Xt.clone().add(Wt,"days");if($e&&wt.isAfter(Je))return!0}if($e){const Je=$e.clone().subtract(Wt,"days");return wt.isBefore(Je)||wt.isAfter(kt)}return!1},de=wt=>wt<=5?"30s":wt<=15?"1m":wt<=30?"2m":wt<=60?"5m":wt<=180?"10m":wt<=360?"30m":wt<=720?"1h":wt<=1440?"2h":wt<=2880?"4h":wt<=4320?"8h":wt<=10080||wt<=14400?"12h":wt<=21600?"1d":"\u6CA1\u6709\u5339\u914D\u7684\u65F6\u95F4\u95F4\u9694",Fe=wt=>{const[Ft,Wt]=wt,kt=moment.isMoment(Ft)?Ft:moment(Ft),Xt=moment.isMoment(Wt)?Wt:moment(Wt);if(!kt.isValid()||!Xt.isValid())throw new Error("Invalid date provided");const Je=moment.duration(Xt.diff(kt)).asMinutes();return de(Je)},rn=(wt,Ft,Wt=20)=>{const kt=new Date(wt).getTime(),Xt=new Date(Ft).getTime(),$e=Wt*1e3,Je=[];let fn=kt;for(;fn<=Xt;)Je.push(fn),fn+=$e;return Je};var De=Mt(96486),jn=Mt(26194),Bn=Mt(51959),an=Mt(67294),Zn=(wt,Ft,Wt)=>new Promise((kt,Xt)=>{var $e=Ve=>{try{fn(Wt.next(Ve))}catch(Mn){Xt(Mn)}},Je=Ve=>{try{fn(Wt.throw(Ve))}catch(Mn){Xt(Mn)}},fn=Ve=>Ve.done?kt(Ve.value):Promise.resolve(Ve.value).then($e,Je);fn((Wt=Wt.apply(wt,Ft)).next())});const _t=Jt.default.Option,{RangePicker:Tt}=re.default;var _e=({identifier:wt,data:Ft,isFirst:Wt,setIsFirst:kt,info:Xt})=>{var $e;const[Je,fn]=(0,Pt.useState)([]),[Ve,Mn]=(0,Pt.useState)([]),[Ue,ti]=(0,Pt.useState)(null),[Qn,Hn]=(0,Pt.useState)(""),[pn,gi]=(0,Pt.useState)([null,null]),[Mi,In]=(0,Pt.useState)([]),[ei,Ki]=(0,Pt.useState)(!1),[hi,$i]=(0,Pt.useState)([]),[pr,rr]=(0,Pt.useState)(!1),[ki,sr]=(0,Pt.useState)(!1),[Ur,Jo]=(0,Pt.useState)(""),[Rr,To]=(0,Pt.useState)(1),pa=["\u6700\u8FD130\u5206\u949F","\u6700\u8FD13\u5C0F\u65F6","\u6700\u8FD124\u5C0F\u65F6","\u6700\u8FD17\u5929","\u6700\u8FD115\u5929"],co=["#DA4928","#2EC25B","#FEBD49","#498FEA","#9363D8"];(0,Pt.useEffect)(()=>{var Tn,Di,te,le;if(Ft&&Wt){Xn(),fn(Ft==null?void 0:Ft.recent_users),Mn(Ft==null?void 0:Ft.managers);const ae=(Xt==null?void 0:Xt.type)==="\u6311\u6218\u9875\u9762";((Tn=Ft==null?void 0:Ft.managers)==null?void 0:Tn.length)>0?ti(ae?Xt==null?void 0:Xt.myshixun_id:(Di=Ft==null?void 0:Ft.managers[0])==null?void 0:Di.id):((te=Ft==null?void 0:Ft.recent_users)==null?void 0:te.length)>0&&ti(ae?Xt==null?void 0:Xt.myshixun_id:(le=Ft==null?void 0:Ft.recent_users[0])==null?void 0:le.id),Hn("\u6700\u8FD130\u5206\u949F"),kt(!1)}},[Ft]),(0,Pt.useEffect)(()=>{if(Qn){let Tn=$t(Qn);gi([lt()(Tn==null?void 0:Tn.startTime),lt()(Tn==null?void 0:Tn.endTime)])}},[Qn]),(0,Pt.useEffect)(()=>{Ue&&(pn!=null&&pn[0])&&(pn!=null&&pn[1])&&Xi()},[Ue,pn]);const Xi=()=>Zn(void 0,null,function*(){var Tn;Ki(!0);let Di={startTimeString:pn[0]?pn[0].format("YYYY-MM-DD HH:mm"):null,endTimeString:pn[1]?pn[1].format("YYYY-MM-DD HH:mm"):null,samplingInterval:"20s",isSortBoolean:!1,id:Ue};const te=yield(0,Dt.ZP)(`/api/shixuns/${wt}/cpu_rank_data.json`,{method:"get",params:Di});(te==null?void 0:te.status)==0&&($i((Tn=te==null?void 0:te.data)==null?void 0:Tn.statisticsList),To(Rr+1)),Ki(!1)}),bn=(0,Pt.useRef)((0,De.throttle)(Tn=>bt(Tn),1200,{leading:!0,trailing:!0})).current,bt=Tn=>Zn(void 0,null,function*(){if(Tn=="")return;const Di=yield(0,Dt.ZP)(`/api/shixuns/${wt}/cpu_search_data`,{method:"get",params:{search:Tn}});(Di==null?void 0:Di.status)==0&&In(Di==null?void 0:Di.data)}),wn=(Tn,Di)=>{Tn==="CPU"?(pr?(0,Bn.BU)():(0,Bn.Dj)(document.getElementById(`tj${Di}`)),rr(!pr)):(ki?(0,Bn.BU)():(0,Bn.Dj)(document.getElementById(`tj${Di}`)),sr(!ki))},Fn=(Tn,Di,te)=>{const le=Di==="CPU"?"cpuUsageChart":"memoryUsageChart";let ae=Tn.map(Sn=>{var An,En,ke,cn;const _n=(An=Sn.promQueryResult)==null?void 0:An[le],vi=`${Sn.envId}-${Sn.myPracticalTrainingId}_${Di}`,mn=((cn=(ke=(En=_n==null?void 0:_n.results[vi])==null?void 0:En.frames[0])==null?void 0:ke.data)==null?void 0:cn.values)||[];return mn.length>0?mn[te]:[]});return ae.some(Sn=>Array.isArray(Sn)&&Sn.length>0)?ae:[]},Un=Tn=>{ti(Tn),Xn()},Xn=()=>{In([]),Jo("")},ai=Tn=>{let Di=!1;for(let te=0;te<(hi==null?void 0:hi.length);te++){let le=Fn(hi,Tn,1)[te];if(le&&(le==null?void 0:le.length)>0){Di=!0;break}}return(hi==null?void 0:hi.length)>0&&Di};return an.createElement(an.Fragment,null,an.createElement("div",{className:`${zt.flex_warp}`},an.createElement(oe.Z,{allowClear:!0,showSearch:!0,value:Ur,style:{width:280},onSearch:bn,placeholder:"\u641C\u7D22\u59D3\u540D/\u624B\u673A\u53F7/\u90AE\u7BB1",onChange:(Tn,Di)=>{Jo(Tn),Di!=null&&Di.key&&ti(Number(Di==null?void 0:Di.key))},onClear:Xn,size:"large"},Mi==null?void 0:Mi.map((Tn,Di)=>an.createElement(_t,{key:Tn.id,value:Tn.name},Tn.name.length>4?`${Tn.name.slice(0,4)}...`:Tn.name,`( ${Tn.phone?Tn.phone:""} ${Tn.mail?` - ${Tn.mail}`:""})`))),an.createElement("div",null,an.createElement(Jt.default,{style:{width:130,marginRight:20},placeholder:"\u8BF7\u9009\u62E9",size:"large",value:Qn,onChange:Tn=>{Hn(Tn)}},pa.map((Tn,Di)=>an.createElement(Jt.default.Option,{key:Di,value:Tn},Tn))),an.createElement(Tt,{style:{width:320},showTime:!0,size:"large",allowClear:!1,value:pn,disabledDate:Tn=>Le(Tn,pn,15),format:"YYYY-MM-DD HH:mm",onChange:Tn=>{gi(Tn),Hn(void 0)}}))),an.createElement(St.qp,{title:"\u5408\u4F5C\u6210\u5458",style:{marginTop:"24px"},value:Ue,onChange:Tn=>Un(Tn),dataSource:Ve,titleWidth:60,key:1}),an.createElement(St.qp,{title:"\u6700\u8FD1\u5B9E\u9A8C",className:(Je==null?void 0:Je.length)==0?"mt0":"",style:{marginBottom:(Je==null?void 0:Je.length)>0?"0px":"17px"},value:Ue,onChange:Tn=>Un(Tn),dataSource:Je,titleWidth:60,key:2}),($e=[{name:"CPU",type:"CPU"},{name:"\u5185\u5B58",type:"MEMORY"}])==null?void 0:$e.map((Tn,Di)=>an.createElement("div",{className:`${zt.chart_content}`,key:Di,id:`tj${Di}`},an.createElement("div",{className:zt.chart_title},an.createElement("span",null,Tn==null?void 0:Tn.name,"\u4F7F\u7528\u91CF"),an.createElement("i",{className:`${zt.fullscreen}
|
|
iconfont
|
|
${(Tn==null?void 0:Tn.type)=="CPU"?pr?"icon-tuichuquanping2":"icon-quanping2":ki?"icon-tuichuquanping2":"icon-quanping2"}
|
|
`,onClick:()=>wn(Tn.type,Di)})),an.createElement(Bt.Z,{spinning:ei},ai(Tn.type)?an.createElement("div",{style:{marginTop:(Tn==null?void 0:Tn.type)=="CPU"?pr?"7%":"":ki?"7%":""}},an.createElement(xt,{dataInfo:{y:Fn(hi,Tn==null?void 0:Tn.type,1)||[],x:Fn(hi,Tn==null?void 0:Tn.type,0)||[]},startAndEndTime:pn,colors:co,indexKey:Di,valueName:hi.map(te=>te.name),imageTypeName:hi.map(te=>{var le;return(le=te==null?void 0:te.promQueryResult)==null?void 0:le.imageTypeName}),key:`${Di}-${Rr}`}),an.createElement("div",{className:zt.info_con},an.createElement("div",{className:zt.info_top},an.createElement("div",null,"\u6700\u5927\u503C"),an.createElement("div",null,"\u6700\u5C0F\u503C"),an.createElement("div",null,"\u5E73\u5747\u503C")),hi.map((te,le)=>{var ae;let Ae=te==null?void 0:te.promQueryResult;return an.createElement("div",{className:zt.listdata,key:le},an.createElement("div",{className:zt.block,style:{backgroundColor:co[le],marginRight:10}}),an.createElement("div",{className:zt.typename},(ae=te==null?void 0:te.promQueryResult)==null?void 0:ae.imageTypeName),an.createElement("div",{className:zt.val},(Tn==null?void 0:Tn.type)=="CPU"?`${Ae==null?void 0:Ae.cpuMaxDoubleValue}Cores`:`${Ae==null?void 0:Ae.memoryDoubleMaxValue}MiB`),an.createElement("div",{className:zt.val},(Tn==null?void 0:Tn.type)=="CPU"?`${Ae==null?void 0:Ae.cpuMinDoubleValue}Cores`:`${Ae==null?void 0:Ae.memoryDoubleMinValue}MiB`),an.createElement("div",{className:zt.val},(Tn==null?void 0:Tn.type)=="CPU"?`${Ae==null?void 0:Ae.cpuAvgDoubleValue}Cores`:`${Ae==null?void 0:Ae.memoryDoubleAvgValue}MiB`))}))):an.createElement(jn.Z,null)))))},Ye=Mt(67294),xe=(wt,Ft,Wt)=>new Promise((kt,Xt)=>{var $e=Ve=>{try{fn(Wt.next(Ve))}catch(Mn){Xt(Mn)}},Je=Ve=>{try{fn(Wt.throw(Ve))}catch(Mn){Xt(Mn)}},fn=Ve=>Ve.done?kt(Ve.value):Promise.resolve(Ve.value).then($e,Je);fn((Wt=Wt.apply(wt,Ft)).next())}),tn=({getApi:wt,identifier:Ft,visible:Wt,info:kt})=>{const[Xt,$e]=(0,Pt.useState)({}),[Je,fn]=(0,Pt.useState)(!0);(0,Pt.useEffect)(()=>{fn(!0)},[Wt]),(0,Pt.useEffect)(()=>{wt&&Je&&Ve()},[wt]);const Ve=()=>xe(void 0,null,function*(){const Mn=yield(0,Dt.ZP)(`/api/shixuns/${Ft}/cpu_basic_data.json`,{method:"get"});(Mn==null?void 0:Mn.status)==0&&$e(Mn)});return Ye.createElement("div",null,Ye.createElement(_e,{isFirst:Je,setIsFirst:Mn=>fn(Mn),identifier:Ft,data:Xt,info:kt}))},Cn=Mt(28706),Ie=Mt(35973),ve=Mt(93686),ze=Mt(78207),je=Mt(67294),He=(wt,Ft,Wt)=>new Promise((kt,Xt)=>{var $e=Ve=>{try{fn(Wt.next(Ve))}catch(Mn){Xt(Mn)}},Je=Ve=>{try{fn(Wt.throw(Ve))}catch(Mn){Xt(Mn)}},fn=Ve=>Ve.done?kt(Ve.value):Promise.resolve(Ve.value).then($e,Je);fn((Wt=Wt.apply(wt,Ft)).next())});const Ot=({globalSetting:wt,dispatch:Ft,practiceSetting:Wt,shixunsDetail:kt,visible:Xt,onCancel:$e,info:Je,identifier:fn,isJupyter:Ve,onOk:Mn})=>{const[Ue,ti]=(0,Pt.useState)("1"),[Qn,Hn]=(0,Pt.useState)("\u63A8\u8350\u914D\u7F6E"),[pn,gi]=(0,Pt.useState)([]),[Mi,In]=(0,Pt.useState)(!1),[ei,Ki]=(0,Pt.useState)(!1),[hi,$i]=(0,Pt.useState)({}),[pr,rr]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{Xt&&(Ki(!1),ti("1"),Hn("\u63A8\u8350\u914D\u7F6E"),(Je==null?void 0:Je.type)=="\u6311\u6218\u9875\u9762"?gi(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E"]):gi(["\u5F53\u524D\u914D\u7F6E","\u63A8\u8350\u914D\u7F6E","\u589E\u5F3A\u914D\u7F6E"]),$i({}),ki(),(Je==null?void 0:Je.type)=="\u6311\u6218\u9875\u9762"&&Ft({type:"shixunsDetail/getShixunsDetail",payload:{id:fn}}))},[Xt]);const ki=()=>He(void 0,null,function*(){rr(!0);const Xi=yield(0,ve.HS)(fn);[0,-10].includes(Xi.status)&&($i(Xi),rr(!1))}),sr=Xi=>{Xi=="2"?Ki(!0):Ki(!1),ti(Xi)},Ur=()=>{ne.default.info({centered:!0,icon:null,width:424,title:"\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458",content:je.createElement("div",{className:"tc"},je.createElement("img",{src:pe,alt:"\u4E8C\u7EF4\u7801",width:182,height:182,style:{pointerEvents:"none",userSelect:"none"}})),okText:"\u6211\u77E5\u9053\u4E86"})},Jo=()=>He(void 0,null,function*(){if((0,ze.gy)(Ft,"\u4E0D\u80FD\u9009\u62E9/\u66F4\u6362\u5B9E\u9A8C\u73AF\u5883")||Qn=="\u5F53\u524D\u914D\u7F6E")return;In(!0),(yield(0,Dt.ZP)(`/api/shixuns/${fn}/apply_recommend_config.json`,{method:"put",body:{data:Qn=="\u63A8\u8350\u914D\u7F6E"?hi==null?void 0:hi.recommend:hi==null?void 0:hi.high}})).status==0&&(Ne.ZP.success("\u5E94\u7528\u6210\u529F"),In(!1),$e(),Mn())}),Rr=()=>He(void 0,null,function*(){var Xi,bn;if(yield To(),(0,Cn.L9)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u6A21\u62DF\u5B9E\u6218"]),(Xi=kt.detail)!=null&&Xi.is_jupyter||(bn=kt.detail)!=null&&bn.is_jupyter_lab){Ft({type:"shixunsDetail/execJupyter",payload:{id:fn}}).then(wn=>{var Fn;wn!=null&&wn.identifier&&((Fn=Ie.history)==null||Fn.push(`/tasks/${wn.identifier}/jupyter`))});return}Ft({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const bt=Ve?yield(0,ve.BK)({id:fn}):yield(0,ve.Ir)({id:fn});if(Ft({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),bt!=null&&bt.game_identifier||bt!=null&&bt.identifier){(0,Cn.xg)(Ve?`/tasks/${bt==null?void 0:bt.identifier}/jupyter`:`/tasks/${bt.game_identifier}`);return}(bt==null?void 0:bt.status)===-3?(0,Cn.eF)():(bt==null?void 0:bt.status)===2?pa(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&co(bt==null?void 0:bt.message)}),To=()=>new Promise((Xi,bn)=>{var bt;(bt=Wt==null?void 0:Wt.sideBar)!=null&&bt.confirmLeave?ne.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ft({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Xi()},onCancel:()=>{bn()}}):Xi()}),pa=Xi=>{Xi=Xi!=null&&Xi.includes(".json")?Xi:`${Xi}.json`,ne.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:je.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>He(void 0,null,function*(){const bn=yield(0,Dt.ZP)("/api"+Xi,{method:"get"});if(!bn)return;Ne.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const bt=yield(0,ve.Ir)({id:bn.shixun_identifier});if(bt!=null&&bt.game_identifier){(0,Cn.xg)(`/tasks/${bt.game_identifier}`);return}(bt==null?void 0:bt.status)===2?pa(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&co(bt==null?void 0:bt.message)})})},co=Xi=>{ne.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:je.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Xi,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})};return je.createElement(je.Fragment,null,je.createElement(Be.Z,{title:null,placement:"right",open:Xt,width:1e3,onClose:$e,closeIcon:null,footer:null},je.createElement("div",{className:se.header_body},je.createElement("span",null,"\u914D\u7F6E\u4E0E\u76D1\u63A7"),je.createElement(Se.Z,{className:se.close,onClick:$e})),je.createElement(Pe.default,{activeKey:Ue,onChange:sr},je.createElement(Pe.default.TabPane,{tab:"\u63A8\u8350\u914D\u7F6E",key:1},je.createElement(Bt.Z,{spinning:pr,size:"large",tip:je.createElement("div",{style:{color:"#666",fontSize:"14px"}},je.createElement("div",{style:{color:"#232B40",fontWeight:"bolder",marginBottom:24,marginTop:14}},"\u6B63\u5728\u8BA1\u7B97\u2026"),je.createElement("div",{style:{lineHeight:"26px"}},"\u7CFB\u7EDF\u6B63\u5728\u6839\u636E\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\u7684\u5B9E\u9645\u60C5\u51B5\u8BA1\u7B97\u63A8\u8350\u914D\u7F6E",je.createElement("br",null),"\u8BF7\u8010\u5FC3\u7B49\u5F85\u2026"))},(hi==null?void 0:hi.status)==0?je.createElement(je.Fragment,null,je.createElement("div",{className:se.recommend_config_introduce},je.createElement("div",null,"\u5F53\u524D\u914D\u7F6E\uFF1A\u5B9E\u9A8C\u73AF\u5883\u76EE\u524D\u5DF2\u7ECF\u914D\u7F6E\u7684\u8D44\u6E90\u3002"),je.createElement("div",null,"\u63A8\u8350\u914D\u7F6E\uFF1A\u7CFB\u7EDF\u6839\u636E\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\u7684\u5B9E\u9645\u60C5\u51B5\uFF0C\u8BA1\u7B97\u51FA\u63A8\u8350\u914D\u7F6E\u3002\u4F7F\u7528\u7684\u4EBA\u8D8A\u591A\uFF0C\u63A8\u8350\u8D8A\u51C6\u786E\u3002"),je.createElement("div",null,"\u589E\u5F3A\u914D\u7F6E\uFF1A\u9002\u7528\u4E8E\u8D44\u6E90\u6D88\u8017\u8F83\u9AD8\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),je.createElement("div",{className:se.recommend_config},pn.map((Xi,bn)=>je.createElement("div",{className:`${se.recommend_config_item} ${Xi==Qn?se.recommend_config_active_item:""}`,key:Xi,onClick:()=>Hn(Xi)},je.createElement("div",{className:se.item_title},je.createElement("div",null,Xi),bn==1?je.createElement("div",{className:se.recommend_text},"\u63A8\u8350"):je.createElement(je.Fragment,null)),(Xi=="\u5F53\u524D\u914D\u7F6E"&&(hi==null?void 0:hi.current)||Xi=="\u63A8\u8350\u914D\u7F6E"&&(hi==null?void 0:hi.recommend)||Xi=="\u589E\u5F3A\u914D\u7F6E"&&(hi==null?void 0:hi.high)||[]).map((bt,wn)=>je.createElement("div",{className:se.item_content,key:wn},je.createElement("span",null,bt==null?void 0:bt.image_name),bt!=null&&bt.cpu_limit?je.createElement("span",null,bt==null?void 0:bt.cpu_limit,"\u6838",bt==null?void 0:bt.memory_limit,"G"):je.createElement("div",null,je.createElement("span",null,"\u6682\u65E0\u63A8\u8350"),je.createElement(Ut.Z,{title:je.createElement("div",{style:{lineHeight:"22px",padding:5}},"\u5B9E\u9A8C\u73AF\u5883\u4E3A\u7279\u6B8A\u7684\u4E13\u6709\u4E91\u6216\u65E0\u4F7F\u7528\u6570",je.createElement("br",null),"\u636E\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u7ED9\u51FA\u63A8\u8350\u503C\u3002\u4E00\u952E\u5E94\u7528",je.createElement("br",null),"\u7684\u65F6\u5019\uFF0C\u5C06\u4F7F\u7528\u539F\u914D\u7F6E\u3002")},je.createElement(Xe.Z,{className:se.tooltip})))))))),je.createElement("div",{className:se.recommend_config_footer},je.createElement("div",null,je.createElement("span",null,"\u6CA1\u627E\u5230\u5408\u9002\u7684\u914D\u7F6E\uFF1F"),je.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Ur()},"\u8054\u7CFB\u7BA1\u7406\u5458")),je.createElement(ue.ZP,{type:"primary",shape:"round",disabled:Qn=="\u5F53\u524D\u914D\u7F6E",onClick:Jo,loading:Mi},"\u4E00\u952E\u5E94\u7528"))):pr?je.createElement("div",{style:{height:400}}):je.createElement("div",{className:se.no_data},je.createElement("img",{src:Ht,style:{pointerEvents:"none",userSelect:"none",width:212,height:160}}),je.createElement("p",{className:"mt20 mb20 font14",style:{color:"#7B8394",width:"100%",lineHeight:"26px"}},"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u6CA1\u6709\u4EFB\u4F55\u4EBA\u4F7F\u7528\u8FC7\uFF0C\u7CFB\u7EDF\u65E0\u6CD5\u6839\u636E\u5B9E\u9645\u4F7F\u7528\u60C5\u51B5\u7ED9\u51FA\u63A8\u8350\u914D\u7F6E\u3002",je.createElement("br",null),"\u5EFA\u8BAE\u60A8\u5148\u6A21\u62DF\u5B9E\u6218\u5E76\u901A\u5173~"),(Je==null?void 0:Je.type)!="\u6311\u6218\u9875\u9762"&&je.createElement("div",{className:se.application,onClick:()=>{Rr(),$e()}},"\u6A21\u62DF\u5B9E\u6218")))),je.createElement(Pe.default.TabPane,{tab:"\u8D44\u6E90\u76D1\u63A7",key:2},je.createElement(tn,{getApi:ei,identifier:fn,visible:Xt,info:Je})))))};var Lt=(0,Ie.connect)(({globalSetting:wt,practiceSetting:Ft,shixunsDetail:Wt})=>({globalSetting:wt,practiceSetting:Ft,shixunsDetail:Wt}))(Ot)},16987:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return $t}});var Pt=Mt(67294),ne=Mt(62844),Ne=Mt(85804),Be=Mt(2453),Pe=Mt(55238),Bt=Mt(74330),Ut=Mt(56672),ue=Mt(37720),se=Mt(57399),Se={modal:"modal___aF6vS",con_warp:"con_warp___W1gHS",flex:"flex___Cbe__",config_Warp:"config_Warp___lXnUZ",config_btn:"config_btn___OAH7T",sceneList:"sceneList___N5Y3k",sceneItem:"sceneItem____bE1H",sceneItemActive:"sceneItemActive___e82B8"},Xe=Mt(37388),pe=Mt(38308),Ht=Mt(33170),Dt=Mt(26194),nt=Mt(67294),et=Object.defineProperty,ht=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,St=(Le,de,Fe)=>de in Le?et(Le,de,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Le[de]=Fe,zt=(Le,de)=>{for(var Fe in de||(de={}))mt.call(de,Fe)&&St(Le,Fe,de[Fe]);if(gt)for(var Fe of gt(de))xt.call(de,Fe)&&St(Le,Fe,de[Fe]);return Le},Jt=(Le,de)=>ht(Le,lt(de)),re=(Le,de,Fe)=>new Promise((rn,De)=>{var jn=Zn=>{try{an(Fe.next(Zn))}catch(_t){De(_t)}},Bn=Zn=>{try{an(Fe.throw(Zn))}catch(_t){De(_t)}},an=Zn=>Zn.done?rn(Zn.value):Promise.resolve(Zn.value).then(jn,Bn);an((Fe=Fe.apply(Le,de)).next())}),$t=({visible:Le,onOk:de,onCancel:Fe,info:rn})=>{var De,jn,Bn,an,Zn;const[_t,Tt]=(0,Pt.useState)("1"),[ce,_e]=(0,Pt.useState)([]),[Ye,xe]=(0,Pt.useState)([]),[on,tn]=(0,Pt.useState)(0),[Cn,Ie]=(0,Pt.useState)(null),[ve,ze]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{Le&&(je(),He(),Ot())},[Le]);const je=()=>{Tt("1"),_e([]),Ie(null),tn(0)};(0,Pt.useEffect)(()=>{var Je,fn;((fn=(Je=Ye==null?void 0:Ye[on])==null?void 0:Je.content)==null?void 0:fn.length)>0&&Ie(Jt(zt({},Ye[on].content[0]),{index:0}))},[_t,on,Ye]);const He=()=>re(void 0,null,function*(){ze(!0),yield(0,Ht.ZP)("/api/home/cpu_memory_limit.json",{method:"GET"}).then(Je=>{let{max_cpu:fn,max_memory:Ve,min_cpu:Mn,min_memory:Ue}=Je,{cpu:ti,memory:Qn}=rn;_e([{name:"CPU",value:ti,min:Mn,max:fn,typeName:"\u6838"},{name:"\u5185\u5B58",value:Qn,min:Ue,max:Ve,typeName:"GB"}])}),ze(!1)}),Ot=()=>re(void 0,null,function*(){yield(0,Ht.ZP)("/api/home/example_cpu_list.json",{method:"GET"}).then(Je=>{var fn;if(xe(Je),(Je==null?void 0:Je.length)>0){let Ve=Jt(zt({},(fn=Je==null?void 0:Je[0])==null?void 0:fn.content[0]),{index:0});Ie(Ve)}})}),Lt=Je=>{Tt(Je),Je==="2"&&tn(0)},wt=(Je,fn)=>{_e(ce.map(Ve=>Ve.name===Je?fn(Ve):Ve))},Ft=(Je,fn)=>{isNaN(Je)||wt(fn,Ve=>Jt(zt({},Ve),{value:Je}))},Wt=Je=>{var fn;if(console.log("decline",Je.value),Je.value=Number(Je.value),Je.value<=((fn=Je.min)!=null?fn:-1/0))return;let Ve=Je.value-.5<Je.min?Je.min:Je.value-.5;wt(Je.name,Mn=>Jt(zt({},Mn),{value:Ve}))},kt=Je=>{var fn;if(Je.value=Number(Je.value),Je.value>=((fn=Je.max)!=null?fn:1/0))return;let Ve=Je.value+.5>Je.max?Je.max:Je.value+.5;wt(Je.name,Mn=>Jt(zt({},Mn),{value:Ve}))},Xt=(Je,fn)=>{isNaN(Je)||wt(fn,Ve=>Jt(zt({},Ve),{value:Je}))},$e=Je=>{if(Je==null||Number.isInteger(Je))return Je;const fn=Je%1;return fn===.5?Je:Math.floor(Je)+(fn<.5?.5:1)};return nt.createElement(nt.Fragment,null,nt.createElement(ne.default,{title:"\u8D44\u6E90\u914D\u7F6E",open:Le,width:752,destroyOnClose:!0,centered:!0,onCancel:Fe,className:Se.modal,footer:[nt.createElement("div",{className:Se.btn_warp,key:"1"},nt.createElement(Ne.ZP,{onClick:Fe},"\u53D6\u6D88"),nt.createElement(Ne.ZP,{type:"primary",onClick:()=>{let Je=zt({},rn);if(_t=="1")Je.cpu=ce[0].value,Je.memory=ce[1].value;else if(_t=="2"){if(!Cn){Be.ZP.error("\u8BF7\u9009\u62E9\u4E00\u6761\u573A\u666F\u5BF9\u5E94\u7684CPU\u4E0E\u5185\u5B58");return}Je=Jt(zt({},Je),{cpu:Cn.cpu,memory:Cn.memory})}de(Je)}},"\u4FDD\u5B58"))]},nt.createElement(Pe.default,{activeKey:_t,onChange:Lt},nt.createElement(Pe.default.TabPane,{tab:"\u81EA\u5B9A\u4E49\u914D\u7F6E",key:1},nt.createElement(Bt.Z,{spinning:ve},ce==null?void 0:ce.map(Je=>nt.createElement("div",{className:Se.con_warp,key:Je==null?void 0:Je.name},nt.createElement("div",null,Je==null?void 0:Je.name),nt.createElement("div",null,nt.createElement(Ut.Z,{min:Je==null?void 0:Je.min,max:Je==null?void 0:Je.max,onChange:fn=>Ft(fn,Je==null?void 0:Je.name),value:Je==null?void 0:Je.value,step:.5,style:{width:482,height:6,margin:"0 20px 0 12px"}})),nt.createElement("div",{className:`${Se.config_Warp} ${Se.flex}`},nt.createElement("div",{className:`${Se.config_btn} ${Se.flex}`,onClick:()=>Wt(Je)},nt.createElement(Xe.Z,null)),nt.createElement(ue.Z,{min:Je==null?void 0:Je.min,max:Je==null?void 0:Je.max,size:"large",step:"0.1",controls:!1,style:{width:50},value:Je==null?void 0:Je.value,onChange:fn=>{const Ve=$e(fn);Xt(Ve,Je==null?void 0:Je.name)}}),nt.createElement("div",{className:`${Se.config_btn} ${Se.flex}`,onClick:()=>kt(Je)},nt.createElement(pe.Z,null))),nt.createElement("div",null,Je==null?void 0:Je.typeName))))),(Ye==null?void 0:Ye.length)>0&&nt.createElement(Pe.default.TabPane,{tab:"\u6309\u573A\u666F\u9009\u62E9",key:2},nt.createElement("div",{className:Se.sceneList},Ye==null?void 0:Ye.map((Je,fn)=>nt.createElement("div",{className:`${Se.sceneItem} ${on==fn&&Se.sceneItemActive}`,key:Je==null?void 0:Je.id,onClick:()=>{tn(fn)}},Je==null?void 0:Je.name))),((jn=(De=Ye==null?void 0:Ye[on])==null?void 0:De.content)==null?void 0:jn.length)>0?nt.createElement(se.default,{rowSelection:{type:"radio",selectedRowKeys:[Cn==null?void 0:Cn.index],onChange:(Je,fn)=>{Ie(fn[0])}},columns:[{title:"CPU",dataIndex:"cpu",align:"center",render:(Je,fn)=>nt.createElement("div",null,Je,"\u6838")},{title:"\u5185\u5B58",dataIndex:"memory",align:"center",render:(Je,fn)=>nt.createElement("div",null,Je,"GB")}],dataSource:(Bn=Ye==null?void 0:Ye[on])==null?void 0:Bn.content.map((Je,fn)=>Jt(zt({},Je),{index:fn})),rowKey:"index",pagination:!1,scroll:((Zn=(an=Ye==null?void 0:Ye[on])==null?void 0:an.content)==null?void 0:Zn.length)>3?{y:148}:{}}):nt.createElement(Dt.Z,null)))))}},9916:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return gt}});var Pt=Mt(67294),ne=Mt(35973),Ne=Mt(28802),Be=Mt(91773),Pe=Mt(62844),Bt=Mt(2453),Ut=Mt(35059),ue=Mt(85804),se=Mt(11320),Se=Mt(55351),Xe={flexRow:"flexRow___JBN3B",flexColumn:"flexColumn___zXgFj",formWrap:"formWrap___aNgan",upload:"upload___yGdLQ",color0152d9:"color0152d9___zzEpS",colorCCC:"colorCCC___k4Dxq",footerWrap:"footerWrap___WrUZd",qrCode:"qrCode___GPwSg",a1:"a1___R6etl",code:"code___fCL_L",group:"group___n7tgy",groupNumber:"groupNumber___tw7hA",a2:"a2___GGjDE"},pe=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,nt=(mt,xt)=>{var St={};for(var zt in mt)Ht.call(mt,zt)&&xt.indexOf(zt)<0&&(St[zt]=mt[zt]);if(mt!=null&&pe)for(var zt of pe(mt))xt.indexOf(zt)<0&&Dt.call(mt,zt)&&(St[zt]=mt[zt]);return St},et=(mt,xt,St)=>new Promise((zt,Jt)=>{var re=Le=>{try{$t(St.next(Le))}catch(de){Jt(de)}},oe=Le=>{try{$t(St.throw(Le))}catch(de){Jt(de)}},$t=Le=>Le.done?zt(Le.value):Promise.resolve(Le.value).then(re,oe);$t((St=St.apply(mt,xt)).next())});const ht=Ne.default.TextArea,lt=mt=>{var xt=mt,{newShixuns:St,globalSetting:zt,loading:Jt,dispatch:re}=xt,oe=nt(xt,["newShixuns","globalSetting","loading","dispatch"]);const[$t]=Be.default.useForm(),[Le,de]=(0,Pt.useState)([]),Fe=an=>{["uploading","done","removed"].includes(an.file.status)&&de(an.fileList)},rn=an=>{var Zn;if(!an.percent||an.percent==100){const _t=(Zn=an.response)==null?void 0:Zn.id;return Pe.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>et(void 0,null,function*(){(yield re({type:"newShixuns/deleteAttachment",payload:{id:_t}}))&&de(Le.filter(ce=>{var _e;return((_e=ce.response)==null?void 0:_e.id)!==_t}))})}),!1}},De=an=>Le.length?!1:an.size/1024/1024>50?(Bt.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,jn=an=>et(void 0,null,function*(){var Zn,_t;const{language:Tt,env:ce,mode:_e,code:Ye}=an||{},xe=yield re({type:"newShixuns/applyShixunMirror",payload:{language:Tt,runtime:ce,run_method:_e,attachment_id:(_t=(Zn=Le==null?void 0:Le[0])==null?void 0:Zn.response)==null?void 0:_t.id}});re({type:"newShixuns/setActionTabs",payload:{}}),xe&&Bt.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),Bn=()=>{$t.resetFields(),de([])};return Pt.createElement(Pe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:St.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:Bn},Pt.createElement("section",{className:Xe.qrCode},Pt.createElement("aside",{className:Xe.a1},Pt.createElement("div",{className:Xe.code},Pt.createElement("img",{width:120,height:120,src:Se,alt:"\u4E8C\u7EF4\u7801"})),Pt.createElement("div",{className:Xe.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),Pt.createElement("div",{className:Xe.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),Pt.createElement("aside",{className:Xe.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",Pt.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),Pt.createElement(Be.default,{className:Xe.formWrap,form:$t,labelCol:{span:4},wrapperCol:{span:20},onFinish:jn},Pt.createElement(Be.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},Pt.createElement(ht,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),Pt.createElement(Be.default.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},Pt.createElement(ht,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),Pt.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},Pt.createElement(ht,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),Pt.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},Pt.createElement("div",{className:Xe.upload},Pt.createElement(Ut.default,{fileList:Le,action:`${se.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:Fe,onRemove:rn,beforeUpload:De,withCredentials:!0},Pt.createElement("span",{className:`${Xe.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),Pt.createElement("span",{className:`${Xe.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),Pt.createElement("div",{className:Xe.footerWrap},Pt.createElement(Be.default.Item,null,Pt.createElement(ue.ZP,{className:"mr5",size:"middle",onClick:()=>{re({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),Pt.createElement(ue.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Jt["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var gt=(0,ne.connect)(({newShixuns:mt,loading:xt,globalSetting:St})=>({newShixuns:mt,globalSetting:St,loading:xt.effects}))(lt)},96289:function(un,Nn,Mt){"use strict";var Pt=Mt(67294),ne=Mt(35973),Ne=Mt(62844),Be=Mt(55351);const Pe=({newShixuns:Bt,dispatch:Ut,user:ue})=>{var se;const[Se,Xe]=(0,Pt.useState)(!1);(0,Pt.useEffect)(()=>{Bt.actionTabs.key==="Create-Environment"&&Ht()},[(se=Bt==null?void 0:Bt.actionTabs)==null?void 0:se.key]);const pe=()=>{Ut({type:"newShixuns/setActionTabs",payload:{}})},Ht=()=>{var Dt,nt,et,ht;pe(),((Dt=ue.userInfo)==null?void 0:Dt.mirror_marker_status)===0?Xe(!0):((nt=ue.userInfo)==null?void 0:nt.mirror_marker_status)===1?ne.history.push(`/users/${(et=ue.userInfo)==null?void 0:et.login}/experiment-img/add`):((ht=ue.userInfo)==null?void 0:ht.mirror_marker_status)===2&&Ne.default.confirm({title:"\u60A8\u4ECA\u65E5\u5DF2\u8FBE\u5230\u7533\u8BF7\u4E0A\u9650\uFF0C\u662F\u5426\u8DF3\u8F6C\u81F3\u4E91\u4E3B\u673A\u5217\u8868\uFF1F",content:"\u63D0\u793A\uFF1A\u6BCF\u5929\u6700\u591A\u5141\u8BB8\u7533\u8BF7\u4E00\u53F0\u4E91\u4E3B\u673A",okText:"\u8DF3\u8F6C",cancelText:"\u53D6\u6D88",onOk(){var lt;ne.history.push(`/users/${(lt=ue.userInfo)==null?void 0:lt.login}/experiment-img`)}})};return Pt.createElement(Ne.default,{title:"\u52A0\u5165qq\u7FA4\u63D0\u793A",open:Se,footer:null,onCancel:()=>{Xe(!1)}},Pt.createElement("div",{style:{textAlign:"center"}},Pt.createElement("br",null),Pt.createElement("img",{width:120,height:120,style:{marginTop:"20px"},src:Be,alt:"\u4E8C\u7EF4\u7801"})),Pt.createElement("img",null))};Nn.Z=(0,ne.connect)(({newShixuns:Bt,user:Ut,globalSetting:ue})=>({newShixuns:Bt,globalSetting:ue,user:Ut}))(Pe)},51959:function(un,Nn,Mt){"use strict";Mt.d(Nn,{BU:function(){return ne},Dj:function(){return Pt},gH:function(){return Ne},vp:function(){return Be}});function Pt(Pe){try{Pe.mozRequestFullScreen?Pe.mozRequestFullScreen():Pe.webkitRequestFullScreen&&Pe.webkitRequestFullScreen()}catch(Bt){console.log(Bt,":e")}}function ne(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Ne=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function Be(){var Pe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,Bt=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",Pe),window.isFullScreen?window.isFullScreen:Pe!=null}},51161:function(un,Nn,Mt){"use strict";Mt.d(Nn,{AL:function(){return xt},Iy:function(){return Xe},Qv:function(){return Dt},ez:function(){return mt},jb:function(){return pe}});var Pt=Mt(47084),ne=Mt.n(Pt),Ne=Mt(90621),Be=Mt.n(Ne);let Pe=1;function Bt(oe,$t){const Le=oe.match(/^(\s+)(?:```)/);if(Le===null)return $t;const de=Le[1];return $t.split(`
|
|
`).map(Fe=>{const rn=Fe.match(/^\s+/);if(rn===null)return Fe;const[De]=rn;return De.length>=de.length?Fe.slice(de.length):Fe}).join(`
|
|
`)}let Ut=[],ue=["<ul>"];const se=new(ne()).Renderer,Se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){Ut.length=0,ue=["<ul>"]}const pe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ht(oe,$t,Le,de){if($t>=oe.length||oe[$t].level<=Le)return $t;var Fe=oe[$t];de.push("<li><a href='#"+Pe+Fe.anchor+"'>"+Fe.text+"</a>"),$t++;var rn=[];return $t=Ht(oe,$t,Fe.level,rn),rn.length>0&&(de.push("<ul>"),rn.forEach(function(De){de.push(De)}),de.push("</ul>")),de.push("</li>"),$t=Ht(oe,$t,Le,de),$t}function Dt(){return Ht(Ut,0,0,ue),ue.push("</ul>"),ue.join("")}const nt={heading(oe){const $t=Se.exec(oe);if(Pe+=1,$t)return{type:"heading",raw:$t[0],depth:$t[1].length,text:$t[2]}},fences(oe){const $t=this.rules.block.fences.exec(oe);if($t){const Le=$t[0];let de=Bt(Le,$t[3]||"");const Fe=$t[2]?$t[2].trim():$t[2];if(["latex","katex","math"].indexOf(Fe)>=0){const rn=lt(),De=de;de=rn,gt[rn]={type:"block",expression:De}}return{type:"code",raw:Le,lang:Fe,text:de}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const lt=()=>`__special_katext_id_${ht++}__`;let gt={};function mt(){return gt}function xt(){ht=0,gt={}}function St(oe){return oe=oe.replace(et,($t,Le)=>{const de=lt();return gt[de]={type:"inline",expression:Le},de}),oe}const zt=se.listitem;se.listitem=function(oe){return zt(St(oe))};const Jt=se.paragraph;se.paragraph=function(oe){return Jt(St(oe))};const re=se.tablecell;se.tablecell=function(oe,$t){return re(St(oe),$t)},se.code=function(oe,$t,Le){const de=($t||"").match(/\S*/)[0];return de?["latex","katex","math"].indexOf(de)>=0?`<p class='editormd-tex'>${oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${$t}">${Le?oe:(0,Ne.escape)(oe,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Le?oe:(0,Ne.escape)(oe,!0))+"</code></pre>"},se.heading=function(oe,$t,Le){let de=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ut.push({anchor:de,level:$t,text:oe}),"<h"+$t+' id="'+Pe+de+'">'+oe+"</h"+$t+">"},ne().setOptions({silent:!0,gfm:!0,pedantic:!1}),ne().use({tokenizer:nt,renderer:se}),Nn.ZP=ne()},78207:function(un,Nn,Mt){"use strict";Mt.d(Nn,{rX:function(){return St},pW:function(){return zt},gy:function(){return Jt},xY:function(){return xt},O5:function(){return mt},hs:function(){return et},tJ:function(){return Dt},o1:function(){return nt},Rd:function(){return gt}});var Pt=Mt(35973),ne=Mt(62844),Ne=Mt(96074),Be=Mt(2453),Pe=Mt(52262),Bt=Mt(28706),Ut=Mt(55304),ue=Mt(25510),se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPT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StXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Se=Mt.p+"static/newqrcode.a8740efb.png",Xe=Mt(32637),pe=Mt(67294),Ht=(re,oe,$t)=>new Promise((Le,de)=>{var Fe=jn=>{try{De($t.next(jn))}catch(Bn){de(Bn)}},rn=jn=>{try{De($t.throw(jn))}catch(Bn){de(Bn)}},De=jn=>jn.done?Le(jn.value):Promise.resolve(jn.value).then(Fe,rn);De(($t=$t.apply(re,oe)).next())});const Dt=(re,oe=!1,$t=!1,Le="",de=!1)=>!!(nt(re)&&ht(re,oe,$t,Le,de)),nt=re=>(0,Pe.bg)()?!0:(re({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=re=>{var oe,$t,Le;const{user:de}=(0,Pt.getDvaApp)()._store.getState();(0,Pe.bg)()&&!(($t=(oe=de==null?void 0:de.userInfo)==null?void 0:oe.course)!=null&&$t.course_public)&&!((Le=de==null?void 0:de.userInfo)!=null&&Le.profile_completed)&&re({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ht=(re,oe=!1,$t=!0,Le="",de=!1)=>{var Fe;const{user:rn}=(0,Pt.getDvaApp)()._store.getState();return(Fe=rn.userInfo)!=null&&Fe.profile_completed?!0:($t?re({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Le,isCurrentPage:de}}):ne.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,Bt.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{ne.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()}})},gt=()=>{ne.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:pe.createElement("div",{style:{textAlign:"center"}},pe.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"),pe.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Xe}),pe.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},mt=()=>{var re;const{user:oe}=(0,Pt.getDvaApp)()._store.getState();return(re=oe.userInfo)!=null&&re.professional_certification?!0:(ne.default.confirm({title:"\u63D0\u793A",centered:!0,content:pe.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,Bt.xg)("/account/certification")}}),!1)},xt=()=>(0,Pe.V9)()?!0:(ne.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:pe.createElement("div",{className:"tc",style:{marginLeft:-38}},pe.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),pe.createElement("img",{src:Se,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),St=(re,oe)=>re?!0:(ne.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:pe.createElement("div",null,pe.createElement("p",null,oe||"\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"),pe.createElement("div",{style:{marginLeft:"110px"}},pe.createElement("img",{src:se,width:200}),pe.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Bt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),zt=re=>{ne.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:pe.createElement("div",null,pe.createElement("div",null,pe.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"),pe.createElement(Ne.Z,null),pe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",pe.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 ",pe.createElement("a",null,re),"\u5929\u3002"),pe.createElement("p",{style:{color:"#666666",fontSize:12}}," ",pe.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")),pe.createElement("div",{style:{textAlign:"center",marginTop:30}},pe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ue,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Jt=(re,oe="")=>{const{shixunsDetail:{detail:$t}}=(0,Pt.getDvaApp)()._store.getState();if(($t==null?void 0:$t.public)===2||($t==null?void 0:$t.public)===1||($t==null?void 0:$t.shixun_status)===3){let Le="";return($t==null?void 0:$t.public)===2&&(Le="\u5DF2\u516C\u5F00"),($t==null?void 0:$t.public)===1&&(Le="\u5F85\u5BA1\u6838"),($t==null?void 0:$t.shixun_status)===3&&(Le="\u5DF2\u5173\u95ED"),ne.default.info({centered:!0,icon:pe.createElement(Ut.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:pe.createElement("div",{className:"tc",style:{marginLeft:-38}},pe.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},pe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Le,"\uFF0C",oe,"\u3002"),pe.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),pe.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ue,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return($t==null?void 0:$t.shixun_status)===2?(ne.default.confirm({centered:!0,icon:pe.createElement(Ut.Z,null),title:"\u63D0\u793A",content:pe.createElement("div",null,pe.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",oe,"\u3002"),pe.createElement("br",null),pe.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:()=>{ne.default.confirm({width:440,centered:!0,icon:pe.createElement(Ut.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:()=>Ht(void 0,null,function*(){(yield re({type:"shixunsDetail/cancelRelease",payload:{id:$t==null?void 0:$t.identifier}})).status!==401&&(Be.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),re({type:"shixunsDetail/getShixunsDetail",payload:{id:$t==null?void 0:$t.identifier}}),re({type:"practiceSetting/getCommonData",payload:{id:$t==null?void 0:$t.identifier}}))})})}}),!0):!1}},40411:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return _t}});var Pt=Mt(67294),ne=Mt(13144),Ne=Mt.n(ne),Be=Mt(15602),Pe=Mt(98787),Bt=Mt(96159),Ut=Mt(53124),ue=Mt(16777),se=Mt(14747),Se=Mt(98719),Xe=Mt(43259),pe=Mt(83559);const Ht=new ue.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Dt=new ue.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),nt=new ue.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),et=new ue.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),ht=new ue.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),lt=new ue.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),gt=Tt=>{const{componentCls:ce,iconCls:_e,antCls:Ye,badgeShadowSize:xe,textFontSize:on,textFontSizeSM:tn,statusSize:Cn,dotSize:Ie,textFontWeight:ve,indicatorHeight:ze,indicatorHeightSM:je,marginXS:He,calc:Ot}=Tt,Lt=`${Ye}-scroll-number`,wt=(0,Se.Z)(Tt,(Ft,Wt)=>{let{darkColor:kt}=Wt;return{[`&${ce} ${ce}-color-${Ft}`]:{background:kt,[`&:not(${ce}-count)`]:{color:kt},"a:hover &":{background:kt}}}});return{[ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(Tt)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${ce}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:Tt.indicatorZIndex,minWidth:ze,height:ze,color:Tt.badgeTextColor,fontWeight:ve,fontSize:on,lineHeight:(0,ue.unit)(ze),whiteSpace:"nowrap",textAlign:"center",background:Tt.badgeColor,borderRadius:Ot(ze).div(2).equal(),boxShadow:`0 0 0 ${(0,ue.unit)(xe)} ${Tt.badgeShadowColor}`,transition:`background ${Tt.motionDurationMid}`,a:{color:Tt.badgeTextColor},"a:hover":{color:Tt.badgeTextColor},"a:hover &":{background:Tt.badgeColorHover}},[`${ce}-count-sm`]:{minWidth:je,height:je,fontSize:tn,lineHeight:(0,ue.unit)(je),borderRadius:Ot(je).div(2).equal()},[`${ce}-multiple-words`]:{padding:`0 ${(0,ue.unit)(Tt.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${ce}-dot`]:{zIndex:Tt.indicatorZIndex,width:Ie,minWidth:Ie,height:Ie,background:Tt.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,ue.unit)(xe)} ${Tt.badgeShadowColor}`},[`${ce}-count, ${ce}-dot, ${Lt}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${_e}-spin`]:{animationName:lt,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${ce}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${ce}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:Cn,height:Cn,verticalAlign:"middle",borderRadius:"50%"},[`${ce}-status-success`]:{backgroundColor:Tt.colorSuccess},[`${ce}-status-processing`]:{overflow:"visible",color:Tt.colorInfo,backgroundColor:Tt.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:xe,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Ht,animationDuration:Tt.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${ce}-status-default`]:{backgroundColor:Tt.colorTextPlaceholder},[`${ce}-status-error`]:{backgroundColor:Tt.colorError},[`${ce}-status-warning`]:{backgroundColor:Tt.colorWarning},[`${ce}-status-text`]:{marginInlineStart:He,color:Tt.colorText,fontSize:Tt.fontSize}}}),wt),{[`${ce}-zoom-appear, ${ce}-zoom-enter`]:{animationName:Dt,animationDuration:Tt.motionDurationSlow,animationTimingFunction:Tt.motionEaseOutBack,animationFillMode:"both"},[`${ce}-zoom-leave`]:{animationName:nt,animationDuration:Tt.motionDurationSlow,animationTimingFunction:Tt.motionEaseOutBack,animationFillMode:"both"},[`&${ce}-not-a-wrapper`]:{[`${ce}-zoom-appear, ${ce}-zoom-enter`]:{animationName:et,animationDuration:Tt.motionDurationSlow,animationTimingFunction:Tt.motionEaseOutBack},[`${ce}-zoom-leave`]:{animationName:ht,animationDuration:Tt.motionDurationSlow,animationTimingFunction:Tt.motionEaseOutBack},[`&:not(${ce}-status)`]:{verticalAlign:"middle"},[`${Lt}-custom-component, ${ce}-count`]:{transform:"none"},[`${Lt}-custom-component, ${Lt}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[Lt]:{overflow:"hidden",transition:`all ${Tt.motionDurationMid} ${Tt.motionEaseOutBack}`,[`${Lt}-only`]:{position:"relative",display:"inline-block",height:ze,transition:`all ${Tt.motionDurationSlow} ${Tt.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${Lt}-only-unit`]:{height:ze,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${Lt}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${ce}-count, ${ce}-dot, ${Lt}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},mt=Tt=>{const{fontHeight:ce,lineWidth:_e,marginXS:Ye,colorBorderBg:xe}=Tt,on=ce,tn=_e,Cn=Tt.colorTextLightSolid,Ie=Tt.colorError,ve=Tt.colorErrorHover;return(0,Xe.mergeToken)(Tt,{badgeFontHeight:on,badgeShadowSize:tn,badgeTextColor:Cn,badgeColor:Ie,badgeColorHover:ve,badgeShadowColor:xe,badgeProcessingDuration:"1.2s",badgeRibbonOffset:Ye,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},xt=Tt=>{const{fontSize:ce,lineHeight:_e,fontSizeSM:Ye,lineWidth:xe}=Tt;return{indicatorZIndex:"auto",indicatorHeight:Math.round(ce*_e)-2*xe,indicatorHeightSM:ce,dotSize:Ye/2,textFontSize:Ye,textFontSizeSM:Ye,textFontWeight:"normal",statusSize:Ye/2}};var St=(0,pe.I$)("Badge",Tt=>{const ce=mt(Tt);return gt(ce)},xt);const zt=Tt=>{const{antCls:ce,badgeFontHeight:_e,marginXS:Ye,badgeRibbonOffset:xe,calc:on}=Tt,tn=`${ce}-ribbon`,Cn=`${ce}-ribbon-wrapper`,Ie=(0,Se.Z)(Tt,(ve,ze)=>{let{darkColor:je}=ze;return{[`&${tn}-color-${ve}`]:{background:je,color:je}}});return{[Cn]:{position:"relative"},[tn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(Tt)),{position:"absolute",top:Ye,padding:`0 ${(0,ue.unit)(Tt.paddingXS)}`,color:Tt.colorPrimary,lineHeight:(0,ue.unit)(_e),whiteSpace:"nowrap",backgroundColor:Tt.colorPrimary,borderRadius:Tt.borderRadiusSM,[`${tn}-text`]:{color:Tt.badgeTextColor},[`${tn}-corner`]:{position:"absolute",top:"100%",width:xe,height:xe,color:"currentcolor",border:`${(0,ue.unit)(on(xe).div(2).equal())} solid`,transform:Tt.badgeRibbonCornerTransform,transformOrigin:"top",filter:Tt.badgeRibbonCornerFilter}}),Ie),{[`&${tn}-placement-end`]:{insetInlineEnd:on(xe).mul(-1).equal(),borderEndEndRadius:0,[`${tn}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${tn}-placement-start`]:{insetInlineStart:on(xe).mul(-1).equal(),borderEndStartRadius:0,[`${tn}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var Jt=(0,pe.I$)(["Badge","Ribbon"],Tt=>{const ce=mt(Tt);return zt(ce)},xt),oe=Tt=>{const{className:ce,prefixCls:_e,style:Ye,color:xe,children:on,text:tn,placement:Cn="end",rootClassName:Ie}=Tt,{getPrefixCls:ve,direction:ze}=Pt.useContext(Ut.E_),je=ve("ribbon",_e),He=`${je}-wrapper`,[Ot,Lt,wt]=Jt(je,He),Ft=(0,Pe.o2)(xe,!1),Wt=Ne()(je,`${je}-placement-${Cn}`,{[`${je}-rtl`]:ze==="rtl",[`${je}-color-${xe}`]:Ft},ce),kt={},Xt={};return xe&&!Ft&&(kt.background=xe,Xt.color=xe),Ot(Pt.createElement("div",{className:Ne()(He,Ie,Lt,wt)},on,Pt.createElement("div",{className:Ne()(Wt,Lt),style:Object.assign(Object.assign({},kt),Ye)},Pt.createElement("span",{className:`${je}-text`},tn),Pt.createElement("div",{className:`${je}-corner`,style:Xt}))))};const $t=Tt=>{const{prefixCls:ce,value:_e,current:Ye,offset:xe=0}=Tt;let on;return xe&&(on={position:"absolute",top:`${xe}00%`,left:0}),Pt.createElement("span",{style:on,className:Ne()(`${ce}-only-unit`,{current:Ye})},_e)};function Le(Tt,ce,_e){let Ye=Tt,xe=0;for(;(Ye+10)%10!==ce;)Ye+=_e,xe+=_e;return xe}var Fe=Tt=>{const{prefixCls:ce,count:_e,value:Ye}=Tt,xe=Number(Ye),on=Math.abs(_e),[tn,Cn]=Pt.useState(xe),[Ie,ve]=Pt.useState(on),ze=()=>{Cn(xe),ve(on)};Pt.useEffect(()=>{const Ot=setTimeout(ze,1e3);return()=>clearTimeout(Ot)},[xe]);let je,He;if(tn===xe||Number.isNaN(xe)||Number.isNaN(tn))je=[Pt.createElement($t,Object.assign({},Tt,{key:xe,current:!0}))],He={transition:"none"};else{je=[];const Ot=xe+10,Lt=[];for(let kt=xe;kt<=Ot;kt+=1)Lt.push(kt);const wt=Ie<on?1:-1,Ft=Lt.findIndex(kt=>kt%10===tn);je=(wt<0?Lt.slice(0,Ft+1):Lt.slice(Ft)).map((kt,Xt)=>{const $e=kt%10;return Pt.createElement($t,Object.assign({},Tt,{key:kt,value:$e,offset:wt<0?Xt-Ft:Xt,current:Xt===Ft}))}),He={transform:`translateY(${-Le(tn,xe,wt)}00%)`}}return Pt.createElement("span",{className:`${ce}-only`,style:He,onTransitionEnd:ze},je)},rn=function(Tt,ce){var _e={};for(var Ye in Tt)Object.prototype.hasOwnProperty.call(Tt,Ye)&&ce.indexOf(Ye)<0&&(_e[Ye]=Tt[Ye]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ye=Object.getOwnPropertySymbols(Tt);xe<Ye.length;xe++)ce.indexOf(Ye[xe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Ye[xe])&&(_e[Ye[xe]]=Tt[Ye[xe]]);return _e},jn=Pt.forwardRef((Tt,ce)=>{const{prefixCls:_e,count:Ye,className:xe,motionClassName:on,style:tn,title:Cn,show:Ie,component:ve="sup",children:ze}=Tt,je=rn(Tt,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:He}=Pt.useContext(Ut.E_),Ot=He("scroll-number",_e),Lt=Object.assign(Object.assign({},je),{"data-show":Ie,style:tn,className:Ne()(Ot,xe,on),title:Cn});let wt=Ye;if(Ye&&Number(Ye)%1===0){const Ft=String(Ye).split("");wt=Pt.createElement("bdi",null,Ft.map((Wt,kt)=>Pt.createElement(Fe,{prefixCls:Ot,count:Number(Ye),value:Wt,key:Ft.length-kt})))}return tn!=null&&tn.borderColor&&(Lt.style=Object.assign(Object.assign({},tn),{boxShadow:`0 0 0 1px ${tn.borderColor} inset`})),ze?(0,Bt.Tm)(ze,Ft=>({className:Ne()(`${Ot}-custom-component`,Ft==null?void 0:Ft.className,on)})):Pt.createElement(ve,Object.assign({},Lt,{ref:ce}),wt)}),Bn=function(Tt,ce){var _e={};for(var Ye in Tt)Object.prototype.hasOwnProperty.call(Tt,Ye)&&ce.indexOf(Ye)<0&&(_e[Ye]=Tt[Ye]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ye=Object.getOwnPropertySymbols(Tt);xe<Ye.length;xe++)ce.indexOf(Ye[xe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Ye[xe])&&(_e[Ye[xe]]=Tt[Ye[xe]]);return _e};const Zn=Pt.forwardRef((Tt,ce)=>{var _e,Ye,xe,on,tn;const{prefixCls:Cn,scrollNumberPrefixCls:Ie,children:ve,status:ze,text:je,color:He,count:Ot=null,overflowCount:Lt=99,dot:wt=!1,size:Ft="default",title:Wt,offset:kt,style:Xt,className:$e,rootClassName:Je,classNames:fn,styles:Ve,showZero:Mn=!1}=Tt,Ue=Bn(Tt,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:ti,direction:Qn,badge:Hn}=Pt.useContext(Ut.E_),pn=ti("badge",Cn),[gi,Mi,In]=St(pn),ei=Ot>Lt?`${Lt}+`:Ot,Ki=ei==="0"||ei===0,hi=Ot===null||Ki&&!Mn,$i=(ze!=null||He!=null)&&hi,pr=wt&&!Ki,rr=pr?"":ei,ki=(0,Pt.useMemo)(()=>(rr==null||rr===""||Ki&&!Mn)&&!pr,[rr,Ki,Mn,pr]),sr=(0,Pt.useRef)(Ot);ki||(sr.current=Ot);const Ur=sr.current,Jo=(0,Pt.useRef)(rr);ki||(Jo.current=rr);const Rr=Jo.current,To=(0,Pt.useRef)(pr);ki||(To.current=pr);const pa=(0,Pt.useMemo)(()=>{if(!kt)return Object.assign(Object.assign({},Hn==null?void 0:Hn.style),Xt);const Xn={marginTop:kt[1]};return Qn==="rtl"?Xn.left=parseInt(kt[0],10):Xn.right=-parseInt(kt[0],10),Object.assign(Object.assign(Object.assign({},Xn),Hn==null?void 0:Hn.style),Xt)},[Qn,kt,Xt,Hn==null?void 0:Hn.style]),co=Wt!=null?Wt:typeof Ur=="string"||typeof Ur=="number"?Ur:void 0,Xi=ki||!je?null:Pt.createElement("span",{className:`${pn}-status-text`},je),bn=!Ur||typeof Ur!="object"?void 0:(0,Bt.Tm)(Ur,Xn=>({style:Object.assign(Object.assign({},pa),Xn.style)})),bt=(0,Pe.o2)(He,!1),wn=Ne()(fn==null?void 0:fn.indicator,(_e=Hn==null?void 0:Hn.classNames)===null||_e===void 0?void 0:_e.indicator,{[`${pn}-status-dot`]:$i,[`${pn}-status-${ze}`]:!!ze,[`${pn}-color-${He}`]:bt}),Fn={};He&&!bt&&(Fn.color=He,Fn.background=He);const Un=Ne()(pn,{[`${pn}-status`]:$i,[`${pn}-not-a-wrapper`]:!ve,[`${pn}-rtl`]:Qn==="rtl"},$e,Je,Hn==null?void 0:Hn.className,(Ye=Hn==null?void 0:Hn.classNames)===null||Ye===void 0?void 0:Ye.root,fn==null?void 0:fn.root,Mi,In);if(!ve&&$i){const Xn=pa.color;return gi(Pt.createElement("span",Object.assign({},Ue,{className:Un,style:Object.assign(Object.assign(Object.assign({},Ve==null?void 0:Ve.root),(xe=Hn==null?void 0:Hn.styles)===null||xe===void 0?void 0:xe.root),pa)}),Pt.createElement("span",{className:wn,style:Object.assign(Object.assign(Object.assign({},Ve==null?void 0:Ve.indicator),(on=Hn==null?void 0:Hn.styles)===null||on===void 0?void 0:on.indicator),Fn)}),je&&Pt.createElement("span",{style:{color:Xn},className:`${pn}-status-text`},je)))}return gi(Pt.createElement("span",Object.assign({ref:ce},Ue,{className:Un,style:Object.assign(Object.assign({},(tn=Hn==null?void 0:Hn.styles)===null||tn===void 0?void 0:tn.root),Ve==null?void 0:Ve.root)}),ve,Pt.createElement(Be.default,{visible:!ki,motionName:`${pn}-zoom`,motionAppear:!1,motionDeadline:1e3},Xn=>{let{className:ai}=Xn;var Tn,Di;const te=ti("scroll-number",Ie),le=To.current,ae=Ne()(fn==null?void 0:fn.indicator,(Tn=Hn==null?void 0:Hn.classNames)===null||Tn===void 0?void 0:Tn.indicator,{[`${pn}-dot`]:le,[`${pn}-count`]:!le,[`${pn}-count-sm`]:Ft==="small",[`${pn}-multiple-words`]:!le&&Rr&&Rr.toString().length>1,[`${pn}-status-${ze}`]:!!ze,[`${pn}-color-${He}`]:bt});let Ae=Object.assign(Object.assign(Object.assign({},Ve==null?void 0:Ve.indicator),(Di=Hn==null?void 0:Hn.styles)===null||Di===void 0?void 0:Di.indicator),pa);return He&&!bt&&(Ae=Ae||{},Ae.background=He),Pt.createElement(jn,{prefixCls:te,show:!ki,motionClassName:ai,className:ae,count:Rr,title:co,style:Ae,key:"scrollNumber"},bn)}),Xi))});Zn.Ribbon=oe;var _t=Zn},56672:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Di}});var Pt=Mt(67294),ne=Mt(13144),Ne=Mt.n(ne),Be=Mt(1413),Pe=Mt(4942),Bt=Mt(74902),Ut=Mt(71002),ue=Mt(97685),se=Mt(94184),Se=Mt.n(se);function Xe(te){var le=Pt.useRef();le.current=te;var ae=Pt.useCallback(function(){for(var Ae,Sn=arguments.length,An=new Array(Sn),En=0;En<Sn;En++)An[En]=arguments[En];return(Ae=le.current)===null||Ae===void 0?void 0:Ae.call.apply(Ae,[le].concat(An))},[]);return ae}function pe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ht=pe()?Pt.useLayoutEffect:Pt.useEffect,Dt=function(le,ae){var Ae=Pt.useRef(!0);Ht(function(){return le(Ae.current)},ae),Ht(function(){return Ae.current=!1,function(){Ae.current=!0}},[])},nt=function(le,ae){Dt(function(Ae){if(!Ae)return le()},ae)},et=Dt;function ht(te){var le=Pt.useRef(!1),ae=Pt.useState(te),Ae=(0,ue.Z)(ae,2),Sn=Ae[0],An=Ae[1];Pt.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function En(ke,cn){cn&&le.current||An(ke)}return[Sn,En]}function lt(te){return te!==void 0}function gt(te,le){var ae=le||{},Ae=ae.defaultValue,Sn=ae.value,An=ae.onChange,En=ae.postState,ke=ht(function(){return lt(Sn)?Sn:lt(Ae)?typeof Ae=="function"?Ae():Ae:typeof te=="function"?te():te}),cn=(0,ue.Z)(ke,2),_n=cn[0],vi=cn[1],mn=Sn!==void 0?Sn:_n,Oe=En?En(mn):mn,ni=Xe(An),Pi=ht([mn]),Li=(0,ue.Z)(Pi,2),qe=Li[0],oi=Li[1];nt(function(){var gr=qe[0];_n!==gr&&ni(_n,gr)},[qe]),nt(function(){lt(Sn)||vi(Sn)},[Sn]);var Ni=Xe(function(gr,xr){vi(gr,xr),oi([mn],xr)});return[Oe,Ni]}var mt={},xt=[],St=function(le){xt.push(le)};function zt(te,le){if(0)var ae}function Jt(te,le){if(0)var ae}function re(){mt={}}function oe(te,le,ae){!le&&!mt[ae]&&(te(!1,ae),mt[ae]=!0)}function $t(te,le){oe(zt,te,le)}function Le(te,le){oe(Jt,te,le)}$t.preMessage=St,$t.resetWarned=re,$t.noteOnce=Le;var de=$t;function Fe(te,le){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ae=new Set;function Sn(An,En){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,cn=Ae.has(An);if(de(!cn,"Warning: There may be circular references"),cn)return!1;if(An===En)return!0;if(ae&&ke>1)return!1;Ae.add(An);var _n=ke+1;if(Array.isArray(An)){if(!Array.isArray(En)||An.length!==En.length)return!1;for(var vi=0;vi<An.length;vi++)if(!Sn(An[vi],En[vi],_n))return!1;return!0}if(An&&En&&(0,Ut.Z)(An)==="object"&&(0,Ut.Z)(En)==="object"){var mn=Object.keys(An);return mn.length!==Object.keys(En).length?!1:mn.every(function(Oe){return Sn(An[Oe],En[Oe],_n)})}return!1}return Sn(te,le)}var rn=Fe,De=Mt(87462),jn=Mt(45987),Bn=Mt(73935);function an(te,le,ae){return(te-le)/(ae-le)}function Zn(te,le,ae,Ae){var Sn=an(le,ae,Ae),An={};switch(te){case"rtl":An.right="".concat(Sn*100,"%"),An.transform="translateX(50%)";break;case"btt":An.bottom="".concat(Sn*100,"%"),An.transform="translateY(50%)";break;case"ttb":An.top="".concat(Sn*100,"%"),An.transform="translateY(-50%)";break;default:An.left="".concat(Sn*100,"%"),An.transform="translateX(-50%)";break}return An}function _t(te,le){return Array.isArray(te)?te[le]:te}var Tt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var ae=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||ae>=Tt.F1&&ae<=Tt.F12)return!1;switch(ae){case Tt.ALT:case Tt.CAPS_LOCK:case Tt.CONTEXT_MENU:case Tt.CTRL:case Tt.DOWN:case Tt.END:case Tt.ESC:case Tt.HOME:case Tt.INSERT:case Tt.LEFT:case Tt.MAC_FF_META:case Tt.META:case Tt.NUMLOCK:case Tt.NUM_CENTER:case Tt.PAGE_DOWN:case Tt.PAGE_UP:case Tt.PAUSE:case Tt.PRINT_SCREEN:case Tt.RIGHT:case Tt.SHIFT:case Tt.UP:case Tt.WIN_KEY:case Tt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=Tt.ZERO&&le<=Tt.NINE||le>=Tt.NUM_ZERO&&le<=Tt.NUM_MULTIPLY||le>=Tt.A&&le<=Tt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case Tt.SPACE:case Tt.QUESTION_MARK:case Tt.NUM_PLUS:case Tt.NUM_MINUS:case Tt.NUM_PERIOD:case Tt.NUM_DIVISION:case Tt.SEMICOLON:case Tt.DASH:case Tt.EQUALS:case Tt.COMMA:case Tt.PERIOD:case Tt.SLASH:case Tt.APOSTROPHE:case Tt.SINGLE_QUOTE:case Tt.OPEN_SQUARE_BRACKET:case Tt.BACKSLASH:case Tt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ce=Tt,_e=Pt.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Ye=_e,xe=Pt.createContext({}),on=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],tn=Pt.forwardRef(function(te,le){var ae=te.prefixCls,Ae=te.value,Sn=te.valueIndex,An=te.onStartMove,En=te.onDelete,ke=te.style,cn=te.render,_n=te.dragging,vi=te.draggingDelete,mn=te.onOffsetChange,Oe=te.onChangeComplete,ni=te.onFocus,Pi=te.onMouseEnter,Li=(0,jn.Z)(te,on),qe=Pt.useContext(Ye),oi=qe.min,Ni=qe.max,gr=qe.direction,xr=qe.disabled,Si=qe.keyboard,Fi=qe.range,Gi=qe.tabIndex,Mr=qe.ariaLabelForHandle,hr=qe.ariaLabelledByForHandle,Yn=qe.ariaRequired,zi=qe.ariaValueTextFormatterForHandle,qo=qe.styles,sa=qe.classNames,la="".concat(ae,"-handle"),Ke=function(Ln){xr||An(Ln,Sn)},ur=function(Ln){ni==null||ni(Ln,Sn)},Tr=function(Ln){Pi(Ln,Sn)},or=function(Ln){if(!xr&&Si){var $r=null;switch(Ln.which||Ln.keyCode){case ce.LEFT:$r=gr==="ltr"||gr==="btt"?-1:1;break;case ce.RIGHT:$r=gr==="ltr"||gr==="btt"?1:-1;break;case ce.UP:$r=gr!=="ttb"?1:-1;break;case ce.DOWN:$r=gr!=="ttb"?-1:1;break;case ce.HOME:$r="min";break;case ce.END:$r="max";break;case ce.PAGE_UP:$r=2;break;case ce.PAGE_DOWN:$r=-2;break;case ce.BACKSPACE:case ce.DELETE:En(Sn);break}$r!==null&&(Ln.preventDefault(),mn($r,Sn))}},Vo=function(Ln){switch(Ln.which||Ln.keyCode){case ce.LEFT:case ce.RIGHT:case ce.UP:case ce.DOWN:case ce.HOME:case ce.END:case ce.PAGE_UP:case ce.PAGE_DOWN:Oe==null||Oe();break}},eo=Zn(gr,Ae,oi,Ni),uo={};if(Sn!==null){var Xr;uo={tabIndex:xr?null:_t(Gi,Sn),role:"slider","aria-valuemin":oi,"aria-valuemax":Ni,"aria-valuenow":Ae,"aria-disabled":xr,"aria-label":_t(Mr,Sn),"aria-labelledby":_t(hr,Sn),"aria-required":_t(Yn,Sn),"aria-valuetext":(Xr=_t(zi,Sn))===null||Xr===void 0?void 0:Xr(Ae),"aria-orientation":gr==="ltr"||gr==="rtl"?"horizontal":"vertical",onMouseDown:Ke,onTouchStart:Ke,onFocus:ur,onMouseEnter:Tr,onKeyDown:or,onKeyUp:Vo}}var Ir=Pt.createElement("div",(0,De.Z)({ref:le,className:Se()(la,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(la,"-").concat(Sn+1),Sn!==null&&Fi),"".concat(la,"-dragging"),_n),"".concat(la,"-dragging-delete"),vi),sa.handle),style:(0,Be.Z)((0,Be.Z)((0,Be.Z)({},eo),ke),qo.handle)},uo,Li));return cn&&(Ir=cn(Ir,{index:Sn,prefixCls:ae,value:Ae,dragging:_n,draggingDelete:vi})),Ir}),Cn=tn,Ie=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],ve=Pt.forwardRef(function(te,le){var ae=te.prefixCls,Ae=te.style,Sn=te.onStartMove,An=te.onOffsetChange,En=te.values,ke=te.handleRender,cn=te.activeHandleRender,_n=te.draggingIndex,vi=te.draggingDelete,mn=te.onFocus,Oe=(0,jn.Z)(te,Ie),ni=Pt.useRef({}),Pi=Pt.useState(!1),Li=(0,ue.Z)(Pi,2),qe=Li[0],oi=Li[1],Ni=Pt.useState(-1),gr=(0,ue.Z)(Ni,2),xr=gr[0],Si=gr[1],Fi=function(zi){Si(zi),oi(!0)},Gi=function(zi,qo){Fi(qo),mn==null||mn(zi)},Mr=function(zi,qo){Fi(qo)};Pt.useImperativeHandle(le,function(){return{focus:function(zi){var qo;(qo=ni.current[zi])===null||qo===void 0||qo.focus()},hideHelp:function(){(0,Bn.flushSync)(function(){oi(!1)})}}});var hr=(0,Be.Z)({prefixCls:ae,onStartMove:Sn,onOffsetChange:An,render:ke,onFocus:Gi,onMouseEnter:Mr},Oe);return Pt.createElement(Pt.Fragment,null,En.map(function(Yn,zi){var qo=_n===zi;return Pt.createElement(Cn,(0,De.Z)({ref:function(la){la?ni.current[zi]=la:delete ni.current[zi]},dragging:qo,draggingDelete:qo&&vi,style:_t(Ae,zi),key:zi,value:Yn,valueIndex:zi},hr))}),cn&&qe&&Pt.createElement(Cn,(0,De.Z)({key:"a11y"},hr,{value:En[xr],valueIndex:null,dragging:_n!==-1,draggingDelete:vi,render:cn,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),ze=ve,je=function(le){var ae=le.prefixCls,Ae=le.style,Sn=le.children,An=le.value,En=le.onClick,ke=Pt.useContext(Ye),cn=ke.min,_n=ke.max,vi=ke.direction,mn=ke.includedStart,Oe=ke.includedEnd,ni=ke.included,Pi="".concat(ae,"-text"),Li=Zn(vi,An,cn,_n);return Pt.createElement("span",{className:Se()(Pi,(0,Pe.Z)({},"".concat(Pi,"-active"),ni&&mn<=An&&An<=Oe)),style:(0,Be.Z)((0,Be.Z)({},Li),Ae),onMouseDown:function(oi){oi.stopPropagation()},onClick:function(){En(An)}},Sn)},He=je,Ot=function(le){var ae=le.prefixCls,Ae=le.marks,Sn=le.onClick,An="".concat(ae,"-mark");return Ae.length?Pt.createElement("div",{className:An},Ae.map(function(En){var ke=En.value,cn=En.style,_n=En.label;return Pt.createElement(He,{key:ke,prefixCls:An,style:cn,value:ke,onClick:Sn},_n)})):null},Lt=Ot,wt=function(le){var ae=le.prefixCls,Ae=le.value,Sn=le.style,An=le.activeStyle,En=Pt.useContext(Ye),ke=En.min,cn=En.max,_n=En.direction,vi=En.included,mn=En.includedStart,Oe=En.includedEnd,ni="".concat(ae,"-dot"),Pi=vi&&mn<=Ae&&Ae<=Oe,Li=(0,Be.Z)((0,Be.Z)({},Zn(_n,Ae,ke,cn)),typeof Sn=="function"?Sn(Ae):Sn);return Pi&&(Li=(0,Be.Z)((0,Be.Z)({},Li),typeof An=="function"?An(Ae):An)),Pt.createElement("span",{className:Se()(ni,(0,Pe.Z)({},"".concat(ni,"-active"),Pi)),style:Li})},Ft=wt,Wt=function(le){var ae=le.prefixCls,Ae=le.marks,Sn=le.dots,An=le.style,En=le.activeStyle,ke=Pt.useContext(Ye),cn=ke.min,_n=ke.max,vi=ke.step,mn=Pt.useMemo(function(){var Oe=new Set;if(Ae.forEach(function(Pi){Oe.add(Pi.value)}),Sn&&vi!==null)for(var ni=cn;ni<=_n;)Oe.add(ni),ni+=vi;return Array.from(Oe)},[cn,_n,vi,Sn,Ae]);return Pt.createElement("div",{className:"".concat(ae,"-step")},mn.map(function(Oe){return Pt.createElement(Ft,{prefixCls:ae,key:Oe,value:Oe,style:An,activeStyle:En})}))},kt=Wt,Xt=function(le){var ae=le.prefixCls,Ae=le.style,Sn=le.start,An=le.end,En=le.index,ke=le.onStartMove,cn=le.replaceCls,_n=Pt.useContext(Ye),vi=_n.direction,mn=_n.min,Oe=_n.max,ni=_n.disabled,Pi=_n.range,Li=_n.classNames,qe="".concat(ae,"-track"),oi=an(Sn,mn,Oe),Ni=an(An,mn,Oe),gr=function(Gi){!ni&&ke&&ke(Gi,-1)},xr={};switch(vi){case"rtl":xr.right="".concat(oi*100,"%"),xr.width="".concat(Ni*100-oi*100,"%");break;case"btt":xr.bottom="".concat(oi*100,"%"),xr.height="".concat(Ni*100-oi*100,"%");break;case"ttb":xr.top="".concat(oi*100,"%"),xr.height="".concat(Ni*100-oi*100,"%");break;default:xr.left="".concat(oi*100,"%"),xr.width="".concat(Ni*100-oi*100,"%")}var Si=cn||Se()(qe,(0,Pe.Z)((0,Pe.Z)({},"".concat(qe,"-").concat(En+1),En!==null&&Pi),"".concat(ae,"-track-draggable"),ke),Li.track);return Pt.createElement("div",{className:Si,style:(0,Be.Z)((0,Be.Z)({},xr),Ae),onMouseDown:gr,onTouchStart:gr})},$e=Xt,Je=function(le){var ae=le.prefixCls,Ae=le.style,Sn=le.values,An=le.startPoint,En=le.onStartMove,ke=Pt.useContext(Ye),cn=ke.included,_n=ke.range,vi=ke.min,mn=ke.styles,Oe=ke.classNames,ni=Pt.useMemo(function(){if(!_n){if(Sn.length===0)return[];var Li=An!=null?An:vi,qe=Sn[0];return[{start:Math.min(Li,qe),end:Math.max(Li,qe)}]}for(var oi=[],Ni=0;Ni<Sn.length-1;Ni+=1)oi.push({start:Sn[Ni],end:Sn[Ni+1]});return oi},[Sn,_n,An,vi]);if(!cn)return null;var Pi=ni!=null&&ni.length&&(Oe.tracks||mn.tracks)?Pt.createElement($e,{index:null,prefixCls:ae,start:ni[0].start,end:ni[ni.length-1].end,replaceCls:Se()(Oe.tracks,"".concat(ae,"-tracks")),style:mn.tracks}):null;return Pt.createElement(Pt.Fragment,null,Pi,ni.map(function(Li,qe){var oi=Li.start,Ni=Li.end;return Pt.createElement($e,{index:qe,prefixCls:ae,style:(0,Be.Z)((0,Be.Z)({},_t(Ae,qe)),mn.track),start:oi,end:Ni,key:qe,onStartMove:En})}))},fn=Je,Ve=130;function Mn(te){var le="targetTouches"in te?te.targetTouches[0]:te;return{pageX:le.pageX,pageY:le.pageY}}function Ue(te,le,ae,Ae,Sn,An,En,ke,cn,_n,vi){var mn=Pt.useState(null),Oe=(0,ue.Z)(mn,2),ni=Oe[0],Pi=Oe[1],Li=Pt.useState(-1),qe=(0,ue.Z)(Li,2),oi=qe[0],Ni=qe[1],gr=Pt.useState(!1),xr=(0,ue.Z)(gr,2),Si=xr[0],Fi=xr[1],Gi=Pt.useState(ae),Mr=(0,ue.Z)(Gi,2),hr=Mr[0],Yn=Mr[1],zi=Pt.useState(ae),qo=(0,ue.Z)(zi,2),sa=qo[0],la=qo[1],Ke=Pt.useRef(null),ur=Pt.useRef(null),Tr=Pt.useRef(null),or=Pt.useContext(xe),Vo=or.onDragStart,eo=or.onDragChange;et(function(){oi===-1&&Yn(ae)},[ae,oi]),Pt.useEffect(function(){return function(){document.removeEventListener("mousemove",Ke.current),document.removeEventListener("mouseup",ur.current),Tr.current&&(Tr.current.removeEventListener("touchmove",Ke.current),Tr.current.removeEventListener("touchend",ur.current))}},[]);var uo=function($r,Pn,Br){Pn!==void 0&&Pi(Pn),Yn($r);var Ga=$r;Br&&(Ga=$r.filter(function(Te,Ze){return Ze!==oi})),En(Ga),eo&&eo({rawValues:$r,deleteIndex:Br?oi:-1,draggingIndex:oi,draggingValue:Pn})},Xr=Xe(function(Ln,$r,Pn){if(Ln===-1){var Br=sa[0],Ga=sa[sa.length-1],Te=Ae-Br,Ze=Sn-Ga,sn=$r*(Sn-Ae);sn=Math.max(sn,Te),sn=Math.min(sn,Ze);var zn=An(Br+sn);sn=zn-Br;var Ii=sa.map(function(Zt){return Zt+sn});uo(Ii)}else{var Nr=(Sn-Ae)*$r,lr=(0,Bt.Z)(hr);lr[Ln]=sa[Ln];var si=cn(lr,Nr,Ln,"dist");uo(si.values,si.value,Pn)}}),Ir=function($r,Pn,Br){$r.stopPropagation();var Ga=Br||ae,Te=Ga[Pn];Ni(Pn),Pi(Te),la(Ga),Yn(Ga),Fi(!1);var Ze=Mn($r),sn=Ze.pageX,zn=Ze.pageY,Ii=!1;Vo&&Vo({rawValues:Ga,draggingIndex:Pn,draggingValue:Te});var Nr=function(Zt){Zt.preventDefault();var Ao=Mn(Zt),rs=Ao.pageX,Ls=Ao.pageY,Xa=rs-sn,Ea=Ls-zn,Eo=te.current.getBoundingClientRect(),gs=Eo.width,os=Eo.height,Ho,_o;switch(le){case"btt":Ho=-Ea/os,_o=Xa;break;case"ttb":Ho=Ea/os,_o=Xa;break;case"rtl":Ho=-Xa/gs,_o=Ea;break;default:Ho=Xa/gs,_o=Ea}Ii=_n?Math.abs(_o)>Ve&&vi<hr.length:!1,Fi(Ii),Xr(Pn,Ho,Ii)},lr=function si(Zt){Zt.preventDefault(),document.removeEventListener("mouseup",si),document.removeEventListener("mousemove",Nr),Tr.current&&(Tr.current.removeEventListener("touchmove",Ke.current),Tr.current.removeEventListener("touchend",ur.current)),Ke.current=null,ur.current=null,Tr.current=null,ke(Ii),Ni(-1),Fi(!1)};document.addEventListener("mouseup",lr),document.addEventListener("mousemove",Nr),$r.currentTarget.addEventListener("touchend",lr),$r.currentTarget.addEventListener("touchmove",Nr),Ke.current=Nr,ur.current=lr,Tr.current=$r.currentTarget},Mo=Pt.useMemo(function(){var Ln=(0,Bt.Z)(ae).sort(function(Te,Ze){return Te-Ze}),$r=(0,Bt.Z)(hr).sort(function(Te,Ze){return Te-Ze}),Pn={};$r.forEach(function(Te){Pn[Te]=(Pn[Te]||0)+1}),Ln.forEach(function(Te){Pn[Te]=(Pn[Te]||0)-1});var Br=_n?1:0,Ga=Object.values(Pn).reduce(function(Te,Ze){return Te+Math.abs(Ze)},0);return Ga<=Br?hr:ae},[ae,hr,_n]);return[oi,ni,Si,Mo,Ir]}var ti=Ue;function Qn(te,le,ae,Ae,Sn,An){var En=Pt.useCallback(function(ni){return Math.max(te,Math.min(le,ni))},[te,le]),ke=Pt.useCallback(function(ni){if(ae!==null){var Pi=te+Math.round((En(ni)-te)/ae)*ae,Li=function(gr){return(String(gr).split(".")[1]||"").length},qe=Math.max(Li(ae),Li(le),Li(te)),oi=Number(Pi.toFixed(qe));return te<=oi&&oi<=le?oi:null}return null},[ae,te,le,En]),cn=Pt.useCallback(function(ni){var Pi=En(ni),Li=Ae.map(function(Ni){return Ni.value});ae!==null&&Li.push(ke(ni)),Li.push(te,le);var qe=Li[0],oi=le-te;return Li.forEach(function(Ni){var gr=Math.abs(Pi-Ni);gr<=oi&&(qe=Ni,oi=gr)}),qe},[te,le,Ae,ae,En,ke]),_n=function ni(Pi,Li,qe){var oi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Li=="number"){var Ni,gr=Pi[qe],xr=gr+Li,Si=[];Ae.forEach(function(Yn){Si.push(Yn.value)}),Si.push(te,le),Si.push(ke(gr));var Fi=Li>0?1:-1;oi==="unit"?Si.push(ke(gr+Fi*ae)):Si.push(ke(xr)),Si=Si.filter(function(Yn){return Yn!==null}).filter(function(Yn){return Li<0?Yn<=gr:Yn>=gr}),oi==="unit"&&(Si=Si.filter(function(Yn){return Yn!==gr}));var Gi=oi==="unit"?gr:xr;Ni=Si[0];var Mr=Math.abs(Ni-Gi);if(Si.forEach(function(Yn){var zi=Math.abs(Yn-Gi);zi<Mr&&(Ni=Yn,Mr=zi)}),Ni===void 0)return Li<0?te:le;if(oi==="dist")return Ni;if(Math.abs(Li)>1){var hr=(0,Bt.Z)(Pi);return hr[qe]=Ni,ni(hr,Li-Fi,qe,oi)}return Ni}else{if(Li==="min")return te;if(Li==="max")return le}},vi=function(Pi,Li,qe){var oi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Ni=Pi[qe],gr=_n(Pi,Li,qe,oi);return{value:gr,changed:gr!==Ni}},mn=function(Pi){return An===null&&Pi===0||typeof An=="number"&&Pi<An},Oe=function(Pi,Li,qe){var oi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Ni=Pi.map(cn),gr=Ni[qe],xr=_n(Ni,Li,qe,oi);if(Ni[qe]=xr,Sn===!1){var Si=An||0;qe>0&&Ni[qe-1]!==gr&&(Ni[qe]=Math.max(Ni[qe],Ni[qe-1]+Si)),qe<Ni.length-1&&Ni[qe+1]!==gr&&(Ni[qe]=Math.min(Ni[qe],Ni[qe+1]-Si))}else if(typeof An=="number"||An===null){for(var Fi=qe+1;Fi<Ni.length;Fi+=1)for(var Gi=!0;mn(Ni[Fi]-Ni[Fi-1])&&Gi;){var Mr=vi(Ni,1,Fi);Ni[Fi]=Mr.value,Gi=Mr.changed}for(var hr=qe;hr>0;hr-=1)for(var Yn=!0;mn(Ni[hr]-Ni[hr-1])&&Yn;){var zi=vi(Ni,-1,hr-1);Ni[hr-1]=zi.value,Yn=zi.changed}for(var qo=Ni.length-1;qo>0;qo-=1)for(var sa=!0;mn(Ni[qo]-Ni[qo-1])&&sa;){var la=vi(Ni,-1,qo-1);Ni[qo-1]=la.value,sa=la.changed}for(var Ke=0;Ke<Ni.length-1;Ke+=1)for(var ur=!0;mn(Ni[Ke+1]-Ni[Ke])&&ur;){var Tr=vi(Ni,1,Ke+1);Ni[Ke+1]=Tr.value,ur=Tr.changed}}return{value:Ni[qe],values:Ni}};return[cn,Oe]}function Hn(te){return(0,Pt.useMemo)(function(){if(te===!0||!te)return[!!te,!1,!1,0];var le=te.editable,ae=te.draggableTrack,Ae=te.minCount,Sn=te.maxCount;return[!0,le,!le&&ae,Ae||0,Sn]},[te])}var pn=Pt.forwardRef(function(te,le){var ae=te.prefixCls,Ae=ae===void 0?"rc-slider":ae,Sn=te.className,An=te.style,En=te.classNames,ke=te.styles,cn=te.id,_n=te.disabled,vi=_n===void 0?!1:_n,mn=te.keyboard,Oe=mn===void 0?!0:mn,ni=te.autoFocus,Pi=te.onFocus,Li=te.onBlur,qe=te.min,oi=qe===void 0?0:qe,Ni=te.max,gr=Ni===void 0?100:Ni,xr=te.step,Si=xr===void 0?1:xr,Fi=te.value,Gi=te.defaultValue,Mr=te.range,hr=te.count,Yn=te.onChange,zi=te.onBeforeChange,qo=te.onAfterChange,sa=te.onChangeComplete,la=te.allowCross,Ke=la===void 0?!0:la,ur=te.pushable,Tr=ur===void 0?!1:ur,or=te.reverse,Vo=te.vertical,eo=te.included,uo=eo===void 0?!0:eo,Xr=te.startPoint,Ir=te.trackStyle,Mo=te.handleStyle,Ln=te.railStyle,$r=te.dotStyle,Pn=te.activeDotStyle,Br=te.marks,Ga=te.dots,Te=te.handleRender,Ze=te.activeHandleRender,sn=te.track,zn=te.tabIndex,Ii=zn===void 0?0:zn,Nr=te.ariaLabelForHandle,lr=te.ariaLabelledByForHandle,si=te.ariaRequired,Zt=te.ariaValueTextFormatterForHandle,Ao=Pt.useRef(null),rs=Pt.useRef(null),Ls=Pt.useMemo(function(){return Vo?or?"ttb":"btt":or?"rtl":"ltr"},[or,Vo]),Xa=Hn(Mr),Ea=(0,ue.Z)(Xa,5),Eo=Ea[0],gs=Ea[1],os=Ea[2],Ho=Ea[3],_o=Ea[4],er=Pt.useMemo(function(){return isFinite(oi)?oi:0},[oi]),Qi=Pt.useMemo(function(){return isFinite(gr)?gr:100},[gr]),Er=Pt.useMemo(function(){return Si!==null&&Si<=0?1:Si},[Si]),hn=Pt.useMemo(function(){return typeof Tr=="boolean"?Tr?Er:!1:Tr>=0?Tr:!1},[Tr,Er]),ar=Pt.useMemo(function(){return Object.keys(Br||{}).map(function(Pa){var Qr=Br[Pa],ua={value:Number(Pa)};return Qr&&(0,Ut.Z)(Qr)==="object"&&!Pt.isValidElement(Qr)&&("label"in Qr||"style"in Qr)?(ua.style=Qr.style,ua.label=Qr.label):ua.label=Qr,ua}).filter(function(Pa){var Qr=Pa.label;return Qr||typeof Qr=="number"}).sort(function(Pa,Qr){return Pa.value-Qr.value})},[Br]),oo=Qn(er,Qi,Er,ar,Ke,hn),ca=(0,ue.Z)(oo,2),$o=ca[0],ia=ca[1],as=gt(Gi,{value:Fi}),Ks=(0,ue.Z)(as,2),vs=Ks[0],au=Ks[1],ks=Pt.useMemo(function(){var Pa=vs==null?[]:Array.isArray(vs)?vs:[vs],Qr=(0,ue.Z)(Pa,1),ua=Qr[0],Za=ua===void 0?er:ua,Xs=vs===null?[]:[Za];if(Eo){if(Xs=(0,Bt.Z)(Pa),hr||vs===void 0){var Nl=hr>=0?hr+1:2;for(Xs=Xs.slice(0,Nl);Xs.length<Nl;){var Ts;Xs.push((Ts=Xs[Xs.length-1])!==null&&Ts!==void 0?Ts:er)}}Xs.sort(function(fl,Pu){return fl-Pu})}return Xs.forEach(function(fl,Pu){Xs[Pu]=$o(fl)}),Xs},[vs,Eo,er,hr,$o]),en=function(Qr){return Eo?Qr:Qr[0]},Us=Xe(function(Pa){var Qr=(0,Bt.Z)(Pa).sort(function(ua,Za){return ua-Za});Yn&&!rn(Qr,ks,!0)&&Yn(en(Qr)),au(Qr)}),kl=Xe(function(Pa){Pa&&Ao.current.hideHelp();var Qr=en(ks);qo==null||qo(Qr),de(!qo,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),sa==null||sa(Qr)}),xu=function(Qr){if(!(vi||!gs||ks.length<=Ho)){var ua=(0,Bt.Z)(ks);ua.splice(Qr,1),zi==null||zi(en(ua)),Us(ua);var Za=Math.max(0,Qr-1);Ao.current.hideHelp(),Ao.current.focus(Za)}},ma=ti(rs,Ls,ks,er,Qi,$o,Us,kl,ia,gs,Ho),Pl=(0,ue.Z)(ma,5),wl=Pl[0],su=Pl[1],Aa=Pl[2],ps=Pl[3],so=Pl[4],Do=function(Qr,ua){if(!vi){var Za=(0,Bt.Z)(ks),Xs=0,Nl=0,Ts=Qi-er;ks.forEach(function(eh,Fu){var Yl=Math.abs(Qr-eh);Yl<=Ts&&(Ts=Yl,Xs=Fu),eh<Qr&&(Nl=Fu)});var fl=Xs;gs&&Ts!==0&&(!_o||ks.length<_o)?(Za.splice(Nl+1,0,Qr),fl=Nl+1):Za[Xs]=Qr,Eo&&!ks.length&&hr===void 0&&Za.push(Qr);var Pu=en(Za);if(zi==null||zi(Pu),Us(Za),ua){var ph,mh;(ph=document.activeElement)===null||ph===void 0||(mh=ph.blur)===null||mh===void 0||mh.call(ph),Ao.current.focus(fl),so(ua,fl,Za)}else qo==null||qo(Pu),de(!qo,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),sa==null||sa(Pu)}},ka=function(Qr){Qr.preventDefault();var ua=rs.current.getBoundingClientRect(),Za=ua.width,Xs=ua.height,Nl=ua.left,Ts=ua.top,fl=ua.bottom,Pu=ua.right,ph=Qr.clientX,mh=Qr.clientY,eh;switch(Ls){case"btt":eh=(fl-mh)/Xs;break;case"ttb":eh=(mh-Ts)/Xs;break;case"rtl":eh=(Pu-ph)/Za;break;default:eh=(ph-Nl)/Za}var Fu=er+eh*(Qi-er);Do($o(Fu),Qr)},ls=Pt.useState(null),qi=(0,ue.Z)(ls,2),Gu=qi[0],zl=qi[1],Cl=function(Qr,ua){if(!vi){var Za=ia(ks,Qr,ua);zi==null||zi(en(ks)),Us(Za.values),zl(Za.value)}};Pt.useEffect(function(){if(Gu!==null){var Pa=ks.indexOf(Gu);Pa>=0&&Ao.current.focus(Pa)}zl(null)},[Gu]);var Zh=Pt.useMemo(function(){return os&&Er===null?!1:os},[os,Er]),Zu=Xe(function(Pa,Qr){so(Pa,Qr),zi==null||zi(en(ks))}),Bi=wl!==-1;Pt.useEffect(function(){if(!Bi){var Pa=ks.lastIndexOf(su);Ao.current.focus(Pa)}},[Bi]);var ds=Pt.useMemo(function(){return(0,Bt.Z)(ps).sort(function(Pa,Qr){return Pa-Qr})},[ps]),Ns=Pt.useMemo(function(){return Eo?[ds[0],ds[ds.length-1]]:[er,ds[0]]},[ds,Eo,er]),Xl=(0,ue.Z)(Ns,2),Ms=Xl[0],Fs=Xl[1];Pt.useImperativeHandle(le,function(){return{focus:function(){Ao.current.focus(0)},blur:function(){var Qr,ua=document,Za=ua.activeElement;(Qr=rs.current)!==null&&Qr!==void 0&&Qr.contains(Za)&&(Za==null||Za.blur())}}}),Pt.useEffect(function(){ni&&Ao.current.focus(0)},[]);var no=Pt.useMemo(function(){return{min:er,max:Qi,direction:Ls,disabled:vi,keyboard:Oe,step:Er,included:uo,includedStart:Ms,includedEnd:Fs,range:Eo,tabIndex:Ii,ariaLabelForHandle:Nr,ariaLabelledByForHandle:lr,ariaRequired:si,ariaValueTextFormatterForHandle:Zt,styles:ke||{},classNames:En||{}}},[er,Qi,Ls,vi,Oe,Er,uo,Ms,Fs,Eo,Ii,Nr,lr,si,Zt,ke,En]);return Pt.createElement(Ye.Provider,{value:no},Pt.createElement("div",{ref:rs,className:Se()(Ae,Sn,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Ae,"-disabled"),vi),"".concat(Ae,"-vertical"),Vo),"".concat(Ae,"-horizontal"),!Vo),"".concat(Ae,"-with-marks"),ar.length)),style:An,onMouseDown:ka,id:cn},Pt.createElement("div",{className:Se()("".concat(Ae,"-rail"),En==null?void 0:En.rail),style:(0,Be.Z)((0,Be.Z)({},Ln),ke==null?void 0:ke.rail)}),sn!==!1&&Pt.createElement(fn,{prefixCls:Ae,style:Ir,values:ks,startPoint:Xr,onStartMove:Zh?Zu:void 0}),Pt.createElement(kt,{prefixCls:Ae,marks:ar,dots:Ga,style:$r,activeStyle:Pn}),Pt.createElement(ze,{ref:Ao,prefixCls:Ae,style:Mo,values:ps,draggingIndex:wl,draggingDelete:Aa,onStartMove:Zu,onOffsetChange:Cl,onFocus:Pi,onBlur:Li,handleRender:Te,activeHandleRender:Ze,onChangeComplete:kl,onDelete:gs?xu:void 0}),Pt.createElement(Lt,{prefixCls:Ae,marks:ar,onClick:Do})))}),gi=pn,Mi=gi,In=Mt(96523),ei=Mt(98866),hi=(0,Pt.createContext)({}),$i=Mt(17799),pr=Mt(83062),ki=Pt.forwardRef((te,le)=>{const{open:ae,draggingDelete:Ae}=te,Sn=(0,Pt.useRef)(null),An=ae&&!Ae,En=(0,Pt.useRef)(null);function ke(){In.Z.cancel(En.current),En.current=null}function cn(){En.current=(0,In.Z)(()=>{var _n;(_n=Sn.current)===null||_n===void 0||_n.forceAlign(),En.current=null})}return Pt.useEffect(()=>(An?cn():ke(),ke),[An,te.title]),Pt.createElement(pr.Z,Object.assign({ref:(0,$i.sQ)(Sn,le)},te,{open:An}))}),sr=Mt(16777),Ur=Mt(24327),Jo=Mt(14747),Rr=Mt(83559),To=Mt(43259);const pa=te=>{const{componentCls:le,antCls:ae,controlSize:Ae,dotSize:Sn,marginFull:An,marginPart:En,colorFillContentHover:ke,handleColorDisabled:cn,calc:_n,handleSize:vi,handleSizeHover:mn,handleActiveColor:Oe,handleActiveOutlineColor:ni,handleLineWidth:Pi,handleLineWidthHover:Li,motionDurationMid:qe}=te;return{[le]:Object.assign(Object.assign({},(0,Jo.Wf)(te)),{position:"relative",height:Ae,margin:`${(0,sr.unit)(En)} ${(0,sr.unit)(An)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,sr.unit)(An)} ${(0,sr.unit)(En)}`},[`${le}-rail`]:{position:"absolute",backgroundColor:te.railBg,borderRadius:te.borderRadiusXS,transition:`background-color ${qe}`},[`${le}-track,${le}-tracks`]:{position:"absolute",transition:`background-color ${qe}`},[`${le}-track`]:{backgroundColor:te.trackBg,borderRadius:te.borderRadiusXS},[`${le}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${le}-rail`]:{backgroundColor:te.railHoverBg},[`${le}-track`]:{backgroundColor:te.trackHoverBg},[`${le}-dot`]:{borderColor:ke},[`${le}-handle::after`]:{boxShadow:`0 0 0 ${(0,sr.unit)(Pi)} ${te.colorPrimaryBorderHover}`},[`${le}-dot-active`]:{borderColor:te.dotActiveBorderColor}},[`${le}-handle`]:{position:"absolute",width:vi,height:vi,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:_n(Pi).mul(-1).equal(),insetBlockStart:_n(Pi).mul(-1).equal(),width:_n(vi).add(_n(Pi).mul(2)).equal(),height:_n(vi).add(_n(Pi).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:vi,height:vi,backgroundColor:te.colorBgElevated,boxShadow:`0 0 0 ${(0,sr.unit)(Pi)} ${te.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
inset-inline-start ${qe},
|
|
inset-block-start ${qe},
|
|
width ${qe},
|
|
height ${qe},
|
|
box-shadow ${qe},
|
|
outline ${qe}
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:_n(mn).sub(vi).div(2).add(Li).mul(-1).equal(),insetBlockStart:_n(mn).sub(vi).div(2).add(Li).mul(-1).equal(),width:_n(mn).add(_n(Li).mul(2)).equal(),height:_n(mn).add(_n(Li).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,sr.unit)(Li)} ${Oe}`,outline:`6px solid ${ni}`,width:mn,height:mn,insetInlineStart:te.calc(vi).sub(mn).div(2).equal(),insetBlockStart:te.calc(vi).sub(mn).div(2).equal()}}},[`&-lock ${le}-handle`]:{"&::before, &::after":{transition:"none"}},[`${le}-mark`]:{position:"absolute",fontSize:te.fontSize},[`${le}-mark-text`]:{position:"absolute",display:"inline-block",color:te.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:te.colorText}},[`${le}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${le}-dot`]:{position:"absolute",width:Sn,height:Sn,backgroundColor:te.colorBgElevated,border:`${(0,sr.unit)(Pi)} solid ${te.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${te.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:te.dotActiveBorderColor}},[`&${le}-disabled`]:{cursor:"not-allowed",[`${le}-rail`]:{backgroundColor:`${te.railBg} !important`},[`${le}-track`]:{backgroundColor:`${te.trackBgDisabled} !important`},[`
|
|
${le}-dot
|
|
`]:{backgroundColor:te.colorBgElevated,borderColor:te.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${le}-handle::after`]:{backgroundColor:te.colorBgElevated,cursor:"not-allowed",width:vi,height:vi,boxShadow:`0 0 0 ${(0,sr.unit)(Pi)} ${cn}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
${le}-mark-text,
|
|
${le}-dot
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${ae}-tooltip-inner`]:{minWidth:"unset"}})}},co=(te,le)=>{const{componentCls:ae,railSize:Ae,handleSize:Sn,dotSize:An,marginFull:En,calc:ke}=te,cn=le?"paddingBlock":"paddingInline",_n=le?"width":"height",vi=le?"height":"width",mn=le?"insetBlockStart":"insetInlineStart",Oe=le?"top":"insetInlineStart",ni=ke(Ae).mul(3).sub(Sn).div(2).equal(),Pi=ke(Sn).sub(Ae).div(2).equal(),Li=le?{borderWidth:`${(0,sr.unit)(Pi)} 0`,transform:`translateY(${(0,sr.unit)(ke(Pi).mul(-1).equal())})`}:{borderWidth:`0 ${(0,sr.unit)(Pi)}`,transform:`translateX(${(0,sr.unit)(te.calc(Pi).mul(-1).equal())})`};return{[cn]:Ae,[vi]:ke(Ae).mul(3).equal(),[`${ae}-rail`]:{[_n]:"100%",[vi]:Ae},[`${ae}-track,${ae}-tracks`]:{[vi]:Ae},[`${ae}-track-draggable`]:Object.assign({},Li),[`${ae}-handle`]:{[mn]:ni},[`${ae}-mark`]:{insetInlineStart:0,top:0,[Oe]:ke(Ae).mul(3).add(le?0:En).equal(),[_n]:"100%"},[`${ae}-step`]:{insetInlineStart:0,top:0,[Oe]:Ae,[_n]:"100%",[vi]:Ae},[`${ae}-dot`]:{position:"absolute",[mn]:ke(Ae).sub(An).div(2).equal()}}},Xi=te=>{const{componentCls:le,marginPartWithMark:ae}=te;return{[`${le}-horizontal`]:Object.assign(Object.assign({},co(te,!0)),{[`&${le}-with-marks`]:{marginBottom:ae}})}},bn=te=>{const{componentCls:le}=te;return{[`${le}-vertical`]:Object.assign(Object.assign({},co(te,!1)),{height:"100%"})}},bt=te=>{const ae=te.controlHeightLG/4,Ae=te.controlHeightSM/2,Sn=te.lineWidth+1,An=te.lineWidth+1*1.5,En=te.colorPrimary,ke=new Ur.FastColor(En).setA(.2).toRgbString();return{controlSize:ae,railSize:4,handleSize:ae,handleSizeHover:Ae,dotSize:8,handleLineWidth:Sn,handleLineWidthHover:An,railBg:te.colorFillTertiary,railHoverBg:te.colorFillSecondary,trackBg:te.colorPrimaryBorder,trackHoverBg:te.colorPrimaryBorderHover,handleColor:te.colorPrimaryBorder,handleActiveColor:En,handleActiveOutlineColor:ke,handleColorDisabled:new Ur.FastColor(te.colorTextDisabled).onBackground(te.colorBgContainer).toHexString(),dotBorderColor:te.colorBorderSecondary,dotActiveBorderColor:te.colorPrimaryBorder,trackBgDisabled:te.colorBgContainerDisabled}};var wn=(0,Rr.I$)("Slider",te=>{const le=(0,To.mergeToken)(te,{marginPart:te.calc(te.controlHeight).sub(te.controlSize).div(2).equal(),marginFull:te.calc(te.controlSize).div(2).equal(),marginPartWithMark:te.calc(te.controlHeightLG).sub(te.controlSize).equal()});return[pa(le),Xi(le),bn(le)]},bt);function Fn(){const[te,le]=Pt.useState(!1),ae=Pt.useRef(null),Ae=()=>{In.Z.cancel(ae.current)},Sn=An=>{Ae(),An?le(An):ae.current=(0,In.Z)(()=>{le(An)})};return Pt.useEffect(()=>Ae,[]),[te,Sn]}var Un=Mt(53124),Xn=function(te,le){var ae={};for(var Ae in te)Object.prototype.hasOwnProperty.call(te,Ae)&&le.indexOf(Ae)<0&&(ae[Ae]=te[Ae]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Ae=Object.getOwnPropertySymbols(te);Sn<Ae.length;Sn++)le.indexOf(Ae[Sn])<0&&Object.prototype.propertyIsEnumerable.call(te,Ae[Sn])&&(ae[Ae[Sn]]=te[Ae[Sn]]);return ae};function ai(te,le){return te||te===null?te:le||le===null?le:ae=>typeof ae=="number"?ae.toString():""}var Di=Pt.forwardRef((te,le)=>{const{prefixCls:ae,range:Ae,className:Sn,rootClassName:An,style:En,disabled:ke,tooltipPrefixCls:cn,tipFormatter:_n,tooltipVisible:vi,getTooltipPopupContainer:mn,tooltipPlacement:Oe,tooltip:ni={},onChangeComplete:Pi,classNames:Li,styles:qe}=te,oi=Xn(te,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:Ni}=te,{getPrefixCls:gr,direction:xr,className:Si,style:Fi,classNames:Gi,styles:Mr,getPopupContainer:hr}=(0,Un.dj)("slider"),Yn=Pt.useContext(ei.Z),zi=ke!=null?ke:Yn,{handleRender:qo,direction:sa}=Pt.useContext(hi),Ke=(sa||xr)==="rtl",[ur,Tr]=Fn(),[or,Vo]=Fn(),eo=Object.assign({},ni),{open:uo,placement:Xr,getPopupContainer:Ir,prefixCls:Mo,formatter:Ln}=eo,$r=uo!=null?uo:vi,Pn=(ur||or)&&$r!==!1,Br=ai(Ln,_n),[Ga,Te]=Fn(),Ze=Eo=>{Pi==null||Pi(Eo),Te(!1)},sn=(Eo,gs)=>Eo||(gs?Ke?"left":"right":"top"),zn=gr("slider",ae),[Ii,Nr,lr]=wn(zn),si=Ne()(Sn,Si,Gi.root,Li==null?void 0:Li.root,An,{[`${zn}-rtl`]:Ke,[`${zn}-lock`]:Ga},Nr,lr);Ke&&!oi.vertical&&(oi.reverse=!oi.reverse),Pt.useEffect(()=>{const Eo=()=>{(0,In.Z)(()=>{Vo(!1)},1)};return document.addEventListener("mouseup",Eo),()=>{document.removeEventListener("mouseup",Eo)}},[]);const Zt=Ae&&!$r,Ao=qo||((Eo,gs)=>{const{index:os}=gs,Ho=Eo.props;function _o(hn,ar,oo){var ca,$o,ia,as;oo&&(($o=(ca=oi)[hn])===null||$o===void 0||$o.call(ca,ar)),(as=(ia=Ho)[hn])===null||as===void 0||as.call(ia,ar)}const er=Object.assign(Object.assign({},Ho),{onMouseEnter:hn=>{Tr(!0),_o("onMouseEnter",hn)},onMouseLeave:hn=>{Tr(!1),_o("onMouseLeave",hn)},onMouseDown:hn=>{Vo(!0),Te(!0),_o("onMouseDown",hn)},onFocus:hn=>{var ar;Vo(!0),(ar=oi.onFocus)===null||ar===void 0||ar.call(oi,hn),_o("onFocus",hn,!0)},onBlur:hn=>{var ar;Vo(!1),(ar=oi.onBlur)===null||ar===void 0||ar.call(oi,hn),_o("onBlur",hn,!0)}}),Qi=Pt.cloneElement(Eo,er),Er=(!!$r||Pn)&&Br!==null;return Zt?Qi:Pt.createElement(ki,Object.assign({},eo,{prefixCls:gr("tooltip",Mo!=null?Mo:cn),title:Br?Br(gs.value):"",open:Er,placement:sn(Xr!=null?Xr:Oe,Ni),key:os,classNames:{root:`${zn}-tooltip`},getPopupContainer:Ir||mn||hr}),Qi)}),rs=Zt?(Eo,gs)=>{const os=Pt.cloneElement(Eo,{style:Object.assign(Object.assign({},Eo.props.style),{visibility:"hidden"})});return Pt.createElement(ki,Object.assign({},eo,{prefixCls:gr("tooltip",Mo!=null?Mo:cn),title:Br?Br(gs.value):"",open:Br!==null&&Pn,placement:sn(Xr!=null?Xr:Oe,Ni),key:"tooltip",classNames:{root:`${zn}-tooltip`},getPopupContainer:Ir||mn||hr,draggingDelete:gs.draggingDelete}),os)}:void 0,Ls=Object.assign(Object.assign(Object.assign(Object.assign({},Mr.root),Fi),qe==null?void 0:qe.root),En),Xa=Object.assign(Object.assign({},Mr.tracks),qe==null?void 0:qe.tracks),Ea=Ne()(Gi.tracks,Li==null?void 0:Li.tracks);return Ii(Pt.createElement(Mi,Object.assign({},oi,{classNames:Object.assign({handle:Ne()(Gi.handle,Li==null?void 0:Li.handle),rail:Ne()(Gi.rail,Li==null?void 0:Li.rail),track:Ne()(Gi.track,Li==null?void 0:Li.track)},Ea?{tracks:Ea}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},Mr.handle),qe==null?void 0:qe.handle),rail:Object.assign(Object.assign({},Mr.rail),qe==null?void 0:qe.rail),track:Object.assign(Object.assign({},Mr.track),qe==null?void 0:qe.track)},Object.keys(Xa).length?{tracks:Xa}:{}),step:oi.step,range:Ae,className:si,style:Ls,disabled:zi,ref:le,prefixCls:zn,handleRender:Ao,activeHandleRender:rs,onChangeComplete:Ze})))})},5584:function(un,Nn,Mt){"use strict";var Pt,ne=Mt(85269).default;Pt={value:!0},Nn.Z=void 0;var Ne=ne(Mt(85369)),Be=ne(Mt(15704));const Pe={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},Ne.default),timePickerLocale:Object.assign({},Be.default)};Pe.lang.ok="\u786E\u5B9A";var Bt=Nn.Z=Pe},15704:function(un,Nn){"use strict";Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;const Mt={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};var Pt=Nn.default=Mt},88386:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){Pt.defineOption("placeholder","",function(ue,se,Se){var Xe=Se&&Se!=Pt.Init;if(se&&!Xe)ue.on("blur",Pe),ue.on("change",Bt),ue.on("swapDoc",Bt),Pt.on(ue.getInputField(),"compositionupdate",ue.state.placeholderCompose=function(){Be(ue)}),Bt(ue);else if(!se&&Xe){ue.off("blur",Pe),ue.off("change",Bt),ue.off("swapDoc",Bt),Pt.off(ue.getInputField(),"compositionupdate",ue.state.placeholderCompose),ne(ue);var pe=ue.getWrapperElement();pe.className=pe.className.replace(" CodeMirror-empty","")}se&&!ue.hasFocus()&&Pe(ue)});function ne(ue){ue.state.placeholder&&(ue.state.placeholder.parentNode.removeChild(ue.state.placeholder),ue.state.placeholder=null)}function Ne(ue){ne(ue);var se=ue.state.placeholder=document.createElement("pre");se.style.cssText="height: 0; overflow: visible",se.style.direction=ue.getOption("direction"),se.className="CodeMirror-placeholder CodeMirror-line-like";var Se=ue.getOption("placeholder");typeof Se=="string"&&(Se=document.createTextNode(Se)),se.appendChild(Se),ue.display.lineSpace.insertBefore(se,ue.display.lineSpace.firstChild)}function Be(ue){setTimeout(function(){var se=!1,Se=ue.getInputField();Se.nodeName=="TEXTAREA"?se=!Se.value:ue.lineCount()==1&&(se=!/[^\u200b]/.test(Se.querySelector(".CodeMirror-line").textContent)),se?Ne(ue):ne(ue)},20)}function Pe(ue){Ut(ue)&&Ne(ue)}function Bt(ue){var se=ue.getWrapperElement(),Se=Ut(ue);se.className=se.className.replace(" CodeMirror-empty","")+(Se?" CodeMirror-empty":""),Se?Ne(ue):ne(ue)}function Ut(ue){return ue.lineCount()===1&&ue.getLine(0)===""}})},82801:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){var ne={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ne=Pt.Pos;Pt.defineOption("autoCloseBrackets",!1,function(nt,et,ht){ht&&ht!=Pt.Init&&(nt.removeKeyMap(Pe),nt.state.closeBrackets=null),et&&(Bt(Be(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(Pe))});function Be(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:ne[et]}var Pe={Backspace:se,Enter:Se};function Bt(nt){for(var et=0;et<nt.length;et++){var ht=nt.charAt(et),lt="'"+ht+"'";Pe[lt]||(Pe[lt]=Ut(ht))}}Bt(ne.pairs+"`");function Ut(nt){return function(et){return pe(et,nt)}}function ue(nt){var et=nt.state.closeBrackets;if(!et||et.override)return et;var ht=nt.getModeAt(nt.getCursor());return ht.closeBrackets||et}function se(nt){var et=ue(nt);if(!et||nt.getOption("disableInput"))return Pt.Pass;for(var ht=Be(et,"pairs"),lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Pt.Pass;var mt=Ht(nt,lt[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return Pt.Pass}for(var gt=lt.length-1;gt>=0;gt--){var xt=lt[gt].head;nt.replaceRange("",Ne(xt.line,xt.ch-1),Ne(xt.line,xt.ch+1),"+delete")}}function Se(nt){var et=ue(nt),ht=et&&Be(et,"explode");if(!ht||nt.getOption("disableInput"))return Pt.Pass;for(var lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Pt.Pass;var mt=Ht(nt,lt[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return Pt.Pass}nt.operation(function(){var xt=nt.lineSeparator()||`
|
|
`;nt.replaceSelection(xt+xt,null),nt.execCommand("goCharLeft"),lt=nt.listSelections();for(var St=0;St<lt.length;St++){var zt=lt[St].head.line;nt.indentLine(zt,null,!0),nt.indentLine(zt+1,null,!0)}})}function Xe(nt){var et=Pt.cmpPos(nt.anchor,nt.head)>0;return{anchor:new Ne(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new Ne(nt.head.line,nt.head.ch+(et?1:-1))}}function pe(nt,et){var ht=ue(nt);if(!ht||nt.getOption("disableInput"))return Pt.Pass;var lt=Be(ht,"pairs"),gt=lt.indexOf(et);if(gt==-1)return Pt.Pass;for(var mt=Be(ht,"closeBefore"),xt=Be(ht,"triples"),St=lt.charAt(gt+1)==et,zt=nt.listSelections(),Jt=gt%2==0,re,oe=0;oe<zt.length;oe++){var $t=zt[oe],Le=$t.head,de,Fe=nt.getRange(Le,Ne(Le.line,Le.ch+1));if(Jt&&!$t.empty())de="surround";else if((St||!Jt)&&Fe==et)St&&Dt(nt,Le)?de="both":xt.indexOf(et)>=0&&nt.getRange(Le,Ne(Le.line,Le.ch+3))==et+et+et?de="skipThree":de="skip";else if(St&&Le.ch>1&&xt.indexOf(et)>=0&&nt.getRange(Ne(Le.line,Le.ch-2),Le)==et+et){if(Le.ch>2&&/\bstring/.test(nt.getTokenTypeAt(Ne(Le.line,Le.ch-2))))return Pt.Pass;de="addFour"}else if(St){var rn=Le.ch==0?" ":nt.getRange(Ne(Le.line,Le.ch-1),Le);if(!Pt.isWordChar(Fe)&&rn!=et&&!Pt.isWordChar(rn))de="both";else return Pt.Pass}else if(Jt&&(Fe.length===0||/\s/.test(Fe)||mt.indexOf(Fe)>-1))de="both";else return Pt.Pass;if(!re)re=de;else if(re!=de)return Pt.Pass}var De=gt%2?lt.charAt(gt-1):et,jn=gt%2?et:lt.charAt(gt+1);nt.operation(function(){if(re=="skip")nt.execCommand("goCharRight");else if(re=="skipThree")for(var Bn=0;Bn<3;Bn++)nt.execCommand("goCharRight");else if(re=="surround"){for(var an=nt.getSelections(),Bn=0;Bn<an.length;Bn++)an[Bn]=De+an[Bn]+jn;nt.replaceSelections(an,"around"),an=nt.listSelections().slice();for(var Bn=0;Bn<an.length;Bn++)an[Bn]=Xe(an[Bn]);nt.setSelections(an)}else re=="both"?(nt.replaceSelection(De+jn,null),nt.triggerElectric(De+jn),nt.execCommand("goCharLeft")):re=="addFour"&&(nt.replaceSelection(De+De+De+De,"before"),nt.execCommand("goCharRight"))})}function Ht(nt,et){var ht=nt.getRange(Ne(et.line,et.ch-1),Ne(et.line,et.ch+1));return ht.length==2?ht:null}function Dt(nt,et){var ht=nt.getTokenAt(Ne(et.line,et.ch+1));return/\bstring/.test(ht.type)&&ht.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},57341:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631),Mt(4786))})(function(Pt){Pt.defineOption("autoCloseTags",!1,function(se,Se,Xe){if(Xe!=Pt.Init&&Xe&&se.removeKeyMap("autoCloseTags"),!!Se){var pe={name:"autoCloseTags"};(typeof Se!="object"||Se.whenClosing!==!1)&&(pe["'/'"]=function(Ht){return Bt(Ht)}),(typeof Se!="object"||Se.whenOpening!==!1)&&(pe["'>'"]=function(Ht){return Be(Ht)}),se.addKeyMap(pe)}});var ne=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ne=["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 Be(se){if(se.getOption("disableInput"))return Pt.Pass;for(var Se=se.listSelections(),Xe=[],pe=se.getOption("autoCloseTags"),Ht=0;Ht<Se.length;Ht++){if(!Se[Ht].empty())return Pt.Pass;var Dt=Se[Ht].head,nt=se.getTokenAt(Dt),et=Pt.innerMode(se.getMode(),nt.state),ht=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(ht),gt=lt&<.name;if(!gt)return Pt.Pass;var mt=et.mode.configuration=="html",xt=typeof pe=="object"&&pe.dontCloseTags||mt&&ne,St=typeof pe=="object"&&pe.indentTags||mt&&Ne;nt.end>Dt.ch&&(gt=gt.slice(0,gt.length-nt.end+Dt.ch));var zt=gt.toLowerCase();if(!gt||nt.type=="string"&&(nt.end!=Dt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&<.close||nt.string.indexOf("/")==Dt.ch-nt.start-1||xt&&Ut(xt,zt)>-1||ue(se,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(ht)||[],gt,Dt,!0))return Pt.Pass;var Jt=typeof pe=="object"&&pe.emptyTags;if(Jt&&Ut(Jt,gt)>-1){Xe[Ht]={text:"/>",newPos:Pt.Pos(Dt.line,Dt.ch+2)};continue}var re=St&&Ut(St,zt)>-1;Xe[Ht]={indent:re,text:">"+(re?`
|
|
|
|
`:"")+"</"+gt+">",newPos:re?Pt.Pos(Dt.line+1,0):Pt.Pos(Dt.line,Dt.ch+1)}}for(var oe=typeof pe=="object"&&pe.dontIndentOnAutoClose,Ht=Se.length-1;Ht>=0;Ht--){var $t=Xe[Ht];se.replaceRange($t.text,Se[Ht].head,Se[Ht].anchor,"+insert");var Le=se.listSelections().slice(0);Le[Ht]={head:$t.newPos,anchor:$t.newPos},se.setSelections(Le),!oe&&$t.indent&&(se.indentLine($t.newPos.line,null,!0),se.indentLine($t.newPos.line+1,null,!0))}}function Pe(se,Se){for(var Xe=se.listSelections(),pe=[],Ht=Se?"/":"</",Dt=se.getOption("autoCloseTags"),nt=typeof Dt=="object"&&Dt.dontIndentOnSlash,et=0;et<Xe.length;et++){if(!Xe[et].empty())return Pt.Pass;var ht=Xe[et].head,lt=se.getTokenAt(ht),gt=Pt.innerMode(se.getMode(),lt.state),mt=gt.state;if(Se&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ht.ch-1))return Pt.Pass;var xt,St=gt.mode.name!="xml"&&se.getMode().name=="htmlmixed";if(St&>.mode.name=="javascript")xt=Ht+"script";else if(St&>.mode.name=="css")xt=Ht+"style";else{var zt=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(mt);if(!zt||zt.length&&ue(se,zt,zt[zt.length-1],ht))return Pt.Pass;xt=Ht+zt[zt.length-1]}se.getLine(ht.line).charAt(lt.end)!=">"&&(xt+=">"),pe[et]=xt}if(se.replaceSelections(pe),Xe=se.listSelections(),!nt)for(var et=0;et<Xe.length;et++)(et==Xe.length-1||Xe[et].head.line<Xe[et+1].head.line)&&se.indentLine(Xe[et].head.line)}function Bt(se){return se.getOption("disableInput")?Pt.Pass:Pe(se,!0)}Pt.commands.closeTag=function(se){return Pe(se)};function Ut(se,Se){if(se.indexOf)return se.indexOf(Se);for(var Xe=0,pe=se.length;Xe<pe;++Xe)if(se[Xe]==Se)return Xe;return-1}function ue(se,Se,Xe,pe,Ht){if(!Pt.scanForClosingTag)return!1;var Dt=Math.min(se.lastLine()+1,pe.line+500),nt=Pt.scanForClosingTag(se,pe,null,Dt);if(!nt||nt.tag!=Xe)return!1;for(var et=Ht?1:0,ht=Se.length-1;ht>=0&&Se[ht]==Xe;ht--)++et;pe=nt.to;for(var ht=1;ht<et;ht++){var lt=Pt.scanForClosingTag(se,pe,null,Dt);if(!lt||lt.tag!=Xe)return!1;pe=lt.to}return!0}})},4786:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){"use strict";var ne=Pt.Pos;function Ne(ht,lt){return ht.line-lt.line||ht.ch-lt.ch}var Be="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",Pe=Be+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Bt=new RegExp("<(/?)(["+Be+"]["+Pe+"]*)","g");function Ut(ht,lt,gt,mt){this.line=lt,this.ch=gt,this.cm=ht,this.text=ht.getLine(lt),this.min=mt?Math.max(mt.from,ht.firstLine()):ht.firstLine(),this.max=mt?Math.min(mt.to-1,ht.lastLine()):ht.lastLine()}function ue(ht,lt){var gt=ht.cm.getTokenTypeAt(ne(ht.line,lt));return gt&&/\btag\b/.test(gt)}function se(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function Se(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function Xe(ht){for(;;){var lt=ht.text.indexOf(">",ht.ch);if(lt==-1){if(se(ht))continue;return}if(!ue(ht,lt+1)){ht.ch=lt+1;continue}var gt=ht.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,lt));return ht.ch=lt+1,mt?"selfClose":"regular"}}function pe(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(lt==-1){if(Se(ht))continue;return}if(!ue(ht,lt+1)){ht.ch=lt;continue}Bt.lastIndex=lt,ht.ch=lt;var gt=Bt.exec(ht.text);if(gt&>.index==lt)return gt}}function Ht(ht){for(;;){Bt.lastIndex=ht.ch;var lt=Bt.exec(ht.text);if(!lt){if(se(ht))continue;return}if(!ue(ht,lt.index+1)){ht.ch=lt.index+1;continue}return ht.ch=lt.index+lt[0].length,lt}}function Dt(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(lt==-1){if(Se(ht))continue;return}if(!ue(ht,lt+1)){ht.ch=lt;continue}var gt=ht.text.lastIndexOf("/",lt),mt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,lt));return ht.ch=lt+1,mt?"selfClose":"regular"}}function nt(ht,lt){for(var gt=[];;){var mt=Ht(ht),xt,St=ht.line,zt=ht.ch-(mt?mt[0].length:0);if(!mt||!(xt=Xe(ht)))return;if(xt!="selfClose")if(mt[1]){for(var Jt=gt.length-1;Jt>=0;--Jt)if(gt[Jt]==mt[2]){gt.length=Jt;break}if(Jt<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:ne(St,zt),to:ne(ht.line,ht.ch)}}else gt.push(mt[2])}}function et(ht,lt){for(var gt=[];;){var mt=Dt(ht);if(!mt)return;if(mt=="selfClose"){pe(ht);continue}var xt=ht.line,St=ht.ch,zt=pe(ht);if(!zt)return;if(zt[1])gt.push(zt[2]);else{for(var Jt=gt.length-1;Jt>=0;--Jt)if(gt[Jt]==zt[2]){gt.length=Jt;break}if(Jt<0&&(!lt||lt==zt[2]))return{tag:zt[2],from:ne(ht.line,ht.ch),to:ne(xt,St)}}}}Pt.registerHelper("fold","xml",function(ht,lt){for(var gt=new Ut(ht,lt.line,0);;){var mt=Ht(gt);if(!mt||gt.line!=lt.line)return;var xt=Xe(gt);if(!xt)return;if(!mt[1]&&xt!="selfClose"){var St=ne(gt.line,gt.ch),zt=nt(gt,mt[2]);return zt&&Ne(zt.from,St)>0?{from:St,to:zt.from}:null}}}),Pt.findMatchingTag=function(ht,lt,gt){var mt=new Ut(ht,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var xt=Xe(mt),St=xt&&ne(mt.line,mt.ch),zt=xt&&pe(mt);if(!(!xt||!zt||Ne(mt,lt)>0)){var Jt={from:ne(mt.line,mt.ch),to:St,tag:zt[2]};return xt=="selfClose"?{open:Jt,close:null,at:"open"}:zt[1]?{open:et(mt,zt[2]),close:Jt,at:"close"}:(mt=new Ut(ht,St.line,St.ch,gt),{open:Jt,close:nt(mt,zt[2]),at:"open"})}}},Pt.findEnclosingTag=function(ht,lt,gt,mt){for(var xt=new Ut(ht,lt.line,lt.ch,gt);;){var St=et(xt,mt);if(!St)break;var zt=new Ut(ht,lt.line,lt.ch,gt),Jt=nt(zt,St.tag);if(Jt)return{open:St,close:Jt}}},Pt.scanForClosingTag=function(ht,lt,gt,mt){var xt=new Ut(ht,lt.line,lt.ch,mt?{from:0,to:mt}:null);return nt(xt,gt)}})},4631:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";var Nn=navigator.userAgent,Mt=navigator.platform,Pt=/gecko\/\d/i.test(Nn),ne=/MSIE \d/.test(Nn),Ne=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Nn),Be=/Edge\/(\d+)/.exec(Nn),Pe=ne||Ne||Be,Bt=Pe&&(ne?document.documentMode||6:+(Be||Ne)[1]),Ut=!Be&&/WebKit\//.test(Nn),ue=Ut&&/Qt\/\d+\.\d+/.test(Nn),se=!Be&&/Chrome\//.test(Nn),Se=/Opera\//.test(Nn),Xe=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Nn),Ht=/PhantomJS/.test(Nn),Dt=!Be&&/AppleWebKit/.test(Nn)&&/Mobile\/\w+/.test(Nn),nt=/Android/.test(Nn),et=Dt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Nn),ht=Dt||/Mac/.test(Mt),lt=/\bCrOS\b/.test(Nn),gt=/win/i.test(Mt),mt=Se&&Nn.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(Se=!1,Ut=!0);var xt=ht&&(ue||Se&&(mt==null||mt<12.11)),St=Pt||Pe&&Bt>=9;function zt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Jt=function(it,ot){var ct=it.className,dt=zt(ot).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function re(it){for(var ot=it.childNodes.length;ot>0;--ot)it.removeChild(it.firstChild);return it}function oe(it,ot){return re(it).appendChild(ot)}function $t(it,ot,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof ot=="string")pt.appendChild(document.createTextNode(ot));else if(ot)for(var At=0;At<ot.length;++At)pt.appendChild(ot[At]);return pt}function Le(it,ot,ct,dt){var pt=$t(it,ot,ct,dt);return pt.setAttribute("role","presentation"),pt}var de;document.createRange?de=function(it,ot,ct,dt){var pt=document.createRange();return pt.setEnd(dt||it,ct),pt.setStart(it,ot),pt}:de=function(it,ot,ct){var dt=document.body.createTextRange();try{dt.moveToElementText(it.parentNode)}catch(pt){return dt}return dt.collapse(!0),dt.moveEnd("character",ct),dt.moveStart("character",ot),dt};function Fe(it,ot){if(ot.nodeType==3&&(ot=ot.parentNode),it.contains)return it.contains(ot);do if(ot.nodeType==11&&(ot=ot.host),ot==it)return!0;while(ot=ot.parentNode)}function rn(){var it;try{it=document.activeElement}catch(ot){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function De(it,ot){var ct=it.className;zt(ot).test(ct)||(it.className+=(ct?" ":"")+ot)}function jn(it,ot){for(var ct=it.split(" "),dt=0;dt<ct.length;dt++)ct[dt]&&!zt(ct[dt]).test(ot)&&(ot+=" "+ct[dt]);return ot}var Bn=function(it){it.select()};Dt?Bn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Pe&&(Bn=function(it){try{it.select()}catch(ot){}});function an(it){var ot=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,ot)}}function Zn(it,ot,ct){ot||(ot={});for(var dt in it)it.hasOwnProperty(dt)&&(ct!==!1||!ot.hasOwnProperty(dt))&&(ot[dt]=it[dt]);return ot}function _t(it,ot,ct,dt,pt){ot==null&&(ot=it.search(/[^\s\u00a0]/),ot==-1&&(ot=it.length));for(var At=dt||0,jt=pt||0;;){var qt=it.indexOf(" ",At);if(qt<0||qt>=ot)return jt+(ot-At);jt+=qt-At,jt+=ct-jt%ct,At=qt+1}}var Tt=function(){this.id=null,this.f=null,this.time=0,this.handler=an(this.onTimeout,this)};Tt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Tt.prototype.set=function(it,ot){this.f=ot;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function ce(it,ot){for(var ct=0;ct<it.length;++ct)if(it[ct]==ot)return ct;return-1}var _e=50,Ye={toString:function(){return"CodeMirror.Pass"}},xe={scroll:!1},on={origin:"*mouse"},tn={origin:"+move"};function Cn(it,ot,ct){for(var dt=0,pt=0;;){var At=it.indexOf(" ",dt);At==-1&&(At=it.length);var jt=At-dt;if(At==it.length||pt+jt>=ot)return dt+Math.min(jt,ot-pt);if(pt+=At-dt,pt+=ct-pt%ct,dt=At+1,pt>=ot)return dt}}var Ie=[""];function ve(it){for(;Ie.length<=it;)Ie.push(ze(Ie)+" ");return Ie[it]}function ze(it){return it[it.length-1]}function je(it,ot){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=ot(it[dt],dt);return ct}function He(it,ot,ct){for(var dt=0,pt=ct(ot);dt<it.length&&ct(it[dt])<=pt;)dt++;it.splice(dt,0,ot)}function Ot(){}function Lt(it,ot){var ct;return Object.create?ct=Object.create(it):(Ot.prototype=it,ct=new Ot),ot&&Zn(ot,ct),ct}var wt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ft(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||wt.test(it))}function Wt(it,ot){return ot?ot.source.indexOf("\\w")>-1&&Ft(it)?!0:ot.test(it):Ft(it)}function kt(it){for(var ot in it)if(it.hasOwnProperty(ot)&&it[ot])return!1;return!0}var Xt=/[\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 $e(it){return it.charCodeAt(0)>=768&&Xt.test(it)}function Je(it,ot,ct){for(;(ct<0?ot>0:ot<it.length)&&$e(it.charAt(ot));)ot+=ct;return ot}function fn(it,ot,ct){for(var dt=ot>ct?-1:1;;){if(ot==ct)return ot;var pt=(ot+ct)/2,At=dt<0?Math.ceil(pt):Math.floor(pt);if(At==ot)return it(At)?ot:ct;it(At)?ct=At:ot=At+dt}}function Ve(it,ot,ct,dt){if(!it)return dt(ot,ct,"ltr",0);for(var pt=!1,At=0;At<it.length;++At){var jt=it[At];(jt.from<ct&&jt.to>ot||ot==ct&&jt.to==ot)&&(dt(Math.max(jt.from,ot),Math.min(jt.to,ct),jt.level==1?"rtl":"ltr",At),pt=!0)}pt||dt(ot,ct,"ltr")}var Mn=null;function Ue(it,ot,ct){var dt;Mn=null;for(var pt=0;pt<it.length;++pt){var At=it[pt];if(At.from<ot&&At.to>ot)return pt;At.to==ot&&(At.from!=At.to&&ct=="before"?dt=pt:Mn=pt),At.from==ot&&(At.from!=At.to&&ct!="before"?dt=pt:Mn=pt)}return dt!=null?dt:Mn}var ti=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ot="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(fe){return fe<=247?it.charAt(fe):1424<=fe&&fe<=1524?"R":1536<=fe&&fe<=1785?ot.charAt(fe-1536):1774<=fe&&fe<=2220?"r":8192<=fe&&fe<=8203?"w":fe==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,At=/[LRr]/,jt=/[Lb1n]/,qt=/[1n]/;function Yt(fe,Ge,ge){this.level=fe,this.from=Ge,this.to=ge}return function(fe,Ge){var ge=Ge=="ltr"?"L":"R";if(fe.length==0||Ge=="ltr"&&!dt.test(fe))return!1;for(var dn=fe.length,gn=[],fi=0;fi<dn;++fi)gn.push(ct(fe.charCodeAt(fi)));for(var Ri=0,Ji=ge;Ri<dn;++Ri){var fr=gn[Ri];fr=="m"?gn[Ri]=Ji:Ji=fr}for(var _r=0,kr=ge;_r<dn;++_r){var lo=gn[_r];lo=="1"&&kr=="r"?gn[_r]="n":At.test(lo)&&(kr=lo,lo=="r"&&(gn[_r]="R"))}for(var ea=1,Ar=gn[0];ea<dn-1;++ea){var ja=gn[ea];ja=="+"&&Ar=="1"&&gn[ea+1]=="1"?gn[ea]="1":ja==","&&Ar==gn[ea+1]&&(Ar=="1"||Ar=="n")&&(gn[ea]=Ar),Ar=ja}for(var il=0;il<dn;++il){var nu=gn[il];if(nu==",")gn[il]="N";else if(nu=="%"){var cl=void 0;for(cl=il+1;cl<dn&&gn[cl]=="%";++cl);for(var uh=il&&gn[il-1]=="!"||cl<dn&&gn[cl]=="1"?"1":"N",Ru=il;Ru<cl;++Ru)gn[Ru]=uh;il=cl-1}}for(var Vl=0,Ph=ge;Vl<dn;++Vl){var Lu=gn[Vl];Ph=="L"&&Lu=="1"?gn[Vl]="L":At.test(Lu)&&(Ph=Lu)}for(var Kl=0;Kl<dn;++Kl)if(pt.test(gn[Kl])){var ys=void 0;for(ys=Kl+1;ys<dn&&pt.test(gn[ys]);++ys);for(var yl=(Kl?gn[Kl-1]:ge)=="L",uu=(ys<dn?gn[ys]:ge)=="L",Mu=yl==uu?yl?"L":"R":ge,gc=Kl;gc<ys;++gc)gn[gc]=Mu;Kl=ys-1}for(var dl=[],qh,Al=0;Al<dn;)if(jt.test(gn[Al])){var sg=Al;for(++Al;Al<dn&&jt.test(gn[Al]);++Al);dl.push(new Yt(0,sg,Al))}else{var Oh=Al,wh=dl.length,hh=Ge=="rtl"?1:0;for(++Al;Al<dn&&gn[Al]!="L";++Al);for(var Gs=Oh;Gs<Al;)if(qt.test(gn[Gs])){Oh<Gs&&(dl.splice(wh,0,new Yt(1,Oh,Gs)),wh+=hh);var hu=Gs;for(++Gs;Gs<Al&&qt.test(gn[Gs]);++Gs);dl.splice(wh,0,new Yt(2,hu,Gs)),wh+=hh,Oh=Gs}else++Gs;Oh<Al&&dl.splice(wh,0,new Yt(1,Oh,Al))}return Ge=="ltr"&&(dl[0].level==1&&(qh=fe.match(/^\s+/))&&(dl[0].from=qh[0].length,dl.unshift(new Yt(0,0,qh[0].length))),ze(dl).level==1&&(qh=fe.match(/\s+$/))&&(ze(dl).to-=qh[0].length,dl.push(new Yt(0,dn-qh[0].length,dn)))),Ge=="rtl"?dl.reverse():dl}}();function Qn(it,ot){var ct=it.order;return ct==null&&(ct=it.order=ti(it.text,ot)),ct}var Hn=[],pn=function(it,ot,ct){if(it.addEventListener)it.addEventListener(ot,ct,!1);else if(it.attachEvent)it.attachEvent("on"+ot,ct);else{var dt=it._handlers||(it._handlers={});dt[ot]=(dt[ot]||Hn).concat(ct)}};function gi(it,ot){return it._handlers&&it._handlers[ot]||Hn}function Mi(it,ot,ct){if(it.removeEventListener)it.removeEventListener(ot,ct,!1);else if(it.detachEvent)it.detachEvent("on"+ot,ct);else{var dt=it._handlers,pt=dt&&dt[ot];if(pt){var At=ce(pt,ct);At>-1&&(dt[ot]=pt.slice(0,At).concat(pt.slice(At+1)))}}}function In(it,ot){var ct=gi(it,ot);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt<ct.length;++pt)ct[pt].apply(null,dt)}function ei(it,ot,ct){return typeof ot=="string"&&(ot={type:ot,preventDefault:function(){this.defaultPrevented=!0}}),In(it,ct||ot.type,it,ot),ki(ot)||ot.codemirrorIgnore}function Ki(it){var ot=it._handlers&&it._handlers.cursorActivity;if(ot)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),dt=0;dt<ot.length;++dt)ce(ct,ot[dt])==-1&&ct.push(ot[dt])}function hi(it,ot){return gi(it,ot).length>0}function $i(it){it.prototype.on=function(ot,ct){pn(this,ot,ct)},it.prototype.off=function(ot,ct){Mi(this,ot,ct)}}function pr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function rr(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function ki(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function sr(it){pr(it),rr(it)}function Ur(it){return it.target||it.srcElement}function Jo(it){var ot=it.which;return ot==null&&(it.button&1?ot=1:it.button&2?ot=3:it.button&4&&(ot=2)),ht&&it.ctrlKey&&ot==1&&(ot=3),ot}var Rr=function(){if(Pe&&Bt<9)return!1;var it=$t("div");return"draggable"in it||"dragDrop"in it}(),To;function pa(it){if(To==null){var ot=$t("span","\u200B");oe(it,$t("span",[ot,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(To=ot.offsetWidth<=1&&ot.offsetHeight>2&&!(Pe&&Bt<8))}var ct=To?$t("span","\u200B"):$t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var co;function Xi(it){if(co!=null)return co;var ot=oe(it,document.createTextNode("A\u062EA")),ct=de(ot,0,1).getBoundingClientRect(),dt=de(ot,1,2).getBoundingClientRect();return re(it),!ct||ct.left==ct.right?!1:co=dt.right-ct.right<3}var bn=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var ot=0,ct=[],dt=it.length;ot<=dt;){var pt=it.indexOf(`
|
|
`,ot);pt==-1&&(pt=it.length);var At=it.slice(ot,it.charAt(pt-1)=="\r"?pt-1:pt),jt=At.indexOf("\r");jt!=-1?(ct.push(At.slice(0,jt)),ot+=jt+1):(ct.push(At),ot=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},bt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(ot){return!1}}:function(it){var ot;try{ot=it.ownerDocument.selection.createRange()}catch(ct){}return!ot||ot.parentElement()!=it?!1:ot.compareEndPoints("StartToEnd",ot)!=0},wn=function(){var it=$t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Fn=null;function Un(it){if(Fn!=null)return Fn;var ot=oe(it,$t("span","x")),ct=ot.getBoundingClientRect(),dt=de(ot,0,1).getBoundingClientRect();return Fn=Math.abs(ct.left-dt.left)>1}var Xn={},ai={};function Tn(it,ot){arguments.length>2&&(ot.dependencies=Array.prototype.slice.call(arguments,2)),Xn[it]=ot}function Di(it,ot){ai[it]=ot}function te(it){if(typeof it=="string"&&ai.hasOwnProperty(it))it=ai[it];else if(it&&typeof it.name=="string"&&ai.hasOwnProperty(it.name)){var ot=ai[it.name];typeof ot=="string"&&(ot={name:ot}),it=Lt(ot,it),it.name=ot.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return te("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return te("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function le(it,ot){ot=te(ot);var ct=Xn[ot.name];if(!ct)return le(it,"text/plain");var dt=ct(it,ot);if(ae.hasOwnProperty(ot.name)){var pt=ae[ot.name];for(var At in pt)pt.hasOwnProperty(At)&&(dt.hasOwnProperty(At)&&(dt["_"+At]=dt[At]),dt[At]=pt[At])}if(dt.name=ot.name,ot.helperType&&(dt.helperType=ot.helperType),ot.modeProps)for(var jt in ot.modeProps)dt[jt]=ot.modeProps[jt];return dt}var ae={};function Ae(it,ot){var ct=ae.hasOwnProperty(it)?ae[it]:ae[it]={};Zn(ot,ct)}function Sn(it,ot){if(ot===!0)return ot;if(it.copyState)return it.copyState(ot);var ct={};for(var dt in ot){var pt=ot[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function An(it,ot){for(var ct;it.innerMode&&(ct=it.innerMode(ot),!(!ct||ct.mode==it));)ot=ct.state,it=ct.mode;return ct||{mode:it,state:ot}}function En(it,ot,ct){return it.startState?it.startState(ot,ct):!0}var ke=function(it,ot,ct){this.pos=this.start=0,this.string=it,this.tabSize=ot||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(it){var ot=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=ot==it:ct=ot&&(it.test?it.test(ot):it(ot)),ct)return++this.pos,ot},ke.prototype.eatWhile=function(it){for(var ot=this.pos;this.eat(it););return this.pos>ot},ke.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(it){var ot=this.string.indexOf(it,this.pos);if(ot>-1)return this.pos=ot,!0},ke.prototype.backUp=function(it){this.pos-=it},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=_t(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?_t(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return _t(this.string,null,this.tabSize)-(this.lineStart?_t(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(it,ot,ct){if(typeof it=="string"){var dt=function(jt){return ct?jt.toLowerCase():jt},pt=this.string.substr(this.pos,it.length);if(dt(pt)==dt(it))return ot!==!1&&(this.pos+=it.length),!0}else{var At=this.string.slice(this.pos).match(it);return At&&At.index>0?null:(At&&ot!==!1&&(this.pos+=At[0].length),At)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(it,ot){this.lineStart+=it;try{return ot()}finally{this.lineStart-=it}},ke.prototype.lookAhead=function(it){var ot=this.lineOracle;return ot&&ot.lookAhead(it)},ke.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function cn(it,ot){if(ot-=it.first,ot<0||ot>=it.size)throw new Error("There is no line "+(ot+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],At=pt.chunkSize();if(ot<At){ct=pt;break}ot-=At}return ct.lines[ot]}function _n(it,ot,ct){var dt=[],pt=ot.line;return it.iter(ot.line,ct.line+1,function(At){var jt=At.text;pt==ct.line&&(jt=jt.slice(0,ct.ch)),pt==ot.line&&(jt=jt.slice(ot.ch)),dt.push(jt),++pt}),dt}function vi(it,ot,ct){var dt=[];return it.iter(ot,ct,function(pt){dt.push(pt.text)}),dt}function mn(it,ot){var ct=ot-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function Oe(it){if(it.parent==null)return null;for(var ot=it.parent,ct=ce(ot.lines,it),dt=ot.parent;dt;ot=dt,dt=dt.parent)for(var pt=0;dt.children[pt]!=ot;++pt)ct+=dt.children[pt].chunkSize();return ct+ot.first}function ni(it,ot){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var pt=it.children[dt],At=pt.height;if(ot<At){it=pt;continue t}ot-=At,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var jt=0;jt<it.lines.length;++jt){var qt=it.lines[jt],Yt=qt.height;if(ot<Yt)break;ot-=Yt}return ct+jt}function Pi(it,ot){return ot>=it.first&&ot<it.first+it.size}function Li(it,ot){return String(it.lineNumberFormatter(ot+it.firstLineNumber))}function qe(it,ot,ct){if(ct===void 0&&(ct=null),!(this instanceof qe))return new qe(it,ot,ct);this.line=it,this.ch=ot,this.sticky=ct}function oi(it,ot){return it.line-ot.line||it.ch-ot.ch}function Ni(it,ot){return it.sticky==ot.sticky&&oi(it,ot)==0}function gr(it){return qe(it.line,it.ch)}function xr(it,ot){return oi(it,ot)<0?ot:it}function Si(it,ot){return oi(it,ot)<0?it:ot}function Fi(it,ot){return Math.max(it.first,Math.min(ot,it.first+it.size-1))}function Gi(it,ot){if(ot.line<it.first)return qe(it.first,0);var ct=it.first+it.size-1;return ot.line>ct?qe(ct,cn(it,ct).text.length):Mr(ot,cn(it,ot.line).text.length)}function Mr(it,ot){var ct=it.ch;return ct==null||ct>ot?qe(it.line,ot):ct<0?qe(it.line,0):it}function hr(it,ot){for(var ct=[],dt=0;dt<ot.length;dt++)ct[dt]=Gi(it,ot[dt]);return ct}var Yn=function(it,ot){this.state=it,this.lookAhead=ot},zi=function(it,ot,ct,dt){this.state=ot,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};zi.prototype.lookAhead=function(it){var ot=this.doc.getLine(this.line+it);return ot!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),ot},zi.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var ot=this.baseTokens[this.baseTokenPos+1];return{type:ot&&ot.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},zi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},zi.fromSaved=function(it,ot,ct){return ot instanceof Yn?new zi(it,Sn(it.mode,ot.state),ct,ot.lookAhead):new zi(it,Sn(it.mode,ot),ct)},zi.prototype.save=function(it){var ot=it!==!1?Sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yn(ot,this.maxLookAhead):ot};function qo(it,ot,ct,dt){var pt=[it.state.modeGen],At={};uo(it,ot.text,it.doc.mode,ct,function(fe,Ge){return pt.push(fe,Ge)},At,dt);for(var jt=ct.state,qt=function(fe){ct.baseTokens=pt;var Ge=it.state.overlays[fe],ge=1,dn=0;ct.state=!0,uo(it,ot.text,Ge.mode,ct,function(gn,fi){for(var Ri=ge;dn<gn;){var Ji=pt[ge];Ji>gn&&pt.splice(ge,1,gn,pt[ge+1],Ji),ge+=2,dn=Math.min(gn,Ji)}if(fi)if(Ge.opaque)pt.splice(Ri,ge-Ri,gn,"overlay "+fi),ge=Ri+2;else for(;Ri<ge;Ri+=2){var fr=pt[Ri+1];pt[Ri+1]=(fr?fr+" ":"")+"overlay "+fi}},At),ct.state=jt,ct.baseTokens=null,ct.baseTokenPos=1},Yt=0;Yt<it.state.overlays.length;++Yt)qt(Yt);return{styles:pt,classes:At.bgClass||At.textClass?At:null}}function sa(it,ot,ct){if(!ot.styles||ot.styles[0]!=it.state.modeGen){var dt=la(it,Oe(ot)),pt=ot.text.length>it.options.maxHighlightLength&&Sn(it.doc.mode,dt.state),At=qo(it,ot,dt);pt&&(dt.state=pt),ot.stateAfter=dt.save(!pt),ot.styles=At.styles,At.classes?ot.styleClasses=At.classes:ot.styleClasses&&(ot.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return ot.styles}function la(it,ot,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new zi(dt,!0,ot);var At=Xr(it,ot,ct),jt=At>dt.first&&cn(dt,At-1).stateAfter,qt=jt?zi.fromSaved(dt,jt,At):new zi(dt,En(dt.mode),At);return dt.iter(At,ot,function(Yt){Ke(it,Yt.text,qt);var fe=qt.line;Yt.stateAfter=fe==ot-1||fe%5==0||fe>=pt.viewFrom&&fe<pt.viewTo?qt.save():null,qt.nextLine()}),ct&&(dt.modeFrontier=qt.line),qt}function Ke(it,ot,ct,dt){var pt=it.doc.mode,At=new ke(ot,it.options.tabSize,ct);for(At.start=At.pos=dt||0,ot==""&&ur(pt,ct.state);!At.eol();)Tr(pt,At,ct.state),At.start=At.pos}function ur(it,ot){if(it.blankLine)return it.blankLine(ot);if(it.innerMode){var ct=An(it,ot);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function Tr(it,ot,ct,dt){for(var pt=0;pt<10;pt++){dt&&(dt[0]=An(it,ct).mode);var At=it.token(ot,ct);if(ot.pos>ot.start)return At}throw new Error("Mode "+it.name+" failed to advance stream.")}var or=function(it,ot,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=ot||null,this.state=ct};function Vo(it,ot,ct,dt){var pt=it.doc,At=pt.mode,jt;ot=Gi(pt,ot);var qt=cn(pt,ot.line),Yt=la(it,ot.line,ct),fe=new ke(qt.text,it.options.tabSize,Yt),Ge;for(dt&&(Ge=[]);(dt||fe.pos<ot.ch)&&!fe.eol();)fe.start=fe.pos,jt=Tr(At,fe,Yt.state),dt&&Ge.push(new or(fe,jt,Sn(pt.mode,Yt.state)));return dt?Ge:new or(fe,jt,Yt.state)}function eo(it,ot){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var dt=ct[1]?"bgClass":"textClass";ot[dt]==null?ot[dt]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(ot[dt])||(ot[dt]+=" "+ct[2])}return it}function uo(it,ot,ct,dt,pt,At,jt){var qt=ct.flattenSpans;qt==null&&(qt=it.options.flattenSpans);var Yt=0,fe=null,Ge=new ke(ot,it.options.tabSize,dt),ge,dn=it.options.addModeClass&&[null];for(ot==""&&eo(ur(ct,dt.state),At);!Ge.eol();){if(Ge.pos>it.options.maxHighlightLength?(qt=!1,jt&&Ke(it,ot,dt,Ge.pos),Ge.pos=ot.length,ge=null):ge=eo(Tr(ct,Ge,dt.state,dn),At),dn){var gn=dn[0].name;gn&&(ge="m-"+(ge?gn+" "+ge:gn))}if(!qt||fe!=ge){for(;Yt<Ge.start;)Yt=Math.min(Ge.start,Yt+5e3),pt(Yt,fe);fe=ge}Ge.start=Ge.pos}for(;Yt<Ge.pos;){var fi=Math.min(Ge.pos,Yt+5e3);pt(fi,fe),Yt=fi}}function Xr(it,ot,ct){for(var dt,pt,At=it.doc,jt=ct?-1:ot-(it.doc.mode.innerMode?1e3:100),qt=ot;qt>jt;--qt){if(qt<=At.first)return At.first;var Yt=cn(At,qt-1),fe=Yt.stateAfter;if(fe&&(!ct||qt+(fe instanceof Yn?fe.lookAhead:0)<=At.modeFrontier))return qt;var Ge=_t(Yt.text,null,it.options.tabSize);(pt==null||dt>Ge)&&(pt=qt-1,dt=Ge)}return pt}function Ir(it,ot){if(it.modeFrontier=Math.min(it.modeFrontier,ot),!(it.highlightFrontier<ot-10)){for(var ct=it.first,dt=ot-1;dt>ct;dt--){var pt=cn(it,dt).stateAfter;if(pt&&(!(pt instanceof Yn)||dt+pt.lookAhead<ot)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Mo=!1,Ln=!1;function $r(){Mo=!0}function Pn(){Ln=!0}function Br(it,ot,ct){this.marker=it,this.from=ot,this.to=ct}function Ga(it,ot){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==ot)return dt}}function Te(it,ot){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=ot&&(ct||(ct=[])).push(it[dt]);return ct}function Ze(it,ot){it.markedSpans=it.markedSpans?it.markedSpans.concat([ot]):[ot],ot.marker.attachLine(it)}function sn(it,ot,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],jt=At.marker,qt=At.from==null||(jt.inclusiveLeft?At.from<=ot:At.from<ot);if(qt||At.from==ot&&jt.type=="bookmark"&&(!ct||!At.marker.insertLeft)){var Yt=At.to==null||(jt.inclusiveRight?At.to>=ot:At.to>ot);(dt||(dt=[])).push(new Br(jt,At.from,Yt?null:At.to))}}return dt}function zn(it,ot,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],jt=At.marker,qt=At.to==null||(jt.inclusiveRight?At.to>=ot:At.to>ot);if(qt||At.from==ot&&jt.type=="bookmark"&&(!ct||At.marker.insertLeft)){var Yt=At.from==null||(jt.inclusiveLeft?At.from<=ot:At.from<ot);(dt||(dt=[])).push(new Br(jt,Yt?null:At.from-ot,At.to==null?null:At.to-ot))}}return dt}function Ii(it,ot){if(ot.full)return null;var ct=Pi(it,ot.from.line)&&cn(it,ot.from.line).markedSpans,dt=Pi(it,ot.to.line)&&cn(it,ot.to.line).markedSpans;if(!ct&&!dt)return null;var pt=ot.from.ch,At=ot.to.ch,jt=oi(ot.from,ot.to)==0,qt=sn(ct,pt,jt),Yt=zn(dt,At,jt),fe=ot.text.length==1,Ge=ze(ot.text).length+(fe?pt:0);if(qt)for(var ge=0;ge<qt.length;++ge){var dn=qt[ge];if(dn.to==null){var gn=Ga(Yt,dn.marker);gn?fe&&(dn.to=gn.to==null?null:gn.to+Ge):dn.to=pt}}if(Yt)for(var fi=0;fi<Yt.length;++fi){var Ri=Yt[fi];if(Ri.to!=null&&(Ri.to+=Ge),Ri.from==null){var Ji=Ga(qt,Ri.marker);Ji||(Ri.from=Ge,fe&&(qt||(qt=[])).push(Ri))}else Ri.from+=Ge,fe&&(qt||(qt=[])).push(Ri)}qt&&(qt=Nr(qt)),Yt&&Yt!=qt&&(Yt=Nr(Yt));var fr=[qt];if(!fe){var _r=ot.text.length-2,kr;if(_r>0&&qt)for(var lo=0;lo<qt.length;++lo)qt[lo].to==null&&(kr||(kr=[])).push(new Br(qt[lo].marker,null,null));for(var ea=0;ea<_r;++ea)fr.push(kr);fr.push(Yt)}return fr}function Nr(it){for(var ot=0;ot<it.length;++ot){var ct=it[ot];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(ot--,1)}return it.length?it:null}function lr(it,ot,ct){var dt=null;if(it.iter(ot.line,ct.line+1,function(gn){if(gn.markedSpans)for(var fi=0;fi<gn.markedSpans.length;++fi){var Ri=gn.markedSpans[fi].marker;Ri.readOnly&&(!dt||ce(dt,Ri)==-1)&&(dt||(dt=[])).push(Ri)}}),!dt)return null;for(var pt=[{from:ot,to:ct}],At=0;At<dt.length;++At)for(var jt=dt[At],qt=jt.find(0),Yt=0;Yt<pt.length;++Yt){var fe=pt[Yt];if(!(oi(fe.to,qt.from)<0||oi(fe.from,qt.to)>0)){var Ge=[Yt,1],ge=oi(fe.from,qt.from),dn=oi(fe.to,qt.to);(ge<0||!jt.inclusiveLeft&&!ge)&&Ge.push({from:fe.from,to:qt.from}),(dn>0||!jt.inclusiveRight&&!dn)&&Ge.push({from:qt.to,to:fe.to}),pt.splice.apply(pt,Ge),Yt+=Ge.length-3}}return pt}function si(it){var ot=it.markedSpans;if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.detachLine(it);it.markedSpans=null}}function Zt(it,ot){if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.attachLine(it);it.markedSpans=ot}}function Ao(it){return it.inclusiveLeft?-1:0}function rs(it){return it.inclusiveRight?1:0}function Ls(it,ot){var ct=it.lines.length-ot.lines.length;if(ct!=0)return ct;var dt=it.find(),pt=ot.find(),At=oi(dt.from,pt.from)||Ao(it)-Ao(ot);if(At)return-At;var jt=oi(dt.to,pt.to)||rs(it)-rs(ot);return jt||ot.id-it.id}function Xa(it,ot){var ct=Ln&&it.markedSpans,dt;if(ct)for(var pt=void 0,At=0;At<ct.length;++At)pt=ct[At],pt.marker.collapsed&&(ot?pt.from:pt.to)==null&&(!dt||Ls(dt,pt.marker)<0)&&(dt=pt.marker);return dt}function Ea(it){return Xa(it,!0)}function Eo(it){return Xa(it,!1)}function gs(it,ot){var ct=Ln&&it.markedSpans,dt;if(ct)for(var pt=0;pt<ct.length;++pt){var At=ct[pt];At.marker.collapsed&&(At.from==null||At.from<ot)&&(At.to==null||At.to>ot)&&(!dt||Ls(dt,At.marker)<0)&&(dt=At.marker)}return dt}function os(it,ot,ct,dt,pt){var At=cn(it,ot),jt=Ln&&At.markedSpans;if(jt)for(var qt=0;qt<jt.length;++qt){var Yt=jt[qt];if(Yt.marker.collapsed){var fe=Yt.marker.find(0),Ge=oi(fe.from,ct)||Ao(Yt.marker)-Ao(pt),ge=oi(fe.to,dt)||rs(Yt.marker)-rs(pt);if(!(Ge>=0&&ge<=0||Ge<=0&&ge>=0)&&(Ge<=0&&(Yt.marker.inclusiveRight&&pt.inclusiveLeft?oi(fe.to,ct)>=0:oi(fe.to,ct)>0)||Ge>=0&&(Yt.marker.inclusiveRight&&pt.inclusiveLeft?oi(fe.from,dt)<=0:oi(fe.from,dt)<0)))return!0}}}function Ho(it){for(var ot;ot=Ea(it);)it=ot.find(-1,!0).line;return it}function _o(it){for(var ot;ot=Eo(it);)it=ot.find(1,!0).line;return it}function er(it){for(var ot,ct;ot=Eo(it);)it=ot.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Qi(it,ot){var ct=cn(it,ot),dt=Ho(ct);return ct==dt?ot:Oe(dt)}function Er(it,ot){if(ot>it.lastLine())return ot;var ct=cn(it,ot),dt;if(!hn(it,ct))return ot;for(;dt=Eo(ct);)ct=dt.find(1,!0).line;return Oe(ct)+1}function hn(it,ot){var ct=Ln&&ot.markedSpans;if(ct){for(var dt=void 0,pt=0;pt<ct.length;++pt)if(dt=ct[pt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&ar(it,ot,dt))return!0}}}function ar(it,ot,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return ar(it,dt.line,Ga(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==ot.text.length)return!0;for(var pt=void 0,At=0;At<ot.markedSpans.length;++At)if(pt=ot.markedSpans[At],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&ar(it,ot,pt))return!0}function oo(it){it=Ho(it);for(var ot=0,ct=it.parent,dt=0;dt<ct.lines.length;++dt){var pt=ct.lines[dt];if(pt==it)break;ot+=pt.height}for(var At=ct.parent;At;ct=At,At=ct.parent)for(var jt=0;jt<At.children.length;++jt){var qt=At.children[jt];if(qt==ct)break;ot+=qt.height}return ot}function ca(it){if(it.height==0)return 0;for(var ot=it.text.length,ct,dt=it;ct=Ea(dt);){var pt=ct.find(0,!0);dt=pt.from.line,ot+=pt.from.ch-pt.to.ch}for(dt=it;ct=Eo(dt);){var At=ct.find(0,!0);ot-=dt.text.length-At.from.ch,dt=At.to.line,ot+=dt.text.length-At.to.ch}return ot}function $o(it){var ot=it.display,ct=it.doc;ot.maxLine=cn(ct,ct.first),ot.maxLineLength=ca(ot.maxLine),ot.maxLineChanged=!0,ct.iter(function(dt){var pt=ca(dt);pt>ot.maxLineLength&&(ot.maxLineLength=pt,ot.maxLine=dt)})}var ia=function(it,ot,ct){this.text=it,Zt(this,ot),this.height=ct?ct(this):1};ia.prototype.lineNo=function(){return Oe(this)},$i(ia);function as(it,ot,ct,dt){it.text=ot,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),si(it),Zt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&mn(it,pt)}function Ks(it){it.parent=null,si(it)}var vs={},au={};function ks(it,ot){if(!it||/^\s*$/.test(it))return null;var ct=ot.addModeClass?au:vs;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function en(it,ot){var ct=Le("span",null,null,Ut?"padding-right: .1px":null),dt={pre:Le("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};ot.measure={};for(var pt=0;pt<=(ot.rest?ot.rest.length:0);pt++){var At=pt?ot.rest[pt-1]:ot.line,jt=void 0;dt.pos=0,dt.addToken=kl,Xi(it.display.measure)&&(jt=Qn(At,it.doc.direction))&&(dt.addToken=ma(dt.addToken,jt)),dt.map=[];var qt=ot!=it.display.externalMeasured&&Oe(At);wl(At,dt,sa(it,At,qt)),At.styleClasses&&(At.styleClasses.bgClass&&(dt.bgClass=jn(At.styleClasses.bgClass,dt.bgClass||"")),At.styleClasses.textClass&&(dt.textClass=jn(At.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(pa(it.display.measure))),pt==0?(ot.measure.map=dt.map,ot.measure.cache={}):((ot.measure.maps||(ot.measure.maps=[])).push(dt.map),(ot.measure.caches||(ot.measure.caches=[])).push({}))}if(Ut){var Yt=dt.content.lastChild;(/\bcm-tab\b/.test(Yt.className)||Yt.querySelector&&Yt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return In(it,"renderLine",it,ot.line,dt.pre),dt.pre.className&&(dt.textClass=jn(dt.pre.className,dt.textClass||"")),dt}function Us(it){var ot=$t("span","\u2022","cm-invalidchar");return ot.title="\\u"+it.charCodeAt(0).toString(16),ot.setAttribute("aria-label",ot.title),ot}function kl(it,ot,ct,dt,pt,At,jt){if(ot){var qt=it.splitSpaces?xu(ot,it.trailingSpace):ot,Yt=it.cm.state.specialChars,fe=!1,Ge;if(!Yt.test(ot))it.col+=ot.length,Ge=document.createTextNode(qt),it.map.push(it.pos,it.pos+ot.length,Ge),Pe&&Bt<9&&(fe=!0),it.pos+=ot.length;else{Ge=document.createDocumentFragment();for(var ge=0;;){Yt.lastIndex=ge;var dn=Yt.exec(ot),gn=dn?dn.index-ge:ot.length-ge;if(gn){var fi=document.createTextNode(qt.slice(ge,ge+gn));Pe&&Bt<9?Ge.appendChild($t("span",[fi])):Ge.appendChild(fi),it.map.push(it.pos,it.pos+gn,fi),it.col+=gn,it.pos+=gn}if(!dn)break;ge+=gn+1;var Ri=void 0;if(dn[0]==" "){var Ji=it.cm.options.tabSize,fr=Ji-it.col%Ji;Ri=Ge.appendChild($t("span",ve(fr),"cm-tab")),Ri.setAttribute("role","presentation"),Ri.setAttribute("cm-text"," "),it.col+=fr}else dn[0]=="\r"||dn[0]==`
|
|
`?(Ri=Ge.appendChild($t("span",dn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ri.setAttribute("cm-text",dn[0]),it.col+=1):(Ri=it.cm.options.specialCharPlaceholder(dn[0]),Ri.setAttribute("cm-text",dn[0]),Pe&&Bt<9?Ge.appendChild($t("span",[Ri])):Ge.appendChild(Ri),it.col+=1);it.map.push(it.pos,it.pos+1,Ri),it.pos++}}if(it.trailingSpace=qt.charCodeAt(ot.length-1)==32,ct||dt||pt||fe||At||jt){var _r=ct||"";dt&&(_r+=dt),pt&&(_r+=pt);var kr=$t("span",[Ge],_r,At);if(jt)for(var lo in jt)jt.hasOwnProperty(lo)&&lo!="style"&&lo!="class"&&kr.setAttribute(lo,jt[lo]);return it.content.appendChild(kr)}it.content.appendChild(Ge)}}function xu(it,ot){if(it.length>1&&!/ /.test(it))return it;for(var ct=ot,dt="",pt=0;pt<it.length;pt++){var At=it.charAt(pt);At==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(At="\xA0"),dt+=At,ct=At==" "}return dt}function ma(it,ot){return function(ct,dt,pt,At,jt,qt,Yt){pt=pt?pt+" cm-force-border":"cm-force-border";for(var fe=ct.pos,Ge=fe+dt.length;;){for(var ge=void 0,dn=0;dn<ot.length&&(ge=ot[dn],!(ge.to>fe&&ge.from<=fe));dn++);if(ge.to>=Ge)return it(ct,dt,pt,At,jt,qt,Yt);it(ct,dt.slice(0,ge.to-fe),pt,At,null,qt,Yt),At=null,dt=dt.slice(ge.to-fe),fe=ge.to}}}function Pl(it,ot,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+ot,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=ot,it.trailingSpace=!1}function wl(it,ot,ct){var dt=it.markedSpans,pt=it.text,At=0;if(!dt){for(var jt=1;jt<ct.length;jt+=2)ot.addToken(ot,pt.slice(At,At=ct[jt]),ks(ct[jt+1],ot.cm.options));return}for(var qt=pt.length,Yt=0,fe=1,Ge="",ge,dn,gn=0,fi,Ri,Ji,fr,_r;;){if(gn==Yt){fi=Ri=Ji=dn="",_r=null,fr=null,gn=1/0;for(var kr=[],lo=void 0,ea=0;ea<dt.length;++ea){var Ar=dt[ea],ja=Ar.marker;if(ja.type=="bookmark"&&Ar.from==Yt&&ja.widgetNode)kr.push(ja);else if(Ar.from<=Yt&&(Ar.to==null||Ar.to>Yt||ja.collapsed&&Ar.to==Yt&&Ar.from==Yt)){if(Ar.to!=null&&Ar.to!=Yt&&gn>Ar.to&&(gn=Ar.to,Ri=""),ja.className&&(fi+=" "+ja.className),ja.css&&(dn=(dn?dn+";":"")+ja.css),ja.startStyle&&Ar.from==Yt&&(Ji+=" "+ja.startStyle),ja.endStyle&&Ar.to==gn&&(lo||(lo=[])).push(ja.endStyle,Ar.to),ja.title&&((_r||(_r={})).title=ja.title),ja.attributes)for(var il in ja.attributes)(_r||(_r={}))[il]=ja.attributes[il];ja.collapsed&&(!fr||Ls(fr.marker,ja)<0)&&(fr=Ar)}else Ar.from>Yt&&gn>Ar.from&&(gn=Ar.from)}if(lo)for(var nu=0;nu<lo.length;nu+=2)lo[nu+1]==gn&&(Ri+=" "+lo[nu]);if(!fr||fr.from==Yt)for(var cl=0;cl<kr.length;++cl)Pl(ot,0,kr[cl]);if(fr&&(fr.from||0)==Yt){if(Pl(ot,(fr.to==null?qt+1:fr.to)-Yt,fr.marker,fr.from==null),fr.to==null)return;fr.to==Yt&&(fr=!1)}}if(Yt>=qt)break;for(var uh=Math.min(qt,gn);;){if(Ge){var Ru=Yt+Ge.length;if(!fr){var Vl=Ru>uh?Ge.slice(0,uh-Yt):Ge;ot.addToken(ot,Vl,ge?ge+fi:fi,Ji,Yt+Vl.length==gn?Ri:"",dn,_r)}if(Ru>=uh){Ge=Ge.slice(uh-Yt),Yt=uh;break}Yt=Ru,Ji=""}Ge=pt.slice(At,At=ct[fe++]),ge=ks(ct[fe++],ot.cm.options)}}}function su(it,ot,ct){this.line=ot,this.rest=er(ot),this.size=this.rest?Oe(ze(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=hn(it,ot)}function Aa(it,ot,ct){for(var dt=[],pt,At=ot;At<ct;At=pt){var jt=new su(it.doc,cn(it.doc,At),At);pt=At+jt.size,dt.push(jt)}return dt}var ps=null;function so(it){ps?ps.ops.push(it):it.ownsGroup=ps={ops:[it],delayedCallbacks:[]}}function Do(it){var ot=it.delayedCallbacks,ct=0;do{for(;ct<ot.length;ct++)ot[ct].call(null);for(var dt=0;dt<it.ops.length;dt++){var pt=it.ops[dt];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(ct<ot.length)}function ka(it,ot){var ct=it.ownsGroup;if(ct)try{Do(ct)}finally{ps=null,ot(ct)}}var ls=null;function qi(it,ot){var ct=gi(it,ot);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),pt;ps?pt=ps.delayedCallbacks:ls?pt=ls:(pt=ls=[],setTimeout(Gu,0));for(var At=function(qt){pt.push(function(){return ct[qt].apply(null,dt)})},jt=0;jt<ct.length;++jt)At(jt)}}function Gu(){var it=ls;ls=null;for(var ot=0;ot<it.length;++ot)it[ot]()}function zl(it,ot,ct,dt){for(var pt=0;pt<ot.changes.length;pt++){var At=ot.changes[pt];At=="text"?Bi(it,ot):At=="gutter"?Ns(it,ot,ct,dt):At=="class"?ds(it,ot):At=="widget"&&Xl(it,ot,dt)}ot.changes=null}function Cl(it){return it.node==it.text&&(it.node=$t("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Pe&&Bt<8&&(it.node.style.zIndex=2)),it.node}function Zh(it,ot){var ct=ot.bgClass?ot.bgClass+" "+(ot.line.bgClass||""):ot.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),ot.background)ct?ot.background.className=ct:(ot.background.parentNode.removeChild(ot.background),ot.background=null);else if(ct){var dt=Cl(ot);ot.background=dt.insertBefore($t("div",null,ct),dt.firstChild),it.display.input.setUneditable(ot.background)}}function Zu(it,ot){var ct=it.display.externalMeasured;return ct&&ct.line==ot.line?(it.display.externalMeasured=null,ot.measure=ct.measure,ct.built):en(it,ot)}function Bi(it,ot){var ct=ot.text.className,dt=Zu(it,ot);ot.text==ot.node&&(ot.node=dt.pre),ot.text.parentNode.replaceChild(dt.pre,ot.text),ot.text=dt.pre,dt.bgClass!=ot.bgClass||dt.textClass!=ot.textClass?(ot.bgClass=dt.bgClass,ot.textClass=dt.textClass,ds(it,ot)):ct&&(ot.text.className=ct)}function ds(it,ot){Zh(it,ot),ot.line.wrapClass?Cl(ot).className=ot.line.wrapClass:ot.node!=ot.text&&(ot.node.className="");var ct=ot.textClass?ot.textClass+" "+(ot.line.textClass||""):ot.line.textClass;ot.text.className=ct||""}function Ns(it,ot,ct,dt){if(ot.gutter&&(ot.node.removeChild(ot.gutter),ot.gutter=null),ot.gutterBackground&&(ot.node.removeChild(ot.gutterBackground),ot.gutterBackground=null),ot.line.gutterClass){var pt=Cl(ot);ot.gutterBackground=$t("div",null,"CodeMirror-gutter-background "+ot.line.gutterClass,"left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),it.display.input.setUneditable(ot.gutterBackground),pt.insertBefore(ot.gutterBackground,ot.text)}var At=ot.line.gutterMarkers;if(it.options.lineNumbers||At){var jt=Cl(ot),qt=ot.gutter=$t("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(qt),jt.insertBefore(qt,ot.text),ot.line.gutterClass&&(qt.className+=" "+ot.line.gutterClass),it.options.lineNumbers&&(!At||!At["CodeMirror-linenumbers"])&&(ot.lineNumber=qt.appendChild($t("div",Li(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),At)for(var Yt=0;Yt<it.display.gutterSpecs.length;++Yt){var fe=it.display.gutterSpecs[Yt].className,Ge=At.hasOwnProperty(fe)&&At[fe];Ge&&qt.appendChild($t("div",[Ge],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[fe]+"px; width: "+dt.gutterWidth[fe]+"px"))}}}function Xl(it,ot,ct){ot.alignable&&(ot.alignable=null);for(var dt=zt("CodeMirror-linewidget"),pt=ot.node.firstChild,At=void 0;pt;pt=At)At=pt.nextSibling,dt.test(pt.className)&&ot.node.removeChild(pt);Fs(it,ot,ct)}function Ms(it,ot,ct,dt){var pt=Zu(it,ot);return ot.text=ot.node=pt.pre,pt.bgClass&&(ot.bgClass=pt.bgClass),pt.textClass&&(ot.textClass=pt.textClass),ds(it,ot),Ns(it,ot,ct,dt),Fs(it,ot,dt),ot.node}function Fs(it,ot,ct){if(no(it,ot.line,ot,ct,!0),ot.rest)for(var dt=0;dt<ot.rest.length;dt++)no(it,ot.rest[dt],ot,ct,!1)}function no(it,ot,ct,dt,pt){if(ot.widgets)for(var At=Cl(ct),jt=0,qt=ot.widgets;jt<qt.length;++jt){var Yt=qt[jt],fe=$t("div",[Yt.node],"CodeMirror-linewidget"+(Yt.className?" "+Yt.className:""));Yt.handleMouseEvents||fe.setAttribute("cm-ignore-events","true"),Pa(Yt,fe,ct,dt),it.display.input.setUneditable(fe),pt&&Yt.above?At.insertBefore(fe,ct.gutter||ct.text):At.appendChild(fe),qi(Yt,"redraw")}}function Pa(it,ot,ct,dt){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(ot);var pt=dt.wrapperWidth;ot.style.left=dt.fixedPos+"px",it.coverGutter||(pt-=dt.gutterTotalWidth,ot.style.paddingLeft=dt.gutterTotalWidth+"px"),ot.style.width=pt+"px"}it.coverGutter&&(ot.style.zIndex=5,ot.style.position="relative",it.noHScroll||(ot.style.marginLeft=-dt.gutterTotalWidth+"px"))}function Qr(it){if(it.height!=null)return it.height;var ot=it.doc.cm;if(!ot)return 0;if(!Fe(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+ot.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+ot.display.wrapper.clientWidth+"px;"),oe(ot.display.measure,$t("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function ua(it,ot){for(var ct=Ur(ot);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function Za(it){return it.lineSpace.offsetTop}function Xs(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Nl(it){if(it.cachedPaddingH)return it.cachedPaddingH;var ot=oe(it.measure,$t("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(ot):ot.currentStyle,dt={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(it.cachedPaddingH=dt),dt}function Ts(it){return _e-it.display.nativeBarWidth}function fl(it){return it.display.scroller.clientWidth-Ts(it)-it.display.barWidth}function Pu(it){return it.display.scroller.clientHeight-Ts(it)-it.display.barHeight}function ph(it,ot,ct){var dt=it.options.lineWrapping,pt=dt&&fl(it);if(!ot.measure.heights||dt&&ot.measure.width!=pt){var At=ot.measure.heights=[];if(dt){ot.measure.width=pt;for(var jt=ot.text.firstChild.getClientRects(),qt=0;qt<jt.length-1;qt++){var Yt=jt[qt],fe=jt[qt+1];Math.abs(Yt.bottom-fe.bottom)>2&&At.push((Yt.bottom+fe.top)/2-ct.top)}}At.push(ct.bottom-ct.top)}}function mh(it,ot,ct){if(it.line==ot)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dt<it.rest.length;dt++)if(it.rest[dt]==ot)return{map:it.measure.maps[dt],cache:it.measure.caches[dt]};for(var pt=0;pt<it.rest.length;pt++)if(Oe(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function eh(it,ot){ot=Ho(ot);var ct=Oe(ot),dt=it.display.externalMeasured=new su(it.doc,ot,ct);dt.lineN=ct;var pt=dt.built=en(it,dt);return dt.text=pt.pre,oe(it.display.lineMeasure,pt.pre),dt}function Fu(it,ot,ct,dt){return nh(it,ac(it,ot),ct,dt)}function Yl(it,ot){if(ot>=it.display.viewFrom&&ot<it.display.viewTo)return it.display.view[Tu(it,ot)];var ct=it.display.externalMeasured;if(ct&&ot>=ct.lineN&&ot<ct.lineN+ct.size)return ct}function ac(it,ot){var ct=Oe(ot),dt=Yl(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&(zl(it,dt,ct,Mc(it)),it.curOp.forceUpdate=!0),dt||(dt=eh(it,ot));var pt=mh(dt,ot,ct);return{line:ot,view:dt,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function nh(it,ot,ct,dt,pt){ot.before&&(ct=-1);var At=ct+(dt||""),jt;return ot.cache.hasOwnProperty(At)?jt=ot.cache[At]:(ot.rect||(ot.rect=ot.view.text.getBoundingClientRect()),ot.hasHeights||(ph(it,ot.view,ot.rect),ot.hasHeights=!0),jt=al(it,ot,ct,dt),jt.bogus||(ot.cache[At]=jt)),{left:jt.left,right:jt.right,top:pt?jt.rtop:jt.top,bottom:pt?jt.rbottom:jt.bottom}}var dd={left:0,right:0,top:0,bottom:0};function Dd(it,ot,ct){for(var dt,pt,At,jt,qt,Yt,fe=0;fe<it.length;fe+=3)if(qt=it[fe],Yt=it[fe+1],ot<qt?(pt=0,At=1,jt="left"):ot<Yt?(pt=ot-qt,At=pt+1):(fe==it.length-3||ot==Yt&&it[fe+3]>ot)&&(At=Yt-qt,pt=At-1,ot>=Yt&&(jt="right")),pt!=null){if(dt=it[fe+2],qt==Yt&&ct==(dt.insertLeft?"left":"right")&&(jt=ct),ct=="left"&&pt==0)for(;fe&&it[fe-2]==it[fe-3]&&it[fe-1].insertLeft;)dt=it[(fe-=3)+2],jt="left";if(ct=="right"&&pt==Yt-qt)for(;fe<it.length-3&&it[fe+3]==it[fe+4]&&!it[fe+5].insertLeft;)dt=it[(fe+=3)+2],jt="right";break}return{node:dt,start:pt,end:At,collapse:jt,coverStart:qt,coverEnd:Yt}}function uf(it,ot){var ct=dd;if(ot=="left")for(var dt=0;dt<it.length&&(ct=it[dt]).left==ct.right;dt++);else for(var pt=it.length-1;pt>=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function al(it,ot,ct,dt){var pt=Dd(ot.map,ct,dt),At=pt.node,jt=pt.start,qt=pt.end,Yt=pt.collapse,fe;if(At.nodeType==3){for(var Ge=0;Ge<4;Ge++){for(;jt&&$e(ot.line.text.charAt(pt.coverStart+jt));)--jt;for(;pt.coverStart+qt<pt.coverEnd&&$e(ot.line.text.charAt(pt.coverStart+qt));)++qt;if(Pe&&Bt<9&&jt==0&&qt==pt.coverEnd-pt.coverStart?fe=At.parentNode.getBoundingClientRect():fe=uf(de(At,jt,qt).getClientRects(),dt),fe.left||fe.right||jt==0)break;qt=jt,jt=jt-1,Yt="right"}Pe&&Bt<11&&(fe=ag(it.display.measure,fe))}else{jt>0&&(Yt=dt="right");var ge;it.options.lineWrapping&&(ge=At.getClientRects()).length>1?fe=ge[dt=="right"?ge.length-1:0]:fe=At.getBoundingClientRect()}if(Pe&&Bt<9&&!jt&&(!fe||!fe.left&&!fe.right)){var dn=At.parentNode.getClientRects()[0];dn?fe={left:dn.left,right:dn.left+Lc(it.display),top:dn.top,bottom:dn.bottom}:fe=dd}for(var gn=fe.top-ot.rect.top,fi=fe.bottom-ot.rect.top,Ri=(gn+fi)/2,Ji=ot.view.measure.heights,fr=0;fr<Ji.length-1&&!(Ri<Ji[fr]);fr++);var _r=fr?Ji[fr-1]:0,kr=Ji[fr],lo={left:(Yt=="right"?fe.right:fe.left)-ot.rect.left,right:(Yt=="left"?fe.left:fe.right)-ot.rect.left,top:_r,bottom:kr};return!fe.left&&!fe.right&&(lo.bogus=!0),it.options.singleCursorHeightPerLine||(lo.rtop=gn,lo.rbottom=fi),lo}function ag(it,ot){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Un(it))return ot;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:ot.left*ct,right:ot.right*ct,top:ot.top*dt,bottom:ot.bottom*dt}}function hf(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var ot=0;ot<it.rest.length;ot++)it.measure.caches[ot]={}}function fd(it){it.display.externalMeasure=null,re(it.display.lineMeasure);for(var ot=0;ot<it.display.view.length;ot++)hf(it.display.view[ot])}function bc(it){fd(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Hl(){return se&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Fl(){return se&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ul(it){var ot=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(ot+=Qr(it.widgets[ct]));return ot}function bl(it,ot,ct,dt,pt){if(!pt){var At=ul(ot);ct.top+=At,ct.bottom+=At}if(dt=="line")return ct;dt||(dt="local");var jt=oo(ot);if(dt=="local"?jt+=Za(it.display):jt-=it.display.viewOffset,dt=="page"||dt=="window"){var qt=it.display.lineSpace.getBoundingClientRect();jt+=qt.top+(dt=="window"?0:Fl());var Yt=qt.left+(dt=="window"?0:Hl());ct.left+=Yt,ct.right+=Yt}return ct.top+=jt,ct.bottom+=jt,ct}function gd(it,ot,ct){if(ct=="div")return ot;var dt=ot.left,pt=ot.top;if(ct=="page")dt-=Hl(),pt-=Fl();else if(ct=="local"||!ct){var At=it.display.sizer.getBoundingClientRect();dt+=At.left,pt+=At.top}var jt=it.display.lineSpace.getBoundingClientRect();return{left:dt-jt.left,top:pt-jt.top}}function wu(it,ot,ct,dt,pt){return dt||(dt=cn(it.doc,ot.line)),bl(it,dt,Fu(it,dt,ot.ch,pt),ct)}function Ys(it,ot,ct,dt,pt,At){dt=dt||cn(it.doc,ot.line),pt||(pt=ac(it,dt));function jt(fi,Ri){var Ji=nh(it,pt,fi,Ri?"right":"left",At);return Ri?Ji.left=Ji.right:Ji.right=Ji.left,bl(it,dt,Ji,ct)}var qt=Qn(dt,it.doc.direction),Yt=ot.ch,fe=ot.sticky;if(Yt>=dt.text.length?(Yt=dt.text.length,fe="before"):Yt<=0&&(Yt=0,fe="after"),!qt)return jt(fe=="before"?Yt-1:Yt,fe=="before");function Ge(fi,Ri,Ji){var fr=qt[Ri],_r=fr.level==1;return jt(Ji?fi-1:fi,_r!=Ji)}var ge=Ue(qt,Yt,fe),dn=Mn,gn=Ge(Yt,ge,fe=="before");return dn!=null&&(gn.other=Ge(Yt,dn,fe!="before")),gn}function Nh(it,ot){var ct=0;ot=Gi(it.doc,ot),it.options.lineWrapping||(ct=Lc(it.display)*ot.ch);var dt=cn(it.doc,ot.line),pt=oo(dt)+Za(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function Zc(it,ot,ct,dt,pt){var At=qe(it,ot,ct);return At.xRel=pt,dt&&(At.outside=dt),At}function Bd(it,ot,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return Zc(dt.first,0,null,-1,-1);var pt=ni(dt,ct),At=dt.first+dt.size-1;if(pt>At)return Zc(dt.first+dt.size-1,cn(dt,At).text.length,null,1,1);ot<0&&(ot=0);for(var jt=cn(dt,pt);;){var qt=Vn(it,jt,pt,ot,ct),Yt=gs(jt,qt.ch+(qt.xRel>0||qt.outside>0?1:0));if(!Yt)return qt;var fe=Yt.find(1);if(fe.line==pt)return fe;jt=cn(dt,pt=fe.line)}}function br(it,ot,ct,dt){dt-=ul(ot);var pt=ot.text.length,At=fn(function(jt){return nh(it,ct,jt-1).bottom<=dt},pt,0);return pt=fn(function(jt){return nh(it,ct,jt).top>dt},At,pt),{begin:At,end:pt}}function cf(it,ot,ct,dt){ct||(ct=ac(it,ot));var pt=bl(it,ot,nh(it,ct,dt),"line").top;return br(it,ot,ct,pt)}function Ee(it,ot,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>ot}function Vn(it,ot,ct,dt,pt){pt-=oo(ot);var At=ac(it,ot),jt=ul(ot),qt=0,Yt=ot.text.length,fe=!0,Ge=Qn(ot,it.doc.direction);if(Ge){var ge=(it.options.lineWrapping?df:Od)(it,ot,ct,At,Ge,dt,pt);fe=ge.level!=1,qt=fe?ge.from:ge.to-1,Yt=fe?ge.to:ge.from-1}var dn=null,gn=null,fi=fn(function(ea){var Ar=nh(it,At,ea);return Ar.top+=jt,Ar.bottom+=jt,Ee(Ar,dt,pt,!1)?(Ar.top<=pt&&Ar.left<=dt&&(dn=ea,gn=Ar),!0):!1},qt,Yt),Ri,Ji,fr=!1;if(gn){var _r=dt-gn.left<gn.right-dt,kr=_r==fe;fi=dn+(kr?0:1),Ji=kr?"after":"before",Ri=_r?gn.left:gn.right}else{!fe&&(fi==Yt||fi==qt)&&fi++,Ji=fi==0?"after":fi==ot.text.length?"before":nh(it,At,fi-(fe?1:0)).bottom+jt<=pt==fe?"after":"before";var lo=Ys(it,qe(ct,fi,Ji),"line",ot,At);Ri=lo.left,fr=pt<lo.top?-1:pt>=lo.bottom?1:0}return fi=Je(ot.text,fi,1),Zc(ct,fi,Ji,fr,dt-Ri)}function Od(it,ot,ct,dt,pt,At,jt){var qt=fn(function(ge){var dn=pt[ge],gn=dn.level!=1;return Ee(Ys(it,qe(ct,gn?dn.to:dn.from,gn?"before":"after"),"line",ot,dt),At,jt,!0)},0,pt.length-1),Yt=pt[qt];if(qt>0){var fe=Yt.level!=1,Ge=Ys(it,qe(ct,fe?Yt.from:Yt.to,fe?"after":"before"),"line",ot,dt);Ee(Ge,At,jt,!0)&&Ge.top>jt&&(Yt=pt[qt-1])}return Yt}function df(it,ot,ct,dt,pt,At,jt){var qt=br(it,ot,dt,jt),Yt=qt.begin,fe=qt.end;/\s/.test(ot.text.charAt(fe-1))&&fe--;for(var Ge=null,ge=null,dn=0;dn<pt.length;dn++){var gn=pt[dn];if(!(gn.from>=fe||gn.to<=Yt)){var fi=gn.level!=1,Ri=nh(it,dt,fi?Math.min(fe,gn.to)-1:Math.max(Yt,gn.from)).right,Ji=Ri<At?At-Ri+1e9:Ri-At;(!Ge||ge>Ji)&&(Ge=gn,ge=Ji)}}return Ge||(Ge=pt[pt.length-1]),Ge.from<Yt&&(Ge={from:Yt,to:Ge.to,level:Ge.level}),Ge.to>fe&&(Ge={from:Ge.from,to:fe,level:Ge.level}),Ge}var Vh;function vh(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Vh==null){Vh=$t("pre",null,"CodeMirror-line-like");for(var ot=0;ot<49;++ot)Vh.appendChild(document.createTextNode("x")),Vh.appendChild($t("br"));Vh.appendChild(document.createTextNode("x"))}oe(it.measure,Vh);var ct=Vh.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),re(it.measure),ct||1}function Lc(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var ot=$t("span","xxxxxxxxxx"),ct=$t("pre",[ot],"CodeMirror-line-like");oe(it.measure,ct);var dt=ot.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Mc(it){for(var ot=it.display,ct={},dt={},pt=ot.gutters.clientLeft,At=ot.gutters.firstChild,jt=0;At;At=At.nextSibling,++jt){var qt=it.display.gutterSpecs[jt].className;ct[qt]=At.offsetLeft+At.clientLeft+pt,dt[qt]=At.clientWidth}return{fixedPos:sc(ot),gutterTotalWidth:ot.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:ot.wrapper.clientWidth}}function sc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Is(it){var ot=vh(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/Lc(it.display)-3);return function(pt){if(hn(it.doc,pt))return 0;var At=0;if(pt.widgets)for(var jt=0;jt<pt.widgets.length;jt++)pt.widgets[jt].height&&(At+=pt.widgets[jt].height);return ct?At+(Math.ceil(pt.text.length/dt)||1)*ot:At+ot}}function ho(it){var ot=it.doc,ct=Is(it);ot.iter(function(dt){var pt=ct(dt);pt!=dt.height&&mn(dt,pt)})}function Jl(it,ot,ct,dt){var pt=it.display;if(!ct&&Ur(ot).getAttribute("cm-not-content")=="true")return null;var At,jt,qt=pt.lineSpace.getBoundingClientRect();try{At=ot.clientX-qt.left,jt=ot.clientY-qt.top}catch(ge){return null}var Yt=Bd(it,At,jt),fe;if(dt&&Yt.xRel>0&&(fe=cn(it.doc,Yt.line).text).length==Yt.ch){var Ge=_t(fe,fe.length,it.options.tabSize)-fe.length;Yt=qe(Yt.line,Math.max(0,Math.round((At-Nl(it.display).left)/Lc(it.display))-Ge))}return Yt}function Tu(it,ot){if(ot>=it.display.viewTo||(ot-=it.display.viewFrom,ot<0))return null;for(var ct=it.display.view,dt=0;dt<ct.length;dt++)if(ot-=ct[dt].size,ot<0)return dt}function Ps(it,ot,ct,dt){ot==null&&(ot=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),dt||(dt=0);var pt=it.display;if(dt&&ct<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>ot)&&(pt.updateLineNumbers=ot),it.curOp.viewChanged=!0,ot>=pt.viewTo)Ln&&Qi(it.doc,ot)<pt.viewTo&&tl(it);else if(ct<=pt.viewFrom)Ln&&Er(it.doc,ct+dt)>pt.viewFrom?tl(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(ot<=pt.viewFrom&&ct>=pt.viewTo)tl(it);else if(ot<=pt.viewFrom){var At=lu(it,ct,ct+dt,1);At?(pt.view=pt.view.slice(At.index),pt.viewFrom=At.lineN,pt.viewTo+=dt):tl(it)}else if(ct>=pt.viewTo){var jt=lu(it,ot,ot,-1);jt?(pt.view=pt.view.slice(0,jt.index),pt.viewTo=jt.lineN):tl(it)}else{var qt=lu(it,ot,ot,-1),Yt=lu(it,ct,ct+dt,1);qt&&Yt?(pt.view=pt.view.slice(0,qt.index).concat(Aa(it,qt.lineN,Yt.lineN)).concat(pt.view.slice(Yt.index)),pt.viewTo+=dt):tl(it)}var fe=pt.externalMeasured;fe&&(ct<fe.lineN?fe.lineN+=dt:ot<fe.lineN+fe.size&&(pt.externalMeasured=null))}function da(it,ot,ct){it.curOp.viewChanged=!0;var dt=it.display,pt=it.display.externalMeasured;if(pt&&ot>=pt.lineN&&ot<pt.lineN+pt.size&&(dt.externalMeasured=null),!(ot<dt.viewFrom||ot>=dt.viewTo)){var At=dt.view[Tu(it,ot)];if(At.node!=null){var jt=At.changes||(At.changes=[]);ce(jt,ct)==-1&&jt.push(ct)}}}function tl(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function lu(it,ot,ct,dt){var pt=Tu(it,ot),At,jt=it.display.view;if(!Ln||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var qt=it.display.viewFrom,Yt=0;Yt<pt;Yt++)qt+=jt[Yt].size;if(qt!=ot){if(dt>0){if(pt==jt.length-1)return null;At=qt+jt[pt].size-ot,pt++}else At=qt-ot;ot+=At,ct+=At}for(;Qi(it.doc,ct)!=ct;){if(pt==(dt<0?0:jt.length-1))return null;ct+=dt*jt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Ss(it,ot,ct){var dt=it.display,pt=dt.view;pt.length==0||ot>=dt.viewTo||ct<=dt.viewFrom?(dt.view=Aa(it,ot,ct),dt.viewFrom=ot):(dt.viewFrom>ot?dt.view=Aa(it,ot,dt.viewFrom).concat(dt.view):dt.viewFrom<ot&&(dt.view=dt.view.slice(Tu(it,ot))),dt.viewFrom=ot,dt.viewTo<ct?dt.view=dt.view.concat(Aa(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,Tu(it,ct)))),dt.viewTo=ct}function Cu(it){for(var ot=it.display.view,ct=0,dt=0;dt<ot.length;dt++){var pt=ot[dt];!pt.hidden&&(!pt.node||pt.changes)&&++ct}return ct}function gl(it){it.display.input.showSelection(it.display.input.prepareSelection())}function ih(it,ot){ot===void 0&&(ot=!0);for(var ct=it.doc,dt={},pt=dt.cursors=document.createDocumentFragment(),At=dt.selection=document.createDocumentFragment(),jt=0;jt<ct.sel.ranges.length;jt++)if(!(!ot&&jt==ct.sel.primIndex)){var qt=ct.sel.ranges[jt];if(!(qt.from().line>=it.display.viewTo||qt.to().line<it.display.viewFrom)){var Yt=qt.empty();(Yt||it.options.showCursorWhenSelecting)&&Va(it,qt.head,pt),Yt||Na(it,qt,At)}}return dt}function Va(it,ot,ct){var dt=Ys(it,ot,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild($t("div","\xA0","CodeMirror-cursor"));if(pt.style.left=dt.left+"px",pt.style.top=dt.top+"px",pt.style.height=Math.max(0,dt.bottom-dt.top)*it.options.cursorHeight+"px",dt.other){var At=ct.appendChild($t("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));At.style.display="",At.style.left=dt.other.left+"px",At.style.top=dt.other.top+"px",At.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function Ql(it,ot){return it.top-ot.top||it.left-ot.left}function Na(it,ot,ct){var dt=it.display,pt=it.doc,At=document.createDocumentFragment(),jt=Nl(it.display),qt=jt.left,Yt=Math.max(dt.sizerWidth,fl(it)-dt.sizer.offsetLeft)-jt.right,fe=pt.direction=="ltr";function Ge(kr,lo,ea,Ar){lo<0&&(lo=0),lo=Math.round(lo),Ar=Math.round(Ar),At.appendChild($t("div",null,"CodeMirror-selected","position: absolute; left: "+kr+`px;
|
|
top: `+lo+"px; width: "+(ea==null?Yt-kr:ea)+`px;
|
|
height: `+(Ar-lo)+"px"))}function ge(kr,lo,ea){var Ar=cn(pt,kr),ja=Ar.text.length,il,nu;function cl(Vl,Ph){return wu(it,qe(kr,Vl),"div",Ar,Ph)}function uh(Vl,Ph,Lu){var Kl=cf(it,Ar,null,Vl),ys=Ph=="ltr"==(Lu=="after")?"left":"right",yl=Lu=="after"?Kl.begin:Kl.end-(/\s/.test(Ar.text.charAt(Kl.end-1))?2:1);return cl(yl,ys)[ys]}var Ru=Qn(Ar,pt.direction);return Ve(Ru,lo||0,ea==null?ja:ea,function(Vl,Ph,Lu,Kl){var ys=Lu=="ltr",yl=cl(Vl,ys?"left":"right"),uu=cl(Ph-1,ys?"right":"left"),Mu=lo==null&&Vl==0,gc=ea==null&&Ph==ja,dl=Kl==0,qh=!Ru||Kl==Ru.length-1;if(uu.top-yl.top<=3){var Al=(fe?Mu:gc)&&dl,sg=(fe?gc:Mu)&&qh,Oh=Al?qt:(ys?yl:uu).left,wh=sg?Yt:(ys?uu:yl).right;Ge(Oh,yl.top,wh-Oh,yl.bottom)}else{var hh,Gs,hu,_c;ys?(hh=fe&&Mu&&dl?qt:yl.left,Gs=fe?Yt:uh(Vl,Lu,"before"),hu=fe?qt:uh(Ph,Lu,"after"),_c=fe&&gc&&qh?Yt:uu.right):(hh=fe?uh(Vl,Lu,"before"):qt,Gs=!fe&&Mu&&dl?Yt:yl.right,hu=!fe&&gc&&qh?qt:uu.left,_c=fe?uh(Ph,Lu,"after"):Yt),Ge(hh,yl.top,Gs-hh,yl.bottom),yl.bottom<uu.top&&Ge(qt,yl.bottom,null,uu.top),Ge(hu,uu.top,_c-hu,uu.bottom)}(!il||Ql(yl,il)<0)&&(il=yl),Ql(uu,il)<0&&(il=uu),(!nu||Ql(yl,nu)<0)&&(nu=yl),Ql(uu,nu)<0&&(nu=uu)}),{start:il,end:nu}}var dn=ot.from(),gn=ot.to();if(dn.line==gn.line)ge(dn.line,dn.ch,gn.ch);else{var fi=cn(pt,dn.line),Ri=cn(pt,gn.line),Ji=Ho(fi)==Ho(Ri),fr=ge(dn.line,dn.ch,Ji?fi.text.length+1:null).end,_r=ge(gn.line,Ji?0:null,gn.ch).start;Ji&&(fr.top<_r.top-2?(Ge(fr.right,fr.top,null,fr.bottom),Ge(qt,_r.top,_r.left,_r.bottom)):Ge(fr.right,fr.top,_r.left-fr.right,fr.bottom)),fr.bottom<_r.top&&Ge(qt,fr.bottom,null,_r.top)}ct.appendChild(At)}function Ha(it){if(it.state.focused){var ot=it.display;clearInterval(ot.blinker);var ct=!0;ot.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?ot.blinker=setInterval(function(){it.hasFocus()||Ec(it),ot.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(ot.cursorDiv.style.visibility="hidden")}}function us(it){it.state.focused||(it.display.input.focus(),Ka(it))}function Hs(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Ec(it))},100)}function Ka(it,ot){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(In(it,"focus",it,ot),it.state.focused=!0,De(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Ut&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Ha(it))}function Ec(it,ot){it.state.delayingBlurEvent||(it.state.focused&&(In(it,"blur",it,ot),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 io(it){for(var ot=it.display,ct=ot.lineDiv.offsetTop,dt=0;dt<ot.view.length;dt++){var pt=ot.view[dt],At=it.options.lineWrapping,jt=void 0,qt=0;if(!pt.hidden){if(Pe&&Bt<8){var Yt=pt.node.offsetTop+pt.node.offsetHeight;jt=Yt-ct,ct=Yt}else{var fe=pt.node.getBoundingClientRect();jt=fe.bottom-fe.top,!At&&pt.text.firstChild&&(qt=pt.text.firstChild.getBoundingClientRect().right-fe.left-1)}var Ge=pt.line.height-jt;if((Ge>.005||Ge<-.005)&&(mn(pt.line,jt),Kh(pt.line),pt.rest))for(var ge=0;ge<pt.rest.length;ge++)Kh(pt.rest[ge]);if(qt>it.display.sizerWidth){var dn=Math.ceil(qt/Lc(it.display));dn>it.display.maxLineLength&&(it.display.maxLineLength=dn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Kh(it){if(it.widgets)for(var ot=0;ot<it.widgets.length;++ot){var ct=it.widgets[ot],dt=ct.node.parentNode;dt&&(ct.height=dt.offsetHeight)}}function Fa(it,ot,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-Za(it));var pt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,At=ni(ot,dt),jt=ni(ot,pt);if(ct&&ct.ensure){var qt=ct.ensure.from.line,Yt=ct.ensure.to.line;qt<At?(At=qt,jt=ni(ot,oo(cn(ot,qt))+it.wrapper.clientHeight)):Math.min(Yt,ot.lastLine())>=jt&&(At=ni(ot,oo(cn(ot,Yt))-it.wrapper.clientHeight),jt=Yt)}return{from:At,to:Math.max(jt,At+1)}}function zf(it,ot){if(!ei(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(ot.top+dt.top<0?pt=!0:ot.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!Ht){var At=$t("div","\u200B",null,`position: absolute;
|
|
top: `+(ot.top-ct.viewOffset-Za(it.display))+`px;
|
|
height: `+(ot.bottom-ot.top+Ts(it)+ct.barHeight)+`px;
|
|
left: `+ot.left+"px; width: "+Math.max(2,ot.right-ot.left)+"px;");it.display.lineSpace.appendChild(At),At.scrollIntoView(pt),it.display.lineSpace.removeChild(At)}}}function Ac(it,ot,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&ot==ct&&(ot=ot.ch?qe(ot.line,ot.sticky=="before"?ot.ch-1:ot.ch,"after"):ot,ct=ot.sticky=="before"?qe(ot.line,ot.ch+1,"before"):ot);for(var At=0;At<5;At++){var jt=!1,qt=Ys(it,ot),Yt=!ct||ct==ot?qt:Ys(it,ct);pt={left:Math.min(qt.left,Yt.left),top:Math.min(qt.top,Yt.top)-dt,right:Math.max(qt.left,Yt.left),bottom:Math.max(qt.bottom,Yt.bottom)+dt};var fe=ff(it,pt),Ge=it.doc.scrollTop,ge=it.doc.scrollLeft;if(fe.scrollTop!=null&&(ye(it,fe.scrollTop),Math.abs(it.doc.scrollTop-Ge)>1&&(jt=!0)),fe.scrollLeft!=null&&(Me(it,fe.scrollLeft),Math.abs(it.doc.scrollLeft-ge)>1&&(jt=!0)),!jt)break}return pt}function pd(it,ot){var ct=ff(it,ot);ct.scrollTop!=null&&ye(it,ct.scrollTop),ct.scrollLeft!=null&&Me(it,ct.scrollLeft)}function ff(it,ot){var ct=it.display,dt=vh(it.display);ot.top<0&&(ot.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,At=Pu(it),jt={};ot.bottom-ot.top>At&&(ot.bottom=ot.top+At);var qt=it.doc.height+Xs(ct),Yt=ot.top<dt,fe=ot.bottom>qt-dt;if(ot.top<pt)jt.scrollTop=Yt?0:ot.top;else if(ot.bottom>pt+At){var Ge=Math.min(ot.top,(fe?qt:ot.bottom)-At);Ge!=pt&&(jt.scrollTop=Ge)}var ge=it.options.fixedGutter?0:ct.gutters.offsetWidth,dn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-ge,gn=fl(it)-ct.gutters.offsetWidth,fi=ot.right-ot.left>gn;return fi&&(ot.right=ot.left+gn),ot.left<10?jt.scrollLeft=0:ot.left<dn?jt.scrollLeft=Math.max(0,ot.left+ge-(fi?0:10)):ot.right>gn+dn-3&&(jt.scrollLeft=ot.right+(fi?0:10)-gn),jt}function rh(it,ot){ot!=null&&(yh(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+ot)}function Uh(it){yh(it);var ot=it.getCursor();it.curOp.scrollToPos={from:ot,to:ot,margin:it.options.cursorScrollMargin}}function oh(it,ot,ct){(ot!=null||ct!=null)&&yh(it),ot!=null&&(it.curOp.scrollLeft=ot),ct!=null&&(it.curOp.scrollTop=ct)}function Ya(it,ot){yh(it),it.curOp.scrollToPos=ot}function yh(it){var ot=it.curOp.scrollToPos;if(ot){it.curOp.scrollToPos=null;var ct=Nh(it,ot.from),dt=Nh(it,ot.to);Vt(it,ct,dt,ot.margin)}}function Vt(it,ot,ct,dt){var pt=ff(it,{left:Math.min(ot.left,ct.left),top:Math.min(ot.top,ct.top)-dt,right:Math.max(ot.right,ct.right),bottom:Math.max(ot.bottom,ct.bottom)+dt});oh(it,pt.scrollLeft,pt.scrollTop)}function ye(it,ot){Math.abs(it.doc.scrollTop-ot)<2||(Pt||Gr(it,{top:ot}),be(it,ot,!0),Pt&&Gr(it),ra(it,100))}function be(it,ot,ct){ot=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,ot)),!(it.display.scroller.scrollTop==ot&&!ct)&&(it.doc.scrollTop=ot,it.display.scrollbars.setScrollTop(ot),it.display.scroller.scrollTop!=ot&&(it.display.scroller.scrollTop=ot))}function Me(it,ot,ct,dt){ot=Math.max(0,Math.min(ot,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?ot==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-ot)<2)&&!dt)&&(it.doc.scrollLeft=ot,Ra(it),it.display.scroller.scrollLeft!=ot&&(it.display.scroller.scrollLeft=ot),it.display.scrollbars.setScrollLeft(ot))}function Qe(it){var ot=it.display,ct=ot.gutters.offsetWidth,dt=Math.round(it.doc.height+Xs(it.display));return{clientHeight:ot.scroller.clientHeight,viewHeight:ot.wrapper.clientHeight,scrollWidth:ot.scroller.scrollWidth,clientWidth:ot.scroller.clientWidth,viewWidth:ot.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+Ts(it)+ot.barHeight,nativeBarWidth:ot.nativeBarWidth,gutterWidth:ct}}var ln=function(it,ot,ct){this.cm=ct;var dt=this.vert=$t("div",[$t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=$t("div",[$t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),pn(dt,"scroll",function(){dt.clientHeight&&ot(dt.scrollTop,"vertical")}),pn(pt,"scroll",function(){pt.clientWidth&&ot(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Pe&&Bt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ln.prototype.update=function(it){var ot=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=ot?dt+"px":"0";var pt=it.viewHeight-(ot?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ot){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var At=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+At)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:ot?dt:0}},ln.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ln.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ln.prototype.zeroWidthHack=function(){var it=ht&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Tt,this.disableVert=new Tt},ln.prototype.enableZeroWidthBar=function(it,ot,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),At=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);At!=it?it.style.pointerEvents="none":ot.set(1e3,dt)}ot.set(1e3,dt)},ln.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var yn=function(){};yn.prototype.update=function(){return{bottom:0,right:0}},yn.prototype.setScrollLeft=function(){},yn.prototype.setScrollTop=function(){},yn.prototype.clear=function(){};function On(it,ot){ot||(ot=Qe(it));var ct=it.display.barWidth,dt=it.display.barHeight;li(it,ot);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&io(it),li(it,Qe(it)),ct=it.display.barWidth,dt=it.display.barHeight}function li(it,ot){var ct=it.display,dt=ct.scrollbars.update(ot);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=ot.gutterWidth+"px"):ct.gutterFiller.style.display=""}var qn={native:ln,null:yn};function Ai(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Jt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new qn[it.options.scrollbarStyle](function(ot){it.display.wrapper.insertBefore(ot,it.display.scrollbarFiller),pn(ot,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),ot.setAttribute("cm-not-content","true")},function(ot,ct){ct=="horizontal"?Me(it,ot):ye(it,ot)},it),it.display.scrollbars.addClass&&De(it.display.wrapper,it.display.scrollbars.addClass)}var ri=0;function xi(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:++ri},so(it.curOp)}function di(it){var ot=it.curOp;ot&&ka(ot,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;ji(ct)})}function ji(it){for(var ot=it.ops,ct=0;ct<ot.length;ct++)_i(ot[ct]);for(var dt=0;dt<ot.length;dt++)Pr(ot[dt]);for(var pt=0;pt<ot.length;pt++)zr(ot[pt]);for(var At=0;At<ot.length;At++)Yi(ot[At]);for(var jt=0;jt<ot.length;jt++)mr(ot[jt])}function _i(it){var ot=it.cm,ct=ot.display;$a(ot),it.updateMaxLine&&$o(ot),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&ot.options.lineWrapping,it.update=it.mustUpdate&&new va(ot,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Pr(it){it.updatedDisplay=it.mustUpdate&&wo(it.cm,it.update)}function zr(it){var ot=it.cm,ct=ot.display;it.updatedDisplay&&io(ot),it.barMeasure=Qe(ot),ct.maxLineChanged&&!ot.options.lineWrapping&&(it.adjustWidthTo=Fu(ot,ct.maxLine,ct.maxLine.text.length).left+3,ot.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+Ts(ot)+ot.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-fl(ot))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Yi(it){var ot=it.cm;it.adjustWidthTo!=null&&(ot.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<ot.doc.scrollLeft&&Me(ot,Math.min(ot.display.scroller.scrollLeft,it.maxScrollLeft),!0),ot.display.maxLineChanged=!1);var ct=it.focus&&it.focus==rn();it.preparedSelection&&ot.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=ot.doc.height)&&On(ot,it.barMeasure),it.updatedDisplay&&Oo(ot,it.barMeasure),it.selectionChanged&&Ha(ot),ot.state.focused&&it.updateInput&&ot.display.input.reset(it.typing),ct&&us(it.cm)}function mr(it){var ot=it.cm,ct=ot.display,dt=ot.doc;if(it.updatedDisplay&&tr(ot,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&be(ot,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Me(ot,it.scrollLeft,!0,!0),it.scrollToPos){var pt=Ac(ot,Gi(dt,it.scrollToPos.from),Gi(dt,it.scrollToPos.to),it.scrollToPos.margin);zf(ot,pt)}var At=it.maybeHiddenMarkers,jt=it.maybeUnhiddenMarkers;if(At)for(var qt=0;qt<At.length;++qt)At[qt].lines.length||In(At[qt],"hide");if(jt)for(var Yt=0;Yt<jt.length;++Yt)jt[Yt].lines.length&&In(jt[Yt],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=ot.display.scroller.scrollTop),it.changeObjs&&In(ot,"changes",ot,it.changeObjs),it.update&&it.update.finish()}function nr(it,ot){if(it.curOp)return ot();xi(it);try{return ot()}finally{di(it)}}function jr(it,ot){return function(){if(it.curOp)return ot.apply(it,arguments);xi(it);try{return ot.apply(it,arguments)}finally{di(it)}}}function Po(it){return function(){if(this.curOp)return it.apply(this,arguments);xi(this);try{return it.apply(this,arguments)}finally{di(this)}}}function Or(it){return function(){var ot=this.cm;if(!ot||ot.curOp)return it.apply(this,arguments);xi(ot);try{return it.apply(this,arguments)}finally{di(ot)}}}function ra(it,ot){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(ot,an(vo,it))}function vo(it){var ot=it.doc;if(!(ot.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=la(it,ot.highlightFrontier),pt=[];ot.iter(dt.line,Math.min(ot.first+ot.size,it.display.viewTo+500),function(At){if(dt.line>=it.display.viewFrom){var jt=At.styles,qt=At.text.length>it.options.maxHighlightLength?Sn(ot.mode,dt.state):null,Yt=qo(it,At,dt,!0);qt&&(dt.state=qt),At.styles=Yt.styles;var fe=At.styleClasses,Ge=Yt.classes;Ge?At.styleClasses=Ge:fe&&(At.styleClasses=null);for(var ge=!jt||jt.length!=At.styles.length||fe!=Ge&&(!fe||!Ge||fe.bgClass!=Ge.bgClass||fe.textClass!=Ge.textClass),dn=0;!ge&&dn<jt.length;++dn)ge=jt[dn]!=At.styles[dn];ge&&pt.push(dt.line),At.stateAfter=dt.save(),dt.nextLine()}else At.text.length<=it.options.maxHighlightLength&&Ke(it,At.text,dt),At.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return ra(it,it.options.workDelay),!0}),ot.highlightFrontier=dt.line,ot.modeFrontier=Math.max(ot.modeFrontier,dt.line),pt.length&&nr(it,function(){for(var At=0;At<pt.length;At++)da(it,pt[At],"text")})}}var va=function(it,ot,ct){var dt=it.display;this.viewport=ot,this.visible=Fa(dt,it.doc,ot),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=fl(it),this.force=ct,this.dims=Mc(it),this.events=[]};va.prototype.signal=function(it,ot){hi(it,ot)&&this.events.push(arguments)},va.prototype.finish=function(){for(var it=0;it<this.events.length;it++)In.apply(null,this.events[it])};function $a(it){var ot=it.display;!ot.scrollbarsClipped&&ot.scroller.offsetWidth&&(ot.nativeBarWidth=ot.scroller.offsetWidth-ot.scroller.clientWidth,ot.heightForcer.style.height=Ts(it)+"px",ot.sizer.style.marginBottom=-ot.nativeBarWidth+"px",ot.sizer.style.borderRightWidth=Ts(it)+"px",ot.scrollbarsClipped=!0)}function wa(it){if(it.hasFocus())return null;var ot=rn();if(!ot||!Fe(it.display.lineDiv,ot))return null;var ct={activeElt:ot};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&Fe(it.display.lineDiv,dt.anchorNode)&&(ct.anchorNode=dt.anchorNode,ct.anchorOffset=dt.anchorOffset,ct.focusNode=dt.focusNode,ct.focusOffset=dt.focusOffset)}return ct}function yo(it){if(!(!it||!it.activeElt||it.activeElt==rn())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Fe(document.body,it.anchorNode)&&Fe(document.body,it.focusNode))){var ot=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),ot.removeAllRanges(),ot.addRange(ct),ot.extend(it.focusNode,it.focusOffset)}}function wo(it,ot){var ct=it.display,dt=it.doc;if(ot.editorIsHidden)return tl(it),!1;if(!ot.force&&ot.visible.from>=ct.viewFrom&&ot.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&Cu(it)==0)return!1;Ko(it)&&(tl(it),ot.dims=Mc(it));var pt=dt.first+dt.size,At=Math.max(ot.visible.from-it.options.viewportMargin,dt.first),jt=Math.min(pt,ot.visible.to+it.options.viewportMargin);ct.viewFrom<At&&At-ct.viewFrom<20&&(At=Math.max(dt.first,ct.viewFrom)),ct.viewTo>jt&&ct.viewTo-jt<20&&(jt=Math.min(pt,ct.viewTo)),Ln&&(At=Qi(it.doc,At),jt=Er(it.doc,jt));var qt=At!=ct.viewFrom||jt!=ct.viewTo||ct.lastWrapHeight!=ot.wrapperHeight||ct.lastWrapWidth!=ot.wrapperWidth;Ss(it,At,jt),ct.viewOffset=oo(cn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Yt=Cu(it);if(!qt&&Yt==0&&!ot.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var fe=wa(it);return Yt>4&&(ct.lineDiv.style.display="none"),ko(it,ct.updateLineNumbers,ot.dims),Yt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,yo(fe),re(ct.cursorDiv),re(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,qt&&(ct.lastWrapHeight=ot.wrapperHeight,ct.lastWrapWidth=ot.wrapperWidth,ra(it,400)),ct.updateLineNumbers=null,!0}function tr(it,ot){for(var ct=ot.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||ot.oldDisplayWidth==fl(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Xs(it.display)-Pu(it),ct.top)}),ot.visible=Fa(it.display,it.doc,ct),ot.visible.from>=it.display.viewFrom&&ot.visible.to<=it.display.viewTo)break}else dt&&(ot.visible=Fa(it.display,it.doc,ct));if(!wo(it,ot))break;io(it);var pt=Qe(it);gl(it),On(it,pt),Oo(it,pt),ot.force=!1}ot.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(ot.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Gr(it,ot){var ct=new va(it,ot);if(wo(it,ct)){io(it),tr(it,ct);var dt=Qe(it);gl(it),On(it,dt),Oo(it,dt),ct.finish()}}function ko(it,ot,ct){var dt=it.display,pt=it.options.lineNumbers,At=dt.lineDiv,jt=At.firstChild;function qt(fi){var Ri=fi.nextSibling;return Ut&&ht&&it.display.currentWheelTarget==fi?fi.style.display="none":fi.parentNode.removeChild(fi),Ri}for(var Yt=dt.view,fe=dt.viewFrom,Ge=0;Ge<Yt.length;Ge++){var ge=Yt[Ge];if(!ge.hidden)if(!ge.node||ge.node.parentNode!=At){var dn=Ms(it,ge,fe,ct);At.insertBefore(dn,jt)}else{for(;jt!=ge.node;)jt=qt(jt);var gn=pt&&ot!=null&&ot<=fe&&ge.lineNumber;ge.changes&&(ce(ge.changes,"gutter")>-1&&(gn=!1),zl(it,ge,fe,ct)),gn&&(re(ge.lineNumber),ge.lineNumber.appendChild(document.createTextNode(Li(it.options,fe)))),jt=ge.node.nextSibling}fe+=ge.size}for(;jt;)jt=qt(jt)}function Bo(it){var ot=it.gutters.offsetWidth;it.sizer.style.marginLeft=ot+"px"}function Oo(it,ot){it.display.sizer.style.minHeight=ot.docHeight+"px",it.display.heightForcer.style.top=ot.docHeight+"px",it.display.gutters.style.height=ot.docHeight+it.display.barHeight+Ts(it)+"px"}function Ra(it){var ot=it.display,ct=ot.view;if(!(!ot.alignWidgets&&(!ot.gutters.firstChild||!it.options.fixedGutter))){for(var dt=sc(ot)-ot.scroller.scrollLeft+it.doc.scrollLeft,pt=ot.gutters.offsetWidth,At=dt+"px",jt=0;jt<ct.length;jt++)if(!ct[jt].hidden){it.options.fixedGutter&&(ct[jt].gutter&&(ct[jt].gutter.style.left=At),ct[jt].gutterBackground&&(ct[jt].gutterBackground.style.left=At));var qt=ct[jt].alignable;if(qt)for(var Yt=0;Yt<qt.length;Yt++)qt[Yt].style.left=At}it.options.fixedGutter&&(ot.gutters.style.left=dt+pt+"px")}}function Ko(it){if(!it.options.lineNumbers)return!1;var ot=it.doc,ct=Li(it.options,ot.first+ot.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var pt=dt.measure.appendChild($t("div",[$t("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),At=pt.firstChild.offsetWidth,jt=pt.offsetWidth-At;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(At,dt.lineGutter.offsetWidth-jt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+jt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",Bo(it.display),!0}return!1}function ts(it,ot){for(var ct=[],dt=!1,pt=0;pt<it.length;pt++){var At=it[pt],jt=null;if(typeof At!="string"&&(jt=At.style,At=At.className),At=="CodeMirror-linenumbers")if(ot)dt=!0;else continue;ct.push({className:At,style:jt})}return ot&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function hs(it){var ot=it.gutters,ct=it.gutterSpecs;re(ot),it.lineGutter=null;for(var dt=0;dt<ct.length;++dt){var pt=ct[dt],At=pt.className,jt=pt.style,qt=ot.appendChild($t("div",null,"CodeMirror-gutter "+At));jt&&(qt.style.cssText=jt),At=="CodeMirror-linenumbers"&&(it.lineGutter=qt,qt.style.width=(it.lineNumWidth||1)+"px")}ot.style.display=ct.length?"":"none",Bo(it)}function ws(it){hs(it.display),Ps(it),Ra(it)}function pl(it,ot,ct,dt){var pt=this;this.input=ct,pt.scrollbarFiller=$t("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=$t("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=Le("div",null,"CodeMirror-code"),pt.selectionDiv=$t("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=$t("div",null,"CodeMirror-cursors"),pt.measure=$t("div",null,"CodeMirror-measure"),pt.lineMeasure=$t("div",null,"CodeMirror-measure"),pt.lineSpace=Le("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var At=Le("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=$t("div",[At],null,"position: relative"),pt.sizer=$t("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=$t("div",null,null,"position: absolute; height: "+_e+"px; width: 1px;"),pt.gutters=$t("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=$t("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=$t("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Pe&&Bt<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!Ut&&!(Pt&&et)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=ot.first,pt.reportedViewFrom=pt.reportedViewTo=ot.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=ts(dt.gutters,dt.lineNumbers),hs(pt),ct.init(pt)}var Ws=0,oa=null;Pe?oa=-.53:Pt?oa=15:se?oa=-.7:Xe&&(oa=-1/3);function Ta(it){var ot=it.wheelDeltaX,ct=it.wheelDeltaY;return ot==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(ot=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:ot,y:ct}}function Ja(it){var ot=Ta(it);return ot.x*=oa,ot.y*=oa,ot}function es(it,ot){var ct=Ta(ot),dt=ct.x,pt=ct.y,At=it.display,jt=At.scroller,qt=jt.scrollWidth>jt.clientWidth,Yt=jt.scrollHeight>jt.clientHeight;if(dt&&qt||pt&&Yt){if(pt&&ht&&Ut){t:for(var fe=ot.target,Ge=At.view;fe!=jt;fe=fe.parentNode)for(var ge=0;ge<Ge.length;ge++)if(Ge[ge].node==fe){it.display.currentWheelTarget=fe;break t}}if(dt&&!Pt&&!Se&&oa!=null){pt&&Yt&&ye(it,Math.max(0,jt.scrollTop+pt*oa)),Me(it,Math.max(0,jt.scrollLeft+dt*oa)),(!pt||pt&&Yt)&&pr(ot),At.wheelStartX=null;return}if(pt&&oa!=null){var dn=pt*oa,gn=it.doc.scrollTop,fi=gn+At.wrapper.clientHeight;dn<0?gn=Math.max(0,gn+dn-50):fi=Math.min(it.doc.height,fi+dn+50),Gr(it,{top:gn,bottom:fi})}Ws<20&&(At.wheelStartX==null?(At.wheelStartX=jt.scrollLeft,At.wheelStartY=jt.scrollTop,At.wheelDX=dt,At.wheelDY=pt,setTimeout(function(){if(At.wheelStartX!=null){var Ri=jt.scrollLeft-At.wheelStartX,Ji=jt.scrollTop-At.wheelStartY,fr=Ji&&At.wheelDY&&Ji/At.wheelDY||Ri&&At.wheelDX&&Ri/At.wheelDX;At.wheelStartX=At.wheelStartY=null,fr&&(oa=(oa*Ws+fr)/(Ws+1),++Ws)}},200)):(At.wheelDX+=dt,At.wheelDY+=pt))}}var Da=function(it,ot){this.ranges=it,this.primIndex=ot};Da.prototype.primary=function(){return this.ranges[this.primIndex]},Da.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var ot=0;ot<this.ranges.length;ot++){var ct=this.ranges[ot],dt=it.ranges[ot];if(!Ni(ct.anchor,dt.anchor)||!Ni(ct.head,dt.head))return!1}return!0},Da.prototype.deepCopy=function(){for(var it=[],ot=0;ot<this.ranges.length;ot++)it[ot]=new Yr(gr(this.ranges[ot].anchor),gr(this.ranges[ot].head));return new Da(it,this.primIndex)},Da.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Da.prototype.contains=function(it,ot){ot||(ot=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(oi(ot,dt.from())>=0&&oi(it,dt.to())<=0)return ct}return-1};var Yr=function(it,ot){this.anchor=it,this.head=ot};Yr.prototype.from=function(){return Si(this.anchor,this.head)},Yr.prototype.to=function(){return xr(this.anchor,this.head)},Yr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wa(it,ot,ct){var dt=it&&it.options.selectionsMayTouch,pt=ot[ct];ot.sort(function(dn,gn){return oi(dn.from(),gn.from())}),ct=ce(ot,pt);for(var At=1;At<ot.length;At++){var jt=ot[At],qt=ot[At-1],Yt=oi(qt.to(),jt.from());if(dt&&!jt.empty()?Yt>0:Yt>=0){var fe=Si(qt.from(),jt.from()),Ge=xr(qt.to(),jt.to()),ge=qt.empty()?jt.from()==jt.head:qt.from()==qt.head;At<=ct&&--ct,ot.splice(--At,2,new Yr(ge?Ge:fe,ge?fe:Ge))}}return new Da(ot,ct)}function Js(it,ot){return new Da([new Yr(it,ot||it)],0)}function Ll(it){return it.text?qe(it.from.line+it.text.length-1,ze(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function jl(it,ot){if(oi(it,ot.from)<0)return it;if(oi(it,ot.to)<=0)return Ll(ot);var ct=it.line+ot.text.length-(ot.to.line-ot.from.line)-1,dt=it.ch;return it.line==ot.to.line&&(dt+=Ll(ot).ch-ot.to.ch),qe(ct,dt)}function ql(it,ot){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var pt=it.sel.ranges[dt];ct.push(new Yr(jl(pt.anchor,ot),jl(pt.head,ot)))}return Wa(it.cm,ct,it.sel.primIndex)}function _l(it,ot,ct){return it.line==ot.line?qe(ct.line,it.ch-ot.ch+ct.ch):qe(ct.line+(it.line-ot.line),it.ch)}function bu(it,ot,ct){for(var dt=[],pt=qe(it.first,0),At=pt,jt=0;jt<ot.length;jt++){var qt=ot[jt],Yt=_l(qt.from,pt,At),fe=_l(Ll(qt),pt,At);if(pt=qt.to,At=fe,ct=="around"){var Ge=it.sel.ranges[jt],ge=oi(Ge.head,Ge.anchor)<0;dt[jt]=new Yr(ge?fe:Yt,ge?Yt:fe)}else dt[jt]=new Yr(Yt,Yt)}return new Da(dt,it.sel.primIndex)}function Co(it){it.doc.mode=le(it.options,it.doc.modeOption),$l(it)}function $l(it){it.doc.iter(function(ot){ot.stateAfter&&(ot.stateAfter=null),ot.styles&&(ot.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,ra(it,100),it.state.modeGen++,it.curOp&&Ps(it)}function ns(it,ot){return ot.from.ch==0&&ot.to.ch==0&&ze(ot.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ml(it,ot,ct,dt){function pt(_r){return ct?ct[_r]:null}function At(_r,kr,lo){as(_r,kr,lo,dt),qi(_r,"change",_r,ot)}function jt(_r,kr){for(var lo=[],ea=_r;ea<kr;++ea)lo.push(new ia(fe[ea],pt(ea),dt));return lo}var qt=ot.from,Yt=ot.to,fe=ot.text,Ge=cn(it,qt.line),ge=cn(it,Yt.line),dn=ze(fe),gn=pt(fe.length-1),fi=Yt.line-qt.line;if(ot.full)it.insert(0,jt(0,fe.length)),it.remove(fe.length,it.size-fe.length);else if(ns(it,ot)){var Ri=jt(0,fe.length-1);At(ge,ge.text,gn),fi&&it.remove(qt.line,fi),Ri.length&&it.insert(qt.line,Ri)}else if(Ge==ge)if(fe.length==1)At(Ge,Ge.text.slice(0,qt.ch)+dn+Ge.text.slice(Yt.ch),gn);else{var Ji=jt(1,fe.length-1);Ji.push(new ia(dn+Ge.text.slice(Yt.ch),gn,dt)),At(Ge,Ge.text.slice(0,qt.ch)+fe[0],pt(0)),it.insert(qt.line+1,Ji)}else if(fe.length==1)At(Ge,Ge.text.slice(0,qt.ch)+fe[0]+ge.text.slice(Yt.ch),pt(0)),it.remove(qt.line+1,fi);else{At(Ge,Ge.text.slice(0,qt.ch)+fe[0],pt(0)),At(ge,dn+ge.text.slice(Yt.ch),gn);var fr=jt(1,fe.length-1);fi>1&&it.remove(qt.line+1,fi-1),it.insert(qt.line+1,fr)}qi(it,"change",it,ot)}function Tl(it,ot,ct){function dt(pt,At,jt){if(pt.linked)for(var qt=0;qt<pt.linked.length;++qt){var Yt=pt.linked[qt];if(Yt.doc!=At){var fe=jt&&Yt.sharedHist;ct&&!fe||(ot(Yt.doc,fe),dt(Yt.doc,pt,fe))}}}dt(it,null,!0)}function el(it,ot){if(ot.cm)throw new Error("This document is already in use.");it.doc=ot,ot.cm=it,ho(it),Co(it),Du(it),it.options.lineWrapping||$o(it),it.options.mode=ot.modeOption,Ps(it)}function Du(it){(it.doc.direction=="rtl"?De:Jt)(it.display.lineDiv,"CodeMirror-rtl")}function Wl(it){nr(it,function(){Du(it),Ps(it)})}function Vu(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 zs(it,ot){var ct={from:gr(ot.from),to:Ll(ot),text:_n(it,ot.from,ot.to)};return Sh(it,ct,ot.from.line,ot.to.line+1),Tl(it,function(dt){return Sh(dt,ct,ot.from.line,ot.to.line+1)},!0),ct}function Bu(it){for(;it.length;){var ot=ze(it);if(ot.ranges)it.pop();else break}}function ah(it,ot){if(ot)return Bu(it.done),ze(it.done);if(it.done.length&&!ze(it.done).ranges)return ze(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),ze(it.done)}function Xh(it,ot,ct,dt){var pt=it.history;pt.undone.length=0;var At=+new Date,jt,qt;if((pt.lastOp==dt||pt.lastOrigin==ot.origin&&ot.origin&&(ot.origin.charAt(0)=="+"&&pt.lastModTime>At-(it.cm?it.cm.options.historyEventDelay:500)||ot.origin.charAt(0)=="*"))&&(jt=ah(pt,pt.lastOp==dt)))qt=ze(jt.changes),oi(ot.from,ot.to)==0&&oi(ot.from,qt.to)==0?qt.to=Ll(ot):jt.changes.push(zs(it,ot));else{var Yt=ze(pt.done);for((!Yt||!Yt.ranges)&&Dl(it.sel,pt.done),jt={changes:[zs(it,ot)],generation:pt.generation},pt.done.push(jt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=At,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=ot.origin,qt||In(it,"historyAdded")}function Vc(it,ot,ct,dt){var pt=ot.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function lc(it,ot,ct,dt){var pt=it.history,At=dt&&dt.origin;ct==pt.lastSelOp||At&&pt.lastSelOrigin==At&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==At||Vc(it,At,ze(pt.done),ot))?pt.done[pt.done.length-1]=ot:Dl(ot,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=At,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&Bu(pt.undone)}function Dl(it,ot){var ct=ze(ot);ct&&ct.ranges&&ct.equals(it)||ot.push(it)}function Sh(it,ot,ct,dt){var pt=ot["spans_"+it.id],At=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(jt){jt.markedSpans&&((pt||(pt=ot["spans_"+it.id]={}))[At]=jt.markedSpans),++At})}function Bl(it){if(!it)return null;for(var ot,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?ot||(ot=it.slice(0,ct)):ot&&ot.push(it[ct]);return ot?ot.length?ot:null:it}function Ku(it,ot){var ct=ot["spans_"+it.id];if(!ct)return null;for(var dt=[],pt=0;pt<ot.text.length;++pt)dt.push(Bl(ct[pt]));return dt}function Ou(it,ot){var ct=Ku(it,ot),dt=Ii(it,ot);if(!ct)return dt;if(!dt)return ct;for(var pt=0;pt<ct.length;++pt){var At=ct[pt],jt=dt[pt];if(At&&jt)t:for(var qt=0;qt<jt.length;++qt){for(var Yt=jt[qt],fe=0;fe<At.length;++fe)if(At[fe].marker==Yt.marker)continue t;At.push(Yt)}else jt&&(ct[pt]=jt)}return ct}function xh(it,ot,ct){for(var dt=[],pt=0;pt<it.length;++pt){var At=it[pt];if(At.ranges){dt.push(ct?Da.prototype.deepCopy.call(At):At);continue}var jt=At.changes,qt=[];dt.push({changes:qt});for(var Yt=0;Yt<jt.length;++Yt){var fe=jt[Yt],Ge=void 0;if(qt.push({from:fe.from,to:fe.to,text:fe.text}),ot)for(var ge in fe)(Ge=ge.match(/^spans_(\d+)$/))&&ce(ot,Number(Ge[1]))>-1&&(ze(qt)[ge]=fe[ge],delete fe[ge])}}return dt}function kc(it,ot,ct,dt){if(dt){var pt=it.anchor;if(ct){var At=oi(ot,pt)<0;At!=oi(ct,pt)<0?(pt=ot,ot=ct):At!=oi(ot,ct)<0&&(ot=ct)}return new Yr(pt,ot)}else return new Yr(ct||ot,ot)}function uc(it,ot,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Es(it,new Da([kc(it.sel.primary(),ot,ct,pt)],0),dt)}function Kc(it,ot,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),At=0;At<it.sel.ranges.length;At++)dt[At]=kc(it.sel.ranges[At],ot[At],null,pt);var jt=Wa(it.cm,dt,it.sel.primIndex);Es(it,jt,ct)}function Fh(it,ot,ct,dt){var pt=it.sel.ranges.slice(0);pt[ot]=ct,Es(it,Wa(it.cm,pt,it.sel.primIndex),dt)}function Uu(it,ot,ct,dt){Es(it,Js(ot,ct),dt)}function hc(it,ot,ct){var dt={ranges:ot.ranges,update:function(pt){this.ranges=[];for(var At=0;At<pt.length;At++)this.ranges[At]=new Yr(Gi(it,pt[At].anchor),Gi(it,pt[At].head))},origin:ct&&ct.origin};return In(it,"beforeSelectionChange",it,dt),it.cm&&In(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=ot.ranges?Wa(it.cm,dt.ranges,dt.ranges.length-1):ot}function Th(it,ot,ct){var dt=it.history.done,pt=ze(dt);pt&&pt.ranges?(dt[dt.length-1]=ot,Gl(it,ot,ct)):Es(it,ot,ct)}function Es(it,ot,ct){Gl(it,ot,ct),lc(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Gl(it,ot,ct){(hi(it,"beforeSelectionChange")||it.cm&&hi(it.cm,"beforeSelectionChange"))&&(ot=hc(it,ot,ct));var dt=ct&&ct.bias||(oi(ot.primary().head,it.sel.primary().head)<0?-1:1);sh(it,Rt(it,ot,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Uh(it.cm)}function sh(it,ot){ot.equals(it.sel)||(it.sel=ot,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Ki(it.cm)),qi(it,"cursorActivity",it))}function yt(it){sh(it,Rt(it,it.sel,null,!1))}function Rt(it,ot,ct,dt){for(var pt,At=0;At<ot.ranges.length;At++){var jt=ot.ranges[At],qt=ot.ranges.length==it.sel.ranges.length&&it.sel.ranges[At],Yt=Kt(it,jt.anchor,qt&&qt.anchor,ct,dt),fe=Kt(it,jt.head,qt&&qt.head,ct,dt);(pt||Yt!=jt.anchor||fe!=jt.head)&&(pt||(pt=ot.ranges.slice(0,At)),pt[At]=new Yr(Yt,fe))}return pt?Wa(it.cm,pt,ot.primIndex):ot}function It(it,ot,ct,dt,pt){var At=cn(it,ot.line);if(At.markedSpans)for(var jt=0;jt<At.markedSpans.length;++jt){var qt=At.markedSpans[jt],Yt=qt.marker,fe="selectLeft"in Yt?!Yt.selectLeft:Yt.inclusiveLeft,Ge="selectRight"in Yt?!Yt.selectRight:Yt.inclusiveRight;if((qt.from==null||(fe?qt.from<=ot.ch:qt.from<ot.ch))&&(qt.to==null||(Ge?qt.to>=ot.ch:qt.to>ot.ch))){if(pt&&(In(Yt,"beforeCursorEnter"),Yt.explicitlyCleared))if(At.markedSpans){--jt;continue}else break;if(!Yt.atomic)continue;if(ct){var ge=Yt.find(dt<0?1:-1),dn=void 0;if((dt<0?Ge:fe)&&(ge=me(it,ge,-dt,ge&&ge.line==ot.line?At:null)),ge&&ge.line==ot.line&&(dn=oi(ge,ct))&&(dt<0?dn<0:dn>0))return It(it,ge,ot,dt,pt)}var gn=Yt.find(dt<0?-1:1);return(dt<0?fe:Ge)&&(gn=me(it,gn,dt,gn.line==ot.line?At:null)),gn?It(it,gn,ot,dt,pt):null}}return ot}function Kt(it,ot,ct,dt,pt){var At=dt||1,jt=It(it,ot,ct,At,pt)||!pt&&It(it,ot,ct,At,!0)||It(it,ot,ct,-At,pt)||!pt&&It(it,ot,ct,-At,!0);return jt||(it.cantEdit=!0,qe(it.first,0))}function me(it,ot,ct,dt){return ct<0&&ot.ch==0?ot.line>it.first?Gi(it,qe(ot.line-1)):null:ct>0&&ot.ch==(dt||cn(it,ot.line)).text.length?ot.line<it.first+it.size-1?qe(ot.line+1,0):null:new qe(ot.line,ot.ch+ct)}function Re(it){it.setSelection(qe(it.firstLine(),0),qe(it.lastLine()),xe)}function nn(it,ot,ct){var dt={canceled:!1,from:ot.from,to:ot.to,text:ot.text,origin:ot.origin,cancel:function(){return dt.canceled=!0}};return ct&&(dt.update=function(pt,At,jt,qt){pt&&(dt.from=Gi(it,pt)),At&&(dt.to=Gi(it,At)),jt&&(dt.text=jt),qt!==void 0&&(dt.origin=qt)}),In(it,"beforeChange",it,dt),it.cm&&In(it.cm,"beforeChange",it.cm,dt),dt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function vn(it,ot,ct){if(it.cm){if(!it.cm.curOp)return jr(it.cm,vn)(it,ot,ct);if(it.cm.state.suppressEdits)return}if(!((hi(it,"beforeChange")||it.cm&&hi(it.cm,"beforeChange"))&&(ot=nn(it,ot,!0),!ot))){var dt=Mo&&!ct&&lr(it,ot.from,ot.to);if(dt)for(var pt=dt.length-1;pt>=0;--pt)Rn(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:ot.text,origin:ot.origin});else Rn(it,ot)}}function Rn(it,ot){if(!(ot.text.length==1&&ot.text[0]==""&&oi(ot.from,ot.to)==0)){var ct=ql(it,ot);Xh(it,ot,ct,it.cm?it.cm.curOp.id:NaN),wi(it,ot,ct,Ii(it,ot));var dt=[];Tl(it,function(pt,At){!At&&ce(dt,pt.history)==-1&&(Ci(pt.history,ot),dt.push(pt.history)),wi(pt,ot,null,Ii(pt,ot))})}}function Jn(it,ot,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,At,jt=it.sel,qt=ot=="undo"?pt.done:pt.undone,Yt=ot=="undo"?pt.undone:pt.done,fe=0;fe<qt.length&&(At=qt[fe],!(ct?At.ranges&&!At.equals(it.sel):!At.ranges));fe++);if(fe!=qt.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(At=qt.pop(),At.ranges){if(Dl(At,Yt),ct&&!At.equals(it.sel)){Es(it,At,{clearRedo:!1});return}jt=At}else if(dt){qt.push(At);return}else break;var Ge=[];Dl(jt,Yt),Yt.push({changes:Ge,generation:pt.generation}),pt.generation=At.generation||++pt.maxGeneration;for(var ge=hi(it,"beforeChange")||it.cm&&hi(it.cm,"beforeChange"),dn=function(Ri){var Ji=At.changes[Ri];if(Ji.origin=ot,ge&&!nn(it,Ji,!1))return qt.length=0,{};Ge.push(zs(it,Ji));var fr=Ri?ql(it,Ji):ze(qt);wi(it,Ji,fr,Ou(it,Ji)),!Ri&&it.cm&&it.cm.scrollIntoView({from:Ji.from,to:Ll(Ji)});var _r=[];Tl(it,function(kr,lo){!lo&&ce(_r,kr.history)==-1&&(Ci(kr.history,Ji),_r.push(kr.history)),wi(kr,Ji,null,Ou(kr,Ji))})},gn=At.changes.length-1;gn>=0;--gn){var fi=dn(gn);if(fi)return fi.v}}}}function kn(it,ot){if(ot!=0&&(it.first+=ot,it.sel=new Da(je(it.sel.ranges,function(pt){return new Yr(qe(pt.anchor.line+ot,pt.anchor.ch),qe(pt.head.line+ot,pt.head.ch))}),it.sel.primIndex),it.cm)){Ps(it.cm,it.first,it.first-ot,ot);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)da(it.cm,dt,"gutter")}}function wi(it,ot,ct,dt){if(it.cm&&!it.cm.curOp)return jr(it.cm,wi)(it,ot,ct,dt);if(ot.to.line<it.first){kn(it,ot.text.length-1-(ot.to.line-ot.from.line));return}if(!(ot.from.line>it.lastLine())){if(ot.from.line<it.first){var pt=ot.text.length-1-(it.first-ot.from.line);kn(it,pt),ot={from:qe(it.first,0),to:qe(ot.to.line+pt,ot.to.ch),text:[ze(ot.text)],origin:ot.origin}}var At=it.lastLine();ot.to.line>At&&(ot={from:ot.from,to:qe(At,cn(it,At).text.length),text:[ot.text[0]],origin:ot.origin}),ot.removed=_n(it,ot.from,ot.to),ct||(ct=ql(it,ot)),it.cm?Hi(it.cm,ot,dt):Ml(it,ot,dt),Gl(it,ct,xe),it.cantEdit&&Kt(it,qe(it.firstLine(),0))&&(it.cantEdit=!1)}}function Hi(it,ot,ct){var dt=it.doc,pt=it.display,At=ot.from,jt=ot.to,qt=!1,Yt=At.line;it.options.lineWrapping||(Yt=Oe(Ho(cn(dt,At.line))),dt.iter(Yt,jt.line+1,function(gn){if(gn==pt.maxLine)return qt=!0,!0})),dt.sel.contains(ot.from,ot.to)>-1&&Ki(it),Ml(dt,ot,ct,Is(it)),it.options.lineWrapping||(dt.iter(Yt,At.line+ot.text.length,function(gn){var fi=ca(gn);fi>pt.maxLineLength&&(pt.maxLine=gn,pt.maxLineLength=fi,pt.maxLineChanged=!0,qt=!1)}),qt&&(it.curOp.updateMaxLine=!0)),Ir(dt,At.line),ra(it,400);var fe=ot.text.length-(jt.line-At.line)-1;ot.full?Ps(it):At.line==jt.line&&ot.text.length==1&&!ns(it.doc,ot)?da(it,At.line,"text"):Ps(it,At.line,jt.line+1,fe);var Ge=hi(it,"changes"),ge=hi(it,"change");if(ge||Ge){var dn={from:At,to:jt,text:ot.text,removed:ot.removed,origin:ot.origin};ge&&qi(it,"change",it,dn),Ge&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(dn)}it.display.selForContextMenu=null}function Oi(it,ot,ct,dt,pt){var At;dt||(dt=ct),oi(dt,ct)<0&&(At=[dt,ct],ct=At[0],dt=At[1]),typeof ot=="string"&&(ot=it.splitLines(ot)),vn(it,{from:ct,to:dt,text:ot,origin:pt})}function pi(it,ot,ct,dt){ct<it.line?it.line+=dt:ot<it.line&&(it.line=ot,it.ch=0)}function Ei(it,ot,ct,dt){for(var pt=0;pt<it.length;++pt){var At=it[pt],jt=!0;if(At.ranges){At.copied||(At=it[pt]=At.deepCopy(),At.copied=!0);for(var qt=0;qt<At.ranges.length;qt++)pi(At.ranges[qt].anchor,ot,ct,dt),pi(At.ranges[qt].head,ot,ct,dt);continue}for(var Yt=0;Yt<At.changes.length;++Yt){var fe=At.changes[Yt];if(ct<fe.from.line)fe.from=qe(fe.from.line+dt,fe.from.ch),fe.to=qe(fe.to.line+dt,fe.to.ch);else if(ot<=fe.to.line){jt=!1;break}}jt||(it.splice(0,pt+1),pt=0)}}function Ci(it,ot){var ct=ot.from.line,dt=ot.to.line,pt=ot.text.length-(dt-ct)-1;Ei(it.done,ct,dt,pt),Ei(it.undone,ct,dt,pt)}function Kn(it,ot,ct,dt){var pt=ot,At=ot;return typeof ot=="number"?At=cn(it,Fi(it,ot)):pt=Oe(ot),pt==null?null:(dt(At,pt)&&it.cm&&da(it.cm,pt,ct),At)}function ci(it){this.lines=it,this.parent=null;for(var ot=0,ct=0;ct<it.length;++ct)it[ct].parent=this,ot+=it[ct].height;this.height=ot}ci.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,ot){for(var ct=it,dt=it+ot;ct<dt;++ct){var pt=this.lines[ct];this.height-=pt.height,Ks(pt),qi(pt,"delete")}this.lines.splice(it,ot)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,ot,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(ot).concat(this.lines.slice(it));for(var dt=0;dt<ot.length;++dt)ot[dt].parent=this},iterN:function(it,ot,ct){for(var dt=it+ot;it<dt;++it)if(ct(this.lines[it]))return!0}};function $n(it){this.children=it;for(var ot=0,ct=0,dt=0;dt<it.length;++dt){var pt=it[dt];ot+=pt.chunkSize(),ct+=pt.height,pt.parent=this}this.size=ot,this.height=ct,this.parent=null}$n.prototype={chunkSize:function(){return this.size},removeInner:function(it,ot){this.size-=ot;for(var ct=0;ct<this.children.length;++ct){var dt=this.children[ct],pt=dt.chunkSize();if(it<pt){var At=Math.min(ot,pt-it),jt=dt.height;if(dt.removeInner(it,At),this.height-=jt-dt.height,pt==At&&(this.children.splice(ct--,1),dt.parent=null),(ot-=At)==0)break;it=0}else it-=pt}if(this.size-ot<25&&(this.children.length>1||!(this.children[0]instanceof ci))){var qt=[];this.collapse(qt),this.children=[new ci(qt)],this.children[0].parent=this}},collapse:function(it){for(var ot=0;ot<this.children.length;++ot)this.children[ot].collapse(it)},insertInner:function(it,ot,ct){this.size+=ot.length,this.height+=ct;for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],At=pt.chunkSize();if(it<=At){if(pt.insertInner(it,ot,ct),pt.lines&&pt.lines.length>50){for(var jt=pt.lines.length%25+25,qt=jt;qt<pt.lines.length;){var Yt=new ci(pt.lines.slice(qt,qt+=25));pt.height-=Yt.height,this.children.splice(++dt,0,Yt),Yt.parent=this}pt.lines=pt.lines.slice(0,jt),this.maybeSpill()}break}it-=At}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var ot=it.children.splice(it.children.length-5,5),ct=new $n(ot);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=ce(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var dt=new $n(it.children);dt.parent=it,it.children=[dt,ct],it=dt}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,ot,ct){for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],At=pt.chunkSize();if(it<At){var jt=Math.min(ot,At-it);if(pt.iterN(it,jt,ct))return!0;if((ot-=jt)==0)break;it=0}else it-=At}}};var yi=function(it,ot,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=ot};yi.prototype.clear=function(){var it=this.doc.cm,ot=this.line.widgets,ct=this.line,dt=Oe(ct);if(!(dt==null||!ot)){for(var pt=0;pt<ot.length;++pt)ot[pt]==this&&ot.splice(pt--,1);ot.length||(ct.widgets=null);var At=Qr(this);mn(ct,Math.max(0,ct.height-At)),it&&(nr(it,function(){Ui(it,ct,-At),da(it,dt,"widget")}),qi(it,"lineWidgetCleared",it,this,dt))}},yi.prototype.changed=function(){var it=this,ot=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var pt=Qr(this)-ot;pt&&(hn(this.doc,dt)||mn(dt,dt.height+pt),ct&&nr(ct,function(){ct.curOp.forceUpdate=!0,Ui(ct,dt,pt),qi(ct,"lineWidgetChanged",ct,it,Oe(dt))}))},$i(yi);function Ui(it,ot,ct){oo(ot)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&rh(it,ct)}function Vi(it,ot,ct,dt){var pt=new yi(it,ct,dt),At=it.cm;return At&&pt.noHScroll&&(At.display.alignWidgets=!0),Kn(it,ot,"widget",function(jt){var qt=jt.widgets||(jt.widgets=[]);if(pt.insertAt==null?qt.push(pt):qt.splice(Math.min(qt.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=jt,At&&!hn(it,jt)){var Yt=oo(jt)<it.scrollTop;mn(jt,jt.height+Qr(pt)),Yt&&rh(At,pt.height),At.curOp.forceUpdate=!0}return!0}),At&&qi(At,"lineWidgetAdded",At,pt,typeof ot=="number"?ot:Oe(ot)),pt}var Zi=0,we=function(it,ot){this.lines=[],this.type=ot,this.doc=it,this.id=++Zi};we.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,ot=it&&!it.curOp;if(ot&&xi(it),hi(this,"clear")){var ct=this.find();ct&&qi(this,"clear",ct.from,ct.to)}for(var dt=null,pt=null,At=0;At<this.lines.length;++At){var jt=this.lines[At],qt=Ga(jt.markedSpans,this);it&&!this.collapsed?da(it,Oe(jt),"text"):it&&(qt.to!=null&&(pt=Oe(jt)),qt.from!=null&&(dt=Oe(jt))),jt.markedSpans=Te(jt.markedSpans,qt),qt.from==null&&this.collapsed&&!hn(this.doc,jt)&&it&&mn(jt,vh(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Yt=0;Yt<this.lines.length;++Yt){var fe=Ho(this.lines[Yt]),Ge=ca(fe);Ge>it.display.maxLineLength&&(it.display.maxLine=fe,it.display.maxLineLength=Ge,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&Ps(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&yt(it.doc)),it&&qi(it,"markerCleared",it,this,dt,pt),ot&&di(it),this.parent&&this.parent.clear()}},we.prototype.find=function(it,ot){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt<this.lines.length;++pt){var At=this.lines[pt],jt=Ga(At.markedSpans,this);if(jt.from!=null&&(ct=qe(ot?At:Oe(At),jt.from),it==-1))return ct;if(jt.to!=null&&(dt=qe(ot?At:Oe(At),jt.to),it==1))return dt}return ct&&{from:ct,to:dt}},we.prototype.changed=function(){var it=this,ot=this.find(-1,!0),ct=this,dt=this.doc.cm;!ot||!dt||nr(dt,function(){var pt=ot.line,At=Oe(ot.line),jt=Yl(dt,At);if(jt&&(hf(jt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!hn(ct.doc,pt)&&ct.height!=null){var qt=ct.height;ct.height=null;var Yt=Qr(ct)-qt;Yt&&mn(pt,pt.height+Yt)}qi(dt,"markerChanged",dt,it)})},we.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(!ot.maybeHiddenMarkers||ce(ot.maybeHiddenMarkers,this)==-1)&&(ot.maybeUnhiddenMarkers||(ot.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},we.prototype.detachLine=function(it){if(this.lines.splice(ce(this.lines,it),1),!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(ot.maybeHiddenMarkers||(ot.maybeHiddenMarkers=[])).push(this)}},$i(we);function yr(it,ot,ct,dt,pt){if(dt&&dt.shared)return Hr(it,ot,ct,dt,pt);if(it.cm&&!it.cm.curOp)return jr(it.cm,yr)(it,ot,ct,dt,pt);var At=new we(it,pt),jt=oi(ot,ct);if(dt&&Zn(dt,At,!1),jt>0||jt==0&&At.clearWhenEmpty!==!1)return At;if(At.replacedWith&&(At.collapsed=!0,At.widgetNode=Le("span",[At.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||At.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(At.widgetNode.insertLeft=!0)),At.collapsed){if(os(it,ot.line,ot,ct,At)||ot.line!=ct.line&&os(it,ct.line,ot,ct,At))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pn()}At.addToHistory&&Xh(it,{from:ot,to:ct,origin:"markText"},it.sel,NaN);var qt=ot.line,Yt=it.cm,fe;if(it.iter(qt,ct.line+1,function(ge){Yt&&At.collapsed&&!Yt.options.lineWrapping&&Ho(ge)==Yt.display.maxLine&&(fe=!0),At.collapsed&&qt!=ot.line&&mn(ge,0),Ze(ge,new Br(At,qt==ot.line?ot.ch:null,qt==ct.line?ct.ch:null)),++qt}),At.collapsed&&it.iter(ot.line,ct.line+1,function(ge){hn(it,ge)&&mn(ge,0)}),At.clearOnEnter&&pn(At,"beforeCursorEnter",function(){return At.clear()}),At.readOnly&&($r(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),At.collapsed&&(At.id=++Zi,At.atomic=!0),Yt){if(fe&&(Yt.curOp.updateMaxLine=!0),At.collapsed)Ps(Yt,ot.line,ct.line+1);else if(At.className||At.startStyle||At.endStyle||At.css||At.attributes||At.title)for(var Ge=ot.line;Ge<=ct.line;Ge++)da(Yt,Ge,"text");At.atomic&&yt(Yt.doc),qi(Yt,"markerAdded",Yt,At)}return At}var wr=function(it,ot){this.markers=it,this.primary=ot;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};wr.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();qi(this,"clear")}},wr.prototype.find=function(it,ot){return this.primary.find(it,ot)},$i(wr);function Hr(it,ot,ct,dt,pt){dt=Zn(dt),dt.shared=!1;var At=[yr(it,ot,ct,dt,pt)],jt=At[0],qt=dt.widgetNode;return Tl(it,function(Yt){qt&&(dt.widgetNode=qt.cloneNode(!0)),At.push(yr(Yt,Gi(Yt,ot),Gi(Yt,ct),dt,pt));for(var fe=0;fe<Yt.linked.length;++fe)if(Yt.linked[fe].isParent)return;jt=ze(At)}),new wr(At,jt)}function po(it){return it.findMarks(qe(it.first,0),it.clipPos(qe(it.lastLine())),function(ot){return ot.parent})}function Fr(it,ot){for(var ct=0;ct<ot.length;ct++){var dt=ot[ct],pt=dt.find(),At=it.clipPos(pt.from),jt=it.clipPos(pt.to);if(oi(At,jt)){var qt=yr(it,At,jt,dt.primary,dt.primary.type);dt.markers.push(qt),qt.parent=dt}}}function Zr(it){for(var ot=function(dt){var pt=it[dt],At=[pt.primary.doc];Tl(pt.primary.doc,function(Yt){return At.push(Yt)});for(var jt=0;jt<pt.markers.length;jt++){var qt=pt.markers[jt];ce(At,qt.doc)==-1&&(qt.parent=null,pt.markers.splice(jt--,1))}},ct=0;ct<it.length;ct++)ot(ct)}var ao=0,Dr=function(it,ot,ct,dt,pt){if(!(this instanceof Dr))return new Dr(it,ot,ct,dt,pt);ct==null&&(ct=0),$n.call(this,[new ci([new ia("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var At=qe(ct,0);this.sel=Js(At),this.history=new Vu(null),this.id=++ao,this.modeOption=ot,this.lineSep=dt,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ml(this,{from:At,to:At,text:it}),Es(this,Js(At),xe)};Dr.prototype=Lt($n.prototype,{constructor:Dr,iter:function(it,ot,ct){ct?this.iterN(it-this.first,ot-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,ot){for(var ct=0,dt=0;dt<ot.length;++dt)ct+=ot[dt].height;this.insertInner(it-this.first,ot,ct)},remove:function(it,ot){this.removeInner(it-this.first,ot)},getValue:function(it){var ot=vi(this,this.first,this.first+this.size);return it===!1?ot:ot.join(it||this.lineSeparator())},setValue:Or(function(it){var ot=qe(this.first,0),ct=this.first+this.size-1;vn(this,{from:ot,to:qe(ct,cn(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&oh(this.cm,0,0),Es(this,Js(ot),xe)}),replaceRange:function(it,ot,ct,dt){ot=Gi(this,ot),ct=ct?Gi(this,ct):ot,Oi(this,it,ot,ct,dt)},getRange:function(it,ot,ct){var dt=_n(this,Gi(this,it),Gi(this,ot));return ct===!1?dt:dt.join(ct||this.lineSeparator())},getLine:function(it){var ot=this.getLineHandle(it);return ot&&ot.text},getLineHandle:function(it){if(Pi(this,it))return cn(this,it)},getLineNumber:function(it){return Oe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=cn(this,it)),Ho(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Gi(this,it)},getCursor:function(it){var ot=this.sel.primary(),ct;return it==null||it=="head"?ct=ot.head:it=="anchor"?ct=ot.anchor:it=="end"||it=="to"||it===!1?ct=ot.to():ct=ot.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Or(function(it,ot,ct){Uu(this,Gi(this,typeof it=="number"?qe(it,ot||0):it),null,ct)}),setSelection:Or(function(it,ot,ct){Uu(this,Gi(this,it),Gi(this,ot||it),ct)}),extendSelection:Or(function(it,ot,ct){uc(this,Gi(this,it),ot&&Gi(this,ot),ct)}),extendSelections:Or(function(it,ot){Kc(this,hr(this,it),ot)}),extendSelectionsBy:Or(function(it,ot){var ct=je(this.sel.ranges,it);Kc(this,hr(this,ct),ot)}),setSelections:Or(function(it,ot,ct){if(it.length){for(var dt=[],pt=0;pt<it.length;pt++)dt[pt]=new Yr(Gi(this,it[pt].anchor),Gi(this,it[pt].head));ot==null&&(ot=Math.min(it.length-1,this.sel.primIndex)),Es(this,Wa(this.cm,dt,ot),ct)}}),addSelection:Or(function(it,ot,ct){var dt=this.sel.ranges.slice(0);dt.push(new Yr(Gi(this,it),Gi(this,ot||it))),Es(this,Wa(this.cm,dt,dt.length-1),ct)}),getSelection:function(it){for(var ot=this.sel.ranges,ct,dt=0;dt<ot.length;dt++){var pt=_n(this,ot[dt].from(),ot[dt].to());ct=ct?ct.concat(pt):pt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var ot=[],ct=this.sel.ranges,dt=0;dt<ct.length;dt++){var pt=_n(this,ct[dt].from(),ct[dt].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),ot[dt]=pt}return ot},replaceSelection:function(it,ot,ct){for(var dt=[],pt=0;pt<this.sel.ranges.length;pt++)dt[pt]=it;this.replaceSelections(dt,ot,ct||"+input")},replaceSelections:Or(function(it,ot,ct){for(var dt=[],pt=this.sel,At=0;At<pt.ranges.length;At++){var jt=pt.ranges[At];dt[At]={from:jt.from(),to:jt.to(),text:this.splitLines(it[At]),origin:ct}}for(var qt=ot&&ot!="end"&&bu(this,dt,ot),Yt=dt.length-1;Yt>=0;Yt--)vn(this,dt[Yt]);qt?Th(this,qt):this.cm&&Uh(this.cm)}),undo:Or(function(){Jn(this,"undo")}),redo:Or(function(){Jn(this,"redo")}),undoSelection:Or(function(){Jn(this,"undo",!0)}),redoSelection:Or(function(){Jn(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,ot=0,ct=0,dt=0;dt<it.done.length;dt++)it.done[dt].ranges||++ot;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++ct;return{undo:ot,redo:ct}},clearHistory:function(){var it=this;this.history=new Vu(this.history.maxGeneration),Tl(this,function(ot){return ot.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:xh(this.history.done),undone:xh(this.history.undone)}},setHistory:function(it){var ot=this.history=new Vu(this.history.maxGeneration);ot.done=xh(it.done.slice(0),null,!0),ot.undone=xh(it.undone.slice(0),null,!0)},setGutterMarker:Or(function(it,ot,ct){return Kn(this,it,"gutter",function(dt){var pt=dt.gutterMarkers||(dt.gutterMarkers={});return pt[ot]=ct,!ct&&kt(pt)&&(dt.gutterMarkers=null),!0})}),clearGutter:Or(function(it){var ot=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&Kn(ot,ct,"gutter",function(){return ct.gutterMarkers[it]=null,kt(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var ot;if(typeof it=="number"){if(!Pi(this,it)||(ot=it,it=cn(this,it),!it))return null}else if(ot=Oe(it),ot==null)return null;return{line:ot,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:Or(function(it,ot,ct){return Kn(this,it,ot=="gutter"?"gutter":"class",function(dt){var pt=ot=="text"?"textClass":ot=="background"?"bgClass":ot=="gutter"?"gutterClass":"wrapClass";if(!dt[pt])dt[pt]=ct;else{if(zt(ct).test(dt[pt]))return!1;dt[pt]+=" "+ct}return!0})}),removeLineClass:Or(function(it,ot,ct){return Kn(this,it,ot=="gutter"?"gutter":"class",function(dt){var pt=ot=="text"?"textClass":ot=="background"?"bgClass":ot=="gutter"?"gutterClass":"wrapClass",At=dt[pt];if(At)if(ct==null)dt[pt]=null;else{var jt=At.match(zt(ct));if(!jt)return!1;var qt=jt.index+jt[0].length;dt[pt]=At.slice(0,jt.index)+(!jt.index||qt==At.length?"":" ")+At.slice(qt)||null}else return!1;return!0})}),addLineWidget:Or(function(it,ot,ct){return Vi(this,it,ot,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,ot,ct){return yr(this,Gi(this,it),Gi(this,ot),ct,ct&&ct.type||"range")},setBookmark:function(it,ot){var ct={replacedWith:ot&&(ot.nodeType==null?ot.widget:ot),insertLeft:ot&&ot.insertLeft,clearWhenEmpty:!1,shared:ot&&ot.shared,handleMouseEvents:ot&&ot.handleMouseEvents};return it=Gi(this,it),yr(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Gi(this,it);var ot=[],ct=cn(this,it.line).markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt){var pt=ct[dt];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&ot.push(pt.marker.parent||pt.marker)}return ot},findMarks:function(it,ot,ct){it=Gi(this,it),ot=Gi(this,ot);var dt=[],pt=it.line;return this.iter(it.line,ot.line+1,function(At){var jt=At.markedSpans;if(jt)for(var qt=0;qt<jt.length;qt++){var Yt=jt[qt];!(Yt.to!=null&&pt==it.line&&it.ch>=Yt.to||Yt.from==null&&pt!=it.line||Yt.from!=null&&pt==ot.line&&Yt.from>=ot.ch)&&(!ct||ct(Yt.marker))&&dt.push(Yt.marker.parent||Yt.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(ot){var ct=ot.markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt)ct[dt].from!=null&&it.push(ct[dt].marker)}),it},posFromIndex:function(it){var ot,ct=this.first,dt=this.lineSeparator().length;return this.iter(function(pt){var At=pt.text.length+dt;if(At>it)return ot=it,!0;it-=At,++ct}),Gi(this,qe(ct,ot))},indexFromPos:function(it){it=Gi(this,it);var ot=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(dt){ot+=dt.text.length+ct}),ot},copy:function(it){var ot=new Dr(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ot.scrollTop=this.scrollTop,ot.scrollLeft=this.scrollLeft,ot.sel=this.sel,ot.extend=!1,it&&(ot.history.undoDepth=this.history.undoDepth,ot.setHistory(this.getHistory())),ot},linkedDoc:function(it){it||(it={});var ot=this.first,ct=this.first+this.size;it.from!=null&&it.from>ot&&(ot=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var dt=new Dr(vi(this,ot,ct),it.mode||this.modeOption,ot,this.lineSep,this.direction);return it.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:it.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Fr(dt,po(this)),dt},unlinkDoc:function(it){if(it instanceof Oa&&(it=it.doc),this.linked)for(var ot=0;ot<this.linked.length;++ot){var ct=this.linked[ot];if(ct.doc==it){this.linked.splice(ot,1),it.unlinkDoc(this),Zr(po(this));break}}if(it.history==this.history){var dt=[it.id];Tl(it,function(pt){return dt.push(pt.id)},!0),it.history=new Vu(null),it.history.done=xh(this.history.done,dt),it.history.undone=xh(this.history.undone,dt)}},iterLinkedDocs:function(it){Tl(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):bn(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Or(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(ot){return ot.order=null}),this.cm&&Wl(this.cm))})}),Dr.prototype.eachLine=Dr.prototype.iter;var So=0;function ta(it){var ot=this;if(to(ot),!(ei(ot,it)||ua(ot.display,it))){pr(it),Pe&&(So=+new Date);var ct=Jl(ot,it,!0),dt=it.dataTransfer.files;if(!(!ct||ot.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var pt=dt.length,At=Array(pt),jt=0,qt=function(){++jt==pt&&jr(ot,function(){ct=Gi(ot.doc,ct);var gn={from:ct,to:ct,text:ot.doc.splitLines(At.filter(function(fi){return fi!=null}).join(ot.doc.lineSeparator())),origin:"paste"};vn(ot.doc,gn),Th(ot.doc,Js(Gi(ot.doc,ct),Gi(ot.doc,Ll(gn))))})()},Yt=function(gn,fi){if(ot.options.allowDropFileTypes&&ce(ot.options.allowDropFileTypes,gn.type)==-1){qt();return}var Ri=new FileReader;Ri.onerror=function(){return qt()},Ri.onload=function(){var Ji=Ri.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ji)){qt();return}At[fi]=Ji,qt()},Ri.readAsText(gn)},fe=0;fe<dt.length;fe++)Yt(dt[fe],fe);else{if(ot.state.draggingText&&ot.doc.sel.contains(ct)>-1){ot.state.draggingText(it),setTimeout(function(){return ot.display.input.focus()},20);return}try{var Ge=it.dataTransfer.getData("Text");if(Ge){var ge;if(ot.state.draggingText&&!ot.state.draggingText.copy&&(ge=ot.listSelections()),Gl(ot.doc,Js(ct,ct)),ge)for(var dn=0;dn<ge.length;++dn)Oi(ot.doc,"",ge[dn].anchor,ge[dn].head,"drag");ot.replaceSelection(Ge,"around","paste"),ot.display.input.focus()}}catch(gn){}}}}function Wo(it,ot){if(Pe&&(!it.state.draggingText||+new Date-So<100)){sr(ot);return}if(!(ei(it,ot)||ua(it.display,ot))&&(ot.dataTransfer.setData("Text",it.getSelection()),ot.dataTransfer.effectAllowed="copyMove",ot.dataTransfer.setDragImage&&!Xe)){var ct=$t("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Se&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),ot.dataTransfer.setDragImage(ct,0,0),Se&&ct.parentNode.removeChild(ct)}}function zo(it,ot){var ct=Jl(it,ot);if(ct){var dt=document.createDocumentFragment();Va(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=$t("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),oe(it.display.dragCursor,dt)}}function to(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Lr(it){if(document.getElementsByClassName){for(var ot=document.getElementsByClassName("CodeMirror"),ct=[],dt=0;dt<ot.length;dt++){var pt=ot[dt].CodeMirror;pt&&ct.push(pt)}ct.length&&ct[0].operation(function(){for(var At=0;At<ct.length;At++)it(ct[At])})}}var qr=!1;function Cr(){qr||(Uo(),qr=!0)}function Uo(){var it;pn(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Lr(fa)},100))}),pn(window,"blur",function(){return Lr(Ec)})}function fa(it){var ot=it.display;ot.cachedCharWidth=ot.cachedTextHeight=ot.cachedPaddingH=null,ot.scrollbarsClipped=!1,it.setSize()}for(var No={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"},Qo=0;Qo<10;Qo++)No[Qo+48]=No[Qo+96]=String(Qo);for(var Ro=65;Ro<=90;Ro++)No[Ro]=String.fromCharCode(Ro);for(var ga=1;ga<=12;ga++)No[ga+111]=No[ga+63235]="F"+ga;var Io={};Io.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"},Io.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"},Io.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"},Io.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"]},Io.default=ht?Io.macDefault:Io.pcDefault;function La(it){var ot=it.split(/-(?!$)/);it=ot[ot.length-1];for(var ct,dt,pt,At,jt=0;jt<ot.length-1;jt++){var qt=ot[jt];if(/^(cmd|meta|m)$/i.test(qt))At=!0;else if(/^a(lt)?$/i.test(qt))ct=!0;else if(/^(c|ctrl|control)$/i.test(qt))dt=!0;else if(/^s(hift)?$/i.test(qt))pt=!0;else throw new Error("Unrecognized modifier name: "+qt)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),At&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Vr(it){var ot={};for(var ct in it)if(it.hasOwnProperty(ct)){var dt=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(dt=="..."){delete it[ct];continue}for(var pt=je(ct.split(" "),La),At=0;At<pt.length;At++){var jt=void 0,qt=void 0;At==pt.length-1?(qt=pt.join(" "),jt=dt):(qt=pt.slice(0,At+1).join(" "),jt="...");var Yt=ot[qt];if(!Yt)ot[qt]=jt;else if(Yt!=jt)throw new Error("Inconsistent bindings for "+qt)}delete it[ct]}for(var fe in ot)it[fe]=ot[fe];return it}function vr(it,ot,ct,dt){ot=jo(ot);var pt=ot.call?ot.call(it,dt):ot[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&ct(pt))return"handled";if(ot.fallthrough){if(Object.prototype.toString.call(ot.fallthrough)!="[object Array]")return vr(it,ot.fallthrough,ct,dt);for(var At=0;At<ot.fallthrough.length;At++){var jt=vr(it,ot.fallthrough[At],ct,dt);if(jt)return jt}}}function Go(it){var ot=typeof it=="string"?it:No[it.keyCode];return ot=="Ctrl"||ot=="Alt"||ot=="Shift"||ot=="Mod"}function bo(it,ot,ct){var dt=it;return ot.altKey&&dt!="Alt"&&(it="Alt-"+it),(xt?ot.metaKey:ot.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(xt?ot.ctrlKey:ot.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&ot.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function Ia(it,ot){if(Se&&it.keyCode==34&&it.char)return!1;var ct=No[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),bo(ct,it,ot))}function jo(it){return typeof it=="string"?Io[it]:it}function aa(it,ot){for(var ct=it.doc.sel.ranges,dt=[],pt=0;pt<ct.length;pt++){for(var At=ot(ct[pt]);dt.length&&oi(At.from,ze(dt).to)<=0;){var jt=dt.pop();if(oi(jt.from,At.from)<0){At.from=jt.from;break}}dt.push(At)}nr(it,function(){for(var qt=dt.length-1;qt>=0;qt--)Oi(it.doc,"",dt[qt].from,dt[qt].to,"+delete");Uh(it)})}function _a(it,ot,ct){var dt=Je(it.text,ot+ct,ct);return dt<0||dt>it.text.length?null:dt}function xo(it,ot,ct){var dt=_a(it,ot.ch,ct);return dt==null?null:new qe(ot.line,dt,ct<0?"after":"before")}function ya(it,ot,ct,dt,pt){if(it){ot.doc.direction=="rtl"&&(pt=-pt);var At=Qn(ct,ot.doc.direction);if(At){var jt=pt<0?ze(At):At[0],qt=pt<0==(jt.level==1),Yt=qt?"after":"before",fe;if(jt.level>0||ot.doc.direction=="rtl"){var Ge=ac(ot,ct);fe=pt<0?ct.text.length-1:0;var ge=nh(ot,Ge,fe).top;fe=fn(function(dn){return nh(ot,Ge,dn).top==ge},pt<0==(jt.level==1)?jt.from:jt.to-1,fe),Yt=="before"&&(fe=_a(ct,fe,1))}else fe=pt<0?jt.to:jt.from;return new qe(dt,fe,Yt)}}return new qe(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function Cs(it,ot,ct,dt){var pt=Qn(ot,it.doc.direction);if(!pt)return xo(ot,ct,dt);ct.ch>=ot.text.length?(ct.ch=ot.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var At=Ue(pt,ct.ch,ct.sticky),jt=pt[At];if(it.doc.direction=="ltr"&&jt.level%2==0&&(dt>0?jt.to>ct.ch:jt.from<ct.ch))return xo(ot,ct,dt);var qt=function(fr,_r){return _a(ot,fr instanceof qe?fr.ch:fr,_r)},Yt,fe=function(fr){return it.options.lineWrapping?(Yt=Yt||ac(it,ot),cf(it,ot,Yt,fr)):{begin:0,end:ot.text.length}},Ge=fe(ct.sticky=="before"?qt(ct,-1):ct.ch);if(it.doc.direction=="rtl"||jt.level==1){var ge=jt.level==1==dt<0,dn=qt(ct,ge?1:-1);if(dn!=null&&(ge?dn<=jt.to&&dn<=Ge.end:dn>=jt.from&&dn>=Ge.begin)){var gn=ge?"before":"after";return new qe(ct.line,dn,gn)}}var fi=function(fr,_r,kr){for(var lo=function(il,nu){return nu?new qe(ct.line,qt(il,1),"before"):new qe(ct.line,il,"after")};fr>=0&&fr<pt.length;fr+=_r){var ea=pt[fr],Ar=_r>0==(ea.level!=1),ja=Ar?kr.begin:qt(kr.end,-1);if(ea.from<=ja&&ja<ea.to||(ja=Ar?ea.from:qt(ea.to,-1),kr.begin<=ja&&ja<kr.end))return lo(ja,Ar)}},Ri=fi(At+dt,dt,Ge);if(Ri)return Ri;var Ji=dt>0?Ge.end:qt(Ge.begin,-1);return Ji!=null&&!(dt>0&&Ji==ot.text.length)&&(Ri=fi(dt>0?0:pt.length-1,dt,fe(Ji)),Ri)?Ri:null}var cs={selectAll:Re,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),xe)},killLine:function(it){return aa(it,function(ot){if(ot.empty()){var ct=cn(it.doc,ot.head.line).text.length;return ot.head.ch==ct&&ot.head.line<it.lastLine()?{from:ot.head,to:qe(ot.head.line+1,0)}:{from:ot.head,to:qe(ot.head.line,ct)}}else return{from:ot.from(),to:ot.to()}})},deleteLine:function(it){return aa(it,function(ot){return{from:qe(ot.from().line,0),to:Gi(it.doc,qe(ot.to().line+1,0))}})},delLineLeft:function(it){return aa(it,function(ot){return{from:qe(ot.from().line,0),to:ot.from()}})},delWrappedLineLeft:function(it){return aa(it,function(ot){var ct=it.charCoords(ot.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return{from:dt,to:ot.from()}})},delWrappedLineRight:function(it){return aa(it,function(ot){var ct=it.charCoords(ot.head,"div").top+5,dt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:ot.from(),to:dt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(qe(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(qe(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(ot){return Ds(it,ot.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(ot){return Ol(it,ot.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(ot){return ha(it,ot.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},tn)},goLineLeft:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},tn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(ot){var ct=it.cursorCoords(ot.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return dt.ch<it.getLine(dt.line).search(/\S/)?Ol(it,ot.head):dt},tn)},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 ot=[],ct=it.listSelections(),dt=it.options.tabSize,pt=0;pt<ct.length;pt++){var At=ct[pt].from(),jt=_t(it.getLine(At.line),At.ch,dt);ot.push(ve(dt-jt%dt))}it.replaceSelections(ot)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return nr(it,function(){for(var ot=it.listSelections(),ct=[],dt=0;dt<ot.length;dt++)if(ot[dt].empty()){var pt=ot[dt].head,At=cn(it.doc,pt.line).text;if(At){if(pt.ch==At.length&&(pt=new qe(pt.line,pt.ch-1)),pt.ch>0)pt=new qe(pt.line,pt.ch+1),it.replaceRange(At.charAt(pt.ch-1)+At.charAt(pt.ch-2),qe(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var jt=cn(it.doc,pt.line-1).text;jt&&(pt=new qe(pt.line,1),it.replaceRange(At.charAt(0)+it.doc.lineSeparator()+jt.charAt(jt.length-1),qe(pt.line-1,jt.length-1),pt,"+transpose"))}}ct.push(new Yr(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return nr(it,function(){for(var ot=it.listSelections(),ct=ot.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),ot[ct].anchor,ot[ct].head,"+input");ot=it.listSelections();for(var dt=0;dt<ot.length;dt++)it.indentLine(ot[dt].from().line,null,!0);Uh(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Ds(it,ot){var ct=cn(it.doc,ot),dt=Ho(ct);return dt!=ct&&(ot=Oe(dt)),ya(!0,it,dt,ot,1)}function ha(it,ot){var ct=cn(it.doc,ot),dt=_o(ct);return dt!=ct&&(ot=Oe(dt)),ya(!0,it,ct,ot,-1)}function Ol(it,ot){var ct=Ds(it,ot.line),dt=cn(it.doc,ct.line),pt=Qn(dt,it.doc.direction);if(!pt||pt[0].level==0){var At=Math.max(ct.ch,dt.text.search(/\S/)),jt=ot.line==ct.line&&ot.ch<=At&&ot.ch;return qe(ct.line,jt?0:At,ct.sticky)}return ct}function is(it,ot,ct){if(typeof ot=="string"&&(ot=cs[ot],!ot))return!1;it.display.input.ensurePolled();var dt=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),pt=ot(it)!=Ye}finally{it.display.shift=dt,it.state.suppressEdits=!1}return pt}function Ba(it,ot,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var pt=vr(ot,it.state.keyMaps[dt],ct,it);if(pt)return pt}return it.options.extraKeys&&vr(ot,it.options.extraKeys,ct,it)||vr(ot,it.options.keyMap,ct,it)}var za=new Tt;function js(it,ot,ct,dt){var pt=it.state.keySeq;if(pt){if(Go(ot))return"handled";if(/\'$/.test(ot)?it.state.keySeq=null:za.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),Sa(it,pt+" "+ot,ct,dt))return!0}return Sa(it,ot,ct,dt)}function Sa(it,ot,ct,dt){var pt=Ba(it,ot,dt);return pt=="multi"&&(it.state.keySeq=ot),pt=="handled"&&qi(it,"keyHandled",it,ot,ct),(pt=="handled"||pt=="multi")&&(pr(ct),Ha(it)),!!pt}function tu(it,ot){var ct=Ia(ot,!0);return ct?ot.shiftKey&&!it.state.keySeq?js(it,"Shift-"+ct,ot,function(dt){return is(it,dt,!0)})||js(it,ct,ot,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return is(it,dt)}):js(it,ct,ot,function(dt){return is(it,dt)}):!1}function Fo(it,ot,ct){return js(it,"'"+ct+"'",ot,function(dt){return is(it,dt,!0)})}var Kr=null;function qa(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&(ot.curOp.focus=rn(),!ei(ot,it))){Pe&&Bt<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;ot.display.shift=ct==16||it.shiftKey;var dt=tu(ot,it);Se&&(Kr=dt?ct:null,!dt&&ct==88&&!wn&&(ht?it.metaKey:it.ctrlKey)&&ot.replaceSelection("",null,"cut")),Pt&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(ot.display.lineDiv.className)&&Jr(ot)}}function Jr(it){var ot=it.display.lineDiv;De(ot,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(Jt(ot,"CodeMirror-crosshair"),Mi(document,"keyup",ct),Mi(document,"mouseover",ct))}pn(document,"keyup",ct),pn(document,"mouseover",ct)}function fo(it){it.keyCode==16&&(this.doc.sel.shift=!1),ei(this,it)}function ms(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&!(ua(ot.display,it)||ei(ot,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(Se&&ct==Kr){Kr=null,pr(it);return}if(!(Se&&(!it.which||it.which<10)&&tu(ot,it))){var pt=String.fromCharCode(dt==null?ct:dt);pt!="\b"&&(Fo(ot,it,pt)||ot.display.input.onKeyPress(it))}}}var Qs=400,qs=function(it,ot,ct){this.time=it,this.pos=ot,this.button=ct};qs.prototype.compare=function(it,ot,ct){return this.time+Qs>it&&oi(ot,this.pos)==0&&ct==this.button};var eu,ml;function lh(it,ot){var ct=+new Date;return ml&&ml.compare(ct,it,ot)?(eu=ml=null,"triple"):eu&&eu.compare(ct,it,ot)?(ml=new qs(ct,it,ot),eu=null,"double"):(eu=new qs(ct,it,ot),ml=null,"single")}function hl(it){var ot=this,ct=ot.display;if(!(ei(ot,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,ua(ct,it)){Ut||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Tc(ot,it)){var dt=Jl(ot,it),pt=Jo(it),At=dt?lh(dt,pt):"single";window.focus(),pt==1&&ot.state.selectingText&&ot.state.selectingText(it),!(dt&&Xu(ot,pt,dt,At,it))&&(pt==1?dt?fs(ot,dt,At,it):Ur(it)==ct.scroller&&pr(it):pt==2?(dt&&uc(ot.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(St?ot.display.input.onContextMenu(it):Hs(ot)))}}}function Xu(it,ot,ct,dt,pt){var At="Click";return dt=="double"?At="Double"+At:dt=="triple"&&(At="Triple"+At),At=(ot==1?"Left":ot==2?"Middle":"Right")+At,js(it,bo(At,pt),pt,function(jt){if(typeof jt=="string"&&(jt=cs[jt]),!jt)return!1;var qt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),qt=jt(it,ct)!=Ye}finally{it.state.suppressEdits=!1}return qt})}function na(it,ot,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,ot,ct):{};if(pt.unit==null){var At=lt?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=At?"rectangle":ot=="single"?"char":ot=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function fs(it,ot,ct,dt){Pe?setTimeout(an(us,it),0):it.curOp.focus=rn();var pt=na(it,ct,dt),At=it.doc.sel,jt;it.options.dragDrop&&Rr&&!it.isReadOnly()&&ct=="single"&&(jt=At.contains(ot))>-1&&(oi((jt=At.ranges[jt]).from(),ot)<0||ot.xRel>0)&&(oi(jt.to(),ot)>0||ot.xRel<0)?nl(it,dt,ot,pt):Dh(it,dt,ot,pt)}function nl(it,ot,ct,dt){var pt=it.display,At=!1,jt=jr(it,function(fe){Ut&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Mi(pt.wrapper.ownerDocument,"mouseup",jt),Mi(pt.wrapper.ownerDocument,"mousemove",qt),Mi(pt.scroller,"dragstart",Yt),Mi(pt.scroller,"drop",jt),At||(pr(fe),dt.addNew||uc(it.doc,ct,null,null,dt.extend),Ut&&!Xe||Pe&&Bt==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),qt=function(fe){At=At||Math.abs(ot.clientX-fe.clientX)+Math.abs(ot.clientY-fe.clientY)>=10},Yt=function(){return At=!0};Ut&&(pt.scroller.draggable=!0),it.state.draggingText=jt,jt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),pn(pt.wrapper.ownerDocument,"mouseup",jt),pn(pt.wrapper.ownerDocument,"mousemove",qt),pn(pt.scroller,"dragstart",Yt),pn(pt.scroller,"drop",jt),Hs(it),setTimeout(function(){return pt.input.focus()},20)}function Rl(it,ot,ct){if(ct=="char")return new Yr(ot,ot);if(ct=="word")return it.findWordAt(ot);if(ct=="line")return new Yr(qe(ot.line,0),Gi(it.doc,qe(ot.line+1,0)));var dt=ct(it,ot);return new Yr(dt.from,dt.to)}function Dh(it,ot,ct,dt){var pt=it.display,At=it.doc;pr(ot);var jt,qt,Yt=At.sel,fe=Yt.ranges;if(dt.addNew&&!dt.extend?(qt=At.sel.contains(ct),qt>-1?jt=fe[qt]:jt=new Yr(ct,ct)):(jt=At.sel.primary(),qt=At.sel.primIndex),dt.unit=="rectangle")dt.addNew||(jt=new Yr(ct,ct)),ct=Jl(it,ot,!0,!0),qt=-1;else{var Ge=Rl(it,ct,dt.unit);dt.extend?jt=kc(jt,Ge.anchor,Ge.head,dt.extend):jt=Ge}dt.addNew?qt==-1?(qt=fe.length,Es(At,Wa(it,fe.concat([jt]),qt),{scroll:!1,origin:"*mouse"})):fe.length>1&&fe[qt].empty()&&dt.unit=="char"&&!dt.extend?(Es(At,Wa(it,fe.slice(0,qt).concat(fe.slice(qt+1)),0),{scroll:!1,origin:"*mouse"}),Yt=At.sel):Fh(At,qt,jt,on):(qt=0,Es(At,new Da([jt],0),on),Yt=At.sel);var ge=ct;function dn(kr){if(oi(ge,kr)!=0)if(ge=kr,dt.unit=="rectangle"){for(var lo=[],ea=it.options.tabSize,Ar=_t(cn(At,ct.line).text,ct.ch,ea),ja=_t(cn(At,kr.line).text,kr.ch,ea),il=Math.min(Ar,ja),nu=Math.max(Ar,ja),cl=Math.min(ct.line,kr.line),uh=Math.min(it.lastLine(),Math.max(ct.line,kr.line));cl<=uh;cl++){var Ru=cn(At,cl).text,Vl=Cn(Ru,il,ea);il==nu?lo.push(new Yr(qe(cl,Vl),qe(cl,Vl))):Ru.length>Vl&&lo.push(new Yr(qe(cl,Vl),qe(cl,Cn(Ru,nu,ea))))}lo.length||lo.push(new Yr(ct,ct)),Es(At,Wa(it,Yt.ranges.slice(0,qt).concat(lo),qt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(kr)}else{var Ph=jt,Lu=Rl(it,kr,dt.unit),Kl=Ph.anchor,ys;oi(Lu.anchor,Kl)>0?(ys=Lu.head,Kl=Si(Ph.from(),Lu.anchor)):(ys=Lu.anchor,Kl=xr(Ph.to(),Lu.head));var yl=Yt.ranges.slice(0);yl[qt]=Nc(it,new Yr(Gi(At,Kl),ys)),Es(At,Wa(it,yl,qt),on)}}var gn=pt.wrapper.getBoundingClientRect(),fi=0;function Ri(kr){var lo=++fi,ea=Jl(it,kr,!0,dt.unit=="rectangle");if(ea)if(oi(ea,ge)!=0){it.curOp.focus=rn(),dn(ea);var Ar=Fa(pt,At);(ea.line>=Ar.to||ea.line<Ar.from)&&setTimeout(jr(it,function(){fi==lo&&Ri(kr)}),150)}else{var ja=kr.clientY<gn.top?-20:kr.clientY>gn.bottom?20:0;ja&&setTimeout(jr(it,function(){fi==lo&&(pt.scroller.scrollTop+=ja,Ri(kr))}),50)}}function Ji(kr){it.state.selectingText=!1,fi=1/0,kr&&(pr(kr),pt.input.focus()),Mi(pt.wrapper.ownerDocument,"mousemove",fr),Mi(pt.wrapper.ownerDocument,"mouseup",_r),At.history.lastSelOrigin=null}var fr=jr(it,function(kr){kr.buttons===0||!Jo(kr)?Ji(kr):Ri(kr)}),_r=jr(it,Ji);it.state.selectingText=_r,pn(pt.wrapper.ownerDocument,"mousemove",fr),pn(pt.wrapper.ownerDocument,"mouseup",_r)}function Nc(it,ot){var ct=ot.anchor,dt=ot.head,pt=cn(it.doc,ct.line);if(oi(ct,dt)==0&&ct.sticky==dt.sticky)return ot;var At=Qn(pt);if(!At)return ot;var jt=Ue(At,ct.ch,ct.sticky),qt=At[jt];if(qt.from!=ct.ch&&qt.to!=ct.ch)return ot;var Yt=jt+(qt.from==ct.ch==(qt.level!=1)?0:1);if(Yt==0||Yt==At.length)return ot;var fe;if(dt.line!=ct.line)fe=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Ge=Ue(At,dt.ch,dt.sticky),ge=Ge-jt||(dt.ch-ct.ch)*(qt.level==1?-1:1);Ge==Yt-1||Ge==Yt?fe=ge<0:fe=ge>0}var dn=At[Yt+(fe?-1:0)],gn=fe==(dn.level==1),fi=gn?dn.from:dn.to,Ri=gn?"after":"before";return ct.ch==fi&&ct.sticky==Ri?ot:new Yr(new qe(ct.line,fi,Ri),dt)}function Fc(it,ot,ct,dt){var pt,At;if(ot.touches)pt=ot.touches[0].clientX,At=ot.touches[0].clientY;else try{pt=ot.clientX,At=ot.clientY}catch(dn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&pr(ot);var jt=it.display,qt=jt.lineDiv.getBoundingClientRect();if(At>qt.bottom||!hi(it,ct))return ki(ot);At-=qt.top-jt.viewOffset;for(var Yt=0;Yt<it.display.gutterSpecs.length;++Yt){var fe=jt.gutters.childNodes[Yt];if(fe&&fe.getBoundingClientRect().right>=pt){var Ge=ni(it.doc,At),ge=it.display.gutterSpecs[Yt];return In(it,ct,it,Ge,ge.className,ot),ki(ot)}}}function Tc(it,ot){return Fc(it,ot,"gutterClick",!0)}function md(it,ot){ua(it.display,ot)||jf(it,ot)||ei(it,ot,"contextmenu")||St||it.display.input.onContextMenu(ot)}function jf(it,ot){return hi(it,"gutterContextMenu")?Fc(it,ot,"gutterContextMenu",!1):!1}function Rd(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),bc(it)}var Yh={toString:function(){return"CodeMirror.Init"}},Id={},vd={};function gf(it){var ot=it.optionHandlers;function ct(dt,pt,At,jt){it.defaults[dt]=pt,At&&(ot[dt]=jt?function(qt,Yt,fe){fe!=Yh&&At(qt,Yt,fe)}:At)}it.defineOption=ct,it.Init=Yh,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,Co(dt)},!0),ct("indentUnit",2,Co,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){$l(dt),bc(dt),Ps(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var At=[],jt=dt.doc.first;dt.doc.iter(function(Yt){for(var fe=0;;){var Ge=Yt.text.indexOf(pt,fe);if(Ge==-1)break;fe=Ge+pt.length,At.push(qe(jt,Ge))}jt++});for(var qt=At.length-1;qt>=0;qt--)Oi(dt.doc,pt,At[qt],qe(At[qt].line,At[qt].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,At){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),At!=Yh&&dt.refresh()}),ct("specialCharPlaceholder",Us,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",et?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){Rd(dt),ws(dt)},!0),ct("keyMap","default",function(dt,pt,At){var jt=jo(pt),qt=At!=Yh&&jo(At);qt&&qt.detach&&qt.detach(dt,jt),jt.attach&&jt.attach(dt,qt||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,zd,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=ts(pt,dt.options.lineNumbers),ws(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?sc(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return On(dt)},!0),ct("scrollbarStyle","native",function(dt){Ai(dt),On(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=ts(dt.options.gutters,pt),ws(dt)},!0),ct("firstLineNumber",1,ws,!0),ct("lineNumberFormatter",function(dt){return dt},ws,!0),ct("showCursorWhenSelecting",!1,gl,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(Ec(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,Bh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,gl,!0),ct("singleCursorHeightPerLine",!0,gl,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,$l,!0),ct("addModeClass",!1,$l,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,$l,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function Bh(it,ot,ct){var dt=ct&&ct!=Yh;if(!ot!=!dt){var pt=it.display.dragFunctions,At=ot?pn:Mi;At(it.display.scroller,"dragstart",pt.start),At(it.display.scroller,"dragenter",pt.enter),At(it.display.scroller,"dragover",pt.over),At(it.display.scroller,"dragleave",pt.leave),At(it.display.scroller,"drop",pt.drop)}}function zd(it){it.options.lineWrapping?(De(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Jt(it.display.wrapper,"CodeMirror-wrap"),$o(it)),ho(it),Ps(it),bc(it),setTimeout(function(){return On(it)},100)}function Oa(it,ot){var ct=this;if(!(this instanceof Oa))return new Oa(it,ot);this.options=ot=ot?Zn(ot):{},Zn(Id,ot,!1);var dt=ot.value;typeof dt=="string"?dt=new Dr(dt,ot.mode,null,ot.lineSeparator,ot.direction):ot.mode&&(dt.modeOption=ot.mode),this.doc=dt;var pt=new Oa.inputStyles[ot.inputStyle](this),At=this.display=new pl(it,dt,pt,ot);At.wrapper.CodeMirror=this,Rd(this),ot.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ai(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 Tt,keySeq:null,specialChars:null},ot.autofocus&&!et&&At.input.focus(),Pe&&Bt<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Uc(this),Cr(),xi(this),this.curOp.forceUpdate=!0,el(this,dt),ot.autofocus&&!et||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&Ka(ct)},20):Ec(this);for(var jt in vd)vd.hasOwnProperty(jt)&&vd[jt](this,ot[jt],Yh);Ko(this),ot.finishInit&&ot.finishInit(this);for(var qt=0;qt<cc.length;++qt)cc[qt](this);di(this),Ut&&ot.lineWrapping&&getComputedStyle(At.lineDiv).textRendering=="optimizelegibility"&&(At.lineDiv.style.textRendering="auto")}Oa.defaults=Id,Oa.optionHandlers=vd;function Uc(it){var ot=it.display;pn(ot.scroller,"mousedown",jr(it,hl)),Pe&&Bt<11?pn(ot.scroller,"dblclick",jr(it,function(Yt){if(!ei(it,Yt)){var fe=Jl(it,Yt);if(!(!fe||Tc(it,Yt)||ua(it.display,Yt))){pr(Yt);var Ge=it.findWordAt(fe);uc(it.doc,Ge.anchor,Ge.head)}}})):pn(ot.scroller,"dblclick",function(Yt){return ei(it,Yt)||pr(Yt)}),pn(ot.scroller,"contextmenu",function(Yt){return md(it,Yt)}),pn(ot.input.getField(),"contextmenu",function(Yt){ot.scroller.contains(Yt.target)||md(it,Yt)});var ct,dt={end:0};function pt(){ot.activeTouch&&(ct=setTimeout(function(){return ot.activeTouch=null},1e3),dt=ot.activeTouch,dt.end=+new Date)}function At(Yt){if(Yt.touches.length!=1)return!1;var fe=Yt.touches[0];return fe.radiusX<=1&&fe.radiusY<=1}function jt(Yt,fe){if(fe.left==null)return!0;var Ge=fe.left-Yt.left,ge=fe.top-Yt.top;return Ge*Ge+ge*ge>20*20}pn(ot.scroller,"touchstart",function(Yt){if(!ei(it,Yt)&&!At(Yt)&&!Tc(it,Yt)){ot.input.ensurePolled(),clearTimeout(ct);var fe=+new Date;ot.activeTouch={start:fe,moved:!1,prev:fe-dt.end<=300?dt:null},Yt.touches.length==1&&(ot.activeTouch.left=Yt.touches[0].pageX,ot.activeTouch.top=Yt.touches[0].pageY)}}),pn(ot.scroller,"touchmove",function(){ot.activeTouch&&(ot.activeTouch.moved=!0)}),pn(ot.scroller,"touchend",function(Yt){var fe=ot.activeTouch;if(fe&&!ua(ot,Yt)&&fe.left!=null&&!fe.moved&&new Date-fe.start<300){var Ge=it.coordsChar(ot.activeTouch,"page"),ge;!fe.prev||jt(fe,fe.prev)?ge=new Yr(Ge,Ge):!fe.prev.prev||jt(fe,fe.prev.prev)?ge=it.findWordAt(Ge):ge=new Yr(qe(Ge.line,0),Gi(it.doc,qe(Ge.line+1,0))),it.setSelection(ge.anchor,ge.head),it.focus(),pr(Yt)}pt()}),pn(ot.scroller,"touchcancel",pt),pn(ot.scroller,"scroll",function(){ot.scroller.clientHeight&&(ye(it,ot.scroller.scrollTop),Me(it,ot.scroller.scrollLeft,!0),In(it,"scroll",it))}),pn(ot.scroller,"mousewheel",function(Yt){return es(it,Yt)}),pn(ot.scroller,"DOMMouseScroll",function(Yt){return es(it,Yt)}),pn(ot.wrapper,"scroll",function(){return ot.wrapper.scrollTop=ot.wrapper.scrollLeft=0}),ot.dragFunctions={enter:function(Yt){ei(it,Yt)||sr(Yt)},over:function(Yt){ei(it,Yt)||(zo(it,Yt),sr(Yt))},start:function(Yt){return Wo(it,Yt)},drop:jr(it,ta),leave:function(Yt){ei(it,Yt)||to(it)}};var qt=ot.input.getField();pn(qt,"keyup",function(Yt){return fo.call(it,Yt)}),pn(qt,"keydown",jr(it,qa)),pn(qt,"keypress",jr(it,ms)),pn(qt,"focus",function(Yt){return Ka(it,Yt)}),pn(qt,"blur",function(Yt){return Ec(it,Yt)})}var cc=[];Oa.defineInitHook=function(it){return cc.push(it)};function El(it,ot,ct,dt){var pt=it.doc,At;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?At=la(it,ot).state:ct="prev");var jt=it.options.tabSize,qt=cn(pt,ot),Yt=_t(qt.text,null,jt);qt.stateAfter&&(qt.stateAfter=null);var fe=qt.text.match(/^\s*/)[0],Ge;if(!dt&&!/\S/.test(qt.text))Ge=0,ct="not";else if(ct=="smart"&&(Ge=pt.mode.indent(At,qt.text.slice(fe.length),qt.text),Ge==Ye||Ge>150)){if(!dt)return;ct="prev"}ct=="prev"?ot>pt.first?Ge=_t(cn(pt,ot-1).text,null,jt):Ge=0:ct=="add"?Ge=Yt+it.options.indentUnit:ct=="subtract"?Ge=Yt-it.options.indentUnit:typeof ct=="number"&&(Ge=Yt+ct),Ge=Math.max(0,Ge);var ge="",dn=0;if(it.options.indentWithTabs)for(var gn=Math.floor(Ge/jt);gn;--gn)dn+=jt,ge+=" ";if(dn<Ge&&(ge+=ve(Ge-dn)),ge!=fe)return Oi(pt,ge,qe(ot,0),qe(ot,fe.length),"+input"),qt.stateAfter=null,!0;for(var fi=0;fi<pt.sel.ranges.length;fi++){var Ri=pt.sel.ranges[fi];if(Ri.head.line==ot&&Ri.head.ch<fe.length){var Ji=qe(ot,fe.length);Fh(pt,fi,new Yr(Ji,Ji));break}}}var Zl=null;function Dc(it){Zl=it}function Bc(it,ot,ct,dt,pt){var At=it.doc;it.display.shift=!1,dt||(dt=At.sel);var jt=+new Date-200,qt=pt=="paste"||it.state.pasteIncoming>jt,Yt=bn(ot),fe=null;if(qt&&dt.ranges.length>1)if(Zl&&Zl.text.join(`
|
|
`)==ot){if(dt.ranges.length%Zl.text.length==0){fe=[];for(var Ge=0;Ge<Zl.text.length;Ge++)fe.push(At.splitLines(Zl.text[Ge]))}}else Yt.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(fe=je(Yt,function(fr){return[fr]}));for(var ge=it.curOp.updateInput,dn=dt.ranges.length-1;dn>=0;dn--){var gn=dt.ranges[dn],fi=gn.from(),Ri=gn.to();gn.empty()&&(ct&&ct>0?fi=qe(fi.line,fi.ch-ct):it.state.overwrite&&!qt?Ri=qe(Ri.line,Math.min(cn(At,Ri.line).text.length,Ri.ch+ze(Yt).length)):qt&&Zl&&Zl.lineWise&&Zl.text.join(`
|
|
`)==Yt.join(`
|
|
`)&&(fi=Ri=qe(fi.line,0)));var Ji={from:fi,to:Ri,text:fe?fe[dn%fe.length]:Yt,origin:pt||(qt?"paste":it.state.cutIncoming>jt?"cut":"+input")};vn(it.doc,Ji),qi(it,"inputRead",it,Ji)}ot&&!qt&&Xc(it,ot),Uh(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ge),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Jh(it,ot){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!ot.isReadOnly()&&!ot.options.disableInput&&nr(ot,function(){return Bc(ot,ct,0,null,"paste")}),!0}function Xc(it,ot){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var At=it.getModeAt(pt.head),jt=!1;if(At.electricChars){for(var qt=0;qt<At.electricChars.length;qt++)if(ot.indexOf(At.electricChars.charAt(qt))>-1){jt=El(it,pt.head.line,"smart");break}}else At.electricInput&&At.electricInput.test(cn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(jt=El(it,pt.head.line,"smart"));jt&&qi(it,"electricInput",it,pt.head.line)}}}function Yc(it){for(var ot=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var pt=it.doc.sel.ranges[dt].head.line,At={anchor:qe(pt,0),head:qe(pt+1,0)};ct.push(At),ot.push(it.getRange(At.anchor,At.head))}return{text:ot,ranges:ct}}function yd(it,ot,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!ot)}function jd(){var it=$t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ot=$t("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ut?it.style.width="1000px":it.setAttribute("wrap","off"),Dt&&(it.style.border="1px solid black"),yd(it),ot}function dc(it){var ot=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,pt){var At=this.options,jt=At[dt];At[dt]==pt&&dt!="mode"||(At[dt]=pt,ot.hasOwnProperty(dt)&&jr(this,ot[dt])(this,pt,jt),In(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,pt){this.state.keyMaps[pt?"push":"unshift"](jo(dt))},removeKeyMap:function(dt){for(var pt=this.state.keyMaps,At=0;At<pt.length;++At)if(pt[At]==dt||pt[At].name==dt)return pt.splice(At,1),!0},addOverlay:Po(function(dt,pt){var At=dt.token?dt:it.getMode(this.options,dt);if(At.startState)throw new Error("Overlays may not be stateful.");He(this.state.overlays,{mode:At,modeSpec:dt,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(jt){return jt.priority}),this.state.modeGen++,Ps(this)}),removeOverlay:Po(function(dt){for(var pt=this.state.overlays,At=0;At<pt.length;++At){var jt=pt[At].modeSpec;if(jt==dt||typeof dt=="string"&&jt.name==dt){pt.splice(At,1),this.state.modeGen++,Ps(this);return}}}),indentLine:Po(function(dt,pt,At){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Pi(this.doc,dt)&&El(this,dt,pt,At)}),indentSelection:Po(function(dt){for(var pt=this.doc.sel.ranges,At=-1,jt=0;jt<pt.length;jt++){var qt=pt[jt];if(qt.empty())qt.head.line>At&&(El(this,qt.head.line,dt,!0),At=qt.head.line,jt==this.doc.sel.primIndex&&Uh(this));else{var Yt=qt.from(),fe=qt.to(),Ge=Math.max(At,Yt.line);At=Math.min(this.lastLine(),fe.line-(fe.ch?0:1))+1;for(var ge=Ge;ge<At;++ge)El(this,ge,dt);var dn=this.doc.sel.ranges;Yt.ch==0&&pt.length==dn.length&&dn[jt].from().ch>0&&Fh(this.doc,jt,new Yr(Yt,dn[jt].to()),xe)}}}),getTokenAt:function(dt,pt){return Vo(this,dt,pt)},getLineTokens:function(dt,pt){return Vo(this,qe(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Gi(this.doc,dt);var pt=sa(this,cn(this.doc,dt.line)),At=0,jt=(pt.length-1)/2,qt=dt.ch,Yt;if(qt==0)Yt=pt[2];else for(;;){var fe=At+jt>>1;if((fe?pt[fe*2-1]:0)>=qt)jt=fe;else if(pt[fe*2+1]<qt)At=fe+1;else{Yt=pt[fe*2+2];break}}var Ge=Yt?Yt.indexOf("overlay "):-1;return Ge<0?Yt:Ge==0?null:Yt.slice(0,Ge-1)},getModeAt:function(dt){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(dt).state).mode:pt},getHelper:function(dt,pt){return this.getHelpers(dt,pt)[0]},getHelpers:function(dt,pt){var At=[];if(!ct.hasOwnProperty(pt))return At;var jt=ct[pt],qt=this.getModeAt(dt);if(typeof qt[pt]=="string")jt[qt[pt]]&&At.push(jt[qt[pt]]);else if(qt[pt])for(var Yt=0;Yt<qt[pt].length;Yt++){var fe=jt[qt[pt][Yt]];fe&&At.push(fe)}else qt.helperType&&jt[qt.helperType]?At.push(jt[qt.helperType]):jt[qt.name]&&At.push(jt[qt.name]);for(var Ge=0;Ge<jt._global.length;Ge++){var ge=jt._global[Ge];ge.pred(qt,this)&&ce(At,ge.val)==-1&&At.push(ge.val)}return At},getStateAfter:function(dt,pt){var At=this.doc;return dt=Fi(At,dt==null?At.first+At.size-1:dt),la(this,dt+1,pt).state},cursorCoords:function(dt,pt){var At,jt=this.doc.sel.primary();return dt==null?At=jt.head:typeof dt=="object"?At=Gi(this.doc,dt):At=dt?jt.from():jt.to(),Ys(this,At,pt||"page")},charCoords:function(dt,pt){return wu(this,Gi(this.doc,dt),pt||"page")},coordsChar:function(dt,pt){return dt=gd(this,dt,pt||"page"),Bd(this,dt.left,dt.top)},lineAtHeight:function(dt,pt){return dt=gd(this,{top:dt,left:0},pt||"page").top,ni(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,pt,At){var jt=!1,qt;if(typeof dt=="number"){var Yt=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>Yt&&(dt=Yt,jt=!0),qt=cn(this.doc,dt)}else qt=dt;return bl(this,qt,{top:0,left:0},pt||"page",At||jt).top+(jt?this.doc.height-oo(qt):0)},defaultTextHeight:function(){return vh(this.display)},defaultCharWidth:function(){return Lc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,At,jt,qt){var Yt=this.display;dt=Ys(this,Gi(this.doc,dt));var fe=dt.bottom,Ge=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Yt.sizer.appendChild(pt),jt=="over")fe=dt.top;else if(jt=="above"||jt=="near"){var ge=Math.max(Yt.wrapper.clientHeight,this.doc.height),dn=Math.max(Yt.sizer.clientWidth,Yt.lineSpace.clientWidth);(jt=="above"||dt.bottom+pt.offsetHeight>ge)&&dt.top>pt.offsetHeight?fe=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=ge&&(fe=dt.bottom),Ge+pt.offsetWidth>dn&&(Ge=dn-pt.offsetWidth)}pt.style.top=fe+"px",pt.style.left=pt.style.right="",qt=="right"?(Ge=Yt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(qt=="left"?Ge=0:qt=="middle"&&(Ge=(Yt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=Ge+"px"),At&&pd(this,{left:Ge,top:fe,right:Ge+pt.offsetWidth,bottom:fe+pt.offsetHeight})},triggerOnKeyDown:Po(qa),triggerOnKeyPress:Po(ms),triggerOnKeyUp:fo,triggerOnMouseDown:Po(hl),execCommand:function(dt){if(cs.hasOwnProperty(dt))return cs[dt].call(null,this)},triggerElectric:Po(function(dt){Xc(this,dt)}),findPosH:function(dt,pt,At,jt){var qt=1;pt<0&&(qt=-1,pt=-pt);for(var Yt=Gi(this.doc,dt),fe=0;fe<pt&&(Yt=Oc(this.doc,Yt,qt,At,jt),!Yt.hitSide);++fe);return Yt},moveH:Po(function(dt,pt){var At=this;this.extendSelectionsBy(function(jt){return At.display.shift||At.doc.extend||jt.empty()?Oc(At.doc,jt.head,dt,pt,At.options.rtlMoveVisually):dt<0?jt.from():jt.to()},tn)}),deleteH:Po(function(dt,pt){var At=this.doc.sel,jt=this.doc;At.somethingSelected()?jt.replaceSelection("",null,"+delete"):aa(this,function(qt){var Yt=Oc(jt,qt.head,dt,pt,!1);return dt<0?{from:Yt,to:qt.head}:{from:qt.head,to:Yt}})}),findPosV:function(dt,pt,At,jt){var qt=1,Yt=jt;pt<0&&(qt=-1,pt=-pt);for(var fe=Gi(this.doc,dt),Ge=0;Ge<pt;++Ge){var ge=Ys(this,fe,"div");if(Yt==null?Yt=ge.left:ge.left=Yt,fe=fc(this,ge,qt,At),fe.hitSide)break}return fe},moveV:Po(function(dt,pt){var At=this,jt=this.doc,qt=[],Yt=!this.display.shift&&!jt.extend&&jt.sel.somethingSelected();if(jt.extendSelectionsBy(function(Ge){if(Yt)return dt<0?Ge.from():Ge.to();var ge=Ys(At,Ge.head,"div");Ge.goalColumn!=null&&(ge.left=Ge.goalColumn),qt.push(ge.left);var dn=fc(At,ge,dt,pt);return pt=="page"&&Ge==jt.sel.primary()&&rh(At,wu(At,dn,"div").top-ge.top),dn},tn),qt.length)for(var fe=0;fe<jt.sel.ranges.length;fe++)jt.sel.ranges[fe].goalColumn=qt[fe]}),findWordAt:function(dt){var pt=this.doc,At=cn(pt,dt.line).text,jt=dt.ch,qt=dt.ch;if(At){var Yt=this.getHelper(dt,"wordChars");(dt.sticky=="before"||qt==At.length)&&jt?--jt:++qt;for(var fe=At.charAt(jt),Ge=Wt(fe,Yt)?function(ge){return Wt(ge,Yt)}:/\s/.test(fe)?function(ge){return/\s/.test(ge)}:function(ge){return!/\s/.test(ge)&&!Wt(ge)};jt>0&&Ge(At.charAt(jt-1));)--jt;for(;qt<At.length&&Ge(At.charAt(qt));)++qt}return new Yr(qe(dt.line,jt),qe(dt.line,qt))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?De(this.display.cursorDiv,"CodeMirror-overwrite"):Jt(this.display.cursorDiv,"CodeMirror-overwrite"),In(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==rn()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Po(function(dt,pt){oh(this,dt,pt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-Ts(this)-this.display.barHeight,width:dt.scrollWidth-Ts(this)-this.display.barWidth,clientHeight:Pu(this),clientWidth:fl(this)}},scrollIntoView:Po(function(dt,pt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:qe(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=pt||0,dt.from.line!=null?Ya(this,dt):Vt(this,dt.from,dt.to,dt.margin)}),setSize:Po(function(dt,pt){var At=this,jt=function(Yt){return typeof Yt=="number"||/^\d+$/.test(String(Yt))?Yt+"px":Yt};dt!=null&&(this.display.wrapper.style.width=jt(dt)),pt!=null&&(this.display.wrapper.style.height=jt(pt)),this.options.lineWrapping&&fd(this);var qt=this.display.viewFrom;this.doc.iter(qt,this.display.viewTo,function(Yt){if(Yt.widgets){for(var fe=0;fe<Yt.widgets.length;fe++)if(Yt.widgets[fe].noHScroll){da(At,qt,"widget");break}}++qt}),this.curOp.forceUpdate=!0,In(this,"refresh",this)}),operation:function(dt){return nr(this,dt)},startOperation:function(){return xi(this)},endOperation:function(){return di(this)},refresh:Po(function(){var dt=this.display.cachedTextHeight;Ps(this),this.curOp.forceUpdate=!0,bc(this),oh(this,this.doc.scrollLeft,this.doc.scrollTop),Bo(this.display),(dt==null||Math.abs(dt-vh(this.display))>.5||this.options.lineWrapping)&&ho(this),In(this,"refresh",this)}),swapDoc:Po(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),el(this,dt),bc(this),this.display.input.reset(),oh(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,qi(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},$i(it),it.registerHelper=function(dt,pt,At){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=At},it.registerGlobalHelper=function(dt,pt,At,jt){it.registerHelper(dt,pt,jt),ct[dt]._global.push({pred:At,val:jt})}}function Oc(it,ot,ct,dt,pt){var At=ot,jt=ct,qt=cn(it,ot.line),Yt=pt&&it.direction=="rtl"?-ct:ct;function fe(){var _r=ot.line+Yt;return _r<it.first||_r>=it.first+it.size?!1:(ot=new qe(_r,ot.ch,ot.sticky),qt=cn(it,_r))}function Ge(_r){var kr;if(dt=="codepoint"){var lo=qt.text.charCodeAt(ot.ch+(dt>0?0:-1));isNaN(lo)?kr=null:kr=new qe(ot.line,Math.max(0,Math.min(qt.text.length,ot.ch+ct*(lo>=55296&&lo<56320?2:1))),-ct)}else pt?kr=Cs(it.cm,qt,ot,ct):kr=xo(qt,ot,ct);if(kr==null)if(!_r&&fe())ot=ya(pt,it.cm,qt,ot.line,Yt);else return!1;else ot=kr;return!0}if(dt=="char"||dt=="codepoint")Ge();else if(dt=="column")Ge(!0);else if(dt=="word"||dt=="group")for(var ge=null,dn=dt=="group",gn=it.cm&&it.cm.getHelper(ot,"wordChars"),fi=!0;!(ct<0&&!Ge(!fi));fi=!1){var Ri=qt.text.charAt(ot.ch)||`
|
|
`,Ji=Wt(Ri,gn)?"w":dn&&Ri==`
|
|
`?"n":!dn||/\s/.test(Ri)?null:"p";if(dn&&!fi&&!Ji&&(Ji="s"),ge&&ge!=Ji){ct<0&&(ct=1,Ge(),ot.sticky="after");break}if(Ji&&(ge=Ji),ct>0&&!Ge(!fi))break}var fr=Kt(it,ot,At,jt,!0);return Ni(At,fr)&&(fr.hitSide=!0),fr}function fc(it,ot,ct,dt){var pt=it.doc,At=ot.left,jt;if(dt=="page"){var qt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Yt=Math.max(qt-.5*vh(it.display),3);jt=(ct>0?ot.bottom:ot.top)+ct*Yt}else dt=="line"&&(jt=ct>0?ot.bottom+3:ot.top-3);for(var fe;fe=Bd(it,At,jt),!!fe.outside;){if(ct<0?jt<=0:jt>=pt.height){fe.hitSide=!0;break}jt+=ct*5}return fe}var bs=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Tt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bs.prototype.init=function(it){var ot=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;yd(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function At(qt){for(var Yt=qt.target;Yt;Yt=Yt.parentNode){if(Yt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Yt.className))break}return!1}pn(pt,"paste",function(qt){!At(qt)||ei(dt,qt)||Jh(qt,dt)||Bt<=11&&setTimeout(jr(dt,function(){return ot.updateFromDOM()}),20)}),pn(pt,"compositionstart",function(qt){ot.composing={data:qt.data,done:!1}}),pn(pt,"compositionupdate",function(qt){ot.composing||(ot.composing={data:qt.data,done:!1})}),pn(pt,"compositionend",function(qt){ot.composing&&(qt.data!=ot.composing.data&&ot.readFromDOMSoon(),ot.composing.done=!0)}),pn(pt,"touchstart",function(){return ct.forceCompositionEnd()}),pn(pt,"input",function(){ot.composing||ot.readFromDOMSoon()});function jt(qt){if(!(!At(qt)||ei(dt,qt))){if(dt.somethingSelected())Dc({lineWise:!1,text:dt.getSelections()}),qt.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Yt=Yc(dt);Dc({lineWise:!0,text:Yt.text}),qt.type=="cut"&&dt.operation(function(){dt.setSelections(Yt.ranges,0,xe),dt.replaceSelection("",null,"cut")})}else return;if(qt.clipboardData){qt.clipboardData.clearData();var fe=Zl.text.join(`
|
|
`);if(qt.clipboardData.setData("Text",fe),qt.clipboardData.getData("Text")==fe){qt.preventDefault();return}}var Ge=jd(),ge=Ge.firstChild;dt.display.lineSpace.insertBefore(Ge,dt.display.lineSpace.firstChild),ge.value=Zl.text.join(`
|
|
`);var dn=document.activeElement;Bn(ge),setTimeout(function(){dt.display.lineSpace.removeChild(Ge),dn.focus(),dn==pt&&ct.showPrimarySelection()},50)}}pn(pt,"copy",jt),pn(pt,"cut",jt)},bs.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},bs.prototype.prepareSelection=function(){var it=ih(this.cm,!1);return it.focus=document.activeElement==this.div,it},bs.prototype.showSelection=function(it,ot){!it||!this.cm.display.view.length||((it.focus||ot)&&this.showPrimarySelection(),this.showMultipleSelections(it))},bs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bs.prototype.showPrimarySelection=function(){var it=this.getSelection(),ot=this.cm,ct=ot.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(ot.display.viewTo==ot.display.viewFrom||dt.line>=ot.display.viewTo||pt.line<ot.display.viewFrom){it.removeAllRanges();return}var At=Sd(ot,it.anchorNode,it.anchorOffset),jt=Sd(ot,it.focusNode,it.focusOffset);if(!(At&&!At.bad&&jt&&!jt.bad&&oi(Si(At,jt),dt)==0&&oi(xr(At,jt),pt)==0)){var qt=ot.display.view,Yt=dt.line>=ot.display.viewFrom&&Hd(ot,dt)||{node:qt[0].measure.map[2],offset:0},fe=pt.line<ot.display.viewTo&&Hd(ot,pt);if(!fe){var Ge=qt[qt.length-1].measure,ge=Ge.maps?Ge.maps[Ge.maps.length-1]:Ge.map;fe={node:ge[ge.length-1],offset:ge[ge.length-2]-ge[ge.length-3]}}if(!Yt||!fe){it.removeAllRanges();return}var dn=it.rangeCount&&it.getRangeAt(0),gn;try{gn=de(Yt.node,Yt.offset,fe.offset,fe.node)}catch(fi){}gn&&(!Pt&&ot.state.focused?(it.collapse(Yt.node,Yt.offset),gn.collapsed||(it.removeAllRanges(),it.addRange(gn))):(it.removeAllRanges(),it.addRange(gn)),dn&&it.anchorNode==null?it.addRange(dn):Pt&&this.startGracePeriod()),this.rememberSelection()}},bs.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)},bs.prototype.showMultipleSelections=function(it){oe(this.cm.display.cursorDiv,it.cursors),oe(this.cm.display.selectionDiv,it.selection)},bs.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},bs.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var ot=it.getRangeAt(0).commonAncestorContainer;return Fe(this.div,ot)},bs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bs.prototype.blur=function(){this.div.blur()},bs.prototype.getField=function(){return this.div},bs.prototype.supportsTouch=function(){return!0},bs.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():nr(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function ot(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,ot))}this.polling.set(this.cm.options.pollInterval,ot)},bs.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},bs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),ot=this.cm;if(nt&&se&&this.cm.display.gutterSpecs.length&&pf(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Sd(ot,it.anchorNode,it.anchorOffset),dt=Sd(ot,it.focusNode,it.focusOffset);ct&&dt&&nr(ot,function(){Es(ot.doc,Js(ct,dt),xe),(ct.bad||dt.bad)&&(ot.curOp.selectionChanged=!0)})}}},bs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,ot=it.display,ct=it.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(dt.ch==0&&dt.line>it.firstLine()&&(dt=qe(dt.line-1,cn(it.doc,dt.line-1).length)),pt.ch==cn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=qe(pt.line+1,0)),dt.line<ot.viewFrom||pt.line>ot.viewTo-1)return!1;var At,jt,qt;dt.line==ot.viewFrom||(At=Tu(it,dt.line))==0?(jt=Oe(ot.view[0].line),qt=ot.view[0].node):(jt=Oe(ot.view[At].line),qt=ot.view[At-1].node.nextSibling);var Yt=Tu(it,pt.line),fe,Ge;if(Yt==ot.view.length-1?(fe=ot.viewTo-1,Ge=ot.lineDiv.lastChild):(fe=Oe(ot.view[Yt+1].line)-1,Ge=ot.view[Yt+1].node.previousSibling),!qt)return!1;for(var ge=it.doc.splitLines(Qc(it,qt,Ge,jt,fe)),dn=_n(it.doc,qe(jt,0),qe(fe,cn(it.doc,fe).text.length));ge.length>1&&dn.length>1;)if(ze(ge)==ze(dn))ge.pop(),dn.pop(),fe--;else if(ge[0]==dn[0])ge.shift(),dn.shift(),jt++;else break;for(var gn=0,fi=0,Ri=ge[0],Ji=dn[0],fr=Math.min(Ri.length,Ji.length);gn<fr&&Ri.charCodeAt(gn)==Ji.charCodeAt(gn);)++gn;for(var _r=ze(ge),kr=ze(dn),lo=Math.min(_r.length-(ge.length==1?gn:0),kr.length-(dn.length==1?gn:0));fi<lo&&_r.charCodeAt(_r.length-fi-1)==kr.charCodeAt(kr.length-fi-1);)++fi;if(ge.length==1&&dn.length==1&&jt==dt.line)for(;gn&&gn>dt.ch&&_r.charCodeAt(_r.length-fi-1)==kr.charCodeAt(kr.length-fi-1);)gn--,fi++;ge[ge.length-1]=_r.slice(0,_r.length-fi).replace(/^\u200b+/,""),ge[0]=ge[0].slice(gn).replace(/\u200b+$/,"");var ea=qe(jt,gn),Ar=qe(fe,dn.length?ze(dn).length-fi:0);if(ge.length>1||ge[0]||oi(ea,Ar))return Oi(it.doc,ge,ea,Ar,"+input"),!0},bs.prototype.ensurePolled=function(){this.forceCompositionEnd()},bs.prototype.reset=function(){this.forceCompositionEnd()},bs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bs.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))},bs.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&nr(this.cm,function(){return Ps(it.cm)})},bs.prototype.setUneditable=function(it){it.contentEditable="false"},bs.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||jr(this.cm,Bc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},bs.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},bs.prototype.onContextMenu=function(){},bs.prototype.resetPosition=function(){},bs.prototype.needsContentAttribute=!0;function Hd(it,ot){var ct=Yl(it,ot.line);if(!ct||ct.hidden)return null;var dt=cn(it.doc,ot.line),pt=mh(ct,dt,ot.line),At=Qn(dt,it.doc.direction),jt="left";if(At){var qt=Ue(At,ot.ch);jt=qt%2?"right":"left"}var Yt=Dd(pt.map,ot.ch,jt);return Yt.offset=Yt.collapse=="right"?Yt.end:Yt.start,Yt}function pf(it){for(var ot=it;ot;ot=ot.parentNode)if(/CodeMirror-gutter-wrapper/.test(ot.className))return!0;return!1}function Jc(it,ot){return ot&&(it.bad=!0),it}function Qc(it,ot,ct,dt,pt){var At="",jt=!1,qt=it.doc.lineSeparator(),Yt=!1;function fe(gn){return function(fi){return fi.id==gn}}function Ge(){jt&&(At+=qt,Yt&&(At+=qt),jt=Yt=!1)}function ge(gn){gn&&(Ge(),At+=gn)}function dn(gn){if(gn.nodeType==1){var fi=gn.getAttribute("cm-text");if(fi){ge(fi);return}var Ri=gn.getAttribute("cm-marker"),Ji;if(Ri){var fr=it.findMarks(qe(dt,0),qe(pt+1,0),fe(+Ri));fr.length&&(Ji=fr[0].find(0))&&ge(_n(it.doc,Ji.from,Ji.to).join(qt));return}if(gn.getAttribute("contenteditable")=="false")return;var _r=/^(pre|div|p|li|table|br)$/i.test(gn.nodeName);if(!/^br$/i.test(gn.nodeName)&&gn.textContent.length==0)return;_r&&Ge();for(var kr=0;kr<gn.childNodes.length;kr++)dn(gn.childNodes[kr]);/^(pre|p)$/i.test(gn.nodeName)&&(Yt=!0),_r&&(jt=!0)}else gn.nodeType==3&&ge(gn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;dn(ot),ot!=ct;)ot=ot.nextSibling,Yt=!1;return At}function Sd(it,ot,ct){var dt;if(ot==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return Jc(it.clipPos(qe(it.display.viewTo-1)),!0);ot=null,ct=0}else for(dt=ot;;dt=dt.parentNode){if(!dt||dt==it.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var At=it.display.view[pt];if(At.node==dt)return Hf(At,ot,ct)}}function Hf(it,ot,ct){var dt=it.text.firstChild,pt=!1;if(!ot||!Fe(dt,ot))return Jc(qe(Oe(it.line),0),!0);if(ot==dt&&(pt=!0,ot=dt.childNodes[ct],ct=0,!ot)){var At=it.rest?ze(it.rest):it.line;return Jc(qe(Oe(At),At.text.length),pt)}var jt=ot.nodeType==3?ot:null,qt=ot;for(!jt&&ot.childNodes.length==1&&ot.firstChild.nodeType==3&&(jt=ot.firstChild,ct&&(ct=jt.nodeValue.length));qt.parentNode!=dt;)qt=qt.parentNode;var Yt=it.measure,fe=Yt.maps;function Ge(Ji,fr,_r){for(var kr=-1;kr<(fe?fe.length:0);kr++)for(var lo=kr<0?Yt.map:fe[kr],ea=0;ea<lo.length;ea+=3){var Ar=lo[ea+2];if(Ar==Ji||Ar==fr){var ja=Oe(kr<0?it.line:it.rest[kr]),il=lo[ea]+_r;return(_r<0||Ar!=Ji)&&(il=lo[ea+(_r?1:0)]),qe(ja,il)}}}var ge=Ge(jt,qt,ct);if(ge)return Jc(ge,pt);for(var dn=qt.nextSibling,gn=jt?jt.nodeValue.length-ct:0;dn;dn=dn.nextSibling){if(ge=Ge(dn,dn.firstChild,0),ge)return Jc(qe(ge.line,ge.ch-gn),pt);gn+=dn.textContent.length}for(var fi=qt.previousSibling,Ri=ct;fi;fi=fi.previousSibling){if(ge=Ge(fi,fi.firstChild,-1),ge)return Jc(qe(ge.line,ge.ch+Ri),pt);Ri+=fi.textContent.length}}var vl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Tt,this.hasSelection=!1,this.composing=null};vl.prototype.init=function(it){var ot=this,ct=this,dt=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Dt&&(pt.style.width="0px"),pn(pt,"input",function(){Pe&&Bt>=9&&ot.hasSelection&&(ot.hasSelection=null),ct.poll()}),pn(pt,"paste",function(jt){ei(dt,jt)||Jh(jt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function At(jt){if(!ei(dt,jt)){if(dt.somethingSelected())Dc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var qt=Yc(dt);Dc({lineWise:!0,text:qt.text}),jt.type=="cut"?dt.setSelections(qt.ranges,null,xe):(ct.prevInput="",pt.value=qt.text.join(`
|
|
`),Bn(pt))}else return;jt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}pn(pt,"cut",At),pn(pt,"copy",At),pn(it.scroller,"paste",function(jt){if(!(ua(it,jt)||ei(dt,jt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var qt=new Event("paste");qt.clipboardData=jt.clipboardData,pt.dispatchEvent(qt)}}),pn(it.lineSpace,"selectstart",function(jt){ua(it,jt)||pr(jt)}),pn(pt,"compositionstart",function(){var jt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:jt,range:dt.markText(jt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),pn(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},vl.prototype.createField=function(it){this.wrapper=jd(),this.textarea=this.wrapper.firstChild},vl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},vl.prototype.prepareSelection=function(){var it=this.cm,ot=it.display,ct=it.doc,dt=ih(it);if(it.options.moveInputWithCursor){var pt=Ys(it,ct.sel.primary().head,"div"),At=ot.wrapper.getBoundingClientRect(),jt=ot.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(ot.wrapper.clientHeight-10,pt.top+jt.top-At.top)),dt.teLeft=Math.max(0,Math.min(ot.wrapper.clientWidth-10,pt.left+jt.left-At.left))}return dt},vl.prototype.showSelection=function(it){var ot=this.cm,ct=ot.display;oe(ct.cursorDiv,it.cursors),oe(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},vl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var ot=this.cm;if(ot.somethingSelected()){this.prevInput="";var ct=ot.getSelection();this.textarea.value=ct,ot.state.focused&&Bn(this.textarea),Pe&&Bt>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Pe&&Bt>=9&&(this.hasSelection=null))}},vl.prototype.getField=function(){return this.textarea},vl.prototype.supportsTouch=function(){return!1},vl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||rn()!=this.textarea))try{this.textarea.focus()}catch(it){}},vl.prototype.blur=function(){this.textarea.blur()},vl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},vl.prototype.receivedFocus=function(){this.slowPoll()},vl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},vl.prototype.fastPoll=function(){var it=!1,ot=this;ot.pollingFast=!0;function ct(){var dt=ot.poll();!dt&&!it?(it=!0,ot.polling.set(60,ct)):(ot.pollingFast=!1,ot.slowPoll())}ot.polling.set(20,ct)},vl.prototype.poll=function(){var it=this,ot=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!ot.state.focused||bt(ct)&&!dt&&!this.composing||ot.isReadOnly()||ot.options.disableInput||ot.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!ot.somethingSelected())return!1;if(Pe&&Bt>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return ot.display.input.reset(),!1;if(ot.doc.sel==ot.display.selForContextMenu){var At=pt.charCodeAt(0);if(At==8203&&!dt&&(dt="\u200B"),At==8666)return this.reset(),this.cm.execCommand("undo")}for(var jt=0,qt=Math.min(dt.length,pt.length);jt<qt&&dt.charCodeAt(jt)==pt.charCodeAt(jt);)++jt;return nr(ot,function(){Bc(ot,pt.slice(jt),dt.length-jt,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
|
|
`)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=ot.markText(it.composing.start,ot.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},vl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},vl.prototype.onKeyPress=function(){Pe&&Bt>=9&&(this.hasSelection=null),this.fastPoll()},vl.prototype.onContextMenu=function(it){var ot=this,ct=ot.cm,dt=ct.display,pt=ot.textarea;ot.contextMenuPending&&ot.contextMenuPending();var At=Jl(ct,it),jt=dt.scroller.scrollTop;if(!At||Se)return;var qt=ct.options.resetSelectionOnContextMenu;qt&&ct.doc.sel.contains(At)==-1&&jr(ct,Es)(ct.doc,Js(At),xe);var Yt=pt.style.cssText,fe=ot.wrapper.style.cssText,Ge=ot.wrapper.offsetParent.getBoundingClientRect();ot.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-Ge.top-5)+"px; left: "+(it.clientX-Ge.left-5)+`px;
|
|
z-index: 1000; background: `+(Pe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ge;Ut&&(ge=window.scrollY),dt.input.focus(),Ut&&window.scrollTo(null,ge),dt.input.reset(),ct.somethingSelected()||(pt.value=ot.prevInput=" "),ot.contextMenuPending=gn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function dn(){if(pt.selectionStart!=null){var Ri=ct.somethingSelected(),Ji="\u200B"+(Ri?pt.value:"");pt.value="\u21DA",pt.value=Ji,ot.prevInput=Ri?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=Ji.length,dt.selForContextMenu=ct.doc.sel}}function gn(){if(ot.contextMenuPending==gn&&(ot.contextMenuPending=!1,ot.wrapper.style.cssText=fe,pt.style.cssText=Yt,Pe&&Bt<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=jt),pt.selectionStart!=null)){(!Pe||Pe&&Bt<9)&&dn();var Ri=0,Ji=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&ot.prevInput=="\u200B"?jr(ct,Re)(ct):Ri++<10?dt.detectingSelectAll=setTimeout(Ji,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ji,200)}}if(Pe&&Bt>=9&&dn(),St){sr(it);var fi=function(){Mi(window,"mouseup",fi),setTimeout(gn,20)};pn(window,"mouseup",fi)}else setTimeout(gn,50)},vl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},vl.prototype.setUneditable=function(){},vl.prototype.needsContentAttribute=!1;function Wf(it,ot){if(ot=ot?Zn(ot):{},ot.value=it.value,!ot.tabindex&&it.tabIndex&&(ot.tabindex=it.tabIndex),!ot.placeholder&&it.placeholder&&(ot.placeholder=it.placeholder),ot.autofocus==null){var ct=rn();ot.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=qt.getValue()}var pt;if(it.form&&(pn(it.form,"submit",dt),!ot.leaveSubmitMethodAlone)){var At=it.form;pt=At.submit;try{var jt=At.submit=function(){dt(),At.submit=pt,At.submit(),At.submit=jt}}catch(Yt){}}ot.finishInit=function(Yt){Yt.save=dt,Yt.getTextArea=function(){return it},Yt.toTextArea=function(){Yt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Yt.getWrapperElement()),it.style.display="",it.form&&(Mi(it.form,"submit",dt),!ot.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var qt=Oa(function(Yt){return it.parentNode.insertBefore(Yt,it.nextSibling)},ot);return qt}function qc(it){it.off=Mi,it.on=pn,it.wheelEventPixels=Ja,it.Doc=Dr,it.splitLines=bn,it.countColumn=_t,it.findColumn=Cn,it.isWordChar=Ft,it.Pass=Ye,it.signal=In,it.Line=ia,it.changeEnd=Ll,it.scrollbarModel=qn,it.Pos=qe,it.cmpPos=oi,it.modes=Xn,it.mimeModes=ai,it.resolveMode=te,it.getMode=le,it.modeExtensions=ae,it.extendMode=Ae,it.copyState=Sn,it.startState=En,it.innerMode=An,it.commands=cs,it.keyMap=Io,it.keyName=Ia,it.isModifierKey=Go,it.lookupKey=vr,it.normalizeKeyMap=Vr,it.StringStream=ke,it.SharedTextMarker=wr,it.TextMarker=we,it.LineWidget=yi,it.e_preventDefault=pr,it.e_stopPropagation=rr,it.e_stop=sr,it.addClass=De,it.contains=Fe,it.rmClass=Jt,it.keyNames=No}gf(Oa),dc(Oa);var Qh="iter insert remove copy getEditor constructor".split(" ");for(var xd in Dr.prototype)Dr.prototype.hasOwnProperty(xd)&&ce(Qh,xd)<0&&(Oa.prototype[xd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Dr.prototype[xd]));return $i(Dr),Oa.inputStyles={textarea:vl,contenteditable:bs},Oa.defineMode=function(it){!Oa.defaults.mode&&it!="null"&&(Oa.defaults.mode=it),Tn.apply(this,arguments)},Oa.defineMIME=Di,Oa.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(it,ot){Oa.prototype[it]=ot},Oa.defineDocExtension=function(it,ot){Dr.prototype[it]=ot},Oa.fromTextArea=Wf,qc(Oa),Oa.version="5.58.2",Oa})},49047:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631),Mt(29589),Mt(52539))})(function(Pt){"use strict";Pt.defineMode("markdown",function(ne,Ne){var Be=Pt.getMode(ne,"text/html"),Pe=Be.name=="null";function Bt(_t){if(Pt.findModeByName){var Tt=Pt.findModeByName(_t);Tt&&(_t=Tt.mime||Tt.mimes[0])}var ce=Pt.getMode(ne,_t);return ce.name=="null"?null:ce}Ne.highlightFormatting===void 0&&(Ne.highlightFormatting=!1),Ne.maxBlockquoteDepth===void 0&&(Ne.maxBlockquoteDepth=0),Ne.taskLists===void 0&&(Ne.taskLists=!1),Ne.strikethrough===void 0&&(Ne.strikethrough=!1),Ne.emoji===void 0&&(Ne.emoji=!1),Ne.fencedCodeBlockHighlighting===void 0&&(Ne.fencedCodeBlockHighlighting=!0),Ne.fencedCodeBlockDefaultMode===void 0&&(Ne.fencedCodeBlockDefaultMode="text/plain"),Ne.xml===void 0&&(Ne.xml=!0),Ne.tokenTypeOverrides===void 0&&(Ne.tokenTypeOverrides={});var Ut={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 ue in Ut)Ut.hasOwnProperty(ue)&&Ne.tokenTypeOverrides[ue]&&(Ut[ue]=Ne.tokenTypeOverrides[ue]);var se=/^([*\-_])(?:\s*\1){2,}\s*$/,Se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,pe=Ne.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ht=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Dt=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,et=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,lt=" ";function gt(_t,Tt,ce){return Tt.f=Tt.inline=ce,ce(_t,Tt)}function mt(_t,Tt,ce){return Tt.f=Tt.block=ce,ce(_t,Tt)}function xt(_t){return!_t||!/\S/.test(_t.string)}function St(_t){if(_t.linkTitle=!1,_t.linkHref=!1,_t.linkText=!1,_t.em=!1,_t.strong=!1,_t.strikethrough=!1,_t.quote=0,_t.indentedCode=!1,_t.f==Jt){var Tt=Pe;if(!Tt){var ce=Pt.innerMode(Be,_t.htmlState);Tt=ce.mode.name=="xml"&&ce.state.tagStart===null&&!ce.state.context&&ce.state.tokenize.isInText}Tt&&(_t.f=Le,_t.block=zt,_t.htmlState=null)}return _t.trailingSpace=0,_t.trailingSpaceNewLine=!1,_t.prevLine=_t.thisLine,_t.thisLine={stream:null},null}function zt(_t,Tt){var ce=_t.column()===Tt.indentation,_e=xt(Tt.prevLine.stream),Ye=Tt.indentedCode,xe=Tt.prevLine.hr,on=Tt.list!==!1,tn=(Tt.listStack[Tt.listStack.length-1]||0)+3;Tt.indentedCode=!1;var Cn=Tt.indentation;if(Tt.indentationDiff===null&&(Tt.indentationDiff=Tt.indentation,on)){for(Tt.list=null;Cn<Tt.listStack[Tt.listStack.length-1];)Tt.listStack.pop(),Tt.listStack.length?Tt.indentation=Tt.listStack[Tt.listStack.length-1]:Tt.list=!1;Tt.list!==!1&&(Tt.indentationDiff=Cn-Tt.listStack[Tt.listStack.length-1])}var Ie=!_e&&!xe&&!Tt.prevLine.header&&(!on||!Ye)&&!Tt.prevLine.fencedCodeEnd,ve=(Tt.list===!1||xe||_e)&&Tt.indentation<=tn&&_t.match(se),ze=null;if(Tt.indentationDiff>=4&&(Ye||Tt.prevLine.fencedCodeEnd||Tt.prevLine.header||_e))return _t.skipToEnd(),Tt.indentedCode=!0,Ut.code;if(_t.eatSpace())return null;if(ce&&Tt.indentation<=tn&&(ze=_t.match(pe))&&ze[1].length<=6)return Tt.quote=0,Tt.header=ze[1].length,Tt.thisLine.header=!0,Ne.highlightFormatting&&(Tt.formatting="header"),Tt.f=Tt.inline,oe(Tt);if(Tt.indentation<=tn&&_t.eat(">"))return Tt.quote=ce?1:Tt.quote+1,Ne.highlightFormatting&&(Tt.formatting="quote"),_t.eatSpace(),oe(Tt);if(!ve&&!Tt.setext&&ce&&Tt.indentation<=tn&&(ze=_t.match(Se))){var je=ze[1]?"ol":"ul";return Tt.indentation=Cn+_t.current().length,Tt.list=!0,Tt.quote=0,Tt.listStack.push(Tt.indentation),Tt.em=!1,Tt.strong=!1,Tt.code=!1,Tt.strikethrough=!1,Ne.taskLists&&_t.match(Xe,!1)&&(Tt.taskList=!0),Tt.f=Tt.inline,Ne.highlightFormatting&&(Tt.formatting=["list","list-"+je]),oe(Tt)}else{if(ce&&Tt.indentation<=tn&&(ze=_t.match(nt,!0)))return Tt.quote=0,Tt.fencedEndRE=new RegExp(ze[1]+"+ *$"),Tt.localMode=Ne.fencedCodeBlockHighlighting&&Bt(ze[2]||Ne.fencedCodeBlockDefaultMode),Tt.localMode&&(Tt.localState=Pt.startState(Tt.localMode)),Tt.f=Tt.block=re,Ne.highlightFormatting&&(Tt.formatting="code-block"),Tt.code=-1,oe(Tt);if(Tt.setext||(!Ie||!on)&&!Tt.quote&&Tt.list===!1&&!Tt.code&&!ve&&!et.test(_t.string)&&(ze=_t.lookAhead(1))&&(ze=ze.match(Ht)))return Tt.setext?(Tt.header=Tt.setext,Tt.setext=0,_t.skipToEnd(),Ne.highlightFormatting&&(Tt.formatting="header")):(Tt.header=ze[0].charAt(0)=="="?1:2,Tt.setext=Tt.header),Tt.thisLine.header=!0,Tt.f=Tt.inline,oe(Tt);if(ve)return _t.skipToEnd(),Tt.hr=!0,Tt.thisLine.hr=!0,Ut.hr;if(_t.peek()==="[")return gt(_t,Tt,jn)}return gt(_t,Tt,Tt.inline)}function Jt(_t,Tt){var ce=Be.token(_t,Tt.htmlState);if(!Pe){var _e=Pt.innerMode(Be,Tt.htmlState);(_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText||Tt.md_inside&&_t.current().indexOf(">")>-1)&&(Tt.f=Le,Tt.block=zt,Tt.htmlState=null)}return ce}function re(_t,Tt){var ce=Tt.listStack[Tt.listStack.length-1]||0,_e=Tt.indentation<ce,Ye=ce+3;if(Tt.fencedEndRE&&Tt.indentation<=Ye&&(_e||_t.match(Tt.fencedEndRE))){Ne.highlightFormatting&&(Tt.formatting="code-block");var xe;return _e||(xe=oe(Tt)),Tt.localMode=Tt.localState=null,Tt.block=zt,Tt.f=Le,Tt.fencedEndRE=null,Tt.code=0,Tt.thisLine.fencedCodeEnd=!0,_e?mt(_t,Tt,Tt.block):xe}else return Tt.localMode?Tt.localMode.token(_t,Tt.localState):(_t.skipToEnd(),Ut.code)}function oe(_t){var Tt=[];if(_t.formatting){Tt.push(Ut.formatting),typeof _t.formatting=="string"&&(_t.formatting=[_t.formatting]);for(var ce=0;ce<_t.formatting.length;ce++)Tt.push(Ut.formatting+"-"+_t.formatting[ce]),_t.formatting[ce]==="header"&&Tt.push(Ut.formatting+"-"+_t.formatting[ce]+"-"+_t.header),_t.formatting[ce]==="quote"&&(!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=_t.quote?Tt.push(Ut.formatting+"-"+_t.formatting[ce]+"-"+_t.quote):Tt.push("error"))}if(_t.taskOpen)return Tt.push("meta"),Tt.length?Tt.join(" "):null;if(_t.taskClosed)return Tt.push("property"),Tt.length?Tt.join(" "):null;if(_t.linkHref?Tt.push(Ut.linkHref,"url"):(_t.strong&&Tt.push(Ut.strong),_t.em&&Tt.push(Ut.em),_t.strikethrough&&Tt.push(Ut.strikethrough),_t.emoji&&Tt.push(Ut.emoji),_t.linkText&&Tt.push(Ut.linkText),_t.code&&Tt.push(Ut.code),_t.image&&Tt.push(Ut.image),_t.imageAltText&&Tt.push(Ut.imageAltText,"link"),_t.imageMarker&&Tt.push(Ut.imageMarker)),_t.header&&Tt.push(Ut.header,Ut.header+"-"+_t.header),_t.quote&&(Tt.push(Ut.quote),!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=_t.quote?Tt.push(Ut.quote+"-"+_t.quote):Tt.push(Ut.quote+"-"+Ne.maxBlockquoteDepth)),_t.list!==!1){var _e=(_t.listStack.length-1)%3;_e?_e===1?Tt.push(Ut.list2):Tt.push(Ut.list3):Tt.push(Ut.list1)}return _t.trailingSpaceNewLine?Tt.push("trailing-space-new-line"):_t.trailingSpace&&Tt.push("trailing-space-"+(_t.trailingSpace%2?"a":"b")),Tt.length?Tt.join(" "):null}function $t(_t,Tt){if(_t.match(Dt,!0))return oe(Tt)}function Le(_t,Tt){var ce=Tt.text(_t,Tt);if(typeof ce!="undefined")return ce;if(Tt.list)return Tt.list=null,oe(Tt);if(Tt.taskList){var _e=_t.match(Xe,!0)[1]===" ";return _e?Tt.taskOpen=!0:Tt.taskClosed=!0,Ne.highlightFormatting&&(Tt.formatting="task"),Tt.taskList=!1,oe(Tt)}if(Tt.taskOpen=!1,Tt.taskClosed=!1,Tt.header&&_t.match(/^#+$/,!0))return Ne.highlightFormatting&&(Tt.formatting="header"),oe(Tt);var Ye=_t.next();if(Tt.linkTitle){Tt.linkTitle=!1;var xe=Ye;Ye==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var on="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(_t.match(new RegExp(on),!0))return Ut.linkHref}if(Ye==="`"){var tn=Tt.formatting;Ne.highlightFormatting&&(Tt.formatting="code"),_t.eatWhile("`");var Cn=_t.current().length;if(Tt.code==0&&(!Tt.quote||Cn==1))return Tt.code=Cn,oe(Tt);if(Cn==Tt.code){var Ie=oe(Tt);return Tt.code=0,Ie}else return Tt.formatting=tn,oe(Tt)}else if(Tt.code)return oe(Tt);if(Ye==="\\"&&(_t.next(),Ne.highlightFormatting)){var ve=oe(Tt),ze=Ut.formatting+"-escape";return ve?ve+" "+ze:ze}if(Ye==="!"&&_t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Tt.imageMarker=!0,Tt.image=!0,Ne.highlightFormatting&&(Tt.formatting="image"),oe(Tt);if(Ye==="["&&Tt.imageMarker&&_t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Tt.imageMarker=!1,Tt.imageAltText=!0,Ne.highlightFormatting&&(Tt.formatting="image"),oe(Tt);if(Ye==="]"&&Tt.imageAltText){Ne.highlightFormatting&&(Tt.formatting="image");var ve=oe(Tt);return Tt.imageAltText=!1,Tt.image=!1,Tt.inline=Tt.f=Fe,ve}if(Ye==="["&&!Tt.image)return Tt.linkText&&_t.match(/^.*?\]/)||(Tt.linkText=!0,Ne.highlightFormatting&&(Tt.formatting="link")),oe(Tt);if(Ye==="]"&&Tt.linkText){Ne.highlightFormatting&&(Tt.formatting="link");var ve=oe(Tt);return Tt.linkText=!1,Tt.inline=Tt.f=_t.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:Le,ve}if(Ye==="<"&&_t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Tt.f=Tt.inline=de,Ne.highlightFormatting&&(Tt.formatting="link");var ve=oe(Tt);return ve?ve+=" ":ve="",ve+Ut.linkInline}if(Ye==="<"&&_t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Tt.f=Tt.inline=de,Ne.highlightFormatting&&(Tt.formatting="link");var ve=oe(Tt);return ve?ve+=" ":ve="",ve+Ut.linkEmail}if(Ne.xml&&Ye==="<"&&_t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var je=_t.string.indexOf(">",_t.pos);if(je!=-1){var He=_t.string.substring(_t.start,je);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(He)&&(Tt.md_inside=!0)}return _t.backUp(1),Tt.htmlState=Pt.startState(Be),mt(_t,Tt,Jt)}if(Ne.xml&&Ye==="<"&&_t.match(/^\/\w*?>/))return Tt.md_inside=!1,"tag";if(Ye==="*"||Ye==="_"){for(var Ot=1,Lt=_t.pos==1?" ":_t.string.charAt(_t.pos-2);Ot<3&&_t.eat(Ye);)Ot++;var wt=_t.peek()||" ",Ft=!/\s/.test(wt)&&(!ht.test(wt)||/\s/.test(Lt)||ht.test(Lt)),Wt=!/\s/.test(Lt)&&(!ht.test(Lt)||/\s/.test(wt)||ht.test(wt)),kt=null,Xt=null;if(Ot%2&&(!Tt.em&&Ft&&(Ye==="*"||!Wt||ht.test(Lt))?kt=!0:Tt.em==Ye&&Wt&&(Ye==="*"||!Ft||ht.test(wt))&&(kt=!1)),Ot>1&&(!Tt.strong&&Ft&&(Ye==="*"||!Wt||ht.test(Lt))?Xt=!0:Tt.strong==Ye&&Wt&&(Ye==="*"||!Ft||ht.test(wt))&&(Xt=!1)),Xt!=null||kt!=null){Ne.highlightFormatting&&(Tt.formatting=kt==null?"strong":Xt==null?"em":"strong em"),kt===!0&&(Tt.em=Ye),Xt===!0&&(Tt.strong=Ye);var Ie=oe(Tt);return kt===!1&&(Tt.em=!1),Xt===!1&&(Tt.strong=!1),Ie}}else if(Ye===" "&&(_t.eat("*")||_t.eat("_"))){if(_t.peek()===" ")return oe(Tt);_t.backUp(1)}if(Ne.strikethrough){if(Ye==="~"&&_t.eatWhile(Ye)){if(Tt.strikethrough){Ne.highlightFormatting&&(Tt.formatting="strikethrough");var Ie=oe(Tt);return Tt.strikethrough=!1,Ie}else if(_t.match(/^[^\s]/,!1))return Tt.strikethrough=!0,Ne.highlightFormatting&&(Tt.formatting="strikethrough"),oe(Tt)}else if(Ye===" "&&_t.match(/^~~/,!0)){if(_t.peek()===" ")return oe(Tt);_t.backUp(2)}}if(Ne.emoji&&Ye===":"&&_t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Tt.emoji=!0,Ne.highlightFormatting&&(Tt.formatting="emoji");var $e=oe(Tt);return Tt.emoji=!1,$e}return Ye===" "&&(_t.match(/^ +$/,!1)?Tt.trailingSpace++:Tt.trailingSpace&&(Tt.trailingSpaceNewLine=!0)),oe(Tt)}function de(_t,Tt){var ce=_t.next();if(ce===">"){Tt.f=Tt.inline=Le,Ne.highlightFormatting&&(Tt.formatting="link");var _e=oe(Tt);return _e?_e+=" ":_e="",_e+Ut.linkInline}return _t.match(/^[^>]+/,!0),Ut.linkInline}function Fe(_t,Tt){if(_t.eatSpace())return null;var ce=_t.next();return ce==="("||ce==="["?(Tt.f=Tt.inline=De(ce==="("?")":"]"),Ne.highlightFormatting&&(Tt.formatting="link-string"),Tt.linkHref=!0,oe(Tt)):"error"}var rn={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function De(_t){return function(Tt,ce){var _e=Tt.next();if(_e===_t){ce.f=ce.inline=Le,Ne.highlightFormatting&&(ce.formatting="link-string");var Ye=oe(ce);return ce.linkHref=!1,Ye}return Tt.match(rn[_t]),ce.linkHref=!0,oe(ce)}}function jn(_t,Tt){return _t.match(/^([^\]\\]|\\.)*\]:/,!1)?(Tt.f=Bn,_t.next(),Ne.highlightFormatting&&(Tt.formatting="link"),Tt.linkText=!0,oe(Tt)):gt(_t,Tt,Le)}function Bn(_t,Tt){if(_t.match(/^\]:/,!0)){Tt.f=Tt.inline=an,Ne.highlightFormatting&&(Tt.formatting="link");var ce=oe(Tt);return Tt.linkText=!1,ce}return _t.match(/^([^\]\\]|\\.)+/,!0),Ut.linkText}function an(_t,Tt){return _t.eatSpace()?null:(_t.match(/^[^\s]+/,!0),_t.peek()===void 0?Tt.linkTitle=!0:_t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Tt.f=Tt.inline=Le,Ut.linkHref+" url")}var Zn={startState:function(){return{f:zt,prevLine:{stream:null},thisLine:{stream:null},block:zt,htmlState:null,indentation:0,inline:Le,text:$t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(_t){return{f:_t.f,prevLine:_t.prevLine,thisLine:_t.thisLine,block:_t.block,htmlState:_t.htmlState&&Pt.copyState(Be,_t.htmlState),indentation:_t.indentation,localMode:_t.localMode,localState:_t.localMode?Pt.copyState(_t.localMode,_t.localState):null,inline:_t.inline,text:_t.text,formatting:!1,linkText:_t.linkText,linkTitle:_t.linkTitle,linkHref:_t.linkHref,code:_t.code,em:_t.em,strong:_t.strong,strikethrough:_t.strikethrough,emoji:_t.emoji,header:_t.header,setext:_t.setext,hr:_t.hr,taskList:_t.taskList,list:_t.list,listStack:_t.listStack.slice(0),quote:_t.quote,indentedCode:_t.indentedCode,trailingSpace:_t.trailingSpace,trailingSpaceNewLine:_t.trailingSpaceNewLine,md_inside:_t.md_inside,fencedEndRE:_t.fencedEndRE}},token:function(_t,Tt){if(Tt.formatting=!1,_t!=Tt.thisLine.stream){if(Tt.header=0,Tt.hr=!1,_t.match(/^\s*$/,!0))return St(Tt),null;if(Tt.prevLine=Tt.thisLine,Tt.thisLine={stream:_t},Tt.taskList=!1,Tt.trailingSpace=0,Tt.trailingSpaceNewLine=!1,!Tt.localState&&(Tt.f=Tt.block,Tt.f!=Jt)){var ce=_t.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Tt.indentation=ce,Tt.indentationDiff=null,ce>0)return null}}return Tt.f(_t,Tt)},innerMode:function(_t){return _t.block==Jt?{state:_t.htmlState,mode:Be}:_t.localState?{state:_t.localState,mode:_t.localMode}:{state:_t,mode:Zn}},indent:function(_t,Tt,ce){return _t.block==Jt&&Be.indent?Be.indent(_t.htmlState,Tt,ce):_t.localState&&_t.localMode.indent?_t.localMode.indent(_t.localState,Tt,ce):Pt.Pass},blankLine:St,getType:oe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Zn},"xml"),Pt.defineMIME("text/markdown","markdown"),Pt.defineMIME("text/x-markdown","markdown")})},52539:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){"use strict";Pt.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 ne=0;ne<Pt.modeInfo.length;ne++){var Ne=Pt.modeInfo[ne];Ne.mimes&&(Ne.mime=Ne.mimes[0])}Pt.findModeByMIME=function(Be){Be=Be.toLowerCase();for(var Pe=0;Pe<Pt.modeInfo.length;Pe++){var Bt=Pt.modeInfo[Pe];if(Bt.mime==Be)return Bt;if(Bt.mimes){for(var Ut=0;Ut<Bt.mimes.length;Ut++)if(Bt.mimes[Ut]==Be)return Bt}}if(/\+xml$/.test(Be))return Pt.findModeByMIME("application/xml");if(/\+json$/.test(Be))return Pt.findModeByMIME("application/json")},Pt.findModeByExtension=function(Be){Be=Be.toLowerCase();for(var Pe=0;Pe<Pt.modeInfo.length;Pe++){var Bt=Pt.modeInfo[Pe];if(Bt.ext){for(var Ut=0;Ut<Bt.ext.length;Ut++)if(Bt.ext[Ut]==Be)return Bt}}},Pt.findModeByFileName=function(Be){for(var Pe=0;Pe<Pt.modeInfo.length;Pe++){var Bt=Pt.modeInfo[Pe];if(Bt.file&&Bt.file.test(Be))return Bt}var Ut=Be.lastIndexOf("."),ue=Ut>-1&&Be.substring(Ut+1,Be.length);if(ue)return Pt.findModeByExtension(ue)},Pt.findModeByName=function(Be){Be=Be.toLowerCase();for(var Pe=0;Pe<Pt.modeInfo.length;Pe++){var Bt=Pt.modeInfo[Pe];if(Bt.name.toLowerCase()==Be)return Bt;if(Bt.alias){for(var Ut=0;Ut<Bt.alias.length;Ut++)if(Bt.alias[Ut].toLowerCase()==Be)return Bt}}}})},80785:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){"use strict";Pt.defineMode("stex",function(ne,Ne){"use strict";function Be(Dt,nt){Dt.cmdState.push(nt)}function Pe(Dt){return Dt.cmdState.length>0?Dt.cmdState[Dt.cmdState.length-1]:null}function Bt(Dt){var nt=Dt.cmdState.pop();nt&&nt.closeBracket()}function Ut(Dt){for(var nt=Dt.cmdState,et=nt.length-1;et>=0;et--){var ht=nt[et];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function ue(Dt,nt,et){return function(){this.name=Dt,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 se={};se.importmodule=ue("importmodule","tag",["string","builtin"]),se.documentclass=ue("documentclass","tag",["","atom"]),se.usepackage=ue("usepackage","tag",["atom"]),se.begin=ue("begin","tag",["atom"]),se.end=ue("end","tag",["atom"]),se.label=ue("label","tag",["atom"]),se.ref=ue("ref","tag",["atom"]),se.eqref=ue("eqref","tag",["atom"]),se.cite=ue("cite","tag",["atom"]),se.bibitem=ue("bibitem","tag",["atom"]),se.Bibitem=ue("Bibitem","tag",["atom"]),se.RBibitem=ue("RBibitem","tag",["atom"]),se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Se(Dt,nt){Dt.f=nt}function Xe(Dt,nt){var et;if(Dt.match(/^\\[a-zA-Z@]+/)){var ht=Dt.current().slice(1);return et=se.hasOwnProperty(ht)?se[ht]:se.DEFAULT,et=new et,Be(nt,et),Se(nt,Ht),et.style}if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/\\]/))return"tag";if(Dt.match("\\["))return Se(nt,function(gt,mt){return pe(gt,mt,"\\]")}),"keyword";if(Dt.match("\\("))return Se(nt,function(gt,mt){return pe(gt,mt,"\\)")}),"keyword";if(Dt.match("$$"))return Se(nt,function(gt,mt){return pe(gt,mt,"$$")}),"keyword";if(Dt.match("$"))return Se(nt,function(gt,mt){return pe(gt,mt,"$")}),"keyword";var lt=Dt.next();if(lt=="%")return Dt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=Pe(nt),et)et.closeBracket(lt),Se(nt,Ht);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=se.DEFAULT,et=new et,Be(nt,et),"bracket"):/\d/.test(lt)?(Dt.eatWhile(/[\w.%]/),"atom"):(Dt.eatWhile(/[\w\-_]/),et=Ut(nt),et.name=="begin"&&(et.argument=Dt.current()),et.styleIdentifier())}function pe(Dt,nt,et){if(Dt.eatSpace())return null;if(et&&Dt.match(et))return Se(nt,Xe),"keyword";if(Dt.match(/^\\[a-zA-Z@]+/))return"tag";if(Dt.match(/^[a-zA-Z]+/))return"variable-2";if(Dt.match(/^\\[$&%#{}_]/)||Dt.match(/^\\[,;!\/]/)||Dt.match(/^[\^_&]/))return"tag";if(Dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Dt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Dt.skipToEnd(),"comment"):"error"}function Ht(Dt,nt){var et=Dt.peek(),ht;return et=="{"||et=="["?(ht=Pe(nt),ht.openBracket(et),Dt.eat(et),Se(nt,Xe),"bracket"):/[ \t\r]/.test(et)?(Dt.eat(et),null):(Se(nt,Xe),Bt(nt),Xe(Dt,nt))}return{startState:function(){var Dt=Ne.inMathMode?function(nt,et){return pe(nt,et)}:Xe;return{cmdState:[],f:Dt}},copyState:function(Dt){return{cmdState:Dt.cmdState.slice(),f:Dt.f}},token:function(Dt,nt){return nt.f(Dt,nt)},blankLine:function(Dt){Dt.f=Xe,Dt.cmdState.length=0},lineComment:"%"}}),Pt.defineMIME("text/x-stex","stex"),Pt.defineMIME("text/x-latex","stex")})},29589:function(un,Nn,Mt){(function(Pt){Pt(Mt(4631))})(function(Pt){"use strict";var ne={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},Ne={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Pt.defineMode("xml",function(Be,Pe){var Bt=Be.indentUnit,Ut={},ue=Pe.htmlMode?ne:Ne;for(var se in ue)Ut[se]=ue[se];for(var se in Pe)Ut[se]=Pe[se];var Se,Xe;function pe(de,Fe){function rn(Bn){return Fe.tokenize=Bn,Bn(de,Fe)}var De=de.next();if(De=="<")return de.eat("!")?de.eat("[")?de.match("CDATA[")?rn(nt("atom","]]>")):null:de.match("--")?rn(nt("comment","-->")):de.match("DOCTYPE",!0,!0)?(de.eatWhile(/[\w\._\-]/),rn(et(1))):null:de.eat("?")?(de.eatWhile(/[\w\._\-]/),Fe.tokenize=nt("meta","?>"),"meta"):(Se=de.eat("/")?"closeTag":"openTag",Fe.tokenize=Ht,"tag bracket");if(De=="&"){var jn;return de.eat("#")?de.eat("x")?jn=de.eatWhile(/[a-fA-F\d]/)&&de.eat(";"):jn=de.eatWhile(/[\d]/)&&de.eat(";"):jn=de.eatWhile(/[\w\.\-:]/)&&de.eat(";"),jn?"atom":"error"}else return de.eatWhile(/[^&<]/),null}pe.isInText=!0;function Ht(de,Fe){var rn=de.next();if(rn==">"||rn=="/"&&de.eat(">"))return Fe.tokenize=pe,Se=rn==">"?"endTag":"selfcloseTag","tag bracket";if(rn=="=")return Se="equals",null;if(rn=="<"){Fe.tokenize=pe,Fe.state=mt,Fe.tagName=Fe.tagStart=null;var De=Fe.tokenize(de,Fe);return De?De+" tag error":"tag error"}else return/[\'\"]/.test(rn)?(Fe.tokenize=Dt(rn),Fe.stringStartCol=de.column(),Fe.tokenize(de,Fe)):(de.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Dt(de){var Fe=function(rn,De){for(;!rn.eol();)if(rn.next()==de){De.tokenize=Ht;break}return"string"};return Fe.isInAttribute=!0,Fe}function nt(de,Fe){return function(rn,De){for(;!rn.eol();){if(rn.match(Fe)){De.tokenize=pe;break}rn.next()}return de}}function et(de){return function(Fe,rn){for(var De;(De=Fe.next())!=null;){if(De=="<")return rn.tokenize=et(de+1),rn.tokenize(Fe,rn);if(De==">")if(de==1){rn.tokenize=pe;break}else return rn.tokenize=et(de-1),rn.tokenize(Fe,rn)}return"meta"}}function ht(de,Fe,rn){this.prev=de.context,this.tagName=Fe,this.indent=de.indented,this.startOfLine=rn,(Ut.doNotIndent.hasOwnProperty(Fe)||de.context&&de.context.noIndent)&&(this.noIndent=!0)}function lt(de){de.context&&(de.context=de.context.prev)}function gt(de,Fe){for(var rn;;){if(!de.context||(rn=de.context.tagName,!Ut.contextGrabbers.hasOwnProperty(rn)||!Ut.contextGrabbers[rn].hasOwnProperty(Fe)))return;lt(de)}}function mt(de,Fe,rn){return de=="openTag"?(rn.tagStart=Fe.column(),xt):de=="closeTag"?St:mt}function xt(de,Fe,rn){return de=="word"?(rn.tagName=Fe.current(),Xe="tag",re):Ut.allowMissingTagName&&de=="endTag"?(Xe="tag bracket",re(de,Fe,rn)):(Xe="error",xt)}function St(de,Fe,rn){if(de=="word"){var De=Fe.current();return rn.context&&rn.context.tagName!=De&&Ut.implicitlyClosed.hasOwnProperty(rn.context.tagName)&<(rn),rn.context&&rn.context.tagName==De||Ut.matchClosing===!1?(Xe="tag",zt):(Xe="tag error",Jt)}else return Ut.allowMissingTagName&&de=="endTag"?(Xe="tag bracket",zt(de,Fe,rn)):(Xe="error",Jt)}function zt(de,Fe,rn){return de!="endTag"?(Xe="error",zt):(lt(rn),mt)}function Jt(de,Fe,rn){return Xe="error",zt(de,Fe,rn)}function re(de,Fe,rn){if(de=="word")return Xe="attribute",oe;if(de=="endTag"||de=="selfcloseTag"){var De=rn.tagName,jn=rn.tagStart;return rn.tagName=rn.tagStart=null,de=="selfcloseTag"||Ut.autoSelfClosers.hasOwnProperty(De)?gt(rn,De):(gt(rn,De),rn.context=new ht(rn,De,jn==rn.indented)),mt}return Xe="error",re}function oe(de,Fe,rn){return de=="equals"?$t:(Ut.allowMissing||(Xe="error"),re(de,Fe,rn))}function $t(de,Fe,rn){return de=="string"?Le:de=="word"&&Ut.allowUnquoted?(Xe="string",re):(Xe="error",re(de,Fe,rn))}function Le(de,Fe,rn){return de=="string"?Le:re(de,Fe,rn)}return{startState:function(de){var Fe={tokenize:pe,state:mt,indented:de||0,tagName:null,tagStart:null,context:null};return de!=null&&(Fe.baseIndent=de),Fe},token:function(de,Fe){if(!Fe.tagName&&de.sol()&&(Fe.indented=de.indentation()),de.eatSpace())return null;Se=null;var rn=Fe.tokenize(de,Fe);return(rn||Se)&&rn!="comment"&&(Xe=null,Fe.state=Fe.state(Se||rn,de,Fe),Xe&&(rn=Xe=="error"?rn+" error":Xe)),rn},indent:function(de,Fe,rn){var De=de.context;if(de.tokenize.isInAttribute)return de.tagStart==de.indented?de.stringStartCol+1:de.indented+Bt;if(De&&De.noIndent)return Pt.Pass;if(de.tokenize!=Ht&&de.tokenize!=pe)return rn?rn.match(/^(\s*)/)[0].length:0;if(de.tagName)return Ut.multilineTagIndentPastTag!==!1?de.tagStart+de.tagName.length+2:de.tagStart+Bt*(Ut.multilineTagIndentFactor||1);if(Ut.alignCDATA&&/<!\[CDATA\[/.test(Fe))return 0;var jn=Fe&&/^<(\/)?([\w_:\.-]*)/.exec(Fe);if(jn&&jn[1])for(;De;)if(De.tagName==jn[2]){De=De.prev;break}else if(Ut.implicitlyClosed.hasOwnProperty(De.tagName))De=De.prev;else break;else if(jn)for(;De;){var Bn=Ut.contextGrabbers[De.tagName];if(Bn&&Bn.hasOwnProperty(jn[2]))De=De.prev;else break}for(;De&&De.prev&&!De.startOfLine;)De=De.prev;return De?De.indent+Bt:de.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ut.htmlMode?"html":"xml",helperType:Ut.htmlMode?"html":"xml",skipAttribute:function(de){de.state==$t&&(de.state=re)},xmlCurrentTag:function(de){return de.tagName?{name:de.tagName,close:de.type=="closeTag"}:null},xmlCurrentContext:function(de){for(var Fe=[],rn=de.context;rn;rn=rn.prev)rn.tagName&&Fe.push(rn.tagName);return Fe.reverse()}}}),Pt.defineMIME("text/xml","xml"),Pt.defineMIME("application/xml","xml"),Pt.mimeModes.hasOwnProperty("text/html")||Pt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},28734:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";return function(Nn,Mt){var Pt=Mt.prototype,ne=Pt.format;Pt.format=function(Ne){var Be=this,Pe=this.$locale();if(!this.isValid())return ne.bind(this)(Ne);var Bt=this.$utils(),Ut=(Ne||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(ue){switch(ue){case"Q":return Math.ceil((Be.$M+1)/3);case"Do":return Pe.ordinal(Be.$D);case"gggg":return Be.weekYear();case"GGGG":return Be.isoWeekYear();case"wo":return Pe.ordinal(Be.week(),"W");case"w":case"ww":return Bt.s(Be.week(),ue==="w"?1:2,"0");case"W":case"WW":return Bt.s(Be.isoWeek(),ue==="W"?1:2,"0");case"k":case"kk":return Bt.s(String(Be.$H===0?24:Be.$H),ue==="k"?1:2,"0");case"X":return Math.floor(Be.$d.getTime()/1e3);case"x":return Be.$d.getTime();case"z":return"["+Be.offsetName()+"]";case"zzz":return"["+Be.offsetName("long")+"]";default:return ue}});return ne.bind(this)(Ut)}}})},96036:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";return function(Nn,Mt,Pt){var ne=Mt.prototype,Ne=function(ue){return ue&&(ue.indexOf?ue:ue.s)},Be=function(ue,se,Se,Xe,pe){var Ht=ue.name?ue:ue.$locale(),Dt=Ne(Ht[se]),nt=Ne(Ht[Se]),et=Dt||nt.map(function(lt){return lt.slice(0,Xe)});if(!pe)return et;var ht=Ht.weekStart;return et.map(function(lt,gt){return et[(gt+(ht||0))%7]})},Pe=function(){return Pt.Ls[Pt.locale()]},Bt=function(ue,se){return ue.formats[se]||function(Se){return Se.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Xe,pe,Ht){return pe||Ht.slice(1)})}(ue.formats[se.toUpperCase()])},Ut=function(){var ue=this;return{months:function(se){return se?se.format("MMMM"):Be(ue,"months")},monthsShort:function(se){return se?se.format("MMM"):Be(ue,"monthsShort","months",3)},firstDayOfWeek:function(){return ue.$locale().weekStart||0},weekdays:function(se){return se?se.format("dddd"):Be(ue,"weekdays")},weekdaysMin:function(se){return se?se.format("dd"):Be(ue,"weekdaysMin","weekdays",2)},weekdaysShort:function(se){return se?se.format("ddd"):Be(ue,"weekdaysShort","weekdays",3)},longDateFormat:function(se){return Bt(ue.$locale(),se)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};ne.localeData=function(){return Ut.bind(this)()},Pt.localeData=function(){var ue=Pe();return{firstDayOfWeek:function(){return ue.weekStart||0},weekdays:function(){return Pt.weekdays()},weekdaysShort:function(){return Pt.weekdaysShort()},weekdaysMin:function(){return Pt.weekdaysMin()},months:function(){return Pt.months()},monthsShort:function(){return Pt.monthsShort()},longDateFormat:function(se){return Bt(ue,se)},meridiem:ue.meridiem,ordinal:ue.ordinal}},Pt.months=function(){return Be(Pe(),"months")},Pt.monthsShort=function(){return Be(Pe(),"monthsShort","months",3)},Pt.weekdays=function(ue){return Be(Pe(),"weekdays",null,null,ue)},Pt.weekdaysShort=function(ue){return Be(Pe(),"weekdaysShort","weekdays",3,ue)},Pt.weekdaysMin=function(ue){return Be(Pe(),"weekdaysMin","weekdays",2,ue)}}})},55183:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";var Nn="week",Mt="year";return function(Pt,ne,Ne){var Be=ne.prototype;Be.week=function(Pe){if(Pe===void 0&&(Pe=null),Pe!==null)return this.add(7*(Pe-this.week()),"day");var Bt=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Ut=Ne(this).startOf(Mt).add(1,Mt).date(Bt),ue=Ne(this).endOf(Nn);if(Ut.isBefore(ue))return 1}var se=Ne(this).startOf(Mt).date(Bt).startOf(Nn).subtract(1,"millisecond"),Se=this.diff(se,Nn,!0);return Se<0?Ne(this).startOf("week").week():Math.ceil(Se)},Be.weeks=function(Pe){return Pe===void 0&&(Pe=null),this.week(Pe)}}})},172:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";return function(Nn,Mt){Mt.prototype.weekYear=function(){var Pt=this.month(),ne=this.week(),Ne=this.year();return ne===1&&Pt===11?Ne+1:Pt===0&&ne>=52?Ne-1:Ne}}})},6833:function(un){(function(Nn,Mt){un.exports=Mt()})(this,function(){"use strict";return function(Nn,Mt){Mt.prototype.weekday=function(Pt){var ne=this.$locale().weekStart||0,Ne=this.$W,Be=(Ne<ne?Ne+7:Ne)-ne;return this.$utils().u(Pt)?Be:this.subtract(Be,"day").add(Pt,"day")}}})},23495:function(un,Nn,Mt){"use strict";Mt.d(Nn,{$u:function(){return se},BD:function(){return Ot},E9:function(){return ue},FF:function(){return To},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return St},NB:function(){return Ve},S0:function(){return ze},UL:function(){return Se},Vk:function(){return lt},Vm:function(){return Ue},YI:function(){return je},ZA:function(){return Ne},Zt:function(){return Xe},al:function(){return kt},bn:function(){return Wt},bx:function(){return Lt},g2:function(){return He},h1:function(){return $t},hD:function(){return $i},l4:function(){return Bt},rU:function(){return Mn},s_:function(){return wt},uz:function(){return fn},z6:function(){return pe}}),un=Mt.hmd(un),function(){var bt;function wn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Fn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:wn(a)}}function Un(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Xn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ai;if(typeof Object.setPrototypeOf=="function")ai=Object.setPrototypeOf;else{var Tn;t:{var Di={a:!0},te={};try{te.__proto__=Di,Tn=te.a;break t}catch(a){}Tn=!1}ai=Tn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var le=ai;function ae(a,y){if(a.prototype=Xn(y.prototype),a.prototype.constructor=a,le)le(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Ae=typeof Mt.g!="undefined"&&Mt.g!=null?Mt.g:self,Sn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},An=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function En(a,y){if(y){var x=Ae;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&An(x,a,{writable:!0,value:y})}}En("Object.assign",function(a){return a||Sn}),En("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var ke=typeof globalThis=="object"&&globalThis||typeof Mt.g=="object"&&Mt.g.global===Mt.g&&Mt.g||typeof self=="object"&&self.self===self&&self||{};ke.requestAnimationFrame===void 0&&(ke.setImmediate===void 0?ke.requestAnimationFrame=function(a){ke.setTimeout(a,0)}:ke.requestAnimationFrame=ke.setImmediate);function cn(){}function _n(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&ke.clearTimeout(x),x=vi(function(){x=-1,a.apply(b,E)},y)}}function vi(a,y){return ke.setTimeout(a,y)}function mn(a){return ke.document.createElement(a)}function Oe(a){throw Error(a)}function ni(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Oe(a)}function Pi(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Oe(x+" is not in the range "+y+": "+a)}function Li(a){ke.console&&ke.console.log(a)}function qe(a){return typeof a=="object"&&a!==null}function oi(a){return Array.isArray(a)||ke.NodeList&&a instanceof ke.NodeList||ke.HTMLCollection&&a instanceof ke.HTMLCollection}function Ni(a){return Array.prototype.slice.call(a)}function gr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Oe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function xr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Oe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Si(){var a=la.pop();return a===void 0?[]:a}function Fi(a){a.length=0,la.push(a)}function Gi(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(qe(a)&&a.constructor)return Gi(a.constructor);return typeof a}function Mr(a){var y=a;return qe(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 hr(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Yn(a,y,x){Object.defineProperty(Fa.prototype,a,{get:y,set:x})}function zi(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 b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%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 qo=ke.navigator!==void 0&&0<ke.navigator.userAgent.indexOf("Trident/7"),sa=ke.navigator!==void 0&&ke.navigator.platform!==void 0&&ke.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,la=[];Object.freeze([]),cn.className="Util",cn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",cn.adym="gojs.net",cn.vfo="28e645fdb266",cn.className="Util";function Ke(a,y,x){Br(this),this.j=a,this.xa=y,this.o=x}Ke.prototype.toString=function(){return"EnumValue."+this.xa};function ur(a,y){return y==null||y===""?null:a[y]}Ae.Object.defineProperties(Ke.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Ke.className="EnumValue";function Tr(){this.ew=[]}Tr.prototype.toString=function(){return this.ew.join("")},Tr.prototype.add=function(a){a!==""&&this.ew.push(a)},Tr.className="StringBuilder";function or(){}or.className="PropertyCollection";var Vo={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ke.console&&ke.console.log(a)},HA:function(a,y,x,b){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(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function eo(){}eo.prototype.reset=function(){},eo.prototype.next=function(){return!1},eo.prototype.Ad=function(){return!1},eo.prototype.first=function(){return null},eo.prototype.any=function(){return!1},eo.prototype.all=function(){return!0},eo.prototype.each=function(){return this},eo.prototype.map=function(){return this},eo.prototype.filter=function(){return this},eo.prototype.de=function(){},eo.prototype.toString=function(){return"EmptyIterator"},Ae.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset;var uo=null;eo.className="EmptyIterator",uo=new eo;function Xr(a){this.key=-1,this.value=a}Xr.prototype.reset=function(){this.key=-1},Xr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Xr.prototype.Ad=function(){return this.next()},Xr.prototype.first=function(){return this.key=0,this.value},Xr.prototype.any=function(a){return this.key=-1,a(this.value)},Xr.prototype.all=function(a){return this.key=-1,a(this.value)},Xr.prototype.each=function(a){return this.key=-1,a(this.value),this},Xr.prototype.map=function(a){return new Xr(a(this.value))},Xr.prototype.filter=function(a){return a(this.value)?new Xr(this.value):uo},Xr.prototype.de=function(){this.value=null},Xr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ae.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="SingletonIterator";function Ir(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ir.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ir.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,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Ir.prototype.Ad=function(){return this.next()},Ir.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 b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ir.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Ir.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Ir.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Ir.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new Ln,a.s=x,a.xb(),a.iterator},Ir.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new Ln,a.s=x,a.xb(),a.iterator},Ir.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ir.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ae.Object.defineProperties(Ir.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,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Ir.prototype.first=Ir.prototype.first,Ir.prototype.hasNext=Ir.prototype.Ad,Ir.prototype.next=Ir.prototype.next,Ir.prototype.reset=Ir.prototype.reset,Ir.className="ListIterator";function Mo(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Mo.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Mo.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)},Mo.prototype.Ad=function(){return this.next()},Mo.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},Mo.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},Mo.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},Mo.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},Mo.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Ln,a.s=x,a.xb(),a.iterator},Mo.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Ln,a.s=x,a.xb(),a.iterator},Mo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Mo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ae.Object.defineProperties(Mo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Mo.prototype.first=Mo.prototype.first,Mo.prototype.hasNext=Mo.prototype.Ad,Mo.prototype.next=Mo.prototype.next,Mo.prototype.reset=Mo.prototype.reset,Mo.className="ListIteratorBackwards";function Ln(a){Br(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}bt=Ln.prototype,bt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return this._isFrozen=!1,this},bt.toString=function(){return"List()#"+Te(this)},bt.add=function(a){return a===null?this:(this._isFrozen&&ni(this,a),this.s.push(a),this.xb(),this)},bt.push=function(a){this.add(a)},bt.addAll=function(a){if(a===null)return this;this._isFrozen&&ni(this);var y=this.s;if(oi(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},bt.clear=function(){this._isFrozen&&ni(this),this.s.length=0,this.xb()},bt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},bt.has=function(a){return this.contains(a)},bt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},bt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Pi(a,"0 <= i < length",Ln,"elt:i"),y[a]},bt.get=function(a){return this.M(a)},bt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Pi(a,"0 <= i < length",Ln,"setElt:i"),this._isFrozen&&ni(this,a),x[a]=y},bt.set=function(a,y){this.cd(a,y)},bt.first=function(){var a=this.s;return a.length===0?null:a[0]},bt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},bt.pop=function(){this._isFrozen&&ni(this);var a=this.s;return 0<a.length?a.pop():null},Ln.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Ln.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Ln.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Ln.prototype.map=function(a){for(var y=new Ln,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Ln.prototype.filter=function(a){for(var y=new Ln,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},bt=Ln.prototype,bt.Gb=function(a,y){0>a&&Pi(a,">= 0",Ln,"insertAt:i"),this._isFrozen&&ni(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},bt.remove=function(a){if(a===null)return!1;this._isFrozen&&ni(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)},bt.delete=function(a){return this.remove(a)},bt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Pi(a,"0 <= i < length",Ln,"removeAt:i"),this._isFrozen&&ni(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},bt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&ni(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Ln.prototype.copy=function(){var a=new Ln,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},bt=Ln.prototype,bt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},bt.Iv=function(){for(var a=new Pn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},bt.sort=function(a){return this._isFrozen&&ni(this),this.s.sort(a),this.xb(),this},bt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&ni(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Pi(y,"0 <= from < length",Ln,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},bt.reverse=function(){return this._isFrozen&&ni(this),this.s.reverse(),this.xb(),this},Ae.Object.defineProperties(Ln.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 uo;var a=this.Sa;return a!==null?(a.reset(),a):new Ir(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return uo;var a=this.Hg;return a!==null?(a.reset(),a):new Mo(this)}}}),Ln.prototype.reverse=Ln.prototype.reverse,Ln.prototype.sortRange=Ln.prototype.zi,Ln.prototype.sort=Ln.prototype.sort,Ln.prototype.toSet=Ln.prototype.Iv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.removeRange=Ln.prototype.removeRange,Ln.prototype.removeAt=Ln.prototype.mb,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.insertAt=Ln.prototype.Gb,Ln.prototype.pop=Ln.prototype.pop,Ln.prototype.last=Ln.prototype.jc,Ln.prototype.first=Ln.prototype.first,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setElt=Ln.prototype.cd,Ln.prototype.get=Ln.prototype.get,Ln.prototype.elt=Ln.prototype.M,Ln.prototype.indexOf=Ln.prototype.indexOf,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.push=Ln.prototype.push,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze,Ln.className="List";function $r(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}$r.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},$r.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)},$r.prototype.Ad=function(){return this.next()},$r.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},$r.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},$r.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},$r.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},$r.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},$r.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},$r.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},$r.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ae.Object.defineProperties($r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),$r.prototype.first=$r.prototype.first,$r.prototype.hasNext=$r.prototype.Ad,$r.prototype.next=$r.prototype.next,$r.prototype.reset=$r.prototype.reset,$r.className="SetIterator";function Pn(a){Br(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}bt=Pn.prototype,bt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return this._isFrozen=!1,this},bt.toString=function(){return"Set()#"+Te(this)},bt.add=function(a){if(a===null)return this;this._isFrozen&&ni(this,a);var y=a;return qe(a)&&(y=Ga(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Nr(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},bt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ni(this),oi(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},bt.contains=function(a){if(a===null)return!1;var y=a;return qe(a)&&(y=Te(a),y===void 0)?!1:this.Tb[y]!==void 0},bt.has=function(a){return this.contains(a)},bt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},bt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},bt.first=function(){var a=this.ea;return a===null?null:a.value},Pn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Pn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Pn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Pn.prototype.map=function(a){for(var y=new Pn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Pn.prototype.filter=function(a){for(var y=new Pn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},bt=Pn.prototype,bt.remove=function(a){if(a===null)return!1;this._isFrozen&&ni(this,a);var y=a;if(qe(a)&&(y=Te(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},bt.delete=function(a){return this.remove(a)},bt.hp=function(a){if(a===null)return this;if(this._isFrozen&&ni(this),oi(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},bt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ni(this);var y=new Pn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},bt.clear=function(){this._isFrozen&&ni(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Pn.prototype.copy=function(){var a=new Pn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Pn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Pn.prototype.Hv=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Br(a){a.__gohashid=Ze++}function Ga(a){var y=a.__gohashid;return y===void 0&&(y=Ze++,a.__gohashid=y),y}function Te(a){return a.__gohashid}Ae.Object.defineProperties(Pn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return uo;var a=this.Sa;return a!==null?(a.reset(),a):new $r(this)}}}),Pn.prototype.toList=Pn.prototype.Hv,Pn.prototype.toArray=Pn.prototype.Fa,Pn.prototype.clear=Pn.prototype.clear,Pn.prototype.retainAll=Pn.prototype.pA,Pn.prototype.removeAll=Pn.prototype.hp,Pn.prototype.delete=Pn.prototype.delete,Pn.prototype.remove=Pn.prototype.remove,Pn.prototype.first=Pn.prototype.first,Pn.prototype.containsAny=Pn.prototype.Ty,Pn.prototype.containsAll=Pn.prototype.Sy,Pn.prototype.has=Pn.prototype.has,Pn.prototype.contains=Pn.prototype.contains,Pn.prototype.addAll=Pn.prototype.addAll,Pn.prototype.add=Pn.prototype.add,Pn.prototype.thaw=Pn.prototype.ka,Pn.prototype.freeze=Pn.prototype.freeze;var Ze=1;Pn.className="Set",Pn.uniqueHash=Br,Pn.hashIdUnique=Ga,Pn.hashId=Te;function sn(a){this.ma=a,this.qa=a.Ja,this.sa=null}sn.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},sn.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)},sn.prototype.Ad=function(){return this.next()},sn.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},sn.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},sn.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},sn.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},sn.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},sn.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},sn.prototype.de=function(){this.value=this.key=null,this.qa=-1},sn.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ae.Object.defineProperties(sn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),sn.prototype.first=sn.prototype.first,sn.prototype.hasNext=sn.prototype.Ad,sn.prototype.next=sn.prototype.next,sn.prototype.reset=sn.prototype.reset,sn.className="MapKeySetIterator";function zn(a){Pn.call(this),Br(this),this._isFrozen=!0,this.ma=a}ae(zn,Pn),bt=zn.prototype,bt.freeze=function(){return this},bt.ka=function(){return this},bt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},bt.add=function(){Oe("This Set is read-only: "+this.toString())},bt.contains=function(a){return this.ma.contains(a)},bt.has=function(a){return this.contains(a)},bt.remove=function(){Oe("This Set is read-only: "+this.toString())},bt.delete=function(a){return this.remove(a)},bt.clear=function(){Oe("This Set is read-only: "+this.toString())},bt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},zn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},zn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},zn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},zn.prototype.map=function(a){for(var y=new Pn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},zn.prototype.filter=function(a){for(var y=new Pn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},zn.prototype.copy=function(){return new zn(this.ma)},zn.prototype.Iv=function(){var a=new Pn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},zn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},zn.prototype.Hv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ae.Object.defineProperties(zn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?uo:new sn(this.ma)}}}),zn.prototype.toList=zn.prototype.Hv,zn.prototype.toArray=zn.prototype.Fa,zn.prototype.toSet=zn.prototype.Iv,zn.prototype.first=zn.prototype.first,zn.prototype.clear=zn.prototype.clear,zn.prototype.delete=zn.prototype.delete,zn.prototype.remove=zn.prototype.remove,zn.prototype.has=zn.prototype.has,zn.prototype.contains=zn.prototype.contains,zn.prototype.add=zn.prototype.add,zn.prototype.thaw=zn.prototype.ka,zn.prototype.freeze=zn.prototype.freeze,zn.className="MapKeySet";function Ii(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ii.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ii.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)},Ii.prototype.Ad=function(){return this.next()},Ii.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},Ii.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},Ii.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},Ii.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},Ii.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ii.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ii.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ii.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ae.Object.defineProperties(Ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ii.prototype.first=Ii.prototype.first,Ii.prototype.hasNext=Ii.prototype.Ad,Ii.prototype.next=Ii.prototype.next,Ii.prototype.reset=Ii.prototype.reset,Ii.className="MapValueSetIterator";function Nr(a,y){this.key=a,this.value=y,this.ll=this.va=null}Nr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Nr.className="KeyValuePair";function lr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}lr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},lr.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)},lr.prototype.Ad=function(){return this.next()},lr.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},lr.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},lr.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},lr.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},lr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},lr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},lr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},lr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ae.Object.defineProperties(lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),lr.prototype.first=lr.prototype.first,lr.prototype.hasNext=lr.prototype.Ad,lr.prototype.next=lr.prototype.next,lr.prototype.reset=lr.prototype.reset,lr.className="MapIterator";function si(a){Br(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"&&Oe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}bt=si.prototype,bt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return this._isFrozen=!1,this},bt.toString=function(){return"Map()#"+Te(this)},bt.add=function(a,y){this._isFrozen&&ni(this,a);var x=a;qe(a)&&(x=Ga(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Nr(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()):b.value=y,this},bt.set=function(a,y){return this.add(a,y)},bt.addAll=function(a){if(a===null)return this;if(oi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof si)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},bt.first=function(){return this.ea},si.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},si.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},si.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},si.prototype.map=function(a){for(var y=new si,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},si.prototype.filter=function(a){for(var y=new si,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},bt=si.prototype,bt.contains=function(a){var y=a;return qe(a)&&(y=Te(a),y===void 0)?!1:this.Tb[y]!==void 0},bt.has=function(a){return this.contains(a)},bt.I=function(a){var y=a;return qe(a)&&(y=Te(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},bt.get=function(a){return this.I(a)},bt.remove=function(a){if(a===null)return!1;this._isFrozen&&ni(this,a);var y=a;if(qe(a)&&(y=Te(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},bt.delete=function(a){return this.remove(a)},bt.clear=function(){this._isFrozen&&ni(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()},si.prototype.copy=function(){var a=new si,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},si.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Nr(E.key,E.value),x++}return y},si.prototype.Lf=function(){return new zn(this)},Ae.Object.defineProperties(si.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return uo;var a=this.Sa;return a!==null?(a.reset(),a):new lr(this)}},iteratorKeys:{get:function(){return 0>=this.count?uo:new sn(this)}},iteratorValues:{get:function(){if(0>=this.count)return uo;var a=this.jf;return a!==null?(a.reset(),a):new Ii(this)}}}),si.prototype.toKeySet=si.prototype.Lf,si.prototype.toArray=si.prototype.Fa,si.prototype.clear=si.prototype.clear,si.prototype.delete=si.prototype.delete,si.prototype.remove=si.prototype.remove,si.prototype.get=si.prototype.get,si.prototype.getValue=si.prototype.I,si.prototype.has=si.prototype.has,si.prototype.contains=si.prototype.contains,si.prototype.first=si.prototype.first,si.prototype.addAll=si.prototype.addAll,si.prototype.set=si.prototype.set,si.prototype.add=si.prototype.add,si.prototype.thaw=si.prototype.ka,si.prototype.freeze=si.prototype.freeze,si.className="Map";function Zt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Oe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Ao,rs,Ls,Xa,Ea;Zt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.copy=function(){var a=new Zt;return a.x=this.x,a.y=this.y,a},bt=Zt.prototype,bt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},bt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Eo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Zt(x,E)}return new Zt}function gs(a){return a.x.toString()+" "+a.y.toString()}bt.toString=function(){return"Point("+this.x+","+this.y+")"},bt.D=function(a){return a instanceof Zt?this.x===a.x&&this.y===a.y:!1},bt.hi=function(a,y){return this.x===a&&this.y===y},bt.Xa=function(a){return Ee.B(this.x,a.x)&&Ee.B(this.y,a.y)},bt.add=function(a){return this.x+=a.x,this.y+=a.y,this},bt.re=function(a){return this.x-=a.x,this.y-=a.y,this},bt.offset=function(a,y){return this.x+=a,this.y+=y,this},Zt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},bt=Zt.prototype,bt.scale=function(a,y){return this.x*=a,this.y*=y,this},bt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},bt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},bt.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},bt.ab=function(a){return os(a.x-this.x,a.y-this.y)},bt.direction=function(a,y){return os(a-this.x,y-this.y)};function os(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}bt.Ry=function(a,y){return Ee.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},bt.fA=function(a,y,x,b){return Ee.qh(a,y,x,b,this.x,this.y,this),this},bt.gA=function(a,y){return Ee.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},bt.uA=function(a,y,x,b){return Ee.No(this.x,this.y,a,y,x,b,this),this},bt.vA=function(a,y){return Ee.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},bt.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},bt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},bt.transform=function(a){return a.Ga(this),this};function Ho(a,y){return y.Cd(a),a}function _o(a,y,x,b,E,z){var tt=E-x,rt=z-b,at=tt*tt+rt*rt;x-=a,b-=y;var st=-x*tt-b*rt;return 0>=st||st>=at?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/at)}function er(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Qi(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}bt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Zt.alloc=function(){var a=Er.pop();return a===void 0?new Zt:a},Zt.allocAt=function(a,y){var x=Er.pop();return x===void 0?new Zt(a,y):(x.x=a,x.y=y,x)},Zt.free=function(a){Er.push(a)},Zt.prototype.isReal=Zt.prototype.w,Zt.prototype.setSpot=Zt.prototype.yi,Zt.prototype.setRectSpot=Zt.prototype.xi,Zt.prototype.snapToGridPoint=Zt.prototype.vA,Zt.prototype.snapToGrid=Zt.prototype.uA,Zt.prototype.projectOntoLineSegmentPoint=Zt.prototype.gA,Zt.prototype.projectOntoLineSegment=Zt.prototype.fA,Zt.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return Ee.Rl(a,y,x,b,E,z,tt,rt)},Zt.prototype.compareWithLineSegmentPoint=Zt.prototype.Ry,Zt.compareWithLineSegment=function(a,y,x,b,E,z){return Ee.Fl(a,y,x,b,E,z)},Zt.prototype.direction=Zt.prototype.direction,Zt.prototype.directionPoint=Zt.prototype.ab,Zt.prototype.normalize=Zt.prototype.normalize,Zt.prototype.distanceSquared=Zt.prototype.zd,Zt.prototype.distanceSquaredPoint=Zt.prototype.Bf,Zt.prototype.scale=Zt.prototype.scale,Zt.prototype.rotate=Zt.prototype.rotate,Zt.prototype.offset=Zt.prototype.offset,Zt.prototype.subtract=Zt.prototype.re,Zt.prototype.add=Zt.prototype.add,Zt.prototype.equalsApprox=Zt.prototype.Xa,Zt.prototype.equalTo=Zt.prototype.hi,Zt.prototype.equals=Zt.prototype.D,Zt.prototype.set=Zt.prototype.set,Zt.prototype.setTo=Zt.prototype.sg;var Er=[];Zt.className="Point",Zt.parse=Eo,Zt.stringify=gs,Zt.distanceLineSegmentSquared=_o,Zt.distanceSquared=er,Zt.direction=Qi,Zt.Origin=Ao=new Zt(0,0).ja(),Zt.InfiniteTopLeft=rs=new Zt(-1/0,-1/0).ja(),Zt.InfiniteBottomRight=Ls=new Zt(1/0,1/0).ja(),Zt.SixPoint=Xa=new Zt(6,6).ja(),Zt.NoPoint=Ea=new Zt(NaN,NaN).ja(),Zt.parse=Eo,Zt.stringify=gs,Zt.distanceLineSegmentSquared=_o,Zt.distanceSquared=er,Zt.direction=Qi;function hn(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):Oe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ar,oo,ca,$o,ia,as,Ks;hn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},hn.prototype.h=function(a,y){return this.width=a,this.height=y,this},hn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},hn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},hn.prototype.copy=function(){var a=new hn;return a.width=this.width,a.height=this.height,a},bt=hn.prototype,bt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},bt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function vs(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new hn(x,E)}return new hn}function au(a){return a.width.toString()+" "+a.height.toString()}bt.toString=function(){return"Size("+this.width+","+this.height+")"},bt.D=function(a){return a instanceof hn?this.width===a.width&&this.height===a.height:!1},bt.hi=function(a,y){return this.width===a&&this.height===y},bt.Xa=function(a){return Ee.B(this.width,a.width)&&Ee.B(this.height,a.height)},bt.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},bt.w=function(){return isFinite(this.width)&&isFinite(this.height)},hn.alloc=function(){var a=ks.pop();return a===void 0?new hn:a},hn.free=function(a){ks.push(a)},hn.prototype.isReal=hn.prototype.w,hn.prototype.inflate=hn.prototype.Bc,hn.prototype.equalsApprox=hn.prototype.Xa,hn.prototype.equalTo=hn.prototype.hi,hn.prototype.equals=hn.prototype.D,hn.prototype.set=hn.prototype.set,hn.prototype.setTo=hn.prototype.sg;var ks=[];hn.className="Size",hn.parse=vs,hn.stringify=au,hn.ZeroSize=ar=new hn(0,0).ja(),hn.OneSize=oo=new hn(1,1).ja(),hn.SixSize=ca=new hn(6,6).ja(),hn.EightSize=$o=new hn(8,8).ja(),hn.TenSize=ia=new hn(10,10).ja(),hn.InfiniteSize=as=new hn(1/0,1/0).ja(),hn.NoSize=Ks=new hn(NaN,NaN).ja(),hn.parse=vs,hn.stringify=au;function en(a,y,x,b){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 b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Zt?(x=a.x,a=a.y,y instanceof Zt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof hn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Oe("Incorrect second argument supplied to Rect constructor "+y)):Oe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}bt=en.prototype,bt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},bt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Us(a,y,x){a.width=y,a.height=x}bt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},bt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},bt.dd=function(a){return this.x=a.x,this.y=a.y,this},bt.tA=function(a){return this.width=a.width,this.height=a.height,this},en.prototype.copy=function(){var a=new en;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},bt=en.prototype,bt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},bt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function kl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new en(x,E,z,tt)}return new en}function xu(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}bt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},bt.D=function(a){return a instanceof en?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},bt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},bt.Xa=function(a){return Ee.B(this.x,a.x)&&Ee.B(this.y,a.y)&&Ee.B(this.width,a.width)&&Ee.B(this.height,a.height)};function ma(a,y){return Ee.$(a.x,y.x)&&Ee.$(a.y,y.y)&&Ee.$(a.width,y.width)&&Ee.$(a.height,y.height)}bt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},bt.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},bt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},bt.offset=function(a,y){return this.x+=a,this.y+=y,this},bt.Bc=function(a,y){return Pl(this,y,a,y,a)},bt.Co=function(a){return Pl(this,a.top,a.right,a.bottom,a.left)},bt.Fv=function(a){return Pl(this,-a.top,-a.right,-a.bottom,-a.left)},bt.Hz=function(a,y,x,b){return Pl(this,a,y,x,b)};function Pl(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}bt.Ex=function(a){return wl(this,a.x,a.y,a.width,a.height)},bt.Uu=function(a,y,x,b){return wl(this,a,y,x,b)};function wl(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}bt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},bt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function su(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}bt.Ye=function(a){return Aa(this,a.x,a.y,0,0)},bt.ed=function(a){return Aa(this,a.x,a.y,a.width,a.height)},bt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Aa(this,a,y,x,b)};function Aa(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}bt.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 ps(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function so(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}bt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},bt.Mz=function(){return this.width===0&&this.height===0},en.alloc=function(){var a=ls.pop();return a===void 0?new en:a},en.allocAt=function(a,y,x,b){var E=ls.pop();return E===void 0?new en(a,y,x,b):E.h(a,y,x,b)},en.free=function(a){ls.push(a)},Ae.Object.defineProperties(en.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Zt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new hn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Zt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),en.prototype.isEmpty=en.prototype.Mz,en.prototype.isReal=en.prototype.w,en.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return Ee.Fx(a,y,x,b,E,z,tt,rt)},en.prototype.setSpot=en.prototype.yi,en.prototype.union=en.prototype.Kv,en.prototype.unionRect=en.prototype.ed,en.prototype.unionPoint=en.prototype.Ye,en.prototype.intersects=en.prototype.Vu,en.prototype.intersectsRect=en.prototype.Yc,en.prototype.intersect=en.prototype.Uu,en.prototype.intersectRect=en.prototype.Ex,en.prototype.grow=en.prototype.Hz,en.prototype.subtractMargin=en.prototype.Fv,en.prototype.addMargin=en.prototype.Co,en.prototype.inflate=en.prototype.Bc,en.prototype.offset=en.prototype.offset,en.prototype.contains=en.prototype.contains,en.prototype.containsRect=en.prototype.Re,en.prototype.containsPoint=en.prototype.ca,en.prototype.equalsApprox=en.prototype.Xa,en.prototype.equalTo=en.prototype.hi,en.prototype.equals=en.prototype.D,en.prototype.setSize=en.prototype.tA,en.prototype.setPoint=en.prototype.dd,en.prototype.set=en.prototype.set,en.prototype.setTo=en.prototype.sg;var Do=null,ka=null,ls=[];en.className="Rect",en.parse=kl,en.stringify=xu,en.contains=ps,en.intersects=so,en.ZeroRect=Do=new en(0,0,0,0).ja(),en.NoRect=ka=new en(NaN,NaN,NaN,NaN).ja(),en.parse=kl,en.stringify=xu,en.contains=ps,en.intersects=so;function qi(a,y,x,b){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):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Oe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}qi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},qi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},qi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},qi.prototype.copy=function(){var a=new qi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},bt=qi.prototype,bt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},bt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Gu(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new qi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new qi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new qi(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new qi(x,E):new qi(x,E,z,tt)}return new qi}function zl(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}bt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},bt.D=function(a){return a instanceof qi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},bt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},bt.Xa=function(a){return Ee.B(this.top,a.top)&&Ee.B(this.right,a.right)&&Ee.B(this.bottom,a.bottom)&&Ee.B(this.left,a.left)},bt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},qi.alloc=function(){var a=Zu.pop();return a===void 0?new qi:a},qi.free=function(a){Zu.push(a)},qi.prototype.isReal=qi.prototype.w,qi.prototype.equalsApprox=qi.prototype.Xa,qi.prototype.equalTo=qi.prototype.hi,qi.prototype.equals=qi.prototype.D,qi.prototype.set=qi.prototype.set,qi.prototype.setTo=qi.prototype.sg;var Cl=null,Zh=null,Zu=[];qi.className="Margin",qi.parse=Gu,qi.stringify=zl,qi.ZeroMargin=Cl=new qi(0,0,0,0).ja(),qi.TwoMargin=Zh=new qi(2,2,2,2).ja(),qi.parse=Gu,qi.stringify=zl;function Bi(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var ds,Ns,Xl,Ms,Fs,no,Pa,Qr,ua,Za,Xs,Nl,Ts,fl,Pu,ph,mh,eh,Fu,Yl,ac,nh,dd,Dd,uf,al,ag,hf,fd,bc,Hl,Fl,ul,bl,gd,wu;Bi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Bi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Bi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Bi.prototype.copy=function(){var a=new Bi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},bt=Bi.prototype,bt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},bt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ys(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Nh(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ds;if(a==="TopLeft")return Ns;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Xl;if(a==="TopRight")return Ms;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Fs;if(a==="Center")return no;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Pa;if(a==="BottomLeft")return Qr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ua;if(a==="BottomRight")return Za;if(a==="TopSide")return Xs;if(a==="LeftSide")return Nl;if(a==="RightSide")return Ts;if(a==="BottomSide")return fl;if(a==="TopBottomSides")return Pu;if(a==="LeftRightSides")return ph;if(a==="TopLeftSides")return mh;if(a==="TopRightSides")return eh;if(a==="BottomLeftSides")return Fu;if(a==="BottomRightSides")return Yl;if(a==="NotTopSide")return ac;if(a==="NotLeftSide")return nh;if(a==="NotRightSide")return dd;if(a==="NotBottomSide")return Dd;if(a==="AllSides")return uf;if(a==="Default")return al;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new Bi(x,E,z,tt)}return new Bi}function Zc(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}bt.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(ds)?"None":this.D(Ns)?"TopLeft":this.D(Xl)?"Top":this.D(Ms)?"TopRight":this.D(Fs)?"Left":this.D(no)?"Center":this.D(Pa)?"Right":this.D(Qr)?"BottomLeft":this.D(ua)?"Bottom":this.D(Za)?"BottomRight":this.D(Xs)?"TopSide":this.D(Nl)?"LeftSide":this.D(Ts)?"RightSide":this.D(fl)?"BottomSide":this.D(Pu)?"TopBottomSides":this.D(ph)?"LeftRightSides":this.D(mh)?"TopLeftSides":this.D(eh)?"TopRightSides":this.D(Fu)?"BottomLeftSides":this.D(Yl)?"BottomRightSides":this.D(ac)?"NotTopSide":this.D(nh)?"NotLeftSide":this.D(dd)?"NotRightSide":this.D(Dd)?"NotBottomSide":this.D(uf)?"AllSides":this.D(al)?"Default":"None"},bt.D=function(a){return a instanceof Bi?(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},bt.gv=function(){return new Bi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},bt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ag))a=Nl;else if(a.D(hf))a=Ts;else if(a.D(fd))a=Xs;else if(a.D(bc))a=fl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},bt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},bt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},bt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},bt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},bt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Bi.alloc=function(){var a=Bd.pop();return a===void 0?new Bi:a},Bi.free=function(a){Bd.push(a)},Bi.prototype.isDefault=Bi.prototype.Xb,Bi.prototype.isNone=Bi.prototype.ys,Bi.prototype.isSide=Bi.prototype.$c,Bi.prototype.isNoSpot=Bi.prototype.Mc,Bi.prototype.isSpot=Bi.prototype.sb,Bi.prototype.includesSide=Bi.prototype.Hf,Bi.prototype.opposite=Bi.prototype.gv,Bi.prototype.equals=Bi.prototype.D,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setTo=Bi.prototype.sg;var Bd=[];Bi.className="Spot",Bi.parse=Nh,Bi.stringify=Zc,Bi.None=ds=Ys(new Bi(0,0,0,0),0).ja(),Bi.Default=al=Ys(new Bi(0,0,-1,0),-1).ja(),Bi.TopLeft=Ns=new Bi(0,0,0,0).ja(),Bi.TopCenter=Xl=new Bi(.5,0,0,0).ja(),Bi.TopRight=Ms=new Bi(1,0,0,0).ja(),Bi.LeftCenter=Fs=new Bi(0,.5,0,0).ja(),Bi.Center=no=new Bi(.5,.5,0,0).ja(),Bi.RightCenter=Pa=new Bi(1,.5,0,0).ja(),Bi.BottomLeft=Qr=new Bi(0,1,0,0).ja(),Bi.BottomCenter=ua=new Bi(.5,1,0,0).ja(),Bi.BottomRight=Za=new Bi(1,1,0,0).ja(),Bi.MiddleTop=Hl=Xl,Bi.MiddleLeft=Fl=Fs,Bi.MiddleRight=ul=Pa,Bi.MiddleBottom=bl=ua,Bi.Top=fd=Xl,Bi.Left=ag=Fs,Bi.Right=hf=Pa,Bi.Bottom=bc=ua,Bi.TopSide=Xs=Ys(new Bi(0,0,1,1),1).ja(),Bi.LeftSide=Nl=Ys(new Bi(0,0,1,2),1).ja(),Bi.RightSide=Ts=Ys(new Bi(0,0,1,4),1).ja(),Bi.BottomSide=fl=Ys(new Bi(0,0,1,8),1).ja(),Bi.TopBottomSides=Pu=Ys(new Bi(0,0,1,9),1).ja(),Bi.LeftRightSides=ph=Ys(new Bi(0,0,1,6),1).ja(),Bi.TopLeftSides=mh=Ys(new Bi(0,0,1,3),1).ja(),Bi.TopRightSides=eh=Ys(new Bi(0,0,1,5),1).ja(),Bi.BottomLeftSides=Fu=Ys(new Bi(0,0,1,10),1).ja(),Bi.BottomRightSides=Yl=Ys(new Bi(0,0,1,12),1).ja(),Bi.NotTopSide=ac=Ys(new Bi(0,0,1,14),1).ja(),Bi.NotLeftSide=nh=Ys(new Bi(0,0,1,13),1).ja(),Bi.NotRightSide=dd=Ys(new Bi(0,0,1,11),1).ja(),Bi.NotBottomSide=Dd=Ys(new Bi(0,0,1,7),1).ja(),Bi.AllSides=uf=Ys(new Bi(0,0,1,15),1).ja(),gd=new Bi(.156,.156).ja(),wu=new Bi(.844,.844).ja(),Bi.parse=Nh,Bi.stringify=Zc;function br(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}br.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},br.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},br.prototype.copy=function(){var a=new br;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},br.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},br.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},br.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},br.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},br.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=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=b,this.m22=E,this},br.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-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*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+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=b,this.m22=E,this},br.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=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=b,this.dx=E,this.dy=z,this},br.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},bt=br.prototype,bt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},bt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},bt.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)},bt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},bt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},bt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,at=this.m22,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,vt=y*tt+x*at+ut,Ct=b*z+x*rt+st,Et=b*tt+x*at+ut;return x=y*z+E*rt+st,y=y*tt+E*at+ut,z=b*z+E*rt+st,b=b*tt+E*at+ut,E=Math.min(ft,Ct),ft=Math.max(ft,Ct),Ct=Math.min(vt,Et),vt=Math.max(vt,Et),E=Math.min(E,x),ft=Math.max(ft,x),Ct=Math.min(Ct,y),vt=Math.max(vt,y),E=Math.min(E,z),ft=Math.max(ft,z),Ct=Math.min(Ct,b),vt=Math.max(vt,b),a.h(E,Ct,ft-E,vt-Ct),a},br.alloc=function(){var a=cf.pop();return a===void 0?new br:a},br.free=function(a){cf.push(a)},br.prototype.transformRect=br.prototype.pp,br.prototype.transformPoint=br.prototype.Ga,br.prototype.scale=br.prototype.scale,br.prototype.translate=br.prototype.translate,br.prototype.rotate=br.prototype.rotate,br.prototype.invert=br.prototype.Vj,br.prototype.multiplyInverted=br.prototype.bv,br.prototype.multiply=br.prototype.multiply,br.prototype.reset=br.prototype.reset,br.prototype.isIdentity=br.prototype.ws,br.prototype.equals=br.prototype.D,br.prototype.setTransform=br.prototype.setTransform,br.prototype.set=br.prototype.set;var cf=[];br.className="Transform",br.xF="54a702f3e53909c447824c6706603faf4c";var Ee={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ee.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ee.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,b,E,z,tt){if(0>=E&&(E=1e-6),a<x)var rt=a,at=x;else rt=x,at=a;if(y<b)var st=y,ut=b;else st=b,ut=y;if(a===x)return st<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=at&&y-E<=tt&&tt<=y+E;if(at+=E,rt-=E,rt<=z&&z<=at&&(ut+=E,st-=E,st<=tt&&tt<=ut))if(at-rt>ut-st)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,at,st,ut,ft){if(Ee.Yb(a,y,tt,rt,ft,x,b)&&Ee.Yb(a,y,tt,rt,ft,E,z))return Ee.Yb(a,y,tt,rt,ft,st,ut);var vt=(a+x)/2,Ct=(y+b)/2,Et=(x+E)/2,Nt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(vt+Et)/2,x=(Ct+Nt)/2,Et=(Et+E)/2,Nt=(Nt+z)/2;var Qt=(b+Et)/2,Gt=(x+Nt)/2;return Ee.cs(a,y,vt,Ct,b,x,Qt,Gt,at,st,ut,ft)||Ee.cs(Qt,Gt,Et,Nt,E,z,tt,rt,at,st,ut,ft)},ax:function(a,y,x,b,E,z,tt,rt,at){var st=(x+E)/2,ut=(b+z)/2;return at.h((((a+x)/2+st)/2+(st+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),at},My:function(a,y,x,b,E,z,tt,rt){var at=(x+E)/2,st=(b+z)/2;return Qi(((a+x)/2+at)/2,((y+b)/2+st)/2,(at+(E+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,at,st){if(Ee.Yb(a,y,tt,rt,at,x,b)&&Ee.Yb(a,y,tt,rt,at,E,z))Aa(st,a,y,0,0),Aa(st,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+Ct)/2,vt=(vt+E)/2,Ct=(Ct+z)/2;var Et=(b+vt)/2,Nt=(x+Ct)/2;Ee.Dl(a,y,ut,ft,b,x,Et,Nt,at,st),Ee.Dl(Et,Nt,vt,Ct,E,z,tt,rt,at,st)}return st},Qe:function(a,y,x,b,E,z,tt,rt,at,st){if(Ee.Yb(a,y,tt,rt,at,x,b)&&Ee.Yb(a,y,tt,rt,at,E,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.push(rt);else{var ut=(a+x)/2,ft=(y+b)/2,vt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+vt)/2,x=(ft+Ct)/2,vt=(vt+E)/2,Ct=(Ct+z)/2;var Et=(b+vt)/2,Nt=(x+Ct)/2;Ee.Qe(a,y,ut,ft,b,x,Et,Nt,at,st),Ee.Qe(Et,Nt,vt,Ct,E,z,tt,rt,at,st)}return st},jv:function(a,y,x,b,E,z,tt,rt,at,st){if(Ee.Yb(a,y,E,z,st,x,b))return Ee.Yb(a,y,E,z,st,rt,at);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var vt=(ut+x)/2,Ct=(ft+b)/2;return Ee.jv(a,y,ut,ft,vt,Ct,tt,rt,at,st)||Ee.jv(vt,Ct,x,b,E,z,tt,rt,at,st)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(Ee.Yb(a,y,E,z,tt,x,b))Aa(rt,a,y,0,0),Aa(rt,E,z,0,0);else{var at=(a+x)/2,st=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(at+x)/2,ft=(st+b)/2;Ee.iv(a,y,at,st,ut,ft,tt,rt),Ee.iv(ut,ft,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(Ee.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var at=(a+x)/2,st=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(at+x)/2,ft=(st+b)/2;Ee.ep(a,y,at,st,ut,ft,tt,rt),Ee.ep(ut,ft,x,b,E,z,tt,rt)}return rt},Eo:function(a,y,x,b,E,z,tt,rt,at,st,ut,ft,vt,Ct){if(Ee.Yb(a,y,tt,rt,vt,x,b)&&Ee.Yb(a,y,tt,rt,vt,E,z))return!Ee.Rl(a,y,tt,rt,at,st,ut,ft)||(vt=(a-tt)*(st-ft)-(y-rt)*(at-ut),vt===0)?!1:(Ct.h(((a*rt-y*tt)*(at-ut)-(a-tt)*(at*ft-st*ut))/vt,((a*rt-y*tt)*(st-ft)-(y-rt)*(at*ft-st*ut))/vt),!0);var Et=(a+x)/2,Nt=(y+b)/2,Qt=(x+E)/2,Gt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(Et+Qt)/2,x=(Nt+Gt)/2,Qt=(Qt+E)/2,Gt=(Gt+z)/2;var ee=(b+Qt)/2,ie=(x+Gt)/2,he=1/0,Ce=!1,We=0,ii=0;return Ee.Eo(a,y,Et,Nt,b,x,ee,ie,at,st,ut,ft,vt,Ct)&&(a=(Ct.x-at)*(Ct.x-at)+(Ct.y-st)*(Ct.y-st),a<he&&(he=a,Ce=!0,We=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y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,rt,at){return Ee.B(a,x)&&Ee.B(y,b)?(at.h(a,y),!1):Ee.$(E,tt)?Ee.$(a,x)?(Ee.qh(a,y,x,b,E,z,at),!1):Ee.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(rt=(rt-z)/(tt-E),Ee.$(a,x)?(x=rt*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(tt=(b-y)/(x-a),Ee.$(rt,tt)?(Ee.qh(a,y,x,b,E,z,at),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),Ee.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):Ee.qh(a,y,x,b,E,tt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return Ee.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,rt,at,st){function ut(Qt,Gt){var ee=(Qt-a)*(Qt-a)+(Gt-y)*(Gt-y);ee<ft&&(ft=ee,at.h(Qt,Gt))}var ft=1/0;ut(at.x,at.y);var vt=0,Ct=0,Et=0,Nt=0;if(E<tt?(vt=E,Ct=tt):(vt=tt,Ct=E),z<rt?(Et=E,Nt=tt):(Et=tt,Nt=E),vt=(Ct-vt)/2+st,st=(Nt-Et)/2+st,E=(E+tt)/2,z=(z+rt)/2,vt===0||st===0)return at;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-E)*(x-E)/(vt*vt),0>vt)return at;vt=Math.sqrt(vt),b=-st*vt+z,ut(x,st*vt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(vt*vt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*E/(vt*vt),vt=rt*rt-4*b*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+E*E/(vt*vt)-1+(y-x*a)*(y-x*a)/(st*st)),0>vt)return at;vt=Math.sqrt(vt),st=(-rt+vt)/(2*b),ut(st,x*st-x*a+y),vt=(-rt-vt)/(2*b),ut(vt,x*vt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,tt,rt,at){var st=1e21,ut=a,ft=y;if(Ee.Ve(a,y,a,b,E,z,tt,rt,at)){var vt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);vt<st&&(st=vt,ut=at.x,ft=at.y)}return Ee.Ve(x,y,x,b,E,z,tt,rt,at)&&(vt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),vt<st&&(st=vt,ut=at.x,ft=at.y)),Ee.Ve(a,y,x,y,E,z,tt,rt,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<st&&(st=y,ut=at.x,ft=at.y)),Ee.Ve(a,b,x,b,E,z,tt,rt,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<st&&(st=a,ut=at.x,ft=at.y)),at.h(ut,ft),1e21>st},us:function(a,y,x){return Ee.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,rt){var at=a+x,st=y+b;return E===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=E&&E<=at&&tt<=st&&z>=y):z===rt?(E<tt?(rt=E,E=tt):rt=tt,y<=z&&z<=st&&rt<=at&&E>=a):!!(ps(a,y,x,b,E,z)||ps(a,y,x,b,tt,rt)||Ee.Rl(a,y,at,y,E,z,tt,rt)||Ee.Rl(at,y,at,st,E,z,tt,rt)||Ee.Rl(at,st,a,st,E,z,tt,rt)||Ee.Rl(a,st,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=Ee.Fl(a,y,x,b,E,z)*Ee.Fl(a,y,x,b,tt,rt)&&0>=Ee.Fl(E,z,tt,rt,a,y)*Ee.Fl(E,z,tt,rt,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var at=tt/2,st=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return at=st+rt*Math.min(b,at),rt=a+x*Math.cos(st),st=y+x*Math.sin(st),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(rt+a)/2,at=(st+y)/2,z.push([rt,st,x,at,x,at,a,y]),z;for(;1e-5<b;)E=st+rt*Math.min(b,at),z.push(Ee.Vy(x,st,E,a,y)),b-=Math.abs(E-st),st=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),at=-rt,st=tt*tt+at*at,ut=st+tt*tt+at*rt;return st=4/3*(Math.sqrt(2*st*ut)-ut)/(tt*rt-at*tt),rt=tt-st*at,tt=at+st*tt,at=-tt,st=z+y,z=Math.cos(st),st=Math.sin(st),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-tt*st,E+rt*st+tt*z,b+rt*z-at*st,E+rt*st+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var at=tt===0?a:y,st=tt===0?x:b;return(tt===0?E:z)&&(st=-st),tt=rt,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),Ee.az(at,tt===0?a:y,st,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var tt=y*b,rt=-z+tt,at=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var st=0;9999999999>st&&(y=.5*(rt+at),!(y===rt||y===at));++st){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new or,um:new or,Mf:new or,Nf:0,vm:100};Ee.za=Ee.AA;function Vn(a){Br(this),this.l=2,a===void 0&&(a=Vn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Vn.o?this.ee=new Ln:(Vn.V===null&&(Vn.V=new Ln().freeze()),this.ee=Vn.V),this.aq=this.ee.Ja,this.Ip=new en().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ns,this.gg=Za,this.Rk=this.Sk=NaN,this.Uf=dn}Vn.prototype.copy=function(){var a=new Vn;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===Vn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].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},Vn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Vn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Vn.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},Vn.prototype.ka=function(){if(Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Vn.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},Vn.prototype.Xa=function(a){if(!(a instanceof Vn))return!1;if(this.type!==a.type)return this.type===Vn.j&&a.type===Vn.o?Od(this,a):a.type===Vn.j&&this.type===Vn.o?Od(a,this):!1;if(this.type===Vn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ee.B(this.startX,a.startX)&&Ee.B(this.startY,a.startY)&&Ee.B(this.endX,a.endX)&&Ee.B(this.endY,a.endY)};function Od(a,y){return a.type!==Vn.j||y.type!==Vn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ee.B(a.startX,y.startX)&&Ee.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===da&&Ee.B(a.endX,y.endX)&&Ee.B(a.endY,y.endY))))}Vn.ia=function(a){return a.toString()},Vn.prototype.qb=function(a){a.classType===Vn&&(this.type=a)},Vn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Vn.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 Vn.u:var y=new en(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 Vn.F:if(y=new en(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 Vn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Vn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Vn.parse=function(a,y){function x(){return Nt>=he-1?!0:st[Nt+1].match(Ce)!==null}function b(){return Nt++,st[Nt]}function E(cr){var ir=parseFloat(b()),Lo=parseFloat(b());Qt===Qt.toLowerCase()&&(ir=ie.x+ir,Lo=ie.y+Lo),cr.h(ir,Lo)}function z(){return E(ie),ie}function tt(){return E(ee),ee}function rt(){var cr=Gt.toLowerCase();return cr!=="c"&&cr!=="s"&&cr!=="q"&&cr!=="t"?ie:new Zt(2*ie.x-ee.x,2*ie.y-ee.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$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){at=Si();for(var ft="",vt=!1,Ct=0;Ct<ut.length;Ct++){var Et=ut[Ct];Et!=="."||vt?Et==="."?(at.push(ft),ft="."):ft+=Et:(vt=!0,ft+=Et)}for(at.push(ft),st.splice(a,1),ut=0;ut<at.length;ut++)st.splice(a+ut,0,at[ut]);a+=at.length-1,Fi(at)}}var Nt=-1,Qt="",Gt="";at=new Zt(0,0);var ee=new Zt(0,0),ie=new Zt(0,0),he=st.length;a=NS(null),vt=ft=ut=!1,Ct=!0,Et=null;for(var Ce=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Nt>=he-1);)if(Gt=Qt,Qt=b(),Qt!=="")switch(Qt.toUpperCase()){case"X":Ct=!0,ft=ut=!1;break;case"M":for(Et=z(),a.mc===null||Ct===!0?(Zg(a,Et.x,Et.y,ut,!ft,vt),Ct=!1):a.moveTo(Et.x,Et.y),at.assign(ie);!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"L":for(;!x();)Et=z(),a.lineTo(Et.x,Et.y);break;case"H":for(;!x();)ie=new Zt((Qt===Qt.toLowerCase()?ie.x:0)+parseFloat(b()),ie.y),a.lineTo(ie.x,ie.y);break;case"V":for(;!x();)ie=new Zt(ie.x,(Qt===Qt.toLowerCase()?ie.y:0)+parseFloat(b())),a.lineTo(ie.x,ie.y);break;case"C":for(;!x();){Et=new Zt,E(Et);var We=tt(),ii=z();Vd(a,Et.x,Et.y,We.x,We.y,ii.x,ii.y)}break;case"S":for(;!x();)Et=rt(),We=tt(),ii=z(),Vd(a,Et.x,Et.y,We.x,We.y,ii.x,ii.y);break;case"Q":for(;!x();)Et=tt(),We=z(),Gm(a,Et.x,Et.y,We.x,We.y);break;case"T":for(;!x();)ee=Et=rt(),We=z(),Gm(a,Et.x,Et.y,We.x,We.y);break;case"B":for(;!x();){Et=parseFloat(b()),We=parseFloat(b()),ii=parseFloat(b());var bi=parseFloat(b()),mi=parseFloat(b()),Wn=mi,xn=!1;x()||(Wn=parseFloat(b()),x()||(xn=parseFloat(b())!==0)),Qt===Qt.toLowerCase()&&(ii+=ie.x,bi+=ie.y),a.arcTo(Et,We,ii,bi,mi,Wn,xn)}break;case"A":for(;!x();)Et=Math.abs(parseFloat(b())),We=Math.abs(parseFloat(b())),ii=parseFloat(b()),mi=bi=!1,xn=Wn=0,Wn=b(),Wn.length===1?(bi=!!parseFloat(Wn),mi=!!parseFloat(b()),Wn=parseFloat(b())):Wn.length===2?(bi=!!parseFloat(Wn[0]),mi=!!parseFloat(Wn[1]),Wn=parseFloat(b())):(bi=!!parseFloat(Wn[0]),mi=!!parseFloat(Wn[1]),Wn=parseFloat(Wn.slice(2))),xn=parseFloat(b()),Qt===Qt.toLowerCase()&&(Wn=ie.x+Wn,xn=ie.y+xn),ie.h(Wn,xn),wx(a,Et,We,ii,bi,mi,Wn,xn);break;case"Z":Px(a),ie.assign(at);break;case"F":for(Et="",We=1;st[Nt+We];)if(st[Nt+We]==="0")vt=!0,We++;else if(st[Nt+We].match(/[Uu]/)!==null)We++;else if(st[Nt+We].match(Ce)===null)We++;else{Et=st[Nt+We];break}Et.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Et="",We=1;st[Nt+We];)if(st[Nt+We].match(/[Ff]/)!==null)We++;else if(st[Nt+We].match(Ce)===null)We++;else{Et=st[Nt+We];break}Et.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(at=a.os,Zm=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Vn.Ha=function(a,y){for(var x=a.length,b=Zt.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Zt.free(b)},Vn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Vn.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},Vn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Vn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[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),df(this,a,!1),Aa(a,0,0,0,0),a.freeze()},Vn.prototype.ix=function(){var a=new en;return df(this,a,!0),a};function df(a,y,x){switch(a.type){case Vn.j:case Vn.u:case Vn.F:x?y.h(a.od,a.pd,0,0):Aa(y,a.od,a.pd,0,0),Aa(y,a.Dc,a.Ec,0,0);break;case Vn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Aa(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,at=z.startX,st=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case da:case Ps:at=ft.endX,st=ft.endY,Aa(y,at,st,0,0);break;case tl:Ee.Dl(at,st,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),at=ft.endX,st=ft.endY;break;case lu:Ee.iv(at,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),at=ft.endX,st=ft.endY;break;case Ss:case Cu:var vt=ft.type===Ss?Jl(ft,z):Tu(ft,z,at,st),Ct=vt.length;if(Ct===0){at=ft.type===Ss?ft.centerX:ft.endX,st=ft.type===Ss?ft.centerY:ft.endY,Aa(y,at,st,0,0);break}ft=null;for(var Et=0;Et<Ct;Et++)ft=vt[Et],Ee.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(at=ft[6],st=ft[7]);break;default:Oe("Unknown Segment type: "+ft.type)}}}break;default:Oe("Unknown Geometry type: "+a.type)}}Vn.prototype.normalize=function(){this._isFrozen&&ni(this);var a=this.ix();return this.offset(-a.x,-a.y),new Zt(-a.x,-a.y)},Vn.prototype.offset=function(a,y){return this._isFrozen&&ni(this),this.transform(1,0,0,1,a,y),this},Vn.prototype.scale=function(a,y){return this._isFrozen&&ni(this),this.transform(a,0,0,y,0,0),this},Vn.prototype.rotate=function(a,y,x){this._isFrozen&&ni(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=br.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),br.free(b),this},bt=Vn.prototype,bt.transform=function(a,y,x,b,E,z){switch(this.type){case Vn.j:case Vn.u:case Vn.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+E,this.pd=tt*y+rt*b+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+E,this.Ec=tt*y+rt*b+z;break;case Vn.o:for(var at=this.figures.s,st=at.length,ut=0;ut<st;ut++){var ft=at[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+E,ft.startY=tt*y+rt*b+z,ft=ft.segments.s;for(var vt=ft.length,Ct=0;Ct<vt;Ct++){var Et=ft[Ct];switch(Et.type){case da:case Ps:tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case tl:tt=Et.point1X,rt=Et.point1Y,Et.point1X=tt*a+rt*x+E,Et.point1Y=tt*y+rt*b+z,tt=Et.point2X,rt=Et.point2Y,Et.point2X=tt*a+rt*x+E,Et.point2Y=tt*y+rt*b+z,tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case lu:tt=Et.point1X,rt=Et.point1Y,Et.point1X=tt*a+rt*x+E,Et.point1Y=tt*y+rt*b+z,tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z;break;case Ss:tt=Et.centerX,rt=Et.centerY,Et.centerX=tt*a+rt*x+E,Et.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.startAngle+=tt),0>a&&(Et.startAngle=180-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),0>b&&(Et.startAngle=-Et.startAngle,Et.sweepAngle=-Et.sweepAngle),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY!==void 0&&(Et.radiusY*=Math.sqrt(y*y+b*b));break;case Cu:if(tt=Et.endX,rt=Et.endY,Et.endX=tt*a+rt*x+E,Et.endY=tt*y+rt*b+z,Et.radiusX===0||Et.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Et.xAxisRotation+=tt),0>a&&(Et.xAxisRotation=180-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),0>b&&(Et.xAxisRotation=-Et.xAxisRotation,Et.isClockwiseArc=!Et.isClockwiseArc),Et.radiusX*=Math.sqrt(a*a+x*x),Et.radiusY*=Math.sqrt(y*y+b*b);break;default:Oe("Unknown Segment type: "+Et.type)}}}}return this._isInvalidBounds=!0,this},bt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case Vn.j:return Ee.Yb(x,b,E,z,y,a.x,a.y);case Vn.u:var tt=en.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),en.free(tt),a;case Vn.F:tt=Math.min(x,E)-y;var rt=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+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 Vn.o:return Vh(this,a,y,!0,!1);default:return!1}};function Vh(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,at,st,ut,ft,vt=a.figures.s,Ct=vt.length,Et=0;Et<Ct;Et++){var Nt=vt[Et],Qt=!Nt.isEvenOdd;if(Nt.isFilled){if(b&&Nt.ca(z,y,x))return!0;var Gt=Nt.segments;at=Nt.startX,st=Nt.startY;for(var ee=at,ie=st,he=Gt.s,Ce=0;Ce<=Gt.length;Ce++){var We=void 0;if(Ce!==Gt.length){We=he[Ce];var ii=We.type;a=We.endX,ft=We.endY}else ii=da,a=ee,ft=ie;switch(ii){case Ps:if(ee=vh(z,y,tt,y,at,st,ee,ie),isNaN(ee))return!0;rt+=ee,ee=a,ie=ft;break;case da:if(at=vh(z,y,tt,y,at,st,a,ft),isNaN(at))return!0;rt+=at;break;case tl:ut=Ee.Fo(at,st,We.point1X,We.point1Y,We.point2X,We.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case lu:ut=Ee.Fo(at,st,(at+2*We.point1X)/3,(st+2*We.point1Y)/3,(2*We.point1X+a)/3,(2*We.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case Ss:case Cu:ii=We.type===Ss?Jl(We,Nt):Tu(We,Nt,at,st);var bi=ii.length;if(bi===0){if(at=vh(z,y,tt,y,at,st,We.type===Ss?We.centerX:We.endX,We.type===Ss?We.centerY:We.endY),isNaN(at))return!0;rt+=at;break}We=null;for(var mi=0;mi<bi;mi++){if(We=ii[mi],mi===0){if(ut=vh(z,y,tt,y,at,st,We[0],We[1]),isNaN(ut))return!0;rt+=ut}ut=Ee.Fo(We[0],We[1],We[2],We[3],We[4],We[5],We[6],We[7],tt,y,z,y,.5),rt+=ut}We!==null&&(a=We[6],ft=We[7]);break;default:Oe("Unknown Segment type: "+We.type)}at=a,st=ft}if(Qt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Nt.ca(z,y,E?x:x+2))return!0}return!1}function vh(a,y,x,b,E,z,tt,rt){if(Ee.Yb(E,z,tt,rt,.05,a,y))return NaN;var at=(a-x)*(z-rt);if(at===0)return 0;var st=((a*b-y*x)*(E-tt)-(a-x)*(E*rt-z*tt))/at;if(y=(a*b-y*x)*(z-rt)/at,st>=a)return 0;if((E>tt?E-tt:tt-E)<(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(E<tt){if(st<E||st>tt)return 0}else if(st<tt||st>E)return 0;return 0<at?1:-1}function Lc(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}bt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Zt),this.type===Vn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var at=b[rt],st=at.length;for(a=0;a<st;a++){var ut=at[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},bt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Vn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var rt=x[tt],at=rt.length;for(a=0;a<at;a++){var st=rt[a];if(z+st>=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=st}}return NaN},bt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Vn.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,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var at=b[rt],st=at.length;for(a=0;a<st;a++){var ut=at[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},bt.xx=function(a){if(this.type===Vn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=Zt.alloc();return Ee.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,Zt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Vn.u){tt=this.startX,rt=this.startY;var at=this.endX;if(E=this.endY,tt!==at||rt!==E){y=at-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),at),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),at=Math.abs(b-at),rt=Math.abs(a-rt),E=Math.abs(a-E);var st=Math.min(tt,at,rt,E);if(st===rt)return b/z;if(st===at)return(y+a)/z;if(st===E)return(2*y+x-b)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Zt.alloc(),E=1/0,rt=tt=0,at=y.length;for(var ut=st=0,ft=0;ft<at;ft++)for(var vt=y[ft],Ct=x[ft],Et=vt.length,Nt=0;Nt<Et;Nt+=2){var Qt=vt[Nt],Gt=vt[Nt+1];if(Nt!==0){Ee.qh(st,ut,Qt,Gt,a.x,a.y,b);var ee=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);ee<E&&(E=ee,tt=rt,tt+=Math.sqrt((b.x-st)*(b.x-st)+(b.y-ut)*(b.y-ut))),rt+=Ct[(Nt-2)/2]}st=Qt,ut=Gt}return Zt.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function Mc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Vn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Vn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Vn.F){var z=new Is;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new ho(Ss);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=Jl(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var at=a[rt];Ee.Qe(tt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),tt=at[6],z=at[7]}}y.push(b),x.push(sc(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,rt=tt,at=z;for(var st=E.segments.s,ut=st.length,ft=0;ft<ut;ft++){var vt=st[ft];switch(vt.type){case Ps:4<=b.length&&(y.push(b),x.push(sc(b))),b=[],b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY,rt=tt,at=z;break;case da:b.push(vt.endX),b.push(vt.endY),tt=vt.endX,z=vt.endY;break;case tl:Ee.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case lu:Ee.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,b),tt=vt.endX,z=vt.endY;break;case Ss:var Ct=Jl(vt,E),Et=Ct.length;if(Et===0){b.push(vt.centerX),b.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var Nt=0;Nt<Et;Nt++){var Qt=Ct[Nt];Ee.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7]}break;case Cu:if(Ct=Tu(vt,E,tt,z),Et=Ct.length,Nt=vt.endX,Qt=vt.endY,Et===0){b.push(Nt),b.push(Qt),tt=Nt,z=Qt;break}for(Nt=0;Nt<Et;Nt++)Qt=Ct[Nt],Ee.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7];break;default:Oe("Segment not of valid type: "+vt.type)}vt.isClosed&&(b.push(rt),b.push(at))}4<=b.length&&(y.push(b),x.push(sc(b)))}}}function sc(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(er(x,b,tt,rt))),x=tt,b=rt}return y}bt.add=function(a){return this.ee.add(a),this},bt.pm=function(a,y,x,b,E,z,tt,rt){return this._isFrozen&&ni(this),this.fg=new Bi(a,y,E,z).freeze(),this.gg=new Bi(x,b,tt,rt).freeze(),this},Ae.Object.defineProperties(Vn.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 Mc(this),this.tk}},flattenedLengths:{get:function(){return Mc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Vn.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===Vn.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,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&ni(this,a),this.na=a,a===Vn.o?this.ee=new Ln:(Vn.V===null&&(Vn.V=new Ln().freeze()),this.ee=Vn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ni(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ni(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ni(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ni(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ni(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ni(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ni(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ni(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Vn.prototype.setSpots=Vn.prototype.pm,Vn.prototype.add=Vn.prototype.add,Vn.prototype.getFractionForPoint=Vn.prototype.xx,Vn.prototype.getPointAndAngleAlongPath=Vn.prototype.Qu,Vn.prototype.getAngleAlongPath=Vn.prototype.wx,Vn.prototype.getPointAlongPath=Vn.prototype.Pu,Vn.prototype.containsPoint=Vn.prototype.ca,Vn.prototype.transform=Vn.prototype.transform,Vn.prototype.rotate=Vn.prototype.rotate,Vn.prototype.scale=Vn.prototype.scale,Vn.prototype.offset=Vn.prototype.offset,Vn.prototype.normalize=Vn.prototype.normalize,Vn.prototype.computeBoundsWithoutOrigin=Vn.prototype.ix,Vn.prototype.equalsApprox=Vn.prototype.Xa,Vn.className="Geometry",Vn.j=new Ke(Vn,"Line",0),Vn.u=new Ke(Vn,"Rectangle",1),Vn.F=new Ke(Vn,"Ellipse",2),Vn.o=new Ke(Vn,"Path",3),Vn.V=null,Vn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Vn.className="Geometry",Vn.stringify=Vn.ia,Vn.fillPath=Vn.nb,Vn.parse=Vn.parse,Vn.Line=Vn.j,Vn.Rectangle=Vn.u,Vn.Ellipse=Vn.F,Vn.Path=Vn.o;function Is(a,y,x,b,E){Br(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Ln,this.sr=this.pl.Ja,this.fw=null}Is.prototype.copy=function(){var a=new Is;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},bt=Is.prototype,bt.Xa=function(a){if(!(a instanceof Is&&Ee.B(this.startX,a.startX)&&Ee.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 b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},bt.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,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},bt.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},bt.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},bt.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},bt.add=function(a){return this.pl.add(a),this},bt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,rt=this.segments.s,at=rt.length,st=0;st<at;st++){var ut=rt[st];switch(ut.type){case Ps:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case da:if(Ee.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case tl:if(Ee.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case lu:if(Ee.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case Ss:case Cu:var ft=ut.type===Ss?Jl(ut,this):Tu(ut,this,b,E),vt=ft.length,Ct=ut.type===Ss?ut.centerX:ut.endX,Et=ut.type===Ss?ut.centerY:ut.endY;if(vt===0){if(Ee.Yb(b,E,Ct,Et,x,a,y))return!0;b=Ct,E=Et;break}for(Ct=null,Et=0;Et<vt;Et++)if(Ct=ft[Et],Et===0&&Ee.Yb(b,E,Ct[0],Ct[1],x,a,y)||Ee.cs(Ct[0],Ct[1],Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,a,y,x))return!0;Ct!==null&&(b=Ct[6],E=Ct[7]);break;default:Oe("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&Ee.Yb(b,E,z,tt,x,a,y))return!0}return!1},Ae.Object.defineProperties(Is.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&&ni(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ni(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ni(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ni(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ni(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ni(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Is.prototype.add=Is.prototype.add,Is.prototype.equalsApprox=Is.prototype.Xa,Is.className="PathFigure";function ho(a,y,x,b,E,z,tt,rt){Br(this),a===void 0&&(a=da),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===Cu?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Ss&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Ss&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ho.prototype.copy=function(){var a=new ho;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},bt=ho.prototype,bt.Xa=function(a){if(!(a instanceof ho)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Ps:case da:return Ee.B(this.endX,a.endX)&&Ee.B(this.endY,a.endY);case tl:return Ee.B(this.endX,a.endX)&&Ee.B(this.endY,a.endY)&&Ee.B(this.point1X,a.point1X)&&Ee.B(this.point1Y,a.point1Y)&&Ee.B(this.point2X,a.point2X)&&Ee.B(this.point2Y,a.point2Y);case lu:return Ee.B(this.endX,a.endX)&&Ee.B(this.endY,a.endY)&&Ee.B(this.point1X,a.point1X)&&Ee.B(this.point1Y,a.point1Y);case Ss:return Ee.B(this.startAngle,a.startAngle)&&Ee.B(this.sweepAngle,a.sweepAngle)&&Ee.B(this.centerX,a.centerX)&&Ee.B(this.centerY,a.centerY)&&Ee.B(this.radiusX,a.radiusX)&&Ee.B(this.radiusY,a.radiusY);case Cu:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ee.B(this.xAxisRotation,a.xAxisRotation)&&Ee.B(this.endX,a.endX)&&Ee.B(this.endY,a.endY)&&Ee.B(this.radiusX,a.radiusX)&&Ee.B(this.radiusY,a.radiusY);default:return!1}},bt.qb=function(a){a.classType===ho&&(this.type=a)},bt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ps:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case da:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case tl: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 lu: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 Ss: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 Cu: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":"")},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return this._isFrozen=!1,this},bt.close=function(){return this.isClosed=!0,this};function Jl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Ee.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=br.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),Vn.Ha(z,tt),br.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function Tu(a,y,x,b){function E(Nt,Qt,Gt,ee){return(Nt*ee<Qt*Gt?-1:1)*Math.acos((Nt*Gt+Qt*ee)/(Math.sqrt(Nt*Nt+Qt*Qt)*Math.sqrt(Gt*Gt+ee*ee)))}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,at=a.isClockwiseArc,st=a.Dc,ut=a.Ec,ft=Math.cos(tt),vt=Math.sin(tt),Ct=ft*(x-st)/2+vt*(b-ut)/2;tt=-vt*(x-st)/2+ft*(b-ut)/2;var Et=Ct*Ct/(y*y)+tt*tt/(z*z);return 1<Et&&(y*=Math.sqrt(Et),z*=Math.sqrt(Et)),Et=(rt===at?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*Ct*Ct)/(y*y*tt*tt+z*z*Ct*Ct)),isNaN(Et)&&(Et=0),rt=Et*y*tt/z,Et=Et*-z*Ct/y,isNaN(rt)&&(rt=0),isNaN(Et)&&(Et=0),x=(x+st)/2+ft*rt-vt*Et,b=(b+ut)/2+vt*rt+ft*Et,ut=E(1,0,(Ct-rt)/y,(tt-Et)/z),ft=(Ct-rt)/y,st=(tt-Et)/z,Ct=(-Ct-rt)/y,rt=(-tt-Et)/z,tt=E(ft,st,Ct,rt),Ct=(ft*Ct+st*rt)/(Math.sqrt(ft*ft+st*st)*Math.sqrt(Ct*Ct+rt*rt)),-1>=Ct?tt=Math.PI:1<=Ct&&(tt=0),!at&&0<tt&&(tt-=2*Math.PI),at&&0>tt&&(tt+=2*Math.PI),at=y>z?1:y/z,Ct=y>z?z/y:1,y=Ee.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=br.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Ct),Vn.Ha(y,z),br.free(z),a.ae=y,a.ae}Ae.Object.defineProperties(ho.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&&ni(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ni(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ni(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ni(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ni(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ni(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ni(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ni(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ni(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Pi(a,">= zero",ho,"radiusX"),this._isFrozen&&ni(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Pi(a,">= zero",ho,"radiusY"),this._isFrozen&&ni(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ni(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&&ni(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&&ni(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&&ni(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&&ni(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ho.prototype.equalsApprox=ho.prototype.Xa;var Ps=new Ke(ho,"Move",0),da=new Ke(ho,"Line",1),tl=new Ke(ho,"Bezier",2),lu=new Ke(ho,"QuadraticBezier",3),Ss=new Ke(ho,"Arc",4),Cu=new Ke(ho,"SvgArc",4);ho.className="PathSegment",ho.Move=Ps,ho.Line=da,ho.Bezier=tl,ho.QuadraticBezier=lu,ho.Arc=Ss,ho.SvgArc=Cu;function gl(){this.H=null,this.xu=new Zt(0,0).freeze(),this.mt=new Zt(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}gl.prototype.copy=function(){var a=new gl;return this.clone(a)},gl.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},gl.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},gl.prototype.So=function(a,y){var x=this.diagram;return x===null||bo(x,a,y),y},gl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(bo(x,a,y),y.assign(x.Ps(y))),y},Ae.Object.defineProperties(gl.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}}}),gl.prototype.getMultiTouchDocumentPoint=gl.prototype.Bz,gl.prototype.getMultiTouchViewPoint=gl.prototype.So,gl.className="InputEvent";function ih(){this.H=null,this.xa="",this.ar=this.Lr=null}ih.prototype.copy=function(){var a=new ih;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ih.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ae.Object.defineProperties(ih.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}}}),ih.className="DiagramEvent";function Va(){this.Fm=Na,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Va.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Va.prototype.copy=function(){var a=new Va;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=qe(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=qe(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=qe(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=qe(y)&&typeof y.J=="function"?y.J():y,a},Va.prototype.qb=function(a){a.classType===Va&&(this.change=a)},Va.prototype.toString=function(){var a="";return a=this.change===Ql?a+"* ":this.change===Na?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===Ql?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Mr(this.object)),this.oldValue!==null&&(a+=" old: "+Mr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Mr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Va.prototype.I=function(a){return a?this.oldValue:this.newValue},Va.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Va.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Va.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Va.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Va.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ae.Object.defineProperties(Va.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===Ql&&(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}}}),Va.prototype.redo=Va.prototype.redo,Va.prototype.canRedo=Va.prototype.canRedo,Va.prototype.undo=Va.prototype.undo,Va.prototype.canUndo=Va.prototype.canUndo,Va.prototype.getParam=Va.prototype.Dz,Va.prototype.getValue=Va.prototype.I,Va.prototype.clear=Va.prototype.clear;var Ql=new Ke(Va,"Transaction",-1),Na=new Ke(Va,"Property",0),Ha=new Ke(Va,"Insert",1),us=new Ke(Va,"Remove",2);Va.className="ChangedEvent",Va.Transaction=Ql,Va.Property=Na,Va.Insert=Ha,Va.Remove=us;function Hs(){this.o=new Ln().freeze(),this.xa="",this.j=!1}Hs.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 b=this.changes.M(x);b!==null&&(y+=`
|
|
`+b.toString())}}return y},Hs.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()},Hs.prototype.canUndo=function(){return this.isComplete},Hs.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()}},Hs.prototype.canRedo=function(){return this.isComplete},Hs.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()}},Hs.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new si,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Na&&b.object){var E=y.get(b.object);E||(E=new si,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Ae.Object.defineProperties(Hs.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}}}),Hs.prototype.optimize=Hs.prototype.ak,Hs.prototype.redo=Hs.prototype.redo,Hs.prototype.canRedo=Hs.prototype.canRedo,Hs.prototype.undo=Hs.prototype.undo,Hs.prototype.canUndo=Hs.prototype.canUndo,Hs.prototype.clear=Hs.prototype.clear,Hs.className="Transaction";function Ka(){this.Pt=new Pn,this.Jd=!1,this.u=new Ln().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ln().freeze(),this.hl=new Ln,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ka.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
`+this.history.M(b).toString(a-1);return y},Ka.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},Ka.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},bt=Ka.prototype,bt.Xw=function(a){this.Pt.add(a)},bt.Rx=function(a){this.Pt.remove(a)},bt.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},bt.eb=function(a){return a===void 0&&(a=""),Ec(this,!0,a)},bt.Kf=function(){return Ec(this,!1,"")};function Ec(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Li("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));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(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}bt.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()}},Ka.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ka.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){Li("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ka.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ka.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){Li("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ka.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Va;for(b.change=Ql,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ka.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Hs);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||Li("Change not within a transaction: "+x.toString()))}},Ka.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},Ae.Object.defineProperties(Ka.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}}}),Ka.prototype.handleChanged=Ka.prototype.Tu,Ka.prototype.redo=Ka.prototype.redo,Ka.prototype.undo=Ka.prototype.undo,Ka.prototype.canUndo=Ka.prototype.canUndo,Ka.prototype.discardHistoryAfterIndex=Ka.prototype.lx,Ka.prototype.rollbackTransaction=Ka.prototype.Kf,Ka.prototype.commitTransaction=Ka.prototype.eb,Ka.prototype.startTransaction=Ka.prototype.Ea,Ka.prototype.removeModel=Ka.prototype.Rx,Ka.prototype.addModel=Ka.prototype.Xw,Ka.prototype.clear=Ka.prototype.clear,Ka.className="UndoManager";function io(){Br(this),this.H=wr,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new gl,this.Zr=-1}io.prototype.toString=function(){return this.name!==""?this.name+" Tool":Gi(this.constructor)},io.prototype.updateAdornments=function(){},io.prototype.canStart=function(){return this.isEnabled},io.prototype.doStart=function(){},io.prototype.doActivate=function(){this.isActive=!0},io.prototype.doDeactivate=function(){this.isActive=!1},io.prototype.doStop=function(){},io.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},io.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},io.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},io.prototype.doMouseMove=function(){},io.prototype.doMouseUp=function(){this.stopTool()},io.prototype.doMouseWheel=function(){},io.prototype.canStartMultiTouch=function(){return!0},io.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),b=y.So(1,Zt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Zt.free(x),Zt.free(b)},io.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),b=y.So(1,Zt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Zt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Zt.free(x),Zt.free(b)},io.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},io.prototype.doKeyUp=function(){},io.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},io.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},io.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(sa?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||(sa?y.meta:y.control)||y.shift||a.clearSelection()}},io.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Kh(a,b,x),b.handled};function Kh(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){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,b){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)}}}io.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},io.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},io.prototype.doCurrentObjectChanged=function(){},io.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===pd&&!y.shift||E===Ac&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===pd&&y.shift||E===Ac&&!y.control){b=a.position.copy();var z=y.event;E=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(E){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,b,y)}}},io.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},io.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=vi(function(){x.doWaitAfter(b)},a)},io.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ke.clearTimeout(this.Zr),this.Zr=-1},io.prototype.doWaitAfter=function(){},io.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof mo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},io.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Ae.Object.defineProperties(io.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof we&&(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}}}),io.prototype.startTransaction=io.prototype.Ea,io.className="Tool";function Fa(){io.call(this),this.name="ToolManager",this.hb=new Ln,this.ob=new Ln,this.Hb=new Ln,this.F=this.V=850,this.o=new hn(2,2).ja(),this.Ha=5e3,this.ia=Ac,this.u=rh,this.Mp=this.j=null,this.zj=-1}ae(Fa,io),Fa.prototype.initializeStandardTools=function(){},Fa.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof mo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Fa.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Uh&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===oh){y.bubbles=!0;return}if(this.gestureBehavior===Uh)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===Ac?this.mouseWheelBehavior=pd:this.mouseWheelBehavior===pd&&(this.mouseWheelBehavior=Ac)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Fa.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===oh){y.bubbles=!0;return}if(this.gestureBehavior===Uh)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}zf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function zf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Fa.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof mo&&(y===a||y.rg(a))||this.hideToolTip()},Fa.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()))},Fa.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)},Fa.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 mo)||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()},Fa.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof mo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Ta&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ke.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=vi(function(){E.hideToolTip()},a)}},Fa.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Fa.prototype.hideToolTip=function(){this.zj!==-1&&(ke.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof mo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ta&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Fa.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Fa.prototype.doMouseWheel=function(){this.standardMouseWheel()},Fa.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Fa.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Fa.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Fa.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Fa.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)},Ae.Object.defineProperties(Fa.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 mo?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}}}),Fa.prototype.replaceStandardTool=Fa.prototype.gb;var Ac=new Ke(Fa,"WheelScroll",0),pd=new Ke(Fa,"WheelZoom",1),ff=new Ke(Fa,"WheelNone",2),rh=new Ke(Fa,"GestureZoom",3),Uh=new Ke(Fa,"GestureCancel",4),oh=new Ke(Fa,"GestureNone",5);Fa.className="ToolManager",Fa.WheelScroll=Ac,Fa.WheelZoom=pd,Fa.WheelNone=ff,Fa.GestureZoom=rh,Fa.GestureCancel=Uh,Fa.GestureNone=oh;function Ya(){io.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Zt(NaN,NaN),this.Fr=new Zt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Pn().freeze(),this.ia=new ot,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var yh;ae(Ya,io),Ya.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},Ya.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},Ya.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,(sa?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ya.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),Yi=null,this.isActive=!0,this.tl.set(a.position),Vt(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&&Dr(a),Fo(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Yi=this,mr=this.diagram,this.doSimulatedDragOut()))};function Vt(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 yo,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ya.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ya.prototype.Pd=function(a){return a===void 0?new Qh(Ao):this.isGridSnapEnabled?new Qh(new Zt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qh(a.copy())},Ya.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ye(this),Kr(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<yh.count){for(var y=yh,x=y.length,b=0;b<x;b++){var E=y.M(b);ln(E),Qe(E),ye(E),E.diagram.ug()}y.clear()}ln(this),this.tl.h(NaN,NaN),mr!==null&&(mr.currentCursor=""),Yi=mr=null,Qe(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),So(a,!0)},Ya.prototype.stopTransaction=function(){var a=this.diagram,y=io.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ye(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,qn(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function be(){var a=Yi;Qe(a),On(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ya.prototype.doCancel=function(){Qe(this),On(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ya.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ya.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Me(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):On(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 si,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Gn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Vt(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Xd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Qe(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 Zt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function ln(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 yn(a,y,x){var b=a.diagram,E=a.startPoint,z=Zt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Zt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Dr(b),b.hk())}Ya.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&js(b,a,y,this.dragOptions,x)};function On(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Gn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Xd(b,-E.x,-E.y)}y.bd()}}function li(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),xi(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=qn(a,E,b),!a.isActive&&Yi===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof dr)){var at=x.mouseDragOver;at!==null&&(at(E),tt=!0)}if(!a.isActive&&Yi===null||(a.doDragOver(y,b),!a.isActive&&Yi===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Ya.prototype.findDragOverObject=function(a){var y=this;return No(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof mo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ya.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 qn(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<E;tt++){var rt=a.Cg[tt],at=rt.mouseDragLeave;if(at!==null&&(at(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Yi===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Ai(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),b=!0,!y.handled));x++);return b}function Ai(a){var y=a.panel;return y!==null?y:a instanceof Wi&&!(a instanceof dr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function ri(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(st){return b.findValidLinkablePort(st,x)});a=Zt.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var at=rt.ga(no,a);at=y.Bf(at),at<z&&(tt=rt,z=at)}}return Zt.free(a),tt}function xi(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=ri(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,at=null;x.toNode===null&&(rt=ri(a,x.i(x.pointsCount-1),!0),rt!==null&&(at=rt.part)),E.isValidLink(tt,z,at,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=at,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):wo(E,tt,z,at,rt):wo(E,null,null,null,null)}}}}Ya.prototype.doDragOver=function(){};function di(a,y){var x=a.diagram;a.dragsLink&&xi(a,!0),ye(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;ji(a,E,z),z=Ai(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Yi!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof ui&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Yi!==null){for(a=en.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof ui&&_i(x,b,a);en.free(a)}}}function ji(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof dr||(x=a.mouseDrop,x!==null&&x(y))}function _i(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Gn},!0,function(E){return E instanceof Gn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ya.prototype.doDropOnto=function(){},Ya.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()?(Me(this,!1),Fo(a,this.copiedParts),yn(this,this.copiedParts,!1),Kr(a,this.copiedParts)):this.mayMove()?(Qe(this),yn(this,this.draggedParts,!0)):this.mayDragOut()?(Me(this,!1),yn(this,this.copiedParts,!1)):Qe(this),li(this,a.lastInput.documentPoint))}},Ya.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?(Qe(this),Me(this,!0),Fo(a,this.copiedParts),yn(this,this.copiedParts,!1),Kr(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Qe(this),this.mayMove()&&(yn(this,this.draggedParts,!0),li(this,a.lastInput.documentPoint))),this.Ym=!0,di(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Pr(this),a.Ya(),Kr(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ya.prototype.simulatedMouseMove=function(a,y,x){if(Yi===null)return!1;var b=Yi.diagram;x instanceof we||(x=null);var E=mr;return x!==E&&(E!==null&&E!==b&&(E.ug(),Yi.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),mr=x,x!==null&&x!==b&&(be(),E=x.toolManager.findTool("Dragging"),E!==null&&(yh.contains(E)||yh.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==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,b.doSimulatedDragOver()),!0)},Ya.prototype.simulatedMouseUp=function(a,y,x){if(Yi===null)return!1;var b=mr,E=Yi.diagram;if(x===null)return Yi.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Yi.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;mr=x,b=x.toolManager.findTool("Dragging"),b!==null&&(be(),yh.contains(b)||yh.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Zt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Yi,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Pr(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof ui&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ya.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(sa?!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())},Ya.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())},Ya.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())},Ya.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ya.prototype.Az=function(){return Yi},Ya.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Yi;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ya.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),aa(a),a.animationManager.Cc(),a=Yi,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ya.prototype.doSimulatedDragLeave=function(){var a=Yi;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ya.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Yi;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;zr(this,y.draggedParts.Lf(),!1,a.firstInput),yn(this,this.copiedParts,!1),li(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ya.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Yi;if(y!==null){var x=y.diagram;if(y.Ym=!0,Qe(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),zr(this,y.draggedParts.Lf(),!0,a.lastInput),yn(this,this.copiedParts,!1);var b=new Pn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),di(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function zr(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=en.alloc();E=b=1/0;for(var tt=-1/0,rt=-1/0,at=y.iterator;at.next();){var st=at.value;if(st.isVisible()){var ut=st.location;st=ut.x,ut=ut.y,isNaN(st)||isNaN(ut)||(st<b&&(b=st),ut<E&&(E=ut),st>tt&&(tt=st),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,en.free(z),z=a.Fr,tt=new si,rt=Zt.alloc(),at=y.iterator;at.next();)st=at.value,st instanceof Gn&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Xd(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(at=x.I(st),at!==null&&(st=st.location,rt.h(z.x-(b-st.x),z.y-(E-st.y)),at.location=rt,at.Va(),tt.add(at,a.Pd(rt))));Zt.free(rt),a.copiedParts=tt,Vt(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Xd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ya.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ya.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Zt},Ae.Object.defineProperties(Ya.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}}}),Ya.prototype.getDraggingSource=Ya.prototype.Az;var Yi=null,mr=null;Ya.className="DraggingTool",yh=new Ln,Yn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Fa.prototype.doCancel=function(){Yi!==null&&Yi.doCancel(),io.prototype.doCancel.call(this)};function nr(){io.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Gn,y=new Sr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Sr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ui,y=new Sr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ui,y=new Sr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=oo,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 si,this.Of=this.gj=this.Pf=null}ae(nr,io),nr.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},nr.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=hn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,hn.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=no,z=Zt.alloc(),x.location=y.ga(no,z),Zt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},nr.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=oo,y.fromSpot=ds,y.toSpot=ds),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},nr.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},nr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ui){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)}},nr.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ui))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof ui)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},nr.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof ui){var at=tt.ga(no,Zt.alloc()),st=x.x-at.x,ut=x.y-at.y;Zt.free(at),at=st*st+ut*ut,at<b&&(st=this.validPortsCache.I(tt),st!==null?st&&(y=tt,b=at):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,b=at):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof ui&&(x.layer===null||x.layer.allowLink))?y:null},nr.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},nr.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},nr.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},nr.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ui))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof ui))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},nr.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||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 E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},nr.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 b=new Pn;return b.add(a),jr(this,x,y,b)};function jr(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),jr(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),jr(a,y.labeledLink,x,b))))}nr.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Bc){if(b===yd){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Po(this,a,y,x,!0)}if(b===jd){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Po(this,a,y,x,!0)}if(b===Jh)return a===y?a=!0:(b=new Pn,b.add(y),a=Or(this,b,a,y,x)),!a;if(b===Xc)return!Po(this,a,y,x,!1);if(b===Yc)return a===y?a=!0:(b=new Pn,b.add(y),a=ra(this,b,a,y,x)),!a}return!0};function Po(a,y,x,b,E){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!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Po(a,tt,x,b,E)))return!0}return!1}function Or(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Or(a,y,tt,b,E)))return!0}return!1}function ra(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&ra(a,y,rt,b,E))return!0}}return!1}Ae.Object.defineProperties(nr.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}}}),nr.className="LinkingBaseTool";function vo(){nr.call(this),this.name="Linking",this.V={},this.F=null,this.K=va,this.Xd=null}ae(vo,nr),vo.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},vo.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 ui)))return null;var x=this.direction;if(x===va||x===$a){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===va||x===wa)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},vo.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 ui&&(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 ui&&(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)},vo.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()},vo.prototype.doStop=function(){nr.prototype.doStop.call(this),this.startObject=null},vo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof ui&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),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,b,E)):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)}}},vo.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)},vo.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},vo.prototype.doNoLink=function(){},Ae.Object.defineProperties(vo.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 va=new Ke(vo,"Either",0),$a=new Ke(vo,"ForwardsOnly",0),wa=new Ke(vo,"BackwardsOnly",0);vo.className="LinkingTool",vo.Either=va,vo.ForwardsOnly=$a,vo.BackwardsOnly=wa;function yo(){nr.call(this),this.name="Relinking";var a=new Sr;a.figure="Diamond",a.desiredSize=$o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Sr,a.figure="Diamond",a.desiredSize=$o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new en}ae(yo,nr),yo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},yo.prototype.makeAdornment=function(a,y){var x=new mo;return x.type=Dn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},yo.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},yo.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 mo&&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=ar),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ar),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},yo.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Ug||x===Yd)&&(x=fu),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}},yo.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()},yo.prototype.doStop=function(){nr.prototype.doStop.call(this),this.handle=null},yo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof ui&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E: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()}}},yo.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},yo.prototype.doNoRelink=function(){};function wo(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ae.Object.defineProperties(yo.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 mo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),yo.className="RelinkingTool",Yn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Yn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function tr(){io.call(this),this.name="LinkReshaping";var a=new Sr;a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Sr,a.figure="Diamond",a.desiredSize=$o,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Zt,this.Yq=new Ln}ae(tr,io),tr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ko},tr.prototype.om=function(a,y){a.reshapingBehavior=y},tr.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)}},tr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new mo,E.type=Dn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==dh)for(var rt=x+tt;rt<z-tt;rt++){var at=this.makeResegmentHandle(a,rt);at!==null&&(at.segmentIndex=rt,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}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&&b){at=y.i(x);var st=y.i(x+1);Ee.B(at.x,st.x)&&Ee.B(at.y,st.y)&&(st=y.i(x-1)),Ee.B(at.x,st.x)?(this.om(rt,Oo),rt.cursor="n-resize"):Ee.B(at.y,st.y)&&(this.om(rt,Bo),rt.cursor="w-resize")}else tt===z-1&&b?(at=y.i(z-1),st=y.i(z),Ee.B(at.x,st.x)&&Ee.B(at.y,st.y)&&(at=y.i(z+1)),Ee.B(at.x,st.x)?(this.om(rt,Oo),rt.cursor="n-resize"):Ee.B(at.y,st.y)&&(this.om(rt,Bo),rt.cursor="w-resize")):tt!==z&&(this.om(rt,Ra),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},tr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},tr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},tr.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},tr.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(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),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}}},tr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},tr.prototype.stopTransaction=function(){var a=this.diagram,y=io.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},tr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},tr.prototype.getResegmentingPoint=function(){return this.handle.ga(no)},tr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},tr.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,b=y.i(x-1),E=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(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Gr(this,tt,b,E,z,!0)||Gr(this,tt,b,E,z,!1))){var rt=y.points.copy();Gr(this,tt,b,E,z,!0)?(rt.cd(x-2,new Zt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Zt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Zt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Zt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Gr(this,b,E,z,tt,!0)||Gr(this,b,E,z,tt,!1))&&(rt=y.points.copy(),Gr(this,b,E,z,tt,!0)?(rt.cd(x-1,new Zt(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new Zt(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new Zt((b.x+tt.x)/2,b.y)),rt.cd(x+2,new Zt((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Zt.alloc(),Ee.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Zt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Gr(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}tr.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Oo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Bo&&(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,b===Oo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Bo&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),tt=y.i(b+1);Ee.B(z.x,E.x)&&Ee.B(E.y,tt.y)?(Ee.B(z.x,y.i(b-2).x)&&!Ee.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ee.B(tt.y,y.i(b+2).y)&&!Ee.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):Ee.B(z.y,E.y)&&Ee.B(E.x,tt.x)?(Ee.B(z.y,y.i(b-2).y)&&!Ee.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ee.B(tt.x,y.i(b+2).x)&&!Ee.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ee.B(z.x,E.x)&&Ee.B(E.x,tt.x)?(Ee.B(z.x,y.i(b-2).x)&&!Ee.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ee.B(tt.x,y.i(b+2).x)&&!Ee.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ee.B(z.y,E.y)&&Ee.B(E.y,tt.y)&&(Ee.B(z.y,y.i(b-2).y)&&!Ee.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ee.B(tt.y,y.i(b+2).y)&&!Ee.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(no,Zt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Zt.alloc()),y.L(0,b.x,b.y),Zt.free(z),Zt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(no,Zt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Zt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Zt.free(x),Zt.free(a));y.zf()},tr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ra:return a;case Oo:return new Zt(y.i(x).x,a.y);case Bo:return new Zt(a.x,y.i(x).y);default:case ko:return y.i(x)}},Ae.Object.defineProperties(tr.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 mo))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}}}),tr.prototype.setReshapingBehavior=tr.prototype.om,tr.prototype.getReshapingBehavior=tr.prototype.Ru;var ko=new Ke(tr,"None",0),Bo=new Ke(tr,"Horizontal",1),Oo=new Ke(tr,"Vertical",2),Ra=new Ke(tr,"All",3);tr.className="LinkReshapingTool",tr.None=ko,tr.Horizontal=Bo,tr.Vertical=Oo,tr.All=Ra,Yn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ko(){io.call(this),this.name="Resizing",this.o=new hn(1,1).freeze(),this.j=new hn(9999,9999).freeze(),this.yg=new hn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Sr;a.alignmentFocus=no,a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Zt,this.Dw=new hn,this.Tn=new Zt,this.rt=new hn(0,0),this.qt=new hn(1/0,1/0),this.pt=new hn(1,1)}ae(Ko,io),Ko.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(),yf(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Ko.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new mo,y.type=Dn.Spot,y.locationSpot=no;var x=new du;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ns)),y.add(this.makeHandle(a,Ms)),y.add(this.makeHandle(a,Za)),y.add(this.makeHandle(a,Qr)),y.add(this.makeHandle(a,Hl)),y.add(this.makeHandle(a,ul)),y.add(this.makeHandle(a,bl)),y.add(this.makeHandle(a,Fl))}else if(Ih(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ko.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ko.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=no),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 Dn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ko.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},Ko.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))},Ko.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ko.prototype.stopTransaction=function(){var a=this.diagram,y=io.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ko.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ko.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Zt.free(E)}},Ko.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Zt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ko.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 dr){var b=new Ln;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ot;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ko.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=no);var tt=this.adornedObject.naturalBounds,rt=tt.x,at=tt.y,st=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=Zt.alloc(),Ee.No(a.x,a.y,rt,at,E.width,E.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,st-b.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.y=Math.max(vt.y,ut-b.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,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.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(vt.x,st-b.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(vt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=st-a.width)):(a.x=Math.max(vt.x,st-b.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,b.height),x.height),a.width=a.height/ft,a.y=at+.5*(ut-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.y=Math.max(vt.y,ut-b.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,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),a.height=Math.max(Math.min(vt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=at+.5*(ut-at-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-b.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,b.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(vt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))),Zt.free(vt),a},Ko.prototype.computeReshape=function(){var a=gn;return this.adornedObject instanceof Sr&&(a=b0(this.adornedObject)),!(a===fi||this.diagram.lastInput.shift)},Ko.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},Ko.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},Ko.prototype.computeCellSize=function(){var a=new hn(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},Ae.Object.defineProperties(Ko.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 mo))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 mo)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}}}),Ko.className="ResizingTool",Yn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function ts(){io.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Zt,this.ue=null;var a=new Sr;a.figure="Ellipse",a.desiredSize=$o,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Zt(NaN,NaN),this.u=0,this.F=50}ae(ts,io),ts.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)}},ts.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new mo,y.type=Dn.Position,y.locationSpot=no;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ih(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ts.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},ts.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)},ts.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(no)},ts.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 b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},ts.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Zt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},ts.prototype.stopTransaction=function(){var a=this.diagram,y=io.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ts.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},ts.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},ts.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()},ts.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},ts.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},Ae.Object.defineProperties(ts.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 mo))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 mo)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}}}),ts.className="RotatingTool",Yn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function hs(){io.call(this),this.name="ClickSelecting"}ae(hs,io),hs.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},hs.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},hs.className="ClickSelectingTool";function ws(){io.call(this),this.name="Action",this.pk=null}ae(ws,io),ws.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ws.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()},ws.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))}},ws.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()},ws.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())},ws.prototype.doStop=function(){this.pk=null},ws.className="ActionTool";function pl(){io.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Zt(0,0)}ae(pl,io),pl.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)},pl.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},pl.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Wi)x.Zc()&&(Ih(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);qe(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Zt.allocAt(a.x,a.y);this.isGridSnapEnabled&&tu(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Zt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Ae.Object.defineProperties(pl.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}}}),pl.className="ClickCreatingTool";function Ws(){io.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Wi;a.layerName="Tool",a.selectable=!1;var y=new Sr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}ae(Ws,io),Ws.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))},Ws.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Ws.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Ws.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 b=hn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),hn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ws.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()},Ws.prototype.computeBoxBounds=function(){var a=this.diagram;return new en(a.firstInput.documentPoint,a.lastInput.documentPoint)},Ws.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),sa?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 Ln,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ae.Object.defineProperties(Ws.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}}}),Ws.className="DragSelectingTool";function oa(){io.call(this),this.name="Panning",this.Xt=new Zt,this.xy=new Zt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ke.document,"scroll",a.Kw,!1),a.stopTool()}}ae(oa,io),oa.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())},oa.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ke.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},oa.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},oa.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},oa.prototype.doMouseMove=function(){this.move()},oa.prototype.doMouseUp=function(){this.move(),this.stopTool()},oa.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,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Ae.Object.defineProperties(oa.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),oa.className="PanningTool",Yn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Yn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Yn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Yn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Yn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Ta(){this.F=this.u=this.j=this.o=null}Ae.Object.defineProperties(Ta.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}}}),Ta.className="HTMLInfo";function Ja(a,y,x){this.text=a,this.hx=y,this.visible=x}Ja.className="ContextMenuButtonInfo";function es(){io.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Zt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}ae(es,io);function Da(a){var y=new Ta;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},jl=y,a.tu=function(){a.stopTool()},y=mn("div");var x=mn("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 b=mn("style");ke.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",Yr,!1),b.addEventListener(y,"selectstart",Yr,!1),b.addEventListener(x,"contextmenu",Yr,!1)),y.className="goCXforeground",x.className="goCXbackground",ke.document.body&&(ke.document.body.appendChild(y),ke.document.body.appendChild(x)),bu=y,_l=x,ql=!0}function Yr(a){return a.preventDefault(),!1}es.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)},es.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},es.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},es.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof we||(a instanceof ge?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},es.prototype.doActivate=function(){},es.prototype.doMouseDown=function(){if(io.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Wa(this)},es.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof mo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Wa(this)};function Wa(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Ta||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Js(a,!0),a.isActive||a.stopTool())}es.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Js(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=jl,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof ge?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof mo&&!a.currentContextMenu.visible&&a.stopTool()}}es.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},es.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof mo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Ta&&a.show(y,x,this);this.currentContextMenu=a},es.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},es.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof mo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ta&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ll(a){var y=new Ln;return y.add(new Ja("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ja("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ja("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ja("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ja("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ja("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ja("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ja("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ja("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ja("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ja("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ja("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ja("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}es.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ll(this)),bu.innerHTML="",_l.addEventListener("pointerdown",this.tu,!1);var y=this,x=mn("ul");x.className="goCXul",bu.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=mn("li"),z.className="goCXli";var tt=mn("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}bu.style.display="block",_l.style.display="block"},es.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===jl){bu.style.display="none",_l.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(_l,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ae.Object.defineProperties(es.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof mo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ql===!1&&jl===null&&Oa&&Da(this),jl},set:function(a){a===null&&(ql=!0),jl=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var jl=null,ql=!1,_l=null,bu=null;es.className="ContextMenuTool",Yn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Co(){io.call(this),this.name="TextEditing",this.Zh=new Ca,this.ia=null,this.V=Vu,this.vj=null,this.qa=Bu,this.u=1,this.F=!0,this.o=null,this.j=new Ta,this.kt=null,$l(this,this.j)}ae(Co,io);function $l(a,y){if(Oa){var x=mn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Du)):E==="Tab"?(a.acceptText(el),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Bu){var b=a.kt;a.qa===ah&&(a.qa=Xh),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Bu){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Ca&&z instanceof Co)if(z.state===lc)x.style.border="3px solid red",x.focus();else{var tt=b.ga(no),rt=E.position,at=E.scale,st=b.Df()*at;st<z.minimumEditorScale&&(st=z.minimumEditorScale);var ut=b.naturalBounds.width*st+6,ft=b.naturalBounds.height*st+2,vt=(tt.x-rt.x)*at;tt=(tt.y-rt.y)*at,rt=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*st,ft=rt.y*ft-rt.y*at+rt.offsetY-(.5*ft-.5*at)-at/2,x.value=b.text,E.div.style.font=b.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=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=b.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=b.lineCount,x.wA=st,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Co.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Sh&&Sh!==this&&(Sh.acceptText(Tl),Sh&&Sh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ca&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Vu&&!y.isSelected||this.starting===zs&&2>a.lastInput.clickCount)):!1},Co.prototype.doStart=function(){Sh=this,this.textBlock!==null&&this.doActivate()},Co.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 Ca&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=ah;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new en(this.textBlock.ga(Ns),this.textBlock.ga(Za));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Co.prototype.doCancel=function(){this.stopTool()},Co.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Co.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Tl)},Co.prototype.acceptText=function(a){switch(a){case Tl:this.qa===Dl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===ah||this.qa===lc||this.qa===Xh)&&(this.qa=Vc,ns(this));break;case Ml:case Du:case el:(Du!==a||this.textBlock.isMultiline!==!0)&&(this.qa===ah||this.qa===lc||this.qa===Xh)&&(this.qa=Vc,ns(this))}};function ns(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Dl,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=lc,a.doError(E,z))}}Co.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)},Co.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Co.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Bu,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Co.prototype.doStop=function(){Sh=null},Co.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Co.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ae.Object.defineProperties(Co.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)}}}),Co.prototype.measureTemporaryTextBlock=Co.prototype.Lx;var Ml=new Ke(Co,"LostFocus",0),Tl=new Ke(Co,"MouseDown",1),el=new Ke(Co,"Tab",2),Du=new Ke(Co,"Enter",3),Wl=new Ke(Co,"SingleClick",0),Vu=new Ke(Co,"SingleClickSelected",1),zs=new Ke(Co,"DoubleClick",2),Bu=new Ke(Co,"StateNone",0),ah=new Ke(Co,"StateActive",1),Xh=new Ke(Co,"StateEditing",2),Vc=new Ke(Co,"StateValidating",3),lc=new Ke(Co,"StateInvalid",4),Dl=new Ke(Co,"StateValidated",5),Sh=null;Co.className="TextEditingTool",Co.LostFocus=Ml,Co.MouseDown=Tl,Co.Tab=el,Co.Enter=Du,Co.SingleClick=Wl,Co.SingleClickSelected=Vu,Co.DoubleClick=zs,Co.StateNone=Bu,Co.StateActive=ah,Co.StateEditing=Xh,Co.StateValidating=Vc,Co.StateInvalid=lc,Co.StateValidated=Dl,Yn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Bl(a){Rt||(sh(),Rt=!0),this.H=wr,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=It,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Pn,this.ce=new Re,this.ce.Yd=this,this.Ei=new Pn,this.pu=new Pn,this.Sr=new Pn,this.pr=new Pn,a&&Object.assign(this,a)}Bl.prototype.Xe=function(a){this.H=a},Bl.prototype.canStart=function(){return!0};function Ku(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),xo(a.H),a.zb=!0)}function Ou(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===It?(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===me&&y.vc.clear(),a.Qw=!!(a.Pk===Kt&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),nn(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==El&&b!==null&&(delete b.start.scale,delete b.end.scale),ke.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Dr(x),ta(x),a.zb=!1,y.start(),y.bc&&(Fh(a),x.Ya(),kn(y,0),aa(x,!0),Uu(a),x.R("AnimationStarting",a)))}))}}function xh(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function kc(a,y,x,b){a.isTicking||xh(a)||y instanceof Gn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}bt=Bl.prototype,bt.fv=function(a){return this.ce.fv(a)},bt.Xu=function(a){return this.ce.Xu(a)};function uc(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.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 at=rt.key;if(at instanceof ge&&at.diagram!==null||at instanceof we){rt=!0;break t}}rt=!1}rt?Jn(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Fh(E),aa(E.H),Uu(E)),ke.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ke.requestAnimationFrame(function(){x()}))}function Kc(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Fh(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 Uu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}bt.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(),nn(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),nn(y,this.H)},bt.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))},bt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Es(this,a))},bt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),vn(this.ce,y,"position",y.position,y.position),Es(this,a))};function hc(a,y,x){!a.zb||y.D(x)||xh(a)||(a.H.pi||(y=x.copy()),vn(a.ce,a.H,"position",y,x))}function Th(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Es(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Gl(a,y,x,b,E){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 at=y[0],st=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=at,tt=st):(ut===0||ut===100)&&(at=z,st=tt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,tt=E(x,tt,st-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function sh(){function a(x,b,E,z,tt,rt){x.position=new Zt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new si;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Zt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!0):x.location=new Zt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Zt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,rt){var at=x.actualBounds,st=E.actualBounds;E=st.x+st.width/2-at.width/2,at=st.y+st.height/2-at.height/2,tt<rt?x.mm(z(tt,b.x,E-b.x,rt),z(tt,b.y,at-b.y,rt),!1):x.position=new Zt(z(tt,b.x,E-b.x,rt),z(tt,b.y,at-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,tt,rt){x.desiredSize=new en(z(tt,b.width,E.width-b.width,rt),z(tt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,tt,rt){x.width=z(tt,b,E-b,rt)}),y.add("height",function(x,b,E,z,tt,rt){x.height=z(tt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,tt,rt){x.fill=Gl(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=Gl(b,E,tt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,tt,rt){x.strokeWidth=z(tt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,tt,rt){x.strokeDashOffset=z(tt,b,E-b,rt)}),y.add("background",function(x,b,E,z,tt,rt){x.background=Gl(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=Gl(b,E,tt,rt,z)}),y.add("opacity",function(x,b,E,z,tt,rt){x.opacity=z(tt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,tt,rt){x.scale=z(tt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,tt,rt){x.angle=z(tt,b,E-b,rt)}),yt=y}Ae.Object.defineProperties(Bl.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&&Pi(a,">= 1",Bl,"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}}}),Bl.prototype.stopAnimation=Bl.prototype.Cc;var yt=null,Rt=!1,It=new Ke(Bl,"Default",1),Kt=new Ke(Bl,"AnimateLocations",2),me=new Ke(Bl,"None",3);Bl.className="AnimationManager",Bl.defineAnimationEffect=function(a,y){Rt||(sh(),Rt=!0),yt.add(a,y)},Bl.Default=It,Bl.AnimateLocations=Kt,Bl.None=me;function Re(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=wi,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Ao,this.vc=new si,this.Tt=new si,this.yl=new Pn,this.Ut=new Pn,this.dw=dc,a&&Object.assign(this,a)}Re.prototype.suspend=function(){this.Xk=!0},Re.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Jn(this,!0),Fh(this.Yd),aa(this.H),Uu(this.Yd),this.H.redraw()};function nn(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}bt=Re.prototype,bt.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 we?a=x:x instanceof ge&&(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===It&&this===y.defaultAnimation&&(this.Lp=Hi,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Oc),Fh(y),this.yl.each(function(b){b.data=null,a.add(b)}),Uu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,uc(y,this),this)},bt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},bt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof we?this.H=a:a instanceof ge&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Wi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return vn(this,a,y,x,b,E),this};function vn(a,y,x,b,E,z){var tt=a.vc;if(y instanceof we&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(wd(b),a0(),b=[ch.j,ch.u,ch.o,ch.F],wd(E),a0(),E=[ch.j,ch.u,ch.o,ch.F]),tt.contains(y)){var rt=tt.I(y),at=rt.start,st=rt.end;at[x]===void 0&&(at[x]=Rn(b)),st[x]=Rn(E)}else at={},st={},at[x]=Rn(b),st[x]=Rn(E),rt=at.position,y instanceof ge&&rt instanceof Zt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new Oi(at,st,z),tt.add(y,rt);tt=at[x],tt instanceof Zt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Wi?rt.Ku.location=Rn(y.location):z&&(rt.Ku[x]=Rn(b))}function Rn(a){return a instanceof Zt||a instanceof hn?a.copy():a}bt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},bt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Jn(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Fh(x),kn(a,E),aa(a.H,!0),Uu(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function kn(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof ge&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var at=yt,st;for(st in tt)st==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||at.get(st)===null||at.get(st)(z,rt[st],tt[st],a.Lp,y,x,a)}}}bt.stop=function(){return this.bc?(this.Ml(!0),this):this},bt.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,Fh(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=yt;b.next();){var tt=b.key,rt=b.value,at=E?rt.end:rt.start,st=E?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)if(z.get(ft)!==null){var vt=ft;!rt.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,at[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?at[ft]:st[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof Wi&&(tt.location=ut.location),rt.nv&&tt instanceof Wi&&tt.Zb(!1)}if(y.As.clear(),So(y,!1),y.Ya(),y.N(),aa(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}aa(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Uu(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),nn(this,null),x.Ml(this),y.$b())}},bt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof dr&&(b=y.placeholder),b!==null?(x=b.ga(Ns),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Zt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof dr)for(a=a.memberParts;a.next();)b=a.value,b instanceof ui&&this.Cj(b,y)},bt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof dr&&(x=y.placeholder),x!==null){var b=x.ga(Ns);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof dr)for(a=a.memberParts;a.next();)b=a.value,b instanceof ui&&this.Aj(b,y)}},bt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ae.Object.defineProperties(Re.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Pi(a,">= 1",Re,"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:Oe("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}}}),Re.prototype.getTemporaryState=Re.prototype.Ez,Re.prototype.stop=Re.prototype.stop,Re.prototype.add=Re.prototype.add,Re.prototype.addTemporaryPart=Re.prototype.Iy;function wi(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Hi(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Re.className="Animation",Re.EaseLinear=function(a,y,x,b){return x*a/b+y},Re.EaseInOutQuad=wi,Re.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Re.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Re.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Re.EaseOutExpo=Hi;function Oi(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Oi.className="AnimationState";function pi(a,y,x){this.xd=null,this.rf=a,this.so=x||Ci,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Kn))}pi.prototype.copy=function(){var a=new pi(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 Ei(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))}Ae.Object.defineProperties(pi.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 Ci=new Ke(pi,"Default",1),Kn=new Ke(pi,"Immediate",2),ci=new Ke(pi,"Bundled",3);pi.className="AnimationTrigger",pi.Default=Ci,pi.Immediate=Kn,pi.Bundled=ci;function $n(a){Br(this),this.H=null,this.Pa=new Ln,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)}bt=$n.prototype,bt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Kl(x)}a.clear(),this.Zq.length=0},bt.Xe=function(a){this.H=a},bt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var at=rt.value;at instanceof dr?E++:at instanceof ui?b++:at instanceof Gn?z++:at instanceof mo?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" 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(),b=x.data,b!==null&&Te(b)&&(rt+=" #"+Te(b)),x instanceof ui?rt+=" "+Mr(b):x instanceof Gn&&(rt+=" "+Mr(x.fromNode)+" "+Mr(x.toNode));return y+" "+this.Pa.count+": "+rt},bt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Zt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||yf(rt)!==!1)&&rt.isVisible()&&(E.assign(a),Ho(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Zt.free(E),rt}return Zt.free(E),null},bt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ln||b instanceof Pn||(b=new Pn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Zt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var at=tt[rt];if((E!==!0||yf(at)!==!1)&&at.isVisible()){z.assign(a),Ho(z,at.oe);var st=at;at.ji(z,y,x,b)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||b.add(st))}}return Zt.free(z),b},bt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ln||E instanceof Pn||(E=new Pn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var at=tt[rt];if((z!==!0||yf(at)!==!1)&&at.isVisible()){var st=at;at.Cf(a,y,x,b,E)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||E.add(st))}}return E},bt.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,at=rt.length;at--;){var st=rt[at];if((tt!==!0||yf(st)!==!1)&&z(st)&&st.isVisible()){var ut=st;st.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},bt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ln||E instanceof Pn)&&(z=E),E=!0),z instanceof Ln||z instanceof Pn||(z=new Pn),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Zt.alloc(),at=Zt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||yf(ft)!==!1)&&ft.isVisible()){rt.assign(a),Ho(rt,ft.oe),at.h(a.x+y,a.y),Ho(at,ft.oe);var vt=ft;ft.og(rt,at,x,b,E,z)&&(x!==null&&(vt=x(vt)),vt===null||b!==null&&!b(vt)||z.add(vt))}}return Zt.free(rt),Zt.free(at),z},bt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=Si();for(var E=Si(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof Gn){if(tt.fd===!1)continue}else if(tt instanceof mo&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&su(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],O0(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)O0(E[y]);Fi(a),Fi(E)}}};function yi(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}bt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=yi(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=en.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,tt,rt,!0);if(en.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Ui(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=yi(a,y),rt=a.Zq;rt.length=0;for(var at=x.scale,st=en.alloc(),ut=0;ut<z;ut++){var ft=E[ut];b.contains(ft)&&a.Oj(y,ft,x,rt,at,st,!1)}en.free(st),y.globalAlpha=tt}}}bt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!yf(y))a.Hs(y);else{if(b!==null&&y instanceof Gn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof Yu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ys(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ys(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ys(y,a,y.background,!0,!1,z,E),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)))))),b&&(a.restore(),a.Vc(!0))}},bt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Na,a,this,y,x,b,E)},bt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Kl(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Vi(this,a,y),a},bt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Kl(y),a};function Vi(a,y,x){if(y=Zi(a,y,x),x instanceof dr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];if(rt===x&&(y=tt,0<=b)||0>b&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Vi(a,-1,y)}x.svg!==null&&x.svg.remove()}function Zi(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)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,at=NaN;rt<E&&(at=a.M(rt).zOrder,!!isNaN(at));)rt++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){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(at)&&at<b)for(;;){if(rt===E||at>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(at=NaN;++rt<E&&(at=a.M(rt).zOrder,isNaN(at)););}return y}Ae.Object.defineProperties($n.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===""&&Oe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Oe("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)&&Pi(a,"0 <= value <= 1",$n,"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))}}}),$n.prototype.findObjectsNear=$n.prototype.og,$n.prototype.findObjectsIn=$n.prototype.Cf,$n.prototype.findObjectsAt=$n.prototype.ji,$n.prototype.findObjectAt=$n.prototype.ic,$n.className="Layer";function we(a,y){if(Hf||(vl(),Hf=!0),Br(this),wr=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Oa){var x=this,b=function(){x.removeEventListener(ke.document,"DOMContentLoaded",b,!1),x.setRTL()};ke.document.body!==null?this.setRTL():x.addEventListener(ke.document,"DOMContentLoaded",b,!1)}this.ol=null,Bh.add("Model",Xo);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===Na&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Hr(this),this.model=hy(),this.Wg=!0,Wo(this),this.layout=new Qa,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 Wf,a!==void 0&&(typeof a=="string"||ke.Element&&a instanceof Element?Zr(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var yr,wr;function Hr(a){a.Yd=new Bl,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ln,a.pj=new si,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Zt(NaN,NaN).freeze(),a.du=new Zt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Zt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new br,a.zu=new Zt(NaN,NaN).freeze(),a.ut=new en(NaN,NaN,NaN,NaN).freeze(),a.rj=new qi(0,0,0,0).freeze(),a.sj=dc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=El,a.zk=al,a.Fg=El,a.pq=al,a.yt=Ns,a.Bt=Ns,a.Fc=!0,a.pn=!1,a.De=new Pn,a.Eh=new si,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new qi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new gl,a.bq.diagram=a,a.Qg=new gl,a.Qg.diagram=a,a.cj=new gl,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Dh(a),a.ai=new Pn,a.Ht=!0,a.uu=fc,a.pw=!1,a.wu=Bc,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 si,a.Xn=new Ln,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new qi(5).freeze(),a.Hw=new Pn().freeze(),a.Nt=999999999,a.nw=new Pn().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 Pn,a.ow=new Pn,a.Xh=null,a.aw=new hn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Zt,bounds:new en,Py:new hn,bA:new hn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new en(NaN,NaN,NaN,NaN).freeze(),a.wo=new hn(NaN,NaN).freeze(),a.Sp=new en(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new si;var y=new ui,x=new Ca;x.bind(new Bs("text","",Mr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new ui,x=new Ca,x.stroke="brown",x.bind(new Bs("text","",Mr)),y.add(x),a.Lg.add("Comment",y),y=new ui,y.selectable=!1,y.avoidable=!1,x=new Sr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new hn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new si,y=new dr,y.selectionObjectName="GROUPPANEL",y.type=Dn.Vertical,x=new Ca,x.font="bold 12pt sans-serif",x.bind(new Bs("text","",Mr)),y.add(x),x=new Dn(Dn.Auto),x.name="GROUPPANEL";var b=new Sr;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new du,b.padding=new qi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new si,y=new Gn,x=new Sr,x.isPanelMain=!0,y.add(x),x=new Sr,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 Sr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new mo,y.type=Dn.Auto,x=new Sr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new du,x.margin=new qi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new mo,y.type=Dn.Link,x=new Sr,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 Xo,a.toolManager=new Fa,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ot,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Fr(),a.eq=null,a.fq=Ea,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Zt,a.zy=500,a.wp=new Zt,a.wq=!1}we.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Uc=null,cc="",po(this,!1),this.Xn.clear(),Wg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function po(a,y){a.animationManager.Cc(!0),a.Hw=new Pn().freeze(),a.nw=new Pn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));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 at=rt.value;at!==E&&at.data===null&&z.push(at)}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(),Wg(),a.Og.clear(),la=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Fr(){return null}we.prototype.reset=function(){this.clear(),this.vb=!0,Hr(this),hl(this),this.Wg=!0,Wo(this),this.layout=new Qa,this.Wg=!1,this.model=hy(),this.model.undoManager=new Ka,this.vb=this.rn=!1,this.N()},we.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ke.document.body);var y=mn("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},we.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ke.document.body);var y=0;if(Oa){var x=zd;y=yr,x===null&&(x=zd=mn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=yr=mn("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 b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||sa||(y=11)}this.Db=y,this.Gw=!0},we.prototype.qb=function(a){a.classType===we&&(this.autoScale=a)},we.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 Zr(a,y){if(Oa){if(y!=null||Oe("Diagram setup requires an argument DIV."),a.Ka!==null&&Oe("Diagram has already completed setup."),typeof y=="string"?a.Ka=ke.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Oe("No DIV or DIV id supplied: "+y),a.Ka===null&&Oe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Oe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ke.ResizeObserver){var x=_n(function(){a.$b()},250);a.ol=new ke.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ke.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ke.go;var E=new Rh(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ke.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Ol(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Rh(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Oa){E=mn("div");var z=mn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=to,E.addEventListener("pointerdown",Lr),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=_n(function(){a.Yh=null,a.N()},300),a.Ov=_n(function(){ta(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Io(a,tt,!0);rt.bubbles=!0;var at=0,st=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(at=0<tt.deltaX?1:-1),tt.deltaY!==0&&(st=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-at:-st):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(at=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(st=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-at:-st):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),vr(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Io(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 at=!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,at=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,at=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var st=at;at=Vr(a,tt,!0,!1,!0,st),Go(a,tt,at),at.targetDiagram=La(tt,tt.target),at.targetObject=null,st||at.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,at.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():vr(at,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=Vr(a,tt,!1,!1,!1,rt[1]!==null);var at=ke.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var st=a,ut=tt;at&&at.H&&(ut=tt,st=at.H),rt.targetDiagram=st,Go(a,ut,rt),rt.targetObject=null,a.doMouseMove(),vr(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",at=a.Yt;if(rt&&a.qu)delete at[tt.pointerId],tt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==tt.pointerId&&at[0].pointerType===tt.pointerType)at[1]!==null&&at[1].pointerId===tt.pointerId&&(at[1]=null);else{at[0]=null,at=Vr(a,tt,!1,!0,!0,!1);var st=ke.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 we&&st.H!==a&&Go(st.H,tt,at),st===null&&(st=tt.target),Go(a,tt,at),at.clickCount=a.yq,at.targetDiagram=La(tt,st),at.targetObject=null,a.doMouseUp(),vr(at,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=b.Z["d"+xd[1]+xd[2]+"wI"+Qc.slice(1,5)]["b"+Tx.slice(1,y)](b.Z,Sd,y,y),b.Vc(!0),ao(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}we.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},we.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ao(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(ke,"resize",a.Ov,!1)}function Dr(a){30<a.Sq&&(a.Yh=1)}function So(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Vo&&Vo.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}we.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ke.devicePixelRatio||1},we.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},we.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},we.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},we.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},we.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},we.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},we.prototype.doFocus=function(){this.focus()},we.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ke.scrollX||ke.pageXOffset,y=ke.scrollY||ke.pageYOffset;this.ta.focus(),ke.scrollTo(a,y)}},we.prototype.Oy=function(){this.H.R("GainedFocus")},we.prototype.Ny=function(){this.H.R("LostFocus")};function ta(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,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===El&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Wo(a){var y=new $n;y.name="Background",a.Al(y),y=new $n,y.name="",a.Al(y),y=new $n,y.name="Foreground",a.Al(y),y=new $n,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new $n,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new $n,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function zo(a){var y=new Dn(Dn.Grid);y.name="GRID";var x=new Sr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Sr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Sr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Sr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Sr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Sr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wi,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 to(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):is(this.H)}function Lr(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):is(this.H)}we.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,tt=b.x-z.left,rt=b.y-z.top,at=b.width+z.left+z.right,st=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var ft=E.x;b=E.y;var vt=E.width,Ct=E.height,Et=E.right,Nt=E.bottom;E=this.scale;var Qt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qt=Qt+a.scrollWidth-a.clientWidth;break;case"reverse":Qt=a.scrollWidth-Qt-a.clientWidth}var Gt=Qt;vt<at||Ct<st?(Qt=Zt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Gt&&(Qt.x=Gt/E+tt,this.ju=Gt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qt.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=Qt,Zt.free(Qt),this.Ee=this.qr=!1):(Qt=Zt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Qt.h(Gt+tt,this.position.y)),ut>Et&&(this.position=Qt.h(-(y.scrollWidth-this.Aa)+Gt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=Qt.h(this.position.x,a.scrollTop+rt)),z>Nt&&(this.position=Qt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Zt.free(Qt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,Et=E.right,z=b.bottom,Nt=E.bottom,tt=b.x,ft=E.x,rt=b.y,b=E.y,vt>=at&&tt>=ft&&ut<=Et&&(x.style.width="1px"),Ct>=st&&rt>=b&&z<=Nt&&(x.style.height="1px"))}},we.prototype.computeBounds=function(a){return a===void 0&&(a=new en),xo(this),qr(this,a)};function qr(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,at=0;at<rt;at++){var st=tt[at];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}we.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(oi(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Gn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Gn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new en(NaN,NaN,0,0):x};function Cr(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Zt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=en.allocAt(0,0,b.width,b.height);var E=Zt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,en.free(b),Zt.free(E),Zt.free(x)}x=a.yh,y&&a.Fg!==El&&(x=a.Fg);var z=x!==El?Uo(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,rt=a.zk,at=a.pq;y&&!rt.sb()&&(at.sb()||at.Xb())&&(rt=at.Xb()?no:at),fa(a,a.documentBounds,E,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ee.B(z.x,x)&&Ee.B(z.y,b)&&Ee.B(z.width,E)&&Ee.B(z.height,tt)||a.onViewportBoundsChanged(new en(x,b,E,tt),z,y,!1)}}function Uo(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/E,at=tt/b;return y===Zl?(y=Math.min(at,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Dc?(y=at>rt?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}we.prototype.zoomToFit=function(){var a=this.sj;this.sj=dc,this.scale=Uo(this,Zl),a!==dc&&(Cr(this,!1),fa(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},bt=we.prototype,bt.BA=function(a,y){y===void 0&&(y=Zl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Zl||y===Dc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Dc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Zt(a.x,a.y)}},bt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Zt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},bt.zz=function(a){if(a instanceof ge){this.eq=a;var y=Zt.alloc();this.fq=this.op(a.ga(Ns,y)),Zt.free(y)}else this.eq=null,this.fq=Ea};function fa(a,y,x,b,E,z){var tt=Zt.allocAt(a.pa.x,a.pa.y),rt=tt.x,at=tt.y;if(a.eq!==null){var st=Zt.alloc();st=a.eq.ga(Ns,st),rt=st.x-a.fq.x/a.scale,at=st.y-a.fq.y/a.scale,E=ds,Zt.free(st)}(z||a.scrollMode===dc)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),hc(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),hl(a),Zt.free(tt)}bt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=No(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Wi)return a}else if(a=No(this,a,function(x){return x.part}),a instanceof Wi)return a;return null},bt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),xo(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function No(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),xo(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}bt.lz=function(a,y,x){return y===void 0&&(y=!0),Qo(this,a,function(b){return b.part},y?function(b){return b instanceof Wi&&b.canSelect()}:null,x)};function Qo(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ln||E instanceof Pn||(E=new Pn),xo(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}bt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ln||b instanceof Pn||(b=new Pn),xo(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},bt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Ro(this,a,function(E){return E instanceof Wi&&(!x||E.canSelect())},y,b)},bt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ln||E instanceof Pn||(E=new Pn),xo(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},bt.Nu=function(a,y,x,b,E,z){var tt=new Pn;xo(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var at=rt.value;at.visible&&at.Nu(a,y,x,b,tt,E,z)}return tt};function Ro(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ln||E instanceof Pn||(E=new Pn),xo(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}bt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),ga(this,a,y,function(z){return z instanceof Wi&&(!b||z.canSelect())},x,E)},bt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ln||E instanceof Pn)&&(z=E),E=!0),z instanceof Ln||z instanceof Pn||(z=new Pn),xo(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function ga(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ln||E instanceof Pn)&&(z=E),E=!0),z instanceof Ln||z instanceof Pn||(z=new Pn),xo(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,b,E,z)}return z}we.prototype.acceptEvent=function(a){return Io(this,a,a instanceof MouseEvent)};function Io(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Go(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),sa&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=La(y,y.target),b.targetObject=null,b}function La(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 Vr(a,y,x,b,E,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,sa&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function vr(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}we.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Io(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(),vr(x,a)},we.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Io(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(),vr(x,a)},we.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Io(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),vr(x,a)},we.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Io(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),vr(x,a)},we.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Zt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Ho(new Zt(y,a),this.Ab):new Zt(y,a)};function Go(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Zt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Zt.free(y)):x.documentPoint.h(tt,rt)}function bo(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}we.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Ia(a){a.ld||xo(a),a.Va()}we.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},bt=we.prototype,bt.Pz=function(){return this.kg},bt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,aa(this),this.hf=!1,this.du=new Zt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&vi(function(){b.ld=!1,Ku(y,"Model"),a(b)},1)},bt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ke.requestAnimationFrame(function(){y.kg&&y.bd()})}},bt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),aa(this))};function jo(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||is(a)||(y&&xo(a),x&&Cr(a,!1))}function aa(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];Gs(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||ta(a),jo(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(ms(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),xo(a),z=!1,(!a.hf||a.xh)&&(a.hf?nl(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),nl(a,!1)),z=!0),a.Jk=!1,xo(a),a.ou||Ia(a),jo(a,!0,!1),tt=!1,z?(x=en.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,_a(a)),a.R("LayoutCompleted"),jo(a,!0,!1),en.free(x)):x.Ok&&x.Qw&&(a.Fg!==El?a.scale=Uo(a,a.Fg):a.yh!==El?a.scale=Uo(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Cr(a,!0)),z&&tt&&a.eb("Initial Layout"),xo(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function _a(a){if(a.Fg!==El)a.scale=Uo(a,a.Fg);else if(a.yh!==El)a.scale=Uo(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Cr(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),ms(a)}function xo(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 Pn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof dr&&b.U&65536&&(b.U=b.U^65536)})}}bt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof dr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof dr&&x.isVisible()&&ya(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 mo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ya(a,y){for(var x=Si(),b=Si(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof dr?(hh(z)||hu(z)||vf(z))&&ya(a,z):z instanceof Gn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(Fi(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();Fi(b)}bt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},bt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Oe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){ha(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,tt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Yy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),cs(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<b;y++)x[y].gc(a,this);a=!1,this.Yf?qc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(br.prototype.Cd=br.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,ha(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)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 at=this.Ca,st=Math.round(rt.x*at)/at,ut=Math.round(rt.y*at)/at;for(at!==1&&z.scale(at),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),cs(this,a),rt=0;rt<E;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?qc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(br.prototype.Cd=br.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Vo&&Vo.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Cs(a,y,x,b,E,z,tt,rt,at,st){if(a.Ka!==null){a.ta===null&&Oe("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),at===void 0&&(at=!1),st===void 0&&(st=!1),ha(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var ft=a.Wa.s,vt=ft.length;try{var Ct=new en(z.x,z.y,b.width/E,b.height/E),Et=Ct.copy();Et.Co(x),ms(a,Et),xo(a),a.Fd(ft,vt,a,Ct),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var Nt=a.Mb;y.scale(Nt,Nt);var Qt=br.alloc();Qt.reset(),Qt.translate(x.left,x.top),Qt.scale(E),z.x===0&&z.y===0||Qt.translate(-z.x,-z.y),y.setTransform(Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),y.yc(),y instanceof Yu&&Yy(y,Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),br.free(Qt),cs(a,y),y.globalAlpha=a.pb;var Gt=a.Qj("Grid");if(tt){var ee=new Pn,ie=tt.iterator;for(ie.reset();ie.next();){var he=ie.value;he instanceof Wi&&(st||he.layer!==Gt)&&(he.Gj(),ee.add(he))}for(st=0;st<vt;st++)Ui(ft[st],y,a,ee,at);ee.each(function(We){return We.Gj()})}else for(ee=0;ee<vt;ee++){var Ce=ft[ee];Ce===Gt?st&&Ce.gc(y,a,!0):Ce.gc(y,a,at)}a.$i=!1,a.Yf&&qc(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),ms(a),a.ib instanceof Yu&&(a.ib.Nj.PA(),a.redraw())}}}bt.Gf=function(a){return this.Rg[a]},bt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},bt.Tx=function(){this.Rg=new or,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(sa||qo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function cs(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}bt.Ql=function(a){return this.on[a]},bt.sA=function(a,y){this.on[a]=y},bt.Sx=function(){this.on=new or,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},bt.set=function(a){return Object.assign(this,a),this},bt.Du=function(a){return this.nm(a)},bt.nm=function(a){return Ds(this,a),this};function Ds(a,y){var x=a instanceof Dn,b=a instanceof we,E;for(E in y){E===""&&Oe("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var at=E.substring(0,rt);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),qe(z)?tt=E.substr(rt+1):Oe("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!hr(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&hr(a.toolManager,tt))z=a.toolManager;else if(b&&Nc(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Ti&&tt==="Changed"){a.Pe(y[tt]);continue}else Oe('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof ge&&z.Vw(tt)}}bt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new si,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},bt.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")},we.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!==Oc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=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))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=en.alloc(),Xu(this,this.computeBounds(b)),en.free(b)),b=this.ta,b===null||b instanceof Rc)))){var tt=this.Mb;E=this.Aa*tt;var rt=this.ya*tt,at=this.scale*tt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==rt&&(at.height=rt),a.clearRect(0,0,E,rt),at=190*tt;var st=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(E-ut),Ct=Math.floor(rt-ft);a.drawImage(b.Oa,ut,ft,vt,Ct,0,0,vt,Ct),qc(this.Yf,this)&&a.clearRect(0,0,at,st),b=Si(),a=Si(),Ct=Math.abs(z),vt=Math.abs(y);var Et=ut===0?0:E-Ct;ut=Zt.allocAt(Et,0),Ct=Zt.allocAt(Ct+Et,rt),a.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)));var Nt=this.Ab;if(Nt.reset(),Nt.scale(tt,tt),this.Ca!==1&&Nt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Nt.translate(-tt.x,-tt.y),Ho(ut,Nt),Ho(Ct,Nt),b.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Et=ft===0?0:rt-vt,ut.h(0,Et),Ct.h(E,vt+Et),a.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Ho(ut,Nt),Ho(Ct,Nt),b.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),qc(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,ut.h(E,rt),Ct.h(at+E,st+rt),a.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Ho(ut,Nt),Ho(Ct,Nt),b.push(new en(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)))),Zt.free(ut),Zt.free(Ct),jo(this,!1,!0),this.Ka===null&&Oe("No div specified"),this.ta===null&&Oe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(ha(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,at=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(-at,-st),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)at=a[tt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),cs(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],at=b,tt.visible&&tt.pb!==0){st=yi(tt,E),ft=tt.Zq,ft.length=0,ut=this.scale,vt=en.alloc(),Ct=tt.Pa.s,Nt=Ct.length,Et=at.length;for(var Qt=0;Qt<Nt;Qt++){var Gt=Ct[Qt],ee=Yf(Gt,Gt.actualBounds);t:{for(var ie=2/ut,he=4/ut,Ce=0;Ce<Et;Ce++){var We=at[Ce];if(We.width!==0&&We.height!==0&&ee.Vu(We.x-ie,We.y-ie,We.width+he,We.height+he)){ee=!0;break t}}ee=!1}ee&&tt.Oj(E,Gt,this,ft,ut,vt,!0)}en.free(vt),E.globalAlpha=st}E.restore(),E.Vc(!0),this.Yf&&qc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Fi(b),Fi(a),this.ld=!1}}else this.bd();x&&(Dr(this),this.bd(),So(this,!0))}else x?(Dr(this),this.bd(),So(this,!0)):this.bd()}};function ha(a){a.pn!==!1&&(a.pn=!1,Ol(a,a.Aa,a.ya))}function Ol(a,y,x){hl(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function is(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,at=E.clientWidth||x+tt,st=E.clientHeight||b+rt,ut=a.viewportBounds;E=ut.x;var ft=ut.y,vt=ut.width,Ct=ut.height;if((at!==x+tt||st!==b+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=at,a.ya=st,z=a.pn=!0,hl(a)),!a.hf||!a.viewportBounds.w())return!0;var Et=a.ku,Nt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qt=a.documentBounds,Gt=0,ee=0,ie=0,he=0,Ce=ut.width,We=ut.height,ii=a.rj;a.contentAlignment.sb()?(Qt.width>Ce&&(Gt=ii.left,ee=ii.right),Qt.height>We&&(ie=ii.top,he=ii.bottom)):(Gt=ii.left,ee=ii.right,ie=ii.top,he=ii.bottom);var bi=Qt.width+Gt+ee,mi=Qt.height+ie+he;ii=a.scale;var Wn=bi>at/ii,xn=mi>st/ii;if(!(z||a.gf||a.Be||Wn||xn))return!0;Gt=Qt.x-Gt,at=ut.x,ee=Qt.right+ee,st=ut.right+tt,ie=Qt.y-ie;var cr=ut.y;Qt=Qt.bottom+he,ut=ut.bottom+rt;var ir="1px";if(he="1px",a.scrollMode===dc&&(Wn||xn)&&(Wn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Wn=1,Gt+1<at&&(Wn=Math.max((at-Gt)*ii+a.Aa,Wn)),ee>st+1&&(Wn=Math.max((ee-st)*ii+a.Aa,Wn)),Ce+tt+1<bi&&(Wn=Math.max((bi-Ce)*ii+a.Aa,Wn)),ir=Wn.toString()+"px"),xn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Wn=1,ie+1<cr&&(Wn=Math.max((cr-ie)*ii+a.ya,Wn)),Qt>ut+1&&(Wn=Math.max((Qt-ut)*ii+a.ya,Wn)),We+rt+1<mi&&(Wn=Math.max((mi-We)*ii+a.ya,Wn)),he=Wn.toString()+"px")),Wn=ir!=="1px",xn=he!=="1px",Wn&&xn||!Wn&&!xn||(xn&&(st-=a.Db),Wn&&(ut-=a.Db),bi<Ce+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Gt+1<at&&(tt=Math.max((at-Gt)*ii+a.Aa,tt)),ee>st+1&&(tt=Math.max((ee-st)*ii+a.Aa,tt)),Ce+1<bi&&(tt=Math.max((bi-Ce)*ii+a.Aa,tt)),ir=tt.toString()+"px"),Wn=ir!=="1px",tt=a.ya,Wn!==a.Be&&(tt=Wn?a.ya-a.Db:a.ya+a.Db),mi<We+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,ie+1<cr&&(rt=Math.max((cr-ie)*ii+tt,rt)),Qt>ut+1&&(rt=Math.max((Qt-ut)*ii+tt,rt)),We+1<mi&&(rt=Math.max((mi-We)*ii+tt,rt)),he=rt.toString()+"px"),xn=he!=="1px"),a.qr&&Wn===a.Be&&xn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Wn!==a.Be&&(ir==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Wn,Nt.style.width=ir,xn!==a.gf&&(he==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Zt.alloc(),xn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Zt.free(rt))),z&&hl(a),a.gf=xn,Nt.style.height=he,a.gu=!0,z&&(a.pn=!0),y=Et.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ce+1<bi?y=(a.position.x-Gt)*ii:Gt+1<at?y=Et.scrollWidth-Et.clientWidth:ee>st+1&&(y=a.position.x*ii)),a.tn)switch(a.bu){case"negative":y=-(Et.scrollWidth-y-Et.clientWidth);break;case"reverse":y=Et.scrollWidth-y-Et.clientWidth}return Et.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(We+1<mi?Et.scrollTop=(a.position.y-ie)*ii:ie+1<cr?Et.scrollTop=Et.scrollHeight-Et.clientHeight:Qt>ut+1&&(Et.scrollTop=a.position.y*ii)),at=a.Aa,st=a.ya,Et.style.width=at+(a.gf?a.Db:0)+"px",Et.style.height=st+(a.Be?a.Db:0)+"px",x!==at||b!==st||a.animationManager.zb?(x=en.allocAt(E,ft,vt,Ct),a.onViewportBoundsChanged(x,a.viewportBounds,ii,z),en.free(x),!1):!0}bt=we.prototype,bt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Oe("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&&Oe('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(Ha,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},bt.oi=function(a){this.partManager.oi(a);var y=this;Kf(a,function(x){eu(y,x)}),(a instanceof mo||a instanceof dr&&a.placeholder!==null)&&a.v(),a.data!==null&&Kf(a,function(x){sy(y.partManager,x)}),hu(a)!==!0&&vf(a)!==!0||this.De.add(a),IS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(Yf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Yf(a,a.actualBounds)),this.$b()},bt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Kf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(Yf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Yf(a,a.actualBounds)),this.$b()},bt.remove=function(a){Ba(this,a,!0)};function Ba(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(us,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}bt.Is=function(a,y){if(y===void 0&&(y=!1),oi(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Pn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},bt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},we.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Sa(this)),this.toolManager!==null){var E=new si;if(a!==null)if(oi(a))for(var z=0;z<a.length;z++)za(this,E,a[z],x,b);else for(a=a.iterator;a.next();)za(this,E,a.value,x,b);else{for(a=this.parts;a.next();)za(this,E,a.value,x,b);for(a=this.nodes;a.next();)za(this,E,a.value,x,b);for(a=this.links;a.next();)za(this,E,a.value,x,b)}js(this,E,y,b,x)}};function za(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=Sa(a)),x instanceof ui){if(y.add(x,a.Pd(E,x,x.location)),x instanceof dr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)za(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,at=tt.toNode;rt!==null&&y.contains(rt)&&at!==null&&y.contains(at)&&za(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)za(a,y,x.value,b,E)}else if(x instanceof Gn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)za(a,y,x.value,b,E);else x instanceof mo||y.add(x,a.Pd(E,x,x.location))}function js(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Zt.alloc(),tt=Zt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||Fo(a,y);for(var rt=Si(),at=Si(),st=y.iterator,ut=Zt.alloc();st.next();){var ft=st.key,vt=st.value;if(ft.Zc()){var Ct=qa(a,ft,y);Ct!==null?rt.push(new it(ft,vt,Ct)):(!E||ft.canMove())&&(Ct=vt.point,z.assign(Ct),a.computeMove(ft,z.add(tt),b,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new Zt),vt.shifted.assign(ut.re(Ct)))}else st.key instanceof Gn&&at.push(st.sa)}for(Zt.free(ut),E=rt.length,st=0;st<E;st++)ft=rt[st],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Zt),ft.node.location=z.add(ft.Su.shifted);for(E=Zt.alloc(),st=Zt.alloc(),ft=at.length,vt=0;vt<ft;vt++){var Et=at[vt];if(Ct=Et.key,Ct instanceof Gn)if(Ct.suspendsRouting){Ct.Tg=null,ut=Ct.fromNode;var Nt=Ct.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Nt=Et.value.point,Ct.dragComputation===null)y.add(Ct,a.Pd(b,Ct,tt)),Xd(Ct,tt.x-Nt.x,tt.y-Nt.y);else{Et=Zt.allocAt(0,0),(ut=Ct.i(0))&&ut.w()&&Et.assign(ut);var Qt=ut=Zt.alloc().assign(Et).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Qt=Zt.alloc(),tu(a,Ct,ut,Qt,b)),ut.assign(Ct.dragComputation(Ct,ut,Qt)).re(Et),y.add(Ct,a.Pd(b,Ct,ut)),Xd(Ct,ut.x-Nt.x,ut.y-Nt.y),Zt.free(Et),Zt.free(ut),Qt!==ut&&Zt.free(Qt)}else ut!==null&&(E.assign(ut.location),Qt=y.I(ut),Qt!==null&&E.re(Qt.point)),Nt!==null&&(st.assign(Nt.location),Qt=y.I(Nt),Qt!==null&&st.re(Qt.point)),ut!==null&&Nt!==null?E.Xa(st)?(ut=Et.value.point,Nt=z,Nt.assign(E),Nt.re(ut),y.add(Ct,a.Pd(b,Ct,E)),Xd(Ct,Nt.x,Nt.y)):(Ct.suspendsRouting=!1,Ct.bb()):(Et=Et.value.point,ut=ut!==null?E:Nt!==null?st:tt,y.add(Ct,a.Pd(b,Ct,ut)),Xd(Ct,ut.x-Et.x,ut.y-Et.y))}else(Ct.fromNode===null||Ct.toNode===null)&&(ut=Et.value.point,y.add(Ct,a.Pd(b,Ct,tt)),Xd(Ct,tt.x-ut.x,tt.y-ut.y))}Zt.free(z),Zt.free(tt),Zt.free(E),Zt.free(st),Fi(rt),Fi(at),x||(xo(a),Kr(a,y))}}we.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Zt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Zt.alloc(),tu(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;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 at=a.maxLocation,st=at.x;return isNaN(st)&&(st=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,st)),Math.max(tt,Math.min(x.y,at))),E!==y&&Zt.free(E),b};function Sa(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function tu(a,y,x,b,E){if(E===void 0&&(E=Sa(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,rt=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Zt.allocAt(0,0),z.yi(0,0,a,y,E),Ee.No(x.x,x.y,rt+z.x,tt+z.y,a,y,b),Zt.free(z)}}function Fo(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Gn&&(y.suspendsRouting=!0)}function Kr(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Gn&&(x.suspendsRouting=!1,X0(x)&&x.bb())}a.Mr=!1}}function qa(a,y,x){return y=y.containingGroup,y!==null&&(a=qa(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}bt=we.prototype,bt.Pd=function(a,y,x){if(x===void 0)return new Qh(Ao);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qh(new Zt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Qh(x.copy())};function Jr(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Oe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Oe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Oe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Oe("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&Oe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}bt.Al=function(a){Jr(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(Ha,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},bt.Ww=function(a,y){Jr(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(us,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Ha,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},bt.Cy=function(a,y){Jr(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(us,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Ha,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},bt.kA=function(a){if(a.diagram!==this&&Oe("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 b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(us,"layers",this,a,null,x,null),this.N(),this.Ya()}}},bt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},bt.Yw=function(a){return this.pf===null&&(this.pf=new Ln),this.pf.add(a),this.model.Pe(a),this},bt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},bt.Pe=function(a){return this.zg===null&&(this.zg=new Ln),this.zg.add(a),this},bt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},bt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ql&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},bt.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new Va;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=tt,this.ds(rt)},bt.g=function(a,y,x,b,E){this.cb(Na,a,this,y,x,b,E)},we.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Na){var E=a.object;if(Ua(E,a.propertyName,a.I(y)),E instanceof ge){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Ha){var tt=a.object,rt=a.newParam,at=a.newValue;if(tt instanceof Dn)if(typeof rt=="number"&&at instanceof ge){y?tt.pc(rt):tt.Gb(rt,at);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&at instanceof Zs&&(at.isRow?hS(tt,rt,y?void 0:at):cS(tt,rt,y?void 0:at));else if(tt instanceof $n){var ut=a.oldParam===!0;typeof rt=="number"&&at instanceof Wi&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),tt.pc(ut?rt:-1,at,ut)):tt.oi(rt,at,ut))}else tt instanceof we?typeof rt=="number"&&at instanceof $n&&(y?this.Wa.mb(rt):(at.Xe(this),this.Wa.Gb(rt,at))):Oe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===us){var ft=a.object,vt=a.oldParam,Ct=a.oldValue;if(ft instanceof Dn)typeof vt=="number"&&Ct instanceof ge?y?ft.Gb(vt,Ct):ft.pc(vt):typeof vt=="number"&&Ct instanceof Zs&&(Ct.isRow?hS(ft,vt,y?Ct:void 0):cS(ft,vt,y?Ct:void 0));else if(ft instanceof $n){var Et=a.newParam===!0;typeof vt=="number"&&Ct instanceof Wi&&(y?0>ft.Pa.indexOf(Ct)&&ft.oi(vt,Ct,Et):(Ct.isSelected=!1,Ct.isHighlighted=!1,Ct.Wb(),ft.pc(Et?vt:-1,Ct,Et)))}else ft instanceof we?typeof vt=="number"&&Ct instanceof $n&&(y?(Ct.Xe(this),this.Wa.Gb(vt,Ct)):this.Wa.mb(vt)):Oe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Ql&&Oe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},we.prototype.Ea=function(a){return this.undoManager.Ea(a)},we.prototype.eb=function(a){return this.undoManager.eb(a)},we.prototype.Kf=function(){return this.undoManager.Kf()},we.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},we.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},we.prototype.rp=function(){this.partManager.rp()};function fo(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,hl(a),a.N(),a.Ee=!0,b.zb&&(xh(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,hl(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,at=a.zoomPoint.y,st=a.contentAlignment;isNaN(rt)&&(st.$c()?st.Hf(Nl)?rt=0:st.Hf(Ts)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(at)&&(st.$c()?st.Hf(Xs)?at=0:st.Hf(fl)&&(at=tt-1):at=st.sb()?st.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Zt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+at/y-at/x),a.position=z,Zt.free(z),a.Ca=x,hl(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Cr(a,!1),b.zb&&(xh(b)||b.ce.add(b.H,"scale",y,a.Ca))}}we.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==El||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Fa&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),zf(E,this)),this.vb||this.invalidateViewport(a,y),ms(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=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function ms(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=hn.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,at=0;at<rt;at++){var st=tt[at],ut=Math.abs(st.interval);2>ut||(p0(st.figure)?z=z*ut/Ee.vx(z,ut):E=E*ut/Ee.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=en.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){en.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,en.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Zt.alloc(),Ee.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),hn.free(b),x.part.location=y,Zt.free(y)}}we.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(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},we.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))},we.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),oi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Wi||Oe("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Wi||Oe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},we.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},bt=we.prototype,bt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},bt.Jz=function(a){a=new Pn().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 Wi||Oe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},bt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Zt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Zt.free(z);return}Oe("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):Oe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Zt.free(z)},bt.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)},bt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},bt.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)},bt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,rt=y.m12,at=y.m21,st=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+b*at+ut;y=x*rt+b*st+ft;var Ct=E*tt+b*at+ut;return a=E*rt+b*st+ft,b=x*tt+z*at+ut,x=x*rt+z*st+ft,tt=E*tt+z*at+ut,E=E*rt+z*st+ft,z=Math.min(vt,Ct),vt=Math.max(vt,Ct),Ct=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),vt=Math.max(vt,b),Ct=Math.min(Ct,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),Ct=Math.min(Ct,E),y=Math.max(y,E),new en(z,Ct,vt-z,y-Ct)},bt.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),Ho(a.copy(),this.Ab)};function Qs(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function qs(a){return a=Bh.get(a),a!==null?new a:new Xo}we.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Ql&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Ql){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),xo(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Ou(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(Qs(this),this.As.clear(),Kc(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;vi(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function eu(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)ml(a,y[b])}function ml(a,y){if(y instanceof Au){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Pn&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function lh(a,y){if(y instanceof Au){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Pn&&x.Bg.remove(a),Wg(b));break}}}}}we.prototype.Wd=function(){this.partManager.Wd()},we.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},we.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},we.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},we.prototype.Vb=function(a){return this.partManager.Vb(a)},we.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},bt=we.prototype,bt.Lc=function(a){return this.partManager.Lc(a)},bt.ii=function(a){return this.partManager.ii(a)},bt.Kc=function(a){return this.partManager.Kc(a)},bt.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:Un(Fn(y)))},bt.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:Un(Fn(y)))};function hl(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 Xu(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Cr(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}bt.Va=function(){if(this.Zi){var a=en.alloc();Xu(this,this.computeBounds(a)),en.free(a)}},bt.rz=function(){for(var a=new Pn,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},bt.qz=function(){return this.ai.iterator},bt.Uz=function(a){xo(this),a&&na(this,!0),this.ld?nl(this,!1):(this.Jk=!0,aa(this))};function na(a,y){for(var x=a.ai.iterator;x.next();)fs(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function fs(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)fs(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function nl(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ku(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Rl(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),xo(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Ou(z),a.aa=x}}}function Rl(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Rl(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),ya(a,y),E.isValidLayout=!0):a.xh=!0)}}bt.yz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Dh(a){function y(E){var z=E.toLowerCase(),tt=new Ln;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new si,b=new si;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=b}function Nc(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Fc(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Oe("Unknown DiagramEvent name: "+y)}bt.Bj=function(a,y){return a=Fc(this,a),a!==null&&a.add(y),this},bt.am=function(a,y){a=Fc(this,a),a!==null&&a.remove(y)},bt.R=function(a,y,x){var b=Fc(this,a),E=new ih;if(E.diagram=this,a=Nc(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Tc(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}bt.Yj=function(a,y){return md(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},we.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?qr(this,a):a.assign(this.documentBounds)};function md(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Ip(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=jf(a,x)),x===null){y=en.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&Rd(a,tt,b,y)}en.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=en.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof ui&&Rd(a,tt,b,y);en.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&r1(E);return E}function jf(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?jf(a,y.containingGroup):null}function Rd(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Xg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Jd,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Jd}else if(y instanceof dr)for(y=y.memberParts;y.next();)E=y.value,E instanceof ui&&Rd(a,E,x,b)}}function Yh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}we.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Id(this)};function Id(a){a.vk===-1&&(a.vk=vi(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=en.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Xu(a,y),en.free(y),a.Fc=!0,a.bd(),Id(a))}},a.vp))}we.prototype.ug=function(){this.vk!==-1&&(ke.clearTimeout(this.vk),this.vk=-1)},we.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 b=this.viewportBounds,E=this.scale;b=en.allocAt(0,0,b.width*E,b.height*E);var z=Zt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Ao)||(y=new Zt(y.x+z.x/E,y.y+z.y/E)),en.free(b),Zt.free(z),y},bt=we.prototype,bt.Cs=function(){return null},bt.av=function(){return null},bt.bs=function(a,y){this.pj.add(a,y)},bt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof dr&&(y.$p=null)})};function vd(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-st>at?y(x,E,rt):ke.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,at=x.callbackTimeout||300,st=+new Date;return ke.requestAnimationFrame(function(){b()}),null}bt.Wz=function(a){return Oa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},bt.Jx=function(a){return a===void 0&&(a={}),vd(this,this.Xz,a)},bt.Xz=function(a,y,x){var b=gf(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Qc+"data":E=b.getImageData(0,0,x.width,x.height);break;case Qc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Oe('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:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function gf(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Oe("properties argument must be an Object.");var E=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 hn(1/0,1/0):new hn(2e3,2e3));var rt=y.position||null,at=y.parts||null,st=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,Ct=y.elementFinished||null,Et=y.showTemporary;Et===void 0&&(Et=!ft),y=y.showGrid,y===void 0&&(y=Et),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof st=="number"?st=new qi(st):st instanceof qi||Oe("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 Rh(null,vt,void 0,!0);var Nt=ft.context;if(!(E||z||at||rt))return ft.width=a.Aa+Math.ceil(st.left+st.right),ft.height=a.ya+Math.ceil(st.top+st.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=Ct,Cs(a,b.context,st,new hn(ft.width,ft.height),a.Ca,a.pa,at,ut,Et,y),b.context):(a.Xm=!1,Cs(a,Nt,st,new hn(ft.width,ft.height),a.Ca,a.pa,at,ut,Et,y),a.Xm=!0,ft.context);var Qt=a.Pp,Gt=a.documentBounds.copy();if(Gt.Fv(a.yb),Et)for(var ee=a.Wa.s,ie=ee.length,he=0;he<ie;he++){var Ce=ee[he];if(Ce.visible&&Ce.isTemporary){Ce=Ce.Pa.s;for(var We=Ce.length,ii=0;ii<We;ii++){var bi=Ce[ii];bi.isInDocumentBounds&&bi.isVisible()&&(bi=bi.actualBounds,bi.w()&&Gt.ed(bi))}}}if(ee=new Zt(Gt.x,Gt.y),at!==null){for(ie=new en(0,0,0,0),he=!0,Ce=at.iterator,Ce.reset();Ce.next();)We=Ce.value,We instanceof Wi&&(ii=We.layer,ii!==null&&!ii.visible||ii!==null&&!Et&&ii.isTemporary||!We.isVisible()||(We=We.actualBounds,We.w()&&(he?(he=!1,ie.assign(We)):ie.ed(We))));Gt.width=ie.width,Gt.height=ie.height,ee.x=ie.x,ee.y=ie.y}return rt!==null&&rt.w()&&(ee=rt,z||(z=Qt)),ie=rt=0,st!==null&&(rt=st.left+st.right,ie=st.top+st.bottom),he=Ce=0,E!==null&&(Ce=E.width,he=E.height,isFinite(Ce)&&(Ce=Math.max(0,Ce-rt)),isFinite(he)&&(he=Math.max(0,he-ie))),E!==null&&z!==null?(z==="NaN"&&(z=Qt),E.w()?(E=Ce,Gt=he):isNaN(he)?(E=Ce,Gt=Gt.height*z):(E=Gt.width*z,Gt=he)):E!==null?E.w()?(z=Math.min(Ce/Gt.width,he/Gt.height),E=Ce,Gt=he):isNaN(he)?(z=Ce/Gt.width,E=Ce,Gt=Gt.height*z):(z=he/Gt.height,E=Gt.width*z,Gt=he):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Gt.width,(tt.height-ie)/Gt.height),z>Qt?(z=Qt,E=Gt.width,Gt=Gt.height):(E=tt.width,Gt=tt.height)):(E=Gt.width*z,Gt=Gt.height*z):(z=Qt,E=Gt.width,Gt=Gt.height),st!==null?(E+=rt,Gt+=ie):st=new qi(0),tt!==null&&(Qt=tt.width,tt=tt.height,isNaN(Qt)&&(Qt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Qt)&&(E=Math.min(E,Qt)),isFinite(tt)&&(Gt=Math.min(Gt,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Gt),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=vt,b.hs=Ct,Cs(a,b.context,st,new hn(Math.ceil(E),Math.ceil(Gt)),z,ee,at,ut,Et,y),b.context):(a.Xm=!1,Cs(a,Nt,st,new hn(Math.ceil(E),Math.ceil(Gt)),z,ee,at,ut,Et,y),a.Xm=!0,ft.context)}Ae.Object.defineProperties(we.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(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 Rc(this,ke.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 Rc(this,ke.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(ke,"resize",this.Ov,!1),this.removeEventListener(ke,"wheel",this.$j,!0),wr===this&&(wr=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Zr(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)&&Pi(a,"0 <= value <= 1",we,"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),Cr(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),Cr(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),Cr(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),Cr(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Pi(a,">= 0",we,"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&&Pi(a,">= 0",we,"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 b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(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 Pi(a,">= 0",we,"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||Qs(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&&Oe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=po(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ku(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=qs(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);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=b,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(ke,"pointermove",this.dk,!0),this.addEventListener(ke,"pointerdown",this.ui,!0),this.addEventListener(ke,"pointerup",this.fk,!0),this.addEventListener(ke,"pointerout",this.ek,!0),this.addEventListener(ke,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ke,"wheel",this.$j,!0),this.addEventListener(ke,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ke,"pointermove",this.dk,!0),this.removeEventListener(ke,"pointerdown",this.ui,!0),this.removeEventListener(ke,"pointerup",this.fk,!0),this.removeEventListener(ke,"pointerout",this.ek,!0),this.removeEventListener(ke,"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(ke,"wheel",this.$j,!0),this.removeEventListener(ke,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Zt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),hc(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?hl(this):(this.vb=!0,a=this.scale,fa(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Zt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=zo(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=zo(this)),a.type!==Dn.Grid&&Oe("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),ms(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),hl(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||Oe("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===dc&&Cr(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,Cr(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,fo(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&&fo(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!==El&&Cr(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()||Oe("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()||Oe("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)):Pi(a,"> 0",we,"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)):Pi(a,"> 0",we,"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),Cr(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Oe("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==fc&&a!==bs&&a!==Hd&&Oe("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 hn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ae.Object.defineProperties(we,{licenseKey:{get:function(){return pf.jc()},set:function(a){pf.add(a.replace(/\s/g,""))}},version:{get:function(){return Jc}}}),we.prototype.makeImageData=we.prototype.Jx,we.prototype.makeImage=we.prototype.Wz,we.prototype.cacheGroupExternalLinks=we.prototype.Fu,we.prototype.addRenderer=we.prototype.bs,we.prototype.makeSVG=we.prototype.av,we.prototype.makeSvg=we.prototype.Cs,we.prototype.stopAutoScroll=we.prototype.ug,we.prototype.doAutoScroll=we.prototype.gs,we.prototype.isUnoccupied=we.prototype.Yj,we.prototype.raiseDiagramEvent=we.prototype.R,we.prototype.removeDiagramListener=we.prototype.am,we.prototype.addDiagramListener=we.prototype.Bj,we.prototype.findTreeRoots=we.prototype.yz,we.prototype.layoutDiagram=we.prototype.Uz,we.prototype.findTopLevelGroups=we.prototype.qz,we.prototype.findTopLevelNodesAndLinks=we.prototype.rz,we.prototype.ensureBounds=we.prototype.Va,we.prototype.findLinksByExample=we.prototype.ls,we.prototype.findNodesByExample=we.prototype.ms,we.prototype.findLinkForData=we.prototype.Kc,we.prototype.findNodeForData=we.prototype.ii,we.prototype.findPartForData=we.prototype.Lc,we.prototype.findLinkForKey=we.prototype.findLinkForKey,we.prototype.findNodeForKey=we.prototype.Vb,we.prototype.findPartForKey=we.prototype.findPartForKey,we.prototype.rebuildParts=we.prototype.Wd,we.prototype.transformViewToDoc=we.prototype.Ps,we.prototype.transformRectDocToView=we.prototype.zA,we.prototype.transformDocToView=we.prototype.op,we.prototype.centerRect=we.prototype.es,we.prototype.scrollToRect=we.prototype.tv,we.prototype.scroll=we.prototype.scroll,we.prototype.highlightCollection=we.prototype.Jz,we.prototype.highlight=we.prototype.Iz,we.prototype.selectCollection=we.prototype.rA,we.prototype.select=we.prototype.select,we.prototype.updateAllRelationshipsFromData=we.prototype.rp,we.prototype.updateAllTargetBindings=we.prototype.updateAllTargetBindings,we.prototype.commit=we.prototype.commit,we.prototype.rollbackTransaction=we.prototype.Kf,we.prototype.commitTransaction=we.prototype.eb,we.prototype.startTransaction=we.prototype.Ea,we.prototype.raiseChanged=we.prototype.g,we.prototype.raiseChangedEvent=we.prototype.cb,we.prototype.removeChangedListener=we.prototype.ik,we.prototype.addChangedListener=we.prototype.Pe,we.prototype.removeModelChangedListener=we.prototype.mA,we.prototype.addModelChangedListener=we.prototype.Yw,we.prototype.findLayer=we.prototype.Qj,we.prototype.removeLayer=we.prototype.kA,we.prototype.addLayerAfter=we.prototype.Cy,we.prototype.addLayerBefore=we.prototype.Ww,we.prototype.addLayer=we.prototype.Al,we.prototype.moveParts=we.prototype.moveParts,we.prototype.copyParts=we.prototype.Kj,we.prototype.removeParts=we.prototype.Is,we.prototype.remove=we.prototype.remove,we.prototype.add=we.prototype.add,we.prototype.clearDelayedGeometries=we.prototype.bx,we.prototype.setProperties=we.prototype.nm,we.prototype.attach=we.prototype.Du,we.prototype.set=we.prototype.set,we.prototype.resetInputOptions=we.prototype.Sx,we.prototype.setInputOption=we.prototype.sA,we.prototype.getInputOption=we.prototype.Ql,we.prototype.resetRenderingHints=we.prototype.Tx,we.prototype.setRenderingHint=we.prototype.Xx,we.prototype.getRenderingHint=we.prototype.Gf,we.prototype.maybeUpdate=we.prototype.bd,we.prototype.requestUpdate=we.prototype.$b,we.prototype.delayInitialization=we.prototype.Xy,we.prototype.isUpdateRequested=we.prototype.Pz,we.prototype.invalidateDocumentBounds=we.prototype.Ya,we.prototype.findObjectsNear=we.prototype.og,we.prototype.findPartsNear=we.prototype.mz,we.prototype.findObjectsIn=we.prototype.Cf,we.prototype.findPartsIn=we.prototype.ux,we.prototype.findObjectsAt=we.prototype.ji,we.prototype.findPartsAt=we.prototype.lz,we.prototype.findObjectAt=we.prototype.ic,we.prototype.findPartAt=we.prototype.Ol,we.prototype.focusObject=we.prototype.zz,we.prototype.alignDocument=we.prototype.Jy,we.prototype.zoomToRect=we.prototype.BA,we.prototype.zoomToFit=we.prototype.zoomToFit,we.prototype.diagramScroll=we.prototype.kx,we.prototype.focus=we.prototype.focus;var Bh=new si,zd=null,Oa=ke.document!==void 0,Uc=null,cc="",El=new Ke(we,"None",0),Zl=new Ke(we,"Uniform",1),Dc=new Ke(we,"UniformToFill",2),Bc=new Ke(we,"CycleAll",10),Jh=new Ke(we,"CycleNotDirected",11),Xc=new Ke(we,"CycleNotDirectedFast",12),Yc=new Ke(we,"CycleNotUndirected",13),yd=new Ke(we,"CycleDestinationTree",14),jd=new Ke(we,"CycleSourceTree",15),dc=new Ke(we,"DocumentScroll",1),Oc=new Ke(we,"InfiniteScroll",2),fc=new Ke(we,"TreeParentCollapsed",21),bs=new Ke(we,"AllParentsCollapsed",22),Hd=new Ke(we,"AnyParentsCollapsed",23),pf=new Ln,Jc="2.3.10",Qc="image",Sd=null,Hf=!1;function vl(){if(Oa){var a=ke.document.createElement("canvas"),y=a.getContext("2d"),x=zi("7ca11abfd022028846");y[x]=zi("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",cn.Dx+"4ae6247590da4bb21c324ba3a84e385776",br.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ee.za],E=1;5>E;E++)y[zi("7ca11abfd7330390")](zi(b[E-1]),10,15*E);for(y[x]=zi("39f046ebb36e4b"),x=1;5>x;x++)y[zi("7ca11abfd7330390")](zi(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(br.prototype.Cd=br.prototype.Eu),Sd=a}}we.className="Diagram",we.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ke.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof we?y.H:null},we.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},we.useDOM=function(a){Oa=a?ke.document!==void 0:!1},we.isUsingDOM=function(){return Oa},we.None=El,we.Uniform=Zl,we.UniformToFill=Dc,we.CycleAll=Bc,we.CycleNotDirected=Jh,we.CycleNotDirectedFast=Xc,we.CycleNotUndirected=Yc,we.CycleDestinationTree=yd,we.CycleSourceTree=jd,we.DocumentScroll=dc,we.InfiniteScroll=Oc,we.TreeParentCollapsed=fc,we.AllParentsCollapsed=bs,we.AnyParentsCollapsed=Hd;function Wf(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function qc(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=ke[zi("76a715b2f73f148a")][zi("72ba13b5")]||"";if(a.Rc=!0,Oa){var b=we[zi("76a115b6ed251eaf4692")];if(b)for(var E=pf.iterator;E.next()&&(b=E.value,b=zi(b).split(zi("39e9")),!(6>b.length));){var z=zi(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=zi(cn[zi("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ke[zi("74a900bae4370f8b51")][zi("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[zi("73a612b6fb191d")](zi("3aad1ab6e022098b4dc4")),z=zi(b[2]),-1<tt&&(rt=rt[zi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[zi("76ad18b4f73e")],rt=x[zi("73a612b6fb191d")](zi("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[zi("73a612b6fb191d")](z),0>tt&&z!==zi("7da71ca0ad381e90")&&(tt=y[zi("73a612b6fb191d")](zi("76a715b2ef3e149757"))),0>tt&&(tt=y[zi("73a612b6fb191d")](zi("76a715b2ef3e149757"))),0>tt&&(tt=y[zi("73a612b6fb191d")](zi("2bfa41fdb3784bca12"))),0>tt&&(tt=x[zi("73a612b6fb191d")](zi("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[zi("73a612b6fb191d")](zi("35"))||y[zi("73a612b6fb191d")](zi("35"))===-1),!a.Rc||x[zi("73a612b6fb191d")](zi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[zi("73a612b6fb191d")](z)),!a.Rc)||(tt=ke[zi("76a715b2f73f148a")][zi("69ad17a1e03e")],rt=tt[zi("73a612b6fb191d")](zi("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[zi("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=ke.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(rt=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],tt[zi("79a417a0f0181a8946")]=b,ke.document[zi("78a712aa")]){ke.document[zi("78a712aa")][zi("7bb806b6ed32388c4a875b")](tt),at=ke.getComputedStyle(tt).getPropertyValue(zi("78a704b7e62456904c9b12701b6532a8"));var st=ke.getComputedStyle(tt).getPropertyValue(zi("75b817b0ea2202"));if(ke.document[zi("78a712aa")][zi("68ad1bbcf533388c4a875b")](tt),at){if(tt=ke[zi("77a902b0eb1b1e804a8a")],st==="0."+parseInt(rt,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(zi("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[zi("76ad18b4f73e")],E=x[zi("73a612b6fb191d")](zi("35e7"))+2;E<ut;E++)y+=x[E];x=y[zi("73a612b6fb191d")](zi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[zi("73a612b6fb191d")](zi("35")))}}}return 0<a.Rc&&a!==a.wy}Wf.className="DiagramHelper";function Qh(a){this.j=a===void 0?new Zt:a,this.o=new Zt}Ae.Object.defineProperties(Qh.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 xd="DraggingInfo";Qh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function ot(){this.reset()}ot.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new hn(NaN,NaN).freeze(),this.gridSnapCellSpot=Ns,this.gridSnapOrigin=new Zt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ot.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||ke.Element&&a instanceof Element)var x=we.call(this,a)||this;else x=we.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}ae(ct,we);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Xl,a.layout=new Sl}ct.prototype.reset=function(){we.prototype.reset.call(this),dt(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||ke.Element&&a instanceof Element)var x=we.call(this,a)||this;else x=we.call(this)||this,y=a;var b=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 Wi;var E=new Sr;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new qi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new qt,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new Zt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){b.Ya(),jt(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&jt(b)},x.autoScale=Zl,x.vb=!1,y&&Object.assign(x,y),x}ae(pt,we),pt.prototype.computePixelRatio=function(){return 1},pt.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(ha(this),this.ql===null){var x=new Rh(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),At(this)}finally{this.ta=a,this.ib=y}}}we.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&Oe("No div specified"),this.ta===null&&Oe("No canvas specified"),!(this.ta instanceof Rc)&&(O0(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){ha(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?At(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function At(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=en.alloc().assign(a.viewportBounds).ed(y.viewportBounds),ms(y,E),en.free(E),xo(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),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],at=a;if(rt.visible&&rt.opacity!==0){var st=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&&st.layer===rt&&(rt=yi(rt,E),st.gc(E,at),E.globalAlpha=rt);else{for(var ut=yi(rt,E),ft=at.scale,vt=en.alloc(),Ct=rt.Pa.s,Et=Ct.length,Nt=0;Nt<Et;Nt++){var Qt=Ct[Nt];(b||Qt!==st)&&rt.Oj(E,Qt,at,null,ft,vt,!1)}en.free(vt),E.globalAlpha=ut}}}}}function jt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=hn.alloc();E.h(x.width,x.height),b.desiredSize=E,hn.free(E),a=2/a.scale,b instanceof Sr&&(b.strokeWidth=a),y.location=new Zt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Do;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),jt(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=b,this.R("ViewportBoundsChanged",this.fc,a))},Ae.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&Oe("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,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),jt(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),jt(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)}}}),pt.className="Overview";function qt(){Ya.call(this),this.j=null}ae(qt,Ya),qt.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Zt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)),!0)},qt.prototype.doActivate=function(){this.j=null,Ya.prototype.doActivate.call(this)},qt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qt.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 b=a.firstInput.documentPoint;x=x.location,this.j=new Zt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)}}},qt.className="OverviewDraggingTool";function Yt(){Br(this),this.H=wr,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=Do,this.hb=!0,this.cg=null,this.ob=200}Yt.prototype.toString=function(){return"CommandHandler"},Yt.prototype.Xe=function(a){this.H=a},Yt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=sa?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&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"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&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():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&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()},Yt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Yt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Fa&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Yt.prototype.canStopCommand=function(){return!0},Yt.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 b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Yt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Yt.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 Pn,x=a.selection.iterator;x.next();)Sf(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Yt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Yt.prototype.copySelection=function(){var a=this.diagram,y=new Pn;for(a=a.selection.iterator;a.next();)Sf(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Yt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Yt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Yt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Yt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Uc=null,cc="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Ln,x.addAll(z),Uc=x,cc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Yt.prototype.pasteFromClipboard=function(){var a=new Pn,y=Uc;if(y===null)return a;var x=this.diagram;if(cc!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Yt.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 b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);js(y,z,new Zt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Yt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Uc===null||Uc.count===0||cc!==a.model.dataFormat)},Yt.prototype.undo=function(){this.diagram.undoManager.undo()},Yt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Yt.prototype.redo=function(){this.diagram.undoManager.redo()},Yt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Yt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===El&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Yt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==El?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Yt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===El&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Yt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==El?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Yt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Yt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Yt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ku(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Do):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ou(y)},Yt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Yt.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(at){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;Ku(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=fe(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof ui&&at.isTreeExpanded&&(!(at instanceof dr)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Wi&&y.tv(at.actualBounds),at instanceof ui&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof dr&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Wi&&y.es(at.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){vi(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function fe(a,y,x){if(y.isVisible())return x;if(y instanceof mo)fe(a,y.adornedPart,x);else if(y instanceof Gn){var b=y.fromNode;b!==null&&fe(a,b,x),y=y.toNode,y!==null&&fe(a,y,x)}else y instanceof ui&&(b=y.labeledLink,b!==null&&fe(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),fe(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),fe(a,y,x));return x}Yt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Wi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Yt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ku(y.animationManager,"Collapse Tree");var x=new Ln;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ui&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Yt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ui&&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 ui&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Yt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ku(y.animationManager,"Expand Tree");var x=new Ln;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ui&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Yt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ui)||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 ui&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Yt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Ln,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new Ln,at=E.iterator;at.next();){var st=at.value;z=!1;for(var ut=E.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;){E=!1;for(var vt=rt.iterator;vt.next();)if(!vt.value.Td(ft)){E=!0;break}if(E)ft=ft.containingGroup;else break}if(x instanceof dr)Ih(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ct=y.copyNodeData(x);qe(Ct)&&(y.xf(Ct),b=a.ii(Ct))}if(b!==null){ft!==null&&this.isValidMember(ft,b)&&(b.containingGroup=ft);for(var Et=rt.iterator;Et.next();){var Nt=Et.value;this.isValidMember(b,Nt)&&(Nt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Yt.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 Ge(a){var y=Si();for(a=a.iterator;a.next();){var x=a.value;x instanceof Gn||y.push(x)}a=new Pn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return Fi(y),a}Yt.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},Yt.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 b=new Ln;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof dr&&z.canUngroup()&&b.add(z)}var tt=new Ln;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var at=rt.value;at.expandSubGraph();var st=at.containingGroup,ut=st!==null&&st.data!==null?x.wa(st.data):void 0;tt.addAll(at.memberParts);for(var ft=tt.iterator;ft.next();){var vt=ft.value;if(vt.isSelected=!0,!(vt instanceof Gn)){var Ct=vt.data;Ct!==null?x.mp(Ct,ut):vt.containingGroup=st}}y.remove(at)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Yt.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 dr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&y.canUngroup())return!0;return!1},Yt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Ge(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Yt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ku(y.animationManager,"Collapse SubGraph");var x=new Ln;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof dr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Yt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof dr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&y.isSubGraphExpanded)return!0;return!1},Yt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ku(y.animationManager,"Expand SubGraph");var x=new Ln;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof dr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Yt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof dr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof dr&&!y.isSubGraphExpanded)return!0;return!1},Yt.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 b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ca&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Yt.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 Ca))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 Ca&&x.editable}),a!==null))return!0;return!1},Yt.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 b=y.lastInput,E=null;a instanceof ge?E=a.ga(no):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Zt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Js(x,!1,a)}},Yt.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)},Yt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new si,a===null)return b;for(var z=a.iterator;z.next();)za(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Gn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Ae.Object.defineProperties(Yt.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||Oe("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}}}),Yt.className="CommandHandler",Fr=function(){return new Yt};function ge(){Br(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Zt(NaN,NaN).freeze(),this.jd=Ks,this.Ab=new br,this.wh=new br,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Cl,this.uc=new en(NaN,NaN,NaN,NaN).freeze(),this.Ib=new en(NaN,NaN,NaN,NaN).freeze(),this.dc=new en(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=al,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 dn,gn,fi,Ri,Ji,fr,_r,kr,lo,ea;ge.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Ni(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},ge.prototype.Vw=function(a){var y=this.Dh;if(oi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},ge.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},ge.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},ge.prototype.copy=function(){return this.clone()},bt=ge.prototype,bt.qb=function(a){a.classType===Gn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Oe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===ge&&(this.stretch=a)},bt.toString=function(){return Gi(this.constructor)+"#"+Te(this)},bt.th=function(){this.A!==null&&(this.A.nc=!0)};function Ar(a){a.A===null?a.A=new lg:a.A.nc&&(a.A=a.A.copy())}bt.Xc=function(){if(this.ba===null){var a=new mp;a.Xi=ds,a.yj=ds,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},bt.cb=function(a,y,x,b,E,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,tt),x===this&&a===Na&&Al(this)&&ja(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 si),tt=z.undoManager.transactionLevel===0,a.startCondition===Kn?tt=!0:a.startCondition===ci&&(tt=!1),tt?(z=new Re,Ei(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,b,E),z.start()):(Ku(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Dn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof Dn&&Kf(rt,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function ja(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=M1(z,b,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,b)}else{if(rt=b.data,rt===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,rt,x,b)}tt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}bt.ks=function(a){return this.bindingId===a?this:null},bt.g=function(a,y,x){this.cb(Na,a,this,y,x)},bt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new br);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function il(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}bt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?_o(a.x,a.y,0,0,0,b.height)<=y||_o(a.x,a.y,0,b.height,b.width,b.height)<=y||_o(a.x,a.y,b.width,b.height,b.width,0)<=y||_o(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},bt.se=function(){return!0},bt.ca=function(a){var y=Zt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Zt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(rt.width*b<E&&rt.height*b<E)return a=ps(x.x-tt*at,x.y-tt*at,x.width+z*at,x.height+z*at,y.x,y.y),Zt.free(y),a}return E=!1,(this instanceof mo||this instanceof Sr?ps(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)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Zt.free(y),E},bt.gh=function(a){var y=this.naturalBounds;return ps(0,0,y.width,y.height,a.x,a.y)},bt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=en.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Zt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Zt.free(E),en.free(y),b},bt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Zt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Zt.free(E),b},bt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Zt.allocAt(0,0),E=Zt.allocAt(0,x.height),z=Zt.allocAt(x.width,x.height),tt=Zt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=en.allocAt(0,0,x.width,x.height);var at=Zt.allocAt(a.x,a.y);x.ca(y.Cd(at))?rt=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?rt=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?rt=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(rt=!0)))),Zt.free(at),en.free(x),!rt&&(Ee.us(a,b,E)||Ee.us(a,E,z)||Ee.us(a,z,tt)||Ee.us(a,tt,b))&&(rt=!0)}return Zt.free(b),Zt.free(E),Zt.free(z),Zt.free(tt),rt},bt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof Bi){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},bt.mi=function(a){a===void 0&&(a=new en);var y=this.naturalBounds,x=this.oe,b=Zt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Aa(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Aa(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Aa(a,b.x,b.y,0,0),Zt.free(b),a},bt.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},bt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},bt.qs=function(a,y){return y===void 0&&(y=new Zt),y.assign(a),this.oe.Cd(y),y},bt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},bt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,at=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ee.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*st+ft,a=a*at+y*ut+vt,y=x*rt+b*st+ft,x=x*at+b*ut+vt,E.h(0,0),b=this.naturalBounds,x=Ee.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},ge.prototype.measure=function(a,y,x,b){if(hh(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Dn;switch(Mu(this,!0)){case gn:tt=E=0,rt&&(y=a=1/0);break;case dn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case Ri:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case Ji:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var at=this.minSize;E>rt.width&&at.width<rt.width&&(E=rt.width),tt>rt.height&&at.height<rt.height&&(tt=rt.height),x=Math.max(E,at.width),b=Math.max(tt,at.height),rt.width<x&&(x=Math.min(at.width,x)),rt.height<b&&(b=Math.min(at.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Oe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Gs(this,!1)}},ge.prototype.Wl=function(){},ge.prototype.Dd=function(){return!1},ge.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=en.alloc();z.assign(this.Ib),this.Ib.ka(),hu(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Zd(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Ca&&(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()||Oe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),_c(this,!1),en.free(z)},bt=ge.prototype,bt.eh=function(){};function nu(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!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,b+=y,E+=tt,y=Mu(a,!0),x===b&&z===E&&(y=gn),y){case gn:(x>b||z>E)&&(Gs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case dn:Gs(a,!0),a.measure(b,E,0,0);break;case Ri:Gs(a,!0),a.measure(b,z,0,0);break;case Ji:Gs(a,!0),a.measure(x,E,0,0)}}}bt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||z0(x,!0),this.N(),ma(a,y)||(x.oh(),this.Pn(x)))},bt.Pn=function(a){this.portId!==null&&(z0(a,!0),a instanceof ui&&ZS(a,this))},bt.gc=function(a,y){if(!Ph(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof Dn&&Zd(this),tt=this.Ib;if(z){var rt=this.Ib,at=this.dc,st=this.areaBackground,ut=this.Ma;st===null&&ut===null||a.yc(),st!==null&&(ys(this,a,st,!0,!0,at,rt),st instanceof Zo&&st.type===bh?(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&&(ys(this,a,ut,!0,!1,at,rt),ut instanceof Zo&&ut.type===bh?(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&&yl(this),st=this.part,at=!1;var ft=0;st&&y.Gf("drawShadows")&&(at=st.isShadowed)&&(ut=st.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var Ct=this.naturalBounds;vt=this.wh;var Et=vt.m11,Nt=vt.m21,Qt=vt.dx,Gt=vt.m12,ee=vt.m22,ie=vt.dy,he,Ce=he=0;vt=he*Et+Ce*Nt+Qt;var We=he*Gt+Ce*ee+ie;he=Ct.width+ft,Ce=0;var ii=he*Et+Ce*Nt+Qt;he=he*Gt+Ce*ee+ie,Ce=Math.min(vt,ii);var bi=Math.min(We,he),mi=Math.max(vt+0,ii)-Ce,Wn=Math.max(We+0,he)-bi;vt=Ce,We=bi,he=Ct.width+ft,Ce=Ct.height+ft,ii=he*Et+Ce*Nt+Qt,he=he*Gt+Ce*ee+ie,Ce=Math.min(vt,ii),bi=Math.min(We,he),mi=Math.max(vt+mi,ii)-Ce,Wn=Math.max(We+Wn,he)-bi,vt=Ce,We=bi,he=0,Ce=Ct.height+ft,ii=he*Et+Ce*Nt+Qt,he=he*Gt+Ce*ee+ie,Ce=Math.min(vt,ii),bi=Math.min(We,he),mi=Math.max(vt+mi,ii)-Ce,Wn=Math.max(We+Wn,he)-bi,vt=Ce,We=bi,ft=y.viewportBounds,Ct=ft.x,Et=ft.y,vt=!(vt>ft.width+Ct||Ct>mi+vt||We>ft.height+Et||Et>Wn+We)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof Ca&&(a.font=this.font),vt){if(We=rt.se()?rt.naturalBounds:rt.actualBounds,mi=Math.max(tt.x,We.x),Wn=Math.max(tt.y,We.y),ft=Math.min(tt.right,We.right)-mi,Ct=Math.min(tt.bottom,We.bottom)-Wn,Et=this.tb,Et!==null&&(mi=Et.x,Wn=Et.y,ft=Et.width,Ct=Et.height),mi>tt.width+tt.x||tt.x>We.width+We.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(mi,Wn,ft,Ct),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(We=st.shadowOffset,a.Ev(We.x*y.scale*this.scale*y.Mb,We.y*y.scale*this.scale*y.Mb,st.shadowBlur),Pd(a),a.shadowColor=st.shadowColor)}at&&this.shadowVisible===!0?Pd(a):at&&this.shadowVisible===!1&&$c(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),uh(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&cl(this,rt)&&this.shadowVisible===null&&$c(a),this.Ma!==null&&(a.yc(),Ru(this,a,st,tt)),at&&(this.Ma!==null||this.areaBackground!==null||cl(this,rt))?(qh(this,!0),this.shadowVisible===null&&$c(a)):qh(this,!1),this.hh(a,y),at&&this.l&512&&Pd(a),ut&&at&&$c(a),vt&&(a.restore(),a.Vc(this instanceof Dn)),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=b),this.filter!==""&&(a.filter=E)}}};function cl(a,y){return y===null?!1:(Zd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Dn.Auto||y.type===Dn.Spot)&&y.Pb()!==a)}bt.Dv=function(){};function uh(a,y,x,b){ys(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Zo&&a.areaBackground.type===bh?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ru(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,at=x.height+E;ys(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Zo&&a.Ma.type===bh?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,at),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,at)}function Vl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[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===Dn.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 Ph(a,y,x){if(!(y instanceof Yu))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 b=a.panel,E=a.nk(y);if(a.kk(y,x,E))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):b&&Vl(a,b,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),Pd(y),y.shadowColor=a.shadowColor}a instanceof Ca&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Dn;var rt=a instanceof Dn?Zd(a):!1;a.l&4096&&yl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(vp(y,1,0,0,1,0,0),a.svg=y.ad):z?(vp(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):vp(y,1,0,0,1,0,0)),E=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],uh(a,y,E,at),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]),Ru(a,y,E,at),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],Ru(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&Pd(y),rt&&a.shadowVisible===!0?Pd(y):rt&&a.shadowVisible===!1&&$c(y),E=a.panel,rt&&cl(a,E)&&a.shadowVisible===null&&$c(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||cl(a,E))?(qh(a,!0),a.shadowVisible===null&&$c(y)):qh(a,!1),E=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,b,at,rt),Lu(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(gm(y),y.nh.pop()),rt===null||(a.$o(y,b,at,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+")")),E&&a.l&512&&Pd(y),a.Dd()&&$c(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):b!==null&&Vl(a,b,rt),tt!==null&&tt(a,rt)),!0)}bt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+Ze++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Dn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Lu(a,b)};function Lu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Kl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Fn(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}bt.hh=function(){},bt.lv=function(){this.Uc=!0},bt.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 b=this.transform,E=this instanceof Dn?Zd(this):!1;if(!(this instanceof Dn&&E))if(this instanceof Au){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.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 Dn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Sr){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.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=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],uh(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&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Dn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ru(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(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&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},bt.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 ys(a,y,x,b,E,z,tt){if(x!==null){var rt=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Gd)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var st=a.kq();if(rt=z.width,at=z.height,E?(rt=tt.width,at=tt.height):b||(rt+=st,at+=st),(z=y instanceof Vf)&&x.xe&&(x.type===Rg||x.yk===rt&&x.ft===at))var ut=x.xe;else{var ft=0,vt=0,Ct=0,Et=0,Nt=0,Qt=0;if(Qt=Nt=0,E?(Nt=tt.x,Qt=tt.y):b||(Nt-=st/2,Qt-=st/2),ft=x.start.x*rt+x.start.offsetX,vt=x.start.y*at+x.start.offsetY,Ct=x.end.x*rt+x.end.offsetX,Et=x.end.y*at+x.end.offsetY,ft+=Nt,Ct+=Nt,vt+=Qt,Et+=Qt,x.type===Cd)ut=y.createLinearGradient(ft,vt,Ct,Et);else if(x.type===bh)Qt=isNaN(x.endRadius)?Math.max(rt,at)/2:x.endRadius,isNaN(x.startRadius)?(Nt=0,Qt=Math.max(rt,at)/2):Nt=x.startRadius,ut=y.createRadialGradient(ft,vt,Nt,Ct,Et,Qt);else if(x.type===Rg)try{ut=y.createPattern(x.pattern,"repeat")}catch(ee){ut=null}if(x.type!==Rg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=at),ut===null&&x.type===Rg&&x.yk!==-1)){x.yk=-1;var Gt=a.diagram;Gt!==null&&x.yk===-1&&vi(function(){Gt.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}bt.rg=function(a){if(a instanceof Dn)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},bt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},bt.If=function(){for(var a=this instanceof Dn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function yl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Oh(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)}Oh(a,!1),wh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,wh(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,wh(a,!1)))}bt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Zt.alloc();z.yi(y,x,b,E,no),a.rotate(this.Kb,z.x,z.y),Zt.free(z)}},bt.v=function(a){if(!hh(this)){a===void 0&&(a=!1),Gs(this,!0),_c(this,!0);var y=this.panel;y===null||a||y.v()}},bt.Uj=function(){hh(this)||(Gs(this,!0),_c(this,!0))};function uu(a){if(!hu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ui&&a.Bd(),y.$b())),_c(a,!0)}}bt.Uk=function(){!(this.l&2048)&&(Oh(this,!0),wh(this,!0))},bt.Wu=function(){wh(this,!0)},bt.N=function(){var a=this.part;a!==null&&a.N()};function Mu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Dn.Table?gc(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Dn.Auto&&b.Pb()===a?dl(a,dn,y):x===fr?b!==null?b.type===Dn.Spot&&b.Pb()===a?dl(a,dn,y):(x=b.defaultStretch,x===fr?dl(a,gn,y):dl(a,x,y)):dl(a,gn,y):dl(a,x,y)}function gc(a,y,x,b){var E=a.stretch;if(E!==fr)return dl(a,E,b);var z=E=null;switch(y.stretch){case Ji:z=!0;break;case dn:z=!0}switch(x.stretch){case Ri:E=!0;break;case dn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Ri||y===dn),z===null&&(z=y===Ji||y===dn),E===!0&&z===!0?dl(a,dn,b):E===!0?dl(a,Ri,b):z===!0?dl(a,Ji,b):dl(a,gn,b)}function dl(a,y,x){if(x)return y;if(y===gn||(x=a.desiredSize,x.w()))return gn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Ri)return gn;if(y===dn)return Ji}else{if(y===Ji)return gn;if(y===dn)return Ri}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ji)return gn;if(y===dn)return Ri}else{if(y===Ri)return gn;if(y===dn)return Ji}return y}function qh(a,y){a.l=y?a.l|512:a.l&-513}function Al(a){return(a.l&1024)!==0}function sg(a,y){a.l=y?a.l|1024:a.l&-1025}function Oh(a,y){a.l=y?a.l|2048:a.l&-2049}function wh(a,y){a.l=y?a.l|4096:a.l&-4097}function hh(a){return(a.l&8192)!==0}function Gs(a,y){a.l=y?a.l|8192:a.l&-8193}function hu(a){return(a.l&16384)!==0}function _c(a,y){a.l=y?a.l|16384:a.l&-16385}bt.Gj=function(){this.svg=null},bt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},bt.Av=function(){},bt.zv=function(a){return this.pa=a,uu(this),!0},bt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},bt.kq=function(){return 0};function Gf(a){var y=a.part;if(y instanceof ui&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||ZS(y,a)}}function Xy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Dn?a instanceof ui?a.Bd():a.qm(a,function(x){Gf(x)}):Gf(a))}bt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Bs(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&dS(a)&&Oe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Ln),this.localBindings.add(E),this},bt.set=function(a){return Object.assign(this,a),this},bt.Du=function(a){return n0(this,a),this},bt.apply=function(a){return a(this),this},bt.nm=function(a){return Ds(this,a),this},bt.pz=function(){return this.ih()},bt.ih=function(){for(var a=this instanceof Dn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},bt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new si),this.animationTriggers.add(a.propertyName,a),this};function Ch(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=Ng.I(a);typeof z=="function"?(x=Ni(arguments),b=z(x),qe(b)||Oe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=ke.go[a]}if(b===null&&(E!=null&&E.constructor||Oe("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof we&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Zr(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Oe("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):n0(b,z);return b}function n0(a,y){if(typeof y=="string")if(a instanceof Ca)a.text=y;else if(a instanceof Sr)a.figure=y;else if(a instanceof Au)a.source=y;else if(a instanceof Dn)y=_h.I(y),y!==null&&(a.type=y);else if(a instanceof Zo){var x=ur(Zo,y);x!==null?a.type=x:Oe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Vn?(y=ur(Vn,y),y!==null&&(a.type=y)):a instanceof ho&&(y=ur(ho,y),y!==null&&(a.type=y));else if(y instanceof ge)a instanceof Dn||Oe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Zs){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Zs?Fm(b,y):Oe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Ke)typeof a.qb=="function"&&a.qb(y);else if(y instanceof _s)a.type=y;else if(y instanceof Bs)a instanceof ge||a instanceof Zs?a.bind(y):Oe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof pi)a instanceof ge?a.Jv(y):Oe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Is)a instanceof Vn&&a.type===Vn.o?a.figures.add(y):Oe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ho)a instanceof Is?a.segments.add(y):Oe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Qa)a instanceof we||a instanceof dr?a.layout=y:Oe("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++)n0(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Zo){x=new or;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Ds(a,x)}else if(a instanceof Zs){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Oe("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Oe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new or;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Ds(a,E)}else Ds(a,y);else Oe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Wd(a,y){Ng.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ae.Object.defineProperties(ge.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new lg),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 lg),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 lg),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Ar(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&&(Ar(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:fu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new mf),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===fu&&(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 mf),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 mf),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Ao},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new mf),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:fr},set:function(a){var y=this.stretch;y!==a&&(Ar(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&&(Ar(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)&&Pi(a,"0 <= value <= 1",ge,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Yf(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(Yf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Xy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&hg(a,"GraphObject.areaBackground"),a instanceof Zo&&a.freeze(),Ar(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&&hg(a,"GraphObject.background"),a instanceof Zo&&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 Wi)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,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Zt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Oe("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Sr&&this.qc(),this.g("desiredSize",b,a),Al(this)&&(a=this.part,a!==null&&(ja(this,a,"width"),ja(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 hn(a,this.jd.height).freeze(),this.v(),this instanceof Sr&&this.qc(),this.g("desiredSize",y,a),Al(this)&&(a=this.part,a!==null&&ja(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 hn(this.jd.width,a).freeze(),this.v(),this instanceof Sr&&this.qc(),this.g("desiredSize",y,a),Al(this)&&(a=this.part,a!==null&&ja(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ar},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(),Ar(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:as},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(),Ar(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&yl(this),this.Ab}},oe:{get:function(){return this.l&4096&&yl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Ar(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:gn},set:function(a){this.reshapingBehavior!==a&&(Ar(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()&&Oe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),uu(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&&Pi(a,">= 0",ge,"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&&Pi(a,">= 1",ge,"columnSpan"),Ar(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&&Pi(a,">= 0",ge,"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&&Pi(a,">= 1",ge,"rowSpan"),Ar(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&&(Ar(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 ui||Oe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&G0(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,US(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ds},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Gf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Pi(a,">= 0",ge,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Gf(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),Gf(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&&Pi(a,">= 0",ge,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ds},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Gf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Pi(a,">= 0",ge,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Gf(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),Gf(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&&Pi(a,">= 0",ge,"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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(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&&(Ar(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ge.prototype.trigger=ge.prototype.Jv,ge.prototype.findBindingPanel=ge.prototype.ih,ge.prototype.findTemplateBinder=ge.prototype.pz,ge.prototype.setProperties=ge.prototype.nm,ge.prototype.apply=ge.prototype.apply,ge.prototype.attach=ge.prototype.Du,ge.prototype.set=ge.prototype.set,ge.prototype.isEnabledObject=ge.prototype.If,ge.prototype.isVisibleObject=ge.prototype.Ed,ge.prototype.isContainedBy=ge.prototype.rg,ge.prototype.getNearestIntersectionPoint=ge.prototype.rs,ge.prototype.getLocalPoint=ge.prototype.qs,ge.prototype.getDocumentScale=ge.prototype.Df,ge.prototype.getDocumentAngle=ge.prototype.li,ge.prototype.getDocumentBounds=ge.prototype.mi,ge.prototype.getDocumentPoint=ge.prototype.ga,ge.prototype.intersectsRect=ge.prototype.Yc,ge.prototype.containedInRect=ge.prototype.fh,ge.prototype.containsRect=ge.prototype.Re,ge.prototype.containsPoint=ge.prototype.ca,ge.prototype.raiseChanged=ge.prototype.g,ge.prototype.raiseChangedEvent=ge.prototype.cb,ge.prototype.addCopyProperty=ge.prototype.Vw;var Ng=null;ge.className="GraphObject",Ng=new si,Wd("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Ch(Dn,Dn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Dn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Ch(Sr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Bi(0,0,2.76142374915397,2.761423749153969),spot2:new Bi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Dn&&(x=b.fb("ButtonBorder"),x instanceof Sr)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof Dn&&(x=b.fb("ButtonBorder"),x instanceof Sr&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Sr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Sr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Sr){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Dn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Sr))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),Wd("TreeExpanderButton",function(){var a=Ch("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ch(Sr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:$o},new Bs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Bs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof mo&&(x=x.adornedPart),x instanceof ui){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Wd("SubGraphExpanderButton",function(){var a=Ch("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ch(Sr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:$o},new Bs("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 mo&&(x=x.adornedPart),x instanceof dr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Wd("ToolTip",function(){return Ch(mo,Dn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},Ch(Sr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Bi(0,0,4,6),spot2:new Bi(1,1,-4,-4)}))}),Wd("ContextMenu",function(){return Ch(mo,Dn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},new Bs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Wd("ContextMenuButton",function(){var a=Ch("Button");a.stretch=Ri;var y=a.fb("ButtonBorder");return y instanceof Sr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Bi(0,0,2,3),y.spot2=new Bi(1,1,-2,-2)),a}),Wd("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Ch("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},Ch(Sr,{name:"ButtonIcon",strokeWidth:2},new Bs("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Sr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Wd("CheckBoxButton",function(a){var y=fm(a);return a=Ch("Button",{desiredSize:new hn(14,14)},Ch(Sr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:dn,geometryStretch:fi,visible:!1},y!==""?new Bs("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Dn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Wd("CheckBox",function(a){a=fm(a),a=Ch("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new qi(0,1,0,0)});var y=Ch(Dn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new qi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),ge.None=gn=new Ke(ge,"None",0),ge.Default=fr=new Ke(ge,"Default",0),ge.Vertical=Ji=new Ke(ge,"Vertical",4),ge.Horizontal=Ri=new Ke(ge,"Horizontal",5),ge.Fill=dn=new Ke(ge,"Fill",3),ge.Uniform=fi=new Ke(ge,"Uniform",1),ge.UniformToFill=_r=new Ke(ge,"UniformToFill",2),ge.FlipVertical=kr=new Ke(ge,"FlipVertical",1),ge.FlipHorizontal=lo=new Ke(ge,"FlipHorizontal",2),ge.FlipBoth=ea=new Ke(ge,"FlipBoth",3),ge.make=Ch,ge.getBuilders=function(){var a=new si,y;for(y in Ng)if(y!==y.toLowerCase()){var x=Ng.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ge.defineBuilder=Wd,ge.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=Ng.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof ge))return y&&b.set(y),b;Oe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},ge.takeBuilderArgument=fm;function lg(){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=ar,this.o=as,this.hg=fr,this.ob=this.Bi=1,this.Pf=gn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}lg.prototype.copy=function(){var a=new lg;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 mf(){this.u=-1/0,this.o=0,this.F=Ao,this.rr=fu,this.j=this.V="None"}mf.prototype.copy=function(){var a=new mf;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},mf.className="LinkElementSettings";function mp(){this.yj=this.Xi=al,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var a=new mp;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},mp.className="LinkSettings";function Zf(){this.ha=[1,0,0,1,0,0]}Zf.prototype.copy=function(){var a=new Zf;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},Zf.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},Zf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Zf.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 b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Zf.className="STransform";function ug(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}ug.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},ug.className="SGradient";function Rc(a,y,x){this.ownerDocument=a=y===void 0?ke.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 Yu(this,x)}Rc.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Rc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),qe(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Rc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Rc.prototype.focus=function(){this.Oa.focus()},Rc.prototype.mx=function(){this.ownerDocument=null},Ae.Object.defineProperties(Rc.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}}}),Rc.className="SVGSurface";function Yu(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 Zf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Ze++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Yy(a,y,x,b,E,z,tt){a.Nj===void 0?vp(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}bt=Yu.prototype,bt.arc=function(a,y,x,b,E,z,tt,rt){var at=2*Math.PI,st=at-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),vt=a+ut,Ct=y+ft,Et=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(rt-Ct))&&this.path.push(["L",vt,+Ct]),0>b&&(b=b%at+at),b>st?(this.path.push(["A",x,x,0,1,Et,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Et,vt,Ct])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Et,a+x*Math.cos(E),y+x*Math.sin(E)])},bt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},bt.Se=function(a){this.addPath(this.path,this.rb,a||0)},bt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},bt.clearRect=function(){},bt.clip=function(){this.Yl.clipPath=!0},bt.closePath=function(){this.path.push(["z"])},bt.createLinearGradient=function(a,y,x,b){var E=new ug("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},bt.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 b="PATTERN"+Ze++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Qc,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},bt.createRadialGradient=function(a,y,x,b,E,z){var tt=new ug("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,rt,at){b=rt/b,E=at/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}bt.drawImage=function(a,y,x,b,E,z,tt,rt,at){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,b===void 0&&(z=y,tt=x,rt=b=ut,at=E=a),b=b||0,E=E||0,rt=rt||0,at=at||0,Jy(this,y,x,b,E,z||0,tt||0,rt,at),z={x:0,y:0,width:ut||b,height:a||E,href:st},Ee.$(b,rt)&&Ee.$(E,at)?st.toLowerCase().indexOf(".svg")===-1&&st.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Fg(this,Qc,z,this.rb),this.addElement(Qc,z)},bt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),i0(this,this.Yl)},bt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},bt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Fg(this,"fill",a,this.rb),this.addElement("rect",a)},bt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Fg(this,"fill",a,this.rb),i0(this,a),this.svg.prepend(this.Ud("rect",a))},bt.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},Fg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},bt.lineTo=function(a,y){this.path.push(["L",a,y])},bt.moveTo=function(a,y){this.path.push(["M",a,y])},bt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},bt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},bt.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},bt.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())},bt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||vp(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}bt.scale=function(a,y){this.rb.scale(a,y)},bt.translate=function(a,y){this.rb.translate(a,y)},bt.transform=function(){},bt.yc=function(){},bt.stroke=function(){_y(this,this.Yl)},bt.jk=function(){this.clipInsteadOfFill||this.stroke()},bt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},bt.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 Fg(a,y,x,b){y==="fill"?i0(a,x):y==="stroke"&&_y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function i0(a,y){a.fillStyle instanceof ug?y.fill=r0(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 ug?y.setAttributeNS(null,"fill",r0(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 ug)y.stroke=r0(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 r0(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Ze++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,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:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],tt=0;tt<y;tt++){var rt=E[tt],at=rt.color;rt={offset:rt.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),rt["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",rt["stop-opacity"]=at[4]),z.push(rt)}for(z.sort(function(st,ut){return st.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}bt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Ni(a[E]),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());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,Fg(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 at in a)at!=="transform"&&rt[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function vp(a,y,x,b,E,z,tt){var rt=new Zf;rt.ha=[y,x,b,E,z,tt],y={},Fg(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}bt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function $c(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Pd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}bt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},bt.fs=function(){this.Ct=!1},bt.Vc=function(){},bt.Wx=function(){},Yu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Yu.prototype.getImageData=function(){return null},Yu.prototype.measureText=function(){return null};function pm(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()))}Yu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Yu.className="SVGContext",we.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Rc(this,ke.document));var y=new Rc(this,ke.document,!0);a===void 0&&(a=new or);var x=this;return vd(this,function(b,E){return b=gf(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},we.prototype.makeSvg=we.prototype.Cs,we.prototype.av=function(a){return this.Cs(a)},we.prototype.makeSVG=we.prototype.av;function Rh(a,y,x,b){this.ownerDocument=y=y===void 0?ke.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Vf(y,x,b),y.H=a}Rh.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Rh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Rh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Rh.prototype.focus=function(){this.Oa.focus()},Rh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ae.Object.defineProperties(Rh.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}}}),Rh.className="CanvasSurface";function Vf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Oe("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 br,this.isTemporary=!!x}bt=Vf.prototype,bt.Wx=function(a){this.Z.imageSmoothingEnabled=a},bt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},bt.beginPath=function(){this.Z.beginPath()},bt.Se=function(){},bt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},bt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},bt.clip=function(){this.Z.clip()},bt.closePath=function(){this.Z.closePath()},bt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},bt.createPattern=function(a,y){return this.Z.createPattern(a,y)},bt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},bt.drawImage=function(a,y,x,b,E,z,tt,rt,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,rt,at)},bt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},bt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},bt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},bt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},bt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},bt.lineTo=function(a,y){this.Z.lineTo(a,y)},bt.measureText=function(a){return this.Z.measureText(a)},bt.moveTo=function(a,y){this.Z.moveTo(a,y)},bt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},bt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},bt.restore=function(){this.Z.restore()},bt.save=function(){this.yc(),this.Z.save()},Vf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},bt=Vf.prototype,bt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},bt.scale=function(a,y){this.El.scale(a,y)},bt.translate=function(a,y){this.El.translate(a,y)},bt.stroke=function(){this.Z.stroke()},bt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==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*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},bt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},bt.ng=function(a,y){if(a instanceof Zo&&a.type===bh){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)},bt.jk=function(){this.Hm||this.stroke()},bt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},bt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},bt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},bt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},bt.Hs=function(){},Ae.Object.defineProperties(Vf.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Vf.className="CanvasSurfaceContext";function yp(){this.F=this.o=this.u=this.j=0}yp.className="ColorNumbers";function Zo(a,y){Og||(h0(),Og=!0),Br(this),this._isFrozen=!1,a===void 0?(this.na=Gd,this.xk="black"):typeof a=="string"?(this.na=Gd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Cd?(this.Qd=Xl,this.Lk=ua):this.Lk=a===bh?this.Qd=no:this.Qd=ds,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Zo.prototype.copy=function(){var a=new Zo;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},bt=Zo.prototype,bt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},bt.ka=function(){return Object.isFrozen(this)&&Oe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},bt.qb=function(a){a.classType===Zo&&(this.type=a)},bt.toString=function(){var a="Brush(";if(this.type===Gd)a+=this.color;else if(a=this.type===Cd?a+"Linear ":this.type===bh?a+"Radial ":this.type===Rg?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+")"},bt.addColorStop=function(a,y){return this._isFrozen&&ni(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Pi(a,"0 <= loc <= 1",Zo,"addColorStop:loc"),this.we===null&&(this.we=new si),this.we.add(a,y),this.na===Gd&&(this.type=Cd),this.xe=null,this},bt.Vz=function(a,y){if(this._isFrozen&&ni(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ig:y,this.type===Gd)wd(this.color),this.color=Dg(a,y);else if((this.type===Cd||this.type===bh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wd(x.value),this.addColorStop(x.key,Dg(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ig:x,wd(a),Dg(y,x)}bt.Wy=function(a,y){if(this._isFrozen&&ni(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ig:y,this.type===Gd)wd(this.color),this.color=Dg(-a,y);else if((this.type===Cd||this.type===bh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wd(x.value),this.addColorStop(x.key,Dg(-a,y));return this};function tS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ig:x,wd(a),Dg(-y,x)}function o0(a,y,x){wd(a),a=Ma.j;var b=Ma.u,E=Ma.o,z=Ma.F;return wd(y),x===void 0&&(x=.5),"rgba("+Math.round((Ma.j-a)*x+a)+", "+Math.round((Ma.u-b)*x+b)+", "+Math.round((Ma.o-E)*x+E)+", "+Math.round((Ma.F-z)*x+z)+")"}bt.Gx=function(){if(this.type===Gd)return Tg(this.color);if((this.type===Cd||this.type===bh)&&this.colorStops!==null){var a=this.colorStops;if(this.type===bh)return Tg(a.first().value);if(a.get(.5)!==null)return Tg(a.get(.5));if(a.count===2)return a=a.Fa(),Tg(o0(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=tt,E=rt):z>=E&&rt<z&&(b=tt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Tg(o0(a.get(x),a.get(b),1-z/E))}return!1};function Tg(a){return a?a instanceof Zo?a.Gx():(wd(a),128>(299*Ma.j+587*Ma.u+114*Ma.o)/1e3):!1}function Dg(a,y){switch(y){case Ig:y=100*s0(Ma.j);var x=100*s0(Ma.u),b=100*s0(Ma.o);return cu.j=.4124564*y+.3575761*x+.1804375*b,cu.u=.2126729*y+.7151522*x+.072175*b,cu.o=.0193339*y+.119192*x+.9503041*b,cu.F=Ma.F,y=u0(cu.j/Bg[0]),x=u0(cu.u/Bg[1]),b=u0(cu.o/Bg[2]),td.j=116*x-16,td.u=500*(y-x),td.o=200*(x-b),td.F=cu.F,td.j=Math.min(100,Math.max(0,td.j+100*a)),a=(td.j+16)/116,y=a-td.o/200,cu.j=Bg[0]*eS(td.u/500+a),cu.u=Bg[1]*(td.j>mm*c0?Math.pow(a,3):td.j/mm),cu.o=Bg[2]*eS(y),cu.F=td.F,a=-.969266*cu.j+1.8760108*cu.u+.041556*cu.o,y=.0556434*cu.j+-.2040259*cu.u+1.0572252*cu.o,Ma.j=255*l0((3.2404542*cu.j+-1.5371385*cu.u+-.4985314*cu.o)/100),Ma.u=255*l0(a/100),Ma.o=255*l0(y/100),Ma.F=cu.F,Ma.j=Math.round(Ma.j),255<Ma.j?Ma.j=255:0>Ma.j&&(Ma.j=0),Ma.u=Math.round(Ma.u),255<Ma.u?Ma.u=255:0>Ma.u&&(Ma.u=0),Ma.o=Math.round(Ma.o),255<Ma.o?Ma.o=255:0>Ma.o&&(Ma.o=0),"rgba("+Ma.j+", "+Ma.u+", "+Ma.o+", "+Ma.F+")";case nS:return a0(),ch.o=Math.min(100,Math.max(0,ch.o+100*a)),"hsla("+ch.j+", "+ch.u+"%, "+ch.o+"%, "+ch.F+")";default:Oe("Unknown color space: "+y)}}function wd(a){Og||(h0(),Og=!0);var y=d0;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,Ma.j=a[0],Ma.u=a[1],Ma.o=a[2],Ma.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ma.j=0,Ma.u=0,Ma.o=0,Ma.F=1)}}function a0(){var a=Ma.j/255,y=Ma.u/255,x=Ma.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){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*E-1))}ch.j=Math.round(tt),ch.u=Math.round(100*a),ch.o=Math.round(100*E),ch.F=Ma.F}function s0(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function l0(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function u0(a){return a>c0?Math.pow(a,1/3):(mm*a+16)/116}function eS(a){var y=a*a*a;return y>c0?y:(116*a-16)/mm}function hg(a,y){typeof a!="string"&&(a instanceof Zo||Oe("Value for "+y+" must be a color string or a Brush, not "+a))}function h0(){d0=Oa?new Rh(null,void 0,{willReadFrequently:!0}).context:null}Ae.Object.defineProperties(Zo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ni(this,a),this.na=a,this.start.Mc()&&(a===Cd?this.start=Xl:a===bh&&(this.start=no)),this.end.Mc()&&(a===Cd?this.end=ua:a===bh&&(this.end=no)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ni(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ni(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ni(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ni(this,a),0>a&&Pi(a,">= zero",Zo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ni(this,a),0>a&&Pi(a,">= zero",Zo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ni(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ni(this,a),this.cr=a,this.xe=null}}}),Zo.prototype.isDark=Zo.prototype.Gx,Zo.prototype.darkenBy=Zo.prototype.Wy,Zo.prototype.lightenBy=Zo.prototype.Vz,Zo.prototype.addColorStop=Zo.prototype.addColorStop;var c0=216/24389,mm=24389/27,Bg=[95.047,100,108.883],d0=null,Ma=new yp,ch=new yp,cu=new yp,td=new yp,Og=!1;Zo.className="Brush";var Gd;Zo.Solid=Gd=new Ke(Zo,"Solid",0);var Cd;Zo.Linear=Cd=new Ke(Zo,"Linear",1);var bh;Zo.Radial=bh=new Ke(Zo,"Radial",2);var Rg;Zo.Pattern=Rg=new Ke(Zo,"Pattern",4);var Ig;Zo.Lab=Ig=new Ke(Zo,"Lab",5);var nS;Zo.HSL=nS=new Ke(Zo,"HSL",6),Zo.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 b=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>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Zo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Og||(h0(),Og=!0);var y=d0;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)},Zo.lighten=function(a){return $y(a)},Zo.lightenBy=$y,Zo.darken=function(a){return tS(a)},Zo.darkenBy=tS,Zo.mix=o0,Zo.isDark=Tg;function _s(){this.xa="Base"}_s.prototype.measure=function(){},_s.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},_s.prototype.arrange=function(){},_s.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},_s.prototype.iA=function(a){a.Uj()},_s.prototype.gc=function(){},Ae.Object.defineProperties(_s.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Dn}}}),_s.prototype.remeasureObject=_s.prototype.iA,_s.prototype.arrangeElement=_s.prototype.Ly,_s.prototype.measureElement=_s.prototype.Yz,_s.className="PanelLayout";function vm(){this.xa="Base"}ae(vm,_s),vm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=bd(a);for(var at=0;at<rt;at++){var st=b[at];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 vt=st.measuredBounds;ft=Math.max(vt.width+ft,0),ut=Math.max(vt.height+ut,0),vt=st.position.x;var Ct=st.position.y;isFinite(vt)||(vt=0),isFinite(Ct)||(Ct=0),st instanceof Sr&&st.isGeometryPositioned&&(st=st.strokeWidth/2,vt-=st,Ct-=st),Aa(E,vt,Ct,ft,ut)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],tt=z.measuredBounds,rt=z.margin,at=z.position.x,st=z.position.y;if(at=isNaN(at)?-a:at-a,st=isNaN(st)?-x:st-x,z instanceof Sr&&z.isGeometryPositioned){var ut=z.strokeWidth/2;at-=ut,st-=ut}z.visible&&z.arrange(at+rt.left,st+rt.top,tt.width,tt.height)}};function ym(){this.xa="Base"}ae(ym,_s),ym.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=Si(),z=bd(a);for(var at=0;at<rt;at++){var st=b[at];if(st.visible||st===z){var ut=Mu(st,!1);if(ut!==gn&&ut!==Ri)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);E.width+=Math.max(st.width+ut.right+ut.left,0),E.height=Math.max(E.height,ft)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)at=y[a],(at.visible||at===z)&&(ut=at.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,at.measure(1/0,x,0,tt),at=at.measuredBounds,ut=Math.max(at.height+ut,0),E.width+=Math.max(at.width+rt,0),E.height=Math.max(E.height,ut));Fi(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,rt=tt?x.width:E.left,at=0;at<b;at++){var st=z,ut=y[at];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,Ct=vt.top+vt.bottom,Et=z+E.bottom,Nt=ft.height,Qt=Mu(ut,!1);(isNaN(ut.desiredSize.height)&&Qt===dn||Qt===Ji)&&(Nt=Math.max(x.height-Ct-Et,0)),Ct=Nt+Ct+Et,Et=ut.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=no),tt&&(rt-=ft.width+vt.left+vt.right),ut.arrange(rt+Et.offsetX+vt.left,st+Et.offsetY+vt.top+(x.height*Et.y-Ct*Et.y),ft.width,Nt),tt||(rt+=ft.width+vt.left+vt.right)}}};function Sm(){this.xa="Base"}ae(Sm,_s),Sm.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=Si();for(var rt=bd(a),at=0;at<tt;at++){var st=b[at];if(st.visible||st===rt){var ut=Mu(st,!1);if(ut!==gn&&ut!==Ji)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,Us(E,Math.max(E.width,Math.max(st.width+ut,0)),E.height+Math.max(st.height+ft,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)at=x[a],(at.visible||at===rt)&&(st=at.margin,tt=st.right+st.left,st=st.top+st.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,st=Math.max(at.height+st,0),E.width=Math.max(E.width,Math.max(at.width+tt,0)),E.height+=st);Fi(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,rt=tt?x.height:E.top,at=0;at<b;at++){var st=z,ut=y[at];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,Ct=vt.left+vt.right,Et=z+E.right,Nt=ft.width,Qt=Mu(ut,!1);(isNaN(ut.desiredSize.width)&&Qt===dn||Qt===Ri)&&(Nt=Math.max(x.width-Ct-Et,0)),Ct=Nt+Ct+Et,Et=ut.alignment,Et.Xb()&&(Et=a.defaultAlignment),Et.sb()||(Et=no),tt&&(rt-=ft.height+vt.bottom+vt.top),ut.arrange(st+Et.offsetX+vt.left+(x.width*Et.x-Ct*Et.x),rt+Et.offsetY+vt.top,Nt,ft.height),tt||(rt+=ft.height+vt.bottom+vt.top)}}};function xm(){this.xa="Base"}ae(xm,_s),xm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,at=a.Pb(),st=at.margin,ut=st.right+st.left,ft=st.top+st.bottom;at.measure(y,x,z,tt);var vt=at.measuredBounds;z=vt.width,tt=vt.height;var Ct=Math.max(z+ut,0),Et=Math.max(tt+ft,0),Nt=a.isClipping,Qt=en.allocAt(-st.left,-st.top,Ct,Et),Gt=en.allocAt(0,0,z,tt);f0(at,Gt,!0),z=Gt.width,tt=Gt.height;for(var ee=!0,ie=bd(a),he=0;he<rt;he++){var Ce=b[he];vt=y;var We=x;if(Ce!==at&&(Ce.visible||Ce===ie)){st=Ce.margin;var ii=st.left,bi=st.top;switch(Ct=st.right+st.left,Et=st.top+st.bottom,st=Mu(Ce,!1),st){case dn:vt=z,We=tt,bi=ii=Et=Ct=0;break;case Ri:vt=z,ii=Ct=0;break;case Ji:We=tt,bi=Et=0}Ce.measure(vt,We,0,0),vt=Ce.measuredBounds,Ct=Math.max(vt.width+Ct,0),Et=Math.max(vt.height+Et,0),st=Ce.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=no);var mi=Ce.alignmentFocus;if(mi.Xb()&&(mi=no),We=null,Ce instanceof Dn&&Ce.$e!==""&&(We=Ce.fb(Ce.$e),We===Ce&&(We=null)),ii=Gt.x-ii,bi=Gt.y-bi,We!==null){for(Ce.arrange(0,0,vt.width,vt.height),vt=We.actualBounds,vt=Zt.allocAt(vt.x+(mi.x*vt.width-mi.offsetX),vt.y+(mi.y*vt.height-mi.offsetY)),We=We.panel;We!==Ce;)We.transform.Ga(vt),We=We.panel;ii+=st.x*z+st.offsetX-vt.x,bi+=st.y*tt+st.offsetY-vt.y,Zt.free(vt)}else ii+=st.x*z+st.offsetX-(mi.x*vt.width+mi.offsetX),bi+=st.y*tt+st.offsetY-(mi.y*vt.height+mi.offsetY);ee?(ee=!1,E.h(ii,bi,Ct,Et)):Aa(E,ii,bi,Ct,Et)}}switch(ee?E.assign(Qt):Nt?E.Uu(Gt.x,Gt.y,Gt.width,Gt.height):Aa(E,Qt.x,Qt.y,Qt.width,Qt.height),en.free(Qt),en.free(Gt),st=at.stretch,st===fr&&(st=Mu(at,!1)),st){case gn:return;case dn:if(!isFinite(y)&&!isFinite(x))return;break;case Ri:if(!isFinite(y))return;break;case Ji:if(!isFinite(x))return}for(vt=at.measuredBounds,z=vt.width,tt=vt.height,Ct=Math.max(z+ut,0),Et=Math.max(tt+ft,0),st=at.margin,Gt=en.allocAt(-st.left,-st.top,Ct,Et),f0(at,Gt,!0),z=Gt.width,tt=Gt.height,y=0;y<rt;y++)x=b[y],x===at||!x.visible&&x!==ie||(st=x.margin,Ct=st.right+st.left,Et=st.top+st.bottom,vt=x.measuredBounds,Ct=Math.max(vt.width+Ct,0),Et=Math.max(vt.height+Et,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=no),x=x.alignmentFocus,x.Xb()&&(x=no),ee?(ee=!1,E.h(ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,Ct,Et)):Aa(E,ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-st.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-st.top,Ct,Et));ee?E.assign(Qt):Nt?E.Uu(Gt.x,Gt.y,Gt.width,Gt.height):Aa(E,Qt.x,Qt.y,Qt.width,Qt.height),en.free(Gt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,rt=z.height,at=a.padding;z=at.left,at=at.top;var st=z-x.x,ut=at-x.y;for(E.arrange(st,ut,tt,rt),tt=en.allocAt(0,0,tt,rt),f0(E,tt,!1),rt=0;rt<b;rt++){var ft=y[rt];if(ft!==E){st=ft.measuredBounds;var vt=st.width,Ct=st.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=no);var Et=ft.alignmentFocus;if(Et.Xb()&&(Et=no),st=null,ft instanceof Dn&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var Nt=st.actualBounds;for(Et=Zt.allocAt(Nt.x+(Et.x*Nt.width-Et.offsetX),Nt.y+(Et.y*Nt.height-Et.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(Et),st=st.panel;st=ut.x*tt.width+ut.offsetX-Et.x,ut=ut.y*tt.height+ut.offsetY-Et.y,Zt.free(Et)}else st=ut.x*tt.width+ut.offsetX-(Et.x*vt+Et.offsetX),ut=ut.y*tt.height+ut.offsetY-(Et.y*Ct+Et.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,at+ut,vt,Ct)}}en.free(tt)};function f0(a,y,x){var b=null;if(a instanceof Dn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function Pm(){this.xa="Base"}ae(Pm,_s),Pm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,at=a.Pb(),st=at.margin,ut=y,ft=x,vt=st.right+st.left,Ct=st.top+st.bottom;at.measure(y,x,z,tt),st=at.measuredBounds;var Et=0,Nt=null;at instanceof Sr&&(Nt=at,Et=Nt.strokeWidth*Nt.scale);var Qt=Math.max(st.width+vt,0);st=Math.max(st.height+Ct,0);var Gt=v0(at),ee=Gt.x*Qt+Gt.offsetX;Gt=Gt.y*st+Gt.offsetY;var ie=y0(at),he=ie.x*Qt+ie.offsetX;for(ie=ie.y*st+ie.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(ee-he)-Et,0)),isFinite(x)&&(ft=Math.max(Math.abs(Gt-ie)-Et,0)),Et=hn.alloc(),Et.h(0,0),a=bd(a),ie=0;ie<rt;ie++)Gt=b[ie],Gt===at||!Gt.visible&&Gt!==a||(st=Gt.margin,Qt=st.right+st.left,ee=st.top+st.bottom,Gt.measure(ut,ft,0,0),st=Gt.measuredBounds,Qt=Math.max(st.width+Qt,0),st=Math.max(st.height+ee,0),Et.h(Math.max(Qt,Et.width),Math.max(st,Et.height)));if(rt===1)E.width=Qt,E.height=st,hn.free(Et);else{switch(Gt=v0(at),ie=y0(at),rt=b=0,ie.x!==Gt.x&&ie.y!==Gt.y&&(b=Et.width/Math.abs(ie.x-Gt.x),rt=Et.height/Math.abs(ie.y-Gt.y)),hn.free(Et),Et=0,Nt!==null&&(Et=Nt.strokeWidth*Nt.scale,b0(Nt)===fi&&(b=rt=Math.max(b,rt))),b+=Math.abs(Gt.offsetX)+Math.abs(ie.offsetX)+Et,rt+=Math.abs(Gt.offsetY)+Math.abs(ie.offsetY)+Et,Nt=at.stretch,Nt===fr&&(Nt=Mu(at,!1)),Nt){case gn:tt=z=0;break;case dn:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case Ri:isFinite(y)&&(b=y),tt=0;break;case Ji:z=0,isFinite(x)&&(rt=x)}at.Uj(),at.measure(b,rt,z,tt),E.width=at.measuredBounds.width+vt,E.height=at.measuredBounds.height+Ct}},Pm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=en.alloc();z.h(0,0,1,1);var tt=b.margin,rt=tt.left;tt=tt.top;var at=a.padding,st=at.left;at=at.top,b.arrange(st+rt,at+tt,E.width,E.height);var ut=v0(b),ft=y0(b),vt=ut.y*E.height+ut.offsetY,Ct=ft.x*E.width+ft.offsetX;for(ft=ft.y*E.height+ft.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=vt,Aa(z,Ct,ft,0,0),z.x+=rt+st,z.y+=tt+at,E=0;E<x;E++)rt=y[E],rt!==b&&(st=rt.measuredBounds,tt=rt.margin,at=Math.max(st.width+tt.right+tt.left,0),ut=Math.max(st.height+tt.top+tt.bottom,0),vt=rt.alignment,vt.Xb()&&(vt=a.defaultAlignment),vt.sb()||(vt=no),at=z.width*vt.x+vt.offsetX-at*vt.x+tt.left+z.x,tt=z.height*vt.y+vt.offsetY-ut*vt.y+tt.top+z.y,rt.visible&&(ps(z.x,z.y,z.width,z.height,at,tt,st.width,st.height)?rt.arrange(at,tt,st.width,st.height):rt.arrange(at,tt,st.width,st.height,new en(z.x,z.y,z.width,z.height))));en.free(z)};function wm(){this.xa="Base",this.name="Table"}ae(wm,_s),wm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=Si(),rt=Si(),at=0;at<z;at++){var st=b[at],ut=st instanceof Dn?st:null;if(ut!==null&&Zd(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,vt=ft.length,Ct=0;Ct<vt;Ct++){var Et=ft[Ct];ut.type===Dn.TableRow?Et.row=st.row:ut.type===Dn.TableColumn&&(Et.column=st.column),tt.push(Et)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Nt=[],Qt=0;Qt<z;Qt++){var Gt=tt[Qt];Gt.visible&&(Gs(Gt,!0),_c(Gt,!0),Nt[Gt.row]||(Nt[Gt.row]=[]),Nt[Gt.row][Gt.column]||(Nt[Gt.row][Gt.column]=[]),Nt[Gt.row][Gt.column].push(Gt))}Fi(tt);var ee=Si(),ie=Si(),he=Si(),Ce={count:0},We={count:0},ii=y,bi=x,mi=a.rowDefs,Wn=a.colDefs,xn=null;z=mi.length;for(var cr=0;cr<z;cr++)xn=mi[cr],xn!==void 0&&(xn.actual=0);z=Wn.length;for(var ir=0;ir<z;ir++)xn=Wn[ir],xn!==void 0&&(xn.actual=0);for(var Lo=Nt.length,xa=0,rl=0;rl<Lo;rl++)Nt[rl]&&(xa=Math.max(xa,Nt[rl].length));var ll=Math.min(a.topIndex,Lo-1),iu=Math.min(a.leftIndex,xa-1),ol=0;Lo=Nt.length;for(var $d=bd(a),Os=0;Os<Lo;Os++)if(Nt[Os]){xa=Nt[Os].length;var Sc=a.Fb(Os);Sc.actual=0;for(var ru=Sc.oc=0;ru<xa;ru++)if(Nt[Os][ru]){var tf=a.Eb(ru);ee[ru]===void 0&&(tf.actual=0,tf.oc=0,ee[ru]=!0);for(var gh=Nt[Os][ru],Hh=gh.length,qu=0;qu<Hh;qu++){var zu=gh[qu];if(zu.visible||zu===$d){var Nf=1<zu.rowSpan||1<zu.columnSpan;Nf&&(Os<ll||ru<iu||ie.push(zu));var xc=zu.margin,ap=xc.right+xc.left,_u=xc.top+xc.bottom,ou=gc(zu,Sc,tf,!1),om=zu.desiredSize,wg=!isNaN(om.height),jc=!isNaN(om.width)&&wg;if(Nf||ou===gn||jc||Os<ll||ru<iu||(Ce[ru]!==void 0||ou!==dn&&ou!==Ri||(Ce[ru]=-1,Ce.count++),We[Os]!==void 0||ou!==dn&&ou!==Ji||(We[Os]=-1,We.count++),he.push(zu)),zu.measure(1/0,1/0,0,0),!(Os<ll||ru<iu)){var ju=zu.measuredBounds,$f=Math.max(ju.width+ap,0),$u=Math.max(ju.height+_u,0);if(zu.rowSpan===1&&(ou===gn||ou===Ri)){xn=a.Fb(Os);var Ff=xn.Wc();ol=Math.max($u-xn.actual,0),ol+Ff>bi&&(ol=Math.max(bi-Ff,0));var Kv=xn.oa===0;xn.oc=xn.oc+ol,xn.actual=xn.oa+ol,bi=Math.max(bi-(ol+(Kv?Ff:0)),0)}if(zu.columnSpan===1&&(ou===gn||ou===Ji)){xn=a.Eb(ru);var am=xn.Wc();ol=Math.max($f-xn.actual,0),ol+am>ii&&(ol=Math.max(ii-am,0));var Hy=xn.oa===0;xn.oc=xn.oc+ol,xn.actual=xn.oa+ol,ii=Math.max(ii-(ol+(Hy?am:0)),0)}Nf&&zu.Uj()}}}}}Fi(ee);var ud=0,Ed=0;z=a.columnCount;for(var Cg=0;Cg<z;Cg++){var Tf=Wn[Cg];Tf!==void 0&&(ud+=isNaN(Tf.Hc)?Tf.oc:Tf.Hc,Tf.oc!==0&&(ud+=Tf.Wc()))}z=a.rowCount;for(var sp=0;sp<z;sp++){var Df=mi[sp];Df!==void 0&&(Ed+=isNaN(Df.Hc)?Df.oc:Df.Hc,Df.oc!==0&&(Ed+=Df.Wc()))}ii=Math.max(y-ud,0);var hd=bi=Math.max(x-Ed,0),ef=ii;z=he.length;for(var Hu=0;Hu<z;Hu++){var Hc=he[Hu],Uv=a.Fb(Hc.row),Ad=a.Eb(Hc.column),lp=Hc.measuredBounds,Pc=Hc.margin,tg=Pc.right+Pc.left,Wc=Pc.top+Pc.bottom;Ce[Hc.column]=Ad.oc===0&&Ce[Hc.column]!==void 0?Math.max(lp.width+tg,Ce[Hc.column]):null,We[Hc.row]=Uv.oc===0&&We[Hc.row]!==void 0?Math.max(lp.height+Wc,We[Hc.row]):null}var bg=0,up=0,rc;for(rc in We)rc!=="count"&&(bg+=We[rc]);for(rc in Ce)rc!=="count"&&(up+=Ce[rc]);for(var xl=hn.alloc(),sm=0;sm<z;sm++){var yu=he[sm];if(yu.visible||yu===$d){var Rs=a.Fb(yu.row),Su=a.Eb(yu.column),kd=0;isFinite(Su.width)?kd=Su.width:(isFinite(ii)&&Ce[yu.column]!==null?up===0?kd=Su.actual+ii:kd=Ce[yu.column]/up*ef:Ce[yu.column]!==null?kd=ii:kd=Su.actual||ii,kd=Math.max(0,kd-Su.Wc()));var nf=0;switch(isFinite(Rs.height)?nf=Rs.height:(isFinite(bi)&&We[yu.row]!==null?bg===0?nf=Rs.actual+bi:nf=We[yu.row]/bg*hd:We[yu.row]!==null?nf=bi:nf=Rs.actual||bi,nf=Math.max(0,nf-Rs.Wc())),xl.h(Math.max(Su.minimum,Math.min(kd,Su.maximum)),Math.max(Rs.minimum,Math.min(nf,Rs.maximum))),ou=gc(yu,Rs,Su,!1),ou){case Ri:xl.height=Math.max(xl.height,Rs.actual+bi);break;case Ji:xl.width=Math.max(xl.width,Su.actual+ii)}var eg=yu.margin,Wy=eg.right+eg.left,Xv=eg.top+eg.bottom;yu.Uj(),yu.measure(xl.width,xl.height,Su.minimum,Rs.minimum);var hp=yu.measuredBounds,ng=Math.max(hp.width+Wy,0),Lg=Math.max(hp.height+Xv,0);isFinite(ii)&&(ng=Math.min(ng,xl.width)),isFinite(bi)&&(Lg=Math.min(Lg,xl.height));var Wu=0;Wu=Rs.actual,Rs.actual=Math.max(Rs.actual,Lg),Rs.oc=Math.max(Rs.oc,Lg),ol=Rs.actual-Wu,bi=Math.max(bi-ol,0),We[yu.row]===null&&(hd=Math.max(hd-ol,0)),Wu=Su.actual,Su.actual=Math.max(Su.actual,ng),Su.oc=Math.max(Su.oc,ng),ol=Su.actual-Wu,ii=Math.max(ii-ol,0),Ce[yu.column]===null&&(ef=Math.max(ef-ol,0))}}Fi(he);var Nd=hn.alloc(),wc=Si(),kh=Si();if(z=ie.length,z!==0){for(var Bf=0;Bf<Lo;Bf++)if(Nt[Bf]){xa=Nt[Bf].length;var cp=a.Fb(Bf);wc[Bf]=cp.actual;for(var Of=0;Of<xa;Of++)if(Nt[Bf][Of]){var Yv=a.Eb(Of);kh[Of]=Yv.actual}}}for(var dp=0;dp<z;dp++){var xs=ie[dp];if(xs.visible||xs===$d){var oc=a.Fb(xs.row),Wh=a.Eb(xs.column);switch(xl.h(Math.max(Wh.minimum,Math.min(y,Wh.maximum)),Math.max(oc.minimum,Math.min(x,oc.maximum))),ou=gc(xs,oc,Wh,!1),ou){case dn:kh[Wh.index]!==0&&(xl.width=Math.min(xl.width,kh[Wh.index])),wc[oc.index]!==0&&(xl.height=Math.min(xl.height,wc[oc.index]));break;case Ri:kh[Wh.index]!==0&&(xl.width=Math.min(xl.width,kh[Wh.index]));break;case Ji:wc[oc.index]!==0&&(xl.height=Math.min(xl.height,wc[oc.index]))}isFinite(Wh.width)&&(xl.width=Wh.width),isFinite(oc.height)&&(xl.height=oc.height),Nd.h(0,0);for(var Jv=Wh.minimum,th=oc.minimum,rf=1;rf<xs.rowSpan&&!(xs.row+rf>=a.rowCount);rf++)xn=a.Fb(xs.row+rf),ol=0,ol=ou===dn||ou===Ji?Math.max(xn.minimum,wc[xs.row+rf]===0?xn.maximum:Math.min(wc[xs.row+rf],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),Nd.height+=ol,th+=xn.minimum;for(var Gh=1;Gh<xs.columnSpan&&!(xs.column+Gh>=a.columnCount);Gh++)xn=a.Eb(xs.column+Gh),ol=0,ol=ou===dn||ou===Ri?Math.max(xn.minimum,kh[xs.column+Gh]===0?xn.maximum:Math.min(kh[xs.column+Gh],xn.maximum)):Math.max(xn.minimum,isNaN(xn.Hc)?xn.maximum:Math.min(xn.Hc,xn.maximum)),Nd.width+=ol,Jv+=xn.minimum;xl.width+=Nd.width,xl.height+=Nd.height;var fp=xs.margin,Rf=fp.right+fp.left,lm=fp.top+fp.bottom;xs.measure(xl.width,xl.height,Jv,th);for(var gp=xs.measuredBounds,Gc=Math.max(gp.width+Rf,0),ig=Math.max(gp.height+lm,0),If=0,pp=0;pp<xs.rowSpan&&!(xs.row+pp>=a.rowCount);pp++)xn=a.Fb(xs.row+pp),If+=xn.total||0;if(If<ig){var of=ig-If,cd=ig-If;if(xs.spanAllocation!==null)for(var af=xs.spanAllocation,Fd=0;Fd<xs.rowSpan&&!(0>=of)&&!(xs.row+Fd>=a.rowCount);Fd++){xn=a.Fb(xs.row+Fd);var sf=xn.oa||0,rg=af(xs,xn,cd);xn.actual=Math.min(xn.maximum,sf+rg),xn.oa!==sf&&(of-=xn.oa-sf)}for(;0<of;){var Cc=xn.oa||0;if(isNaN(xn.height)&&xn.maximum>Cc&&(xn.actual=Math.min(xn.maximum,Cc+of),xn.oa!==Cc&&(of-=xn.oa-Cc)),xn.index===0)break;xn=a.Fb(xn.index-1)}}for(var Mg=0,lf=0;lf<xs.columnSpan&&!(xs.column+lf>=a.columnCount);lf++)xn=a.Eb(xs.column+lf),Mg+=xn.total||0;if(Mg<Gc){var Eg=Gc-Mg,Gy=Gc-Mg;if(xs.spanAllocation!==null)for(var Td=xs.spanAllocation,og=0;og<xs.columnSpan&&!(0>=Eg)&&!(xs.column+og>=a.columnCount);og++){xn=a.Eb(xs.column+og);var um=xn.oa||0,Zy=Td(xs,xn,Gy);xn.actual=Math.min(xn.maximum,um+Zy),xn.oa!==um&&(Eg-=xn.oa-um)}for(;0<Eg;){var Qv=xn.oa||0;if(isNaN(xn.width)&&xn.maximum>Qv&&(xn.actual=Math.min(xn.maximum,Qv+Eg),xn.oa!==Qv&&(Eg-=xn.oa-Qv)),xn.index===0)break;xn=a.Eb(xn.index-1)}}}}Fi(ie),hn.free(Nd),hn.free(xl),wc!==void 0&&Fi(wc),kh!==void 0&&Fi(kh);var Ag=0,kg=0,qv=a.desiredSize,gx=a.maxSize;ou=Mu(a,!0);var hm=Ed=ud=0,cm=0;z=a.columnCount;for(var _v=0;_v<z;_v++)Wn[_v]!==void 0&&(xn=a.Eb(_v),isFinite(xn.width)?(hm+=xn.width,hm+=xn.Wc()):Tm(xn)===wp?(hm+=xn.oa,hm+=xn.Wc()):xn.oa!==0&&(ud+=xn.oa,ud+=xn.Wc()));isFinite(qv.width)?Ag=Math.min(qv.width,gx.width):Ag=ou!==gn&&isFinite(y)?y:ud,Ag=Math.max(Ag,a.minSize.width),Ag=Math.max(Ag-hm,0);for(var qx=ud===0?1:Math.max(Ag/ud,1),$v=0;$v<z;$v++)Wn[$v]!==void 0&&(xn=a.Eb($v),isFinite(xn.width)||Tm(xn)===wp||(xn.actual=xn.oa*qx),xn.position=E.width,xn.oa!==0&&(E.width+=xn.oa,E.width+=xn.Wc()));z=a.rowCount;for(var t0=0;t0<z;t0++)mi[t0]!==void 0&&(xn=a.Fb(t0),isFinite(xn.height)?(cm+=xn.height,cm+=xn.Wc()):Tm(xn)===wp?(cm+=xn.oa,cm+=xn.Wc()):xn.oa!==0&&(Ed+=xn.oa,Ed+=xn.Wc()));isFinite(qv.height)?kg=Math.min(qv.height,gx.height):kg=ou!==gn&&isFinite(x)?x:Ed,kg=Math.max(kg,a.minSize.height),kg=Math.max(kg-cm,0);for(var _x=Ed===0?1:Math.max(kg/Ed,1),e0=0;e0<z;e0++)mi[e0]!==void 0&&(xn=a.Fb(e0),isFinite(xn.height)||Tm(xn)===wp||(xn.actual=xn.oa*_x),xn.position=E.height,xn.oa!==0&&(E.height+=xn.oa,E.height+=xn.Wc()));z=rt.length;for(var Vy=0;Vy<z;Vy++){var dm=rt[Vy],Ky=0,Uy=0;dm.type===Dn.TableRow?(Ky=E.width,xn=a.Fb(dm.row),Uy=xn.actual):(xn=a.Eb(dm.column),Ky=xn.actual,Uy=E.height),dm.measuredBounds.h(0,0,Ky,Uy),Gs(dm,!1)}Fi(rt),a.inRowsCols=Nt},wm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,at,st=tt.length,ut=0,ft=0;ft<st;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));at=a.rowDefs,rt=a.colDefs;var vt=ft=0,Ct=Math.min(a.topIndex,st-1);if(0<at.length){for(;Ct!==st&&(at[Ct]===void 0||at[Ct].oa===0);)Ct++;Ct=Math.max(Math.min(Ct,st-1),0),ft=-at[Ct].position}var Et=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Et!==ut&&(rt[Et]===void 0||rt[Et].oa===0);)Et++;Et=Math.max(Math.min(Et,ut-1),0),vt=-rt[Et].position}for(var Nt=0,Qt=0;Nt!==st&&at[Nt]===void 0;)Nt++;for(;Qt!==st&&rt[Qt]===void 0;)Qt++;ut=a.part,a.Fb(Nt),a.Eb(Qt);for(var Gt=0;Gt<y.length;Gt++){var ee=y[Gt];if(ee instanceof Dn&&ee.visible&&Zd(ee)){if(ee.type===Dn.TableRow){rt=a.Fb(ee.row);var ie=a.Eb(Qt)}else rt=a.Fb(Nt),ie=a.Eb(ee.column);at=rt.position+ft+E,rt.oa!==0&&(at+=rt.Io(Math.max(Nt,Ct))),rt=ie.position+vt+z,ie.oa!==0&&(rt+=ie.Io(Math.max(Qt,Et))),ie=ee.measuredBounds,ee.Uk(),ee.actualBounds.ka();var he=ee.actualBounds,Ce=en.allocAt(he.x,he.y,he.width,he.height);he.x=ee.type===Dn.TableRow?z:rt,he.y=ee.type===Dn.TableColumn?E:at,he.width=ie.width,he.height=ie.height,ee.actualBounds.freeze(),_c(ee,!1),ma(Ce,he)||ut===null||(ut.oh(),ee.Pn(ut)),en.free(Ce)}}for(Gt=hn.alloc(),ee=0;ee<st;ee++)if(tt[ee]){for(ut=tt[ee].length,ie=a.Fb(ee),at=ie.position+ft+E,ie.oa!==0&&(at+=ie.Io(Math.max(Nt,Ct))),he=0;he<ut;he++)if(tt[ee][he]){Ce=a.Eb(he),rt=Ce.position+vt+z,Ce.oa!==0&&(rt+=Ce.Io(Math.max(Qt,Et)));for(var We=tt[ee][he],ii=We.length,bi=0;bi<ii;bi++){var mi=We[bi],Wn=mi.measuredBounds;Gt.h(0,0);for(var xn=1;xn<mi.rowSpan&&!(ee+xn>=a.rowCount);xn++){var cr=a.Fb(ee+xn);cr.oa!==0&&(Gt.height+=cr.total)}for(xn=1;xn<mi.columnSpan&&!(he+xn>=a.columnCount);xn++)cr=a.Eb(he+xn),cr.oa!==0&&(Gt.width+=cr.total);var ir=Ce.oa+Gt.width,Lo=ie.oa+Gt.height;xn=rt,cr=at;var xa=ir,rl=Lo,ll=rt,iu=at,ol=ir,$d=Lo;rt+ir>x.width&&(ol=Math.max(x.width-rt,0)),at+Lo>x.height&&($d=Math.max(x.height-at,0));var Os=mi.alignment;if(Os.Xb()){Os=a.defaultAlignment,Os.sb()||(Os=no);var Sc=Os.x,ru=Os.y,tf=Os.offsetX;Os=Os.offsetY;var gh=Ce.alignment,Hh=ie.alignment;gh.sb()&&(Sc=gh.x,tf=gh.offsetX),Hh.sb()&&(ru=Hh.y,Os=Hh.offsetY)}else Sc=Os.x,ru=Os.y,tf=Os.offsetX,Os=Os.offsetY;(isNaN(Sc)||isNaN(ru))&&(ru=Sc=.5,Os=tf=0),gh=Wn.width,Hh=Wn.height;var qu=mi.margin,zu=qu.left+qu.right,Nf=qu.top+qu.bottom,xc=gc(mi,ie,Ce,!1);!isNaN(mi.desiredSize.width)||xc!==dn&&xc!==Ri||(gh=Math.max(ir-zu,0)),!isNaN(mi.desiredSize.height)||xc!==dn&&xc!==Ji||(Hh=Math.max(Lo-Nf,0)),ir=mi.maxSize,Lo=mi.minSize,gh=Math.min(ir.width,gh),Hh=Math.min(ir.height,Hh),gh=Math.max(Lo.width,gh),Hh=Math.max(Lo.height,Hh),ir=Hh+Nf,xn+=xa*Sc-(gh+zu)*Sc+tf+qu.left,cr+=rl*ru-ir*ru+Os+qu.top,mi.visible&&(ps(ll,iu,ol,$d,xn,cr,Wn.width,Wn.height)?mi.arrange(xn,cr,gh,Hh):mi.arrange(xn,cr,gh,Hh,new en(ll,iu,ol,$d)))}}}for(hn.free(Gt),a=0;a<b;a++)x=y[a],z=x instanceof Dn?x:null,z!==null&&Zd(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}ae(Cm,_s),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}ae(bm,_s),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Lm(){this.xa="Base"}ae(Lm,_s),Lm.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&Oe("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var rt=b.measuredBounds,at=b.margin,st=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,ft=rt.width;rt=rt.height;var vt=Math.max(y-st,0),Ct=Math.max(x-at,0),Et=1;a.viewboxStretch===fi?ft!==0&&rt!==0&&(Et=Math.min(vt/ft,Ct/rt)):ft!==0&&rt!==0&&(Et=Math.max(vt/ft,Ct/rt)),Et===0&&(Et=1e-4),b.Ca*=Et,ut!==b.scale&&(Gs(b,!0),b.measure(1/0,1/0,z,tt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+st,0),E.height=isFinite(x)?x:Math.max(rt.height+at,0)},Lm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=no),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function Sp(){this.xa="Base"}ae(Sp,_s),Sp.prototype.measure=function(){},Sp.prototype.arrange=function(){},Sp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,at=z.height,st=Math.ceil(rt/E),ut=Math.ceil(at/b),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,at),y.clip(),y.Se();for(var Ct=[],Et=a.O.s,Nt=Et.length,Qt=0;Qt<Nt;Qt++){var Gt=Et[Qt],ee=[];if(Ct.push(ee),Gt.visible){var ie=Gt.interval;if(!(0>ie)){Gt=p0(Gt.figure);for(var he=0;he<Nt;he++)if(he!==Qt){var Ce=Et[he];Ce.visible&&p0(Ce.figure)===Gt&&(Ce=Ce.interval,Ce>ie&&ee.push(Ce))}}}}for(Et=a.O.s,Nt=Et.length,Qt=0;Qt<Nt;Qt++){var We=Et[Qt];if(We.visible&&(ee=We.interval||1,Gt=Math.abs(ee),!(2>E*Gt*x))){if(ie=We.segmentIndex,(!isFinite(ie)||isNaN(ie))&&(ie=0),0>ie&&(ie=Gt-Math.min(-ie,Gt)),ie=Math.round(ie%Gt),Gt=We.opacity,he=1,Gt!==1){if(Gt===0)continue;he=y.globalAlpha,y.globalAlpha=he*Gt}Ce=Ct[Qt];var ii=!1,bi=We.strokeDashArray;if(bi!==null&&(ii=!0,y.js(bi,We.strokeDashOffset)),We.figure==="LineV"&&We.stroke!==null&&0<We.strokeWidth){for(y.lineWidth=We.strokeWidth,ys(a,y,We.stroke,!1,!1,z,tt),y.beginPath(),bi=We=Math.floor((vt-E)/E);bi<=We+st;bi++){var mi=bi*E+vt;0<=mi&&mi<=rt&&Mm(bi,ee,ie,Ce)&&(y.moveTo(mi,0),y.lineTo(mi,at))}y.stroke(),y.Se()}else if(We.figure==="LineH"&&We.stroke!==null&&0<We.strokeWidth){for(y.lineWidth=We.strokeWidth,ys(a,y,We.stroke,!1,!1,z,tt),y.beginPath(),bi=We=Math.floor((ft-b)/b);bi<=We+ut;bi++)mi=bi*b+ft,0<=mi&&mi<=at&&Mm(bi,ee,ie,Ce)&&(y.moveTo(0,mi),y.lineTo(rt,mi));y.stroke(),y.Se()}else if(We.figure==="BarV"&&We.fill!==null)for(ys(a,y,We.fill,!0,!1,z,tt),We=We.width,isNaN(We)&&(We=E),mi=bi=Math.floor((vt-E)/E);mi<=bi+st;mi++){var Wn=mi*E+vt;0<=Wn+We&&Wn<=rt&&Mm(mi,ee,ie,Ce)&&y.fillRect(Wn,0,We,at)}else if(We.figure==="BarH"&&We.fill!==null)for(ys(a,y,We.fill,!0,!1,z,tt),We=We.height,isNaN(We)&&(We=b),mi=bi=Math.floor((ft-b)/b);mi<=bi+ut;mi++)Wn=mi*b+ft,0<=Wn+We&&Wn<=at&&Mm(mi,ee,ie,Ce)&&y.fillRect(0,Wn,rt,We);ii&&y.fs(),Gt!==1&&(y.globalAlpha=he)}}y.restore(),y.Vc(!1)};function Mm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Em(){this.xa="Base"}ae(Em,_s),Em.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof mo||a instanceof Gn){var tt=null,rt=null;if(a instanceof Gn&&(tt=a),a instanceof mo&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof Gn){var at=tt;if(z===0)Us(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof mo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=at.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var vt=y.height,Ct=a.j;if(Ct.length=0,st!==null){iS(a,rt,vt,st);var Et=st.measuredBounds;x.ed(Et),Ct.push(Et)}Et=br.alloc();for(var Nt=Zt.alloc(),Qt=Zt.alloc(),Gt=0;Gt<z;Gt++){var ee=b[Gt];if(ee!==st)if(ee.isPanelMain&&ee instanceof Sr){iS(a,rt,vt,ee);var ie=ee.measuredBounds;x.ed(ie),Ct.push(ie)}else if(2>ft)ee.measure(1/0,1/0,0,0),ie=ee.measuredBounds,x.ed(ie),Ct.push(ie);else{var he=ee.segmentIndex,Ce=ee.segmentFraction,We=ee.alignmentFocus;We.Mc()&&(We=no);var ii=ee.segmentOrientation,bi=ee.segmentOffset;if(isNaN(he)){var mi=at.ua;ie=Si(),mi.Qu(Ce,ie);var Wn=Zt.allocAt(ie[0],ie[1]);if(Wn.add(at.i(0)),mi.type===Vn.j?Wn.offset(-mi.startX,-mi.startY):(mi=mi.figures.first(),mi!==null&&Wn.offset(-mi.startX,-mi.startY)),mi=ie[2],ii!==fu){var xn=at.computeAngle(ee,ii,mi);ee.Kb=xn}xn=Wn.x-y.x;var cr=Wn.y-y.y;Zt.free(Wn),Fi(ie)}else if(he<-ft||he>=ft)ie=Zt.alloc(),at.vg(),at.computeMidPoint(ie),mi=at.midAngle,ii!==fu&&(xn=at.computeAngle(ee,ii,mi),ee.Kb=xn),xn=ie.x-y.x,cr=ie.y-y.y,Zt.free(ie);else{if(xn=0,0<=he?(cr=ut.M(he),ie=he<ft-1?ut.M(he+1):cr):(xn=ft+he,cr=ut.M(xn),ie=0<xn?ut.M(xn-1):cr),cr.Xa(ie)){0<=he?(mi=0<he?ut.M(he-1):cr,xn=he<ft-2?ut.M(he+2):ie):(mi=xn<ft-1?ut.M(xn+1):cr,xn=1<xn?ut.M(xn-2):ie),Wn=mi.Bf(cr);var ir=ie.Bf(xn);mi=Wn>ir+10?0<=he?mi.ab(cr):cr.ab(mi):ir>Wn+10?0<=he?ie.ab(xn):xn.ab(ie):0<=he?mi.ab(xn):xn.ab(mi)}else mi=0<=he?cr.ab(ie):ie.ab(cr);ii!==fu&&(xn=at.computeAngle(ee,ii,mi),ee.Kb=xn),xn=cr.x+(ie.x-cr.x)*Ce-y.x,cr=cr.y+(ie.y-cr.y)*Ce-y.y}ee.measure(1/0,1/0,0,0),ie=ee.measuredBounds,Wn=ee.naturalBounds;var Lo=0;ee instanceof Sr&&(Lo=ee.strokeWidth),ir=Wn.width+Lo;var xa=Wn.height+Lo;Et.reset(),Et.translate(-ie.x,-ie.y),Et.scale(ee.scale,ee.scale),Et.rotate(ii===fu?ee.angle:mi,ir/2,xa/2),ii!==Tp&&ii!==Bp||Et.rotate(90,ir/2,xa/2),ii!==Dp&&ii!==Op||Et.rotate(-90,ir/2,xa/2),ii===iv&&(45<mi&&135>mi||225<mi&&315>mi)&&Et.rotate(-mi,ir/2,xa/2),Wn=new en(0,0,ir,xa),Nt.xi(Wn,We),Et.Ga(Nt),We=-Nt.x+Lo/2*ee.scale,ee=-Nt.y+Lo/2*ee.scale,Qt.assign(bi),Lo=isNaN(bi.x);var rl=isNaN(bi.y);if(Lo||rl){ir=ir/2+3,xa=xa/2+3;var ll=45<=mi&&135>=mi,iu=225<=mi&&315>=mi;ii===fu&&(ll||iu)?(Qt.x=rl?ir:bi.y,Qt.y=Lo?xa:bi.x,ll?0<=he||isNaN(he)&&.5>Ce||!Lo||(Qt.y=-xa):iu&&((0<=he||isNaN(he)&&.5>Ce)&&Lo&&(Qt.y=-xa),rl&&(Qt.x=-ir))):(Lo&&(Qt.x=0<=he||isNaN(he)&&.5>Ce?ir:-ir),rl&&(Qt.y=-xa),Qt.rotate(mi))}else Qt.rotate(mi);xn+=Qt.x,cr+=Qt.y,Wn.set(ie),Wn.h(xn+We,cr+ee,ie.width,ie.height),Ct.push(Wn),x.ed(Wn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Us(E,x.width||0,x.height||0),br.free(Et),Zt.free(Nt),Zt.free(Qt)}}}},Em.prototype.arrange=function(a,y){var x=y.length;if(a instanceof mo||a instanceof Gn){var b=a,E=null;a instanceof mo&&(E=a,b=E.adornedPart);var z=a instanceof mo?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var at=tt[rt];rt++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var st=y[at];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=b.points,x=y.count,2<=x&&a instanceof Gn)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,at=tt.segmentFraction;var vt=tt.alignmentFocus;if(st=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var Ct=ft.ua,Et=Si();Ct.Qu(at,Et);var Nt=Zt.allocAt(Et[0],Et[1]);Nt.add(ft.i(0)),Ct.type===Vn.j||(Ct=Ct.figures.first()),Nt.offset(-Ct.startX,-Ct.startY),Ct=Et[2],st!==fu&&(ft=ft.computeAngle(tt,st,Ct),tt.angle=ft),ft=Nt.x;var Qt=Nt.y;Zt.free(Nt),Fi(Et)}else if(rt<-x||rt>=x)Et=Zt.alloc(),Ct=ft,Qt=Et,Ct.vg(),Ct.computeMidPoint(Qt),Ct=ft.midAngle,st!==fu&&(ft=ft.computeAngle(tt,st,Ct),tt.angle=ft),ft=Et.x,Qt=Et.y,Zt.free(Et);else{if(Nt=0,0<=rt?(Et=y.s[rt],Qt=rt<x-1?y.s[rt+1]:Et):(Nt=x+rt,Et=y.s[Nt],Qt=0<Nt?y.s[Nt-1]:Et),Et.Xa(Qt)){0<=rt?(Ct=0<rt?y.s[rt-1]:Et,Nt=rt<x-2?y.s[rt+2]:Qt):(Ct=Nt<x-1?y.s[Nt+1]:Et,Nt=1<Nt?y.s[Nt-2]:Qt);var Gt=Ct.Bf(Et),ee=Qt.Bf(Nt);Ct=Gt>ee+10?0<=rt?Ct.ab(Et):Et.ab(Ct):ee>Gt+10?0<=rt?Qt.ab(Nt):Nt.ab(Qt):0<=rt?Ct.ab(Nt):Nt.ab(Ct)}else Ct=0<=rt?Et.ab(Qt):Qt.ab(Et);st!==fu&&(ft=ft.computeAngle(tt,st,Ct),tt.angle=ft),ft=Et.x+(Qt.x-Et.x)*at,Qt=Et.y+(Qt.y-Et.y)*at}if(vt.ys())tt.location=new Zt(ft,Qt);else{vt.Mc()&&(vt=no),Et=br.alloc(),Et.reset(),Et.scale(tt.scale,tt.scale),Et.rotate(tt.angle,0,0);var ie=tt.naturalBounds;Nt=en.allocAt(0,0,ie.width,ie.height),Gt=Zt.alloc(),Gt.xi(Nt,vt),Et.Ga(Gt),vt=-Gt.x,ee=-Gt.y;var he=ie.width,Ce=ie.height;ie=Zt.alloc(),ie.assign(ut);var We=isNaN(ut.x),ii=isNaN(ut.y);if(We||ii){he=he/2+3,Ce=Ce/2+3;var bi=45<=Ct&&135>=Ct,mi=225<=Ct&&315>=Ct;st===fu&&(bi||mi)?(ie.x=ii?he:ut.y,ie.y=We?Ce:ut.x,bi?0<=rt||isNaN(rt)&&.5>at||!We||(ie.y=-Ce):mi&&((0<=rt||isNaN(rt)&&.5>at)&&We&&(ie.y=-Ce),ii&&(ie.x=-he))):(We&&(ie.x=0<=rt||isNaN(rt)&&.5>at?he:-he),ii&&(ie.y=-Ce),ie.rotate(Ct))}else ie.rotate(Ct);ft+=ie.x,Qt+=ie.y,Et.pp(Nt),vt+=Nt.x,ee+=Nt.y,rt=Zt.allocAt(ft+vt,Qt+ee),tt.move(rt),Zt.free(rt),Zt.free(ie),Zt.free(Gt),en.free(Nt),br.free(Et)}}E!==null?E.Ul(!1):b.Ul(!1),b=TS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Zt.free(b)}};function iS(a,y,x,b){if(hh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof mo&&a.type===Dn.Link&&a.adornedObject instanceof Sr&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Gn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof mo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Gs(b,!1)}}function xp(){this.xa="Base"}ae(xp,_s),xp.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var at=rt.margin,st=at.right+at.left,ut=at.top+at.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,vt=new en(-at.left,-at.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),E.assign(vt);for(var Ct=rt.geometry,Et=rt.strokeWidth,Nt=Ct.flattenedSegments,Qt=Ct.flattenedLengths,Gt=Ct.flattenedTotalLength,ee=Nt.length,ie=0,he=0,Ce=Si(),We=0;We<ee;We++){var ii=Nt[We],bi=[];he=ie=0;for(var mi=ii.length,Wn=0;Wn<mi;Wn+=2){var xn=ii[Wn],cr=ii[Wn+1];if(Wn!==0){var ir=180*Math.atan2(cr-he,xn-ie)/Math.PI;0>ir&&(ir+=360),bi.push(ir)}ie=xn,he=cr}Ce.push(bi)}if(a.graduatedIntervals===null){for(var Lo=[],xa=a.O.s,rl=xa.length,ll=0;ll<rl;ll++){var iu=xa[ll],ol=[];if(Lo.push(ol),iu.visible){var $d=iu.interval;if(!(0>$d)){for(var Os=0;Os<rl;Os++)if(Os!==ll){var Sc=xa[Os];if(Sc.visible&&iu.constructor===Sc.constructor){var ru=Sc.interval;ru>$d&&ol.push(ru)}}}}}a.graduatedIntervals=Lo}var tf=a.graduatedIntervals,gh=a.O.s,Hh=gh.length,qu=0,zu=0,Nf=Gt;a.graduatedMarks=[];for(var xc,ap=0;ap<Hh;ap++){var _u=gh[ap];if(xc=[],_u.visible&&_u!==rt){var ou=Math.abs(_u.interval),om=a.graduatedTickUnit;if(!(2>om*ou*Gt/a.graduatedRange&&_u.graduatedSkip===null)){var wg=Qt[0][0],jc=0,ju=0;zu=Gt*_u.graduatedStart-1e-4,Nf=Gt*_u.graduatedEnd+1e-4;var $f=om*ou,$u=a.graduatedTickBase;if($u<a.graduatedMin){var Ff=(a.graduatedMin-$u)/$f;Ff=Ff%1===0?Ff:Math.floor(Ff+1),$u+=Ff*$f}else $u>a.graduatedMin+$f&&($u-=Math.floor(($u-a.graduatedMin)/$f)*$f);for(var Kv=tf[ap],am=$u,Hy=1e-6*a.graduatedMax,ud=1;$u<=a.graduatedMax+Hy;ud++){t:{for(var Ed=Kv.length,Cg=0;Cg<Ed;Cg++){var Tf=($u-a.graduatedTickBase)%(Kv[Cg]*a.graduatedTickUnit),sp=1e-6*a.graduatedTickUnit;if(Tf<sp&&Tf>-sp){var Df=!1;break t}}Df=!0}if(Df&&($u>a.graduatedMax&&($u=a.graduatedMax),_u.graduatedSkip===null||_u instanceof Ca&&!_u.graduatedSkip($u,_u)||_u instanceof Sr&&!_u.graduatedSkip($u,_u))&&(qu=($u-a.graduatedMin)*Gt/a.graduatedRange,qu>Gt&&(qu=Gt),zu<=qu&&qu<=Nf)){for(var hd=Ce[jc][ju],ef=Qt[jc][ju];jc<Qt.length;){for(;qu>wg&&ju<Qt[jc].length-1;)ju++,hd=Ce[jc][ju],ef=Qt[jc][ju],wg+=ef;if(qu<=wg)break;jc++,ju=0,hd=Ce[jc][ju],ef=Qt[jc][ju],wg+=ef}var Hu=Nt[jc],Hc=Hu[2*ju],Uv=Hu[2*ju+1],Ad=(qu-(wg-ef))/ef,lp=new Zt(Hc+(Hu[2*ju+2]-Hc)*Ad+Et/2-Ct.bounds.x,Uv+(Hu[2*ju+3]-Uv)*Ad+Et/2-Ct.bounds.y);lp.scale(rt.scale,rt.scale);t:{var Pc=hd,tg=Ce[jc];if(!(.5005>Ad&&.4995<Ad)){var Wc=Pc;if(.5>Ad?0<ju?Wc=tg[ju-1]:Ee.$(Hu[0],Hu[Hu.length-2])&&Ee.$(Hu[1],Hu[Hu.length-1])&&(Wc=tg[tg.length-1]):.5<Ad&&(ju+1<tg.length?Wc=tg[ju+1]:Ee.$(Hu[0],Hu[Hu.length-2])&&Ee.$(Hu[1],Hu[Hu.length-1])&&(Wc=tg[0])),Pc!==Wc){var bg=Math.abs(Pc-Wc);if(180<bg&&(Pc<Wc?Pc+=360:Wc+=360,bg=Math.abs(Pc-Wc)),5e-4>Ad||.9995<Ad){hd=(Pc+Wc)/2%360;break t}if(10>bg){var up=1-Math.abs(.5-Ad);hd=(Pc*up+Wc*(1-up))%360;break t}}}hd=Pc}if(_u instanceof Ca){var rc="";_u.graduatedFunction!==null?(rc=_u.graduatedFunction($u,_u),rc=rc!=null?rc.toString():""):rc=(+$u.toFixed(2)).toString(),rc!==""&&xc.push({$l:lp,angle:hd,text:rc})}else xc.push({$l:lp,angle:hd})}$u=am+ud*$f}}}a.graduatedMarks.push(xc)}Fi(Ce);var xl=a.graduatedMarks;if(xl!==null)for(var sm=b.length,yu=0;yu<sm;yu++){var Rs=b[yu],Su=xl[yu];if(Rs.visible&&Rs!==rt&&Su.length!==0){if(Rs instanceof Sr){var kd=a,nf=E,eg=Rs.alignmentFocus;eg.Mc()&&(eg=Xl);var Wy=Rs.angle;Rs.Kb=0,Rs.measure(1/0,1/0,0,0),Rs.Kb=Wy;var Xv=Rs.measuredBounds,hp=Xv.width,ng=Xv.height,Lg=en.allocAt(0,0,hp,ng),Wu=Zt.alloc();Wu.xi(Lg,eg),en.free(Lg);for(var Nd=-Wu.x,wc=-Wu.y,kh=new en,Bf=Su.length,cp=0;cp<Bf;cp++)for(var Of=Su[cp],Yv=Of.$l.x,dp=Of.$l.y,xs=Of.angle,oc=0;4>oc;oc++){switch(oc){case 0:Wu.h(Nd,wc);break;case 1:Wu.h(Nd+hp,wc);break;case 2:Wu.h(Nd,wc+ng);break;case 3:Wu.h(Nd+hp,wc+ng)}Wu.rotate(xs+Rs.angle),Wu.offset(Yv,dp),cp===0&&oc===0?kh.h(Wu.x,Wu.y,0,0):kh.Ye(Wu),Wu.offset(-Yv,-dp),Wu.rotate(-xs-Rs.angle)}Zt.free(Wu),kd.graduatedBounds!==null&&kd.graduatedBounds.push(kh),Aa(nf,kh.x,kh.y,kh.width,kh.height)}else if(Rs instanceof Ca){var Wh=a,Jv=E;Wh.temporaryTextBlock===null&&(Wh.temporaryTextBlock=new Ca);var th=Wh.temporaryTextBlock;yS(th,Rs);var rf=Rs.alignmentFocus;rf.Mc()&&(rf=Xl);for(var Gh=Rs.segmentOrientation,fp=Rs.segmentOffset,Rf=new en,lm=0,gp=0,Gc=0,ig=0,If=0,pp=Su.length,of=0;of<pp;of++){var cd=Su[of];lm=cd.$l.x,gp=cd.$l.y,Gc=cd.angle,If=ig=Rs.angle,Gh!==fu&&(If=Gh===Fp||Gh===nv?Gc+Rs.angle:Gc,ig=Gn.computeAngle(Gh,If)),th.Kb=ig,th.text=cd.text||"",th.measure(1/0,1/0,0,0);var af=th.measuredBounds,Fd=th.naturalBounds,sf=Fd.width,rg=Fd.height,Cc=br.alloc();Cc.reset(),Cc.translate(-af.x,-af.y),Cc.scale(th.scale,th.scale),Cc.rotate(If,sf/2,rg/2),Gh!==Tp&&Gh!==Bp||Cc.rotate(90,sf/2,rg/2),Gh!==Dp&&Gh!==Op||Cc.rotate(-90,sf/2,rg/2),Gh===iv&&(45<Gc&&135>Gc||225<Gc&&315>Gc)&&Cc.rotate(-Gc,sf/2,rg/2);var Mg=en.allocAt(0,0,sf,rg),lf=Zt.alloc();lf.xi(Mg,rf),Cc.Ga(lf);var Eg=-lf.x,Gy=-lf.y,Td=Zt.alloc();Td.assign(fp),isNaN(Td.x)&&(Td.x=sf/2+3),isNaN(Td.y)&&(Td.y=-(rg/2+3)),Td.rotate(Gc),lm+=Td.x+Eg,gp+=Td.y+Gy;var og=new en(lm,gp,af.width,af.height),um=new en(af.x,af.y,af.width,af.height),Zy=new en(Fd.x,Fd.y,Fd.width,Fd.height);cd.Sz=ig,cd.lineCount=th.lineCount,cd.lines=[th.Cb,th.Ih,th.df,th.Le,th.Qc,th.Qb,th.ze],cd.actualBounds=og,cd.measuredBounds=um,cd.naturalBounds=Zy,of===0?Rf.assign(og):Rf.ed(og),Zt.free(Td),Zt.free(lf),en.free(Mg),br.free(Cc)}Wh.graduatedBounds!==null&&Wh.graduatedBounds.push(Rf),Aa(Jv,Rf.x,Rf.y,Rf.width,Rf.height)}Gs(Rs,!1)}}},xp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var at=y.length,st=0;st<at;st++){var ut=y[st];rt=E[st],ut.visible&&ut!==b&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},xp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,tt=E.height;E=y instanceof Yu,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,at=a.O.s,st=a.graduatedMarks,ut=at.length,ft=0;ft<ut;ft++){var vt=at[ft],Ct=st[ft],Et=Ct.length;if(vt.visible&&vt!==z&&Ct.length!==0){if(vt instanceof Sr){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Nt=vt.measuredBounds,Qt=vt.strokeWidth*vt.scale,Gt=vt.alignmentFocus;Gt.Mc()&&(Gt=Xl);for(var ee=0;ee<Et;ee++){var ie=Ct[ee].$l,he=Ct[ee].angle,Ce=Gt,We=vt.Ab;We.reset(),We.translate(ie.x+rt.x,ie.y+rt.y),We.rotate(he+vt.angle,0,0),We.translate(-Nt.width*Ce.x+Ce.offsetX+Qt/2,-Nt.height*Ce.y+Ce.offsetY+Qt/2),We.scale(vt.scale,vt.scale),Oh(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,wh(vt,!1),vt.gc(y,x),E&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof Ca)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ca),Nt=a.temporaryTextBlock,yS(Nt,vt),Qt=0;Qt<Et;Qt++)Gt=Ct[Qt],Gt.actualBounds&&Gt.measuredBounds&&Gt.naturalBounds&&(Nt.ec=Gt.text||"",Nt.Kb=Gt.Sz||0,Nt.Gc=Gt.lineCount||0,ee=Gt.lines,ee!==void 0&&(Nt.Cb=ee[0],Nt.Ih=ee[1],Nt.df=ee[2],Nt.Le=ee[3],Nt.Qc=ee[4],Nt.Qb=ee[5],Nt.ze=ee[6]),Gt.naturalBounds&&(Nt.dc=Gt.naturalBounds),Gt.actualBounds&&(ee=Gt.actualBounds,Nt.arrange(ee.x,ee.y,ee.width,ee.height)),ee=Gt.actualBounds,Nt.arrange(ee.x,ee.y,ee.width,ee.height),ie=Gt.measuredBounds,Gt=Gt.naturalBounds,he=Nt.Ab,he.reset(),he.translate(ee.x+rt.x,ee.y+rt.y),he.translate(-ie.x,-ie.y),Nt.no(he,Gt.x,Gt.y,Gt.width,Gt.height),Oh(Nt,!1),Nt.wh.set(Nt.Ab),Nt.Kk=Nt.scale,wh(Nt,!1),Nt.Ng=vt.part,Nt.Me=vt.panel,Nt.gc(y,x),Nt.Me=null,Nt.Ng=null,E&&(a.svg.appendChild(Nt.svg),Nt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Dn(a,y){if(ge.call(this),this.na=null,a===void 0)this.na=Dn.Position;else if(typeof a=="string"){var x=_h.I(a);x!==null&&(this.na=x)}else a instanceof _s?this.na=a:a&&(this.na=Dn.Position,y=a);this.na===null&&Oe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Dn.Grid?1048576:0),this.O=new Ln,this.yb=Cl,this.Tm=al,this.Uf=fr,this.$g=null,this.$e="",this.jg=new en(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=fi,this.jn=ia,this.kn=Ao,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}ae(Dn,ge),Dn.prototype.cloneProtected=function(a){ge.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},Dn.prototype.Af=function(a){ge.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},Dn.prototype.copy=function(){var a=ge.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof ui&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Ha,"elements",a,null,E,null,tt)}}return a}return null},bt=Dn.prototype,bt.toString=function(){return"Panel("+this.type.name+")#"+Te(this)},bt.Pn=function(a){ge.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},bt.hh=function(a,y){if(this.na===Dn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Dn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Dn.Table)if(a.yc(),a instanceof Yu){var x=a.yd;a.yd=gm(a,"gojs-ts"),g0(this,a),a.nh.pop(),a.yd=x}else g0(this,a);(x=this.isClipping&&this.na===Dn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function g0(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Am(a,y,!0,x,!0),b!==null&&Am(a,y,!1,b,!0),x!==null&&rS(a,y,!0,x),b!==null&&rS(a,y,!1,b),x!==null&&Am(a,y,!0,x,!1),b!==null&&Am(a,y,!1,b,!1)}function rS(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,at=0;at<E;at++){var st=b[at];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){ys(a,y,ft,!1,!1,tt,z),ft=!1;var vt=st.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=st.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),st=st.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(st+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,st),y.lineTo(vt,st)):(st+=ut.left,vt=tt.height-ut.bottom,y.moveTo(st,ut.top),y.lineTo(st,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,at=oS(a,!0),st=oS(a,!1),ut=0;ut<z;ut++){var ft=b[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==E&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var Ct=ft.Wc(),Et=ft.separatorStrokeWidth;isNaN(Et)&&(Et=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Nt=ft.separatorStroke;Nt===null&&(Nt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Nt===null||ft.index===(x?at:st))&&(Et=0),Ct-=Et,Et=ft.position+Et,Ct+=ft.actual,Et+Ct>vt&&(Ct=vt-Et),0>=Ct||(vt=a.yb,ys(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Et+vt.top,tt.width-(vt.left+vt.right),Ct):y.fillRect(Et+vt.left,vt.top,Ct,tt.height-(vt.top+vt.bottom)))}}}}function oS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function p0(a){return a==="LineV"||a==="BarV"}bt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},bt.kk=function(a,y,x){if(!ge.prototype.kk.call(this,a,y,x))return!1;if(this.type===Dn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,g0(this,a),a.yd=null;else if(this.na===Dn.Grid||this.na===Dn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},bt.nk=function(){return!0},bt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;E=tt===0?rt.x:Math.min(rt.x,E),z=tt===0?rt.y:Math.min(rt.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else ge.prototype.$o.call(this,a,y,x,b)},bt.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),at=tt.m22*rt,st=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,vt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),Ct=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,Ee.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ut+vt,rt=a*st+y*ft+Ct,a=x*at+b*ut+vt,at=x*st+b*ft+Ct,E.h(0,0),x=this.naturalBounds,z=Ee.Ff(0,0,x.width,x.height,z,rt,a,at,E),E.transform(tt),z;z||(at=1,ut=st=0,ft=1,Ct=vt=0),rt=a*at+y*ut+vt,a=a*st+y*ft+Ct,at=x*at+b*ut+vt,x=x*st+b*ft+Ct,E.h(at,x),b=(at-rt)*(at-rt)+(x-a)*(x-a),st=!1,ft=this.O.s,Ct=ft.length,ut=Zt.alloc(),vt=null,y=1/0;var Et=null,Nt=this.isClipping&&this.na===Dn.Spot;Nt&&(Et=Zt.alloc(),vt=this.Pb(),(st=vt.Sj(rt,a,at,x,Et))&&(y=(rt-Et.x)*(rt-Et.x)+(a-Et.y)*(a-Et.y)));for(var Qt=0;Qt<Ct;Qt++){var Gt=ft[Qt];Gt.visible&&Gt!==vt&&Gt.Sj(rt,a,at,x,ut)&&(st=!0,Gt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Gt<b&&(b=Gt,E.set(ut)))}return Nt&&(y>b&&E.set(Et),Zt.free(Et)),Zt.free(ut),z&&E.transform(tt),st},bt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();ge.prototype.Gj.call(this)},bt.v=function(a){if(!hh(this)){ge.prototype.v.call(this,a),a=null,(this.na===Dn.Auto||this.na===Dn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=Mu(E,!1);(E instanceof du||E instanceof Dn||E instanceof Ca||z!==gn)&&E.v(!0)}}}},bt.Uj=function(){if(!hh(this)){Gs(this,!0),_c(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},bt.Uk=function(){if(!(this.l&2048)){Oh(this,!0),wh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},bt.Wu=function(){wh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},bt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,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(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var st=this.O.s;st.length!==0&&this.na.measure(this,a,y,st,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(rt.width,a),at=Math.min(rt.height,at),a=Math.max(tt.width,a),at=Math.max(tt.height,at),a=Math.max(x,a),at=Math.max(b,at),Us(E,a,at),Us(this.naturalBounds,a,at),this.Ge(0,0,a,at)},bt.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 b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function bd(a){return a.part!==null?a.part.locationObject:null}bt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=Mu(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===b&&(a=gn),a){case gn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case dn:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case Ri:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Ji:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},bt.gh=function(a){var y=this.naturalBounds,x=bd(this);if(ps(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Zt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Ho(E.set(a),z.transform),z.ca(E)))return Zt.free(E),!0}return Zt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},bt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},bt.qm=function(a,y){if(y(this,a),a instanceof Dn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Kf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Dn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof Dn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)sS(a,y[E],x)}}bt.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof Dn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=lS(a,y[E],x);if(z!==null)return z}}return null}bt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Pp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Dn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Dn?x=Math.max(x,uS(E)):E instanceof Sr&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}bt.se=function(){return!(this.type===Dn.TableRow||this.type===Dn.TableColumn)};function Zd(a){return a.type===Dn.TableRow||a.type===Dn.TableColumn}bt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),hu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:Ho(Zt.allocAt(a.x,a.y),this.transform),rt=this.diagram,at=10,st=5;if(rt!==null&&(at=rt.Ql("extraTouchArea"),st=at/2),ps(-(st*E),-(st*E),b.width+at*E,b.height+at*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(rt=Zt.alloc(),st=(at=this.isClipping&&this.na===Dn.Spot)?this.Pb():null,at&&(st.se()?Ho(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Zt.free(rt),z||Zt.free(tt),null;for(var ft=bd(this);ut--;){var vt=E[ut];if((vt.visible||vt===ft)&&(vt.se()?Ho(rt.set(a),vt.transform):rt.set(a),!at||vt!==st)){var Ct=null;if(vt instanceof Dn?Ct=vt.ic(rt,y,x):vt.pickable===!0&&vt.ca(rt)&&(Ct=vt),Ct!==null&&(y!==null&&(Ct=y(Ct)),Ct!==null&&(x===null||x(Ct))))return Zt.free(rt),z||Zt.free(tt),Ct}}Zt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Zt.free(tt),null):(a=ps(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||Zt.free(tt),a)}return z||Zt.free(tt),null},bt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),tt=z?a:Ho(Zt.allocAt(a.x,a.y),this.transform);if(E=ps(0,0,E.width,E.height,tt.x,tt.y),Zd(this)||E){if(!this.isAtomic){for(var rt=this.O.s,at=rt.length,st=Zt.alloc(),ut=bd(this);at--;){var ft=rt[at];if(ft.visible||ft===ut){ft.se()?Ho(st.set(a),ft.transform):st.set(a);var vt=ft;ft=ft instanceof Dn?ft:null,(ft!==null?ft.ji(st,y,x,b):vt.ca(st))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||b.add(vt))}}Zt.free(st)}return z||Zt.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||Zt.free(tt),!1},bt.Cf=function(a,y,x,b,E,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=br.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return m0(this,y,x,E),z===void 0&&br.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=bd(this),at=this.O.s,st=at.length;st--;){var ut=at[st];if(ut.visible||ut===rt){var ft=ut.actualBounds,vt=this.naturalBounds;ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Dn?ut:null,vt=br.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,vt):il(ft,a,b,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),br.free(vt))}}return z===void 0&&br.free(tt),b}return z===void 0&&br.free(tt),!1};function m0(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,at=a.naturalBounds;rt.x>at.width||rt.y>at.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Dn&&m0(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}bt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,rt=this.se(),at=rt?a:Ho(Zt.allocAt(a.x,a.y),this.transform),st=rt?y:Ho(Zt.allocAt(y.x,y.y),this.transform),ut=at.Bf(st),ft=0<at.x&&at.x<tt.width&&0<at.y&&at.y<tt.height||_o(at.x,at.y,0,0,0,tt.height)<=ut||_o(at.x,at.y,0,tt.height,tt.width,tt.height)<=ut||_o(at.x,at.y,tt.width,tt.height,tt.width,0)<=ut||_o(at.x,at.y,tt.width,0,0,0)<=ut;if(tt=at.zd(0,0)<=ut&&at.zd(0,tt.height)<=ut&&at.zd(tt.width,0)<=ut&&at.zd(tt.width,tt.height)<=ut,rt||(Zt.free(at),Zt.free(st)),ft){if(!this.isAtomic){at=Zt.alloc(),st=Zt.alloc(),ut=bd(this);for(var vt=this.O.s,Ct=vt.length;Ct--;){var Et=vt[Ct];if(Et.visible||Et===ut){var Nt=Et.actualBounds,Qt=this.naturalBounds;(!rt||!(Nt.x>Qt.width||Nt.y>Qt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height))&&(Et.se()?(Nt=Et.transform,Ho(at.set(a),Nt),Ho(st.set(y),Nt)):(at.set(a),st.set(y)),Nt=Et,Et=Et instanceof Dn?Et:null,(Et!==null?Et.og(at,st,x,b,E,z):Nt.tx(at,st,E))&&(x!==null&&(Nt=x(Nt)),Nt===null||b!==null&&!b(Nt)||z.add(Nt)))}}Zt.free(at),Zt.free(st)}return E?ft:tt}return!1};function v0(a){var y=null;return a instanceof Sr&&(y=a.spot1,y===al&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ns),y}function y0(a){var y=null;return a instanceof Sr&&(y=a.spot2,y===al&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Za),y}bt.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},bt.M=function(a){return this.O.M(a)},bt.Gb=function(a,y){y instanceof Wi&&Oe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Oe("Cannot make a Panel contain itself: "+this.toString()),Oe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Oe("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!==Dn.Grid||y instanceof Sr||Oe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Dn.Graduated||y instanceof Sr||y instanceof Ca||Oe("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new si),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,at=0;at<rt;at++)if(tt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Oe("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),hh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Dn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ui&&(x.Te=!0),x.Te&&x instanceof ui&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(us,"elements",this,y,null,b,null),x.cb(Ha,"elements",this,null,y,null,a)))};function S0(a,y){a.l=y?a.l|16777216:a.l&-16777217}bt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},bt.mb=function(a){0<=a&&this.pc(a,!0)},bt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Gs(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof ui&&(b instanceof Dn?b.qm(b,function(tt,rt){G0(z,rt,y)}):G0(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(us,"elements",this,b,null,a,null))},bt.Fb=function(a){0>a&&Pi(a,">= 0",Dn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Zs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ha,"rowdefs",this,null,x,null,a)}return y[a]},bt.oA=function(a){if(0>a&&Pi(a,">= 0",Dn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(us,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Zs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}bt.Eb=function(a){0>a&&Pi(a,">= 0",Dn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Zs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ha,"coldefs",this,null,x,null,a)}return y[a]},bt.jA=function(a){if(0>a&&Pi(a,">= 0",Dn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(us,"coldefs",this,x,null,a,null),this.v()}}};function cS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Zs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}bt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Fm(y,a),this},bt.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new Zs(y)),this},bt.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new Zs(y)),this},bt.nz=function(a){if(0>a||this.type!==Dn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},bt.fz=function(a){if(0>a||this.type!==Dn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},bt.Fz=function(a,y){if(y===void 0&&(y=new Zt(NaN,NaN)),this.type!==Dn.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)},bt.Gz=function(a){if(this.type!==Dn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function dS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ih(a){var y=a.allBindings;if(y===null)a.data!==null&&Oe("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ln;else if(y._isFrozen)return;var x=new Ln;S0(a,!1),a.qm(a,function(st,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(sg(ut,!1),ft=ft.iterator;ft.next();){var vt=ft.value;vt.mode===Zp&&sg(ut,!0);var Ct=vt.sourceName;Ct!==null&&(Ct==="/"&&S0(st,!0),Ct=M1(vt,st,ut),Ct!==null&&(x.add(Ct),Ct.srcBindings===null&&(Ct.srcBindings=new Ln),Ct.srcBindings.add(vt))),y.add(vt)}if(ut instanceof Dn&&ut.type===Dn.Table){if(0<ut.rowCount){for(st=ut.rowDefs,ft=st.length,vt=0;vt<ft;vt++)if(Ct=st[vt],Ct!==void 0&&Ct.be!==null)for(var Et=Ct.be.iterator;Et.next();){var Nt=Et.value;Nt.xd=Ct,Nt.to=2,Nt.wl=Ct.index,y.add(Nt)}}if(0<ut.columnCount){for(ut=ut.colDefs,st=ut.length,ft=0;ft<st;ft++)if(vt=ut[ft],vt!==void 0&&vt.be!==null)for(Ct=vt.be.iterator;Ct.next();)Et=Ct.value,Et.xd=vt,Et.to=1,Et.wl=vt.index,y.add(Et)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){sg(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new Ln),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,at=rt.indexOf(".");0<at&&z instanceof Dn&&(tt=rt.substring(0,at),rt=rt.substr(at+1),at=z.fb(tt),at!==null?(z=at,E.targetProperty=rt):Li('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Zs?(tt=Te(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof ge?(tt=Te(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):Oe("Unknown type of binding target: "+z)}y.freeze(),a instanceof Wi&&a.Zc()&&a.Va()}bt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Dn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ih(y),y},bt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.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(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Dn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},bt.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,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Dn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Dn)||z.data!==y[tt])return!0;E++,tt++}return!1}function Pp(a){if(a.type===Dn.Spot||a.type===Dn.Auto)return Math.min(a.O.length,1);if(a.type===Dn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Sr&&b.isPanelMain))break}return x}return a.type===Dn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Dn&&Zd(a))?1:0}bt.mv=function(){for(var a=Pp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=Pp(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 b=0;b<x;b++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Dn){if(tt.data!==z){var rt=P0(a,tt.data),at=P0(a,z),st=at!==rt;st||(rt=w0(a,rt),st=w0(a,at)!==rt),st?(a.pc(b,!1),km(a,z,E,!1)):tt.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,x0(a,x,0),hh(a)||a.v(),a.graduatedIntervals=null,a.If()||Nm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ui&&(y.Te=!0),y.Te&&y instanceof ui&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=P0(a,y);if(E=w0(a,E),E!==null){if(Ih(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&S0(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new si),a.ge.add(y,E)),z=x+Pp(a),a.Gb(z,E),b&&(E.ub=y,x0(a,z,x),E.ub=null),E.data=y}}}function x0(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Dn){var E=y,z=x;b.type===Dn.TableRow?b.row=E:b.type===Dn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function P0(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=As(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Oe("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function w0(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(gS||(gS=!0,Li('No item template Panel found for category "'+y+'" on '+a),Li(" Using default item template."),a=new Dn,y=new Ca,y.bind(new Bs("text","",Mr)),a.add(y),pS=a),b=pS)),b}function Nm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Dn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Dn&&!z.isEnabled||Nm(a,z,x)}}}function Ic(a,y){y.name=a,_h.add(a,y)}Ae.Object.defineProperties(Dn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Dn.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&&Pi(a,">= 0",Dn,"padding"),a=new qi(a)):(0>a.left&&Pi(a.left,">= 0",Dn,"padding:value.left"),0>a.right&&Pi(a.right,">= 0",Dn,"padding:value.right"),0>a.top&&Pi(a.top,">= 0",Dn,"padding:value.top"),0>a.bottom&&Pi(a.bottom,">= 0",Dn,"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:Cl},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Lh),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 Zo)&&(a instanceof Zo&&a.freeze(),this.T===null&&(this.T=new Lh),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 Lh),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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Oe("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Lh),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 Zo)&&(a instanceof Zo&&a.freeze(),this.T===null&&(this.T=new Lh),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 Lh),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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Oe("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Lh),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 Lh),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||Oe("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ms(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()||Oe("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ms(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 Ld),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Al(this)&&(a=this.part,a!==null&&ja(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 Ld),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Al(this)&&(a=this.part,a!==null&&ja(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 Ld),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 Ld),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 Ld,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 Ld,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 Ld,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 Ld,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 Lh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Lh),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Lh),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Lh),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)&&Oe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Lh),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)&&Oe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Lh),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 Wi&&!(this instanceof mo);Ih(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Gn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Wi&&(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),b!==null&&b.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 lg),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fS(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new si}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Wi||a.isPanelMain)&&Oe("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(););Ar(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&&(Ar(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 dr&&(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&&Nm(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))}}}),Ae.Object.defineProperties(Dn,{Position:{get:function(){return _h.I("Position")}},Horizontal:{get:function(){return _h.I("Horizontal")}},Vertical:{get:function(){return _h.I("Vertical")}},Spot:{get:function(){return _h.I("Spot")}},Auto:{get:function(){return _h.I("Auto")}},Table:{get:function(){return _h.I("Table")}},Viewbox:{get:function(){return _h.I("Viewbox")}},TableRow:{get:function(){return _h.I("TableRow")}},TableColumn:{get:function(){return _h.I("TableColumn")}},Link:{get:function(){return _h.I("Link")}},Grid:{get:function(){return _h.I("Grid")}},Graduated:{get:function(){return _h.I("Graduated")}}}),Dn.prototype.rebuildItemElements=Dn.prototype.mv,Dn.prototype.findItemPanelForData=Dn.prototype.sx,Dn.prototype.updateTargetBindings=Dn.prototype.La,Dn.prototype.copyTemplate=Dn.prototype.Uy,Dn.prototype.graduatedValueForPoint=Dn.prototype.Gz,Dn.prototype.graduatedPointForValue=Dn.prototype.Fz,Dn.prototype.findColumnForLocalX=Dn.prototype.fz,Dn.prototype.findRowForLocalY=Dn.prototype.nz,Dn.prototype.addColumnDefinition=Dn.prototype.By,Dn.prototype.addRowDefinition=Dn.prototype.Hy,Dn.prototype.addRowColumnDefinition=Dn.prototype.Gy,Dn.prototype.removeColumnDefinition=Dn.prototype.jA,Dn.prototype.getColumnDefinition=Dn.prototype.Eb,Dn.prototype.removeRowDefinition=Dn.prototype.oA,Dn.prototype.getRowDefinition=Dn.prototype.Fb,Dn.prototype.removeAt=Dn.prototype.mb,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.insertAt=Dn.prototype.Gb,Dn.prototype.elt=Dn.prototype.M,Dn.prototype.add=Dn.prototype.add,Dn.prototype.findObject=Dn.prototype.fb,Dn.prototype.findInVisualTree=Dn.prototype.Nl,Dn.prototype.walkVisualTreeFrom=Dn.prototype.qm,Dn.prototype.findMainElement=Dn.prototype.Pb;var gS=!1,pS=null,_h=new si;Dn.className="Panel",Dn.definePanelLayout=Ic,Ic("Position",new vm),Ic("Vertical",new Sm),Ic("Auto",new Pm),Ic("Link",new Em);function Ld(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Ld.prototype.copy=function(){var a=new Ld;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},Ld.className="GradPanelSettings";function Lh(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=Cl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Lh.prototype.copy=function(a){for(var y=new Lh,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[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},Lh.className="TablePanelSettings";function Zs(a){Br(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=al,this.pa=this.oc=this.oa=0,this.be=null,this.oo=C0,this.hg=fr,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))}Zs.prototype.copy=function(){var a=new Zs;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Ni(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Fm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Ni(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}bt=Zs.prototype,bt.qb=function(a){a.classType===Zs&&(this.sizing=a)},bt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Te(this)},bt.wi=function(a){this.Me=a},bt.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)},bt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Dn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?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=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},bt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Na,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===C0){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}bt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Bs(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&dS(y)&&Oe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Ln),this.be.add(E),this},Ae.Object.defineProperties(Zs.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&&Pi(a,">= 0",Zs,"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&&Pi(a,">= 0",Zs,"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))&&Pi(a,">= 0",Zs,"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&&Pi(a,">= 0",Zs,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&hg(a,"RowColumnDefinition.separatorStroke"),a instanceof Zo&&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,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Oe("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===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&&hg(a,"RowColumnDefinition.background"),a instanceof Zo&&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}}}),Zs.prototype.computeEffectiveSpacing=Zs.prototype.Wc,Zs.prototype.computeEffectiveSpacingTop=Zs.prototype.Io;var C0=new Ke(Zs,"Default",0),wp=new Ke(Zs,"None",1),Dm=new Ke(Zs,"ProportionalExtra",2);Zs.className="RowColumnDefinition",Zs.Default=C0,Zs.None=wp,Zs.ProportionalExtra=Dm;function Sr(a,y){ge.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)}ae(Sr,ge),Sr.prototype.cloneProtected=function(a){ge.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Ni(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Uf(a){a.Na===null?a.Na=new M0:a.Na.nc&&(a.Na=a.Na.copy())}bt=Sr.prototype,bt.th=function(){ge.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},bt.qb=function(a){a===gn||a===fi||a===_r||a===fr?this.geometryStretch=a:ge.prototype.qb.call(this,a)},bt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Te(this)};function zg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],at=x[1],st,ut,ft,vt,Ct,Et,Nt=0,Qt=Si(),Gt=2;Gt<E;Gt+=2)st=x[Gt],ut=x[Gt+1],ft=st-rt,rt=ut-at,ft===0&&(ft=.001),vt=rt/ft,Ct=Math.atan2(rt,ft),Et=Math.sqrt(ft*ft+rt*rt),Qt.push([ft,Ct,vt,Et]),Nt+=Et,rt=st,at=ut;rt=x[0],at=x[1],ft=b.measuredBounds.width,b instanceof Sr&&(ft-=b.strokeWidth),1>ft&&(ft=1),E=x=ft,st=tt/2,ut=st!==0,Gt=0,Et=Qt[Gt],ft=Et[0],Ct=Et[1],vt=Et[2],Et=Et[3];for(var ee=0;.1<=Nt;){if(ee===0&&(ut?(E=x,E-=st,Nt-=st,ut=!1):E=x,E===0&&(E=1)),E>Nt){Fi(Qt);return}E>Et?(ee=E-Et,E=Et):ee=0;var ie=Math.sqrt(E*E/(1+vt*vt));if(0>ft&&(ie=-ie),rt+=ie,at+=vt*ie,a.translate(rt,at),a.rotate(Ct),a.translate(-(tt/2),-(z/2)),ee===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Ct),a.translate(-rt,-at),Nt-=E,Et-=E,ee!==0){if(Gt++,Gt===Qt.length){Fi(Qt);return}Et=Qt[Gt],ft=Et[0],Ct=Et[1],vt=Et[2],Et=Et[3],E=ee}}Fi(Qt)}}bt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&ys(this,a,b,!0,!1,tt,z);var rt=this.part,at=this.ig;if(x===null||at!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(at=rt.type===Dn.Link&&rt instanceof mo&&rt.category==="Selection"&&rt.adornedObject instanceof Sr&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(ys(this,a,x,!1,!1,tt,z),a.lineWidth=at,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||b!==null&&b!=="transparent"||(rt=!1),tt=!1,at=this.strokeDashArray,at!==null&&(tt=!0,a.js(at,this.strokeDashOffset)),E.type===Vn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Vn.u){var st=E.startX;at=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(st,ut);var vt=Math.min(at,ft);st=Math.abs(ut-st),at=Math.abs(ft-at),a.beginPath(),a.rect(E,vt,st,at),b!==null&&a.ng(b),x!==null&&(rt&&z&&$c(a),a.jk(),rt&&z&&Pd(a)),a.Se()}else if(E.type===Vn.F)st=E.startX,at=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-st)/2,vt=Math.abs(ft-at)/2,st=Math.min(st,ut)+E,at=Math.min(at,ft)+vt,a.beginPath(),a.moveTo(st,at-vt),a.bezierCurveTo(st+Ee.wg*E,at-vt,st+E,at-Ee.wg*vt,st+E,at),a.bezierCurveTo(st+E,at+Ee.wg*vt,st+Ee.wg*E,at+vt,st,at+vt),a.bezierCurveTo(st-Ee.wg*E,at+vt,st-E,at+Ee.wg*vt,st-E,at),a.bezierCurveTo(st-E,at-Ee.wg*vt,st-Ee.wg*E,at-vt,st,at-vt),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&$c(a),a.jk(),rt&&z&&Pd(a)),a.Se();else if(E.type===Vn.o)for(E=E.figures,at=E.length,vt=0;vt<at;vt++){st=E.s[vt],a.beginPath(),a.moveTo(st.startX,st.startY),ut=st.segments.s,ft=ut.length;for(var Ct=null,Et=0;Et<ft;Et++){var Nt=ut[Et];switch(Nt.type){case Ps:a.moveTo(Nt.endX,Nt.endY);break;case da:a.lineTo(Nt.endX,Nt.endY);break;case tl:a.bezierCurveTo(Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY);break;case lu:a.quadraticCurveTo(Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY);break;case Ss:if(Nt.radiusX===Nt.radiusY){var Qt=Math.PI/180;a.arc(Nt.point1X,Nt.point1Y,Nt.radiusX,Nt.startAngle*Qt,(Nt.startAngle+Nt.sweepAngle)*Qt,0>Nt.sweepAngle,Ct!==null?Ct.endX:st.startX,Ct!==null?Ct.endY:st.startY)}else if(Ct=Jl(Nt,st),Qt=Ct.length,Qt===0)a.lineTo(Nt.centerX,Nt.centerY);else for(var Gt=0;Gt<Qt;Gt++){var ee=Ct[Gt];Gt===0&&a.lineTo(ee[0],ee[1]),a.bezierCurveTo(ee[2],ee[3],ee[4],ee[5],ee[6],ee[7])}break;case Cu:if(Gt=Qt=0,Ct!==null&&Ct.type===Ss){if(Ct=Jl(Ct,st),ee=Ct.length,ee===0){a.lineTo(Nt.endX,Nt.endY);break}Ct=Ct[ee-1]||null,Ct!==null&&(Qt=Ct[6],Gt=Ct[7])}else Qt=Ct!==null?Ct.endX:st.startX,Gt=Ct!==null?Ct.endY:st.startY;if(Ct=Tu(Nt,st,Qt,Gt),Qt=Ct.length,Qt===0){a.lineTo(Nt.endX,Nt.endY);break}for(Gt=0;Gt<Qt;Gt++)ee=Ct[Gt],a.bezierCurveTo(ee[2],ee[3],ee[4],ee[5],ee[6],ee[7]);break;default:Oe("Segment not of valid type: "+Nt.type)}Nt.isClosed&&a.closePath(),Ct=Nt}ut=st.isFilled,z?st.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&(ut&&rt&&$c(a),a.jk(),ut&&rt&&Pd(a))):($c(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&a.jk(),Pd(a)):(ut&&b!==null&&a.ng(b,st.isEvenOdd),x!==null&&a.jk()),a.Se(vt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=Si(),z.type===Vn.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),zg(a,y,b,x);else if(z.type===Vn.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,at=tt,vt=E,st=rt.segments.s,ut=st.length,ft=0;ft<ut;ft++){switch(Et=st[ft],Et.type){case Ps:zg(a,y,b,x),b.length=0,b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY,at=tt,vt=E;break;case da:b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY;break;case tl:Ee.Qe(tt,E,Et.point1X,Et.point1Y,Et.point2X,Et.point2Y,Et.endX,Et.endY,.5,b),tt=Et.endX,E=Et.endY;break;case lu:Ee.ep(tt,E,Et.point1X,Et.point1Y,Et.endX,Et.endY,.5,b),tt=Et.endX,E=Et.endY;break;case Ss:if(Nt=Jl(Et,rt),Ct=Nt.length,Ct===0){b.push(Et.centerX),b.push(Et.centerY),tt=Et.centerX,E=Et.centerY;break}for(Qt=0;Qt<Ct;Qt++)Gt=Nt[Qt],Ee.Qe(tt,E,Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],.5,b),tt=Gt[6],E=Gt[7];break;case Cu:if(Nt=Tu(Et,rt,tt,E),Ct=Nt.length,Ct===0){b.push(Et.endX),b.push(Et.endY),tt=Et.endX,E=Et.endY;break}for(Qt=0;Qt<Ct;Qt++)Gt=Nt[Qt],Ee.Qe(tt,E,Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],.5,b),tt=Gt[6],E=Gt[7];break;default:Oe("Segment not of valid type: "+Et.type)}Et.isClosed&&(b.push(at),b.push(vt),zg(a,y,b,x))}zg(a,y,b,x)}else if(z.type===Vn.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),zg(a,y,b,x);else if(z.type===Vn.F){if(E=new Is,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new ho(Ss),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,E.add(tt),z=Jl(tt,E),rt=z.length,rt===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,at=0;at<rt;at++)vt=z[at],Ee.Qe(tt,E,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,b),tt=vt[6],E=vt[7];zg(a,y,b,x)}Fi(b),a.restore(),a.Vc(!1)}}}},bt.kk=function(a,y,x){return!ge.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)},bt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:ge.prototype.nk.call(this,a)},bt.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)}},bt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof Bi){a.Mc()&&Oe("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},bt.mi=function(a){a===void 0&&(a=new en);var y=this.naturalBounds,x=this.oe;y=en.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Zt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Aa(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Aa(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Aa(a,b.x,b.y,0,0),en.free(y),Zt.free(b),a},bt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Vn.j||y||(E+=2);var z=en.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return en.free(z),!1;if(b=E+1e-4,x.type===Vn.j)return this.stroke===null||(b=(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>b)?!1:(en.free(z),Ee.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Vn.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(-b,-b),z.ca(a))return en.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),en.free(z),a}if(x.type===Vn.F){tt=x.startX,E=x.startY,rt=x.endX;var at=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,at),tt=Math.abs(rt-tt)/2,E=Math.abs(at-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return en.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),en.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===Vn.o)return en.free(z),this.fill===null?Lc(x,a.x,a.y,E):Vh(x,a,E,1<this.strokeWidth,y);Oe("Unknown Geometry type: "+x.type)},bt.Wl=function(a,y,x,b){var E=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,at=L0[rt];if(at===void 0){var st=Ee.Ze[rt];typeof st=="string"&&(st=Ee.Ze[st]),typeof st=="function"?(at=st(null,100,100),L0[rt]=at):Oe("Unsupported Figure: "+rt)}tt=at.bounds}rt=tt.width,at=tt.height,st=tt.width;var ut=tt.height;switch(Mu(this,!0)){case gn:b=x=0;break;case dn:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case Ri:st=Math.max(a-z,0),b=0;break;case Ji:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(st=E.width),isFinite(E.height)&&(ut=E.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),b=Math.max(b-z,vt.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(b,ut):Math.max(at,b),x=b0(this),x){case gn:break;case dn:rt=st,at=ut;break;case fi:x=Math.min(st/rt,ut/at),isFinite(x)||(x=1),rt*=x,at*=x;break;default:Oe(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=rt/tt.width,tt=at/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&Ee.$(this.ua.Sk,a-z)&&Ee.$(this.ua.Rk,y-z)||(this.ua=Sr.makeGeometry(this,rt,at)),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&&at===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),st+z,ut+z),E.w()?(st=E.width,ut=E.height,st=Math.min(ft.width,st),ut=Math.min(ft.height,ut),st=Math.max(vt.width,st),ut=Math.max(vt.height,ut),this.dc.h(0,0,st,ut)):this.dc.assign(tt)};function b0(a){var y=a.geometryStretch;return a.Rd!==null?y===fr?dn:y:y===fr?L0[a.figure].defaultStretch:y}bt.eh=function(a,y,x,b){nu(this,a,y,x,b)},bt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},bt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,at=-z.m12*tt,st=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*st+ft,tt=a*at+y*ut+vt,rt=x*rt+b*st+ft,at=x*at+b*ut+vt,ft=this.ig/2,st=this.ua,st===null&&(this.measure(1/0,1/0),st=this.ua);var Ct=st.bounds;if(ut=!1,st.type===Vn.j)if(1.5>=this.strokeWidth)ut=Ee.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,at,E);else{if(st.startX===st.endX?(b=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=Si(),a=new Zt,Ee.Ve(st.startX+b,st.startY+ut,st.endX+b,st.endY+ut,z,tt,rt,at,a)&&y.push(a),a=new Zt,Ee.Ve(st.startX-b,st.startY-ut,st.endX-b,st.endY-ut,z,tt,rt,at,a)&&y.push(a),a=new Zt,Ee.Ve(st.startX+b,st.startY+ut,st.startX-b,st.startY-ut,z,tt,rt,at,a)&&y.push(a),a=new Zt,Ee.Ve(st.endX+b,st.endY+ut,st.endX-b,st.endY-ut,z,tt,rt,at,a)&&y.push(a),rt=y.length,rt===0)return Fi(y),!1;for(ut=!0,at=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<at&&(at=x,E.x=a.x,E.y=a.y);Fi(y)}else if(st.type===Vn.u)ut=Ee.Ff(Ct.x-ft,Ct.y-ft,Ct.x+Ct.width+ft,Ct.y+Ct.height+ft,z,tt,rt,at,E);else if(st.type===Vn.F){y=en.allocAt(Ct.x,Ct.y,Ct.width,Ct.height).Bc(ft,ft);t:if(y.width===0)ut=Ee.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,at,E);else if(y.height===0)ut=Ee.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,at,E);else{if(a=y.width/2,st=y.height/2,b=y.x+a,ut=y.y+st,x=9999,z!==rt&&(x=(tt-at)/(z-rt)),9999>Math.abs(x)){if(at=tt-ut-x*(z-b),0>a*a*x*x+st*st-at*at){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+st*st-at*at),rt=(-(a*a*x*at)+a*st*ft)/(st*st+a*a*x*x)+b,a=(-(a*a*x*at)-a*st*ft)/(st*st+a*a*x*x)+b,st=x*(rt-b)+at+ut,at=x*(a-b)+at+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-st)*(tt-st))<Math.abs((z-a)*(z-a))+Math.abs((tt-at)*(tt-at))?(E.x=rt,E.y=st):(E.x=a,E.y=at)}else{if(rt=st*st,at=z-b,rt-=rt/(a*a)*at*at,0>rt){E.x=NaN,E.y=NaN,ut=!1;break t}at=Math.sqrt(rt),rt=ut+at,at=ut-at,Math.abs(rt-tt)<Math.abs(at-tt)?(E.x=z,E.y=rt):(E.x=z,E.y=at)}ut=!0}en.free(y)}else if(st.type===Vn.o){vt=Zt.alloc();var Et=rt-z,Nt=at-tt,Qt=Et*Et+Nt*Nt,Gt=z,ee=tt;if(0<Qt&&Ct.contains(Gt,ee)&&(vt.x=Gt,vt.y=ee,this.ca(vt)))for(Et!==0&&.5>Math.abs(Et)?(Nt*=.5/Et,Et=.5):Nt!==0&&.5>Math.abs(Nt)&&(Et*=.5/Nt,Nt=.5),Gt-=Et,ee-=Nt;Ct.contains(Gt,ee);)Gt-=Et,ee-=Nt;for(E.x=rt,E.y=at,Nt=0;Nt<st.figures.count;Nt++){var ie=st.figures.s[Nt],he=ie.isFilled?Gt:z,Ce=ie.isFilled?ee:tt,We=ie.segments;Ct=ie.startX,Et=ie.startY;for(var ii=Ct,bi=Et,mi=0;mi<We.count;mi++){var Wn=We.s[mi],xn=Wn.type,cr=Wn.endX,ir=Wn.endY,Lo=!1;switch(xn){case Ps:ii=cr,bi=ir;break;case da:Lo=Om(Ct,Et,cr,ir,he,Ce,rt,at,vt);break;case tl:Lo=Ee.Eo(Ct,Et,Wn.point1X,Wn.point1Y,Wn.point2X,Wn.point2Y,cr,ir,he,Ce,rt,at,.6,vt);break;case lu:Lo=Ee.Eo(Ct,Et,Ct+2/3*(Wn.point1X-Ct),Et+2/3*(Wn.point1Y-Et),cr+2/3*(Wn.point1X-cr),ir+2/3*(Wn.point1Y-ir),cr,ir,he,Ce,rt,at,.6,vt);break;case Ss:case Cu:xn=Wn.type===Ss?Jl(Wn,ie):Tu(Wn,ie,Ct,Et);var xa=xn.length;if(xa===0){Lo=Om(Ct,Et,Wn.type===Ss?Wn.centerX:Wn.endX,Wn.type===Ss?Wn.centerY:Wn.endY,he,Ce,rt,at,vt);break}for(ir=null,cr=0;cr<xa;cr++){if(ir=xn[cr],cr===0&&Om(Ct,Et,ir[0],ir[1],he,Ce,rt,at,vt)){var rl=Bm(he,Ce,vt,Qt,E);rl<Qt&&(Qt=rl,ut=!0)}Ee.Eo(ir[0],ir[1],ir[2],ir[3],ir[4],ir[5],ir[6],ir[7],he,Ce,rt,at,.6,vt)&&(rl=Bm(he,Ce,vt,Qt,E),rl<Qt&&(Qt=rl,ut=!0))}cr=ir[6],ir=ir[7];break;default:Oe("Unknown Segment type: "+xn)}Ct=cr,Et=ir,Lo&&(Lo=Bm(he,Ce,vt,Qt,E),Lo<Qt&&(Qt=Lo,ut=!0)),Wn.isClosed&&(cr=ii,ir=bi,Om(Ct,Et,cr,ir,he,Ce,rt,at,vt)&&(Wn=Bm(he,Ce,vt,Qt,E),Wn<Qt&&(Qt=Wn,ut=!0)))}}z=x-a,tt=b-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),E.x-=z*ft,E.y-=tt*ft,Zt.free(vt)}else Oe("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(E),!0):!1};function Bm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,z,tt,rt,at){if(Ee.$(a,x)&&Ee.$(y,b)||Ee.$(E,tt)&&Ee.$(z,rt))return!1;var st=!1,ut=(E-tt)*(y-b)-(z-rt)*(a-x);return ut===0?!1:(at.x=((E*rt-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,at.y=((E*rt-z*tt)*(y-b)-(z-rt)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||Ee.$(at.y,a))&&(at.y<y||Ee.$(at.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||Ee.$(at.x,y))&&(at.x<a||Ee.$(at.x,a))&&(st=!0)),st)}bt.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 b=this.strokeWidth/2,E=!1,z=Zt.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Zt.free(z),E},bt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=br.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=Zt.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return Zt.free(tt),!0;var rt=Zt.alloc(),at=Zt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,Xf(this,tt,rt,at)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),Xf(this,tt,rt,at)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),Xf(this,tt,rt,at)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),Xf(this,tt,rt,at)&&(y=!0)))),Zt.free(tt),br.free(x),Zt.free(rt),Zt.free(at),y};function Xf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}bt.tx=function(a,y,x){function b(Qt,Gt){for(var ee=Qt.length,ie=0;ie<ee;ie+=2)if(Gt.zd(Qt[ie],Qt[ie+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),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,at=tt.y,st=tt.x+tt.width;if(tt=tt.y+tt.height,er(a.x,a.y,rt,at)<=E&&er(a.x,a.y,st,at)<=E&&er(a.x,a.y,rt,tt)<=E&&er(a.x,a.y,st,tt)<=E)return!0}if(rt=y.startX,at=y.startY,st=y.endX,tt=y.endY,y.type===Vn.j){if(x=(rt-st)*(a.x-st)+(at-tt)*(a.y-tt),_o(a.x,a.y,rt,at,st,tt)<=(0<=(st-rt)*(a.x-rt)+(tt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Vn.u)return y=!1,x&&(y=_o(a.x,a.y,rt,at,rt,tt)<=E||_o(a.x,a.y,rt,at,st,at)<=E||_o(a.x,a.y,st,at,st,tt)<=E||_o(a.x,a.y,rt,tt,st,tt)<=E),y;if(y.type===Vn.F){y=a.x-(rt+st)/2,z=a.y-(at+tt)/2;var ut=Math.abs(st-rt)/2,ft=Math.abs(tt-at)/2;if(ut===0||ft===0)return _o(a.x,a.y,rt,at,st,tt)<=E;if(x){if(a=Ee.$y(ut,ft,y,z),a*a<=E)return!0}else return!(er(y,z,-ut,0)>=E||er(y,z,0,-ft)>=E||er(y,z,0,ft)>=E||er(y,z,ut,0)>=E)}else if(y.type===Vn.o){if(st=y.bounds,z=st.x,rt=st.y,at=st.x+st.width,st=st.y+st.height,a.x>at&&a.x<z&&a.y>st&&a.y<rt&&_o(a.x,a.y,z,rt,z,st)>E&&_o(a.x,a.y,z,rt,at,rt)>E&&_o(a.x,a.y,at,st,z,st)>E&&_o(a.x,a.y,at,st,at,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Lc(y,a.x,a.y,z):Vh(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)>E)return!1;for(rt=z.segments.s,at=rt.length,st=0;st<at;st++)switch(ft=rt[st],ft.type){case Ps:case da:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E)return!1;break;case tl:var vt=Si();if(Ee.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),Fi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case lu:if(vt=Si(),Ee.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=b(vt,a),Fi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case Ss:case Cu:vt=ft.type===Ss?Jl(ft,z):Tu(ft,z,tt,ut);var Ct=vt.length;if(Ct===0){if(tt=ft.type===Ss?ft.centerX:ft.endX,ut=ft.type===Ss?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var Et=Si(),Nt=0;Nt<Ct;Nt++)if(ft=vt[Nt],Et.length=0,Ee.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Et),b(Et,a))return Fi(Et),!1;Fi(Et),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:Oe("Unknown Segment type: "+ft.type)}}return!0}}}return!1},bt.qc=function(){this.ua=null},bt.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Fp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=ul):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Bi(1-ul.x,ul.y)))}Sr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=ed[a.toArrow];else a.fromArrow!=="None"?b=ed[a.fromArrow]:(b=Ee.Ze[a.figure],typeof b=="string"&&(b=Ee.Ze[b]),b===void 0&&Oe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ee.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function vS(a){var y=ed[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ed[x],y===void 0){var b=null,E;for(E in Ee.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Vn.parse(Ee.um[b],!1),ed[b]=a,x!==b&&(ed[x]=b),b}}return typeof y=="string"?y:y instanceof Vn?a:null}Ae.Object.defineProperties(Sr.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 b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),Al(this)&&(a=this.part,a!==null&&ja(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Vn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Zt.allocAt(-y.x,-y.y),Zt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&hg(a,"Shape.fill"),a instanceof Zo&&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&&hg(a,"Shape.stroke"),a instanceof Zo&&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 Pi(a,"value >= 0",Sr,"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"?Pi(a,'"butt", "round", or "square"',Sr,"strokeCap"):(Uf(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"?Pi(a,'"miter", "bevel", or "round"',Sr,"strokeJoin"):(Uf(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){Uf(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,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||Oe("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===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&&(Uf(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=Ee.Ze[a];typeof x=="function"?x=a:(x=Ee.Ze[a.toLowerCase()])||Oe("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?Oe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new mf),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?Oe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new mf),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:al},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Uf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:al},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Uf(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&&(Uf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:fr},set:function(a){var y=this.geometryStretch;y!==a&&(Uf(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 nd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&ms(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 nd),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 nd),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 nd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Sr.prototype.intersectsRect=Sr.prototype.Yc,Sr.prototype.containedInRect=Sr.prototype.fh,Sr.prototype.getNearestIntersectionPoint=Sr.prototype.rs,Sr.prototype.getDocumentBounds=Sr.prototype.mi,Sr.prototype.getDocumentPoint=Sr.prototype.ga;var ed=new or,L0=new or;Sr.className="Shape",Sr.getFigureGenerators=function(){var a=new si,y;for(y in Ee.Ze)y!==y.toLowerCase()&&a.add(y,Ee.Ze[y]);return a.freeze(),a},Sr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ee.Ze;b[a]=y,b[x]=a},Sr.getArrowheadGeometries=function(){var a=new si;for(b in Ee.um)if(ed[b]===void 0){var y=Vn.parse(Ee.um[b],!1);ed[b]=y,y=b.toLowerCase(),y!==b&&(ed[y]=b)}for(var x in ed)if(x!==x.toLowerCase()){var b=ed[x];b instanceof Vn&&a.add(x,b)}return a.freeze(),a},Sr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Vn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Oe("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=ed;b[a]=x,b[y]=a};function M0(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=fr,this.gg=this.fg=al}M0.prototype.copy=function(){var a=new M0;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 Ca(a,y){return ge.call(this),Hm||(Eu=Oa?new Rh(null).context:null,Hm=!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}ae(Ca,ge),Ca.prototype.cloneProtected=function(a){ge.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 zc(a){a.da===null?a.da=new D0:a.da.nc&&(a.da=a.da.copy())}bt=Ca.prototype,bt.th=function(){ge.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function yS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}bt.qb=function(a){a.classType===Ca?this.wrap=a:ge.prototype.qb.call(this,a)},bt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},bt.v=function(){ge.prototype.v.call(this)},bt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,tt=bp(this),rt=a.textAlign=this.textAlign,at=y.tn;rt==="start"?rt=at?"right":"left":rt==="end"&&(rt=at?"left":"right"),at=this.isUnderline;var st=this.isStrikethrough;ys(this,a,this.xc,!0,!1,x,b),(at||st)&&ys(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Yu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case lo:a.translate(E,0),a.scale(-1,1);break;case kr:a.translate(0,z),a.scale(1,-1);break;case ea:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(b=this.verticalAlignment,b=b.y*z-b.y*vt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,rt,at,st);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var Ct=this.Qc[vt];Ct>E&&(Ct=E),b+=y,this.Oj(this.Qb[vt],a,0,b,E,tt,Ct,x,rt,at,st),b+=tt+ft}switch(this.flip){case lo:a.scale(-1,1),a.translate(-E,0);break;case kr:a.scale(1,-1),a.translate(0,-z);break;case ea:a.scale(-1,-1),a.translate(-E,-z)}}},bt.Oj=function(a,y,x,b,E,z,tt,rt,at,st,ut){var ft=0;if(rt)at==="left"?ft=0:at==="right"?ft=E-tt:at==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(at==="left"?ft=0:at==="right"?ft=E:at==="center"&&(ft=E/2),E=Rm!==null?Rm(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),at==="right"?ft-=tt:at==="center"&&(ft-=tt/2),st){rt=Im!==null?Im(this,z):.8*z,at=x+ft,st=b+rt,E=x+ft+tt,rt=b+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(at,st),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof Yu&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Yu&&y.ad.classList.add("gojs-td"))}},bt.kk=function(a,y,x){if(!ge.prototype.kk.call(this,a,y,x))return!1;if(ys(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},bt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ge.prototype.nk.call(this,a)},bt.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)}},bt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Eu!==null&&LS!==z&&(LS=Eu.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,at=!1;!at;){var st=z.indexOf(`
|
|
`,rt);st===-1&&(st=z.length,at=!0),rt=z.substr(rt,st-rt),this.formatting===Lp&&(rt=rt.trim()),tt=Math.max(tt,$h(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=$h(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=xS(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,at=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===zm&&(y=this.Ae,y=this.overflow===zm?SS(y):0,st=this.spacingAbove+this.spacingBelow,st=Math.max(0,bp(this)+st),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/st+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,st=this.Qb[at],y=Math.max(1,a-y);$h(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=Mp,y=$h(st),this.Qb[at]=st,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+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===PS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),Us(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},bt.eh=function(a,y,x,b){nu(this,a,y,x,b)};function Cp(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 E0(a,y,x,b){var E=a.formatting===Lp;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,bp(a)+rt);var at=a.overflow===zm?SS(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===A0){a.Le=1;var st=$h(y);if(at===0||st<=x)a.Cb=Math.max(a.Cb,st),Cp(a,y,a.Cb),b!==null&&b.h(st,rt);else{for(z=jg(a,tt),tt=tt.substr(z.length),y=jg(a,tt),st=$h(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=jg(a,tt),st=z+y,E&&(st=st.trim()),st=$h(st);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);$h(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Mp;var ut=$h(z);a.Cb=ut,Cp(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(at=0,tt.length===0&&(at=1,Cp(a,tt,0));0<tt.length;){for(y=jg(a,tt),tt=tt.substr(y.length);$h(y)>x;){var ft=1;for(st=$h(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=$h(y.substr(0,ft));if(ft===1){var vt=st;z=Math.max(z,st)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),Cp(a,y.substr(0,ft),vt),at++,y=y.substr(ft),a.Gc+at>a.maxLines)break}for(ut=jg(a,tt),st=$h(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=jg(a,tt),st=y+ut,E&&(st=st.trim()),st=$h(st);if(E&&(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=$h(y),z=Math.max(z,ut)),Cp(a,y,ft),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function jg(a,y){if(a.wrap===wS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===CS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function $h(a){return Eu===null?8*a.length:Eu.measureText(a).width}function bp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Eu===null){var x=16;return a.df=x}return F0[y]!==void 0&&5e3>bS?x=F0[y]:(x=1.3*Eu.measureText("M").width,F0[y]=x,bS++),a.df=x}function SS(a){if(Eu===null)return 6;if(jm[a]!==void 0&&5e3>T0)var y=jm[a];else y=Eu.measureText(Mp).width,jm[a]=y,T0++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,bp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=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!==A0){a.Le=0;var at=hn.alloc();E0(a,z,y,at),E+=at.height,hn.free(at),a.Gc+=a.Le}else E0(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}Ae.Object.defineProperties(Ca.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"||(zc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:gn},set:function(a){var y=this.flip;y!==a&&(zc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:fd},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),zc(this),this.da.Yr=a,uu(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=hn.alloc();E0(this,this.ec,999999,a);var y=a.width;hn.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Us(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:k0},set:function(a){var y=this.wrap;y!==a&&(zc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:N0},set:function(a){var y=this.overflow;y!==a&&(zc(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&&hg(a,"TextBlock.stroke"),a instanceof Zo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return bp(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&&(zc(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&&(zc(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 nd),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 nd),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 nd),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 nd),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 nd),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&&(zc(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&&(zc(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&&(zc(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&&(zc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Lp},set:function(a){var y=this.formatting;y!==a&&(zc(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&&Pi(a,"> 0",Ca,"maxLines"),zc(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 Rm=null,Im=null,A0=new Ke(Ca,"None",0),PS=new Ke(Ca,"WrapFit",1),k0=new Ke(Ca,"WrapDesiredSize",2),wS=new Ke(Ca,"WrapBreakAll",3),N0=new Ke(Ca,"OverflowClip",0),zm=new Ke(Ca,"OverflowEllipsis",1),Lp=new Ke(Ca,"FormatTrim",0),CS=new Ke(Ca,"FormatNone",0),Sx=/[ \u200b\u00ad]/,F0=new or,bS=0,jm=new or,T0=0,Mp="...",LS="",Eu=null,Hm=!1;Ca.className="TextBlock";function D0(){this.nc=!1,this.Hd=null,this.Xf=gn,this.gq=Lp,this.Jq=1/0,this.$q=N0,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=fd,this.$r=k0}D0.prototype.copy=function(){var a=new D0;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},Ca.getEllipsis=function(){return Mp},Ca.setEllipsis=function(a){Mp=a,jm=new or,T0=0},Ca.getBaseline=function(){return Rm},Ca.setBaseline=function(a){Rm=a},Ca.getUnderline=function(){return Im},Ca.setUnderline=function(a){Im=a},Ca.isValidFont=function(a){if(Hm||(Eu=Oa?new Rh(null).context:null,Hm=!0),Eu===null)return!0;var y=Eu.font;if(a===y||a==="10px sans-serif")return!0;Eu.font="10px sans-serif",Eu.font=a;var x=Eu.font;if(x!=="10px sans-serif")return Eu.font=y,!0;Eu.font="19px serif";var b=Eu.font;return Eu.font=a,x=Eu.font,Eu.font=y,x!==b},Ca.FormatNone=CS,Ca.FormatTrim=Lp,Ca.None=A0,Ca.OverflowClip=N0,Ca.OverflowEllipsis=zm,Ca.WrapBreakAll=wS,Ca.WrapDesiredSize=k0,Ca.WrapFit=PS;function nd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}nd.prototype.copy=function(){var a=new nd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},nd.className="GradElementSettings";function Au(a,y){ge.call(this),this.Eg=null,this.qo="",this.Xg=ka,this.Nk=dn,this.Zg=this.Hd=null,this.Mk=no,this.Xf=gn,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 Hg;ae(Au,ge),Au.prototype.cloneProtected=function(a){ge.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},Au.prototype.qb=function(a){a===gn||a===fi||a===_r?this.imageStretch=a:ge.prototype.qb.call(this,a)},Au.prototype.toString=function(){return"Picture("+this.source+")#"+Te(this)};function Wg(a){a===void 0&&(a=""),a!==""?Hg[a]&&(delete Hg[a],Wm--):(Hg=new or,Wm=0)}function MS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,at=0;at<rt;at++)z=tt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Gs(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=Si();for(var rt=0;rt<E;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<E;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);Fi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Au.prototype.hA=function(){if(this.source!==""){Wg(this.source);var a=this.source;this.source="",this.source=a}},Au.prototype.redraw=function(){this.N(),this.Uc=!0},Au.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Vf)){var E=a instanceof Yu;b=this.naturalBounds;var z=0,tt=0,rt=this.qn,at=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),at=at||b.width,rt=rt||b.height,at!==0&&rt!==0){var st=at,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,at=this.Xg.width,rt=this.Xg.height);var ft=at,vt=rt,Ct=this.Nk,Et=this.Mk;switch(Ct){case gn:if(this.sourceRect.w())break;ft>=b.width&&(z=z+Et.offsetX+(ft*Et.x-b.width*Et.x)),vt>=b.height&&(tt=tt+Et.offsetY+(vt*Et.y-b.height*Et.y)),at=Math.min(b.width,ft),rt=Math.min(b.height,vt);break;case dn:ft=b.width,vt=b.height;break;case fi:case _r:Ct===fi?(Ct=Math.min(b.height/vt,b.width/ft),ft*=Ct,vt*=Ct):Ct===_r&&(Ct=Math.max(b.height/vt,b.width/ft),ft*=Ct,vt*=Ct,ft>=b.width&&(z=(z+Et.offsetX+(ft*Et.x-b.width*Et.x)/ft)*at),vt>=b.height&&(tt=(tt+Et.offsetY+(vt*Et.y-b.height*Et.y)/vt)*rt),at*=1/(ft/b.width),rt*=1/(vt/b.height),ft=b.width,vt=b.height)}Ct=this.Df()*y.scale;var Nt=ft*Ct*vt*Ct,Qt=at*rt/Nt,Gt=x.__goCache;Ct=null;var ee=xx;if(!E){if(x.sq&&Gt!==void 0&&4<Nt&&Qt>ee*ee)for(Gt.gi===null&&(AS(Gt,4,st,ut,x),AS(Gt,16,st,ut,x)),E=Gt.gi,st=E.length,ut=0;ut<st&&E[ut].ratio*E[ut].ratio<Qt;ut++)Ct=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Rh(null).context;try{E.drawImage(this.Eg,0,0)}catch(ie){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ie){this.vl=!0}}if(this.vl)return}}switch(E=ft<b.width?Et.offsetX+(b.width*Et.x-ft*Et.x):0,Et=vt<b.height?Et.offsetY+(b.height*Et.y-vt*Et.y):0,this.flip){case lo:a.translate(Math.min(b.width,ft),0),a.scale(-1,1);break;case kr:a.translate(0,Math.min(b.height,vt)),a.scale(1,-1);break;case ea:a.translate(Math.min(b.width,ft),Math.min(b.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Gt!==void 0&&Ct!==null&&Ct.ratio!==1){a.save(),y=Ct.ratio;try{a.drawImage(Ct.source,z/y,tt/y,Math.min(Ct.source.width,at/y),Math.min(Ct.source.height,rt/y),E,Et,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof Yu&&(this.bt=[z/y,tt/y,Math.min(Ct.source.width,at/y),Math.min(Ct.source.height,rt/y),E,Et,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(ie){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,at,rt,E,Et,Math.min(b.width,ft),Math.min(b.height,vt)),a instanceof Yu&&(this.bt=[z,tt,at,rt,E,Et,Math.min(b.width,ft),Math.min(b.height,vt)])}catch(ie){this.en=!1}switch(this.flip){case lo:a.scale(-1,1),a.translate(-Math.min(b.width,ft),0);break;case kr:a.scale(1,-1),a.translate(0,-Math.min(b.height,vt));break;case ea:a.scale(-1,-1),a.translate(-Math.min(b.width,ft),-Math.min(b.height,vt))}}}}},Au.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Mu(this,!0),tt=this.Eg,rt=this.qn,at=0,st=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=rt?+tt.width:tt.naturalWidth,st=rt?+tt.height:tt.naturalHeight),isFinite(E.width)||z===dn||z===Ri?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=at)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===dn||z===Ji?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=st)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:st),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Us(this.dc,a,y),this.Ge(0,0,a,y)},Au.prototype.eh=function(a,y,x,b){nu(this,a,y,x,b)},Ae.Object.defineProperties(Au.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||Oe("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&lh(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Pn),b!==null&&x&&ml(b,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()||(Gs(this,!1),this.v())):x&&MS(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=Hg;if(Oa){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(Wg(),x=Hg),b=mn("img"),b.hn=!0,MS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new ES),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}}}),Au.prototype.redraw=Au.prototype.redraw,Au.prototype.reloadSource=Au.prototype.hA;var Wm=0,xx=4;Au.className="Picture",Hg=new or,Au.clearCache=Wg;function ES(){this.gi=null}function AS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Rh(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new kS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}ES.className="PictureCacheArray";function kS(a,y){this.source=a,this.ratio=y}kS.className="PictureCacheInstance";function Gg(){this.os=new Vn,this.mc=null}Gg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Vn,this.mc=null};function Zg(a,y,x,b,E,z){a.mc=new Is,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Px(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Gg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new ho(Ps);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Gg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new ho(da);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Vd(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var at=new ho(tl);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=tt,rt&&at.close(),a.mc.segments.add(at)}function Gm(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new ho(lu);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}Gg.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new ho(Ss);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,tt&&rt.close(),this.mc.segments.add(rt)};function wx(a,y,x,b,E,z,tt,rt){var at;at===void 0&&(at=!1),y=new ho(Cu,tt,rt,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function NS(a){var y=Zm;return y!==null?(Zm=null,y.reset(a),y):(y=new Gg,y.reset(a),y)}var Zm=null;Gg.className="StreamGeometryContext";function Ul(a,y){var x=a.toLowerCase(),b=Ee.Ze;b[a]=y,b[x]=a}Ul("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ee.Mf[a];return b!==void 0||(b=new Vn(Vn.u),b.endX=y,b.endY=x,Ee.Nf<Ee.vm&&(Ee.Mf[a]=b,Ee.Nf++)),b}),Ul("Square",function(a,y,x){a="s"+y+","+x;var b=Ee.Mf[a];return b!==void 0||(b=new Vn(Vn.u),b.endX=y,b.endY=x,b.defaultStretch=fi,Ee.Nf<Ee.vm&&(Ee.Mf[a]=b,Ee.Nf++)),b}),Ul("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 b="rr"+y+","+x+","+a,E=Ee.Mf[b];if(E!==void 0)return E;var z=a*Ee.wg;return E=new Vn().add(new Is(a,0,!0).add(new ho(da,y-a,0)).add(new ho(tl,y,a,y-z,0,y,z)).add(new ho(da,y,x-a)).add(new ho(tl,y-a,x,y,x-z,y-z,x)).add(new ho(da,a,x)).add(new ho(tl,0,x-a,z,x,0,x-z)).add(new ho(da,0,a)).add(new ho(tl,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Bi(0,0,z,z),E.spot2=new Bi(1,1,-z,-z)),Ee.Nf<Ee.vm&&(Ee.Mf[b]=E,Ee.Nf++),E}),Ul("Border","RoundedRectangle"),Ul("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ee.Mf[a];return b!==void 0||(b=new Vn(Vn.F),b.endX=y,b.endY=x,b.spot1=gd,b.spot2=wu,Ee.Nf<Ee.vm&&(Ee.Mf[a]=b,Ee.Nf++)),b}),Ul("Circle",function(a,y,x){a="c"+y+","+x;var b=Ee.Mf[a];return b!==void 0||(b=new Vn(Vn.F),b.endX=y,b.endY=x,b.spot1=gd,b.spot2=wu,b.defaultStretch=fi,Ee.Nf<Ee.vm&&(Ee.Mf[a]=b,Ee.Nf++)),b}),Ul("TriangleRight",function(a,y,x){return new Vn().add(new Is(0,0).add(new ho(da,y,.5*x)).add(new ho(da,0,x).close())).pm(0,.25,.5,.75)}),Ul("TriangleDown",function(a,y,x){return new Vn().add(new Is(0,0).add(new ho(da,y,0)).add(new ho(da,.5*y,x).close())).pm(.25,0,.75,.5)}),Ul("TriangleLeft",function(a,y,x){return new Vn().add(new Is(y,x).add(new ho(da,0,.5*x)).add(new ho(da,y,0).close())).pm(.5,.25,1,.75)}),Ul("TriangleUp",function(a,y,x){return new Vn().add(new Is(y,x).add(new ho(da,0,x)).add(new ho(da,.5*y,0).close())).pm(.25,.5,.75,1)}),Ul("Triangle","TriangleUp"),Ul("Diamond",function(a,y,x){return new Vn().add(new Is(.5*y,0).add(new ho(da,0,.5*x)).add(new ho(da,.5*y,x)).add(new ho(da,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ul("LineH",function(a,y,x){return a=new Vn(Vn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ul("LineV",function(a,y,x){return a=new Vn(Vn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ul("None","Rectangle"),Ul("BarH","Rectangle"),Ul("BarV","Rectangle"),Ul("MinusLine","LineH"),Ul("PlusLine",function(a,y,x){return new Vn().add(new Is(0,x/2,!1).add(new ho(da,y,x/2)).add(new ho(Ps,y/2,0)).add(new ho(da,y/2,x)))}),Ul("XLine",function(a,y,x){return new Vn().add(new Is(0,x,!1).add(new ho(da,y,0)).add(new ho(Ps,0,0)).add(new ho(da,y,x)))}),Ul("LineRight",function(a,y,x){return new Vn().add(new Is(.25*y,0,!1).add(new ho(da,.75*y,.5*x)).add(new ho(da,.25*y,x)))}),Ul("LineDown",function(a,y,x){return new Vn().add(new Is(0,.25*x,!1).add(new ho(da,.5*y,.75*x)).add(new ho(da,y,.25*x)))}),Ul("LineLeft",function(a,y,x){return new Vn().add(new Is(.75*y,0,!1).add(new ho(da,.25*y,.5*x)).add(new ho(da,.75*y,x)))}),Ul("LineUp",function(a,y,x){return new Vn().add(new Is(0,.75*x,!1).add(new ho(da,.5*y,.25*x)).add(new ho(da,y,.75*x)))}),Ee.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 B0(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ks,this.ir=null,this.jr="",this.lr=al,this.Gq="",this.Hq=Ns,this.Pq=rs,this.Kq=Ls,this.Up=null,this.Cq=127,this.zr=Xa,this.yr="gray",this.Vg=4}B0.prototype.copy=function(){var a=new B0;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 Wi(a,y){a===void 0||a instanceof _s||typeof a=="string"?Dn.call(this,a):(Dn.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Zt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new en,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}ae(Wi,Dn),Wi.prototype.cloneProtected=function(a){Dn.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},bt=Wi.prototype,bt.Af=function(a){Dn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},bt.toString=function(){var a=Gi(this.constructor)+"#"+Te(this);return this.data!==null&&(a+="("+Mr(this.data)+")"),a};function ku(a){a.P===null?a.P=new B0:a.P.nc&&(a.P=a.P.copy())}bt.th=function(){Dn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},bt.gk=function(a,y,x,b,E,z,tt){var rt=this.diagram;rt!==null&&(a===Ha&&y==="elements"?E instanceof Dn?Kf(E,function(at){sy(rt.partManager,at),eu(rt,at)}):ml(rt,E):a===us&&y==="elements"&&(E instanceof Dn?Kf(E,function(at){ly(rt.partManager,at,rt)}):lh(rt,E)),rt.cb(a,y,x,b,E,z,tt))},bt.La=function(a){if(Dn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof Dn&&Kf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Wi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Wi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Wi.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new si),y.Tf!==a&&(y.category=a),b.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)))}}},Wi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Wi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Si();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Fi(y)}},Wi.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 dr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof mo))break t;Ih(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Dn.Link),x.adornedObject=y)}if(x!==null){x.type===Dn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Wi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function O0(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 Vm(a){if(vf(a)===!1){I0(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function FS(a){if(a.G|=2097152,vf(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||BS(a,y,x),x=a.Ib;var b=en.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),en.free(b),I0(a,!1)}}Wi.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new br);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Wi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=no;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Zt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),Zt.free(tt)}},Wi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Wi.prototype.moveTo=function(a,y,x){a=Zt.allocAt(a,y),this.move(a,x),Zt.free(a)},Wi.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())},Wi.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())},Wi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new si),y.I(a)!==null)return y.I(a);var x=Dn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Kd(a,y,x,b){b===void 0&&(b=new Zt),x=x.Mc()?no:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Wi.prototype.mi=function(a){return a===void 0&&(a=new en),a.assign(this.actualBounds)},Wi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function TS(a){var y=Zt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Sr?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/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 Yf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Wi.prototype.arrange=function(){if(hu(this)===!1)FS(this);else{_c(this,!1);var a=this.Ib,y=en.alloc();y.assign(a);var x=yf(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;BS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ee.B(y.width,a.width)&&Ee.B(y.height,a.height)||0<=this.vw&&this.C(16),en.free(y),I0(this,!1)}},bt=Wi.prototype,bt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=en.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),en.free(E)}!(this.G&65536)&&a.D(y)||IS(this,b,x),x.N(),!a.w()&&!y.w()||ma(a,y)||(this instanceof ui&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},bt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&DS(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Zt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),vf(this)===!1&&hu(this)===!1&&(Vm(this),FS(this)),!0};function DS(a,y,x,b,E){y===null||a instanceof mo||(y=y.animationManager,y.zb&&kc(y,a,new Zt(b,E),x))}bt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;vf(this)||hu(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Vm(this)},bt.Av=function(){this.G&=-2097153,Vm(this)};function BS(a,y,x){var b=TS(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?OS(a,y,x,E,b):RS(a,y,x,E,b):z?OS(a,y,x,E,b):tt&&RS(a,y,x,E,b),a.G|=2097152,Zt.free(b),a.Uk()}function OS(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof mo||kc(x,a,new Zt(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new Zt(z,tt),y.copy()))}function RS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function IS(a,y,x){z0(a,!1),a instanceof ui&&Yh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?yf(a)?(su(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}bt.si=function(){return!0},bt.Zc=function(){return!0},bt.ph=function(){return!1},bt.Dd=function(){return!0};function R0(a,y,x,b){y.constructor===a.constructor||HS||(HS=!0,Li('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Li(" Old class: "+Gi(a.constructor)+", new class: "+Gi(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,at=!0,st=!1;a instanceof ui&&(rt=a.isTreeLeaf,at=a.isTreeExpanded,st=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof ui&&(a.U=rt?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=st?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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 vf(a){return(a.G&32768)!==0}function I0(a,y){a.G=y?a.G|32768:a.G&-32769}function z0(a,y){a.G=y?a.G|65536:a.G&-65537}function yf(a){return(a.G&131072)!==0}bt=Wi.prototype,bt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Km(a,y){a.G=y?a.G|1048576:a.G&-1048577}bt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},bt.N=function(){var a=this.diagram;a!==null&&!hu(this)&&!vf(this)&&this.isVisible()&&this.Ib.w()&&a.N(Yf(this,this.Ib))},bt.v=function(){Dn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ui&&this.labeledLink!==null&&uu(this.labeledLink),a.$b(!0))},bt.Vo=function(a){a||(a=this.Ah,a!==null&&V0(a,this))},bt.Wo=function(a){a||(a=this.Ah,a!==null&&K0(a,this))},bt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},bt.oz=function(){return j0(this,this)};function j0(a,y){var x=y.containingGroup;return x!==null?1+j0(a,x):y instanceof ui&&(y=y.labeledLink,y!==null)?j0(a,y):0}bt.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof ui&&(x=y.labeledLink,x!==null)?zS(a,x):y}bt.Td=function(a){return a instanceof dr?H0(this,this,a):!1};function H0(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!H0(a,b,x)?y instanceof ui&&(y=y.labeledLink,y!==null)?H0(a,y,x):!1:!0}bt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof dr&&Km(y,!0),y instanceof ui){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 ui&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof dr&&Km(y,!1),y instanceof ui&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Wi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof ui&&this.isLinkLabel)},Wi.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 ui&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Sf(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof mo)){if(a.add(y),y instanceof ui){if(x&&y instanceof dr)for(var tt=y.memberParts;tt.next();)Sf(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var at=rt.fromNode,st=rt.toNode;at=at===null||a.contains(at),st=st===null||a.contains(st),(E?at&&st:at||st)&&Sf(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Sf(a,y.value,x,b-1,E,z)}else if(y instanceof Gn)for(y=y.labelNodes;y.next();)Sf(a,y.value,x,b,E,z)}}Ae.Object.defineProperties(Wi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?uo: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 b=y.pc(-1,this,!0);if(0<=b&&x.cb(us,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Ha,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(ku(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&&Vi(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 mo?this.type!==Dn.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:rs},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ku(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Ls},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ku(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&&(ku(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:Ns},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ku(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,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,hu(this)===!1&&(Vm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),DS(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,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,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof mo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof mo?this instanceof mo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ih(x),x=x.copy(),x!==null&&R0(this,x,y,a))):(z!==null&&z.jm(b,a),x=c1(x.partManager,b,a),x!==null&&(Ih(x),x=x.copy(),x===null||x instanceof Gn||(b=this.location.copy(),R0(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){R0(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 b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},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&&(ku(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&&(ku(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&&(ku(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&&(ku(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&&(ku(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&&(ku(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:Ks},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ku(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&&(ku(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&&(ku(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:al},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ku(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&&Oe("Cannot make a Group a member of itself: "+this.toString()),Oe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?K0(y,this):this instanceof dr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?V0(a,this):this instanceof dr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof dr){for(x=new Pn,Sf(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof ui)for(b=b.linksConnected;b.next();)Vg(b.value)}if(this instanceof ui){for(x=this.linksConnected;x.next();)Vg(x.value);x=this.labeledLink,x!==null&&Vg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Vi(y,-1,a))}}else Oe("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&&(ku(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ui&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ku(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&&(ku(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Xa},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ku(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&&(ku(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&&(ku(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Wi.prototype.invalidateLayout=Wi.prototype.C,Wi.prototype.findCommonContainingGroup=Wi.prototype.px,Wi.prototype.isMemberOf=Wi.prototype.Td,Wi.prototype.findTopLevelPart=Wi.prototype.sz,Wi.prototype.findSubGraphLevel=Wi.prototype.oz,Wi.prototype.ensureBounds=Wi.prototype.Va,Wi.prototype.getDocumentBounds=Wi.prototype.mi,Wi.prototype.findObject=Wi.prototype.fb,Wi.prototype.moveTo=Wi.prototype.moveTo,Wi.prototype.invalidateAdornments=Wi.prototype.Wb,Wi.prototype.clearAdornments=Wi.prototype.Ej,Wi.prototype.removeAdornment=Wi.prototype.Jf,Wi.prototype.addAdornment=Wi.prototype.bh,Wi.prototype.findAdornment=Wi.prototype.Pj,Wi.prototype.updateTargetBindings=Wi.prototype.La;var HS=!1;Wi.className="Part",Wi.LayoutNone=0,Wi.LayoutAdded=1,Wi.LayoutRemoved=2,Wi.LayoutShown=4,Wi.LayoutHidden=8,Wi.LayoutNodeSized=16,Wi.LayoutGroupLayout=32,Wi.LayoutNodeReplaced=64,Wi.LayoutStandard=127,Wi.LayoutAll=16777215;function mo(a,y){a===void 0||a instanceof _s||typeof a=="string"?Wi.call(this,a):(Wi.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)}ae(mo,Wi),mo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},mo.prototype.updateRelationshipsFromData=function(){},mo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Gn&&y instanceof Sr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Sr&&(E.ua=a)}}},mo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!hu(a))},mo.prototype.Zc=function(){return!1},mo.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Ha&&y==="elements"){if(E instanceof du)this.$a===null&&(this.$a=E);else if(E instanceof Dn){var rt=E.Nl(function(at){return at instanceof du});rt instanceof du&&this.$a===null&&(this.$a=rt)}}else a===us&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Dn&&this.$a.rg(b)&&(this.$a=null));Wi.prototype.gk.call(this,a,y,x,b,E,z,tt)},mo.prototype.updateAdornments=function(){},mo.prototype.Lj=function(){},Ae.Object.defineProperties(mo.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}}}),mo.className="Adornment";function W0(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Zh,this.er=Ym,this.Kr=this.ij=this.Nq=this.Mq=null}W0.prototype.copy=function(){var a=new W0;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 ui(a,y){a===void 0||a instanceof _s||typeof a=="string"?Wi.call(this,a):(Wi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ln,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}ae(ui,Wi),ui.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},bt=ui.prototype,bt.Af=function(a){Wi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ud(a){a.Ba===null?a.Ba=new W0:a.Ba.nc&&(a.Ba=a.Ba.copy())}bt.th=function(){Wi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function WS(a,y){y!==null&&(a.af===null&&(a.af=new Pn),a.af.add(y))}function GS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}bt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=GS(this,a,y,x),a!==null&&a.Sl()},bt.gk=function(a,y,x,b,E,z,tt){a===Ha&&y==="elements"?this.wc=null:a===us&&y==="elements"&&(this.wc=null),Wi.prototype.gk.call(this,a,y,x,b,E,z,tt)},bt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Ju(x.fromPort),Ju(x.toPort),x.bb())}};function ZS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Ju(x.fromPort),Ju(x.toPort),x.bb())}}function Ju(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ju(y.port)}}bt.si=function(){return!0},ui.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ui.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ui.prototype.isVisible=function(){if(!Wi.prototype.isVisible.call(this))return!1;var a=!0,y=fc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===fc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===bs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Hd&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},ui.prototype.Zb=function(a){Wi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},ui.prototype.qx=function(){var a=new Pn,y=new Pn;return VS(this,this,a,y),y.iterator};function VS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&VS(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}ui.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},bt=ui.prototype,bt.Mo=function(a){a===void 0&&(a=null);var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},bt.Sd=function(a){a===void 0&&(a=null);var y=new Ir(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},bt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pn,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xr(x):uo},bt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xr(x):uo},bt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xr(x):uo},bt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ir(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},bt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Ir(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function Um(a,y,x){Ju(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Xm(a,y,x){Ju(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.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,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Ep(y)))}function Ep(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}ui.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},bt=ui.prototype,bt.Vo=function(a){Wi.prototype.Vo.call(this,a),a||(Ep(this),a=this.Yk,a!==null&&$S(a,this))},bt.Wo=function(a){Wi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},bt.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 b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Wi.prototype.Lj.call(this)},bt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;KS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function KS(a){a.wc===null?a.wc=new si:a.wc.clear(),a.qm(a,function(y,x){US(y,x)}),a.wc.count===0&&a.wc.add("",a)}function US(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function G0(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=Si()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Fi(x)}}}bt.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 b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},bt.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 b=x.value;if(b.isTreeLink&&(a=b.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()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},bt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Km(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;)Km(y,!1),y=y.pg();return x},bt.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},bt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ui)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},bt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Pn;return a(this,y),y},bt.uz=function(){return XS(this,this)};function XS(a,y){return y=y.pg(),y===null?0:1+XS(a,y)}bt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ir(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},bt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ln,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ln,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Xr(x):uo},bt.wz=function(a){a===void 0&&(a=1/0);var y=new Pn;return Sf(y,this,!1,a,!0),y},ui.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 Pn;x.add(this),YS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===fc),y.Ue=!1}};function YS(a,y,x,b,E,z,tt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var at=rt.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),YS(at,y,x,b-1,E,z,tt)))}else JS(a,y,x,E,z,tt)}function JS(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};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();at.uv=a,ft.all(function(vt){return function(Ct){return Ct===vt.uv||!Ct.isTreeExpanded}}(at))&&b.Aj(st,E),st.oh(),st.Zb(!1)}st.isTreeExpanded&&(st.wasTreeExpanded=st.isTreeExpanded,ut||JS(st,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}ui.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 Pn;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===fc),y.Ue=!1}};function QS(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),st={};at.next();){var ut=at.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(vt){return function(Ct){return Ct===vt.vv||!Ct.isTreeExpanded}}(st))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,QS(ut,y,x,b-1,E,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}Ae.Object.defineProperties(ui.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Ym},set:function(a){var y=this.portSpreading;y!==a&&(Ud(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&&Yh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Zh},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ud(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Yh(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&&(Ud(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&&(Ud(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&&(Ud(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,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($S(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),uu(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&KS(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 b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}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&&(Ud(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))}}}),ui.prototype.expandTree=ui.prototype.expandTree,ui.prototype.collapseTree=ui.prototype.collapseTree,ui.prototype.findTreeParts=ui.prototype.wz,ui.prototype.findTreeChildrenNodes=ui.prototype.Ou,ui.prototype.findTreeChildrenLinks=ui.prototype.Qo,ui.prototype.findTreeLevel=ui.prototype.uz,ui.prototype.findTreeParentChain=ui.prototype.vz,ui.prototype.findTreeParentNode=ui.prototype.pg,ui.prototype.findTreeParentLink=ui.prototype.kh,ui.prototype.findCommonTreeParent=ui.prototype.gz,ui.prototype.findTreeRoot=ui.prototype.xz,ui.prototype.isInTreeOf=ui.prototype.Nz,ui.prototype.findPort=ui.prototype.ns,ui.prototype.findLinksTo=ui.prototype.kz,ui.prototype.findLinksBetween=ui.prototype.jz,ui.prototype.findNodesInto=ui.prototype.Oo,ui.prototype.findNodesOutOf=ui.prototype.Po,ui.prototype.findNodesConnected=ui.prototype.Mu,ui.prototype.findLinksInto=ui.prototype.Sd,ui.prototype.findLinksOutOf=ui.prototype.Mo,ui.prototype.findExternalTreeLinksConnected=ui.prototype.qx,ui.prototype.invalidateConnectedLinks=ui.prototype.Bd,ui.prototype.invalidateLinkBundle=ui.prototype.Lz;var bx=new Ke(ui,"SpreadingNone",10),Ym=new Ke(ui,"SpreadingEvenly",11),Z0=new Ke(ui,"SpreadingPacked",12);ui.className="Node",ui.SpreadingNone=bx,ui.SpreadingEvenly=Ym,ui.SpreadingPacked=Z0;function dr(a,y){a===void 0||a instanceof _s||typeof a=="string"?ui.call(this,a):(ui.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Pn,this.$a=null,this.Sc=new Qa,this.Sc.group=this,this.gl=new Pn,this.tb=this.$p=null,y&&Object.assign(this,y)}ae(dr,ui),dr.prototype.cloneProtected=function(a){ui.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof du});y instanceof du?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())},bt=dr.prototype,bt.Af=function(a){ui.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 ui)x.Bd(y);else if(x instanceof Gn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},bt.gk=function(a,y,x,b,E,z,tt){if(a===Ha&&y==="elements"){if(E instanceof du)this.$a===null?this.$a=E:this.$a!==E&&Oe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Dn){var rt=E.Nl(function(at){return at instanceof du});rt instanceof du&&(this.$a===null?this.$a=rt:this.$a!==rt&&Oe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===us&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Dn&&this.$a.rg(b)&&(this.$a=null));ui.prototype.gk.call(this,a,y,x,b,E,z,tt)},bt.Xl=function(a,y){ui.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Dn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Dn&&(a=a.Pb()),this.tb===null&&(this.tb=new en),a.mi(this.tb),a instanceof Sr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},bt.eh=function(a,y,x,b){this.nf=this.$a,ui.prototype.eh.call(this,a,y,x,b)},bt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Gn||y.Va()}),ui.prototype.Va.call(this)},bt.si=function(){if(!ui.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ui){if(y.isVisible()&&hu(y))return!1}else if(y instanceof Gn&&y.isVisible()&&hu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function V0(a,y){if(a.Gn.add(y)){y instanceof dr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Gn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function K0(a,y){if(a.Gn.remove(y)){y instanceof dr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Gn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}bt.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)}ui.prototype.Lj.call(this)},dr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Ge(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},dr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Ge(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},dr.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))},bt=dr.prototype,bt.Bd=function(a){var y=(this.U&65536)!==0;if(ui.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 b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Ju(x.fromPort),Ju(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Ju(x.fromPort),Ju(x.toPort),x.bb()))}}},bt.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 Pn,b=y.iterator;b.next();){var E=b.value;if(E instanceof ui)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},bt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Pn,x=a.iterator;x.next();){var b=x.value;if(b instanceof ui)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},bt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Pn;return a(this,y),y},bt.Rj=function(){var a=new Pn;return Sf(a,this,!0,0,!0),a.remove(this),a},bt.Zb=function(a){ui.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},dr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof dr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,qS(z,y,x,b)),z instanceof ui)z.Bd(y),x.Aj(z,b);else if(z instanceof Gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}dr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_S(this,y,a,this),a.Ue=!1}};function _S(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof dr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_S(z,y,x,b)),z instanceof ui)z.Bd(y),x.Cj(z,b);else if(z instanceof Gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}dr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Zt.alloc(),ui.prototype.move.call(this,a,y),a=new Pn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Gn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof ui&&E.isLinkLabel)){var tt=E.position,rt=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Gn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),X0(E)&&E.bb());Zt.free(z)}},Ae.Object.defineProperties(dr.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&&Oe("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&&(Ud(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&&(Ud(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&&(Ud(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 b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.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&&(Ud(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)}}}),dr.prototype.expandSubGraph=dr.prototype.expandSubGraph,dr.prototype.collapseSubGraph=dr.prototype.collapseSubGraph,dr.prototype.findSubGraphParts=dr.prototype.Rj,dr.prototype.findContainingGroupChain=dr.prototype.hz,dr.prototype.findExternalNodesConnected=dr.prototype.iz,dr.prototype.findExternalLinksConnected=dr.prototype.Lu,dr.prototype.ensureBounds=dr.prototype.Va,dr.className="Group";function du(a){ge.call(this),this.yb=Cl,this.ko=new en(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}ae(du,ge),du.prototype.cloneProtected=function(a){ge.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},du.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ps(0,0,y.width,y.height,a.x,a.y)},du.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof dr||a instanceof mo)||Oe("Placeholder is not inside a Group or Adornment."),a instanceof dr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Us(b,(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,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Zt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Zt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Sr&&(tt=z.strokeWidth);var rt=z.Df(),at=z.naturalBounds,st=(at.width+tt)*rt;tt=(at.height+tt)*rt,a.type!==Dn.Link&&(rt=z.ga(a.category==="Selection"?Ns:a.locationSpot,Zt.alloc()),a.location=rt,Zt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(Ns,Zt.alloc()),st=en.allocAt(a.x,a.y,0,0),st.Ye(z.ga(Za,a)),st.Ye(z.ga(Ms,a)),st.Ye(z.ga(Qr,a)),Us(y,st.width+b||0,st.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Zt.free(a),en.free(st)):(Us(y,st+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},du.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},du.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof dr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=en.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof dr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),en.free(x),b&&y instanceof dr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},du.prototype.computeMemberBounds=function(a){if(!(this.part instanceof dr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof Gn&&(!y.computesBoundsIncludingLinks||hh(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Ae.Object.defineProperties(du.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new qi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),du.className="Placeholder";function Gn(a){Wi.call(this,Dn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=fu,this.Om=0,this.Qm=fu,this.Rm=NaN,this.qj=Q0,this.po=.5,this.wd=null,this.Nb=new Ln().freeze(),this.Tg=this.Mg=null,this.ml=new en,this.ua=new Vn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Zt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}ae(Gn,Wi),Gn.prototype.cloneProtected=function(a){Wi.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())},bt=Gn.prototype,bt.Af=function(a){Wi.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&&Ju(y),a=a.toPort,a!==null&&Ju(a)},bt.qb=function(a){a.classType===Gn?(a.value&2)===2?this.routing=a:a===dh||a===Yd||a===Ug?this.curve=a:a===Np||a===tv||a===ev?this.adjusting=a:a!==Q0&&a!==fu&&Oe("Unknown Link enum value for a Link property: "+a):Wi.prototype.qb.call(this,a)},bt.Xc=function(){this.ba===null&&(this.ba=new mp)},bt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),hu(a)||vf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),hu(a)||vf(a)))},bt.zv=function(){return!1},bt.Av=function(){},bt.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 fu:a=0;break;case Fp:a=y;break;case Tp:a=y+90;break;case Dp:a=y-90;break;case q0:a=y+180;break;case nv:a=Ee.bp(y),90<a&&270>a&&(a-=180);break;case Bp:a=Ee.bp(y+90),90<a&&270>a&&(a-=180);break;case Op:a=Ee.bp(y-90),90<a&&270>a&&(a-=180);break;case iv:if(a=Ee.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ee.bp(a)};function Vg(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&K0(x,a),a.Ah=y,y!==null&&V0(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(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=b}bt=Gn.prototype,bt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Wi.prototype.oh.call(this)},bt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},bt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $S(a,y){a.wd===null&&(a.wd=new Pn),a.wd.add(y),a.v()}bt.Vo=function(a){if(Wi.prototype.Vo.call(this,a),Jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Ap(this)}},bt.Wo=function(a){if(Wi.prototype.Wo.call(this,a),Jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Xm(x,this,b)}kp(this)}},bt.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,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Wi.prototype.move.call(this,a,!1):(a=Zt.allocAt(x.x+b,x.y+E),Wi.prototype.move.call(this,a,!1),Zt.free(a)),Xd(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},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(Ea),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===dh))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()===dh){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ee.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ee.ax(b.x,b.y,E.x,E.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,E=z=b=0;b<x/2&&z<y&&(E=tt[z],!(b+E>x/2));)b+=E,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-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,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()===dh))return this.ua.wx(.5);if(this.computeCurve()===dh&&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 b=this.i(x+2);return x=this.i(x+3),Ee.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},bt=Gn.prototype,bt.i=function(a){return this.Nb.s[a]},bt.dd=function(a,y){this.Nb.cd(a,y)},bt.L=function(a,y,x){this.Nb.cd(a,new Zt(y,x))},bt.Kz=function(a,y){this.Nb.Gb(a,y)},bt.m=function(a,y,x){this.Nb.Gb(a,new Zt(y,x))},bt.ne=function(a){this.Nb.add(a)},bt.yf=function(a,y){this.Nb.add(new Zt(a,y))},bt.pv=function(a){this.Nb.mb(a)},bt.Fj=function(){this.Nb.clear()};function Xd(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 b=a.fd,E=new Ln,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Zt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,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),uu(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Th(tt.animationManager,a,E),a.g("points",z,E)}}bt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},bt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=tt=1/0;for(var at=y.s,st=at.length,ut=0;ut<st;ut++){var ft=at[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=E[z],ft=at[z],ut.x-x!==ft.x-tt||ut.y-b!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Th(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},bt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Jm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),$m(a,!1))}bt.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())}},bt.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?(fg||(fg=new ui,fg.desiredSize=ar,fg.Va()),this.defaultFromPoint&&(fg.location=this.defaultFromPoint,fg.Va(),y=a=fg)):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 b=this.toNode,E=null;if(b===null?(gg||(gg=new ui,gg.desiredSize=ar,gg.Va()),this.defaultToPoint&&(gg.location=this.defaultToPoint,gg.Va(),E=b=gg)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=Kg(tt),at=Kg(x),st=y===E&&y!==null,ut=this.isOrthogonal,ft=this.curve===dh;this.Wf=st&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===fu||st;if(!ut&&!st&&rt&&at){if(rt=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,vt,z-1,at))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,vt,z-1,at)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),vt=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=vt.x-z.x,at=vt.y-z.y,st=this.computeCurviness(),ft=ut=0;var Ct=z.x+rt/3,Et=z.y+at/3,Nt=Ct,Qt=Et;Ee.B(at,0)?Qt=0<rt?Qt-st:Qt+st:(ut=-rt/at,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),Nt=(0>at?-1:1)*ft+Ct,Qt=ut*(Nt-Ct)+Et),Ct=z.x+2*rt/3,Et=z.y+2*at/3;var Gt=Ct,ee=Et;Ee.B(at,0)?ee=0<rt?ee-st:ee+st:(Gt=(0>at?-1:1)*ft+Ct,ee=ut*(Gt-Ct)+Et),this.Fj(),this.ne(z),this.yf(Nt,Qt),this.yf(Gt,ee),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,vt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,vt),E=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+vt/2,y=b.y+x/2,z=a,rt=y,Ee.B(x,0)?rt=0<vt?rt-tt:rt+tt:(vt=-vt/x,z=Math.sqrt(tt*tt/(vt*vt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=vt*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=en.alloc(),y.mi(rt),at=rt.ca(E),vt.mi(rt),st=rt.ca(b),(at||st)&&(tt=y.ga(qm(tt),new Zt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=vt.ga(qm(x),new Zt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,b,!1,x))),en.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var ie=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),Ct=Nt=Et=0,(ut||!rt||st)&&(Qt=this.computeEndSegmentLength(a,y,tt,!0),Ct=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ct-=ut?90:30,0>ie&&(Ct-=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),st&&(Qt+=Math.abs(ie)*(ut?1:2)),Ct===0?Et=Qt:Ct===90?Nt=Qt:Ct===180?Et=-Qt:Ct===270?Nt=-Qt:(Et=Qt*Math.cos(Ct*Math.PI/180),Nt=Qt*Math.sin(Ct*Math.PI/180)),tt.Mc()&&st&&(Qt=y.ga(no,Zt.alloc()),Gt=Zt.allocAt(Qt.x+1e3*Et,Qt.y+1e3*Nt),this.getLinkPointFromPoint(a,y,Qt,Gt,!0,ft),Zt.free(Qt),Zt.free(Gt))),Qt=this.getLinkPoint(b,E,x,!1,ut,a,y);var he=ee=Gt=0;if(ut||!at||st){var Ce=this.computeEndSegmentLength(b,E,x,!1);he=this.getLinkDirection(b,E,Qt,x,!1,ut,a,y),st&&(at||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(he+=ut?0:30,0>ie&&(he+=180)),0>he?he+=360:360<=he&&(he-=360),st&&(Ce+=Math.abs(ie)*(ut?1:2)),he===0?Gt=Ce:he===90?ee=Ce:he===180?Gt=-Ce:he===270?ee=-Ce:(Gt=Ce*Math.cos(he*Math.PI/180),ee=Ce*Math.sin(he*Math.PI/180)),x.Mc()&&st&&(x=E.ga(no,Zt.alloc()),tt=Zt.allocAt(x.x+1e3*Gt,x.y+1e3*ee),this.getLinkPointFromPoint(b,E,x,tt,!1,Qt),Zt.free(x),Zt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Zt(ft.x+Et,ft.y+Nt)),tt=Qt,(ut||!at||st)&&(tt=new Zt(Qt.x+Gt,Qt.y+ee)),!vt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Qt):!vt&&!ut&&at&&3<z&&this.adjustPoints(1,x,z-1,Qt)?this.dd(0,ft):!vt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Qt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,Ct,tt,he,a,b),(ut||!at||st)&&this.ne(tt),this.ne(Qt))}return!0};function U0(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,b,E,z){if(z===void 0&&(z=new Zt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,at=-a.m21*E,st=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*at+ut,b=b.x*rt+b.y*st+ft,tt=x.x*tt+x.y*at+ut,x=x.x*rt+x.y*st+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new pg,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}Gn.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new Zt),x.sb()&&!Kg(x))return y.ga(x,rt),rt;if(x.$c()){var at=Qm(this,y);if(at!==null){if(rt.assign(at.Zo),E&&this.routing===e1){var st=Qm(this,tt);if(st!==null&&at.Gl<st.Gl){at=Zt.alloc(),st=Zt.alloc();var ut=new en(y.ga(Ns,at),y.ga(Za,st)),ft=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,ft,!b,E,a,y,st),(x.Hf(Nl)||x.Hf(Ts))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Xs)||x.Hf(fl))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Zt.free(at),Zt.free(st)}}return rt}}return x=y.ga(qm(x),Zt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=U0(x,tt.copy()))):(at=this.computeSpot(!b,tt),z=Zt.alloc(),tt=tt.ga(qm(at),z),E&&(tt=U0(x,tt)),Zt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),Zt.free(x),rt},Gn.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var at=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(at=Qm(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(no,Zt.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?U0(at,rt.copy()):x):(x=Zt.alloc(),rt=rt.ga(no,x),Zt.free(x)),x=Math.abs(rt.x-at.x)>Math.abs(rt.y-at.y)?rt.x>=at.x?0:180:rt.y>=at.y?90:270,Zt.free(at),at=x}return b.Mc()&&tt.Td(a)&&(at+=180,360<=at&&(at-=360)),Kg(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Gn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?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=no:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===al?ds:y)):(a=y||this.toPort,a===null?a=no:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===al?ds:y)),a};function Kg(a){return a===ds||a.x===.5&&a.y===.5}function qm(a){return a.x===.5&&a.y===.5?a:no}Gn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==fu&&4<this.pointsCount?this.computeMidPoint(new Zt):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(no))},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,b,E,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=br.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return m0(this,y,x,E),z===void 0&&br.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var at=this.O.s,st=at.length;st--;){var ut=at[st];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,vt=this.naturalBounds;if(!(ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=br.alloc(),ft.set(tt),ut instanceof Dn)rt=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof Sr)if(rt=a,vt=b,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var Ct=rt,Et=ft;if(ut.fh(Ct,Et))rt=!0;else{if(Et===void 0&&(Et=ut.transform,Ct.Re(ut.actualBounds))){rt=!0;break t}rt=Ct.left,vt=Ct.right;var Nt=Ct.top;Ct=Ct.bottom;var Qt=Zt.alloc(),Gt=Zt.alloc(),ee=Zt.alloc(),ie=br.alloc();ie.set(Et),ie.bv(ut.transform),ie.Vj(),Gt.x=vt,Gt.y=Nt,Gt.transform(ie),Qt.x=rt,Qt.y=Nt,Qt.transform(ie),Et=!1,Xf(ut,Qt,Gt,ee)?Et=!0:(Qt.x=vt,Qt.y=Ct,Qt.transform(ie),Xf(ut,Qt,Gt,ee)?Et=!0:(Gt.x=rt,Gt.y=Ct,Gt.transform(ie),Xf(ut,Qt,Gt,ee)?Et=!0:(Qt.x=rt,Qt.y=Nt,Qt.transform(ie),Xf(ut,Qt,Gt,ee)&&(Et=!0)))),br.free(ie),Zt.free(Qt),Zt.free(Gt),Zt.free(ee),rt=Et}}else rt=ut.fh(rt,ft)}else rt=il(ut,a,b,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&E.add(vt)),br.free(ft)}}}return z===void 0&&br.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&br.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?dh:this.curve},Gn.prototype.computeCorner=function(){if(this.curve===dh)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,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}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=i1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===Fp||b===nv||b===q0?a=Math.max(a,E):b===Dp||b===Op||b===Tp||b===Bp?a=Math.max(a,tt):(y=y.ga(no).ab(x.ga(no))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===dh&&(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()===fu&&x.bb()}},Gn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=Si(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),Fi(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,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===tv)return!1;E===ev&&(E=Np)}switch(E){case tv:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var rt=tt.x-E,at=tt.y-z,st=Math.sqrt(rt*rt+at*at);if(!Ee.$(st,0)){if(Ee.$(rt,0))var ut=0>at?-Math.PI/2:Math.PI/2;else ut=Math.atan(at/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=b.x-tt;var vt=b.y-ft;for(at=Math.sqrt(rt*rt+vt*vt),Ee.$(rt,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(rt)),0>rt&&(vt=Math.PI-vt)),st=at/st,ut=vt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,at=y.y-z,y=Math.sqrt(rt*rt+at*at),Ee.$(y,0)||(Ee.$(rt,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(rt)),0>rt&&(at=Math.PI-at)),rt=at+ut,y*=st,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,b)}}return!0;case ev:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,st=(tt-E)*(tt-E)+(ft-z)*(ft-z),rt=y.x,ut=y.y,at=b.x,vt=b.y;var Ct=1;if(at-rt!==0){var Et=(vt-ut)/(at-rt);Ct=Math.sqrt(1+1/(Et*Et))}else Et=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Nt=y.x,Qt=y.y,Gt=.5;st!==0&&(Gt=((E-Nt)*(E-tt)+(z-Qt)*(z-ft))/st);var ee=E+Gt*(tt-E),ie=z+Gt*(ft-z);y=Math.sqrt((Nt-ee)*(Nt-ee)+(Qt-ie)*(Qt-ie)),Qt<Et*(Nt-ee)+ie&&(y=-y),0<Et&&(y=-y),Nt=rt+Gt*(at-rt),Gt=ut+Gt*(vt-ut),Et!==0?(y=Nt+y/Ct,this.L(a,y,Gt-(y-Nt)/Et)):this.L(a,Nt,Gt+y)}this.dd(x,b)}return!0;case Np:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,st=ut,Ee.B(E.y,z.y)?Ee.B(z.x,tt.x)?ut=y.y:Ee.B(z.y,tt.y)&&(rt=y.x):Ee.B(E.x,z.x)&&(Ee.B(z.y,tt.y)?rt=y.x:Ee.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,at=rt,vt=ut,Ee.B(E.y,z.y)?Ee.B(z.x,tt.x)?ut=b.y:Ee.B(z.y,tt.y)&&(rt=b.x):Ee.B(E.x,z.x)&&(Ee.B(z.y,tt.y)?rt=b.x:Ee.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,rt,ut),X0(this))){this.L(a+1,ft,st),this.L(x-1,at,vt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Gn.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var rt=E.actualBounds.copy(),at=z.actualBounds.copy();if(rt.w()&&at.w()){rt.Bc(Rp,Rp),at.Bc(Rp,Rp),rt.Ye(a),at.Ye(x);var st=Zt.alloc(),ut=Zt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(st.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ut.x=st.x,ut.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(at.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.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<=at.right&&a.x>=x.x?(b===90||b===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,at.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,at.bottom)),ut.x=x.x,ut.y=st.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(st.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ut.x=st.x,ut.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(st.x=a.x,st.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ut.y=st.y)):(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(at.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(st.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,at.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>=at.left&&a.x<=x.x?(b===90||b===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,at.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,at.bottom)),ut.x=x.x,ut.y=st.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(st.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ut.x=x.x,ut.y=st.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(st.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(at.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.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<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,at.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,at.right)),ut.x=st.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(st.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ut.x=x.x,ut.y=st.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(st.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),st.y=a.y,ut.x=st.x)):(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(at.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(st.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,at.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>=at.top&&a.y<=x.y?(b===0||b===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,at.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,at.right)),ut.x=st.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var vt=this.diagram;if(vt===null||E===z||this.layer.isTemporary||!Tc(vt)||rt.ca(ft)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Ct=md(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ct.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))&&Ct.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))&&Ct.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{E=a,z=ft;var Et=x=null;if(vt.isVirtualized){vt=Ct.bounds.copy(),vt.Bc(-Ct.Ho,-Ct.Go);var Nt=Zt.alloc();Xg(Ct,a.x,a.y)||(Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,st.x,st.y,Nt)?(x=a=Nt.copy(),y=Nt.ab(st)):Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,ut.x,ut.y,Nt)?(x=a=Nt.copy(),y=Nt.ab(ut)):Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,Nt)&&(x=a=Nt.copy(),y=Nt.ab(ft))),Xg(Ct,ft.x,ft.y)||(Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,Nt)?(Et=ft=Nt.copy(),b=ut.ab(Nt)):Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,st.x,st.y,Nt)?(Et=ft=Nt.copy(),b=st.ab(Nt)):Ee.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,a.x,a.y,Nt)&&(Et=ft=Nt.copy(),b=a.ab(Nt))),Zt.free(Nt)}rt=rt.copy().ed(at),rt.Bc(Ct.Ho*Ct.Os,Ct.Go*Ct.Os),o1(Ct,a,y,ft,b,rt,!0),at=id(Ct,ft.x,ft.y),!Ct.abort&&at>=Yg&&(r1(Ct),rt.Bc(Ct.Ho*Ct.Hx,Ct.Go*Ct.Ix),o1(Ct,a,y,ft,b,rt,!1),at=id(Ct,ft.x,ft.y)),!Ct.abort&&at<Yg&&id(Ct,ft.x,ft.y)!==Jd?(Y0(this,Ct,ft.x,ft.y,b,!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?Ee.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)):Ee.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=Ct.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)&&(Ee.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)):Ee.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=Ct.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,E.x,x.y):this.m(2,x.x,E.y)),Et!==null&&(b===0||b===180?this.yf(z.x,Et.y):this.yf(Et.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Zt.free(st),Zt.free(ut)}},Gn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function X0(a){if(a.diagram===null||!a.isAvoiding||!Tc(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=md(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Y0(a,y,x,b,E,z,tt){var rt=y.Ho,at=y.Go,st=id(y,x,b),ut=x,ft=b;for(E===0?ut+=rt:E===90?ft+=at:E===180?ut-=rt:ft-=at,E!==tt&&st>Qf&&id(y,ut,ft)!==st-1&&(id(y,x-rt,b)===st-1?(E=180,ut=x-rt,ft=b):id(y,x+rt,b)===st-1?(E=0,ut=x+rt,ft=b):id(y,x,b-at)===st-1?(E=270,ut=x,ft=b-at):id(y,x,b+at)===st-1&&(E=90,ut=x,ft=b+at));st>Qf&&id(y,ut,ft)===st-1;)x=ut,b=ft,E===0?ut+=rt:E===90?ft+=at:E===180?ut-=rt:ft-=at,--st;z?st>Qf&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/at)*at+at/2),st>Qf&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=at):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=at):E===270&&(z=0,tt+=rt),id(y,tt,ut)===st-1?Y0(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=at):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=at):E===270&&(z=180,tt-=rt),id(y,tt,ut)===st-1&&Y0(a,y,tt,ut,z,!1,z))),a.yf(x,b)}Gn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=_o(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=_o(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=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,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Sr&&(E.ua=this.ua)}}},Gn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Jf(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===dh&&3<=y&&!Ee.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var at=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),at=Math.min(at,rt.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)rt=b[at],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)rt=b[at],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||Jf(this)){if(a.type=Vn.o,rt=NS(a),this.computeShortLength(!0)!==0&&(E=cg(this,E,!0,z)),Zg(rt,E.x,E.y,!1),tt===dh&&3<=y&&!Ee.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=cg(this,E,!1,z)),Vd(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Zt.allocAt(b,at),x=Zt.alloc(),x.assign(this.i(1)),z=Zt.allocAt(b,at),E=Zt.allocAt(b,at),tt=this.i(0);for(var st,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){st=this.i(ft);var vt=tt,Ct=st,Et=this.i(J0(this,st,ft,!1));if((!Ee.$(vt.x,Ct.x)||!Ee.$(Ct.x,Et.x))&&(!Ee.$(vt.y,Ct.y)||!Ee.$(Ct.y,Et.y))){var Nt=ut;isNaN(Nt)&&(Nt=this.smoothness/3);var Qt=vt.x;vt=vt.y;var Gt=Ct.x;Ct=Ct.y;var ee=Et.x;Et=Et.y;var ie=Nt*_m(Qt,vt,Gt,Ct);Nt*=_m(Gt,Ct,ee,Et),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.x-b,z.y-at,E.x-b,E.y-at,tt.x-b,tt.y-at);else{for(z=Zt.alloc(),z.assign(this.i(0)),E=Zt.alloc(),E.assign(z),tt=this.computeCorner(),ft=1,st=0;ft<y;){if(ft=J0(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=cg(this,ut.copy(),!1,Ao)),dg(this,rt,-b,-at,z,ut,x);else if(st===0)for(ft=1;ft<y;)E.assign(z),ut=this.i(ft++),dg(this,rt,-b,-at,z,ut,x),z.assign(ut);break}if(st=J0(this,ut,ft+1,ft<y-3),ft=-b,Qt=-at,vt=ut,Gt=this.i(st),Nt=x,Ee.B(z.y,vt.y)&&Ee.B(vt.x,Gt.x))if(Et=Math.min(tt,Math.abs(vt.x-E.x)/2),Et=ie=Math.min(Et,Math.abs(Gt.y-vt.y)/2),Ee.B(Et,0))dg(this,rt,ft,Qt,z,vt,Nt),z.assign(vt);else{var he=vt.x,Ce=vt.y;Ct=he,ee=Ce,vt.x>z.x?he=vt.x-Et:he=vt.x+Et,Gt.y>vt.y?ee=vt.y+ie:ee=vt.y-ie,Gt=Zt.allocAt(he,Ce),dg(this,rt,ft,Qt,z,Gt,Nt),Zt.free(Gt),Gm(rt,vt.x+ft,vt.y+Qt,Ct+ft,ee+Qt),z.h(Ct,ee)}else Ee.B(z.x,vt.x)&&Ee.B(vt.y,Gt.y)?(Et=Math.min(tt,Math.abs(vt.y-E.y)/2),Et=ie=Math.min(Et,Math.abs(Gt.x-vt.x)/2),Ee.B(ie,0)?(dg(this,rt,ft,Qt,z,vt,Nt),z.assign(vt)):(he=vt.x,Ce=vt.y,Ct=he,ee=Ce,vt.y>z.y?Ce=vt.y-Et:Ce=vt.y+Et,Gt.x>vt.x?Ct=vt.x+ie:Ct=vt.x-ie,Gt=Zt.allocAt(he,Ce),dg(this,rt,ft,Qt,z,Gt,Nt),Zt.free(Gt),Gm(rt,vt.x+ft,vt.y+Qt,Ct+ft,ee+Qt),z.h(Ct,ee))):(dg(this,rt,ft,Qt,z,vt,Nt),z.assign(vt));E.assign(ut),ft=st}Zt.free(z)}Zm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=at,this.computeShortLength(!0)!==0&&(E=cg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=cg(this,rt,!1,z)),a.type=Vn.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function _m(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ee.$(a,0)?y:Ee.$(y,0)?a:Math.sqrt(a*a+y*y)))}function cg(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=_m(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=_m(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function J0(a,y,x,b){for(var E=a.pointsCount,z=y;Ee.$(y.x,z.x)&&Ee.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ee.$(y.x,z.x)&&!Ee.$(y.y,z.y))return x-1;for(var tt=z;Ee.$(y.x,z.x)&&Ee.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Ee.$(y.y,z.y)&&Ee.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}Gn.prototype.computeJumpLength=function(){return 10};function dg(a,y,x,b,E,z,tt){if(!tt&&Jf(a)){tt=a.computeJumpLength();var rt=tt/2,at=[],st=0;if(a.isVisible()&&(st=Lx(a,E,z,at)),0<st){if(Ee.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<st;){var ft=Math.max(E.x,Math.min(at[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+b);for(var vt=ft+x,Ct=Math.min(ft+tt,z.x);ut<st&&(ft=at[ut],ft<Ct+tt);)ut++,Ct=Math.min(ft+rt,z.x);ft=z.y-tt+b,Ct+=x;var Et=z.y+b;a.curve===Yd?Zg(y,Ct,Et,!1):Vd(y,vt,ft,Ct,ft,Ct,Et)}else for(--st;0<=st;){for(ut=Math.min(E.x,Math.max(at[st--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+b),vt=ut+x,ft=Math.max(ut-tt,z.x);0<=st&&(ut=at[st],ut>ft-tt);)st--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+b,ft+=x,Ct=z.y+b,a.curve===Yd?Zg(y,ft,Ct,!1):Vd(y,vt,ut,ft,ut,ft,Ct)}else if(Ee.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<st;){for(ft=Math.max(E.y,Math.min(at[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+b),vt=ft+b,ft=Math.min(ft+tt,z.y);ut<st&&(Ct=at[ut],Ct<ft+tt);)ut++,ft=Math.min(Ct+rt,z.y);Ct=z.x-tt+x,Et=z.x+x,ft+=b,a.curve===Yd?Zg(y,Et,ft,!1):Vd(y,Ct,vt,Ct,ft,Et,ft)}else for(--st;0<=st;){for(ut=Math.min(E.y,Math.max(at[st--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+b),vt=ut+b,ut=Math.max(ut-tt,z.y);0<=st&&(ft=at[st],ft>ut-tt);)st--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,Ct=z.x+x,ut+=b,a.curve===Yd?Zg(y,Ct,ut,!1):Vd(y,ft,vt,ft,ut,Ct,ut)}}}y.lineTo(z.x+x,z.y+b)}function Lx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var at=z[rt];if(at instanceof Gn){if(at===a)return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length;if(at.isVisible()&&Jf(at)){var st=at.routeBounds;st.w()&&a.routeBounds.Yc(st)&&!a.usesSamePort(at)&&(st=at.path,st!==null&&st.Ed()&&Mx(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length}function Mx(a,y,x,b){for(var E=Ee.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),rt=Zt.alloc(),at=1;at<z;at++){var st=b.i(at);if(at<z-1){var ut=b.i(at+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,vt=y.x,Ct=y.y,Et=tt.x;tt=tt.y;var Nt=st.x,Qt=st.y;if(Ee.B(ut,vt)){if(!Ee.B(ft,Ct)&&Ee.B(tt,Qt)&&Math.min(ft,Ct)<tt&&Math.max(ft,Ct)>tt&&Math.min(Et,Nt)<ut&&Math.max(Et,Nt)>ut&&!Ee.B(Et,Nt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(Ee.B(ft,Ct)&&Ee.B(Et,Nt)&&Math.min(ut,vt)<Et&&Math.max(ut,vt)>Et&&Math.min(tt,Qt)<ft&&Math.max(tt,Qt)>ft&&!Ee.B(tt,Qt)){rt.x=Et,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=st}Zt.free(rt)}function Jf(a){return a=a.curve,a===Ug||a===Yd}function $m(a,y){(y||Jf(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 b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,rt=0;rt<tt;rt++){var at=E[rt];at instanceof Gn&&(at===this?z=!0:z&&t1(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)rt=z[tt],rt instanceof Gn&&t1(this,rt,a)}}}}};function t1(a,y,x){if(y!==null&&y.lk&&y.fd&&Jf(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Gn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))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(!Wi.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 b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.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(Wi.prototype.Zb.call(this,a),a&&$m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Gn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Np:this.qk};function Ap(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,at=0;at<rt;at++){var st=tt[at];(st.ef===y&&st.ff===b&&st.uf===x&&st.vf===E||st.ef===x&&st.ff===E&&st.uf===y&&st.vf===b)&&(z===null?z=st:(a===null&&(a=[],a.push(z)),a.push(st)))}if(a!==null){for(z=GS(y,x,b,E),z===null&&(z=new rv(y,b,x,E),WS(y,z),WS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function kp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(xr(y.links,a),y.Sl()))}Gn.prototype.ph=function(){return!0},Ae.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&&Xm(y,this,x),kp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.uf!==a&&Um(a,this,E),Ap(this),this.C(1)),this.g("fromNode",y,a),Vg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Ju(x),kp(this),this.ff=a;var b=this.fromPort;b!==null&&Ju(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Ap(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&&Xm(y,this,x),kp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.ef!==a&&Um(a,this,E),Ap(this),this.C(1)),this.g("toNode",y,a),Vg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Ju(x),kp(this),this.vf=a;var b=this.toPort;b!==null&&Ju(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Ap(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:al},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&&Ju(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&&Pi(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:al},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&&Ju(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&&Pi(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?uo:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Ep(this.fromNode),this.toNode!==null&&Ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Sr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===dh&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Ee.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var tt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),at=this.i(z);Ee.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Zt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Jm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Ee.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ee.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];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 b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Ln,b=0;b<a.length/2;b++)E=new Zt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!qe(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Ln,b=0;b<a.length;b++)E=a[b],x.add(new Zt(E.x,E.y).freeze())}}else if(a instanceof Ln)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Oe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Jm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Th(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Kg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Kg(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),$m(this,y===Yd||y===Ug||a===Yd||a===Ug),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),$m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),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 fg=null,gg=null,Q0=new Ke(Gn,"Normal",1),Ex=new Ke(Gn,"Orthogonal",2),Ax=new Ke(Gn,"AvoidsNodes",6),e1=new Ke(Gn,"AvoidsNodesStraight",7),fu=new Ke(Gn,"None",0),dh=new Ke(Gn,"Bezier",9),Yd=new Ke(Gn,"JumpGap",10),Ug=new Ke(Gn,"JumpOver",11),Np=new Ke(Gn,"End",17),tv=new Ke(Gn,"Scale",18),ev=new Ke(Gn,"Stretch",19),Fp=new Ke(Gn,"OrientAlong",21),Tp=new Ke(Gn,"OrientPlus90",22),Dp=new Ke(Gn,"OrientMinus90",23),q0=new Ke(Gn,"OrientOpposite",24),nv=new Ke(Gn,"OrientUpright",25),Bp=new Ke(Gn,"OrientPlus90Upright",26),Op=new Ke(Gn,"OrientMinus90Upright",27),iv=new Ke(Gn,"OrientUpright45",28),n1=16,i1=14,Rp=8;Gn.className="Link",Gn.Normal=Q0,Gn.Orthogonal=Ex,Gn.AvoidsNodes=Ax,Gn.AvoidsNodesStraight=e1,Gn.None=fu,Gn.Bezier=dh,Gn.JumpGap=Yd,Gn.JumpOver=Ug,Gn.End=Np,Gn.Scale=tv,Gn.Stretch=ev,Gn.OrientAlong=Fp,Gn.OrientPlus90=Tp,Gn.OrientMinus90=Dp,Gn.OrientOpposite=q0,Gn.OrientUpright=nv,Gn.OrientPlus90Upright=Bp,Gn.OrientMinus90Upright=Op,Gn.OrientUpright45=iv,Gn.EndSegmentStep=8,Gn.CurvinessStart=n1,Gn.SpacingMin=i1,Gn.OrthoShortCut=Rp;function rv(a,y,x,b){Br(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}rv.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},rv.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))}},rv.className="LinkBundle";function Ip(a){Br(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}Ip.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=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((b+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=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=_0,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Xg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function id(a,y,x){return Xg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_0}function r1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Qf&&(x[b]=_0)}Ip.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<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 E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Jd)return!1}return!0};function rd(a,y,x,b,E,z,tt,rt,at){if(!(y<z||y>tt||x<rt||x>at)){var st=y|0,ut=x|0,ft=a.ac[st][ut];if(ft>=Qf&&ft<Yg)for(E?ut+=b:st+=b,ft+=1;z<=st&&st<=tt&&rt<=ut&&ut<=at&&!(ft>=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,E?ut+=b:st+=b;if(st=E?ut:st,E)if(0<b)for(x+=b;x<st;x+=b)rd(a,y,x,1,!E,z,tt,rt,at),rd(a,y,x,-1,!E,z,tt,rt,at);else for(x+=b;x>st;x+=b)rd(a,y,x,1,!E,z,tt,rt,at),rd(a,y,x,-1,!E,z,tt,rt,at);else if(0<b)for(y+=b;y<st;y+=b)rd(a,y,x,1,!E,z,tt,rt,at),rd(a,y,x,-1,!E,z,tt,rt,at);else for(y+=b;y>st;y+=b)rd(a,y,x,1,!E,z,tt,rt,at),rd(a,y,x,-1,!E,z,tt,rt,at)}}function ov(a,y,x,b,E,z,tt,rt,at){y|=0,x|=0;var st=Jd,ut=Qf;for(a.ac[y][x]=ut;st===Jd&&y>z&&y<tt&&x>rt&&x<at;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,st=a.ac[y][x]}function av(a,y,x,b,E,z,tt,rt,at){y|=0,x|=0;var st=Jd,ut=Yg;for(a.ac[y][x]=ut;st===Jd&&y>z&&y<tt&&x>rt&&x<at;)a.ac[y][x]=ut,E?x+=b:y+=b,st=a.ac[y][x]}function o1(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,at=y.y;if(Xg(a,rt,at)){rt-=a.Nd,rt/=a.rc,at-=a.Od,at/=a.sc;var st=b.x,ut=b.y;if(Xg(a,st,ut))if(st-=a.Nd,st/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-st)&&1>=Math.abs(at-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=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,b|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),b=a.ac,rt|=0,at|=0,st|=0,ut|=0;var Ct=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][at]===Jd?(ov(a,rt,at,Ct,x,z,y,ft,vt),ov(a,rt,at,1,!x,z,y,ft,vt),ov(a,rt,at,-1,!x,z,y,ft,vt)):ov(a,rt,at,Ct,x,rt,at,rt,at),b[st][ut]===Jd?(av(a,st,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,vt),av(a,st,ut,1,!(E===90||E===270),z,y,ft,vt),av(a,st,ut,-1,!(E===90||E===270),z,y,ft,vt)):av(a,st,ut,Ct,x,st,ut,st,ut),x=Si(),tt&&a1(a,st,ut,E,rt,at,x))for((x[0]!==st||x[1]!==ut)&&(x.unshift(ut),x.unshift(st)),(x[x.length-2]!==rt||x[x.length-1]!==at)&&(x.push(rt),x.push(at)),a=Qf,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],st=x[z+1];y>E?E++:y<E?E--:st>tt?tt++:st<tt&&tt--,b[E][tt]=a++,E!==y||tt!==st;);else rd(a,rt,at,1,!1,z,y,ft,vt),rd(a,rt,at,-1,!1,z,y,ft,vt),rd(a,rt,at,1,!0,z,y,ft,vt),rd(a,rt,at,-1,!0,z,y,ft,vt);Fi(x)}}}}function a1(a,y,x,b,E,z,tt){for(var rt=a.ac,at=y,st=x;;){if(at===E&&st===z)return!0;var ut=at,ft=st;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(ft<z)ft++;else break;else if(b===180)if(ut>E)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===$0)break;at=ut,st=ft}for(;;){if(ut=b,ft=at,vt=st,b===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):b===90?ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--):b===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--),ft=rt[ft][vt],ut!==b&&ft!==0&&ft!==$0){if(tt.push(at),tt.push(st),a1(a,at,st,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[at][st]=$0,b===0){if(at===y)return!1;at--}else if(b===90){if(st===x)return!1;st--}else if(b===180){if(at===y)return!1;at++}else{if(st===x)return!1;st++}}}Ae.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new en(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 Jd=0,Qf=1,Yg=999999,_0=Yg+1,$0=Yg+2;Ip.className="PositionArray";function pg(){Br(this),this.port=this.node=null,this.pe=[],this.ap=!1}pg.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
`+b.toString())}return y};function kx(a,y,x,b){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 b&&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}pg.prototype.Sl=function(){this.pe.length=0};function s1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof dr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(Ns,Zt.alloc()),at=a.port.ga(Za,Zt.alloc());for(E=en.allocAt(rt.x,rt.y,0,0),E.Ye(at),Zt.free(rt),Zt.free(at),rt=Zt.allocAt(E.x+E.width/2,E.y+E.height/2),at=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(b),ft=st.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?st.toPort:st.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var Ct=vt.findVisibleNode();Ct!==null&&Ct!==vt&&(vt=Ct,ut=vt.port),ut=st.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=at,0>vt?vt+=360:360<=vt&&(vt-=360),ft=kx(E,ft,vt,st.isOrthogonal),ft===0?(ft=4,180<vt&&(vt-=360)):ft===90?(ft=8,270<vt&&(vt-=360)):ft===180?ft=2:(ft=1,90>vt&&(vt+=360)),Ct=a.pe[z],Ct===void 0?(Ct=new ty(st,vt,ft),a.pe[z]=Ct):(Ct.link=st,Ct.angle=vt,Ct.Nc=ft),Ct.hv.set(ut),z++}}}}for(Zt.free(rt),a.pe.sort(pg.prototype.j),at=a.pe.length,b=-1,z=rt=0;z<at;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,rt=0),tt.Uo=rt,rt++);for(b=-1,rt=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,rt=at.Uo+1),at.Gl=rt);if(z=a.pe,ft=a.port,b=a.node.portSpreading,rt=Zt.alloc(),at=Zt.alloc(),tt=Zt.alloc(),st=Zt.alloc(),ft.ga(Ns,rt),ft.ga(Ms,at),ft.ga(Za,tt),ft.ga(Qr,st),Ct=vt=ut=ft=0,b===Z0)for(var Et=0;Et<z.length;Et++){var Nt=z[Et];if(Nt!==null){var Qt=Nt.link.computeThickness();switch(Nt.Nc){case 8:vt+=Qt;break;case 2:Ct+=Qt;break;case 1:ft+=Qt;break;default:case 4:ut+=Qt}}}var Gt=Et=0,ee=1,ie=Nt=0;for(Qt=0;Qt<z.length;Qt++){var he=z[Qt];if(he!==null){if(Et!==he.Nc){switch(Et=he.Nc,Et){case 8:var Ce=tt;Gt=st;break;case 2:Ce=st,Gt=rt;break;case 1:Ce=rt,Gt=at;break;default:case 4:Ce=at,Gt=tt}switch(Nt=Gt.x-Ce.x,ie=Gt.y-Ce.y,Et){case 8:vt>Math.abs(Nt)?(ee=Math.abs(Nt)/vt,vt=Math.abs(Nt)):ee=1;break;case 2:Ct>Math.abs(ie)?(ee=Math.abs(ie)/Ct,Ct=Math.abs(ie)):ee=1;break;case 1:ft>Math.abs(Nt)?(ee=Math.abs(Nt)/ft,ft=Math.abs(Nt)):ee=1;break;default:case 4:ut>Math.abs(ie)?(ee=Math.abs(ie)/ut,ut=Math.abs(ie)):ee=1}Gt=0}var We=he.Zo;if(b===Z0){switch(he=he.link.computeThickness(),he*=ee,We.set(Ce),Et){case 8:We.x=Ce.x+Nt/2+vt/2-Gt-he/2;break;case 2:We.y=Ce.y+ie/2+Ct/2-Gt-he/2;break;case 1:We.x=Ce.x+Nt/2-ft/2+Gt+he/2;break;default:case 4:We.y=Ce.y+ie/2-ut/2+Gt+he/2}Gt+=he}else{var ii=.5;b===Ym&&(ii=(he.Uo+1)/(he.Gl+1)),We.x=Ce.x+Nt*ii,We.y=Ce.y+ie*ii}}}for(Zt.free(rt),Zt.free(at),Zt.free(tt),Zt.free(st),Ce=a.pe,z=0;z<Ce.length;z++)b=Ce[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,en.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}pg.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},pg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ds,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},pg.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Zt,this.Gl=this.Uo=0,this.Zo=new Zt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Qa(a){Br(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Zt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Qa.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},Qa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Qa.prototype.qb=function(){},Qa.prototype.toString=function(){var a=Gi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Qa.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())}}},Qa.prototype.createNetwork=function(){return new ba(this)},Qa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof we?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof dr?y.lg(a.memberParts):y.lg(a.iterator),y},Qa.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")}},Qa.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()}},Qa.prototype.doLayout=function(a){var y=new Pn;a instanceof we?(xf(this,y,a.nodes,!0,this.rh,!0,!1,!0),xf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof dr?xf(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},Qa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;zp(rt);var at=rt.measuredBounds,st=at.width;at=at.height,rt.moveTo(b,E),rt instanceof dr&&(rt.rh=!1),b+=Math.max(st,50)+20,tt=Math.max(tt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Qa.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,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof Gn)&&(zp(rt),this.rh(rt))){var at=rt.measuredBounds,st=at.width;at=at.height,rt.moveTo(x,b),rt instanceof dr&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Qa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof dr&&a.rh)};function xf(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof ui?at.isLinkLabel||(at instanceof dr&&at.layout===null?xf(a,y,at.memberParts,!1,E,z,tt,rt):(zp(at),y.add(at))):tt&&at instanceof Gn?y.add(at):!rt||!at.Zc()||at instanceof ui||(zp(at),y.add(at)))}}function zp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Qa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new en),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Qa.prototype.ex=function(a){var y=new Pn;return a instanceof we?(xf(this,y,a.nodes,!0,null,!0,!0,!0),xf(this,y,a.links,!0,null,!0,!0,!0),xf(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof dr?xf(this,y,a.memberParts,!1,null,!0,!0,!0):xf(this,y,a.iterator,!1,null,!0,!0,!0),y},Qa.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(Ns),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ae.Object.defineProperties(Qa.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())}}}),Qa.prototype.collectParts=Qa.prototype.ex,Qa.prototype.getLayoutBounds=Qa.prototype.ni,Qa.prototype.invalidateLayout=Qa.prototype.C,Qa.className="Layout";function ba(a){Br(this),this.Sc=a,this.wf=new Pn,this.ye=new Pn,this.Es=new si,this.zs=new si}ba.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 Pn,this.ye=new Pn,this.Es=new si,this.zs=new si},ba.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},ba.prototype.createVertex=function(){return new $s(this)},ba.prototype.createEdge=function(){return new Qu(this)},ba.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 ui)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 b=a.value;if(b instanceof ui&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof dr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Gn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},ba.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},bt=ba.prototype,bt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},bt.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},bt.Iu=function(a){if(a!==null&&l1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function l1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}bt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},bt.ki=function(a){return a===null?null:this.Es.I(a)},bt.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}}bt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},bt.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))}bt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},bt.Lo=function(a){return a===null?null:this.zs.I(a)},bt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},bt.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))}},bt.Ko=function(){for(var a=Si(),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]);Fi(a)},ba.prototype.deleteArtificialVertexes=function(){for(var a=Si(),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=Si(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);Fi(a),Fi(y)};function Nx(a){for(var y=Si(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);Fi(y)}ba.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Nx(this),this.Ko()),a=new Ln;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){l1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ey(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}ba.prototype.dz=function(){for(var a=new Pn,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},Ae.Object.defineProperties(ba.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}}}),ba.prototype.findAllParts=ba.prototype.dz,ba.prototype.splitIntoSubNetworks=ba.prototype.Zx,ba.prototype.deleteSelfEdges=ba.prototype.Ko,ba.prototype.reverseEdge=ba.prototype.gm,ba.prototype.linkVertexes=ba.prototype.Zj,ba.prototype.findEdge=ba.prototype.Lo,ba.prototype.deleteLink=ba.prototype.Yy,ba.prototype.deleteEdge=ba.prototype.Mj,ba.prototype.addLink=ba.prototype.Dy,ba.prototype.addEdge=ba.prototype.Bo,ba.prototype.findVertex=ba.prototype.ki,ba.prototype.deleteNode=ba.prototype.Zy,ba.prototype.deleteVertex=ba.prototype.Iu,ba.prototype.addNode=ba.prototype.Bl,ba.prototype.addVertex=ba.prototype.dh,ba.prototype.addParts=ba.prototype.lg,ba.className="LayoutNetwork";function $s(a){Br(this),this.ob=a,this.j=new en(0,0,10,10).freeze(),this.o=new Zt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln}$s.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln},$s.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Te(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},$s.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;qe(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 dr)){x=en.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(no);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),en.free(x);return}en.free(x)}a.moveTo(y.x,y.y)}},$s.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},$s.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},$s.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},$s.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}Ae.Object.defineProperties($s.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,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,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=en.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),en.free(x),!(a instanceof dr)&&(a=a.locationObject.ga(no),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/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 Pn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Pn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Pn,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 Ln,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}}}),$s.prototype.deleteDestinationEdge=$s.prototype.Jl,$s.prototype.addDestinationEdge=$s.prototype.zl,$s.prototype.deleteSourceEdge=$s.prototype.Kl,$s.prototype.addSourceEdge=$s.prototype.Cl,$s.className="LayoutVertex",$s.standardComparer=ry,$s.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 b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}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 Qu(a){Br(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Qu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Qu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Te(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},Qu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Qu.prototype.commit=function(){},Qu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ae.Object.defineProperties(Qu.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)}}}),Qu.prototype.getOtherVertex=Qu.prototype.Ax,Qu.className="LayoutEdge";function Sl(a){Qa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new hn(NaN,NaN).freeze(),this.tf=new hn(10,10).freeze(),this.Jb=jp,this.Rb=lv,this.nd=Hp,this.hd=u1,a&&Object.assign(this,a)}ae(Sl,Qa),Sl.prototype.cloneProtected=function(a){Qa.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},Sl.prototype.qb=function(a){a.classType===Sl?a===Hp||a===hv||a===oy||a===uv?this.sorting=a:a===lv||a===pc?this.arrangement=a:a===jp||a===sv?this.alignment=a:Oe("Unknown enum value: "+a):Qa.prototype.qb.call(this,a)},Sl.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 b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof dr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case uv:E.reverse();break;case Hp:E.sort(this.comparer);break;case hv:E.sort(this.comparer),E.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"),b=[],this.alignment){case sv:var rt=y,at=x,st=en.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<E.length;ft++){var vt=this.ni(E[ft],st);ut=Math.max(ut,vt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(vt=ft=0;vt<E.length;vt++){var Ct=this.ni(E[vt],st);ft=Math.max(ft,Ct.height)}ft=Math.max(ft+at,1),vt=this.arrangement;for(var Et=Ct=this.arrangementOrigin.x,Nt=this.arrangementOrigin.y,Qt=0,Gt=0,ee=0;ee<E.length;ee++){var ie=E[ee],he=this.ni(ie,st),Ce=Math.ceil((he.width+rt)/ut)*ut,We=Math.ceil((he.height+at)/ft)*ft;switch(vt){case pc:var ii=Math.abs(Et-he.width);break;default:ii=Et+he.width}switch((0<z&&Qt>z-1||0<tt&&0<Qt&&ii-Ct>tt)&&(b.push(new en(0,Nt,tt+rt,Gt)),Qt=0,Et=Ct,Nt+=Gt,Gt=0),Gt=Math.max(Gt,We),vt){case pc:he=-he.width;break;default:he=0}switch(ie.moveTo(Et+he,Nt),vt){case pc:Et-=Ce;break;default:Et+=Ce}Qt++}b.push(new en(0,Nt,tt+rt,Gt)),en.free(st);break;case jp:for(at=tt,ut=z,ft=y,vt=x,tt=en.alloc(),Ct=Math.max(this.cellSize.width,1),z=Nt=st=0,rt=Zt.alloc(),Et=0;Et<E.length;Et++)Gt=E[Et],Qt=this.ni(Gt,tt),Gt=Kd(Gt,Gt.locationObject,Gt.locationSpot,rt),st=Math.max(st,Gt.x),Nt=Math.max(Nt,Qt.width-Gt.x),z=Math.max(z,Gt.y);switch(Et=this.arrangement,Et){case pc:st+=ft;break;default:Nt+=ft}Ct=isFinite(Ct)?Math.max(Ct+ft,1):Math.max(st+Nt,1);var bi=Gt=this.arrangementOrigin.x;for(ee=this.arrangementOrigin.y,Nt=0,at>=st&&(at-=st),st=ie=0,Ce=Math.max(this.cellSize.height,1),he=z=0,We=!0,Qt=Zt.alloc(),ii=0;ii<E.length;ii++){var mi=E[ii],Wn=this.ni(mi,tt),xn=Kd(mi,mi.locationObject,mi.locationSpot,rt);if(0<Nt)switch(Et){case pc:bi=(bi-Gt-(Wn.width-xn.x))/Ct,bi=Ee.$(Math.round(bi),bi)?Math.round(bi):Math.floor(bi),bi=bi*Ct+Gt;break;default:bi=(bi-Gt+xn.x)/Ct,bi=Ee.$(Math.round(bi),bi)?Math.round(bi):Math.ceil(bi),bi=bi*Ct+Gt}else switch(Et){case pc:ie=bi+xn.x+Wn.width;break;default:ie=bi-xn.x}switch(Et){case pc:var cr=-(bi+xn.x)+ie;break;default:cr=bi+Wn.width-xn.x-ie}if(0<ut&&Nt>ut-1||0<at&&0<Nt&&cr>at){for(b.push(new en(0,We?ee-z:ee,at+ft,he+z+vt)),bi=0;bi<Nt&&ii!==Nt;bi++){cr=E[ii-Nt+bi];var ir=Kd(cr,cr.locationObject,cr.locationSpot,Qt);cr.moveTo(cr.position.x,cr.position.y+z-ir.y)}he+=vt,ee=We?ee+he:ee+(he+z),Nt=he=z=0,bi=Gt,We=!1}switch(bi===Gt&&(st=Et===pc?Math.max(st,Wn.width-xn.x):Math.min(st,-xn.x)),z=Math.max(z,xn.y),he=Math.max(he,Wn.height-xn.y),isFinite(Ce)&&(he=Math.max(he,Math.max(Wn.height,Ce)-xn.y)),We?mi.moveTo(bi-xn.x,ee-xn.y):mi.moveTo(bi-xn.x,ee),Et){case pc:bi-=xn.x+ft;break;default:bi+=Wn.width-xn.x+ft}Nt++}if(b.push(new en(0,ee,at+ft,(We?he:he+z)+vt)),E.length!==Nt)for(at=0;at<Nt;at++)ut=E[E.length-Nt+at],ft=Kd(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Zt.free(rt),Zt.free(Qt),Et===pc)for(E=0;E<b.length;E++)z=b[E],z.width+=st,z.x-=st;else for(E=0;E<b.length;E++)z=b[E],z.x>st&&(z.width+=z.x-st,z.x=st);en.free(tt)}for(rt=z=tt=E=0;rt<b.length;rt++)at=b[rt],E=Math.min(E,at.x),tt=Math.min(tt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===pc?this.commitLayers(b,new Zt(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new Zt(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Sl.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ae.Object.defineProperties(Sl.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!==jp&&a!==sv||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==lv&&a!==pc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==uv&&a!==Hp&&a!==hv||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var sv=new Ke(Sl,"Position",0),jp=new Ke(Sl,"Location",1),lv=new Ke(Sl,"LeftToRight",2),pc=new Ke(Sl,"RightToLeft",3),oy=new Ke(Sl,"Forward",4),uv=new Ke(Sl,"Reverse",5),Hp=new Ke(Sl,"Ascending",6),hv=new Ke(Sl,"Descending",7);Sl.className="GridLayout",Sl.standardComparer=u1,Sl.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 b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Sl.Position=sv,Sl.Location=jp,Sl.LeftToRight=lv,Sl.RightToLeft=pc,Sl.Forward=oy,Sl.Reverse=uv,Sl.Ascending=Hp,Sl.Descending=hv;function Xo(){this.On=new Pn,this.Dn=new Pn,this.Pa=new Pn,this.cf=new si,this.bf=new si,this.aj=new si,this.H=null,this.tp=!1}bt=Xo.prototype,bt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},bt.Xe=function(a){this.H=a},bt.oi=function(a){if(a instanceof ui){if(this.On.add(a),a instanceof dr){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 mo||this.Pa.add(a);y=a.data,y===null||a instanceof mo||(a instanceof Gn?this.bf.add(y,a):this.cf.add(y,a))},bt.pc=function(a){if(a.Ej(),a instanceof ui){if(this.On.remove(a),a instanceof dr){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 mo||this.Pa.remove(a);y=a.data,y===null||a instanceof mo||(a instanceof Gn?this.bf.remove(y):this.cf.remove(y))},bt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof dr)&&Oe('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof dr||Oe('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Gn||Oe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Si(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=Si(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=Si(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);Fi(y),Fi(x),Fi(a)}},Xo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Xo.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&h1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&na(this.diagram,!1)};function h1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=c1(a,y,b);if(E!==null&&(Ih(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Xo.prototype.insertLink=function(){return null},Xo.prototype.resolveReferencesForData=function(){},Xo.prototype.Ro=function(a){return this.H.model.Ro(a)};function c1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(g1||(g1=!0,Li('No Group template found for category "'+x+'"'),Li(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Li('No Node template found for category "'+x+'"'),Li(" Using default node template")),y=a.ny))),y}Xo.prototype.getLinkCategoryForData=function(){return""},Xo.prototype.setLinkCategoryForData=function(){},Xo.prototype.setFromNodeForLink=function(){},Xo.prototype.setToNodeForLink=function(){},Xo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,Li('No Link template found for category "'+a+'"'),Li(" Using default link template")),x=y.my)),x},Xo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Xo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Xo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Ba(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Xo.prototype.unresolveReferencesForPart=function(){},Xo.prototype.removeDataForLink=function(){},Xo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Xo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ui?a:null)},Xo.prototype.findLinkForKey=function(){return null},bt=Xo.prototype,bt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},bt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ui?a:null)},bt.Kc=function(a){return a===null?null:this.bf.I(a)},bt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Pn;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(qe(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator},bt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Pn;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(qe(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(oi(z)){if(!oi(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var rt=z[tt];if(rt!==void 0&&!d1(a,E[tt],rt))return!1}}else if(!d1(a,E,z))return!1}return!0}function d1(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(qe(y)&&qe(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Xo.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 b=a.modelChange;if(b!=="")if(x===Na){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Ha){var tt=a.newValue;b==="nodeDataArray"&&qe(tt)&&h1(this,tt),y.isModified=!0}else if(x===us){var rt=a.oldValue;b==="nodeDataArray"&&qe(rt)&&this.ip(rt),y.isModified=!0}else x===Ql&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Na){var at=a.propertyName,st=a.object;st===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(st,at),y.isModified=!0}else if(x===Ha||x===us){var ut=a.change===Ha,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,Ct=this.aj.I(a.object);if(Array.isArray(Ct))for(a=0;a<Ct.length;a++){var Et=Ct[a];if(ut)km(Et,vt,ft,!0);else if(!(0>ft)){var Nt=ft+Pp(Et);Et.pc(Nt,!0),x0(Et,Nt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Xo.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)},Xo.prototype.rp=function(){for(var a=this.H.model,y=new Pn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){b1(a,tt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&C1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Xo.prototype.refreshDataBoundLinks=function(){},Xo.prototype.updateRelationshipsFromData=function(){},Xo.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 b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=Si()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Fi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(oi(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function ly(a,y,x){Kf(y,function(tt){tt=tt.O.s;for(var rt=tt.length,at=0;at<rt;at++)lh(x,tt[at])});var b=y.Hh;if(oi(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Xo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new si;if(oi(a))for(var E=0;E<a.length;E++)cv(this,a[E],y,b,x);else for(a=a.iterator;a.next();)cv(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Pn;for(var z=new si,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof Gn)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof ui&&rt.data!==null&&x.Tl()){var at=rt;rt=tt.key;var st=rt.pg();st!==null&&(st=b.I(st),st!==null?(x.qe(at.data,x.wa(st.data)),at=y.Kc(at.data),rt=rt.kh(),rt!==null&&at!==null&&z.add(rt,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new si;b.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function cv(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Wi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof ui){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var at=b.I(rt);at!==null&&(at.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof dr&&z instanceof dr)for(y=y.memberParts;y.next();)tt=cv(a,y.value,x,b,E),tt instanceof Gn||tt===null||(tt.containingGroup=z)}else if(y instanceof Gn&&z instanceof Gn)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=cv(a,y.value,x,b,E),tt!==null&&tt instanceof ui&&(tt.labeledLink=z);return z}Xo.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Gn||(b=E.copyNodeData(b),qe(b)&&(E.xf(b),x=y.Lc(b)))}else Ih(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Gn||(E=y.copyNodeData(b)),qe(E)&&(x.data=E)));return x},Ae.Object.defineProperties(Xo.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}}}),Xo.prototype.updateAllRelationshipsFromData=Xo.prototype.rp,Xo.prototype.findLinksByExample=Xo.prototype.ls,Xo.prototype.findNodesByExample=Xo.prototype.ms,Xo.prototype.findLinkForData=Xo.prototype.Kc,Xo.prototype.findNodeForData=Xo.prototype.ii,Xo.prototype.findPartForData=Xo.prototype.Lc,Xo.prototype.findNodeForKey=Xo.prototype.Vb,Xo.prototype.removeModeledPart=Xo.prototype.ip,Xo.prototype.removeModeledParts=Xo.prototype.Gs,Xo.prototype.rebuildParts=Xo.prototype.Wd;var f1=!1,g1=!1,p1=!1;Xo.className="PartManager";function sl(a){Xo.apply(this,arguments)}ae(sl,Xo),sl.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},sl.prototype.addModeledParts=function(a){for(Xo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Vg(a.value);na(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),na(a.diagram,!1)}function v1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ih(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=pv(x,y,!0);z!==""&&(E.fromPortId=z),z=fh(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ui&&(E.fromNode=z)),z=pv(x,y,!1),z!==""&&(E.toPortId=z),z=fh(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ui&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}sl.prototype.removeAllModeledParts=function(){var a=this.diagram.model;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(a,y){y.forEach(function(x){a.ip(x)})}sl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},sl.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},sl.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},sl.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},sl.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},sl.prototype.findPartForKey=function(a){var y=Xo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},sl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},sl.prototype.doModelChanged=function(a){var y=this;if(Xo.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Na){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var at=this.Vb(a.newValue);rt.toNode=at}}else if(E==="linkFromPortId"){var st=this.Kc(a.object);if(st!==null){var ut=a.newValue;typeof ut=="string"&&(st.fromPortId=ut)}}else if(E==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(E==="nodeGroupKey"){var Ct=this.Lc(a.object);if(Ct!==null){var Et=a.newValue;if(Et!==void 0){var Nt=this.Vb(Et);Nt instanceof dr?Ct.containingGroup=Nt:Ct.containingGroup=null}else Ct.containingGroup=null}}else if(E==="linkLabelKeys"){var Qt=this.Kc(a.object);if(Qt!==null){var Gt=a.oldValue,ee=a.newValue;Array.isArray(Gt)&&Gt.forEach(function(xn){0<=ee.indexOf(xn)||(xn=y.Vb(xn),xn!==null&&(xn.labeledLink=null))}),Array.isArray(ee)&&ee.forEach(function(xn){xn=y.Vb(xn),xn!==null&&(xn.labeledLink=Qt)})}}else if(E==="linkCategory"){var ie=this.Kc(a.object),he=a.newValue;ie!==null&&typeof he=="string"&&(ie.category=he)}else E==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(b===Ha){var Ce=a.newValue;if(E==="linkDataArray"&&typeof Ce=="object"&&Ce!==null)v1(this,Ce);else if(E==="linkLabelKeys"&&wf(Ce)){var We=this.Kc(a.object),ii=this.Vb(Ce);We!==null&&ii!==null&&(ii.labeledLink=We)}x.isModified=!0}else if(b===us){var bi=a.oldValue;if(E==="linkDataArray"&&typeof bi=="object"&&bi!==null)this.ip(bi);else if(E==="linkLabelKeys"&&wf(bi)){var mi=this.Vb(bi);mi!==null&&(mi.labeledLink=null)}x.isModified=!0}}else if(b===Na){var Wn=a.propertyName;a.object!==x.model||Wn!=="linkFromKeyProperty"&&Wn!=="linkToKeyProperty"&&Wn!=="linkFromPortIdProperty"&&Wn!=="linkToPortIdProperty"&&Wn!=="linkLabelKeysProperty"&&Wn!=="nodeIsGroupProperty"&&Wn!=="nodeGroupKeyProperty"&&Wn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},sl.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Pn,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){N1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&k1(y,z,!1)})},sl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Gn){var E=fh(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=fh(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Pn().addAll(y);var tt=new Pn;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof mo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof dr)&&(a.containingGroup=y)}}},sl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var tt=b.value;y.lb(tt)?E instanceof dr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof ui&&(fh(y,tt,!0)===x&&(z.link.fromNode=E),fh(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(at){return at===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}vc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof dr&&(E.containingGroup=a))}},sl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ui){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)mc(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&mc(y,x,b.data)),a instanceof dr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&mc(y,x,b)}}},sl.prototype.copyPartData=function(a,y){var x=Xo.prototype.copyPartData.call(this,a,y);if(a instanceof Gn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.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},sl.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof Gn){if(Ih(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof ui&&(Ih(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Qg(z,b,z.wa(a.data),!0),qg(z,b,rt,!0),x!==null&&Qg(z,b,z.wa(x.data),!1),qg(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof ui||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},sl.prototype.findLinkForKey=sl.prototype.findLinkForKey,sl.prototype.findPartForKey=sl.prototype.findPartForKey,sl.prototype.removeAllModeledParts=sl.prototype.removeAllModeledParts,sl.prototype.addModeledParts=sl.prototype.addModeledParts,sl.prototype.addAllModeledParts=sl.prototype.addAllModeledParts,sl.className="GraphLinksPartManager";function Mh(){Xo.apply(this,arguments),this.Sg=null}ae(Mh,Xo);function dv(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Po(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ih(b),b=b.copy(),b!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}Mh.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Mh.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Mh.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},Mh.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},Mh.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Mh.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Mh.prototype.doModelChanged=function(a){if(Xo.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 b=a.modelChange;if(b!==""){if(x===Na){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:dv(this,z,tt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),st=a.newValue;if(at!==null&&typeof st=="string"){var ut=at.kh();ut!==null&&(ut.category=st)}}y.isModified=!0}}else if(x===Na){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Mh.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof ui&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:dv(this,y,a):b!==null&&Ba(x,b,!1)))}}},Mh.prototype.updateDataBindings=function(a,y){Xo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Mh.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Wp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof ui&&y.mh(z)===x&&dv(this,E,this.ii(z))}vc(y,x)}a=y.mh(a),a!==void 0&&E instanceof ui&&(a=this.Vb(a),dv(this,a,E))}},Mh.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ui){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(us,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&mc(y,x,E)}},Mh.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},Mh.prototype.findLinkForKey=Mh.prototype.findLinkForKey,Mh.className="TreePartManager";function Ti(a,y){this.kl=new Pn,this.il=new Pn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,Br(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new si,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 si,this.Lt=new Ln,this.Wg=!1,this.o=null,this.undoManager=new Ka,a!==void 0&&(oi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ti.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},Ti.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ti.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ti.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,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Mr(E)}}return y},Ti.prototype.xA=function(a){a.change!==Ql&&Oe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Hs?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ti.prototype.Qv=function(a,y){var x=this,b=!1,E=new Pn,z=new Pn,tt=new Pn,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===Ha?E.add(ft.newValue):ft.change===us&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==Na||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(vt){x.lb(vt)&&z.add(vt)}):ft.object instanceof Ti||x.ri()&&x.Jc(ft.object)||P1(x,ft.object).each(function(vt){z.add(vt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ft){at.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 b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=at.Fa():ut.insertedNodeKeys=at.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(),at.clear(),ut},Ti.prototype.cloneDeep=function(a){return Jg(this,a,!0)};function Jg(a,y,x,b,E,z){function tt(ft,vt){rt?(ft.__gohashid===void 0&&z.push(ft),b.set(ft,vt)):(ft=Ze++,b.set(ft,vt),E.set(ft,y))}if(!qe(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new si),rt){var at=b.get(y);if(at)return at}else for(E||(E=new si),at=E.iterator;at.next();){var st=at.key;if(at.value===y&&(st=b.get(st)))return st}if(Array.isArray(y)){at=[],tt(y,at);for(var ut=0;ut<y.length;ut++)at.push(Jg(a,y[ut],!1,b,E,z))}else if(y instanceof Zt||y instanceof hn||y instanceof en||y instanceof qi||y instanceof Bi)at=y.copy(),tt(y,at);else{if(y instanceof Zo||y instanceof Vn||y instanceof Ke)return y;if(y instanceof Ln)at=new Ln().addAll(Jg(a,y.Fa(),!1,b,E,z)),tt(y,at);else if(y instanceof Pn)at=new Pn().addAll(Jg(a,y.Fa(),!1,b,E,z)),tt(y,at);else if(y instanceof si)at=new si().addAll(Jg(a,y.Fa(),!1,b,E,z)),tt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),tt(y,at);else if(y instanceof RegExp)at=new RegExp(y),tt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),tt(y,at);else for(ut in at={},tt(y,at),y)ut!=="__gohashid"&&(at[ut]=Jg(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),at}bt=Ti.prototype,bt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},bt.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},bt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function S1(a,y){y=y.modelData,qe(y)&&(a.dm(y),a.modelData=y)}bt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!w1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+Pf(this,this.nodeDataArray,!0)},bt.kv=function(a){S1(this,a),a=a.nodeDataArray,oi(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var tt=b.get(E);tt===null?(tt=new Pn,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new si,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Na?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Ha||z===us)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function P1(a,y){for(var x=new Pn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];fv(a,y,E,E,x)}return x}function fv(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return E.add(b),!0;if(fv(a,y,tt,b,E))return!0}else if(qe(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(fv(a,y,tt,b,E))return!0}return!1}bt.Pv=function(a,y){var x=this,b=!1,E=new Pn,z=new Pn,tt=new Pn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Ha?E.add(ut.newValue):ut.change===us&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==Na||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 Ti||x.ri()&&x.Jc(ut.object)||P1(x,ut.object).each(function(ft){z.add(ft)})):b=!0)});var at=this.il;at.clear(),E.each(function(ut){at.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="",b&&(a+=`,
|
|
"modelData": `+uy(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+Pf(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+Pf(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+Pf(this,st.Fa(),!0)),st.clear(),at.clear(),a},bt.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)&&Oe("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new si;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=b.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},bt.$x=function(a,y){a.change!==Ql&&Oe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Hs?(y===void 0&&(y=Gp(this,this)),x1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},bt.yA=function(a,y){return this.$x(a,y)},bt.np=function(a){return a===void 0&&(a=Gp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},bt.toJSON=function(a){return this.np(a)},bt.Zw=function(a){var y=null;if(typeof a=="string")try{y=ke.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Oe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Oe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},bt.Ky=function(a){return this.Zw(a)},Ti.constructGraphLinksModel=function(){return new Ti},bt=Ti.prototype,bt.dm=function(a){if(oi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(qe(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Oe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(qe(a)){for(y in a)if(x=a[y],qe(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Ln,b=0;b<x.length/2;b++)E.add(new Zt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Fx(a)}return a},bt.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()):oi(a)?Pf(this,a):qe(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Pf(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Tr;E.add("["),x&&1<b&&E.add(`
|
|
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
|
|
`),E.add("]"),E.toString()}function w1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function gu(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Zt)y={class:"go.Point",x:gu(x.x),y:gu(x.y)};else if(x instanceof hn)y={class:"go.Size",width:gu(x.width),height:gu(x.height)};else if(x instanceof en)y={class:"go.Rect",x:gu(x.x),y:gu(x.y),width:gu(x.width),height:gu(x.height)};else if(x instanceof qi)y={class:"go.Margin",top:gu(x.top),right:gu(x.right),bottom:gu(x.bottom),left:gu(x.left)};else if(x instanceof Bi)x.sb()?y={class:"go.Spot",x:gu(x.x),y:gu(x.y),offsetX:gu(x.offsetX),offsetY:gu(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Zo){if(y={class:"go.Brush",type:x.type.name},x.type===Gd?y.color=x.color:(x.type===Cd||x.type===bh)&&(y.start=x.start,y.end=x.end,x.type===bh&&(x.startRadius!==0&&(y.startRadius=gu(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=gu(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Vn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=gu(x.startX)),x.startY!==0&&(y.startY=gu(x.startY)),x.endX!==0&&(y.endX=gu(x.endX)),x.endY!==0&&(y.endY=gu(x.endY)),x.spot1.D(Ns)||(y.spot1=x.spot1),x.spot2.D(Za)||(y.spot2=x.spot2),x.type===Vn.o&&(y.path=Vn.ia(x))):x instanceof Ke&&(y={class:"go.EnumValue",classType:Gp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=As(y,E);if(!w1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Ln){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+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function pu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Fx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Zt(pu(a.x),pu(a.y));else if(y==="Size")x=new hn(pu(a.width),pu(a.height));else if(y==="Rect")x=new en(pu(a.x),pu(a.y),pu(a.width),pu(a.height));else if(y==="Margin")x=new qi(pu(a.top),pu(a.right),pu(a.bottom),pu(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Nh(a.enum):x=new Bi(pu(a.x),pu(a.y),pu(a.offsetX),pu(a.offsetY));else if(y==="Brush"){if(x=new Zo,x.type=ur(Zo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Bi&&(x.start=a.start),a.end instanceof Bi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=pu(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=pu(a.endRadius)),a=a.colorStops,qe(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Vn.parse(a.path):x=new Vn,x.type=ur(Vn,a.type),typeof a.startX=="number"&&(x.startX=pu(a.startX)),typeof a.startY=="number"&&(x.startY=pu(a.startY)),typeof a.endX=="number"&&(x.endX=pu(a.endX)),typeof a.endY=="number"&&(x.endY=pu(a.endY)),a.spot1 instanceof Bi&&(x.spot1=a.spot1),a.spot2 instanceof Bi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=cy(b),typeof b=="function"&&(x=ur(b,a.name)));return x}bt.Pe=function(a){return this.Lt.add(a),this},bt.ik=function(a){this.Lt.remove(a)},bt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},bt.cb=function(a,y,x,b,E,z,tt){Vs(this,"",a,y,x,b,E,z,tt)},bt.g=function(a,y,x,b,E){Vs(this,"",Na,a,this,y,x,b,E)},bt.Fs=function(a,y,x,b,E,z){Vs(this,"",Na,y,a,x,b,E,z)};function Vs(a,y,x,b,E,z,tt,rt,at){rt===void 0&&(rt=null),at===void 0&&(at=null);var st=new Va;st.model=a,st.change=x,st.modelChange=y,st.propertyName=b,st.object=E,st.oldValue=z,st.oldParam=rt,st.newValue=tt,st.newParam=at,a.ds(st)}Ti.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Na){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Ua(x,b,E)}else a.change===Ha?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,qe(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&xr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&gr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!oi(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),oi(b)&&typeof x=="number"&&(a=a.newValue,y?xr(b,x):gr(b,x,a))):Oe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===us?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,qe(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&gr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&xr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!oi(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),oi(b)&&typeof x=="number"&&(a=a.oldValue,y?gr(b,x,a):xr(b,x))):Oe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ql&&Oe("unknown ChangedEvent: "+a.toString())},Ti.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ti.prototype.eb=function(a){return this.undoManager.eb(a)},Ti.prototype.Kf=function(){return this.undoManager.Kf()},Ti.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},bt=Ti.prototype,bt.La=function(a,y){y===void 0&&(y=""),Vs(this,"SourceChanged",Ql,y,a,null,null)},bt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=As(a,y),y!==void 0)){if(wf(y))return y;Oe("Key value for node data "+a+" is not a number or a string: "+y)}}},bt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&this.hc(y)===null&&(Ua(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Vs(this,"nodeKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ua(a,x,y)}};function wf(a){return typeof a=="number"||typeof a=="string"}bt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},bt.hc=function(a){return a===null&&Oe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&wf(a)?this.kb.I(a):null},bt.$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 b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Ua(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ua(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ua(a,y,x)}}}}},bt.xf=function(a){a!==null&&(Ga(a),this.lb(a)||C1(this,a,!0))};function C1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Oe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,gr(a.Tc,b,y)),Vs(a,"nodeDataArray",Ha,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}bt.Fy=function(a){if(oi(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)},bt.cm=function(a){a!==null&&b1(this,a,!0)};function b1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;xr(a.Tc,b)}Vs(a,"nodeDataArray",us,"nodeDataArray",a,y,null,b,null),a.qp(y)}bt.nA=function(a){if(oi(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)},bt.$z=function(a){if(a!==this.nodeDataArray&&oi(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],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();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},bt.jp=function(a,y){y!==void 0&&(a=Wp(this,a),a instanceof Pn&&this.Vf.add(y,a))},bt.Lv=function(){},bt.fm=function(){},bt.em=function(){},bt.qp=function(){};function mc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Pn,a.Vf.add(y,b)),b.add(x)}}function vc(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Pn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Wp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Pn?a:null)}bt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ti.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):gv(this,a,!0),qe(a)&&Br(a),a};function gv(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=gv(a,y[x],a.copiesArrayObjects);b.push(E)}return Br(b),b}if(x&&qe(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=As(y,b),tt=Gp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Ti||z instanceof Ka||z instanceof Hs||z instanceof Va||(z=gv(a,z,!1)),Ua(x,b,z)}return Br(x),x}return y instanceof Zt||y instanceof hn||y instanceof en||y instanceof Bi||y instanceof qi?y.copy():y}Ti.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!L1&&a instanceof ge&&(L1=!0,Li('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Li(" Is that really your intent?"));var b=As(a,y);b!==x&&(Ua(a,y,x),this.Fs(a,y,b,x))},bt=Ti.prototype,bt.set=function(a,y,x){this.setDataProperty(a,y,x)},bt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},bt.Ay=function(a,y){this.ts(a,-1,y)},bt.ts=function(a,y,x){0>y&&(y=a.length),gr(a,y,x),Vs(this,"",Ha,"",a,null,x,null,y)},bt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Oe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];xr(a,y),Vs(this,"",us,"",a,x,null,y,null)},bt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;Oe("getCategoryForNodeData found a non-string category for "+a+": "+y)},bt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(Ua(a,x,y),Vs(this,"nodeCategory",Na,x,a,b,y))}else Ua(a,x,y)}},bt.lm=function(a,y){this.jm(y,this.Ro(a))},bt.Tl=function(){return!1},bt.Wj=function(){return!1},bt.ri=function(){return!1},bt.xs=function(){return!1},bt.Xj=function(){return!1};function hy(){return new Ti}function Gp(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 Gp(a,y.constructor);return typeof y}function cy(a){return tc[a]?tc[a]:ke.go!==void 0&&ke.go[a]?ke.go[a]:null}function As(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(b){}return x}function Ua(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(b){}}Ae.Object.defineProperties(Ti.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===""&&Oe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Oe("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,b=0;b<x;b++){var E=a[b];qe(E)||Oe("Model.nodeDataArray must only contain Objects, not: "+E),Ga(E)}for(this.Tc=a,b=new Ln,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Vs(this,"nodeDataArray",Na,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);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"}}}),Ti.prototype.setCategoryForNodeData=Ti.prototype.jm,Ti.prototype.getCategoryForNodeData=Ti.prototype.Ro,Ti.prototype.removeArrayItem=Ti.prototype.ov,Ti.prototype.insertArrayItem=Ti.prototype.ts,Ti.prototype.addArrayItem=Ti.prototype.Ay,Ti.prototype.assignAllDataProperties=Ti.prototype.Do,Ti.prototype.set=Ti.prototype.set,Ti.prototype.clearUnresolvedReferences=Ti.prototype.Qy,Ti.prototype.mergeNodeDataArray=Ti.prototype.$z,Ti.prototype.removeNodeDataCollection=Ti.prototype.nA,Ti.prototype.removeNodeData=Ti.prototype.cm,Ti.prototype.addNodeDataCollection=Ti.prototype.Fy,Ti.prototype.addNodeData=Ti.prototype.xf,Ti.prototype.makeNodeDataKeyUnique=Ti.prototype.$u,Ti.prototype.findNodeDataForKey=Ti.prototype.hc,Ti.prototype.containsNodeData=Ti.prototype.lb,Ti.prototype.setKeyForNodeData=Ti.prototype.km,Ti.prototype.getKeyForNodeData=Ti.prototype.wa,Ti.prototype.updateTargetBindings=Ti.prototype.La,Ti.prototype.commit=Ti.prototype.commit,Ti.prototype.rollbackTransaction=Ti.prototype.Kf,Ti.prototype.commitTransaction=Ti.prototype.eb,Ti.prototype.startTransaction=Ti.prototype.Ea,Ti.prototype.raiseDataChanged=Ti.prototype.Fs,Ti.prototype.raiseChanged=Ti.prototype.g,Ti.prototype.raiseChangedEvent=Ti.prototype.cb,Ti.prototype.removeChangedListener=Ti.prototype.ik,Ti.prototype.addChangedListener=Ti.prototype.Pe,Ti.prototype.writeJsonValue=Ti.prototype.sm,Ti.prototype.replaceJsonObjects=Ti.prototype.dm,Ti.prototype.applyIncrementalJSON=Ti.prototype.Ky,Ti.prototype.applyIncrementalJson=Ti.prototype.Zw,Ti.prototype.toJSON=Ti.prototype.toJSON,Ti.prototype.toJson=Ti.prototype.np,Ti.prototype.toIncrementalJSON=Ti.prototype.yA,Ti.prototype.toIncrementalJson=Ti.prototype.$x,Ti.prototype.toIncrementalData=Ti.prototype.xA,Ti.prototype.clear=Ti.prototype.clear;var L1=!1,tc={};Ti.className="Model",Ti.fromJSON=Ti.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ke.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Oe("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=cy(b)):(E=cy(b),E===null&&(E=ke[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ti?y=a:Oe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ti.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ti.safePropertyValue=As,Ti.safePropertySet=Ua,tc.Brush=Zo,tc.ChangedEvent=Va,tc.Geometry=Vn,tc.Margin=qi,tc.Panel=Dn,tc.Point=Zt,tc.Rect=en,tc.Size=hn,tc.Spot=Bi,tc.Transaction=Hs,tc.UndoManager=Ka;function Bs(a,y,x,b){Br(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,b===void 0?(this.el=E1,this.wk=null):(this.el=Zp,this.wk=b),this.st=new Pn}Bs.prototype.copy=function(){var a=new Bs;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},bt=Bs.prototype,bt.qb=function(a){a.classType===Bs&&(this.mode=a)},bt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},bt.freeze=function(){return this._isFrozen=!0,this},bt.ka=function(){return this._isFrozen=!1,this},bt.Kx=function(a){return a===void 0&&(a=null),this.mode=Zp,this.backConverter=a,this},bt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},bt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function M1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}bt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Li("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=As(y,b)),z!==void 0)if(E===null)x!==""&&Ua(a,x,z);else try{if(x!==""){var tt=E(z,a);Ua(a,x,tt)}else E(z,a)}catch(rt){}}}},bt.sp=function(a,y,x,b){if(this.el===Zp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,tt=a;if(E!==""&&(tt=As(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,at=rt!==null?rt.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,tt):Ua(y,x,tt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var st=b.itemIndex,ut=b.panel.itemArray;at.ov(ut,st),at.ts(ut,st,tt)}}else try{if(x!==""){var ft=z(tt,y,at);at!==null?at.setDataProperty(y,x,ft):Ua(y,x,ft)}else{var vt=z(tt,y,at);if(vt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ct=b.itemIndex,Et=b.panel.itemArray;at.ov(Et,Ct),at.ts(Et,Ct,vt)}}}catch(Nt){}}finally{this.st.remove(a)}}}},Ae.Object.defineProperties(Bs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ni(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ni(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ni(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ni(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ni(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ni(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ni(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ni(this),this.el=a}}}),Bs.prototype.updateSource=Bs.prototype.sp,Bs.prototype.updateTarget=Bs.prototype.Mv,Bs.prototype.ofModel=Bs.prototype.dA,Bs.prototype.ofObject=Bs.prototype.cp,Bs.prototype.makeTwoWay=Bs.prototype.Kx;var Tx="Binding",E1=new Ke(Bs,"OneWay",1),Zp=new Ke(Bs,"TwoWay",2);Bs.className="Binding",Bs.parseEnum=function(a,y){return function(x){return x=ur(a,x),x===null?y:x}},Bs.toString=Mr,Bs.OneWay=E1,Bs.TwoWay=Zp;function ro(a,y,x){Ti.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Pn,this.wb=new si,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&&(oi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}ae(ro,Ti),ro.constructGraphLinksModel=Ti.constructGraphLinksModel,ro.prototype.cloneProtected=function(a){Ti.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},bt=ro.prototype,bt.clear=function(){Ti.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},bt.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,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Mr(E)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+fh(this,E,!0)+"-->"+fh(this,E,!1)}return y},bt.Qv=function(a,y){this.linkKeyProperty===""&&Oe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ti.prototype.Qv.call(this,a,y),b=this,E=new Pn,z=new Pn,tt=new Pn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Ha?E.add(ut.newValue):ut.change===us&&tt.add(ut.oldValue):b.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){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Ti||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var at=this.il;at.clear(),E.each(function(ut){at.add(b.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.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(),at.clear(),x},bt.rm=function(){var a=Ti.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},bt.gp=function(a){Ti.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)},bt.Rv=function(){var a=Ti.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+Pf(this,this.linkDataArray,!0);return a+y},bt.kv=function(a){Ti.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function A1(a,y){for(var x=new Pn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];fv(a,y,E,E,x)}return x}bt.Pv=function(a,y){this.linkKeyProperty===""&&Oe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ti.prototype.Pv.call(this,a,y),b=this,E=new Pn,z=new Pn,tt=new Pn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Ha?E.add(ut.newValue):ut.change===us&&tt.add(ut.oldValue):b.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){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Ti||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var at=this.il;at.clear(),E.each(function(ut){at.add(b.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+Pf(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+Pf(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+Pf(this,st.Fa(),!0)),st.clear(),at.clear(),a},bt.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)&&Oe("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);F1(this,E,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)},ro.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Na){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Ua(x,b,E);return}}else if(a.change===Ha){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,qe(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===us){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,qe(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Ti.prototype.changeState.call(this,a,y)}},bt=ro.prototype,bt.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),Ua(x,this.nodeKeyProperty,a),this.xf(x))}return a}},bt.yx=function(a){return fh(this,a,!0)},bt.wv=function(a,y){Qg(this,a,y,!0)},bt.Bx=function(a){return fh(this,a,!1)},bt.Bv=function(a,y){Qg(this,a,y,!1)};function fh(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=As(y,a),a!==void 0))){if(wf(a))return a;Oe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=As(y,E);z!==x&&(vc(a,z,y),Ua(y,E,x),a.hc(x)===null&&mc(a,x,y),Vs(a,b?"linkFromKey":"linkToKey",Na,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ua(y,E,x)}}bt.zx=function(a){return pv(this,a,!0)},bt.xv=function(a,y){qg(this,a,y,!0)},bt.Cx=function(a){return pv(this,a,!1)},bt.Cv=function(a,y){qg(this,a,y,!1)};function pv(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=As(y,a),y===void 0?"":y)}function qg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=As(y,E);z===void 0&&(z=""),z!==x&&(Ua(y,E,x),Vs(a,b?"linkFromPortId":"linkToPortId",Na,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ua(y,E,x)}}bt.Ef=function(a){if(a===null)return mv;var y=this.je;return y===""?mv:(a=As(a,y),a===void 0?mv:a)},bt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=As(a,x);if(b===void 0&&(b=mv),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)vc(this,b[z],a);for(Ua(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&mc(this,tt,a)}Vs(this,"linkLabelKeys",Na,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ua(a,x,y)}},bt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&mc(this,y,a),Vs(this,"linkLabelKeys",Ha,x,a,null,y,null,E)))}else Oe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},bt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=As(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(vc(this,y,a),Vs(this,"linkLabelKeys",us,x,a,y,null,E,null)))}else b!==void 0&&Oe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},bt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=As(a,y),y!==void 0)){if(wf(y))return y;Oe("Key value for link data "+a+" is not a number or a string: "+y)}}},bt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=As(a,x);b!==y&&this.jh(y)===null&&(Ua(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Vs(this,"linkKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ua(a,x,y)}},bt.jh=function(a){return a===null&&Oe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&wf(a)?this.wb.I(a):null},bt.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 b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Ua(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ua(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ua(a,y,x)}}}}},bt.Jc=function(a){return a===null?!1:this.$f.contains(a)},bt.fi=function(a){a!==null&&(Ga(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Oe("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Vs(a,"linkDataArray",Ha,"linkDataArray",a,null,y,null,b),dy(a,y)}bt.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)},bt.bm=function(a){a!==null&&N1(this,a,!0)};function N1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Vs(a,"linkDataArray",us,"linkDataArray",a,y,null,b,null),x=fh(a,y,!0),vc(a,x,y),x=fh(a,y,!1),vc(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],vc(a,x,y)}bt.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)},bt.Zz=function(a){if(this.linkKeyProperty===""&&Oe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&oi(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),F1(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();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function dy(a,y){var x=fh(a,y,!0);x=a.Vl(x),a.hc(x)===null&&mc(a,x,y),x=fh(a,y,!1),x=a.Vl(x),a.hc(x)===null&&mc(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&mc(a,x,y)}bt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):gv(this,a,!0),qe(a)&&(Br(a),this.lf!==""&&Ua(a,this.lf,void 0),this.mf!==""&&Ua(a,this.mf,void 0),this.je!==""&&Ua(a,this.je,[])),a},bt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!As(a,y)},bt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=As(a,y),y!==void 0)){if(wf(y))return y;Oe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},bt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=As(a,x);b!==y&&(vc(this,b,a),Ua(a,x,y),this.hc(y)===null&&mc(this,y,a),Vs(this,"nodeGroupKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ua(a,x,y)}},ro.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||As(a,this.Je)===void 0||Ua(a,this.Je,void 0),a)},ro.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){Qg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Qg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){qg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){qg(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 b=As(a,y);b!==x&&(Ua(a,y,x),this.Fs(a,y,b,x))},bt=ro.prototype,bt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&As(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},bt.jp=function(a,y){Ti.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 b=x.value,E=a,z=y;if(fh(this,b,!0)===E){var tt=this.lf;Ua(b,tt,z),Vs(this,"linkFromKey",Na,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(fh(this,b,!1)===E&&(tt=this.mf,Ua(b,tt,z),Vs(this,"linkToKey",Na,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var rt=tt.length,at=this.je,st=0;st<rt;st++)tt[st]===E&&(tt[st]=z,Vs(this,"linkLabelKeys",Ha,at,b,E,z,st,st))}},bt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ua(a,b,x),Vs(this,"nodeGroupKey",Na,b,a,y,x),typeof b=="string"&&this.La(a,b)}},bt.Lv=function(){Ti.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)dy(this,a[x])},bt.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=Si();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Vs(this,"nodeGroupKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(fh(this,b,!0)===a&&(E=this.lf,Vs(this,"linkFromKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),fh(this,b,!1)===a&&(E=this.mf,Vs(this,"linkToKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,tt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(Vs(this,"linkLabelKeys",Ha,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)vc(this,a,x[y]);Fi(x)}},bt.em=function(a){Ti.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&mc(this,y,a)},bt.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.lh(a);vc(this,y,a)},bt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=As(a,y),y===void 0))return"";if(typeof y=="string")return y;Oe("getCategoryForLinkData found a non-string category for "+a+": "+y)},ro.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ro.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(Ua(a,x,y),Vs(this,"linkCategory",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ua(a,x,y)}},ro.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},bt=ro.prototype,bt.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function F1(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))}bt.Wj=function(){return!0},bt.ri=function(){return!0},bt.xs=function(){return!0},bt.Xj=function(){return!0},Ae.Object.defineProperties(ro.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,b=0;b<x;b++){var E=a[b];qe(E)||Oe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Ga(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ln,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Pn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Vs(this,"linkDataArray",Na,"linkDataArray",this,y,a),y=0;y<x;y++)dy(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,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}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"}}}),ro.prototype.setCategoryForLinkData=ro.prototype.lp,ro.prototype.getCategoryForLinkData=ro.prototype.ps,ro.prototype.assignAllDataProperties=ro.prototype.Do,ro.prototype.setGroupKeyForNodeData=ro.prototype.mp,ro.prototype.getGroupKeyForNodeData=ro.prototype.lh,ro.prototype.isGroupForNodeData=ro.prototype.Yu,ro.prototype.copyLinkData=ro.prototype.Jo,ro.prototype.mergeLinkDataArray=ro.prototype.Zz,ro.prototype.removeLinkDataCollection=ro.prototype.lA,ro.prototype.removeLinkData=ro.prototype.bm,ro.prototype.addLinkDataCollection=ro.prototype.Ey,ro.prototype.addLinkData=ro.prototype.fi,ro.prototype.containsLinkData=ro.prototype.Jc,ro.prototype.makeLinkDataKeyUnique=ro.prototype.Bs,ro.prototype.findLinkDataForKey=ro.prototype.jh,ro.prototype.setKeyForLinkData=ro.prototype.Ks,ro.prototype.getKeyForLinkData=ro.prototype.Ac,ro.prototype.removeLabelKeyForLinkData=ro.prototype.Qx,ro.prototype.addLabelKeyForLinkData=ro.prototype.Bu,ro.prototype.setLabelKeysForLinkData=ro.prototype.Ls,ro.prototype.getLabelKeysForLinkData=ro.prototype.Ef,ro.prototype.setToPortIdForLinkData=ro.prototype.Cv,ro.prototype.getToPortIdForLinkData=ro.prototype.Cx,ro.prototype.setFromPortIdForLinkData=ro.prototype.xv,ro.prototype.getFromPortIdForLinkData=ro.prototype.zx,ro.prototype.setToKeyForLinkData=ro.prototype.Bv,ro.prototype.getToKeyForLinkData=ro.prototype.Bx,ro.prototype.setFromKeyForLinkData=ro.prototype.wv,ro.prototype.getFromKeyForLinkData=ro.prototype.yx,ro.prototype.clear=ro.prototype.clear;var mv=Object.freeze([]);ro.className="GraphLinksModel",tc.GraphLinksModel=ro,Ti.constructGraphLinksModel=Ti.constructGraphLinksModel=function(){return new ro},Ti.initDiagramModel=hy=function(){return new ro};function mu(a,y){Ti.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(oi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ae(mu,Ti),mu.constructGraphLinksModel=Ti.constructGraphLinksModel,mu.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},bt=mu.prototype,bt.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,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Mr(E)}}return y},bt.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},bt.gp=function(a){Ti.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},bt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Oe("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a)},bt.Vl=function(a){return a},bt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=As(a,y),y!==void 0)){if(wf(y))return y;Oe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},bt.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 b=As(a,x);b!==y&&(vc(this,b,a),Ua(a,x,y),this.hc(y)===null&&mc(this,y,a),Vs(this,"nodeParentKey",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ua(a,x,y)}},bt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=As(a,y),y===void 0)?"":typeof y=="string"?y:(Oe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},mu.prototype.getLinkCategoryForData=function(a){return this.ss(a)},mu.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=As(a,x);b===void 0&&(b=""),b!==y&&(Ua(a,x,y),Vs(this,"parentLinkCategory",Na,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ua(a,x,y)}},mu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},mu.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||As(a,this.Ke)===void 0||Ua(a,this.Ke,void 0),a)},mu.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 b=As(a,y);b!==x&&(Ua(a,y,x),this.Fs(a,y,b,x))},bt=mu.prototype,bt.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},bt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ua(a,b,x),Vs(this,"nodeParentKey",Na,b,a,y,x),typeof b=="string"&&this.La(a,b)}},bt.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=Si();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Vs(this,"nodeParentKey",Na,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)vc(this,a,x[y]);Fi(x)}},bt.em=function(a){Ti.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&mc(this,y,a)},bt.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.mh(a);vc(this,y,a)},bt.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},bt.Tl=function(){return!0},bt.xs=function(){return!0},Ae.Object.defineProperties(mu.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"}}}),mu.prototype.setParentLinkCategoryForNodeData=mu.prototype.Ms,mu.prototype.getParentLinkCategoryForNodeData=mu.prototype.ss,mu.prototype.setParentKeyForNodeData=mu.prototype.qe,mu.prototype.getParentKeyForNodeData=mu.prototype.mh,mu.className="TreeModel",tc.TreeModel=mu;function ss(a){Qa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ec,this.Ti=0,this.Zv=new Zt,this.Jp=this.me=0,this.Xr=new Xp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ec,this.K=vu,this.nd=$g,this.hd=ry,this.tf=6,this.Nn=Cv,a&&Object.assign(this,a)}ae(ss,Qa),ss.prototype.cloneProtected=function(a){Qa.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},ss.prototype.qb=function(a){a.classType===ss?a===Pv||a===wv||a===Sv||a===xv||a===$g?this.sorting=a:a===qf||a===_g||a===vu||a===bf?this.direction=a:a===Qd||a===Cf||a===ec||a===nc?this.arrangement=a:(a===mg||a===Cv)&&(this.nodeDiameterFormula=a):Qa.prototype.qb.call(this,a)},ss.prototype.createNetwork=function(){return new tp(this)},ss.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 Ln;y.addAll(a.iterator),a=new Ln;var x=new Ln,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,at=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 vt=this.sweepAngle;if((!isFinite(vt)||360<vt||1>vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===nc&&at===mg?rt=ec:rt===nc&&at!==mg&&(rt=this.arrangement),(this.direction===qf||this.direction===_g)&&this.sorting!==$g){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===qf?(this.arrangement===nc&&a.reverse(),b=new Ln,b.addAll(a),b.addAll(x)):(this.arrangement===nc&&x.reverse(),b=new Ln,b.addAll(x),b.addAll(a))}at=b.length;for(var Ct=z=E=0;Ct<b.length;Ct++){var Et=ft+vt*z*(this.direction===vu?1:-1)/at,Nt=b.M(Ct).diameter;isNaN(Nt)&&(Nt=Lf(b.M(Ct),Et)),360>vt&&(Ct===0||Ct===b.length-1)&&(Nt/=2),E+=Nt,z++}if(isNaN(st)||rt===nc){if(isNaN(y)&&(y=6),rt!==ec&&rt!==nc){for(z=-1/0,tt=0;tt<at;tt++)Ct=b.M(tt),E=b.M(tt===at-1?0:tt+1),isNaN(Ct.diameter)&&Lf(Ct,0),isNaN(E.diameter)&&Lf(E,0),z=Math.max(z,(Ct.diameter+E.diameter)/2);tt=z+y,rt===Qd?st=(z+y)/(2*Math.PI/at):st=vv(this,tt*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else st=vv(this,E+(360<=vt?at:at-1)*(rt!==nc?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=st*ut}else if(z=st*ut,Ct=fy(this,st,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(rt===ec||rt===nc)&&(y=(Ct-E)/(360<=vt?at:at-1));else if(rt===ec||rt===nc)Ct=(Ct-E)/(360<=vt?at:at-1),Ct<y?(st=vv(this,E+y*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=st*ut):y=Ct;else{for(tt=-1/0,E=0;E<at;E++)Et=b.M(E),Nt=b.M(E===at-1?0:E+1),isNaN(Et.diameter)&&Lf(Et,0),isNaN(Nt.diameter)&&Lf(Nt,0),tt=Math.max(tt,(Et.diameter+Nt.diameter)/2);tt+=y,E=vv(this,tt*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180),E>st?(st=E,z=st*ut):tt=Ct/(360<=vt?at:at-1)}if(this.kw=rt,this.lc=st,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,st=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,at=this.Jp,this.direction!==qf&&this.direction!==_g||b!==nc)if(this.direction===qf||this.direction===_g){switch(tt=0,b){case Cf:tt=180*yv(this,rt,vt,st,at)/Math.PI;break;case ec:at=y=0,tt=a.first(),tt!==null&&(y=Lf(tt,Math.PI/2)),tt=x.first(),tt!==null&&(at=Lf(tt,Math.PI/2)),tt=180*yv(this,rt,vt,st,ft+(y+at)/2)/Math.PI;break;case Qd:tt=ut/y.length}if(this.direction===qf){switch(b){case Cf:Up(this,a,st,bf);break;case ec:Kp(this,a,st,bf);break;case Qd:Vp(this,a,ut/2,st,bf)}switch(b){case Cf:Up(this,x,st+tt,vu);break;case ec:Kp(this,x,st+tt,vu);break;case Qd:Vp(this,x,ut/2,st+tt,vu)}}else{switch(b){case Cf:Up(this,x,st,bf);break;case ec:Kp(this,x,st,bf);break;case Qd:Vp(this,x,ut/2,st,bf)}switch(b){case Cf:Up(this,a,st+tt,vu);break;case ec:Kp(this,a,st+tt,vu);break;case Qd:Vp(this,a,ut/2,st+tt,vu)}}}else switch(b){case Cf:Up(this,y,st,this.direction);break;case ec:Kp(this,y,st,this.direction);break;case Qd:Vp(this,y,ut,st,this.direction);break;case nc:T1(this,y,ut,st,this.direction)}else T1(this,y,ut,st-ut/2,vu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Vp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,at=0;at<rt;at++){var st=b+(E===vu?at*x/(360<=z?rt:rt-1):-(at*x)/rt),ut=y.M(at),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 Kp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,at=0;at<rt;at++){var st=y.M(at),ut=y.M(at===rt-1?0:at+1),ft=z*Math.sin(x);st.centerX=E*Math.cos(x),st.centerY=ft,st.actualAngle=180*x/Math.PI,isNaN(st.diameter)&&Lf(st,0),isNaN(ut.diameter)&&Lf(ut,0),st=yv(a,E,z,b===vu?x:-x,(st.diameter+ut.diameter)/2+tt),x+=b===vu?st:-st}}function Up(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,at=0;at<rt;at++){var st=y.M(at);st.centerX=E*Math.cos(x),st.centerY=z*Math.sin(x),st.actualAngle=180*x/Math.PI,st=yv(a,E,z,b===vu?x:-x,tt),x+=b===vu?st:-st}}function T1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Xp,360>x){for(z=b+(E===vu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,b,E)}else D1(a,y,x,b,E);a.Xr.commit(y)}function D1(a,y,x,b,E){var z=a.lc,tt=a.Ti,rt=a.Zm,at=z*Math.cos(b*Math.PI/180),st=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Zt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=at,ut[ft].centerY=st,!(ft>=ut.length-1));ft++)O1(a,at,st,ut,ft,E,z)||R1(a,at,st,ut,ft,E,z),at=z.x,st=z.y;if(Zt.free(z),a.mj++,!(23<a.mj)){at=ut[0].centerX,st=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var vt=Math.abs(at-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),Ct=Math.abs(st-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(Ct)?Math.abs(at-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<Ct?Ct:1>Math.abs(vt)?0:vt,at=Math.abs(z)>Math.abs(ft)?0<z!=st>ft:0<ft!=at<z,(at=E===vu?at:!at)&&(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,D1(a,y,x,b,E))}}}function B1(a,y,x,b,E){for(var z=a.lc,tt=a.me,rt=a.Zm,at=z*Math.cos(b*Math.PI/180),st=tt*Math.sin(b*Math.PI/180),ut=Zt.alloc(),ft=y.Fa(),vt=0;vt<ft.length&&(ft[vt].centerX=at,ft[vt].centerY=st,!(vt>=ft.length-1));vt++)O1(a,at,st,ft,vt,E,ut)||R1(a,at,st,ft,vt,E,ut),at=ut.x,st=ut.y;if(Zt.free(ut),a.mj++,!(23<a.mj)){if(at=Math.atan2(st,at),at=E===vu?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],at=0;at<ft.length;at++)tt.mk[at]=ft[at].bounds.x,tt.tm[at]=ft[at].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*rt,B1(a,y,x,b,E))}}function O1(a,y,x,b,E,z,tt){var rt=a.lc,at=a.me,st=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===vu)){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)))*at,0>x!==ut&&(st=-st),Math.abs(x-st)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function R1(a,y,x,b,E,z,tt){var rt=a.lc,at=a.me,st=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===vu)){if(z=x-a,z<-at){if(z=x+a,z>at){tt.x=st,tt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){tt.x=st,tt.y=z;return}b=!0}st=Math.sqrt(1-Math.min(1,z*z/(at*at)))*rt,0>y!==b&&(st=-st),tt.x=st,tt.y=z}ss.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ss.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Zt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.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))},ss.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*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=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,st=0;st<=z;st++){b!==void 0&&E!==void 0?at=b+st*E/z:at=st*Math.PI/(2*z);var ut=Math.sin(at);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function vv(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function yv(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/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&&(b+=Math.PI/2);for(var rt=0;;rt++){var at=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,tt>=E)return rt*a}}ss.prototype.sort=function(a){switch(this.sorting){case Sv:break;case xv:a.reverse();break;case Pv:a.sort(this.comparer);break;case wv:a.sort(this.comparer),a.reverse();break;case $g:return this.ak(Dx(a));default:Oe("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ln;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>E&&(E=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>E&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}ss.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];b=[],E=new Ln;for(var at=0,st=0;st<y.length;st++){var ut=y[st].length;if(ut===1)b.push(st);else if(ut===0)E.add(a.M(st));else{if(at===0)x.push(st);else{for(var ft=ut=1/0,vt=-1,Ct=[],Et=0;Et<x.length;Et++)0>y[x[Et]].indexOf(x[Et===x.length-1?0:Et+1])&&Ct.push(Et===x.length-1?0:Et+1);if(Ct.length===0)for(Et=0;Et<x.length;Et++)Ct.push(Et);for(Et=0;Et<Ct.length;Et++){for(var Nt=Ct[Et],Qt=y[st],Gt=0,ee=0;ee<tt.length;ee++){var ie=z[tt[ee]],he=z[rt[ee]];if(ie<he){var Ce=ie;ie=he}else Ce=he;if(Ce<Nt&&Nt<=ie)for(he=0;he<Qt.length;he++){var We=Qt[he];0>x.indexOf(We)||Ce<z[We]&&z[We]<ie||Ce===z[We]||ie===z[We]||Gt++}else for(he=0;he<Qt.length;he++)We=Qt[he],0>x.indexOf(We)||Ce<z[We]&&z[We]<ie&&Ce!==z[We]&&ie!==z[We]&&Gt++}for(Qt=Gt,ee=Gt=0;ee<y[st].length;ee++)Ce=x.indexOf(y[st][ee]),0<=Ce&&(Ce=Math.abs(Nt-(Ce>=Nt?Ce+1:Ce)),Gt+=Ce<x.length+1-Ce?Ce:x.length+1-Ce);for(ee=0;ee<tt.length;ee++)Ce=z[tt[ee]],ie=z[rt[ee]],Ce>=Nt&&Ce++,ie>=Nt&&ie++,Ce>ie&&(he=ie,ie=Ce,Ce=he),ie-Ce<(x.length+2)/2==(Ce<Nt&&Nt<=ie)&&Gt++;(Qt<ut||Qt===ut&&Gt<ft)&&(ut=Qt,ft=Gt,vt=Nt)}for(x.splice(vt,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))}at++}}for(tt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(at=b[rt],st=y[at][0],ut=x.indexOf(st),0<=ut){for(vt=ft=0;vt<y[st].length;vt++)Ct=x.indexOf(y[st][vt]),0>Ct||Ct===ut||(Et=Ct>ut?Ct-ut:ut-Ct,ft+=Ct<ut!=Et>tt-Et?1:-1);x.splice(0>ft?ut:ut+1,0,at),b.splice(rt,1),rt--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Ae.Object.defineProperties(ss.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!==nc&&a!==ec&&a!==Cf&&a!==Qd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==vu&&a!==bf&&a!==qf&&a!==_g||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Sv&&a!==xv&&a!==Pv&&!wv&&a!==$g||(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!==Cv&&a!==mg||(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 ec=new Ke(ss,"ConstantSpacing",0),Cf=new Ke(ss,"ConstantDistance",1),Qd=new Ke(ss,"ConstantAngle",2),nc=new Ke(ss,"Packed",3),vu=new Ke(ss,"Clockwise",4),bf=new Ke(ss,"Counterclockwise",5),qf=new Ke(ss,"BidirectionalLeft",6),_g=new Ke(ss,"BidirectionalRight",7),Sv=new Ke(ss,"Forwards",8),xv=new Ke(ss,"Reverse",9),Pv=new Ke(ss,"Ascending",10),wv=new Ke(ss,"Descending",11),$g=new Ke(ss,"Optimized",12),Cv=new Ke(ss,"Pythagorean",13),mg=new Ke(ss,"Circular",14);ss.className="CircularLayout",ss.ConstantSpacing=ec,ss.ConstantDistance=Cf,ss.ConstantAngle=Qd,ss.Packed=nc,ss.Clockwise=vu,ss.Counterclockwise=bf,ss.BidirectionalLeft=qf,ss.BidirectionalRight=_g,ss.Forwards=Sv,ss.Reverse=xv,ss.Ascending=Pv,ss.Descending=wv,ss.Optimized=$g,ss.Pythagorean=Cv,ss.Circular=mg;function Xp(){this.Pl=-1/0,this.tm=this.mk=null}Xp.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},Xp.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]}},Xp.className="VertexArrangement";function tp(a){ba.call(this,a)}ae(tp,ba),tp.prototype.createVertex=function(){return new Yp(this)},tp.prototype.createEdge=function(){return new bv(this)},tp.className="CircularNetwork";function Yp(a){$s.call(this,a),this.u=this.Si=NaN}ae(Yp,$s);function Lf(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===nc)if(x.nodeDiameterFormula===mg)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===mg?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ae.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 bv(a){Qu.call(this,a)}ae(bv,Qu),bv.className="CircularEdge";function Il(a){Qa.call(this),this.ah=null,this.An=0,this.$d=new hn(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)}ae(Il,Qa),Il.prototype.cloneProtected=function(a){Qa.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},Il.prototype.createNetwork=function(){return new vg(this)},Il.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 b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}I1(this,0,a)}this.network=y;var tt=b=x.iterator;b=this.arrangementSpacing;var rt=tt.count,at=!0;z=E=0;for(var st=Si(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=en.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),at)at=!1,E=ft.x+ft.width/2,z=ft.y+ft.height/2,st[0]=new Zt(ft.x+ft.width+b.width,ft.y),st[1]=new Zt(ft.x,ft.y+ft.height+b.height),rt=2;else{var vt=z1(st,rt,E,z,ft.width,ft.height,b),Ct=st[vt],Et=new Zt(Ct.x+ft.width+b.width,Ct.y),Nt=new Zt(Ct.x,Ct.y+ft.height+b.height);for(vt+1<rt&&st.splice(vt+1,0,null),st[vt]=Et,st[vt+1]=Nt,rt++,vt=Ct.x-ft.x,Ct=Ct.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Et=ut.value,Et.centerX+=vt,Et.centerY+=Ct}for(en.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>rt?(E=vt.x+vt.width/2,z=vt.y+vt.height/2,st[0]=new Zt(vt.x+vt.width+b.width,vt.y),st[1]=new Zt(vt.x,vt.y+vt.height+b.height),rt=2):(at=z1(st,rt,E,z,vt.width,vt.height,b),ft=st[at],Ct=new Zt(ft.x+vt.width+b.width,ft.y),vt=new Zt(ft.x,ft.y+vt.height+b.height),at+1<rt&&st.splice(at+1,0,null),st[at]=Ct,st[at+1]=vt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(Fi(st),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}H1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Il.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Il.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function I1(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,I1(a,y+1,x),H1(a,z),Rx(a,E),y=E.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++)Ix(a,y[x]);a.Zf=b}}function Bx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.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,b=new vg(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new W1;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 Ln),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,tt=rt.toVertex,E.network===b&&tt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new Ln,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new Ln,tt.Hj=rt),rt.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ee.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var st=rt=0,ut=at.count-tt;ut<at.count;ut++){var ft=at.M(ut),vt=null;for(z=ft.edges.iterator;z.next();){var Ct=z.value;if(Ct.Ax(ft)===E){vt=Ct;break}}vt!==null&&(st+=vt.length,rt+=ft.width*ft.height)}z=E.centerX,at=E.centerY,ut=E.width,ft=E.height,vt=E.focus,Ct=ut*ft,1>Ct&&(Ct=1),rt=Ee.sqrt((rt+Ct+st*st*4/(tt*tt))/Ct),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,E.bounds=new en(z-vt.x-tt,at-vt.y-rt,ut+2*tt,ft+2*rt),E.focus=new Zt(vt.x+tt,vt.y+rt)}}return a.network=b,x}function Rx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new en(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Zt(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Ix(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=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=Ee.sqrt(z*z+tt*tt)/2;for(var rt=!1,at=tt=0,st=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?at++:(rt=!0,st++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(at!==0){for(0<st&&(tt/=st),st=y=0,y=rt?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(st=y/2),1<x.count&&x.sort(function(Ct,Et){return Ct===null||Et===null||Ct===Et?0:Et.width*Et.height-Ct.width*Ct.height}),rt=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ut=null,ft=at.edges.iterator;ft.next();){ut=ft.value;break}ft=at.width;var vt=at.height;ft=Ee.sqrt(ft*ft+vt*vt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+st)*(rt%2===0?1:-1),at.centerX=b+ut*Math.cos(ft),at.centerY=E+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,b,E,z,tt){var rt=9e19,at=-1,st=0;t:for(;st<y;st++){var ut=a[st],ft=ut.x-x,vt=ut.y-b;if(ft=ft*ft+vt*vt,ft<rt){for(vt=st-1;0<=vt;vt--)if(a[vt].y>ut.y&&a[vt].x-ut.x<E+tt.width)continue t;for(vt=st+1;vt<y;vt++)if(a[vt].x>ut.x&&a[vt].y-ut.y<z+tt.height)continue t;at=st,rt=ft}}return at}Il.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Il.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 b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function j1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,Ee.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,Ee.sqrt(b*b+a*a)):tt-(b+E):b>tt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,Ee.sqrt(x*x+a*a)):a+x<y?(b=b-tt-rt,a=a+x-y,Ee.sqrt(b*b+a*a)):b-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function H1(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 b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var at=rt.centerX;rt=rt.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(Nt,Qt){return Nt===null||Qt===null||Nt===Qt?0:Nt.centerX-Qt.centerX}):y.sort(function(Nt,Qt){return Nt===null||Qt===null||Nt===Qt?0:Nt.centerY-Qt.centerY}),x=a.Zf;var st=b=rt=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,rt=tt.focus,at=b.x+rt.x;var ut=b.y+rt.y;b=tt.charge*a.electricalFieldX(at,ut),st=tt.charge*a.electricalFieldY(at,ut),b+=tt.mass*a.gravitationalFieldX(at,ut),st+=tt.mass*a.gravitationalFieldY(at,ut),tt.forceX+=b,tt.forceY+=st;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){b=vt.bounds,rt=vt.focus,st=b.x+rt.x;var Ct=b.y+rt.y;if(at-st>x||st-at>x){if(E)break}else if(ut-Ct>x||Ct-ut>x){if(!E)break}else{var Et=j1(tt,vt);1>Et?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Lv),Et=b.random(),rt=b.random(),at>st?(b=Math.abs(vt.bounds.right-tt.bounds.x),b=(1+b)*Et):at<st?(b=Math.abs(vt.bounds.x-tt.bounds.right),b=-(1+b)*Et):(b=Math.max(vt.width,tt.width),b=(1+b)*Et-b/2),ut>Ct?(st=Math.abs(vt.bounds.bottom-tt.bounds.y),st=(1+st)*rt):at<st?(st=Math.abs(vt.bounds.y-tt.bounds.bottom),st=-(1+st)*rt):(st=Math.max(vt.height,tt.height),st=(1+st)*rt-st/2)):(rt=-(tt.charge*vt.charge)/(Et*Et),b=(st-at)/Et*rt,st=(Ct-ut)/Et*rt),tt.forceX+=b,tt.forceY+=st,vt.forceX-=b,vt.forceY-=st}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,at=x.focus,b=tt.x+at.x,tt=tt.y+at.y,ut=z.bounds,ft=z.focus,at=ut.x+ft.x,ut=ut.y+ft.y,ft=j1(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new Lv),rt=ft.random(),ft=ft.random(),b=(b>at?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),b=(at-b)/ft*rt,st=(ut-tt)/ft*rt),x.forceX+=b,x.forceY+=st,z.forceX-=b,z.forceY-=st;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Il.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},Il.prototype.moveFixedVertex=function(){},Il.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Il.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=al,y.toSpot=al)}},Il.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=en.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,en.free(x)}x=en.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}en.free(x)},Il.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Il.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Il.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Il.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Il.prototype.electricalFieldX=function(){return 0},Il.prototype.electricalFieldY=function(){return 0},Il.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Il.prototype.gravitationalFieldX=function(){return 0},Il.prototype.gravitationalFieldY=function(){return 0},Il.prototype.isFixed=function(a){return a.isFixed},Ae.Object.defineProperties(Il.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"&&Oe('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())}}}),Il.className="ForceDirectedLayout";function W1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}W1.className="ForceDirectedSubnet";function vg(a){ba.call(this,a)}ae(vg,ba),vg.prototype.createVertex=function(){return new Jp(this)},vg.prototype.createEdge=function(){return new Qp(this)},vg.className="ForceDirectedNetwork";function Jp(a){$s.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}ae(Jp,$s),Ae.Object.defineProperties(Jp.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)}}}),Jp.className="ForceDirectedVertex";function Qp(a){Qu.call(this,a),this.j=this.o=NaN}ae(Qp,Qu),Ae.Object.defineProperties(Qp.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)}}}),Qp.className="ForceDirectedEdge";function Lv(){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()}Lv.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},Lv.className="RandomNumberGenerator";function Yo(a){Qa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Nv,this.Zk=Fv,this.Qk=Tv,this.bj=4,this.rk=Dv,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Zt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}ae(Yo,Qa),Yo.prototype.cloneProtected=function(a){Qa.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},Yo.prototype.qb=function(a){a.classType===Yo?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:Oe("Unknown enum value: "+a):Qa.prototype.qb.call(this,a)},Yo.prototype.createNetwork=function(){return new np(this)},Yo.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!==_p&&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===_p&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,rt=0,at=0,st=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;at=rt.toNode;for(var vt=rt.fromPort;vt!==null&&!vt.Ed();)vt=vt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){st=ft;var Ct=vt;ft=at,vt=rt,at=st,rt=Ct}var Et=E.focus;st=z.focus;var Nt=b.rev?z.bounds:E.bounds;Ct=Zt.alloc(),ut!==ft?Nt.w()&&ft.isVisible()?ft.actualBounds.w()?(Kd(ft,vt,no,Ct),Ct.x+=ft.actualBounds.x-Nt.x,Ct.y+=ft.actualBounds.y-Nt.y):(Kd(ft,vt,no,Ct),Ct.w()||Ct.assign(Et)):Ct.assign(Et):Nt.w()?(Kd(ft,vt,no,Ct),Ct.w()||Ct.assign(Et)):Ct.assign(Et),ft=b.rev?E.bounds:z.bounds,ut=Zt.alloc(),tt!==at?ft.w()&&at.isVisible()?at.actualBounds.w()?(Kd(at,rt,no,ut),ut.x+=at.actualBounds.x-ft.x,ut.y+=at.actualBounds.y-ft.y):(Kd(at,rt,no,ut),ut.w()||ut.assign(st)):ut.assign(st):ft.w()?(Kd(at,rt,no,ut),ut.w()||ut.assign(st)):ut.assign(st),this.K===90||this.K===270?(tt=Math.round((Ct.x-Et.x)/this.kc),at=Ct.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((Ct.y-Et.y)/this.kc),at=Ct.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Zt.free(Ct),Zt.free(ut),b.portFromColOffset=tt,b.portFromPos=at,b.portToColOffset=rt,b.portToPos=st}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ct=E.layer,ut=z.layer,ft=0,Nt=b.link,Nt!==null){var Qt=Nt.fromPort,Gt=Nt.toPort;if(Qt!==null&&Gt!==null){var ee=Nt.fromNode;if(vt=Nt.toNode,ee!==null&&vt!==null){var ie=kv(this,!0),he=kv(this,!1),Ce=this.setsPortSpots?ie:Nt.computeSpot(!0,Qt);Et=this.setsPortSpots?he:Nt.computeSpot(!1,Gt);var We=Nt.isOrthogonal;Ce.$c()&&Ce.Hf(he)&&Et.$c()&&Et.Hf(ie)?ft=0:(ie=Nt.getLinkPoint(ee,Qt,Ce,!0,We,vt,Gt,Zt.alloc()),he=Nt.getLinkDirection(ee,Qt,ie,Ce,!0,We,vt,Gt),Zt.free(ie),Ce.ys()||he!==Q1(this,b,!0)?this.setsPortSpots&&ee!==null&&ee.ports.count===1&&b.rev&&(ft+=1):ft+=1,Ce=Nt.getLinkPoint(vt,Gt,Et,!1,We,ee,Qt,Zt.alloc()),Nt=Nt.getLinkDirection(vt,Gt,Ce,Et,!1,We,ee,Qt),Zt.free(Ce),Et.ys()||Nt!==Q1(this,b,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&b.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Et=a.createVertex(),Et.node=null,Et.Dj=1,Et.layer=Ct,Et.near=E,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Et),Nt=1,ft&&Nt--,Ct-ut>Nt&&0<Ct){for(b.valid=!1,Et=a.createVertex(),Et.node=null,Et.Dj=2,Et.layer=Ct-1,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=vt?0:tt,E.portToColOffset=0,E.portFromPos=vt?0:at,E.portToPos=0,E=Et,Ct--;Ct-ut>Nt&&0<Ct;)Et=a.createVertex(),Et.node=null,Et.Dj=3,Et.layer=Ct-1,a.dh(Et),E=a.Zj(E,Et,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Et,Ct--;E=a.Zj(Et,z,b.link),E.valid=!ft,ft&&(Et.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=st}else b.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=Mf(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),Ef(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Yo.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}Yo.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},Yo.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 Nu(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Eh(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function G1(a,y,x){var b=Mf(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var rt=0,at=b[tt],st=at.near;if(st!==null&&st.layer===at.layer)if(at=st.index,at>tt)for(var ut=tt+1;ut<at;ut++){var ft=b[ut];ft.near===st&&ft.Dj===st.Dj||rt++}else for(ut=tt-1;ut>at;ut--)ft=b[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var vt;if(0<=x)for(at=b[tt].sourceEdgesArrayAccess,st=0;st<at.length;st++){var Ct=at[st];if(Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,vt=st+1;vt<at.length;vt++){var Et=at[vt];if(Et.valid&&Et.fromVertex.layer!==y){var Nt=Et.fromVertex.index,Qt=Et.portToPos;Et=Et.portFromPos,ut<Qt&&(ft>Nt||ft===Nt&&Ct>Et)&&rt++,Qt<ut&&(Nt>ft||Nt===ft&&Et>Ct)&&rt++}}}if(0>=x){for(at=b[tt].destinationEdgesArrayAccess,st=0;st<at.length;st++)if(Ct=at[st],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,vt=st+1;vt<at.length;vt++)Et=at[vt],Et.valid&&Et.toVertex.layer!==y&&(Nt=Et.toVertex.index,Qt=Et.portToPos,Et=Et.portFromPos,Ct<Et&&(ft>Nt||ft===Nt&&ut>Qt)&&rt++,Et<Ct&&(Nt>ft||Nt===ft&&Qt>ut)&&rt++)}for(z[tt*E+tt]=rt,at=tt+1;at<E;at++){var Gt=0,ee=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var ie=b[at].sourceEdgesArrayAccess;for(st=0;st<rt.length;st++)if(Ct=rt[st],Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,Ct=Ct.portFromPos,vt=0;vt<ie.length;vt++)Et=ie[vt],Et.valid&&Et.fromVertex.layer!==y&&(Nt=Et.fromVertex.index,Et=Et.portFromPos,(ft<Nt||ft===Nt&&Ct<Et)&&ee++,(Nt<ft||Nt===ft&&Et<Ct)&&Gt++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,ie=b[at].destinationEdgesArrayAccess,st=0;st<rt.length;st++)if(Ct=rt[st],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,vt=0;vt<ie.length;vt++)Et=ie[vt],Et.valid&&Et.toVertex.layer!==y&&(Nt=Et.toVertex.index,Qt=Et.portToPos,(ft<Nt||ft===Nt&&ut<Qt)&&ee++,(Nt<ft||Nt===ft&&Qt<ut)&&Gt++)}z[tt*E+at]=Gt,z[at*E+tt]=ee}}return Ef(a,y,b),z}Yo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=G1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Mv(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=Mf(b,E),tt=b.tc[E],rt=0,at=0;at<tt;at++){var st=z[at].destinationEdgesArrayAccess;if(st!==null)for(var ut=0;ut<st.length;ut++){var ft=st[ut];if(ft.valid&&ft.toVertex.layer!==E){var vt=ft.fromVertex.column+ft.portFromColOffset,Ct=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(vt-Ct)+1)*gy(ft)}}}Ef(b,E,z),y+=rt}return y}Yo.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 b=Mf(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],at=null;0>=x&&(at=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=0,vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ut+=vt.column-1,ft++),at!==null)for(vt=0;vt<at.length;vt++){rt=at[vt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ut+=Ct.column,ft++)}if(st!==null)for(at=0;at<st.length;at++)rt=st[at],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ut+=vt.column,ft++);z[tt]=ft===0?-1:ut/ft}return Ef(a,y,b),z}function Z1(a,y,x){for(var b=Mf(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],at=null;0>=x&&(at=rt.sourceEdgesArrayAccess);var st=null;0<=x&&(st=rt.destinationEdgesArrayAccess);var ut=0,ft=[],vt=rt.near;if(vt!==null&&vt.layer===rt.layer&&(ft[ut]=vt.column-1,ut++),rt=void 0,at!==null)for(vt=0;vt<at.length;vt++){rt=at[vt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ft[ut]=Ct.column+rt.portFromColOffset,ut++)}if(st!==null)for(at=0;at<st.length;at++)rt=st[at],vt=rt.toVertex,rt.valid&&!rt.rev&&vt.layer!==y&&(ft[ut]=vt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(Et,Nt){return Et-Nt}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return Ef(a,y,b),z}function qp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,at=rt.toVertex,st=y.layer-at.layer;rt=a.linkMinLength(rt),st===rt&&qp(a,at,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,at=rt.fromVertex,st=at.layer-y.layer,rt=a.linkMinLength(rt),st===rt&&qp(a,at,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Yo.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,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=V1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=V1(a);for(E=K1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=K1(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var at=0,st=rt.destinationEdges;st.next();)st.value.toVertex.valid&&at++;st=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&st++;(E===null||z<at-st)&&(E=rt,z=at-st)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Nv:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case _p:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function V1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function K1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.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 b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,vy(a,E))}y.finish=a.Kn,a.Kn++}Yo.prototype.assignLayers=function(){switch(this.Zk){case xy:U1(this);break;case Py:for(var a,y=this.network.vertexes.iterator;y.next();)a=Y1(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 Fv:for(U1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function U1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=X1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function X1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,X1(a,z)+E)}y.layer=x}else x=y.layer;return x}function Y1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,Y1(a,z)+E)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var tt=b[z],rt=tt.fromVertex,at=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-at.layer>tt&&qp(a,rt,0,-1,!0,!1)}for(qp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,at=null,tt=a.network.vertexes.iterator;tt.next();){var st=tt.value;if(st.component===1){var ut=0,ft=!1,vt=st.sourceEdgesArrayAccess;E=vt.length;for(var Ct=0;Ct<E;Ct++){var Et=vt[Ct],Nt=Et.fromVertex;ut+=1,Nt.component!==1&&(z+=1,Nt=Nt.layer-st.layer,Et=a.linkMinLength(Et),b=Math.min(b,Nt-Et))}for(vt=st.destinationEdgesArrayAccess,E=vt.length,Ct=0;Ct<E;Ct++)Et=vt[Ct].toVertex,--ut,Et.component!==1?--z:ft=!0;(at===null||ut<rt)&&!ft&&(at=st,rt=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(qp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,at=a.network.vertexes.iterator;at.next();)if(tt=at.value,tt.component===1){for(st=0,ut=!1,vt=tt.sourceEdgesArrayAccess,ft=vt.length,Ct=0;Ct<ft;Ct++)Et=vt[Ct].fromVertex,st+=1,Et.component!==1?b+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,Ct=0;Ct<ft;Ct++)Et=vt[Ct],Nt=Et.toVertex,--st,Nt.component!==1&&(--b,Nt=tt.layer-Nt.layer,Et=a.linkMinLength(Et),E=Math.min(E,Nt-Et));(rt===null||st>z)&&!ut&&(rt=tt,z=st)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function Q1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Yo.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 Tv:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x);break;case wy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&_1(this,x)}};function q1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&q1(a,b))}function _1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&_1(a,b))}Yo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Nu(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Ev(this,b,1),zh(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Nu(this)),b=this.Ia;0<=b;b--)Ev(this,b,-1),zh(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Nu(this))}for(Eh(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)Ev(this,b,0),zh(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Nu(this)),b=this.Ia;0<=b;b--)Ev(this,b,0),zh(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Nu(this))}Eh(this,y);var z,tt,rt;switch(this.rk){case by:break;case Ly:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,1)||z;for(E=this.countCrossings(),E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,1)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,-1)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,0)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,0)||z;E>=a?Eh(this,y):(a=E,y=Nu(this))}break;default:case Dv:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,1)||z;for(E=this.countCrossings(),E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,1)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,-1)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=zh(this,b,0)||z;for(E>=a?Eh(this,y):(a=E,y=Nu(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=zh(this,b,0)||z;E>=a?Eh(this,y):(a=E,y=Nu(this))}}Eh(this,y)};function Ev(a,y,x){var b=Mf(a,y),E=a.tc[y],z=Z1(a,y,x),tt=py(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,at;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=tt[x],tt[x]=tt[x+1],tt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);Ef(a,y,b)}function zh(a,y,x){var b=Mf(a,y),E=a.tc[y];x=G1(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var at=!1,st=!0;st;)for(st=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],ft=x[b[z+1].index*E+b[z].index],vt=0,Ct=0,Et=b[z].column,Nt=b[z+1].column,Qt=a.nodeMinColumnSpace(b[z],!0),Gt=a.nodeMinColumnSpace(b[z],!1),ee=a.nodeMinColumnSpace(b[z+1],!0),ie=a.nodeMinColumnSpace(b[z+1],!1);Qt=Et-Qt+ee,Gt=Nt-Gt+ie;var he=b[z].sourceEdges.iterator;for(he.reset();he.next();)if(ee=he.value,ie=ee.fromVertex,ee.valid&&ie.layer===y){for(ee=0;b[ee]!==ie;)ee++;ee<z&&(vt+=2*(z-ee),Ct+=2*(z+1-ee)),ee===z+1&&(vt+=1),ee>z+1&&(vt+=4*(ee-z),Ct+=4*(ee-(z+1)))}for(he=b[z].destinationEdges.iterator,he.reset();he.next();)if(ee=he.value,ie=ee.toVertex,ee.valid&&ie.layer===y){for(ee=0;b[ee]!==ie;)ee++;ee===z+1&&(Ct+=1)}for(he=b[z+1].sourceEdges.iterator,he.reset();he.next();)if(ee=he.value,ie=ee.fromVertex,ee.valid&&ie.layer===y){for(ee=0;b[ee]!==ie;)ee++;ee<z&&(vt+=2*(z+1-ee),Ct+=2*(z-ee)),ee===z&&(Ct+=1),ee>z+1&&(vt+=4*(ee-(z+1)),Ct+=4*(ee-z))}for(he=b[z+1].destinationEdges.iterator,he.reset();he.next();)if(ee=he.value,ie=ee.toVertex,ee.valid&&ie.layer===y){for(ee=0;b[ee]!==ie;)ee++;ee===z&&(vt+=1)}ee=ie=0,he=tt[b[z].index];var Ce=rt[b[z].index],We=tt[b[z+1].index],ii=rt[b[z+1].index];he!==-1&&(ie+=Math.abs(he-Et),ee+=Math.abs(he-Gt)),Ce!==-1&&(ie+=Math.abs(Ce-Et),ee+=Math.abs(Ce-Gt)),We!==-1&&(ie+=Math.abs(We-Nt),ee+=Math.abs(We-Qt)),ii!==-1&&(ie+=Math.abs(ii-Nt),ee+=Math.abs(ii-Qt)),(Ct<vt-.5||Ct===vt&&ft<ut-.5||Ct===vt&&ft===ut&&ee<ie-.5)&&(st=at=!0,b[z].column=Gt,b[z+1].column=Qt,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return Ef(a,y,b),at}Yo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Xx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=ep(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=ep(this,y,-1)||x;x=ep(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($1(this,-1),$1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=ep(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=ep(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=ep(this,y,0)||x}}else Zx(this)};function ep(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=Mf(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var rt=py(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var at=!1,st=!0;st;)for(st=!1,b=0;b<z;b++){var ut=E[b].column,ft=a.nodeMinColumnSpace(E[b],!0),vt=a.nodeMinColumnSpace(E[b],!1),Ct=0;0>b-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?Ct=ut-1:Ct=ut,ft=b+1>=z||E[b+1].column-ut-1>vt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var Et=vt=0,Nt=0;if(0>=x)for(var Qt=E[b].sourceEdges.iterator;Qt.next();){var Gt=Qt.value,ee=Gt.fromVertex;if(Gt.valid&&ee.layer!==y){var ie=gy(Gt),he=Gt.portFromColOffset;Gt=Gt.portToColOffset,ee=ee.column,vt+=(Math.abs(ut+Gt-(ee+he))+1)*ie,Et+=(Math.abs(Ct+Gt-(ee+he))+1)*ie,Nt+=(Math.abs(ft+Gt-(ee+he))+1)*ie}}if(0<=x)for(Qt=E[b].destinationEdges.iterator;Qt.next();)Gt=Qt.value,ee=Gt.toVertex,Gt.valid&&ee.layer!==y&&(ie=gy(Gt),he=Gt.portFromColOffset,Gt=Gt.portToColOffset,ee=ee.column,vt+=(Math.abs(ut+he-(ee+Gt))+1)*ie,Et+=(Math.abs(Ct+he-(ee+Gt))+1)*ie,Nt+=(Math.abs(ft+he-(ee+Gt))+1)*ie);Gt=he=ie=0,Qt=tt[E[b].index],ee=rt[E[b].index],Qt!==-1&&(ie+=Math.abs(Qt-ut),he+=Math.abs(Qt-Ct),Gt+=Math.abs(Qt-ft)),ee!==-1&&(ie+=Math.abs(ee-ut),he+=Math.abs(ee-Ct),Gt+=Math.abs(ee-ft)),Et<vt||Et===vt&&he<ie?(st=at=!0,E[b].column=Ct):(Nt<vt||Nt===vt&&Gt<ie)&&(st=at=!0,E[b].column=ft)}return Ef(a,y,E),a.normalize(),at}function yy(a,y,x){var b=Mf(a,y),E=a.tc[y],z=Z1(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),st=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=rt;else if(x===0){var ft=b[x+1].column;ft-rt===st+a.nodeMinColumnSpace(b[x+1],!0)?ut=rt-1:ut=rt}else x===E-1?(ft=b[x-1].column,ut=rt-ft===at+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(ft=b[x-1].column,at=ft+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,ut=(at+st)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,ut=Math.min(tt[x],st)):x===E-1?(ft=b[x-1].column,at=ft+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ut=Math.max(tt[x],at)):(ft=b[x-1].column,at=ft+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ft=b[x+1].column,st=ft-a.nodeMinColumnSpace(b[x+1],!0)-st-1,at<tt[x]&&tt[x]<st?ut=tt[x]:at>=tt[x]?ut=at:st<=tt[x]&&(ut=st));ut!==rt&&(z=!0,b[x].column=ut)}Ef(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Gx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&at>=y&&(E[b.layer]=!0),rt<=x&&at>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Nu(a),z=Mv(a);for(b=z+1;z<b;){b=z,tx(a,x,1);var tt=Mv(a);tt>z?Eh(a,E):tt<z&&(z=tt,E=Nu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Nu(a),z=Mv(a),b=z+1;z<b;)b=z,tx(a,x,-1),tt=Mv(a),tt>z?Eh(a,E):tt<z&&(z=tt,E=Nu(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.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(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=at;rt++)E[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(at=tt[tt.length-1],tt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Zx(a){for(var y=Si(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Pn,Vx(y,x);var z=null,tt=null,rt=null,at=null,st=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(st&&(a.verticalAlignment(y,x,!0),z=Av(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=Av(a,y,!1,!1)),b=Fn(y),E=b.next();!E.done;E=b.next())E.value.reverse();vt&&(a.verticalAlignment(y,x,!1),at=Av(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Av(a,y,!0,!0)),Fi(y),a.u(z,tt,rt,at),a.network.vertexes.each(function(Ct){var Et=Si();st&&Et.push(z.get(Ct)),ut&&Et.push(tt.get(Ct)),ft&&Et.push(rt.get(Ct)),vt&&Et.push(at.get(Ct)),Et.sort(function(Qt,Gt){return Qt-Gt});var Nt=Et.length;Nt=(Et[Math.floor((Nt-1)/2)]+Et[Math.ceil((Nt-1)/2)])/2,Fi(Et),Ct.zc=Nt})}function Vx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],rt=a[b+1],at=0;z<rt.length;at++){var st=rt[at];t:{if(st.node===null){var ut=My(st);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(at===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=My(st)[0].index);z<=at;){if(st=rt[z],!st.bo){ft=[];for(var vt=Fn(st.sourceEdgesArrayAccess),Ct=vt.next();!Ct.done;Ct=vt.next())Ct=Ct.value,Ct.valid&&ft.push(Ct);st.bo=ft}for(st=Fn(st.bo),ft=st.next();!ft.done;ft=st.next())ft=ft.value,vt=ft.fromVertex.index,(vt<E||vt>ut)&&y.add(ft);z++}E=ut}}}Yo.prototype.verticalAlignment=function(a,y,x){Kx(a),a=Fn(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Fn(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?My(z):Yx(z),rt=tt.length;if(0<rt){tt.sort(function(ft,vt){return ft.vi-vt.vi});var at=(rt-1)/2;for(rt=Math.floor(at),at=Math.ceil(at);rt<=at;rt++)if(z.align===z){var st=tt[rt],ut=void 0;ut=x?Bv(st,z):Bv(z,st),!y.contains(ut)&&E<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,E=st.vi)}}}}};function Kx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function Av(a,y,x,b){for(var E=a.K===90||a.K===270,z=Fn(y),tt=z.next();!tt.done;tt=z.next()){var rt=Fn(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=Fn(y),rt=z.next();!rt.done;rt=z.next()){rt=Fn(rt.value);for(var at=rt.next();!at.done;at=rt.next())if(at=at.value,at.root===at){for(var st=0,ut=at;ut.align!==at;){var ft=ut.align,vt=tt?ut.width:ut.height,Ct=tt?ft.width:ft.height;if(x){var Et=Bv(ut,ft),Nt=Et.portFromPos,Qt=Et.portToPos;Et.link!==null&&(ut.node&&ut.node!==Et.link.fromNode&&(Nt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Et.link.toNode&&(Qt=tt?ft.focusX:ft.focusY))}else Et=Bv(ft,ut),Nt=Et.portToPos,Qt=Et.portFromPos,Et.link!==null&&(ut.node&&ut.node!==Et.link.toNode&&(Nt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Et.link.fromNode&&(Qt=tt?ft.focusX:ft.focusY));vt=b?ut.qg+(vt-Nt)-(Ct-Qt):ut.qg+Nt-Qt,ft.qg=vt,st=Math.min(st,vt),ut=ut.align}ut=at;do ut.qg=ut.qg-st,ut=ut.align;while(ut!==at)}}for(x=Fn(y),tt=x.next();!tt.done;tt=x.next())for(z=Fn(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+(E?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 si,y=Fn(y),tt=y.next();!tt.done;tt=y.next())for(x=Fn(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&Oe("Could not determine previous vertex in layer"),y[x][a-1]}Yo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=Si(),E=Si(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Ux(this,y[tt],b,E,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?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(at){return function(st){st.value+=at.delta}}(z)));Fi(b),Fi(E)};function Ux(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var at=rt.key;rt=rt.value,at=a.K===90||a.K===270?at.width:at.height,rt<z&&(z=rt),rt+at>tt&&(tt=rt+at)}),x[E]=z,b[E]=tt,tt-z}Yo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=kv(this,!0),y=kv(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function kv(a,y){return a.K===270?y?Hl:bl:a.K===90?y?bl:Hl:a.K===180?y?Fl:ul:y?ul:Fl}Yo.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 b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,rt=-1/0;a.next();){var at=a.value,st=at.layer,ut=at.column|0;b?(tt=y.x+this.kc*ut,st=this.Kd[st]):(tt=this.Kd[st],st=y.y+this.kc*ut),at.centerX=tt,at.centerY=st,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(tt=z,rt=Math.max(rt,at.bounds.right)):(tt=E,rt=Math.max(rt,at.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-E,this.Rf=new Zt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Yo.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 b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new en(0,0,x,Math.abs(this.Ta[0]))):y.push(new en(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new en(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new en(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new en(0,0,Math.abs(this.Ta[0]),x)):y.push(new en(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new en(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new en(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Yo.prototype.commitLayers=function(){},Yo.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 b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,rt=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,tt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,rt=at.port));var st=y.computeSpot(!0,tt);at=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===dh&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,st,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,at,!1,!1,E,tt),x.w()||x.set(E.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=b=!1,tt!==null&&st===ds&&(b=!0),rt!==null&&at===ds&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,tt,tt.ga(no),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(no),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,Ct=!1,Et=this.ie,Nt=y.firstPickIndex+1;if(y.isOrthogonal){Ct=!0;var Qt=y.pointsCount;4<Qt&&y.points.removeRange(2,Qt-3)}else if(y.curve===dh)vt=!0,Qt=y.pointsCount,4<Qt&&y.points.removeRange(2,Qt-3),Qt===4&&(Nt=2);else{Qt=y.pointsCount;var Gt=st===ds,ee=at===ds;2<Qt&&Gt&&ee?y.points.removeRange(1,Qt-2):3<Qt&&Gt&&!ee?y.points.removeRange(1,Qt-3):3<Qt&&!Gt&&ee?y.points.removeRange(2,Qt-2):4<Qt&&!Gt&&!ee&&y.points.removeRange(2,Qt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var ie=Qt=null;for(Gt=ft.sourceEdges.iterator;Gt.next()&&(ee=Gt.value,ee.link!==x.link||(Qt=ee.fromVertex,ie=ee.toVertex,Qt.node!==null)););if(Qt===null)break;if(Qt!==ut){Gt=y.i(Nt-1).x,ee=y.i(Nt-1).y;var he=Qt.centerX,Ce=Qt.centerY;if(Ct)this.K===180||this.K===0?Nt===y.firstPickIndex+1?(y.m(Nt++,Gt,ee),y.m(Nt++,Gt,Ce)):(ie!==null?ie.centerY:ee)!==Ce&&(ie=this.Ta[Qt.layer-1]+this.Rf.x,y.m(Nt++,ie,ee),y.m(Nt++,ie,Ce)):Nt===y.firstPickIndex+1?(y.m(Nt++,Gt,ee),y.m(Nt++,he,ee)):(ie!==null?ie.centerX:Gt)!==he&&(ie=this.Ta[Qt.layer-1]+this.Rf.y,y.m(Nt++,Gt,ie),y.m(Nt++,he,ie));else if(Nt===y.firstPickIndex+1){ie=Math.max(10,this.he[ft.layer]);var We=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?he<=ft.bounds.x?(ft=ft.bounds.x,y.m(Nt++,ft-ie,Ce),y.m(Nt++,ft,Ce),y.m(Nt++,ft+We,Ce)):(y.m(Nt++,he-ie,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he+We,Ce)):this.K===90?Ce>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Nt++,he,ft+We),y.m(Nt++,he,ft),y.m(Nt++,he,ft-ie)):(y.m(Nt++,he,Ce+We),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce-ie)):this.K===270?Ce<=ft.bounds.y?(ft=ft.bounds.y,y.m(Nt++,he,ft-ie),y.m(Nt++,he,ft),y.m(Nt++,he,ft+We)):(y.m(Nt++,he,Ce-ie),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce+We)):this.K===0&&(he>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Nt++,ft+We,Ce),y.m(Nt++,ft,Ce),y.m(Nt++,ft-ie,Ce)):(y.m(Nt++,he+We,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he-ie,Ce)));else{y.m(Nt++,Gt,ee);var ii=0;this.K===180||this.K===0?((this.K===180?he>=ft.bounds.right:he<=ft.bounds.x)&&(ii=(this.K===0?-ie:We)/2),y.m(Nt++,Gt+ii,Ce)):((this.K===270?Ce>=ft.bounds.bottom:Ce<=ft.bounds.y)&&(ii=(this.K===90?-ie:We)/2),y.m(Nt++,he,ee+ii)),y.m(Nt++,he,Ce)}}else ie=Math.max(10,this.he[Qt.layer]),We=Math.max(10,this.Ld[Qt.layer]),vt?this.K===180?(y.m(Nt++,he-ie-Et,Ce),y.m(Nt++,Math.min(he-ie+Et/2,he),Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,Math.max(he+We-Et/2,he),Ce),y.m(Nt++,he+We+Et,Ce)):this.K===90?(y.m(Nt++,he,Ce+We+Et),y.m(Nt++,he,Math.max(Ce+We-Et/2,Ce)),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Math.min(Ce-ie+Et/2,Ce)),y.m(Nt++,he,Ce-ie-Et)):this.K===270?(y.m(Nt++,he,Ce-ie-Et),y.m(Nt++,he,Math.min(Ce-ie+Et/2,Ce)),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Math.max(Ce+We-Et/2,Ce)),y.m(Nt++,he,Ce+We+Et)):(y.m(Nt++,he+We+Et,Ce),y.m(Nt++,Math.max(he+We-Et/2,he),Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,Math.min(he-ie+Et/2,he),Ce),y.m(Nt++,he-ie-Et,Ce)):y.m(Nt++,he,Ce)}ft=Qt}(rt===null||st!==ds||Ct)&&(Gt=y.i(Nt-1).x,ee=y.i(Nt-1).y,he=y.i(Nt).x,Ce=y.i(Nt).y,Ct?(Et=this.Ld[ut.layer],this.K===180||this.K===0?(Ct=ee,Ct>=ut.bounds.y&&Ct<=ut.bounds.bottom&&(this.K===180?he>=ut.bounds.x:he<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Et:Et),Ct<ut.bounds.y+ut.bounds.height/2?Ct=ut.bounds.y-this.kc/2:Ct=ut.bounds.bottom+this.kc/2,y.m(Nt++,ft,ee),y.m(Nt++,ft,Ct)),y.m(Nt++,he,Ct)):(Ct=Gt,Ct>=ut.bounds.x&&Ct<=ut.bounds.right&&(this.K===270?Ce>=ut.bounds.y:Ce<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Et:Et),Ct<ut.bounds.x+ut.bounds.width/2?Ct=ut.bounds.x-this.kc/2:Ct=ut.bounds.right+this.kc/2,y.m(Nt++,Gt,ft),y.m(Nt++,Ct,ft)),y.m(Nt++,Ct,Ce)),y.m(Nt++,he,Ce)):vt?(ie=Math.max(10,this.he[ut.layer]),We=Math.max(10,this.Ld[ut.layer]),this.K===180&&he>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Nt-2,ft,ee),y.L(Nt-1,ft+We,ee)):this.K===90&&Ce<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Nt-2,Gt,ft),y.L(Nt-1,Gt,ft-ie)):this.K===270&&Ce>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Nt-2,Gt,ft),y.L(Nt-1,Gt,ft+We)):this.K===0&&he<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Nt-2,ft,ee),y.L(Nt-1,ft-ie,ee))):(ie=Math.max(10,this.he[ut.layer]),We=Math.max(10,this.Ld[ut.layer]),Ct=0,this.K===180||this.K===0?((this.K===180?he<=ut.bounds.x:he>=ut.bounds.right)&&(Ct=(this.K===0?We:-ie)/2),y.m(Nt++,he+Ct,ee)):((this.K===270?Ce<=ut.bounds.y:Ce>=ut.bounds.bottom)&&(Ct=(this.K===90?We:-ie)/2),y.m(Nt++,Gt,Ce+Ct)),y.m(Nt++,he,Ce)))}else{for(;ut!==null&&ut!==ft;){for(ie=Qt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Gt=ut.value,Gt.link!==x.link||(Qt=Gt.toVertex,ie=Gt.fromVertex,ie.node!==null&&(ie=null),Qt.node!==null)););if(Qt===null)break;Qt!==ft&&(Gt=y.i(Nt-1).x,ee=y.i(Nt-1).y,he=Qt.centerX,Ce=Qt.centerY,Ct?this.K===180||this.K===0?(ie!==null?ie.centerY:ee)!==Ce&&(ie=this.Ta[Qt.layer]+this.Rf.x,Nt===y.firstPickIndex+1&&(ie=this.K===0?Math.max(ie,Gt):Math.min(ie,Gt)),y.m(Nt++,ie,ee),y.m(Nt++,ie,Ce)):(ie!==null?ie.centerX:Gt)!==he&&(ie=this.Ta[Qt.layer]+this.Rf.y,Nt===y.firstPickIndex+1&&(ie=this.K===90?Math.max(ie,ee):Math.min(ie,ee)),y.m(Nt++,Gt,ie),y.m(Nt++,he,ie)):(ie=Math.max(10,this.he[Qt.layer]),We=Math.max(10,this.Ld[Qt.layer]),vt?this.K===180?(y.m(Nt++,he+We+Et,Ce),y.m(Nt++,Math.max(he+We-Et/2,he),Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,Math.min(he-ie+Et/2,he),Ce),y.m(Nt++,he-ie-Et,Ce)):this.K===90?(y.m(Nt++,he,Ce-ie-Et),y.m(Nt++,he,Math.min(Ce-ie+Et/2,Ce)),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Math.max(Ce+We-Et/2,Ce)),y.m(Nt++,he,Ce+We+Et)):this.K===270?(y.m(Nt++,he,Ce+We+Et),y.m(Nt++,he,Math.max(Ce+We-Et/2,Ce)),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Math.min(Ce-ie+Et/2,Ce)),y.m(Nt++,he,Ce-ie-Et)):(y.m(Nt++,he-ie-Et,Ce),y.m(Nt++,Math.min(he-ie+Et/2,he),Ce),y.m(Nt++,he,Ce),y.m(Nt++,he,Ce),y.m(Nt++,Math.max(he+We-Et/2,he),Ce),y.m(Nt++,he+We+Et,Ce)):this.K===180?(y.m(Nt++,he+We,Ce),y.m(Nt++,he-ie,Ce)):this.K===90?(y.m(Nt++,he,Ce-ie),y.m(Nt++,he,Ce+We)):this.K===270?(y.m(Nt++,he,Ce+We),y.m(Nt++,he,Ce-ie)):(y.m(Nt++,he-ie,Ce),y.m(Nt++,he+We,Ce)))),ut=Qt}Ct&&(Gt=y.i(Nt-1).x,ee=y.i(Nt-1).y,he=y.i(Nt).x,Ce=y.i(Nt).y,this.K===180||this.K===0?ee!==Ce&&(ie=this.K===0?Math.min(Math.max((he+Gt)/2,this.Ta[ft.layer]+this.Rf.x),he):Math.max(Math.min((he+Gt)/2,this.Ta[ft.layer]+this.Rf.x),he),y.m(Nt++,ie,ee),y.m(Nt++,ie,Ce)):Gt!==he&&(ie=this.K===90?Math.min(Math.max((Ce+ee)/2,this.Ta[ft.layer]+this.Rf.y),Ce):Math.max(Math.min((Ce+ee)/2,this.Ta[ft.layer]+this.Rf.y),Ce),y.m(Nt++,Gt,ie),y.m(Nt++,he,ie)))}b!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===ds?y.getLinkPointFromPoint(E,tt,tt.ga(no),y.i(3),!0):y.i(0),st===ds&&(st=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,b.x,(st.y+b.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=at===ds?y.getLinkPointFromPoint(z,rt,rt.ga(no),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ds&&(rt=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,at.x,(rt.y+at.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Yo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ln,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 b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new Af;rt.layer=Math.floor(z.y/2);var at=b.i(0),st=b.i(b.pointsCount-1);if(rt.first=at.x*at.x+at.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=E,rt.link=b,E+2<b.pointsCount){at=b.i(E-1),st=b.i(E+2);var ut=0;at.y<z.y?ut=st.y<z.y?3:z.x<tt.x?2:1:at.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,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,at=z;at<E;at++)st=x[at],st.jc!==rt&&(ut++,rt=st.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,at=z;at<E;at++)st=x[at],st.first!==rt&&(ft++,rt=st.first);for(at=!0,st=ft,ut<ft?(at=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++){var vt=x[ft];(at?vt.first:vt.jc)!==rt&&(ut++,rt=at?vt.first:vt.jc);var Ct=vt.link;z=Ct.i(vt.index),tt=Ct.i(vt.index+1);var Et=this.linkSpacing*(ut-(st-1)/2);y++,Ct.uh(),Ct.L(vt.index,z.x,z.y+Et),Ct.L(vt.index+1,tt.x,tt.y+Et),Ct.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new Af,rt.layer=Math.floor(z.x/2),at=b.i(0),st=b.i(b.pointsCount-1),rt.first=at.x+at.y*at.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=E,rt.link=b,E+2<b.pointsCount&&(at=b.i(E-1),st=b.i(E+2),ut=0,at.x<z.x?ut=st.x<z.x?3:z.y<tt.y?2:1:at.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,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,at=z;at<E;at++)st=x[at],st.jc!==rt&&(ut++,rt=st.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,at=z;at<E;at++)st=x[at],st.first!==rt&&(ft++,rt=st.first);for(at=!0,st=ft,ut<ft?(at=!1,st=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++)vt=x[ft],(at?vt.first:vt.jc)!==rt&&(ut++,rt=at?vt.first:vt.jc),Ct=vt.link,z=Ct.i(vt.index),tt=Ct.i(vt.index+1),Et=this.linkSpacing*(ut-(st-1)/2),y++,Ct.uh(),Ct.L(vt.index,z.x+Et,z.y),Ct.L(vt.index+1,tt.x+Et,tt.y),Ct.zf()}z=E}a=b}}}},bt=Yo.prototype,bt.Vx=function(a,y){return a instanceof Af&&y instanceof Af&&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},bt.Ux=function(a,y){return a instanceof Af&&y instanceof Af&&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},bt.Js=function(a,y){return a instanceof Af&&y instanceof Af&&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},bt.B=function(a,y){return a-=y,-1<a&&1>a},bt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Oe("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function Mf(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function Ef(a,y,x){a.He[a.tc[y]]=x}Ae.Object.defineProperties(Yo.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()):Oe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==Nv&&a!==_p||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Fv&&a!==xy&&a!==Py||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Tv&&a!==wy&&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!==by&&a!==Dv&&a!==Ly||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Nv=new Ke(Yo,"CycleDepthFirst",0),Sy=new Ke(Yo,"CycleGreedy",1),_p=new Ke(Yo,"CycleFromLayers",2),Fv=new Ke(Yo,"LayerOptimalLinkLength",0),xy=new Ke(Yo,"LayerLongestPathSink",1),Py=new Ke(Yo,"LayerLongestPathSource",2),Tv=new Ke(Yo,"InitDepthFirstOut",0),wy=new Ke(Yo,"InitDepthFirstIn",1),Cy=new Ke(Yo,"InitNaive",2),by=new Ke(Yo,"AggressiveNone",0),Dv=new Ke(Yo,"AggressiveLess",1),Ly=new Ke(Yo,"AggressiveMore",2),Xx=8;Yo.className="LayeredDigraphLayout",Yo.CycleDepthFirst=Nv,Yo.CycleGreedy=Sy,Yo.CycleFromLayers=_p,Yo.LayerOptimalLinkLength=Fv,Yo.LayerLongestPathSink=xy,Yo.LayerLongestPathSource=Py,Yo.InitDepthFirstOut=Tv,Yo.InitDepthFirstIn=wy,Yo.InitNaive=Cy,Yo.AggressiveNone=by,Yo.AggressiveLess=Dv,Yo.AggressiveMore=Ly,Yo.PackNone=0,Yo.PackExpand=1,Yo.PackStraighten=2,Yo.PackMedian=4,Yo.PackAll=15,Yo.AlignNone=0,Yo.AlignUpperLeft=1,Yo.AlignUpperRight=2,Yo.AlignLowerLeft=4,Yo.AlignLowerRight=8,Yo.AlignAll=15;function Af(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Af.className="SegInfo";function np(a){ba.call(this,a)}ae(np,ba),np.prototype.createVertex=function(){return new Ah(this)},np.prototype.createEdge=function(){return new $p(this)},np.className="LayeredDigraphNetwork";function Ah(a){$s.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}ae(Ah,$s);function ix(a,y){return a.index-y.index}function Bv(a,y){if(!a.$n){for(var x=[],b=Fn(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Fn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Oe("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Fn(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Yx(a){if(!a.ao){for(var y=[],x=Fn(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}Ah.prototype.Cl=function(a){$s.prototype.Cl.call(this,a),this.bo=this.co=null},Ah.prototype.Kl=function(a){$s.prototype.Kl.call(this,a),this.bo=this.co=null},Ah.prototype.zl=function(a){$s.prototype.zl.call(this,a),this.$n=this.ao=null},Ah.prototype.Jl=function(a){$s.prototype.Jl.call(this,a),this.$n=this.ao=null},Ae.Object.defineProperties(Ah.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)}}}),Ah.prototype.deleteDestinationEdge=Ah.prototype.Jl,Ah.prototype.addDestinationEdge=Ah.prototype.zl,Ah.prototype.deleteSourceEdge=Ah.prototype.Kl,Ah.prototype.addSourceEdge=Ah.prototype.Cl,Ah.className="LayeredDigraphVertex";function $p(a){Qu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}ae($p,Qu),Ae.Object.defineProperties($p.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)}}}),$p.className="LayeredDigraphEdge";function Wr(a){Qa.call(this),this.Ub=new Pn,this.Wn=zv,this.ud=od,this.vo=Hv,this.Bq=Iy,this.$v=[],this.td=!0,this.Rb=Wv,this.$d=new hn(10,10).freeze();var y=new Pg(this);this.W=new jh(y),this.Y=new jh(y),this.ru=[],a&&Object.assign(this,a)}ae(Wr,Qa),Wr.prototype.cloneProtected=function(a){Qa.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)},Wr.prototype.qb=function(a){a.classType===Wr?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:Oe("Unknown enum value: "+a):Qa.prototype.qb.call(this,a)},Wr.prototype.createNetwork=function(){return new Pg(this)},Wr.prototype.makeNetwork=function(a){function y(b){if(b instanceof ui)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Gn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof we?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof dr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Wr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Gv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof we&&(y=a),this.path===zv&&y!==null?this.ud=y.isTreePathToChildren?od:Sg:this.ud=this.path===zv?od: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 Pn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof ui?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof jh&&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,Ey(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,Ey(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jh&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jh&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jh&&lx(this,y);if(this.Cu(),this.layerStyle===Zv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?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,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.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,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jh&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Pn,this.isValidLayout=!0};function Jx(a){var y=new Pn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Wr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case od:x.sourceEdges.count===0&&this.Ub.add(x);break;case Sg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Oe("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,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case od:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Sg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Oe("Unhandled path value "+a.ud.toString())}}return b}function Ey(a,y){if(y!==null){switch(a.ud){case od:if(0<y.destinationEdges.count){for(var x=new Ln,b=y.destinationVertexes;b.next();){var E=b.value;ox(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Sg:if(0<y.sourceEdges.count){for(x=new Ln,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Oe("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)Ey(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Wr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ld&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var at=z[rt];ax(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case Hv:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Wr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===ld){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==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,b=0;b<x;b++)sx(a,y[b])}}Wr.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==ld&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Wr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case ip:break;case em:a.children.reverse();break;case nm:a.children.sort(a.comparer);break;case im:a.children.sort(a.comparer),a.children.reverse();break;default:Oe("Unhandled sorting value "+a.sorting.toString())}},Wr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Wr.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=kf(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,at=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||!E&&!b&&x||E&&b&&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=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&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)),E=en.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,en.free(E))};function kf(a){return a===qd||a===ld||a===_d||a===Md}function tm(a){return a===qd||a===ld}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(kf(x)){if(tm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===_d)return!0}}return!1}Wr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=kf(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,rt=Ay(a),at=0,st=a.comments,ut=st.length,ft=Zt.alloc(),vt=0;vt<ut;vt++){var Ct=st[vt],Et=Ct.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Et.width,a.bounds.y+at),Ct.move(ft),Ct=Ct.Sd();Ct.next();){var Nt=Ct.value;Nt.fromSpot=Fl,Nt.toSpot=ul}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=ul,Nt.toSpot=Fl;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=ul,Nt.toSpot=Fl;else for(ft.h(a.bounds.x+a.commentMargin-Et.width,a.bounds.y+at),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=Fl,Nt.toSpot=ul;at=0<=a.commentSpacing?at+(Et.height+a.commentSpacing):at+(a.commentSpacing-Et.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Et.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=Hl,Nt.toSpot=bl;else for(ft.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=bl,Nt.toSpot=Hl;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=bl,Nt.toSpot=Hl;else for(ft.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Et.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Nt=Ct.value,Nt.fromSpot=Hl,Nt.toSpot=bl;at=0<=a.commentSpacing?at+(Et.width+a.commentSpacing):at+(a.commentSpacing-Et.width)}}if(Zt.free(ft),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===od)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Wr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case jv:ux(this,a);break;case rm:if(a.alignment===ld)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=kf(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?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 E=ic(a);y=E===90||E===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===ad;var st=at===sd,ut=kf(at),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,Ct=this.computeNodeIndent(a),Et=a.rowSpacing,Nt=0;(b||st||a.hm||a.im&&a.maxGenerationCount===1)&&(Nt=Math.max(0,a.rowIndent)),b=a.width;var Qt=a.height,Gt=0,ee=0,ie=0,he=null,Ce=null,We=0,ii=0,bi=0,mi=0,Wn=0,xn=0,cr=0,ir=0;if(ut&&!tm(at)&&135<E&&tt.reverse(),tm(at))if(1<rt)for(var Lo=0;Lo<rt;Lo++)Lo%2===0&&Lo!==rt-1&&(ir=Math.max(ir,y?tt[Lo].Da.width:tt[Lo].Da.height));else rt===1&&(ir=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(at){case qd:ee=135>E?hx(this,a,tt,ir,Gt,ee):cx(this,a,tt,ir,Gt,ee),ir=ee.x,Gt=ee.width,ee=ee.height;break;case _d:for(he=0;he<rt;he++)Ce=tt[he],ft=Ce.Da,ie=xn===0?0:Et,y?(Ce.S.h(z-ft.width,mi+ie),Gt=Math.max(Gt,ft.width),ee=Math.max(ee,mi+ie+ft.height),mi+=ie+ft.height):(Ce.S.h(bi+ie,z-ft.height),Gt=Math.max(Gt,bi+ie+ft.width),ee=Math.max(ee,ft.height),bi+=ie+ft.width),xn++;break;case Md:for(he=0;he<rt;he++)Ce=tt[he],z=Ce.Da,ft=xn===0?0:Et,y?(Ce.S.h(vt/2+a.focus.x,mi+ft),Gt=Math.max(Gt,z.width),ee=Math.max(ee,mi+ft+z.height),mi+=ft+z.height):(Ce.S.h(bi+ft,vt/2+a.focus.y),Gt=Math.max(Gt,bi+ft+z.width),ee=Math.max(ee,z.height),bi+=ft+z.width),xn++}he=Iu(this,2),Ce=Iu(this,2),y?(he[0].h(0,0),he[1].h(0,ee),Ce[0].h(Gt,0)):(he[0].h(0,0),he[1].h(Gt,0),Ce[0].h(0,ee)),Ce[1].h(Gt,ee)}else for(Lo=0;Lo<rt;Lo++){var xa=tt[Lo],rl=xa.Da;if(y){0<ft&&0<xn&&bi+vt+rl.width>ft&&(bi<z&&_f(a,at,z-bi,0,cr,Lo-1),Wn++,xn=0,cr=Lo,ie=ee,bi=0,mi=135<E?-ee-Et:ee+Et),Rv(this,xa,0,mi);var ll=0;if(xn===0)he=xa.Yo,Ce=xa.kp,We=rl.width,ii=rl.height,(he===null||Ce===null||E!==ic(xa))&&(he=Iu(this,2),Ce=Iu(this,2),he[0].h(0,0),he[1].h(0,ii),Ce[0].h(We,0),Ce[1].h(We,ii));else{var iu=Si();ii=dx(this,a,xa,he,Ce,We,ii,iu),ll=ii.x,he=iu[0],Ce=iu[1],We=ii.width,ii=ii.height,Fi(iu),bi<rl.width&&0>ll&&(yg(a,-ll,0,cr,Lo-1),Iv(he,-ll,0),Iv(Ce,-ll,0),ll=0)}xa.S.h(ll,mi),Gt=Math.max(Gt,We),ee=Math.max(ee,ie+(Wn===0?0:Et)+rl.height),bi=We}else 0<ft&&0<xn&&mi+vt+rl.height>ft&&(mi<z&&_f(a,at,0,z-mi,cr,Lo-1),Wn++,xn=0,cr=Lo,ie=Gt,mi=0,bi=135<E?-Gt-Et:Gt+Et),Rv(this,xa,bi,0),ll=0,xn===0?(he=xa.Yo,Ce=xa.kp,We=rl.width,ii=rl.height,(he===null||Ce===null||E!==ic(xa))&&(he=Iu(this,2),Ce=Iu(this,2),he[0].h(0,0),he[1].h(We,0),Ce[0].h(0,ii),Ce[1].h(We,ii))):(iu=Si(),ii=dx(this,a,xa,he,Ce,We,ii,iu),ll=ii.x,he=iu[0],Ce=iu[1],We=ii.width,ii=ii.height,Fi(iu),mi<rl.height&&0>ll&&(yg(a,0,-ll,cr,Lo-1),Iv(he,0,-ll),Iv(Ce,0,-ll),ll=0)),xa.S.h(bi,ll),ee=Math.max(ee,ii),Gt=Math.max(Gt,ie+(Wn===0?0:Et)+rl.width),mi=ii;xn++}switch(0<Wn&&(y?(ee+=Math.max(0,x),bi<Gt&&_f(a,at,Gt-bi,0,cr,rt-1),0<Nt&&(st||yg(a,Nt,0,0,rt-1),Gt+=Nt)):(Gt+=Math.max(0,x),mi<ee&&_f(a,at,0,ee-mi,cr,rt-1),0<Nt&&(st||yg(a,0,Nt,0,rt-1),ee+=Nt))),Nt=st=0,at){case rp:y?st+=Gt/2-a.focus.x-Ct/2:Nt+=ee/2-a.focus.y-Ct/2;break;case xg:0<Wn?y?st+=Gt/2-a.focus.x-Ct/2:Nt+=ee/2-a.focus.y-Ct/2:y?(ir=tt[0].S.x+tt[0].la.x,st+=ir+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-ir)/2-a.focus.x-Ct/2):(ir=tt[0].S.y+tt[0].la.y,Nt+=ir+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-ir)/2-a.focus.y-Ct/2);break;case ad:y?(st-=Ct,Gt+=Ct):(Nt-=Ct,ee+=Ct);break;case sd:y?(st+=Gt-a.width+Ct,Gt+=Ct):(Nt+=ee-a.height+Ct,ee+=Ct);break;case qd:y?1<rt?st+=ir+vt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Nt+=ir+vt/2-a.focus.y:Nt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case _d:y?st+=Gt+vt/2-a.focus.x:Nt+=ee+vt/2-a.focus.y;break;case Md:break;default:ee=this.customAlignment(a,st,Nt,Gt,ee),st=ee[0],Nt=ee[1],Gt=ee[2],ee=ee[3]}for(Ct=0;Ct<rt;Ct++)ir=tt[Ct],y?ir.S.h(ir.S.x+ir.la.x-st,ir.S.y+(135<E?(ut?-ee:-ir.Da.height)+ir.la.y-x:Qt+x+ir.la.y)):ir.S.h(ir.S.x+(135<E?(ut?-Gt:-ir.Da.width)+ir.la.x-x:b+x+ir.la.x),ir.S.y+ir.la.y-Nt);if(rt=tt=0,ut?y?(Gt=ky(a,Gt,st),0>st&&(st=0),135<E&&(Nt+=ee+x),ee+=Qt+x,at===Md&&(tt+=vt/2+a.focus.x),rt+=Qt+x):(135<E&&(st+=Gt+x),Gt+=b+x,ee=Ny(a,ee,Nt),0>Nt&&(Nt=0),at===Md&&(rt+=vt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Gt&&(Gt=Fy(at,b-Gt,0),tt=Gt.x,rt=Gt.y,Gt=b,st=0):Gt=ky(a,Gt,st),0>st&&(tt-=st,st=0),135<E&&(Nt+=ee+x),ee=Math.max(Math.max(ee,Qt),ee+Qt+x),rt+=Qt+x):(135<E&&(st+=Gt+x),Gt=Math.max(Math.max(Gt,b),Gt+b+x),a.comments===null?Qt>ee&&(ee=Fy(at,0,Qt-ee),tt=ee.x,rt=ee.y,ee=Qt,Nt=0):ee=Ny(a,ee,Nt),0>Nt&&(rt-=Nt,Nt=0),tt+=b+x),0<Wn)E=Iu(this,4),Wn=Iu(this,4),y?(E[2].h(0,Qt+x),E[3].h(E[2].x,ee),Wn[2].h(Gt,E[2].y),Wn[3].h(Wn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Gt,E[2].y),Wn[2].h(E[2].x,ee),Wn[3].h(E[3].x,Wn[2].y));else{for(E=Iu(this,he.length+2),Wn=Iu(this,Ce.length+2),at=0;at<he.length;at++)ut=he[at],E[at+2].h(ut.x+tt,ut.y+rt);for(at=0;at<Ce.length;at++)ut=Ce[at],Wn[at+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(st,0),E[1].h(E[0].x,Qt),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Wn[0].h(st+b,0),Wn[1].h(Wn[0].x,Qt),Wn[2].y<Wn[1].y&&(Wn[2].x<Wn[0].x?Wn[2].assign(Wn[1]):Wn[1].assign(Wn[2])),Wn[3].y<Wn[2].y&&(Wn[3].x<Wn[0].x?Wn[3].assign(Wn[2]):Wn[2].assign(Wn[3])),E[2].y-=x/2,Wn[2].y-=x/2):(E[0].h(0,Nt),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Wn[0].h(0,Nt+Qt),Wn[1].h(b,Wn[0].y),Wn[2].x<Wn[1].x&&(Wn[2].y<Wn[0].y?Wn[2].assign(Wn[1]):Wn[1].assign(Wn[2])),Wn[3].x<Wn[2].x&&(Wn[3].y<Wn[0].y?Wn[3].assign(Wn[2]):Wn[2].assign(Wn[3])),E[2].x-=x/2,Wn[2].x-=x/2),yc(this,he),yc(this,Ce),a.Yo=E,a.kp=Wn,a.la.h(st,Nt),a.Da.h(Gt,ee)}break;default:Oe("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=kf(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=ic(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,rt=0;rt<tt;rt++){var at=E[rt];z=Math.max(z,x?at.Da.width:at.Da.height)}var st=y.alignment,ut=st===ad,ft=st===sd;rt=kf(st);var vt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Ct=y.nodeSpacing,Et=a.computeNodeIndent(y),Nt=ut||ft?0:Et/2,Qt=y.rowSpacing,Gt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Gt=Math.max(0,y.rowIndent)),ut=y.width;var ee=y.height,ie=0,he=0,Ce=0,We=0,ii=0,bi=0,mi=0,Wn=0,xn=0,cr=0;if(rt&&!tm(st)&&135<b&&E.reverse(),tm(st))if(1<tt)for(var ir=0;ir<tt;ir++){var Lo=E[ir],xa=Lo.Da;ir%2===0&&ir!==tt-1?xn=Math.max(xn,(x?xa.width:xa.height)+a.computeBusNodeSpacing(Lo)-Ct):ir%2!==0&&(cr=Math.max(cr,(x?xa.width:xa.height)+a.computeBusNodeSpacing(Lo)-Ct))}else tt===1&&(xn=x?E[0].Da.width:E[0].Da.height);if(rt)switch(st){case qd:case ld:he=135>b?hx(a,y,E,xn,ie,he):cx(a,y,E,xn,ie,he),xn=he.x,ie=he.width,he=he.height;break;case _d:for(vt=0;vt<tt;vt++)Nt=E[vt],Ce=Nt.Da,cr=mi===0?0:Qt,x?(Nt.S.h(z-Ce.width,ii+cr),ie=Math.max(ie,Ce.width),he=Math.max(he,ii+cr+Ce.height),ii+=cr+Ce.height):(Nt.S.h(We+cr,z-Ce.height),ie=Math.max(ie,We+cr+Ce.width),he=Math.max(he,Ce.height),We+=cr+Ce.width),mi++;break;case Md:for(z=0;z<tt;z++)vt=E[z],Nt=vt.Da,Ce=mi===0?0:Qt,x?(vt.S.h(Ct/2+y.focus.x,ii+Ce),ie=Math.max(ie,Nt.width),he=Math.max(he,ii+Ce+Nt.height),ii+=Ce+Nt.height):(vt.S.h(We+Ce,Ct/2+y.focus.y),ie=Math.max(ie,We+Ce+Nt.width),he=Math.max(he,Nt.height),We+=Ce+Nt.width),mi++}else for(cr=0;cr<tt;cr++)ir=E[cr],Lo=ir.Da,x?(0<vt&&0<mi&&We+Ct+Lo.width>vt&&(We<z&&_f(y,st,z-We,0,Wn,cr-1),bi++,mi=0,Wn=cr,Ce=he,We=0,ii=135<b?-he-Qt:he+Qt),xa=mi===0?Nt:Ct,Rv(a,ir,0,ii),ir.S.h(We+xa,ii),ie=Math.max(ie,We+xa+Lo.width),he=Math.max(he,Ce+(bi===0?0:Qt)+Lo.height),We+=xa+Lo.width):(0<vt&&0<mi&&ii+Ct+Lo.height>vt&&(ii<z&&_f(y,st,0,z-ii,Wn,cr-1),bi++,mi=0,Wn=cr,Ce=ie,ii=0,We=135<b?-ie-Qt:ie+Qt),xa=mi===0?Nt:Ct,Rv(a,ir,We,0),ir.S.h(We,ii+xa),he=Math.max(he,ii+xa+Lo.height),ie=Math.max(ie,Ce+(bi===0?0:Qt)+Lo.width),ii+=xa+Lo.height),mi++;switch(0<bi&&(x?(he+=Math.max(0,at),We<ie&&_f(y,st,ie-We,0,Wn,tt-1),0<Gt&&(ft||yg(y,Gt,0,0,tt-1),ie+=Gt)):(ie+=Math.max(0,at),ii<he&&_f(y,st,0,he-ii,Wn,tt-1),0<Gt&&(ft||yg(y,0,Gt,0,tt-1),he+=Gt))),Gt=ft=0,st){case rp:x?ft+=ie/2-y.focus.x-Et/2:Gt+=he/2-y.focus.y-Et/2;break;case xg:0<bi?x?ft+=ie/2-y.focus.x-Et/2:Gt+=he/2-y.focus.y-Et/2:x?(a=E[0].S.x+E[0].la.x,ft+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-Et/2):(a=E[0].S.y+E[0].la.y,Gt+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-Et/2);break;case ad:x?(ft-=Et,ie+=Et):(Gt-=Et,he+=Et);break;case sd:x?(ft+=ie-y.width+Et,ie+=Et):(Gt+=he-y.height+Et,he+=Et);break;case qd:case ld:x?1<tt?ft+=xn+Ct/2-y.focus.x:ft+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?Gt+=xn+Ct/2-y.focus.y:Gt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case _d:x?ft+=ie+Ct/2-y.focus.x:Gt+=he+Ct/2-y.focus.y;break;case Md:break;default:a=a.customAlignment(y,ft,Gt,ie,he),ft=a[0],Gt=a[1],ie=a[2],he=a[3]}for(a=0;a<tt;a++)Et=E[a],x?Et.S.h(Et.S.x+Et.la.x-ft,Et.S.y+(135<b?(rt?-he:-Et.Da.height)+Et.la.y-at:ee+at+Et.la.y)):Et.S.h(Et.S.x+(135<b?(rt?-ie:-Et.Da.width)+Et.la.x-at:ut+at+Et.la.x),Et.S.y+Et.la.y-Gt);x?(ie=ky(y,ie,ft),0>ft&&(ft=0),135<b&&(Gt+=he+at),he=Math.max(Math.max(he,ee),he+ee+at)):(135<b&&(ft+=ie+at),ie=Math.max(Math.max(ie,ut),ie+ut+at),he=Ny(y,he,Gt),0>Gt&&(Gt=0)),y.la.h(ft,Gt),y.Da.h(ie,he)}}Wr.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new en(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new en(b,0,E,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,st=ic(y)===90,ut=0,ft=0,vt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var Et=x[Ct],Nt=Et.Da,Qt=ut===0?0:at;if(st){var Gt=a.computeBusNodeSpacing(Et)-rt;Et.S.h(b-(Nt.width+Gt),vt+Qt),E=Math.max(E,Nt.width+Gt),z=Math.max(z,vt+Qt+Nt.height),vt+=Qt+Nt.height}else Gt=a.computeBusNodeSpacing(Et)-rt,Et.S.h(ft+Qt,b-(Nt.height+Gt)),z=Math.max(z,Nt.height+Gt),E=Math.max(E,ft+Qt+Nt.width),ft+=Qt+Nt.width;ut++}for(ut=0,Et=ft,Ct=vt,st?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Nt=0;Nt<tt;Nt++)if(Nt%2!==0){Qt=x[Nt],Gt=Qt.Da;var ee=ut===0?0:at;if(st){var ie=a.computeBusNodeSpacing(Qt)-rt;Qt.S.h(ft+ie,vt+ee),E=Math.max(E,ft+Gt.width+ie),z=Math.max(z,vt+ee+Gt.height),vt+=ee+Gt.height}else ie=a.computeBusNodeSpacing(Qt)-rt,Qt.S.h(ft+ee,vt+ie),E=Math.max(E,ft+ee+Gt.width),z=Math.max(z,vt+Gt.height+ie),ft+=ee+Gt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,st?Math.max(Math.abs(Ct),Math.abs(vt)):Math.max(Math.abs(Et),Math.abs(ft))),st?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),st=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,st+tt.width),0>st&&(E-=st),z=Math.max(z,Math.max(Ct,vt)+a+tt.height),0>x.S.x&&(b=Ov(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Et,ft)+a+tt.width),vt=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(b=Ov(y,x.S.y,!0,b,rt)))),new en(b,0,E,z)}function cx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new en(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new en(b,0,E,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,st=ic(y)===270,ut=0,ft=0,vt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var Et=x[Ct],Nt=Et.Da,Qt=ut===0?0:at;if(st){var Gt=a.computeBusNodeSpacing(Et)-rt;vt-=Qt+Nt.height,Et.S.h(b-(Nt.width+Gt),vt),E=Math.max(E,Nt.width+Gt),z=Math.max(z,Math.abs(vt))}else Gt=a.computeBusNodeSpacing(Et)-rt,ft-=Qt+Nt.width,Et.S.h(ft,b-(Nt.height+Gt)),z=Math.max(z,Nt.height+Gt),E=Math.max(E,Math.abs(ft));ut++}for(ut=0,Et=ft,Ct=vt,st?(ft=b+rt,vt=0):(ft=0,vt=b+rt),Nt=0;Nt<tt;Nt++)if(Nt%2!==0){Qt=x[Nt],Gt=Qt.Da;var ee=ut===0?0:at;if(st){var ie=a.computeBusNodeSpacing(Qt)-rt;vt-=ee+Gt.height,Qt.S.h(ft+ie,vt),E=Math.max(E,ft+Gt.width+ie),z=Math.max(z,Math.abs(vt))}else ie=a.computeBusNodeSpacing(Qt)-rt,ft-=ee+Gt.width,Qt.S.h(ft,vt+ie),z=Math.max(z,vt+Gt.height+ie),E=Math.max(E,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(at=x[tt-1],ut=at.Da,a=a.computeBusLastRowSpacing(at,st?Math.max(Math.abs(Ct),Math.abs(vt)):Math.max(Math.abs(Et),Math.abs(ft))),st?(at.S.h(b+rt/2-at.focus.x-at.la.x,-z-ut.height-a),ft=b+rt/2-at.focus.x-at.la.x,E=Math.max(E,ft+ut.width),0>ft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(Ct,vt))+a+ut.height),0>at.S.x&&(b=Ov(y,at.S.x,!1,b,rt))):(at.S.h(-E-ut.width-a,b+rt/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Et,ft))+a+ut.width),vt=b+rt/2-at.focus.y-at.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>at.S.y&&(b=Ov(y,at.S.y,!0,b,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+E,rt.S.y);return new en(b,0,E,z)}Wr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Wr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Ov(a,y,x,b,E){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(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function ky(a,y,x){switch(a.alignment){case xg:case rp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case ad:return a.width>y?a.width:y;case sd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case qd:case ld:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case _d:return a.width-a.focus.x+a.nodeSpacing/2+y;case Md:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case xg:case rp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ad:return a.height>y?a.height:y;case sd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case qd:case ld:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case _d:return a.height-a.focus.y+a.nodeSpacing/2+y;case Md:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case rp:y/=2,x/=2;break;case xg:y/=2,x/=2;break;case ad:x=y=0;break;case sd:break;default:Oe("Unhandled alignment value "+a.toString())}return new Zt(y,x)}function _f(a,y,x,b,E,z){y=Fy(y,x,b),yg(a,y.x,y.y,E,z)}function yg(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function Rv(a,y,x,b){var E=y.parent;switch(a.ud){case od:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Sg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Oe("Unhandled path value "+a.ud.toString())}}function Iv(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function dx(a,y,x,b,E,z,tt,rt){var at=ic(y),st=at===90||at===270,ut=y.nodeSpacing;y=b;var ft=E;b=z;var vt=tt,Ct=x.Yo,Et=x.kp;tt=x.Da;var Nt=st?Math.max(vt,tt.height):Math.max(b,tt.width);if((Ct===null||at!==ic(x))&&(Ct=Iu(a,2),Et=Iu(a,2),st?(Ct[0].h(0,0),Ct[1].h(0,tt.height),Et[0].h(tt.width,0),Et[1].h(Et[0].x,Ct[1].y)):(Ct[0].h(0,0),Ct[1].h(tt.width,0),Et[0].h(0,tt.height),Et[1].h(Ct[1].x,Et[0].y))),st){if(vt=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;){z=ft[x];var Qt=Ct[E];at=Qt.x,st=Qt.y,at+=b;var Gt=z;x+1<ft.length&&(Gt=ft[x+1]);var ee=Qt;Qt=ee.x,ee=ee.y,E+1<Ct.length&&(ee=Ct[E+1],Qt=ee.x,ee=ee.y,Qt+=b);var ie=vt;z.y===st?ie=at-z.x:z.y>st&&z.y<ee?ie=at+(z.y-st)/(ee-st)*(Qt-at)-z.x:st>z.y&&st<Gt.y&&(ie=at-(z.x+(st-z.y)/(Gt.y-z.y)*(Gt.x-z.x))),ie<vt&&(vt=ie),Gt.y<=z.y?x++:ee<=st?E++:(Gt.y<=ee&&x++,ee<=Gt.y&&E++)}if(vt=b-vt,vt+=ut,x=Ct,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Iu(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)st=x[z++],ut[b++].h(st.x+E,st.y);for(;at<y.length;)st=y[at++],ut[b++].h(st.x,st.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)st=x[z++],ut[b++].h(st.x+E,st.y);for(x=Iu(a,b),at=0;at<b;at++)x[at].assign(ut[at]);yc(a,ut),b=x}if(z=Et,at=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=Iu(a,ft.length+z.length),E=st=x=0;x<ft.length&&ft[x].y<z[0].y;)Gt=ft[x++],ut[E++].h(Gt.x,Gt.y);for(;st<z.length;)Gt=z[st++],ut[E++].h(Gt.x+at,Gt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)at=ft[x++],ut[E++].h(at.x,at.y);for(z=Iu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);yc(a,ut),E=z}return z=Math.max(0,vt)+tt.width,tt=Nt,yc(a,y),yc(a,Ct),yc(a,ft),yc(a,Et),rt[0]=b,rt[1]=E,new en(vt,0,z,tt)}if(b=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;)z=ft[x],Qt=Ct[E],at=Qt.x,st=Qt.y,st+=vt,Gt=z,x+1<ft.length&&(Gt=ft[x+1]),ee=Qt,Qt=ee.x,ee=ee.y,E+1<Ct.length&&(ee=Ct[E+1],Qt=ee.x,ee=ee.y,ee+=vt),ie=b,z.x===at?ie=st-z.y:z.x>at&&z.x<Qt?ie=st+(z.x-at)/(Qt-at)*(ee-st)-z.y:at>z.x&&at<Gt.x&&(ie=st-(z.y+(at-z.x)/(Gt.x-z.x)*(Gt.y-z.y))),ie<b&&(b=ie),Gt.x<=z.x?x++:Qt<=at?E++:(Gt.x<=Qt&&x++,Qt<=Gt.x&&E++);if(vt-=b,vt+=ut,x=Ct,E=vt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=Iu(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)st=x[z++],ut[b++].h(st.x,st.y+E);for(;at<y.length;)st=y[at++],ut[b++].h(st.x,st.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)st=x[z++],ut[b++].h(st.x,st.y+E);for(x=Iu(a,b),at=0;at<b;at++)x[at].assign(ut[at]);yc(a,ut),b=x}if(z=Et,at=vt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=Iu(a,ft.length+z.length),E=st=x=0;x<ft.length&&ft[x].x<z[0].x;)Gt=ft[x++],ut[E++].h(Gt.x,Gt.y);for(;st<z.length;)Gt=z[st++],ut[E++].h(Gt.x,Gt.y+at);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)at=ft[x++],ut[E++].h(at.x,at.y);for(z=Iu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);yc(a,ut),E=z}return z=Nt,tt=Math.max(0,vt)+tt.height,yc(a,y),yc(a,Ct),yc(a,ft),yc(a,Et),rt[0]=b,rt[1]=E,new en(vt,0,z,tt)}function Iu(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Zt;return a}function yc(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Wr.prototype.arrangeTrees=function(){if(this.Rb===Gv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof jh){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof jh&&a.push(x);switch(this.sorting){case ip:break;case em:a.reverse();break;case nm:a.sort(this.comparer);break;case im:a.sort(this.comparer),a.reverse();break;default:Oe("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Ty(this,E,y+E.la.x,x+E.la.y),this.Rb){case Wv:x+=E.Da.height+this.$d.height;break;case Ry:y+=E.Da.width+this.$d.width;break;default:Oe("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var tt=y[z];Ty(a,tt,x+tt.S.x,b+tt.S.y)}}}Wr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Wr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Wr.prototype.Gu=function(){if(this.layerStyle===Zv){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Zt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Zt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],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,E.push(new en(0,z,x,rt))):this.angle===90?(E.push(new en(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new en(z,0,rt,x))):(E.push(new en(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},Wr.prototype.commitLayers=function(){},Wr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Wr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof jh&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}Wr.prototype.setPortSpots=function(a){var y=a.alignment;if(kf(y)){var x=this.ud===od,b=ic(a);switch(b){case 0:var E=ul;break;case 90:E=bl;break;case 180:E=Fl;break;default:E=Hl}var z=a.children,tt=z.length;switch(y){case qd:case ld: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 at=b===90||b===270?Fl:Hl;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:at=Fl;break;case 90:at=Hl;break;case 180:at=ul;break;default:at=bl}else y%2===0&&(at=b===90||b===270?ul:bl);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=at)):(a.setsPortSpot&&(rt.fromSpot=at),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case _d:for(b=b===90||b===270?ul:bl,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case Md:for(b=b===90||b===270?Fl:Hl,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=ic(a),this.ud===od){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=ul;break;case 90:b.fromSpot=bl;break;case 180:b.fromSpot=Fl;break;default:b.fromSpot=Hl}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Fl;break;case 90:b.toSpot=Hl;break;case 180:b.toSpot=ul;break;default:b.toSpot=bl}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=ul;break;case 90:b.toSpot=bl;break;case 180:b.toSpot=Fl;break;default:b.toSpot=Hl}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Fl;break;case 90:b.fromSpot=Hl;break;case 180:b.fromSpot=ul;break;default:b.fromSpot=bl}else b.fromSpot=a.childPortSpot}};function ic(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Wr.prototype.computeLayerSpacing=function(a){var y=ic(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Wr.prototype.computeNodeIndent=function(a){var y=ic(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Ae.Object.defineProperties(Wr.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!==Hv&&a!==By&&a!==Dy&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Iy&&a!==zy&&a!==Zv||(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!==Wv&&a!==Ry&&a!==Gv||(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!==ip&&a!==em&&a!==nm&&!im||(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()):Oe("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!==jv&&a!==rm||(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!==ip&&a!==em&&a!==nm&&!im||(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!==jv&&a!==rm||(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 zv=new Ke(Wr,"PathDefault",-1),od=new Ke(Wr,"PathDestination",0),Sg=new Ke(Wr,"PathSource",1),ip=new Ke(Wr,"SortingForwards",10),em=new Ke(Wr,"SortingReverse",11),nm=new Ke(Wr,"SortingAscending",12),im=new Ke(Wr,"SortingDescending",13),rp=new Ke(Wr,"AlignmentCenterSubtrees",20),xg=new Ke(Wr,"AlignmentCenterChildren",21),ad=new Ke(Wr,"AlignmentStart",22),sd=new Ke(Wr,"AlignmentEnd",23),qd=new Ke(Wr,"AlignmentBus",24),ld=new Ke(Wr,"AlignmentBusBranching",25),_d=new Ke(Wr,"AlignmentTopLeftBus",26),Md=new Ke(Wr,"AlignmentBottomRightBus",27),jv=new Ke(Wr,"CompactionNone",30),rm=new Ke(Wr,"CompactionBlock",31),Hv=new Ke(Wr,"StyleLayered",40),Dy=new Ke(Wr,"StyleLastParents",41),By=new Ke(Wr,"StyleAlternating",42),Oy=new Ke(Wr,"StyleRootOnly",43),Wv=new Ke(Wr,"ArrangementVertical",50),Ry=new Ke(Wr,"ArrangementHorizontal",51),Gv=new Ke(Wr,"ArrangementFixedRoots",52),Iy=new Ke(Wr,"LayerIndividual",60),zy=new Ke(Wr,"LayerSiblings",61),Zv=new Ke(Wr,"LayerUniform",62);Wr.className="TreeLayout",Wr.PathDefault=zv,Wr.PathDestination=od,Wr.PathSource=Sg,Wr.SortingForwards=ip,Wr.SortingReverse=em,Wr.SortingAscending=nm,Wr.SortingDescending=im,Wr.AlignmentCenterSubtrees=rp,Wr.AlignmentCenterChildren=xg,Wr.AlignmentStart=ad,Wr.AlignmentEnd=sd,Wr.AlignmentBus=qd,Wr.AlignmentBusBranching=ld,Wr.AlignmentTopLeftBus=_d,Wr.AlignmentBottomRightBus=Md,Wr.CompactionNone=jv,Wr.CompactionBlock=rm,Wr.StyleLayered=Hv,Wr.StyleLastParents=Dy,Wr.StyleAlternating=By,Wr.StyleRootOnly=Oy,Wr.ArrangementVertical=Wv,Wr.ArrangementHorizontal=Ry,Wr.ArrangementFixedRoots=Gv,Wr.LayerIndividual=Iy,Wr.LayerSiblings=zy,Wr.LayerUniform=Zv;function Pg(a){ba.call(this,a)}ae(Pg,ba),Pg.prototype.createVertex=function(){return new jh(this)},Pg.prototype.createEdge=function(){return new op(this)},Pg.className="TreeNetwork";function jh(a){$s.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Zt(0,0),this.Da=new hn(0,0),this.la=new Zt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=ip,this.hd=ry,this.Kb=0,this.Jb=xg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=rm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=al,this.wr=!0,this.Dp=al}ae(jh,$s),jh.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)},Ae.Object.defineProperties(jh.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)}}}),jh.className="TreeVertex";function op(a){Qu.call(this,a),this.$t=new Zt(0,0)}ae(op,Qu),op.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case od:x=this.fromVertex,b=this.toVertex;break;case Sg:x=this.toVertex,b=this.fromVertex;break;default:Oe("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=ic(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var at=a.curve===dh,st=a.isOrthogonal,ut;if(a.uh(),st||at){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),vt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),vt=a.i(a.pointsCount-1)}var Ct=a.i(a.pointsCount-1);z===0?(x.alignment===sd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ut,ft.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+(E.x-rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,b.right+tt/2,ft.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===sd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===sd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ut,ft.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+(E.x+rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,b.left-tt/2,ft.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===sd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+(E.y+rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):Oe("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=ic(x),y!==ic(E)&&(tt=b.computeLayerSpacing(x),rt=x.bounds,x=E.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===dh,E=a.isOrthogonal,b=kf(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)):E?b?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)):E?b?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)):E?b?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)):E?b?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()))}}},Ae.Object.defineProperties(op.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)}}}),op.className="TreeEdge",Fa.prototype.initializeStandardTools=function(){this.gb("Action",new ws,this.mouseDownTools),this.gb("Relinking",new yo,this.mouseDownTools),this.gb("LinkReshaping",new tr,this.mouseDownTools),this.gb("Rotating",new ts,this.mouseDownTools),this.gb("Resizing",new Ko,this.mouseDownTools),this.gb("Linking",new vo,this.mouseMoveTools),this.gb("Dragging",new Ya,this.mouseMoveTools),this.gb("DragSelecting",new Ws,this.mouseMoveTools),this.gb("Panning",new oa,this.mouseMoveTools),this.gb("ContextMenu",new es,this.mouseUpTools),this.gb("TextEditing",new Co,this.mouseUpTools),this.gb("ClickCreating",new pl,this.mouseUpTools),this.gb("ClickSelecting",new hs,this.mouseUpTools)},Ic("Horizontal",new ym),Ic("Spot",new xm),Ic("Table",new wm),Ic("Viewbox",new Lm),Ic("TableRow",new Cm),Ic("TableColumn",new bm),Ic("Graduated",new xp),Ic("Grid",new Sp),Bh.add("GraphLinksModel",sl),Bh.add("TreeModel",Mh);var Vv=ke.go,jy={get licenseKey(){return we.licenseKey},set licenseKey(a){we.licenseKey=a},get version(){return we.version},Group:dr,EnumValue:Ke,List:Ln,Set:Pn,Map:si,Point:Zt,Size:hn,Rect:en,Margin:qi,Spot:Bi,Geometry:Vn,PathFigure:Is,PathSegment:ho,InputEvent:gl,DiagramEvent:ih,ChangedEvent:Va,Model:Ti,GraphLinksModel:ro,TreeModel:mu,Binding:Bs,Transaction:Hs,UndoManager:Ka,CommandHandler:Yt,Tool:io,DraggingTool:Ya,DraggingInfo:Qh,DraggingOptions:ot,LinkingBaseTool:nr,LinkingTool:vo,RelinkingTool:yo,LinkReshapingTool:tr,ResizingTool:Ko,RotatingTool:ts,ClickSelectingTool:hs,ActionTool:ws,ClickCreatingTool:pl,HTMLInfo:Ta,ContextMenuTool:es,DragSelectingTool:Ws,PanningTool:oa,TextEditingTool:Co,ToolManager:Fa,Animation:Re,AnimationManager:Bl,AnimationTrigger:pi,Layer:$n,Diagram:we,Palette:ct,Overview:pt,Brush:Zo,GraphObject:ge,Panel:Dn,RowColumnDefinition:Zs,Shape:Sr,TextBlock:Ca,Picture:Au,Part:Wi,Adornment:mo,Node:ui,Link:Gn,Placeholder:du,Layout:Qa,LayoutNetwork:ba,LayoutVertex:$s,LayoutEdge:Qu,GridLayout:Sl,PanelLayout:_s,CircularLayout:ss,CircularNetwork:tp,CircularVertex:Yp,CircularEdge:bv,ForceDirectedLayout:Il,ForceDirectedNetwork:vg,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:Yo,LayeredDigraphNetwork:np,LayeredDigraphVertex:Ah,LayeredDigraphEdge:$p,TreeLayout:Wr,TreeNetwork:Pg,TreeVertex:jh,TreeEdge:op};typeof Vv=="object"&&Vv.version&&Li("WARNING: a `go` object on the root object is already defined. "+("Debug"in Vv?"debug ":"")+"version: "+Vv.version+", replaced with version: "+jy.version),we.prototype.go=jy,ke.go=jy,typeof un.exports=="object"&&(un.exports=typeof Mt.g!="undefined"?Mt.g.go:self.go)}();var Pt=typeof Mt.g!="undefined"?Mt.g.go:self.go;const ne=typeof Mt.g!="undefined"?Mt.g.go:self.go,Ne=ne.Group,Be=ne.EnumValue,Pe=ne.List,Bt=ne.Set,Ut=ne.Map,ue=ne.Point,se=ne.Size,Se=ne.Rect,Xe=ne.Margin,pe=ne.Spot,Ht=ne.Geometry,Dt=ne.PathFigure,nt=ne.PathSegment,et=ne.InputEvent,ht=ne.DiagramEvent,lt=ne.ChangedEvent,gt=ne.Model,mt=ne.GraphLinksModel,xt=ne.TreeModel,St=ne.Binding,zt=ne.Transaction,Jt=ne.UndoManager,re=ne.CommandHandler,oe=ne.Tool,$t=ne.DraggingTool,Le=ne.DraggingInfo,de=ne.LinkingBaseTool,Fe=ne.LinkingTool,rn=ne.RelinkingTool,De=ne.LinkReshapingTool,jn=ne.ResizingTool,Bn=ne.RotatingTool,an=ne.ClickSelectingTool,Zn=ne.ActionTool,_t=ne.ClickCreatingTool,Tt=ne.HTMLInfo,ce=ne.ContextMenuTool,_e=ne.DragSelectingTool,Ye=ne.PanningTool,xe=ne.TextEditingTool,on=ne.ToolManager,tn=ne.Animation,Cn=ne.AnimationManager,Ie=ne.AnimationTrigger,ve=ne.Layer,ze=ne.Diagram,je=ne.Palette,He=ne.Overview,Ot=ne.Brush,Lt=ne.GraphObject,wt=ne.Panel,Ft=ne.RowColumnDefinition,Wt=ne.Shape,kt=ne.TextBlock,Xt=ne.TextBlockMetrics,$e=ne.Picture,Je=ne.Part,fn=ne.Adornment,Ve=ne.Node,Mn=ne.Link,Ue=ne.Placeholder,ti=ne.Layout,Qn=ne.LayoutNetwork,Hn=ne.LayoutVertex,pn=ne.LayoutEdge,gi=ne.GridLayout,Mi=ne.PanelLayout,In=ne.CircularLayout,ei=ne.CircularNetwork,Ki=ne.CircularVertex,hi=ne.CircularEdge,$i=ne.ForceDirectedLayout,pr=ne.ForceDirectedNetwork,rr=ne.ForceDirectedVertex,ki=ne.ForceDirectedEdge,sr=ne.LayeredDigraphLayout,Ur=ne.LayeredDigraphNetwork,Jo=ne.LayeredDigraphVertex,Rr=ne.LayeredDigraphEdge,To=ne.TreeLayout,pa=ne.TreeNetwork,co=ne.TreeVertex,Xi=ne.TreeEdge,bn=ne.version},15979:function(un,Nn,Mt){"use strict";Mt.d(Nn,{hP:function(){return He}});var Pt=function(Ot,Lt){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Ft){wt.__proto__=Ft}||function(wt,Ft){for(var Wt in Ft)Object.prototype.hasOwnProperty.call(Ft,Wt)&&(wt[Wt]=Ft[Wt])})(Ot,Lt)};function ne(Ot,Lt){function wt(){this.constructor=Ot}Pt(Ot,Lt),Ot.prototype=Lt===null?Object.create(Lt):(wt.prototype=Lt.prototype,new wt)}function Ne(Ot,Lt,wt,Ft){return new(wt||(wt=Promise))(function(Wt,kt){function Xt(fn){try{Je(Ft.next(fn))}catch(Ve){kt(Ve)}}function $e(fn){try{Je(Ft.throw(fn))}catch(Ve){kt(Ve)}}function Je(fn){var Ve;fn.done?Wt(fn.value):(Ve=fn.value,Ve instanceof wt?Ve:new wt(function(Mn){Mn(Ve)})).then(Xt,$e)}Je((Ft=Ft.apply(Ot,Lt||[])).next())})}function Be(Ot,Lt){var wt,Ft,Wt,kt,Xt={label:0,sent:function(){if(1&Wt[0])throw Wt[1];return Wt[1]},trys:[],ops:[]};return kt={next:$e(0),throw:$e(1),return:$e(2)},typeof Symbol=="function"&&(kt[Symbol.iterator]=function(){return this}),kt;function $e(Je){return function(fn){return function(Ve){if(wt)throw new TypeError("Generator is already executing.");for(;Xt;)try{if(wt=1,Ft&&(Wt=2&Ve[0]?Ft.return:Ve[0]?Ft.throw||((Wt=Ft.return)&&Wt.call(Ft),0):Ft.next)&&!(Wt=Wt.call(Ft,Ve[1])).done)return Wt;switch(Ft=0,Wt&&(Ve=[2&Ve[0],Wt.value]),Ve[0]){case 0:case 1:Wt=Ve;break;case 4:return Xt.label++,{value:Ve[1],done:!1};case 5:Xt.label++,Ft=Ve[1],Ve=[0];continue;case 7:Ve=Xt.ops.pop(),Xt.trys.pop();continue;default:if(Wt=Xt.trys,!((Wt=Wt.length>0&&Wt[Wt.length-1])||Ve[0]!==6&&Ve[0]!==2)){Xt=0;continue}if(Ve[0]===3&&(!Wt||Ve[1]>Wt[0]&&Ve[1]<Wt[3])){Xt.label=Ve[1];break}if(Ve[0]===6&&Xt.label<Wt[1]){Xt.label=Wt[1],Wt=Ve;break}if(Wt&&Xt.label<Wt[2]){Xt.label=Wt[2],Xt.ops.push(Ve);break}Wt[2]&&Xt.ops.pop(),Xt.trys.pop();continue}Ve=Lt.call(Ot,Xt)}catch(Mn){Ve=[6,Mn],Ft=0}finally{wt=Wt=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([Je,fn])}}}function Pe(){for(var Ot=0,Lt=0,wt=arguments.length;Lt<wt;Lt++)Ot+=arguments[Lt].length;var Ft=Array(Ot),Wt=0;for(Lt=0;Lt<wt;Lt++)for(var kt=arguments[Lt],Xt=0,$e=kt.length;Xt<$e;Xt++,Wt++)Ft[Wt]=kt[Xt];return Ft}var Bt=function(){function Ot(){}return Ot.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ot.setAttributes=function(Lt,wt){for(var Ft=0,Wt=wt;Ft<Wt.length;Ft++){var kt=Wt[Ft],Xt=kt[0],$e=kt[1];Lt.setAttribute(Xt,$e)}},Ot.createRect=function(Lt,wt,Ft){var Wt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Wt.setAttribute("width",Lt.toString()),Wt.setAttribute("height",wt.toString()),Ft&&Ot.setAttributes(Wt,Ft),Wt},Ot.createLine=function(Lt,wt,Ft,Wt,kt){var Xt=document.createElementNS("http://www.w3.org/2000/svg","line");return Xt.setAttribute("x1",Lt.toString()),Xt.setAttribute("y1",wt.toString()),Xt.setAttribute("x2",Ft.toString()),Xt.setAttribute("y2",Wt.toString()),kt&&Ot.setAttributes(Xt,kt),Xt},Ot.createPolygon=function(Lt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ft.setAttribute("points",Lt),wt&&Ot.setAttributes(Ft,wt),Ft},Ot.createCircle=function(Lt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ft.setAttribute("cx",(Lt/2).toString()),Ft.setAttribute("cy",(Lt/2).toString()),Ft.setAttribute("r",Lt.toString()),wt&&Ot.setAttributes(Ft,wt),Ft},Ot.createEllipse=function(Lt,wt,Ft){var Wt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Wt.setAttribute("cx",(Lt/2).toString()),Wt.setAttribute("cy",(wt/2).toString()),Wt.setAttribute("rx",(Lt/2).toString()),Wt.setAttribute("ry",(wt/2).toString()),Ft&&Ot.setAttributes(Wt,Ft),Wt},Ot.createGroup=function(Lt){var wt=document.createElementNS("http://www.w3.org/2000/svg","g");return Lt&&Ot.setAttributes(wt,Lt),wt},Ot.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ot.createMarker=function(Lt,wt,Ft,Wt,kt,Xt,$e){var Je=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ot.setAttributes(Je,[["id",Lt],["orient",wt],["markerWidth",Ft.toString()],["markerHeight",Wt.toString()],["refX",kt.toString()],["refY",Xt.toString()]]),Je.appendChild($e),Je},Ot.createText=function(Lt){var wt=document.createElementNS("http://www.w3.org/2000/svg","text");return wt.setAttribute("x","0"),wt.setAttribute("y","0"),Lt&&Ot.setAttributes(wt,Lt),wt},Ot.createTSpan=function(Lt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ft.textContent=Lt,wt&&Ot.setAttributes(Ft,wt),Ft},Ot.createImage=function(Lt){var wt=document.createElementNS("http://www.w3.org/2000/svg","image");return Lt&&Ot.setAttributes(wt,Lt),wt},Ot.createPoint=function(Lt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ft.x=Lt,Ft.y=wt,Ft},Ot.createPath=function(Lt,wt){var Ft=document.createElementNS("http://www.w3.org/2000/svg","path");return Ft.setAttribute("d",Lt),wt&&Ot.setAttributes(Ft,wt),Ft},Ot}(),Ut=function(){function Ot(){}return Ot.addKey=function(Lt){Ot.key=Lt},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}(),ue=function(){function Ot(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ot.prototype.rasterize=function(Lt,wt,Ft){var Wt=this;return new Promise(function(kt){var Xt=Ft!==void 0?Ft:document.createElement("canvas");Lt===null&&(Wt.markersOnly=!0,Wt.naturalSize=!1);var $e=document.createElementNS("http://www.w3.org/2000/svg","svg");$e.setAttribute("xmlns","http://www.w3.org/2000/svg"),$e.setAttribute("width",wt.width.baseVal.valueAsString),$e.setAttribute("height",wt.height.baseVal.valueAsString),$e.setAttribute("viewBox","0 0 "+wt.viewBox.baseVal.width.toString()+" "+wt.viewBox.baseVal.height.toString()),$e.innerHTML=wt.innerHTML,Wt.naturalSize===!0?($e.width.baseVal.value=Lt.naturalWidth,$e.height.baseVal.value=Lt.naturalHeight):Wt.width!==void 0&&Wt.height!==void 0&&($e.width.baseVal.value=Wt.width,$e.height.baseVal.value=Wt.height),Xt.width=$e.width.baseVal.value,Xt.height=$e.height.baseVal.value;var Je=$e.outerHTML,fn=Xt.getContext("2d");Wt.markersOnly!==!0&&fn.drawImage(Lt,0,0,Xt.width,Xt.height);var Ve=window.URL,Mn=new Image(Xt.width,Xt.height);Mn.setAttribute("crossOrigin","anonymous");var Ue=new Blob([Je],{type:"image/svg+xml"}),ti=Ve.createObjectURL(Ue);Mn.onload=function(){fn.drawImage(Mn,0,0),Ve.revokeObjectURL(ti);var Qn=Xt.toDataURL(Wt.imageType,Wt.imageQuality);kt(Qn)},Mn.src=ti})},Ot}(),se=function(){},Se=function(){function Ot(Lt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Lt+"_"}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(Lt){return this.styleSheet===void 0&&this.addStyleSheet(),Lt.name=""+this.classNamePrefix+Lt.localName,this.classes.push(Lt),this.styleSheet.sheet.insertRule("."+Lt.name+" {"+Lt.style+"}",this.styleSheet.sheet.cssRules.length),Lt},Ot.prototype.addRule=function(Lt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Lt),this.styleSheet.sheet.insertRule(Lt.selector+" {"+Lt.style+"}",this.styleSheet.sheet.cssRules.length)},Ot.prototype.addStyleSheet=function(){var Lt;this.styleSheet=document.createElement("style"),((Lt=this.styleSheetRoot)!==null&&Lt!==void 0?Lt:document.head).appendChild(this.styleSheet),this.addRule(new Xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new pe("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new pe("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ot.prototype.removeStyleSheet=function(){var Lt;this.styleSheet&&(((Lt=this.styleSheetRoot)!==null&&Lt!==void 0?Lt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ot}(),Xe=function(Ot,Lt){this.selector=Ot,this.style=Lt},pe=function(Ot,Lt){this.localName=Ot,this.style=Lt},Ht=function(){function Ot(Lt,wt,Ft,Wt,kt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Lt,this.displayMode=wt,this.markerItems=Ft,this.uiStyleSettings=Wt,this.styles=kt,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(Lt){var wt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Lt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ft=document.createElement("div");Ft.className=this.toolbarBlockStyleClass.name,Ft.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ft),this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ft,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(kt){var Xt=document.createElement("div");Xt.className=""+wt.toolbarButtonStyleClass.name,Xt.setAttribute("data-type-name",kt.typeName),Xt.innerHTML=kt.icon,Xt.addEventListener("click",function(){wt.markerToolbarButtonClicked(Xt,kt)}),wt.buttons.push(Xt),wt.markerButtons.push(Xt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Wt=document.createElement("div");Wt.className=this.toolbarBlockStyleClass.name,Wt.style.whiteSpace="nowrap",Wt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Wt),this.addActionButton(Wt,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Wt,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ot.prototype.addButtonClickListener=function(Lt){this.buttonClickListeners.push(Lt)},Ot.prototype.removeButtonClickListener=function(Lt){this.buttonClickListeners.indexOf(Lt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Lt),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Lt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var wt=0;wt<this.markerButtons.length;wt++)wt<Lt||wt===Lt&&this.markerButtons.length-1===Lt?this.markerButtonBlock.appendChild(this.markerButtons[wt]):(wt===Lt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[wt]))}},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 Lt=this;this.buttons.forEach(function(wt){wt.className=wt.className.replace(Lt.uiStyleSettings.toolbarButtonStyleColorsClassName?Lt.uiStyleSettings.toolbarButtonStyleColorsClassName:Lt.toolbarButtonStyleColorsClass.name,"").trim(),wt.className=wt.className.replace(Lt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Lt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Lt.toolbarActiveButtonStyleColorsClass.name,"").trim(),wt.className+=" "+(Lt.uiStyleSettings.toolbarButtonStyleColorsClassName?Lt.uiStyleSettings.toolbarButtonStyleColorsClassName:Lt.toolbarButtonStyleColorsClass.name)})},Ot.prototype.addActionButton=function(Lt,wt,Ft){var Wt=this,kt=document.createElement("div");switch(kt.className=""+this.toolbarButtonStyleClass.name,kt.innerHTML=wt,kt.setAttribute("data-action",Ft),kt.addEventListener("click",function(){Wt.actionToolbarButtonClicked(kt,Ft)}),Ft){case"select":kt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":kt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":kt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":kt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":kt.style.fill=this.uiStyleSettings.closeButtonColor}Lt.appendChild(kt),this.buttons.push(kt)},Ot.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new pe("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 pe("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new pe("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new pe("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 pe("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Lt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new pe("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Lt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Lt)+`px;
|
|
padding: `+Lt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new pe("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new pe("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Ot.prototype.markerToolbarButtonClicked=function(Lt,wt){this.setActiveButton(Lt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ft){return Ft("marker",wt)}),this.markerButtonOverflowBlock.style.display="none"},Ot.prototype.actionToolbarButtonClicked=function(Lt,wt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ft){return Ft("action",wt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ot.prototype.setActiveButton=function(Lt){this.resetButtonStyles(),Lt.className=Lt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Lt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ot.prototype.setActiveMarkerButton=function(Lt){var wt=this.markerButtons.find(function(Ft){return Ft.getAttribute("data-type-name")===Lt});wt&&this.setActiveButton(wt)},Ot.prototype.setCurrentMarker=function(Lt){var wt=this;this.currentMarker=Lt,this.buttons.filter(function(Ft){return/delete|notes/.test(Ft.getAttribute("data-action"))}).forEach(function(Ft){wt.currentMarker===void 0?(Ft.style.fillOpacity="0.4",Ft.style.pointerEvents="none"):(Ft.style.fillOpacity="1",Ft.style.pointerEvents="all")})},Ot}(),Dt=function(){function Ot(Lt,wt,Ft,Wt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Lt,this.displayMode=wt,this.uiStyleSettings=Ft,this.styles=Wt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ot.prototype.addStyles=function(){var Lt;this.toolboxStyleClass=this.styles.addClass(new pe("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 pe("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var wt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new pe("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new pe("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new pe("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 pe("toolbox-panel-row_colors",`
|
|
background-color: `+((Lt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Lt!==void 0?Lt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new pe("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*wt)+`px;
|
|
padding: `+wt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new pe("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new pe("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Ot.prototype.show=function(Lt){var wt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Lt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ot.prototype.setPanelButtons=function(Lt){var wt,Ft,Wt=this;this.panels=Lt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((wt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&wt!==void 0?wt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ft!==void 0?Ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(kt){var Xt;kt.uiStyleSettings=Wt.uiStyleSettings;var $e=document.createElement("div");$e.className=Wt.toolboxButtonStyleClass.name+" "+((Xt=Wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Xt!==void 0?Xt:Wt.toolboxButtonStyleColorsClass.name),$e.innerHTML=kt.icon,$e.title=kt.title,$e.addEventListener("click",function(){Wt.panelButtonClick(kt)}),Wt.panelButtons.push($e),Wt.buttonRow.appendChild($e)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(Lt){var wt=this,Ft=-1;if(Lt!==this.activePanel){Ft=this.panels.indexOf(Lt),this.panelRow.innerHTML="";var Wt=Lt.getUi();Wt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Wt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Lt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){wt.displayMode==="inline"?wt.panelRow.style.display="none":wt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(kt,Xt){var $e,Je;kt.className=wt.toolboxButtonStyleClass.name+" "+(Xt===Ft?""+(($e=wt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&$e!==void 0?$e:wt.toolboxActiveButtonStyleColorsClass.name):""+((Je=wt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Je!==void 0?Je:wt.toolboxButtonStyleColorsClass.name))})},Ot}(),nt=function(Ot,Lt){this.title=Ot,this.icon=Lt},et=function(Ot){function Lt(wt,Ft,Wt,kt){var Xt=Ot.call(this,wt,kt||'<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 Xt.colors=[],Xt.addTransparent=!1,Xt.colorBoxes=[],Xt.colors=Ft,Xt.currentColor=Wt,Xt.setCurrentColor=Xt.setCurrentColor.bind(Xt),Xt.getColorBox=Xt.getColorBox.bind(Xt),Xt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.whiteSpace="nowrap",this.colors.forEach(function(Wt){var kt=wt.getColorBox(Wt);Ft.appendChild(kt),wt.colorBoxes.push(kt)}),Ft},Lt.prototype.getColorBox=function(wt){var Ft=this,Wt=this.uiStyleSettings.toolbarHeight/4,kt=this.uiStyleSettings.toolbarHeight-Wt,Xt=document.createElement("div");Xt.style.display="inline-block",Xt.style.boxSizing="content-box",Xt.style.width=kt-2+"px",Xt.style.height=kt-2+"px",Xt.style.padding="1px",Xt.style.marginRight="2px",Xt.style.marginBottom="2px",Xt.style.borderWidth="2px",Xt.style.borderStyle="solid",Xt.style.borderRadius=(kt+2)/2+"px",Xt.style.borderColor=wt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Xt.addEventListener("click",function(){Ft.setCurrentColor(wt,Xt)});var $e=document.createElement("div");return $e.style.display="inline-block",$e.style.width=kt-2+"px",$e.style.height=kt-2+"px",$e.style.backgroundColor=wt,$e.style.borderRadius=kt/2+"px",wt==="transparent"&&($e.style.fill=this.uiStyleSettings.toolboxAccentColor,$e.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>`),Xt.appendChild($e),Xt},Lt.prototype.setCurrentColor=function(wt,Ft){var Wt=this;this.currentColor=wt,this.colorBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(wt)},Lt}(nt),ht=function(){function Ot(Lt,wt,Ft){this._state="new",this._isSelected=!1,this._container=Lt,this._overlayContainer=wt,this.globalSettings=Ft,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(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(Lt){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(Lt,wt){},Ot.prototype.dblClick=function(Lt,wt){},Ot.prototype.manipulate=function(Lt){},Ot.prototype.pointerUp=function(Lt){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(Lt){this.container.childNodes.length>0?this.container.insertBefore(Lt,this.container.childNodes[0]):this.container.appendChild(Lt)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(Lt){this._state=Lt.state,this.notes=Lt.notes},Ot.prototype.scale=function(Lt,wt){},Ot.prototype.colorChanged=function(Lt){this.onColorChanged&&this.onColorChanged(Lt),this.stateChanged()},Ot.prototype.fillColorChanged=function(Lt){this.onFillColorChanged&&this.onFillColorChanged(Lt),this.stateChanged()},Ot.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Lt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Lt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Lt)&&this.onStateChanged(this)}},Ot.typeName="MarkerBase",Ot}(),lt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.prototype.findGripByVisual=function(Lt){return this.topLeft.ownsTarget(Lt)?this.topLeft:this.topCenter.ownsTarget(Lt)?this.topCenter:this.topRight.ownsTarget(Lt)?this.topRight:this.centerLeft.ownsTarget(Lt)?this.centerLeft:this.centerRight.ownsTarget(Lt)?this.centerRight:this.bottomLeft.ownsTarget(Lt)?this.bottomLeft:this.bottomCenter.ownsTarget(Lt)?this.bottomCenter:this.bottomRight.ownsTarget(Lt)?this.bottomRight:void 0},Ot}(),gt=function(){function Ot(){this.GRIP_SIZE=10,this.visual=Bt.createGroup(),this.visual.appendChild(Bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Bt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ot.prototype.ownsTarget=function(Lt){return Lt===this.visual||Lt===this.visual.childNodes[0]||Lt===this.visual.childNodes[1]},Ot}(),mt=function(){function Ot(){}return Ot.toITransformMatrix=function(Lt){return{a:Lt.a,b:Lt.b,c:Lt.c,d:Lt.d,e:Lt.e,f:Lt.f}},Ot.toSVGMatrix=function(Lt,wt){return Lt.a=wt.a,Lt.b=wt.b,Lt.c=wt.c,Lt.d=wt.d,Lt.e=wt.e,Lt.f=wt.f,Lt},Ot}(),xt=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.left=0,kt.top=0,kt.width=0,kt.height=0,kt.defaultSize={x:50,y:20},kt.offsetX=0,kt.offsetY=0,kt.rotationAngle=0,kt.CB_DISTANCE=10,kt._suppressMarkerCreateEvent=!1,kt.container.transform.baseVal.appendItem(Bt.createTransform()),kt.setupControlBox(),kt}return ne(Lt,Ot),Object.defineProperty(Lt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Lt.prototype,"visual",{get:function(){return this._visual},set:function(wt){this._visual=wt;var Ft=Bt.createTransform();this._visual.transform.baseVal.appendItem(Ft)},enumerable:!1,configurable:!0}),Lt.prototype.ownsTarget=function(wt){return!!Ot.prototype.ownsTarget.call(this,wt)||!!(this.controlGrips.findGripByVisual(wt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(wt))},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.left=wt.x,this.top=wt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Wt=this.unrotatePoint(wt);if(this.manipulationStartX=Wt.x,this.manipulationStartY=Wt.y,this.offsetX=Wt.x-this.left,this.offsetY=Wt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ft)){this.activeGrip=this.rotatorGrip;var kt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=kt.x-this.width/2,this.top=kt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Xt=this.container.transform.baseVal.getItem(0);Xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Xt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Lt.prototype.pointerUp=function(wt){var Ft=this.state;Ot.prototype.pointerUp.call(this,wt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(wt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Lt.prototype.moveVisual=function(wt){this.visual.style.transform="translate("+wt.x+"px, "+wt.y+"px)"},Lt.prototype.manipulate=function(wt){var Ft=this.unrotatePoint(wt);this.state==="creating"?this.resize(wt):this.state==="move"?(this.left=this.manipulationStartLeft+(Ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ft):this.state==="rotate"&&this.rotate(wt)},Lt.prototype.resize=function(wt){var Ft=this.manipulationStartLeft,Wt=this.manipulationStartWidth,kt=this.manipulationStartTop,Xt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ft=this.manipulationStartLeft+wt.x-this.manipulationStartX,Wt=this.manipulationStartWidth+this.manipulationStartLeft-Ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Wt=this.manipulationStartWidth+wt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:kt=this.manipulationStartTop+wt.y-this.manipulationStartY,Xt=this.manipulationStartHeight+this.manipulationStartTop-kt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Xt=this.manipulationStartHeight+wt.y-this.manipulationStartY}Wt>=0?(this.left=Ft,this.width=Wt):(this.left=Ft+Wt,this.width=-Wt),Xt>=0?(this.top=kt,this.height=Xt):(this.top=kt+Xt,this.height=-Xt),this.setSize()},Lt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Lt.prototype.rotate=function(wt){if(Math.abs(wt.x-this.centerX)>.1){var Ft=Math.sign(wt.x-this.centerX);this.rotationAngle=180*Math.atan((wt.y-this.centerY)/(wt.x-this.centerX))/Math.PI+90*Ft,this.applyRotation()}},Lt.prototype.applyRotation=function(){var wt=this.container.transform.baseVal.getItem(0);wt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(wt,0)},Lt.prototype.rotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Ft=this.container.getCTM(),Wt=Bt.createPoint(wt.x,wt.y);return{x:(Wt=Wt.matrixTransform(Ft)).x,y:Wt.y}},Lt.prototype.unrotatePoint=function(wt){if(this.rotationAngle===0)return wt;var Ft=this.container.getCTM();Ft=Ft.inverse();var Wt=Bt.createPoint(wt.x,wt.y);return{x:(Wt=Wt.matrixTransform(Ft)).x,y:Wt.y}},Lt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Lt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Lt.prototype.setupControlBox=function(){this.controlBox=Bt.createGroup();var wt=Bt.createTransform();wt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(wt),this.container.appendChild(this.controlBox),this.controlRect=Bt.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=Bt.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"},Lt.prototype.adjustControlBox=function(){var wt=this.controlBox.transform.baseVal.getItem(0);wt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(wt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Lt.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()},Lt.prototype.createGrip=function(){var wt=new gt;return wt.visual.transform.baseVal.appendItem(Bt.createTransform()),this.controlBox.appendChild(wt.visual),wt},Lt.prototype.positionGrips=function(){var wt=this.controlGrips.topLeft.GRIP_SIZE,Ft=-wt/2,Wt=Ft,kt=(this.width+this.CB_DISTANCE)/2-wt/2,Xt=(this.height+this.CB_DISTANCE)/2-wt/2,$e=this.height+this.CB_DISTANCE-wt/2,Je=this.width+this.CB_DISTANCE-wt/2;this.positionGrip(this.controlGrips.topLeft.visual,Ft,Wt),this.positionGrip(this.controlGrips.topCenter.visual,kt,Wt),this.positionGrip(this.controlGrips.topRight.visual,Je,Wt),this.positionGrip(this.controlGrips.centerLeft.visual,Ft,Xt),this.positionGrip(this.controlGrips.centerRight.visual,Je,Xt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ft,$e),this.positionGrip(this.controlGrips.bottomCenter.visual,kt,$e),this.positionGrip(this.controlGrips.bottomRight.visual,Je,$e),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,kt,Wt-3*this.CB_DISTANCE)},Lt.prototype.positionGrip=function(wt,Ft,Wt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Ft,Wt),wt.transform.baseVal.replaceItem(kt,0)},Lt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Lt.prototype.showControlBox=function(){this.controlBox.style.display=""},Lt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:mt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:mt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ot.prototype.getState.call(this))},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Ft=wt;this.left=Ft.left,this.top=Ft.top,this.width=Ft.width,this.height=Ft.height,this.rotationAngle=Ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ft.containerTransformMatrix))},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft);var Wt=this.rotatePoint({x:this.left,y:this.top}),kt=this.unrotatePoint({x:Wt.x*wt,y:Wt.y*Ft});this.left=kt.x,this.top=kt.y,this.width=this.width*wt,this.height=this.height*Ft,this.adjustControlBox()},Lt}(ht),St=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},Lt.prototype.createVisual=function(){this.visual=Bt.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)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Lt.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt)},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.setSize()},Lt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Lt.prototype.pointerUp=function(wt){Ot.prototype.pointerUp.call(this,wt),this.setSize()},Lt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Lt.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&Bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Lt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Lt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Lt.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))},Lt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.opacity=Ft.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.setSize()},Lt.title="Rectangle marker",Lt}(xt),zt=function(Ot){function Lt(wt,Ft,Wt,kt){var Xt=Ot.call(this,wt,kt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Xt.widths=[],Xt.widthBoxes=[],Xt.widths=Ft,Xt.currentWidth=Wt,Xt.setCurrentWidth=Xt.setCurrentWidth.bind(Xt),Xt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.widths.forEach(function(Wt){var kt=document.createElement("div");kt.style.display="flex",kt.style.flexGrow="2",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.borderColor=Wt===wt.currentWidth?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentWidth(Wt,kt)}),Ft.appendChild(kt);var Xt=document.createElement("div");Xt.innerText=Wt.toString(),Xt.style.marginRight="5px",kt.appendChild(Xt);var $e=document.createElement("div");$e.style.minHeight="20px",$e.style.flexGrow="2",$e.style.display="flex",$e.style.alignItems="center";var Je=document.createElement("hr");Je.style.minWidth="20px",Je.style.border="0px",Je.style.borderTop=Wt+"px solid "+wt.uiStyleSettings.toolboxColor,Je.style.flexGrow="2",$e.appendChild(Je),kt.appendChild($e),wt.widthBoxes.push(kt)}),Ft},Lt.prototype.setCurrentWidth=function(wt,Ft){var Wt=this;this.currentWidth=wt,this.widthBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Lt}(nt),Jt=function(Ot){function Lt(wt,Ft,Wt,kt){var Xt=Ot.call(this,wt,kt||'<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 Xt.styles=[],Xt.styleBoxes=[],Xt.styles=Ft,Xt.currentStyle=Wt,Xt.setCurrentStyle=Xt.setCurrentStyle.bind(Xt),Xt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.styles.forEach(function(Wt){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.overflow="hidden",kt.style.maxWidth=100/wt.styles.length-5+"%",kt.style.borderColor=Wt===wt.currentStyle?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentStyle(Wt,kt)}),Ft.appendChild(kt);var Xt=document.createElement("div");Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.overflow="hidden";var $e=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+wt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Wt!==""?'stroke-dasharray="'+Wt+'"':"")+` />
|
|
</svg>`;Xt.innerHTML=$e,kt.appendChild(Xt),wt.styleBoxes.push(kt)}),Ft},Lt.prototype.setCurrentStyle=function(wt,Ft){var Wt=this;this.currentStyle=wt,this.styleBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Lt}(nt),re=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.strokeColor=Wt.defaultColor,kt.strokeWidth=Wt.defaultStrokeWidth,kt.strokeDasharray=Wt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Jt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ne(Lt,Ot),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Ot.prototype.getState.call(this);return wt.typeName=Lt.typeName,wt},Lt.typeName="FrameMarker",Lt.title="Frame marker",Lt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Lt}(St),oe=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"},$t=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.x1=0,kt.y1=0,kt.x2=0,kt.y2=0,kt.defaultLength=50,kt.manipulationStartX=0,kt.manipulationStartY=0,kt.manipulationStartX1=0,kt.manipulationStartY1=0,kt.manipulationStartX2=0,kt.manipulationStartY2=0,kt.setupControlBox(),kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!!Ot.prototype.ownsTarget.call(this,wt)||!(!this.grip1.ownsTarget(wt)&&!this.grip2.ownsTarget(wt))},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.manipulationStartX=wt.x,this.manipulationStartY=wt.y,this.state==="new"&&(this.x1=wt.x,this.y1=wt.y,this.x2=wt.x,this.y2=wt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Lt.prototype.pointerUp=function(wt){var Ft=this.state;Ot.prototype.pointerUp.call(this,wt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(wt),this._state="select",Ft==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Lt.prototype.adjustVisual=function(){},Lt.prototype.manipulate=function(wt){this.state==="creating"?this.resize(wt):this.state==="move"?(this.x1=this.manipulationStartX1+wt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+wt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+wt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+wt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(wt)},Lt.prototype.resize=function(wt){switch(this.activeGrip){case this.grip1:this.x1=wt.x,this.y1=wt.y;break;case this.grip2:case void 0:this.x2=wt.x,this.y2=wt.y}this.adjustVisual(),this.adjustControlBox()},Lt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Lt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Lt.prototype.setupControlBox=function(){this.controlBox=Bt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Lt.prototype.adjustControlBox=function(){this.positionGrips()},Lt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Lt.prototype.createGrip=function(){var wt=new gt;return wt.visual.transform.baseVal.appendItem(Bt.createTransform()),this.controlBox.appendChild(wt.visual),wt},Lt.prototype.positionGrips=function(){var wt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-wt/2,this.y1-wt/2),this.positionGrip(this.grip2.visual,this.x2-wt/2,this.y2-wt/2)},Lt.prototype.positionGrip=function(wt,Ft,Wt){var kt=wt.transform.baseVal.getItem(0);kt.setTranslate(Ft,Wt),wt.transform.baseVal.replaceItem(kt,0)},Lt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ot.prototype.getState.call(this))},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Ft=wt;this.x1=Ft.x1,this.y1=Ft.y1,this.x2=Ft.x2,this.y2=Ft.y2},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.x1=this.x1*wt,this.y1=this.y1*Ft,this.x2=this.x2*wt,this.y2=this.y2*Ft,this.adjustVisual(),this.adjustControlBox()},Lt}(ht),Le=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.strokeColor=Wt.defaultColor,kt.strokeWidth=Wt.defaultStrokeWidth,kt.strokeDasharray=Wt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Jt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorLine&&wt!==this.visibleLine)},Lt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.selectorLine=Bt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Bt.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)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Lt.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()),Bt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Bt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Bt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Lt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},Lt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},Lt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Ft=wt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Lt.typeName="LineMarker",Lt.title="Line marker",Lt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Lt}($t),de=function(Ot){function Lt(wt,Ft,Wt,kt){var Xt=Ot.call(this,wt,kt||'<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 Xt.fonts=[],Xt.fontBoxes=[],Xt.fonts=Ft,Xt.currentFont=Wt,Xt.setCurrentFont=Xt.setCurrentFont.bind(Xt),Xt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.overflow="hidden",Ft.style.flexGrow="2",this.fonts.forEach(function(Wt){var kt=document.createElement("div");kt.style.display="inline-block",kt.style.alignItems="center",kt.style.justifyContent="space-between",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.overflow="hidden",kt.style.maxWidth=100/wt.fonts.length-5+"%",kt.style.borderColor=Wt===wt.currentFont?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentFont(Wt,kt)}),Ft.appendChild(kt);var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.fontFamily=Wt,Xt.style.overflow="hidden";var $e=document.createElement("div");$e.style.whiteSpace="nowrap",$e.style.overflow="hidden",$e.style.textOverflow="ellipsis",$e.innerHTML="The quick brown fox jumps over the lazy dog",Xt.appendChild($e),kt.appendChild(Xt),wt.fontBoxes.push(kt)}),Ft},Lt.prototype.setCurrentFont=function(wt,Ft){var Wt=this;this.currentFont=wt,this.fontBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Lt}(nt),Fe=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.color="transparent",kt.padding=5,kt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",kt.text=kt.DEFAULT_TEXT,kt.isMoved=!1,kt.color=Wt.defaultColor,kt.fontFamily=Wt.defaultFontFamily,kt.defaultSize={x:100,y:30},kt.setColor=kt.setColor.bind(kt),kt.setFont=kt.setFont.bind(kt),kt.renderText=kt.renderText.bind(kt),kt.sizeText=kt.sizeText.bind(kt),kt.textEditDivClicked=kt.textEditDivClicked.bind(kt),kt.showTextEditor=kt.showTextEditor.bind(kt),kt.setSize=kt.setSize.bind(kt),kt.positionTextEditor=kt.positionTextEditor.bind(kt),kt.colorPanel=new et("Color",Wt.defaultColorSet,Wt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.fontFamilyPanel=new de("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){if(Ot.prototype.ownsTarget.call(this,wt)||wt===this.visual||wt===this.textElement||wt===this.bgRectangle)return!0;var Ft=!1;return this.textElement.childNodes.forEach(function(Wt){Wt===wt&&(Ft=!0)}),Ft},Lt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.bgRectangle=Bt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Bt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Bt.createTransform()),this.textElement.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Lt.prototype.renderText=function(){var wt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Ft){wt.textElement.appendChild(Bt.createTSpan(Ft.trim()===""?" ":Ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Lt.prototype.getTextScale=function(){var wt=this.textElement.getBBox(),Ft=1;if(wt.width>0&&wt.height>0){var Wt=(1*this.width-this.width*this.padding*2/100)/wt.width,kt=(1*this.height-this.height*this.padding*2/100)/wt.height;Ft=Math.min(Wt,kt)}return Ft},Lt.prototype.getTextPosition=function(wt){var Ft=this.textElement.getBBox(),Wt=0,kt=0;return Ft.width>0&&Ft.height>0&&(Wt=(this.width-Ft.width*wt)/2,kt=this.height/2-Ft.height*wt/2),{x:Wt,y:kt}},Lt.prototype.sizeText=function(){var wt=this.textElement.getBBox(),Ft=this.getTextScale(),Wt=this.getTextPosition(Ft);Wt.y-=wt.y*Ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Wt.x+"px, "+Wt.y+"px) scale("+Ft+", "+Ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Wt.x,Wt.y),this.textElement.transform.baseVal.getItem(1).setScale(Ft,Ft))},Lt.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.isMoved=!0,this.setSize(),this.sizeText()},Lt.prototype.setSize=function(){Ot.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Lt.prototype.pointerUp=function(wt){var Ft=this.state;Ft==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,wt),this.setSize(),(Ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Lt.prototype.showTextEditor=function(){var wt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Ft){Ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ft=Number.parseFloat(wt.textEditor.style.fontSize);wt.textEditor.clientWidth>=Number.parseInt(wt.textEditor.style.maxWidth)&&Ft>.9;)Ft-=.1,wt.textEditor.style.fontSize=Math.max(Ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ft){if(Ft.clipboardData){var Wt=Ft.clipboardData.getData("text"),kt=window.getSelection();if(!kt.rangeCount)return!1;kt.deleteFromDocument(),kt.getRangeAt(0).insertNode(document.createTextNode(Wt)),Ft.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){wt.textEditDivClicked(wt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Lt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var wt=this.getTextScale(),Ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Wt=this.textElement.getBBox(),kt={x:Wt.width*wt,y:Wt.height*wt};Ft.x-=kt.x/2,Ft.y-=kt.y/2,this.textEditor.style.top=Ft.y+"px",this.textEditor.style.left=Ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ft.x+"px",this.textEditor.style.fontSize=Math.max(16*wt,12)+"px",this.textElement.style.display="none"}},Lt.prototype.textEditDivClicked=function(wt){this.text=wt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Lt.prototype.select=function(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Lt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},Lt.prototype.dblClick=function(wt,Ft){Ot.prototype.dblClick.call(this,wt,Ft),this.showTextEditor()},Lt.prototype.setColor=function(wt){this.textElement&&Bt.setAttributes(this.textElement,[["fill",wt]]),this.color=wt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(wt)},Lt.prototype.setFont=function(wt){this.textElement&&Bt.setAttributes(this.textElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Lt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Lt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){var Ft=wt;this.color=Ft.color,this.fontFamily=Ft.fontFamily,this.padding=Ft.padding,this.text=Ft.text,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Lt.typeName="TextMarker",Lt.title="Text marker",Lt.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>',Lt}(xt),rn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.color="transparent",kt.lineWidth=3,kt.drawing=!1,kt.pixelRatio=1,kt.color=Wt.defaultColor,kt.lineWidth=Wt.defaultStrokeWidth,kt.pixelRatio=Wt.freehandPixelRatio,kt.setColor=kt.setColor.bind(kt),kt.addCanvas=kt.addCanvas.bind(kt),kt.finishCreation=kt.finishCreation.bind(kt),kt.setLineWidth=kt.setLineWidth.bind(kt),kt.colorPanel=new et("Color",Wt.defaultColorSet,Wt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.lineWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.lineWidthPanel.onWidthChanged=kt.setLineWidth,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.drawingImage)},Lt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.drawingImage=Bt.createImage(),this.visual.appendChild(this.drawingImage);var wt=Bt.createTransform();this.visual.transform.baseVal.appendItem(wt),this.addMarkerVisualToContainer(this.visual)},Lt.prototype.pointerDown=function(wt,Ft){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(wt.x,wt.y),this.drawing=!0):Ot.prototype.pointerDown.call(this,wt,Ft)},Lt.prototype.manipulate=function(wt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(wt.x,wt.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,wt)},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Lt.prototype.pointerUp=function(wt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ot.prototype.pointerUp.call(this,wt)},Lt.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)},Lt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.select.call(this)},Lt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},Lt.prototype.finishCreation=function(){for(var wt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Wt=Ft[0],kt=Ft[1],Xt=Ft[2],$e=Ft[3],Je=!1,fn=0;fn<this.canvasElement.height;fn++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)wt.data[fn*this.canvasElement.width*4+4*Ve+3]>0&&(Je=!0,fn<kt&&(kt=fn),Ve<Wt&&(Wt=Ve),fn>$e&&($e=fn),Ve>Xt&&(Xt=Ve));if(Je){this.left=Wt/this.pixelRatio,this.top=kt/this.pixelRatio,this.width=(Xt-Wt)/this.pixelRatio,this.height=($e-kt)/this.pixelRatio;var Mn=document.createElement("canvas");Mn.width=Xt-Wt,Mn.height=$e-kt,Mn.getContext("2d").putImageData(this.canvasContext.getImageData(Wt,kt,Xt-Wt,$e-kt),0,0),this.drawingImgUrl=Mn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Lt.prototype.setDrawingImage=function(){Bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Lt.prototype.setColor=function(wt){this.color=wt,this.colorChanged(wt)},Lt.prototype.setLineWidth=function(wt){this.lineWidth=wt},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({drawingImgUrl:this.drawingImgUrl},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.drawingImgUrl=wt.drawingImgUrl,this.setDrawingImage()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.setDrawingImage()},Lt.typeName="FreehandMarker",Lt.title="Freehand marker",Lt.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>',Lt}(xt),De=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Wt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return kt.typeBoxes=[],kt.currentType=Ft,kt.setCurrentType=kt.setCurrentType.bind(kt),kt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2";for(var Wt=function($e){var Je="both";switch($e){case 0:Je="both";break;case 1:Je="start";break;case 2:Je="end";break;case 3:Je="none"}var fn=document.createElement("div");if(fn.style.display="flex",fn.style.flexGrow="2",fn.style.alignItems="center",fn.style.justifyContent="space-between",fn.style.padding="5px",fn.style.borderWidth="2px",fn.style.borderStyle="solid",fn.style.borderColor=Je===kt.currentType?kt.uiStyleSettings.toolboxAccentColor:"transparent",fn.addEventListener("click",function(){wt.setCurrentType(Je,fn)}),Ft.appendChild(fn),Je==="both"||Je==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ve.style.marginLeft="5px",fn.appendChild(Ve)}var Mn=document.createElement("div");Mn.style.display="flex",Mn.style.alignItems="center",Mn.style.minHeight="20px",Mn.style.flexGrow="2";var Ue=document.createElement("hr");if(Ue.style.minWidth="20px",Ue.style.border="0px",Ue.style.borderTop="3px solid "+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee"),Ue.style.flexGrow="2",Mn.appendChild(Ue),fn.appendChild(Mn),Je==="both"||Je==="end"){var ti=document.createElement("div");ti.style.display="flex",ti.style.alignItems="center",ti.style.minHeight="20px",ti.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="`+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,ti.style.marginRight="5px",fn.appendChild(ti)}kt.typeBoxes.push(fn)},kt=this,Xt=0;Xt<4;Xt++)Wt(Xt);return Ft},Lt.prototype.setCurrentType=function(wt,Ft){var Wt=this;this.currentType=wt,this.typeBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings!==void 0?Wt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Lt}(nt),jn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.arrowType="end",kt.arrowBaseHeight=10,kt.arrowBaseWidth=10,kt.getArrowPoints=kt.getArrowPoints.bind(kt),kt.setArrowType=kt.setArrowType.bind(kt),kt.arrowTypePanel=new De("Arrow type","end"),kt.arrowTypePanel.onArrowTypeChanged=kt.setArrowType,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.arrow1&&wt!==this.arrow2)},Lt.prototype.getArrowPoints=function(wt,Ft){var Wt=this.arrowBaseWidth+2*this.strokeWidth,kt=this.arrowBaseHeight+2*this.strokeWidth;return wt-Wt/2+","+(Ft+kt/2)+" "+wt+","+(Ft-kt/2)+" "+(wt+Wt/2)+","+(Ft+kt/2)},Lt.prototype.createTips=function(){this.arrow1=Bt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Bt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.arrow2)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"&&this.createTips()},Lt.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",Bt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Bt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var wt=0;Math.abs(this.x1-this.x2)>.1&&(wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ft=this.arrow1.transform.baseVal.getItem(0);Ft.setRotate(wt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ft,0);var Wt=this.arrow2.transform.baseVal.getItem(0);Wt.setRotate(wt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Wt,0)}},Lt.prototype.setArrowType=function(wt){this.arrowType=wt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({arrowType:this.arrowType},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Ft=wt;this.arrowType=Ft.arrowType,this.createTips(),this.adjustVisual()},Lt.typeName="ArrowMarker",Lt.title="Arrow marker",Lt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Lt}(Le),Bn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.fillColor=Wt.defaultFillColor,kt.strokeWidth=0,kt.fillPanel=new et("Color",Wt.defaultColorSet,Wt.defaultFillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt}return ne(Lt,Ot),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Ot.prototype.getState.call(this);return wt.typeName=Lt.typeName,wt},Lt.typeName="CoverMarker",Lt.title="Cover marker",Lt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Lt}(St),an=function(Ot){function Lt(wt,Ft,Wt,kt){var Xt=Ot.call(this,wt,kt||'<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 Xt.opacities=[],Xt.opacityBoxes=[],Xt.opacities=Ft,Xt.currentOpacity=Wt,Xt.setCurrentOpacity=Xt.setCurrentOpacity.bind(Xt),Xt}return ne(Lt,Ot),Lt.prototype.getUi=function(){var wt=this,Ft=document.createElement("div");return Ft.style.display="flex",Ft.style.overflow="hidden",Ft.style.flexGrow="2",Ft.style.justifyContent="space-between",this.opacities.forEach(function(Wt){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.justifyContent="center",kt.style.padding="5px",kt.style.borderWidth="2px",kt.style.borderStyle="solid",kt.style.borderColor=Wt===wt.currentOpacity?wt.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){wt.setCurrentOpacity(Wt,kt)}),Ft.appendChild(kt);var Xt=document.createElement("div");Xt.innerText=100*Wt+"%",kt.appendChild(Xt),wt.opacityBoxes.push(kt)}),Ft},Lt.prototype.setCurrentOpacity=function(wt,Ft){var Wt=this;this.currentOpacity=wt,this.opacityBoxes.forEach(function(kt){kt.style.borderColor=kt===Ft?Wt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Lt}(nt),Zn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.setOpacity=kt.setOpacity.bind(kt),kt.fillColor=Wt.defaultHighlightColor,kt.strokeWidth=0,kt.opacity=Wt.defaultHighlightOpacity,kt.fillPanel=new et("Color",Wt.defaultColorSet,kt.fillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt.opacityPanel=new an("Opacity",Wt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ne(Lt,Ot),Lt.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&Bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Ot.prototype.getState.call(this);return wt.typeName=Lt.typeName,wt},Lt.typeName="HighlightMarker",Lt.title="Highlight marker",Lt.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>',Lt}(Bn),_t='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Tt='<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>',ce=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.bgColor="transparent",kt.tipPosition={x:0,y:0},kt.tipBase1Position={x:0,y:0},kt.tipBase2Position={x:0,y:0},kt.tipMoving=!1,kt.color=Wt.defaultStrokeColor,kt.bgColor=Wt.defaultFillColor,kt.fontFamily=Wt.defaultFontFamily,kt.defaultSize={x:100,y:30},kt.setBgColor=kt.setBgColor.bind(kt),kt.getTipPoints=kt.getTipPoints.bind(kt),kt.positionTip=kt.positionTip.bind(kt),kt.setTipPoints=kt.setTipPoints.bind(kt),kt.colorPanel=new et("Text color",Wt.defaultColorSet,kt.color,_t),kt.colorPanel.onColorChanged=kt.setColor,kt.bgColorPanel=new et("Fill color",Wt.defaultColorSet,kt.bgColor,Tt),kt.bgColorPanel.onColorChanged=kt.setBgColor,kt.fontFamilyPanel=new de("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.tipGrip=new gt,kt.tipGrip.visual.transform.baseVal.appendItem(Bt.createTransform()),kt.controlBox.appendChild(kt.tipGrip.visual),kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return Ot.prototype.ownsTarget.call(this,wt)||this.tipGrip.ownsTarget(wt)||this.tip===wt},Lt.prototype.createTip=function(){Bt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Bt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Lt.prototype.pointerDown=function(wt,Ft){this.state==="new"&&Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,wt,Ft)},Lt.prototype.pointerUp=function(wt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,wt);else{var Ft=this.state==="creating";Ot.prototype.pointerUp.call(this,wt),this.setTipPoints(Ft),this.positionTip()}},Lt.prototype.manipulate=function(wt){if(this.tipMoving){var Ft=this.unrotatePoint(wt);this.tipPosition={x:Ft.x-this.manipulationStartLeft,y:Ft.y-this.manipulationStartTop},this.positionTip()}else Ot.prototype.manipulate.call(this,wt)},Lt.prototype.setBgColor=function(wt){this.bgRectangle&&this.tip&&(Bt.setAttributes(this.bgRectangle,[["fill",wt]]),Bt.setAttributes(this.tip,[["fill",wt]])),this.bgColor=wt,this.fillColorChanged(wt)},Lt.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},Lt.prototype.setTipPoints=function(wt){wt===void 0&&(wt=!1);var Ft=Math.min(this.height/2,15),Wt=this.height/5;wt&&(this.tipPosition={x:Ft+Wt/2,y:this.height+20});var kt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?kt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:Ft,y:0},this.tipBase2Position={x:Ft+Wt,y:0}):(this.tipBase1Position={x:0,y:Ft},this.tipBase2Position={x:0,y:Ft+Wt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?kt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ft-Wt,y:0},this.tipBase2Position={x:this.width-Ft,y:0}):(this.tipBase1Position={x:this.width,y:Ft},this.tipBase2Position={x:this.width,y:Ft+Wt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?kt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ft-Wt,y:this.height},this.tipBase2Position={x:this.width-Ft,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ft-Wt},this.tipBase2Position={x:this.width,y:this.height-Ft}):kt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Wt=this.width/5,Ft=Math.min(this.width/2,15),this.tipBase1Position={x:Ft,y:this.height},this.tipBase2Position={x:Ft+Wt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ft},this.tipBase2Position={x:0,y:this.height-Ft-Wt})},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.positionTip()},Lt.prototype.positionTip=function(){Bt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var wt=this.tipGrip.visual.transform.baseVal.getItem(0);wt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(wt,0)},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Lt.prototype.select=function(){this.positionTip(),Ot.prototype.select.call(this)},Lt.prototype.getState=function(){var wt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){var Ft=wt;this.bgColor=Ft.bgColor,this.tipPosition=Ft.tipPosition,Ot.prototype.restoreState.call(this,wt),this.createTip(),this.setTipPoints()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.tipPosition={x:this.tipPosition.x*wt,y:this.tipPosition.y*Ft},this.positionTip()},Lt.typeName="CalloutMarker",Lt.title="Callout marker",Lt.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>',Lt}(Fe),_e=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.strokeColor=Wt.defaultColor,kt.strokeWidth=Wt.defaultStrokeWidth,kt.strokeDasharray=Wt.defaultStrokeDasharray,kt.fillColor=Wt.defaultFillColor,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.setOpacity=kt.setOpacity.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt.strokePanel=new et("Line color",Pe(Wt.defaultColorSet,["transparent"]),Wt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Pe(Wt.defaultColorSet,["transparent"]),kt.fillColor,Tt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Jt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.opacityPanel=new an("Opacity",Wt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual)},Lt.prototype.createVisual=function(){this.visual=Bt.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)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Lt.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt)},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.setSize()},Lt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Bt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Lt.prototype.pointerUp=function(wt){Ot.prototype.pointerUp.call(this,wt),this.setSize()},Lt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Lt.prototype.setFillColor=function(wt){this.fillColor=wt,this.visual&&Bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},Lt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Lt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.visual&&Bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Lt.prototype.setOpacity=function(wt){this.opacity=wt,this.visual&&Bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.opacity=Ft.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.setSize()},Lt.typeName="EllipseMarker",Lt.title="Ellipse marker",Lt.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>',Lt}(xt),Ye=function(Ot){function Lt(wt,Ft,Wt){return Ot.call(this,wt,Ft,Wt)||this}return ne(Lt,Ot),Object.defineProperty(Lt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.tip1&&wt!==this.tip2)},Lt.prototype.createTips=function(){this.tip1=Bt.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(Bt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Bt.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(Bt.createTransform()),this.visual.appendChild(this.tip2)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.state==="creating"&&this.createTips()},Lt.prototype.adjustVisual=function(){if(Ot.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Bt.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()]]),Bt.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var wt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ft=this.tip1.transform.baseVal.getItem(0);Ft.setRotate(wt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ft,0);var Wt=this.tip2.transform.baseVal.getItem(0);Wt.setRotate(wt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Wt,0)}},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Ot.prototype.getState.call(this);return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt),this.createTips(),this.adjustVisual()},Lt.typeName="MeasurementMarker",Lt.title="Measurement marker",Lt.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>',Lt}(Le),xe=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.strokePanel.colors=Wt.defaultColorSet,kt.fillColor="transparent",kt}return ne(Lt,Ot),Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Ot.prototype.getState.call(this);return wt.typeName=Lt.typeName,wt},Lt.typeName="EllipseFrameMarker",Lt.title="Ellipse frame marker",Lt.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>',Lt}(_e),on=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(Lt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Lt)||(this.undoStack.push(Lt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Lt)&&this.redoStack.splice(0,this.redoStack.length))},Ot.prototype.replaceLastUndoStep=function(Lt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Lt)},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 Lt=this.undoStack.pop();return Lt!==void 0&&this.redoStack.push(Lt),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}(),tn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.curveX=0,kt.curveY=0,kt.manipulationStartCurveX=0,kt.manipulationStartCurveY=0,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.positionGrips=kt.positionGrips.bind(kt),kt.addControlGrips=kt.addControlGrips.bind(kt),kt.adjustVisual=kt.adjustVisual.bind(kt),kt.setupControlBox=kt.setupControlBox.bind(kt),kt.resize=kt.resize.bind(kt),kt.strokeColor=Wt.defaultColor,kt.strokeWidth=Wt.defaultStrokeWidth,kt.strokeDasharray=Wt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Wt.defaultColorSet,Wt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Jt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.selectorCurve&&wt!==this.visibleCurve&&!this.curveGrip.ownsTarget(wt))},Lt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Lt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.selectorCurve=Bt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Bt.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)},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=wt.x,this.curveY=wt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ft)&&(this.activeGrip=this.curveGrip,this._state="resize")},Lt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Bt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Bt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Bt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Lt.prototype.setupControlBox=function(){Ot.prototype.setupControlBox.call(this),this.curveControlLine1=Bt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Bt.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)},Lt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ot.prototype.addControlGrips.call(this)},Lt.prototype.positionGrips=function(){Ot.prototype.positionGrips.call(this);var wt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-wt/2,this.curveY-wt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Lt.prototype.manipulate=function(wt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+wt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+wt.y-this.manipulationStartY),Ot.prototype.manipulate.call(this,wt)},Lt.prototype.resize=function(wt){this.activeGrip===this.curveGrip&&(this.curveX=wt.x,this.curveY=wt.y),Ot.prototype.resize.call(this,wt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Lt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.adjustVisual(),this.colorChanged(wt)},Lt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.adjustVisual()},Lt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.adjustVisual()},Lt.prototype.scale=function(wt,Ft){this.curveX=this.curveX*wt,this.curveY=this.curveY*Ft,Ot.prototype.scale.call(this,wt,Ft)},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ot.prototype.getState.call(this));return wt.typeName=Lt.typeName,wt},Lt.prototype.restoreState=function(wt){Ot.prototype.restoreState.call(this,wt);var Ft=wt;this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.curveX=Ft.curveX,this.curveY=Ft.curveY,this.createVisual(),this.adjustVisual()},Lt.typeName="CurveMarker",Lt.title="Curve marker",Lt.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>',Lt}($t),Cn=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,Ft,Wt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.textColor="transparent",kt.fontSize="1rem",kt.isMoved=!1,kt.captionText="Caption",kt.PADDING=5,kt.captionBoxWidth=0,kt.captionBoxHeight=0,kt.strokeColor=Wt.defaultColor,kt.strokeWidth=Wt.defaultStrokeWidth,kt.strokeDasharray=Wt.defaultStrokeDasharray,kt.fillColor=Wt.defaultFillColor,kt.textColor=Wt.defaultStrokeColor,kt.fontFamily=Wt.defaultFontFamily,kt.fontSize=Wt.defaultCaptionFontSize,kt.captionText=Wt.defaultCaptionText,kt.setStrokeColor=kt.setStrokeColor.bind(kt),kt.setFillColor=kt.setFillColor.bind(kt),kt.setStrokeWidth=kt.setStrokeWidth.bind(kt),kt.setStrokeDasharray=kt.setStrokeDasharray.bind(kt),kt.createVisual=kt.createVisual.bind(kt),kt.sizeCaption=kt.sizeCaption.bind(kt),kt.setCaptionText=kt.setCaptionText.bind(kt),kt.showTextEditor=kt.showTextEditor.bind(kt),kt.positionTextEditor=kt.positionTextEditor.bind(kt),kt.finishTextEditing=kt.finishTextEditing.bind(kt),kt.setFont=kt.setFont.bind(kt),kt.setTextColor=kt.setTextColor.bind(kt),kt.strokePanel=new et("Line color",Pe(Wt.defaultColorSet,["transparent"]),kt.strokeColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Pe(Wt.defaultColorSet,["transparent"]),kt.fillColor,Tt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new zt("Line width",Wt.defaultStrokeWidths,Wt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new Jt("Line style",Wt.defaultStrokeDasharrays,Wt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.fontFamilyPanel=new de("Font",Wt.defaultFontFamilies,Wt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.textColorPanel=new et("Text color",Wt.defaultColorSet,kt.textColor,_t),kt.textColorPanel.onColorChanged=kt.setTextColor,kt}return ne(Lt,Ot),Lt.prototype.ownsTarget=function(wt){return!(!Ot.prototype.ownsTarget.call(this,wt)&&wt!==this.visual&&wt!==this.frame&&wt!==this.captionBg&&wt!==this.captionElement)},Lt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Bt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Bt.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=Bt.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()},Lt.prototype.setCaptionText=function(wt){this.captionText=wt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Lt.prototype.pointerDown=function(wt,Ft){Ot.prototype.pointerDown.call(this,wt,Ft),this.isMoved=!1,this.pointerDownPoint=wt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(wt),this._state="creating")},Lt.prototype.manipulate=function(wt){Ot.prototype.manipulate.call(this,wt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(wt.x-this.pointerDownPoint.x)>5||Math.abs(wt.y-this.pointerDownPoint.y)>5)},Lt.prototype.resize=function(wt){Ot.prototype.resize.call(this,wt),this.setSize()},Lt.prototype.sizeCaption=function(){var wt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=wt.width+2*this.PADDING,this.captionBoxHeight=wt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Bt.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')"]]),Bt.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')"]])},Lt.prototype.showTextEditor=function(){var wt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Ft){Ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ft){Ft.key==="Enter"&&wt.finishTextEditing(wt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ft){Ft.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){wt.finishTextEditing(wt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Lt.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"))},Lt.prototype.finishTextEditing=function(wt){this.setCaptionText(wt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Lt.prototype.setFont=function(wt){this.captionElement&&Bt.setAttributes(this.captionElement,[["font-family",wt]]),this.fontFamily=wt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Lt.prototype.setTextColor=function(wt){this.captionElement&&Bt.setAttributes(this.captionElement,[["fill",wt]]),this.textColor=wt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Lt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Bt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Lt.prototype.pointerUp=function(wt){Ot.prototype.pointerUp.call(this,wt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Lt.prototype.dblClick=function(wt,Ft){Ot.prototype.dblClick.call(this,wt,Ft),this.showTextEditor()},Lt.prototype.setStrokeColor=function(wt){this.strokeColor=wt,this.frame&&Bt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(wt),this.stateChanged()},Lt.prototype.setFillColor=function(wt){this.fillColor=wt,this.captionBg&&Bt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(wt),this.stateChanged()},Lt.prototype.setStrokeWidth=function(wt){this.strokeWidth=wt,this.frame&&Bt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Lt.prototype.setStrokeDasharray=function(wt){this.strokeDasharray=wt,this.frame&&Bt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Lt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Lt.prototype.getState=function(){var wt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Ot.prototype.getState.call(this));return wt.typeName=this.typeName,wt},Lt.prototype.restoreState=function(wt){var Ft=wt;this.fillColor=Ft.fillColor,this.strokeColor=Ft.strokeColor,this.strokeWidth=Ft.strokeWidth,this.strokeDasharray=Ft.strokeDasharray,this.textColor=Ft.textColor,this.fontFamily=Ft.fontFamily,this.captionText=Ft.captionText,this.fontSize=Ft.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,wt),this.setSize()},Lt.prototype.scale=function(wt,Ft){Ot.prototype.scale.call(this,wt,Ft),this.setSize()},Lt.typeName="CaptionFrameMarker",Lt.title="Caption frame marker",Lt.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>',Lt}(xt),Ie=function(){function Ot(Lt,wt){wt===void 0&&(wt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Lt,this.cancelable=wt}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),ve=function(Ot){function Lt(wt,Ft,Wt){var kt=Ot.call(this,wt,!1)||this;return kt.dataUrl=Ft,kt.state=Wt,kt}return ne(Lt,Ot),Lt}(Ie),ze=function(Ot){function Lt(wt,Ft,Wt){Wt===void 0&&(Wt=!1);var kt=Ot.call(this,wt,Wt)||this;return kt.marker=Ft,kt}return ne(Lt,Ot),Lt}(Ie),je=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(Lt,wt){this[Lt].push(wt)},Ot.prototype.removeEventListener=function(Lt,wt){var Ft=this[Lt].indexOf(wt);Ft>-1&&this[Lt].splice(Ft,1)},Ot}(),He=function(){function Ot(Lt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new oe,this._isOpen=!1,this.undoRedoManager=new on,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 je,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new Se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Lt,this.targetRoot=document.body,this.width=Lt.clientWidth,this.height=Lt.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[re,rn,jn,Fe,xe,_e,Zn,ce,Ye,Bn,Le,tn,Cn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[re,rn,jn,Fe,_e,Zn,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[re,rn,jn,Fe,Zn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Lt){var wt=this;this._availableMarkerTypes.splice(0),Lt.forEach(function(Ft){if(typeof Ft=="string"){var Wt=wt.ALL_MARKER_TYPES.find(function(kt){return kt.typeName===Ft});Wt!==void 0&&wt._availableMarkerTypes.push(Wt)}else wt._availableMarkerTypes.push(Ft)})},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(Lt){this._zoomLevel=Lt,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(),Ut.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var Lt=this;this.styles.styleSheetRoot===void 0&&se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(wt){return wt(new Ie(Lt))})},Ot.prototype.render=function(){return Ne(this,void 0,void 0,function(){var Lt;return Be(this,function(wt){switch(wt.label){case 0:return this.setCurrentMarker(),(Lt=new ue).naturalSize=this.renderAtNaturalSize,Lt.imageType=this.renderImageType,Lt.imageQuality=this.renderImageQuality,Lt.markersOnly=this.renderMarkersOnly,Lt.width=this.renderWidth,Lt.height=this.renderHeight,[4,Lt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return wt.sent(),[4,Lt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,wt.sent()]}})})},Ot.prototype.close=function(Lt){var wt=this;if(Lt===void 0&&(Lt=!1),this.isOpen){var Ft=!1;Lt||this.eventListeners.beforeclose.forEach(function(Wt){var kt=new Ie(wt,!0);Wt(kt),kt.defaultPrevented&&(Ft=!0)}),Ft||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Wt){return Wt(new Ie(wt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Lt,wt=[],Ft=0;Ft<arguments.length;Ft++)wt[Ft]=arguments[Ft];(Lt=this._availableMarkerTypes).push.apply(Lt,wt)},Ot.prototype.addRenderEventListener=function(Lt){this.addEventListener("render",function(wt){Lt(wt.dataUrl,wt.state)})},Ot.prototype.removeRenderEventListener=function(Lt){},Ot.prototype.addCloseEventListener=function(Lt){this.addEventListener("close",function(){Lt()})},Ot.prototype.removeCloseEventListener=function(Lt){},Ot.prototype.setupResizeObserver=function(){var Lt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Lt.resize(Lt.target.clientWidth,Lt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Lt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ot.prototype.onPopupTargetResize=function(){var Lt=1*this.target.clientWidth/this.target.clientHeight,wt=this.editorCanvas.clientWidth/Lt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Lt:this.editorCanvas.clientWidth,Ft=wt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Lt;this.resize(wt,Ft)},Ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ot.prototype.resize=function(Lt,wt){this._isResizing=!0;var Ft=Lt/this.imageWidth,Wt=wt/this.imageHeight;this.imageWidth=Math.round(Lt),this.imageHeight=Math.round(wt),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Ft,Wt),this._isResizing=!1},Ot.prototype.scaleMarkers=function(Lt,wt){var Ft,Wt=this;this._currentMarker&&this._currentMarker instanceof Fe?this._currentMarker.scale(Lt,wt):(Ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(kt){kt!==Wt._currentMarker&&kt.scale(Lt,wt)}),Ft!==void 0&&this.setCurrentMarker(Ft)},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 Lt=this.editingTarget.getBoundingClientRect(),wt=this.editorCanvas.getBoundingClientRect();this.left=Lt.left-wt.left,this.top=Lt.top-wt.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 Lt,wt=[],Ft=0;Ft<arguments.length;Ft++)wt[Ft]=arguments[Ft];this.defs=Bt.createDefs(),this.addDefsToImage(),(Lt=this.defs).append.apply(Lt,wt)},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 Lt=document.createElement("a");Lt.href="https://markerjs.com/",Lt.target="_blank",Lt.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>',Lt.title="Powered by marker.js",Lt.style.display="grid",Lt.style.alignItems="center",Lt.style.justifyItems="center",Lt.style.padding="3px",Lt.style.width="20px",Lt.style.height="20px",this.logoUI.appendChild(Lt),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 Lt=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=Lt+"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 Ht(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 Dt(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(Lt){this.markerImage.removeChild(Lt.container),this.markers.indexOf(Lt)>-1&&this.markers.splice(this.markers.indexOf(Lt),1),Lt.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(Lt,wt){if(Lt==="marker"&&wt!==void 0)this.createNewMarker(wt);else if(Lt==="action")switch(wt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Ot.prototype.deleteSelectedMarker=function(){var Lt=this;if(this._currentMarker!==void 0){var wt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Wt){var kt=new ze(Lt,Lt._currentMarker,!0);Wt(kt),kt.defaultPrevented&&(wt=!0)}),!wt){var Ft=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Wt){return Wt(new ze(Lt,Ft))})}}},Ot.prototype.clear=function(){var Lt=this,wt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Xt){var $e=new ze(Lt,void 0,!0);Xt($e),$e.defaultPrevented&&(wt=!0)}),!wt)){this.setCurrentMarker();for(var Ft=function(Xt){var $e=Wt.markers[Xt];Wt.setCurrentMarker(Wt.markers[Xt]),Wt._currentMarker.dispose(),Wt.markerImage.removeChild(Wt._currentMarker.container),Wt.markers.splice(Wt.markers.indexOf(Wt._currentMarker),1),Wt.eventListeners.markerdelete.forEach(function(Je){return Je(new ze(Lt,$e))})},Wt=this,kt=this.markers.length-1;kt>=0;kt--)Ft(kt);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.prototype.showNotesEditor=function(){var Lt;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=(Lt=this._currentMarker.notes)!==null&&Lt!==void 0?Lt:"",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 Lt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var wt=this.getState(),Ft=this.undoRedoManager.getLastUndoStep();if(!Ft||Ft.width===wt.width&&Ft.height===wt.height){var Wt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(wt),Wt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(kt){return kt(new Ie(Lt))})}else this.undoRedoManager.replaceLastUndoStep(wt),this.eventListeners.statechange.forEach(function(kt){return kt(new Ie(Lt))})}},Ot.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ot.prototype.undoStep=function(){var Lt=this,wt=this.undoRedoManager.undo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ft){return Ft(new Ie(Lt))}))},Ot.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ot.prototype.redoStep=function(){var Lt=this,wt=this.undoRedoManager.redo();wt!==void 0&&(this.restoreState(wt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ft){return Ft(new Ie(Lt))}))},Ot.prototype.stepZoom=function(){var Lt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Lt<this.zoomSteps.length-1?this.zoomSteps[Lt+1]:this.zoomSteps[0]},Ot.prototype.panTo=function(Lt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Lt.x,top:this.prevPanPoint.y-Lt.y}),this.prevPanPoint=Lt},Ot.prototype.startRenderAndClose=function(){return Ne(this,void 0,void 0,function(){var Lt,wt,Ft=this;return Be(this,function(Wt){switch(Wt.label){case 0:return[4,this.render()];case 1:return Lt=Wt.sent(),wt=this.getState(),this.eventListeners.render.forEach(function(kt){return kt(new ve(Ft,Lt,wt))}),this.close(!0),[2]}})})},Ot.prototype.getState=function(Lt){Lt===!0&&this.setCurrentMarker();var wt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ft){return wt.markers.push(Ft.getState())}),wt},Ot.prototype.restoreState=function(Lt){var wt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Lt.markers.forEach(function(Ft){var Wt=wt._availableMarkerTypes.find(function(Xt){return Xt.typeName===Ft.typeName});if(Wt!==void 0){var kt=wt.addNewMarker(Wt);kt.restoreState(Ft),wt.markers.push(kt)}}),Lt.width&&Lt.height&&(Lt.width!==this.imageWidth||Lt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Lt.width,this.imageHeight/Lt.height),this.eventListeners.restorestate.forEach(function(Ft){return Ft(new Ie(wt))})},Ot.prototype.addNewMarker=function(Lt){var wt=Bt.createGroup();return this.markerImage.appendChild(wt),new Lt(wt,this.overlayContainer,this.settings)},Ot.prototype.createNewMarker=function(Lt){var wt,Ft=this;(wt=typeof Lt=="string"?this._availableMarkerTypes.find(function(Wt){return Wt.typeName===Lt}):Lt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(wt),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(wt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Wt){return Wt(new ze(Ft,Ft._currentMarker))}))},Ot.prototype.markerCreated=function(Lt){var wt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Lt),this.setCurrentMarker(Lt),Lt instanceof rn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(rn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ft){return Ft(new ze(wt,wt._currentMarker))})},Ot.prototype.colorChanged=function(Lt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Lt,this.settings.defaultStrokeColor=Lt)},Ot.prototype.fillColorChanged=function(Lt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Lt)},Ot.prototype.markerStateChanged=function(Lt){var wt=this;this.eventListeners.markerchange.forEach(function(Ft){return Ft(new ze(wt,Lt))})},Ot.prototype.setCurrentMarker=function(Lt){var wt=this;this._currentMarker!==Lt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ft){return Ft(new ze(wt,wt._currentMarker))})),this._currentMarker=Lt,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Ft){return Ft(new ze(wt,wt._currentMarker))}))},Ot.prototype.onPointerDown=function(Lt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Lt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var wt=this.markers.find(function(Ft){return Ft.ownsTarget(Lt.target)});wt!==void 0?(this.setCurrentMarker(wt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY),Lt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Lt.clientX,y:Lt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY))},Ot.prototype.onDblClick=function(Lt){if(this._isFocused||this.focus(),this.mode==="select"){var wt=this.markers.find(function(Ft){return Ft.ownsTarget(Lt.target)});wt!==void 0&&wt!==this._currentMarker&&this.setCurrentMarker(wt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY),Lt.target):this.setCurrentMarker()}},Ot.prototype.onPointerMove=function(Lt){this.touchPoints!==1&&Lt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Lt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY)):this.zoomLevel>1&&this.panTo({x:Lt.clientX,y:Lt.clientY}))},Ot.prototype.onPointerUp=function(Lt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Lt.clientX,Lt.clientY)),this.isDragging=!1,this.addUndoStep()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(Lt){this._currentMarker===void 0||this.notesArea!==void 0||Lt.key!=="Delete"&&Lt.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(Lt,wt){var Ft=this.markerImage.getBoundingClientRect();return{x:(Lt-Ft.left)/this.zoomLevel,y:(wt-Ft.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Lt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Lt+"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(Lt){Ut.addKey(Lt)},Ot.prototype.addEventListener=function(Lt,wt){this.eventListeners.addEventListener(Lt,wt)},Ot.prototype.removeEventListener=function(Lt,wt){this.eventListeners.removeEventListener(Lt,wt)},Ot.prototype.renderState=function(Lt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Lt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.prototype.focus=function(){var Lt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(wt){return wt(new Ie(Lt))}))},Ot.prototype.blur=function(){var Lt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(wt){return wt(new Ie(Lt))}))},Ot.instanceCounter=0,Ot}()},3510:function(un,Nn,Mt){"use strict";Mt.r(Nn),Mt.d(Nn,{Panel:function(){return rn},default:function(){return Fe}});var Pt=Mt(87462),ne=Mt(74902),Ne=Mt(97685),Be=Mt(71002),Pe=Mt(94184),Bt=Mt.n(Pe),Ut=Mt(21770),ue=Mt(80334),se=Mt(67294),Se=Mt(45987),Xe=Mt(50344),pe=Mt(1413),Ht=Mt(4942),Dt=Mt(62874),nt=Mt(15105),et=se.forwardRef(function(De,jn){var Bn=De.prefixCls,an=De.forceRender,Zn=De.className,_t=De.style,Tt=De.children,ce=De.isActive,_e=De.role,Ye=De.classNames,xe=De.styles,on=se.useState(ce||an),tn=(0,Ne.Z)(on,2),Cn=tn[0],Ie=tn[1];return se.useEffect(function(){(an||ce)&&Ie(!0)},[an,ce]),Cn?se.createElement("div",{ref:jn,className:Bt()("".concat(Bn,"-content"),(0,Ht.Z)((0,Ht.Z)({},"".concat(Bn,"-content-active"),ce),"".concat(Bn,"-content-inactive"),!ce),Zn),style:_t,role:_e},se.createElement("div",{className:Bt()("".concat(Bn,"-content-box"),Ye==null?void 0:Ye.body),style:xe==null?void 0:xe.body},Tt)):null});et.displayName="PanelContent";var ht=et,lt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],gt=se.forwardRef(function(De,jn){var Bn=De.showArrow,an=Bn===void 0?!0:Bn,Zn=De.headerClass,_t=De.isActive,Tt=De.onItemClick,ce=De.forceRender,_e=De.className,Ye=De.classNames,xe=Ye===void 0?{}:Ye,on=De.styles,tn=on===void 0?{}:on,Cn=De.prefixCls,Ie=De.collapsible,ve=De.accordion,ze=De.panelKey,je=De.extra,He=De.header,Ot=De.expandIcon,Lt=De.openMotion,wt=De.destroyInactivePanel,Ft=De.children,Wt=(0,Se.Z)(De,lt),kt=Ie==="disabled",Xt=je!=null&&typeof je!="boolean",$e=(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({onClick:function(){Tt==null||Tt(ze)},onKeyDown:function(Qn){(Qn.key==="Enter"||Qn.keyCode===nt.Z.ENTER||Qn.which===nt.Z.ENTER)&&(Tt==null||Tt(ze))},role:ve?"tab":"button"},"aria-expanded",_t),"aria-disabled",kt),"tabIndex",kt?-1:0),Je=typeof Ot=="function"?Ot(De):se.createElement("i",{className:"arrow"}),fn=Je&&se.createElement("div",(0,Pt.Z)({className:"".concat(Cn,"-expand-icon")},["header","icon"].includes(Ie)?$e:{}),Je),Ve=Bt()("".concat(Cn,"-item"),(0,Ht.Z)((0,Ht.Z)({},"".concat(Cn,"-item-active"),_t),"".concat(Cn,"-item-disabled"),kt),_e),Mn=Bt()(Zn,"".concat(Cn,"-header"),(0,Ht.Z)({},"".concat(Cn,"-collapsible-").concat(Ie),!!Ie),xe.header),Ue=(0,pe.Z)({className:Mn,style:tn.header},["header","icon"].includes(Ie)?{}:$e);return se.createElement("div",(0,Pt.Z)({},Wt,{ref:jn,className:Ve}),se.createElement("div",Ue,an&&fn,se.createElement("span",(0,Pt.Z)({className:"".concat(Cn,"-header-text")},Ie==="header"?$e:{}),He),Xt&&se.createElement("div",{className:"".concat(Cn,"-extra")},je)),se.createElement(Dt.Z,(0,Pt.Z)({visible:_t,leavedClassName:"".concat(Cn,"-content-hidden")},Lt,{forceRender:ce,removeOnLeave:wt}),function(ti,Qn){var Hn=ti.className,pn=ti.style;return se.createElement(ht,{ref:Qn,prefixCls:Cn,className:Hn,classNames:xe,style:pn,styles:tn,isActive:_t,forceRender:ce,role:ve?"tabpanel":void 0},Ft)}))}),mt=gt,xt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],St=function(jn,Bn){var an=Bn.prefixCls,Zn=Bn.accordion,_t=Bn.collapsible,Tt=Bn.destroyInactivePanel,ce=Bn.onItemClick,_e=Bn.activeKey,Ye=Bn.openMotion,xe=Bn.expandIcon;return jn.map(function(on,tn){var Cn=on.children,Ie=on.label,ve=on.key,ze=on.collapsible,je=on.onItemClick,He=on.destroyInactivePanel,Ot=(0,Se.Z)(on,xt),Lt=String(ve!=null?ve:tn),wt=ze!=null?ze:_t,Ft=He!=null?He:Tt,Wt=function($e){wt!=="disabled"&&(ce($e),je==null||je($e))},kt=!1;return Zn?kt=_e[0]===Lt:kt=_e.indexOf(Lt)>-1,se.createElement(mt,(0,Pt.Z)({},Ot,{prefixCls:an,key:Lt,panelKey:Lt,isActive:kt,accordion:Zn,openMotion:Ye,expandIcon:xe,header:Ie,collapsible:wt,onItemClick:Wt,destroyInactivePanel:Ft}),Cn)})},zt=function(jn,Bn,an){if(!jn)return null;var Zn=an.prefixCls,_t=an.accordion,Tt=an.collapsible,ce=an.destroyInactivePanel,_e=an.onItemClick,Ye=an.activeKey,xe=an.openMotion,on=an.expandIcon,tn=jn.key||String(Bn),Cn=jn.props,Ie=Cn.header,ve=Cn.headerClass,ze=Cn.destroyInactivePanel,je=Cn.collapsible,He=Cn.onItemClick,Ot=!1;_t?Ot=Ye[0]===tn:Ot=Ye.indexOf(tn)>-1;var Lt=je!=null?je:Tt,wt=function(kt){Lt!=="disabled"&&(_e(kt),He==null||He(kt))},Ft={key:tn,panelKey:tn,header:Ie,headerClass:ve,isActive:Ot,prefixCls:Zn,destroyInactivePanel:ze!=null?ze:ce,openMotion:xe,accordion:_t,children:jn.props.children,onItemClick:wt,expandIcon:on,collapsible:Lt};return typeof jn.type=="string"?jn:(Object.keys(Ft).forEach(function(Wt){typeof Ft[Wt]=="undefined"&&delete Ft[Wt]}),se.cloneElement(jn,Ft))};function Jt(De,jn,Bn){return Array.isArray(De)?St(De,Bn):(0,Xe.Z)(jn).map(function(an,Zn){return zt(an,Zn,Bn)})}var re=Jt,oe=Mt(64217);function $t(De){var jn=De;if(!Array.isArray(jn)){var Bn=(0,Be.Z)(jn);jn=Bn==="number"||Bn==="string"?[jn]:[]}return jn.map(function(an){return String(an)})}var Le=se.forwardRef(function(De,jn){var Bn=De.prefixCls,an=Bn===void 0?"rc-collapse":Bn,Zn=De.destroyInactivePanel,_t=Zn===void 0?!1:Zn,Tt=De.style,ce=De.accordion,_e=De.className,Ye=De.children,xe=De.collapsible,on=De.openMotion,tn=De.expandIcon,Cn=De.activeKey,Ie=De.defaultActiveKey,ve=De.onChange,ze=De.items,je=Bt()(an,_e),He=(0,Ut.Z)([],{value:Cn,onChange:function(Xt){return ve==null?void 0:ve(Xt)},defaultValue:Ie,postState:$t}),Ot=(0,Ne.Z)(He,2),Lt=Ot[0],wt=Ot[1],Ft=function(Xt){return wt(function(){if(ce)return Lt[0]===Xt?[]:[Xt];var $e=Lt.indexOf(Xt),Je=$e>-1;return Je?Lt.filter(function(fn){return fn!==Xt}):[].concat((0,ne.Z)(Lt),[Xt])})};(0,ue.ZP)(!Ye,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Wt=re(ze,Ye,{prefixCls:an,accordion:ce,openMotion:on,expandIcon:tn,collapsible:xe,destroyInactivePanel:_t,onItemClick:Ft,activeKey:Lt});return se.createElement("div",(0,Pt.Z)({ref:jn,className:je,style:Tt,role:ce?"tablist":void 0},(0,oe.Z)(De,{aria:!0,data:!0})),Wt)}),de=Object.assign(Le,{Panel:mt}),Fe=de,rn=de.Panel},42289:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Ga}});function Pt(Te){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ze){return typeof Ze}:function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},Pt(Te)}function ne(Te,Ze){if(Pt(Te)!="object"||!Te)return Te;var sn=Te[Symbol.toPrimitive];if(sn!==void 0){var zn=sn.call(Te,Ze||"default");if(Pt(zn)!="object")return zn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ze==="string"?String:Number)(Te)}function Ne(Te){var Ze=ne(Te,"string");return Pt(Ze)=="symbol"?Ze:Ze+""}function Be(Te,Ze,sn){return(Ze=Ne(Ze))in Te?Object.defineProperty(Te,Ze,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Te[Ze]=sn,Te}function Pe(Te,Ze){var sn=Object.keys(Te);if(Object.getOwnPropertySymbols){var zn=Object.getOwnPropertySymbols(Te);Ze&&(zn=zn.filter(function(Ii){return Object.getOwnPropertyDescriptor(Te,Ii).enumerable})),sn.push.apply(sn,zn)}return sn}function Bt(Te){for(var Ze=1;Ze<arguments.length;Ze++){var sn=arguments[Ze]!=null?arguments[Ze]:{};Ze%2?Pe(Object(sn),!0).forEach(function(zn){Be(Te,zn,sn[zn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Te,Object.getOwnPropertyDescriptors(sn)):Pe(Object(sn)).forEach(function(zn){Object.defineProperty(Te,zn,Object.getOwnPropertyDescriptor(sn,zn))})}return Te}function Ut(Te){if(Array.isArray(Te))return Te}function ue(Te,Ze){var sn=Te==null?null:typeof Symbol!="undefined"&&Te[Symbol.iterator]||Te["@@iterator"];if(sn!=null){var zn,Ii,Nr,lr,si=[],Zt=!0,Ao=!1;try{if(Nr=(sn=sn.call(Te)).next,Ze===0){if(Object(sn)!==sn)return;Zt=!1}else for(;!(Zt=(zn=Nr.call(sn)).done)&&(si.push(zn.value),si.length!==Ze);Zt=!0);}catch(rs){Ao=!0,Ii=rs}finally{try{if(!Zt&&sn.return!=null&&(lr=sn.return(),Object(lr)!==lr))return}finally{if(Ao)throw Ii}}return si}}function se(Te,Ze){(Ze==null||Ze>Te.length)&&(Ze=Te.length);for(var sn=0,zn=Array(Ze);sn<Ze;sn++)zn[sn]=Te[sn];return zn}function Se(Te,Ze){if(Te){if(typeof Te=="string")return se(Te,Ze);var sn={}.toString.call(Te).slice(8,-1);return sn==="Object"&&Te.constructor&&(sn=Te.constructor.name),sn==="Map"||sn==="Set"?Array.from(Te):sn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(sn)?se(Te,Ze):void 0}}function Xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pe(Te,Ze){return Ut(Te)||ue(Te,Ze)||Se(Te,Ze)||Xe()}function Ht(Te){if(Array.isArray(Te))return Te}function Dt(Te,Ze){var sn=Te==null?null:typeof Symbol!="undefined"&&Te[Symbol.iterator]||Te["@@iterator"];if(sn!=null){var zn,Ii,Nr,lr,si=[],Zt=!0,Ao=!1;try{if(Nr=(sn=sn.call(Te)).next,Ze===0){if(Object(sn)!==sn)return;Zt=!1}else for(;!(Zt=(zn=Nr.call(sn)).done)&&(si.push(zn.value),si.length!==Ze);Zt=!0);}catch(rs){Ao=!0,Ii=rs}finally{try{if(!Zt&&sn.return!=null&&(lr=sn.return(),Object(lr)!==lr))return}finally{if(Ao)throw Ii}}return si}}function nt(Te,Ze){(Ze==null||Ze>Te.length)&&(Ze=Te.length);for(var sn=0,zn=new Array(Ze);sn<Ze;sn++)zn[sn]=Te[sn];return zn}function et(Te,Ze){if(Te){if(typeof Te=="string")return nt(Te,Ze);var sn=Object.prototype.toString.call(Te).slice(8,-1);if(sn==="Object"&&Te.constructor&&(sn=Te.constructor.name),sn==="Map"||sn==="Set")return Array.from(Te);if(sn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(sn))return nt(Te,Ze)}}function ht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lt(Te,Ze){return Ht(Te)||Dt(Te,Ze)||et(Te,Ze)||ht()}var gt=Mt(67294),mt=Mt(73935);function xt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var St={};function zt(Te,Ze){}function Jt(Te,Ze){}function re(){St={}}function oe(Te,Ze,sn){!Ze&&!St[sn]&&(Te(!1,sn),St[sn]=!0)}function $t(Te,Ze){oe(zt,Te,Ze)}function Le(Te,Ze){oe(Jt,Te,Ze)}var de=null;function Fe(Te){"@babel/helpers - typeof";return Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ze){return typeof Ze}:function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},Fe(Te)}var rn=Mt(18459);function De(Te,Ze,sn){var zn=gt.useRef({});return(!("value"in zn.current)||sn(zn.current.condition,Ze))&&(zn.current.value=Te(),zn.current.condition=Ze),zn.current.value}function jn(Te,Ze){typeof Te=="function"?Te(Ze):Fe(Te)==="object"&&Te&&"current"in Te&&(Te.current=Ze)}function Bn(){for(var Te=arguments.length,Ze=new Array(Te),sn=0;sn<Te;sn++)Ze[sn]=arguments[sn];var zn=Ze.filter(function(Ii){return Ii});return zn.length<=1?zn[0]:function(Ii){Ze.forEach(function(Nr){jn(Nr,Ii)})}}function an(){for(var Te=arguments.length,Ze=new Array(Te),sn=0;sn<Te;sn++)Ze[sn]=arguments[sn];return De(function(){return Bn.apply(void 0,Ze)},Ze,function(zn,Ii){return zn.length===Ii.length&&zn.every(function(Nr,lr){return Nr===Ii[lr]})})}function Zn(Te){var Ze,sn,zn=(0,rn.isMemo)(Te)?Te.type.type:Te.type;return!(typeof zn=="function"&&!((Ze=zn.prototype)!==null&&Ze!==void 0&&Ze.render)||typeof Te=="function"&&!((sn=Te.prototype)!==null&&sn!==void 0&&sn.render))}var _t=gt.createContext(null),Tt=_t;function ce(Te){if(Array.isArray(Te))return nt(Te)}function _e(Te){if(typeof Symbol!="undefined"&&Te[Symbol.iterator]!=null||Te["@@iterator"]!=null)return Array.from(Te)}function Ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(Te){return ce(Te)||_e(Te)||et(Te)||Ye()}var on=xt()?gt.useLayoutEffect:gt.useEffect,tn=on,Cn=function(Ze,sn){var zn=React.useRef(!0);on(function(){if(!zn.current)return Ze()},sn),on(function(){return zn.current=!1,function(){zn.current=!0}},[])},Ie=[];function ve(Te,Ze){var sn=gt.useState(function(){if(!xt())return null;var Eo=document.createElement("div");return Eo}),zn=lt(sn,1),Ii=zn[0],Nr=gt.useRef(!1),lr=gt.useContext(Tt),si=gt.useState(Ie),Zt=lt(si,2),Ao=Zt[0],rs=Zt[1],Ls=lr||(Nr.current?void 0:function(Eo){rs(function(gs){var os=[Eo].concat(xe(gs));return os})});function Xa(){Ii.parentElement||document.body.appendChild(Ii),Nr.current=!0}function Ea(){var Eo;(Eo=Ii.parentElement)===null||Eo===void 0||Eo.removeChild(Ii),Nr.current=!1}return tn(function(){return Te?lr?lr(Xa):Xa():Ea(),Ea},[Te]),tn(function(){Ao.length&&(Ao.forEach(function(Eo){return Eo()}),rs(Ie))},[Ao]),[Ii,Ls]}function ze(Te,Ze){if(!Te)return!1;if(Te.contains)return Te.contains(Ze);for(var sn=Ze;sn;){if(sn===Te)return!0;sn=sn.parentNode}return!1}var je="data-rc-order",He="rc-util-key",Ot=new Map;function Lt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ze=Te.mark;return Ze?Ze.startsWith("data-")?Ze:"data-".concat(Ze):He}function wt(Te){if(Te.attachTo)return Te.attachTo;var Ze=document.querySelector("head");return Ze||document.body}function Ft(Te){return Te==="queue"?"prependQueue":Te?"prepend":"append"}function Wt(Te){return Array.from((Ot.get(Te)||Te).children).filter(function(Ze){return Ze.tagName==="STYLE"})}function kt(Te){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xt())return null;var sn=Ze.csp,zn=Ze.prepend,Ii=document.createElement("style");Ii.setAttribute(je,Ft(zn)),sn!=null&&sn.nonce&&(Ii.nonce=sn==null?void 0:sn.nonce),Ii.innerHTML=Te;var Nr=wt(Ze),lr=Nr.firstChild;if(zn){if(zn==="queue"){var si=Wt(Nr).filter(function(Zt){return["prepend","prependQueue"].includes(Zt.getAttribute(je))});if(si.length)return Nr.insertBefore(Ii,si[si.length-1].nextSibling),Ii}Nr.insertBefore(Ii,lr)}else Nr.appendChild(Ii);return Ii}function Xt(Te){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},sn=wt(Ze);return Wt(sn).find(function(zn){return zn.getAttribute(Lt(Ze))===Te})}function $e(Te){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},sn=Xt(Te,Ze);if(sn){var zn=wt(Ze);zn.removeChild(sn)}}function Je(Te,Ze){var sn=Ot.get(Te);if(!sn||!ze(document,sn)){var zn=kt("",Ze),Ii=zn.parentNode;Ot.set(Te,Ii),Te.removeChild(zn)}}function fn(){Ot.clear()}function Ve(Te,Ze){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zn=wt(sn);Je(zn,sn);var Ii=Xt(Ze,sn);if(Ii){var Nr,lr;if((Nr=sn.csp)!==null&&Nr!==void 0&&Nr.nonce&&Ii.nonce!==((lr=sn.csp)===null||lr===void 0?void 0:lr.nonce)){var si;Ii.nonce=(si=sn.csp)===null||si===void 0?void 0:si.nonce}return Ii.innerHTML!==Te&&(Ii.innerHTML=Te),Ii}var Zt=kt(Te,sn);return Zt.setAttribute(Lt(sn),Ze),Zt}var Mn;function Ue(Te){if(typeof document=="undefined")return 0;if(Te||Mn===void 0){var Ze=document.createElement("div");Ze.style.width="100%",Ze.style.height="200px";var sn=document.createElement("div"),zn=sn.style;zn.position="absolute",zn.top="0",zn.left="0",zn.pointerEvents="none",zn.visibility="hidden",zn.width="200px",zn.height="150px",zn.overflow="hidden",sn.appendChild(Ze),document.body.appendChild(sn);var Ii=Ze.offsetWidth;sn.style.overflow="scroll";var Nr=Ze.offsetWidth;Ii===Nr&&(Nr=sn.clientWidth),document.body.removeChild(sn),Mn=Ii-Nr}return Mn}function ti(Te){var Ze=Te.match(/^(.*)px$/),sn=Number(Ze==null?void 0:Ze[1]);return Number.isNaN(sn)?Ue():sn}function Qn(Te){if(typeof document=="undefined"||!Te||!(Te instanceof Element))return{width:0,height:0};var Ze=getComputedStyle(Te,"::-webkit-scrollbar"),sn=Ze.width,zn=Ze.height;return{width:ti(sn),height:ti(zn)}}function Hn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var pn="rc-util-locker-".concat(Date.now()),gi=0;function Mi(Te){var Ze=!!Te,sn=gt.useState(function(){return gi+=1,"".concat(pn,"_").concat(gi)}),zn=lt(sn,1),Ii=zn[0];tn(function(){if(Ze){var Nr=Qn(document.body).width,lr=Hn();Ve(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(lr?"width: calc(100% - ".concat(Nr,"px);"):"",`
|
|
}`),Ii)}else $e(Ii);return function(){$e(Ii)}},[Ze,Ii])}var In=!1;function ei(Te){return typeof Te=="boolean"&&(In=Te),In}var Ki=function(Ze){return Ze===!1?!1:!xt()||!Ze?null:typeof Ze=="string"?document.querySelector(Ze):typeof Ze=="function"?Ze():Ze},hi=gt.forwardRef(function(Te,Ze){var sn=Te.open,zn=Te.autoLock,Ii=Te.getContainer,Nr=Te.debug,lr=Te.autoDestroy,si=lr===void 0?!0:lr,Zt=Te.children,Ao=gt.useState(sn),rs=lt(Ao,2),Ls=rs[0],Xa=rs[1],Ea=Ls||sn;gt.useEffect(function(){(si||sn)&&Xa(sn)},[sn,si]);var Eo=gt.useState(function(){return Ki(Ii)}),gs=lt(Eo,2),os=gs[0],Ho=gs[1];gt.useEffect(function(){var as=Ki(Ii);Ho(as!=null?as:null)});var _o=ve(Ea&&!os,Nr),er=lt(_o,2),Qi=er[0],Er=er[1],hn=os!=null?os:Qi;Mi(zn&&sn&&xt()&&(hn===Qi||hn===document.body));var ar=null;if(Zt&&Zn(Zt)&&Ze){var oo=Zt;ar=oo.ref}var ca=an(ar,Ze);if(!Ea||!xt()||os===void 0)return null;var $o=hn===!1||ei(),ia=Zt;return Ze&&(ia=gt.cloneElement(Zt,{ref:ca})),gt.createElement(Tt.Provider,{value:Er},$o?ia:(0,mt.createPortal)(ia,hn))}),$i=hi,pr=$i;function rr(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ki=rr()?gt.useLayoutEffect:gt.useEffect,sr=function(Ze,sn){var zn=gt.useRef(!0);ki(function(){return Ze(zn.current)},sn),ki(function(){return zn.current=!1,function(){zn.current=!0}},[])},Ur=function(Ze,sn){sr(function(zn){if(!zn)return Ze()},sn)},Jo=sr,Rr=gt.createContext(null),To=gt.createContext({}),pa=Rr;function co(){return co=Object.assign?Object.assign.bind():function(Te){for(var Ze=1;Ze<arguments.length;Ze++){var sn=arguments[Ze];for(var zn in sn)({}).hasOwnProperty.call(sn,zn)&&(Te[zn]=sn[zn])}return Te},co.apply(null,arguments)}var Xi=Mt(94184),bn=Mt.n(Xi),bt=Mt(62874),wn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ze){var sn=Ze.keyCode;if(Ze.altKey&&!Ze.ctrlKey||Ze.metaKey||sn>=wn.F1&&sn<=wn.F12)return!1;switch(sn){case wn.ALT:case wn.CAPS_LOCK:case wn.CONTEXT_MENU:case wn.CTRL:case wn.DOWN:case wn.END:case wn.ESC:case wn.HOME:case wn.INSERT:case wn.LEFT:case wn.MAC_FF_META:case wn.META:case wn.NUMLOCK:case wn.NUM_CENTER:case wn.PAGE_DOWN:case wn.PAGE_UP:case wn.PAUSE:case wn.PRINT_SCREEN:case wn.RIGHT:case wn.SHIFT:case wn.UP:case wn.WIN_KEY:case wn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ze){if(Ze>=wn.ZERO&&Ze<=wn.NINE||Ze>=wn.NUM_ZERO&&Ze<=wn.NUM_MULTIPLY||Ze>=wn.A&&Ze<=wn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ze===0)return!0;switch(Ze){case wn.SPACE:case wn.QUESTION_MARK:case wn.NUM_PLUS:case wn.NUM_MINUS:case wn.NUM_PERIOD:case wn.NUM_DIVISION:case wn.SEMICOLON:case wn.DASH:case wn.EQUALS:case wn.COMMA:case wn.PERIOD:case wn.SLASH:case wn.APOSTROPHE:case wn.SINGLE_QUOTE:case wn.OPEN_SQUARE_BRACKET:case wn.BACKSLASH:case wn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fn=wn;function Un(Te){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ze){return typeof Ze}:function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},Un(Te)}function Xn(Te,Ze){if(Un(Te)!=="object"||Te===null)return Te;var sn=Te[Symbol.toPrimitive];if(sn!==void 0){var zn=sn.call(Te,Ze||"default");if(Un(zn)!=="object")return zn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ze==="string"?String:Number)(Te)}function ai(Te){var Ze=Xn(Te,"string");return Un(Ze)==="symbol"?Ze:String(Ze)}function Tn(Te,Ze,sn){return Ze=ai(Ze),Ze in Te?Object.defineProperty(Te,Ze,{value:sn,enumerable:!0,configurable:!0,writable:!0}):Te[Ze]=sn,Te}function Di(Te,Ze){var sn=Object.keys(Te);if(Object.getOwnPropertySymbols){var zn=Object.getOwnPropertySymbols(Te);Ze&&(zn=zn.filter(function(Ii){return Object.getOwnPropertyDescriptor(Te,Ii).enumerable})),sn.push.apply(sn,zn)}return sn}function te(Te){for(var Ze=1;Ze<arguments.length;Ze++){var sn=arguments[Ze]!=null?arguments[Ze]:{};Ze%2?Di(Object(sn),!0).forEach(function(zn){Tn(Te,zn,sn[zn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Te,Object.getOwnPropertyDescriptors(sn)):Di(Object(sn)).forEach(function(zn){Object.defineProperty(Te,zn,Object.getOwnPropertyDescriptor(sn,zn))})}return Te}var le=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,ae=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ae="".concat(le," ").concat(ae).split(/[\s\n]+/),Sn="aria-",An="data-";function En(Te,Ze){return Te.indexOf(Ze)===0}function ke(Te){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn;Ze===!1?sn={aria:!0,data:!0,attr:!0}:Ze===!0?sn={aria:!0}:sn=te({},Ze);var zn={};return Object.keys(Te).forEach(function(Ii){(sn.aria&&(Ii==="role"||En(Ii,Sn))||sn.data&&En(Ii,An)||sn.attr&&Ae.includes(Ii))&&(zn[Ii]=Te[Ii])}),zn}function cn(Te,Ze){if(Te==null)return{};var sn={};for(var zn in Te)if({}.hasOwnProperty.call(Te,zn)){if(Ze.indexOf(zn)!==-1)continue;sn[zn]=Te[zn]}return sn}function _n(Te,Ze){if(Te==null)return{};var sn,zn,Ii=cn(Te,Ze);if(Object.getOwnPropertySymbols){var Nr=Object.getOwnPropertySymbols(Te);for(zn=0;zn<Nr.length;zn++)sn=Nr[zn],Ze.indexOf(sn)===-1&&{}.propertyIsEnumerable.call(Te,sn)&&(Ii[sn]=Te[sn])}return Ii}var vi=Mt(33993);function mn(Te,Ze,sn){var zn=gt.useRef({});return(!("value"in zn.current)||sn(zn.current.condition,Ze))&&(zn.current.value=Te(),zn.current.condition=Ze),zn.current.value}var Oe=Symbol.for("react.element"),ni=Symbol.for("react.transitional.element"),Pi=Symbol.for("react.fragment");function Li(Te){return Te&&_typeof(Te)==="object"&&(Te.$$typeof===Oe||Te.$$typeof===ni)&&Te.type===Pi}var qe=Number(gt.version.split(".")[0]),oi=function(Ze,sn){typeof Ze=="function"?Ze(sn):Un(Ze)==="object"&&Ze&&"current"in Ze&&(Ze.current=sn)},Ni=function(){for(var Ze=arguments.length,sn=new Array(Ze),zn=0;zn<Ze;zn++)sn[zn]=arguments[zn];var Ii=sn.filter(Boolean);return Ii.length<=1?Ii[0]:function(Nr){sn.forEach(function(lr){oi(lr,Nr)})}},gr=function(){for(var Ze=arguments.length,sn=new Array(Ze),zn=0;zn<Ze;zn++)sn[zn]=arguments[zn];return mn(function(){return Ni.apply(void 0,sn)},sn,function(Ii,Nr){return Ii.length!==Nr.length||Ii.every(function(lr,si){return lr!==Nr[si]})})},xr=function(Ze){var sn,zn;if(!Ze)return!1;if(Si(Ze)&&qe>=19)return!0;var Ii=isMemo(Ze)?Ze.type.type:Ze.type;return!(typeof Ii=="function"&&!((sn=Ii.prototype)!==null&&sn!==void 0&&sn.render)&&Ii.$$typeof!==ForwardRef||typeof Ze=="function"&&!((zn=Ze.prototype)!==null&&zn!==void 0&&zn.render)&&Ze.$$typeof!==ForwardRef)};function Si(Te){return isValidElement(Te)&&!isFragment(Te)}var Fi=function(Ze){return Si(Ze)&&xr(Ze)},Gi=function(Ze){if(Ze&&Si(Ze)){var sn=Ze;return sn.props.propertyIsEnumerable("ref")?sn.props.ref:sn.ref}return null},Mr=["prefixCls","className","containerRef"],hr=function(Ze){var sn=Ze.prefixCls,zn=Ze.className,Ii=Ze.containerRef,Nr=_n(Ze,Mr),lr=gt.useContext(To),si=lr.panel,Zt=gr(si,Ii);return gt.createElement("div",co({className:bn()("".concat(sn,"-content"),zn),role:"dialog",ref:Zt},ke(Ze,{aria:!0}),{"aria-modal":"true"},Nr))},Yn=hr,zi={},qo=[],sa=function(Ze){qo.push(Ze)};function la(Te,Ze){if(0)var sn}function Ke(Te,Ze){if(0)var sn}function ur(){zi={}}function Tr(Te,Ze,sn){!Ze&&!zi[sn]&&(Te(!1,sn),zi[sn]=!0)}function or(Te,Ze){Tr(la,Te,Ze)}function Vo(Te,Ze){Tr(Ke,Te,Ze)}or.preMessage=sa,or.resetWarned=ur,or.noteOnce=Vo;var eo=or;function uo(Te){return typeof Te=="string"&&String(Number(Te))===Te?(eo(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Te)):Te}function Xr(Te){warning(!("wrapperClassName"in Te),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Te.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ir={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Mo(Te,Ze){var sn,zn,Ii,Nr=Te.prefixCls,lr=Te.open,si=Te.placement,Zt=Te.inline,Ao=Te.push,rs=Te.forceRender,Ls=Te.autoFocus,Xa=Te.keyboard,Ea=Te.classNames,Eo=Te.rootClassName,gs=Te.rootStyle,os=Te.zIndex,Ho=Te.className,_o=Te.id,er=Te.style,Qi=Te.motion,Er=Te.width,hn=Te.height,ar=Te.children,oo=Te.mask,ca=Te.maskClosable,$o=Te.maskMotion,ia=Te.maskClassName,as=Te.maskStyle,Ks=Te.afterOpenChange,vs=Te.onClose,au=Te.onMouseEnter,ks=Te.onMouseOver,en=Te.onMouseLeave,Us=Te.onClick,kl=Te.onKeyDown,xu=Te.onKeyUp,ma=Te.styles,Pl=Te.drawerRender,wl=gt.useRef(),su=gt.useRef(),Aa=gt.useRef();gt.useImperativeHandle(Ze,function(){return wl.current});var ps=function(Fs){var no=Fs.keyCode,Pa=Fs.shiftKey;switch(no){case Fn.TAB:{if(no===Fn.TAB){if(!Pa&&document.activeElement===Aa.current){var Qr;(Qr=su.current)===null||Qr===void 0||Qr.focus({preventScroll:!0})}else if(Pa&&document.activeElement===su.current){var ua;(ua=Aa.current)===null||ua===void 0||ua.focus({preventScroll:!0})}}break}case Fn.ESC:{vs&&Xa&&(Fs.stopPropagation(),vs(Fs));break}}};gt.useEffect(function(){if(lr&&Ls){var Ms;(Ms=wl.current)===null||Ms===void 0||Ms.focus({preventScroll:!0})}},[lr]);var so=gt.useState(!1),Do=pe(so,2),ka=Do[0],ls=Do[1],qi=gt.useContext(pa),Gu;typeof Ao=="boolean"?Gu=Ao?{}:{distance:0}:Gu=Ao||{};var zl=(sn=(zn=(Ii=Gu)===null||Ii===void 0?void 0:Ii.distance)!==null&&zn!==void 0?zn:qi==null?void 0:qi.pushDistance)!==null&&sn!==void 0?sn:180,Cl=gt.useMemo(function(){return{pushDistance:zl,push:function(){ls(!0)},pull:function(){ls(!1)}}},[zl]);gt.useEffect(function(){if(lr){var Ms;qi==null||(Ms=qi.push)===null||Ms===void 0||Ms.call(qi)}else{var Fs;qi==null||(Fs=qi.pull)===null||Fs===void 0||Fs.call(qi)}},[lr]),gt.useEffect(function(){return function(){var Ms;qi==null||(Ms=qi.pull)===null||Ms===void 0||Ms.call(qi)}},[]);var Zh=oo&>.createElement(bt.Z,co({key:"mask"},$o,{visible:lr}),function(Ms,Fs){var no=Ms.className,Pa=Ms.style;return gt.createElement("div",{className:bn()("".concat(Nr,"-mask"),no,Ea==null?void 0:Ea.mask,ia),style:Bt(Bt(Bt({},Pa),as),ma==null?void 0:ma.mask),onClick:ca&&lr?vs:void 0,ref:Fs})}),Zu=typeof Qi=="function"?Qi(si):Qi,Bi={};if(ka&&zl)switch(si){case"top":Bi.transform="translateY(".concat(zl,"px)");break;case"bottom":Bi.transform="translateY(".concat(-zl,"px)");break;case"left":Bi.transform="translateX(".concat(zl,"px)");break;default:Bi.transform="translateX(".concat(-zl,"px)");break}si==="left"||si==="right"?Bi.width=uo(Er):Bi.height=uo(hn);var ds={onMouseEnter:au,onMouseOver:ks,onMouseLeave:en,onClick:Us,onKeyDown:kl,onKeyUp:xu},Ns=gt.createElement(bt.Z,co({key:"panel"},Zu,{visible:lr,forceRender:rs,onVisibleChanged:function(Fs){Ks==null||Ks(Fs)},removeOnLeave:!1,leavedClassName:"".concat(Nr,"-content-wrapper-hidden")}),function(Ms,Fs){var no=Ms.className,Pa=Ms.style,Qr=gt.createElement(Yn,co({id:_o,containerRef:Fs,prefixCls:Nr,className:bn()(Ho,Ea==null?void 0:Ea.content),style:Bt(Bt({},er),ma==null?void 0:ma.content)},ke(Te,{aria:!0}),ds),ar);return gt.createElement("div",co({className:bn()("".concat(Nr,"-content-wrapper"),Ea==null?void 0:Ea.wrapper,no),style:Bt(Bt(Bt({},Bi),Pa),ma==null?void 0:ma.wrapper)},ke(Te,{data:!0})),Pl?Pl(Qr):Qr)}),Xl=Bt({},gs);return os&&(Xl.zIndex=os),gt.createElement(pa.Provider,{value:Cl},gt.createElement("div",{className:bn()(Nr,"".concat(Nr,"-").concat(si),Eo,Be(Be({},"".concat(Nr,"-open"),lr),"".concat(Nr,"-inline"),Zt)),style:Xl,tabIndex:-1,ref:wl,onKeyDown:ps},Zh,gt.createElement("div",{tabIndex:0,ref:su,style:Ir,"aria-hidden":"true","data-sentinel":"start"}),Ns,gt.createElement("div",{tabIndex:0,ref:Aa,style:Ir,"aria-hidden":"true","data-sentinel":"end"})))}var Ln=gt.forwardRef(Mo),$r=Ln,Pn=function(Ze){var sn=Ze.open,zn=sn===void 0?!1:sn,Ii=Ze.prefixCls,Nr=Ii===void 0?"rc-drawer":Ii,lr=Ze.placement,si=lr===void 0?"right":lr,Zt=Ze.autoFocus,Ao=Zt===void 0?!0:Zt,rs=Ze.keyboard,Ls=rs===void 0?!0:rs,Xa=Ze.width,Ea=Xa===void 0?378:Xa,Eo=Ze.mask,gs=Eo===void 0?!0:Eo,os=Ze.maskClosable,Ho=os===void 0?!0:os,_o=Ze.getContainer,er=Ze.forceRender,Qi=Ze.afterOpenChange,Er=Ze.destroyOnClose,hn=Ze.onMouseEnter,ar=Ze.onMouseOver,oo=Ze.onMouseLeave,ca=Ze.onClick,$o=Ze.onKeyDown,ia=Ze.onKeyUp,as=Ze.panelRef,Ks=gt.useState(!1),vs=pe(Ks,2),au=vs[0],ks=vs[1],en=gt.useState(!1),Us=pe(en,2),kl=Us[0],xu=Us[1];Jo(function(){xu(!0)},[]);var ma=kl?zn:!1,Pl=gt.useRef(),wl=gt.useRef();Jo(function(){ma&&(wl.current=document.activeElement)},[ma]);var su=function(ka){var ls;if(ks(ka),Qi==null||Qi(ka),!ka&&wl.current&&!((ls=Pl.current)!==null&&ls!==void 0&&ls.contains(wl.current))){var qi;(qi=wl.current)===null||qi===void 0||qi.focus({preventScroll:!0})}},Aa=gt.useMemo(function(){return{panel:as}},[as]);if(!er&&!au&&!ma&&Er)return null;var ps={onMouseEnter:hn,onMouseOver:ar,onMouseLeave:oo,onClick:ca,onKeyDown:$o,onKeyUp:ia},so=Bt(Bt({},Ze),{},{open:ma,prefixCls:Nr,placement:si,autoFocus:Ao,keyboard:Ls,width:Ea,mask:gs,maskClosable:Ho,inline:_o===!1,afterOpenChange:su,ref:Pl},ps);return gt.createElement(To.Provider,{value:Aa},gt.createElement(pr,{open:ma||er||au,autoDestroy:!1,getContainer:_o,autoLock:gs&&(ma||au)},gt.createElement($r,so)))},Br=Pn,Ga=Br},26819:function(un,Nn){"use strict";var Mt;var Pt=typeof Symbol=="function"&&Symbol.for,ne=Pt?Symbol.for("react.element"):60103,Ne=Pt?Symbol.for("react.portal"):60106,Be=Pt?Symbol.for("react.fragment"):60107,Pe=Pt?Symbol.for("react.strict_mode"):60108,Bt=Pt?Symbol.for("react.profiler"):60114,Ut=Pt?Symbol.for("react.provider"):60109,ue=Pt?Symbol.for("react.context"):60110,se=Pt?Symbol.for("react.async_mode"):60111,Se=Pt?Symbol.for("react.concurrent_mode"):60111,Xe=Pt?Symbol.for("react.forward_ref"):60112,pe=Pt?Symbol.for("react.suspense"):60113,Ht=Pt?Symbol.for("react.suspense_list"):60120,Dt=Pt?Symbol.for("react.memo"):60115,nt=Pt?Symbol.for("react.lazy"):60116,et=Pt?Symbol.for("react.block"):60121,ht=Pt?Symbol.for("react.fundamental"):60117,lt=Pt?Symbol.for("react.responder"):60118,gt=Pt?Symbol.for("react.scope"):60119;function mt(St){if(typeof St=="object"&&St!==null){var zt=St.$$typeof;switch(zt){case ne:switch(St=St.type,St){case se:case Se:case Be:case Bt:case Pe:case pe:return St;default:switch(St=St&&St.$$typeof,St){case ue:case Xe:case nt:case Dt:case Ut:return St;default:return zt}}case Ne:return zt}}}function xt(St){return mt(St)===Se}Mt=se,Mt=Se,Mt=ue,Mt=Ut,Mt=ne,Mt=Xe,Mt=Be,Mt=nt,Mt=Dt,Mt=Ne,Mt=Bt,Mt=Pe,Mt=pe,Mt=function(St){return xt(St)||mt(St)===se},Mt=xt,Mt=function(St){return mt(St)===ue},Mt=function(St){return mt(St)===Ut},Mt=function(St){return typeof St=="object"&&St!==null&&St.$$typeof===ne},Mt=function(St){return mt(St)===Xe},Mt=function(St){return mt(St)===Be},Mt=function(St){return mt(St)===nt},Nn.isMemo=function(St){return mt(St)===Dt},Mt=function(St){return mt(St)===Ne},Mt=function(St){return mt(St)===Bt},Mt=function(St){return mt(St)===Pe},Mt=function(St){return mt(St)===pe},Mt=function(St){return typeof St=="string"||typeof St=="function"||St===Be||St===Se||St===Bt||St===Pe||St===pe||St===Ht||typeof St=="object"&&St!==null&&(St.$$typeof===nt||St.$$typeof===Dt||St.$$typeof===Ut||St.$$typeof===ue||St.$$typeof===Xe||St.$$typeof===ht||St.$$typeof===lt||St.$$typeof===gt||St.$$typeof===et)},Mt=mt},18459:function(un,Nn,Mt){"use strict";un.exports=Mt(26819)},16651:function(un,Nn){"use strict";var Mt;var Pt=Symbol.for("react.element"),ne=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),Ut=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),se=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Dt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case Pt:switch(ht=ht.type,ht){case Ne:case Pe:case Be:case Se:case Xe:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Ut:case se:case Ht:case pe:case Bt:return ht;default:return lt}}case ne:return lt}}}Mt=Ut,Mt=Bt,Mt=Pt,Mt=se,Mt=Ne,Mt=Ht,Mt=pe,Mt=ne,Mt=Pe,Mt=Be,Mt=Se,Mt=Xe,Mt=function(){return!1},Mt=function(){return!1},Mt=function(ht){return et(ht)===Ut},Mt=function(ht){return et(ht)===Bt},Mt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Pt},Mt=function(ht){return et(ht)===se},Mt=function(ht){return et(ht)===Ne},Mt=function(ht){return et(ht)===Ht},Mt=function(ht){return et(ht)===pe},Mt=function(ht){return et(ht)===ne},Mt=function(ht){return et(ht)===Pe},Mt=function(ht){return et(ht)===Be},Mt=function(ht){return et(ht)===Se},Mt=function(ht){return et(ht)===Xe},Mt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Ne||ht===Pe||ht===Be||ht===Se||ht===Xe||ht===Dt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===Ht||ht.$$typeof===pe||ht.$$typeof===Bt||ht.$$typeof===Ut||ht.$$typeof===se||ht.$$typeof===nt||ht.getModuleId!==void 0)},Mt=et},33993:function(un,Nn,Mt){"use strict";Mt(16651)},31457:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return ze}});var Pt=Mt(4942),ne=Mt(87462),Ne=Mt(71002),Be=Mt(1413),Pe=Mt(97685),Bt=Mt(94184),Ut=Mt.n(Bt),ue=Mt(67294);function se(je){var He=ue.useRef();He.current=je;var Ot=ue.useCallback(function(){for(var Lt,wt=arguments.length,Ft=new Array(wt),Wt=0;Wt<wt;Wt++)Ft[Wt]=arguments[Wt];return(Lt=He.current)===null||Lt===void 0?void 0:Lt.call.apply(Lt,[He].concat(Ft))},[]);return Ot}function Se(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xe=Se()?ue.useLayoutEffect:ue.useEffect,pe=function(He,Ot){var Lt=ue.useRef(!0);Xe(function(){return He(Lt.current)},Ot),Xe(function(){return Lt.current=!1,function(){Lt.current=!0}},[])},Ht=function(He,Ot){pe(function(Lt){if(!Lt)return He()},Ot)},Dt=null;function nt(je){var He=ue.useRef(!1),Ot=ue.useState(je),Lt=(0,Pe.Z)(Ot,2),wt=Lt[0],Ft=Lt[1];ue.useEffect(function(){return He.current=!1,function(){He.current=!0}},[]);function Wt(kt,Xt){Xt&&He.current||Ft(kt)}return[wt,Wt]}function et(je){return je!==void 0}function ht(je,He){var Ot=He||{},Lt=Ot.defaultValue,wt=Ot.value,Ft=Ot.onChange,Wt=Ot.postState,kt=nt(function(){return et(wt)?wt:et(Lt)?typeof Lt=="function"?Lt():Lt:typeof je=="function"?je():je}),Xt=(0,Pe.Z)(kt,2),$e=Xt[0],Je=Xt[1],fn=wt!==void 0?wt:$e,Ve=Wt?Wt(fn):fn,Mn=se(Ft),Ue=nt([fn]),ti=(0,Pe.Z)(Ue,2),Qn=ti[0],Hn=ti[1];Ht(function(){var gi=Qn[0];$e!==gi&&Mn($e,gi)},[Qn]),Ht(function(){et(wt)||Je(wt)},[wt]);var pn=se(function(gi,Mi){Je(gi,Mi),Hn([fn],Mi)});return[Ve,pn]}var lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(He){var Ot=He.keyCode;if(He.altKey&&!He.ctrlKey||He.metaKey||Ot>=lt.F1&&Ot<=lt.F12)return!1;switch(Ot){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(He){if(He>=lt.ZERO&&He<=lt.NINE||He>=lt.NUM_ZERO&&He<=lt.NUM_MULTIPLY||He>=lt.A&&He<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&He===0)return!0;switch(He){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=lt,mt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,xt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,St="".concat(mt," ").concat(xt).split(/[\s\n]+/),zt="aria-",Jt="data-";function re(je,He){return je.indexOf(He)===0}function oe(je){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot;He===!1?Ot={aria:!0,data:!0,attr:!0}:He===!0?Ot={aria:!0}:Ot=(0,Be.Z)({},He);var Lt={};return Object.keys(je).forEach(function(wt){(Ot.aria&&(wt==="role"||re(wt,zt))||Ot.data&&re(wt,Jt)||Ot.attr&&St.includes(wt))&&(Lt[wt]=je[wt])}),Lt}var $t={},Le=[],de=function(He){Le.push(He)};function Fe(je,He){if(0)var Ot}function rn(je,He){if(0)var Ot}function De(){$t={}}function jn(je,He,Ot){!He&&!$t[Ot]&&(je(!1,Ot),$t[Ot]=!0)}function Bn(je,He){jn(Fe,je,He)}function an(je,He){jn(rn,je,He)}Bn.preMessage=de,Bn.resetWarned=De,Bn.noteOnce=an;var Zn=null,_t=Mt(81626),Tt=[10,20,50,100],ce=function(He){var Ot=He.pageSizeOptions,Lt=Ot===void 0?Tt:Ot,wt=He.locale,Ft=He.changeSize,Wt=He.pageSize,kt=He.goButton,Xt=He.quickGo,$e=He.rootPrefixCls,Je=He.disabled,fn=He.buildOptionText,Ve=He.showSizeChanger,Mn=He.sizeChangerRender,Ue=ue.useState(""),ti=(0,Pe.Z)(Ue,2),Qn=ti[0],Hn=ti[1],pn=function(){return!Qn||Number.isNaN(Qn)?void 0:Number(Qn)},gi=typeof fn=="function"?fn:function(ki){return"".concat(ki," ").concat(wt.items_per_page)},Mi=function(sr){Hn(sr.target.value)},In=function(sr){kt||Qn===""||(Hn(""),!(sr.relatedTarget&&(sr.relatedTarget.className.indexOf("".concat($e,"-item-link"))>=0||sr.relatedTarget.className.indexOf("".concat($e,"-item"))>=0))&&(Xt==null||Xt(pn())))},ei=function(sr){Qn!==""&&(sr.keyCode===gt.ENTER||sr.type==="click")&&(Hn(""),Xt==null||Xt(pn()))},Ki=function(){return Lt.some(function(sr){return sr.toString()===Wt.toString()})?Lt:Lt.concat([Wt]).sort(function(sr,Ur){var Jo=Number.isNaN(Number(sr))?0:Number(sr),Rr=Number.isNaN(Number(Ur))?0:Number(Ur);return Jo-Rr})},hi="".concat($e,"-options");if(!Ve&&!Xt)return null;var $i=null,pr=null,rr=null;return Ve&&Mn&&($i=Mn({disabled:Je,size:Wt,onSizeChange:function(sr){Ft==null||Ft(Number(sr))},"aria-label":wt.page_size,className:"".concat(hi,"-size-changer"),options:Ki().map(function(ki){return{label:gi(ki),value:ki}})})),Xt&&(kt&&(rr=typeof kt=="boolean"?ue.createElement("button",{type:"button",onClick:ei,onKeyUp:ei,disabled:Je,className:"".concat(hi,"-quick-jumper-button")},wt.jump_to_confirm):ue.createElement("span",{onClick:ei,onKeyUp:ei},kt)),pr=ue.createElement("div",{className:"".concat(hi,"-quick-jumper")},wt.jump_to,ue.createElement("input",{disabled:Je,type:"text",value:Qn,onChange:Mi,onKeyUp:ei,onBlur:In,"aria-label":wt.page}),wt.page,rr)),ue.createElement("li",{className:hi},$i,pr)},_e=ce,Ye=function(He){var Ot=He.rootPrefixCls,Lt=He.page,wt=He.active,Ft=He.className,Wt=He.showTitle,kt=He.onClick,Xt=He.onKeyPress,$e=He.itemRender,Je="".concat(Ot,"-item"),fn=Ut()(Je,"".concat(Je,"-").concat(Lt),(0,Pt.Z)((0,Pt.Z)({},"".concat(Je,"-active"),wt),"".concat(Je,"-disabled"),!Lt),Ft),Ve=function(){kt(Lt)},Mn=function(Qn){Xt(Qn,kt,Lt)},Ue=$e(Lt,"page",ue.createElement("a",{rel:"nofollow"},Lt));return Ue?ue.createElement("li",{title:Wt?String(Lt):null,className:fn,onClick:Ve,onKeyDown:Mn,tabIndex:0},Ue):null},xe=Ye,on=function(He,Ot,Lt){return Lt};function tn(){}function Cn(je){var He=Number(je);return typeof He=="number"&&!Number.isNaN(He)&&isFinite(He)&&Math.floor(He)===He}function Ie(je,He,Ot){var Lt=typeof je=="undefined"?He:je;return Math.floor((Ot-1)/Lt)+1}var ve=function(He){var Ot=He.prefixCls,Lt=Ot===void 0?"rc-pagination":Ot,wt=He.selectPrefixCls,Ft=wt===void 0?"rc-select":wt,Wt=He.className,kt=He.current,Xt=He.defaultCurrent,$e=Xt===void 0?1:Xt,Je=He.total,fn=Je===void 0?0:Je,Ve=He.pageSize,Mn=He.defaultPageSize,Ue=Mn===void 0?10:Mn,ti=He.onChange,Qn=ti===void 0?tn:ti,Hn=He.hideOnSinglePage,pn=He.align,gi=He.showPrevNextJumpers,Mi=gi===void 0?!0:gi,In=He.showQuickJumper,ei=He.showLessItems,Ki=He.showTitle,hi=Ki===void 0?!0:Ki,$i=He.onShowSizeChange,pr=$i===void 0?tn:$i,rr=He.locale,ki=rr===void 0?_t.Z:rr,sr=He.style,Ur=He.totalBoundaryShowSizeChanger,Jo=Ur===void 0?50:Ur,Rr=He.disabled,To=He.simple,pa=He.showTotal,co=He.showSizeChanger,Xi=co===void 0?fn>Jo:co,bn=He.sizeChangerRender,bt=He.pageSizeOptions,wn=He.itemRender,Fn=wn===void 0?on:wn,Un=He.jumpPrevIcon,Xn=He.jumpNextIcon,ai=He.prevIcon,Tn=He.nextIcon,Di=ue.useRef(null),te=ht(10,{value:Ve,defaultValue:Ue}),le=(0,Pe.Z)(te,2),ae=le[0],Ae=le[1],Sn=ht(1,{value:kt,defaultValue:$e,postState:function(ar){return Math.max(1,Math.min(ar,Ie(void 0,ae,fn)))}}),An=(0,Pe.Z)(Sn,2),En=An[0],ke=An[1],cn=ue.useState(En),_n=(0,Pe.Z)(cn,2),vi=_n[0],mn=_n[1];(0,ue.useEffect)(function(){mn(En)},[En]);var Oe=Qn!==tn,ni="current"in He,Pi=Math.max(1,En-(ei?3:5)),Li=Math.min(Ie(void 0,ae,fn),En+(ei?3:5));function qe(hn,ar){var oo=hn||ue.createElement("button",{type:"button","aria-label":ar,className:"".concat(Lt,"-item-link")});return typeof hn=="function"&&(oo=ue.createElement(hn,(0,Be.Z)({},He))),oo}function oi(hn){var ar=hn.target.value,oo=Ie(void 0,ae,fn),ca;return ar===""?ca=ar:Number.isNaN(Number(ar))?ca=vi:ar>=oo?ca=oo:ca=Number(ar),ca}function Ni(hn){return Cn(hn)&&hn!==En&&Cn(fn)&&fn>0}var gr=fn>ae?In:!1;function xr(hn){(hn.keyCode===gt.UP||hn.keyCode===gt.DOWN)&&hn.preventDefault()}function Si(hn){var ar=oi(hn);switch(ar!==vi&&mn(ar),hn.keyCode){case gt.ENTER:Mr(ar);break;case gt.UP:Mr(ar-1);break;case gt.DOWN:Mr(ar+1);break;default:break}}function Fi(hn){Mr(oi(hn))}function Gi(hn){var ar=Ie(hn,ae,fn),oo=En>ar&&ar!==0?ar:En;Ae(hn),mn(oo),pr==null||pr(En,hn),ke(oo),Qn==null||Qn(oo,hn)}function Mr(hn){if(Ni(hn)&&!Rr){var ar=Ie(void 0,ae,fn),oo=hn;return hn>ar?oo=ar:hn<1&&(oo=1),oo!==vi&&mn(oo),ke(oo),Qn==null||Qn(oo,ae),oo}return En}var hr=En>1,Yn=En<Ie(void 0,ae,fn);function zi(){hr&&Mr(En-1)}function qo(){Yn&&Mr(En+1)}function sa(){Mr(Pi)}function la(){Mr(Li)}function Ke(hn,ar){if(hn.key==="Enter"||hn.charCode===gt.ENTER||hn.keyCode===gt.ENTER){for(var oo=arguments.length,ca=new Array(oo>2?oo-2:0),$o=2;$o<oo;$o++)ca[$o-2]=arguments[$o];ar.apply(void 0,ca)}}function ur(hn){Ke(hn,zi)}function Tr(hn){Ke(hn,qo)}function or(hn){Ke(hn,sa)}function Vo(hn){Ke(hn,la)}function eo(hn){var ar=Fn(hn,"prev",qe(ai,"prev page"));return ue.isValidElement(ar)?ue.cloneElement(ar,{disabled:!hr}):ar}function uo(hn){var ar=Fn(hn,"next",qe(Tn,"next page"));return ue.isValidElement(ar)?ue.cloneElement(ar,{disabled:!Yn}):ar}function Xr(hn){(hn.type==="click"||hn.keyCode===gt.ENTER)&&Mr(vi)}var Ir=null,Mo=oe(He,{aria:!0,data:!0}),Ln=pa&&ue.createElement("li",{className:"".concat(Lt,"-total-text")},pa(fn,[fn===0?0:(En-1)*ae+1,En*ae>fn?fn:En*ae])),$r=null,Pn=Ie(void 0,ae,fn);if(Hn&&fn<=ae)return null;var Br=[],Ga={rootPrefixCls:Lt,onClick:Mr,onKeyPress:Ke,showTitle:hi,itemRender:Fn,page:-1},Te=En-1>0?En-1:0,Ze=En+1<Pn?En+1:Pn,sn=In&&In.goButton,zn=(0,Ne.Z)(To)==="object"?To.readOnly:!To,Ii=sn,Nr=null;To&&(sn&&(typeof sn=="boolean"?Ii=ue.createElement("button",{type:"button",onClick:Xr,onKeyUp:Xr},ki.jump_to_confirm):Ii=ue.createElement("span",{onClick:Xr,onKeyUp:Xr},sn),Ii=ue.createElement("li",{title:hi?"".concat(ki.jump_to).concat(En,"/").concat(Pn):null,className:"".concat(Lt,"-simple-pager")},Ii)),Nr=ue.createElement("li",{title:hi?"".concat(En,"/").concat(Pn):null,className:"".concat(Lt,"-simple-pager")},zn?vi:ue.createElement("input",{type:"text","aria-label":ki.jump_to,value:vi,disabled:Rr,onKeyDown:xr,onKeyUp:Si,onChange:Si,onBlur:Fi,size:3}),ue.createElement("span",{className:"".concat(Lt,"-slash")},"/"),Pn));var lr=ei?1:2;if(Pn<=3+lr*2){Pn||Br.push(ue.createElement(xe,(0,ne.Z)({},Ga,{key:"noPager",page:1,className:"".concat(Lt,"-item-disabled")})));for(var si=1;si<=Pn;si+=1)Br.push(ue.createElement(xe,(0,ne.Z)({},Ga,{key:si,page:si,active:En===si})))}else{var Zt=ei?ki.prev_3:ki.prev_5,Ao=ei?ki.next_3:ki.next_5,rs=Fn(Pi,"jump-prev",qe(Un,"prev page")),Ls=Fn(Li,"jump-next",qe(Xn,"next page"));Mi&&(Ir=rs?ue.createElement("li",{title:hi?Zt:null,key:"prev",onClick:sa,tabIndex:0,onKeyDown:or,className:Ut()("".concat(Lt,"-jump-prev"),(0,Pt.Z)({},"".concat(Lt,"-jump-prev-custom-icon"),!!Un))},rs):null,$r=Ls?ue.createElement("li",{title:hi?Ao:null,key:"next",onClick:la,tabIndex:0,onKeyDown:Vo,className:Ut()("".concat(Lt,"-jump-next"),(0,Pt.Z)({},"".concat(Lt,"-jump-next-custom-icon"),!!Xn))},Ls):null);var Xa=Math.max(1,En-lr),Ea=Math.min(En+lr,Pn);En-1<=lr&&(Ea=1+lr*2),Pn-En<=lr&&(Xa=Pn-lr*2);for(var Eo=Xa;Eo<=Ea;Eo+=1)Br.push(ue.createElement(xe,(0,ne.Z)({},Ga,{key:Eo,page:Eo,active:En===Eo})));if(En-1>=lr*2&&En!==3&&(Br[0]=ue.cloneElement(Br[0],{className:Ut()("".concat(Lt,"-item-after-jump-prev"),Br[0].props.className)}),Br.unshift(Ir)),Pn-En>=lr*2&&En!==Pn-2){var gs=Br[Br.length-1];Br[Br.length-1]=ue.cloneElement(gs,{className:Ut()("".concat(Lt,"-item-before-jump-next"),gs.props.className)}),Br.push($r)}Xa!==1&&Br.unshift(ue.createElement(xe,(0,ne.Z)({},Ga,{key:1,page:1}))),Ea!==Pn&&Br.push(ue.createElement(xe,(0,ne.Z)({},Ga,{key:Pn,page:Pn})))}var os=eo(Te);if(os){var Ho=!hr||!Pn;os=ue.createElement("li",{title:hi?ki.prev_page:null,onClick:zi,tabIndex:Ho?null:0,onKeyDown:ur,className:Ut()("".concat(Lt,"-prev"),(0,Pt.Z)({},"".concat(Lt,"-disabled"),Ho)),"aria-disabled":Ho},os)}var _o=uo(Ze);if(_o){var er,Qi;To?(er=!Yn,Qi=hr?0:null):(er=!Yn||!Pn,Qi=er?null:0),_o=ue.createElement("li",{title:hi?ki.next_page:null,onClick:qo,tabIndex:Qi,onKeyDown:Tr,className:Ut()("".concat(Lt,"-next"),(0,Pt.Z)({},"".concat(Lt,"-disabled"),er)),"aria-disabled":er},_o)}var Er=Ut()(Lt,Wt,(0,Pt.Z)((0,Pt.Z)((0,Pt.Z)((0,Pt.Z)((0,Pt.Z)({},"".concat(Lt,"-start"),pn==="start"),"".concat(Lt,"-center"),pn==="center"),"".concat(Lt,"-end"),pn==="end"),"".concat(Lt,"-simple"),To),"".concat(Lt,"-disabled"),Rr));return ue.createElement("ul",(0,ne.Z)({className:Er,style:sr,ref:Di},Mo),Ln,os,To?Nr:Br,_o,ue.createElement(_e,{locale:ki,rootPrefixCls:Lt,disabled:Rr,selectPrefixCls:Ft,changeSize:Gi,pageSize:ae,pageSizeOptions:bt,quickGo:gr?Mr:null,goButton:Ii,showSizeChanger:Xi,sizeChangerRender:bn}))},ze=ve},63697:function(un,Nn,Mt){"use strict";var Pt=Mt(27484),ne=Mt.n(Pt),Ne=Mt(6833),Be=Mt.n(Ne),Pe=Mt(96036),Bt=Mt.n(Pe),Ut=Mt(55183),ue=Mt.n(Ut),se=Mt(172),Se=Mt.n(se),Xe=Mt(28734),pe=Mt.n(Xe),Ht=Mt(10285),Dt=Mt.n(Ht);ne().extend(Dt()),ne().extend(pe()),ne().extend(Be()),ne().extend(Bt()),ne().extend(ue()),ne().extend(Se()),ne().extend(function(gt,mt){var xt=mt.prototype,St=xt.format;xt.format=function(Jt){var re=(Jt||"").replace("Wo","wo");return St.bind(this)(re)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},et=function(mt){var xt=nt[mt];return xt||mt.split("_")[0]},ht=function(){},lt={getNow:function(){var mt=ne()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return ne()(mt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(mt){return mt.endOf("month")},getWeekDay:function(mt){var xt=mt.locale("en");return xt.weekday()+xt.localeData().firstDayOfWeek()},getYear:function(mt){return mt.year()},getMonth:function(mt){return mt.month()},getDate:function(mt){return mt.date()},getHour:function(mt){return mt.hour()},getMinute:function(mt){return mt.minute()},getSecond:function(mt){return mt.second()},getMillisecond:function(mt){return mt.millisecond()},addYear:function(mt,xt){return mt.add(xt,"year")},addMonth:function(mt,xt){return mt.add(xt,"month")},addDate:function(mt,xt){return mt.add(xt,"day")},setYear:function(mt,xt){return mt.year(xt)},setMonth:function(mt,xt){return mt.month(xt)},setDate:function(mt,xt){return mt.date(xt)},setHour:function(mt,xt){return mt.hour(xt)},setMinute:function(mt,xt){return mt.minute(xt)},setSecond:function(mt,xt){return mt.second(xt)},setMillisecond:function(mt,xt){return mt.millisecond(xt)},isAfter:function(mt,xt){return mt.isAfter(xt)},isValidate:function(mt){return mt.isValid()},locale:{getWeekFirstDay:function(mt){return ne()().locale(et(mt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(mt,xt){return xt.locale(et(mt)).weekday(0)},getWeek:function(mt,xt){return xt.locale(et(mt)).week()},getShortWeekDays:function(mt){return ne()().locale(et(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return ne()().locale(et(mt)).localeData().monthsShort()},format:function(mt,xt,St){return xt.locale(et(mt)).format(St)},parse:function(mt,xt,St){for(var zt=et(mt),Jt=0;Jt<St.length;Jt+=1){var re=St[Jt],oe=xt;if(re.includes("wo")||re.includes("Wo")){for(var $t=oe.split("-")[0],Le=oe.split("-")[1],de=ne()($t,"YYYY").startOf("year").locale(zt),Fe=0;Fe<=52;Fe+=1){var rn=de.add(Fe,"week");if(rn.format("Wo")===Le)return rn}return ht(),null}var De=ne()(oe,re,!0).locale(zt);if(De.isValid())return De}return xt&&ht(),null}}};Nn.Z=lt},24465:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Sq:function(){return Na},ZP:function(){return sh}});function Pt(){return Pt=Object.assign?Object.assign.bind():function(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt];for(var Kt in It)({}).hasOwnProperty.call(It,Kt)&&(yt[Kt]=It[Kt])}return yt},Pt.apply(null,arguments)}function ne(yt,Rt){(Rt==null||Rt>yt.length)&&(Rt=yt.length);for(var It=0,Kt=Array(Rt);It<Rt;It++)Kt[It]=yt[It];return Kt}function Ne(yt){if(Array.isArray(yt))return ne(yt)}function Be(yt){if(typeof Symbol!="undefined"&&yt[Symbol.iterator]!=null||yt["@@iterator"]!=null)return Array.from(yt)}function Pe(yt,Rt){if(yt){if(typeof yt=="string")return ne(yt,Rt);var It={}.toString.call(yt).slice(8,-1);return It==="Object"&&yt.constructor&&(It=yt.constructor.name),It==="Map"||It==="Set"?Array.from(yt):It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It)?ne(yt,Rt):void 0}}function Bt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ut(yt){return Ne(yt)||Be(yt)||Pe(yt)||Bt()}var ue=Mt(46394);function se(yt){if(Array.isArray(yt))return yt}function Se(yt,Rt){var It=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(It!=null){var Kt,me,Re,nn,vn=[],Rn=!0,Jn=!1;try{if(Re=(It=It.call(yt)).next,Rt===0){if(Object(It)!==It)return;Rn=!1}else for(;!(Rn=(Kt=Re.call(It)).done)&&(vn.push(Kt.value),vn.length!==Rt);Rn=!0);}catch(kn){Jn=!0,me=kn}finally{try{if(!Rn&&It.return!=null&&(nn=It.return(),Object(nn)!==nn))return}finally{if(Jn)throw me}}return vn}}function Xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pe(yt,Rt){return se(yt)||Se(yt,Rt)||Pe(yt,Rt)||Xe()}var Ht=Mt(67294);function Dt(yt){var Rt=Ht.useRef();Rt.current=yt;var It=Ht.useCallback(function(){for(var Kt,me=arguments.length,Re=new Array(me),nn=0;nn<me;nn++)Re[nn]=arguments[nn];return(Kt=Rt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[Rt].concat(Re))},[]);return It}function nt(yt){if(Array.isArray(yt))return yt}function et(yt,Rt){var It=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(It!=null){var Kt,me,Re,nn,vn=[],Rn=!0,Jn=!1;try{if(Re=(It=It.call(yt)).next,Rt===0){if(Object(It)!==It)return;Rn=!1}else for(;!(Rn=(Kt=Re.call(It)).done)&&(vn.push(Kt.value),vn.length!==Rt);Rn=!0);}catch(kn){Jn=!0,me=kn}finally{try{if(!Rn&&It.return!=null&&(nn=It.return(),Object(nn)!==nn))return}finally{if(Jn)throw me}}return vn}}function ht(yt,Rt){(Rt==null||Rt>yt.length)&&(Rt=yt.length);for(var It=0,Kt=new Array(Rt);It<Rt;It++)Kt[It]=yt[It];return Kt}function lt(yt,Rt){if(yt){if(typeof yt=="string")return ht(yt,Rt);var It=Object.prototype.toString.call(yt).slice(8,-1);if(It==="Object"&&yt.constructor&&(It=yt.constructor.name),It==="Map"||It==="Set")return Array.from(yt);if(It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It))return ht(yt,Rt)}}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(yt,Rt){return nt(yt)||et(yt,Rt)||lt(yt,Rt)||gt()}function xt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var St=xt()?Ht.useLayoutEffect:Ht.useEffect,zt=function(Rt,It){var Kt=Ht.useRef(!0);St(function(){return Rt(Kt.current)},It),St(function(){return Kt.current=!1,function(){Kt.current=!0}},[])},Jt=function(Rt,It){zt(function(Kt){if(!Kt)return Rt()},It)},re=zt;function oe(yt){var Rt=Ht.useRef(!1),It=Ht.useState(yt),Kt=mt(It,2),me=Kt[0],Re=Kt[1];Ht.useEffect(function(){return Rt.current=!1,function(){Rt.current=!0}},[]);function nn(vn,Rn){Rn&&Rt.current||Re(vn)}return[me,nn]}function $t(yt){return yt!==void 0}function Le(yt,Rt){var It=Rt||{},Kt=It.defaultValue,me=It.value,Re=It.onChange,nn=It.postState,vn=oe(function(){return $t(me)?me:$t(Kt)?typeof Kt=="function"?Kt():Kt:typeof yt=="function"?yt():yt}),Rn=mt(vn,2),Jn=Rn[0],kn=Rn[1],wi=me!==void 0?me:Jn,Hi=nn?nn(wi):wi,Oi=Dt(Re),pi=oe([wi]),Ei=mt(pi,2),Ci=Ei[0],Kn=Ei[1];Jt(function(){var $n=Ci[0];Jn!==$n&&Oi(Jn,$n)},[Ci]),Jt(function(){$t(me)||kn(me)},[me]);var ci=Dt(function($n,yi){kn($n,yi),Kn([wi],yi)});return[Hi,ci]}function de(yt){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},de(yt)}var Fe=Mt(17756);function rn(yt,Rt,It){var Kt=Ht.useRef({});return(!("value"in Kt.current)||It(Kt.current.condition,Rt))&&(Kt.current.value=yt(),Kt.current.condition=Rt),Kt.current.value}var De=Symbol.for("react.element"),jn=Symbol.for("react.transitional.element"),Bn=Symbol.for("react.fragment");function an(yt){return yt&&de(yt)==="object"&&(yt.$$typeof===De||yt.$$typeof===jn)&&yt.type===Bn}var Zn=Number(Ht.version.split(".")[0]),_t=function(Rt,It){typeof Rt=="function"?Rt(It):de(Rt)==="object"&&Rt&&"current"in Rt&&(Rt.current=It)},Tt=function(){for(var Rt=arguments.length,It=new Array(Rt),Kt=0;Kt<Rt;Kt++)It[Kt]=arguments[Kt];var me=It.filter(Boolean);return me.length<=1?me[0]:function(Re){It.forEach(function(nn){_t(nn,Re)})}},ce=function(){for(var Rt=arguments.length,It=new Array(Rt),Kt=0;Kt<Rt;Kt++)It[Kt]=arguments[Kt];return rn(function(){return Tt.apply(void 0,It)},It,function(me,Re){return me.length!==Re.length||me.every(function(nn,vn){return nn!==Re[vn]})})},_e=function(Rt){var It,Kt;if(!Rt)return!1;if(Ye(Rt)&&Zn>=19)return!0;var me=(0,Fe.isMemo)(Rt)?Rt.type.type:Rt.type;return!(typeof me=="function"&&!((It=me.prototype)!==null&&It!==void 0&&It.render)&&me.$$typeof!==Fe.ForwardRef||typeof Rt=="function"&&!((Kt=Rt.prototype)!==null&&Kt!==void 0&&Kt.render)&&Rt.$$typeof!==Fe.ForwardRef)};function Ye(yt){return(0,Ht.isValidElement)(yt)&&!an(yt)}var xe=function(Rt){return Ye(Rt)&&_e(Rt)},on=function(Rt){if(Rt&&Ye(Rt)){var It=Rt;return It.props.propertyIsEnumerable("ref")?It.props.ref:It.ref}return null};function tn(yt,Rt,It,Kt){if(!Rt.length)return It;var me=_toArray(Rt),Re=me[0],nn=me.slice(1),vn;return!yt&&typeof Re=="number"?vn=[]:Array.isArray(yt)?vn=_toConsumableArray(yt):vn=_objectSpread({},yt),Kt&&It===void 0&&nn.length===1?delete vn[Re][nn[0]]:vn[Re]=tn(vn[Re],nn,It,Kt),vn}function Cn(yt,Rt,It){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Rt.length&&Kt&&It===void 0&&!get(yt,Rt.slice(0,-1))?yt:tn(yt,Rt,It,Kt)}function Ie(yt){return _typeof(yt)==="object"&&yt!==null&&Object.getPrototypeOf(yt)===Object.prototype}function ve(yt){return Array.isArray(yt)?[]:{}}var ze=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function je(){for(var yt=arguments.length,Rt=new Array(yt),It=0;It<yt;It++)Rt[It]=arguments[It];var Kt=ve(Rt[0]);return Rt.forEach(function(me){function Re(nn,vn){var Rn=new Set(vn),Jn=get(me,nn),kn=Array.isArray(Jn);if(kn||Ie(Jn)){if(!Rn.has(Jn)){Rn.add(Jn);var wi=get(Kt,nn);kn?Kt=Cn(Kt,nn,[]):(!wi||_typeof(wi)!=="object")&&(Kt=Cn(Kt,nn,ve(Jn))),ze(Jn).forEach(function(Hi){Re([].concat(_toConsumableArray(nn),[Hi]),Rn)})}}else Kt=Cn(Kt,nn,Jn)}Re([])}),Kt}var He={},Ot=[],Lt=function(Rt){Ot.push(Rt)};function wt(yt,Rt){if(0)var It}function Ft(yt,Rt){if(0)var It}function Wt(){He={}}function kt(yt,Rt,It){!Rt&&!He[It]&&(yt(!1,It),He[It]=!0)}function Xt(yt,Rt){kt(wt,yt,Rt)}function $e(yt,Rt){kt(Ft,yt,Rt)}Xt.preMessage=Lt,Xt.resetWarned=Wt,Xt.noteOnce=$e;var Je=Xt;function fn(yt,Rt){var It=Object.assign({},yt);return Array.isArray(Rt)&&Rt.forEach(function(Kt){delete It[Kt]}),It}function Ve(yt,Rt){if(de(yt)!=="object"||yt===null)return yt;var It=yt[Symbol.toPrimitive];if(It!==void 0){var Kt=It.call(yt,Rt||"default");if(de(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Rt==="string"?String:Number)(yt)}function Mn(yt){var Rt=Ve(yt,"string");return de(Rt)==="symbol"?Rt:String(Rt)}function Ue(yt,Rt,It){return Rt=Mn(Rt),Rt in yt?Object.defineProperty(yt,Rt,{value:It,enumerable:!0,configurable:!0,writable:!0}):yt[Rt]=It,yt}function ti(yt,Rt){var It=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Rt&&(Kt=Kt.filter(function(me){return Object.getOwnPropertyDescriptor(yt,me).enumerable})),It.push.apply(It,Kt)}return It}function Qn(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?ti(Object(It),!0).forEach(function(Kt){Ue(yt,Kt,It[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(It)):ti(Object(It)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(It,Kt))})}return yt}var Hn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,pn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,gi="".concat(Hn," ").concat(pn).split(/[\s\n]+/),Mi="aria-",In="data-";function ei(yt,Rt){return yt.indexOf(Rt)===0}function Ki(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It;Rt===!1?It={aria:!0,data:!0,attr:!0}:Rt===!0?It={aria:!0}:It=Qn({},Rt);var Kt={};return Object.keys(yt).forEach(function(me){(It.aria&&(me==="role"||ei(me,Mi))||It.data&&ei(me,In)||It.attr&&gi.includes(me))&&(Kt[me]=yt[me])}),Kt}var hi=Mt(53550),$i=Mt(98280),pr=Mt(94184),rr=Mt.n(pr);function ki(yt,Rt){return yt!==void 0?yt:Rt?"bottomRight":"bottomLeft"}var sr=Ht.createContext(null),Ur=sr,Jo={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Rr(yt){var Rt=yt.popupElement,It=yt.popupStyle,Kt=yt.popupClassName,me=yt.popupAlign,Re=yt.transitionName,nn=yt.getPopupContainer,vn=yt.children,Rn=yt.range,Jn=yt.placement,kn=yt.builtinPlacements,wi=kn===void 0?Jo:kn,Hi=yt.direction,Oi=yt.visible,pi=yt.onClose,Ei=Ht.useContext(Ur),Ci=Ei.prefixCls,Kn="".concat(Ci,"-dropdown"),ci=ki(Jn,Hi==="rtl");return Ht.createElement($i.Z,{showAction:[],hideAction:["click"],popupPlacement:ci,builtinPlacements:wi,prefixCls:Kn,popupTransitionName:Re,popup:Rt,popupAlign:me,popupVisible:Oi,popupClassName:rr()(Kt,(0,hi.Z)((0,hi.Z)({},"".concat(Kn,"-range"),Rn),"".concat(Kn,"-rtl"),Hi==="rtl")),popupStyle:It,stretch:"minWidth",getPopupContainer:nn,onPopupVisibleChange:function(yi){yi||pi()}},vn)}var To=Rr;function pa(yt,Rt){for(var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Kt=String(yt);Kt.length<Rt;)Kt="".concat(It).concat(Kt);return Kt}function co(yt){return yt==null?[]:Array.isArray(yt)?yt:[yt]}function Xi(yt,Rt,It){var Kt=Ut(yt);return Kt[Rt]=It,Kt}function bn(yt,Rt){var It={},Kt=Rt||Object.keys(yt);return Kt.forEach(function(me){yt[me]!==void 0&&(It[me]=yt[me])}),It}function bt(yt,Rt,It){if(It)return It;switch(yt){case"time":return Rt.fieldTimeFormat;case"datetime":return Rt.fieldDateTimeFormat;case"month":return Rt.fieldMonthFormat;case"year":return Rt.fieldYearFormat;case"quarter":return Rt.fieldQuarterFormat;case"week":return Rt.fieldWeekFormat;default:return Rt.fieldDateFormat}}function wn(yt,Rt,It){var Kt=It!==void 0?It:Rt[Rt.length-1],me=Rt.find(function(Re){return yt[Re]});return Kt!==me?yt[me]:void 0}function Fn(yt){return bn(yt,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Un(yt,Rt,It,Kt){var me=Ht.useMemo(function(){return yt||function(nn,vn){var Rn=nn;return Rt&&vn.type==="date"?Rt(Rn,vn.today):It&&vn.type==="month"?It(Rn,vn.locale):vn.originNode}},[yt,It,Rt]),Re=Ht.useCallback(function(nn,vn){return me(nn,(0,ue.Z)((0,ue.Z)({},vn),{},{range:Kt}))},[me,Kt]);return Re}function Xn(yt,Rt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Kt=Ht.useState([!1,!1]),me=pe(Kt,2),Re=me[0],nn=me[1],vn=function(kn,wi){nn(function(Hi){return Xi(Hi,wi,kn)})},Rn=Ht.useMemo(function(){return Re.map(function(Jn,kn){if(Jn)return!0;var wi=yt[kn];return wi?!!(!It[kn]&&!wi||wi&&Rt(wi,{activeIndex:kn})):!1})},[yt,Re,Rt,It]);return[Rn,vn]}function ai(yt,Rt,It,Kt,me){var Re="",nn=[];return yt&&nn.push(me?"hh":"HH"),Rt&&nn.push("mm"),It&&nn.push("ss"),Re=nn.join(":"),Kt&&(Re+=".SSS"),me&&(Re+=" A"),Re}function Tn(yt,Rt,It,Kt,me,Re){var nn=yt.fieldDateTimeFormat,vn=yt.fieldDateFormat,Rn=yt.fieldTimeFormat,Jn=yt.fieldMonthFormat,kn=yt.fieldYearFormat,wi=yt.fieldWeekFormat,Hi=yt.fieldQuarterFormat,Oi=yt.yearFormat,pi=yt.cellYearFormat,Ei=yt.cellQuarterFormat,Ci=yt.dayFormat,Kn=yt.cellDateFormat,ci=ai(Rt,It,Kt,me,Re);return(0,ue.Z)((0,ue.Z)({},yt),{},{fieldDateTimeFormat:nn||"YYYY-MM-DD ".concat(ci),fieldDateFormat:vn||"YYYY-MM-DD",fieldTimeFormat:Rn||ci,fieldMonthFormat:Jn||"YYYY-MM",fieldYearFormat:kn||"YYYY",fieldWeekFormat:wi||"gggg-wo",fieldQuarterFormat:Hi||"YYYY-[Q]Q",yearFormat:Oi||"YYYY",cellYearFormat:pi||"YYYY",cellQuarterFormat:Ei||"[Q]Q",cellDateFormat:Kn||Ci||"D"})}function Di(yt,Rt){var It=Rt.showHour,Kt=Rt.showMinute,me=Rt.showSecond,Re=Rt.showMillisecond,nn=Rt.use12Hours;return Ht.useMemo(function(){return Tn(yt,It,Kt,me,Re,nn)},[yt,It,Kt,me,Re,nn])}var te=Mt(19706);function le(yt,Rt,It){return It!=null?It:Rt.some(function(Kt){return yt.includes(Kt)})}var ae=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ae(yt){var Rt=bn(yt,ae),It=yt.format,Kt=yt.picker,me=null;return It&&(me=It,Array.isArray(me)&&(me=me[0]),me=(0,te.Z)(me)==="object"?me.format:me),Kt==="time"&&(Rt.format=me),[Rt,me]}function Sn(yt){return yt&&typeof yt=="string"}function An(yt,Rt,It,Kt){return[yt,Rt,It,Kt].some(function(me){return me!==void 0})}function En(yt,Rt,It,Kt,me){var Re=Rt,nn=It,vn=Kt;if(!yt&&!Re&&!nn&&!vn&&!me)Re=!0,nn=!0,vn=!0;else if(yt){var Rn,Jn,kn,wi=[Re,nn,vn].some(function(pi){return pi===!1}),Hi=[Re,nn,vn].some(function(pi){return pi===!0}),Oi=wi?!0:!Hi;Re=(Rn=Re)!==null&&Rn!==void 0?Rn:Oi,nn=(Jn=nn)!==null&&Jn!==void 0?Jn:Oi,vn=(kn=vn)!==null&&kn!==void 0?kn:Oi}return[Re,nn,vn,me]}function ke(yt){var Rt=yt.showTime,It=Ae(yt),Kt=pe(It,2),me=Kt[0],Re=Kt[1],nn=Rt&&(0,te.Z)(Rt)==="object"?Rt:{},vn=(0,ue.Z)((0,ue.Z)({defaultOpenValue:nn.defaultOpenValue||nn.defaultValue},me),nn),Rn=vn.showMillisecond,Jn=vn.showHour,kn=vn.showMinute,wi=vn.showSecond,Hi=An(Jn,kn,wi,Rn),Oi=En(Hi,Jn,kn,wi,Rn),pi=pe(Oi,3);return Jn=pi[0],kn=pi[1],wi=pi[2],[vn,(0,ue.Z)((0,ue.Z)({},vn),{},{showHour:Jn,showMinute:kn,showSecond:wi,showMillisecond:Rn}),vn.format,Re]}function cn(yt,Rt,It,Kt,me){var Re=yt==="time";if(yt==="datetime"||Re){for(var nn=Kt,vn=bt(yt,me,null),Rn=vn,Jn=[Rt,It],kn=0;kn<Jn.length;kn+=1){var wi=co(Jn[kn])[0];if(Sn(wi)){Rn=wi;break}}var Hi=nn.showHour,Oi=nn.showMinute,pi=nn.showSecond,Ei=nn.showMillisecond,Ci=nn.use12Hours,Kn=le(Rn,["a","A","LT","LLL","LTS"],Ci),ci=An(Hi,Oi,pi,Ei);ci||(Hi=le(Rn,["H","h","k","LT","LLL"]),Oi=le(Rn,["m","LT","LLL"]),pi=le(Rn,["s","LTS"]),Ei=le(Rn,["SSS"]));var $n=En(ci,Hi,Oi,pi,Ei),yi=pe($n,3);Hi=yi[0],Oi=yi[1],pi=yi[2];var Ui=Rt||ai(Hi,Oi,pi,Ei,Kn);return(0,ue.Z)((0,ue.Z)({},nn),{},{format:Ui,showHour:Hi,showMinute:Oi,showSecond:pi,showMillisecond:Ei,use12Hours:Kn})}return null}function _n(yt,Rt,It){if(Rt===!1)return null;var Kt=Rt&&(0,te.Z)(Rt)==="object"?Rt:{};return Kt.clearIcon||It||Ht.createElement("span",{className:"".concat(yt,"-clear-btn")})}var vi=7;function mn(yt,Rt,It){return!yt&&!Rt||yt===Rt?!0:!yt||!Rt?!1:It()}function Oe(yt,Rt,It){return mn(Rt,It,function(){var Kt=Math.floor(yt.getYear(Rt)/10),me=Math.floor(yt.getYear(It)/10);return Kt===me})}function ni(yt,Rt,It){return mn(Rt,It,function(){return yt.getYear(Rt)===yt.getYear(It)})}function Pi(yt,Rt){var It=Math.floor(yt.getMonth(Rt)/3);return It+1}function Li(yt,Rt,It){return mn(Rt,It,function(){return ni(yt,Rt,It)&&Pi(yt,Rt)===Pi(yt,It)})}function qe(yt,Rt,It){return mn(Rt,It,function(){return ni(yt,Rt,It)&&yt.getMonth(Rt)===yt.getMonth(It)})}function oi(yt,Rt,It){return mn(Rt,It,function(){return ni(yt,Rt,It)&&qe(yt,Rt,It)&&yt.getDate(Rt)===yt.getDate(It)})}function Ni(yt,Rt,It){return mn(Rt,It,function(){return yt.getHour(Rt)===yt.getHour(It)&&yt.getMinute(Rt)===yt.getMinute(It)&&yt.getSecond(Rt)===yt.getSecond(It)})}function gr(yt,Rt,It){return mn(Rt,It,function(){return oi(yt,Rt,It)&&Ni(yt,Rt,It)&&yt.getMillisecond(Rt)===yt.getMillisecond(It)})}function xr(yt,Rt,It,Kt){return mn(It,Kt,function(){var me=yt.locale.getWeekFirstDate(Rt,It),Re=yt.locale.getWeekFirstDate(Rt,Kt);return ni(yt,me,Re)&&yt.locale.getWeek(Rt,It)===yt.locale.getWeek(Rt,Kt)})}function Si(yt,Rt,It,Kt,me){switch(me){case"date":return oi(yt,It,Kt);case"week":return xr(yt,Rt.locale,It,Kt);case"month":return qe(yt,It,Kt);case"quarter":return Li(yt,It,Kt);case"year":return ni(yt,It,Kt);case"decade":return Oe(yt,It,Kt);case"time":return Ni(yt,It,Kt);default:return gr(yt,It,Kt)}}function Fi(yt,Rt,It,Kt){return!Rt||!It||!Kt?!1:yt.isAfter(Kt,Rt)&&yt.isAfter(It,Kt)}function Gi(yt,Rt,It,Kt,me){return Si(yt,Rt,It,Kt,me)?!0:yt.isAfter(It,Kt)}function Mr(yt,Rt,It){var Kt=Rt.locale.getWeekFirstDay(yt),me=Rt.setDate(It,1),Re=Rt.getWeekDay(me),nn=Rt.addDate(me,Kt-Re);return Rt.getMonth(nn)===Rt.getMonth(It)&&Rt.getDate(nn)>1&&(nn=Rt.addDate(nn,-7)),nn}function hr(yt,Rt){var It=Rt.generateConfig,Kt=Rt.locale,me=Rt.format;return yt?typeof me=="function"?me(yt):It.locale.format(Kt.locale,yt,me):""}function Yn(yt,Rt,It){var Kt=Rt,me=["getHour","getMinute","getSecond","getMillisecond"],Re=["setHour","setMinute","setSecond","setMillisecond"];return Re.forEach(function(nn,vn){It?Kt=yt[nn](Kt,yt[me[vn]](It)):Kt=yt[nn](Kt,0)}),Kt}function zi(yt,Rt,It,Kt,me){var Re=Dt(function(nn,vn){return!!(It&&It(nn,vn)||Kt&&yt.isAfter(Kt,nn)&&!Si(yt,Rt,Kt,nn,vn.type)||me&&yt.isAfter(nn,me)&&!Si(yt,Rt,me,nn,vn.type))});return Re}function qo(yt,Rt,It){return Ht.useMemo(function(){var Kt=bt(yt,Rt,It),me=co(Kt),Re=me[0],nn=(0,te.Z)(Re)==="object"&&Re.type==="mask"?Re.format:null;return[me.map(function(vn){return typeof vn=="string"||typeof vn=="function"?vn:vn.format}),nn]},[yt,Rt,It])}function sa(yt,Rt,It){return typeof yt[0]=="function"||It?!0:Rt}function la(yt,Rt,It,Kt){var me=Dt(function(Re,nn){var vn=(0,ue.Z)({type:Rt},nn);if(delete vn.activeIndex,!yt.isValidate(Re)||It&&It(Re,vn))return!0;if((Rt==="date"||Rt==="time")&&Kt){var Rn,Jn=nn&&nn.activeIndex===1?"end":"start",kn=((Rn=Kt.disabledTime)===null||Rn===void 0?void 0:Rn.call(Kt,Re,Jn,{from:vn.from}))||{},wi=kn.disabledHours,Hi=kn.disabledMinutes,Oi=kn.disabledSeconds,pi=kn.disabledMilliseconds,Ei=Kt.disabledHours,Ci=Kt.disabledMinutes,Kn=Kt.disabledSeconds,ci=wi||Ei,$n=Hi||Ci,yi=Oi||Kn,Ui=yt.getHour(Re),Vi=yt.getMinute(Re),Zi=yt.getSecond(Re),we=yt.getMillisecond(Re);if(ci&&ci().includes(Ui)||$n&&$n(Ui).includes(Vi)||yi&&yi(Ui,Vi).includes(Zi)||pi&&pi(Ui,Vi,Zi).includes(we))return!0}return!1});return me}function Ke(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=Ht.useMemo(function(){var Kt=yt&&co(yt);return Rt&&Kt&&(Kt[1]=Kt[1]||Kt[0]),Kt},[yt,Rt]);return It}function ur(yt,Rt){var It=yt.generateConfig,Kt=yt.locale,me=yt.picker,Re=me===void 0?"date":me,nn=yt.prefixCls,vn=nn===void 0?"rc-picker":nn,Rn=yt.styles,Jn=Rn===void 0?{}:Rn,kn=yt.classNames,wi=kn===void 0?{}:kn,Hi=yt.order,Oi=Hi===void 0?!0:Hi,pi=yt.components,Ei=pi===void 0?{}:pi,Ci=yt.inputRender,Kn=yt.allowClear,ci=yt.clearIcon,$n=yt.needConfirm,yi=yt.multiple,Ui=yt.format,Vi=yt.inputReadOnly,Zi=yt.disabledDate,we=yt.minDate,yr=yt.maxDate,wr=yt.showTime,Hr=yt.value,po=yt.defaultValue,Fr=yt.pickerValue,Zr=yt.defaultPickerValue,ao=Ke(Hr),Dr=Ke(po),So=Ke(Fr),ta=Ke(Zr),Wo=Re==="date"&&wr?"datetime":Re,zo=Wo==="time"||Wo==="datetime",to=zo||yi,Lr=$n!=null?$n:zo,qr=ke(yt),Cr=pe(qr,4),Uo=Cr[0],fa=Cr[1],No=Cr[2],Qo=Cr[3],Ro=Di(Kt,fa),ga=Ht.useMemo(function(){return cn(Wo,No,Qo,Uo,Ro)},[Wo,No,Qo,Uo,Ro]),Io=Ht.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},yt),{},{prefixCls:vn,locale:Ro,picker:Re,styles:Jn,classNames:wi,order:Oi,components:(0,ue.Z)({input:Ci},Ei),clearIcon:_n(vn,Kn,ci),showTime:ga,value:ao,defaultValue:Dr,pickerValue:So,defaultPickerValue:ta},Rt==null?void 0:Rt())},[yt]),La=qo(Wo,Ro,Ui),Vr=pe(La,2),vr=Vr[0],Go=Vr[1],bo=sa(vr,Vi,yi),Ia=zi(It,Kt,Zi,we,yr),jo=la(It,Re,Ia,ga),aa=Ht.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},Io),{},{needConfirm:Lr,inputReadOnly:bo,disabledDate:Ia})},[Io,Lr,bo,Ia]);return[aa,Wo,to,vr,Go,jo]}var Tr=function(Rt){return+setTimeout(Rt,16)},or=function(Rt){return clearTimeout(Rt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Tr=function(Rt){return window.requestAnimationFrame(Rt)},or=function(Rt){return window.cancelAnimationFrame(Rt)});var Vo=0,eo=new Map;function uo(yt){eo.delete(yt)}var Xr=function(Rt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vo+=1;var Kt=Vo;function me(Re){if(Re===0)uo(Kt),Rt();else{var nn=Tr(function(){me(Re-1)});eo.set(Kt,nn)}}return me(It),Kt};Xr.cancel=function(yt){var Rt=eo.get(yt);return uo(yt),or(Rt)};var Ir=Xr;function Mo(yt,Rt,It){var Kt=Le(Rt,{value:yt}),me=pe(Kt,2),Re=me[0],nn=me[1],vn=Ht.useRef(yt),Rn=Ht.useRef(),Jn=function(){Ir.cancel(Rn.current)},kn=Dt(function(){nn(vn.current),It&&Re!==vn.current&&It(vn.current)}),wi=Dt(function(Hi,Oi){Jn(),vn.current=Hi,Hi||Oi?kn():Rn.current=Ir(kn)});return Ht.useEffect(function(){return Jn},[]),[Re,wi]}function Ln(yt,Rt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Kt=arguments.length>3?arguments[3]:void 0,me=It.every(function(kn){return kn})?!1:yt,Re=Mo(me,Rt||!1,Kt),nn=pe(Re,2),vn=nn[0],Rn=nn[1];function Jn(kn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!wi.inherit||vn)&&Rn(kn,wi.force)}return[vn,Jn]}function $r(yt){var Rt=Ht.useRef();return Ht.useImperativeHandle(yt,function(){var It;return{nativeElement:(It=Rt.current)===null||It===void 0?void 0:It.nativeElement,focus:function(me){var Re;(Re=Rt.current)===null||Re===void 0||Re.focus(me)},blur:function(){var me;(me=Rt.current)===null||me===void 0||me.blur()}}}),Rt}function Pn(yt,Rt){return Ht.useMemo(function(){return yt||(Rt?(Je(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Rt).map(function(It){var Kt=pe(It,2),me=Kt[0],Re=Kt[1];return{label:me,value:Re}})):[])},[yt,Rt])}function Br(yt,Rt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Kt=Ht.useRef(Rt);Kt.current=Rt,Jt(function(){if(yt)Kt.current(yt);else{var me=Ir(function(){Kt.current(yt)},It);return function(){Ir.cancel(me)}}},[yt])}function Ga(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Kt=Ht.useState(0),me=pe(Kt,2),Re=me[0],nn=me[1],vn=Ht.useState(!1),Rn=pe(vn,2),Jn=Rn[0],kn=Rn[1],wi=Ht.useRef([]),Hi=Ht.useRef(null),Oi=Ht.useRef(null),pi=function(yi){Hi.current=yi},Ei=function(yi){return Hi.current===yi},Ci=function(yi){kn(yi)},Kn=function(yi){return yi&&(Oi.current=yi),Oi.current},ci=function(yi){var Ui=wi.current,Vi=new Set(Ui.filter(function(we){return yi[we]||Rt[we]})),Zi=Ui[Ui.length-1]===0?1:0;return Vi.size>=2||yt[Zi]?null:Zi};return Br(Jn||It,function(){Jn||(wi.current=[],pi(null))}),Ht.useEffect(function(){Jn&&wi.current.push(Re)},[Jn,Re]),[Jn,Ci,Kn,Re,nn,ci,wi.current,pi,Ei]}function Te(yt,Rt,It,Kt,me,Re){var nn=It[It.length-1],vn=function(Jn,kn){var wi=pe(yt,2),Hi=wi[0],Oi=wi[1],pi=(0,ue.Z)((0,ue.Z)({},kn),{},{from:wn(yt,It)});return nn===1&&Rt[0]&&Hi&&!Si(Kt,me,Hi,Jn,pi.type)&&Kt.isAfter(Hi,Jn)||nn===0&&Rt[1]&&Oi&&!Si(Kt,me,Oi,Jn,pi.type)&&Kt.isAfter(Jn,Oi)?!0:Re==null?void 0:Re(Jn,pi)};return vn}function Ze(yt,Rt,It,Kt){switch(Rt){case"date":case"week":return yt.addMonth(It,Kt);case"month":case"quarter":return yt.addYear(It,Kt);case"year":return yt.addYear(It,Kt*10);case"decade":return yt.addYear(It,Kt*100);default:return It}}var sn=[];function zn(yt,Rt,It,Kt,me,Re,nn,vn){var Rn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:sn,Jn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:sn,kn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:sn,wi=arguments.length>11?arguments[11]:void 0,Hi=arguments.length>12?arguments[12]:void 0,Oi=arguments.length>13?arguments[13]:void 0,pi=nn==="time",Ei=Re||0,Ci=function(So){var ta=yt.getNow();return pi&&(ta=Yn(yt,ta)),Rn[So]||It[So]||ta},Kn=pe(Jn,2),ci=Kn[0],$n=Kn[1],yi=Le(function(){return Ci(0)},{value:ci}),Ui=pe(yi,2),Vi=Ui[0],Zi=Ui[1],we=Le(function(){return Ci(1)},{value:$n}),yr=pe(we,2),wr=yr[0],Hr=yr[1],po=Ht.useMemo(function(){var Dr=[Vi,wr][Ei];return pi?Dr:Yn(yt,Dr,kn[Ei])},[pi,Vi,wr,Ei,yt,kn]),Fr=function(So){var ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Wo=[Zi,Hr][Ei];Wo(So);var zo=[Vi,wr];zo[Ei]=So,wi&&(!Si(yt,Rt,Vi,zo[0],nn)||!Si(yt,Rt,wr,zo[1],nn))&&wi(zo,{source:ta,range:Ei===1?"end":"start",mode:Kt})},Zr=function(So,ta){if(vn){var Wo={date:"month",week:"month",month:"year",quarter:"year"},zo=Wo[nn];if(zo&&!Si(yt,Rt,So,ta,zo))return Ze(yt,nn,ta,-1);if(nn==="year"&&So){var to=Math.floor(yt.getYear(So)/10),Lr=Math.floor(yt.getYear(ta)/10);if(to!==Lr)return Ze(yt,nn,ta,-1)}}return ta},ao=Ht.useRef(null);return re(function(){if(me&&!Rn[Ei]){var Dr=pi?null:yt.getNow();if(ao.current!==null&&ao.current!==Ei?Dr=[Vi,wr][Ei^1]:It[Ei]?Dr=Ei===0?It[0]:Zr(It[0],It[1]):It[Ei^1]&&(Dr=It[Ei^1]),Dr){Hi&&yt.isAfter(Hi,Dr)&&(Dr=Hi);var So=vn?Ze(yt,nn,Dr,1):Dr;Oi&&yt.isAfter(So,Oi)&&(Dr=vn?Ze(yt,nn,Oi,-1):Oi),Fr(Dr,"reset")}}},[me,Ei,It[Ei]]),Ht.useEffect(function(){me?ao.current=Ei:ao.current=null},[me,Ei]),re(function(){me&&Rn&&Rn[Ei]&&Fr(Rn[Ei],"reset")},[me,Ei]),[po,Fr]}function Ii(yt,Rt){var It=Ht.useRef(yt),Kt=Ht.useState({}),me=pe(Kt,2),Re=me[1],nn=function(Jn){return Jn&&Rt!==void 0?Rt:It.current},vn=function(Jn){It.current=Jn,Re({})};return[nn,vn,nn(!0)]}var Nr=[];function lr(yt,Rt,It){var Kt=function(nn){return nn.map(function(vn){return hr(vn,{generateConfig:yt,locale:Rt,format:It[0]})})},me=function(nn,vn){for(var Rn=Math.max(nn.length,vn.length),Jn=-1,kn=0;kn<Rn;kn+=1){var wi=nn[kn]||null,Hi=vn[kn]||null;if(wi!==Hi&&!gr(yt,wi,Hi)){Jn=kn;break}}return[Jn<0,Jn!==0]};return[Kt,me]}function si(yt,Rt){return Ut(yt).sort(function(It,Kt){return Rt.isAfter(It,Kt)?1:-1})}function Zt(yt){var Rt=Ii(yt),It=pe(Rt,2),Kt=It[0],me=It[1],Re=Dt(function(){me(yt)});return Ht.useEffect(function(){Re()},[yt]),[Kt,me]}function Ao(yt,Rt,It,Kt,me,Re,nn,vn,Rn){var Jn=Le(Re,{value:nn}),kn=pe(Jn,2),wi=kn[0],Hi=kn[1],Oi=wi||Nr,pi=Zt(Oi),Ei=pe(pi,2),Ci=Ei[0],Kn=Ei[1],ci=lr(yt,Rt,It),$n=pe(ci,2),yi=$n[0],Ui=$n[1],Vi=Dt(function(we){var yr=Ut(we);if(Kt)for(var wr=0;wr<2;wr+=1)yr[wr]=yr[wr]||null;else me&&(yr=si(yr.filter(function(Dr){return Dr}),yt));var Hr=Ui(Ci(),yr),po=pe(Hr,2),Fr=po[0],Zr=po[1];if(!Fr&&(Kn(yr),vn)){var ao=yi(yr);vn(yr,ao,{range:Zr?"end":"start"})}}),Zi=function(){Rn&&Rn(Ci())};return[Oi,Hi,Ci,Vi,Zi]}function rs(yt,Rt,It,Kt,me,Re,nn,vn,Rn,Jn){var kn=yt.generateConfig,wi=yt.locale,Hi=yt.picker,Oi=yt.onChange,pi=yt.allowEmpty,Ei=yt.order,Ci=Re.some(function(Fr){return Fr})?!1:Ei,Kn=lr(kn,wi,nn),ci=pe(Kn,2),$n=ci[0],yi=ci[1],Ui=Ii(Rt),Vi=pe(Ui,2),Zi=Vi[0],we=Vi[1],yr=Dt(function(){we(Rt)});Ht.useEffect(function(){yr()},[Rt]);var wr=Dt(function(Fr){var Zr=Fr===null,ao=Ut(Fr||Zi());if(Zr)for(var Dr=Math.max(Re.length,ao.length),So=0;So<Dr;So+=1)Re[So]||(ao[So]=null);Ci&&ao[0]&&ao[1]&&(ao=si(ao,kn)),me(ao);var ta=ao,Wo=pe(ta,2),zo=Wo[0],to=Wo[1],Lr=!zo,qr=!to,Cr=pi?(!Lr||pi[0])&&(!qr||pi[1]):!0,Uo=!Ei||Lr||qr||Si(kn,wi,zo,to,Hi)||kn.isAfter(to,zo),fa=(Re[0]||!zo||!Jn(zo,{activeIndex:0}))&&(Re[1]||!to||!Jn(to,{from:zo,activeIndex:1})),No=Zr||Cr&&Uo&&fa;if(No){It(ao);var Qo=yi(ao,Rt),Ro=pe(Qo,1),ga=Ro[0];Oi&&!ga&&Oi(Zr&&ao.every(function(Io){return!Io})?null:ao,$n(ao))}return No}),Hr=Dt(function(Fr,Zr){var ao=Xi(Zi(),Fr,Kt()[Fr]);we(ao),Zr&&wr()}),po=!vn&&!Rn;return Br(!po,function(){po&&(wr(),me(Rt),yr())},2),[Hr,wr]}function Ls(yt,Rt,It,Kt,me){return Rt!=="date"&&Rt!=="time"?!1:It!==void 0?It:Kt!==void 0?Kt:!me&&(yt==="date"||yt==="time")}function Xa(){return Xa=Object.assign?Object.assign.bind():function(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt];for(var Kt in It)Object.prototype.hasOwnProperty.call(It,Kt)&&(yt[Kt]=It[Kt])}return yt},Xa.apply(this,arguments)}function Ea(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=[];return Ht.Children.forEach(yt,function(Kt){Kt==null&&!Rt.keepEmpty||(Array.isArray(Kt)?It=It.concat(Ea(Kt)):an(Kt)&&Kt.props?It=It.concat(Ea(Kt.props.children,Rt)):It.push(Kt))}),It}function Eo(yt){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},Eo(yt)}function gs(yt,Rt){if(Eo(yt)!=="object"||yt===null)return yt;var It=yt[Symbol.toPrimitive];if(It!==void 0){var Kt=It.call(yt,Rt||"default");if(Eo(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Rt==="string"?String:Number)(yt)}function os(yt){var Rt=gs(yt,"string");return Eo(Rt)==="symbol"?Rt:String(Rt)}function Ho(yt,Rt,It){return Rt=os(Rt),Rt in yt?Object.defineProperty(yt,Rt,{value:It,enumerable:!0,configurable:!0,writable:!0}):yt[Rt]=It,yt}function _o(yt,Rt){var It=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Rt&&(Kt=Kt.filter(function(me){return Object.getOwnPropertyDescriptor(yt,me).enumerable})),It.push.apply(It,Kt)}return It}function er(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?_o(Object(It),!0).forEach(function(Kt){Ho(yt,Kt,It[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(It)):_o(Object(It)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(It,Kt))})}return yt}var Qi=Mt(73935);function Er(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function hn(yt){return yt&&de(yt)==="object"&&Er(yt.nativeElement)?yt.nativeElement:Er(yt)?yt:null}function ar(yt){var Rt=hn(yt);if(Rt)return Rt;if(yt instanceof Ht.Component){var It;return(It=Qi.findDOMNode)===null||It===void 0?void 0:It.call(Qi,yt)}return null}var oo=Ht.createContext(null);function ca(yt){var Rt=yt.children,It=yt.onBatchResize,Kt=Ht.useRef(0),me=Ht.useRef([]),Re=Ht.useContext(oo),nn=Ht.useCallback(function(vn,Rn,Jn){Kt.current+=1;var kn=Kt.current;me.current.push({size:vn,element:Rn,data:Jn}),Promise.resolve().then(function(){kn===Kt.current&&(It==null||It(me.current),me.current=[])}),Re==null||Re(vn,Rn,Jn)},[It,Re]);return Ht.createElement(oo.Provider,{value:nn},Rt)}var $o=Mt(91033),ia=new Map;function as(yt){yt.forEach(function(Rt){var It,Kt=Rt.target;(It=ia.get(Kt))===null||It===void 0||It.forEach(function(me){return me(Kt)})})}var Ks=new $o.Z(as),vs=null,au=null;function ks(yt,Rt){ia.has(yt)||(ia.set(yt,new Set),Ks.observe(yt)),ia.get(yt).add(Rt)}function en(yt,Rt){ia.has(yt)&&(ia.get(yt).delete(Rt),ia.get(yt).size||(Ks.unobserve(yt),ia.delete(yt)))}function Us(yt,Rt){if(!(yt instanceof Rt))throw new TypeError("Cannot call a class as a function")}function kl(yt,Rt){for(var It=0;It<Rt.length;It++){var Kt=Rt[It];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,os(Kt.key),Kt)}}function xu(yt,Rt,It){return Rt&&kl(yt.prototype,Rt),It&&kl(yt,It),Object.defineProperty(yt,"prototype",{writable:!1}),yt}function ma(yt,Rt){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kt,me){return Kt.__proto__=me,Kt},ma(yt,Rt)}function Pl(yt,Rt){if(typeof Rt!="function"&&Rt!==null)throw new TypeError("Super expression must either be null or a function");yt.prototype=Object.create(Rt&&Rt.prototype,{constructor:{value:yt,writable:!0,configurable:!0}}),Object.defineProperty(yt,"prototype",{writable:!1}),Rt&&ma(yt,Rt)}function wl(yt){return wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(It){return It.__proto__||Object.getPrototypeOf(It)},wl(yt)}function su(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(yt){return!1}}function Aa(yt){if(yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yt}function ps(yt,Rt){if(Rt&&(Eo(Rt)==="object"||typeof Rt=="function"))return Rt;if(Rt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(yt)}function so(yt){var Rt=su();return function(){var Kt=wl(yt),me;if(Rt){var Re=wl(this).constructor;me=Reflect.construct(Kt,arguments,Re)}else me=Kt.apply(this,arguments);return ps(this,me)}}var Do=function(yt){Pl(It,yt);var Rt=so(It);function It(){return Us(this,It),Rt.apply(this,arguments)}return xu(It,[{key:"render",value:function(){return this.props.children}}]),It}(Ht.Component);function ka(yt,Rt){var It=yt.children,Kt=yt.disabled,me=Ht.useRef(null),Re=Ht.useRef(null),nn=Ht.useContext(oo),vn=typeof It=="function",Rn=vn?It(me):It,Jn=Ht.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),kn=!vn&&Ht.isValidElement(Rn)&&_e(Rn),wi=kn?on(Rn):null,Hi=ce(wi,me),Oi=function(){var Kn;return ar(me.current)||(me.current&&Eo(me.current)==="object"?ar((Kn=me.current)===null||Kn===void 0?void 0:Kn.nativeElement):null)||ar(Re.current)};Ht.useImperativeHandle(Rt,function(){return Oi()});var pi=Ht.useRef(yt);pi.current=yt;var Ei=Ht.useCallback(function(Ci){var Kn=pi.current,ci=Kn.onResize,$n=Kn.data,yi=Ci.getBoundingClientRect(),Ui=yi.width,Vi=yi.height,Zi=Ci.offsetWidth,we=Ci.offsetHeight,yr=Math.floor(Ui),wr=Math.floor(Vi);if(Jn.current.width!==yr||Jn.current.height!==wr||Jn.current.offsetWidth!==Zi||Jn.current.offsetHeight!==we){var Hr={width:yr,height:wr,offsetWidth:Zi,offsetHeight:we};Jn.current=Hr;var po=Zi===Math.round(Ui)?Ui:Zi,Fr=we===Math.round(Vi)?Vi:we,Zr=er(er({},Hr),{},{offsetWidth:po,offsetHeight:Fr});nn==null||nn(Zr,Ci,$n),ci&&Promise.resolve().then(function(){ci(Zr,Ci)})}},[]);return Ht.useEffect(function(){var Ci=Oi();return Ci&&!Kt&&ks(Ci,Ei),function(){return en(Ci,Ei)}},[me.current,Kt]),Ht.createElement(Do,{ref:Re},kn?Ht.cloneElement(Rn,{ref:Hi}):Rn)}var ls=Ht.forwardRef(ka),qi=ls,Gu="rc-observer-key";function zl(yt,Rt){var It=yt.children,Kt=typeof It=="function"?[It]:Ea(It);return Kt.map(function(me,Re){var nn=(me==null?void 0:me.key)||"".concat(Gu,"-").concat(Re);return Ht.createElement(qi,Xa({},yt,{key:nn,ref:Re===0?Rt:void 0}),me)})}var Cl=Ht.forwardRef(zl);Cl.Collection=ca;var Zh=Cl;function Zu(yt,Rt,It,Kt,me,Re){var nn=yt;function vn(wi,Hi,Oi){var pi=Re[wi](nn),Ei=Oi.find(function($n){return $n.value===pi});if(!Ei||Ei.disabled){var Ci=Oi.filter(function($n){return!$n.disabled}),Kn=Ut(Ci).reverse(),ci=Kn.find(function($n){return $n.value<=pi})||Ci[0];ci&&(pi=ci.value,nn=Re[Hi](nn,pi))}return pi}var Rn=vn("getHour","setHour",Rt()),Jn=vn("getMinute","setMinute",It(Rn)),kn=vn("getSecond","setSecond",Kt(Rn,Jn));return vn("getMillisecond","setMillisecond",me(Rn,Jn,kn)),nn}function Bi(){return[]}function ds(yt,Rt){for(var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,me=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Re=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,nn=[],vn=It>=1?It|0:1,Rn=yt;Rn<=Rt;Rn+=vn){var Jn=me.includes(Rn);(!Jn||!Kt)&&nn.push({label:pa(Rn,Re),value:Rn,disabled:Jn})}return nn}function Ns(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=arguments.length>2?arguments[2]:void 0,Kt=Rt||{},me=Kt.use12Hours,Re=Kt.hourStep,nn=Re===void 0?1:Re,vn=Kt.minuteStep,Rn=vn===void 0?1:vn,Jn=Kt.secondStep,kn=Jn===void 0?1:Jn,wi=Kt.millisecondStep,Hi=wi===void 0?100:wi,Oi=Kt.hideDisabledOptions,pi=Kt.disabledTime,Ei=Kt.disabledHours,Ci=Kt.disabledMinutes,Kn=Kt.disabledSeconds,ci=Ht.useMemo(function(){return It||yt.getNow()},[It,yt]);if(0)var $n,yi,Ui;var Vi=Ht.useCallback(function(to){var Lr=(pi==null?void 0:pi(to))||{};return[Lr.disabledHours||Ei||Bi,Lr.disabledMinutes||Ci||Bi,Lr.disabledSeconds||Kn||Bi,Lr.disabledMilliseconds||Bi]},[pi,Ei,Ci,Kn]),Zi=Ht.useMemo(function(){return Vi(ci)},[ci,Vi]),we=pe(Zi,4),yr=we[0],wr=we[1],Hr=we[2],po=we[3],Fr=Ht.useCallback(function(to,Lr,qr,Cr){var Uo=ds(0,23,nn,Oi,to()),fa=me?Uo.map(function(ga){return(0,ue.Z)((0,ue.Z)({},ga),{},{label:pa(ga.value%12||12,2)})}):Uo,No=function(Io){return ds(0,59,Rn,Oi,Lr(Io))},Qo=function(Io,La){return ds(0,59,kn,Oi,qr(Io,La))},Ro=function(Io,La,Vr){return ds(0,999,Hi,Oi,Cr(Io,La,Vr),3)};return[fa,No,Qo,Ro]},[Oi,nn,me,Hi,Rn,kn]),Zr=Ht.useMemo(function(){return Fr(yr,wr,Hr,po)},[Fr,yr,wr,Hr,po]),ao=pe(Zr,4),Dr=ao[0],So=ao[1],ta=ao[2],Wo=ao[3],zo=function(Lr,qr){var Cr=function(){return Dr},Uo=So,fa=ta,No=Wo;if(qr){var Qo=Vi(qr),Ro=pe(Qo,4),ga=Ro[0],Io=Ro[1],La=Ro[2],Vr=Ro[3],vr=Fr(ga,Io,La,Vr),Go=pe(vr,4),bo=Go[0],Ia=Go[1],jo=Go[2],aa=Go[3];Cr=function(){return bo},Uo=Ia,fa=jo,No=aa}var _a=Zu(Lr,Cr,Uo,fa,No,yt);return _a};return[zo,Dr,So,ta,Wo]}function Xl(yt){var Rt=yt.mode,It=yt.internalMode,Kt=yt.renderExtraFooter,me=yt.showNow,Re=yt.showTime,nn=yt.onSubmit,vn=yt.onNow,Rn=yt.invalid,Jn=yt.needConfirm,kn=yt.generateConfig,wi=yt.disabledDate,Hi=Ht.useContext(Ur),Oi=Hi.prefixCls,pi=Hi.locale,Ei=Hi.button,Ci=Ei===void 0?"button":Ei,Kn=kn.getNow(),ci=Ns(kn,Re,Kn),$n=pe(ci,1),yi=$n[0],Ui=Kt==null?void 0:Kt(Rt),Vi=wi(Kn,{type:Rt}),Zi=function(){if(!Vi){var Zr=yi(Kn);vn(Zr)}},we="".concat(Oi,"-now"),yr="".concat(we,"-btn"),wr=me&&Ht.createElement("li",{className:we},Ht.createElement("a",{className:rr()(yr,Vi&&"".concat(yr,"-disabled")),"aria-disabled":Vi,onClick:Zi},It==="date"?pi.today:pi.now)),Hr=Jn&&Ht.createElement("li",{className:"".concat(Oi,"-ok")},Ht.createElement(Ci,{disabled:Rn,onClick:nn},pi.ok)),po=(wr||Hr)&&Ht.createElement("ul",{className:"".concat(Oi,"-ranges")},wr,Hr);return!Ui&&!po?null:Ht.createElement("div",{className:"".concat(Oi,"-footer")},Ui&&Ht.createElement("div",{className:"".concat(Oi,"-footer-extra")},Ui),po)}function Ms(yt,Rt,It){function Kt(me,Re){var nn=me.findIndex(function(Rn){return Si(yt,Rt,Rn,Re,It)});if(nn===-1)return[].concat(Ut(me),[Re]);var vn=Ut(me);return vn.splice(nn,1),vn}return Kt}var Fs=Ht.createContext(null);function no(){return Ht.useContext(Fs)}function Pa(yt,Rt){var It=yt.prefixCls,Kt=yt.generateConfig,me=yt.locale,Re=yt.disabledDate,nn=yt.minDate,vn=yt.maxDate,Rn=yt.cellRender,Jn=yt.hoverValue,kn=yt.hoverRangeValue,wi=yt.onHover,Hi=yt.values,Oi=yt.pickerValue,pi=yt.onSelect,Ei=yt.prevIcon,Ci=yt.nextIcon,Kn=yt.superPrevIcon,ci=yt.superNextIcon,$n=Kt.getNow(),yi={now:$n,values:Hi,pickerValue:Oi,prefixCls:It,disabledDate:Re,minDate:nn,maxDate:vn,cellRender:Rn,hoverValue:Jn,hoverRangeValue:kn,onHover:wi,locale:me,generateConfig:Kt,onSelect:pi,panelType:Rt,prevIcon:Ei,nextIcon:Ci,superPrevIcon:Kn,superNextIcon:ci};return[yi,$n]}var Qr=Ht.createContext({});function ua(yt){for(var Rt=yt.rowNum,It=yt.colNum,Kt=yt.baseDate,me=yt.getCellDate,Re=yt.prefixColumn,nn=yt.rowClassName,vn=yt.titleFormat,Rn=yt.getCellText,Jn=yt.getCellClassName,kn=yt.headerCells,wi=yt.cellSelection,Hi=wi===void 0?!0:wi,Oi=yt.disabledDate,pi=no(),Ei=pi.prefixCls,Ci=pi.panelType,Kn=pi.now,ci=pi.disabledDate,$n=pi.cellRender,yi=pi.onHover,Ui=pi.hoverValue,Vi=pi.hoverRangeValue,Zi=pi.generateConfig,we=pi.values,yr=pi.locale,wr=pi.onSelect,Hr=Oi||ci,po="".concat(Ei,"-cell"),Fr=Ht.useContext(Qr),Zr=Fr.onCellDblClick,ao=function(qr){return we.some(function(Cr){return Cr&&Si(Zi,yr,qr,Cr,Ci)})},Dr=[],So=0;So<Rt;So+=1){for(var ta=[],Wo=void 0,zo=function(){var qr=So*It+to,Cr=me(Kt,qr),Uo=Hr==null?void 0:Hr(Cr,{type:Ci});to===0&&(Wo=Cr,Re&&ta.push(Re(Wo)));var fa=!1,No=!1,Qo=!1;if(Hi&&Vi){var Ro=pe(Vi,2),ga=Ro[0],Io=Ro[1];fa=Fi(Zi,ga,Io,Cr),No=Si(Zi,yr,Cr,ga,Ci),Qo=Si(Zi,yr,Cr,Io,Ci)}var La=vn?hr(Cr,{locale:yr,format:vn,generateConfig:Zi}):void 0,Vr=Ht.createElement("div",{className:"".concat(po,"-inner")},Rn(Cr));ta.push(Ht.createElement("td",{key:to,title:La,className:rr()(po,(0,ue.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)({},"".concat(po,"-disabled"),Uo),"".concat(po,"-hover"),(Ui||[]).some(function(vr){return Si(Zi,yr,Cr,vr,Ci)})),"".concat(po,"-in-range"),fa&&!No&&!Qo),"".concat(po,"-range-start"),No),"".concat(po,"-range-end"),Qo),"".concat(Ei,"-cell-selected"),!Vi&&Ci!=="week"&&ao(Cr)),Jn(Cr))),onClick:function(){Uo||wr(Cr)},onDoubleClick:function(){!Uo&&Zr&&Zr()},onMouseEnter:function(){Uo||yi==null||yi(Cr)},onMouseLeave:function(){Uo||yi==null||yi(null)}},$n?$n(Cr,{prefixCls:Ei,originNode:Vr,today:Kn,type:Ci,locale:yr}):Vr))},to=0;to<It;to+=1)zo();Dr.push(Ht.createElement("tr",{key:So,className:nn==null?void 0:nn(Wo)},ta))}return Ht.createElement("div",{className:"".concat(Ei,"-body")},Ht.createElement("table",{className:"".concat(Ei,"-content")},kn&&Ht.createElement("thead",null,Ht.createElement("tr",null,kn)),Ht.createElement("tbody",null,Dr)))}var Za={visibility:"hidden"};function Xs(yt){var Rt=yt.offset,It=yt.superOffset,Kt=yt.onChange,me=yt.getStart,Re=yt.getEnd,nn=yt.children,vn=no(),Rn=vn.prefixCls,Jn=vn.prevIcon,kn=Jn===void 0?"\u2039":Jn,wi=vn.nextIcon,Hi=wi===void 0?"\u203A":wi,Oi=vn.superPrevIcon,pi=Oi===void 0?"\xAB":Oi,Ei=vn.superNextIcon,Ci=Ei===void 0?"\xBB":Ei,Kn=vn.minDate,ci=vn.maxDate,$n=vn.generateConfig,yi=vn.locale,Ui=vn.pickerValue,Vi=vn.panelType,Zi="".concat(Rn,"-header"),we=Ht.useContext(Qr),yr=we.hidePrev,wr=we.hideNext,Hr=we.hideHeader,po=Ht.useMemo(function(){if(!Kn||!Rt||!Re)return!1;var Lr=Re(Rt(-1,Ui));return!Gi($n,yi,Lr,Kn,Vi)},[Kn,Rt,Ui,Re,$n,yi,Vi]),Fr=Ht.useMemo(function(){if(!Kn||!It||!Re)return!1;var Lr=Re(It(-1,Ui));return!Gi($n,yi,Lr,Kn,Vi)},[Kn,It,Ui,Re,$n,yi,Vi]),Zr=Ht.useMemo(function(){if(!ci||!Rt||!me)return!1;var Lr=me(Rt(1,Ui));return!Gi($n,yi,ci,Lr,Vi)},[ci,Rt,Ui,me,$n,yi,Vi]),ao=Ht.useMemo(function(){if(!ci||!It||!me)return!1;var Lr=me(It(1,Ui));return!Gi($n,yi,ci,Lr,Vi)},[ci,It,Ui,me,$n,yi,Vi]),Dr=function(qr){Rt&&Kt(Rt(qr,Ui))},So=function(qr){It&&Kt(It(qr,Ui))};if(Hr)return null;var ta="".concat(Zi,"-prev-btn"),Wo="".concat(Zi,"-next-btn"),zo="".concat(Zi,"-super-prev-btn"),to="".concat(Zi,"-super-next-btn");return Ht.createElement("div",{className:Zi},It&&Ht.createElement("button",{type:"button","aria-label":yi.previousYear,onClick:function(){return So(-1)},tabIndex:-1,className:rr()(zo,Fr&&"".concat(zo,"-disabled")),disabled:Fr,style:yr?Za:{}},pi),Rt&&Ht.createElement("button",{type:"button","aria-label":yi.previousMonth,onClick:function(){return Dr(-1)},tabIndex:-1,className:rr()(ta,po&&"".concat(ta,"-disabled")),disabled:po,style:yr?Za:{}},kn),Ht.createElement("div",{className:"".concat(Zi,"-view")},nn),Rt&&Ht.createElement("button",{type:"button","aria-label":yi.nextMonth,onClick:function(){return Dr(1)},tabIndex:-1,className:rr()(Wo,Zr&&"".concat(Wo,"-disabled")),disabled:Zr,style:wr?Za:{}},Hi),It&&Ht.createElement("button",{type:"button","aria-label":yi.nextYear,onClick:function(){return So(1)},tabIndex:-1,className:rr()(to,ao&&"".concat(to,"-disabled")),disabled:ao,style:wr?Za:{}},Ci))}var Nl=Xs;function Ts(yt){var Rt=yt.prefixCls,It=yt.panelName,Kt=It===void 0?"date":It,me=yt.locale,Re=yt.generateConfig,nn=yt.pickerValue,vn=yt.onPickerValueChange,Rn=yt.onModeChange,Jn=yt.mode,kn=Jn===void 0?"date":Jn,wi=yt.disabledDate,Hi=yt.onSelect,Oi=yt.onHover,pi=yt.showWeek,Ei="".concat(Rt,"-").concat(Kt,"-panel"),Ci="".concat(Rt,"-cell"),Kn=kn==="week",ci=Pa(yt,kn),$n=pe(ci,2),yi=$n[0],Ui=$n[1],Vi=Re.locale.getWeekFirstDay(me.locale),Zi=Re.setDate(nn,1),we=Mr(me.locale,Re,Zi),yr=Re.getMonth(nn),wr=pi===void 0?Kn:pi,Hr=wr?function(Lr){var qr=wi==null?void 0:wi(Lr,{type:"week"});return Ht.createElement("td",{key:"week",className:rr()(Ci,"".concat(Ci,"-week"),(0,hi.Z)({},"".concat(Ci,"-disabled"),qr)),onClick:function(){qr||Hi(Lr)},onMouseEnter:function(){qr||Oi==null||Oi(Lr)},onMouseLeave:function(){qr||Oi==null||Oi(null)}},Ht.createElement("div",{className:"".concat(Ci,"-inner")},Re.locale.getWeek(me.locale,Lr)))}:null,po=[],Fr=me.shortWeekDays||(Re.locale.getShortWeekDays?Re.locale.getShortWeekDays(me.locale):[]);Hr&&po.push(Ht.createElement("th",{key:"empty"},Ht.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},me.week)));for(var Zr=0;Zr<vi;Zr+=1)po.push(Ht.createElement("th",{key:Zr},Fr[(Zr+Vi)%vi]));var ao=function(qr,Cr){return Re.addDate(qr,Cr)},Dr=function(qr){return hr(qr,{locale:me,format:me.cellDateFormat,generateConfig:Re})},So=function(qr){var Cr=(0,hi.Z)((0,hi.Z)({},"".concat(Rt,"-cell-in-view"),qe(Re,qr,nn)),"".concat(Rt,"-cell-today"),oi(Re,qr,Ui));return Cr},ta=me.shortMonths||(Re.locale.getShortMonths?Re.locale.getShortMonths(me.locale):[]),Wo=Ht.createElement("button",{type:"button","aria-label":me.yearSelect,key:"year",onClick:function(){Rn("year",nn)},tabIndex:-1,className:"".concat(Rt,"-year-btn")},hr(nn,{locale:me,format:me.yearFormat,generateConfig:Re})),zo=Ht.createElement("button",{type:"button","aria-label":me.monthSelect,key:"month",onClick:function(){Rn("month",nn)},tabIndex:-1,className:"".concat(Rt,"-month-btn")},me.monthFormat?hr(nn,{locale:me,format:me.monthFormat,generateConfig:Re}):ta[yr]),to=me.monthBeforeYear?[zo,Wo]:[Wo,zo];return Ht.createElement(Fs.Provider,{value:yi},Ht.createElement("div",{className:rr()(Ei,pi&&"".concat(Ei,"-show-week"))},Ht.createElement(Nl,{offset:function(qr){return Re.addMonth(nn,qr)},superOffset:function(qr){return Re.addYear(nn,qr)},onChange:vn,getStart:function(qr){return Re.setDate(qr,1)},getEnd:function(qr){var Cr=Re.setDate(qr,1);return Cr=Re.addMonth(Cr,1),Re.addDate(Cr,-1)}},to),Ht.createElement(ua,Pt({titleFormat:me.fieldDateFormat},yt,{colNum:vi,rowNum:6,baseDate:we,headerCells:po,getCellDate:ao,getCellText:Dr,getCellClassName:So,prefixColumn:Hr,cellSelection:!Kn}))))}var fl=function(yt){if(!yt)return!1;if(yt instanceof Element){if(yt.offsetParent)return!0;if(yt.getBBox){var Rt=yt.getBBox(),It=Rt.width,Kt=Rt.height;if(It||Kt)return!0}if(yt.getBoundingClientRect){var me=yt.getBoundingClientRect(),Re=me.width,nn=me.height;if(Re||nn)return!0}}return!1},Pu=1/3;function ph(yt,Rt){var It=Ht.useRef(!1),Kt=Ht.useRef(null),me=Ht.useRef(null),Re=function(){return It.current},nn=function(){Ir.cancel(Kt.current),It.current=!1},vn=Ht.useRef(),Rn=function(){var wi=yt.current;if(me.current=null,vn.current=0,wi){var Hi=wi.querySelector('[data-value="'.concat(Rt,'"]')),Oi=wi.querySelector("li"),pi=function Ei(){nn(),It.current=!0,vn.current+=1;var Ci=wi.scrollTop,Kn=Oi.offsetTop,ci=Hi.offsetTop,$n=ci-Kn;if(ci===0&&Hi!==Oi||!fl(wi)){vn.current<=5&&(Kt.current=Ir(Ei));return}var yi=Ci+($n-Ci)*Pu,Ui=Math.abs($n-yi);if(me.current!==null&&me.current<Ui){nn();return}if(me.current=Ui,Ui<=1){wi.scrollTop=$n,nn();return}wi.scrollTop=yi,Kt.current=Ir(Ei)};Hi&&Oi&&pi()}},Jn=Dt(Rn);return[Jn,nn,Re]}var mh=300;function eh(yt){return yt.map(function(Rt){var It=Rt.value,Kt=Rt.label,me=Rt.disabled;return[It,Kt,me].join(",")}).join(";")}function Fu(yt){var Rt=yt.units,It=yt.value,Kt=yt.optionalValue,me=yt.type,Re=yt.onChange,nn=yt.onHover,vn=yt.onDblClick,Rn=yt.changeOnScroll,Jn=no(),kn=Jn.prefixCls,wi=Jn.cellRender,Hi=Jn.now,Oi=Jn.locale,pi="".concat(kn,"-time-panel"),Ei="".concat(kn,"-time-panel-cell"),Ci=Ht.useRef(null),Kn=Ht.useRef(),ci=function(){clearTimeout(Kn.current)},$n=ph(Ci,It!=null?It:Kt),yi=pe($n,3),Ui=yi[0],Vi=yi[1],Zi=yi[2];re(function(){return Ui(),ci(),function(){Vi(),ci()}},[It,Kt,eh(Rt)]);var we=function(Hr){ci();var po=Hr.target;!Zi()&&Rn&&(Kn.current=setTimeout(function(){var Fr=Ci.current,Zr=Fr.querySelector("li").offsetTop,ao=Array.from(Fr.querySelectorAll("li")),Dr=ao.map(function(to){return to.offsetTop-Zr}),So=Dr.map(function(to,Lr){return Rt[Lr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(to-po.scrollTop)}),ta=Math.min.apply(Math,Ut(So)),Wo=So.findIndex(function(to){return to===ta}),zo=Rt[Wo];zo&&!zo.disabled&&Re(zo.value)},mh))},yr="".concat(pi,"-column");return Ht.createElement("ul",{className:yr,ref:Ci,"data-type":me,onScroll:we},Rt.map(function(wr){var Hr=wr.label,po=wr.value,Fr=wr.disabled,Zr=Ht.createElement("div",{className:"".concat(Ei,"-inner")},Hr);return Ht.createElement("li",{key:po,className:rr()(Ei,(0,hi.Z)((0,hi.Z)({},"".concat(Ei,"-selected"),It===po),"".concat(Ei,"-disabled"),Fr)),onClick:function(){Fr||Re(po)},onDoubleClick:function(){!Fr&&vn&&vn()},onMouseEnter:function(){nn(po)},onMouseLeave:function(){nn(null)},"data-value":po},wi?wi(po,{prefixCls:kn,originNode:Zr,today:Hi,type:"time",subType:me,locale:Oi}):Zr)}))}function Yl(yt){return yt<12}function ac(yt){var Rt=yt.showHour,It=yt.showMinute,Kt=yt.showSecond,me=yt.showMillisecond,Re=yt.use12Hours,nn=yt.changeOnScroll,vn=no(),Rn=vn.prefixCls,Jn=vn.values,kn=vn.generateConfig,wi=vn.locale,Hi=vn.onSelect,Oi=vn.onHover,pi=Oi===void 0?function(){}:Oi,Ei=vn.pickerValue,Ci=(Jn==null?void 0:Jn[0])||null,Kn=Ht.useContext(Qr),ci=Kn.onCellDblClick,$n=Ns(kn,yt,Ci),yi=pe($n,5),Ui=yi[0],Vi=yi[1],Zi=yi[2],we=yi[3],yr=yi[4],wr=function(fo){var ms=Ci&&kn[fo](Ci),Qs=Ei&&kn[fo](Ei);return[ms,Qs]},Hr=wr("getHour"),po=pe(Hr,2),Fr=po[0],Zr=po[1],ao=wr("getMinute"),Dr=pe(ao,2),So=Dr[0],ta=Dr[1],Wo=wr("getSecond"),zo=pe(Wo,2),to=zo[0],Lr=zo[1],qr=wr("getMillisecond"),Cr=pe(qr,2),Uo=Cr[0],fa=Cr[1],No=Fr===null?null:Yl(Fr)?"am":"pm",Qo=Ht.useMemo(function(){return Re?Yl(Fr)?Vi.filter(function(Jr){return Yl(Jr.value)}):Vi.filter(function(Jr){return!Yl(Jr.value)}):Vi},[Fr,Vi,Re]),Ro=function(fo,ms){var Qs,qs=fo.filter(function(eu){return!eu.disabled});return ms!=null?ms:qs==null||(Qs=qs[0])===null||Qs===void 0?void 0:Qs.value},ga=Ro(Vi,Fr),Io=Ht.useMemo(function(){return Zi(ga)},[Zi,ga]),La=Ro(Io,So),Vr=Ht.useMemo(function(){return we(ga,La)},[we,ga,La]),vr=Ro(Vr,to),Go=Ht.useMemo(function(){return yr(ga,La,vr)},[yr,ga,La,vr]),bo=Ro(Go,Uo),Ia=Ht.useMemo(function(){if(!Re)return[];var Jr=kn.getNow(),fo=kn.setHour(Jr,6),ms=kn.setHour(Jr,18),Qs=function(eu,ml){var lh=wi.cellMeridiemFormat;return lh?hr(eu,{generateConfig:kn,locale:wi,format:lh}):ml};return[{label:Qs(fo,"AM"),value:"am",disabled:Vi.every(function(qs){return qs.disabled||!Yl(qs.value)})},{label:Qs(ms,"PM"),value:"pm",disabled:Vi.every(function(qs){return qs.disabled||Yl(qs.value)})}]},[Vi,Re,kn,wi]),jo=function(fo){var ms=Ui(fo);Hi(ms)},aa=Ht.useMemo(function(){var Jr=Ci||Ei||kn.getNow(),fo=function(Qs){return Qs!=null};return fo(Fr)?(Jr=kn.setHour(Jr,Fr),Jr=kn.setMinute(Jr,So),Jr=kn.setSecond(Jr,to),Jr=kn.setMillisecond(Jr,Uo)):fo(Zr)?(Jr=kn.setHour(Jr,Zr),Jr=kn.setMinute(Jr,ta),Jr=kn.setSecond(Jr,Lr),Jr=kn.setMillisecond(Jr,fa)):fo(ga)&&(Jr=kn.setHour(Jr,ga),Jr=kn.setMinute(Jr,La),Jr=kn.setSecond(Jr,vr),Jr=kn.setMillisecond(Jr,bo)),Jr},[Ci,Ei,Fr,So,to,Uo,ga,La,vr,bo,Zr,ta,Lr,fa,kn]),_a=function(fo,ms){return fo===null?null:kn[ms](aa,fo)},xo=function(fo){return _a(fo,"setHour")},ya=function(fo){return _a(fo,"setMinute")},Cs=function(fo){return _a(fo,"setSecond")},cs=function(fo){return _a(fo,"setMillisecond")},Ds=function(fo){return fo===null?null:fo==="am"&&!Yl(Fr)?kn.setHour(aa,Fr-12):fo==="pm"&&Yl(Fr)?kn.setHour(aa,Fr+12):aa},ha=function(fo){jo(xo(fo))},Ol=function(fo){jo(ya(fo))},is=function(fo){jo(Cs(fo))},Ba=function(fo){jo(cs(fo))},za=function(fo){jo(Ds(fo))},js=function(fo){pi(xo(fo))},Sa=function(fo){pi(ya(fo))},tu=function(fo){pi(Cs(fo))},Fo=function(fo){pi(cs(fo))},Kr=function(fo){pi(Ds(fo))},qa={onDblClick:ci,changeOnScroll:nn};return Ht.createElement("div",{className:"".concat(Rn,"-content")},Rt&&Ht.createElement(Fu,Pt({units:Qo,value:Fr,optionalValue:Zr,type:"hour",onChange:ha,onHover:js},qa)),It&&Ht.createElement(Fu,Pt({units:Io,value:So,optionalValue:ta,type:"minute",onChange:Ol,onHover:Sa},qa)),Kt&&Ht.createElement(Fu,Pt({units:Vr,value:to,optionalValue:Lr,type:"second",onChange:is,onHover:tu},qa)),me&&Ht.createElement(Fu,Pt({units:Go,value:Uo,optionalValue:fa,type:"millisecond",onChange:Ba,onHover:Fo},qa)),Re&&Ht.createElement(Fu,Pt({units:Ia,value:No,type:"meridiem",onChange:za,onHover:Kr},qa)))}function nh(yt){var Rt=yt.prefixCls,It=yt.value,Kt=yt.locale,me=yt.generateConfig,Re=yt.showTime,nn=Re||{},vn=nn.format,Rn="".concat(Rt,"-time-panel"),Jn=Pa(yt,"time"),kn=pe(Jn,1),wi=kn[0];return Ht.createElement(Fs.Provider,{value:wi},Ht.createElement("div",{className:rr()(Rn)},Ht.createElement(Nl,null,It?hr(It,{locale:Kt,format:vn,generateConfig:me}):"\xA0"),Ht.createElement(ac,Re)))}function dd(yt){var Rt=yt.prefixCls,It=yt.generateConfig,Kt=yt.showTime,me=yt.onSelect,Re=yt.value,nn=yt.pickerValue,vn=yt.onHover,Rn="".concat(Rt,"-datetime-panel"),Jn=Ns(It,Kt),kn=pe(Jn,1),wi=kn[0],Hi=function(Ci){return Re?Yn(It,Ci,Re):Yn(It,Ci,nn)},Oi=function(Ci){vn==null||vn(Ci&&Hi(Ci))},pi=function(Ci){var Kn=Hi(Ci);me(wi(Kn,Kn))};return Ht.createElement("div",{className:Rn},Ht.createElement(Ts,Pt({},yt,{onSelect:pi,onHover:Oi})),Ht.createElement(nh,yt))}function Dd(yt){var Rt=yt.prefixCls,It=yt.locale,Kt=yt.generateConfig,me=yt.pickerValue,Re=yt.disabledDate,nn=yt.onPickerValueChange,vn="".concat(Rt,"-decade-panel"),Rn=Pa(yt,"decade"),Jn=pe(Rn,1),kn=Jn[0],wi=function(Vi){var Zi=Math.floor(Kt.getYear(Vi)/100)*100;return Kt.setYear(Vi,Zi)},Hi=function(Vi){var Zi=wi(Vi);return Kt.addYear(Zi,99)},Oi=wi(me),pi=Hi(me),Ei=Kt.addYear(Oi,-10),Ci=function(Vi,Zi){return Kt.addYear(Vi,Zi*10)},Kn=function(Vi){var Zi=It.cellYearFormat,we=hr(Vi,{locale:It,format:Zi,generateConfig:Kt}),yr=hr(Kt.addYear(Vi,9),{locale:It,format:Zi,generateConfig:Kt});return"".concat(we,"-").concat(yr)},ci=function(Vi){return(0,hi.Z)({},"".concat(Rt,"-cell-in-view"),Oe(Kt,Vi,Oi)||Oe(Kt,Vi,pi)||Fi(Kt,Oi,pi,Vi))},$n=Re?function(Ui,Vi){var Zi=Kt.setDate(Ui,1),we=Kt.setMonth(Zi,0),yr=Kt.setYear(we,Math.floor(Kt.getYear(we)/10)*10),wr=Kt.addYear(yr,10),Hr=Kt.addDate(wr,-1);return Re(yr,Vi)&&Re(Hr,Vi)}:null,yi="".concat(hr(Oi,{locale:It,format:It.yearFormat,generateConfig:Kt}),"-").concat(hr(pi,{locale:It,format:It.yearFormat,generateConfig:Kt}));return Ht.createElement(Fs.Provider,{value:kn},Ht.createElement("div",{className:vn},Ht.createElement(Nl,{superOffset:function(Vi){return Kt.addYear(me,Vi*100)},onChange:nn,getStart:wi,getEnd:Hi},yi),Ht.createElement(ua,Pt({},yt,{disabledDate:$n,colNum:3,rowNum:4,baseDate:Ei,getCellDate:Ci,getCellText:Kn,getCellClassName:ci}))))}function uf(yt){var Rt=yt.prefixCls,It=yt.locale,Kt=yt.generateConfig,me=yt.pickerValue,Re=yt.disabledDate,nn=yt.onPickerValueChange,vn=yt.onModeChange,Rn="".concat(Rt,"-month-panel"),Jn=Pa(yt,"month"),kn=pe(Jn,1),wi=kn[0],Hi=Kt.setMonth(me,0),Oi=It.shortMonths||(Kt.locale.getShortMonths?Kt.locale.getShortMonths(It.locale):[]),pi=function(yi,Ui){return Kt.addMonth(yi,Ui)},Ei=function(yi){var Ui=Kt.getMonth(yi);return It.monthFormat?hr(yi,{locale:It,format:It.monthFormat,generateConfig:Kt}):Oi[Ui]},Ci=function(){return(0,hi.Z)({},"".concat(Rt,"-cell-in-view"),!0)},Kn=Re?function($n,yi){var Ui=Kt.setDate($n,1),Vi=Kt.setMonth(Ui,Kt.getMonth(Ui)+1),Zi=Kt.addDate(Vi,-1);return Re(Ui,yi)&&Re(Zi,yi)}:null,ci=Ht.createElement("button",{type:"button",key:"year","aria-label":It.yearSelect,onClick:function(){vn("year")},tabIndex:-1,className:"".concat(Rt,"-year-btn")},hr(me,{locale:It,format:It.yearFormat,generateConfig:Kt}));return Ht.createElement(Fs.Provider,{value:wi},Ht.createElement("div",{className:Rn},Ht.createElement(Nl,{superOffset:function(yi){return Kt.addYear(me,yi)},onChange:nn,getStart:function(yi){return Kt.setMonth(yi,0)},getEnd:function(yi){return Kt.setMonth(yi,11)}},ci),Ht.createElement(ua,Pt({},yt,{disabledDate:Kn,titleFormat:It.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Hi,getCellDate:pi,getCellText:Ei,getCellClassName:Ci}))))}function al(yt){var Rt=yt.prefixCls,It=yt.locale,Kt=yt.generateConfig,me=yt.pickerValue,Re=yt.onPickerValueChange,nn=yt.onModeChange,vn="".concat(Rt,"-quarter-panel"),Rn=Pa(yt,"quarter"),Jn=pe(Rn,1),kn=Jn[0],wi=Kt.setMonth(me,0),Hi=function(Kn,ci){return Kt.addMonth(Kn,ci*3)},Oi=function(Kn){return hr(Kn,{locale:It,format:It.cellQuarterFormat,generateConfig:Kt})},pi=function(){return(0,hi.Z)({},"".concat(Rt,"-cell-in-view"),!0)},Ei=Ht.createElement("button",{type:"button",key:"year","aria-label":It.yearSelect,onClick:function(){nn("year")},tabIndex:-1,className:"".concat(Rt,"-year-btn")},hr(me,{locale:It,format:It.yearFormat,generateConfig:Kt}));return Ht.createElement(Fs.Provider,{value:kn},Ht.createElement("div",{className:vn},Ht.createElement(Nl,{superOffset:function(Kn){return Kt.addYear(me,Kn)},onChange:Re,getStart:function(Kn){return Kt.setMonth(Kn,0)},getEnd:function(Kn){return Kt.setMonth(Kn,11)}},Ei),Ht.createElement(ua,Pt({},yt,{titleFormat:It.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:wi,getCellDate:Hi,getCellText:Oi,getCellClassName:pi}))))}function ag(yt){var Rt=yt.prefixCls,It=yt.generateConfig,Kt=yt.locale,me=yt.value,Re=yt.hoverValue,nn=yt.hoverRangeValue,vn=Kt.locale,Rn="".concat(Rt,"-week-panel-row"),Jn=function(wi){var Hi={};if(nn){var Oi=pe(nn,2),pi=Oi[0],Ei=Oi[1],Ci=xr(It,vn,pi,wi),Kn=xr(It,vn,Ei,wi);Hi["".concat(Rn,"-range-start")]=Ci,Hi["".concat(Rn,"-range-end")]=Kn,Hi["".concat(Rn,"-range-hover")]=!Ci&&!Kn&&Fi(It,pi,Ei,wi)}return Re&&(Hi["".concat(Rn,"-hover")]=Re.some(function(ci){return xr(It,vn,wi,ci)})),rr()(Rn,(0,hi.Z)({},"".concat(Rn,"-selected"),!nn&&xr(It,vn,me,wi)),Hi)};return Ht.createElement(Ts,Pt({},yt,{mode:"week",panelName:"week",rowClassName:Jn}))}function hf(yt){var Rt=yt.prefixCls,It=yt.locale,Kt=yt.generateConfig,me=yt.pickerValue,Re=yt.disabledDate,nn=yt.onPickerValueChange,vn=yt.onModeChange,Rn="".concat(Rt,"-year-panel"),Jn=Pa(yt,"year"),kn=pe(Jn,1),wi=kn[0],Hi=function(Zi){var we=Math.floor(Kt.getYear(Zi)/10)*10;return Kt.setYear(Zi,we)},Oi=function(Zi){var we=Hi(Zi);return Kt.addYear(we,9)},pi=Hi(me),Ei=Oi(me),Ci=Kt.addYear(pi,-1),Kn=function(Zi,we){return Kt.addYear(Zi,we)},ci=function(Zi){return hr(Zi,{locale:It,format:It.cellYearFormat,generateConfig:Kt})},$n=function(Zi){return(0,hi.Z)({},"".concat(Rt,"-cell-in-view"),ni(Kt,Zi,pi)||ni(Kt,Zi,Ei)||Fi(Kt,pi,Ei,Zi))},yi=Re?function(Vi,Zi){var we=Kt.setMonth(Vi,0),yr=Kt.setDate(we,1),wr=Kt.addYear(yr,1),Hr=Kt.addDate(wr,-1);return Re(yr,Zi)&&Re(Hr,Zi)}:null,Ui=Ht.createElement("button",{type:"button",key:"decade","aria-label":It.decadeSelect,onClick:function(){vn("decade")},tabIndex:-1,className:"".concat(Rt,"-decade-btn")},hr(pi,{locale:It,format:It.yearFormat,generateConfig:Kt}),"-",hr(Ei,{locale:It,format:It.yearFormat,generateConfig:Kt}));return Ht.createElement(Fs.Provider,{value:wi},Ht.createElement("div",{className:Rn},Ht.createElement(Nl,{superOffset:function(Zi){return Kt.addYear(me,Zi*10)},onChange:nn,getStart:Hi,getEnd:Oi},Ui),Ht.createElement(ua,Pt({},yt,{disabledDate:yi,titleFormat:It.fieldYearFormat,colNum:3,rowNum:4,baseDate:Ci,getCellDate:Kn,getCellText:ci,getCellClassName:$n}))))}var fd={date:Ts,datetime:dd,week:ag,month:uf,quarter:al,year:hf,decade:Dd,time:nh};function bc(yt,Rt){var It,Kt=yt.locale,me=yt.generateConfig,Re=yt.direction,nn=yt.prefixCls,vn=yt.tabIndex,Rn=vn===void 0?0:vn,Jn=yt.multiple,kn=yt.defaultValue,wi=yt.value,Hi=yt.onChange,Oi=yt.onSelect,pi=yt.defaultPickerValue,Ei=yt.pickerValue,Ci=yt.onPickerValueChange,Kn=yt.mode,ci=yt.onPanelChange,$n=yt.picker,yi=$n===void 0?"date":$n,Ui=yt.showTime,Vi=yt.hoverValue,Zi=yt.hoverRangeValue,we=yt.cellRender,yr=yt.dateRender,wr=yt.monthCellRender,Hr=yt.components,po=Hr===void 0?{}:Hr,Fr=yt.hideHeader,Zr=((It=Ht.useContext(Ur))===null||It===void 0?void 0:It.prefixCls)||nn||"rc-picker",ao=Ht.useRef();Ht.useImperativeHandle(Rt,function(){return{nativeElement:ao.current}});var Dr=ke(yt),So=pe(Dr,4),ta=So[0],Wo=So[1],zo=So[2],to=So[3],Lr=Di(Kt,Wo),qr=yi==="date"&&Ui?"datetime":yi,Cr=Ht.useMemo(function(){return cn(qr,zo,to,ta,Lr)},[qr,zo,to,ta,Lr]),Uo=me.getNow(),fa=Le(yi,{value:Kn,postState:function(Kr){return Kr||"date"}}),No=pe(fa,2),Qo=No[0],Ro=No[1],ga=Qo==="date"&&Cr?"datetime":Qo,Io=Ms(me,Kt,qr),La=Le(kn,{value:wi}),Vr=pe(La,2),vr=Vr[0],Go=Vr[1],bo=Ht.useMemo(function(){var Fo=co(vr).filter(function(Kr){return Kr});return Jn?Fo:Fo.slice(0,1)},[vr,Jn]),Ia=Dt(function(Fo){Go(Fo),Hi&&(Fo===null||bo.length!==Fo.length||bo.some(function(Kr,qa){return!Si(me,Kt,Kr,Fo[qa],qr)}))&&(Hi==null||Hi(Jn?Fo:Fo[0]))}),jo=Dt(function(Fo){if(Oi==null||Oi(Fo),Qo===yi){var Kr=Jn?Io(bo,Fo):[Fo];Ia(Kr)}}),aa=Le(pi||bo[0]||Uo,{value:Ei}),_a=pe(aa,2),xo=_a[0],ya=_a[1];Ht.useEffect(function(){bo[0]&&!Ei&&ya(bo[0])},[bo[0]]);var Cs=function(Kr,qa){ci==null||ci(Kr||Ei,qa||Qo)},cs=function(Kr){var qa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ya(Kr),Ci==null||Ci(Kr),qa&&Cs(Kr)},Ds=function(Kr,qa){Ro(Kr),qa&&cs(qa),Cs(qa,Kr)},ha=function(Kr){if(jo(Kr),cs(Kr),Qo!==yi){var qa=["decade","year"],Jr=[].concat(qa,["month"]),fo={quarter:[].concat(qa,["quarter"]),week:[].concat(Ut(Jr),["week"]),date:[].concat(Ut(Jr),["date"])},ms=fo[yi]||Jr,Qs=ms.indexOf(Qo),qs=ms[Qs+1];qs&&Ds(qs,Kr)}},Ol=Ht.useMemo(function(){var Fo,Kr;if(Array.isArray(Zi)){var qa=pe(Zi,2);Fo=qa[0],Kr=qa[1]}else Fo=Zi;return!Fo&&!Kr?null:(Fo=Fo||Kr,Kr=Kr||Fo,me.isAfter(Fo,Kr)?[Kr,Fo]:[Fo,Kr])},[Zi,me]),is=Un(we,yr,wr),Ba=po[ga]||fd[ga]||Ts,za=Ht.useContext(Qr),js=Ht.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},za),{},{hideHeader:Fr})},[za,Fr]),Sa="".concat(Zr,"-panel"),tu=bn(yt,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Ht.createElement(Qr.Provider,{value:js},Ht.createElement("div",{ref:ao,tabIndex:Rn,className:rr()(Sa,(0,hi.Z)({},"".concat(Sa,"-rtl"),Re==="rtl"))},Ht.createElement(Ba,Pt({},tu,{showTime:Cr,prefixCls:Zr,locale:Lr,generateConfig:me,onModeChange:Ds,pickerValue:xo,onPickerValueChange:function(Kr){cs(Kr,!0)},value:bo[0],onSelect:ha,values:bo,cellRender:is,hoverRangeValue:Ol,hoverValue:Vi}))))}var Hl=Ht.memo(Ht.forwardRef(bc)),Fl=Hl;function ul(yt){var Rt=yt.picker,It=yt.multiplePanel,Kt=yt.pickerValue,me=yt.onPickerValueChange,Re=yt.needConfirm,nn=yt.onSubmit,vn=yt.range,Rn=yt.hoverValue,Jn=Ht.useContext(Ur),kn=Jn.prefixCls,wi=Jn.generateConfig,Hi=Ht.useCallback(function(ci,$n){return Ze(wi,Rt,ci,$n)},[wi,Rt]),Oi=Ht.useMemo(function(){return Hi(Kt,1)},[Kt,Hi]),pi=function($n){me(Hi($n,-1))},Ei={onCellDblClick:function(){Re&&nn()}},Ci=Rt==="time",Kn=(0,ue.Z)((0,ue.Z)({},yt),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Ci});return vn?Kn.hoverRangeValue=Rn:Kn.hoverValue=Rn,It?Ht.createElement("div",{className:"".concat(kn,"-panels")},Ht.createElement(Qr.Provider,{value:(0,ue.Z)((0,ue.Z)({},Ei),{},{hideNext:!0})},Ht.createElement(Fl,Kn)),Ht.createElement(Qr.Provider,{value:(0,ue.Z)((0,ue.Z)({},Ei),{},{hidePrev:!0})},Ht.createElement(Fl,Pt({},Kn,{pickerValue:Oi,onPickerValueChange:pi})))):Ht.createElement(Qr.Provider,{value:(0,ue.Z)({},Ei)},Ht.createElement(Fl,Kn))}function bl(yt){return typeof yt=="function"?yt():yt}function gd(yt){var Rt=yt.prefixCls,It=yt.presets,Kt=yt.onClick,me=yt.onHover;return It.length?Ht.createElement("div",{className:"".concat(Rt,"-presets")},Ht.createElement("ul",null,It.map(function(Re,nn){var vn=Re.label,Rn=Re.value;return Ht.createElement("li",{key:nn,onClick:function(){Kt(bl(Rn))},onMouseEnter:function(){me(bl(Rn))},onMouseLeave:function(){me(null)}},vn)}))):null}function wu(yt){var Rt=yt.panelRender,It=yt.internalMode,Kt=yt.picker,me=yt.showNow,Re=yt.range,nn=yt.multiple,vn=yt.activeInfo,Rn=vn===void 0?[0,0,0]:vn,Jn=yt.presets,kn=yt.onPresetHover,wi=yt.onPresetSubmit,Hi=yt.onFocus,Oi=yt.onBlur,pi=yt.onPanelMouseDown,Ei=yt.direction,Ci=yt.value,Kn=yt.onSelect,ci=yt.isInvalid,$n=yt.defaultOpenValue,yi=yt.onOk,Ui=yt.onSubmit,Vi=Ht.useContext(Ur),Zi=Vi.prefixCls,we="".concat(Zi,"-panel"),yr=Ei==="rtl",wr=Ht.useRef(null),Hr=Ht.useRef(null),po=Ht.useState(0),Fr=pe(po,2),Zr=Fr[0],ao=Fr[1],Dr=Ht.useState(0),So=pe(Dr,2),ta=So[0],Wo=So[1],zo=Ht.useState(0),to=pe(zo,2),Lr=to[0],qr=to[1],Cr=function(ha){ha.width&&ao(ha.width)},Uo=pe(Rn,3),fa=Uo[0],No=Uo[1],Qo=Uo[2],Ro=Ht.useState(0),ga=pe(Ro,2),Io=ga[0],La=ga[1];Ht.useEffect(function(){La(10)},[fa]),Ht.useEffect(function(){if(Re&&Hr.current){var Ds,ha=((Ds=wr.current)===null||Ds===void 0?void 0:Ds.offsetWidth)||0,Ol=Hr.current.getBoundingClientRect();if(!Ol.height||Ol.right<0){La(function(js){return Math.max(0,js-1)});return}var is=(yr?No-ha:fa)-Ol.left;if(qr(is),Zr&&Zr<Qo){var Ba=yr?Ol.right-(No-ha+Zr):fa+ha-Ol.left-Zr,za=Math.max(0,Ba);Wo(za)}else Wo(0)}},[Io,yr,Zr,fa,No,Qo,Re]);function Vr(Ds){return Ds.filter(function(ha){return ha})}var vr=Ht.useMemo(function(){return Vr(co(Ci))},[Ci]),Go=Kt==="time"&&!vr.length,bo=Ht.useMemo(function(){return Go?Vr([$n]):vr},[Go,vr,$n]),Ia=Go?$n:vr,jo=Ht.useMemo(function(){return bo.length?bo.some(function(Ds){return ci(Ds)}):!0},[bo,ci]),aa=function(){Go&&Kn($n),yi(),Ui()},_a=Ht.createElement("div",{className:"".concat(Zi,"-panel-layout")},Ht.createElement(gd,{prefixCls:Zi,presets:Jn,onClick:wi,onHover:kn}),Ht.createElement("div",null,Ht.createElement(ul,Pt({},yt,{value:Ia})),Ht.createElement(Xl,Pt({},yt,{showNow:nn?!1:me,invalid:jo,onSubmit:aa}))));Rt&&(_a=Rt(_a));var xo="".concat(we,"-container"),ya="marginLeft",Cs="marginRight",cs=Ht.createElement("div",{onMouseDown:pi,tabIndex:-1,className:rr()(xo,"".concat(Zi,"-").concat(It,"-panel-container")),style:(0,hi.Z)((0,hi.Z)({},yr?Cs:ya,ta),yr?ya:Cs,"auto"),onFocus:Hi,onBlur:Oi},_a);return Re&&(cs=Ht.createElement("div",{onMouseDown:pi,ref:Hr,className:rr()("".concat(Zi,"-range-wrapper"),"".concat(Zi,"-").concat(Kt,"-range-wrapper"))},Ht.createElement("div",{ref:wr,className:"".concat(Zi,"-range-arrow"),style:{left:Lr}}),Ht.createElement(Zh,{onResize:Cr},cs))),cs}function Ys(yt,Rt){if(yt==null)return{};var It={};for(var Kt in yt)if({}.hasOwnProperty.call(yt,Kt)){if(Rt.indexOf(Kt)!==-1)continue;It[Kt]=yt[Kt]}return It}function Nh(yt,Rt){if(yt==null)return{};var It,Kt,me=Ys(yt,Rt);if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(yt);for(Kt=0;Kt<Re.length;Kt++)It=Re[Kt],Rt.indexOf(It)===-1&&{}.propertyIsEnumerable.call(yt,It)&&(me[It]=yt[It])}return me}function Zc(yt,Rt){var It=yt.format,Kt=yt.maskFormat,me=yt.generateConfig,Re=yt.locale,nn=yt.preserveInvalidOnBlur,vn=yt.inputReadOnly,Rn=yt.required,Jn=yt["aria-required"],kn=yt.onSubmit,wi=yt.onFocus,Hi=yt.onBlur,Oi=yt.onInputChange,pi=yt.onInvalid,Ei=yt.open,Ci=yt.onOpenChange,Kn=yt.onKeyDown,ci=yt.onChange,$n=yt.activeHelp,yi=yt.name,Ui=yt.autoComplete,Vi=yt.id,Zi=yt.value,we=yt.invalid,yr=yt.placeholder,wr=yt.disabled,Hr=yt.activeIndex,po=yt.allHelp,Fr=yt.picker,Zr=function(Lr,qr){var Cr=me.locale.parse(Re.locale,Lr,[qr]);return Cr&&me.isValidate(Cr)?Cr:null},ao=It[0],Dr=Ht.useCallback(function(to){return hr(to,{locale:Re,format:ao,generateConfig:me})},[Re,me,ao]),So=Ht.useMemo(function(){return Zi.map(Dr)},[Zi,Dr]),ta=Ht.useMemo(function(){var to=Fr==="time"?8:10,Lr=typeof ao=="function"?ao(me.getNow()).length:ao.length;return Math.max(to,Lr)+2},[ao,Fr,me]),Wo=function(Lr){for(var qr=0;qr<It.length;qr+=1){var Cr=It[qr];if(typeof Cr=="string"){var Uo=Zr(Lr,Cr);if(Uo)return Uo}}return!1},zo=function(Lr){function qr(fa){return Lr!==void 0?fa[Lr]:fa}var Cr=Ki(yt,{aria:!0,data:!0}),Uo=(0,ue.Z)((0,ue.Z)({},Cr),{},{format:Kt,validateFormat:function(No){return!!Wo(No)},preserveInvalidOnBlur:nn,readOnly:vn,required:Rn,"aria-required":Jn,name:yi,autoComplete:Ui,size:ta,id:qr(Vi),value:qr(So)||"",invalid:qr(we),placeholder:qr(yr),active:Hr===Lr,helped:po||$n&&Hr===Lr,disabled:qr(wr),onFocus:function(No){wi(No,Lr)},onBlur:function(No){Hi(No,Lr)},onSubmit:kn,onChange:function(No){Oi();var Qo=Wo(No);if(Qo){pi(!1,Lr),ci(Qo,Lr);return}pi(!!No,Lr)},onHelp:function(){Ci(!0,{index:Lr})},onKeyDown:function(No){var Qo=!1;if(Kn==null||Kn(No,function(){Qo=!0}),!No.defaultPrevented&&!Qo)switch(No.key){case"Escape":Ci(!1,{index:Lr});break;case"Enter":Ei||Ci(!0);break}}},Rt==null?void 0:Rt({valueTexts:So}));return Object.keys(Uo).forEach(function(fa){Uo[fa]===void 0&&delete Uo[fa]}),Uo};return[zo,Dr]}var Bd=["onMouseEnter","onMouseLeave"];function br(yt){return Ht.useMemo(function(){return bn(yt,Bd)},[yt])}var cf=["icon","type"],Ee=["onClear"];function Vn(yt){var Rt=yt.icon,It=yt.type,Kt=Nh(yt,cf),me=Ht.useContext(Ur),Re=me.prefixCls;return Rt?Ht.createElement("span",Pt({className:"".concat(Re,"-").concat(It)},Kt),Rt):null}function Od(yt){var Rt=yt.onClear,It=Nh(yt,Ee);return Ht.createElement(Vn,Pt({},It,{type:"clear",role:"button",onMouseDown:function(me){me.preventDefault()},onClick:function(me){me.stopPropagation(),Rt()}}))}function df(yt,Rt){if(!(yt instanceof Rt))throw new TypeError("Cannot call a class as a function")}var Vh=Mt(69847);function vh(yt,Rt){for(var It=0;It<Rt.length;It++){var Kt=Rt[It];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,(0,Vh.Z)(Kt.key),Kt)}}function Lc(yt,Rt,It){return Rt&&vh(yt.prototype,Rt),It&&vh(yt,It),Object.defineProperty(yt,"prototype",{writable:!1}),yt}var Mc=["YYYY","MM","DD","HH","mm","ss","SSS"],sc="\u9867",Is=function(){function yt(Rt){df(this,yt),(0,hi.Z)(this,"format",void 0),(0,hi.Z)(this,"maskFormat",void 0),(0,hi.Z)(this,"cells",void 0),(0,hi.Z)(this,"maskCells",void 0),this.format=Rt;var It=Mc.map(function(vn){return"(".concat(vn,")")}).join("|"),Kt=new RegExp(It,"g");this.maskFormat=Rt.replace(Kt,function(vn){return sc.repeat(vn.length)});var me=new RegExp("(".concat(Mc.join("|"),")")),Re=(Rt.split(me)||[]).filter(function(vn){return vn}),nn=0;this.cells=Re.map(function(vn){var Rn=Mc.includes(vn),Jn=nn,kn=nn+vn.length;return nn=kn,{text:vn,mask:Rn,start:Jn,end:kn}}),this.maskCells=this.cells.filter(function(vn){return vn.mask})}return Lc(yt,[{key:"getSelection",value:function(It){var Kt=this.maskCells[It]||{},me=Kt.start,Re=Kt.end;return[me||0,Re||0]}},{key:"match",value:function(It){for(var Kt=0;Kt<this.maskFormat.length;Kt+=1){var me=this.maskFormat[Kt],Re=It[Kt];if(!Re||me!==sc&&me!==Re)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(It){for(var Kt=Number.MAX_SAFE_INTEGER,me=0,Re=0;Re<this.maskCells.length;Re+=1){var nn=this.maskCells[Re],vn=nn.start,Rn=nn.end;if(It>=vn&&It<=Rn)return Re;var Jn=Math.min(Math.abs(It-vn),Math.abs(It-Rn));Jn<Kt&&(Kt=Jn,me=Re)}return me}}]),yt}();function ho(yt){var Rt={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return Rt[yt]}var Jl=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Tu=Ht.forwardRef(function(yt,Rt){var It=yt.active,Kt=yt.showActiveCls,me=Kt===void 0?!0:Kt,Re=yt.suffixIcon,nn=yt.format,vn=yt.validateFormat,Rn=yt.onChange,Jn=yt.onInput,kn=yt.helped,wi=yt.onHelp,Hi=yt.onSubmit,Oi=yt.onKeyDown,pi=yt.preserveInvalidOnBlur,Ei=pi===void 0?!1:pi,Ci=yt.invalid,Kn=yt.clearIcon,ci=Nh(yt,Jl),$n=yt.value,yi=yt.onFocus,Ui=yt.onBlur,Vi=yt.onMouseUp,Zi=Ht.useContext(Ur),we=Zi.prefixCls,yr=Zi.input,wr=yr===void 0?"input":yr,Hr="".concat(we,"-input"),po=Ht.useState(!1),Fr=pe(po,2),Zr=Fr[0],ao=Fr[1],Dr=Ht.useState($n),So=pe(Dr,2),ta=So[0],Wo=So[1],zo=Ht.useState(""),to=pe(zo,2),Lr=to[0],qr=to[1],Cr=Ht.useState(null),Uo=pe(Cr,2),fa=Uo[0],No=Uo[1],Qo=Ht.useState(null),Ro=pe(Qo,2),ga=Ro[0],Io=Ro[1],La=ta||"";Ht.useEffect(function(){Wo($n)},[$n]);var Vr=Ht.useRef(),vr=Ht.useRef();Ht.useImperativeHandle(Rt,function(){return{nativeElement:Vr.current,inputElement:vr.current,focus:function(Kr){vr.current.focus(Kr)},blur:function(){vr.current.blur()}}});var Go=Ht.useMemo(function(){return new Is(nn||"")},[nn]),bo=Ht.useMemo(function(){return kn?[0,0]:Go.getSelection(fa)},[Go,fa,kn]),Ia=pe(bo,2),jo=Ia[0],aa=Ia[1],_a=function(Kr){Kr&&Kr!==nn&&Kr!==$n&&wi()},xo=Dt(function(Fo){vn(Fo)&&Rn(Fo),Wo(Fo),_a(Fo)}),ya=function(Kr){if(!nn){var qa=Kr.target.value;_a(qa),Wo(qa),Rn(qa)}},Cs=function(Kr){var qa=Kr.clipboardData.getData("text");vn(qa)&&xo(qa)},cs=Ht.useRef(!1),Ds=function(){cs.current=!0},ha=function(Kr){var qa=Kr.target,Jr=qa.selectionStart,fo=Go.getMaskCellIndex(Jr);No(fo),Io({}),Vi==null||Vi(Kr),cs.current=!1},Ol=function(Kr){ao(!0),No(0),qr(""),yi(Kr)},is=function(Kr){Ui(Kr)},Ba=function(Kr){ao(!1),is(Kr)};Br(It,function(){!It&&!Ei&&Wo($n)});var za=function(Kr){Kr.key==="Enter"&&vn(La)&&Hi(),Oi==null||Oi(Kr)},js=function(Kr){za(Kr);var qa=Kr.key,Jr=null,fo=null,ms=aa-jo,Qs=nn.slice(jo,aa),qs=function(hl){No(function(Xu){var na=Xu+hl;return na=Math.max(na,0),na=Math.min(na,Go.size()-1),na})},eu=function(hl){var Xu=ho(Qs),na=pe(Xu,3),fs=na[0],nl=na[1],Rl=na[2],Dh=La.slice(jo,aa),Nc=Number(Dh);if(isNaN(Nc))return String(Rl||(hl>0?fs:nl));var Fc=Nc+hl,Tc=nl-fs+1;return String(fs+(Tc+Fc-fs)%Tc)};switch(qa){case"Backspace":case"Delete":Jr="",fo=Qs;break;case"ArrowLeft":Jr="",qs(-1);break;case"ArrowRight":Jr="",qs(1);break;case"ArrowUp":Jr="",fo=eu(1);break;case"ArrowDown":Jr="",fo=eu(-1);break;default:isNaN(Number(qa))||(Jr=Lr+qa,fo=Jr);break}if(Jr!==null&&(qr(Jr),Jr.length>=ms&&(qs(1),qr(""))),fo!==null){var ml=La.slice(0,jo)+pa(fo,ms)+La.slice(aa);xo(ml.slice(0,nn.length))}Io({})},Sa=Ht.useRef();re(function(){if(!(!Zr||!nn||cs.current)){if(!Go.match(La)){xo(nn);return}return vr.current.setSelectionRange(jo,aa),Sa.current=Ir(function(){vr.current.setSelectionRange(jo,aa)}),function(){Ir.cancel(Sa.current)}}},[Go,nn,Zr,La,fa,jo,aa,ga,xo]);var tu=nn?{onFocus:Ol,onBlur:Ba,onKeyDown:js,onMouseDown:Ds,onMouseUp:ha,onPaste:Cs}:{};return Ht.createElement("div",{ref:Vr,className:rr()(Hr,(0,hi.Z)((0,hi.Z)({},"".concat(Hr,"-active"),It&&me),"".concat(Hr,"-placeholder"),kn))},Ht.createElement(wr,Pt({ref:vr,"aria-invalid":Ci,autoComplete:"off"},ci,{onKeyDown:za,onBlur:is},tu,{value:La,onChange:ya})),Ht.createElement(Vn,{type:"suffix",icon:Re}),Kn)}),Ps=Tu,da=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],tl=["index"];function lu(yt,Rt){var It=yt.id,Kt=yt.prefix,me=yt.clearIcon,Re=yt.suffixIcon,nn=yt.separator,vn=nn===void 0?"~":nn,Rn=yt.activeIndex,Jn=yt.activeHelp,kn=yt.allHelp,wi=yt.focused,Hi=yt.onFocus,Oi=yt.onBlur,pi=yt.onKeyDown,Ei=yt.locale,Ci=yt.generateConfig,Kn=yt.placeholder,ci=yt.className,$n=yt.style,yi=yt.onClick,Ui=yt.onClear,Vi=yt.value,Zi=yt.onChange,we=yt.onSubmit,yr=yt.onInputChange,wr=yt.format,Hr=yt.maskFormat,po=yt.preserveInvalidOnBlur,Fr=yt.onInvalid,Zr=yt.disabled,ao=yt.invalid,Dr=yt.inputReadOnly,So=yt.direction,ta=yt.onOpenChange,Wo=yt.onActiveInfo,zo=yt.placement,to=yt.onMouseDown,Lr=yt.required,qr=yt["aria-required"],Cr=yt.autoFocus,Uo=yt.tabIndex,fa=Nh(yt,da),No=So==="rtl",Qo=Ht.useContext(Ur),Ro=Qo.prefixCls,ga=Ht.useMemo(function(){if(typeof It=="string")return[It];var is=It||{};return[is.start,is.end]},[It]),Io=Ht.useRef(),La=Ht.useRef(),Vr=Ht.useRef(),vr=function(Ba){var za;return(za=[La,Vr][Ba])===null||za===void 0?void 0:za.current};Ht.useImperativeHandle(Rt,function(){return{nativeElement:Io.current,focus:function(Ba){if((0,te.Z)(Ba)==="object"){var za,js=Ba||{},Sa=js.index,tu=Sa===void 0?0:Sa,Fo=Nh(js,tl);(za=vr(tu))===null||za===void 0||za.focus(Fo)}else{var Kr;(Kr=vr(Ba!=null?Ba:0))===null||Kr===void 0||Kr.focus()}},blur:function(){var Ba,za;(Ba=vr(0))===null||Ba===void 0||Ba.blur(),(za=vr(1))===null||za===void 0||za.blur()}}});var Go=br(fa),bo=Ht.useMemo(function(){return Array.isArray(Kn)?Kn:[Kn,Kn]},[Kn]),Ia=Zc((0,ue.Z)((0,ue.Z)({},yt),{},{id:ga,placeholder:bo})),jo=pe(Ia,1),aa=jo[0],_a=Ht.useState({position:"absolute",width:0}),xo=pe(_a,2),ya=xo[0],Cs=xo[1],cs=Dt(function(){var is=vr(Rn);if(is){var Ba=is.nativeElement.getBoundingClientRect(),za=Io.current.getBoundingClientRect(),js=Ba.left-za.left;Cs(function(Sa){return(0,ue.Z)((0,ue.Z)({},Sa),{},{width:Ba.width,left:js})}),Wo([Ba.left,Ba.right,za.width])}});Ht.useEffect(function(){cs()},[Rn]);var Ds=me&&(Vi[0]&&!Zr[0]||Vi[1]&&!Zr[1]),ha=Cr&&!Zr[0],Ol=Cr&&!ha&&!Zr[1];return Ht.createElement(Zh,{onResize:cs},Ht.createElement("div",Pt({},Go,{className:rr()(Ro,"".concat(Ro,"-range"),(0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)({},"".concat(Ro,"-focused"),wi),"".concat(Ro,"-disabled"),Zr.every(function(is){return is})),"".concat(Ro,"-invalid"),ao.some(function(is){return is})),"".concat(Ro,"-rtl"),No),ci),style:$n,ref:Io,onClick:yi,onMouseDown:function(Ba){var za=Ba.target;za!==La.current.inputElement&&za!==Vr.current.inputElement&&Ba.preventDefault(),to==null||to(Ba)}}),Kt&&Ht.createElement("div",{className:"".concat(Ro,"-prefix")},Kt),Ht.createElement(Ps,Pt({ref:La},aa(0),{autoFocus:ha,tabIndex:Uo,"date-range":"start"})),Ht.createElement("div",{className:"".concat(Ro,"-range-separator")},vn),Ht.createElement(Ps,Pt({ref:Vr},aa(1),{autoFocus:Ol,tabIndex:Uo,"date-range":"end"})),Ht.createElement("div",{className:"".concat(Ro,"-active-bar"),style:ya}),Ht.createElement(Vn,{type:"suffix",icon:Re}),Ds&&Ht.createElement(Od,{icon:me,onClear:Ui})))}var Ss=Ht.forwardRef(lu),Cu=Ss;function gl(yt,Rt){var It=yt!=null?yt:Rt;return Array.isArray(It)?It:[It,It]}function ih(yt){return yt===1?"end":"start"}function Va(yt,Rt){var It=ur(yt,function(){var Ge=yt.disabled,ge=yt.allowEmpty,dn=gl(Ge,!1),gn=gl(ge,!1);return{disabled:dn,allowEmpty:gn}}),Kt=pe(It,6),me=Kt[0],Re=Kt[1],nn=Kt[2],vn=Kt[3],Rn=Kt[4],Jn=Kt[5],kn=me.prefixCls,wi=me.styles,Hi=me.classNames,Oi=me.defaultValue,pi=me.value,Ei=me.needConfirm,Ci=me.onKeyDown,Kn=me.disabled,ci=me.allowEmpty,$n=me.disabledDate,yi=me.minDate,Ui=me.maxDate,Vi=me.defaultOpen,Zi=me.open,we=me.onOpenChange,yr=me.locale,wr=me.generateConfig,Hr=me.picker,po=me.showNow,Fr=me.showToday,Zr=me.showTime,ao=me.mode,Dr=me.onPanelChange,So=me.onCalendarChange,ta=me.onOk,Wo=me.defaultPickerValue,zo=me.pickerValue,to=me.onPickerValueChange,Lr=me.inputReadOnly,qr=me.suffixIcon,Cr=me.onFocus,Uo=me.onBlur,fa=me.presets,No=me.ranges,Qo=me.components,Ro=me.cellRender,ga=me.dateRender,Io=me.monthCellRender,La=me.onClick,Vr=$r(Rt),vr=Ln(Zi,Vi,Kn,we),Go=pe(vr,2),bo=Go[0],Ia=Go[1],jo=function(ge,dn){(Kn.some(function(gn){return!gn})||!ge)&&Ia(ge,dn)},aa=Ao(wr,yr,vn,!0,!1,Oi,pi,So,ta),_a=pe(aa,5),xo=_a[0],ya=_a[1],Cs=_a[2],cs=_a[3],Ds=_a[4],ha=Cs(),Ol=Ga(Kn,ci,bo),is=pe(Ol,9),Ba=is[0],za=is[1],js=is[2],Sa=is[3],tu=is[4],Fo=is[5],Kr=is[6],qa=is[7],Jr=is[8],fo=function(ge,dn){za(!0),Cr==null||Cr(ge,{range:ih(dn!=null?dn:Sa)})},ms=function(ge,dn){za(!1),Uo==null||Uo(ge,{range:ih(dn!=null?dn:Sa)})},Qs=Ht.useMemo(function(){if(!Zr)return null;var Ge=Zr.disabledTime,ge=Ge?function(dn){var gn=ih(Sa),fi=wn(ha,Kr,Sa);return Ge(dn,gn,{from:fi})}:void 0;return(0,ue.Z)((0,ue.Z)({},Zr),{},{disabledTime:ge})},[Zr,Sa,ha,Kr]),qs=Le([Hr,Hr],{value:ao}),eu=pe(qs,2),ml=eu[0],lh=eu[1],hl=ml[Sa]||Hr,Xu=hl==="date"&&Qs?"datetime":hl,na=Xu===Hr&&Xu!=="time",fs=Ls(Hr,hl,po,Fr,!0),nl=rs(me,xo,ya,Cs,cs,Kn,vn,Ba,bo,Jn),Rl=pe(nl,2),Dh=Rl[0],Nc=Rl[1],Fc=Te(ha,Kn,Kr,wr,yr,$n),Tc=Xn(ha,Jn,ci),md=pe(Tc,2),jf=md[0],Rd=md[1],Yh=zn(wr,yr,ha,ml,bo,Sa,Re,na,Wo,zo,Qs==null?void 0:Qs.defaultOpenValue,to,yi,Ui),Id=pe(Yh,2),vd=Id[0],gf=Id[1],Bh=Dt(function(Ge,ge,dn){var gn=Xi(ml,Sa,ge);if((gn[0]!==ml[0]||gn[1]!==ml[1])&&lh(gn),Dr&&dn!==!1){var fi=Ut(ha);Ge&&(fi[Sa]=Ge),Dr(fi,gn)}}),zd=function(ge,dn){return Xi(ha,dn,ge)},Oa=function(ge,dn){var gn=ha;ge&&(gn=zd(ge,Sa)),qa(Sa);var fi=Fo(gn);cs(gn),Dh(Sa,fi===null),fi===null?jo(!1,{force:!0}):dn||Vr.current.focus({index:fi})},Uc=function(ge){var dn,gn=ge.target.getRootNode();if(!Vr.current.nativeElement.contains((dn=gn.activeElement)!==null&&dn!==void 0?dn:document.activeElement)){var fi=Kn.findIndex(function(Ri){return!Ri});fi>=0&&Vr.current.focus({index:fi})}jo(!0),La==null||La(ge)},cc=function(){Nc(null),jo(!1,{force:!0})},El=Ht.useState(null),Zl=pe(El,2),Dc=Zl[0],Bc=Zl[1],Jh=Ht.useState(null),Xc=pe(Jh,2),Yc=Xc[0],yd=Xc[1],jd=Ht.useMemo(function(){return Yc||ha},[ha,Yc]);Ht.useEffect(function(){bo||yd(null)},[bo]);var dc=Ht.useState([0,0,0]),Oc=pe(dc,2),fc=Oc[0],bs=Oc[1],Hd=Pn(fa,No),pf=function(ge){yd(ge),Bc("preset")},Jc=function(ge){var dn=Nc(ge);dn&&jo(!1,{force:!0})},Qc=function(ge){Oa(ge)},Sd=function(ge){yd(ge?zd(ge,Sa):null),Bc("cell")},Hf=function(ge){jo(!0),fo(ge)},vl=function(){js("panel")},Wf=function(ge){var dn=Xi(ha,Sa,ge);cs(dn),!Ei&&!nn&&Re===Xu&&Oa(ge)},qc=function(){jo(!1)},Qh=Un(Ro,ga,Io,ih(Sa)),xd=ha[Sa]||null,it=Dt(function(Ge){return Jn(Ge,{activeIndex:Sa})}),ot=Ht.useMemo(function(){var Ge=Ki(me,!1),ge=fn(me,[].concat(Ut(Object.keys(Ge)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ge},[me]),ct=Ht.createElement(wu,Pt({},ot,{showNow:fs,showTime:Qs,range:!0,multiplePanel:na,activeInfo:fc,disabledDate:Fc,onFocus:Hf,onBlur:ms,onPanelMouseDown:vl,picker:Hr,mode:hl,internalMode:Xu,onPanelChange:Bh,format:Rn,value:xd,isInvalid:it,onChange:null,onSelect:Wf,pickerValue:vd,defaultOpenValue:co(Zr==null?void 0:Zr.defaultOpenValue)[Sa],onPickerValueChange:gf,hoverValue:jd,onHover:Sd,needConfirm:Ei,onSubmit:Oa,onOk:Ds,presets:Hd,onPresetHover:pf,onPresetSubmit:Jc,onNow:Qc,cellRender:Qh})),dt=function(ge,dn){var gn=zd(ge,dn);cs(gn)},pt=function(){js("input")},At=function(ge,dn){var gn=Kr.length,fi=Kr[gn-1];if(gn&&fi!==dn&&Ei&&!ci[fi]&&!Jr(fi)&&ha[fi]){Vr.current.focus({index:fi});return}js("input"),jo(!0,{inherit:!0}),Sa!==dn&&bo&&!Ei&&nn&&Oa(null,!0),tu(dn),fo(ge,dn)},jt=function(ge,dn){if(jo(!1),!Ei&&js()==="input"){var gn=Fo(ha);Dh(Sa,gn===null)}ms(ge,dn)},qt=function(ge,dn){ge.key==="Tab"&&Oa(null,!0),Ci==null||Ci(ge,dn)},Yt=Ht.useMemo(function(){return{prefixCls:kn,locale:yr,generateConfig:wr,button:Qo.button,input:Qo.input}},[kn,yr,wr,Qo.button,Qo.input]);if(re(function(){bo&&Sa!==void 0&&Bh(null,Hr,!1)},[bo,Sa,Hr]),re(function(){var Ge=js();!bo&&Ge==="input"&&(jo(!1),Oa(null,!0)),!bo&&nn&&!Ei&&Ge==="panel"&&(jo(!0),Oa())},[bo]),0)var fe;return Ht.createElement(Ur.Provider,{value:Yt},Ht.createElement(To,Pt({},Fn(me),{popupElement:ct,popupStyle:wi.popup,popupClassName:Hi.popup,visible:bo,onClose:qc,range:!0}),Ht.createElement(Cu,Pt({},me,{ref:Vr,suffixIcon:qr,activeIndex:Ba||bo?Sa:null,activeHelp:!!Yc,allHelp:!!Yc&&Dc==="preset",focused:Ba,onFocus:At,onBlur:jt,onKeyDown:qt,onSubmit:Oa,value:jd,maskFormat:Rn,onChange:dt,onInputChange:pt,format:vn,inputReadOnly:Lr,disabled:Kn,open:bo,onOpenChange:jo,onClick:Uc,onClear:cc,invalid:jf,onInvalid:Rd,onActiveInfo:bs}))))}var Ql=Ht.forwardRef(Va),Na=Ql;function Ha(){return Ha=Object.assign?Object.assign.bind():function(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt];for(var Kt in It)Object.prototype.hasOwnProperty.call(It,Kt)&&(yt[Kt]=It[Kt])}return yt},Ha.apply(this,arguments)}function us(yt){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},us(yt)}function Hs(yt,Rt){if(us(yt)!=="object"||yt===null)return yt;var It=yt[Symbol.toPrimitive];if(It!==void 0){var Kt=It.call(yt,Rt||"default");if(us(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Rt==="string"?String:Number)(yt)}function Ka(yt){var Rt=Hs(yt,"string");return us(Rt)==="symbol"?Rt:String(Rt)}function Ec(yt,Rt,It){return Rt=Ka(Rt),Rt in yt?Object.defineProperty(yt,Rt,{value:It,enumerable:!0,configurable:!0,writable:!0}):yt[Rt]=It,yt}function io(yt,Rt){var It=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Rt&&(Kt=Kt.filter(function(me){return Object.getOwnPropertyDescriptor(yt,me).enumerable})),It.push.apply(It,Kt)}return It}function Kh(yt){for(var Rt=1;Rt<arguments.length;Rt++){var It=arguments[Rt]!=null?arguments[Rt]:{};Rt%2?io(Object(It),!0).forEach(function(Kt){Ec(yt,Kt,It[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(It)):io(Object(It)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(It,Kt))})}return yt}function Fa(yt){if(Array.isArray(yt))return yt}function zf(yt,Rt){var It=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(It!=null){var Kt,me,Re,nn,vn=[],Rn=!0,Jn=!1;try{if(Re=(It=It.call(yt)).next,Rt===0){if(Object(It)!==It)return;Rn=!1}else for(;!(Rn=(Kt=Re.call(It)).done)&&(vn.push(Kt.value),vn.length!==Rt);Rn=!0);}catch(kn){Jn=!0,me=kn}finally{try{if(!Rn&&It.return!=null&&(nn=It.return(),Object(nn)!==nn))return}finally{if(Jn)throw me}}return vn}}function Ac(yt,Rt){(Rt==null||Rt>yt.length)&&(Rt=yt.length);for(var It=0,Kt=new Array(Rt);It<Rt;It++)Kt[It]=yt[It];return Kt}function pd(yt,Rt){if(yt){if(typeof yt=="string")return Ac(yt,Rt);var It=Object.prototype.toString.call(yt).slice(8,-1);if(It==="Object"&&yt.constructor&&(It=yt.constructor.name),It==="Map"||It==="Set")return Array.from(yt);if(It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It))return Ac(yt,Rt)}}function ff(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rh(yt,Rt){return Fa(yt)||zf(yt,Rt)||pd(yt,Rt)||ff()}function Uh(yt,Rt){if(yt==null)return{};var It={},Kt=Object.keys(yt),me,Re;for(Re=0;Re<Kt.length;Re++)me=Kt[Re],!(Rt.indexOf(me)>=0)&&(It[me]=yt[me]);return It}function oh(yt,Rt){if(yt==null)return{};var It=Uh(yt,Rt),Kt,me;if(Object.getOwnPropertySymbols){var Re=Object.getOwnPropertySymbols(yt);for(me=0;me<Re.length;me++)Kt=Re[me],!(Rt.indexOf(Kt)>=0)&&Object.prototype.propertyIsEnumerable.call(yt,Kt)&&(It[Kt]=yt[Kt])}return It}var Ya=Mt(64363);function yh(yt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=[];return Ht.Children.forEach(yt,function(Kt){Kt==null&&!Rt.keepEmpty||(Array.isArray(Kt)?It=It.concat(yh(Kt)):(0,Ya.isFragment)(Kt)&&Kt.props?It=It.concat(yh(Kt.props.children,Rt)):It.push(Kt))}),It}var Vt={};function ye(yt,Rt){}function be(yt,Rt){}function Me(){Vt={}}function Qe(yt,Rt,It){!Rt&&!Vt[It]&&(yt(!1,It),Vt[It]=!0)}function ln(yt,Rt){Qe(ye,yt,Rt)}function yn(yt,Rt){Qe(be,yt,Rt)}var On=null;function li(yt,Rt,It){var Kt=React.useRef({});return(!("value"in Kt.current)||It(Kt.current.condition,Rt))&&(Kt.current.value=yt(),Kt.current.condition=Rt),Kt.current.value}function qn(yt,Rt){typeof yt=="function"?yt(Rt):us(yt)==="object"&&yt&&"current"in yt&&(yt.current=Rt)}function Ai(){for(var yt=arguments.length,Rt=new Array(yt),It=0;It<yt;It++)Rt[It]=arguments[It];var Kt=Rt.filter(function(me){return me});return Kt.length<=1?Kt[0]:function(me){Rt.forEach(function(Re){qn(Re,me)})}}function ri(){for(var yt=arguments.length,Rt=new Array(yt),It=0;It<yt;It++)Rt[It]=arguments[It];return useMemo(function(){return Ai.apply(void 0,Rt)},Rt,function(Kt,me){return Kt.length===me.length&&Kt.every(function(Re,nn){return Re===me[nn]})})}function xi(yt){var Rt,It,Kt=(0,Ya.isMemo)(yt)?yt.type.type:yt.type;return!(typeof Kt=="function"&&!((Rt=Kt.prototype)!==null&&Rt!==void 0&&Rt.render)||typeof yt=="function"&&!((It=yt.prototype)!==null&&It!==void 0&&It.render))}function di(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function ji(yt){return di(yt)?yt:yt instanceof Ht.Component?Qi.findDOMNode(yt):null}var _i=new Map;function Pr(yt){yt.forEach(function(Rt){var It,Kt=Rt.target;(It=_i.get(Kt))===null||It===void 0||It.forEach(function(me){return me(Kt)})})}var zr=new $o.Z(Pr),Yi=null,mr=null;function nr(yt,Rt){_i.has(yt)||(_i.set(yt,new Set),zr.observe(yt)),_i.get(yt).add(Rt)}function jr(yt,Rt){_i.has(yt)&&(_i.get(yt).delete(Rt),_i.get(yt).size||(zr.unobserve(yt),_i.delete(yt)))}function Po(yt,Rt){if(!(yt instanceof Rt))throw new TypeError("Cannot call a class as a function")}function Or(yt,Rt){for(var It=0;It<Rt.length;It++){var Kt=Rt[It];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,Ka(Kt.key),Kt)}}function ra(yt,Rt,It){return Rt&&Or(yt.prototype,Rt),It&&Or(yt,It),Object.defineProperty(yt,"prototype",{writable:!1}),yt}function vo(yt,Rt){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kt,me){return Kt.__proto__=me,Kt},vo(yt,Rt)}function va(yt,Rt){if(typeof Rt!="function"&&Rt!==null)throw new TypeError("Super expression must either be null or a function");yt.prototype=Object.create(Rt&&Rt.prototype,{constructor:{value:yt,writable:!0,configurable:!0}}),Object.defineProperty(yt,"prototype",{writable:!1}),Rt&&vo(yt,Rt)}function $a(yt){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(It){return It.__proto__||Object.getPrototypeOf(It)},$a(yt)}function wa(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(yt){return!1}}function yo(yt){if(yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yt}function wo(yt,Rt){if(Rt&&(us(Rt)==="object"||typeof Rt=="function"))return Rt;if(Rt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yo(yt)}function tr(yt){var Rt=wa();return function(){var Kt=$a(yt),me;if(Rt){var Re=$a(this).constructor;me=Reflect.construct(Kt,arguments,Re)}else me=Kt.apply(this,arguments);return wo(this,me)}}var Gr=function(yt){va(It,yt);var Rt=tr(It);function It(){return Po(this,It),Rt.apply(this,arguments)}return ra(It,[{key:"render",value:function(){return this.props.children}}]),It}(Ht.Component),ko=Ht.createContext(null);function Bo(yt){var Rt=yt.children,It=yt.onBatchResize,Kt=Ht.useRef(0),me=Ht.useRef([]),Re=Ht.useContext(ko),nn=Ht.useCallback(function(vn,Rn,Jn){Kt.current+=1;var kn=Kt.current;me.current.push({size:vn,element:Rn,data:Jn}),Promise.resolve().then(function(){kn===Kt.current&&(It==null||It(me.current),me.current=[])}),Re==null||Re(vn,Rn,Jn)},[It,Re]);return Ht.createElement(ko.Provider,{value:nn},Rt)}function Oo(yt,Rt){var It=yt.children,Kt=yt.disabled,me=Ht.useRef(null),Re=Ht.useRef(null),nn=Ht.useContext(ko),vn=typeof It=="function",Rn=vn?It(me):It,Jn=Ht.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),kn=!vn&&Ht.isValidElement(Rn)&&xi(Rn),wi=kn?Rn.ref:null,Hi=Ht.useMemo(function(){return Ai(wi,me)},[wi,me]),Oi=function(){return ji(me.current)||ji(Re.current)};Ht.useImperativeHandle(Rt,function(){return Oi()});var pi=Ht.useRef(yt);pi.current=yt;var Ei=Ht.useCallback(function(Ci){var Kn=pi.current,ci=Kn.onResize,$n=Kn.data,yi=Ci.getBoundingClientRect(),Ui=yi.width,Vi=yi.height,Zi=Ci.offsetWidth,we=Ci.offsetHeight,yr=Math.floor(Ui),wr=Math.floor(Vi);if(Jn.current.width!==yr||Jn.current.height!==wr||Jn.current.offsetWidth!==Zi||Jn.current.offsetHeight!==we){var Hr={width:yr,height:wr,offsetWidth:Zi,offsetHeight:we};Jn.current=Hr;var po=Zi===Math.round(Ui)?Ui:Zi,Fr=we===Math.round(Vi)?Vi:we,Zr=Kh(Kh({},Hr),{},{offsetWidth:po,offsetHeight:Fr});nn==null||nn(Zr,Ci,$n),ci&&Promise.resolve().then(function(){ci(Zr,Ci)})}},[]);return Ht.useEffect(function(){var Ci=Oi();return Ci&&!Kt&&nr(Ci,Ei),function(){return jr(Ci,Ei)}},[me.current,Kt]),Ht.createElement(Gr,{ref:Re},kn?Ht.cloneElement(Rn,{ref:Hi}):Rn)}var Ra=Ht.forwardRef(Oo),Ko=Ra,ts="rc-observer-key";function hs(yt,Rt){var It=yt.children,Kt=typeof It=="function"?[It]:yh(It);return Kt.map(function(me,Re){var nn=(me==null?void 0:me.key)||"".concat(ts,"-").concat(Re);return Ht.createElement(Ko,Ha({},yt,{key:nn,ref:Re===0?Rt:void 0}),me)})}var ws=Ht.forwardRef(hs);ws.Collection=Bo;var pl=ws;function Ws(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var oa=Ws()?Ht.useLayoutEffect:Ht.useEffect,Ta=function(Rt,It){var Kt=Ht.useRef(!0);oa(function(){return Rt(Kt.current)},It),oa(function(){return Kt.current=!1,function(){Kt.current=!0}},[])},Ja=function(Rt,It){Ta(function(Kt){if(!Kt)return Rt()},It)},es=Ta,Da=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Yr=void 0;function Wa(yt,Rt){var It=yt.prefixCls,Kt=yt.invalidate,me=yt.item,Re=yt.renderItem,nn=yt.responsive,vn=yt.responsiveDisabled,Rn=yt.registerSize,Jn=yt.itemKey,kn=yt.className,wi=yt.style,Hi=yt.children,Oi=yt.display,pi=yt.order,Ei=yt.component,Ci=Ei===void 0?"div":Ei,Kn=oh(yt,Da),ci=nn&&!Oi;function $n(we){Rn(Jn,we)}Ht.useEffect(function(){return function(){$n(null)}},[]);var yi=Re&&me!==Yr?Re(me,{index:pi}):Hi,Ui;Kt||(Ui={opacity:ci?0:1,height:ci?0:Yr,overflowY:ci?"hidden":Yr,order:nn?pi:Yr,pointerEvents:ci?"none":Yr,position:ci?"absolute":Yr});var Vi={};ci&&(Vi["aria-hidden"]=!0);var Zi=Ht.createElement(Ci,Ha({className:rr()(!Kt&&It,kn),style:Kh(Kh({},Ui),wi)},Vi,Kn,{ref:Rt}),yi);return nn&&(Zi=Ht.createElement(pl,{onResize:function(yr){var wr=yr.offsetWidth;$n(wr)},disabled:vn},Zi)),Zi}var Js=Ht.forwardRef(Wa);Js.displayName="Item";var Ll=Js;function jl(yt){var Rt=Ht.useRef();Rt.current=yt;var It=Ht.useCallback(function(){for(var Kt,me=arguments.length,Re=new Array(me),nn=0;nn<me;nn++)Re[nn]=arguments[nn];return(Kt=Rt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[Rt].concat(Re))},[]);return It}var ql=function(Rt){return+setTimeout(Rt,16)},_l=function(Rt){return clearTimeout(Rt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ql=function(Rt){return window.requestAnimationFrame(Rt)},_l=function(Rt){return window.cancelAnimationFrame(Rt)});var bu=0,Co=new Map;function $l(yt){Co.delete(yt)}var ns=function(Rt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;bu+=1;var Kt=bu;function me(Re){if(Re===0)$l(Kt),Rt();else{var nn=ql(function(){me(Re-1)});Co.set(Kt,nn)}}return me(It),Kt};ns.cancel=function(yt){var Rt=Co.get(yt);return $l(Rt),_l(Rt)};var Ml=ns;function Tl(yt){if(typeof MessageChannel=="undefined")Ml(yt);else{var Rt=new MessageChannel;Rt.port1.onmessage=function(){return yt()},Rt.port2.postMessage(void 0)}}function el(){var yt=Ht.useRef(null),Rt=function(Kt){yt.current||(yt.current=[],Tl(function(){(0,Qi.unstable_batchedUpdates)(function(){yt.current.forEach(function(me){me()}),yt.current=null})})),yt.current.push(Kt)};return Rt}function Du(yt,Rt){var It=Ht.useState(Rt),Kt=rh(It,2),me=Kt[0],Re=Kt[1],nn=jl(function(vn){yt(function(){Re(vn)})});return[me,nn]}var Wl=Ht.createContext(null),Vu=["component"],zs=["className"],Bu=["className"],ah=function(Rt,It){var Kt=Ht.useContext(Wl);if(!Kt){var me=Rt.component,Re=me===void 0?"div":me,nn=oh(Rt,Vu);return Ht.createElement(Re,Ha({},nn,{ref:It}))}var vn=Kt.className,Rn=oh(Kt,zs),Jn=Rt.className,kn=oh(Rt,Bu);return Ht.createElement(Wl.Provider,{value:null},Ht.createElement(Ll,Ha({ref:It,className:rr()(vn,Jn)},Rn,kn)))},Xh=Ht.forwardRef(ah);Xh.displayName="RawItem";var Vc=Xh,lc=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Dl="responsive",Sh="invalidate";function Bl(yt){return"+ ".concat(yt.length," ...")}function Ku(yt,Rt){var It=yt.prefixCls,Kt=It===void 0?"rc-overflow":It,me=yt.data,Re=me===void 0?[]:me,nn=yt.renderItem,vn=yt.renderRawItem,Rn=yt.itemKey,Jn=yt.itemWidth,kn=Jn===void 0?10:Jn,wi=yt.ssr,Hi=yt.style,Oi=yt.className,pi=yt.maxCount,Ei=yt.renderRest,Ci=yt.renderRawRest,Kn=yt.suffix,ci=yt.component,$n=ci===void 0?"div":ci,yi=yt.itemComponent,Ui=yt.onVisibleChange,Vi=oh(yt,lc),Zi=wi==="full",we=el(),yr=Du(we,null),wr=rh(yr,2),Hr=wr[0],po=wr[1],Fr=Hr||0,Zr=Du(we,new Map),ao=rh(Zr,2),Dr=ao[0],So=ao[1],ta=Du(we,0),Wo=rh(ta,2),zo=Wo[0],to=Wo[1],Lr=Du(we,0),qr=rh(Lr,2),Cr=qr[0],Uo=qr[1],fa=Du(we,0),No=rh(fa,2),Qo=No[0],Ro=No[1],ga=(0,Ht.useState)(null),Io=rh(ga,2),La=Io[0],Vr=Io[1],vr=(0,Ht.useState)(null),Go=rh(vr,2),bo=Go[0],Ia=Go[1],jo=Ht.useMemo(function(){return bo===null&&Zi?Number.MAX_SAFE_INTEGER:bo||0},[bo,Hr]),aa=(0,Ht.useState)(!1),_a=rh(aa,2),xo=_a[0],ya=_a[1],Cs="".concat(Kt,"-item"),cs=Math.max(zo,Cr),Ds=pi===Dl,ha=Re.length&&Ds,Ol=pi===Sh,is=ha||typeof pi=="number"&&Re.length>pi,Ba=(0,Ht.useMemo)(function(){var na=Re;return ha?Hr===null&&Zi?na=Re:na=Re.slice(0,Math.min(Re.length,Fr/kn)):typeof pi=="number"&&(na=Re.slice(0,pi)),na},[Re,kn,Hr,pi,ha]),za=(0,Ht.useMemo)(function(){return ha?Re.slice(jo+1):Re.slice(Ba.length)},[Re,Ba,ha,jo]),js=(0,Ht.useCallback)(function(na,fs){var nl;return typeof Rn=="function"?Rn(na):(nl=Rn&&(na==null?void 0:na[Rn]))!==null&&nl!==void 0?nl:fs},[Rn]),Sa=(0,Ht.useCallback)(nn||function(na){return na},[nn]);function tu(na,fs,nl){bo===na&&(fs===void 0||fs===La)||(Ia(na),nl||(ya(na<Re.length-1),Ui==null||Ui(na)),fs!==void 0&&Vr(fs))}function Fo(na,fs){po(fs.clientWidth)}function Kr(na,fs){So(function(nl){var Rl=new Map(nl);return fs===null?Rl.delete(na):Rl.set(na,fs),Rl})}function qa(na,fs){Uo(fs),to(Cr)}function Jr(na,fs){Ro(fs)}function fo(na){return Dr.get(js(Ba[na],na))}es(function(){if(Fr&&typeof cs=="number"&&Ba){var na=Qo,fs=Ba.length,nl=fs-1;if(!fs){tu(0,null);return}for(var Rl=0;Rl<fs;Rl+=1){var Dh=fo(Rl);if(Zi&&(Dh=Dh||0),Dh===void 0){tu(Rl-1,void 0,!0);break}if(na+=Dh,nl===0&&na<=Fr||Rl===nl-1&&na+fo(nl)<=Fr){tu(nl,null);break}else if(na+cs>Fr){tu(Rl-1,na-Dh-Qo+Cr);break}}Kn&&fo(0)+Qo>Fr&&Vr(null)}},[Fr,Dr,Cr,Qo,js,Ba]);var ms=xo&&!!za.length,Qs={};La!==null&&ha&&(Qs={position:"absolute",left:La,top:0});var qs={prefixCls:Cs,responsive:ha,component:yi,invalidate:Ol},eu=vn?function(na,fs){var nl=js(na,fs);return Ht.createElement(Wl.Provider,{key:nl,value:Kh(Kh({},qs),{},{order:fs,item:na,itemKey:nl,registerSize:Kr,display:fs<=jo})},vn(na,fs))}:function(na,fs){var nl=js(na,fs);return Ht.createElement(Ll,Ha({},qs,{order:fs,key:nl,item:na,renderItem:Sa,itemKey:nl,registerSize:Kr,display:fs<=jo}))},ml={order:ms?jo:Number.MAX_SAFE_INTEGER,className:"".concat(Cs,"-rest"),registerSize:qa,display:ms},lh=Ei||Bl,hl=Ci?Ht.createElement(Wl.Provider,{value:Kh(Kh({},qs),ml)},Ci(za)):Ht.createElement(Ll,Ha({},qs,ml),typeof lh=="function"?lh(za):lh),Xu=Ht.createElement($n,Ha({className:rr()(!Ol&&Kt,Oi),style:Hi,ref:Rt},Vi),Ba.map(eu),is?hl:null,Kn&&Ht.createElement(Ll,Ha({},qs,{responsive:Ds,responsiveDisabled:!ha,order:jo,className:"".concat(Cs,"-suffix"),registerSize:Jr,display:!0,style:Qs}),Kn));return Ds?Ht.createElement(pl,{onResize:Fo,disabled:!ha},Xu):Xu}var Ou=Ht.forwardRef(Ku);Ou.displayName="Overflow",Ou.Item=Vc,Ou.RESPONSIVE=Dl,Ou.INVALIDATE=Sh;var xh=Ou,kc=xh;function uc(yt){var Rt=yt.prefixCls,It=yt.value,Kt=yt.onRemove,me=yt.removeIcon,Re=me===void 0?"\xD7":me,nn=yt.formatDate,vn=yt.disabled,Rn=yt.maxTagCount,Jn=yt.placeholder,kn="".concat(Rt,"-selector"),wi="".concat(Rt,"-selection"),Hi="".concat(wi,"-overflow");function Oi(Ci,Kn){return Ht.createElement("span",{className:rr()("".concat(wi,"-item")),title:typeof Ci=="string"?Ci:null},Ht.createElement("span",{className:"".concat(wi,"-item-content")},Ci),!vn&&Kn&&Ht.createElement("span",{onMouseDown:function($n){$n.preventDefault()},onClick:Kn,className:"".concat(wi,"-item-remove")},Re))}function pi(Ci){var Kn=nn(Ci),ci=function(yi){yi&&yi.stopPropagation(),Kt(Ci)};return Oi(Kn,ci)}function Ei(Ci){var Kn="+ ".concat(Ci.length," ...");return Oi(Kn)}return Ht.createElement("div",{className:kn},Ht.createElement(kc,{prefixCls:Hi,data:It,renderItem:pi,renderRest:Ei,itemKey:function(Kn){return nn(Kn)},maxCount:Rn}),!It.length&&Ht.createElement("span",{className:"".concat(Rt,"-selection-placeholder")},Jn))}var Kc=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Fh(yt,Rt){var It=yt.id,Kt=yt.open,me=yt.prefix,Re=yt.clearIcon,nn=yt.suffixIcon,vn=yt.activeHelp,Rn=yt.allHelp,Jn=yt.focused,kn=yt.onFocus,wi=yt.onBlur,Hi=yt.onKeyDown,Oi=yt.locale,pi=yt.generateConfig,Ei=yt.placeholder,Ci=yt.className,Kn=yt.style,ci=yt.onClick,$n=yt.onClear,yi=yt.internalPicker,Ui=yt.value,Vi=yt.onChange,Zi=yt.onSubmit,we=yt.onInputChange,yr=yt.multiple,wr=yt.maxTagCount,Hr=yt.format,po=yt.maskFormat,Fr=yt.preserveInvalidOnBlur,Zr=yt.onInvalid,ao=yt.disabled,Dr=yt.invalid,So=yt.inputReadOnly,ta=yt.direction,Wo=yt.onOpenChange,zo=yt.onMouseDown,to=yt.required,Lr=yt["aria-required"],qr=yt.autoFocus,Cr=yt.tabIndex,Uo=yt.removeIcon,fa=Nh(yt,Kc),No=ta==="rtl",Qo=Ht.useContext(Ur),Ro=Qo.prefixCls,ga=Ht.useRef(),Io=Ht.useRef();Ht.useImperativeHandle(Rt,function(){return{nativeElement:ga.current,focus:function(ya){var Cs;(Cs=Io.current)===null||Cs===void 0||Cs.focus(ya)},blur:function(){var ya;(ya=Io.current)===null||ya===void 0||ya.blur()}}});var La=br(fa),Vr=function(ya){Vi([ya])},vr=function(ya){var Cs=Ui.filter(function(cs){return cs&&!Si(pi,Oi,cs,ya,yi)});Vi(Cs),Kt||Zi()},Go=Zc((0,ue.Z)((0,ue.Z)({},yt),{},{onChange:Vr}),function(xo){var ya=xo.valueTexts;return{value:ya[0]||"",active:Jn}}),bo=pe(Go,2),Ia=bo[0],jo=bo[1],aa=!!(Re&&Ui.length&&!ao),_a=yr?Ht.createElement(Ht.Fragment,null,Ht.createElement(uc,{prefixCls:Ro,value:Ui,onRemove:vr,formatDate:jo,maxTagCount:wr,disabled:ao,removeIcon:Uo,placeholder:Ei}),Ht.createElement("input",{className:"".concat(Ro,"-multiple-input"),value:Ui.map(jo).join(","),ref:Io,readOnly:!0,autoFocus:qr,tabIndex:Cr}),Ht.createElement(Vn,{type:"suffix",icon:nn}),aa&&Ht.createElement(Od,{icon:Re,onClear:$n})):Ht.createElement(Ps,Pt({ref:Io},Ia(),{autoFocus:qr,tabIndex:Cr,suffixIcon:nn,clearIcon:aa&&Ht.createElement(Od,{icon:Re,onClear:$n}),showActiveCls:!1}));return Ht.createElement("div",Pt({},La,{className:rr()(Ro,(0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)((0,hi.Z)({},"".concat(Ro,"-multiple"),yr),"".concat(Ro,"-focused"),Jn),"".concat(Ro,"-disabled"),ao),"".concat(Ro,"-invalid"),Dr),"".concat(Ro,"-rtl"),No),Ci),style:Kn,ref:ga,onClick:ci,onMouseDown:function(ya){var Cs,cs=ya.target;cs!==((Cs=Io.current)===null||Cs===void 0?void 0:Cs.inputElement)&&ya.preventDefault(),zo==null||zo(ya)}}),me&&Ht.createElement("div",{className:"".concat(Ro,"-prefix")},me),_a)}var Uu=Ht.forwardRef(Fh),hc=Uu;function Th(yt,Rt){var It=ur(yt),Kt=pe(It,6),me=Kt[0],Re=Kt[1],nn=Kt[2],vn=Kt[3],Rn=Kt[4],Jn=Kt[5],kn=me,wi=kn.prefixCls,Hi=kn.styles,Oi=kn.classNames,pi=kn.order,Ei=kn.defaultValue,Ci=kn.value,Kn=kn.needConfirm,ci=kn.onChange,$n=kn.onKeyDown,yi=kn.disabled,Ui=kn.disabledDate,Vi=kn.minDate,Zi=kn.maxDate,we=kn.defaultOpen,yr=kn.open,wr=kn.onOpenChange,Hr=kn.locale,po=kn.generateConfig,Fr=kn.picker,Zr=kn.showNow,ao=kn.showToday,Dr=kn.showTime,So=kn.mode,ta=kn.onPanelChange,Wo=kn.onCalendarChange,zo=kn.onOk,to=kn.multiple,Lr=kn.defaultPickerValue,qr=kn.pickerValue,Cr=kn.onPickerValueChange,Uo=kn.inputReadOnly,fa=kn.suffixIcon,No=kn.removeIcon,Qo=kn.onFocus,Ro=kn.onBlur,ga=kn.presets,Io=kn.components,La=kn.cellRender,Vr=kn.dateRender,vr=kn.monthCellRender,Go=kn.onClick,bo=$r(Rt);function Ia(ot){return ot===null?null:to?ot:ot[0]}var jo=Ms(po,Hr,Re),aa=Ln(yr,we,[yi],wr),_a=pe(aa,2),xo=_a[0],ya=_a[1],Cs=function(ct,dt,pt){if(Wo){var At=(0,ue.Z)({},pt);delete At.range,Wo(Ia(ct),Ia(dt),At)}},cs=function(ct){zo==null||zo(Ia(ct))},Ds=Ao(po,Hr,vn,!1,pi,Ei,Ci,Cs,cs),ha=pe(Ds,5),Ol=ha[0],is=ha[1],Ba=ha[2],za=ha[3],js=ha[4],Sa=Ba(),tu=Ga([yi]),Fo=pe(tu,4),Kr=Fo[0],qa=Fo[1],Jr=Fo[2],fo=Fo[3],ms=function(ct){qa(!0),Qo==null||Qo(ct,{})},Qs=function(ct){qa(!1),Ro==null||Ro(ct,{})},qs=Le(Fr,{value:So}),eu=pe(qs,2),ml=eu[0],lh=eu[1],hl=ml==="date"&&Dr?"datetime":ml,Xu=Ls(Fr,ml,Zr,ao),na=ci&&function(ot,ct){ci(Ia(ot),Ia(ct))},fs=rs((0,ue.Z)((0,ue.Z)({},me),{},{onChange:na}),Ol,is,Ba,za,[],vn,Kr,xo,Jn),nl=pe(fs,2),Rl=nl[1],Dh=Xn(Sa,Jn),Nc=pe(Dh,2),Fc=Nc[0],Tc=Nc[1],md=Ht.useMemo(function(){return Fc.some(function(ot){return ot})},[Fc]),jf=function(ct,dt){if(Cr){var pt=(0,ue.Z)((0,ue.Z)({},dt),{},{mode:dt.mode[0]});delete pt.range,Cr(ct[0],pt)}},Rd=zn(po,Hr,Sa,[ml],xo,fo,Re,!1,Lr,qr,co(Dr==null?void 0:Dr.defaultOpenValue),jf,Vi,Zi),Yh=pe(Rd,2),Id=Yh[0],vd=Yh[1],gf=Dt(function(ot,ct,dt){if(lh(ct),ta&&dt!==!1){var pt=ot||Sa[Sa.length-1];ta(pt,ct)}}),Bh=function(){Rl(Ba()),ya(!1,{force:!0})},zd=function(ct){!yi&&!bo.current.nativeElement.contains(document.activeElement)&&bo.current.focus(),ya(!0),Go==null||Go(ct)},Oa=function(){Rl(null),ya(!1,{force:!0})},Uc=Ht.useState(null),cc=pe(Uc,2),El=cc[0],Zl=cc[1],Dc=Ht.useState(null),Bc=pe(Dc,2),Jh=Bc[0],Xc=Bc[1],Yc=Ht.useMemo(function(){var ot=[Jh].concat(Ut(Sa)).filter(function(ct){return ct});return to?ot:ot.slice(0,1)},[Sa,Jh,to]),yd=Ht.useMemo(function(){return!to&&Jh?[Jh]:Sa.filter(function(ot){return ot})},[Sa,Jh,to]);Ht.useEffect(function(){xo||Xc(null)},[xo]);var jd=Pn(ga),dc=function(ct){Xc(ct),Zl("preset")},Oc=function(ct){var dt=to?jo(Ba(),ct):[ct],pt=Rl(dt);pt&&!to&&ya(!1,{force:!0})},fc=function(ct){Oc(ct)},bs=function(ct){Xc(ct),Zl("cell")},Hd=function(ct){ya(!0),ms(ct)},pf=function(ct){if(Jr("panel"),!(to&&hl!==Fr)){var dt=to?jo(Ba(),ct):[ct];za(dt),!Kn&&!nn&&Re===hl&&Bh()}},Jc=function(){ya(!1)},Qc=Un(La,Vr,vr),Sd=Ht.useMemo(function(){var ot=Ki(me,!1),ct=fn(me,[].concat(Ut(Object.keys(ot)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,ue.Z)((0,ue.Z)({},ct),{},{multiple:me.multiple})},[me]),Hf=Ht.createElement(wu,Pt({},Sd,{showNow:Xu,showTime:Dr,disabledDate:Ui,onFocus:Hd,onBlur:Qs,picker:Fr,mode:ml,internalMode:hl,onPanelChange:gf,format:Rn,value:Sa,isInvalid:Jn,onChange:null,onSelect:pf,pickerValue:Id,defaultOpenValue:Dr==null?void 0:Dr.defaultOpenValue,onPickerValueChange:vd,hoverValue:Yc,onHover:bs,needConfirm:Kn,onSubmit:Bh,onOk:js,presets:jd,onPresetHover:dc,onPresetSubmit:Oc,onNow:fc,cellRender:Qc})),vl=function(ct){za(ct)},Wf=function(){Jr("input")},qc=function(ct){Jr("input"),ya(!0,{inherit:!0}),ms(ct)},Qh=function(ct){ya(!1),Qs(ct)},xd=function(ct,dt){ct.key==="Tab"&&Bh(),$n==null||$n(ct,dt)},it=Ht.useMemo(function(){return{prefixCls:wi,locale:Hr,generateConfig:po,button:Io.button,input:Io.input}},[wi,Hr,po,Io.button,Io.input]);return re(function(){xo&&fo!==void 0&&gf(null,Fr,!1)},[xo,fo,Fr]),re(function(){var ot=Jr();!xo&&ot==="input"&&(ya(!1),Bh()),!xo&&nn&&!Kn&&ot==="panel"&&Bh()},[xo]),Ht.createElement(Ur.Provider,{value:it},Ht.createElement(To,Pt({},Fn(me),{popupElement:Hf,popupStyle:Hi.popup,popupClassName:Oi.popup,visible:xo,onClose:Jc}),Ht.createElement(hc,Pt({},me,{ref:bo,suffixIcon:fa,removeIcon:No,activeHelp:!!Jh,allHelp:!!Jh&&El==="preset",focused:Kr,onFocus:qc,onBlur:Qh,onKeyDown:xd,onSubmit:Bh,value:yd,maskFormat:Rn,onChange:vl,onInputChange:Wf,internalPicker:Re,format:vn,inputReadOnly:Uo,disabled:yi,open:xo,onOpenChange:ya,onClick:zd,onClear:Oa,invalid:md,onInvalid:function(ct){Tc(ct,0)}}))))}var Es=Ht.forwardRef(Th),Gl=Es,sh=Gl},26114:function(un,Nn){"use strict";Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.commonLocale=void 0;var Mt=Nn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},85369:function(un,Nn,Mt){"use strict";var Pt=Mt(6142).default;Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var ne=Pt(Mt(83449)),Ne=Mt(26114),Be=(0,ne.default)((0,ne.default)({},Ne.commonLocale),{},{locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",week:"\u5468",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA",yearFormat:"YYYY\u5E74",cellDateFormat:"D",monthBeforeYear:!1}),Pe=Nn.default=Be},50538:function(un,Nn){"use strict";var Mt;var Pt=typeof Symbol=="function"&&Symbol.for,ne=Pt?Symbol.for("react.element"):60103,Ne=Pt?Symbol.for("react.portal"):60106,Be=Pt?Symbol.for("react.fragment"):60107,Pe=Pt?Symbol.for("react.strict_mode"):60108,Bt=Pt?Symbol.for("react.profiler"):60114,Ut=Pt?Symbol.for("react.provider"):60109,ue=Pt?Symbol.for("react.context"):60110,se=Pt?Symbol.for("react.async_mode"):60111,Se=Pt?Symbol.for("react.concurrent_mode"):60111,Xe=Pt?Symbol.for("react.forward_ref"):60112,pe=Pt?Symbol.for("react.suspense"):60113,Ht=Pt?Symbol.for("react.suspense_list"):60120,Dt=Pt?Symbol.for("react.memo"):60115,nt=Pt?Symbol.for("react.lazy"):60116,et=Pt?Symbol.for("react.block"):60121,ht=Pt?Symbol.for("react.fundamental"):60117,lt=Pt?Symbol.for("react.responder"):60118,gt=Pt?Symbol.for("react.scope"):60119;function mt(St){if(typeof St=="object"&&St!==null){var zt=St.$$typeof;switch(zt){case ne:switch(St=St.type,St){case se:case Se:case Be:case Bt:case Pe:case pe:return St;default:switch(St=St&&St.$$typeof,St){case ue:case Xe:case nt:case Dt:case Ut:return St;default:return zt}}case Ne:return zt}}}function xt(St){return mt(St)===Se}Mt=se,Mt=Se,Mt=ue,Mt=Ut,Mt=ne,Mt=Xe,Mt=Be,Mt=nt,Mt=Dt,Mt=Ne,Mt=Bt,Mt=Pe,Mt=pe,Mt=function(St){return xt(St)||mt(St)===se},Mt=xt,Mt=function(St){return mt(St)===ue},Mt=function(St){return mt(St)===Ut},Mt=function(St){return typeof St=="object"&&St!==null&&St.$$typeof===ne},Mt=function(St){return mt(St)===Xe},Nn.isFragment=function(St){return mt(St)===Be},Mt=function(St){return mt(St)===nt},Nn.isMemo=function(St){return mt(St)===Dt},Mt=function(St){return mt(St)===Ne},Mt=function(St){return mt(St)===Bt},Mt=function(St){return mt(St)===Pe},Mt=function(St){return mt(St)===pe},Mt=function(St){return typeof St=="string"||typeof St=="function"||St===Be||St===Se||St===Bt||St===Pe||St===pe||St===Ht||typeof St=="object"&&St!==null&&(St.$$typeof===nt||St.$$typeof===Dt||St.$$typeof===Ut||St.$$typeof===ue||St.$$typeof===Xe||St.$$typeof===ht||St.$$typeof===lt||St.$$typeof===gt||St.$$typeof===et)},Mt=mt},64363:function(un,Nn,Mt){"use strict";un.exports=Mt(50538)},36963:function(un,Nn){"use strict";var Mt;var Pt=Symbol.for("react.element"),ne=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),Ut=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),se=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Dt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case Pt:switch(ht=ht.type,ht){case Ne:case Pe:case Be:case Se:case Xe:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Ut:case se:case Ht:case pe:case Bt:return ht;default:return lt}}case ne:return lt}}}Mt=Ut,Mt=Bt,Mt=Pt,Nn.ForwardRef=se,Mt=Ne,Mt=Ht,Mt=pe,Mt=ne,Mt=Pe,Mt=Be,Mt=Se,Mt=Xe,Mt=function(){return!1},Mt=function(){return!1},Mt=function(ht){return et(ht)===Ut},Mt=function(ht){return et(ht)===Bt},Mt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Pt},Mt=function(ht){return et(ht)===se},Mt=function(ht){return et(ht)===Ne},Mt=function(ht){return et(ht)===Ht},Nn.isMemo=function(ht){return et(ht)===pe},Mt=function(ht){return et(ht)===ne},Mt=function(ht){return et(ht)===Pe},Mt=function(ht){return et(ht)===Be},Mt=function(ht){return et(ht)===Se},Mt=function(ht){return et(ht)===Xe},Mt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Ne||ht===Pe||ht===Be||ht===Se||ht===Xe||ht===Dt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===Ht||ht.$$typeof===pe||ht.$$typeof===Bt||ht.$$typeof===Ut||ht.$$typeof===se||ht.$$typeof===nt||ht.getModuleId!==void 0)},Mt=et},17756:function(un,Nn,Mt){"use strict";un.exports=Mt(36963)},43579:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Cd:function(){return Le}});var Pt=Mt(87462),ne=Mt(1413),Ne=Mt(45987),Be=Mt(67294),Pe=Mt(94184),Bt=Mt.n(Pe),Ut={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ue=function(){var rn=(0,Be.useRef)([]),De=(0,Be.useRef)(null);return(0,Be.useEffect)(function(){var jn=Date.now(),Bn=!1;rn.current.forEach(function(an){if(an){Bn=!0;var Zn=an.style;Zn.transitionDuration=".3s, .3s, .3s, .06s",De.current&&jn-De.current<100&&(Zn.transitionDuration="0s, 0s")}}),Bn&&(De.current=Date.now())}),rn.current},se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Se=function(rn){var De=(0,ne.Z)((0,ne.Z)({},Ut),rn),jn=De.className,Bn=De.percent,an=De.prefixCls,Zn=De.strokeColor,_t=De.strokeLinecap,Tt=De.strokeWidth,ce=De.style,_e=De.trailColor,Ye=De.trailWidth,xe=De.transition,on=(0,Ne.Z)(De,se);delete on.gapPosition;var tn=Array.isArray(Bn)?Bn:[Bn],Cn=Array.isArray(Zn)?Zn:[Zn],Ie=ue(),ve=Tt/2,ze=100-Tt/2,je="M ".concat(_t==="round"?ve:0,",").concat(ve,`
|
|
L `).concat(_t==="round"?ze:100,",").concat(ve),He="0 0 100 ".concat(Tt),Ot=0;return Be.createElement("svg",(0,Pt.Z)({className:Bt()("".concat(an,"-line"),jn),viewBox:He,preserveAspectRatio:"none",style:ce},on),Be.createElement("path",{className:"".concat(an,"-line-trail"),d:je,strokeLinecap:_t,stroke:_e,strokeWidth:Ye||Tt,fillOpacity:"0"}),tn.map(function(Lt,wt){var Ft=1;switch(_t){case"round":Ft=1-Tt/100;break;case"square":Ft=1-Tt/2/100;break;default:Ft=1;break}var Wt={strokeDasharray:"".concat(Lt*Ft,"px, 100px"),strokeDashoffset:"-".concat(Ot,"px"),transition:xe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kt=Cn[wt]||Cn[Cn.length-1];return Ot+=Lt,Be.createElement("path",{key:wt,className:"".concat(an,"-line-path"),d:je,strokeLinecap:_t,stroke:kt,strokeWidth:Tt,fillOpacity:"0",ref:function($e){Ie[wt]=$e},style:Wt})}))},Xe=Se,pe=Mt(71002),Ht=Mt(97685),Dt=Mt(98924),nt=0,et=(0,Dt.Z)();function ht(){var Fe;return et?(Fe=nt,nt+=1):Fe="TEST_OR_SSR",Fe}var lt=function(Fe){var rn=Be.useState(),De=(0,Ht.Z)(rn,2),jn=De[0],Bn=De[1];return Be.useEffect(function(){Bn("rc_progress_".concat(ht()))},[]),Fe||jn},gt=function(rn){var De=rn.bg,jn=rn.children;return Be.createElement("div",{style:{width:"100%",height:"100%",background:De}},jn)};function mt(Fe,rn){return Object.keys(Fe).map(function(De){var jn=parseFloat(De),Bn="".concat(Math.floor(jn*rn),"%");return"".concat(Fe[De]," ").concat(Bn)})}var xt=Be.forwardRef(function(Fe,rn){var De=Fe.prefixCls,jn=Fe.color,Bn=Fe.gradientId,an=Fe.radius,Zn=Fe.style,_t=Fe.ptg,Tt=Fe.strokeLinecap,ce=Fe.strokeWidth,_e=Fe.size,Ye=Fe.gapDegree,xe=jn&&(0,pe.Z)(jn)==="object",on=xe?"#FFF":void 0,tn=_e/2,Cn=Be.createElement("circle",{className:"".concat(De,"-circle-path"),r:an,cx:tn,cy:tn,stroke:on,strokeLinecap:Tt,strokeWidth:ce,opacity:_t===0?0:1,style:Zn,ref:rn});if(!xe)return Cn;var Ie="".concat(Bn,"-conic"),ve=Ye?"".concat(180+Ye/2,"deg"):"0deg",ze=mt(jn,(360-Ye)/360),je=mt(jn,1),He="conic-gradient(from ".concat(ve,", ").concat(ze.join(", "),")"),Ot="linear-gradient(to ".concat(Ye?"bottom":"top",", ").concat(je.join(", "),")");return Be.createElement(Be.Fragment,null,Be.createElement("mask",{id:Ie},Cn),Be.createElement("foreignObject",{x:0,y:0,width:_e,height:_e,mask:"url(#".concat(Ie,")")},Be.createElement(gt,{bg:Ot},Be.createElement(gt,{bg:He}))))}),St=xt,zt=100,Jt=function(rn,De,jn,Bn,an,Zn,_t,Tt,ce,_e){var Ye=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,xe=jn/100*360*((360-Zn)/360),on=Zn===0?0:{bottom:0,top:180,left:90,right:-90}[_t],tn=(100-Bn)/100*De;ce==="round"&&Bn!==100&&(tn+=_e/2,tn>=De&&(tn=De-.01));var Cn=zt/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(De,"px ").concat(rn),strokeDashoffset:tn+Ye,transform:"rotate(".concat(an+xe+on,"deg)"),transformOrigin:"".concat(Cn,"px ").concat(Cn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},re=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function oe(Fe){var rn=Fe!=null?Fe:[];return Array.isArray(rn)?rn:[rn]}var $t=function(rn){var De=(0,ne.Z)((0,ne.Z)({},Ut),rn),jn=De.id,Bn=De.prefixCls,an=De.steps,Zn=De.strokeWidth,_t=De.trailWidth,Tt=De.gapDegree,ce=Tt===void 0?0:Tt,_e=De.gapPosition,Ye=De.trailColor,xe=De.strokeLinecap,on=De.style,tn=De.className,Cn=De.strokeColor,Ie=De.percent,ve=(0,Ne.Z)(De,re),ze=zt/2,je=lt(jn),He="".concat(je,"-gradient"),Ot=ze-Zn/2,Lt=Math.PI*2*Ot,wt=ce>0?90+ce/2:-90,Ft=Lt*((360-ce)/360),Wt=(0,pe.Z)(an)==="object"?an:{count:an,gap:2},kt=Wt.count,Xt=Wt.gap,$e=oe(Ie),Je=oe(Cn),fn=Je.find(function(pn){return pn&&(0,pe.Z)(pn)==="object"}),Ve=fn&&(0,pe.Z)(fn)==="object",Mn=Ve?"butt":xe,Ue=Jt(Lt,Ft,0,100,wt,ce,_e,Ye,Mn,Zn),ti=ue(),Qn=function(){var gi=0;return $e.map(function(Mi,In){var ei=Je[In]||Je[Je.length-1],Ki=Jt(Lt,Ft,gi,Mi,wt,ce,_e,ei,Mn,Zn);return gi+=Mi,Be.createElement(St,{key:In,color:ei,ptg:Mi,radius:Ot,prefixCls:Bn,gradientId:He,style:Ki,strokeLinecap:Mn,strokeWidth:Zn,gapDegree:ce,ref:function($i){ti[In]=$i},size:zt})}).reverse()},Hn=function(){var gi=Math.round(kt*($e[0]/100)),Mi=100/kt,In=0;return new Array(kt).fill(null).map(function(ei,Ki){var hi=Ki<=gi-1?Je[0]:Ye,$i=hi&&(0,pe.Z)(hi)==="object"?"url(#".concat(He,")"):void 0,pr=Jt(Lt,Ft,In,Mi,wt,ce,_e,hi,"butt",Zn,Xt);return In+=(Ft-pr.strokeDashoffset+Xt)*100/Ft,Be.createElement("circle",{key:Ki,className:"".concat(Bn,"-circle-path"),r:Ot,cx:ze,cy:ze,stroke:$i,strokeWidth:Zn,opacity:1,style:pr,ref:function(ki){ti[Ki]=ki}})})};return Be.createElement("svg",(0,Pt.Z)({className:Bt()("".concat(Bn,"-circle"),tn),viewBox:"0 0 ".concat(zt," ").concat(zt),style:on,id:jn,role:"presentation"},ve),!kt&&Be.createElement("circle",{className:"".concat(Bn,"-circle-trail"),r:Ot,cx:ze,cy:ze,stroke:Ye,strokeLinecap:Mn,strokeWidth:_t||Zn,style:Ue}),kt?Hn():Qn())},Le=$t,de={Line:Xe,Circle:Le}},71032:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return mt}});var Pt=Mt(87462),ne=Mt(4942),Ne=Mt(97685),Be=Mt(45987),Pe=Mt(94184),Bt=Mt.n(Pe),Ut=Mt(21770),ue=Mt(15105),se=Mt(64217),Se=Mt(67294);function Xe(xt,St){var zt=xt.disabled,Jt=xt.prefixCls,re=xt.character,oe=xt.characterRender,$t=xt.index,Le=xt.count,de=xt.value,Fe=xt.allowHalf,rn=xt.focused,De=xt.onHover,jn=xt.onClick,Bn=function(xe){De(xe,$t)},an=function(xe){jn(xe,$t)},Zn=function(xe){xe.keyCode===ue.Z.ENTER&&jn(xe,$t)},_t=$t+1,Tt=new Set([Jt]);de===0&&$t===0&&rn?Tt.add("".concat(Jt,"-focused")):Fe&&de+.5>=_t&&de<_t?(Tt.add("".concat(Jt,"-half")),Tt.add("".concat(Jt,"-active")),rn&&Tt.add("".concat(Jt,"-focused"))):(_t<=de?Tt.add("".concat(Jt,"-full")):Tt.add("".concat(Jt,"-zero")),_t===de&&rn&&Tt.add("".concat(Jt,"-focused")));var ce=typeof re=="function"?re(xt):re,_e=Se.createElement("li",{className:Bt()(Array.from(Tt)),ref:St},Se.createElement("div",{onClick:zt?null:an,onKeyDown:zt?null:Zn,onMouseMove:zt?null:Bn,role:"radio","aria-checked":de>$t?"true":"false","aria-posinset":$t+1,"aria-setsize":Le,tabIndex:zt?-1:0},Se.createElement("div",{className:"".concat(Jt,"-first")},ce),Se.createElement("div",{className:"".concat(Jt,"-second")},ce)));return oe&&(_e=oe(_e,xt)),_e}var pe=Se.forwardRef(Xe);function Ht(){var xt=Se.useRef({});function St(Jt){return xt.current[Jt]}function zt(Jt){return function(re){xt.current[Jt]=re}}return[St,zt]}function Dt(xt){var St=xt.pageXOffset,zt="scrollLeft";if(typeof St!="number"){var Jt=xt.document;St=Jt.documentElement[zt],typeof St!="number"&&(St=Jt.body[zt])}return St}function nt(xt){var St,zt,Jt=xt.ownerDocument,re=Jt.body,oe=Jt&&Jt.documentElement,$t=xt.getBoundingClientRect();return St=$t.left,zt=$t.top,St-=oe.clientLeft||re.clientLeft||0,zt-=oe.clientTop||re.clientTop||0,{left:St,top:zt}}function et(xt){var St=nt(xt),zt=xt.ownerDocument,Jt=zt.defaultView||zt.parentWindow;return St.left+=Dt(Jt),St.left}var ht=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(xt,St){var zt=xt.prefixCls,Jt=zt===void 0?"rc-rate":zt,re=xt.className,oe=xt.defaultValue,$t=xt.value,Le=xt.count,de=Le===void 0?5:Le,Fe=xt.allowHalf,rn=Fe===void 0?!1:Fe,De=xt.allowClear,jn=De===void 0?!0:De,Bn=xt.keyboard,an=Bn===void 0?!0:Bn,Zn=xt.character,_t=Zn===void 0?"\u2605":Zn,Tt=xt.characterRender,ce=xt.disabled,_e=xt.direction,Ye=_e===void 0?"ltr":_e,xe=xt.tabIndex,on=xe===void 0?0:xe,tn=xt.autoFocus,Cn=xt.onHoverChange,Ie=xt.onChange,ve=xt.onFocus,ze=xt.onBlur,je=xt.onKeyDown,He=xt.onMouseLeave,Ot=(0,Be.Z)(xt,ht),Lt=Ht(),wt=(0,Ne.Z)(Lt,2),Ft=wt[0],Wt=wt[1],kt=Se.useRef(null),Xt=function(){if(!ce){var Xi;(Xi=kt.current)===null||Xi===void 0||Xi.focus()}};Se.useImperativeHandle(St,function(){return{focus:Xt,blur:function(){if(!ce){var Xi;(Xi=kt.current)===null||Xi===void 0||Xi.blur()}}}});var $e=(0,Ut.Z)(oe||0,{value:$t}),Je=(0,Ne.Z)($e,2),fn=Je[0],Ve=Je[1],Mn=(0,Ut.Z)(null),Ue=(0,Ne.Z)(Mn,2),ti=Ue[0],Qn=Ue[1],Hn=function(Xi,bn){var bt=Ye==="rtl",wn=Xi+1;if(rn){var Fn=Ft(Xi),Un=et(Fn),Xn=Fn.clientWidth;(bt&&bn-Un>Xn/2||!bt&&bn-Un<Xn/2)&&(wn-=.5)}return wn},pn=function(Xi){Ve(Xi),Ie==null||Ie(Xi)},gi=Se.useState(!1),Mi=(0,Ne.Z)(gi,2),In=Mi[0],ei=Mi[1],Ki=function(){ei(!0),ve==null||ve()},hi=function(){ei(!1),ze==null||ze()},$i=Se.useState(null),pr=(0,Ne.Z)($i,2),rr=pr[0],ki=pr[1],sr=function(Xi,bn){var bt=Hn(bn,Xi.pageX);bt!==ti&&(ki(bt),Qn(null)),Cn==null||Cn(bt)},Ur=function(Xi){ce||(ki(null),Qn(null),Cn==null||Cn(void 0)),Xi&&(He==null||He(Xi))},Jo=function(Xi,bn){var bt=Hn(bn,Xi.pageX),wn=!1;jn&&(wn=bt===fn),Ur(),pn(wn?0:bt),Qn(wn?bt:null)},Rr=function(Xi){var bn=Xi.keyCode,bt=Ye==="rtl",wn=rn?.5:1;an&&(bn===ue.Z.RIGHT&&fn<de&&!bt?(pn(fn+wn),Xi.preventDefault()):bn===ue.Z.LEFT&&fn>0&&!bt||bn===ue.Z.RIGHT&&fn>0&&bt?(pn(fn-wn),Xi.preventDefault()):bn===ue.Z.LEFT&&fn<de&&bt&&(pn(fn+wn),Xi.preventDefault())),je==null||je(Xi)};Se.useEffect(function(){tn&&!ce&&Xt()},[]);var To=new Array(de).fill(0).map(function(co,Xi){return Se.createElement(pe,{ref:Wt(Xi),index:Xi,count:de,disabled:ce,prefixCls:"".concat(Jt,"-star"),allowHalf:rn,value:rr===null?fn:rr,onClick:Jo,onHover:sr,key:co||Xi,character:_t,characterRender:Tt,focused:In})}),pa=Bt()(Jt,re,(0,ne.Z)((0,ne.Z)({},"".concat(Jt,"-disabled"),ce),"".concat(Jt,"-rtl"),Ye==="rtl"));return Se.createElement("ul",(0,Pt.Z)({className:pa,onMouseLeave:Ur,tabIndex:ce?-1:on,onFocus:ce?null:Ki,onBlur:ce?null:hi,onKeyDown:ce?null:Rr,ref:kt},(0,se.Z)(Ot,{aria:!0,data:!0,attr:!0})),To)}var gt=Se.forwardRef(lt),mt=gt},58212:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Zn}});function Pt(){return Pt=Object.assign?Object.assign.bind():function(_t){for(var Tt=1;Tt<arguments.length;Tt++){var ce=arguments[Tt];for(var _e in ce)Object.prototype.hasOwnProperty.call(ce,_e)&&(_t[_e]=ce[_e])}return _t},Pt.apply(this,arguments)}function ne(_t){"@babel/helpers - typeof";return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},ne(_t)}function Ne(_t,Tt){if(ne(_t)!=="object"||_t===null)return _t;var ce=_t[Symbol.toPrimitive];if(ce!==void 0){var _e=ce.call(_t,Tt||"default");if(ne(_e)!=="object")return _e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Tt==="string"?String:Number)(_t)}function Be(_t){var Tt=Ne(_t,"string");return ne(Tt)==="symbol"?Tt:String(Tt)}function Pe(_t,Tt,ce){return Tt=Be(Tt),Tt in _t?Object.defineProperty(_t,Tt,{value:ce,enumerable:!0,configurable:!0,writable:!0}):_t[Tt]=ce,_t}function Bt(_t){if(Array.isArray(_t))return _t}function Ut(_t,Tt){var ce=_t==null?null:typeof Symbol!="undefined"&&_t[Symbol.iterator]||_t["@@iterator"];if(ce!=null){var _e,Ye,xe,on,tn=[],Cn=!0,Ie=!1;try{if(xe=(ce=ce.call(_t)).next,Tt===0){if(Object(ce)!==ce)return;Cn=!1}else for(;!(Cn=(_e=xe.call(ce)).done)&&(tn.push(_e.value),tn.length!==Tt);Cn=!0);}catch(ve){Ie=!0,Ye=ve}finally{try{if(!Cn&&ce.return!=null&&(on=ce.return(),Object(on)!==on))return}finally{if(Ie)throw Ye}}return tn}}function ue(_t,Tt){(Tt==null||Tt>_t.length)&&(Tt=_t.length);for(var ce=0,_e=new Array(Tt);ce<Tt;ce++)_e[ce]=_t[ce];return _e}function se(_t,Tt){if(_t){if(typeof _t=="string")return ue(_t,Tt);var ce=Object.prototype.toString.call(_t).slice(8,-1);if(ce==="Object"&&_t.constructor&&(ce=_t.constructor.name),ce==="Map"||ce==="Set")return Array.from(_t);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return ue(_t,Tt)}}function Se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(_t,Tt){return Bt(_t)||Ut(_t,Tt)||se(_t,Tt)||Se()}function pe(_t,Tt){if(_t==null)return{};var ce={},_e=Object.keys(_t),Ye,xe;for(xe=0;xe<_e.length;xe++)Ye=_e[xe],!(Tt.indexOf(Ye)>=0)&&(ce[Ye]=_t[Ye]);return ce}function Ht(_t,Tt){if(_t==null)return{};var ce=pe(_t,Tt),_e,Ye;if(Object.getOwnPropertySymbols){var xe=Object.getOwnPropertySymbols(_t);for(Ye=0;Ye<xe.length;Ye++)_e=xe[Ye],!(Tt.indexOf(_e)>=0)&&Object.prototype.propertyIsEnumerable.call(_t,_e)&&(ce[_e]=_t[_e])}return ce}var Dt=Mt(67294),nt=Mt(94184),et=Mt.n(nt);function ht(_t){if(Array.isArray(_t))return _t}function lt(_t,Tt){var ce=_t==null?null:typeof Symbol!="undefined"&&_t[Symbol.iterator]||_t["@@iterator"];if(ce!=null){var _e,Ye,xe,on,tn=[],Cn=!0,Ie=!1;try{if(xe=(ce=ce.call(_t)).next,Tt===0){if(Object(ce)!==ce)return;Cn=!1}else for(;!(Cn=(_e=xe.call(ce)).done)&&(tn.push(_e.value),tn.length!==Tt);Cn=!0);}catch(ve){Ie=!0,Ye=ve}finally{try{if(!Cn&&ce.return!=null&&(on=ce.return(),Object(on)!==on))return}finally{if(Ie)throw Ye}}return tn}}function gt(_t,Tt){(Tt==null||Tt>_t.length)&&(Tt=_t.length);for(var ce=0,_e=new Array(Tt);ce<Tt;ce++)_e[ce]=_t[ce];return _e}function mt(_t,Tt){if(_t){if(typeof _t=="string")return gt(_t,Tt);var ce=Object.prototype.toString.call(_t).slice(8,-1);if(ce==="Object"&&_t.constructor&&(ce=_t.constructor.name),ce==="Map"||ce==="Set")return Array.from(_t);if(ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return gt(_t,Tt)}}function xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function St(_t,Tt){return ht(_t)||lt(_t,Tt)||mt(_t,Tt)||xt()}function zt(_t){var Tt=Dt.useRef();Tt.current=_t;var ce=Dt.useCallback(function(){for(var _e,Ye=arguments.length,xe=new Array(Ye),on=0;on<Ye;on++)xe[on]=arguments[on];return(_e=Tt.current)===null||_e===void 0?void 0:_e.call.apply(_e,[Tt].concat(xe))},[]);return ce}function Jt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re=Jt()?Dt.useLayoutEffect:Dt.useEffect,oe=function(Tt,ce){var _e=Dt.useRef(!0);re(function(){return Tt(_e.current)},ce),re(function(){return _e.current=!1,function(){_e.current=!0}},[])},$t=function(Tt,ce){oe(function(_e){if(!_e)return Tt()},ce)},Le=null;function de(_t){var Tt=Dt.useRef(!1),ce=Dt.useState(_t),_e=St(ce,2),Ye=_e[0],xe=_e[1];Dt.useEffect(function(){return Tt.current=!1,function(){Tt.current=!0}},[]);function on(tn,Cn){Cn&&Tt.current||xe(tn)}return[Ye,on]}function Fe(_t){return _t!==void 0}function rn(_t,Tt){var ce=Tt||{},_e=ce.defaultValue,Ye=ce.value,xe=ce.onChange,on=ce.postState,tn=de(function(){return Fe(Ye)?Ye:Fe(_e)?typeof _e=="function"?_e():_e:typeof _t=="function"?_t():_t}),Cn=St(tn,2),Ie=Cn[0],ve=Cn[1],ze=Ye!==void 0?Ye:Ie,je=on?on(ze):ze,He=zt(xe),Ot=de([ze]),Lt=St(Ot,2),wt=Lt[0],Ft=Lt[1];$t(function(){var kt=wt[0];Ie!==kt&&He(Ie,kt)},[wt]),$t(function(){Fe(Ye)||ve(Ye)},[Ye]);var Wt=zt(function(kt,Xt){ve(kt,Xt),Ft([ze],Xt)});return[je,Wt]}var De={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Tt){var ce=Tt.keyCode;if(Tt.altKey&&!Tt.ctrlKey||Tt.metaKey||ce>=De.F1&&ce<=De.F12)return!1;switch(ce){case De.ALT:case De.CAPS_LOCK:case De.CONTEXT_MENU:case De.CTRL:case De.DOWN:case De.END:case De.ESC:case De.HOME:case De.INSERT:case De.LEFT:case De.MAC_FF_META:case De.META:case De.NUMLOCK:case De.NUM_CENTER:case De.PAGE_DOWN:case De.PAGE_UP:case De.PAUSE:case De.PRINT_SCREEN:case De.RIGHT:case De.SHIFT:case De.UP:case De.WIN_KEY:case De.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Tt){if(Tt>=De.ZERO&&Tt<=De.NINE||Tt>=De.NUM_ZERO&&Tt<=De.NUM_MULTIPLY||Tt>=De.A&&Tt<=De.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Tt===0)return!0;switch(Tt){case De.SPACE:case De.QUESTION_MARK:case De.NUM_PLUS:case De.NUM_MINUS:case De.NUM_PERIOD:case De.NUM_DIVISION:case De.SEMICOLON:case De.DASH:case De.EQUALS:case De.COMMA:case De.PERIOD:case De.SLASH:case De.APOSTROPHE:case De.SINGLE_QUOTE:case De.OPEN_SQUARE_BRACKET:case De.BACKSLASH:case De.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jn=De,Bn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],an=Dt.forwardRef(function(_t,Tt){var ce,_e=_t.prefixCls,Ye=_e===void 0?"rc-switch":_e,xe=_t.className,on=_t.checked,tn=_t.defaultChecked,Cn=_t.disabled,Ie=_t.loadingIcon,ve=_t.checkedChildren,ze=_t.unCheckedChildren,je=_t.onClick,He=_t.onChange,Ot=_t.onKeyDown,Lt=Ht(_t,Bn),wt=rn(!1,{value:on,defaultValue:tn}),Ft=Xe(wt,2),Wt=Ft[0],kt=Ft[1];function Xt(Ve,Mn){var Ue=Wt;return Cn||(Ue=Ve,kt(Ue),He==null||He(Ue,Mn)),Ue}function $e(Ve){Ve.which===jn.LEFT?Xt(!1,Ve):Ve.which===jn.RIGHT&&Xt(!0,Ve),Ot==null||Ot(Ve)}function Je(Ve){var Mn=Xt(!Wt,Ve);je==null||je(Mn,Ve)}var fn=et()(Ye,xe,(ce={},Pe(ce,"".concat(Ye,"-checked"),Wt),Pe(ce,"".concat(Ye,"-disabled"),Cn),ce));return Dt.createElement("button",Pt({},Lt,{type:"button",role:"switch","aria-checked":Wt,disabled:Cn,className:fn,ref:Tt,onKeyDown:$e,onClick:Je}),Ie,Dt.createElement("span",{className:"".concat(Ye,"-inner")},Dt.createElement("span",{className:"".concat(Ye,"-inner-checked")},ve),Dt.createElement("span",{className:"".concat(Ye,"-inner-unchecked")},ze)))});an.displayName="Switch";var Zn=an},45233:function(un,Nn,Mt){"use strict";Mt.d(Nn,{R:function(){return ne},w:function(){return Pt}});var Pt={},ne="rc-table-internal-hook"},54768:function(un,Nn,Mt){"use strict";Mt.d(Nn,{L:function(){return ht},Z:function(){return St}});var Pt=Mt(97685),ne=Mt(4942),Ne=Mt(74902),Be=Mt(71002),Pe=Mt(1413),Bt=Mt(45987),Ut=Mt(63295),ue=Mt(67294);function se(zt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=[];return ue.Children.forEach(zt,function(oe){oe==null&&!Jt.keepEmpty||(Array.isArray(oe)?re=re.concat(se(oe)):(0,Ut.Z)(oe)&&oe.props?re=re.concat(se(oe.props.children,Jt)):re.push(oe))}),re}var Se=Mt(40830),Xe=Mt(45233),pe=Mt(62978);function Ht(zt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Jt=="number"?Jt:Jt.endsWith("%")?zt*parseFloat(Jt)/100:null}function Dt(zt,Jt,re){return ue.useMemo(function(){if(Jt&&Jt>0){var oe=0,$t=0;zt.forEach(function(an){var Zn=Ht(Jt,an.width);Zn?oe+=Zn:$t+=1});var Le=Math.max(Jt,re),de=Math.max(Le-oe,$t),Fe=$t,rn=de/$t,De=0,jn=zt.map(function(an){var Zn=(0,Pe.Z)({},an),_t=Ht(Jt,Zn.width);if(_t)Zn.width=_t;else{var Tt=Math.floor(rn);Zn.width=Fe===1?de:Tt,de-=Tt,Fe-=1}return De+=Zn.width,Zn});if(De<Le){var Bn=Le/De;de=Le,jn.forEach(function(an,Zn){var _t=Math.floor(an.width*Bn);an.width=Zn===jn.length-1?de:_t,de-=_t})}return[jn,Math.max(De,Le)]}return[zt,Jt]},[zt,Jt,re])}var nt=["children"],et=["fixed"];function ht(zt){return se(zt).filter(function(Jt){return ue.isValidElement(Jt)}).map(function(Jt){var re=Jt.key,oe=Jt.props,$t=oe.children,Le=(0,Bt.Z)(oe,nt),de=(0,Pe.Z)({key:re},Le);return $t&&(de.children=ht($t)),de})}function lt(zt){return zt.filter(function(Jt){return Jt&&(0,Be.Z)(Jt)==="object"&&!Jt.hidden}).map(function(Jt){var re=Jt.children;return re&&re.length>0?(0,Pe.Z)((0,Pe.Z)({},Jt),{},{children:lt(re)}):Jt})}function gt(zt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return zt.filter(function(re){return re&&(0,Be.Z)(re)==="object"}).reduce(function(re,oe,$t){var Le=oe.fixed,de=Le===!0?"left":Le,Fe="".concat(Jt,"-").concat($t),rn=oe.children;return rn&&rn.length>0?[].concat((0,Ne.Z)(re),(0,Ne.Z)(gt(rn,Fe).map(function(De){return(0,Pe.Z)({fixed:de},De)}))):[].concat((0,Ne.Z)(re),[(0,Pe.Z)((0,Pe.Z)({key:Fe},oe),{},{fixed:de})])},[])}function mt(zt){return zt.map(function(Jt){var re=Jt.fixed,oe=(0,Bt.Z)(Jt,et),$t=re;return re==="left"?$t="right":re==="right"&&($t="left"),(0,Pe.Z)({fixed:$t},oe)})}function xt(zt,Jt){var re=zt.prefixCls,oe=zt.columns,$t=zt.children,Le=zt.expandable,de=zt.expandedKeys,Fe=zt.columnTitle,rn=zt.getRowKey,De=zt.onTriggerExpand,jn=zt.expandIcon,Bn=zt.rowExpandable,an=zt.expandIconColumnIndex,Zn=zt.direction,_t=zt.expandRowByClick,Tt=zt.columnWidth,ce=zt.fixed,_e=zt.scrollWidth,Ye=zt.clientWidth,xe=ue.useMemo(function(){var Ot=oe||ht($t)||[];return lt(Ot.slice())},[oe,$t]),on=ue.useMemo(function(){if(Le){var Ot=xe.slice();if(!Ot.includes(Xe.w)){var Lt=an||0;Lt>=0&&(Lt||ce==="left"||!ce)&&Ot.splice(Lt,0,Xe.w),ce==="right"&&Ot.splice(xe.length,0,Xe.w)}var wt=Ot.indexOf(Xe.w);Ot=Ot.filter(function(Xt,$e){return Xt!==Xe.w||$e===wt});var Ft=xe[wt],Wt;ce?Wt=ce:Wt=Ft?Ft.fixed:null;var kt=(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},pe.v,{className:"".concat(re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Fe),"fixed",Wt),"className","".concat(re,"-row-expand-icon-cell")),"width",Tt),"render",function($e,Je,fn){var Ve=rn(Je,fn),Mn=de.has(Ve),Ue=Bn?Bn(Je):!0,ti=jn({prefixCls:re,expanded:Mn,expandable:Ue,record:Je,onExpand:De});return _t?ue.createElement("span",{onClick:function(Hn){return Hn.stopPropagation()}},ti):ti});return Ot.map(function(Xt){return Xt===Xe.w?kt:Xt})}return xe.filter(function(Xt){return Xt!==Xe.w})},[Le,xe,rn,de,jn,Zn]),tn=ue.useMemo(function(){var Ot=on;return Jt&&(Ot=Jt(Ot)),Ot.length||(Ot=[{render:function(){return null}}]),Ot},[Jt,on,Zn]),Cn=ue.useMemo(function(){return Zn==="rtl"?mt(gt(tn)):gt(tn)},[tn,Zn,_e]),Ie=ue.useMemo(function(){for(var Ot=-1,Lt=Cn.length-1;Lt>=0;Lt-=1){var wt=Cn[Lt].fixed;if(wt==="left"||wt===!0){Ot=Lt;break}}if(Ot>=0)for(var Ft=0;Ft<=Ot;Ft+=1){var Wt=Cn[Ft].fixed;if(Wt!=="left"&&Wt!==!0)return!0}var kt=Cn.findIndex(function(Je){var fn=Je.fixed;return fn==="right"});if(kt>=0)for(var Xt=kt;Xt<Cn.length;Xt+=1){var $e=Cn[Xt].fixed;if($e!=="right")return!0}return!1},[Cn]),ve=Dt(Cn,_e,Ye),ze=(0,Pt.Z)(ve,2),je=ze[0],He=ze[1];return[tn,je,He,Ie]}var St=xt},29104:function(un,Nn,Mt){"use strict";Mt.d(Nn,{w2:function(){return Pt.w},vP:function(){return Xr.v},RQ:function(){return Pt.R},ER:function(){return bn},Q$:function(){return ps},TN:function(){return oh}});var Pt=Mt(45233),ne=Mt(97685),Ne=Mt(66680),Be=Mt(8410),Pe=Mt(91881),Bt=Mt(67294),Ut=Mt(73935);function ue(Vt){var ye=Bt.createContext(void 0),be=function(Qe){var ln=Qe.value,yn=Qe.children,On=Bt.useRef(ln);On.current=ln;var li=Bt.useState(function(){return{getValue:function(){return On.current},listeners:new Set}}),qn=(0,ne.Z)(li,1),Ai=qn[0];return(0,Be.Z)(function(){(0,Ut.unstable_batchedUpdates)(function(){Ai.listeners.forEach(function(ri){ri(ln)})})},[ln]),Bt.createElement(ye.Provider,{value:Ai},yn)};return{Context:ye,Provider:be,defaultValue:Vt}}function se(Vt,ye){var be=(0,Ne.Z)(typeof ye=="function"?ye:function(ri){if(ye===void 0)return ri;if(!Array.isArray(ye))return ri[ye];var xi={};return ye.forEach(function(di){xi[di]=ri[di]}),xi}),Me=Bt.useContext(Vt==null?void 0:Vt.Context),Qe=Me||{},ln=Qe.listeners,yn=Qe.getValue,On=Bt.useRef();On.current=be(Me?yn():Vt==null?void 0:Vt.defaultValue);var li=Bt.useState({}),qn=(0,ne.Z)(li,2),Ai=qn[1];return(0,Be.Z)(function(){if(!Me)return;function ri(xi){var di=be(xi);(0,Pe.Z)(On.current,di,!0)||Ai({})}return ln.add(ri),function(){ln.delete(ri)}},[Me]),On.current}var Se=Mt(87462),Xe=Mt(42550);function pe(){var Vt=Bt.createContext(null);function ye(){return Bt.useContext(Vt)}function be(Qe,ln){var yn=(0,Xe.Yr)(Qe),On=function(qn,Ai){var ri=yn?{ref:Ai}:{},xi=Bt.useRef(0),di=Bt.useRef(qn),ji=ye();return ji!==null?Bt.createElement(Qe,(0,Se.Z)({},qn,ri)):((!ln||ln(di.current,qn))&&(xi.current+=1),di.current=qn,Bt.createElement(Vt.Provider,{value:xi.current},Bt.createElement(Qe,(0,Se.Z)({},qn,ri))))};return yn?Bt.forwardRef(On):On}function Me(Qe,ln){var yn=(0,Xe.Yr)(Qe),On=function(qn,Ai){var ri=yn?{ref:Ai}:{};return ye(),Bt.createElement(Qe,(0,Se.Z)({},qn,ri))};return yn?Bt.memo(Bt.forwardRef(On),ln):Bt.memo(On,ln)}return{makeImmutable:be,responseImmutable:Me,useImmutableMark:ye}}var Ht=pe(),Dt=Ht.makeImmutable,nt=Ht.responseImmutable,et=Ht.useImmutableMark,ht=pe(),lt=ht.makeImmutable,gt=ht.responseImmutable,mt=ht.useImmutableMark,xt=ue(),St=xt;function zt(Vt,ye){var be=React.useRef(0);be.current+=1;var Me=React.useRef(Vt),Qe=[];Object.keys(Vt||{}).map(function(yn){var On;(Vt==null?void 0:Vt[yn])!==((On=Me.current)===null||On===void 0?void 0:On[yn])&&Qe.push(yn)}),Me.current=Vt;var ln=React.useRef([]);return Qe.length&&(ln.current=Qe),React.useDebugValue(be.current),React.useDebugValue(ln.current.join(", ")),ye&&console.log("".concat(ye,":"),be.current,ln.current),be.current}var Jt=null,re=null,oe=Mt(71002),$t=Mt(1413),Le=Mt(4942),de=Mt(94184),Fe=Mt.n(de);function rn(Vt,ye,be){var Me=Bt.useRef({});return(!("value"in Me.current)||be(Me.current.condition,ye))&&(Me.current.value=Vt(),Me.current.condition=ye),Me.current.value}var De=Mt(40830);function jn(Vt,ye){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=new Set;function Qe(ln,yn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,li=Me.has(ln);if((0,De.ZP)(!li,"Warning: There may be circular references"),li)return!1;if(ln===yn)return!0;if(be&&On>1)return!1;Me.add(ln);var qn=On+1;if(Array.isArray(ln)){if(!Array.isArray(yn)||ln.length!==yn.length)return!1;for(var Ai=0;Ai<ln.length;Ai++)if(!Qe(ln[Ai],yn[Ai],qn))return!1;return!0}if(ln&&yn&&(0,oe.Z)(ln)==="object"&&(0,oe.Z)(yn)==="object"){var ri=Object.keys(ln);return ri.length!==Object.keys(yn).length?!1:ri.every(function(xi){return Qe(ln[xi],yn[xi],qn)})}return!1}return Qe(Vt,ye)}var Bn=jn;function an(Vt,ye){for(var be=Vt,Me=0;Me<ye.length;Me+=1){if(be==null)return;be=be[ye[Me]]}return be}var Zn=Bt.createContext({renderWithProps:!1}),_t=Zn,Tt="RC_TABLE_KEY";function ce(Vt){return Vt==null?[]:Array.isArray(Vt)?Vt:[Vt]}function _e(Vt){var ye=[],be={};return Vt.forEach(function(Me){for(var Qe=Me||{},ln=Qe.key,yn=Qe.dataIndex,On=ln||ce(yn).join("-")||Tt;be[On];)On="".concat(On,"_next");be[On]=!0,ye.push(On)}),ye}function Ye(Vt){return Vt!=null}function xe(Vt){return typeof Vt=="number"&&!Number.isNaN(Vt)}function on(Vt){return Vt&&(0,oe.Z)(Vt)==="object"&&!Array.isArray(Vt)&&!Bt.isValidElement(Vt)}function tn(Vt,ye,be,Me,Qe,ln){var yn=Bt.useContext(_t),On=mt(),li=rn(function(){if(Ye(Me))return[Me];var qn=ye==null||ye===""?[]:Array.isArray(ye)?ye:[ye],Ai=an(Vt,qn),ri=Ai,xi=void 0;if(Qe){var di=Qe(Ai,Vt,be);on(di)?(ri=di.children,xi=di.props,yn.renderWithProps=!0):ri=di}return[ri,xi]},[On,Vt,Me,ye,Qe,be],function(qn,Ai){if(ln){var ri=(0,ne.Z)(qn,2),xi=ri[1],di=(0,ne.Z)(Ai,2),ji=di[1];return ln(ji,xi)}return yn.renderWithProps?!0:!Bn(qn,Ai,!0)});return li}function Cn(Vt,ye,be,Me){var Qe=Vt+ye-1;return Vt<=Me&&Qe>=be}function Ie(Vt,ye){return se(St,function(be){var Me=Cn(Vt,ye||1,be.hoverStartRow,be.hoverEndRow);return[Me,be.onHover]})}function ve(Vt){var ye=Bt.useRef();ye.current=Vt;var be=Bt.useCallback(function(){for(var Me,Qe=arguments.length,ln=new Array(Qe),yn=0;yn<Qe;yn++)ln[yn]=arguments[yn];return(Me=ye.current)===null||Me===void 0?void 0:Me.call.apply(Me,[ye].concat(ln))},[]);return be}function ze(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var je=ze()?Bt.useLayoutEffect:Bt.useEffect,He=function(ye,be){var Me=React.useRef(!0);je(function(){return ye(Me.current)},be),je(function(){return Me.current=!1,function(){Me.current=!0}},[])},Ot=function(ye,be){He(function(Me){if(!Me)return ye()},be)},Lt=null;function wt(Vt){var ye=React.useRef(!1),be=React.useState(Vt),Me=_slicedToArray(be,2),Qe=Me[0],ln=Me[1];React.useEffect(function(){return ye.current=!1,function(){ye.current=!0}},[]);function yn(On,li){li&&ye.current||ln(On)}return[Qe,yn]}function Ft(Vt){return Vt!==void 0}function Wt(Vt,ye){var be=ye||{},Me=be.defaultValue,Qe=be.value,ln=be.onChange,yn=be.postState,On=useState(function(){return Ft(Qe)?Qe:Ft(Me)?typeof Me=="function"?Me():Me:typeof Vt=="function"?Vt():Vt}),li=_slicedToArray(On,2),qn=li[0],Ai=li[1],ri=Qe!==void 0?Qe:qn,xi=yn?yn(ri):ri,di=useEvent(ln),ji=useState([ri]),_i=_slicedToArray(ji,2),Pr=_i[0],zr=_i[1];useLayoutUpdateEffect(function(){var mr=Pr[0];qn!==mr&&di(qn,mr)},[Pr]),useLayoutUpdateEffect(function(){Ft(Qe)||Ai(Qe)},[Qe]);var Yi=useEvent(function(mr,nr){Ai(mr,nr),zr([ri],nr)});return[xi,Yi]}var kt=Mt(35110),Xt=Mt(63295),$e=Number(Bt.version.split(".")[0]),Je=function(ye,be){typeof ye=="function"?ye(be):(0,oe.Z)(ye)==="object"&&ye&&"current"in ye&&(ye.current=be)},fn=function(){for(var ye=arguments.length,be=new Array(ye),Me=0;Me<ye;Me++)be[Me]=arguments[Me];var Qe=be.filter(Boolean);return Qe.length<=1?Qe[0]:function(ln){be.forEach(function(yn){Je(yn,ln)})}},Ve=function(){for(var ye=arguments.length,be=new Array(ye),Me=0;Me<ye;Me++)be[Me]=arguments[Me];return useMemo(function(){return fn.apply(void 0,be)},be,function(Qe,ln){return Qe.length!==ln.length||Qe.every(function(yn,On){return yn!==ln[On]})})},Mn=function(ye){var be,Me;if(!ye)return!1;if(Ue(ye)&&$e>=19)return!0;var Qe=isMemo(ye)?ye.type.type:ye.type;return!(typeof Qe=="function"&&!((be=Qe.prototype)!==null&&be!==void 0&&be.render)&&Qe.$$typeof!==ForwardRef||typeof ye=="function"&&!((Me=ye.prototype)!==null&&Me!==void 0&&Me.render)&&ye.$$typeof!==ForwardRef)};function Ue(Vt){return isValidElement(Vt)&&!isFragment(Vt)}var ti=function(ye){return Ue(ye)&&Mn(ye)},Qn=function(ye){if(ye&&Ue(ye)){var be=ye;return be.props.propertyIsEnumerable("ref")?be.props.ref:be.ref}return null};function Hn(Vt,ye,be,Me){if(!ye.length)return be;var Qe=_toArray(ye),ln=Qe[0],yn=Qe.slice(1),On;return!Vt&&typeof ln=="number"?On=[]:Array.isArray(Vt)?On=_toConsumableArray(Vt):On=_objectSpread({},Vt),Me&&be===void 0&&yn.length===1?delete On[ln][yn[0]]:On[ln]=Hn(On[ln],yn,be,Me),On}function pn(Vt,ye,be){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ye.length&&Me&&be===void 0&&!get(Vt,ye.slice(0,-1))?Vt:Hn(Vt,ye,be,Me)}function gi(Vt){return _typeof(Vt)==="object"&&Vt!==null&&Object.getPrototypeOf(Vt)===Object.prototype}function Mi(Vt){return Array.isArray(Vt)?[]:{}}var In=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ei(){for(var Vt=arguments.length,ye=new Array(Vt),be=0;be<Vt;be++)ye[be]=arguments[be];var Me=Mi(ye[0]);return ye.forEach(function(Qe){function ln(yn,On){var li=new Set(On),qn=get(Qe,yn),Ai=Array.isArray(qn);if(Ai||gi(qn)){if(!li.has(qn)){li.add(qn);var ri=get(Me,yn);Ai?Me=pn(Me,yn,[]):(!ri||_typeof(ri)!=="object")&&(Me=pn(Me,yn,Mi(qn))),In(qn).forEach(function(xi){ln([].concat(_toConsumableArray(yn),[xi]),li)})}}else Me=pn(Me,yn,qn)}ln([])}),Me}var Ki=function(ye){var be=ye.ellipsis,Me=ye.rowType,Qe=ye.children,ln,yn=be===!0?{showTitle:!0}:be;return yn&&(yn.showTitle||Me==="header")&&(typeof Qe=="string"||typeof Qe=="number"?ln=Qe.toString():Bt.isValidElement(Qe)&&typeof Qe.props.children=="string"&&(ln=Qe.props.children)),ln};function hi(Vt){var ye,be,Me,Qe,ln,yn,On,li,qn=Vt.component,Ai=Vt.children,ri=Vt.ellipsis,xi=Vt.scope,di=Vt.prefixCls,ji=Vt.className,_i=Vt.align,Pr=Vt.record,zr=Vt.render,Yi=Vt.dataIndex,mr=Vt.renderIndex,nr=Vt.shouldCellUpdate,jr=Vt.index,Po=Vt.rowType,Or=Vt.colSpan,ra=Vt.rowSpan,vo=Vt.fixLeft,va=Vt.fixRight,$a=Vt.firstFixLeft,wa=Vt.lastFixLeft,yo=Vt.firstFixRight,wo=Vt.lastFixRight,tr=Vt.appendNode,Gr=Vt.additionalProps,ko=Gr===void 0?{}:Gr,Bo=Vt.isSticky,Oo="".concat(di,"-cell"),Ra=se(St,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ko=Ra.supportSticky,ts=Ra.allColumnsFixedLeft,hs=Ra.rowHoverable,ws=tn(Pr,Yi,mr,Ai,zr,nr),pl=(0,ne.Z)(ws,2),Ws=pl[0],oa=pl[1],Ta={},Ja=typeof vo=="number"&&Ko,es=typeof va=="number"&&Ko;Ja&&(Ta.position="sticky",Ta.left=vo),es&&(Ta.position="sticky",Ta.right=va);var Da=(ye=(be=(Me=oa==null?void 0:oa.colSpan)!==null&&Me!==void 0?Me:ko.colSpan)!==null&&be!==void 0?be:Or)!==null&&ye!==void 0?ye:1,Yr=(Qe=(ln=(yn=oa==null?void 0:oa.rowSpan)!==null&&yn!==void 0?yn:ko.rowSpan)!==null&&ln!==void 0?ln:ra)!==null&&Qe!==void 0?Qe:1,Wa=Ie(jr,Yr),Js=(0,ne.Z)(Wa,2),Ll=Js[0],jl=Js[1],ql=ve(function(Tl){var el;Pr&&jl(jr,jr+Yr-1),ko==null||(el=ko.onMouseEnter)===null||el===void 0||el.call(ko,Tl)}),_l=ve(function(Tl){var el;Pr&&jl(-1,-1),ko==null||(el=ko.onMouseLeave)===null||el===void 0||el.call(ko,Tl)});if(Da===0||Yr===0)return null;var bu=(On=ko.title)!==null&&On!==void 0?On:Ki({rowType:Po,ellipsis:ri,children:Ws}),Co=Fe()(Oo,ji,(li={},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)(li,"".concat(Oo,"-fix-left"),Ja&&Ko),"".concat(Oo,"-fix-left-first"),$a&&Ko),"".concat(Oo,"-fix-left-last"),wa&&Ko),"".concat(Oo,"-fix-left-all"),wa&&ts&&Ko),"".concat(Oo,"-fix-right"),es&&Ko),"".concat(Oo,"-fix-right-first"),yo&&Ko),"".concat(Oo,"-fix-right-last"),wo&&Ko),"".concat(Oo,"-ellipsis"),ri),"".concat(Oo,"-with-append"),tr),"".concat(Oo,"-fix-sticky"),(Ja||es)&&Bo&&Ko),(0,Le.Z)(li,"".concat(Oo,"-row-hover"),!oa&&Ll)),ko.className,oa==null?void 0:oa.className),$l={};_i&&($l.textAlign=_i);var ns=(0,$t.Z)((0,$t.Z)((0,$t.Z)((0,$t.Z)({},oa==null?void 0:oa.style),Ta),$l),ko.style),Ml=Ws;return(0,oe.Z)(Ml)==="object"&&!Array.isArray(Ml)&&!Bt.isValidElement(Ml)&&(Ml=null),ri&&(wa||yo)&&(Ml=Bt.createElement("span",{className:"".concat(Oo,"-content")},Ml)),Bt.createElement(qn,(0,Se.Z)({},oa,ko,{className:Co,style:ns,title:bu,scope:xi,onMouseEnter:hs?ql:void 0,onMouseLeave:hs?_l:void 0,colSpan:Da!==1?Da:null,rowSpan:Yr!==1?Yr:null}),tr,Ml)}var $i=Bt.memo(hi);function pr(Vt,ye,be,Me,Qe){var ln=be[Vt]||{},yn=be[ye]||{},On,li;ln.fixed==="left"?On=Me.left[Qe==="rtl"?ye:Vt]:yn.fixed==="right"&&(li=Me.right[Qe==="rtl"?Vt:ye]);var qn=!1,Ai=!1,ri=!1,xi=!1,di=be[ye+1],ji=be[Vt-1],_i=di&&!di.fixed||ji&&!ji.fixed||be.every(function(nr){return nr.fixed==="left"});if(Qe==="rtl"){if(On!==void 0){var Pr=ji&&ji.fixed==="left";xi=!Pr&&_i}else if(li!==void 0){var zr=di&&di.fixed==="right";ri=!zr&&_i}}else if(On!==void 0){var Yi=di&&di.fixed==="left";qn=!Yi&&_i}else if(li!==void 0){var mr=ji&&ji.fixed==="right";Ai=!mr&&_i}return{fixLeft:On,fixRight:li,lastFixLeft:qn,firstFixRight:Ai,lastFixRight:ri,firstFixLeft:xi,isSticky:Me.isSticky}}var rr=Bt.createContext({}),ki=rr;function sr(Vt){var ye=Vt.className,be=Vt.index,Me=Vt.children,Qe=Vt.colSpan,ln=Qe===void 0?1:Qe,yn=Vt.rowSpan,On=Vt.align,li=se(St,["prefixCls","direction"]),qn=li.prefixCls,Ai=li.direction,ri=Bt.useContext(ki),xi=ri.scrollColumnIndex,di=ri.stickyOffsets,ji=ri.flattenColumns,_i=be+ln-1,Pr=_i+1===xi?ln+1:ln,zr=pr(be,be+Pr-1,ji,di,Ai);return Bt.createElement($i,(0,Se.Z)({className:ye,index:be,component:"td",prefixCls:qn,record:null,dataIndex:null,align:On,colSpan:Pr,rowSpan:yn,render:function(){return Me}},zr))}var Ur=Mt(45987),Jo=["children"];function Rr(Vt){var ye=Vt.children,be=(0,Ur.Z)(Vt,Jo);return Bt.createElement("tr",be,ye)}function To(Vt){var ye=Vt.children;return ye}To.Row=Rr,To.Cell=sr;var pa=To;function co(Vt){var ye=Vt.children,be=Vt.stickyOffsets,Me=Vt.flattenColumns,Qe=se(St,"prefixCls"),ln=Me.length-1,yn=Me[ln],On=Bt.useMemo(function(){return{stickyOffsets:be,flattenColumns:Me,scrollColumnIndex:yn!=null&&yn.scrollbar?ln:null}},[yn,Me,ln,be]);return Bt.createElement(ki.Provider,{value:On},Bt.createElement("tfoot",{className:"".concat(Qe,"-summary")},ye))}var Xi=gt(co),bn=pa,bt=Mt(48555),wn=function(Vt){if(!Vt)return!1;if(Vt instanceof Element){if(Vt.offsetParent)return!0;if(Vt.getBBox){var ye=Vt.getBBox(),be=ye.width,Me=ye.height;if(be||Me)return!0}if(Vt.getBoundingClientRect){var Qe=Vt.getBoundingClientRect(),ln=Qe.width,yn=Qe.height;if(ln||yn)return!0}}return!1},Fn=function(ye){if(ze()&&window.document.documentElement){var be=Array.isArray(ye)?ye:[ye],Me=window.document.documentElement;return be.some(function(Qe){return Qe in Me.style})}return!1},Un=function(ye,be){if(!Fn(ye))return!1;var Me=document.createElement("div"),Qe=Me.style[ye];return Me.style[ye]=be,Me.style[ye]!==Qe};function Xn(Vt,ye){return!Array.isArray(Vt)&&ye!==void 0?Un(Vt,ye):Fn(Vt)}function ai(Vt,ye){if(!Vt)return!1;if(Vt.contains)return Vt.contains(ye);for(var be=ye;be;){if(be===Vt)return!0;be=be.parentNode}return!1}var Tn="data-rc-order",Di="data-rc-priority",te="rc-util-key",le=new Map;function ae(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ye=Vt.mark;return ye?ye.startsWith("data-")?ye:"data-".concat(ye):te}function Ae(Vt){if(Vt.attachTo)return Vt.attachTo;var ye=document.querySelector("head");return ye||document.body}function Sn(Vt){return Vt==="queue"?"prependQueue":Vt?"prepend":"append"}function An(Vt){return Array.from((le.get(Vt)||Vt).children).filter(function(ye){return ye.tagName==="STYLE"})}function En(Vt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ze())return null;var be=ye.csp,Me=ye.prepend,Qe=ye.priority,ln=Qe===void 0?0:Qe,yn=Sn(Me),On=yn==="prependQueue",li=document.createElement("style");li.setAttribute(Tn,yn),On&&ln&&li.setAttribute(Di,"".concat(ln)),be!=null&&be.nonce&&(li.nonce=be==null?void 0:be.nonce),li.innerHTML=Vt;var qn=Ae(ye),Ai=qn.firstChild;if(Me){if(On){var ri=(ye.styles||An(qn)).filter(function(xi){if(!["prepend","prependQueue"].includes(xi.getAttribute(Tn)))return!1;var di=Number(xi.getAttribute(Di)||0);return ln>=di});if(ri.length)return qn.insertBefore(li,ri[ri.length-1].nextSibling),li}qn.insertBefore(li,Ai)}else qn.appendChild(li);return li}function ke(Vt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Ae(ye);return(ye.styles||An(be)).find(function(Me){return Me.getAttribute(ae(ye))===Vt})}function cn(Vt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=ke(Vt,ye);if(be){var Me=Ae(ye);Me.removeChild(be)}}function _n(Vt,ye){var be=le.get(Vt);if(!be||!ai(document,be)){var Me=En("",ye),Qe=Me.parentNode;le.set(Vt,Qe),Vt.removeChild(Me)}}function vi(){le.clear()}function mn(Vt,ye){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=Ae(be),Qe=An(Me),ln=(0,$t.Z)((0,$t.Z)({},be),{},{styles:Qe});_n(Me,ln);var yn=ke(ye,ln);if(yn){var On,li;if((On=ln.csp)!==null&&On!==void 0&&On.nonce&&yn.nonce!==((li=ln.csp)===null||li===void 0?void 0:li.nonce)){var qn;yn.nonce=(qn=ln.csp)===null||qn===void 0?void 0:qn.nonce}return yn.innerHTML!==Vt&&(yn.innerHTML=Vt),yn}var Ai=En(Vt,ln);return Ai.setAttribute(ae(ln),ye),Ai}var Oe;function ni(Vt){var ye="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),be=document.createElement("div");be.id=ye;var Me=be.style;Me.position="absolute",Me.left="0",Me.top="0",Me.width="100px",Me.height="100px",Me.overflow="scroll";var Qe,ln;if(Vt){var yn=getComputedStyle(Vt);Me.scrollbarColor=yn.scrollbarColor,Me.scrollbarWidth=yn.scrollbarWidth;var On=getComputedStyle(Vt,"::-webkit-scrollbar"),li=parseInt(On.width,10),qn=parseInt(On.height,10);try{var Ai=li?"width: ".concat(On.width,";"):"",ri=qn?"height: ".concat(On.height,";"):"";mn(`
|
|
#`.concat(ye,`::-webkit-scrollbar {
|
|
`).concat(Ai,`
|
|
`).concat(ri,`
|
|
}`),ye)}catch(ji){console.error(ji),Qe=li,ln=qn}}document.body.appendChild(be);var xi=Vt&&Qe&&!isNaN(Qe)?Qe:be.offsetWidth-be.clientWidth,di=Vt&&ln&&!isNaN(ln)?ln:be.offsetHeight-be.clientHeight;return document.body.removeChild(be),cn(ye),{width:xi,height:di}}function Pi(Vt){return typeof document=="undefined"?0:((Vt||Oe===void 0)&&(Oe=ni()),Oe.width)}function Li(Vt){return typeof document=="undefined"||!Vt||!(Vt instanceof Element)?{width:0,height:0}:ni(Vt)}var qe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,oi=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ni="".concat(qe," ").concat(oi).split(/[\s\n]+/),gr="aria-",xr="data-";function Si(Vt,ye){return Vt.indexOf(ye)===0}function Fi(Vt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be;ye===!1?be={aria:!0,data:!0,attr:!0}:ye===!0?be={aria:!0}:be=(0,$t.Z)({},ye);var Me={};return Object.keys(Vt).forEach(function(Qe){(be.aria&&(Qe==="role"||Si(Qe,gr))||be.data&&Si(Qe,xr)||be.attr&&Ni.includes(Qe))&&(Me[Qe]=Vt[Qe])}),Me}function Gi(Vt,ye,be,Me,Qe,ln,yn){Vt.push({record:ye,indent:be,index:yn});var On=ln(ye),li=Qe==null?void 0:Qe.has(On);if(ye&&Array.isArray(ye[Me])&&li)for(var qn=0;qn<ye[Me].length;qn+=1)Gi(Vt,ye[Me][qn],be+1,Me,Qe,ln,qn)}function Mr(Vt,ye,be,Me){var Qe=Bt.useMemo(function(){if(be!=null&&be.size){for(var ln=[],yn=0;yn<(Vt==null?void 0:Vt.length);yn+=1){var On=Vt[yn];Gi(ln,On,0,ye,be,Me,yn)}return ln}return Vt==null?void 0:Vt.map(function(li,qn){return{record:li,indent:0,index:qn}})},[Vt,ye,be,Me]);return Qe}function hr(Vt,ye,be,Me){var Qe=se(St,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ln=Qe.flattenColumns,yn=Qe.expandableType,On=Qe.expandedKeys,li=Qe.childrenColumnName,qn=Qe.onTriggerExpand,Ai=Qe.rowExpandable,ri=Qe.onRow,xi=Qe.expandRowByClick,di=Qe.rowClassName,ji=yn==="nest",_i=yn==="row"&&(!Ai||Ai(Vt)),Pr=_i||ji,zr=On&&On.has(ye),Yi=li&&Vt&&Vt[li],mr=ve(qn),nr=ri==null?void 0:ri(Vt,be),jr=nr==null?void 0:nr.onClick,Po=function(va){xi&&Pr&&qn(Vt,va);for(var $a=arguments.length,wa=new Array($a>1?$a-1:0),yo=1;yo<$a;yo++)wa[yo-1]=arguments[yo];jr==null||jr.apply(void 0,[va].concat(wa))},Or;typeof di=="string"?Or=di:typeof di=="function"&&(Or=di(Vt,be,Me));var ra=_e(ln);return(0,$t.Z)((0,$t.Z)({},Qe),{},{columnsKey:ra,nestExpandable:ji,expanded:zr,hasNestChildren:Yi,record:Vt,onTriggerExpand:mr,rowSupportExpand:_i,expandable:Pr,rowProps:(0,$t.Z)((0,$t.Z)({},nr),{},{className:Fe()(Or,nr==null?void 0:nr.className),onClick:Po})})}function Yn(Vt){var ye=Vt.prefixCls,be=Vt.children,Me=Vt.component,Qe=Vt.cellComponent,ln=Vt.className,yn=Vt.expanded,On=Vt.colSpan,li=Vt.isEmpty,qn=se(St,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ai=qn.scrollbarSize,ri=qn.fixHeader,xi=qn.fixColumn,di=qn.componentWidth,ji=qn.horizonScroll,_i=be;return(li?ji&&di:xi)&&(_i=Bt.createElement("div",{style:{width:di-(ri&&!li?Ai:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ye,"-expanded-row-fixed")},_i)),Bt.createElement(Me,{className:ln,style:{display:yn?null:"none"}},Bt.createElement($i,{component:Qe,prefixCls:ye,colSpan:On},_i))}var zi=Yn;function qo(Vt){var ye=Vt.prefixCls,be=Vt.record,Me=Vt.onExpand,Qe=Vt.expanded,ln=Vt.expandable,yn="".concat(ye,"-row-expand-icon");if(!ln)return Bt.createElement("span",{className:Fe()(yn,"".concat(ye,"-row-spaced"))});var On=function(qn){Me(be,qn),qn.stopPropagation()};return Bt.createElement("span",{className:Fe()(yn,(0,Le.Z)((0,Le.Z)({},"".concat(ye,"-row-expanded"),Qe),"".concat(ye,"-row-collapsed"),!Qe)),onClick:On})}function sa(Vt,ye,be){var Me=[];function Qe(ln){(ln||[]).forEach(function(yn,On){Me.push(ye(yn,On)),Qe(yn[be])})}return Qe(Vt),Me}function la(Vt,ye,be,Me){return typeof Vt=="string"?Vt:typeof Vt=="function"?Vt(ye,be,Me):""}function Ke(Vt,ye,be,Me,Qe){var ln=Vt.record,yn=Vt.prefixCls,On=Vt.columnsKey,li=Vt.fixedInfoList,qn=Vt.expandIconColumnIndex,Ai=Vt.nestExpandable,ri=Vt.indentSize,xi=Vt.expandIcon,di=Vt.expanded,ji=Vt.hasNestChildren,_i=Vt.onTriggerExpand,Pr=On[be],zr=li[be],Yi;be===(qn||0)&&Ai&&(Yi=Bt.createElement(Bt.Fragment,null,Bt.createElement("span",{style:{paddingLeft:"".concat(ri*Me,"px")},className:"".concat(yn,"-row-indent indent-level-").concat(Me)}),xi({prefixCls:yn,expanded:di,expandable:ji,record:ln,onExpand:_i})));var mr;return ye.onCell&&(mr=ye.onCell(ln,Qe)),{key:Pr,fixedInfo:zr,appendCellNode:Yi,additionalCellProps:mr||{}}}function ur(Vt){var ye=Vt.className,be=Vt.style,Me=Vt.record,Qe=Vt.index,ln=Vt.renderIndex,yn=Vt.rowKey,On=Vt.indent,li=On===void 0?0:On,qn=Vt.rowComponent,Ai=Vt.cellComponent,ri=Vt.scopeCellComponent,xi=hr(Me,yn,Qe,li),di=xi.prefixCls,ji=xi.flattenColumns,_i=xi.expandedRowClassName,Pr=xi.expandedRowRender,zr=xi.rowProps,Yi=xi.expanded,mr=xi.rowSupportExpand,nr=Bt.useRef(!1);nr.current||(nr.current=Yi);var jr=la(_i,Me,Qe,li),Po=Bt.createElement(qn,(0,Se.Z)({},zr,{"data-row-key":yn,className:Fe()(ye,"".concat(di,"-row"),"".concat(di,"-row-level-").concat(li),zr==null?void 0:zr.className,(0,Le.Z)({},jr,li>=1)),style:(0,$t.Z)((0,$t.Z)({},be),zr==null?void 0:zr.style)}),ji.map(function(vo,va){var $a=vo.render,wa=vo.dataIndex,yo=vo.className,wo=Ke(xi,vo,va,li,Qe),tr=wo.key,Gr=wo.fixedInfo,ko=wo.appendCellNode,Bo=wo.additionalCellProps;return Bt.createElement($i,(0,Se.Z)({className:yo,ellipsis:vo.ellipsis,align:vo.align,scope:vo.rowScope,component:vo.rowScope?ri:Ai,prefixCls:di,key:tr,record:Me,index:Qe,renderIndex:ln,dataIndex:wa,render:$a,shouldCellUpdate:vo.shouldCellUpdate},Gr,{appendNode:ko,additionalProps:Bo}))})),Or;if(mr&&(nr.current||Yi)){var ra=Pr(Me,Qe,li+1,Yi);Or=Bt.createElement(zi,{expanded:Yi,className:Fe()("".concat(di,"-expanded-row"),"".concat(di,"-expanded-row-level-").concat(li+1),jr),prefixCls:di,component:qn,cellComponent:Ai,colSpan:ji.length,isEmpty:!1},ra)}return Bt.createElement(Bt.Fragment,null,Po,Or)}var Tr=gt(ur);function or(Vt){var ye=Vt.columnKey,be=Vt.onColumnResize,Me=Bt.useRef();return Bt.useEffect(function(){Me.current&&be(ye,Me.current.offsetWidth)},[]),Bt.createElement(bt.Z,{data:ye},Bt.createElement("td",{ref:Me,style:{padding:0,border:0,height:0}},Bt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Vo(Vt){var ye=Vt.prefixCls,be=Vt.columnsKey,Me=Vt.onColumnResize;return Bt.createElement("tr",{"aria-hidden":"true",className:"".concat(ye,"-measure-row"),style:{height:0,fontSize:0}},Bt.createElement(bt.Z.Collection,{onBatchResize:function(ln){ln.forEach(function(yn){var On=yn.data,li=yn.size;Me(On,li.offsetWidth)})}},be.map(function(Qe){return Bt.createElement(or,{key:Qe,columnKey:Qe,onColumnResize:Me})})))}function eo(Vt){var ye=Vt.data,be=Vt.measureColumnWidth,Me=se(St,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Qe=Me.prefixCls,ln=Me.getComponent,yn=Me.onColumnResize,On=Me.flattenColumns,li=Me.getRowKey,qn=Me.expandedKeys,Ai=Me.childrenColumnName,ri=Me.emptyNode,xi=Mr(ye,Ai,qn,li),di=Bt.useRef({renderWithProps:!1}),ji=ln(["body","wrapper"],"tbody"),_i=ln(["body","row"],"tr"),Pr=ln(["body","cell"],"td"),zr=ln(["body","cell"],"th"),Yi;ye.length?Yi=xi.map(function(nr,jr){var Po=nr.record,Or=nr.indent,ra=nr.index,vo=li(Po,jr);return Bt.createElement(Tr,{key:vo,rowKey:vo,record:Po,index:jr,renderIndex:ra,rowComponent:_i,cellComponent:Pr,scopeCellComponent:zr,indent:Or})}):Yi=Bt.createElement(zi,{expanded:!0,className:"".concat(Qe,"-placeholder"),prefixCls:Qe,component:_i,cellComponent:Pr,colSpan:On.length,isEmpty:!0},ri);var mr=_e(On);return Bt.createElement(_t.Provider,{value:di.current},Bt.createElement(ji,{className:"".concat(Qe,"-tbody")},be&&Bt.createElement(Vo,{prefixCls:Qe,columnsKey:mr,onColumnResize:yn}),Yi))}var uo=gt(eo),Xr=Mt(62978),Ir=["columnType"];function Mo(Vt){for(var ye=Vt.colWidths,be=Vt.columns,Me=Vt.columCount,Qe=se(St,["tableLayout"]),ln=Qe.tableLayout,yn=[],On=Me||be.length,li=!1,qn=On-1;qn>=0;qn-=1){var Ai=ye[qn],ri=be&&be[qn],xi=void 0,di=void 0;if(ri&&(xi=ri[Xr.v],ln==="auto"&&(di=ri.minWidth)),Ai||di||xi||li){var ji=xi||{},_i=ji.columnType,Pr=(0,Ur.Z)(ji,Ir);yn.unshift(Bt.createElement("col",(0,Se.Z)({key:qn,style:{width:Ai,minWidth:di}},Pr))),li=!0}}return Bt.createElement("colgroup",null,yn)}var Ln=Mo,$r=Mt(74902),Pn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Br(Vt,ye){return(0,Bt.useMemo)(function(){for(var be=[],Me=0;Me<ye;Me+=1){var Qe=Vt[Me];if(Qe!==void 0)be[Me]=Qe;else return null}return be},[Vt.join("_"),ye])}var Ga=Bt.forwardRef(function(Vt,ye){var be=Vt.className,Me=Vt.noData,Qe=Vt.columns,ln=Vt.flattenColumns,yn=Vt.colWidths,On=Vt.columCount,li=Vt.stickyOffsets,qn=Vt.direction,Ai=Vt.fixHeader,ri=Vt.stickyTopOffset,xi=Vt.stickyBottomOffset,di=Vt.stickyClassName,ji=Vt.onScroll,_i=Vt.maxContentScroll,Pr=Vt.children,zr=(0,Ur.Z)(Vt,Pn),Yi=se(St,["prefixCls","scrollbarSize","isSticky","getComponent"]),mr=Yi.prefixCls,nr=Yi.scrollbarSize,jr=Yi.isSticky,Po=Yi.getComponent,Or=Po(["header","table"],"table"),ra=jr&&!Ai?0:nr,vo=Bt.useRef(null),va=Bt.useCallback(function(Bo){Je(ye,Bo),Je(vo,Bo)},[]);Bt.useEffect(function(){var Bo;function Oo(Ra){var Ko=Ra,ts=Ko.currentTarget,hs=Ko.deltaX;hs&&(ji({currentTarget:ts,scrollLeft:ts.scrollLeft+hs}),Ra.preventDefault())}return(Bo=vo.current)===null||Bo===void 0||Bo.addEventListener("wheel",Oo,{passive:!1}),function(){var Ra;(Ra=vo.current)===null||Ra===void 0||Ra.removeEventListener("wheel",Oo)}},[]);var $a=Bt.useMemo(function(){return ln.every(function(Bo){return Bo.width})},[ln]),wa=ln[ln.length-1],yo={fixed:wa?wa.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(mr,"-cell-scrollbar")}}},wo=(0,Bt.useMemo)(function(){return ra?[].concat((0,$r.Z)(Qe),[yo]):Qe},[ra,Qe]),tr=(0,Bt.useMemo)(function(){return ra?[].concat((0,$r.Z)(ln),[yo]):ln},[ra,ln]),Gr=(0,Bt.useMemo)(function(){var Bo=li.right,Oo=li.left;return(0,$t.Z)((0,$t.Z)({},li),{},{left:qn==="rtl"?[].concat((0,$r.Z)(Oo.map(function(Ra){return Ra+ra})),[0]):Oo,right:qn==="rtl"?Bo:[].concat((0,$r.Z)(Bo.map(function(Ra){return Ra+ra})),[0]),isSticky:jr})},[ra,li,jr]),ko=Br(yn,On);return Bt.createElement("div",{style:(0,$t.Z)({overflow:"hidden"},jr?{top:ri,bottom:xi}:{}),ref:va,className:Fe()(be,(0,Le.Z)({},di,!!di))},Bt.createElement(Or,{style:{tableLayout:"fixed",visibility:Me||ko?null:"hidden"}},(!Me||!_i||$a)&&Bt.createElement(Ln,{colWidths:ko?[].concat((0,$r.Z)(ko),[ra]):[],columCount:On+1,columns:tr}),Pr((0,$t.Z)((0,$t.Z)({},zr),{},{stickyOffsets:Gr,columns:wo,flattenColumns:tr}))))}),Te=Bt.memo(Ga),Ze=function(ye){var be=ye.cells,Me=ye.stickyOffsets,Qe=ye.flattenColumns,ln=ye.rowComponent,yn=ye.cellComponent,On=ye.onHeaderRow,li=ye.index,qn=se(St,["prefixCls","direction"]),Ai=qn.prefixCls,ri=qn.direction,xi;On&&(xi=On(be.map(function(ji){return ji.column}),li));var di=_e(be.map(function(ji){return ji.column}));return Bt.createElement(ln,xi,be.map(function(ji,_i){var Pr=ji.column,zr=pr(ji.colStart,ji.colEnd,Qe,Me,ri),Yi;return Pr&&Pr.onHeaderCell&&(Yi=ji.column.onHeaderCell(Pr)),Bt.createElement($i,(0,Se.Z)({},ji,{scope:Pr.title?ji.colSpan>1?"colgroup":"col":null,ellipsis:Pr.ellipsis,align:Pr.align,component:yn,prefixCls:Ai,key:di[_i]},zr,{additionalProps:Yi,rowType:"header"}))}))},sn=Ze;function zn(Vt){var ye=[];function be(yn,On){var li=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ye[li]=ye[li]||[];var qn=On,Ai=yn.filter(Boolean).map(function(ri){var xi={key:ri.key,className:ri.className||"",children:ri.title,column:ri,colStart:qn},di=1,ji=ri.children;return ji&&ji.length>0&&(di=be(ji,qn,li+1).reduce(function(_i,Pr){return _i+Pr},0),xi.hasSubColumns=!0),"colSpan"in ri&&(di=ri.colSpan),"rowSpan"in ri&&(xi.rowSpan=ri.rowSpan),xi.colSpan=di,xi.colEnd=xi.colStart+di-1,ye[li].push(xi),qn+=di,di});return Ai}be(Vt,0);for(var Me=ye.length,Qe=function(On){ye[On].forEach(function(li){!("rowSpan"in li)&&!li.hasSubColumns&&(li.rowSpan=Me-On)})},ln=0;ln<Me;ln+=1)Qe(ln);return ye}var Ii=function(ye){var be=ye.stickyOffsets,Me=ye.columns,Qe=ye.flattenColumns,ln=ye.onHeaderRow,yn=se(St,["prefixCls","getComponent"]),On=yn.prefixCls,li=yn.getComponent,qn=Bt.useMemo(function(){return zn(Me)},[Me]),Ai=li(["header","wrapper"],"thead"),ri=li(["header","row"],"tr"),xi=li(["header","cell"],"th");return Bt.createElement(Ai,{className:"".concat(On,"-thead")},qn.map(function(di,ji){var _i=Bt.createElement(sn,{key:ji,flattenColumns:Qe,cells:di,stickyOffsets:be,rowComponent:ri,cellComponent:xi,onHeaderRow:ln,index:ji});return _i}))},Nr=gt(Ii),lr=Mt(54768);function si(Vt,ye,be){var Me=(0,Xr.g)(Vt),Qe=Me.expandIcon,ln=Me.expandedRowKeys,yn=Me.defaultExpandedRowKeys,On=Me.defaultExpandAllRows,li=Me.expandedRowRender,qn=Me.onExpand,Ai=Me.onExpandedRowsChange,ri=Me.childrenColumnName,xi=Qe||qo,di=ri||"children",ji=Bt.useMemo(function(){return li?"row":Vt.expandable&&Vt.internalHooks===Pt.R&&Vt.expandable.__PARENT_RENDER_ICON__||ye.some(function(jr){return jr&&(0,oe.Z)(jr)==="object"&&jr[di]})?"nest":!1},[!!li,ye]),_i=Bt.useState(function(){return yn||(On?sa(ye,be,di):[])}),Pr=(0,ne.Z)(_i,2),zr=Pr[0],Yi=Pr[1],mr=Bt.useMemo(function(){return new Set(ln||zr||[])},[ln,zr]),nr=Bt.useCallback(function(jr){var Po=be(jr,ye.indexOf(jr)),Or,ra=mr.has(Po);ra?(mr.delete(Po),Or=(0,$r.Z)(mr)):Or=[].concat((0,$r.Z)(mr),[Po]),Yi(Or),qn&&qn(!ra,jr),Ai&&Ai(Or)},[be,mr,ye,qn,Ai]);return[Me,ji,mr,xi,di,nr]}function Zt(Vt,ye,be){var Me=Vt.map(function(Qe,ln){return pr(ln,ln,Vt,ye,be)});return rn(function(){return Me},[Me],function(Qe,ln){return!Bn(Qe,ln)})}function Ao(Vt){var ye=(0,Bt.useRef)(Vt),be=(0,Bt.useState)({}),Me=(0,ne.Z)(be,2),Qe=Me[1],ln=(0,Bt.useRef)(null),yn=(0,Bt.useRef)([]);function On(li){yn.current.push(li);var qn=Promise.resolve();ln.current=qn,qn.then(function(){if(ln.current===qn){var Ai=yn.current,ri=ye.current;yn.current=[],Ai.forEach(function(xi){ye.current=xi(ye.current)}),ln.current=null,ri!==ye.current&&Qe({})}})}return(0,Bt.useEffect)(function(){return function(){ln.current=null}},[]),[ye.current,On]}function rs(Vt){var ye=(0,Bt.useRef)(Vt||null),be=(0,Bt.useRef)();function Me(){window.clearTimeout(be.current)}function Qe(yn){ye.current=yn,Me(),be.current=window.setTimeout(function(){ye.current=null,be.current=void 0},100)}function ln(){return ye.current}return(0,Bt.useEffect)(function(){return Me},[]),[Qe,ln]}function Ls(){var Vt=Bt.useState(-1),ye=(0,ne.Z)(Vt,2),be=ye[0],Me=ye[1],Qe=Bt.useState(-1),ln=(0,ne.Z)(Qe,2),yn=ln[0],On=ln[1],li=Bt.useCallback(function(qn,Ai){Me(qn),On(Ai)},[]);return[be,yn,li]}var Xa=ze()?window:null;function Ea(Vt,ye){var be=(0,oe.Z)(Vt)==="object"?Vt:{},Me=be.offsetHeader,Qe=Me===void 0?0:Me,ln=be.offsetSummary,yn=ln===void 0?0:ln,On=be.offsetScroll,li=On===void 0?0:On,qn=be.getContainer,Ai=qn===void 0?function(){return Xa}:qn,ri=Ai()||Xa,xi=!!Vt;return Bt.useMemo(function(){return{isSticky:xi,stickyClassName:xi?"".concat(ye,"-sticky-holder"):"",offsetHeader:Qe,offsetSummary:yn,offsetScroll:li,container:ri}},[xi,li,Qe,yn,ye,ri])}function Eo(Vt,ye,be){var Me=(0,Bt.useMemo)(function(){var Qe=ye.length,ln=function(qn,Ai,ri){for(var xi=[],di=0,ji=qn;ji!==Ai;ji+=ri)xi.push(di),ye[ji].fixed&&(di+=Vt[ji]||0);return xi},yn=ln(0,Qe,1),On=ln(Qe-1,-1,-1).reverse();return be==="rtl"?{left:On,right:yn}:{left:yn,right:On}},[Vt,ye,be]);return Me}var gs=Eo;function os(Vt){var ye=Vt.className,be=Vt.children;return Bt.createElement("div",{className:ye},be)}var Ho=os;function _o(Vt,ye,be,Me){var Qe=Ut.unstable_batchedUpdates?function(yn){Ut.unstable_batchedUpdates(be,yn)}:be;return Vt!=null&&Vt.addEventListener&&Vt.addEventListener(ye,Qe,Me),{remove:function(){Vt!=null&&Vt.removeEventListener&&Vt.removeEventListener(ye,Qe,Me)}}}var er=function(ye){return+setTimeout(ye,16)},Qi=function(ye){return clearTimeout(ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(er=function(ye){return window.requestAnimationFrame(ye)},Qi=function(ye){return window.cancelAnimationFrame(ye)});var Er=0,hn=new Map;function ar(Vt){hn.delete(Vt)}var oo=function(ye){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Er+=1;var Me=Er;function Qe(ln){if(ln===0)ar(Me),ye();else{var yn=er(function(){Qe(ln-1)});hn.set(Me,yn)}}return Qe(be),Me};oo.cancel=function(Vt){var ye=hn.get(Vt);return ar(Vt),Qi(ye)};var ca=oo;function $o(Vt){return Vt instanceof HTMLElement||Vt instanceof SVGElement}function ia(Vt){return Vt&&(0,oe.Z)(Vt)==="object"&&$o(Vt.nativeElement)?Vt.nativeElement:$o(Vt)?Vt:null}function as(Vt){var ye=ia(Vt);if(ye)return ye;if(Vt instanceof React.Component){var be;return(be=ReactDOM.findDOMNode)===null||be===void 0?void 0:be.call(ReactDOM,Vt)}return null}function Ks(Vt){var ye=ia(Vt),be=ye.getBoundingClientRect(),Me=document.documentElement;return{left:be.left+(window.pageXOffset||Me.scrollLeft)-(Me.clientLeft||document.body.clientLeft||0),top:be.top+(window.pageYOffset||Me.scrollTop)-(Me.clientTop||document.body.clientTop||0)}}var vs=function(ye,be){var Me,Qe,ln=ye.scrollBodyRef,yn=ye.onScroll,On=ye.offsetScroll,li=ye.container,qn=ye.direction,Ai=se(St,"prefixCls"),ri=((Me=ln.current)===null||Me===void 0?void 0:Me.scrollWidth)||0,xi=((Qe=ln.current)===null||Qe===void 0?void 0:Qe.clientWidth)||0,di=ri&&xi*(xi/ri),ji=Bt.useRef(),_i=Ao({scrollLeft:0,isHiddenScrollBar:!0}),Pr=(0,ne.Z)(_i,2),zr=Pr[0],Yi=Pr[1],mr=Bt.useRef({delta:0,x:0}),nr=Bt.useState(!1),jr=(0,ne.Z)(nr,2),Po=jr[0],Or=jr[1],ra=Bt.useRef(null);Bt.useEffect(function(){return function(){ca.cancel(ra.current)}},[]);var vo=function(){Or(!1)},va=function(tr){tr.persist(),mr.current.delta=tr.pageX-zr.scrollLeft,mr.current.x=0,Or(!0),tr.preventDefault()},$a=function(tr){var Gr,ko=tr||((Gr=window)===null||Gr===void 0?void 0:Gr.event),Bo=ko.buttons;if(!Po||Bo===0){Po&&Or(!1);return}var Oo=mr.current.x+tr.pageX-mr.current.x-mr.current.delta,Ra=qn==="rtl";Oo=Math.max(Ra?di-xi:0,Math.min(Ra?0:xi-di,Oo));var Ko=!Ra||Math.abs(Oo)+Math.abs(di)<xi;Ko&&(yn({scrollLeft:Oo/xi*(ri+2)}),mr.current.x=tr.pageX)},wa=function(){ca.cancel(ra.current),ra.current=ca(function(){if(ln.current){var tr=Ks(ln.current).top,Gr=tr+ln.current.offsetHeight,ko=li===window?document.documentElement.scrollTop+window.innerHeight:Ks(li).top+li.clientHeight;Gr-Pi()<=ko||tr>=ko-On?Yi(function(Bo){return(0,$t.Z)((0,$t.Z)({},Bo),{},{isHiddenScrollBar:!0})}):Yi(function(Bo){return(0,$t.Z)((0,$t.Z)({},Bo),{},{isHiddenScrollBar:!1})})}})},yo=function(tr){Yi(function(Gr){return(0,$t.Z)((0,$t.Z)({},Gr),{},{scrollLeft:tr/ri*xi||0})})};return Bt.useImperativeHandle(be,function(){return{setScrollLeft:yo,checkScrollBarVisible:wa}}),Bt.useEffect(function(){var wo=_o(document.body,"mouseup",vo,!1),tr=_o(document.body,"mousemove",$a,!1);return wa(),function(){wo.remove(),tr.remove()}},[di,Po]),Bt.useEffect(function(){if(ln.current){for(var wo=[],tr=ia(ln.current);tr;)wo.push(tr),tr=tr.parentElement;return wo.forEach(function(Gr){return Gr.addEventListener("scroll",wa,!1)}),window.addEventListener("resize",wa,!1),window.addEventListener("scroll",wa,!1),li.addEventListener("scroll",wa,!1),function(){wo.forEach(function(Gr){return Gr.removeEventListener("scroll",wa)}),window.removeEventListener("resize",wa),window.removeEventListener("scroll",wa),li.removeEventListener("scroll",wa)}}},[li]),Bt.useEffect(function(){zr.isHiddenScrollBar||Yi(function(wo){var tr=ln.current;return tr?(0,$t.Z)((0,$t.Z)({},wo),{},{scrollLeft:tr.scrollLeft/tr.scrollWidth*tr.clientWidth}):wo})},[zr.isHiddenScrollBar]),ri<=xi||!di||zr.isHiddenScrollBar?null:Bt.createElement("div",{style:{height:Pi(),width:xi,bottom:On},className:"".concat(Ai,"-sticky-scroll")},Bt.createElement("div",{onMouseDown:va,ref:ji,className:Fe()("".concat(Ai,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(Ai,"-sticky-scroll-bar-active"),Po)),style:{width:"".concat(di,"px"),transform:"translate3d(".concat(zr.scrollLeft,"px, 0, 0)")}}))},au=Bt.forwardRef(vs);function ks(Vt){return null}var en=ks;function Us(Vt){return null}var kl=Us,xu="rc-table",ma=[],Pl={};function wl(){return"No Data"}function su(Vt,ye){var be=(0,$t.Z)({rowKey:"key",prefixCls:xu,emptyText:wl},Vt),Me=be.prefixCls,Qe=be.className,ln=be.rowClassName,yn=be.style,On=be.data,li=be.rowKey,qn=be.scroll,Ai=be.tableLayout,ri=be.direction,xi=be.title,di=be.footer,ji=be.summary,_i=be.caption,Pr=be.id,zr=be.showHeader,Yi=be.components,mr=be.emptyText,nr=be.onRow,jr=be.onHeaderRow,Po=be.onScroll,Or=be.internalHooks,ra=be.transformColumns,vo=be.internalRefs,va=be.tailor,$a=be.getContainerWidth,wa=be.sticky,yo=be.rowHoverable,wo=yo===void 0?!0:yo,tr=On||ma,Gr=!!tr.length,ko=Or===Pt.R,Bo=Bt.useCallback(function(Vr,vr){return an(Yi,Vr)||vr},[Yi]),Oo=Bt.useMemo(function(){return typeof li=="function"?li:function(Vr){var vr=Vr&&Vr[li];return vr}},[li]),Ra=Bo(["body"]),Ko=Ls(),ts=(0,ne.Z)(Ko,3),hs=ts[0],ws=ts[1],pl=ts[2],Ws=si(be,tr,Oo),oa=(0,ne.Z)(Ws,6),Ta=oa[0],Ja=oa[1],es=oa[2],Da=oa[3],Yr=oa[4],Wa=oa[5],Js=qn==null?void 0:qn.x,Ll=Bt.useState(0),jl=(0,ne.Z)(Ll,2),ql=jl[0],_l=jl[1],bu=(0,lr.Z)((0,$t.Z)((0,$t.Z)((0,$t.Z)({},be),Ta),{},{expandable:!!Ta.expandedRowRender,columnTitle:Ta.columnTitle,expandedKeys:es,getRowKey:Oo,onTriggerExpand:Wa,expandIcon:Da,expandIconColumnIndex:Ta.expandIconColumnIndex,direction:ri,scrollWidth:ko&&va&&typeof Js=="number"?Js:null,clientWidth:ql}),ko?ra:null),Co=(0,ne.Z)(bu,4),$l=Co[0],ns=Co[1],Ml=Co[2],Tl=Co[3],el=Ml!=null?Ml:Js,Du=Bt.useMemo(function(){return{columns:$l,flattenColumns:ns}},[$l,ns]),Wl=Bt.useRef(),Vu=Bt.useRef(),zs=Bt.useRef(),Bu=Bt.useRef();Bt.useImperativeHandle(ye,function(){return{nativeElement:Wl.current,scrollTo:function(vr){var Go;if(zs.current instanceof HTMLElement){var bo=vr.index,Ia=vr.top,jo=vr.key;if(xe(Ia)){var aa;(aa=zs.current)===null||aa===void 0||aa.scrollTo({top:Ia})}else{var _a,xo=jo!=null?jo:Oo(tr[bo]);(_a=zs.current.querySelector('[data-row-key="'.concat(xo,'"]')))===null||_a===void 0||_a.scrollIntoView()}}else(Go=zs.current)!==null&&Go!==void 0&&Go.scrollTo&&zs.current.scrollTo(vr)}}});var ah=Bt.useRef(),Xh=Bt.useState(!1),Vc=(0,ne.Z)(Xh,2),lc=Vc[0],Dl=Vc[1],Sh=Bt.useState(!1),Bl=(0,ne.Z)(Sh,2),Ku=Bl[0],Ou=Bl[1],xh=Ao(new Map),kc=(0,ne.Z)(xh,2),uc=kc[0],Kc=kc[1],Fh=_e(ns),Uu=Fh.map(function(Vr){return uc.get(Vr)}),hc=Bt.useMemo(function(){return Uu},[Uu.join("_")]),Th=gs(hc,ns,ri),Es=qn&&Ye(qn.y),Gl=qn&&Ye(el)||!!Ta.fixed,sh=Gl&&ns.some(function(Vr){var vr=Vr.fixed;return vr}),yt=Bt.useRef(),Rt=Ea(wa,Me),It=Rt.isSticky,Kt=Rt.offsetHeader,me=Rt.offsetSummary,Re=Rt.offsetScroll,nn=Rt.stickyClassName,vn=Rt.container,Rn=Bt.useMemo(function(){return ji==null?void 0:ji(tr)},[ji,tr]),Jn=(Es||It)&&Bt.isValidElement(Rn)&&Rn.type===pa&&Rn.props.fixed,kn,wi,Hi;Es&&(wi={overflowY:Gr?"scroll":"auto",maxHeight:qn.y}),Gl&&(kn={overflowX:"auto"},Es||(wi={overflowY:"hidden"}),Hi={width:el===!0?"auto":el,minWidth:"100%"});var Oi=Bt.useCallback(function(Vr,vr){wn(Wl.current)&&Kc(function(Go){if(Go.get(Vr)!==vr){var bo=new Map(Go);return bo.set(Vr,vr),bo}return Go})},[]),pi=rs(null),Ei=(0,ne.Z)(pi,2),Ci=Ei[0],Kn=Ei[1];function ci(Vr,vr){vr&&(typeof vr=="function"?vr(Vr):vr.scrollLeft!==Vr&&(vr.scrollLeft=Vr,vr.scrollLeft!==Vr&&setTimeout(function(){vr.scrollLeft=Vr},0)))}var $n=ve(function(Vr){var vr=Vr.currentTarget,Go=Vr.scrollLeft,bo=ri==="rtl",Ia=typeof Go=="number"?Go:vr.scrollLeft,jo=vr||Pl;if(!Kn()||Kn()===jo){var aa;Ci(jo),ci(Ia,Vu.current),ci(Ia,zs.current),ci(Ia,ah.current),ci(Ia,(aa=yt.current)===null||aa===void 0?void 0:aa.setScrollLeft)}var _a=vr||Vu.current;if(_a){var xo=ko&&va&&typeof el=="number"?el:_a.scrollWidth,ya=_a.clientWidth;if(xo===ya){Dl(!1),Ou(!1);return}bo?(Dl(-Ia<xo-ya),Ou(-Ia>0)):(Dl(Ia>0),Ou(Ia<xo-ya))}}),yi=ve(function(Vr){$n(Vr),Po==null||Po(Vr)}),Ui=function(){if(Gl&&zs.current){var vr;$n({currentTarget:ia(zs.current),scrollLeft:(vr=zs.current)===null||vr===void 0?void 0:vr.scrollLeft})}else Dl(!1),Ou(!1)},Vi=function(vr){var Go,bo=vr.width;(Go=yt.current)===null||Go===void 0||Go.checkScrollBarVisible();var Ia=Wl.current?Wl.current.offsetWidth:bo;ko&&$a&&Wl.current&&(Ia=$a(Wl.current,Ia)||Ia),Ia!==ql&&(Ui(),_l(Ia))},Zi=Bt.useRef(!1);Bt.useEffect(function(){Zi.current&&Ui()},[Gl,On,$l.length]),Bt.useEffect(function(){Zi.current=!0},[]);var we=Bt.useState(0),yr=(0,ne.Z)(we,2),wr=yr[0],Hr=yr[1],po=Bt.useState(!0),Fr=(0,ne.Z)(po,2),Zr=Fr[0],ao=Fr[1];Bt.useEffect(function(){(!va||!ko)&&(zs.current instanceof Element?Hr(Li(zs.current).width):Hr(Li(Bu.current).width)),ao(Xn("position","sticky"))},[]),Bt.useEffect(function(){ko&&vo&&(vo.body.current=zs.current)});var Dr=Bt.useCallback(function(Vr){return Bt.createElement(Bt.Fragment,null,Bt.createElement(Nr,Vr),Jn==="top"&&Bt.createElement(Xi,Vr,Rn))},[Jn,Rn]),So=Bt.useCallback(function(Vr){return Bt.createElement(Xi,Vr,Rn)},[Rn]),ta=Bo(["table"],"table"),Wo=Bt.useMemo(function(){return Ai||(sh?el==="max-content"?"auto":"fixed":Es||It||ns.some(function(Vr){var vr=Vr.ellipsis;return vr})?"fixed":"auto")},[Es,sh,ns,Ai,It]),zo,to={colWidths:hc,columCount:ns.length,stickyOffsets:Th,onHeaderRow:jr,fixHeader:Es,scroll:qn},Lr=Bt.useMemo(function(){return Gr?null:typeof mr=="function"?mr():mr},[Gr,mr]),qr=Bt.createElement(uo,{data:tr,measureColumnWidth:Es||Gl||It}),Cr=Bt.createElement(Ln,{colWidths:ns.map(function(Vr){var vr=Vr.width;return vr}),columns:ns}),Uo=_i!=null?Bt.createElement("caption",{className:"".concat(Me,"-caption")},_i):void 0,fa=Fi(be,{data:!0}),No=Fi(be,{aria:!0});if(Es||It){var Qo;typeof Ra=="function"?(Qo=Ra(tr,{scrollbarSize:wr,ref:zs,onScroll:$n}),to.colWidths=ns.map(function(Vr,vr){var Go=Vr.width,bo=vr===ns.length-1?Go-wr:Go;return typeof bo=="number"&&!Number.isNaN(bo)?bo:0})):Qo=Bt.createElement("div",{style:(0,$t.Z)((0,$t.Z)({},kn),wi),onScroll:yi,ref:zs,className:Fe()("".concat(Me,"-body"))},Bt.createElement(ta,(0,Se.Z)({style:(0,$t.Z)((0,$t.Z)({},Hi),{},{tableLayout:Wo})},No),Uo,Cr,qr,!Jn&&Rn&&Bt.createElement(Xi,{stickyOffsets:Th,flattenColumns:ns},Rn)));var Ro=(0,$t.Z)((0,$t.Z)((0,$t.Z)({noData:!tr.length,maxContentScroll:Gl&&el==="max-content"},to),Du),{},{direction:ri,stickyClassName:nn,onScroll:$n});zo=Bt.createElement(Bt.Fragment,null,zr!==!1&&Bt.createElement(Te,(0,Se.Z)({},Ro,{stickyTopOffset:Kt,className:"".concat(Me,"-header"),ref:Vu}),Dr),Qo,Jn&&Jn!=="top"&&Bt.createElement(Te,(0,Se.Z)({},Ro,{stickyBottomOffset:me,className:"".concat(Me,"-summary"),ref:ah}),So),It&&zs.current&&zs.current instanceof Element&&Bt.createElement(au,{ref:yt,offsetScroll:Re,scrollBodyRef:zs,onScroll:$n,container:vn,direction:ri}))}else zo=Bt.createElement("div",{style:(0,$t.Z)((0,$t.Z)({},kn),wi),className:Fe()("".concat(Me,"-content")),onScroll:$n,ref:zs},Bt.createElement(ta,(0,Se.Z)({style:(0,$t.Z)((0,$t.Z)({},Hi),{},{tableLayout:Wo})},No),Uo,Cr,zr!==!1&&Bt.createElement(Nr,(0,Se.Z)({},to,Du)),qr,Rn&&Bt.createElement(Xi,{stickyOffsets:Th,flattenColumns:ns},Rn)));var ga=Bt.createElement("div",(0,Se.Z)({className:Fe()(Me,Qe,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Me,"-rtl"),ri==="rtl"),"".concat(Me,"-ping-left"),lc),"".concat(Me,"-ping-right"),Ku),"".concat(Me,"-layout-fixed"),Ai==="fixed"),"".concat(Me,"-fixed-header"),Es),"".concat(Me,"-fixed-column"),sh),"".concat(Me,"-fixed-column-gapped"),sh&&Tl),"".concat(Me,"-scroll-horizontal"),Gl),"".concat(Me,"-has-fix-left"),ns[0]&&ns[0].fixed),"".concat(Me,"-has-fix-right"),ns[ns.length-1]&&ns[ns.length-1].fixed==="right")),style:yn,id:Pr,ref:Wl},fa),xi&&Bt.createElement(Ho,{className:"".concat(Me,"-title")},xi(tr)),Bt.createElement("div",{ref:Bu,className:"".concat(Me,"-container")},zo),di&&Bt.createElement(Ho,{className:"".concat(Me,"-footer")},di(tr)));Gl&&(ga=Bt.createElement(bt.Z,{onResize:Vi},ga));var Io=Zt(ns,Th,ri),La=Bt.useMemo(function(){return{scrollX:el,prefixCls:Me,getComponent:Bo,scrollbarSize:wr,direction:ri,fixedInfoList:Io,isSticky:It,supportSticky:Zr,componentWidth:ql,fixHeader:Es,fixColumn:sh,horizonScroll:Gl,tableLayout:Wo,rowClassName:ln,expandedRowClassName:Ta.expandedRowClassName,expandIcon:Da,expandableType:Ja,expandRowByClick:Ta.expandRowByClick,expandedRowRender:Ta.expandedRowRender,onTriggerExpand:Wa,expandIconColumnIndex:Ta.expandIconColumnIndex,indentSize:Ta.indentSize,allColumnsFixedLeft:ns.every(function(Vr){return Vr.fixed==="left"}),emptyNode:Lr,columns:$l,flattenColumns:ns,onColumnResize:Oi,hoverStartRow:hs,hoverEndRow:ws,onHover:pl,rowExpandable:Ta.rowExpandable,onRow:nr,getRowKey:Oo,expandedKeys:es,childrenColumnName:Yr,rowHoverable:wo}},[el,Me,Bo,wr,ri,Io,It,Zr,ql,Es,sh,Gl,Wo,ln,Ta.expandedRowClassName,Da,Ja,Ta.expandRowByClick,Ta.expandedRowRender,Wa,Ta.expandIconColumnIndex,Ta.indentSize,Lr,$l,ns,Oi,hs,ws,pl,Ta.rowExpandable,nr,Oo,es,Yr,wo]);return Bt.createElement(St.Provider,{value:La},ga)}var Aa=Bt.forwardRef(su);function ps(Vt){return lt(Aa,Vt)}var so=ps();so.EXPAND_COLUMN=Pt.w,so.INTERNAL_HOOKS=Pt.R,so.Column=en,so.ColumnGroup=kl,so.Summary=bn;var Do=so;function ka(Vt){var ye=Bt.useRef();ye.current=Vt;var be=Bt.useCallback(function(){for(var Me,Qe=arguments.length,ln=new Array(Qe),yn=0;yn<Qe;yn++)ln[yn]=arguments[yn];return(Me=ye.current)===null||Me===void 0?void 0:Me.call.apply(Me,[ye].concat(ln))},[]);return be}function ls(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qi=ls()?Bt.useLayoutEffect:Bt.useEffect,Gu=function(ye,be){var Me=Bt.useRef(!0);qi(function(){return ye(Me.current)},be),qi(function(){return Me.current=!1,function(){Me.current=!0}},[])},zl=function(ye,be){Gu(function(Me){if(!Me)return ye()},be)},Cl=Gu;function Zh(Vt){var ye=React.useRef(!1),be=React.useState(Vt),Me=_slicedToArray(be,2),Qe=Me[0],ln=Me[1];React.useEffect(function(){return ye.current=!1,function(){ye.current=!0}},[]);function yn(On,li){li&&ye.current||ln(On)}return[Qe,yn]}function Zu(Vt){return Vt!==void 0}function Bi(Vt,ye){var be=ye||{},Me=be.defaultValue,Qe=be.value,ln=be.onChange,yn=be.postState,On=useState(function(){return Zu(Qe)?Qe:Zu(Me)?typeof Me=="function"?Me():Me:typeof Vt=="function"?Vt():Vt}),li=_slicedToArray(On,2),qn=li[0],Ai=li[1],ri=Qe!==void 0?Qe:qn,xi=yn?yn(ri):ri,di=useEvent(ln),ji=useState([ri]),_i=_slicedToArray(ji,2),Pr=_i[0],zr=_i[1];useLayoutUpdateEffect(function(){var mr=Pr[0];qn!==mr&&di(qn,mr)},[Pr]),useLayoutUpdateEffect(function(){Zu(Qe)||Ai(Qe)},[Qe]);var Yi=useEvent(function(mr,nr){Ai(mr,nr),zr([ri],nr)});return[xi,Yi]}function ds(Vt,ye,be){var Me=React.useRef({});return(!("value"in Me.current)||be(Me.current.condition,ye))&&(Me.current.value=Vt(),Me.current.condition=ye),Me.current.value}function Ns(Vt,ye){typeof Vt=="function"?Vt(ye):_typeof(Vt)==="object"&&Vt&&"current"in Vt&&(Vt.current=ye)}function Xl(){for(var Vt=arguments.length,ye=new Array(Vt),be=0;be<Vt;be++)ye[be]=arguments[be];var Me=ye.filter(function(Qe){return Qe});return Me.length<=1?Me[0]:function(Qe){ye.forEach(function(ln){Ns(ln,Qe)})}}function Ms(){for(var Vt=arguments.length,ye=new Array(Vt),be=0;be<Vt;be++)ye[be]=arguments[be];return useMemo(function(){return Xl.apply(void 0,ye)},ye,function(Me,Qe){return Me.length!==Qe.length||Me.every(function(ln,yn){return ln!==Qe[yn]})})}function Fs(Vt){var ye,be,Me=isMemo(Vt)?Vt.type.type:Vt.type;return!(typeof Me=="function"&&!((ye=Me.prototype)!==null&&ye!==void 0&&ye.render)||typeof Vt=="function"&&!((be=Vt.prototype)!==null&&be!==void 0&&be.render))}function no(Vt){return!isValidElement(Vt)||isFragment(Vt)?!1:Fs(Vt)}function Pa(Vt,ye,be,Me){if(!ye.length)return be;var Qe=_toArray(ye),ln=Qe[0],yn=Qe.slice(1),On;return!Vt&&typeof ln=="number"?On=[]:Array.isArray(Vt)?On=_toConsumableArray(Vt):On=_objectSpread({},Vt),Me&&be===void 0&&yn.length===1?delete On[ln][yn[0]]:On[ln]=Pa(On[ln],yn,be,Me),On}function Qr(Vt,ye,be){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ye.length&&Me&&be===void 0&&!get(Vt,ye.slice(0,-1))?Vt:Pa(Vt,ye,be,Me)}function ua(Vt){return _typeof(Vt)==="object"&&Vt!==null&&Object.getPrototypeOf(Vt)===Object.prototype}function Za(Vt){return Array.isArray(Vt)?[]:{}}var Xs=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Nl(){for(var Vt=arguments.length,ye=new Array(Vt),be=0;be<Vt;be++)ye[be]=arguments[be];var Me=Za(ye[0]);return ye.forEach(function(Qe){function ln(yn,On){var li=new Set(On),qn=get(Qe,yn),Ai=Array.isArray(qn);if(Ai||ua(qn)){if(!li.has(qn)){li.add(qn);var ri=get(Me,yn);Ai?Me=Qr(Me,yn,[]):(!ri||_typeof(ri)!=="object")&&(Me=Qr(Me,yn,Za(qn))),Xs(qn).forEach(function(xi){ln([].concat(_toConsumableArray(yn),[xi]),li)})}}else Me=Qr(Me,yn,qn)}ln([])}),Me}var Ts={},fl=[],Pu=function(ye){fl.push(ye)};function ph(Vt,ye){if(0)var be}function mh(Vt,ye){if(0)var be}function eh(){Ts={}}function Fu(Vt,ye,be){!ye&&!Ts[be]&&(Vt(!1,be),Ts[be]=!0)}function Yl(Vt,ye){Fu(ph,Vt,ye)}function ac(Vt,ye){Fu(mh,Vt,ye)}Yl.preMessage=Pu,Yl.resetWarned=eh,Yl.noteOnce=ac;var nh=null,dd=Bt.forwardRef(function(Vt,ye){var be=Vt.height,Me=Vt.offsetY,Qe=Vt.offsetX,ln=Vt.children,yn=Vt.prefixCls,On=Vt.onInnerResize,li=Vt.innerProps,qn=Vt.rtl,Ai=Vt.extra,ri={},xi={display:"flex",flexDirection:"column"};return Me!==void 0&&(ri={height:be,position:"relative",overflow:"hidden"},xi=(0,$t.Z)((0,$t.Z)({},xi),{},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({transform:"translateY(".concat(Me,"px)")},qn?"marginRight":"marginLeft",-Qe),"position","absolute"),"left",0),"right",0),"top",0))),Bt.createElement("div",{style:ri},Bt.createElement(bt.Z,{onResize:function(ji){var _i=ji.offsetHeight;_i&&On&&On()}},Bt.createElement("div",(0,Se.Z)({style:xi,className:Fe()((0,Le.Z)({},"".concat(yn,"-holder-inner"),yn)),ref:ye},li),ln,Ai)))});dd.displayName="Filler";var Dd=dd;function uf(Vt){var ye=Vt.children,be=Vt.setRef,Me=Bt.useCallback(function(Qe){be(Qe)},[]);return Bt.cloneElement(ye,{ref:Me})}function al(Vt,ye,be,Me,Qe,ln,yn,On){var li=On.getKey;return Vt.slice(ye,be+1).map(function(qn,Ai){var ri=ye+Ai,xi=yn(qn,ri,{style:{width:Me},offsetX:Qe}),di=li(qn);return Bt.createElement(uf,{key:di,setRef:function(_i){return ln(qn,_i)}},xi)})}function ag(Vt,ye,be,Me){var Qe=be-Vt,ln=ye-be,yn=Math.min(Qe,ln)*2;if(Me<=yn){var On=Math.floor(Me/2);return Me%2?be+On+1:be-On}return Qe>ln?be-(Me-ln):be+(Me-Qe)}function hf(Vt,ye,be){var Me=Vt.length,Qe=ye.length,ln,yn;if(Me===0&&Qe===0)return null;Me<Qe?(ln=Vt,yn=ye):(ln=ye,yn=Vt);var On={__EMPTY_ITEM__:!0};function li(ji){return ji!==void 0?be(ji):On}for(var qn=null,Ai=Math.abs(Me-Qe)!==1,ri=0;ri<yn.length;ri+=1){var xi=li(ln[ri]),di=li(yn[ri]);if(xi!==di){qn=ri,Ai=Ai||xi!==li(yn[ri+1]);break}}return qn===null?null:{index:qn,multiple:Ai}}function fd(Vt,ye,be){var Me=Bt.useState(Vt),Qe=(0,ne.Z)(Me,2),ln=Qe[0],yn=Qe[1],On=Bt.useState(null),li=(0,ne.Z)(On,2),qn=li[0],Ai=li[1];return Bt.useEffect(function(){var ri=hf(ln||[],Vt||[],ye);(ri==null?void 0:ri.index)!==void 0&&(be==null||be(ri.index),Ai(Vt[ri.index])),yn(Vt)},[Vt]),[qn]}var bc=function(ye){return+setTimeout(ye,16)},Hl=function(ye){return clearTimeout(ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(bc=function(ye){return window.requestAnimationFrame(ye)},Hl=function(ye){return window.cancelAnimationFrame(ye)});var Fl=0,ul=new Map;function bl(Vt){ul.delete(Vt)}var gd=function(ye){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fl+=1;var Me=Fl;function Qe(ln){if(ln===0)bl(Me),ye();else{var yn=bc(function(){Qe(ln-1)});ul.set(Me,yn)}}return Qe(be),Me};gd.cancel=function(Vt){var ye=ul.get(Vt);return bl(ye),Hl(ye)};var wu=gd,Ys=(typeof navigator=="undefined"?"undefined":(0,oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Nh=Ys,Zc=function(Vt,ye,be,Me){var Qe=(0,Bt.useRef)(!1),ln=(0,Bt.useRef)(null);function yn(){clearTimeout(ln.current),Qe.current=!0,ln.current=setTimeout(function(){Qe.current=!1},50)}var On=(0,Bt.useRef)({top:Vt,bottom:ye,left:be,right:Me});return On.current.top=Vt,On.current.bottom=ye,On.current.left=be,On.current.right=Me,function(li,qn){var Ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ri=li?qn<0&&On.current.left||qn>0&&On.current.right:qn<0&&On.current.top||qn>0&&On.current.bottom;return Ai&&ri?(clearTimeout(ln.current),Qe.current=!1):(!ri||Qe.current)&&yn(),!Qe.current&&ri}};function Bd(Vt,ye,be,Me,Qe,ln,yn){var On=(0,Bt.useRef)(0),li=(0,Bt.useRef)(null),qn=(0,Bt.useRef)(null),Ai=(0,Bt.useRef)(!1),ri=Zc(ye,be,Me,Qe);function xi(Yi,mr){if(wu.cancel(li.current),!ri(!1,mr)){var nr=Yi;if(!nr._virtualHandled)nr._virtualHandled=!0;else return;On.current+=mr,qn.current=mr,Nh||nr.preventDefault(),li.current=wu(function(){var jr=Ai.current?10:1;yn(On.current*jr,!1),On.current=0})}}function di(Yi,mr){yn(mr,!0),Nh||Yi.preventDefault()}var ji=(0,Bt.useRef)(null),_i=(0,Bt.useRef)(null);function Pr(Yi){if(Vt){wu.cancel(_i.current),_i.current=wu(function(){ji.current=null},2);var mr=Yi.deltaX,nr=Yi.deltaY,jr=Yi.shiftKey,Po=mr,Or=nr;(ji.current==="sx"||!ji.current&&jr&&nr&&!mr)&&(Po=nr,Or=0,ji.current="sx");var ra=Math.abs(Po),vo=Math.abs(Or);ji.current===null&&(ji.current=ln&&ra>vo?"x":"y"),ji.current==="y"?xi(Yi,Or):di(Yi,Po)}}function zr(Yi){Vt&&(Ai.current=Yi.detail===qn.current)}return[Pr,zr]}function br(Vt,ye,be,Me){var Qe=Bt.useMemo(function(){return[new Map,[]]},[Vt,be.id,Me]),ln=(0,ne.Z)(Qe,2),yn=ln[0],On=ln[1],li=function(Ai){var ri=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ai,xi=yn.get(Ai),di=yn.get(ri);if(xi===void 0||di===void 0)for(var ji=Vt.length,_i=On.length;_i<ji;_i+=1){var Pr,zr=Vt[_i],Yi=ye(zr);yn.set(Yi,_i);var mr=(Pr=be.get(Yi))!==null&&Pr!==void 0?Pr:Me;if(On[_i]=(On[_i-1]||0)+mr,Yi===Ai&&(xi=_i),Yi===ri&&(di=_i),xi!==void 0&&di!==void 0)break}return{top:On[xi-1]||0,bottom:On[di]}};return li}var cf=Mt(15671),Ee=Mt(43144),Vn=function(){function Vt(){(0,cf.Z)(this,Vt),(0,Le.Z)(this,"maps",void 0),(0,Le.Z)(this,"id",0),(0,Le.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ee.Z)(Vt,[{key:"set",value:function(be,Me){this.maps[be]=Me,this.id+=1,this.diffKeys.add(be)}},{key:"get",value:function(be){return this.maps[be]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Vt}(),Od=Vn;function df(Vt){var ye=parseFloat(Vt);return isNaN(ye)?0:ye}function Vh(Vt,ye,be){var Me=Bt.useState(0),Qe=(0,ne.Z)(Me,2),ln=Qe[0],yn=Qe[1],On=(0,Bt.useRef)(new Map),li=(0,Bt.useRef)(new Od),qn=(0,Bt.useRef)(0);function Ai(){qn.current+=1}function ri(){var di=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ai();var ji=function(){var zr=!1;On.current.forEach(function(Yi,mr){if(Yi&&Yi.offsetParent){var nr=Yi.offsetHeight,jr=getComputedStyle(Yi),Po=jr.marginTop,Or=jr.marginBottom,ra=df(Po),vo=df(Or),va=nr+ra+vo;li.current.get(mr)!==va&&(li.current.set(mr,va),zr=!0)}}),zr&&yn(function(Yi){return Yi+1})};if(di)ji();else{qn.current+=1;var _i=qn.current;Promise.resolve().then(function(){_i===qn.current&&ji()})}}function xi(di,ji){var _i=Vt(di),Pr=On.current.get(_i);ji?(On.current.set(_i,ji),ri()):On.current.delete(_i),!Pr!=!ji&&(ji?ye==null||ye(di):be==null||be(di))}return(0,Bt.useEffect)(function(){return Ai},[]),[xi,ri,li.current,ln]}var vh=14/15;function Lc(Vt,ye,be){var Me=(0,Bt.useRef)(!1),Qe=(0,Bt.useRef)(0),ln=(0,Bt.useRef)(0),yn=(0,Bt.useRef)(null),On=(0,Bt.useRef)(null),li,qn=function(di){if(Me.current){var ji=Math.ceil(di.touches[0].pageX),_i=Math.ceil(di.touches[0].pageY),Pr=Qe.current-ji,zr=ln.current-_i,Yi=Math.abs(Pr)>Math.abs(zr);Yi?Qe.current=ji:ln.current=_i;var mr=be(Yi,Yi?Pr:zr,!1,di);mr&&di.preventDefault(),clearInterval(On.current),mr&&(On.current=setInterval(function(){Yi?Pr*=vh:zr*=vh;var nr=Math.floor(Yi?Pr:zr);(!be(Yi,nr,!0)||Math.abs(nr)<=.1)&&clearInterval(On.current)},16))}},Ai=function(){Me.current=!1,li()},ri=function(di){li(),di.touches.length===1&&!Me.current&&(Me.current=!0,Qe.current=Math.ceil(di.touches[0].pageX),ln.current=Math.ceil(di.touches[0].pageY),yn.current=di.target,yn.current.addEventListener("touchmove",qn,{passive:!1}),yn.current.addEventListener("touchend",Ai,{passive:!0}))};li=function(){yn.current&&(yn.current.removeEventListener("touchmove",qn),yn.current.removeEventListener("touchend",Ai))},Cl(function(){return Vt&&ye.current.addEventListener("touchstart",ri,{passive:!0}),function(){var xi;(xi=ye.current)===null||xi===void 0||xi.removeEventListener("touchstart",ri),li(),clearInterval(On.current)}},[Vt])}function Mc(Vt){return Math.floor(Math.pow(Vt,.5))}function sc(Vt,ye){var be="touches"in Vt?Vt.touches[0]:Vt;return be[ye?"pageX":"pageY"]-window[ye?"scrollX":"scrollY"]}function Is(Vt,ye,be){Bt.useEffect(function(){var Me=ye.current;if(Vt&&Me){var Qe=!1,ln,yn,On=function(){wu.cancel(ln)},li=function xi(){On(),ln=wu(function(){be(yn),xi()})},qn=function(di){if(!(di.target.draggable||di.button!==0)){var ji=di;ji._virtualHandled||(ji._virtualHandled=!0,Qe=!0)}},Ai=function(){Qe=!1,On()},ri=function(di){if(Qe){var ji=sc(di,!1),_i=Me.getBoundingClientRect(),Pr=_i.top,zr=_i.bottom;if(ji<=Pr){var Yi=Pr-ji;yn=-Mc(Yi),li()}else if(ji>=zr){var mr=ji-zr;yn=Mc(mr),li()}else On()}};return Me.addEventListener("mousedown",qn),Me.ownerDocument.addEventListener("mouseup",Ai),Me.ownerDocument.addEventListener("mousemove",ri),function(){Me.removeEventListener("mousedown",qn),Me.ownerDocument.removeEventListener("mouseup",Ai),Me.ownerDocument.removeEventListener("mousemove",ri),On()}}},[Vt])}var ho=10;function Jl(Vt,ye,be,Me,Qe,ln,yn,On){var li=Bt.useRef(),qn=Bt.useState(null),Ai=(0,ne.Z)(qn,2),ri=Ai[0],xi=Ai[1];return Cl(function(){if(ri&&ri.times<ho){if(!Vt.current){xi(function(Oo){return(0,$t.Z)({},Oo)});return}ln();var di=ri.targetAlign,ji=ri.originAlign,_i=ri.index,Pr=ri.offset,zr=Vt.current.clientHeight,Yi=!1,mr=di,nr=null;if(zr){for(var jr=di||ji,Po=0,Or=0,ra=0,vo=Math.min(ye.length-1,_i),va=0;va<=vo;va+=1){var $a=Qe(ye[va]);Or=Po;var wa=be.get($a);ra=Or+(wa===void 0?Me:wa),Po=ra}for(var yo=jr==="top"?Pr:zr-Pr,wo=vo;wo>=0;wo-=1){var tr=Qe(ye[wo]),Gr=be.get(tr);if(Gr===void 0){Yi=!0;break}if(yo-=Gr,yo<=0)break}switch(jr){case"top":nr=Or-Pr;break;case"bottom":nr=ra-zr+Pr;break;default:{var ko=Vt.current.scrollTop,Bo=ko+zr;Or<ko?mr="top":ra>Bo&&(mr="bottom")}}nr!==null&&yn(nr),nr!==ri.lastTop&&(Yi=!0)}Yi&&xi((0,$t.Z)((0,$t.Z)({},ri),{},{times:ri.times+1,targetAlign:mr,lastTop:nr}))}},[ri,Vt.current]),function(di){if(di==null){On();return}if(wu.cancel(li.current),typeof di=="number")yn(di);else if(di&&(0,oe.Z)(di)==="object"){var ji,_i=di.align;"index"in di?ji=di.index:ji=ye.findIndex(function(Yi){return Qe(Yi)===di.key});var Pr=di.offset,zr=Pr===void 0?0:Pr;xi({times:0,index:ji,offset:zr,originAlign:_i})}}}var Tu=Bt.forwardRef(function(Vt,ye){var be=Vt.prefixCls,Me=Vt.rtl,Qe=Vt.scrollOffset,ln=Vt.scrollRange,yn=Vt.onStartMove,On=Vt.onStopMove,li=Vt.onScroll,qn=Vt.horizontal,Ai=Vt.spinSize,ri=Vt.containerSize,xi=Vt.style,di=Vt.thumbStyle,ji=Vt.showScrollBar,_i=Bt.useState(!1),Pr=(0,ne.Z)(_i,2),zr=Pr[0],Yi=Pr[1],mr=Bt.useState(null),nr=(0,ne.Z)(mr,2),jr=nr[0],Po=nr[1],Or=Bt.useState(null),ra=(0,ne.Z)(Or,2),vo=ra[0],va=ra[1],$a=!Me,wa=Bt.useRef(),yo=Bt.useRef(),wo=Bt.useState(ji),tr=(0,ne.Z)(wo,2),Gr=tr[0],ko=tr[1],Bo=Bt.useRef(),Oo=function(){ji===!0||ji===!1||(clearTimeout(Bo.current),ko(!0),Bo.current=setTimeout(function(){ko(!1)},3e3))},Ra=ln-ri||0,Ko=ri-Ai||0,ts=Bt.useMemo(function(){if(Qe===0||Ra===0)return 0;var Da=Qe/Ra;return Da*Ko},[Qe,Ra,Ko]),hs=function(Yr){Yr.stopPropagation(),Yr.preventDefault()},ws=Bt.useRef({top:ts,dragging:zr,pageY:jr,startTop:vo});ws.current={top:ts,dragging:zr,pageY:jr,startTop:vo};var pl=function(Yr){Yi(!0),Po(sc(Yr,qn)),va(ws.current.top),yn(),Yr.stopPropagation(),Yr.preventDefault()};Bt.useEffect(function(){var Da=function(Ll){Ll.preventDefault()},Yr=wa.current,Wa=yo.current;return Yr.addEventListener("touchstart",Da,{passive:!1}),Wa.addEventListener("touchstart",pl,{passive:!1}),function(){Yr.removeEventListener("touchstart",Da),Wa.removeEventListener("touchstart",pl)}},[]);var Ws=Bt.useRef();Ws.current=Ra;var oa=Bt.useRef();oa.current=Ko,Bt.useEffect(function(){if(zr){var Da,Yr=function(Ll){var jl=ws.current,ql=jl.dragging,_l=jl.pageY,bu=jl.startTop;wu.cancel(Da);var Co=wa.current.getBoundingClientRect(),$l=ri/(qn?Co.width:Co.height);if(ql){var ns=(sc(Ll,qn)-_l)*$l,Ml=bu;!$a&&qn?Ml-=ns:Ml+=ns;var Tl=Ws.current,el=oa.current,Du=el?Ml/el:0,Wl=Math.ceil(Du*Tl);Wl=Math.max(Wl,0),Wl=Math.min(Wl,Tl),Da=wu(function(){li(Wl,qn)})}},Wa=function(){Yi(!1),On()};return window.addEventListener("mousemove",Yr,{passive:!0}),window.addEventListener("touchmove",Yr,{passive:!0}),window.addEventListener("mouseup",Wa,{passive:!0}),window.addEventListener("touchend",Wa,{passive:!0}),function(){window.removeEventListener("mousemove",Yr),window.removeEventListener("touchmove",Yr),window.removeEventListener("mouseup",Wa),window.removeEventListener("touchend",Wa),wu.cancel(Da)}}},[zr]),Bt.useEffect(function(){return Oo(),function(){clearTimeout(Bo.current)}},[Qe]),Bt.useImperativeHandle(ye,function(){return{delayHidden:Oo}});var Ta="".concat(be,"-scrollbar"),Ja={position:"absolute",visibility:Gr?null:"hidden"},es={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return qn?(Ja.height=8,Ja.left=0,Ja.right=0,Ja.bottom=0,es.height="100%",es.width=Ai,$a?es.left=ts:es.right=ts):(Ja.width=8,Ja.top=0,Ja.bottom=0,$a?Ja.right=0:Ja.left=0,es.width="100%",es.height=Ai,es.top=ts),Bt.createElement("div",{ref:wa,className:Fe()(Ta,(0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Ta,"-horizontal"),qn),"".concat(Ta,"-vertical"),!qn),"".concat(Ta,"-visible"),Gr)),style:(0,$t.Z)((0,$t.Z)({},Ja),xi),onMouseDown:hs,onMouseMove:Oo},Bt.createElement("div",{ref:yo,className:Fe()("".concat(Ta,"-thumb"),(0,Le.Z)({},"".concat(Ta,"-thumb-moving"),zr)),style:(0,$t.Z)((0,$t.Z)({},es),di),onMouseDown:pl}))}),Ps=Tu,da=20;function tl(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,be=Vt/ye*Vt;return isNaN(be)&&(be=0),be=Math.max(be,da),Math.floor(be)}var lu=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ss=[],Cu={overflowY:"auto",overflowAnchor:"none"};function gl(Vt,ye){var be=Vt.prefixCls,Me=be===void 0?"rc-virtual-list":be,Qe=Vt.className,ln=Vt.height,yn=Vt.itemHeight,On=Vt.fullHeight,li=On===void 0?!0:On,qn=Vt.style,Ai=Vt.data,ri=Vt.children,xi=Vt.itemKey,di=Vt.virtual,ji=Vt.direction,_i=Vt.scrollWidth,Pr=Vt.component,zr=Pr===void 0?"div":Pr,Yi=Vt.onScroll,mr=Vt.onVirtualScroll,nr=Vt.onVisibleChange,jr=Vt.innerProps,Po=Vt.extraRender,Or=Vt.styles,ra=Vt.showScrollBar,vo=ra===void 0?"optional":ra,va=(0,Ur.Z)(Vt,lu),$a=Bt.useCallback(function(Kn){return typeof xi=="function"?xi(Kn):Kn==null?void 0:Kn[xi]},[xi]),wa=Vh($a,null,null),yo=(0,ne.Z)(wa,4),wo=yo[0],tr=yo[1],Gr=yo[2],ko=yo[3],Bo=!!(di!==!1&&ln&&yn),Oo=Bt.useMemo(function(){return Object.values(Gr.maps).reduce(function(Kn,ci){return Kn+ci},0)},[Gr.id,Gr.maps]),Ra=Bo&&Ai&&(Math.max(yn*Ai.length,Oo)>ln||!!_i),Ko=ji==="rtl",ts=Fe()(Me,(0,Le.Z)({},"".concat(Me,"-rtl"),Ko),Qe),hs=Ai||Ss,ws=(0,Bt.useRef)(),pl=(0,Bt.useRef)(),Ws=(0,Bt.useRef)(),oa=(0,Bt.useState)(0),Ta=(0,ne.Z)(oa,2),Ja=Ta[0],es=Ta[1],Da=(0,Bt.useState)(0),Yr=(0,ne.Z)(Da,2),Wa=Yr[0],Js=Yr[1],Ll=(0,Bt.useState)(!1),jl=(0,ne.Z)(Ll,2),ql=jl[0],_l=jl[1],bu=function(){_l(!0)},Co=function(){_l(!1)},$l={getKey:$a};function ns(Kn){es(function(ci){var $n;typeof Kn=="function"?$n=Kn(ci):$n=Kn;var yi=Fh($n);return ws.current.scrollTop=yi,yi})}var Ml=(0,Bt.useRef)({start:0,end:hs.length}),Tl=(0,Bt.useRef)(),el=fd(hs,$a),Du=(0,ne.Z)(el,1),Wl=Du[0];Tl.current=Wl;var Vu=Bt.useMemo(function(){if(!Bo)return{scrollHeight:void 0,start:0,end:hs.length-1,offset:void 0};if(!Ra){var Kn;return{scrollHeight:((Kn=pl.current)===null||Kn===void 0?void 0:Kn.offsetHeight)||0,start:0,end:hs.length-1,offset:void 0}}for(var ci=0,$n,yi,Ui,Vi=hs.length,Zi=0;Zi<Vi;Zi+=1){var we=hs[Zi],yr=$a(we),wr=Gr.get(yr),Hr=ci+(wr===void 0?yn:wr);Hr>=Ja&&$n===void 0&&($n=Zi,yi=ci),Hr>Ja+ln&&Ui===void 0&&(Ui=Zi),ci=Hr}return $n===void 0&&($n=0,yi=0,Ui=Math.ceil(ln/yn)),Ui===void 0&&(Ui=hs.length-1),Ui=Math.min(Ui+1,hs.length-1),{scrollHeight:ci,start:$n,end:Ui,offset:yi}},[Ra,Bo,Ja,hs,ko,ln]),zs=Vu.scrollHeight,Bu=Vu.start,ah=Vu.end,Xh=Vu.offset;Ml.current.start=Bu,Ml.current.end=ah,Bt.useLayoutEffect(function(){var Kn=Gr.getRecord();if(Kn.size===1){var ci=Array.from(Kn)[0],$n=hs[Bu];if($n){var yi=$a($n);if(yi===ci){var Ui=Gr.get(ci),Vi=Ui-yn;ns(function(Zi){return Zi+Vi})}}}Gr.resetRecord()},[zs]);var Vc=Bt.useState({width:0,height:ln}),lc=(0,ne.Z)(Vc,2),Dl=lc[0],Sh=lc[1],Bl=function(ci){Sh({width:ci.offsetWidth,height:ci.offsetHeight})},Ku=(0,Bt.useRef)(),Ou=(0,Bt.useRef)(),xh=Bt.useMemo(function(){return tl(Dl.width,_i)},[Dl.width,_i]),kc=Bt.useMemo(function(){return tl(Dl.height,zs)},[Dl.height,zs]),uc=zs-ln,Kc=(0,Bt.useRef)(uc);Kc.current=uc;function Fh(Kn){var ci=Kn;return Number.isNaN(Kc.current)||(ci=Math.min(ci,Kc.current)),ci=Math.max(ci,0),ci}var Uu=Ja<=0,hc=Ja>=uc,Th=Wa<=0,Es=Wa>=_i,Gl=Zc(Uu,hc,Th,Es),sh=function(){return{x:Ko?-Wa:Wa,y:Ja}},yt=(0,Bt.useRef)(sh()),Rt=ka(function(Kn){if(mr){var ci=(0,$t.Z)((0,$t.Z)({},sh()),Kn);(yt.current.x!==ci.x||yt.current.y!==ci.y)&&(mr(ci),yt.current=ci)}});function It(Kn,ci){var $n=Kn;ci?((0,Ut.flushSync)(function(){Js($n)}),Rt()):ns($n)}function Kt(Kn){var ci=Kn.currentTarget.scrollTop;ci!==Ja&&ns(ci),Yi==null||Yi(Kn),Rt()}var me=function(ci){var $n=ci,yi=_i?_i-Dl.width:0;return $n=Math.max($n,0),$n=Math.min($n,yi),$n},Re=ka(function(Kn,ci){ci?((0,Ut.flushSync)(function(){Js(function($n){var yi=$n+(Ko?-Kn:Kn);return me(yi)})}),Rt()):ns(function($n){var yi=$n+Kn;return yi})}),nn=Bd(Bo,Uu,hc,Th,Es,!!_i,Re),vn=(0,ne.Z)(nn,2),Rn=vn[0],Jn=vn[1];Lc(Bo,ws,function(Kn,ci,$n,yi){var Ui=yi;return Gl(Kn,ci,$n)?!1:!Ui||!Ui._virtualHandled?(Ui&&(Ui._virtualHandled=!0),Rn({preventDefault:function(){},deltaX:Kn?ci:0,deltaY:Kn?0:ci}),!0):!1}),Is(Ra,ws,function(Kn){ns(function(ci){return ci+Kn})}),Cl(function(){function Kn($n){var yi=Uu&&$n.detail<0,Ui=hc&&$n.detail>0;Bo&&!yi&&!Ui&&$n.preventDefault()}var ci=ws.current;return ci.addEventListener("wheel",Rn,{passive:!1}),ci.addEventListener("DOMMouseScroll",Jn,{passive:!0}),ci.addEventListener("MozMousePixelScroll",Kn,{passive:!1}),function(){ci.removeEventListener("wheel",Rn),ci.removeEventListener("DOMMouseScroll",Jn),ci.removeEventListener("MozMousePixelScroll",Kn)}},[Bo,Uu,hc]),Cl(function(){if(_i){var Kn=me(Wa);Js(Kn),Rt({x:Kn})}},[Dl.width,_i]);var kn=function(){var ci,$n;(ci=Ku.current)===null||ci===void 0||ci.delayHidden(),($n=Ou.current)===null||$n===void 0||$n.delayHidden()},wi=Jl(ws,hs,Gr,yn,$a,function(){return tr(!0)},ns,kn);Bt.useImperativeHandle(ye,function(){return{nativeElement:Ws.current,getScrollInfo:sh,scrollTo:function(ci){function $n(yi){return yi&&(0,oe.Z)(yi)==="object"&&("left"in yi||"top"in yi)}$n(ci)?(ci.left!==void 0&&Js(me(ci.left)),wi(ci.top)):wi(ci)}}}),Cl(function(){if(nr){var Kn=hs.slice(Bu,ah+1);nr(Kn,hs)}},[Bu,ah,hs]);var Hi=br(hs,$a,Gr,yn),Oi=Po==null?void 0:Po({start:Bu,end:ah,virtual:Ra,offsetX:Wa,offsetY:Xh,rtl:Ko,getSize:Hi}),pi=al(hs,Bu,ah,_i,Wa,wo,ri,$l),Ei=null;ln&&(Ei=(0,$t.Z)((0,Le.Z)({},li?"height":"maxHeight",ln),Cu),Bo&&(Ei.overflowY="hidden",_i&&(Ei.overflowX="hidden"),ql&&(Ei.pointerEvents="none")));var Ci={};return Ko&&(Ci.dir="rtl"),Bt.createElement("div",(0,Se.Z)({ref:Ws,style:(0,$t.Z)((0,$t.Z)({},qn),{},{position:"relative"}),className:ts},Ci,va),Bt.createElement(bt.Z,{onResize:Bl},Bt.createElement(zr,{className:"".concat(Me,"-holder"),style:Ei,ref:ws,onScroll:Kt,onMouseEnter:kn},Bt.createElement(Dd,{prefixCls:Me,height:zs,offsetX:Wa,offsetY:Xh,scrollWidth:_i,onInnerResize:tr,ref:pl,innerProps:jr,rtl:Ko,extra:Oi},pi))),Ra&&zs>ln&&Bt.createElement(Ps,{ref:Ku,prefixCls:Me,scrollOffset:Ja,scrollRange:zs,rtl:Ko,onScroll:It,onStartMove:bu,onStopMove:Co,spinSize:kc,containerSize:Dl.height,style:Or==null?void 0:Or.verticalScrollBar,thumbStyle:Or==null?void 0:Or.verticalScrollBarThumb,showScrollBar:vo}),Ra&&_i>Dl.width&&Bt.createElement(Ps,{ref:Ou,prefixCls:Me,scrollOffset:Wa,scrollRange:_i,rtl:Ko,onScroll:It,onStartMove:bu,onStopMove:Co,spinSize:xh,containerSize:Dl.width,horizontal:!0,style:Or==null?void 0:Or.horizontalScrollBar,thumbStyle:Or==null?void 0:Or.horizontalScrollBarThumb,showScrollBar:vo}))}var ih=Bt.forwardRef(gl);ih.displayName="List";var Va=ih,Ql=Va,Na=ue(null),Ha=ue(null);function us(Vt,ye,be){var Me=ye||1;return be[Vt+Me]-(be[Vt]||0)}function Hs(Vt){var ye=Vt.rowInfo,be=Vt.column,Me=Vt.colIndex,Qe=Vt.indent,ln=Vt.index,yn=Vt.component,On=Vt.renderIndex,li=Vt.record,qn=Vt.style,Ai=Vt.className,ri=Vt.inverse,xi=Vt.getHeight,di=be.render,ji=be.dataIndex,_i=be.className,Pr=be.width,zr=se(Ha,["columnsOffset"]),Yi=zr.columnsOffset,mr=Ke(ye,be,Me,Qe,ln),nr=mr.key,jr=mr.fixedInfo,Po=mr.appendCellNode,Or=mr.additionalCellProps,ra=Or.style,vo=Or.colSpan,va=vo===void 0?1:vo,$a=Or.rowSpan,wa=$a===void 0?1:$a,yo=Me-1,wo=us(yo,va,Yi),tr=va>1?Pr-wo:0,Gr=(0,$t.Z)((0,$t.Z)((0,$t.Z)({},ra),qn),{},{flex:"0 0 ".concat(wo,"px"),width:"".concat(wo,"px"),marginRight:tr,pointerEvents:"auto"}),ko=Bt.useMemo(function(){return ri?wa<=1:va===0||wa===0||wa>1},[wa,va,ri]);ko?Gr.visibility="hidden":ri&&(Gr.height=xi==null?void 0:xi(wa));var Bo=ko?function(){return null}:di,Oo={};return(wa===0||va===0)&&(Oo.rowSpan=1,Oo.colSpan=1),Bt.createElement($i,(0,Se.Z)({className:Fe()(_i,Ai),ellipsis:be.ellipsis,align:be.align,scope:be.rowScope,component:yn,prefixCls:ye.prefixCls,key:nr,record:li,index:ln,renderIndex:On,dataIndex:ji,render:Bo,shouldCellUpdate:be.shouldCellUpdate},jr,{appendNode:Po,additionalProps:(0,$t.Z)((0,$t.Z)({},Or),{},{style:Gr},Oo)}))}var Ka=Hs,Ec=["data","index","className","rowKey","style","extra","getHeight"],io=Bt.forwardRef(function(Vt,ye){var be=Vt.data,Me=Vt.index,Qe=Vt.className,ln=Vt.rowKey,yn=Vt.style,On=Vt.extra,li=Vt.getHeight,qn=(0,Ur.Z)(Vt,Ec),Ai=be.record,ri=be.indent,xi=be.index,di=se(St,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ji=di.scrollX,_i=di.flattenColumns,Pr=di.prefixCls,zr=di.fixColumn,Yi=di.componentWidth,mr=se(Na,["getComponent"]),nr=mr.getComponent,jr=hr(Ai,ln,Me,ri),Po=nr(["body","row"],"div"),Or=nr(["body","cell"],"div"),ra=jr.rowSupportExpand,vo=jr.expanded,va=jr.rowProps,$a=jr.expandedRowRender,wa=jr.expandedRowClassName,yo;if(ra&&vo){var wo=$a(Ai,Me,ri+1,vo),tr=la(wa,Ai,Me,ri),Gr={};zr&&(Gr={style:(0,Le.Z)({},"--virtual-width","".concat(Yi,"px"))});var ko="".concat(Pr,"-expanded-row-cell");yo=Bt.createElement(Po,{className:Fe()("".concat(Pr,"-expanded-row"),"".concat(Pr,"-expanded-row-level-").concat(ri+1),tr)},Bt.createElement($i,{component:Or,prefixCls:Pr,className:Fe()(ko,(0,Le.Z)({},"".concat(ko,"-fixed"),zr)),additionalProps:Gr},wo))}var Bo=(0,$t.Z)((0,$t.Z)({},yn),{},{width:ji});On&&(Bo.position="absolute",Bo.pointerEvents="none");var Oo=Bt.createElement(Po,(0,Se.Z)({},va,qn,{"data-row-key":ln,ref:ra?null:ye,className:Fe()(Qe,"".concat(Pr,"-row"),va==null?void 0:va.className,(0,Le.Z)({},"".concat(Pr,"-row-extra"),On)),style:(0,$t.Z)((0,$t.Z)({},Bo),va==null?void 0:va.style)}),_i.map(function(Ra,Ko){return Bt.createElement(Ka,{key:Ko,component:Or,rowInfo:jr,column:Ra,colIndex:Ko,indent:ri,index:Me,renderIndex:xi,record:Ai,inverse:On,getHeight:li})}));return ra?Bt.createElement("div",{ref:ye},Oo,yo):Oo}),Kh=gt(io),Fa=Kh,zf=Bt.forwardRef(function(Vt,ye){var be=Vt.data,Me=Vt.onScroll,Qe=se(St,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),ln=Qe.flattenColumns,yn=Qe.onColumnResize,On=Qe.getRowKey,li=Qe.expandedKeys,qn=Qe.prefixCls,Ai=Qe.childrenColumnName,ri=Qe.scrollX,xi=Qe.direction,di=se(Na),ji=di.sticky,_i=di.scrollY,Pr=di.listItemHeight,zr=di.getComponent,Yi=di.onScroll,mr=Bt.useRef(),nr=Mr(be,Ai,li,On),jr=Bt.useMemo(function(){var yo=0;return ln.map(function(wo){var tr=wo.width,Gr=wo.key;return yo+=tr,[Gr,tr,yo]})},[ln]),Po=Bt.useMemo(function(){return jr.map(function(yo){return yo[2]})},[jr]);Bt.useEffect(function(){jr.forEach(function(yo){var wo=(0,ne.Z)(yo,2),tr=wo[0],Gr=wo[1];yn(tr,Gr)})},[jr]),Bt.useImperativeHandle(ye,function(){var yo,wo={scrollTo:function(Gr){var ko;(ko=mr.current)===null||ko===void 0||ko.scrollTo(Gr)},nativeElement:(yo=mr.current)===null||yo===void 0?void 0:yo.nativeElement};return Object.defineProperty(wo,"scrollLeft",{get:function(){var Gr;return((Gr=mr.current)===null||Gr===void 0?void 0:Gr.getScrollInfo().x)||0},set:function(Gr){var ko;(ko=mr.current)===null||ko===void 0||ko.scrollTo({left:Gr})}}),wo});var Or=function(wo,tr){var Gr,ko=(Gr=nr[tr])===null||Gr===void 0?void 0:Gr.record,Bo=wo.onCell;if(Bo){var Oo,Ra=Bo(ko,tr);return(Oo=Ra==null?void 0:Ra.rowSpan)!==null&&Oo!==void 0?Oo:1}return 1},ra=function(wo){var tr=wo.start,Gr=wo.end,ko=wo.getSize,Bo=wo.offsetY;if(Gr<0)return null;for(var Oo=ln.filter(function(Da){return Or(Da,tr)===0}),Ra=tr,Ko=function(Yr){if(Oo=Oo.filter(function(Wa){return Or(Wa,Yr)===0}),!Oo.length)return Ra=Yr,1},ts=tr;ts>=0&&!Ko(ts);ts-=1);for(var hs=ln.filter(function(Da){return Or(Da,Gr)!==1}),ws=Gr,pl=function(Yr){if(hs=hs.filter(function(Wa){return Or(Wa,Yr)!==1}),!hs.length)return ws=Math.max(Yr-1,Gr),1},Ws=Gr;Ws<nr.length&&!pl(Ws);Ws+=1);for(var oa=[],Ta=function(Yr){var Wa=nr[Yr];if(!Wa)return 1;ln.some(function(Js){return Or(Js,Yr)>1})&&oa.push(Yr)},Ja=Ra;Ja<=ws;Ja+=1)Ta(Ja);var es=oa.map(function(Da){var Yr=nr[Da],Wa=On(Yr.record,Da),Js=function(ql){var _l=Da+ql-1,bu=On(nr[_l].record,_l),Co=ko(Wa,bu);return Co.bottom-Co.top},Ll=ko(Wa);return Bt.createElement(Fa,{key:Da,data:Yr,rowKey:Wa,index:Da,style:{top:-Bo+Ll.top},extra:!0,getHeight:Js})});return es},vo=Bt.useMemo(function(){return{columnsOffset:Po}},[Po]),va="".concat(qn,"-tbody"),$a=zr(["body","wrapper"]),wa={};return ji&&(wa.position="sticky",wa.bottom=0,(0,oe.Z)(ji)==="object"&&ji.offsetScroll&&(wa.bottom=ji.offsetScroll)),Bt.createElement(Ha.Provider,{value:vo},Bt.createElement(Ql,{fullHeight:!1,ref:mr,prefixCls:"".concat(va,"-virtual"),styles:{horizontalScrollBar:wa},className:va,height:_i,itemHeight:Pr||24,data:nr,itemKey:function(wo){return On(wo.record)},component:$a,scrollWidth:ri,direction:xi,onVirtualScroll:function(wo){var tr,Gr=wo.x;Me({currentTarget:(tr=mr.current)===null||tr===void 0?void 0:tr.nativeElement,scrollLeft:Gr})},onScroll:Yi,extraRender:ra},function(yo,wo,tr){var Gr=On(yo.record,wo);return Bt.createElement(Fa,{data:yo,rowKey:Gr,index:wo,style:tr.style})}))}),Ac=gt(zf),pd=Ac,ff=function(ye,be){var Me=be.ref,Qe=be.onScroll;return Bt.createElement(pd,{ref:Me,data:ye,onScroll:Qe})};function rh(Vt,ye){var be=Vt.data,Me=Vt.columns,Qe=Vt.scroll,ln=Vt.sticky,yn=Vt.prefixCls,On=yn===void 0?xu:yn,li=Vt.className,qn=Vt.listItemHeight,Ai=Vt.components,ri=Vt.onScroll,xi=Qe||{},di=xi.x,ji=xi.y;typeof di!="number"&&(di=1),typeof ji!="number"&&(ji=500);var _i=ve(function(Yi,mr){return an(Ai,Yi)||mr}),Pr=ve(ri),zr=Bt.useMemo(function(){return{sticky:ln,scrollY:ji,listItemHeight:qn,getComponent:_i,onScroll:Pr}},[ln,ji,qn,_i,Pr]);return Bt.createElement(Na.Provider,{value:zr},Bt.createElement(Do,(0,Se.Z)({},Vt,{className:Fe()(li,"".concat(On,"-virtual")),scroll:(0,$t.Z)((0,$t.Z)({},Qe),{},{x:di}),components:(0,$t.Z)((0,$t.Z)({},Ai),{},{body:be!=null&&be.length?ff:void 0}),columns:Me,internalHooks:Pt.R,tailor:!0,ref:ye})))}var Uh=Bt.forwardRef(rh);function oh(Vt){return lt(Uh,Vt)}var Ya=oh(),yh=null},62978:function(un,Nn,Mt){"use strict";Mt.d(Nn,{g:function(){return Bt},v:function(){return Pe}});var Pt=Mt(1413),ne=Mt(45987),Ne=Mt(40830),Be=["expandable"],Pe="RC_TABLE_INTERNAL_COL_DEFINE";function Bt(Ut){var ue=Ut.expandable,se=(0,ne.Z)(Ut,Be),Se;return"expandable"in Ut?Se=(0,Pt.Z)((0,Pt.Z)({},se),ue):Se=se,Se.showExpandColumn===!1&&(Se.expandIconColumnIndex=-1),Se}},63295:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Pe}});var Pt=Mt(71002),ne=Symbol.for("react.element"),Ne=Symbol.for("react.transitional.element"),Be=Symbol.for("react.fragment");function Pe(Bt){return Bt&&(0,Pt.Z)(Bt)==="object"&&(Bt.$$typeof===ne||Bt.$$typeof===Ne)&&Bt.type===Be}},40830:function(un,Nn,Mt){"use strict";var Pt={},ne=[],Ne=function(Xe){ne.push(Xe)};function Be(Se,Xe){if(0)var pe}function Pe(Se,Xe){if(0)var pe}function Bt(){Pt={}}function Ut(Se,Xe,pe){!Xe&&!Pt[pe]&&(Se(!1,pe),Pt[pe]=!0)}function ue(Se,Xe){Ut(Be,Se,Xe)}function se(Se,Xe){Ut(Pe,Se,Xe)}ue.preMessage=Ne,ue.resetWarned=Bt,ue.noteOnce=se,Nn.ZP=ue},46762:function(un,Nn){"use strict";var Mt;var Pt=Symbol.for("react.element"),ne=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),Ut=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),se=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Dt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case Pt:switch(ht=ht.type,ht){case Ne:case Pe:case Be:case Se:case Xe:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Ut:case se:case Ht:case pe:case Bt:return ht;default:return lt}}case ne:return lt}}}Mt=Ut,Mt=Bt,Mt=Pt,Mt=se,Mt=Ne,Mt=Ht,Mt=pe,Mt=ne,Mt=Pe,Mt=Be,Mt=Se,Mt=Xe,Mt=function(){return!1},Mt=function(){return!1},Mt=function(ht){return et(ht)===Ut},Mt=function(ht){return et(ht)===Bt},Mt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Pt},Mt=function(ht){return et(ht)===se},Mt=function(ht){return et(ht)===Ne},Mt=function(ht){return et(ht)===Ht},Mt=function(ht){return et(ht)===pe},Mt=function(ht){return et(ht)===ne},Mt=function(ht){return et(ht)===Pe},Mt=function(ht){return et(ht)===Be},Mt=function(ht){return et(ht)===Se},Mt=function(ht){return et(ht)===Xe},Mt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Ne||ht===Pe||ht===Be||ht===Se||ht===Xe||ht===Dt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===Ht||ht.$$typeof===pe||ht.$$typeof===Bt||ht.$$typeof===Ut||ht.$$typeof===se||ht.$$typeof===nt||ht.getModuleId!==void 0)},Mt=et},35110:function(un,Nn,Mt){"use strict";Mt(46762)},86128:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return mt}});var Pt=Mt(87462),ne=Mt(4942),Ne=Mt(1413),Be=Mt(97685),Pe=Mt(45987),Bt=Mt(67294),Ut=Mt(94184),ue=Mt.n(Ut),se=Mt(64217),Se=Mt(27822),Xe=function(St){for(var zt=St.prefixCls,Jt=St.level,re=St.isStart,oe=St.isEnd,$t="".concat(zt,"-indent-unit"),Le=[],de=0;de<Jt;de+=1)Le.push(Bt.createElement("span",{key:de,className:ue()($t,(0,ne.Z)((0,ne.Z)({},"".concat($t,"-start"),re[de]),"".concat($t,"-end"),oe[de]))}));return Bt.createElement("span",{"aria-hidden":"true",className:"".concat(zt,"-indent")},Le)},pe=Bt.memo(Xe),Ht=Mt(35381),Dt=Mt(1089),nt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],et="open",ht="close",lt="---",gt=function(St){var zt,Jt,re,oe=St.eventKey,$t=St.className,Le=St.style,de=St.dragOver,Fe=St.dragOverGapTop,rn=St.dragOverGapBottom,De=St.isLeaf,jn=St.isStart,Bn=St.isEnd,an=St.expanded,Zn=St.selected,_t=St.checked,Tt=St.halfChecked,ce=St.loading,_e=St.domRef,Ye=St.active,xe=St.data,on=St.onMouseMove,tn=St.selectable,Cn=(0,Pe.Z)(St,nt),Ie=Bt.useContext(Se.k),ve=Bt.useContext(Se.y),ze=Bt.useRef(null),je=Bt.useState(!1),He=(0,Be.Z)(je,2),Ot=He[0],Lt=He[1],wt=!!(Ie.disabled||St.disabled||(zt=ve.nodeDisabled)!==null&&zt!==void 0&&zt.call(ve,xe)),Ft=Bt.useMemo(function(){return!Ie.checkable||St.checkable===!1?!1:Ie.checkable},[Ie.checkable,St.checkable]),Wt=function(Fn){wt||Ie.onNodeSelect(Fn,(0,Dt.F)(St))},kt=function(Fn){wt||!Ft||St.disableCheckbox||Ie.onNodeCheck(Fn,(0,Dt.F)(St),!_t)},Xt=Bt.useMemo(function(){return typeof tn=="boolean"?tn:Ie.selectable},[tn,Ie.selectable]),$e=function(Fn){Ie.onNodeClick(Fn,(0,Dt.F)(St)),Xt?Wt(Fn):kt(Fn)},Je=function(Fn){Ie.onNodeDoubleClick(Fn,(0,Dt.F)(St))},fn=function(Fn){Ie.onNodeMouseEnter(Fn,(0,Dt.F)(St))},Ve=function(Fn){Ie.onNodeMouseLeave(Fn,(0,Dt.F)(St))},Mn=function(Fn){Ie.onNodeContextMenu(Fn,(0,Dt.F)(St))},Ue=Bt.useMemo(function(){return!!(Ie.draggable&&(!Ie.draggable.nodeDraggable||Ie.draggable.nodeDraggable(xe)))},[Ie.draggable,xe]),ti=function(Fn){Fn.stopPropagation(),Lt(!0),Ie.onNodeDragStart(Fn,St);try{Fn.dataTransfer.setData("text/plain","")}catch(Un){}},Qn=function(Fn){Fn.preventDefault(),Fn.stopPropagation(),Ie.onNodeDragEnter(Fn,St)},Hn=function(Fn){Fn.preventDefault(),Fn.stopPropagation(),Ie.onNodeDragOver(Fn,St)},pn=function(Fn){Fn.stopPropagation(),Ie.onNodeDragLeave(Fn,St)},gi=function(Fn){Fn.stopPropagation(),Lt(!1),Ie.onNodeDragEnd(Fn,St)},Mi=function(Fn){Fn.preventDefault(),Fn.stopPropagation(),Lt(!1),Ie.onNodeDrop(Fn,St)},In=function(Fn){ce||Ie.onNodeExpand(Fn,(0,Dt.F)(St))},ei=Bt.useMemo(function(){var wn=(0,Ht.Z)(Ie.keyEntities,oe)||{},Fn=wn.children;return!!(Fn||[]).length},[Ie.keyEntities,oe]),Ki=Bt.useMemo(function(){return De===!1?!1:De||!Ie.loadData&&!ei||Ie.loadData&&St.loaded&&!ei},[De,Ie.loadData,ei,St.loaded]);Bt.useEffect(function(){ce||typeof Ie.loadData=="function"&&an&&!Ki&&!St.loaded&&Ie.onNodeLoad((0,Dt.F)(St))},[ce,Ie.loadData,Ie.onNodeLoad,an,Ki,St]);var hi=Bt.useMemo(function(){var wn;return(wn=Ie.draggable)!==null&&wn!==void 0&&wn.icon?Bt.createElement("span",{className:"".concat(Ie.prefixCls,"-draggable-icon")},Ie.draggable.icon):null},[Ie.draggable]),$i=function(Fn){var Un=St.switcherIcon||Ie.switcherIcon;return typeof Un=="function"?Un((0,Ne.Z)((0,Ne.Z)({},St),{},{isLeaf:Fn})):Un},pr=function(){if(Ki){var Fn=$i(!0);return Fn!==!1?Bt.createElement("span",{className:ue()("".concat(Ie.prefixCls,"-switcher"),"".concat(Ie.prefixCls,"-switcher-noop"))},Fn):null}var Un=$i(!1);return Un!==!1?Bt.createElement("span",{onClick:In,className:ue()("".concat(Ie.prefixCls,"-switcher"),"".concat(Ie.prefixCls,"-switcher_").concat(an?et:ht))},Un):null},rr=Bt.useMemo(function(){if(!Ft)return null;var wn=typeof Ft!="boolean"?Ft:null;return Bt.createElement("span",{className:ue()("".concat(Ie.prefixCls,"-checkbox"),(0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(Ie.prefixCls,"-checkbox-checked"),_t),"".concat(Ie.prefixCls,"-checkbox-indeterminate"),!_t&&Tt),"".concat(Ie.prefixCls,"-checkbox-disabled"),wt||St.disableCheckbox)),onClick:kt,role:"checkbox","aria-checked":Tt?"mixed":_t,"aria-disabled":wt||St.disableCheckbox,"aria-label":"Select ".concat(typeof St.title=="string"?St.title:"tree node")},wn)},[Ft,_t,Tt,wt,St.disableCheckbox,St.title]),ki=Bt.useMemo(function(){return Ki?null:an?et:ht},[Ki,an]),sr=Bt.useMemo(function(){return Bt.createElement("span",{className:ue()("".concat(Ie.prefixCls,"-iconEle"),"".concat(Ie.prefixCls,"-icon__").concat(ki||"docu"),(0,ne.Z)({},"".concat(Ie.prefixCls,"-icon_loading"),ce))})},[Ie.prefixCls,ki,ce]),Ur=Bt.useMemo(function(){var wn=!!Ie.draggable,Fn=!St.disabled&&wn&&Ie.dragOverNodeKey===oe;return Fn?Ie.dropIndicatorRender({dropPosition:Ie.dropPosition,dropLevelOffset:Ie.dropLevelOffset,indent:Ie.indent,prefixCls:Ie.prefixCls,direction:Ie.direction}):null},[Ie.dropPosition,Ie.dropLevelOffset,Ie.indent,Ie.prefixCls,Ie.direction,Ie.draggable,Ie.dragOverNodeKey,Ie.dropIndicatorRender]),Jo=Bt.useMemo(function(){var wn=St.title,Fn=wn===void 0?lt:wn,Un="".concat(Ie.prefixCls,"-node-content-wrapper"),Xn;if(Ie.showIcon){var ai=St.icon||Ie.icon;Xn=ai?Bt.createElement("span",{className:ue()("".concat(Ie.prefixCls,"-iconEle"),"".concat(Ie.prefixCls,"-icon__customize"))},typeof ai=="function"?ai(St):ai):sr}else Ie.loadData&&ce&&(Xn=sr);var Tn;return typeof Fn=="function"?Tn=Fn(xe):Ie.titleRender?Tn=Ie.titleRender(xe):Tn=Fn,Bt.createElement("span",{ref:ze,title:typeof Fn=="string"?Fn:"",className:ue()(Un,"".concat(Un,"-").concat(ki||"normal"),(0,ne.Z)({},"".concat(Ie.prefixCls,"-node-selected"),!wt&&(Zn||Ot))),onMouseEnter:fn,onMouseLeave:Ve,onContextMenu:Mn,onClick:$e,onDoubleClick:Je},Xn,Bt.createElement("span",{className:"".concat(Ie.prefixCls,"-title")},Tn),Ur)},[Ie.prefixCls,Ie.showIcon,St,Ie.icon,sr,Ie.titleRender,xe,ki,fn,Ve,Mn,$e,Je]),Rr=(0,se.Z)(Cn,{aria:!0,data:!0}),To=(0,Ht.Z)(Ie.keyEntities,oe)||{},pa=To.level,co=Bn[Bn.length-1],Xi=!wt&&Ue,bn=Ie.draggingNodeKey===oe,bt=tn!==void 0?{"aria-selected":!!tn}:void 0;return Bt.createElement("div",(0,Pt.Z)({ref:_e,role:"treeitem","aria-expanded":De?void 0:an,className:ue()($t,"".concat(Ie.prefixCls,"-treenode"),(re={},(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)(re,"".concat(Ie.prefixCls,"-treenode-disabled"),wt),"".concat(Ie.prefixCls,"-treenode-switcher-").concat(an?"open":"close"),!De),"".concat(Ie.prefixCls,"-treenode-checkbox-checked"),_t),"".concat(Ie.prefixCls,"-treenode-checkbox-indeterminate"),Tt),"".concat(Ie.prefixCls,"-treenode-selected"),Zn),"".concat(Ie.prefixCls,"-treenode-loading"),ce),"".concat(Ie.prefixCls,"-treenode-active"),Ye),"".concat(Ie.prefixCls,"-treenode-leaf-last"),co),"".concat(Ie.prefixCls,"-treenode-draggable"),Ue),"dragging",bn),(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)(re,"drop-target",Ie.dropTargetKey===oe),"drop-container",Ie.dropContainerKey===oe),"drag-over",!wt&&de),"drag-over-gap-top",!wt&&Fe),"drag-over-gap-bottom",!wt&&rn),"filter-node",(Jt=Ie.filterTreeNode)===null||Jt===void 0?void 0:Jt.call(Ie,(0,Dt.F)(St))),"".concat(Ie.prefixCls,"-treenode-leaf"),Ki))),style:Le,draggable:Xi,onDragStart:Xi?ti:void 0,onDragEnter:Ue?Qn:void 0,onDragOver:Ue?Hn:void 0,onDragLeave:Ue?pn:void 0,onDrop:Ue?Mi:void 0,onDragEnd:Ue?gi:void 0,onMouseMove:on},bt,Rr),Bt.createElement(pe,{prefixCls:Ie.prefixCls,level:pa,isStart:jn,isEnd:Bn}),hi,pr(),rr,Jo)};gt.isTreeNode=1;var mt=gt},27822:function(un,Nn,Mt){"use strict";Mt.d(Nn,{k:function(){return ne},y:function(){return Ne}});var Pt=Mt(67294),ne=Pt.createContext(null),Ne=Pt.createContext({})},70593:function(un,Nn,Mt){"use strict";Mt.d(Nn,{OF:function(){return oe.Z},y6:function(){return ht.y},ZP:function(){return wt}});var Pt=Mt(87462),ne=Mt(71002),Ne=Mt(1413),Be=Mt(74902),Pe=Mt(15671),Bt=Mt(43144),Ut=Mt(97326),ue=Mt(60136),se=Mt(29388),Se=Mt(4942),Xe=Mt(94184),pe=Mt.n(Xe),Ht=Mt(15105),Dt=Mt(64217),nt=Mt(80334),et=Mt(67294),ht=Mt(27822),lt=function(Wt){var kt=Wt.dropPosition,Xt=Wt.dropLevelOffset,$e=Wt.indent,Je={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kt){case-1:Je.top=0,Je.left=-Xt*$e;break;case 1:Je.bottom=0,Je.left=-Xt*$e;break;case 0:Je.bottom=0,Je.left=$e;break}return et.createElement("div",{style:Je})},gt=lt;function mt(Ft){if(Ft==null)throw new TypeError("Cannot destructure "+Ft)}var xt=Mt(97685),St=Mt(45987),zt=Mt(8410),Jt=Mt(73299),re=Mt(62874),oe=Mt(86128);function $t(Ft,Wt){var kt=et.useState(!1),Xt=(0,xt.Z)(kt,2),$e=Xt[0],Je=Xt[1];(0,zt.Z)(function(){if($e)return Ft(),function(){Wt()}},[$e]),(0,zt.Z)(function(){return Je(!0),function(){Je(!1)}},[])}var Le=$t,de=Mt(1089),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],rn=et.forwardRef(function(Ft,Wt){var kt=Ft.className,Xt=Ft.style,$e=Ft.motion,Je=Ft.motionNodes,fn=Ft.motionType,Ve=Ft.onMotionStart,Mn=Ft.onMotionEnd,Ue=Ft.active,ti=Ft.treeNodeRequiredProps,Qn=(0,St.Z)(Ft,Fe),Hn=et.useState(!0),pn=(0,xt.Z)(Hn,2),gi=pn[0],Mi=pn[1],In=et.useContext(ht.k),ei=In.prefixCls,Ki=Je&&fn!=="hide";(0,zt.Z)(function(){Je&&Ki!==gi&&Mi(Ki)},[Je]);var hi=function(){Je&&Ve()},$i=et.useRef(!1),pr=function(){Je&&!$i.current&&($i.current=!0,Mn())};Le(hi,pr);var rr=function(sr){Ki===sr&&pr()};return Je?et.createElement(re.Z,(0,Pt.Z)({ref:Wt,visible:gi},$e,{motionAppear:fn==="show",onVisibleChanged:rr}),function(ki,sr){var Ur=ki.className,Jo=ki.style;return et.createElement("div",{ref:sr,className:pe()("".concat(ei,"-treenode-motion"),Ur),style:Jo},Je.map(function(Rr){var To=Object.assign({},(mt(Rr.data),Rr.data)),pa=Rr.title,co=Rr.key,Xi=Rr.isStart,bn=Rr.isEnd;delete To.children;var bt=(0,de.H8)(co,ti);return et.createElement(oe.Z,(0,Pt.Z)({},To,bt,{title:pa,active:Ue,data:Rr.data,key:co,isStart:Xi,isEnd:bn}))}))}):et.createElement(oe.Z,(0,Pt.Z)({domRef:Wt,className:kt,style:Xt},Qn,{active:Ue}))}),De=rn;function jn(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=Ft.length,Xt=Wt.length;if(Math.abs(kt-Xt)!==1)return{add:!1,key:null};function $e(Je,fn){var Ve=new Map;Je.forEach(function(Ue){Ve.set(Ue,!0)});var Mn=fn.filter(function(Ue){return!Ve.has(Ue)});return Mn.length===1?Mn[0]:null}return kt<Xt?{add:!0,key:$e(Ft,Wt)}:{add:!1,key:$e(Wt,Ft)}}function Bn(Ft,Wt,kt){var Xt=Ft.findIndex(function(Ve){return Ve.key===kt}),$e=Ft[Xt+1],Je=Wt.findIndex(function(Ve){return Ve.key===kt});if($e){var fn=Wt.findIndex(function(Ve){return Ve.key===$e.key});return Wt.slice(Je+1,fn)}return Wt.slice(Je+1)}var an=["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"],Zn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_t=function(){},Tt="RC_TREE_MOTION_".concat(Math.random()),ce={key:Tt},_e={key:Tt,level:0,index:0,pos:"0",node:ce,nodes:[ce]},Ye={parent:null,children:[],pos:_e.pos,data:ce,title:null,key:Tt,isStart:[],isEnd:[]};function xe(Ft,Wt,kt,Xt){return Wt===!1||!kt?Ft:Ft.slice(0,Math.ceil(kt/Xt)+1)}function on(Ft){var Wt=Ft.key,kt=Ft.pos;return(0,de.km)(Wt,kt)}function tn(Ft){for(var Wt=String(Ft.data.key),kt=Ft;kt.parent;)kt=kt.parent,Wt="".concat(kt.data.key," > ").concat(Wt);return Wt}var Cn=et.forwardRef(function(Ft,Wt){var kt=Ft.prefixCls,Xt=Ft.data,$e=Ft.selectable,Je=Ft.checkable,fn=Ft.expandedKeys,Ve=Ft.selectedKeys,Mn=Ft.checkedKeys,Ue=Ft.loadedKeys,ti=Ft.loadingKeys,Qn=Ft.halfCheckedKeys,Hn=Ft.keyEntities,pn=Ft.disabled,gi=Ft.dragging,Mi=Ft.dragOverNodeKey,In=Ft.dropPosition,ei=Ft.motion,Ki=Ft.height,hi=Ft.itemHeight,$i=Ft.virtual,pr=Ft.scrollWidth,rr=Ft.focusable,ki=Ft.activeItem,sr=Ft.focused,Ur=Ft.tabIndex,Jo=Ft.onKeyDown,Rr=Ft.onFocus,To=Ft.onBlur,pa=Ft.onActiveChange,co=Ft.onListChangeStart,Xi=Ft.onListChangeEnd,bn=(0,St.Z)(Ft,an),bt=et.useRef(null),wn=et.useRef(null);et.useImperativeHandle(Wt,function(){return{scrollTo:function(gr){bt.current.scrollTo(gr)},getIndentWidth:function(){return wn.current.offsetWidth}}});var Fn=et.useState(fn),Un=(0,xt.Z)(Fn,2),Xn=Un[0],ai=Un[1],Tn=et.useState(Xt),Di=(0,xt.Z)(Tn,2),te=Di[0],le=Di[1],ae=et.useState(Xt),Ae=(0,xt.Z)(ae,2),Sn=Ae[0],An=Ae[1],En=et.useState([]),ke=(0,xt.Z)(En,2),cn=ke[0],_n=ke[1],vi=et.useState(null),mn=(0,xt.Z)(vi,2),Oe=mn[0],ni=mn[1],Pi=et.useRef(Xt);Pi.current=Xt;function Li(){var Ni=Pi.current;le(Ni),An(Ni),_n([]),ni(null),Xi()}(0,zt.Z)(function(){ai(fn);var Ni=jn(Xn,fn);if(Ni.key!==null)if(Ni.add){var gr=te.findIndex(function(hr){var Yn=hr.key;return Yn===Ni.key}),xr=xe(Bn(te,Xt,Ni.key),$i,Ki,hi),Si=te.slice();Si.splice(gr+1,0,Ye),An(Si),_n(xr),ni("show")}else{var Fi=Xt.findIndex(function(hr){var Yn=hr.key;return Yn===Ni.key}),Gi=xe(Bn(Xt,te,Ni.key),$i,Ki,hi),Mr=Xt.slice();Mr.splice(Fi+1,0,Ye),An(Mr),_n(Gi),ni("hide")}else te!==Xt&&(le(Xt),An(Xt))},[fn,Xt]),et.useEffect(function(){gi||Li()},[gi]);var qe=ei?Sn:Xt,oi={expandedKeys:fn,selectedKeys:Ve,loadedKeys:Ue,loadingKeys:ti,checkedKeys:Mn,halfCheckedKeys:Qn,dragOverNodeKey:Mi,dropPosition:In,keyEntities:Hn};return et.createElement(et.Fragment,null,sr&&ki&&et.createElement("span",{style:Zn,"aria-live":"assertive"},tn(ki)),et.createElement("div",null,et.createElement("input",{style:Zn,disabled:rr===!1||pn,tabIndex:rr!==!1?Ur:null,onKeyDown:Jo,onFocus:Rr,onBlur:To,value:"",onChange:_t,"aria-label":"for screen reader"})),et.createElement("div",{className:"".concat(kt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},et.createElement("div",{className:"".concat(kt,"-indent")},et.createElement("div",{ref:wn,className:"".concat(kt,"-indent-unit")}))),et.createElement(Jt.Z,(0,Pt.Z)({},bn,{data:qe,itemKey:on,height:Ki,fullHeight:!1,virtual:$i,itemHeight:hi,scrollWidth:pr,prefixCls:"".concat(kt,"-list"),ref:bt,role:"tree",onVisibleChange:function(gr){gr.every(function(xr){return on(xr)!==Tt})&&Li()}}),function(Ni){var gr=Ni.pos,xr=Object.assign({},(mt(Ni.data),Ni.data)),Si=Ni.title,Fi=Ni.key,Gi=Ni.isStart,Mr=Ni.isEnd,hr=(0,de.km)(Fi,gr);delete xr.key,delete xr.children;var Yn=(0,de.H8)(hr,oi);return et.createElement(De,(0,Pt.Z)({},xr,Yn,{title:Si,active:!!ki&&Fi===ki.key,pos:gr,data:Ni.data,isStart:Gi,isEnd:Mr,motion:ei,motionNodes:Fi===Tt?cn:null,motionType:Oe,onMotionStart:co,onMotionEnd:Li,treeNodeRequiredProps:oi,onMouseMove:function(){pa(null)}}))}))}),Ie=Cn,ve=Mt(10225),ze=Mt(17341),je=Mt(35381),He=10,Ot=function(Ft){(0,ue.Z)(kt,Ft);var Wt=(0,se.Z)(kt);function kt(){var Xt;(0,Pe.Z)(this,kt);for(var $e=arguments.length,Je=new Array($e),fn=0;fn<$e;fn++)Je[fn]=arguments[fn];return Xt=Wt.call.apply(Wt,[this].concat(Je)),(0,Se.Z)((0,Ut.Z)(Xt),"destroyed",!1),(0,Se.Z)((0,Ut.Z)(Xt),"delayedDragEnterLogic",void 0),(0,Se.Z)((0,Ut.Z)(Xt),"loadingRetryTimes",{}),(0,Se.Z)((0,Ut.Z)(Xt),"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,de.w$)()}),(0,Se.Z)((0,Ut.Z)(Xt),"dragStartMousePosition",null),(0,Se.Z)((0,Ut.Z)(Xt),"dragNodeProps",null),(0,Se.Z)((0,Ut.Z)(Xt),"currentMouseOverDroppableNodeKey",null),(0,Se.Z)((0,Ut.Z)(Xt),"listRef",et.createRef()),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDragStart",function(Ve,Mn){var Ue=Xt.state,ti=Ue.expandedKeys,Qn=Ue.keyEntities,Hn=Xt.props.onDragStart,pn=Mn.eventKey;Xt.dragNodeProps=Mn,Xt.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var gi=(0,ve._5)(ti,pn);Xt.setState({draggingNodeKey:pn,dragChildrenKeys:(0,ve.wA)(pn,Qn),indent:Xt.listRef.current.getIndentWidth()}),Xt.setExpandedKeys(gi),window.addEventListener("dragend",Xt.onWindowDragEnd),Hn==null||Hn({event:Ve,node:(0,de.F)(Mn)})}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDragEnter",function(Ve,Mn){var Ue=Xt.state,ti=Ue.expandedKeys,Qn=Ue.keyEntities,Hn=Ue.dragChildrenKeys,pn=Ue.flattenNodes,gi=Ue.indent,Mi=Xt.props,In=Mi.onDragEnter,ei=Mi.onExpand,Ki=Mi.allowDrop,hi=Mi.direction,$i=Mn.pos,pr=Mn.eventKey;if(Xt.currentMouseOverDroppableNodeKey!==pr&&(Xt.currentMouseOverDroppableNodeKey=pr),!Xt.dragNodeProps){Xt.resetDragState();return}var rr=(0,ve.OM)(Ve,Xt.dragNodeProps,Mn,gi,Xt.dragStartMousePosition,Ki,pn,Qn,ti,hi),ki=rr.dropPosition,sr=rr.dropLevelOffset,Ur=rr.dropTargetKey,Jo=rr.dropContainerKey,Rr=rr.dropTargetPos,To=rr.dropAllowed,pa=rr.dragOverNodeKey;if(Hn.includes(Ur)||!To){Xt.resetDragState();return}if(Xt.delayedDragEnterLogic||(Xt.delayedDragEnterLogic={}),Object.keys(Xt.delayedDragEnterLogic).forEach(function(co){clearTimeout(Xt.delayedDragEnterLogic[co])}),Xt.dragNodeProps.eventKey!==Mn.eventKey&&(Ve.persist(),Xt.delayedDragEnterLogic[$i]=window.setTimeout(function(){if(Xt.state.draggingNodeKey!==null){var co=(0,Be.Z)(ti),Xi=(0,je.Z)(Qn,Mn.eventKey);Xi&&(Xi.children||[]).length&&(co=(0,ve.L0)(ti,Mn.eventKey)),Xt.props.hasOwnProperty("expandedKeys")||Xt.setExpandedKeys(co),ei==null||ei(co,{node:(0,de.F)(Mn),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),Xt.dragNodeProps.eventKey===Ur&&sr===0){Xt.resetDragState();return}Xt.setState({dragOverNodeKey:pa,dropPosition:ki,dropLevelOffset:sr,dropTargetKey:Ur,dropContainerKey:Jo,dropTargetPos:Rr,dropAllowed:To}),In==null||In({event:Ve,node:(0,de.F)(Mn),expandedKeys:ti})}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDragOver",function(Ve,Mn){var Ue=Xt.state,ti=Ue.dragChildrenKeys,Qn=Ue.flattenNodes,Hn=Ue.keyEntities,pn=Ue.expandedKeys,gi=Ue.indent,Mi=Xt.props,In=Mi.onDragOver,ei=Mi.allowDrop,Ki=Mi.direction;if(Xt.dragNodeProps){var hi=(0,ve.OM)(Ve,Xt.dragNodeProps,Mn,gi,Xt.dragStartMousePosition,ei,Qn,Hn,pn,Ki),$i=hi.dropPosition,pr=hi.dropLevelOffset,rr=hi.dropTargetKey,ki=hi.dropContainerKey,sr=hi.dropTargetPos,Ur=hi.dropAllowed,Jo=hi.dragOverNodeKey;ti.includes(rr)||!Ur||(Xt.dragNodeProps.eventKey===rr&&pr===0?Xt.state.dropPosition===null&&Xt.state.dropLevelOffset===null&&Xt.state.dropTargetKey===null&&Xt.state.dropContainerKey===null&&Xt.state.dropTargetPos===null&&Xt.state.dropAllowed===!1&&Xt.state.dragOverNodeKey===null||Xt.resetDragState():$i===Xt.state.dropPosition&&pr===Xt.state.dropLevelOffset&&rr===Xt.state.dropTargetKey&&ki===Xt.state.dropContainerKey&&sr===Xt.state.dropTargetPos&&Ur===Xt.state.dropAllowed&&Jo===Xt.state.dragOverNodeKey||Xt.setState({dropPosition:$i,dropLevelOffset:pr,dropTargetKey:rr,dropContainerKey:ki,dropTargetPos:sr,dropAllowed:Ur,dragOverNodeKey:Jo}),In==null||In({event:Ve,node:(0,de.F)(Mn)}))}}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDragLeave",function(Ve,Mn){Xt.currentMouseOverDroppableNodeKey===Mn.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(Xt.resetDragState(),Xt.currentMouseOverDroppableNodeKey=null);var Ue=Xt.props.onDragLeave;Ue==null||Ue({event:Ve,node:(0,de.F)(Mn)})}),(0,Se.Z)((0,Ut.Z)(Xt),"onWindowDragEnd",function(Ve){Xt.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",Xt.onWindowDragEnd)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDragEnd",function(Ve,Mn){var Ue=Xt.props.onDragEnd;Xt.setState({dragOverNodeKey:null}),Xt.cleanDragState(),Ue==null||Ue({event:Ve,node:(0,de.F)(Mn)}),Xt.dragNodeProps=null,window.removeEventListener("dragend",Xt.onWindowDragEnd)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDrop",function(Ve,Mn){var Ue,ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qn=Xt.state,Hn=Qn.dragChildrenKeys,pn=Qn.dropPosition,gi=Qn.dropTargetKey,Mi=Qn.dropTargetPos,In=Qn.dropAllowed;if(In){var ei=Xt.props.onDrop;if(Xt.setState({dragOverNodeKey:null}),Xt.cleanDragState(),gi!==null){var Ki=(0,Ne.Z)((0,Ne.Z)({},(0,de.H8)(gi,Xt.getTreeNodeRequiredProps())),{},{active:((Ue=Xt.getActiveItem())===null||Ue===void 0?void 0:Ue.key)===gi,data:(0,je.Z)(Xt.state.keyEntities,gi).node}),hi=Hn.includes(gi);(0,nt.ZP)(!hi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $i=(0,ve.yx)(Mi),pr={event:Ve,node:(0,de.F)(Ki),dragNode:Xt.dragNodeProps?(0,de.F)(Xt.dragNodeProps):null,dragNodesKeys:[Xt.dragNodeProps.eventKey].concat(Hn),dropToGap:pn!==0,dropPosition:pn+Number($i[$i.length-1])};ti||ei==null||ei(pr),Xt.dragNodeProps=null}}}),(0,Se.Z)((0,Ut.Z)(Xt),"cleanDragState",function(){var Ve=Xt.state.draggingNodeKey;Ve!==null&&Xt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Xt.dragStartMousePosition=null,Xt.currentMouseOverDroppableNodeKey=null}),(0,Se.Z)((0,Ut.Z)(Xt),"triggerExpandActionExpand",function(Ve,Mn){var Ue=Xt.state,ti=Ue.expandedKeys,Qn=Ue.flattenNodes,Hn=Mn.expanded,pn=Mn.key,gi=Mn.isLeaf;if(!(gi||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var Mi=Qn.filter(function(ei){return ei.key===pn})[0],In=(0,de.F)((0,Ne.Z)((0,Ne.Z)({},(0,de.H8)(pn,Xt.getTreeNodeRequiredProps())),{},{data:Mi.data}));Xt.setExpandedKeys(Hn?(0,ve._5)(ti,pn):(0,ve.L0)(ti,pn)),Xt.onNodeExpand(Ve,In)}}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeClick",function(Ve,Mn){var Ue=Xt.props,ti=Ue.onClick,Qn=Ue.expandAction;Qn==="click"&&Xt.triggerExpandActionExpand(Ve,Mn),ti==null||ti(Ve,Mn)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeDoubleClick",function(Ve,Mn){var Ue=Xt.props,ti=Ue.onDoubleClick,Qn=Ue.expandAction;Qn==="doubleClick"&&Xt.triggerExpandActionExpand(Ve,Mn),ti==null||ti(Ve,Mn)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeSelect",function(Ve,Mn){var Ue=Xt.state.selectedKeys,ti=Xt.state,Qn=ti.keyEntities,Hn=ti.fieldNames,pn=Xt.props,gi=pn.onSelect,Mi=pn.multiple,In=Mn.selected,ei=Mn[Hn.key],Ki=!In;Ki?Mi?Ue=(0,ve.L0)(Ue,ei):Ue=[ei]:Ue=(0,ve._5)(Ue,ei);var hi=Ue.map(function($i){var pr=(0,je.Z)(Qn,$i);return pr?pr.node:null}).filter(Boolean);Xt.setUncontrolledState({selectedKeys:Ue}),gi==null||gi(Ue,{event:"select",selected:Ki,node:Mn,selectedNodes:hi,nativeEvent:Ve.nativeEvent})}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeCheck",function(Ve,Mn,Ue){var ti=Xt.state,Qn=ti.keyEntities,Hn=ti.checkedKeys,pn=ti.halfCheckedKeys,gi=Xt.props,Mi=gi.checkStrictly,In=gi.onCheck,ei=Mn.key,Ki,hi={event:"check",node:Mn,checked:Ue,nativeEvent:Ve.nativeEvent};if(Mi){var $i=Ue?(0,ve.L0)(Hn,ei):(0,ve._5)(Hn,ei),pr=(0,ve._5)(pn,ei);Ki={checked:$i,halfChecked:pr},hi.checkedNodes=$i.map(function(Rr){return(0,je.Z)(Qn,Rr)}).filter(Boolean).map(function(Rr){return Rr.node}),Xt.setUncontrolledState({checkedKeys:$i})}else{var rr=(0,ze.S)([].concat((0,Be.Z)(Hn),[ei]),!0,Qn),ki=rr.checkedKeys,sr=rr.halfCheckedKeys;if(!Ue){var Ur=new Set(ki);Ur.delete(ei);var Jo=(0,ze.S)(Array.from(Ur),{checked:!1,halfCheckedKeys:sr},Qn);ki=Jo.checkedKeys,sr=Jo.halfCheckedKeys}Ki=ki,hi.checkedNodes=[],hi.checkedNodesPositions=[],hi.halfCheckedKeys=sr,ki.forEach(function(Rr){var To=(0,je.Z)(Qn,Rr);if(To){var pa=To.node,co=To.pos;hi.checkedNodes.push(pa),hi.checkedNodesPositions.push({node:pa,pos:co})}}),Xt.setUncontrolledState({checkedKeys:ki},!1,{halfCheckedKeys:sr})}In==null||In(Ki,hi)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeLoad",function(Ve){var Mn,Ue=Ve.key,ti=Xt.state.keyEntities,Qn=(0,je.Z)(ti,Ue);if(!(Qn!=null&&(Mn=Qn.children)!==null&&Mn!==void 0&&Mn.length)){var Hn=new Promise(function(pn,gi){Xt.setState(function(Mi){var In=Mi.loadedKeys,ei=In===void 0?[]:In,Ki=Mi.loadingKeys,hi=Ki===void 0?[]:Ki,$i=Xt.props,pr=$i.loadData,rr=$i.onLoad;if(!pr||ei.includes(Ue)||hi.includes(Ue))return null;var ki=pr(Ve);return ki.then(function(){var sr=Xt.state.loadedKeys,Ur=(0,ve.L0)(sr,Ue);rr==null||rr(Ur,{event:"load",node:Ve}),Xt.setUncontrolledState({loadedKeys:Ur}),Xt.setState(function(Jo){return{loadingKeys:(0,ve._5)(Jo.loadingKeys,Ue)}}),pn()}).catch(function(sr){if(Xt.setState(function(Jo){return{loadingKeys:(0,ve._5)(Jo.loadingKeys,Ue)}}),Xt.loadingRetryTimes[Ue]=(Xt.loadingRetryTimes[Ue]||0)+1,Xt.loadingRetryTimes[Ue]>=He){var Ur=Xt.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Xt.setUncontrolledState({loadedKeys:(0,ve.L0)(Ur,Ue)}),pn()}gi(sr)}),{loadingKeys:(0,ve.L0)(hi,Ue)}})});return Hn.catch(function(){}),Hn}}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeMouseEnter",function(Ve,Mn){var Ue=Xt.props.onMouseEnter;Ue==null||Ue({event:Ve,node:Mn})}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeMouseLeave",function(Ve,Mn){var Ue=Xt.props.onMouseLeave;Ue==null||Ue({event:Ve,node:Mn})}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeContextMenu",function(Ve,Mn){var Ue=Xt.props.onRightClick;Ue&&(Ve.preventDefault(),Ue({event:Ve,node:Mn}))}),(0,Se.Z)((0,Ut.Z)(Xt),"onFocus",function(){var Ve=Xt.props.onFocus;Xt.setState({focused:!0});for(var Mn=arguments.length,Ue=new Array(Mn),ti=0;ti<Mn;ti++)Ue[ti]=arguments[ti];Ve==null||Ve.apply(void 0,Ue)}),(0,Se.Z)((0,Ut.Z)(Xt),"onBlur",function(){var Ve=Xt.props.onBlur;Xt.setState({focused:!1}),Xt.onActiveChange(null);for(var Mn=arguments.length,Ue=new Array(Mn),ti=0;ti<Mn;ti++)Ue[ti]=arguments[ti];Ve==null||Ve.apply(void 0,Ue)}),(0,Se.Z)((0,Ut.Z)(Xt),"getTreeNodeRequiredProps",function(){var Ve=Xt.state,Mn=Ve.expandedKeys,Ue=Ve.selectedKeys,ti=Ve.loadedKeys,Qn=Ve.loadingKeys,Hn=Ve.checkedKeys,pn=Ve.halfCheckedKeys,gi=Ve.dragOverNodeKey,Mi=Ve.dropPosition,In=Ve.keyEntities;return{expandedKeys:Mn||[],selectedKeys:Ue||[],loadedKeys:ti||[],loadingKeys:Qn||[],checkedKeys:Hn||[],halfCheckedKeys:pn||[],dragOverNodeKey:gi,dropPosition:Mi,keyEntities:In}}),(0,Se.Z)((0,Ut.Z)(Xt),"setExpandedKeys",function(Ve){var Mn=Xt.state,Ue=Mn.treeData,ti=Mn.fieldNames,Qn=(0,de.oH)(Ue,Ve,ti);Xt.setUncontrolledState({expandedKeys:Ve,flattenNodes:Qn},!0)}),(0,Se.Z)((0,Ut.Z)(Xt),"onNodeExpand",function(Ve,Mn){var Ue=Xt.state.expandedKeys,ti=Xt.state,Qn=ti.listChanging,Hn=ti.fieldNames,pn=Xt.props,gi=pn.onExpand,Mi=pn.loadData,In=Mn.expanded,ei=Mn[Hn.key];if(!Qn){var Ki=Ue.includes(ei),hi=!In;if((0,nt.ZP)(In&&Ki||!In&&!Ki,"Expand state not sync with index check"),Ue=hi?(0,ve.L0)(Ue,ei):(0,ve._5)(Ue,ei),Xt.setExpandedKeys(Ue),gi==null||gi(Ue,{node:Mn,expanded:hi,nativeEvent:Ve.nativeEvent}),hi&&Mi){var $i=Xt.onNodeLoad(Mn);$i&&$i.then(function(){var pr=(0,de.oH)(Xt.state.treeData,Ue,Hn);Xt.setUncontrolledState({flattenNodes:pr})}).catch(function(){var pr=Xt.state.expandedKeys,rr=(0,ve._5)(pr,ei);Xt.setExpandedKeys(rr)})}}}),(0,Se.Z)((0,Ut.Z)(Xt),"onListChangeStart",function(){Xt.setUncontrolledState({listChanging:!0})}),(0,Se.Z)((0,Ut.Z)(Xt),"onListChangeEnd",function(){setTimeout(function(){Xt.setUncontrolledState({listChanging:!1})})}),(0,Se.Z)((0,Ut.Z)(Xt),"onActiveChange",function(Ve){var Mn=Xt.state.activeKey,Ue=Xt.props,ti=Ue.onActiveChange,Qn=Ue.itemScrollOffset,Hn=Qn===void 0?0:Qn;Mn!==Ve&&(Xt.setState({activeKey:Ve}),Ve!==null&&Xt.scrollTo({key:Ve,offset:Hn}),ti==null||ti(Ve))}),(0,Se.Z)((0,Ut.Z)(Xt),"getActiveItem",function(){var Ve=Xt.state,Mn=Ve.activeKey,Ue=Ve.flattenNodes;return Mn===null?null:Ue.find(function(ti){var Qn=ti.key;return Qn===Mn})||null}),(0,Se.Z)((0,Ut.Z)(Xt),"offsetActiveKey",function(Ve){var Mn=Xt.state,Ue=Mn.flattenNodes,ti=Mn.activeKey,Qn=Ue.findIndex(function(gi){var Mi=gi.key;return Mi===ti});Qn===-1&&Ve<0&&(Qn=Ue.length),Qn=(Qn+Ve+Ue.length)%Ue.length;var Hn=Ue[Qn];if(Hn){var pn=Hn.key;Xt.onActiveChange(pn)}else Xt.onActiveChange(null)}),(0,Se.Z)((0,Ut.Z)(Xt),"onKeyDown",function(Ve){var Mn=Xt.state,Ue=Mn.activeKey,ti=Mn.expandedKeys,Qn=Mn.checkedKeys,Hn=Mn.fieldNames,pn=Xt.props,gi=pn.onKeyDown,Mi=pn.checkable,In=pn.selectable;switch(Ve.which){case Ht.Z.UP:{Xt.offsetActiveKey(-1),Ve.preventDefault();break}case Ht.Z.DOWN:{Xt.offsetActiveKey(1),Ve.preventDefault();break}}var ei=Xt.getActiveItem();if(ei&&ei.data){var Ki=Xt.getTreeNodeRequiredProps(),hi=ei.data.isLeaf===!1||!!(ei.data[Hn.children]||[]).length,$i=(0,de.F)((0,Ne.Z)((0,Ne.Z)({},(0,de.H8)(Ue,Ki)),{},{data:ei.data,active:!0}));switch(Ve.which){case Ht.Z.LEFT:{hi&&ti.includes(Ue)?Xt.onNodeExpand({},$i):ei.parent&&Xt.onActiveChange(ei.parent.key),Ve.preventDefault();break}case Ht.Z.RIGHT:{hi&&!ti.includes(Ue)?Xt.onNodeExpand({},$i):ei.children&&ei.children.length&&Xt.onActiveChange(ei.children[0].key),Ve.preventDefault();break}case Ht.Z.ENTER:case Ht.Z.SPACE:{Mi&&!$i.disabled&&$i.checkable!==!1&&!$i.disableCheckbox?Xt.onNodeCheck({},$i,!Qn.includes(Ue)):!Mi&&In&&!$i.disabled&&$i.selectable!==!1&&Xt.onNodeSelect({},$i);break}}}gi==null||gi(Ve)}),(0,Se.Z)((0,Ut.Z)(Xt),"setUncontrolledState",function(Ve){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xt.destroyed){var ti=!1,Qn=!0,Hn={};Object.keys(Ve).forEach(function(pn){if(Xt.props.hasOwnProperty(pn)){Qn=!1;return}ti=!0,Hn[pn]=Ve[pn]}),ti&&(!Mn||Qn)&&Xt.setState((0,Ne.Z)((0,Ne.Z)({},Hn),Ue))}}),(0,Se.Z)((0,Ut.Z)(Xt),"scrollTo",function(Ve){Xt.listRef.current.scrollTo(Ve)}),Xt}return(0,Bt.Z)(kt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $e=this.props,Je=$e.activeKey,fn=$e.itemScrollOffset,Ve=fn===void 0?0:fn;Je!==void 0&&Je!==this.state.activeKey&&(this.setState({activeKey:Je}),Je!==null&&this.scrollTo({key:Je,offset:Ve}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var $e=this.state,Je=$e.focused,fn=$e.flattenNodes,Ve=$e.keyEntities,Mn=$e.draggingNodeKey,Ue=$e.activeKey,ti=$e.dropLevelOffset,Qn=$e.dropContainerKey,Hn=$e.dropTargetKey,pn=$e.dropPosition,gi=$e.dragOverNodeKey,Mi=$e.indent,In=this.props,ei=In.prefixCls,Ki=In.className,hi=In.style,$i=In.showLine,pr=In.focusable,rr=In.tabIndex,ki=rr===void 0?0:rr,sr=In.selectable,Ur=In.showIcon,Jo=In.icon,Rr=In.switcherIcon,To=In.draggable,pa=In.checkable,co=In.checkStrictly,Xi=In.disabled,bn=In.motion,bt=In.loadData,wn=In.filterTreeNode,Fn=In.height,Un=In.itemHeight,Xn=In.scrollWidth,ai=In.virtual,Tn=In.titleRender,Di=In.dropIndicatorRender,te=In.onContextMenu,le=In.onScroll,ae=In.direction,Ae=In.rootClassName,Sn=In.rootStyle,An=(0,Dt.Z)(this.props,{aria:!0,data:!0}),En;To&&((0,ne.Z)(To)==="object"?En=To:typeof To=="function"?En={nodeDraggable:To}:En={});var ke={prefixCls:ei,selectable:sr,showIcon:Ur,icon:Jo,switcherIcon:Rr,draggable:En,draggingNodeKey:Mn,checkable:pa,checkStrictly:co,disabled:Xi,keyEntities:Ve,dropLevelOffset:ti,dropContainerKey:Qn,dropTargetKey:Hn,dropPosition:pn,dragOverNodeKey:gi,indent:Mi,direction:ae,dropIndicatorRender:Di,loadData:bt,filterTreeNode:wn,titleRender:Tn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return et.createElement(ht.k.Provider,{value:ke},et.createElement("div",{className:pe()(ei,Ki,Ae,(0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(ei,"-show-line"),$i),"".concat(ei,"-focused"),Je),"".concat(ei,"-active-focused"),Ue!==null)),style:Sn},et.createElement(Ie,(0,Pt.Z)({ref:this.listRef,prefixCls:ei,style:hi,data:fn,disabled:Xi,selectable:sr,checkable:!!pa,motion:bn,dragging:Mn!==null,height:Fn,itemHeight:Un,virtual:ai,focusable:pr,focused:Je,tabIndex:ki,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:te,onScroll:le,scrollWidth:Xn},this.getTreeNodeRequiredProps(),An))))}}],[{key:"getDerivedStateFromProps",value:function($e,Je){var fn=Je.prevProps,Ve={prevProps:$e};function Mn(ki){return!fn&&$e.hasOwnProperty(ki)||fn&&fn[ki]!==$e[ki]}var Ue,ti=Je.fieldNames;if(Mn("fieldNames")&&(ti=(0,de.w$)($e.fieldNames),Ve.fieldNames=ti),Mn("treeData")?Ue=$e.treeData:Mn("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ue=(0,de.zn)($e.children)),Ue){Ve.treeData=Ue;var Qn=(0,de.I8)(Ue,{fieldNames:ti});Ve.keyEntities=(0,Ne.Z)((0,Se.Z)({},Tt,_e),Qn.keyEntities)}var Hn=Ve.keyEntities||Je.keyEntities;if(Mn("expandedKeys")||fn&&Mn("autoExpandParent"))Ve.expandedKeys=$e.autoExpandParent||!fn&&$e.defaultExpandParent?(0,ve.r7)($e.expandedKeys,Hn):$e.expandedKeys;else if(!fn&&$e.defaultExpandAll){var pn=(0,Ne.Z)({},Hn);delete pn[Tt];var gi=[];Object.keys(pn).forEach(function(ki){var sr=pn[ki];sr.children&&sr.children.length&&gi.push(sr.key)}),Ve.expandedKeys=gi}else!fn&&$e.defaultExpandedKeys&&(Ve.expandedKeys=$e.autoExpandParent||$e.defaultExpandParent?(0,ve.r7)($e.defaultExpandedKeys,Hn):$e.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,Ue||Ve.expandedKeys){var Mi=(0,de.oH)(Ue||Je.treeData,Ve.expandedKeys||Je.expandedKeys,ti);Ve.flattenNodes=Mi}if($e.selectable&&(Mn("selectedKeys")?Ve.selectedKeys=(0,ve.BT)($e.selectedKeys,$e):!fn&&$e.defaultSelectedKeys&&(Ve.selectedKeys=(0,ve.BT)($e.defaultSelectedKeys,$e))),$e.checkable){var In;if(Mn("checkedKeys")?In=(0,ve.E6)($e.checkedKeys)||{}:!fn&&$e.defaultCheckedKeys?In=(0,ve.E6)($e.defaultCheckedKeys)||{}:Ue&&(In=(0,ve.E6)($e.checkedKeys)||{checkedKeys:Je.checkedKeys,halfCheckedKeys:Je.halfCheckedKeys}),In){var ei=In,Ki=ei.checkedKeys,hi=Ki===void 0?[]:Ki,$i=ei.halfCheckedKeys,pr=$i===void 0?[]:$i;if(!$e.checkStrictly){var rr=(0,ze.S)(hi,!0,Hn);hi=rr.checkedKeys,pr=rr.halfCheckedKeys}Ve.checkedKeys=hi,Ve.halfCheckedKeys=pr}}return Mn("loadedKeys")&&(Ve.loadedKeys=$e.loadedKeys),Ve}}]),kt}(et.Component);(0,Se.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:gt,allowDrop:function(){return!0},expandAction:!1}),(0,Se.Z)(Ot,"TreeNode",oe.Z);var Lt=Ot,wt=Lt},10225:function(un,Nn,Mt){"use strict";Mt.d(Nn,{BT:function(){return et},E6:function(){return gt},L0:function(){return Se},OM:function(){return nt},_5:function(){return se},r7:function(){return mt},wA:function(){return pe},yx:function(){return Xe}});var Pt=Mt(74902),ne=Mt(71002),Ne=Mt(80334),Be=Mt(67294),Pe=Mt(86128),Bt=Mt(35381),Ut=Mt(1089),ue=null;function se(xt,St){if(!xt)return[];var zt=xt.slice(),Jt=zt.indexOf(St);return Jt>=0&&zt.splice(Jt,1),zt}function Se(xt,St){var zt=(xt||[]).slice();return zt.indexOf(St)===-1&&zt.push(St),zt}function Xe(xt){return xt.split("-")}function pe(xt,St){var zt=[],Jt=(0,Bt.Z)(St,xt);function re(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];oe.forEach(function($t){var Le=$t.key,de=$t.children;zt.push(Le),re(de)})}return re(Jt.children),zt}function Ht(xt){if(xt.parent){var St=Xe(xt.pos);return Number(St[St.length-1])===xt.parent.children.length-1}return!1}function Dt(xt){var St=Xe(xt.pos);return Number(St[St.length-1])===0}function nt(xt,St,zt,Jt,re,oe,$t,Le,de,Fe){var rn,De=xt.clientX,jn=xt.clientY,Bn=xt.target.getBoundingClientRect(),an=Bn.top,Zn=Bn.height,_t=(Fe==="rtl"?-1:1)*(((re==null?void 0:re.x)||0)-De),Tt=(_t-12)/Jt,ce=de.filter(function(wt){var Ft;return(Ft=Le[wt])===null||Ft===void 0||(Ft=Ft.children)===null||Ft===void 0?void 0:Ft.length}),_e=(0,Bt.Z)(Le,zt.eventKey);if(jn<an+Zn/2){var Ye=$t.findIndex(function(wt){return wt.key===_e.key}),xe=Ye<=0?0:Ye-1,on=$t[xe].key;_e=(0,Bt.Z)(Le,on)}var tn=_e.key,Cn=_e,Ie=_e.key,ve=0,ze=0;if(!ce.includes(tn))for(var je=0;je<Tt&&Ht(_e);je+=1)_e=_e.parent,ze+=1;var He=St.data,Ot=_e.node,Lt=!0;return Dt(_e)&&_e.level===0&&jn<an+Zn/2&&oe({dragNode:He,dropNode:Ot,dropPosition:-1})&&_e.key===zt.eventKey?ve=-1:(Cn.children||[]).length&&ce.includes(Ie)?oe({dragNode:He,dropNode:Ot,dropPosition:0})?ve=0:Lt=!1:ze===0?Tt>-1.5?oe({dragNode:He,dropNode:Ot,dropPosition:1})?ve=1:Lt=!1:oe({dragNode:He,dropNode:Ot,dropPosition:0})?ve=0:oe({dragNode:He,dropNode:Ot,dropPosition:1})?ve=1:Lt=!1:oe({dragNode:He,dropNode:Ot,dropPosition:1})?ve=1:Lt=!1,{dropPosition:ve,dropLevelOffset:ze,dropTargetKey:_e.key,dropTargetPos:_e.pos,dragOverNodeKey:Ie,dropContainerKey:ve===0?null:((rn=_e.parent)===null||rn===void 0?void 0:rn.key)||null,dropAllowed:Lt}}function et(xt,St){if(xt){var zt=St.multiple;return zt?xt.slice():xt.length?[xt[0]]:xt}}var ht=function(St){return St};function lt(xt,St){if(!xt)return[];var zt=St||{},Jt=zt.processProps,re=Jt===void 0?ht:Jt,oe=Array.isArray(xt)?xt:[xt];return oe.map(function($t){var Le=$t.children,de=_objectWithoutProperties($t,ue),Fe=lt(Le,St);return React.createElement(TreeNode,_extends({key:de.key},re(de)),Fe)})}function gt(xt){if(!xt)return null;var St;if(Array.isArray(xt))St={checkedKeys:xt,halfCheckedKeys:void 0};else if((0,ne.Z)(xt)==="object")St={checkedKeys:xt.checked||void 0,halfCheckedKeys:xt.halfChecked||void 0};else return(0,Ne.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return St}function mt(xt,St){var zt=new Set;function Jt(re){if(!zt.has(re)){var oe=(0,Bt.Z)(St,re);if(oe){zt.add(re);var $t=oe.parent,Le=oe.node;Le.disabled||$t&&Jt($t.key)}}}return(xt||[]).forEach(function(re){Jt(re)}),(0,Pt.Z)(zt)}},17341:function(un,Nn,Mt){"use strict";Mt.d(Nn,{S:function(){return Ut}});var Pt=Mt(80334),ne=Mt(35381);function Ne(ue,se){var Se=new Set;return ue.forEach(function(Xe){se.has(Xe)||Se.add(Xe)}),Se}function Be(ue){var se=ue||{},Se=se.disabled,Xe=se.disableCheckbox,pe=se.checkable;return!!(Se||Xe)||pe===!1}function Pe(ue,se,Se,Xe){for(var pe=new Set(ue),Ht=new Set,Dt=0;Dt<=Se;Dt+=1){var nt=se.get(Dt)||new Set;nt.forEach(function(gt){var mt=gt.key,xt=gt.node,St=gt.children,zt=St===void 0?[]:St;pe.has(mt)&&!Xe(xt)&&zt.filter(function(Jt){return!Xe(Jt.node)}).forEach(function(Jt){pe.add(Jt.key)})})}for(var et=new Set,ht=Se;ht>=0;ht-=1){var lt=se.get(ht)||new Set;lt.forEach(function(gt){var mt=gt.parent,xt=gt.node;if(!(Xe(xt)||!gt.parent||et.has(gt.parent.key))){if(Xe(gt.parent.node)){et.add(mt.key);return}var St=!0,zt=!1;(mt.children||[]).filter(function(Jt){return!Xe(Jt.node)}).forEach(function(Jt){var re=Jt.key,oe=pe.has(re);St&&!oe&&(St=!1),!zt&&(oe||Ht.has(re))&&(zt=!0)}),St&&pe.add(mt.key),zt&&Ht.add(mt.key),et.add(mt.key)}})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(Ne(Ht,pe))}}function Bt(ue,se,Se,Xe,pe){for(var Ht=new Set(ue),Dt=new Set(se),nt=0;nt<=Xe;nt+=1){var et=Se.get(nt)||new Set;et.forEach(function(mt){var xt=mt.key,St=mt.node,zt=mt.children,Jt=zt===void 0?[]:zt;!Ht.has(xt)&&!Dt.has(xt)&&!pe(St)&&Jt.filter(function(re){return!pe(re.node)}).forEach(function(re){Ht.delete(re.key)})})}Dt=new Set;for(var ht=new Set,lt=Xe;lt>=0;lt-=1){var gt=Se.get(lt)||new Set;gt.forEach(function(mt){var xt=mt.parent,St=mt.node;if(!(pe(St)||!mt.parent||ht.has(mt.parent.key))){if(pe(mt.parent.node)){ht.add(xt.key);return}var zt=!0,Jt=!1;(xt.children||[]).filter(function(re){return!pe(re.node)}).forEach(function(re){var oe=re.key,$t=Ht.has(oe);zt&&!$t&&(zt=!1),!Jt&&($t||Dt.has(oe))&&(Jt=!0)}),zt||Ht.delete(xt.key),Jt&&Dt.add(xt.key),ht.add(xt.key)}})}return{checkedKeys:Array.from(Ht),halfCheckedKeys:Array.from(Ne(Dt,Ht))}}function Ut(ue,se,Se,Xe){var pe=[],Ht;Xe?Ht=Xe:Ht=Be;var Dt=new Set(ue.filter(function(lt){var gt=!!(0,ne.Z)(Se,lt);return gt||pe.push(lt),gt})),nt=new Map,et=0;Object.keys(Se).forEach(function(lt){var gt=Se[lt],mt=gt.level,xt=nt.get(mt);xt||(xt=new Set,nt.set(mt,xt)),xt.add(gt),et=Math.max(et,mt)}),(0,Pt.ZP)(!pe.length,"Tree missing follow keys: ".concat(pe.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ht;return se===!0?ht=Pe(Dt,nt,et,Ht):ht=Bt(Dt,se.halfCheckedKeys,nt,et,Ht),ht}},35381:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Pt}});function Pt(ne,Ne){return ne[Ne]}},1089:function(un,Nn,Mt){"use strict";Mt.d(Nn,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return pe},oH:function(){return et},w$:function(){return Ht},zn:function(){return nt}});var Pt=Mt(71002),ne=Mt(74902),Ne=Mt(1413),Be=Mt(45987),Pe=Mt(50344),Bt=Mt(98423),Ut=Mt(80334),ue=Mt(35381),se=["children"];function Se(xt,St){return"".concat(xt,"-").concat(St)}function Xe(xt){return xt&&xt.type&&xt.type.isTreeNode}function pe(xt,St){return xt!=null?xt:St}function Ht(xt){var St=xt||{},zt=St.title,Jt=St._title,re=St.key,oe=St.children,$t=zt||"title";return{title:$t,_title:Jt||[$t],key:re||"key",children:oe||"children"}}function Dt(xt,St){var zt=new Map;function Jt(re){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(re||[]).forEach(function($t){var Le=$t[St.key],de=$t[St.children];warning(Le!=null,"Tree node must have a certain key: [".concat(oe).concat(Le,"]"));var Fe=String(Le);warning(!zt.has(Fe)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(Fe)),zt.set(Fe,!0),Jt(de,"".concat(oe).concat(Fe," > "))})}Jt(xt)}function nt(xt){function St(zt){var Jt=(0,Pe.Z)(zt);return Jt.map(function(re){if(!Xe(re))return(0,Ut.ZP)(!re,"Tree/TreeNode can only accept TreeNode as children."),null;var oe=re.key,$t=re.props,Le=$t.children,de=(0,Be.Z)($t,se),Fe=(0,Ne.Z)({key:oe},de),rn=St(Le);return rn.length&&(Fe.children=rn),Fe}).filter(function(re){return re})}return St(xt)}function et(xt,St,zt){var Jt=Ht(zt),re=Jt._title,oe=Jt.key,$t=Jt.children,Le=new Set(St===!0?[]:St),de=[];function Fe(rn){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return rn.map(function(jn,Bn){for(var an=Se(De?De.pos:"0",Bn),Zn=pe(jn[oe],an),_t,Tt=0;Tt<re.length;Tt+=1){var ce=re[Tt];if(jn[ce]!==void 0){_t=jn[ce];break}}var _e=Object.assign((0,Bt.Z)(jn,[].concat((0,ne.Z)(re),[oe,$t])),{title:_t,key:Zn,parent:De,pos:an,children:null,data:jn,isStart:[].concat((0,ne.Z)(De?De.isStart:[]),[Bn===0]),isEnd:[].concat((0,ne.Z)(De?De.isEnd:[]),[Bn===rn.length-1])});return de.push(_e),St===!0||Le.has(Zn)?_e.children=Fe(jn[$t]||[],_e):_e.children=[],_e})}return Fe(xt),de}function ht(xt,St,zt){var Jt={};(0,Pt.Z)(zt)==="object"?Jt=zt:Jt={externalGetKey:zt},Jt=Jt||{};var re=Jt,oe=re.childrenPropName,$t=re.externalGetKey,Le=re.fieldNames,de=Ht(Le),Fe=de.key,rn=de.children,De=oe||rn,jn;$t?typeof $t=="string"?jn=function(Zn){return Zn[$t]}:typeof $t=="function"&&(jn=function(Zn){return $t(Zn)}):jn=function(Zn,_t){return pe(Zn[Fe],_t)};function Bn(an,Zn,_t,Tt){var ce=an?an[De]:xt,_e=an?Se(_t.pos,Zn):"0",Ye=an?[].concat((0,ne.Z)(Tt),[an]):[];if(an){var xe=jn(an,_e),on={node:an,index:Zn,pos:_e,key:xe,parentPos:_t.node?_t.pos:null,level:_t.level+1,nodes:Ye};St(on)}ce&&ce.forEach(function(tn,Cn){Bn(tn,Cn,{node:an,pos:_e,level:_t?_t.level+1:-1},Ye)})}Bn(null)}function lt(xt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=St.initWrapper,Jt=St.processEntity,re=St.onProcessFinished,oe=St.externalGetKey,$t=St.childrenPropName,Le=St.fieldNames,de=arguments.length>2?arguments[2]:void 0,Fe=oe||de,rn={},De={},jn={posEntities:rn,keyEntities:De};return zt&&(jn=zt(jn)||jn),ht(xt,function(Bn){var an=Bn.node,Zn=Bn.index,_t=Bn.pos,Tt=Bn.key,ce=Bn.parentPos,_e=Bn.level,Ye=Bn.nodes,xe={node:an,nodes:Ye,index:Zn,key:Tt,pos:_t,level:_e},on=pe(Tt,_t);rn[_t]=xe,De[on]=xe,xe.parent=rn[ce],xe.parent&&(xe.parent.children=xe.parent.children||[],xe.parent.children.push(xe)),Jt&&Jt(xe,jn)},{externalGetKey:Fe,childrenPropName:$t,fieldNames:Le}),re&&re(jn),jn}function gt(xt,St){var zt=St.expandedKeys,Jt=St.selectedKeys,re=St.loadedKeys,oe=St.loadingKeys,$t=St.checkedKeys,Le=St.halfCheckedKeys,de=St.dragOverNodeKey,Fe=St.dropPosition,rn=St.keyEntities,De=(0,ue.Z)(rn,xt),jn={eventKey:xt,expanded:zt.indexOf(xt)!==-1,selected:Jt.indexOf(xt)!==-1,loaded:re.indexOf(xt)!==-1,loading:oe.indexOf(xt)!==-1,checked:$t.indexOf(xt)!==-1,halfChecked:Le.indexOf(xt)!==-1,pos:String(De?De.pos:""),dragOver:de===xt&&Fe===0,dragOverGapTop:de===xt&&Fe===-1,dragOverGapBottom:de===xt&&Fe===1};return jn}function mt(xt){var St=xt.data,zt=xt.expanded,Jt=xt.selected,re=xt.checked,oe=xt.loaded,$t=xt.loading,Le=xt.halfChecked,de=xt.dragOver,Fe=xt.dragOverGapTop,rn=xt.dragOverGapBottom,De=xt.pos,jn=xt.active,Bn=xt.eventKey,an=(0,Ne.Z)((0,Ne.Z)({},St),{},{expanded:zt,selected:Jt,checked:re,loaded:oe,loading:$t,halfChecked:Le,dragOver:de,dragOverGapTop:Fe,dragOverGapBottom:rn,pos:De,active:jn,key:Bn});return"props"in an||Object.defineProperty(an,"props",{get:function(){return(0,Ut.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xt}}),an}},36356:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Bn}});var Pt=Mt(87462),ne=Mt(15671),Ne=Mt(43144),Be=Mt(97326),Pe=Mt(60136),Bt=Mt(29388),Ut=Mt(4942),ue=Mt(67294),se=Mt(1413),Se=Mt(45987),Xe=Mt(71002),pe=Mt(74165),Ht=Mt(15861),Dt=Mt(74902),nt=Mt(94184),et=Mt.n(nt),ht=Mt(64217),lt=Mt(80334),gt=function(an,Zn){if(an&&Zn){var _t=Array.isArray(Zn)?Zn:Zn.split(","),Tt=an.name||"",ce=an.type||"",_e=ce.replace(/\/.*$/,"");return _t.some(function(Ye){var xe=Ye.trim();if(/^\*(\/\*)?$/.test(Ye))return!0;if(xe.charAt(0)==="."){var on=Tt.toLowerCase(),tn=xe.toLowerCase(),Cn=[tn];return(tn===".jpg"||tn===".jpeg")&&(Cn=[".jpg",".jpeg"]),Cn.some(function(Ie){return on.endsWith(Ie)})}return/\/\*$/.test(xe)?_e===xe.replace(/\/.*$/,""):ce===xe?!0:/^\w+$/.test(xe)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(xe,"'.Skip for check.")),!0):!1})}return!0};function mt(an,Zn){var _t="cannot ".concat(an.method," ").concat(an.action," ").concat(Zn.status,"'"),Tt=new Error(_t);return Tt.status=Zn.status,Tt.method=an.method,Tt.url=an.action,Tt}function xt(an){var Zn=an.responseText||an.response;if(!Zn)return Zn;try{return JSON.parse(Zn)}catch(_t){return Zn}}function St(an){var Zn=new XMLHttpRequest;an.onProgress&&Zn.upload&&(Zn.upload.onprogress=function(_e){_e.total>0&&(_e.percent=_e.loaded/_e.total*100),an.onProgress(_e)});var _t=new FormData;an.data&&Object.keys(an.data).forEach(function(ce){var _e=an.data[ce];if(Array.isArray(_e)){_e.forEach(function(Ye){_t.append("".concat(ce,"[]"),Ye)});return}_t.append(ce,_e)}),an.file instanceof Blob?_t.append(an.filename,an.file,an.file.name):_t.append(an.filename,an.file),Zn.onerror=function(_e){an.onError(_e)},Zn.onload=function(){return Zn.status<200||Zn.status>=300?an.onError(mt(an,Zn),xt(Zn)):an.onSuccess(xt(Zn),Zn)},Zn.open(an.method,an.action,!0),an.withCredentials&&"withCredentials"in Zn&&(Zn.withCredentials=!0);var Tt=an.headers||{};return Tt["X-Requested-With"]!==null&&Zn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Tt).forEach(function(ce){Tt[ce]!==null&&Zn.setRequestHeader(ce,Tt[ce])}),Zn.send(_t),{abort:function(){Zn.abort()}}}var zt=function(){var an=(0,Ht.Z)((0,pe.Z)().mark(function Zn(_t,Tt){var ce,_e,Ye,xe,on,tn,Cn,Ie;return(0,pe.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:tn=function(){return tn=(0,Ht.Z)((0,pe.Z)().mark(function He(Ot){return(0,pe.Z)().wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.abrupt("return",new Promise(function(Ft){Ot.file(function(Wt){Tt(Wt)?(Ot.fullPath&&!Wt.webkitRelativePath&&(Object.defineProperties(Wt,{webkitRelativePath:{writable:!0}}),Wt.webkitRelativePath=Ot.fullPath.replace(/^\//,""),Object.defineProperties(Wt,{webkitRelativePath:{writable:!1}})),Ft(Wt)):Ft(null)})}));case 1:case"end":return wt.stop()}},He)})),tn.apply(this,arguments)},on=function(He){return tn.apply(this,arguments)},xe=function(){return xe=(0,Ht.Z)((0,pe.Z)().mark(function He(Ot){var Lt,wt,Ft,Wt,kt;return(0,pe.Z)().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:Lt=Ot.createReader(),wt=[];case 2:return $e.next=5,new Promise(function(Je){Lt.readEntries(Je,function(){return Je([])})});case 5:if(Ft=$e.sent,Wt=Ft.length,Wt){$e.next=9;break}return $e.abrupt("break",12);case 9:for(kt=0;kt<Wt;kt++)wt.push(Ft[kt]);$e.next=2;break;case 12:return $e.abrupt("return",wt);case 13:case"end":return $e.stop()}},He)})),xe.apply(this,arguments)},Ye=function(He){return xe.apply(this,arguments)},ce=[],_e=[],_t.forEach(function(je){return _e.push(je.webkitGetAsEntry())}),Cn=function(){var je=(0,Ht.Z)((0,pe.Z)().mark(function He(Ot,Lt){var wt,Ft;return(0,pe.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Ot){kt.next=2;break}return kt.abrupt("return");case 2:if(Ot.path=Lt||"",!Ot.isFile){kt.next=10;break}return kt.next=6,on(Ot);case 6:wt=kt.sent,wt&&ce.push(wt),kt.next=15;break;case 10:if(!Ot.isDirectory){kt.next=15;break}return kt.next=13,Ye(Ot);case 13:Ft=kt.sent,_e.push.apply(_e,(0,Dt.Z)(Ft));case 15:case"end":return kt.stop()}},He)}));return function(Ot,Lt){return je.apply(this,arguments)}}(),Ie=0;case 9:if(!(Ie<_e.length)){ze.next=15;break}return ze.next=12,Cn(_e[Ie]);case 12:Ie++,ze.next=9;break;case 15:return ze.abrupt("return",ce);case 16:case"end":return ze.stop()}},Zn)}));return function(_t,Tt){return an.apply(this,arguments)}}(),Jt=zt,re=+new Date,oe=0;function $t(){return"rc-upload-".concat(re,"-").concat(++oe)}var Le=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],de=function(an){(0,Pe.Z)(_t,an);var Zn=(0,Bt.Z)(_t);function _t(){var Tt;(0,ne.Z)(this,_t);for(var ce=arguments.length,_e=new Array(ce),Ye=0;Ye<ce;Ye++)_e[Ye]=arguments[Ye];return Tt=Zn.call.apply(Zn,[this].concat(_e)),(0,Ut.Z)((0,Be.Z)(Tt),"state",{uid:$t()}),(0,Ut.Z)((0,Be.Z)(Tt),"reqs",{}),(0,Ut.Z)((0,Be.Z)(Tt),"fileInput",void 0),(0,Ut.Z)((0,Be.Z)(Tt),"_isMounted",void 0),(0,Ut.Z)((0,Be.Z)(Tt),"onChange",function(xe){var on=Tt.props,tn=on.accept,Cn=on.directory,Ie=xe.target.files,ve=(0,Dt.Z)(Ie).filter(function(ze){return!Cn||gt(ze,tn)});Tt.uploadFiles(ve),Tt.reset()}),(0,Ut.Z)((0,Be.Z)(Tt),"onClick",function(xe){var on=Tt.fileInput;if(on){var tn=xe.target,Cn=Tt.props.onClick;if(tn&&tn.tagName==="BUTTON"){var Ie=on.parentNode;Ie.focus(),tn.blur()}on.click(),Cn&&Cn(xe)}}),(0,Ut.Z)((0,Be.Z)(Tt),"onKeyDown",function(xe){xe.key==="Enter"&&Tt.onClick(xe)}),(0,Ut.Z)((0,Be.Z)(Tt),"onFileDrop",function(){var xe=(0,Ht.Z)((0,pe.Z)().mark(function on(tn){var Cn,Ie,ve;return(0,pe.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Cn=Tt.props.multiple,tn.preventDefault(),tn.type!=="dragover"){je.next=4;break}return je.abrupt("return");case 4:if(!Tt.props.directory){je.next=11;break}return je.next=7,Jt(Array.prototype.slice.call(tn.dataTransfer.items),function(He){return gt(He,Tt.props.accept)});case 7:Ie=je.sent,Tt.uploadFiles(Ie),je.next=14;break;case 11:ve=(0,Dt.Z)(tn.dataTransfer.files).filter(function(He){return gt(He,Tt.props.accept)}),Cn===!1&&(ve=ve.slice(0,1)),Tt.uploadFiles(ve);case 14:case"end":return je.stop()}},on)}));return function(on){return xe.apply(this,arguments)}}()),(0,Ut.Z)((0,Be.Z)(Tt),"uploadFiles",function(xe){var on=(0,Dt.Z)(xe),tn=on.map(function(Cn){return Cn.uid=$t(),Tt.processFile(Cn,on)});Promise.all(tn).then(function(Cn){var Ie=Tt.props.onBatchStart;Ie==null||Ie(Cn.map(function(ve){var ze=ve.origin,je=ve.parsedFile;return{file:ze,parsedFile:je}})),Cn.filter(function(ve){return ve.parsedFile!==null}).forEach(function(ve){Tt.post(ve)})})}),(0,Ut.Z)((0,Be.Z)(Tt),"processFile",function(){var xe=(0,Ht.Z)((0,pe.Z)().mark(function on(tn,Cn){var Ie,ve,ze,je,He,Ot,Lt,wt,Ft;return(0,pe.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Ie=Tt.props.beforeUpload,ve=tn,!Ie){kt.next=14;break}return kt.prev=3,kt.next=6,Ie(tn,Cn);case 6:ve=kt.sent,kt.next=12;break;case 9:kt.prev=9,kt.t0=kt.catch(3),ve=!1;case 12:if(ve!==!1){kt.next=14;break}return kt.abrupt("return",{origin:tn,parsedFile:null,action:null,data:null});case 14:if(ze=Tt.props.action,typeof ze!="function"){kt.next=21;break}return kt.next=18,ze(tn);case 18:je=kt.sent,kt.next=22;break;case 21:je=ze;case 22:if(He=Tt.props.data,typeof He!="function"){kt.next=29;break}return kt.next=26,He(tn);case 26:Ot=kt.sent,kt.next=30;break;case 29:Ot=He;case 30:return Lt=((0,Xe.Z)(ve)==="object"||typeof ve=="string")&&ve?ve:tn,Lt instanceof File?wt=Lt:wt=new File([Lt],tn.name,{type:tn.type}),Ft=wt,Ft.uid=tn.uid,kt.abrupt("return",{origin:tn,data:Ot,parsedFile:Ft,action:je});case 35:case"end":return kt.stop()}},on,null,[[3,9]])}));return function(on,tn){return xe.apply(this,arguments)}}()),(0,Ut.Z)((0,Be.Z)(Tt),"saveFileInput",function(xe){Tt.fileInput=xe}),Tt}return(0,Ne.Z)(_t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ce){var _e=this,Ye=ce.data,xe=ce.origin,on=ce.action,tn=ce.parsedFile;if(this._isMounted){var Cn=this.props,Ie=Cn.onStart,ve=Cn.customRequest,ze=Cn.name,je=Cn.headers,He=Cn.withCredentials,Ot=Cn.method,Lt=xe.uid,wt=ve||St,Ft={action:on,filename:ze,data:Ye,file:tn,headers:je,withCredentials:He,method:Ot||"post",onProgress:function(kt){var Xt=_e.props.onProgress;Xt==null||Xt(kt,tn)},onSuccess:function(kt,Xt){var $e=_e.props.onSuccess;$e==null||$e(kt,tn,Xt),delete _e.reqs[Lt]},onError:function(kt,Xt){var $e=_e.props.onError;$e==null||$e(kt,Xt,tn),delete _e.reqs[Lt]}};Ie(xe),this.reqs[Lt]=wt(Ft)}}},{key:"reset",value:function(){this.setState({uid:$t()})}},{key:"abort",value:function(ce){var _e=this.reqs;if(ce){var Ye=ce.uid?ce.uid:ce;_e[Ye]&&_e[Ye].abort&&_e[Ye].abort(),delete _e[Ye]}else Object.keys(_e).forEach(function(xe){_e[xe]&&_e[xe].abort&&_e[xe].abort(),delete _e[xe]})}},{key:"render",value:function(){var ce=this.props,_e=ce.component,Ye=ce.prefixCls,xe=ce.className,on=ce.classNames,tn=on===void 0?{}:on,Cn=ce.disabled,Ie=ce.id,ve=ce.name,ze=ce.style,je=ce.styles,He=je===void 0?{}:je,Ot=ce.multiple,Lt=ce.accept,wt=ce.capture,Ft=ce.children,Wt=ce.directory,kt=ce.openFileDialogOnClick,Xt=ce.onMouseEnter,$e=ce.onMouseLeave,Je=ce.hasControlInside,fn=(0,Se.Z)(ce,Le),Ve=et()((0,Ut.Z)((0,Ut.Z)((0,Ut.Z)({},Ye,!0),"".concat(Ye,"-disabled"),Cn),xe,xe)),Mn=Wt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ue=Cn?{}:{onClick:kt?this.onClick:function(){},onKeyDown:kt?this.onKeyDown:function(){},onMouseEnter:Xt,onMouseLeave:$e,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Je?void 0:"0"};return ue.createElement(_e,(0,Pt.Z)({},Ue,{className:Ve,role:Je?void 0:"button",style:ze}),ue.createElement("input",(0,Pt.Z)({},(0,ht.Z)(fn,{aria:!0,data:!0}),{id:Ie,name:ve,disabled:Cn,type:"file",ref:this.saveFileInput,onClick:function(Qn){return Qn.stopPropagation()},key:this.state.uid,style:(0,se.Z)({display:"none"},He.input),className:tn.input,accept:Lt},Mn,{multiple:Ot,onChange:this.onChange},wt!=null?{capture:wt}:{})),Ft)}}]),_t}(ue.Component),Fe=de;function rn(){}var De=function(an){(0,Pe.Z)(_t,an);var Zn=(0,Bt.Z)(_t);function _t(){var Tt;(0,ne.Z)(this,_t);for(var ce=arguments.length,_e=new Array(ce),Ye=0;Ye<ce;Ye++)_e[Ye]=arguments[Ye];return Tt=Zn.call.apply(Zn,[this].concat(_e)),(0,Ut.Z)((0,Be.Z)(Tt),"uploader",void 0),(0,Ut.Z)((0,Be.Z)(Tt),"saveUploader",function(xe){Tt.uploader=xe}),Tt}return(0,Ne.Z)(_t,[{key:"abort",value:function(ce){this.uploader.abort(ce)}},{key:"render",value:function(){return ue.createElement(Fe,(0,Pt.Z)({},this.props,{ref:this.saveUploader}))}}]),_t}(ue.Component);(0,Ut.Z)(De,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:rn,onError:rn,onSuccess:rn,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var jn=De,Bn=jn},73299:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return Xi}});var Pt=Mt(87462),ne=Mt(1413),Ne=Mt(71002),Be=Mt(97685),Pe=Mt(4942),Bt=Mt(45987),Ut=Mt(67294),ue=Mt(73935),se=Mt(94184),Se=Mt.n(se),Xe=Mt(48555),pe=Ut.forwardRef(function(bn,bt){var wn=bn.height,Fn=bn.offsetY,Un=bn.offsetX,Xn=bn.children,ai=bn.prefixCls,Tn=bn.onInnerResize,Di=bn.innerProps,te=bn.rtl,le=bn.extra,ae={},Ae={display:"flex",flexDirection:"column"};if(Fn!==void 0){var Sn;ae={height:wn,position:"relative",overflow:"hidden"},Ae=(0,ne.Z)((0,ne.Z)({},Ae),{},(Sn={transform:"translateY(".concat(Fn,"px)")},(0,Pe.Z)(Sn,te?"marginRight":"marginLeft",-Un),(0,Pe.Z)(Sn,"position","absolute"),(0,Pe.Z)(Sn,"left",0),(0,Pe.Z)(Sn,"right",0),(0,Pe.Z)(Sn,"top",0),Sn))}return Ut.createElement("div",{style:ae},Ut.createElement(Xe.Z,{onResize:function(En){var ke=En.offsetHeight;ke&&Tn&&Tn()}},Ut.createElement("div",(0,Pt.Z)({style:Ae,className:Se()((0,Pe.Z)({},"".concat(ai,"-holder-inner"),ai)),ref:bt},Di),Xn,le)))});pe.displayName="Filler";var Ht=pe,Dt=function(bt){return+setTimeout(bt,16)},nt=function(bt){return clearTimeout(bt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Dt=function(bt){return window.requestAnimationFrame(bt)},nt=function(bt){return window.cancelAnimationFrame(bt)});var et=0,ht=new Map;function lt(bn){ht.delete(bn)}var gt=function(bt){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;et+=1;var Fn=et;function Un(Xn){if(Xn===0)lt(Fn),bt();else{var ai=Dt(function(){Un(Xn-1)});ht.set(Fn,ai)}}return Un(wn),Fn};gt.cancel=function(bn){var bt=ht.get(bn);return lt(bt),nt(bt)};var mt=gt;function xt(bn,bt){var wn="touches"in bn?bn.touches[0]:bn;return wn[bt?"pageX":"pageY"]}var St=Ut.forwardRef(function(bn,bt){var wn,Fn=bn.prefixCls,Un=bn.rtl,Xn=bn.scrollOffset,ai=bn.scrollRange,Tn=bn.onStartMove,Di=bn.onStopMove,te=bn.onScroll,le=bn.horizontal,ae=bn.spinSize,Ae=bn.containerSize,Sn=bn.style,An=bn.thumbStyle,En=Ut.useState(!1),ke=(0,Be.Z)(En,2),cn=ke[0],_n=ke[1],vi=Ut.useState(null),mn=(0,Be.Z)(vi,2),Oe=mn[0],ni=mn[1],Pi=Ut.useState(null),Li=(0,Be.Z)(Pi,2),qe=Li[0],oi=Li[1],Ni=!Un,gr=Ut.useRef(),xr=Ut.useRef(),Si=Ut.useState(!1),Fi=(0,Be.Z)(Si,2),Gi=Fi[0],Mr=Fi[1],hr=Ut.useRef(),Yn=function(){clearTimeout(hr.current),Mr(!0),hr.current=setTimeout(function(){Mr(!1)},3e3)},zi=ai-Ae||0,qo=Ae-ae||0,sa=zi>0,la=Ut.useMemo(function(){if(Xn===0||zi===0)return 0;var Ir=Xn/zi;return Ir*qo},[Xn,zi,qo]),Ke=function(Mo){Mo.stopPropagation(),Mo.preventDefault()},ur=Ut.useRef({top:la,dragging:cn,pageY:Oe,startTop:qe});ur.current={top:la,dragging:cn,pageY:Oe,startTop:qe};var Tr=function(Mo){_n(!0),ni(xt(Mo,le)),oi(ur.current.top),Tn(),Mo.stopPropagation(),Mo.preventDefault()};Ut.useEffect(function(){var Ir=function(Pn){Pn.preventDefault()},Mo=gr.current,Ln=xr.current;return Mo.addEventListener("touchstart",Ir),Ln.addEventListener("touchstart",Tr),function(){Mo.removeEventListener("touchstart",Ir),Ln.removeEventListener("touchstart",Tr)}},[]);var or=Ut.useRef();or.current=zi;var Vo=Ut.useRef();Vo.current=qo,Ut.useEffect(function(){if(cn){var Ir,Mo=function(Pn){var Br=ur.current,Ga=Br.dragging,Te=Br.pageY,Ze=Br.startTop;if(mt.cancel(Ir),Ga){var sn=xt(Pn,le)-Te,zn=Ze;!Ni&&le?zn-=sn:zn+=sn;var Ii=or.current,Nr=Vo.current,lr=Nr?zn/Nr:0,si=Math.ceil(lr*Ii);si=Math.max(si,0),si=Math.min(si,Ii),Ir=mt(function(){te(si,le)})}},Ln=function(){_n(!1),Di()};return window.addEventListener("mousemove",Mo),window.addEventListener("touchmove",Mo),window.addEventListener("mouseup",Ln),window.addEventListener("touchend",Ln),function(){window.removeEventListener("mousemove",Mo),window.removeEventListener("touchmove",Mo),window.removeEventListener("mouseup",Ln),window.removeEventListener("touchend",Ln),mt.cancel(Ir)}}},[cn]),Ut.useEffect(function(){Yn()},[Xn]),Ut.useImperativeHandle(bt,function(){return{delayHidden:Yn}});var eo="".concat(Fn,"-scrollbar"),uo={position:"absolute",visibility:Gi&&sa?null:"hidden"},Xr={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return le?(uo.height=8,uo.left=0,uo.right=0,uo.bottom=0,Xr.height="100%",Xr.width=ae,Ni?Xr.left=la:Xr.right=la):(uo.width=8,uo.top=0,uo.bottom=0,Ni?uo.right=0:uo.left=0,Xr.width="100%",Xr.height=ae,Xr.top=la),Ut.createElement("div",{ref:gr,className:Se()(eo,(wn={},(0,Pe.Z)(wn,"".concat(eo,"-horizontal"),le),(0,Pe.Z)(wn,"".concat(eo,"-vertical"),!le),(0,Pe.Z)(wn,"".concat(eo,"-visible"),Gi),wn)),style:(0,ne.Z)((0,ne.Z)({},uo),Sn),onMouseDown:Ke,onMouseMove:Yn},Ut.createElement("div",{ref:xr,className:Se()("".concat(eo,"-thumb"),(0,Pe.Z)({},"".concat(eo,"-thumb-moving"),cn)),style:(0,ne.Z)((0,ne.Z)({},Xr),An),onMouseDown:Tr}))}),zt=St;function Jt(bn){var bt=bn.children,wn=bn.setRef,Fn=Ut.useCallback(function(Un){wn(Un)},[]);return Ut.cloneElement(bt,{ref:Fn})}function re(bn,bt,wn,Fn,Un,Xn,ai){var Tn=ai.getKey;return bn.slice(bt,wn+1).map(function(Di,te){var le=bt+te,ae=Xn(Di,le,{style:{width:Fn}}),Ae=Tn(Di);return Ut.createElement(Jt,{key:Ae,setRef:function(An){return Un(Di,An)}},ae)})}function oe(bn){return bn instanceof HTMLElement||bn instanceof SVGElement}function $t(bn){return oe(bn)?bn:bn instanceof Ut.Component?ue.findDOMNode(bn):null}var Le=Mt(15671),de=Mt(43144),Fe=function(){function bn(){(0,Le.Z)(this,bn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,de.Z)(bn,[{key:"set",value:function(wn,Fn){this.maps[wn]=Fn,this.id+=1}},{key:"get",value:function(wn){return this.maps[wn]}}]),bn}(),rn=Fe;function De(bn,bt,wn){var Fn=Ut.useState(0),Un=(0,Be.Z)(Fn,2),Xn=Un[0],ai=Un[1],Tn=(0,Ut.useRef)(new Map),Di=(0,Ut.useRef)(new rn),te=(0,Ut.useRef)();function le(){mt.cancel(te.current)}function ae(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;le();var An=function(){Tn.current.forEach(function(ke,cn){if(ke&&ke.offsetParent){var _n=$t(ke),vi=_n.offsetHeight;Di.current.get(cn)!==vi&&Di.current.set(cn,_n.offsetHeight)}}),ai(function(ke){return ke+1})};Sn?An():te.current=mt(An)}function Ae(Sn,An){var En=bn(Sn),ke=Tn.current.get(En);An?(Tn.current.set(En,An),ae()):Tn.current.delete(En),!ke!=!An&&(An?bt==null||bt(Sn):wn==null||wn(Sn))}return(0,Ut.useEffect)(function(){return le},[]),[Ae,ae,Di.current,Xn]}function jn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Bn=jn()?Ut.useLayoutEffect:Ut.useEffect,an=function(bt,wn){var Fn=Ut.useRef(!0);Bn(function(){return bt(Fn.current)},wn),Bn(function(){return Fn.current=!1,function(){Fn.current=!0}},[])},Zn=function(bt,wn){an(function(Fn){if(!Fn)return bt()},wn)},_t=an;function Tt(bn){var bt=Ut.useRef();bt.current=bn;var wn=Ut.useCallback(function(){for(var Fn,Un=arguments.length,Xn=new Array(Un),ai=0;ai<Un;ai++)Xn[ai]=arguments[ai];return(Fn=bt.current)===null||Fn===void 0?void 0:Fn.call.apply(Fn,[bt].concat(Xn))},[]);return wn}function ce(bn){var bt=React.useRef(!1),wn=React.useState(bn),Fn=_slicedToArray(wn,2),Un=Fn[0],Xn=Fn[1];React.useEffect(function(){return bt.current=!1,function(){bt.current=!0}},[]);function ai(Tn,Di){Di&&bt.current||Xn(Tn)}return[Un,ai]}function _e(bn){return bn!==void 0}function Ye(bn,bt){var wn=bt||{},Fn=wn.defaultValue,Un=wn.value,Xn=wn.onChange,ai=wn.postState,Tn=useState(function(){return _e(Un)?Un:_e(Fn)?typeof Fn=="function"?Fn():Fn:typeof bn=="function"?bn():bn}),Di=_slicedToArray(Tn,2),te=Di[0],le=Di[1],ae=Un!==void 0?Un:te,Ae=ai?ai(ae):ae,Sn=useEvent(Xn),An=useState([ae]),En=_slicedToArray(An,2),ke=En[0],cn=En[1];useLayoutUpdateEffect(function(){var vi=ke[0];te!==vi&&Sn(te,vi)},[ke]),useLayoutUpdateEffect(function(){_e(Un)||le(Un)},[Un]);var _n=useEvent(function(vi,mn){le(vi,mn),cn([ae],mn)});return[Ae,_n]}var xe=Mt(31461);function on(bn,bt,wn){var Fn=React.useRef({});return(!("value"in Fn.current)||wn(Fn.current.condition,bt))&&(Fn.current.value=bn(),Fn.current.condition=bt),Fn.current.value}function tn(bn,bt){typeof bn=="function"?bn(bt):_typeof(bn)==="object"&&bn&&"current"in bn&&(bn.current=bt)}function Cn(){for(var bn=arguments.length,bt=new Array(bn),wn=0;wn<bn;wn++)bt[wn]=arguments[wn];var Fn=bt.filter(function(Un){return Un});return Fn.length<=1?Fn[0]:function(Un){bt.forEach(function(Xn){tn(Xn,Un)})}}function Ie(){for(var bn=arguments.length,bt=new Array(bn),wn=0;wn<bn;wn++)bt[wn]=arguments[wn];return useMemo(function(){return Cn.apply(void 0,bt)},bt,function(Fn,Un){return Fn.length!==Un.length||Fn.every(function(Xn,ai){return Xn!==Un[ai]})})}function ve(bn){var bt,wn,Fn=isMemo(bn)?bn.type.type:bn.type;return!(typeof Fn=="function"&&!((bt=Fn.prototype)!==null&&bt!==void 0&&bt.render)||typeof bn=="function"&&!((wn=bn.prototype)!==null&&wn!==void 0&&wn.render))}function ze(bn){return!isValidElement(bn)||isFragment(bn)?!1:ve(bn)}function je(bn,bt,wn,Fn){if(!bt.length)return wn;var Un=_toArray(bt),Xn=Un[0],ai=Un.slice(1),Tn;return!bn&&typeof Xn=="number"?Tn=[]:Array.isArray(bn)?Tn=_toConsumableArray(bn):Tn=_objectSpread({},bn),Fn&&wn===void 0&&ai.length===1?delete Tn[Xn][ai[0]]:Tn[Xn]=je(Tn[Xn],ai,wn,Fn),Tn}function He(bn,bt,wn){var Fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return bt.length&&Fn&&wn===void 0&&!get(bn,bt.slice(0,-1))?bn:je(bn,bt,wn,Fn)}function Ot(bn){return _typeof(bn)==="object"&&bn!==null&&Object.getPrototypeOf(bn)===Object.prototype}function Lt(bn){return Array.isArray(bn)?[]:{}}var wt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ft(){for(var bn=arguments.length,bt=new Array(bn),wn=0;wn<bn;wn++)bt[wn]=arguments[wn];var Fn=Lt(bt[0]);return bt.forEach(function(Un){function Xn(ai,Tn){var Di=new Set(Tn),te=get(Un,ai),le=Array.isArray(te);if(le||Ot(te)){if(!Di.has(te)){Di.add(te);var ae=get(Fn,ai);le?Fn=He(Fn,ai,[]):(!ae||_typeof(ae)!=="object")&&(Fn=He(Fn,ai,Lt(te))),wt(te).forEach(function(Ae){Xn([].concat(_toConsumableArray(ai),[Ae]),Di)})}}else Fn=He(Fn,ai,te)}Xn([])}),Fn}var Wt={},kt=[],Xt=function(bt){kt.push(bt)};function $e(bn,bt){if(0)var wn}function Je(bn,bt){if(0)var wn}function fn(){Wt={}}function Ve(bn,bt,wn){!bt&&!Wt[wn]&&(bn(!1,wn),Wt[wn]=!0)}function Mn(bn,bt){Ve($e,bn,bt)}function Ue(bn,bt){Ve(Je,bn,bt)}Mn.preMessage=Xt,Mn.resetWarned=fn,Mn.noteOnce=Ue;var ti=null,Qn=10;function Hn(bn,bt,wn,Fn,Un,Xn,ai,Tn){var Di=Ut.useRef(),te=Ut.useState(null),le=(0,Be.Z)(te,2),ae=le[0],Ae=le[1];return _t(function(){if(ae&&ae.times<Qn){if(!bn.current){Ae(function(Yn){return(0,ne.Z)({},Yn)});return}Xn();var Sn=ae.targetAlign,An=ae.originAlign,En=ae.index,ke=ae.offset,cn=bn.current.clientHeight,_n=!1,vi=Sn,mn=null;if(cn){for(var Oe=Sn||An,ni=0,Pi=0,Li=0,qe=Math.min(bt.length-1,En),oi=0;oi<=qe;oi+=1){var Ni=Un(bt[oi]);Pi=ni;var gr=wn.get(Ni);Li=Pi+(gr===void 0?Fn:gr),ni=Li}for(var xr=Oe==="top"?ke:cn-ke,Si=qe;Si>=0;Si-=1){var Fi=Un(bt[Si]),Gi=wn.get(Fi);if(Gi===void 0){_n=!0;break}if(xr-=Gi,xr<=0)break}switch(Oe){case"top":mn=Pi-ke;break;case"bottom":mn=Li-cn+ke;break;default:{var Mr=bn.current.scrollTop,hr=Mr+cn;Pi<Mr?vi="top":Li>hr&&(vi="bottom")}}mn!==null&&ai(mn),mn!==ae.lastTop&&(_n=!0)}_n&&Ae(function(Yn){return(0,ne.Z)((0,ne.Z)({},Yn),{},{times:Yn.times+1,targetAlign:vi,lastTop:mn})})}},[ae,bn.current]),function(Sn){if(Sn==null){Tn();return}if(mt.cancel(Di.current),typeof Sn=="number")ai(Sn);else if(Sn&&(0,Ne.Z)(Sn)==="object"){var An,En=Sn.align;"index"in Sn?An=Sn.index:An=bt.findIndex(function(_n){return Un(_n)===Sn.key});var ke=Sn.offset,cn=ke===void 0?0:ke;Ae({times:0,index:An,offset:cn,originAlign:En})}}}function pn(bn,bt,wn,Fn){var Un=wn-bn,Xn=bt-wn,ai=Math.min(Un,Xn)*2;if(Fn<=ai){var Tn=Math.floor(Fn/2);return Fn%2?wn+Tn+1:wn-Tn}return Un>Xn?wn-(Fn-Xn):wn+(Fn-Un)}function gi(bn,bt,wn){var Fn=bn.length,Un=bt.length,Xn,ai;if(Fn===0&&Un===0)return null;Fn<Un?(Xn=bn,ai=bt):(Xn=bt,ai=bn);var Tn={__EMPTY_ITEM__:!0};function Di(An){return An!==void 0?wn(An):Tn}for(var te=null,le=Math.abs(Fn-Un)!==1,ae=0;ae<ai.length;ae+=1){var Ae=Di(Xn[ae]),Sn=Di(ai[ae]);if(Ae!==Sn){te=ae,le=le||Ae!==Di(ai[ae+1]);break}}return te===null?null:{index:te,multiple:le}}function Mi(bn,bt,wn){var Fn=Ut.useState(bn),Un=(0,Be.Z)(Fn,2),Xn=Un[0],ai=Un[1],Tn=Ut.useState(null),Di=(0,Be.Z)(Tn,2),te=Di[0],le=Di[1];return Ut.useEffect(function(){var ae=gi(Xn||[],bn||[],bt);(ae==null?void 0:ae.index)!==void 0&&(wn==null||wn(ae.index),le(bn[ae.index])),ai(bn)},[bn]),[te]}var In=(typeof navigator=="undefined"?"undefined":(0,Ne.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ei=In,Ki=function(bn,bt){var wn=(0,Ut.useRef)(!1),Fn=(0,Ut.useRef)(null);function Un(){clearTimeout(Fn.current),wn.current=!0,Fn.current=setTimeout(function(){wn.current=!1},50)}var Xn=(0,Ut.useRef)({top:bn,bottom:bt});return Xn.current.top=bn,Xn.current.bottom=bt,function(ai){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Di=ai<0&&Xn.current.top||ai>0&&Xn.current.bottom;return Tn&&Di?(clearTimeout(Fn.current),wn.current=!1):(!Di||wn.current)&&Un(),!wn.current&&Di}};function hi(bn,bt,wn,Fn,Un){var Xn=(0,Ut.useRef)(0),ai=(0,Ut.useRef)(null),Tn=(0,Ut.useRef)(null),Di=(0,Ut.useRef)(!1),te=Ki(bt,wn);function le(ke,cn){mt.cancel(ai.current),Xn.current+=cn,Tn.current=cn,!te(cn)&&(ei||ke.preventDefault(),ai.current=mt(function(){var _n=Di.current?10:1;Un(Xn.current*_n),Xn.current=0}))}function ae(ke,cn){Un(cn,!0),ei||ke.preventDefault()}var Ae=(0,Ut.useRef)(null),Sn=(0,Ut.useRef)(null);function An(ke){if(bn){mt.cancel(Sn.current),Sn.current=mt(function(){Ae.current=null},2);var cn=ke.deltaX,_n=ke.deltaY,vi=ke.shiftKey,mn=cn,Oe=_n;(Ae.current==="sx"||!Ae.current&&vi&&_n&&!cn)&&(mn=_n,Oe=0,Ae.current="sx");var ni=Math.abs(mn),Pi=Math.abs(Oe);Ae.current===null&&(Ae.current=Fn&&ni>Pi?"x":"y"),Ae.current==="y"?le(ke,Oe):ae(ke,mn)}}function En(ke){bn&&(Di.current=ke.detail===Tn.current)}return[An,En]}var $i=14/15;function pr(bn,bt,wn){var Fn=(0,Ut.useRef)(!1),Un=(0,Ut.useRef)(0),Xn=(0,Ut.useRef)(null),ai=(0,Ut.useRef)(null),Tn,Di=function(Ae){if(Fn.current){var Sn=Math.ceil(Ae.touches[0].pageY),An=Un.current-Sn;Un.current=Sn,wn(An)&&Ae.preventDefault(),clearInterval(ai.current),ai.current=setInterval(function(){An*=$i,(!wn(An,!0)||Math.abs(An)<=.1)&&clearInterval(ai.current)},16)}},te=function(){Fn.current=!1,Tn()},le=function(Ae){Tn(),Ae.touches.length===1&&!Fn.current&&(Fn.current=!0,Un.current=Math.ceil(Ae.touches[0].pageY),Xn.current=Ae.target,Xn.current.addEventListener("touchmove",Di),Xn.current.addEventListener("touchend",te))};Tn=function(){Xn.current&&(Xn.current.removeEventListener("touchmove",Di),Xn.current.removeEventListener("touchend",te))},_t(function(){return bn&&bt.current.addEventListener("touchstart",le),function(){var ae;(ae=bt.current)===null||ae===void 0||ae.removeEventListener("touchstart",le),Tn(),clearInterval(ai.current)}},[bn])}var rr=20;function ki(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,wn=bn/bt*100;return isNaN(wn)&&(wn=0),wn=Math.max(wn,rr),wn=Math.min(wn,bn/2),Math.floor(wn)}function sr(bn,bt,wn,Fn){var Un=Ut.useMemo(function(){return[new Map,[]]},[bn,wn.id,Fn]),Xn=(0,Be.Z)(Un,2),ai=Xn[0],Tn=Xn[1],Di=function(le){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le,Ae=ai.get(le),Sn=ai.get(ae);if(Ae===void 0||Sn===void 0)for(var An=bn.length,En=Tn.length;En<An;En+=1){var ke,cn=bn[En],_n=bt(cn);ai.set(_n,En);var vi=(ke=wn.get(_n))!==null&&ke!==void 0?ke:Fn;if(Tn[En]=(Tn[En-1]||0)+vi,_n===le&&(Ae=En),_n===ae&&(Sn=En),Ae!==void 0&&Sn!==void 0)break}return{top:Tn[Ae-1]||0,bottom:Tn[Sn]}};return Di}var Ur=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Jo=[],Rr={overflowY:"auto",overflowAnchor:"none"};function To(bn,bt){var wn=bn.prefixCls,Fn=wn===void 0?"rc-virtual-list":wn,Un=bn.className,Xn=bn.height,ai=bn.itemHeight,Tn=bn.fullHeight,Di=Tn===void 0?!0:Tn,te=bn.style,le=bn.data,ae=bn.children,Ae=bn.itemKey,Sn=bn.virtual,An=bn.direction,En=bn.scrollWidth,ke=bn.component,cn=ke===void 0?"div":ke,_n=bn.onScroll,vi=bn.onVirtualScroll,mn=bn.onVisibleChange,Oe=bn.innerProps,ni=bn.extraRender,Pi=bn.styles,Li=(0,Bt.Z)(bn,Ur),qe=!!(Sn!==!1&&Xn&&ai),oi=qe&&le&&(ai*le.length>Xn||!!En),Ni=An==="rtl",gr=Se()(Fn,(0,Pe.Z)({},"".concat(Fn,"-rtl"),Ni),Un),xr=le||Jo,Si=(0,Ut.useRef)(),Fi=(0,Ut.useRef)(),Gi=(0,Ut.useState)(0),Mr=(0,Be.Z)(Gi,2),hr=Mr[0],Yn=Mr[1],zi=(0,Ut.useState)(0),qo=(0,Be.Z)(zi,2),sa=qo[0],la=qo[1],Ke=(0,Ut.useState)(!1),ur=(0,Be.Z)(Ke,2),Tr=ur[0],or=ur[1],Vo=function(){or(!0)},eo=function(){or(!1)},uo=Ut.useCallback(function(so){return typeof Ae=="function"?Ae(so):so==null?void 0:so[Ae]},[Ae]),Xr={getKey:uo};function Ir(so){Yn(function(Do){var ka;typeof so=="function"?ka=so(Do):ka=so;var ls=Er(ka);return Si.current.scrollTop=ls,ls})}var Mo=(0,Ut.useRef)({start:0,end:xr.length}),Ln=(0,Ut.useRef)(),$r=Mi(xr,uo),Pn=(0,Be.Z)($r,1),Br=Pn[0];Ln.current=Br;var Ga=De(uo,null,null),Te=(0,Be.Z)(Ga,4),Ze=Te[0],sn=Te[1],zn=Te[2],Ii=Te[3],Nr=Ut.useMemo(function(){if(!qe)return{scrollHeight:void 0,start:0,end:xr.length-1,offset:void 0};if(!oi){var so;return{scrollHeight:((so=Fi.current)===null||so===void 0?void 0:so.offsetHeight)||0,start:0,end:xr.length-1,offset:void 0}}for(var Do=0,ka,ls,qi,Gu=xr.length,zl=0;zl<Gu;zl+=1){var Cl=xr[zl],Zh=uo(Cl),Zu=zn.get(Zh),Bi=Do+(Zu===void 0?ai:Zu);Bi>=hr&&ka===void 0&&(ka=zl,ls=Do),Bi>hr+Xn&&qi===void 0&&(qi=zl),Do=Bi}return ka===void 0&&(ka=0,ls=0,qi=Math.ceil(Xn/ai)),qi===void 0&&(qi=xr.length-1),qi=Math.min(qi+1,xr.length-1),{scrollHeight:Do,start:ka,end:qi,offset:ls}},[oi,qe,hr,xr,Ii,Xn]),lr=Nr.scrollHeight,si=Nr.start,Zt=Nr.end,Ao=Nr.offset;Mo.current.start=si,Mo.current.end=Zt;var rs=Ut.useState({width:0,height:Xn}),Ls=(0,Be.Z)(rs,2),Xa=Ls[0],Ea=Ls[1],Eo=function(Do){Ea({width:Do.width||Do.offsetWidth,height:Do.height||Do.offsetHeight})},gs=(0,Ut.useRef)(),os=(0,Ut.useRef)(),Ho=Ut.useMemo(function(){return ki(Xa.width,En)},[Xa.width,En]),_o=Ut.useMemo(function(){return ki(Xa.height,lr)},[Xa.height,lr]),er=lr-Xn,Qi=(0,Ut.useRef)(er);Qi.current=er;function Er(so){var Do=so;return Number.isNaN(Qi.current)||(Do=Math.min(Do,Qi.current)),Do=Math.max(Do,0),Do}var hn=hr<=0,ar=hr>=er,oo=Ki(hn,ar),ca=function(){return{x:Ni?-sa:sa,y:hr}},$o=(0,Ut.useRef)(ca()),ia=Tt(function(){if(vi){var so=ca();($o.current.x!==so.x||$o.current.y!==so.y)&&(vi(so),$o.current=so)}});function as(so,Do){var ka=so;Do?((0,ue.flushSync)(function(){la(ka)}),ia()):Ir(ka)}function Ks(so){var Do=so.currentTarget.scrollTop;Do!==hr&&Ir(Do),_n==null||_n(so),ia()}var vs=function(Do){var ka=Do,ls=En-Xa.width;return ka=Math.max(ka,0),ka=Math.min(ka,ls),ka},au=Tt(function(so,Do){Do?((0,ue.flushSync)(function(){la(function(ka){var ls=ka+(Ni?-so:so);return vs(ls)})}),ia()):Ir(function(ka){var ls=ka+so;return ls})}),ks=hi(qe,hn,ar,!!En,au),en=(0,Be.Z)(ks,2),Us=en[0],kl=en[1];pr(qe,Si,function(so,Do){return oo(so,Do)?!1:(Us({preventDefault:function(){},deltaY:so}),!0)}),_t(function(){function so(ka){qe&&ka.preventDefault()}var Do=Si.current;return Do.addEventListener("wheel",Us),Do.addEventListener("DOMMouseScroll",kl),Do.addEventListener("MozMousePixelScroll",so),function(){Do.removeEventListener("wheel",Us),Do.removeEventListener("DOMMouseScroll",kl),Do.removeEventListener("MozMousePixelScroll",so)}},[qe]),_t(function(){En&&la(function(so){return vs(so)})},[Xa.width,En]);var xu=function(){var Do,ka;(Do=gs.current)===null||Do===void 0||Do.delayHidden(),(ka=os.current)===null||ka===void 0||ka.delayHidden()},ma=Hn(Si,xr,zn,ai,uo,function(){return sn(!0)},Ir,xu);Ut.useImperativeHandle(bt,function(){return{getScrollInfo:ca,scrollTo:function(Do){function ka(ls){return ls&&(0,Ne.Z)(ls)==="object"&&("left"in ls||"top"in ls)}ka(Do)?(Do.left!==void 0&&la(vs(Do.left)),ma(Do.top)):ma(Do)}}}),_t(function(){if(mn){var so=xr.slice(si,Zt+1);mn(so,xr)}},[si,Zt,xr]);var Pl=sr(xr,uo,zn,ai),wl=ni==null?void 0:ni({start:si,end:Zt,virtual:oi,offsetX:sa,offsetY:Ao,rtl:Ni,getSize:Pl}),su=re(xr,si,Zt,En,Ze,ae,Xr),Aa=null;Xn&&(Aa=(0,ne.Z)((0,Pe.Z)({},Di?"height":"maxHeight",Xn),Rr),qe&&(Aa.overflowY="hidden",En&&(Aa.overflowX="hidden"),Tr&&(Aa.pointerEvents="none")));var ps={};return Ni&&(ps.dir="rtl"),Ut.createElement("div",(0,Pt.Z)({style:(0,ne.Z)((0,ne.Z)({},te),{},{position:"relative"}),className:gr},ps,Li),Ut.createElement(Xe.Z,{onResize:Eo},Ut.createElement(cn,{className:"".concat(Fn,"-holder"),style:Aa,ref:Si,onScroll:Ks,onMouseEnter:xu},Ut.createElement(Ht,{prefixCls:Fn,height:lr,offsetX:sa,offsetY:Ao,scrollWidth:En,onInnerResize:sn,ref:Fi,innerProps:Oe,rtl:Ni,extra:wl},su))),oi&&lr>Xn&&Ut.createElement(zt,{ref:gs,prefixCls:Fn,scrollOffset:hr,scrollRange:lr,rtl:Ni,onScroll:as,onStartMove:Vo,onStopMove:eo,spinSize:_o,containerSize:Xa.height,style:Pi==null?void 0:Pi.verticalScrollBar,thumbStyle:Pi==null?void 0:Pi.verticalScrollBarThumb}),oi&&En&&Ut.createElement(zt,{ref:os,prefixCls:Fn,scrollOffset:sa,scrollRange:En,rtl:Ni,onScroll:as,onStartMove:Vo,onStopMove:eo,spinSize:Ho,containerSize:Xa.width,horizontal:!0,style:Pi==null?void 0:Pi.horizontalScrollBar,thumbStyle:Pi==null?void 0:Pi.horizontalScrollBarThumb}))}var pa=Ut.forwardRef(To);pa.displayName="List";var co=pa,Xi=co},66392:function(un,Nn){"use strict";var Mt;var Pt=Symbol.for("react.element"),ne=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),Ut=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),se=Symbol.for("react.forward_ref"),Se=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Dt=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function et(ht){if(typeof ht=="object"&&ht!==null){var lt=ht.$$typeof;switch(lt){case Pt:switch(ht=ht.type,ht){case Ne:case Pe:case Be:case Se:case Xe:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Ut:case se:case Ht:case pe:case Bt:return ht;default:return lt}}case ne:return lt}}}Mt=Ut,Mt=Bt,Mt=Pt,Mt=se,Mt=Ne,Mt=Ht,Mt=pe,Mt=ne,Mt=Pe,Mt=Be,Mt=Se,Mt=Xe,Mt=function(){return!1},Mt=function(){return!1},Mt=function(ht){return et(ht)===Ut},Mt=function(ht){return et(ht)===Bt},Mt=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Pt},Mt=function(ht){return et(ht)===se},Mt=function(ht){return et(ht)===Ne},Mt=function(ht){return et(ht)===Ht},Mt=function(ht){return et(ht)===pe},Mt=function(ht){return et(ht)===ne},Mt=function(ht){return et(ht)===Pe},Mt=function(ht){return et(ht)===Be},Mt=function(ht){return et(ht)===Se},Mt=function(ht){return et(ht)===Xe},Mt=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Ne||ht===Pe||ht===Be||ht===Se||ht===Xe||ht===Dt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===Ht||ht.$$typeof===pe||ht.$$typeof===Bt||ht.$$typeof===Ut||ht.$$typeof===se||ht.$$typeof===nt||ht.getModuleId!==void 0)},Mt=et},31461:function(un,Nn,Mt){"use strict";Mt(66392)},25510:function(un){"use strict";un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695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v02WMcPyx0o+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/26b6N2CBYOgb/zQ4PZGF4Ay9/zRxXAki8UC2DJp1kBLAW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vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7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jIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(un,Nn,Mt){"use strict";un.exports=Mt.p+"static/AssistantCode3.a8740efb.jpeg"},13014:function(un,Nn,Mt){"use strict";un.exports=Mt.p+"static/yunying_code.7d649890.jpg"},4977:function(un){"use strict";un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0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jrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},85269:function(un){function Nn(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}un.exports=Nn,un.exports.__esModule=!0,un.exports.default=un.exports},63739:function(un,Nn,Mt){var Pt=Mt(32126);function ne(Ne,Be,Pe){return(Be=Pt(Be))in Ne?Object.defineProperty(Ne,Be,{value:Pe,enumerable:!0,configurable:!0,writable:!0}):Ne[Be]=Pe,Ne}un.exports=ne,un.exports.__esModule=!0,un.exports.default=un.exports},6142:function(un){function Nn(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}un.exports=Nn,un.exports.__esModule=!0,un.exports.default=un.exports},83449:function(un,Nn,Mt){var Pt=Mt(63739);function ne(Be,Pe){var Bt=Object.keys(Be);if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(Be);Pe&&(Ut=Ut.filter(function(ue){return Object.getOwnPropertyDescriptor(Be,ue).enumerable})),Bt.push.apply(Bt,Ut)}return Bt}function Ne(Be){for(var Pe=1;Pe<arguments.length;Pe++){var Bt=arguments[Pe]!=null?arguments[Pe]:{};Pe%2?ne(Object(Bt),!0).forEach(function(Ut){Pt(Be,Ut,Bt[Ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Be,Object.getOwnPropertyDescriptors(Bt)):ne(Object(Bt)).forEach(function(Ut){Object.defineProperty(Be,Ut,Object.getOwnPropertyDescriptor(Bt,Ut))})}return Be}un.exports=Ne,un.exports.__esModule=!0,un.exports.default=un.exports},61834:function(un,Nn,Mt){var Pt=Mt(22560).default;function ne(Ne,Be){if(Pt(Ne)!="object"||!Ne)return Ne;var Pe=Ne[Symbol.toPrimitive];if(Pe!==void 0){var Bt=Pe.call(Ne,Be||"default");if(Pt(Bt)!="object")return Bt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Be==="string"?String:Number)(Ne)}un.exports=ne,un.exports.__esModule=!0,un.exports.default=un.exports},32126:function(un,Nn,Mt){var Pt=Mt(22560).default,ne=Mt(61834);function Ne(Be){var Pe=ne(Be,"string");return Pt(Pe)=="symbol"?Pe:Pe+""}un.exports=Ne,un.exports.__esModule=!0,un.exports.default=un.exports},22560:function(un){function Nn(Mt){"@babel/helpers - typeof";return un.exports=Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pt){return typeof Pt}:function(Pt){return Pt&&typeof Symbol=="function"&&Pt.constructor===Symbol&&Pt!==Symbol.prototype?"symbol":typeof Pt},un.exports.__esModule=!0,un.exports.default=un.exports,Nn(Mt)}un.exports=Nn,un.exports.__esModule=!0,un.exports.default=un.exports},17423:function(un,Nn,Mt){"use strict";Mt.d(Nn,{Z:function(){return ue}});const Pt=se=>typeof se=="object"&&se!=null&&se.nodeType===1,ne=(se,Se)=>(!Se||se!=="hidden")&&se!=="visible"&&se!=="clip",Ne=(se,Se)=>{if(se.clientHeight<se.scrollHeight||se.clientWidth<se.scrollWidth){const Xe=getComputedStyle(se,null);return ne(Xe.overflowY,Se)||ne(Xe.overflowX,Se)||(pe=>{const Ht=(Dt=>{if(!Dt.ownerDocument||!Dt.ownerDocument.defaultView)return null;try{return Dt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(pe);return!!Ht&&(Ht.clientHeight<pe.scrollHeight||Ht.clientWidth<pe.scrollWidth)})(se)}return!1},Be=(se,Se,Xe,pe,Ht,Dt,nt,et)=>Dt<se&&nt>Se||Dt>se&&nt<Se?0:Dt<=se&&et<=Xe||nt>=Se&&et>=Xe?Dt-se-pe:nt>Se&&et<Xe||Dt<se&&et>Xe?nt-Se+Ht:0,Pe=se=>{const Se=se.parentElement;return Se==null?se.getRootNode().host||null:Se},Bt=(se,Se)=>{var Xe,pe,Ht,Dt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:ht,boundary:lt,skipOverflowHiddenElements:gt}=Se,mt=typeof lt=="function"?lt:Ye=>Ye!==lt;if(!Pt(se))throw new TypeError("Invalid target");const xt=document.scrollingElement||document.documentElement,St=[];let zt=se;for(;Pt(zt)&&mt(zt);){if(zt=Pe(zt),zt===xt){St.push(zt);break}zt!=null&&zt===document.body&&Ne(zt)&&!Ne(document.documentElement)||zt!=null&&Ne(zt,gt)&&St.push(zt)}const Jt=(pe=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?pe:innerWidth,re=(Dt=(Ht=window.visualViewport)==null?void 0:Ht.height)!=null?Dt:innerHeight,{scrollX:oe,scrollY:$t}=window,{height:Le,width:de,top:Fe,right:rn,bottom:De,left:jn}=se.getBoundingClientRect(),{top:Bn,right:an,bottom:Zn,left:_t}=(Ye=>{const xe=window.getComputedStyle(Ye);return{top:parseFloat(xe.scrollMarginTop)||0,right:parseFloat(xe.scrollMarginRight)||0,bottom:parseFloat(xe.scrollMarginBottom)||0,left:parseFloat(xe.scrollMarginLeft)||0}})(se);let Tt=et==="start"||et==="nearest"?Fe-Bn:et==="end"?De+Zn:Fe+Le/2-Bn+Zn,ce=ht==="center"?jn+de/2-_t+an:ht==="end"?rn+an:jn-_t;const _e=[];for(let Ye=0;Ye<St.length;Ye++){const xe=St[Ye],{height:on,width:tn,top:Cn,right:Ie,bottom:ve,left:ze}=xe.getBoundingClientRect();if(nt==="if-needed"&&Fe>=0&&jn>=0&&De<=re&&rn<=Jt&&Fe>=Cn&&De<=ve&&jn>=ze&&rn<=Ie)return _e;const je=getComputedStyle(xe),He=parseInt(je.borderLeftWidth,10),Ot=parseInt(je.borderTopWidth,10),Lt=parseInt(je.borderRightWidth,10),wt=parseInt(je.borderBottomWidth,10);let Ft=0,Wt=0;const kt="offsetWidth"in xe?xe.offsetWidth-xe.clientWidth-He-Lt:0,Xt="offsetHeight"in xe?xe.offsetHeight-xe.clientHeight-Ot-wt:0,$e="offsetWidth"in xe?xe.offsetWidth===0?0:tn/xe.offsetWidth:0,Je="offsetHeight"in xe?xe.offsetHeight===0?0:on/xe.offsetHeight:0;if(xt===xe)Ft=et==="start"?Tt:et==="end"?Tt-re:et==="nearest"?Be($t,$t+re,re,Ot,wt,$t+Tt,$t+Tt+Le,Le):Tt-re/2,Wt=ht==="start"?ce:ht==="center"?ce-Jt/2:ht==="end"?ce-Jt:Be(oe,oe+Jt,Jt,He,Lt,oe+ce,oe+ce+de,de),Ft=Math.max(0,Ft+$t),Wt=Math.max(0,Wt+oe);else{Ft=et==="start"?Tt-Cn-Ot:et==="end"?Tt-ve+wt+Xt:et==="nearest"?Be(Cn,ve,on,Ot,wt+Xt,Tt,Tt+Le,Le):Tt-(Cn+on/2)+Xt/2,Wt=ht==="start"?ce-ze-He:ht==="center"?ce-(ze+tn/2)+kt/2:ht==="end"?ce-Ie+Lt+kt:Be(ze,Ie,tn,He,Lt+kt,ce,ce+de,de);const{scrollLeft:fn,scrollTop:Ve}=xe;Ft=Je===0?0:Math.max(0,Math.min(Ve+Ft/Je,xe.scrollHeight-on/Je+Xt)),Wt=$e===0?0:Math.max(0,Math.min(fn+Wt/$e,xe.scrollWidth-tn/$e+kt)),Tt+=Ve-Ft,ce+=fn-Wt}_e.push({el:xe,top:Ft,left:Wt})}return _e},Ut=se=>se===!1?{block:"end",inline:"nearest"}:(Se=>Se===Object(Se)&&Object.keys(Se).length!==0)(se)?se:{block:"start",inline:"nearest"};function ue(se,Se){if(!se.isConnected||!(Ht=>{let Dt=Ht;for(;Dt&&Dt.parentNode;){if(Dt.parentNode===document)return!0;Dt=Dt.parentNode instanceof ShadowRoot?Dt.parentNode.host:Dt.parentNode}return!1})(se))return;const Xe=(Ht=>{const Dt=window.getComputedStyle(Ht);return{top:parseFloat(Dt.scrollMarginTop)||0,right:parseFloat(Dt.scrollMarginRight)||0,bottom:parseFloat(Dt.scrollMarginBottom)||0,left:parseFloat(Dt.scrollMarginLeft)||0}})(se);if((Ht=>typeof Ht=="object"&&typeof Ht.behavior=="function")(Se))return Se.behavior(Bt(se,Se));const pe=typeof Se=="boolean"||Se==null?void 0:Se.behavior;for(const{el:Ht,top:Dt,left:nt}of Bt(se,Ut(Se))){const et=Dt-Xe.top+Xe.bottom,ht=nt-Xe.left+Xe.right;Ht.scroll({top:et,left:ht,behavior:pe})}}}}]);
|