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.
1225 lines
2.2 MiB
1225 lines
2.2 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[4944],{71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Pn,Hn){"use strict";Hn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39886:function(Pn,Hn){"use strict";Hn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},18023:function(){"use strict";function Pn(Nt,nt,et,ht){et===void 0&&(et=0),ht===void 0&&(ht=1/0),this._name=Nt,this._defaultValue=nt,this._minimum=et,this._maximum=ht}Object.defineProperty(Pn.prototype,"name",{get:function(){return this._name},set:function(Nt){if(typeof Nt!="string"||Nt==="")throw new Error("Shape name must be a valid string.");this._name=Nt}}),Object.defineProperty(Pn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("The default value must be a real number, not: "+Nt);this._defaultValue=Nt}}),Object.defineProperty(Pn.prototype,"minimum",{get:function(){return this._minimum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Minimum must be a real number, not: "+Nt);this._minimum=Nt}}),Object.defineProperty(Pn.prototype,"maximum",{get:function(){return this._maximum},set:function(Nt){if(typeof Nt!="number"||isNaN(Nt))throw new Error("Maximum must be a real number, not: "+Nt);this._maximum=Nt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Nt,nt){var et=go.Shape._FigureParameters[Nt];return et?et[nt]:null},go.Shape.setFigureParameter=function(Nt,nt,et){if(!(et instanceof Pn))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[Nt];ht||(ht=[],go.Shape._FigureParameters[Nt]=ht),ht[nt]=et};var Hn=[];function Ft(Nt,nt){var et=Hn.pop();return et===void 0?new go.Point(Nt,nt):(et.x=Nt,et.y=nt,et)}function Lt(){var Nt=Hn.pop();return Nt===void 0?new go.Point:Nt}function ie(Nt){Hn.push(Nt)}function Be(Nt,nt,et,ht,lt,gt,mt,St,Mt){Mt||(Mt=new go.Point);var zt=Nt-et,qt=lt-mt,re=NaN,_t=NaN;if(zt===0)if(qt===0)Nt===et&&(re=Nt,_t=nt);else{var Zt=(gt-St)/qt,Pe=gt-Zt*lt;re=Nt,_t=Zt*re+Pe}else if(qt===0){var ge=(nt-ht)/zt,Fe=nt-ge*Nt;re=lt,_t=ge*re+Fe}else{var ge=(nt-ht)/zt,Zt=(gt-St)/qt,Fe=nt-ge*Nt,Pe=gt-Zt*lt;re=(Pe-Fe)/(ge-Zt),_t=ge*re+Fe}return Mt.x=re,Mt.y=_t,Mt}function Ne(Nt,nt,et,ht,lt,gt,mt,St,Mt,zt,qt,re,_t,Zt){var Pe=1-Mt,ge=Mt,Fe=Nt*Pe+et*ge,He=nt*Pe+ht*ge,Ie=et*Pe+lt*ge,In=ht*Pe+gt*ge,bn=lt*Pe+mt*ge,cn=gt*Pe+St*ge,Xn=Fe*Pe+Ie*ge,$t=He*Pe+In*ge,jt=Ie*Pe+bn*ge,Ee=In*Pe+cn*ge,sn=Xn*Pe+jt*ge,Tn=$t*Pe+Ee*ge;zt.x=Fe,zt.y=He,qt.x=Xn,qt.y=$t,re.x=sn,re.y=Tn,_t.x=jt,_t.y=Ee,Zt.x=bn,Zt.y=cn}var Ae=new go.Spot(.156,.156),Dt=new go.Spot(.844,.844),Jt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Pn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*Jt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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=Ae,lt.spot2=Dt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(Nt,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(Nt,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(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,Jt*nt,0,nt,(1-Jt)*et)))}),go.Shape.defineFigureGenerator("Curve2",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,nt,et,0,Jt*et,(1-Jt)*nt,et)))}),go.Shape.defineFigureGenerator("Curve3",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,Jt*et,Jt*nt,et)))}),go.Shape.defineFigureGenerator("Curve4",function(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(nt,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,et,(1-Jt)*nt,0,0,(1-Jt)*et)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Nt,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(Nt,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(Nt,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(Nt,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 Pn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Nt,nt,et){var ht=Nt?Nt.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 ce(){var Nt=ue.pop();return Nt===void 0?[]:Nt}function ye(Nt){Nt.length=0,ue.push(Nt)}function Je(Nt){for(var nt=ce(),et=.5,ht=.5,lt=Math.PI*1.5,gt=0,mt=0;mt<Nt;mt++)gt=2*Math.PI/Nt*mt+lt,nt[mt]=new go.Point(ht+et*Math.cos(gt),ht+et*Math.sin(gt));return nt.push(nt[0]),nt}function de(Nt){var nt=It(Nt),et=ce();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 ye(nt),et}function It(Nt){for(var nt=Je(Nt),et=ce(),ht=Math.floor(nt.length/2),lt=nt.length-1,gt=Nt%2===0?2:1,mt=0;mt<lt;mt++){var St=nt[mt],Mt=nt[mt+1],zt=nt[(ht+mt-1)%lt],qt=nt[(ht+mt+gt)%lt];et[mt*2]=St,et[mt*2+1]=Be(St.x,St.y,zt.x,zt.y,Mt.x,Mt.y,qt.x,qt.y,new go.Point)}return et[et.length]=et[0],ye(nt),et}go.Shape.defineFigureGenerator("Pentagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(Nt,nt,et){var ht=Je(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()),ye(ht),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Nt,nt,et){var ht=It(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()),ye(ht),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Nt,nt,et){var ht=de(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(),ye(ht),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new Pn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Pn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN,lt=Nt?Nt.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 Pn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Nt,nt,et){var ht=Nt?Nt.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 St=Math.max(lt-ht,0);return St>0&&(mt.add(new go.PathSegment(go.PathSegment.Move,nt/2+St,nt/2)),mt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,St,St).close())),gt.spot1=Ae,gt.spot2=Dt,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Nt,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(Nt,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 Pn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Pn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN,lt=Nt?Nt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(lt)&&(lt=315);var gt=ht%360;gt<0&&(gt+=360);var mt=lt%360,St=Math.min(nt,et)/2;return new go.Geometry().add(new go.PathFigure(St,St).add(new go.PathSegment(go.PathSegment.Arc,gt,mt,St,St,St,St).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Nt,nt,et){var ht=Jt/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 Pn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Nt,nt,et){var ht=Nt?Nt.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,St=Math.atan2(et,nt),Mt=ht-Math.min(Math.cos(St)*ht/2,gt),zt=ht-Math.min(Math.sin(St)*ht/2,mt),lt=new go.Geometry,qt=new go.PathFigure(Mt,0,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,gt,.2*et)),qt.add(new go.PathSegment(go.PathSegment.Line,nt-Mt,0)),qt.add(new go.PathSegment(go.PathSegment.Line,nt,zt)),qt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,nt,et-zt)),qt.add(new go.PathSegment(go.PathSegment.Line,nt-Mt,et)),qt.add(new go.PathSegment(go.PathSegment.Line,gt,.8*et)),qt.add(new go.PathSegment(go.PathSegment.Line,Mt,et)),qt.add(new go.PathSegment(go.PathSegment.Line,0,et-zt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,zt).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Pn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Nt,nt,et){var ht=Nt?Nt.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 Pn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Nt,nt,et){var ht=Nt?Nt.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(Nt,nt,et){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,Jt*nt,0,nt,(.5-Jt/2)*et)).add(new go.PathSegment(go.PathSegment.Bezier,0,et,nt,(.5+Jt/2)*et,Jt*nt,et).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Nt,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(Nt,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(Nt,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(Nt,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,St=0,Mt=gt*Jt;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-Mt+St)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*nt,.36771243*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt+.05)*nt,(.5-Mt+St-.02)*et)),gt=.2,mt=0,St=-.3,Mt=gt*Jt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+mt)*nt,(.5+St)*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt)*nt,(.5-Mt+St)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Mt+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),gt=.2,mt=-.3,St=0,Mt=gt*Jt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5-gt+St)*et,(1-.5+gt+mt-.05)*nt,(.5-Mt+St-.02)*et,(.5+Mt+mt)*nt,(.5-gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+mt)*nt,(.5+St)*et,(.5-Mt+mt)*nt,(.5-gt+St)*et,(.5-gt+mt)*nt,(.5-Mt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+mt)*nt,(.5+gt+St)*et,(.5-gt+mt)*nt,(.5+Mt+St)*et,(.5-Mt+mt)*nt,(.5+gt+St)*et)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,.6*et,(.5+Mt+mt)*nt,(.5+gt+St)*et,(.5+gt+mt)*nt,(.5+Mt+St)*et).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Nt,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,St=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(mt+gt)*nt,St*et)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,nt*mt,et*St,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)),St=.75,lt=new go.PathFigure((mt+gt)*nt,St*et,!0),ht.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,nt*mt,et*St,gt*nt,gt*nt).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=.5,mt=.5,St=.5,Mt=new go.PathFigure(mt*nt,(St-gt)*et);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),gt=.4,lt=Jt*.4;var zt=Lt(),qt=Lt(),re=Lt(),_t=Lt();Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.42,zt,qt,re,_t,_t);var Zt=Lt(),Pe=Lt(),ge=Lt();Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.58,_t,_t,ge,Zt,Pe);var Fe=Lt(),He=Lt(),Ie=Lt();Ne(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.42,Fe,He,Ie,_t,_t);var In=Lt(),bn=Lt(),cn=Lt();return Ne(mt,St+gt,mt-lt,St+gt,mt-gt,St+lt,mt-gt,St,.58,_t,_t,cn,In,bn),Mt.add(new go.PathSegment(go.PathSegment.Move,cn.x*nt,cn.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,In.x*nt,In.y*et,bn.x*nt,bn.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,re.x*nt,re.y*et,zt.x*nt,zt.y*et,qt.x*nt,qt.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,cn.x*nt,cn.y*et).close()),Mt.add(new go.PathSegment(go.PathSegment.Move,Ie.x*nt,Ie.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,ge.x*nt,ge.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,Zt.x*nt,Zt.y*et,Pe.x*nt,Pe.y*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*nt,Ie.y*et,Fe.x*nt,Fe.y*et,He.x*nt,He.y*et).close()),ie(zt),ie(qt),ie(re),ie(_t),ie(Zt),ie(Pe),ie(ge),ie(Fe),ie(He),ie(Ie),ie(In),ie(bn),ie(cn),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Nt,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 Pn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Nt,nt,et){var ht=Nt?Nt.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.4,gt=.4,mt=.5,St=.5,Mt=Lt(),zt=Lt(),qt=Lt(),re=Lt(),_t=new go.PathFigure((mt-gt)*nt,St*et,!1);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.44,qt,re,zt,Mt,Mt),_t.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,qt.x*nt,qt.y*et,re.x*nt,re.y*et));var Zt=Ft(zt.x,zt.y);Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.56,Mt,Mt,zt,qt,re);var Pe=Ft(zt.x,zt.y);_t.add(new go.PathSegment(go.PathSegment.Line,(Zt.x*.1+.95*.9)*nt,Zt.y*.1*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,Zt.y*.1*et)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*nt,0)),_t.add(new go.PathSegment(go.PathSegment.Line,nt,0)),_t.add(new go.PathSegment(go.PathSegment.Line,nt,.15*et)),_t.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*nt,.15*et)),_t.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*nt,(Pe.y*.1+.05*.9)*et)),_t.add(new go.PathSegment(go.PathSegment.Line,Pe.x*nt,Pe.y*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,qt.x*nt,qt.y*et,re.x*nt,re.y*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),gt=.35,lt=Jt*.35;var ge=new go.PathFigure(mt*nt,(St-gt)*et,!1);ht.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),ge.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et));var Fe=new go.PathFigure((mt-gt)*nt,St*et,!1);return ht.add(Fe),ie(Mt),ie(zt),ie(qt),ie(re),ie(Zt),ie(Pe),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(Nt,nt,et){var ht=new go.Geometry,lt=.375,gt=0,mt=-.125,St=lt*Jt,Mt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.9*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*nt,.85*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*nt,.85*et).close()),lt=.325,gt=0,mt=-.125,St=lt*Jt;var Mt=new go.PathFigure((1-.5+lt+gt)*nt,(.5+mt)*et,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5+lt+mt)*et,(.5+lt+gt)*nt,(.5+St+mt)*et,(.5+St+gt)*nt,(.5+lt+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5+lt+mt)*et,(.5-lt+gt)*nt,(.5+St+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+gt)*nt,(.5+mt)*et,(.5+St+gt)*nt,(.5-lt+mt)*et,(1-.5+lt+gt)*nt,(.5-St+mt)*et));var Mt=new go.PathFigure((.525+gt)*nt,(.5+lt+mt)*et,!1);return ht.add(Mt),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(Nt,nt,et){var ht=Nt?Nt.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(Nt,nt,et){var ht=Nt?Nt.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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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 Pn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Pn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=.3);var gt=(1-ht)*nt,mt=(.5-lt/2)*et,St=(.5+lt/2)*et,Mt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);Mt.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,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),Mt.spot1=new go.Spot(0,mt/et);var qt=Be(0,St/et,1,St/et,gt/nt,1,1,.5,Lt());return Mt.spot2=new go.Spot(qt.x,qt.y),ie(qt),Mt}),go.Shape.setFigureParameter("Arrow2",0,new Pn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Pn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>nt&&(ht=nt);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,et/2);var gt=nt-ht,mt=(et-lt)/2,St=mt+lt,Mt=new go.Geometry,zt=new go.PathFigure(0,mt,!0);Mt.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,St)),zt.add(new go.PathSegment(go.PathSegment.Line,0,St).close()),Mt.spot1=new go.Spot(0,mt/et);var qt=Be(0,St/et,1,St/et,gt/nt,1,1,.5,Lt());return Mt.spot2=new go.Spot(qt.x,qt.y),ie(qt),Mt}),go.Shape.defineFigureGenerator("Chevron",function(Nt,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(Nt,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 Pn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.3*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close());var Mt=Be(0,.5,.3,0,0,lt/et,.1,lt/et,Lt());return mt.spot1=new go.Spot(Mt.x,Mt.y),Mt=Be(.7,1,1,.5,0,gt/et,1,gt/et,Mt),mt.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),mt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Pn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Pn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ht)/2,mt=gt+ht,St=(et-lt)/2,Mt=St+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,gt=(et-ht)/2,mt=gt+ht,St=0,Mt=et):(gt=0,mt=et,St=0,Mt=et));var zt=new go.Geometry,qt=new go.PathFigure(nt,.5*et,!0);zt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,Mt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,St)),qt.add(new go.PathSegment(go.PathSegment.Line,.3*nt,gt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close());var re=Be(0,.5,.3,St/et,0,gt/et,1,gt/et,Lt());return zt.spot1=new go.Spot(re.x,re.y),re=Be(.7,Mt/et,1,.5,0,mt/et,1,mt/et,re),zt.spot2=new go.Spot(re.x,re.y),ie(re),zt}),go.Shape.setFigureParameter("IBeamArrow",0,new Pn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.3);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,et)),St.add(new go.PathSegment(go.PathSegment.Line,0,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,0)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(0,lt/et);var Mt=Be(.7,1,1,.5,0,gt/et,1,gt/et,Lt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),mt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Pn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Pn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=40);var lt=Nt?Nt.parameter2:NaN;isNaN(lt)&&(lt=100);var gt=(et-ht)/2,mt=gt+ht,St=(et-lt)/2,Mt=St+lt;(ht>et||lt>et)&&(lt>ht?(ht=ht*et/lt,gt=(et-ht)/2,mt=gt+ht,St=0,Mt=et):(gt=0,mt=et,St=0,Mt=et));var zt=new go.Geometry,qt=new go.PathFigure(nt,.5*et,!0);zt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,Mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,mt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,Mt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,Mt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,St)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,St)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,gt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),qt.add(new go.PathSegment(go.PathSegment.Line,.7*nt,St).close()),zt.spot1=new go.Spot(0,gt/et);var re=Be(.7,Mt/et,1,.5,0,mt/et,1,mt/et,Lt());return zt.spot2=new go.Spot(re.x,re.y),ie(re),zt}),go.Shape.setFigureParameter("Pointer",0,new Pn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Nt,nt,et){var ht=Nt?Nt.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=Be(.2,.65,1,.65,0,1,1,.5,Lt());return lt.spot2=new go.Spot(mt.x,mt.y),ie(mt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Pn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Nt,nt,et){var ht=Nt?Nt.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=Be(0,.65,1,.65,0,1,1,.5,Lt());return lt.spot2=new go.Spot(mt.x,mt.y),ie(mt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Pn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=.4);var lt=(.5-ht/2)*et,gt=(.5+ht/2)*et,mt=new go.Geometry,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,.3);var Mt=Be(.7,1,1,.5,0,gt/et,1,gt/et,Lt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),mt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Pn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Nt,nt,et){var ht=Nt?Nt.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,St=new go.PathFigure(nt,.5*et,!0);mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,0,gt)),St.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,0,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,.7*nt,0).close()),mt.spot1=new go.Spot(.2,lt/et);var Mt=Be(.7,1,1,.5,0,gt/et,1,gt/et,Lt());return mt.spot2=new go.Spot(Mt.x,Mt.y),ie(Mt),mt}),go.Shape.setFigureParameter("SquareArrow",0,new Pn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Nt,nt,et){var ht=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=Jt*.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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,gt=Jt*.5,mt=new go.PathFigure(0,ht,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,0,0,Jt*ht,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,1*nt,ht,(.5+gt)*nt,0,1*nt,Jt*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-Jt*ht,(.5+gt)*nt,1*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-gt)*nt,1*et,0,et-Jt*ht)),mt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var St=new go.PathFigure(nt,ht,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,2*ht,1*nt,2*ht-Jt*ht,(.5+gt)*nt,2*ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*nt,2*ht,0,2*ht-Jt*ht)),lt.spot1=new go.Spot(0,0,0,2*ht),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var lt=new go.Geometry,gt=Jt*.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,Jt*ht,(.5-gt)*nt,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,(.5+gt)*nt,0,nt,Jt*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-Jt*ht,(.5+gt)*nt,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et-ht,(.5-gt)*nt,et,0,et-Jt*ht));var St=new go.PathFigure(0,et-ht,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,et-2*ht,0,et-ht-Jt*ht,(.5-gt)*nt,et-2*ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,et-ht,(.5+gt)*nt,et-2*ht,nt,et-ht-Jt*ht)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*ht),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,gt=Jt*.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-Jt*ht,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+gt)*et,nt-Jt*ht,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,Jt*ht,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*et,Jt*ht,0));var St=new go.PathFigure(ht,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*et,ht+Jt*ht,0,2*ht,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,ht,et,2*ht,(.5+gt)*et,ht+Jt*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(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var lt=new go.Geometry,gt=Jt*.5,mt=new go.PathFigure(nt-ht,0,!0);lt.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,nt-Jt*ht,0,nt,(.5-gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt,(.5+gt)*et,nt-Jt*ht,et)),mt.add(new go.PathSegment(go.PathSegment.Line,ht,et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*et,Jt*ht,et,0,(.5+gt)*et)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*et,Jt*ht,0)),mt.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0));var St=new go.PathFigure(nt-ht,0,!1);return lt.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-2*ht,.5*et,nt-ht-Jt*ht,0,nt-2*ht,(.5-gt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,et,nt-2*ht,(.5+gt)*et,nt-ht-Jt*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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.2,gt=.1,mt=Jt*lt,St=Jt*gt,Mt=.5,zt=.1,qt=new go.PathFigure(Mt*nt,(zt+gt)*et,!0);ht.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-lt)*nt,zt*et,(Mt-mt)*nt,(zt+gt)*et,(Mt-lt)*nt,(zt+St)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-gt)*et,(Mt-lt)*nt,(zt-St)*et,(Mt-mt)*nt,(zt-gt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+lt)*nt,zt*et,(Mt+mt)*nt,(zt-gt)*et,(Mt+lt)*nt,(zt-St)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt+gt)*et,(Mt+lt)*nt,(zt+St)*et,(Mt+mt)*nt,(zt+gt)*et));var re=.05,_t=Jt*re;Mt=.05,zt=.25;var Zt=new go.PathFigure(.5*nt,.2*et,!0);return ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,.95*nt,.2*et)),Mt=.95,zt=.25,Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+re)*nt,zt*et,(Mt+_t)*nt,(zt-re)*et,(Mt+re)*nt,(zt-_t)*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,nt,.6*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.6*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.85*nt,.35*et)),re=.025,_t=Jt*re,Mt=.825,zt=.35,Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-re)*et,(Mt+re)*nt,(zt-_t)*et,(Mt+_t)*nt,(zt-re)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-re)*nt,zt*et,(Mt-_t)*nt,(zt-re)*et,(Mt-re)*nt,(zt-_t)*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.7*et)),re=.05,_t=Jt*re,Mt=.5,zt=.7,Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-re)*et,(Mt+re)*nt,(zt-_t)*et,(Mt+_t)*nt,(zt-re)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-re)*nt,zt*et,(Mt-_t)*nt,(zt-re)*et,(Mt-re)*nt,(zt-_t)*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.35*et)),re=.025,_t=Jt*re,Mt=.175,zt=.35,Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-re)*et,(Mt+re)*nt,(zt-_t)*et,(Mt+_t)*nt,(zt-re)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-re)*nt,zt*et,(Mt-_t)*nt,(zt-re)*et,(Mt-re)*nt,(zt-_t)*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.15*nt,.6*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,.6*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,0,.25*et)),re=.05,_t=Jt*re,Mt=.05,zt=.25,Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-re)*et,(Mt-re)*nt,(zt-_t)*et,(Mt-_t)*nt,(zt-re)*et)),Zt.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 Pn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Nt,nt,et){var ht=Nt?Nt.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=Jt*.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 St=new go.PathFigure(nt,.1*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*et,(.5-lt)*nt,.3*et,0,(.2+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.3*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.4*et,nt,(.3+gt)*et,(.5+lt)*nt,.4*et)),St.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=Jt*.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 St=new go.PathFigure(nt,.1*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.2*et,nt,(.1+gt)*et,(.5+lt)*nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*et,(.5-lt)*nt,.2*et,0,(.1+gt)*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,.2*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,.5*nt,.3*et,nt,(.2+gt)*et,(.5+lt)*nt,.3*et)),St.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var gt=Jt*.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 St=new go.PathFigure(0,lt*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,lt*et)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.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 St=new go.PathFigure(lt*nt,0,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Move,0,gt*et)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et)),ht}),go.Shape.defineFigureGenerator("Junction",function(Nt,nt,et){var ht=new go.Geometry,lt=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,mt=Jt*.5,St=.5,Mt=new go.PathFigure(nt,St*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,et,nt,(St+mt)*et,(St+mt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,St*et,(St-mt)*nt,et,0,(St+mt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,0,0,(St-mt)*et,(St-mt)*nt,0)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,St*et,(St+mt)*nt,0,nt,(St-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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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 St=new go.PathFigure(.5*lt*nt,lt*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*nt,lt*et)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.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 St=new go.PathFigure(nt,.5*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,0,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.parameter1:NaN,gt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Nt?Nt.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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.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 St=new go.PathFigure(nt,gt*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt*et));var Mt=new go.PathFigure(.8*nt,.75*et,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*nt,.75*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.75*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*nt,.75*et)),ht}),go.Shape.defineFigureGenerator("Ground",function(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.1,gt=.1,mt=.9,St=.5,Mt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,0,et)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.5*et));var zt=new go.PathFigure((mt+gt)*nt,St*et,!0);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=Jt*.4,mt=Jt*.1,St=.1,Mt=.9,zt=.5,qt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,.4*nt,et,.8*nt,(.5+gt)*et,(.4+lt)*nt,et)),qt.add(new go.PathSegment(go.PathSegment.Line,0,et)),qt.add(new go.PathSegment(go.PathSegment.Line,0,0)),qt.add(new go.PathSegment(go.PathSegment.Line,.4*nt,0)),qt.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((Mt+St)*nt,zt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt+St)*et,(Mt+St)*nt,(zt+mt)*et,(Mt+mt)*nt,(zt+St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt,zt*et,(Mt-mt)*nt,(zt+St)*et,(Mt-St)*nt,(zt+mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-St)*et,(Mt-St)*nt,(zt-mt)*et,(Mt-mt)*nt,(zt-St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt,zt*et,(Mt+mt)*nt,(zt-St)*et,(Mt+St)*nt,(zt-mt)*et)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*lt,mt=0,St=.5,Mt=new go.PathFigure(.8*nt,.5*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.7*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*nt,.75*et,.25*nt,.25*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*nt,.5*et,(mt+gt)*nt,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=Jt*.1,mt=.9,St=.5;var zt=new go.PathFigure((mt-lt)*nt,St*et,!0);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*lt,mt=0,St=.5,Mt=new go.PathFigure(0,0,!0);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,nt,.5*et,(mt+gt+gt)*nt,(St-lt)*et,.8*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,et,.8*nt,(St+gt)*et,(mt+gt+gt)*nt,(St+lt)*et)),Mt.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(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*lt,mt=.2,St=.5,Mt=new go.PathFigure(.1*nt,0,!1);ht.add(Mt),Mt.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,(St+gt)*et,(mt+gt)*nt,(St+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,(St-lt)*et,.7*nt,(St-gt)*et)),lt=.1,gt=Jt*.1,mt=.9,St=.5;var qt=new go.PathFigure((mt-lt)*nt,St*et,!0);return ht.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*lt,mt=.2,St=.5,Mt=new go.PathFigure(.1*nt,0,!1);ht.add(Mt),Mt.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,(St-lt)*et,.9*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,.2*nt,et,.9*nt,(St+gt)*et,(mt+gt)*nt,(St+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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.1,gt=.1,mt=.1,St=.5,Mt=new go.PathFigure((mt-lt*.5)*nt,et,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.3,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.5,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.7,Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,et,(mt+gt)*nt,0,(mt+lt)*nt,et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,0,(mt-lt)*nt,et,(mt-gt)*nt,0)),mt=.9,Mt.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(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.5,gt=.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-gt)*nt,St*et,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St-gt)*et,(mt+gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Move,(mt-gt+.1)*nt,St*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt-.1)*nt,St*et,mt*nt,(St-gt)*et,mt*nt,(St+gt)*et)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=nt,gt=et;nt=nt*.38,et=et*.6;var mt=Jt*.8,St=.8,Mt=0,zt=.5,qt=(lt-nt)/2,re=(gt-et)/2,_t=new go.PathFigure(Mt*nt+qt,(zt+St)*et+re,!0);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+qt,zt*et+re,(Mt-mt)*nt+qt,(zt+St)*et+re,(Mt-St)*nt+qt,(zt+mt)*et+re)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt-St)*et+re,(Mt-St)*nt+qt,(zt-mt)*et+re,(Mt-mt)*nt+qt,(zt-St)*et+re)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St+mt*.5)*nt+qt,zt*et+re,Mt*nt+qt,(zt-St)*et+re,(Mt-St+mt*.5)*nt+qt,(zt-mt)*et+re)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt+St)*et+re,(Mt-St+mt*.5)*nt+qt,(zt+mt)*et+re,Mt*nt+qt,(zt+St)*et+re).close()),mt=Jt*.4,St=.4,Mt=.2,zt=.5;var Zt=new go.PathFigure(Mt*nt+qt,(zt+St)*et+re,!0);ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+qt,zt*et+re,(Mt-mt)*nt+qt,(zt+St)*et+re,(Mt-St)*nt+qt,(zt+mt)*et+re)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt-St)*et+re,(Mt-St)*nt+qt,(zt-mt)*et+re,(Mt-mt)*nt+qt,(zt-St)*et+re)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St+mt*.5)*nt+qt,zt*et+re,Mt*nt+qt,(zt-St)*et+re,(Mt-St+mt*.5)*nt+qt,(zt-mt)*et+re)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt+St)*et+re,(Mt-St+mt*.5)*nt+qt,(zt+mt)*et+re,Mt*nt+qt,(zt+St)*et+re).close()),mt=Jt*.2,St=.2,Mt=.5,zt=.5;var Pe=new go.PathFigure((Mt-St)*nt+qt,zt*et+re,!0);ht.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt-St)*et+re,(Mt-St)*nt+qt,(zt-mt)*et+re,(Mt-mt)*nt+qt,(zt-St)*et+re)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+qt,zt*et+re,(Mt+mt)*nt+qt,(zt-St)*et+re,(Mt+St)*nt+qt,(zt-mt)*et+re)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt+St)*et+re,(Mt+St)*nt+qt,(zt+mt)*et+re,(Mt+mt)*nt+qt,(zt+St)*et+re)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-St)*nt+qt,zt*et+re,(Mt-mt)*nt+qt,(zt+St)*et+re,(Mt-St)*nt+qt,(zt+mt)*et+re)),mt=Jt*.4,St=.4,Mt=.8,zt=.5;var ge=new go.PathFigure(Mt*nt+qt,(zt-St)*et+re,!0);ht.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+qt,zt*et+re,(Mt+mt)*nt+qt,(zt-St)*et+re,(Mt+St)*nt+qt,(zt-mt)*et+re)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt+St)*et+re,(Mt+St)*nt+qt,(zt+mt)*et+re,(Mt+mt)*nt+qt,(zt+St)*et+re)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St-mt*.5)*nt+qt,zt*et+re,Mt*nt+qt,(zt+St)*et+re,(Mt+St-mt*.5)*nt+qt,(zt+mt)*et+re)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt-St)*et+re,(Mt+St-mt*.5)*nt+qt,(zt-mt)*et+re,Mt*nt+qt,(zt-St)*et+re).close()),mt=Jt*.8,St=.8,Mt=1,zt=.5;var Fe=new go.PathFigure(Mt*nt+qt,(zt-St)*et+re,!0);return ht.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St)*nt+qt,zt*et+re,(Mt+mt)*nt+qt,(zt-St)*et+re,(Mt+St)*nt+qt,(zt-mt)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt+St)*et+re,(Mt+St)*nt+qt,(zt+mt)*et+re,(Mt+mt)*nt+qt,(zt+St)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+St-mt*.5)*nt+qt,zt*et+re,Mt*nt+qt,(zt+St)*et+re,(Mt+St-mt*.5)*nt+qt,(zt+mt)*et+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt+qt,(zt-St)*et+re,(Mt+St-mt*.5)*nt+qt,(zt-mt)*et+re,Mt*nt+qt,(zt-St)*et+re).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Nt,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(Nt,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 St=new go.PathFigure(0,.5*et,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Move,.5*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.5*nt,.4*et)),St.add(new go.PathSegment(go.PathSegment.Move,.75*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.75*nt,.6*et)),St.add(new go.PathSegment(go.PathSegment.Move,.25*nt,.5*et)),St.add(new go.PathSegment(go.PathSegment.Line,.25*nt,.6*et)),ht}),go.Shape.defineFigureGenerator("Power",function(Nt,nt,et){var ht=new go.Geometry,lt=Jt*.4,gt=.4,mt=.5,St=.5,Mt=Lt(),zt=Lt(),qt=Lt(),re=Lt();Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,Mt,Mt,zt,qt,re);var _t=Ft(zt.x,zt.y),Zt=new go.PathFigure(zt.x*nt,zt.y*et,!0);ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,qt.x*nt,qt.y*et,re.x*nt,re.y*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,(mt-lt)*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et)),Ne(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,qt,re,zt,Mt,Mt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,qt.x*nt,qt.y*et,re.x*nt,re.y*et)),lt=Jt*.3,gt=.3,Ne(mt-gt,St,mt-gt,St-lt,mt-lt,St-gt,mt,St-gt,.5,qt,re,zt,Mt,Mt),Zt.add(new go.PathSegment(go.PathSegment.Line,zt.x*nt,zt.y*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-gt)*nt,St*et,re.x*nt,re.y*et,qt.x*nt,qt.y*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+gt)*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+gt)*nt,St*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Ne(mt,St-gt,mt+lt,St-gt,mt+gt,St-lt,mt+gt,St,.5,Mt,Mt,zt,qt,re),Zt.add(new go.PathSegment(go.PathSegment.Bezier,zt.x*nt,zt.y*et,re.x*nt,re.y*et,qt.x*nt,qt.y*et).close());var Zt=new go.PathFigure(.45*nt,0,!0);return ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,.45*nt,.5*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,.5*et)),Zt.add(new go.PathSegment(go.PathSegment.Line,.55*nt,0).close()),ie(Mt),ie(zt),ie(qt),ie(re),ie(_t),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Nt,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,St,Mt){mt.add(new go.PathSegment(go.PathSegment.Move,(.3+St)*nt,(.8+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.5+St)*nt,(.5+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.1+St)*nt,(.5+Mt)*et)),mt.add(new go.PathSegment(go.PathSegment.Line,(.3+St)*nt,(.8+Mt)*et).close())}return gt(lt,0,0),gt(lt,.4,0),gt(lt,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=0,mt=0,St=lt*Jt,Mt=.4*Math.SQRT2/2+.5,zt=.5-.5*Math.SQRT2/2,qt=1,re=.5,_t=.5,Zt=0,Pe=new go.PathFigure(Mt*nt,(1-zt)*et,!1);return ht.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,qt*nt,re*et,qt*nt,.7*et,qt*nt,re*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(_t+gt)*nt,(Zt+gt)*et,(.5+lt+gt)*nt,(.5-St+gt)*et,(.5+St+gt)*nt,(.5-lt+gt)*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+gt)*nt,(.5+mt)*et,(.5-St+gt)*nt,(.5-lt+mt)*et,(.5-lt+gt)*nt,(.5-St+mt)*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*nt,.9*et,(.5-lt+gt)*nt,(.5+St+mt)*et,(.5-St+gt)*nt,.9*et)),Pe.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*nt,.8*et)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*nt,.9*et)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*nt,.95*et)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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,St=.5,Mt=mt,zt=Math.PI/4,qt=4*(1-Math.cos(zt))/(3*Math.sin(zt)),re=qt*.5,_t=mt,Zt=mt,Pe=qt*_t,ge=qt*Zt;gt.add(new go.PathSegment(go.PathSegment.Bezier,(St-_t)*nt,Mt*et,(St-(Pe+_t)/2)*nt,(Mt+(Zt+ge)/2)*et,(St-_t)*nt,(Mt+ge)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,St*nt,(Mt-Zt)*et,(St-_t)*nt,(Mt-ge)*et,(St-Pe)*nt,(Mt-Zt)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(St+_t)*nt,Mt*et,(St+Pe)*nt,(Mt-Zt)*et,(St+_t)*nt,(Mt-ge)*et)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*nt,(1-.595)*et,(St+_t)*nt,(Mt+ge)*et,(St+(Pe+_t)/2)*nt,(Mt+(Zt+ge)/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 He=new go.PathFigure(.8*nt,et,!1);return ht.add(He),He.add(new go.PathSegment(go.PathSegment.Line,.8*nt,.8*et)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*.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 St=new go.PathFigure(lt*nt,0,!1);return ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.15*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,et)),St.add(new go.PathSegment(go.PathSegment.Line,lt*nt,.85*et)),St.add(new go.PathSegment(go.PathSegment.Move,0,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.15*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.85*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.58*nt,.1*et)),St.add(new go.PathSegment(go.PathSegment.Move,lt*nt,lt*et)),St.add(new go.PathSegment(go.PathSegment.Line,.78*nt,.54*et)),ht}),go.Shape.defineFigureGenerator("Package",function(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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,St=Jt*.1,Mt=.2,zt=.9,qt=new go.PathFigure((Mt-mt)*nt,zt*et,!0);ht.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-mt)*et,(Mt-mt)*nt,(zt-St)*et,(Mt-St)*nt,(zt-mt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+mt)*nt,zt*et,(Mt+St)*nt,(zt-mt)*et,(Mt+mt)*nt,(zt-St)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt+mt)*et,(Mt+mt)*nt,(zt+St)*et,(Mt+St)*nt,(zt+mt)*et)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-mt)*nt,zt*et,(Mt-St)*nt,(zt+mt)*et,(Mt-mt)*nt,(zt+St)*et).close()),mt=.1,St=Jt*.1,Mt=.8,zt=.9;var re=new go.PathFigure((Mt-mt)*nt,zt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt-mt)*et,(Mt-mt)*nt,(zt-St)*et,(Mt-St)*nt,(zt-mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+mt)*nt,zt*et,(Mt+St)*nt,(zt-mt)*et,(Mt+mt)*nt,(zt-St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,Mt*nt,(zt+mt)*et,(Mt+mt)*nt,(zt+St)*et,(Mt+St)*nt,(zt+mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-mt)*nt,zt*et,(Mt-St)*nt,(zt+mt)*et,(Mt-mt)*nt,(zt+St)*et).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Nt,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(Nt,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 St=new go.PathFigure(.5*nt,.7*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt,.7*et));var Mt=.1,zt=Jt*.1,qt=.1,re=.9,_t=new go.PathFigure((qt-Mt)*nt,re*et,!0);ht.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,qt*nt,(re-Mt)*et,(qt-Mt)*nt,(re-zt)*et,(qt-zt)*nt,(re-Mt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Mt)*nt,re*et,(qt+zt)*nt,(re-Mt)*et,(qt+Mt)*nt,(re-zt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,qt*nt,(re+Mt)*et,(qt+Mt)*nt,(re+zt)*et,(qt+zt)*nt,(re+Mt)*et)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Mt)*nt,re*et,(qt-zt)*nt,(re+Mt)*et,(qt-Mt)*nt,(re+zt)*et)),Mt=.1,zt=Jt*.1,qt=.4,re=.9;var Zt=new go.PathFigure((qt-Mt)*nt,re*et,!0);return ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,qt*nt,(re-Mt)*et,(qt-Mt)*nt,(re-zt)*et,(qt-zt)*nt,(re-Mt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(qt+Mt)*nt,re*et,(qt+zt)*nt,(re-Mt)*et,(qt+Mt)*nt,(re-zt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,qt*nt,(re+Mt)*et,(qt+Mt)*nt,(re+zt)*et,(qt+zt)*nt,(re+Mt)*et)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(qt-Mt)*nt,re*et,(qt-zt)*nt,(re+Mt)*et,(qt-Mt)*nt,(re+zt)*et)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Nt,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 qt=.05,re=Jt*.05,_t=.175,Zt=.95,St=new go.PathFigure((_t-qt)*nt,Zt*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt-qt)*et,(_t-qt)*nt,(Zt-re)*et,(_t-re)*nt,(Zt-qt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(_t+qt)*nt,Zt*et,(_t+re)*nt,(Zt-qt)*et,(_t+qt)*nt,(Zt-re)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt+qt)*et,(_t+qt)*nt,(Zt+re)*et,(_t+re)*nt,(Zt+qt)*et)),St.add(new go.PathSegment(go.PathSegment.Bezier,(_t-qt)*nt,Zt*et,(_t-re)*nt,(Zt+qt)*et,(_t-qt)*nt,(Zt+re)*et));var qt=.05,re=Jt*.05,_t=.375,Zt=.95,Mt=new go.PathFigure((_t-qt)*nt,Zt*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt-qt)*et,(_t-qt)*nt,(Zt-re)*et,(_t-re)*nt,(Zt-qt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+qt)*nt,Zt*et,(_t+re)*nt,(Zt-qt)*et,(_t+qt)*nt,(Zt-re)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt+qt)*et,(_t+qt)*nt,(Zt+re)*et,(_t+re)*nt,(Zt+qt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-qt)*nt,Zt*et,(_t-re)*nt,(Zt+qt)*et,(_t-qt)*nt,(Zt+re)*et));var qt=.05,re=Jt*.05,_t=.625,Zt=.95,zt=new go.PathFigure((_t-qt)*nt,Zt*et,!0);ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt-qt)*et,(_t-qt)*nt,(Zt-re)*et,(_t-re)*nt,(Zt-qt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(_t+qt)*nt,Zt*et,(_t+re)*nt,(Zt-qt)*et,(_t+qt)*nt,(Zt-re)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt+qt)*et,(_t+qt)*nt,(Zt+re)*et,(_t+re)*nt,(Zt+qt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(_t-qt)*nt,Zt*et,(_t-re)*nt,(Zt+qt)*et,(_t-qt)*nt,(Zt+re)*et));var qt=.05,re=Jt*.05,_t=.825,Zt=.95,Pe=new go.PathFigure((_t-qt)*nt,Zt*et,!0);ht.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt-qt)*et,(_t-qt)*nt,(Zt-re)*et,(_t-re)*nt,(Zt-qt)*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(_t+qt)*nt,Zt*et,(_t+re)*nt,(Zt-qt)*et,(_t+qt)*nt,(Zt-re)*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,_t*nt,(Zt+qt)*et,(_t+qt)*nt,(Zt+re)*et,(_t+re)*nt,(Zt+qt)*et)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(_t-qt)*nt,Zt*et,(_t-re)*nt,(Zt+qt)*et,(_t-qt)*nt,(Zt+re)*et).close());var ge=new go.PathFigure(0,et,!1);return ht.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,nt,et).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Nt,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 St=.05,Mt=Jt*.05,zt=.35,qt=.775,re=new go.PathFigure((zt-St)*nt,qt*et,!0);return ht.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(qt-St)*et,(zt-St)*nt,(qt-Mt)*et,(zt-Mt)*nt,(qt-St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(zt+St)*nt,qt*et,(zt+Mt)*nt,(qt-St)*et,(zt+St)*nt,(qt-Mt)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,zt*nt,(qt+St)*et,(zt+St)*nt,(qt+Mt)*et,(zt+Mt)*nt,(qt+St)*et)),re.add(new go.PathSegment(go.PathSegment.Bezier,(zt-St)*nt,qt*et,(zt-Mt)*nt,(qt+St)*et,(zt-St)*nt,(qt+Mt)*et).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.3,gt=Jt*.3,mt=.5,St=.7,Mt=new go.PathFigure((mt-lt)*nt,St*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-lt)*nt,St*et,!0);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=.5,gt=Jt*.5,mt=.5,St=.5,Mt=new go.PathFigure((mt-lt)*nt,St*et,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+gt)*et).close()),lt=.05,gt=Jt*.05,mt=.5,St=.8;var zt=new go.PathFigure((mt-lt)*nt,St*et,!1);return ht.add(zt),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St-lt)*et,(mt-lt)*nt,(St-gt)*et,(mt-gt)*nt,(St-lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+lt)*nt,St*et,(mt+gt)*nt,(St-lt)*et,(mt+lt)*nt,(St-gt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,mt*nt,(St+lt)*et,(mt+lt)*nt,(St+gt)*et,(mt+gt)*nt,(St+lt)*et)),zt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-lt)*nt,St*et,(mt-gt)*nt,(St+lt)*et,(mt-lt)*nt,(St+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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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 St=new go.PathFigure(.678*nt,.85*et,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.678*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.45*et)),St.add(new go.PathSegment(go.PathSegment.Line,.874*nt,.85*et).close());var Mt=new go.PathFigure(.5*nt,.1*et,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*nt,.3*et)),Mt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*nt,.3*et).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Nt,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(Nt,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 St=new go.PathFigure(nt*.612,et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.612,et*(1-.184*3))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*(1-.184*4))),St.add(new go.PathSegment(go.PathSegment.Line,nt*.796,et*1).close());var Mt=new go.PathFigure(nt*.816,et,!0);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.816,et*(1-.184*4))),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*(1-.184*5))),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Nt,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 St=new go.PathFigure(nt*.055,.18*et,!0);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.18)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.245,et*.21)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.055,et*.21).close());var Mt=new go.PathFigure(nt*1,0,!0);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.4,et*.65)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*1,et*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Nt,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(Nt,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(Nt,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 St=new go.PathFigure(nt*(.11+.24133333*1+.028*1),et*.1,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.1)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*1),et*.8)),St.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*1+.028*1),et*.8).close());var Mt=new go.PathFigure(nt*(.11+.24133333*2+.028*2),et*.1,!1);return ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.1)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*3+.028*2),et*.8)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*(.11+.24133333*2+.028*2),et*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Nt,nt,et){var ht=new go.Geometry,lt=8,gt=lt*Jt,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 St=new go.PathFigure(nt*.83,0,!1);ht.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.3)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*0).close());var Mt=new go.PathFigure(nt*.83,et*1,!1);ht.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.83,et*.5)),Mt.add(new go.PathSegment(go.PathSegment.Line,nt*.17,et*.5)),Mt.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(Nt,nt,et){var ht=Nt?Nt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,nt/3),ht=Math.min(ht,et/3);var lt=ht*Jt,gt=et*.8,mt=new go.Geometry,St=new go.PathFigure(ht,0,!0);return mt.add(St),St.add(new go.PathSegment(go.PathSegment.Line,nt-ht,0)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt,ht,nt-lt,0,nt,lt)),St.add(new go.PathSegment(go.PathSegment.Line,nt,gt-ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,nt-ht,gt,nt,gt-lt,nt-lt,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,gt)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.7,et)),St.add(new go.PathSegment(go.PathSegment.Line,nt*.55,gt)),St.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),St.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,lt,gt,0,gt-lt)),St.add(new go.PathSegment(go.PathSegment.Line,0,ht)),St.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,lt,lt,0).close()),lt>1?(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(Nt,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(Nt,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(Nt,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(Nt,nt,et){var ht=new go.Geometry,lt=15,gt=lt*Jt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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(Nt,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 Pn={},Hn="5.0",Ft={},Lt=null,ie=!1,Be=!1,Ne=null,Ae=!1,Dt=null,Jt=null,ue=0;ue<arguments.length;ue++){var ce=arguments[ue];if(ce!==null)switch(typeof ce){case"number":Hn=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Hn=ce:Ne=ce;break;case"object":typeof ce.is3D!="undefined"?Lt=ce:Ft=ce;break;case"boolean":ie=ce,Be=!0;break}}Lt===null&&(Lt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ft.material_id!==void 0&&!Be&&(ie=!0)),Ne!==null&&Ft.id===void 0&&(Ft.id=Ne);var ye="",Je="",de=!1,It=null,Nt=null,nt=null,et=!1,ht=null,lt=null,gt=null,mt=null,St=null;Ft.height!==void 0&&(Ft.height=Math.round(Ft.height)),Ft.width!==void 0&&(Ft.width=Math.round(Ft.width));var Mt=function(Le){return parseFloat(Le)>4?parseFloat(Le):5};Pn.setHTML5Codebase=function(Le,gn){Jt=Le,Ee(Le,gn)},Pn.setJavaCodebase=Pn.setJavaCodebaseVersion=Pn.isCompiledInstalled=Pn.setPreCompiledScriptPath=Pn.setPreCompiledResourcePath=function(){},Pn.setHTML5CodebaseVersion=function(Le,gn){var $e=parseFloat(Le);if($e!==NaN&&$e<5){console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead.");return}Dt=Le,jt(Le,gn)},Pn.getHTML5CodebaseVersion=function(){return Nt},Pn.getParameters=function(){return Ft},Pn.setFontsCSSURL=function(Le){mt=Le},Pn.setGiacJSURL=function(Le){},Pn.setJNLPFile=function(Le){ye=Le},Pn.setJNLPBaseDir=function(Le){},Pn.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gn="auto",$e=Ft.id,Fn,ke=!1,fe=0;fe<arguments.length;fe++){var Re=arguments[fe];typeof Re=="string"?(Re=Re.toLowerCase(),Re.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gn=Re:$e=arguments[fe]):typeof Re=="boolean"?ke=Re:Re instanceof HTMLElement&&(Fn=Re)}dn();function dn(){if(!Ae){setTimeout(dn,200);return}gn=Xn(gn);var Te=Fn||document.getElementById($e);if(!Te){console.log("possibly bug on ajax loading? ");return}if(Pn.removeExistingApplet(Te,!1),Ft.width===void 0&&Te.clientWidth&&(Ft.width=Te.clientWidth),Ft.height===void 0&&Te.clientHeight&&(Ft.height=Te.clientHeight),!(Ft.width&&Ft.height)&&gn==="html5"&&(delete Ft.width,delete Ft.height),It=gn,gn==="screenshot")He(Te,Ft);else{var Ht=!1;Ft.hasOwnProperty("playButton")&&Ft.playButton||Ft.hasOwnProperty("clickToLoad")&&Ft.clickToLoad?Ht=!0:Ft.hasOwnProperty("playButtonAutoDecide")&&Ft.playButtonAutoDecide&&(Ht=(!zt()||Le())&&qt()),Ht?(It="screenshot",In(Te,Ft,ke,gn)):Fe(Te,Ft,ke)}}};function zt(){try{return window.self!==window.top}catch(Le){return!0}}function qt(){return Ft.hasOwnProperty("screenshotGenerator")&&Ft.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Pn.getViews=function(){return Lt},Pn.isJavaInstalled=function(){return!1};var re=function(Le){var gn=function(fe){var Re=JSON.parse(fe),dn=function(At){return At.type=="G"||At.type=="E"},Te=Re.elements?Re.elements.filter(dn)[0]:Re;if(!Te||!Te.url){$e();return}Ft.fileName=Te.url,_t(Te.settings||{}),Lt.is3D=!0;var Ht="https://www.geogebra.org/images/";Pn.setPreviewImage(ht||Te.previewUrl,Ht+"GeoGebra_loading.png",Ht+"applet_play.png"),Le()},$e=function(){Ft.onError&&Ft.onError(),sn("Error: Fetching material (id "+Ft.material_id+") failed.",Ft)},Fn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ke="/materials/"+Ft.material_id+"?scope=basic";Zt("https://"+Fn+"/api/proxy.php?path="+encodeURIComponent(ke),gn,$e)};function _t(Le){var gn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function($e){Le[$e]=!!Le[$e]}),gn.forEach(function($e){Ft[$e]===void 0&&Le[$e]!==void 0&&(Ft[$e]=Le[$e])}),Ft.showToolBarHelp===void 0&&(Ft.showToolBarHelp=Ft.showToolBar)}function Zt(Le,gn,$e){var Fn=new XMLHttpRequest;Fn.open("GET",Le),Fn.onload=function(){gn(Fn.responseText)},Fn.onerror=$e,Fn.send()}Pn.isHTML5Installed=function(){return!0},Pn.getLoadedAppletType=function(){return It},Pn.setPreviewImage=function(Le,gn,$e){ht=Le,lt=gn,gt=$e},Pn.removeExistingApplet=function(Le,gn){var $e;typeof Le=="string"&&(Le=document.getElementById(Le)),It=null;var Fn=null;for($e=0;$e<Le.childNodes.length;$e++){var ke=Le.childNodes[$e],fe=ke.className;fe==="applet_screenshot"?gn?(ke.style.display="block",It="screenshot"):ke.style.display="none":fe!=="applet_scaler prerender"&&(Le.removeChild(ke),Fn=fe&&fe.indexOf("appletParameters")!=-1?ke.id:null,$e--)}var Re=Ft.id!==void 0?Ft.id:Fn,dn=window[Re];dn&&typeof dn.getBase64=="function"&&(dn.remove(),window[Re]=null)},Pn.refreshHitPoints=function(){if(Mt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=Pn.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},Pn.startAnimation=function(){var Le=Pn.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},Pn.stopAnimation=function(){var Le=Pn.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},Pn.getAppletObject=function(){var Le=Ft.id!==void 0?Ft.id:"ggbApplet";return window[Le]},Pn.resize=function(){};var Pe=function(Le,gn,$e){var Fn=document.createElement("param");Fn.setAttribute("name",gn),Fn.setAttribute("value",$e),Le.appendChild(Fn)},ge=function(Le){return Le&&Le!=="false"},Fe=function(Le,gn,$e){Mt(Nt)<=4.2&&($e=!0);var Fn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Nt||ggbHTML5LoadedCodebaseIsWebSimple&&!et)&&(Fn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ke=document.createElement("div");ke.classList.add("appletParameters","notranslate");var fe=gn.width,Re=gn.height;if(gn.disableAutoScale=gn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gn.disableAutoScale,gn.width!==void 0)if(Mt(Nt)<=4.4)ge(gn.showToolBar)&&(gn.height-=7),ge(gn.showAlgebraInput)&&(gn.height-=37),gn.width<605&&ge(gn.showToolBar)&&(gn.width=605,fe=605);else{var dn=100;(ge(gn.showToolBar)||ge(gn.showMenuBar))&&(gn.hasOwnProperty("customToolBar")&&(gn.customToolbar=gn.customToolBar),dn=ge(gn.showMenuBar)?245:155),fe<dn&&(gn.width=dn,fe=dn)}ke.style.border="none",ke.style.display="inline-block";for(var Te in gn)gn.hasOwnProperty(Te)&&Te!=="appletOnLoad"&&ke.setAttribute("data-param-"+Te,gn[Te]);mt&&ke.setAttribute("data-param-fontscssurl",mt),Pn.resize=function(){GGBAppletUtils.responsiveResize(Le,gn)},window.addEventListener("resize",function(Ke){Pn.resize()});var Ht=typeof gn.appletOnLoad=="function"?gn.appletOnLoad:function(){};if(!$e&&gn.width!==void 0){gn.hasOwnProperty("showSplash")||ke.setAttribute("data-param-showSplash","false");var At=Le.querySelector(".applet_scaler.prerender"),Ct=At!==null;if(Ct)var Tt=At.querySelector(".ggb_preview");else{var Tt=cn(fe,Re,gn.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=fe+"px",At.style.height=Re+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),Mt(Nt)>=5?(gn.appletOnLoad=function(Ke){var jn=Le.querySelector(".ggb_preview");jn&&jn.parentNode.removeChild(jn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Ht(Ke)},Ct||At.appendChild(Tt)):ke.appendChild(Tt),At.appendChild(ke),Ct||Le.appendChild(At),setTimeout(function(){Pn.resize()},1)}else{var Xt=document.createElement("div");Xt.className="applet_scaler",Xt.style.position="relative",Xt.style.display="block",Xt.appendChild(ke),Le.appendChild(Xt),gn.appletOnLoad=function(Ke){Pn.resize(),Ht(Ke)}}function kt(Ke,jn){jn&&typeof jn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ke,jn.appletOnLoad):renderGGBElement(Ke),sn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jn)}function ee(Ke,jn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ke,params:jn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ni){kt(ni.article,ni.params)}),html5AppletsToProcess=null)},Mt(Nt)<5&&(Ke.className+=" geogebraweb")):kt(Ke,jn)}if(Fn){scriptLoadStarted=!0;for(var rn=0;rn<ke.childNodes.length;rn++){var on=ke.childNodes[rn].tagName;on==="TABLE"&&(ke.removeChild(ke.childNodes[rn]),rn--)}if(ggbHTML5LoadedScript!==null){var Un=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Un!=null&&Un.parentNode.removeChild(Un)}var en=document.createElement("script"),Mn=function(){ee(ke,gn)};en.src=Je+nt,ggbHTML5LoadedCodebaseIsWebSimple=et,ggbHTML5LoadedCodebaseVersion=Nt,ggbHTML5LoadedScript=en.src,sn("GeoGebra HTML5 codebase loaded: '"+Je+"'.",gn),!Jt&&(!Dt||Dt=="5.0")?(et?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Mn()):Je.requirejs?__webpack_require__.e(12).then(function(){var Ke=[__webpack_require__(12)];Mn.apply(null,Ke)}.bind(this)).catch(__webpack_require__.oe):(en.onload=Mn,Le.appendChild(en))}else ee(ke,gn);gn.height=Re,gn.width=fe},He=function(Le,gn,$e){var Fn=cn(gn.width,gn.height,gn.borderColor,$e),ke=document.createElement("div");ke.style.position="relative",ke.style.display="block",ke.style.width=gn.width+"px",ke.style.height=gn.height+"px",ke.className="applet_screenshot applet_scaler"+($e?" applet_screenshot_play":""),ke.appendChild(Fn);var fe=GGBAppletUtils.getScale(gn,Le,$e);$e?(Le.appendChild(bn()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ke,"66%"),Le.appendChild(ke),fe!==1&&!isNaN(fe)&&(GGBAppletUtils.scaleElement(ke,fe),ke.style.width=gn.width+"px",ke.style.height=gn.height+"px",ke.parentNode.style.width=gn.width*fe+"px",ke.parentNode.style.height=gn.height*fe+"px"),Pn.resize=function(){Ie(Le,Fn,ke,$e)},window.addEventListener("resize",function(Re){Pn.resize()}),Pn.resize()};function Ie(Le,gn,$e,Fn){if(Le.contains(gn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var ke=GGBAppletUtils.getScale(Ft,Le,Fn);$e.parentNode!==null&&(!isNaN(ke)&&ke!==1?(GGBAppletUtils.scaleElement($e,ke),$e.parentNode.style.width=Ft.width*ke+"px",$e.parentNode.style.height=Ft.height*ke+"px"):(GGBAppletUtils.scaleElement($e,1),$e.parentNode.style.width=Ft.width+"px",$e.parentNode.style.height=Ft.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Le),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Pn.onExitFullscreen=function(Le,gn){gn.appendChild(Le)};var In=function(Le,gn,$e,Fn){He(Le,gn,!0);for(var ke=function(){var dn=[];for(Re=0;Re<Le.childNodes.length;Re++)dn.push(Le.childNodes[Re]);if(window.GGBT_wsf_view){var Te=window.GGBT_wsf_view.renderFullScreen(Le,gn.id),Ht=document.getElementById("fullscreencontainer"),At=jQuery(Le).find(".fullscreencontent");At.length>0?(Te.remove(),At.attr("id","fullscreencontent").show(),jQuery(Ht).append(At),window.dispatchEvent(new Event("resize"))):Fe(Te,gn,!1),window.GGBT_wsf_view.launchFullScreen(Ht)}else It=Fn,Fe(Le,gn,!1);if(!window.GGBT_wsf_view)for(Re=0;Re<dn.length;Re++)Le.removeChild(dn[Re])},fe=Le.getElementsByClassName("ggb_preview_play"),Re=0;Re<fe.length;Re++)fe[Re].addEventListener("click",ke,!1),fe[Re].addEventListener("ontouchstart",ke,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),qt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},bn=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gn='.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");}',$e=document.createElement("style");$e.styleSheet?$e.styleSheet.cssText=gn:$e.appendChild(document.createTextNode(gn)),document.getElementsByTagName("head")[0].appendChild($e)}return Le},cn=function(Le,gn,$e,Fn){var ke=document.createElement("div");ke.className="ggb_preview",ke.style.position="absolute",ke.style.zIndex="90",ke.style.width=Le-2+"px",ke.style.height=gn-2+"px",ke.style.top="0px",ke.style.left="0px",ke.style.overflow="hidden",ke.style.backgroundColor="white";var fe="lightgrey";$e!==void 0&&($e==="none"?fe="transparent":fe=$e),ke.style.border="1px solid "+fe;var Re=document.createElement("img");if(Re.style.position="relative",Re.style.zIndex="1000",Re.style.top="-1px",Re.style.left="-1px",ht!==null&&Re.setAttribute("src",ht),Re.style.opacity=.7,lt!==null){var dn,Te,Ht;if(!Fn){dn=document.createElement("img"),dn.style.position="absolute",dn.style.zIndex="1001",dn.style.opacity=1,Re.style.opacity=.3,Te=360,Te>Le/4*3&&(Te=Le/4*3),Ht=Te/5.8,dn.setAttribute("src",lt),dn.setAttribute("width",Te),dn.setAttribute("height",Ht);var At=(Le-Te)/2,Ct=(gn-Ht)/2;dn.style.left=At+"px",dn.style.top=Ct+"px",ke.appendChild(dn)}}return ke.appendChild(Re),ke},Xn=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},$t=["web","webSimple","web3d","tablet","tablet3d","phone"],jt=function(Le,gn){if(Nt=Le,gn){Ee(Nt,!0);return}var $e=!ie;if($e){var Fn=Mt(Nt);!isNaN(Fn)&&Fn<4.4&&($e=!1)}var ke,fe;window.location.protocol.substr(0,4)==="http"?ke=window.location.protocol:ke="http:";var Re=Nt.indexOf("//");Re>0?fe=Nt:Re===0?fe=ke+Nt:fe="https://www.geogebra.org/apps/5.2.814.0/";for(var dn in $t)if(Nt.slice($t[dn].length*-1)===$t[dn]||Nt.slice(($t[dn].length+1)*-1)===$t[dn]+"/"){Ee(fe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&$e&&!Lt.is3D&&!Lt.AV&&!Lt.SV&&!Lt.CV&&!Lt.EV2&&!Lt.CP&&!Lt.PC&&!Lt.DA&&!Lt.FI&&!Lt.PV&&!ge(Ft.showToolBar)&&!ge(Ft.showMenuBar)&&!ge(Ft.showAlgebraInput)&&!ge(Ft.enableRightClick)&&(!Ft.appName||Ft.appName=="classic")?fe+="webSimple/":fe+="web3d/",Ee(fe,!1)},Ee=function(Le,gn){if(Le.requirejs){Je=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),Je=Le,gn===null&&(gn=Le.indexOf("http")===-1),de=gn,nt="web.nocache.js",et=!1;var $e=Je.split("/");$e.length>1&&(!gn&&$e[$e.length-2]==="webSimple"?(nt="webSimple.nocache.js",et=!0):$t.indexOf($e[$e.length-2])>=0&&(nt=$e[$e.length-2]+".nocache.js")),$e=Le.split("/"),Nt=$e[$e.length-3],Nt.substr(0,4)==="test"?Nt=Nt.substr(4,1)+"."+Nt.substr(5,1):(Nt.substr(0,3)==="war"||Nt.substr(0,4)==="beta")&&(Nt="5.0");var Fn=parseFloat(Nt);Fn!==NaN&&Fn<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Fn+" is deprecated. Using version latest instead."),jt("5.0",gn))},sn=function(Le,gn){window.console&&window.console.log&&(!gn||typeof gn.showLogging=="undefined"||gn.showLogging&&gn.showLogging!=="false")&&console.log(Le)};Ft.material_id!==void 0?re(Tn):Tn();function Tn(){var Le=Hn;Dt!==null?Le=Dt:parseFloat(Le)<5&&(Le="5.0"),jt(Le,!1),Jt!==null&&Ee(Jt,de),Ae=!0}return Pn},GGBAppletUtils=function(){"use strict";function Pn(){return window.GGBT_wsf_edit!==void 0}function Hn(Ae,Dt){Dt!=1?(Ae.style.transformOrigin="0% 0% 0px",Ae.style.webkitTransformOrigin="0% 0% 0px",Ae.style.transform="scale("+Dt+","+Dt+")",Ae.style.webkitTransform="scale("+Dt+","+Dt+")",Ae.style.maxWidth="initial",Ae.querySelector(".ggb_preview")!==null&&(Ae.querySelector(".ggb_preview").style.maxWidth="initial"),Ae.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ae.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ae.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ae.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ae.style.transform="none",Ae.style.webkitTransform="none")}function Ft(Ae,Dt,Jt,ue,ce,ye){var Je=null;if(ye!=null&&ye!="")for(var de=Ae.parentNode;de!=null;)if((" "+de.className+" ").indexOf(" "+ye+" ")>-1){Je=de;break}else de=de.parentNode;var It=0,Nt=0,nt=0,et=0,ht=0,lt=0,gt=0;if(Je)It=Je.offsetWidth,Nt=Math.max(ue?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=It):(It=window.innerWidth,Nt=window.innerHeight,nt=window.innerWidth),Ae){var mt=Ae.getBoundingClientRect();mt.left>0&&mt.left<=It&&(ce===void 0||!ce)&&(document.dir==="rtl"?(ht=It-mt.width-mt.left,lt=nt<=480?10:30):(lt=mt.left,ht=nt<=480?10:30),et=lt+ht)}if(Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=Ae.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(et=0,gt=40)}}return Ae&&((Jt===void 0||!Jt)&&Dt>0&&Dt+et<It?It=Dt:It-=et,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Jt===void 0||!Jt)&&(Nt-=gt)),{width:It,height:Nt}}function Lt(Ae,Dt,Jt,ue,ce){if(Ae.isScreenshoGenerator)return 1;var ye=ue!==void 0&&ue,Je=Ae.noScaleMargin!=null&&Ae.noScaleMargin,de=function(St){return St&&St!=="false"},It=de(Ae.autoHeight),Nt=Ft(Dt,Ae.width,Jt,It,ye&&window.GGBT_wsf_view||Je,ce),nt=parseInt(Nt.width),et=Ae.width,ht=Ae.height;if(et===void 0){var lt=Dt.querySelector(".appletParameters");lt&&(et=lt.offsetWidth,ht=lt.offsetHeight)}var gt=nt/et,mt=ye?1:Nt.height/ht;return Jt!==void 0&&!Jt&&(gt=Math.min(1,gt),mt=Math.min(1,mt)),Math.min(gt,mt)}function ie(Ae,Dt,Jt){var ue=1,ce,ye=!1;if(Ae.hasOwnProperty("allowUpscale")&&(ye=Ae.allowUpscale),Ae.hasOwnProperty("scale")&&(ue=parseFloat(Ae.scale),(isNaN(ue)||ue===null||ue===0)&&(ue=1),ue>1&&(ye=!0)),Dt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Ae.hasOwnProperty("disableAutoScale")&&Ae.disableAutoScale))ce=Lt(Ae,Dt,ye,Jt,Ae.scaleContainerClass);else return ue;return ye&&(!Ae.hasOwnProperty("scale")||ue===1)?ce:Math.min(ue,ce)}function Be(Ae){var Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Jt=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=Ae.getBoundingClientRect(),ce=(Dt-ue.width)/2,ye=(Jt-ue.height)/2;ye<0&&(ye=0),Ae.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?Ae.style.left="40px":Ae.style.left=ce+"px",Ae.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Ae.style.top="40px":Ae.style.top=ye+"px",Ae.style.left=ce+"px")}function Ne(Ae,Dt){var Jt=Ae.querySelector(".appletParameters");if(Jt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Dt.id!==Jt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ae)}if(Jt.parentElement&&/fullscreen/.test(Jt.parentElement.className))return;var ue=ie(Dt,Ae);Pn()&&Jt.setAttribute("data-param-scale",ue);for(var ce=null,ye=0;ye<Ae.childNodes.length;ye++)if(Ae.childNodes[ye].className!==void 0&&Ae.childNodes[ye].className.match(/^applet_scaler/)){ce=Ae.childNodes[ye];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var Je=Dt.id!==void 0?Dt.id:"ggbApplet",de=window[Je];(de==null||!de.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(ue)&&ue!==1?(ce.parentNode.style.width=Dt.width*ue+"px",ce.parentNode.style.height=Dt.height*ue+"px",Hn(ce,ue)):(Hn(ce,1),ce.parentNode.style.width=Dt.width+"px",ce.parentNode.style.height=Dt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Be(Ae),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Jt).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Pn,positionCenter:Be,getScale:ie,scaleElement:Hn}}();__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 Pn=n.location.search;return Pn.indexOf(J)!=-1||Pn.indexOf(K)!=-1}function q(Pn,Hn){}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(Pn){var Hn=s[L].bindings;s[L].bindings=function(){for(var Ft=Hn?Hn():{},Lt=Pn[webModule.__softPermutationId],ie=O;ie<Lt.length;ie++){var Be=Lt[ie];Ft[Be[O]]=Be[P]}return Ft}};var t;function u(){return v(),t}function v(){if(!t){var Pn=o.createElement(Q);if(Pn.id=L,Pn.style.cssText=R+S,Pn.tabIndex=-1,o.body.appendChild(Pn),t=Pn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Hn=document.compatMode==U?V:W;t.write(Hn+X),t.close()}}}function w(Pn){function Hn(Lt){function ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Be=ie();if(Be){Lt();return}function Ne(){if(!Be){if(!ie())return;Be=!0,Lt(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),Ae&&clearInterval(Ae)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var Ae=setInterval(function(){Ne()},$)}function Ft(Lt){var ie=u(),Be=ie.body,Ne=ie.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=Lt,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+Lt))}),Be.appendChild(Ne)}Hn(function(){Ft(Pn)})}webModule.__startLoadingFragment=function(Pn){return C(Pn)},webModule.__installRunAsyncCode=function(Pn){var Hn=u(),Ft=Hn.body,Lt=Hn.createElement(_);Lt.language=ab,Lt.text=Pn,Ft.appendChild(Lt),Ft.removeChild(Lt)};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(Pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Pn){var Hn=c[Pn];return Hn==null?null:Hn},r=d,webModule.__errFn=e}function B(){function Pn(Ae){var Dt=Ae.lastIndexOf(rb);Dt==-1&&(Dt=Ae.length);var Jt=Ae.indexOf(sb);Jt==-1&&(Jt=Ae.length);var ue=Ae.lastIndexOf(tb,Math.min(Jt,Dt));return ue>=O?Ae.substring(O,ue+P):W}function Hn(Ae){if(!Ae.match(/^\w+:\/\//)){var Dt=o.createElement(ub);Dt.src=Ae+vb,Ae=Pn(Dt.src)}return Ae}function Ft(){var Ae=__gwt_getMetaProperty(wb);return Ae!=null?Ae:W}function Lt(){for(var Ae=o.getElementsByTagName(_),Dt=O;Dt<Ae.length;++Dt)if(Ae[Dt].src.indexOf(xb)!=-1)return Pn(Ae[Dt].src);return W}function ie(){var Ae=o.getElementsByTagName(yb);return Ae.length>O?Ae[Ae.length-P].href:W}function Be(){var Ae=o.location;return Ae.href==Ae.protocol+zb+Ae.host+Ae.pathname+Ae.search+Ae.hash}var Ne=Ft();return Ne==W&&(Ne=Lt()),Ne==W&&(Ne=ie()),Ne==W&&Be()&&(Ne=Pn(o.location.href)),Ne=Hn(Ne),Ne}function C(Pn){return Pn.match(/^\//)||Pn.match(/^[a-zA-Z]+:\/\//)?Pn:webModule.__moduleBase+Pn}function D(){var Pn=[],Hn=O,Ft=[],Lt=[];function ie(Ae){var Dt=Lt[Ae](),Jt=Ft[Ae];if(Dt in Jt)return Dt;var ue=[];for(var ce in Jt)ue[Jt[ce]]=ce;throw r&&r(Ae,ue,Dt),null}if(__gwt_isKnownPropertyValue=function(Ae,Dt){return Dt in Ft[Ae]},webModule.__getPropMap=function(){var Ae={};for(var Dt in Ft)Ft.hasOwnProperty(Dt)&&(Ae[Dt]=ie(Dt));return Ae},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ne=Be.indexOf(Db);Ne!=-1&&(Hn=parseInt(Be.substring(Ne+P),$),Be=Be.substring(O,Ne))}catch(Ae){}return webModule.__softPermutationId=Hn,C(Be+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(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Ax:function(){return Ne},Ds:function(){return Ae},KI:function(){return Jt},SI:function(){return Be},f1:function(){return ie}});var Lt=Ft(11320);function ie(ue){let ce=!0;if(ue.length>0){for(let ye=0;ye<ue.length;ye++)if(ue[ye].compile_success==0||!ue[ye].compile_success){ce=!1;break}}else ce=!1;return ce}function Be(ue,ce=""){let ye=[];for(let Je=0;Je<ue.length;Je++){let de=ue[Je],It=ce?`${ce}/${de.name}`:`${de.name}`;ye.push({title:de.name,type:de.type,isLeaf:de.type!=="tree",key:It})}return ye}function Ne(ue,ce,ye){for(let Je=0;Je<ue.length;Je++){let de=ue[Je];if(de.key===ce){de.children=ye;break}de.children&&Ne(de.children,ce,ye)}return ue}function Ae(ue,ce,ye){let Je;return function(){let de=this,It=arguments,Nt=function(){Je=null,ye||ue.apply(de,It)},nt=ye&&!Je;clearTimeout(Je),Je=setTimeout(Nt,ce),nt&&ue.apply(de,It)}}const Dt=!0,Jt=Lt.Z.API_SERVER},63205:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Je}});var Lt=Ft(67294),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=Ft(94184),Ne=Ft.n(Be),Ae=Ft(74330),Dt=Ft(15979),Jt=Ft(33170),ue=Ft(28706),ce=(de,It,Nt)=>new Promise((nt,et)=>{var ht=mt=>{try{gt(Nt.next(mt))}catch(St){et(St)}},lt=mt=>{try{gt(Nt.throw(mt))}catch(St){et(St)}},gt=mt=>mt.done?nt(mt.value):Promise.resolve(mt.value).then(ht,lt);gt((Nt=Nt.apply(de,It)).next())}),Je=({data:de,className:It,fullWidth:Nt,style:nt={},onClose:et,onOk:ht,showFullTools:lt,noAssociationId:gt})=>{const mt=(0,Lt.useRef)(null),St=(0,Lt.useRef)(null),Mt=(0,Lt.useRef)(null),zt=(0,Lt.useRef)(null),[qt,re]=(0,Lt.useState)(!1),[_t,Zt]=(0,Lt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Lt.useEffect)(()=>(Mt.current||(Mt.current=document.createElement("style"),document.head.appendChild(Mt.current)),de!=null&&de.visible?(document.body.setAttribute("data-custom","y-hidden"),Mt.current.innerHTML=" html { overflow-y: hidden; }",de!=null&&de.src&&Pe()):(document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)),()=>{document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)}),[de==null?void 0:de.visible]);const Pe=()=>ce(void 0,null,function*(){re(!0),Zt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ie=yield(0,ue.ZJ)(de==null?void 0:de.src);mt.current.src="",mt.current.src=Ie,mt.current.onload=function(){He()},re(!1),Zt("")}),ge=Ie=>ce(void 0,null,function*(){re(!0),Zt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const In=yield(0,Jt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:de.title,file:Ie.dataUrl}});In!=null&&In.id&&!gt?(yield(0,Jt.ZP)(`/api/attachments/${de.id}/add_subitem.json`,{method:"post",body:{subitem_id:In==null?void 0:In.id,settings:JSON.stringify(Ie.state)}})).status===0&&ht():In!=null&&In.id&&ht(In),re(!1),Zt("")}),Fe=()=>{const Ie=document.querySelector('a[href="https://markerjs.com/"]');Ie&&Ie.parentNode&&(Ie.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 cn=document.querySelector(bn.name);cn&&cn.setAttribute("title",bn.title)})},He=()=>{St.current=new Dt.hP(mt.current),St.current.targetRoot=zt.current,St.current.addEventListener("render",ge),St.current.addEventListener("beforeclose",et),lt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),de!=null&&de.snapshotData&&St.current.restoreState(de.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Fe()},300)};return Lt.createElement(Lt.Fragment,null,(de==null?void 0:de.visible)&&Lt.createElement(Ae.Z,{spinning:qt,tip:_t,style:{position:"absolute",width:"100vw"}},Lt.createElement("div",{ref:zt,className:Ne()(ie.imageDimensions,It,Nt?ie.fullWidth:""),style:nt},Lt.createElement("img",{className:ie.img,ref:mt}))))}},36527:function(Pn,Hn,Ft){"use strict";var Lt=Ft(67294),ie=Ft(71230),Be=Ft(15746),Ne=Ft(55238),Ae=Ft(85804),Dt=Ft(65226),Jt=Ft(71736),ue=Ft(84279),ce=Ft(67294);const ye=(0,Lt.forwardRef)(({callback:Je,showSaveButton:de,value:It=""},Nt)=>{const nt=(0,Lt.useRef)(),et=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ht=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],lt=St=>{nt.current.setValue(nt.current.getValue()+" "+St.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ce.createElement(ie.Z,{className:Jt.Z.lists,gutter:[10,10]},et.map((St,Mt)=>ce.createElement(Be.Z,{flex:"110px",className:Jt.Z.item},ce.createElement("div",null,ce.createElement(Dt.Z,{value:`$$${St.value}$$`}),St.name),ce.createElement("div",{className:Jt.Z.children},St.children.map((zt,qt)=>ce.createElement("div",{key:qt},ce.createElement("h1",null,zt.name),ce.createElement(ie.Z,{gutter:[10,10]},zt.data.map((re,_t)=>ce.createElement(Be.Z,{key:_t,onClick:()=>lt(re),className:Jt.Z.diamond},ce.createElement(Dt.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ce.createElement(ie.Z,{className:Jt.Z.lists,gutter:[10,10]},ht.map((St,Mt)=>ce.createElement(Be.Z,{flex:"110px",className:Jt.Z.item},ce.createElement("div",null,ce.createElement(Dt.Z,{value:"`$$"+St.value+"$$`"}),St.name),ce.createElement("div",{className:Jt.Z.children},St.children.map((zt,qt)=>ce.createElement("div",{key:qt},zt.name&&ce.createElement("h1",null,zt.name),ce.createElement(ie.Z,{gutter:[10,10]},zt.data.map((re,_t)=>ce.createElement(Be.Z,{key:_t,onClick:()=>lt(re),className:Jt.Z.diamond},ce.createElement(Dt.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],mt=()=>{var St=document.createElement("div");St.innerHTML=nt.current.getValue();var Mt=St.innerText;return Je&&Je(Mt),Mt};return(0,Lt.useImperativeHandle)(Nt,()=>({getData:mt})),ce.createElement("div",{className:Jt.Z.mathWrap},ce.createElement(Ne.default,{defaultActiveKey:"1",items:gt}),ce.createElement("math-field",{locale:"zh_cn",className:Jt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},It||""),de&&ce.createElement("div",{className:Jt.Z.button},ce.createElement(Ae.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Hn.Z=ye},26194:function(Pn,Hn,Ft){"use strict";var Lt=Ft(67294),ie=Ft(4977),Be=Ft(85804),Ne=Object.defineProperty,Ae=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,ye=(Nt,nt,et)=>nt in Nt?Ne(Nt,nt,{enumerable:!0,configurable:!0,writable:!0,value:et}):Nt[nt]=et,Je=(Nt,nt)=>{for(var et in nt||(nt={}))ue.call(nt,et)&&ye(Nt,et,nt[et]);if(Jt)for(var et of Jt(nt))ce.call(nt,et)&&ye(Nt,et,nt[et]);return Nt},de=(Nt,nt)=>Ae(Nt,Dt(nt));const It=({img:Nt,buttonProps:nt={},styles:et={},customText:ht,ButtonText:lt,ButtonClick:gt,Buttonclass:mt,ButtonTwo:St,imgStyles:Mt,loading:zt=!1,className:qt=""})=>Lt.createElement("section",{className:`tc animated fadeIn ${qt}`,style:Je({color:"#999",margin:"100px auto",visibility:zt?"hidden":"visible"},et)},Lt.createElement("img",{src:Nt||ie,style:de(Je({},Mt),{pointerEvents:"none",userSelect:"none"})}),Lt.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&Lt.createElement(Be.ZP,Je({className:mt,onClick:gt},nt),lt),St&&St);Hn.Z=It},39717:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Q:function(){return Dt}});var Lt=Ft(67294),ie=Ft(88044),Be=Ft(98813),Ne=Ft(37720),Ae=Ft(67294),Dt=(ue=>(ue[ue.Number=1]="Number",ue[ue.Percent=2]="Percent",ue))(Dt||{});const Jt=({value:ue,onChange:ce,disabled:ye,hidePercentOption:Je=!1,percentType:de="select"})=>{const It=(0,Lt.useMemo)(()=>Je?1:2,[Je]),[Nt,nt]=(0,Lt.useState)(It);console.log(Nt);const et=lt=>ue.type===1?`${lt}\u5206`:`${lt}%`,ht=(0,Lt.useCallback)(lt=>{if(Nt===1){const gt=lt.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return lt.replace("%","")},[Nt]);return(0,Lt.useEffect)(()=>{nt(ue.type)},[ue]),Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},de=="select"&&Ae.createElement(ie.default,{size:"large",onChange:lt=>{nt(lt),ce({type:lt,inputValue:lt===1?5:20})},value:Nt||It,style:{width:100},options:Je?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:ye}),de=="radio"&&Ae.createElement(Be.ZP.Group,{size:"large",onChange:lt=>{const gt=lt.target.value;nt(gt),ce({type:gt,inputValue:gt===1?5:20})},value:Nt||It,disabled:ye},!Je&&Ae.createElement(Be.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Ae.createElement(Be.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),de=="radio"&&Ae.createElement("div",{style:{marginRight:"10px",color:"#000000"}},ue.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Ae.createElement(Ne.Z,{size:"large",disabled:ye,value:ue.inputValue,style:{width:"120px"},parser:ht,addonAfter:ue.type===1?"\u5206":"%",max:Nt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:lt=>{ce({type:Nt,inputValue:lt})}}),de=="radio"&&ue.type==2&&Ae.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Hn.Z=Jt},20819:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return mt}});var Lt=Ft(67294),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Be=Ft(85804),Ne=Ft(30153),Ae=Ft(36295),Dt=Ft(83062),Jt=Ft(28706),ue=Ft(15835),ce=Ft(26194),ye=Ft(11320),Je=Ft(66540),de=Ft(67294),It=Object.defineProperty,Nt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(St,Mt,zt)=>Mt in St?It(St,Mt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Mt]=zt,lt=(St,Mt)=>{for(var zt in Mt||(Mt={}))nt.call(Mt,zt)&&ht(St,zt,Mt[zt]);if(Nt)for(var zt of Nt(Mt))et.call(Mt,zt)&&ht(St,zt,Mt[zt]);return St},gt=(St,Mt,zt)=>new Promise((qt,re)=>{var _t=ge=>{try{Pe(zt.next(ge))}catch(Fe){re(Fe)}},Zt=ge=>{try{Pe(zt.throw(ge))}catch(Fe){re(Fe)}},Pe=ge=>ge.done?qt(ge.value):Promise.resolve(ge.value).then(_t,Zt);Pe((zt=zt.apply(St,Mt)).next())}),mt=({editOffice:St="view",data:Mt,issaver:zt,onSaver:qt,theme:re,type:_t,filename:Zt,monacoEditor:Pe,className:ge,style:Fe,close:He,onClose:Ie,hasMask:In,disabledDownload:bn,onImgDimensions:cn,showNodata:Xn,recordInfo:$t})=>{const[jt,Ee]=(0,Lt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[sn,Tn]=(0,Lt.useState)(""),[Le,gn]=(0,Lt.useState)(),$e=window.ENV==="build"?"/react/build":"",Fn=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,fe=10*(1024*1024),Re=(0,Lt.useRef)();Mt!=null&&Mt.startsWith("/api")&&_t!=="txt"&&(Mt=ye.Z.API_SERVER+Mt);const dn=Tt=>Tt.substring(Tt.lastIndexOf("/")+1).split(".").pop();Zt&&Pe&&(Pe.filename=Zt),(0,Lt.useEffect)(()=>{var Tt,Xt;const kt=(Xt=(Tt=document.cookie)==null?void 0:Tt.replace(/\s/g,""))==null?void 0:Xt.split(";");kt==null||kt.map(ee=>{let rn=ee.split("=");rn[0]==="_educoder_session"&&Tn(rn[1])})},[]),(0,Lt.useEffect)(()=>{_t==="office"&&(Mt.indexOf("bigfilescdn.")>-1||Mt.indexOf("bigfiles1")>-1?gn({url:Mt,fileType:dn(Mt),model:Mt.indexOf("model=edit")?"edit":"view"}):Ht())},[_t,Mt]);function Te(Tt){return gt(this,null,function*(){Tt.data.type==="pdfdata"&&(qt(Tt.data.data),window.removeEventListener("message",Te,!1)),console.log("mess---:",Tt.data)})}const Ht=()=>gt(void 0,null,function*(){console.log("data:",Mt);let Tt=Mt;Mt.startsWith("http")||(Tt=location.origin+Tt);let Xt=new URL(Tt).pathname.split("/").pop();const kt=yield(0,ue.gJ)({attachment_id:Xt});kt.url=Fn+kt.url,gn(kt)}),At=()=>{if(Mt.startsWith("http")||Mt.startsWith("blob:")){Ct();return}(0,Jt.Sv)(Zt||"educoder",Mt,Zt)},Ct=()=>{$t&&(0,Je.fc)({id:$t==null?void 0:$t.id,watch_type:1,course_id:$t==null?void 0:$t.course_id}),(0,Jt.Nd)(Zt||"educoder",decodeURIComponent(Mt))};return de.createElement("div",{style:lt({},Fe||{}),className:`${In&&ie.bgBlack} ${_t?ie.wrp:"hide"}`},He&&de.createElement("div",{className:ie.close,ref:Re},!!cn&&de.createElement(Dt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Re.current},de.createElement("span",{onClick:()=>{Ie(),cn()}},de.createElement("i",{className:"icon-yulanpizhu"}))),!bn&&de.createElement(Dt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Re.current},de.createElement("span",{onClick:Ct},de.createElement("i",{className:"icon-quxiaozhiding"}))),zt&&de.createElement(Dt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Re.current},de.createElement("span",{className:"",onClick:()=>{const Tt=document.getElementById("pdfiframe");window.addEventListener("message",Te,!1),setTimeout(()=>{Tt.contentWindow.postMessage("getData","*")},300)}},de.createElement("i",{className:"icon-baocun"}))),de.createElement(Dt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Re.current},de.createElement("span",{className:"",onClick:()=>{Ie()}},de.createElement("i",{className:"icon-guanbi1"})))),de.createElement("div",{className:`${ie[ge]} ${ge} ${ie.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&de.createElement(de.Fragment,null,de.createElement(Ae.ZP,lt({},Pe)))),_t==="audio"&&de.createElement("audio",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Mt}`,autoPlay:!0}),_t==="video"&&de.createElement(de.Fragment,null,(Mt==null?void 0:Mt.indexOf("http"))>-1?de.createElement("video",{controls:!0,src:`${Mt}`,autoPlay:!0}):de.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Mt}`,autoPlay:!0})),_t==="office"&&Le&&de.createElement("iframe",{src:`${$e}/office.html?key=${Le.key}&url=${btoa(Le.url)}&callbackUrl=${Fn+(Le.callbackUrl||"")}&fileType=${Le.fileType}&title=${Le.title||""}&model=${St}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!bn}`}),_t==="html"&&de.createElement("iframe",{src:Mt+"&disposition=inline"}),_t==="pdf"&&de.createElement("iframe",{id:"pdfiframe",src:`${$e}/js/pdfview/index.html?filename=${Zt||"educoder.pdf"}&url=${encodeURIComponent(Mt)}&disabledDownload=${!!bn}&model=${St}`}),_t==="image"&&de.createElement("img",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Mt}`}),(_t==="other"||_t==="download")&&de.createElement(de.Fragment,null,Xn?de.createElement(ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:de.createElement(Be.ZP,{icon:de.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:At,disabled:bn},"\u4E0B\u8F7D")}):de.createElement(Be.ZP,{type:"primary",size:"middle",onClick:At,disabled:bn},de.createElement(Ne.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{z:function(){return _t},Z:function(){return Zt}});var Lt=Ft(67294),ie=Ft(81897),Be=Ft(51161),Ne=Ft(11771),Ae=Ft(67631),Dt=Ft.n(Ae),Jt=Ft(11320),ue=Ft(28706),ce=Ft(20527),ye=Ft(25934),Je=Ft(20819),de=Ft(67294),Nt=({html:Pe})=>{const ge=(0,Lt.useRef)(null),Fe=(0,Lt.useRef)(null),He=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 56px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,Lt.useEffect)(()=>{const Ie=ge.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=Pe,Ie.appendChild(Fe.current);const In=document.createElement("style");return In.textContent=He,Ie.appendChild(In),()=>{Ie.innerHTML=""}},[]),(0,Lt.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=Pe)},[Pe]),de.createElement("div",{ref:ge})};function nt(Pe){const ge=["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(${ge.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Pe.replace(Fe,"").trim()}var et=Object.defineProperty,ht=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,mt=(Pe,ge,Fe)=>ge in Pe?et(Pe,ge,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Pe[ge]=Fe,St=(Pe,ge)=>{for(var Fe in ge||(ge={}))lt.call(ge,Fe)&&mt(Pe,Fe,ge[Fe]);if(ht)for(var Fe of ht(ge))gt.call(ge,Fe)&&mt(Pe,Fe,ge[Fe]);return Pe};const Mt="@\u2581\u2581@",zt="@\u2581@",qt=/<pre[^>]*>/g;function re(Pe){let ge=document.createElement("div");return ge.innerHTML=Pe,ge.childNodes.length===0?"":ge.childNodes[0].nodeValue}const _t=(Pe,ge)=>{Pe=Pe||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ie=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,In=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ge?Pe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(bn,cn,Xn,$t,jt,Ee,sn)=>{const Tn=cn||$t||Ee,Le=Xn||jt||sn||"?";return Jt.Z.API_SERVER+"/api/attachments/"+Tn+Le+"&t="+(0,ue.Jn)(Tn,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Pe=Pe.replace(In,(bn,cn,Xn,$t,jt,Ee,sn)=>{const Tn=cn||$t||Ee,Le=Xn||jt||sn||"?";return Jt.Z.API_SERVER+"/attachments/download/"+Tn+Le+"&t="+(0,ue.Jn)(Tn,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replace(Fe,(bn,cn,Xn,$t,jt,Ee,sn)=>{const Tn=cn||$t||Ee,Le=Xn||jt||sn||"?";return Jt.Z.API_SERVER+"/api/attachments/"+Tn+Le+"&t="+(0,ue.Jn)(Tn,Date.now())+(bn.indexOf(")")>-1?")":"&")}).replace(He,(bn,cn,Xn,$t,jt)=>{const Ee=cn||$t,sn=Xn||jt||"";return'"'+Jt.Z.API_SERVER+"/api/attachments/"+Ee+sn+Ee+sn+"&t="+(0,ue.Jn)(Ee,Date.now())}).replace(Ie,(bn,cn,Xn,$t,jt)=>{const Ee=cn||$t,sn=Xn||jt||"";return"("+Jt.Z.API_SERVER+"/files/uploads/"+Ee+sn+Ee+sn+"&t="+(0,ue.Jn)(Ee,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,`
|
|
`),Pe)};var Zt=({value:Pe="",className:ge,showTextOnly:Fe,showLines:He,style:Ie={},stylesPrev:In={},highlightKeywords:bn,showProgramFill:cn,isProgramFill:Xn,disabledFill:$t=!1,programFillValue:jt,onFillChange:Ee=Le=>{},onFillBlur:sn=()=>{},onFillFocus:Tn=()=>{}})=>{let Le=nt(String(Pe||""));const[gn,$e]=(0,Lt.useState)(""),[Fn,ke]=(0,Lt.useState)("office"),[fe,Re]=(0,Lt.useState)([]),dn=(0,Lt.useRef)("a"+(0,ye.Z)()),Te={},Ht=Ke=>/<style[\s\S]*?>/i.test(Ke||""),At=(Ke,jn,ni)=>{const Oi=document.createElement(Ke===zt?"input":"textarea");Oi.style.width="100%",Oi.style.height=Ke===zt?"40px":"151px",Oi.rows=5,Oi.spellcheck=!1,Oi.name="edu-program-fill",Oi.placeholder="\u8BF7\u8F93\u5165",Oi.dataset.id=jn;const $n=Object.keys(Te).length;return Te[$n]=Oi,`<span class="edu-program-fill-wrap ${Ke===zt?"":"show"}" style="width:${Ke===zt?"600px":"100%"}" title=${ni||""}><span>${Oi.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ct(Ke){return Ke=Ke.replace(/!\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(/\[.*?\]\(.*?\)/g,""),Ke=Ke.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ke=Ke.replace(/<embed.*?>/g,""),Ke=Ke.replace(/<img.*?>/g,""),Ke=Ke.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ke=Ke.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ke=Ke.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ke=Ke.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ke}const Tt=Ke=>!Fe&&Ht(Le)?Ke:Ke.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(jn,ni){let Oi=ni.replace(/(\n|\r)/g,"").split("}"),$n=[];return Oi.map(Ai=>{Ai!=""&&$n.push(`.${dn.current} ${Ai}`)}),`<style>${$n.join("}")}</style>`}),Xt=(0,Lt.useMemo)(()=>{try{const Oi=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$n=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ai=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ki=/\(\/attachments\/download\//g;Le=Le.replace(Ki,"("+Jt.Z.API_SERVER+"/attachments/download/").replace(Oi,"("+Jt.Z.API_SERVER+"/api/attachments/").replace($n,'"'+Jt.Z.API_SERVER+"/api/attachments/").replace(Ai,'"'+Jt.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(Oi){}if(cn){let Oi=-1;return Le=Le.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function($n,Ai,Ki){var ii;return++Oi,At($n,Oi,(ii=jt==null?void 0:jt[Oi])==null?void 0:ii.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Tt(Le||"")}</pre>`}let Ke=Tt(Le);Ke=(0,Be.ZP)(Ke);const jn=(0,Be.ez)();Le.match(/\[TOC\]/)&&(Ke=Ke.replace("<p>[TOC]</p>",(0,Be.Qv)()),(0,Be.Iy)()),Ke=Ke.replace(/(__special_katext_id_\d+__)/g,(Oi,$n)=>{const{type:Ai,expression:Ki}=jn[$n];return(0,ce.renderToString)(re(Ki)||"",{displayMode:Ai==="block",throwOnError:!1,output:"html"})}),Ke=Ke.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Be.AL)();const ni=document.createElement("div");if(ni.innerHTML=Ke,Fe)return ni.innerText;if(bn){const Oi=bn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return on(ni,Oi),ni.innerHTML}return setTimeout(()=>Mn(),500),ni.innerHTML},[Le,bn]);(0,Lt.useEffect)(()=>{Un.current&&Un.current.querySelectorAll(["input","textarea"]).forEach(jn=>{jn.oninput=kt,jn.onblur=ee,jn.onfocus=rn})},[fe]),(0,Lt.useEffect)(()=>{var Ke,jn,ni,Oi,$n;if(jt!=null&&jt.length)try{const Ai=Un.current.querySelectorAll(".edu-program-fill-score"),Ki=Un.current.querySelectorAll('[name="edu-program-fill"]');for(const[ii,mi]of Ki.entries())mi.value=((Ke=jt==null?void 0:jt[ii])==null?void 0:Ke.value)||"",((jn=jt==null?void 0:jt[ii])==null?void 0:jn.type)==="warning"?mi.className="program-fill-warning":((ni=jt==null?void 0:jt[ii])==null?void 0:ni.type)==="success"?mi.className="program-fill-success":mi.className="";for(const[ii,mi]of Ai.entries())mi.innerHTML=(Oi=jt==null?void 0:jt[ii])!=null&&Oi.score?`${($n=jt==null?void 0:jt[ii])==null?void 0:$n.score}\u5206`:"";Re(jt)}catch(Ai){console.log(Ai,"error")}},[jt]);const kt=Ke=>{fe[Ke.target.dataset.id]=fe[Ke.target.dataset.id]||{},fe[Ke.target.dataset.id].value=Ke.target.value,Re([...fe]),Ee(fe,Ke.target.dataset.id)},ee=Ke=>{fe[Ke.target.dataset.id]=fe[Ke.target.dataset.id]||{},fe[Ke.target.dataset.id].value=Ke.target.value,Re([...fe]),sn(fe,Ke.target.dataset.id)},rn=Ke=>{fe[Ke.target.dataset.id]=fe[Ke.target.dataset.id]||{},fe[Ke.target.dataset.id].value=Ke.target.value,Re([...fe]),Tn(fe,Ke.target.dataset.id)};function on(Ke,jn){return Ke.childNodes.forEach(ni=>{var Oi;if(ni.childNodes.length>0)on(ni,jn);else if(ni.nodeName!=="IMG")if(ni.innerHTML)ni.innerHTML=(Oi=ni.innerHTML)==null?void 0:Oi.replace(new RegExp(jn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const $n=document.createElement("span");$n.innerHTML=ni.textContent.replace(new RegExp(jn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ni.replaceWith($n)}})}const Un=(0,Lt.useRef)();Be.jb.WebkitLineClamp=He,He&&(Ie=St(St({},Ie),Be.jb));function en(Ke){let jn=Ke.target;if(jn.tagName.toUpperCase()==="A"){let ni=jn.getAttribute("href");if(ni.indexOf("office")>-1)Ke.preventDefault(),$e(ni),ke("office");else if(ni.indexOf("application/pdf")>-1)Ke.preventDefault(),$e(ni),ke("pdf");else if(ni.indexOf("text/html")>-1)Ke.preventDefault(),$e(ni),ke("html");else if(ni.startsWith("#")){Ke.preventDefault();let Oi=document.getElementById(ni.replace("#",""));Oi&&Oi.scrollIntoView(!0)}}}const Mn=()=>{var Ke;const jn=(Ke=Un.current)==null?void 0:Ke.querySelectorAll("video");jn==null||jn.forEach(ni=>{if(ni.oncontextmenu=()=>!1,ni.src.indexOf(".m3u8")>-1&&!ni.canPlayType("application/vnd.apple.mpegurl")){if(Dt().isSupported()){var Oi=new(Dt());Oi.loadSource(ni.src),Oi.attachMedia(ni)}}})};return(0,Lt.useEffect)(()=>{if(Un.current&&Xt&&Xt.match(qt)&&window.PR.prettyPrint(),Un.current)return Un.current.addEventListener("click",en),()=>{var Ke;(Ke=Un.current)==null||Ke.removeEventListener("click",en),(0,Be.AL)(),(0,Be.Iy)()}},[Xt,Un.current,en]),(0,Lt.useEffect)(()=>{var Ke;const jn=ni=>{ni.preventDefault(),ni.clipboardData.setData("text",window.getSelection().toString())};return(Ke=Un.current)==null||Ke.addEventListener("copy",jn),()=>{var ni;(ni=Un.current)==null||ni.removeEventListener("copy",jn)}},[Un.current]),Lt.createElement(Lt.Fragment,null,Fe&&Lt.createElement("div",{ref:Un},Xt),!Fe&&!Ht(Xt)&&Lt.createElement("div",{ref:Un,style:St({},Ie),className:`${ge||""} ${$t?"disabled-fill":""} markdown-body ${dn.current}`,dangerouslySetInnerHTML:{__html:Xt}}),!Fe&&Ht(Xt)&&Lt.createElement(Nt,{html:Xt}),Lt.createElement(Je.Z,{close:!0,data:gn,type:gn!=null&&gn.length?Fn:"",style:St({},In),onClose:()=>$e("")}))}},96332:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return ue}});var Lt=Ft(67294),ie={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Be=Ft(62844),Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Dt=(ce,ye,Je)=>new Promise((de,It)=>{var Nt=ht=>{try{et(Je.next(ht))}catch(lt){It(lt)}},nt=ht=>{try{et(Je.throw(ht))}catch(lt){It(lt)}},et=ht=>ht.done?de(ht.value):Promise.resolve(ht.value).then(Nt,nt);et((Je=Je.apply(ce,ye)).next())}),ue=({type:ce,resdata:ye,onok:Je,oktext:de,okloading:It})=>{const[Nt,nt]=(0,Lt.useState)(!1),{can_copy_list:et,can_copy_num:ht,challenge_type:lt,course_data_list:gt,no_copy_list:mt,no_copy_num:St,no_use_list:Mt,no_use_num:zt,repeat_shixun_num:qt,student_count:re,total_num:_t,use_num:Zt}=ye;let Pe=ht>0||ce==="exercise";(0,Lt.useEffect)(()=>{(ye==null?void 0:ye.student_count)>0&&nt(!0)},[ye]),console.log("---11",It),(0,Lt.useEffect)(()=>{It||nt(!1)},[It]);const ge=()=>{if(ce==="exercise"&<===1)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(ce==="exercise"&<===2)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="shixun"&<===1)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="shixun"&<===2)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="subject"&<===1)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="subject"&<===2)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",Lt.createElement("span",{className:ie.orangeColor},re)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",Lt.createElement("span",{className:ie.orangeColor},Zt)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="exercisepush")return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(ce==="shixunpush"&<===1)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ce==="shixunpush"&<===2)return Lt.createElement(Lt.Fragment,null,"\u8BFE\u5802\u5185\u6709",Lt.createElement("span",{className:ie.orangeColor},re),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",Lt.createElement("span",{className:ie.orangeColor},Zt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Fe=()=>{if(ce==="exercise"||ce==="subject"||ce==="exercisepush"||ce==="shixunpush")return Lt.createElement("div",{style:{marginTop:20}},St>0&&Lt.createElement("div",null,Lt.createElement("span",{className:ie.flex},Lt.createElement("img",{src:Ae,style:{width:14}}),Lt.createElement("span",{className:ie.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Lt.createElement("div",{className:ie.statusbody},ce==="exercise"&&Lt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Lt.createElement("span",{className:ie.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(ce==="subject"||ce==="exercisepush")&&Lt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Pe&&Lt.createElement("span",{className:ie.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ce==="shixunpush"&&Lt.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Pe&&Lt.createElement("span",{className:ie.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Lt.createElement("div",null,mt==null?void 0:mt.map((He,Ie)=>Lt.createElement("a",{href:`/shixuns/${He.identifier}/challenges`,target:"_blank"},"\u300A",He==null?void 0:He.name,"\u300B",Ie+1!==St&&"\u3001"))))),ht>0&&Lt.createElement("div",{style:{marginTop:20}},Lt.createElement("span",{className:ie.flex},Lt.createElement("img",{src:Ne,style:{width:14}}),Lt.createElement("span",{className:ie.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Lt.createElement("div",{className:ie.statusbody},ce==="exercise"&&Lt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(ce==="subject"||ce==="exercisepush")&&Lt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ce==="shixunpush"&&Lt.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Lt.createElement("div",null,et==null?void 0:et.map((He,Ie)=>Lt.createElement("a",{href:`/shixuns/${He.identifier}/challenges`,target:"_blank"},"\u300A",He==null?void 0:He.name,"\u300B",Ie+1!==ht&&"\u3001"))))));if(ce==="shixun")return Lt.createElement("div",{style:{marginTop:20}},ht>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return Lt.createElement(Be.default,{open:Nt,onCancel:()=>{nt(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Pe&&"none"}},zIndex:1003,confirmLoading:It,okText:Pe?de:"\u6211\u77E5\u9053\u4E86",onOk:()=>Dt(void 0,null,function*(){Pe?yield Je([...et,...Mt]):nt(!1)})},Lt.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ge(),Fe()))}},57444:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{h:function(){return St}});var Lt=Ft(67294),ie=Ft(88044),Be=Ft(91773),Ne=Ft(85804),Ae=Ft(4631),Dt=Ft.n(Ae),Jt=Ft(71749),ue=Ft(30483),ce=Object.defineProperty,ye=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,nt=(Mt,zt,qt)=>zt in Mt?ce(Mt,zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Mt[zt]=qt,et=(Mt,zt)=>{for(var qt in zt||(zt={}))It.call(zt,qt)&&nt(Mt,qt,zt[qt]);if(de)for(var qt of de(zt))Nt.call(zt,qt)&&nt(Mt,qt,zt[qt]);return Mt},ht=(Mt,zt)=>ye(Mt,Je(zt));const lt=ie.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"]};Hn.Z=({callback:Mt,onCancel:zt})=>{const[qt,re]=(0,Lt.useState)("python");function _t(Pe){re(mt[Pe][1])}function Zt(Pe){Mt(Pe)}return Lt.createElement(Be.default,ht(et({},gt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Zt,style:{width:500}}),Lt.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Lt.createElement(ie.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:_t},Object.keys(mt).map(Pe=>Lt.createElement(lt,{key:Pe,value:Pe},mt[Pe][0])))),Lt.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Lt.createElement(St,{mode:qt})),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(Ne.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))};function St({value:Mt,onChange:zt,mode:qt,options:re={}}){const _t=(0,Lt.useRef)(),[Zt,Pe]=(0,Lt.useState)();return(0,Lt.useEffect)(()=>{if(Zt){let ge=function(Fe){const He=Fe.getValue();zt&&zt(He)};return Zt.on("change",ge),()=>{Zt.off("change",ge)}}},[Zt,zt]),(0,Lt.useEffect)(()=>{Zt&&Zt.setOption("mode",qt)},[Zt,qt]),(0,Lt.useEffect)(()=>{Zt&&(Mt!==Zt.getValue()||Mt==="")&&setTimeout(()=>{Zt.setValue(Mt||"")},300)},[Zt,Mt]),(0,Lt.useEffect)(()=>{if(_t.current&&!Zt){const ge=Dt().fromTextArea(_t.current,et({mode:qt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Pe(ge)}},[_t.current,Zt]),Lt.createElement("div",{className:"my-codemirror-container"},Lt.createElement("textarea",{ref:_t}))}},35567:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Li}});var Lt=Ft(67294),ie=Ft(4631),Be=Ft.n(ie),Ne=Ft(91033),Ae=Ft(71749),Dt=Ft(57341),Jt=Ft(82801),ue=Ft(88386),ce=Ft(49047),ye=Ft(80785),Je=Ft(65226),de=({value:Ge="",className:je,showTextOnly:we,showLines:Ze,style:ai={}})=>{const ui=(0,Lt.useMemo)(()=>"",[Ge]);return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{dangerouslySetInnerHTML:{__html:ui}}))},It=Object.defineProperty,Nt=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(Ge,je,we)=>je in Ge?It(Ge,je,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ge[je]=we,mt=(Ge,je)=>{for(var we in je||(je={}))ht.call(je,we)&>(Ge,we,je[we]);if(et)for(var we of et(je))lt.call(je,we)&>(Ge,we,je[we]);return Ge},St=(Ge,je)=>Nt(Ge,nt(je));let Mt=[{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:Ge,title:je,icon:we,actionName:Ze,className:ai="",children:ui}){function qn(){Ge(Ze)}return Lt.createElement("a",{title:je,className:ai,onClick:qn},Lt.createElement("i",{className:`${we}`}),ui)}var qt=({watch:Ge,showNullButton:je,showNullProgramButton:we,onActionCallback:Ze,fullScreen:ai,insertTemp:ui,hidetoolBar:qn,extraUse:ze})=>{const yn=[...Mt,{title:`${Ge?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ge?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Lt.createElement("ul",{className:"markdown-toolbar-container"},!qn&&yn.map((Ni,Yi)=>Lt.createElement("li",{key:Yi},Ni.actionName?Lt.createElement(zt,St(mt({},Ni),{onActionCallback:Ze})):Lt.createElement("span",{className:"v-line"}))),je?Lt.createElement("li",null,Lt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ze},Lt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?Lt.createElement(Lt.Fragment,null,Lt.createElement("li",null,Lt.createElement(zt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ze},Lt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Lt.createElement("li",null,Lt.createElement(zt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ze},Lt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,ui&&Lt.createElement("li",null,Lt.createElement(zt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ui}`,onActionCallback:Ze},Lt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ze&&Lt.createElement("li",null,ze),Lt.createElement("li",{className:"btn-full-screen"},Lt.createElement(zt,{icon:`${ai?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ai?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ze})))},re=Ft(76621),_t=Ft(91773),Zt=Ft(28802),Pe=Ft(85804),ge=Object.defineProperty,Fe=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,cn=(Ge,je,we)=>je in Ge?ge(Ge,je,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ge[je]=we,Xn=(Ge,je)=>{for(var we in je||(je={}))In.call(je,we)&&cn(Ge,we,je[we]);if(Ie)for(var we of Ie(je))bn.call(je,we)&&cn(Ge,we,je[we]);return Ge},$t=(Ge,je)=>Fe(Ge,He(je));const jt={labelCol:{span:4},wrapperCol:{span:20}};var Ee=({callback:Ge,onCancel:je})=>{function we(Ze){Ge(Ze)}return Lt.createElement(_t.default,$t(Xn({},jt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),Lt.createElement(_t.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Lt.createElement(Zt.default,null)),Lt.createElement(_t.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Lt.createElement(Zt.default,null)),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(Pe.ZP,{type:"ghost",onClick:je},"\u53D6\u6D88")))},sn=Ft(57444),Tn=Ft(70859),Le=Ft(62844),gn=Ft(71230),$e=Ft(63205),Fn=Ft(67294),ke=({callback:Ge,onCancel:je})=>{const we=document.createElement("canvas"),Ze=we.getContext("2d");we.width=1e3,we.height=800,Ze.fillStyle="#ffffff",Ze.fillRect(0,0,we.width,we.height);const ai=we.toDataURL("image/png");return Fn.createElement(Le.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Fn.createElement(gn.Z,{style:{height:"100vh"}},Fn.createElement($e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ai,visible:!0,title:String(Date.now())},onOk:ui=>{Ge({src:ui.url})},onClose:je})))},fe=Ft(23495);function Re(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Re,go.CommandHandler),Re.prototype.canAlignSelection=function(){var Ge=this.diagram;return!(Ge===null||Ge.isReadOnly||Ge.isModelReadOnly||Ge.selection.count<2)},Re.prototype.alignLeft=function(){var Ge=this.diagram;Ge.startTransaction("aligning left");var je=1/0;Ge.selection.each(function(we){we instanceof go.Link||(je=Math.min(we.position.x,je))}),Ge.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(je,we.position.y))}),Ge.commitTransaction("aligning left")},Re.prototype.alignRight=function(){var Ge=this.diagram;Ge.startTransaction("aligning right");var je=-1/0;Ge.selection.each(function(we){if(!(we instanceof go.Link)){var Ze=we.actualBounds.x+we.actualBounds.width;je=Math.max(Ze,je)}}),Ge.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(je-we.actualBounds.width,we.position.y))}),Ge.commitTransaction("aligning right")},Re.prototype.alignTop=function(){var Ge=this.diagram;Ge.startTransaction("alignTop");var je=1/0;Ge.selection.each(function(we){we instanceof go.Link||(je=Math.min(we.position.y,je))}),Ge.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,je))}),Ge.commitTransaction("alignTop")},Re.prototype.alignBottom=function(){var Ge=this.diagram;Ge.startTransaction("aligning bottom");var je=-1/0;Ge.selection.each(function(we){if(!(we instanceof go.Link)){var Ze=we.actualBounds.y+we.actualBounds.height;je=Math.max(Ze,je)}}),Ge.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,je-we.actualBounds.height))}),Ge.commitTransaction("aligning bottom")},Re.prototype.alignCenterX=function(){var Ge=this.diagram,je=Ge.selection.first();if(je){Ge.startTransaction("aligning Center X");var we=je.actualBounds.x+je.actualBounds.width/2;Ge.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(we-Ze.actualBounds.width/2,Ze.actualBounds.y))}),Ge.commitTransaction("aligning Center X")}},Re.prototype.alignCenterY=function(){var Ge=this.diagram,je=Ge.selection.first();if(je){Ge.startTransaction("aligning Center Y");var we=je.actualBounds.y+je.actualBounds.height/2;Ge.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Ze.actualBounds.x,we-Ze.actualBounds.height/2))}),Ge.commitTransaction("aligning Center Y")}},Re.prototype.alignColumn=function(Ge){var je=this.diagram;je.startTransaction("align Column"),Ge===void 0&&(Ge=0),Ge=parseFloat(Ge);var we=new Array;je.selection.each(function(ze){ze instanceof go.Link||we.push(ze)});for(var Ze=0;Ze<we.length-1;Ze++){var ai=we[Ze],ui=ai.actualBounds.y+ai.actualBounds.height+Ge,qn=we[Ze+1];qn.move(new go.Point(ai.actualBounds.x,ui))}je.commitTransaction("align Column")},Re.prototype.alignRow=function(Ge){Ge===void 0&&(Ge=0),Ge=parseFloat(Ge);var je=this.diagram;je.startTransaction("align Row");var we=new Array;je.selection.each(function(ze){ze instanceof go.Link||we.push(ze)});for(var Ze=0;Ze<we.length-1;Ze++){var ai=we[Ze],ui=ai.actualBounds.x+ai.actualBounds.width+Ge,qn=we[Ze+1];qn.move(new go.Point(ui,ai.actualBounds.y))}je.commitTransaction("align Row")},Re.prototype.canRotate=function(Ge){var je=this.diagram;return!(je===null||je.isReadOnly||je.isModelReadOnly||je.selection.count<1)},Re.prototype.rotate=function(Ge){Ge===void 0&&(Ge=90);var je=this.diagram;je.startTransaction("rotate "+Ge.toString());var je=this.diagram;je.selection.each(function(we){we instanceof go.Link||we instanceof go.Group||(we.angle+=Ge)}),je.commitTransaction("rotate "+Ge.toString())},Re.prototype.pullToFront=function(){var Ge=this.diagram;Ge.startTransaction("pullToFront");var je=new go.Map;Ge.selection.each(function(we){je.set(we.layer,0)}),je.iteratorKeys.each(function(we){var Ze=0;we.parts.each(function(ai){if(!ai.isSelected){var ui=ai.zOrder;isNaN(ui)?ai.zOrder=0:Ze=Math.max(Ze,ui)}}),je.set(we,Ze)}),Ge.selection.each(function(we){Re._assignZOrder(we,je.get(we.layer)+1)}),Ge.commitTransaction("pullToFront")},Re.prototype.pushToBack=function(){var Ge=this.diagram;Ge.startTransaction("pushToBack");var je=new go.Map;Ge.selection.each(function(we){je.set(we.layer,0)}),je.iteratorKeys.each(function(we){var Ze=0;we.parts.each(function(ai){if(!ai.isSelected){var ui=ai.zOrder;isNaN(ui)?ai.zOrder=0:Ze=Math.min(Ze,ui)}}),je.set(we,Ze)}),Ge.selection.each(function(we){Re._assignZOrder(we,je.get(we.layer)-1-Re._findGroupDepth(we))}),Ge.commitTransaction("pushToBack")},Re._assignZOrder=function(Ge,je,we){we===void 0&&(we=Ge),Ge.layer===we.layer&&(Ge.zOrder=je),Ge instanceof go.Group&&Ge.memberParts.each(function(Ze){Re._assignZOrder(Ze,je+1,we)})},Re._findGroupDepth=function(Ge){if(Ge instanceof go.Group){var je=0;return Ge.memberParts.each(function(we){je=Math.max(je,Re._findGroupDepth(we))}),je+1}else return 0},Re.prototype.doKeyDown=function(){var Ge=this.diagram;if(Ge!==null){var je=Ge.lastInput;if(je.key==="Up"||je.key==="Down"||je.key==="Left"||je.key==="Right"){var we=this.arrowKeyBehavior;if(we==="none")return;if(we==="select"){this._arrowKeySelect();return}else if(we==="move"){this._arrowKeyMove();return}else if(we==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Re.prototype._getAllParts=function(){var Ge=new Array;return this.diagram.nodes.each(function(je){Ge.push(je)}),this.diagram.parts.each(function(je){Ge.push(je)}),Ge},Re.prototype._arrowKeyMove=function(){var Ge=this.diagram,je=Ge.lastInput,we=0,Ze=0;if(je.control||je.meta)we=1,Ze=1;else if(Ge.grid!==null){var ai=Ge.grid.gridCellSize;Ze=ai.width,we=ai.height}Ge.startTransaction("arrowKeyMove"),Ge.selection.each(function(ui){je.key==="Up"?ui.move(new go.Point(ui.actualBounds.x,ui.actualBounds.y-we)):je.key==="Down"?ui.move(new go.Point(ui.actualBounds.x,ui.actualBounds.y+we)):je.key==="Left"?ui.move(new go.Point(ui.actualBounds.x-Ze,ui.actualBounds.y)):je.key==="Right"&&ui.move(new go.Point(ui.actualBounds.x+Ze,ui.actualBounds.y))}),Ge.commitTransaction("arrowKeyMove")},Re.prototype._arrowKeySelect=function(){var Ge=this.diagram,je=Ge.lastInput,we=null;je.key==="Up"?we=this._findNearestPartTowards(270):je.key==="Down"?we=this._findNearestPartTowards(90):je.key==="Left"?we=this._findNearestPartTowards(180):je.key==="Right"&&(we=this._findNearestPartTowards(0)),we!==null&&(je.shift?we.isSelected=!0:je.control||je.meta?we.isSelected=!we.isSelected:Ge.select(we))},Re.prototype._findNearestPartTowards=function(Ge){var je=this.diagram.selection.first();if(je===null)return null;for(var we=je.actualBounds.center,Ze=this._getAllParts(),ai=1/0,ui=je,qn=0;qn<Ze.length;qn++){var ze=Ze[qn];if(ze!==je&&ze.canSelect()){var yn=ze.actualBounds.center,Ni=we.directionPoint(yn),Yi=this._angleCloseness(Ni,Ge);if(Yi<=45){var Dn=we.distanceSquaredPoint(yn);Dn*=1+Math.sin(Yi*Math.PI/180),Dn<ai&&(ai=Dn,ui=ze)}}}return ui},Re.prototype._angleCloseness=function(Ge,je){return Math.min(Math.abs(je-Ge),Math.min(Math.abs(je+360-Ge),Math.abs(je-360-Ge)))},Re.prototype._arrowKeyTree=function(){var Ge=this.diagram,je=Ge.selection.first();if(je instanceof go.Node){var we=Ge.lastInput;if(we.key==="Right"){if(!je.isTreeLeaf)if(!je.isTreeExpanded)Ge.commandHandler.canExpandTree(je)&&Ge.commandHandler.expandTree(je);else{var Ze=this._sortTreeChildrenByY(je).first();Ze!==null&&Ge.select(Ze)}}else if(we.key==="Left")if(!je.isTreeLeaf&&je.isTreeExpanded)Ge.commandHandler.canCollapseTree(je)&&Ge.commandHandler.collapseTree(je);else{var ai=je.findTreeParentNode();ai!==null&&Ge.select(ai)}else if(we.key==="Up"){var ai=je.findTreeParentNode();if(ai!==null){var ui=this._sortTreeChildrenByY(ai),qn=ui.indexOf(je);if(qn>0){for(var ze=ui.elt(qn-1);ze!==null&&ze.isTreeExpanded&&!ze.isTreeLeaf;){var yn=this._sortTreeChildrenByY(ze);ze=yn.last()}ze!==null&&Ge.select(ze)}else Ge.select(ai)}}else if(we.key==="Down")if(je.isTreeExpanded&&!je.isTreeLeaf){var Ze=this._sortTreeChildrenByY(je).first();Ze!==null&&Ge.select(Ze)}else for(;je!==null;){var ai=je.findTreeParentNode();if(ai===null)break;var ui=this._sortTreeChildrenByY(ai),qn=ui.indexOf(je);if(qn<ui.length-1){Ge.select(ui.elt(qn+1));break}else je=ai}var Ni=Ge.selection.first();Ni!==null&&Ge.scrollToRect(Ni.actualBounds)}},Re.prototype._sortTreeChildrenByY=function(Ge){var je=new go.List().addAll(Ge.findTreeChildrenNodes());return je.sort(function(we,Ze){var ai=we.location,ui=Ze.location;return ai.y<ui.y?-1:ai.y>ui.y?1:ai.x<ui.x?-1:ai.x>ui.x?1:0}),je},Re.prototype.copyToClipboard=function(Ge){go.CommandHandler.prototype.copyToClipboard.call(this,Ge),this._lastPasteOffset.set(this.pasteOffset)},Re.prototype.pasteFromClipboard=function(){var Ge=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ge,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ge},Object.defineProperty(Re.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ge){if(Ge!=="move"&&Ge!=="select"&&Ge!=="scroll"&&Ge!=="tree"&&Ge!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ge);this._arrowKeyBehavior=Ge}}),Object.defineProperty(Re.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ge){if(!(Ge instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ge);this._pasteOffset.set(Ge)}});var dn=Re,Te=Ft(18023),Ht=Ft(15746),At=Ft(33170),Ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Tt=Ft(52262),Xt=Ft(67294),kt=(Ge,je,we)=>new Promise((Ze,ai)=>{var ui=yn=>{try{ze(we.next(yn))}catch(Ni){ai(Ni)}},qn=yn=>{try{ze(we.throw(yn))}catch(Ni){ai(Ni)}},ze=yn=>yn.done?Ze(yn.value):Promise.resolve(yn.value).then(ui,qn);ze((we=we.apply(Ge,je)).next())});function ee({onCancel:Ge,callback:je}){let we=(0,Lt.useRef)(),Ze=(0,Lt.useRef)(),ai=(0,Lt.useRef)(),ui=(0,Lt.useRef)(!1);const qn=(0,Lt.useRef)(!1),[ze,yn]=(0,Lt.useState)(0);function Ni(){const Dn=fe.bx.make,De={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};we.current=new fe.S0(Ze.current,{padding:20,grid:Dn(fe.s_,"Grid",Dn(fe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Dn(fe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var mr=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);mr||We.diagram.currentTool.doCancel()},commandHandler:Dn(dn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var mr=We.subject;mr.location=mr.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var mr=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var mr=We.parameter.part;mr.invalidateConnectedLinks();var xo=We.subject;We.diagram.toolManager.linkingTool.isForwards?xo.toNode.invalidateConnectedLinks():xo.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=Dn(fe.NB,"Auto",{locationSpot:fe.z6.Center,locationObjectName:"SHAPE",desiredSize:new fe.$u(120,60),minSize:new fe.$u(40,40),resizable:!0,resizeCellSize:new fe.$u(10,10),rotatable:!0},new fe.KX("location","loc",fe.E9.parse).makeTwoWay(fe.E9.stringify),new fe.KX("desiredSize","size",fe.$u.parse).makeTwoWay(fe.$u.stringify),Dn(fe.bn,{name:"SHAPE",fill:De.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:fe.z6.AllSides,toSpot:fe.z6.AllSides},new fe.KX("figure"),new fe.KX("fill"),new fe.KX("stroke","borderColor"),new fe.KX("strokeWidth","thickness"),new fe.KX("strokeDashArray","dash")),Dn(fe.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Dn(fe.al,{margin:1,textAlign:"center",overflow:fe.al.OverflowEllipsis,editable:!0},new fe.KX("text").makeTwoWay(),new fe.KX("stroke","color"))),we.current.nodeTemplate.toolTip=Dn("ToolTip",Dn(fe.s_,"Vertical",{maxSize:new fe.$u(200,NaN)},Dn(fe.al,{font:"bold 10pt sans-serif",textAlign:"center"},new fe.KX("text")),Dn(fe.al,{font:"10pt sans-serif",textAlign:"center"},new fe.KX("text","details"))));function xi(We,mr){var xo=(ir,Ea)=>{ir.handled=!0,ir.diagram.model.commit(mo=>{var To=Ea.part.adornedPart,so=new fe.E9().setRectSpot(To.actualBounds,We);so.subtract(To.location),so.scale(2,2),so.x+=Math.sign(so.x)*130,so.y+=Math.sign(so.y)*130,so.add(To.location),so.snapToGridPoint(ir.diagram.grid.gridOrigin,ir.diagram.grid.gridCellSize);var Hr=mo.copyNodeData(To.data);mo.setGroupKeyForNodeData(Hr,mo.getGroupKeyForNodeData(To.data)),mo.addNodeData(Hr);var ea={from:To.key,to:mo.getKeyForNodeData(Hr)};mo.addLinkData(ea);var Ln=ir.diagram.findNodeForData(Hr);Ln.location=so,ir.diagram.select(Ln),setTimeout(()=>{ir.diagram.commandHandler.editTextBlock()},20)})};return Dn(fe.bn,{figure:mr,alignment:We,alignmentFocus:We.opposite(),width:We.equals(fe.z6.Top)||We.equals(fe.z6.Bottom)?25:18,height:We.equals(fe.z6.Top)||We.equals(fe.z6.Bottom)?18:25,fill:"orange",stroke:De.white,strokeWidth:4,mouseEnter:(ir,Ea)=>Ea.fill="dodgerblue",mouseLeave:(ir,Ea)=>Ea.fill="orange",isActionable:!0,click:xo,contextClick:xo})}function Ui(We){return Dn(fe.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:(mr,xo)=>xo.fill="dodgerblue",mouseLeave:(mr,xo)=>xo.fill="orange",click:(mr,xo)=>{mr.diagram.commandHandler.showContextMenu(xo.part.adornedPart)}},We||{})}we.current.nodeTemplate.selectionAdornmentTemplate=Dn(fe.uz,"Spot",Dn(fe.Vm,{padding:10}),xi(fe.z6.Top,"TriangleUp"),xi(fe.z6.Left,"TriangleLeft"),xi(fe.z6.Right,"TriangleRight"),xi(fe.z6.Bottom,"TriangleDown"),Ui({alignment:new fe.z6(.75,0)}));function Tr(We,mr){return(xo,ir)=>{xo.handled=!0,xo.diagram.model.commit(Ea=>{Ea.set(ir.part.adornedPart.data,We,mr)})}}function Cn(We,mr){return mr||(mr="color"),Dn(fe.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(xo,ir)=>ir.stroke="dodgerblue",mouseLeave:(xo,ir)=>ir.stroke="lightgray",click:Tr(mr,We),contextClick:Tr(mr,We)})}function Ri(){return[Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Cn(De.white,"fill"),Cn(De.beige,"fill"),Cn(De.extralightblue,"fill"),Cn(De.extralightred,"fill"))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Cn(De.lightgray,"fill"),Cn(De.lightgreen,"fill"),Cn(De.lightblue,"fill"),Cn(De.lightred,"fill")))]}function ro(){return[Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Cn(De.black),Cn(De.green),Cn(De.blue),Cn(De.red))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Cn(De.white),Cn(De.magenta),Cn(De.purple),Cn(De.orange)))]}function Sa(We,mr){return mr||(mr="thickness"),Dn(fe.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(xo,ir)=>ir.background="dodgerblue",mouseLeave:(xo,ir)=>ir.background="transparent",click:Tr(mr,We),contextClick:Tr(mr,We)})}function bo(We,mr){return mr||(mr="dash"),Dn(fe.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(xo,ir)=>ir.background="dodgerblue",mouseLeave:(xo,ir)=>ir.background="transparent",click:Tr(mr,We),contextClick:Tr(mr,We)})}function ki(){return[Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Sa(1),Sa(2),Sa(3),Sa(4))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",bo(null),bo([2,4]),bo([4,4])))]}function Bi(We,mr){return mr||(mr="figure"),Dn(fe.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(xo,ir)=>ir.fill="dodgerblue",mouseLeave:(xo,ir)=>ir.fill="lightgray",click:Tr(mr,We),contextClick:Tr(mr,We)})}we.current.nodeTemplate.contextMenu=Dn("ContextMenu",Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Bi("Rectangle"),Bi("RoundedRectangle"),Bi("Ellipse"),Bi("Diamond"))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Bi("Parallelogram2"),Bi("ManualOperation"),Bi("Procedure"),Bi("Cylinder1"))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Bi("Terminator"),Bi("CreateRequest"),Bi("Document"),Bi("TriangleDown"))),Ri(),ro(),ki()),we.current.groupTemplate=Dn(fe.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:fe.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,mr)=>{var xo=mr.addMembers(mr.diagram.selection,!0);xo||mr.diagram.currentTool.doCancel()},avoidable:!1},new fe.KX("location","loc",fe.E9.parse).makeTwoWay(fe.E9.stringify),Dn(fe.s_,"Auto",{name:"BODY"},Dn(fe.bn,{parameter1:10,fill:De.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:fe.z6.AllSides,toSpot:fe.z6.AllSides},new fe.KX("fill"),new fe.KX("stroke","color"),new fe.KX("strokeWidth","thickness"),new fe.KX("strokeDashArray","dash")),Dn(fe.Vm,{background:"transparent",margin:20})),Dn(fe.al,{alignment:fe.z6.Top,alignmentFocus:fe.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new fe.KX("text"),new fe.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=Dn(fe.uz,"Spot",Dn(fe.s_,"Auto",Dn(fe.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Dn(fe.Vm,{margin:1.5})),Ui({alignment:fe.z6.TopRight,alignmentFocus:fe.z6.BottomRight})),we.current.groupTemplate.contextMenu=Dn("ContextMenu",Ri(),ro(),ki()),we.current.linkTemplate=Dn(fe.rU,{layerName:"Foreground",routing:fe.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new fe.KX("fromSpot","fromSpot",fe.z6.parse),new fe.KX("toSpot","toSpot",fe.z6.parse),new fe.KX("fromShortLength","dir",We=>We>=1?10:0),new fe.KX("toShortLength","dir",We=>We>=1?10:0),new fe.KX("points").makeTwoWay(),Dn(fe.bn,{strokeWidth:2},new fe.KX("stroke","color"),new fe.KX("strokeWidth","thickness"),new fe.KX("strokeDashArray","dash")),Dn(fe.bn,{segmentIndex:0,segmentOffset:new fe.E9(15,0),segmentOrientation:fe.rU.OrientAlong,alignmentFocus:fe.z6.Right,figure:"circle",width:10,strokeWidth:0},new fe.KX("fill","color"),new fe.KX("visible","dir",We=>We===1)),Dn(fe.bn,{segmentIndex:-1,segmentOffset:new fe.E9(-10,6),segmentOrientation:fe.rU.OrientPlus90,alignmentFocus:fe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new fe.KX("fill","color"),new fe.KX("visible","dir",We=>We>=1),new fe.KX("width","thickness",We=>7+3*We),new fe.KX("height","thickness",We=>7+3*We),new fe.KX("segmentOffset","thickness",We=>new fe.E9(-15,4+1.5*We))),Dn(fe.bn,{segmentIndex:0,segmentOffset:new fe.E9(15,-6),segmentOrientation:fe.rU.OrientMinus90,alignmentFocus:fe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new fe.KX("fill","color"),new fe.KX("visible","dir",We=>We===2),new fe.KX("width","thickness",We=>7+3*We),new fe.KX("height","thickness",We=>7+3*We),new fe.KX("segmentOffset","thickness",We=>new fe.E9(-15,4+1.5*We))),Dn(fe.al,{alignmentFocus:new fe.z6(0,1,-4,0),editable:!0},new fe.KX("text").makeTwoWay(),new fe.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=Dn(fe.uz,Dn(fe.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Hi(2)},new fe.KX("pathPattern","thickness",Hi)),Ui({alignmentFocus:new fe.z6(0,0,-6,-4)}));function Hi(We){return Dn(fe.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function to(We){var mr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?mr="M0 0 M16 16 M0 8 L16 8":We===2&&(mr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Dn(fe.bn,{geometryString:mr,margin:2,background:"transparent",mouseEnter:(xo,ir)=>ir.background="dodgerblue",mouseLeave:(xo,ir)=>ir.background="transparent",click:Tr("dir",We),contextClick:Tr("dir",We)})}function Yr(We){var mr=(xo,ir)=>{xo.handled=!0,xo.diagram.model.commit(Ea=>{var mo=ir.part.adornedPart;Ea.set(mo.data,We?"toSpot":"fromSpot",fe.z6.stringify(fe.z6.AllSides)),(We?mo.toNode:mo.fromNode).invalidateConnectedLinks()})};return Dn(fe.bn,{width:12,height:12,fill:"transparent",mouseEnter:(xo,ir)=>ir.background="dodgerblue",mouseLeave:(xo,ir)=>ir.background="transparent",click:mr,contextClick:mr})}function ti(We,mr){var xo=0,ir=fe.z6.RightSide;We.equals(fe.z6.Top)?(xo=270,ir=fe.z6.TopSide):We.equals(fe.z6.Left)?(xo=180,ir=fe.z6.LeftSide):We.equals(fe.z6.Bottom)&&(xo=90,ir=fe.z6.BottomSide),mr||(xo-=180);var Ea=(mo,To)=>{mo.handled=!0,mo.diagram.model.commit(so=>{var Hr=To.part.adornedPart;so.set(Hr.data,mr?"toSpot":"fromSpot",fe.z6.stringify(ir)),(mr?Hr.toNode:Hr.fromNode).invalidateConnectedLinks()})};return Dn(fe.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:xo,background:"transparent",mouseEnter:(mo,To)=>To.background="dodgerblue",mouseLeave:(mo,To)=>To.background="transparent",click:Ea,contextClick:Ea})}we.current.linkTemplate.contextMenu=Dn("ContextMenu",ro(),ki(),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",to(0),to(1),to(2))),Dn("ContextMenuButton",Dn(fe.s_,"Horizontal",Dn(fe.s_,"Spot",Yr(!1),ti(fe.z6.Top,!1),ti(fe.z6.Left,!1),ti(fe.z6.Right,!1),ti(fe.z6.Bottom,!1)),Dn(fe.s_,"Spot",{margin:new fe.Zt(0,0,0,2)},Yr(!0),ti(fe.z6.Top,!0),ti(fe.z6.Left,!0),ti(fe.z6.Right,!0),ti(fe.z6.Bottom,!0)))));const or=`{ "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 pl=["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 gs(We){return console.log("shapeName:",We),pl.indexOf(We)>=0}var qa=new fe.YI(ai.current,{maxSelectionCount:1,linkTemplate:Dn(fe.rU,{locationSpot:fe.z6.Center,selectionAdornmentTemplate:Dn(fe.uz,"Link",{locationSpot:fe.z6.Center},Dn(fe.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Dn(fe.bn,{toArrow:"Standard",stroke:null}))},{routing:fe.rU.AvoidsNodes,curve:fe.rU.JumpOver,corner:5,toShortLength:4},new fe.KX("points"),Dn(fe.bn,{isPanelMain:!0,strokeWidth:2}),Dn(fe.bn,{toArrow:"Standard",stroke:null})),model:new fe.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...fe.bn.getFigureGenerators().toArray().map(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(We){var mr;const xo=We.subject.part;var ir=(mr=document.activeElement)==null?void 0:mr.value;typeof ir=="string"&&ir.trim()===""&&we.current.model.commit(function(Ea){Ea.set(xo.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),qa.nodeTemplate=Dn(fe.NB,"Auto",{locationSpot:fe.z6.Center},new fe.KX("location","location",fe.E9.parse).makeTwoWay(fe.E9.stringify),Dn(fe.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 fe.KX("stroke").makeTwoWay(),new fe.KX("fill").makeTwoWay(),new fe.KX("figure")),Dn(fe.al,{margin:new fe.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new fe.$u(16,16),maxSize:new fe.$u(10,NaN),textAlign:"center",editable:!0},new fe.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=Dn(fe.s_,"Grid",Dn(fe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Dn(fe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const Yi=()=>kt(this,null,function*(){var Dn,De=we.current.makeImage();const xi=yield(0,At.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src,file_data:JSON.stringify({login:(Dn=(0,Tt.eY)())==null?void 0:Dn.login,data:JSON.parse(we.current.model.toJson())})}});je({src:xi.url})});return(0,Lt.useEffect)(()=>(setTimeout(()=>{Ni()},500),yn(ze+1),()=>{we.current=null}),[]),Xt.createElement("div",{ref:qn,className:"body-overflow-initial"},Xt.createElement(Le.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ze,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Xt.createElement(gn.Z,null,Xt.createElement(Ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Xt.createElement(Ht.Z,{onClick:()=>{var Dn,De,xi=we.current.selection.first();if(ui.current=!ui.current,document.activeElement&&xi){let Ui=(De=(Dn=document.activeElement)==null?void 0:Dn.value)==null?void 0:De.trim();typeof Ui=="string"&&we.current.model.commit(function(Tr){Tr.set(xi.data,"text",Ui||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}yn(ze+1)}},Xt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ge},Xt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ui.current?"none":"block"},className:Ct.flowChartWrp},Xt.createElement("div",{style:{display:"flex",height:"100%"}},Xt.createElement("div",{style:{width:"300px",height:"100%"}},Xt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Xt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ct.myPaletteDiv,ref:ai})),Xt.createElement("div",{style:{flex:1,position:"relative"}},Xt.createElement("div",{ref:Ze,style:{height:"80vh"}}))),Xt.createElement("div",{className:"tr"},Xt.createElement(Pe.ZP,{size:"large",onClick:Yi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rn=ee,on=Ft(98813),Un=Ft(37720);const en=on.ZP.Group,Mn={margin:"0 8px"};var Ke=({callback:Ge,onCancel:je})=>{function we(Ze){Ge(Ze)}return Lt.createElement(_t.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},Lt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Lt.createElement("span",{style:Mn},"\u5355\u5143\u683C\u6570\uFF1A"),Lt.createElement("span",{style:Mn},"\u884C\u6570"),Lt.createElement(_t.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Lt.createElement(Un.Z,null)),Lt.createElement("span",{style:Mn},"\u5217\u6570"),Lt.createElement(_t.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Lt.createElement(Un.Z,null))),Lt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Lt.createElement("span",{style:Mn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Lt.createElement(_t.default.Item,{name:"align"},Lt.createElement(en,null,Lt.createElement(on.ZP,{value:"default"},Lt.createElement("i",{className:"fa fa-align-justify"})),Lt.createElement(on.ZP,{value:"left"},Lt.createElement("i",{className:"fa fa-align-left"})),Lt.createElement(on.ZP,{value:"center"},Lt.createElement("i",{className:"fa fa-align-center"})),Lt.createElement(on.ZP,{value:"right"},Lt.createElement("i",{className:"fa fa-align-right"}))))),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(Pe.ZP,{type:"ghost",onClick:je},"\u53D6\u6D88")))},jn=Ft(59637),ni=Ft(61016),Oi=Ft.n(ni),Ai=(0,Lt.forwardRef)(({use3d:Ge,width:je,height:we,callback:Ze,showSaveButton:ai},ui)=>{const qn=(0,Lt.useRef)(),ze=(0,Lt.useRef)(),[yn,Ni]=(0,Lt.useState)(!1),Yi=(0,Lt.useRef)({id:qn,appName:"graphing",width:je||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Lt.useEffect)(()=>{ze.current=new(Oi())(Yi.current,!0),window.onload=function(){ze.current.inject("applet_container")}},[]);const Dn=()=>{var De=window.ggbApplet.getPNGBase64(1,!0,72);return Ze&&Ze(De),De};return(0,Lt.useEffect)(()=>{Yi.current.appName=yn?"3D":"graphing",ze.current.inject("applet_container")},[yn]),(0,Lt.useEffect)(()=>{Ni(Ge)},[Ge]),(0,Lt.useImperativeHandle)(ui,()=>({getImgData:Dn})),Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:qn}),Lt.createElement(gn.Z,{align:"middle"},Lt.createElement(Ht.Z,{flex:1},Lt.createElement(jn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yn,onChange:De=>Ni(De)})),Lt.createElement(Ht.Z,null,Lt.createElement(Pe.ZP,{size:"large",onClick:Dn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ki=Ft(36527),ii=Ft(2453);const mi="link",di="upload-image",gi="add-flowchart",hr="draw-image",Or="add-flowchart",sr="code-block",Di="add-table",jr="------------",ao={default:jr,left:`:${jr}`,center:`:${jr}:`,right:`${jr}:`};var fa=Ft(99914);function _o(){}let ta=0;const Ga=1e4,zo="\u2581",gr="@\u2581\u2581@",vn="@\u2581@",wt=`
|
|
**\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`,Ve=["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 Ye(Ge){return/^\d+$/.test(Ge)?`${Ge}px`:Ge}const fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ln={[fn+"-B"]:"bold",[fn+"-I"]:"italic"},Yn={[mi]:"\u6DFB\u52A0\u94FE\u63A5",[sr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[di]:"\u6DFB\u52A0\u56FE\u7247",[hr]:"\u6DFB\u52A0\u753B\u56FE",[gi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Di]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Li=({defaultValue:Ge="",onChange:je,width:we="100%",height:Ze=400,miniToolbar:ai=!1,isFocus:ui=!1,watch:qn,insertTemp:ze,mode:yn="markdown",id:Ni="markdown-editor-id",showResizeBar:Yi=!1,noStorage:Dn=!1,showNullButton:De=!1,showNullProgramButton:xi=!1,hidetoolBar:Ui=!1,fullScreen:Tr=!1,onBlur:Cn,onCMBeforeChange:Ri,onFullScreen:ro,className:Sa="",disablePaste:bo=!1,disabled:ki=!1,disabledFill:Bi=!1,placeholder:Hi="",values:to="",extraUse:Yr})=>{const[ti,or]=(0,Lt.useState)(null),[pl,gs]=(0,Lt.useState)(Ge),[qa,We]=(0,Lt.useState)(qn),[mr,xo]=(0,Lt.useState)(Tr),[ir,Ea]=(0,Lt.useState)(""),[mo,To]=(0,Lt.useState)(0),[so,Hr]=(0,Lt.useState)(Ze),[ea,Ln]=(0,Lt.useState)(!1),[La,pn]=(0,Lt.useState)(0),[vo,Fs]=(0,Lt.useState)(0),Ia=(0,Lt.useRef)(),$s=(0,Lt.useRef)(),Ca=(0,Lt.useRef)(),Fo=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{const cr=window.scrollY||window.pageYOffset;gs(to),ti==null||ti.setValue(to),window.scrollTo(0,cr)},[to]),(0,Lt.useEffect)(()=>{ro==null||ro(mr)},[mr]),(0,Lt.useEffect)(()=>{if(Ia.current){let cr=function(Rr,un){var vr;if(bo){un.preventDefault();return}const oo=un.clipboardData;if(oo){const za=oo.types.toString(),ka=oo.items;if(za==="Files"||oo.types.indexOf("Files")>-1){if(un.preventDefault(),yn=="stex")return;try{let Na=ka[1];((vr=ka[0])==null?void 0:vr.kind)==="file"&&(Na=ka[0]);const Ws=Na.getAsFile(),xl=Ws.name.split(".").pop();(0,Tn.I)(Ws,wl=>{var Xh,fh,Xe;wl.id?((Xh=Ws==null?void 0:Ws.type)==null?void 0:Xh.indexOf("image"))>-1?Xi.replaceSelection(`<img width="100%" src="/api/attachments/${wl.id}?type=${wl.content_type})" alt="" />`):((fh=Ws==null?void 0:Ws.type)==null?void 0:fh.indexOf("video"))>-1?Xi.replaceSelection(`<video width="100%" controls src="/api/attachments/${wl.id}"></video>`):((Xe=Ws==null?void 0:Ws.type)==null?void 0:Xe.indexOf("pdf"))>-1?Xi.replaceSelection(`<a href="/api/attachments/${wl.id}?type=${Ws.type}&disposition=inline" target="_blank">${Ws.name}</a>`):Ve.includes(xl)?Xi.replaceSelection(`<a href="/api/attachments/${wl.id}?type=office&disposition=inline" target="_blank">${Ws.name}</a>`):Xi.replaceSelection(`[${Ws.name}](/api/attachments/${wl.id}?type=${wl.content_type})`):(wl==null?void 0:wl.status)===401&&(document.location.href="/user/login")})}catch(Na){ii.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Xi=Be().fromTextArea(Ia.current,{mode:yn,lineNumbers:!ai,lineWrapping:!0,value:Ge,autoCloseTags:!0,autoCloseBrackets:!0});return Xi.on("keyup",function(Rr,un){un.keyCode===8&&(Rr.getValue()==""?Xi.setOption("placeholder",Hi):Xi.setOption("placeholder",null))}),Xi.on("keydown",function(Rr,un){if(un.keyCode===8){var vr=al(Rr);vr&&un.preventDefault()}}),ui&&Xi.focus(),Xi.on("paste",cr),ki&&Xi.on("beforeChange",function(Rr,un){(un.origin==="paste"||un.origin==="+input")&&un.cancel()}),or(Xi),()=>{Xi.off("paste",cr)}}},[]);const Fa=(0,Lt.useCallback)(()=>{if($s.current)try{}catch(cr){console.log(cr,"---- to set md editor body height")}},[so,$s,mr]);(0,Lt.useEffect)(()=>{function cr(){let Xi=new Ne.Z(Rr=>{for(let un of Rr)(un.target.offsetHeight>0||un.target.offsetWidth>0)&&(Fa(),ti.setSize("100%","100%"),ti.refresh())});return Xi.observe(Ia.current.parentElement),Xi}if(ti){const Xi=cr();return()=>{var Rr,un;(Rr=Ia.current)!=null&&Rr.parentElement&&Xi.unobserve((un=Ia.current)==null?void 0:un.parentElement)}}},[ti,Fa]),(0,Lt.useEffect)(()=>{if(ti){let cr=[];for(const[Xi,Rr]of Object.entries(ln)){let un={[Xi]:()=>{la(Rr)}};cr.push(un),ti.addKeyMap(un)}return()=>{for(let Xi of cr)ti.removeKeyMap(Xi)}}},[ti]),(0,Lt.useEffect)(()=>{Tr!==mr&&xo(Tr)},[Tr]),(0,fa.Z)(()=>{if(!Dn&&mo>0){let cr=new Date().getTime(),Xi=window.sessionStorage.getItem(Ni);cr>=mo+Ga&&(!Xi||Xi!==pl)&&(window.sessionStorage.setItem(Ni,pl),Ln(!0))}},Ga),(0,Lt.useEffect)(()=>{We(qn)},[ti,qn]),(0,Lt.useEffect)(()=>{ti&&ui&&ti.focus()},[ti,ui]),(0,Lt.useEffect)(()=>{if(qa&&ti){let cr=function(Rr){let un=Rr.target;if(Fo.current){let vr=un.scrollTop/un.scrollHeight;Fo.current.scrollTop=Fo.current.scrollHeight*vr}};const Xi=ti.getScrollerElement();return Xi.addEventListener("scroll",cr),()=>{Xi.removeEventListener("scroll",cr)}}},[ti,qa]),(0,Lt.useEffect)(()=>{if(ti&&Ri){let cr=function(Xi,Rr){Ri(Xi,Rr)};return ti.on("beforeChange",cr),()=>{ti.off("beforeChange",cr)}}},[ti,Ri]),(0,Lt.useEffect)(()=>{if(ti&&Cn){let cr=function(){Cn(ti.getValue())};return ti.on("blur",cr),()=>{ti.off("blur",cr)}}},[ti,Cn]);function al(cr,Xi){var Rr=cr.getDoc(),un=Rr.getCursor(),vr=Rr.getLine(un.line),oo=vr.charAt(un.ch-1),za=vr.lastIndexOf("@\u2581@",un.ch),ka=vr.lastIndexOf("@\u2581\u2581@",un.ch),Na=za>ka?za:ka,Ws=za>ka?3:4;if(gr.indexOf(oo)===-1)return null;if(console.log("change1:",Xi,cr,vr,un,Na,za,ka,oo),Na>=0&&un.ch-Na<5){var xl=Na+Ws;return Rr.replaceRange("",{line:un.line,ch:Na},{line:un.line,ch:xl}),{line:un.line,ch:xl}}return null}(0,Lt.useEffect)(()=>{if(ti){let cr=function(Xi,Rr){const un=Xi.getValue();gs(un),To(new Date().getTime()),Xi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),je&&(xi?je(un,tl(un)):je(un))};return ti.on("change",cr),()=>{ti.off("change",cr)}}},[ti,je]),(0,Lt.useEffect)(()=>{if(ti)if(Ge==null)ti.setValue(""),gs("");else{const cr=window.scrollY||window.pageYOffset;Ge!==ti.getValue()&&(ti.setValue(Ge),gs(Ge),ti.setCursor(ki?1:ti.lineCount(),0),window.scrollTo(0,cr))}},[ti,Ge]);const la=(0,Lt.useCallback)(cr=>{const Xi=ti.getCursor(),Rr=ti.getSelection();let un=Rr.split(`
|
|
`);switch(cr){case"bold":return ti.replaceSelection("**"+Rr+"**"),Rr===""&&ti.setCursor(Xi.line,Xi.ch+2),ti.focus();case"italic":return ti.replaceSelection("*"+Rr+"*"),Rr===""&&ti.setCursor(Xi.line,Xi.ch+1),ti.focus();case"code":return ti.replaceSelection("`"+Rr+"`"),Rr===""&&ti.setCursor(Xi.line,Xi.ch+1),ti.focus();case"inline-latex":return Ea("inline-latex"),ti.focus();case"latex":return ti.replaceSelection("```latex\n"+Rr+"\n```"),ti.setCursor(Xi.line+1,Rr.length+1),ti.focus();case"line-break":return ti.replaceSelection(`<br/>
|
|
`),ti.focus();case"list-ul":return Rr===""?ti.replaceSelection("- "+Rr):ti.replaceSelection(un.map(vr=>vr===""?"":`- ${vr}`).join(`
|
|
`)),ti.focus();case"list-ol":return Rr===""?ti.replaceSelection("1. "+Rr):ti.replaceSelection(un.map((vr,oo)=>vr===""?"":`${oo+1}. ${vr}`).join(`
|
|
`)),ti.focus();case"add-null-ch":return Rr===""&&ti.setCursor(Xi.line,Xi.ch),ti.replaceSelection(zo),ti.focus();case"add-signal":return Rr===""&&ti.setCursor(Xi.line,Xi.ch),ti.replaceSelection(vn),ti.focus();case"add-multiple":return Rr===""&&ti.setCursor(Xi.line,Xi.ch),ti.replaceSelection(gr),ti.focus();case"inster-template-1":return Rr===""&&ti.setCursor(Xi.line,Xi.ch),ti.replaceSelection(wt),ti.focus();case"eraser":return ti.setValue(""),ti.focus();case"trigger-watch":return We(!qa),ti.focus();case"trigger-full-screen":return xo(!mr),ti.focus();case mi:Ea(mi);return;case sr:Ea(sr);return;case di:Ea(di);return;case hr:Ea(hr);return;case"maths-latex":Ea("maths-latex");return;case gi:Ea(gi);return;case Di:Ea(Di);return;default:throw new Error}},[ti,qa,mr]),yi=(0,Lt.useCallback)((cr,Xi)=>{var Rr,un,vr,oo,za,ka;switch(Ea(""),ir){case mi:const{title:Xh,link:fh}=cr;return ti.replaceSelection(`[${Xh}](${fh})`),ti.focus();case sr:const{language:Xe,content:bl}=cr;return ti.replaceSelection(["```"+Xe,bl,"```"].join(`
|
|
`)),ti.focus();case"maths-latex":for(var Na=atob(cr),Ws=new Uint8Array(Na.length),xl=0;xl<Na.length;xl++)Ws[xl]=Na.charCodeAt(xl);var wl=new Blob([Ws],{type:"image/png"});(0,Tn.I)(wl,eo=>{eo.id?ti.replaceSelection(``):(eo==null?void 0:eo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ti.replaceSelection("`$$"+cr+"$$`");break;case di:case hr:case Or:const{src:Au,alt:kh}=cr,as=Xi,bh=(vr=(un=(Rr=as==null?void 0:as.name)==null?void 0:Rr.split("."))==null?void 0:un.pop)==null?void 0:vr.call(un);return((oo=as==null?void 0:as.type)==null?void 0:oo.indexOf("image"))>-1||!(as!=null&&as.type)?as!=null&&as.align||as!=null&&as.width?ti.replaceSelection(`<p style="text-align:${as.align||"initial"}"><img width="${as.width?as.width+"%":"initial"}" src="${Au}" alt="${kh||""}" /></p>`):ti.replaceSelection(`<img width="100%" src="${Au}" alt="${kh||""}" />`):((za=as==null?void 0:as.type)==null?void 0:za.indexOf("video"))>-1?ti.replaceSelection(`<video width="100%" controls src="${Au}"></video>`):((ka=as==null?void 0:as.type)==null?void 0:ka.indexOf("pdf"))>-1?ti.replaceSelection(`<a href="${Au}?type=${as.type}&disposition=inline" target="_blank">${as.name}</a>`):Ve.includes(bh)?ti.replaceSelection(`<a href="${Au}?type=office&disposition=inline" target="_blank">${as.name}</a>`):ti.replaceSelection(`[${as.name}](${Au})`),ti.focus();case Di:const{row:Fh,col:Jh,align:ja}=cr;let Ps=`
|
|
`;for(let eo=0;eo<Fh;eo++){let Oo=[],Wa=[];for(let ps=0;ps<Jh;ps++)eo===1&&Wa.push(ao[ja]),Oo.push(" ");eo===1&&(Ps+=`| ${Wa.join(" | ")} |
|
|
`),Ps+=`| ${Oo.join(Jh===1?"":" | ")} |
|
|
`}return ti.replaceSelection(Ps+`
|
|
`),ti.focus();default:throw new Error}},[ti,ir]),Qt=(0,Lt.useMemo)(()=>{switch(ir){case mi:return Lt.createElement(Ee,{callback:yi,onCancel:os});case sr:return Lt.createElement(sn.Z,{callback:yi,onCancel:os});case di:return Lt.createElement(Tn.Z,{callback:yi,onCancel:os});case gi:return Lt.createElement(rn,{callback:yi,onCancel:os});case Di:return Lt.createElement(Ke,{callback:yi,onCancel:os});case"maths-latex":return Lt.createElement(Ai,{showSaveButton:!0,callback:yi});case"inline-latex":return Lt.createElement(Ki.Z,{showSaveButton:!0,callback:yi});default:return null}},[ir]);function os(){Ea("")}(0,Lt.useEffect)(()=>{if(Ca.current){let cr=function(za){vr=!0,oo=za.pageY},Xi=function(){vr=!1},Rr=function(za){if(vr){let ka=za.pageY-oo;ka<0&&(ka=0),ka>300&&(ka=300);let Na=Ze+ka+"px";Hr(Na)}},un=Ca.current,vr=!1,oo=0;return un.addEventListener("mousedown",cr),document.addEventListener("mousemove",Rr),document.addEventListener("mouseup",Xi),()=>{un.removeEventListener("mousedown",cr),document.removeEventListener("mousemove",Rr),document.removeEventListener("mouseup",Xi)}}},[ti,Ca]),(0,Lt.useEffect)(()=>{Hr(Ze)},[Ze]);const uu=Ye(we),hu=Ye(so),Ys={width:uu,height:hu},cu=(0,Lt.useMemo)(()=>{if(mo){let cr=new Date(mo),Xi=cr.getHours(),Rr=cr.getMinutes(),un=cr.getSeconds();return Xi=Xi<10?"0"+Xi:Xi,Rr=Rr<10?"0"+Rr:Rr,un=un<10?"0"+un:un,`${Xi}:${Rr}:${un}`}return 0},[mo]),tl=cr=>{const Xi=[];if(xi){let Rr=-1;cr=cr.replace(/(@▁▁@|@▁@)/g,function(un,vr,oo){Xi.push({multiLine:un!==vn})})}return Xi};function Mh(){window.sessionStorage.removeItem(Ni),Ln(!1),To(0)}function Cu(){Ln(!1),To(0),ti.setValue(window.sessionStorage.getItem(Ni))}(0,Lt.useEffect)(()=>{Yn[ir]&&ir!==hr&&ir!==gi&&setTimeout(()=>{const cr=document.getElementsByClassName("markdown-popup-form")[0],Xi=window.innerWidth/2-cr.offsetWidth/2,Rr=window.innerHeight/2-cr.offsetHeight/2;pn(Xi),Fs(Rr)},0)},[ir]);const Ma=cr=>{cr.preventDefault();const Xi=cr.clientX-La,Rr=cr.clientY-vo;document.body.onmousemove=un=>{let vr=un.clientX-Xi,oo=un.clientY-Rr;const za=document.getElementsByClassName("markdown-popup-form")[0],ka=window.innerWidth-za.offsetWidth,Na=window.innerHeight-za.offsetHeight;vr=Math.max(0,Math.min(vr,ka)),oo=Math.max(0,Math.min(oo,Na)),Ja(un.clientX,un.clientY,Xi,Rr)&&(pn(vr),Fs(oo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ja=(cr,Xi,Rr,un)=>{const vr=document.body.clientHeight,oo=document.body.clientWidth;return cr<20&&Rr>cr||cr>oo-20&&Rr<cr||Xi<20&&un>Xi||Xi>vr-20&&un<Xi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:"markdown-editor-wrapper",ref:$s},Lt.createElement("div",{className:`markdown-editor-container ${Sa} ${qa?"on-preview":""} ${ai?"mini":""} ${mr?"full-screen":""}`,style:Ys},Lt.createElement(qt,{insertTemp:ze,watch:qa,fullScreen:mr,showNullButton:De,showNullProgramButton:xi,onActionCallback:la,hidetoolBar:Ui,extraUse:Yr}),Lt.createElement("div",{className:"markdown-editor-body"},Lt.createElement("div",{className:"codemirror-container"},Lt.createElement("textarea",{ref:Ia,placeholder:Hi})),qa?Lt.createElement("div",{ref:Fo,className:"preview-container"},yn==="stex"&&Lt.createElement(de,{value:pl}),yn!=="stex"&&Lt.createElement(Je.Z,{disabledFill:Bi,showProgramFill:xi,value:pl})):null))),Yi?Lt.createElement("a",{ref:Ca,className:"editor-resize"}):null,ir===hr&&Lt.createElement(ke,{callback:yi,onCancel:os}),ir===gi&&Lt.createElement(rn,{callback:yi,onCancel:os}),Lt.createElement(re.Z,null,Yn[ir]&&ir!==hr&&ir!==gi?Lt.createElement(Le.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:La,top:vo},title:Lt.createElement("div",{style:{cursor:"move"},onMouseDown:Ma},Yn[ir]),open:!0,onCancel:os,footer:null,destroyOnClose:!0,width:ir===gi?"1200px":null,height:ir===gi?"80vh":null,className:"markdown-popup-form"},Qt):null))}},70859:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return zt},I:function(){return re}});var Lt=Ft(91773),ie=Ft(2453),Be=Ft(28802),Ne=Ft(78957),Ae=Ft(37720),Dt=Ft(98813),Jt=Ft(85804),ue=Ft(15476),ce=Ft(67294),ye=Ft(67294),Je=Object.defineProperty,de=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ht=(_t,Zt,Pe)=>Zt in _t?Je(_t,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):_t[Zt]=Pe,lt=(_t,Zt)=>{for(var Pe in Zt||(Zt={}))nt.call(Zt,Pe)&&ht(_t,Pe,Zt[Pe]);if(Nt)for(var Pe of Nt(Zt))et.call(Zt,Pe)&&ht(_t,Pe,Zt[Pe]);return _t},gt=(_t,Zt)=>de(_t,It(Zt));const{useForm:mt}=Lt.default,St={width:280,marginRight:10},Mt={labelCol:{span:5},wrapperCol:{span:19}};var zt=({callback:_t,onCancel:Zt})=>{const[Pe]=mt();let ge=(0,ce.useRef)();function Fe(In){ge.current.width=Pe.getFieldValue("width"),ge.current.align=Pe.getFieldValue("align"),_t(In,ge.current)}function He(In,bn){if(In.status===-1){ie.ZP.error(In.message);return}Pe.setFieldsValue({src:`/api/attachments/${In.id}`,type:bn.type})}function Ie(In){let bn=In.target.files[0];ge.current=bn,re(bn,He)}return ye.createElement(Lt.default,gt(lt({form:Pe},Mt),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),ye.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(Lt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(Be.default,{style:St})),ye.createElement(qt,{onFileChange:Ie}))),ye.createElement(Lt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(Be.default,{style:{width:264}})),ye.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(Ne.Z,null,ye.createElement(Lt.default.Item,{name:"width",style:{margin:0}},ye.createElement(Ae.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(Lt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(Dt.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"}]})),ye.createElement("aside",null,ye.createElement(Lt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ye.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Jt.ZP,{type:"default",onClick:Zt},"\u53D6\u6D88"))))};function qt({onFileChange:_t}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:_t}))}function re(_t,Zt){if(!_t)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",_t),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var ge=new window.XMLHttpRequest;ge.withCredentials=!0,ge.addEventListener("load",function(Fe){Zt(JSON.parse(Fe.target.responseText),_t)},!1),ge.addEventListener("error",function(Fe){console.error(Fe)},!1),ge.open("POST",`${ue.KI}/api/attachments.json`),ge.send(Pe)}},76621:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Be}});var Lt=Ft(67294),ie=Ft(73935);class Be extends Lt.Component{constructor(Ae){super(Ae);const Dt=window.document;this.node=Dt.createElement("div"),Dt.body.appendChild(this.node)}render(){const{children:Ae}=this.props;return(0,ie.createPortal)(Ae,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{SV:function(){return fe},ZP:function(){return ke}});var Lt=Ft(67294),ie=Ft(91033);const Be={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"]},Ne={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"]},Ae={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(`
|
|
`)}]},Dt={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(`
|
|
`)}]},Jt={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=Ft(84204),ce=Ft.n(ue),ye=(Re,dn,Te)=>new Promise((Ht,At)=>{var Ct=kt=>{try{Xt(Te.next(kt))}catch(ee){At(ee)}},Tt=kt=>{try{Xt(Te.throw(kt))}catch(ee){At(ee)}},Xt=kt=>kt.done?Ht(kt.value):Promise.resolve(kt.value).then(Ct,Tt);Xt((Te=Te.apply(Re,dn)).next())});const Je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},de=(Re,dn,Te,Ht)=>{const At=dn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Te.lineNumber,endColumn:Te.column});return Array.from(new Set(At.match(/\b\w{2,}\b/g)||[])).map(Tt=>({label:Tt,kind:Re.languages.CompletionItemKind.Text,insertText:Tt,range:Ht}))},It=(Re,dn,Te,Ht)=>{Re.languages.registerCompletionItemProvider(dn,{provideCompletionItems(At,Ct){const Tt=At.getWordUntilPosition(Ct),Xt={startLineNumber:Ct.lineNumber,endLineNumber:Ct.lineNumber,startColumn:Tt.startColumn,endColumn:Tt.endColumn},kt=At.getLineContent(Ct.lineNumber).substring(Tt.startColumn-2,Tt.endColumn);return{suggestions:[...de(Re,At,Ct,Xt),...Te.map(rn=>({label:rn,kind:Re.languages.CompletionItemKind.Keyword,documentation:rn,insertText:rn,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Xt})),...Ht.map(rn=>({label:rn.label,kind:Re.languages.CompletionItemKind.Snippet,documentation:rn.content,insertText:kt.startsWith("#")?rn.content.replace(/#/,""):rn.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Xt}))]}}})};var Nt=Re=>{Je.languages.forEach(dn=>{Re.languages.registerDocumentFormattingEditProvider(dn,{provideDocumentFormattingEdits(Te){return ye(this,null,function*(){const Ht=ce()(Te.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Te.getFullModelRange(),text:Ht}]})}})}),It(Re,"java",Ne.keywords,Ne.quickKey),It(Re,"cpp",Ae.keywords,Ae.quickKey),It(Re,"c",Be.keywords,[]),It(Re,"python",Dt.keywords,Dt.quickKey),It(Re,"scala",Jt.keywords,Jt.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=(Re,dn,Te)=>dn in Re?et(Re,dn,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Re[dn]=Te,lt=(Re,dn,Te)=>ht(Re,typeof dn!="symbol"?dn+"":dn,Te);const gt=class px{constructor(dn,Te,Ht){this.placeholder=dn,this.editor=Te,this.monaco=Ht,Te.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 St=gt,Mt=Ft(84144),zt=Ft(2453),qt=Ft(83062),re=Ft(96486),_t=Ft(33054),Zt=Ft(74855),Pe=Object.defineProperty,ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,bn=(Re,dn,Te)=>dn in Re?Pe(Re,dn,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Re[dn]=Te,cn=(Re,dn)=>{for(var Te in dn||(dn={}))Ie.call(dn,Te)&&bn(Re,Te,dn[Te]);if(He)for(var Te of He(dn))In.call(dn,Te)&&bn(Re,Te,dn[Te]);return Re},Xn=(Re,dn)=>ge(Re,Fe(dn)),$t=(Re,dn)=>{var Te={};for(var Ht in Re)Ie.call(Re,Ht)&&dn.indexOf(Ht)<0&&(Te[Ht]=Re[Ht]);if(Re!=null&&He)for(var Ht of He(Re))dn.indexOf(Ht)<0&&In.call(Re,Ht)&&(Te[Ht]=Re[Ht]);return Te},jt=(Re,dn,Te)=>new Promise((Ht,At)=>{var Ct=kt=>{try{Xt(Te.next(kt))}catch(ee){At(ee)}},Tt=kt=>{try{Xt(Te.throw(kt))}catch(ee){At(ee)}},Xt=kt=>kt.done?Ht(kt.value):Promise.resolve(kt.value).then(Ct,Tt);Xt((Te=Te.apply(Re,dn)).next())});function Ee(Re){return/^\d+$/.test(Re)?`${Re}px`:Re}function sn(){}let Tn=!1;const Le={"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 gn(Re=[]){let dn=Re;if(Array.isArray(Re)){for(let Te=0;Te<Re.length;Te++){let Ht=Le[Re[Te]];if(Ht)return Ht}return dn[0]}return Le[dn]||dn}let $e=null;const Fn=()=>jt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Re){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Re)}});var ke=Re=>{var dn=Re,{width:Te="100%",height:Ht="100%",value:At,language:Ct="javascript",style:Tt={},options:Xt={},overrideServices:kt={},theme:ee="vs-dark",onEditBlur:rn,isCopy:on=!1,onSave:Un,autoHeight:en=!1,forbidCopy:Mn=!1,onChange:Ke=sn,editorDidMount:jn=sn,onFocus:ni=sn,onBreakPoint:Oi=sn,breakPointValue:$n=[],filename:Ai="educoder.txt",errorLine:Ki,errorContent:ii="",highlightLine:mi,openBreakPoint:di=!1,placeholder:gi="",showMiniMap:hr=!0}=dn,Or=$t(dn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const sr=(0,Lt.useRef)(),Di=(0,Lt.useRef)({}),jr=(0,Lt.useRef)(),ao=(0,Lt.useRef)(),fa=(0,Lt.useRef)([]),_o=(0,Lt.useRef)(!1),ta=(0,Lt.useRef)(),Ga=(0,Lt.useRef)(),zo=(0,Lt.useRef)(!1),[gr,vn]=(0,Lt.useState)(!1);function wt(){let ze;return sr.current&&(ze=new ie.Z(yn=>{for(let Ni of yn)(Ni.target.offsetHeight>0||Ni.target.offsetWidth>0)&&Di.current.instance.layout()}),ze.observe(sr.current)),ze}function Ve(){zt.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const Ye=()=>{let ze=Di.current.instance;if(At!=null&&ze&&gr){const yn=ze.getModel();yn&&At!==yn.getValue()&&(Tn=!0,yn.setValue(At),ze.layout(),Tn=!1)}};(0,Lt.useEffect)(()=>{const ze=_t.Z.subscribe("formatDocument",yn=>{var Ni;let Yi=Di.current.instance;(Ni=Yi==null?void 0:Yi.getAction)==null||Ni.call(Yi,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{Ke(yn)},ze},[]),(0,Lt.useEffect)(()=>{var ze;let yn=Di.current.instance;ao.current&&clearTimeout(ao.current),ao.current=setTimeout(()=>{Ye()},500),At&&(At!=null&&At.length)&&((ze=yn==null?void 0:yn.updateOptions)==null||ze.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(At.split(/\r\n|\r|\n/g).length))+3,5)}))},[At,gr,Di.current]),(0,Lt.useEffect)(()=>{if(Ki&&Di.current&&Di.current.instance){let yn=Di.current.instance;yn.changeViewZones(function(Ni){var Yi=document.createElement("div");Yi.style.padding="10px 20px",Yi.style.width="calc(100% - 20px)",Yi.className="my-error-line-wrp",Yi.innerHTML=ii,Ni.addZone({afterLineNumber:Ki||11,heightInLines:3,domNode:Yi})});var ze={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}};yn.addOverlayWidget(ze),yn.revealPositionInCenter({lineNumber:20,column:1})}},[Ki,Di.current,gr]);const xn=(ze="",yn)=>{if(!ze||ze.trim()==="")return!0;const Yi=Di.current.instance.getModel().getLineTokens(yn);let Dn=!1;for(let De=0;De<2;De++)Yi.getStandardTokenType(De)===1&&(Dn=!0);return Dn};(0,Lt.useEffect)(()=>{var ze;const yn=(ze=Di.current)==null?void 0:ze.instance;if(yn&&gr&&Mn){const Ni=yn.onDidBlurEditorWidget(()=>{zo.current=!1}),Yi=yn.onDidFocusEditorText(()=>{zo.current=!0});return()=>{Ni.dispose(),Yi.dispose()}}},[Di.current,gr,Mn]),(0,Lt.useEffect)(()=>{var ze;if((ze=Di.current)!=null&&ze.instance&&gr&&di){let yn=Di.current.instance,Ni=yn.getModel();if(!Ni)return;(()=>{var ki;let Bi=[],Hi=[];const to=Ni.getAllDecorations();for(let ti of to)ti.options.className==="highlighted-line"&&(Bi.push((ki=ti==null?void 0:ti.range)==null?void 0:ki.startLineNumber),Hi.push(ti==null?void 0:ti.id));if(mi===Bi[0])return;Ni.deltaDecorations(Hi,[]);const Yr=Ni.getLineCount();mi&&mi<=Yr&&(yn.deltaDecorations([],[{range:new $e.Range(mi,1,mi,Ni.getLineMaxColumn(mi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(mi))})();const Dn=(ki=!1)=>{var Bi;let Hi=[],to=[];const Yr=Ni.getAllDecorations();for(let ti of Yr)ti.options.linesDecorationsClassName==="breakpoints-select"&&(Hi.push((Bi=ti==null?void 0:ti.range)==null?void 0:Bi.startLineNumber),to.push(ti==null?void 0:ti.id));if(ki)return{lines:Hi,ids:to};Oi(Hi)},De=ki=>jt(void 0,null,function*(){let Bi={range:new $e.Range(ki,1,ki,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ni.deltaDecorations([],[Bi]),Dn()}),xi=ki=>jt(void 0,null,function*(){let Bi=[];const Hi=yn.getLineDecorations(ki);for(let to of Hi)to.options.linesDecorationsClassName==="breakpoints-select"&&Bi.push(to.id);yield Ni.deltaDecorations(Bi,[]),Dn()}),Ui=ki=>{let Bi=yn.getLineDecorations(ki);for(let Hi of Bi)if(Hi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,re.isEqual)($n,Dn(!0).lines)){Ni.deltaDecorations(Dn(!0).ids,[]);const ki=$n.map(Bi=>({range:new $e.Range(Bi,1,Bi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ni.deltaDecorations([],ki)}const Tr=yn.onDidChangeModelContent(ki=>{let Bi=yn.getPosition();if(Bi){let Hi=Bi.lineNumber;clearTimeout(Ga.current),Ga.current=setTimeout(()=>{xn(Ni.getLineContent(Hi),Hi)?xi(Hi):Ui(Hi)?(xi(Hi),De(Hi)):Dn()},100)}}),Cn=yn.onMouseDown(ki=>{var Bi,Hi,to;if(ki.target.detail&&((to=(Hi=(Bi=ki.target)==null?void 0:Bi.element)==null?void 0:Hi.className)!=null&&to.includes("line-numbers"))){let Yr=ki.target.position.lineNumber;if(xn(Ni.getLineContent(Yr),Yr))return;Ui(Yr)?xi(Yr):De(Yr)}}),Ri=ki=>{let Bi={range:new $e.Range(ki,1,ki,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};fa.current=yn.deltaDecorations(fa.current,[Bi])},ro=()=>{fa.current=yn.deltaDecorations(fa.current,[])},Sa=yn.onMouseMove(ki=>{var Bi,Hi,to;if(ro(),ki.target.detail&&((to=(Hi=(Bi=ki.target)==null?void 0:Bi.element)==null?void 0:Hi.className)!=null&&to.includes("line-numbers"))){let Yr=ki.target.position.lineNumber;if(xn(Ni.getLineContent(Yr),Yr))return;Ri(Yr)}}),bo=yn.onMouseLeave(()=>{ro()});return()=>{Tr.dispose(),Cn.dispose(),Sa.dispose(),bo.dispose()}}},[Di.current,gr,$n,mi,di,Ct]),(0,Lt.useEffect)(()=>{var ze;(ze=Di.current)!=null&&ze.instance&&di&&Di.current.instance.setPosition({lineNumber:0,column:0})},[mi]);function fn(){let ze=Di.current.instance;if(ze){const yn=ze.getSelection(),Ni=Di.current.pastePos||{},Yi=new $e.Range(Ni.startLineNumber||yn.endLineNumber,Ni.startColumn||yn.endColumn,Ni.endLineNumber||yn.endLineNumber,Ni.endColumn||yn.endColumn);setTimeout(()=>{ze.executeEdits("",[{range:Yi,text:""}])},300)}}function ln(ze){(window.navigator.platform.match("Mac")?ze.metaKey:ze.ctrlKey)&&ze.keyCode==83&&(ze.preventDefault(),Un())}const Yn=()=>{if(en&&Di.current.instance){const ze=Di.current.instance.getContentHeight();ui(ze<Ht?Ht:ze)}else ui(Ht)};function Li(ze){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ze.dispatchEvent(yn)}const Ge=ze=>{if(!zo.current)return;const{keyCode:yn,ctrlKey:Ni,metaKey:Yi,target:Dn,type:De}=ze;return(De==="paste"||(yn===67||yn===86)&&(Yi||Ni))&&Dn.nodeName==="TEXTAREA"&&(Ve(),ze.preventDefault()),!1};function je(ze,yn){var Ni=window.URL||window.webkitURL||window,Yi=new Blob([yn]),Dn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Dn.href=Ni.createObjectURL(Yi),Dn.download=ze,Li(Dn)}(0,Lt.useEffect)(()=>{Yn()},[Yn]),(0,Lt.useEffect)(()=>{sr.current&&!gr&&Promise.all([Ft.e(5552),Ft.e(9651)]).then(Ft.bind(Ft,55826)).then(ze=>{try{$e=ze,Di.current.instance=$e.editor.create(sr.current,{value:At,language:gn(Ct),theme:ee,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:hr||!1}},kt);const yn=Di.current.instance;let Dn=[...Mt.BH._menuItems].find(Tr=>Tr[0]._debugName=="EditorContext")[1],De=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xi=(Tr,Cn)=>{var Ri,ro;let Sa=Tr._first;do Cn.includes((ro=(Ri=Sa.element)==null?void 0:Ri.command)==null?void 0:ro.id)&&Tr._remove(Sa);while(Sa=Sa.next)};if(jn(yn,$e),setTimeout(()=>{Yn(),Di.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{je(Ai||"educoder.txt",yn.getValue())}})},500),Di.current.subscription=yn.onDidChangeModelContent(Tr=>{_o.current?clearTimeout(ta.current):(Yn(),Ke(yn.getValue(),Tr)),ta.current=setTimeout(()=>{_o.current=!1},500)}),window.Monaco||Nt($e,gn(Ct)),Mn&&(xi(Dn,De),sr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ge),window.removeEventListener("paste",Ge),window.addEventListener("keydown",Ge),window.addEventListener("paste",Ge)),window.Monaco=$e,rn&&yn.onDidBlurEditorWidget(()=>{rn(yn.getValue())}),ni&&yn.onDidFocusEditorText(()=>{Mn&&Fn(),ni(yn.getValue())}),Mn){Fn();try{yn.onDidPaste(Tr=>{const Cn=yn.getSelection(),Ri=Di.current.pastePos||{},ro=new $e.Range(Ri.startLineNumber||Cn.endLineNumber,Ri.startColumn||Cn.endColumn,Ri.endLineNumber||Cn.endLineNumber,Ri.endColumn||Cn.endColumn);yn.executeEdits("",[{range:Tr.range,text:""}])})}catch(Tr){}}let Ui=wt();return gi&&typeof gi=="string"&&new St(gi,yn,$e),vn(!0),()=>{const Tr=Di.current.instance;Tr.dispose();const Cn=Tr.getModel();Cn&&Cn.dispose(),Di.current.subscription&&Di.current.subscription.dispose(),Ui.unobserve(sr.current)}}catch(yn){}})},[]),(0,Lt.useEffect)(()=>{if(Di.current.instance&&gr)return document.addEventListener("keydown",ln,!1),()=>{document.removeEventListener("keydown",ln)}},[Un,gr]),(0,Lt.useEffect)(()=>{let ze=Di.current.instance;if(ze&&gr){let yn=gn(Ct);$e.editor.setModelLanguage(ze.getModel(),yn)}},[Ct,gr]),(0,Lt.useEffect)(()=>{Di.current.instance&&gr&&$e.editor.setTheme(ee)},[ee,gr]),(0,Lt.useEffect)(()=>{let ze=Di.current.instance;jr.current=Xt,ze&&gr&&(ze.updateOptions(cn({},Xt)),setTimeout(()=>{ze.getModel().updateOptions(cn({},Xt))},200))},[JSON.stringify(Xt),gr]),(0,Lt.useEffect)(()=>{let ze=Di.current.instance;ze&&gr&&ze.layout()},[Te,Ht,gr]);const[we,Ze]=(0,Lt.useState)(Ee(Te)),[ai,ui]=(0,Lt.useState)(Ee(Ht)),qn=Xn(cn({},Tt),{width:we,height:ai,position:"relative"});return Lt.createElement("div",{className:"my-monaco-editor",ref:sr,style:qn},on&&Lt.createElement(Zt.CopyToClipboard,{text:At,onCopy:()=>zt.ZP.success("\u590D\u5236\u6210\u529F")},Lt.createElement(qt.Z,{title:"\u590D\u5236\u4EE3\u7801"},Lt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Lt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function fe({width:Re="100%",height:dn="100%",original:Te,modified:Ht,language:At,options:Ct={}}){const Tt=(0,Lt.useRef)(),[Xt,kt]=(0,Lt.useState)(null);function ee(en){let Mn;return Tt.current&&(Mn=new ie.Z(Ke=>{for(let jn of Ke)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&en.layout()}),Mn.observe(Tt.current)),Mn}(0,Lt.useEffect)(()=>(Tt.current&&Promise.all([Ft.e(5552),Ft.e(9404)]).then(Ft.bind(Ft,50048)).then(en=>{$e=en;const Mn=$e.editor.createDiffEditor(Tt.current,Xn(cn({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},Ct),{wordWrap:!0}));kt(Mn);let Ke=ee(Mn);return()=>{Mn.dispose();const jn=Mn.getModel();jn&&jn.dispose(),Ke.unobserve(Tt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Lt.useEffect)(()=>{Xt&&Xt.setModel({original:$e.editor.createModel(Te,At),modified:$e.editor.createModel(Ht,At)})},[Te,Ht,At,Xt]);const rn=Ee(Re),on=Ee(dn),Un={width:rn,height:on};return Lt.createElement("div",{className:"my-diff-editor",ref:Tt,style:Un})}},5476:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Je}});var Lt={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"},ie=Ft(74330),Be=Ft(83062),Ne=Ft(94184),Ae=Ft.n(Ne),Dt=Ft(28706),Jt=Ft(26194),ue=Ft(52262),ce=Ft(67294),Je=({className:de,dataSource:It=[],col:Nt=4,right:nt,bottom:et=23,precision:ht=0,wrapWidth:lt=1200,trackEventItems:gt,loading:mt,onRemove:St=()=>{},isCurrent:Mt=!0,showAlias:zt=!1})=>{const qt=Math.floor((lt-(Nt-1)*nt)/Nt),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 ce.createElement(ie.Z,{spinning:mt},ce.createElement("div",{className:Ae()(Lt.list,de)},!!(It!=null&&It.length)&&(It==null?void 0:It.map((_t,Zt)=>{var Pe;const{name:ge,id:Fe,identifier:He,featured:Ie,school_name:In,image_url:bn,excellent:cn,is_plan:Xn}=_t;return ce.createElement("div",{key:Fe,className:Lt.wrap,style:{width:qt,marginRight:(1+Zt)%Nt===0?0:nt+ht,marginBottom:et}},ce.createElement("a",{className:Lt.li,onClick:$t=>{$t.preventDefault(),$t.stopPropagation(),gt&&(0,Dt.L9)([gt]),(0,Dt.xg)(`/paths/${He}`)}},ce.createElement("div",{className:Lt.img},ce.createElement("img",{className:Lt.cover,src:`${bn}`}),Mt&&(0,ue.bg)()&&(_t==null?void 0:_t.studying)&&ce.createElement("div",{className:`${Lt.movebq} user-path-items`,onClick:$t=>{$t.stopPropagation(),St(_t)}},ce.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ce.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Pe=_t==null?void 0:_t.subject_tags)==null?void 0:Pe.map(($t,jt)=>{var Ee,sn;if(jt===0){const Le=(Ee=re.find(gn=>gn.name==$t))==null?void 0:Ee.swimg;return ce.createElement("img",{className:Lt.sign,src:Le,style:{left:"-4px"}})}const Tn=(sn=re.find(Le=>Le.name==$t))==null?void 0:sn.ptimg;return ce.createElement("img",{className:Lt.sign,src:Tn,style:{left:`${48+52*(jt-1)+2*jt}px`}})}),ce.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(_t==null?void 0:_t.excellent)&&ce.createElement("div",{className:Lt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ce.createElement("div",{className:Lt.name},ce.createElement(Be.Z,{title:zt&&(_t!=null&&_t.excellent_alias_name)?ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ge}`,ce.createElement("br",null),ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${_t==null?void 0:_t.excellent_alias_name}`)):ge},ce.createElement("span",{className:Lt.e},zt&&(_t==null?void 0:_t.excellent_alias_name)||ge))),ce.createElement(Be.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${In}`},ce.createElement("div",{className:Lt.unit},ce.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),In)),ce.createElement("div",{className:Lt.tags},ce.createElement("div",null,ce.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ce.createElement("span",null,_t.stages_count))),ce.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ce.createElement("span",null,ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ce.createElement("span",null,_t.members_count)))))))})),!It.length&&ce.createElement(Jt.Z,null)))}},30001:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{jL:function(){return Ae},w9:function(){return Ee},QD:function(){return Ki},cQ:function(){return bn.Z},op:function(){return Ke},O5:function(){return Ye},_b:function(){return Or},t7:function(){return lt},Gi:function(){return Fn},YG:function(){return gn},qp:function(){return Je},vr:function(){return di},qE:function(){return Oi},Je:function(){return St},wb:function(){return In},cq:function(){return Ht},tp:function(){return Nt}});var Lt=Ft(67294),ie={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"},Be="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Tz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ae=({dataSource:xn=[],img:fn,imgWidth:ln=346,title:Yn,sunTitle:Li,bannerExtraContent:Ge})=>Lt.createElement("div",{className:ie.banner},Lt.createElement("div",{className:ie.content},Lt.createElement("aside",null,Lt.createElement("p",null,Lt.createElement("b",null,Yn),Lt.createElement("span",null,Li)),xn.length>0&&Lt.createElement("div",{className:ie.btns},xn.map((je,we)=>Lt.createElement("div",{key:we,onClick:je.click},je.name,je.sign?Lt.createElement("img",{src:Be,width:39}):null))),Ge),fn&&Lt.createElement("img",{style:{marginTop:33,marginRight:38},src:fn,width:ln}))),Dt={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"},Jt=Ft(94184),ue=Ft.n(Jt),ce=Ft(96486),Je=({dataSource:xn=[],value:fn,onChange:ln,onTitleChange:Yn,className:Li,title:Ge,titleWidth:je=41,style:we={},fontColor:Ze="#6A7283",showCount:ai})=>{const[ui,qn]=(0,Lt.useState)(0),[ze,yn]=(0,Lt.useState)(!1),Ni=(0,Lt.useRef)(null),Yi=(0,Lt.useRef)(null);return(0,Lt.useEffect)(()=>{var Dn;xn.length!==0&&(((Dn=Ni==null?void 0:Ni.current)==null?void 0:Dn.clientHeight)>97?qn(1):qn(0)),xn.length===0&&qn(0),yn(!1)},[xn]),Lt.createElement("div",{className:ue()(Dt.row,Li),style:we},Lt.createElement("div",{onClick:(0,ce.throttle)(()=>Yn==null?void 0:Yn(),2e3),style:{width:je,marginTop:ze?12:4},className:`${Dt.title} ${Yn?"current":""}`},Ge),Lt.createElement("div",{className:ze?`${Dt.tagsWrap} ${Dt.tagsBorderWrap}`:Dt.tagsWrap},Lt.createElement("div",{className:Dt.bar,ref:Yi,style:ui>0?{height:ui===1?97:"auto",overflow:ui===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Lt.createElement("div",{className:Dt.tag,ref:Ni},xn==null?void 0:xn.map(Dn=>Lt.createElement("span",{onClick:()=>ln(Dn.id),key:Dn.id,style:{color:Ze},className:fn===Dn.id?Dt.active:""},Lt.createElement("span",{title:Dn.name,className:Dt.name},Dn.name),!!ai&&Lt.createElement("span",{className:Dt.num},Dn.count))))),!!ui&&Lt.createElement(Lt.Fragment,null,ui===1?Lt.createElement("div",{onClick:()=>{var Dn;qn(2),((Dn=Ni==null?void 0:Ni.current)==null?void 0:Dn.clientHeight)>245?yn(!0):yn(!1)},className:Dt.action},"\u5C55\u5F00",Lt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Lt.createElement("div",{onClick:()=>{Yi.current.scrollTop=0,qn(1),yn(!1)},className:Dt.action},"\u6536\u8D77",Lt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},de={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"},Nt=({dataSource:xn=[],value:fn,onChange:ln,className:Yn,style:Li={}})=>Lt.createElement("div",{style:Li,className:ue()(de.tabs,Yn)},xn.map(Ge=>Lt.createElement("span",{onClick:()=>ln(Ge.id),className:fn===Ge.id?de.active:"",key:Ge.id},Ge.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=Ft(28802),lt=({dataSource:xn=[],value:fn="",onChange:ln,onInputChange:Yn=()=>{},className:Li,style:Ge={},placeholder:je,allowClear:we=!1})=>{var Ze;const[ai,ui]=(0,Lt.useState)(""),[qn,ze]=(0,Lt.useState)("");(0,Lt.useEffect)(()=>{var Yi;let Dn=fn;(Yi=JSON.stringify(fn))!=null&&Yi.includes("{")&&(ui(fn.id),Dn=fn.value||"");try{ze(decodeURIComponent(Dn||""))}catch(De){ze(decodeURIComponent(Dn||""))}},[fn]);const yn=()=>{ln(encodeURIComponent(qn),ai||null)},Ni=Yi=>{Yi!==ai&&(ui(Yi),ln(encodeURIComponent(qn),Yi))};return Lt.createElement("div",{className:ue()(nt.input,Li),style:Ge},!!xn.length&&Lt.createElement("div",{className:nt.dropdown},Lt.createElement("div",{className:nt.text},(Ze=xn.find(Yi=>Yi.id===ai))==null?void 0:Ze.name,Lt.createElement("i",{className:"iconfont icon-zhankai4"}),Lt.createElement("b",{className:nt.b1}),Lt.createElement("b",{className:nt.b2})),Lt.createElement("div",{className:nt.menu},xn.map((Yi,Dn)=>Lt.createElement("div",{key:Dn,onClick:()=>Ni(Yi.id)},Yi.name)))),Lt.createElement(et.default,{onPressEnter:yn,value:qn,onChange:Yi=>{ze(Yi.target.value),Yn(encodeURIComponent(Yi.target.value),ai||null)},bordered:!1,placeholder:je}),Lt.createElement("i",{onClick:yn,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"},St=({value:xn,onChange:fn,className:ln,total:Yn,pageSize:Li,style:Ge={}})=>{const je=xn<2,we=xn>=Math.ceil(Yn/Li);return Yn<=Li?Lt.createElement(Lt.Fragment,null):Lt.createElement("div",{className:ue()(gt.quickPager,ln),style:Ge},Lt.createElement("div",{onClick:()=>{je||fn(xn-1,"prev")},className:je?gt.disabled:""},"\u4E0A\u4E00\u9875"),Lt.createElement("div",{onClick:()=>{we||fn(xn+1,"next")},className:we?gt.disabled:""},"\u4E0B\u4E00\u9875"))},Mt={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=Ft(74330),qt=Ft(83062),re=Ft(57097),_t=Ft(11320),Zt=Ft(28706),Pe=Ft(96908),ge=Ft(57177),Fe=Ft(81378),He=Ft(26194),In=({className:xn,dataSource:fn=[],col:ln=4,right:Yn,bottom:Li=23,precision:Ge=0,wrapWidth:je=1200,trackEventItems:we,loading:Ze})=>{const ai=Math.floor((je-(ln-1)*Yn)/ln);return Lt.createElement(zt.Z,{spinning:Ze},Lt.createElement("div",{className:ue()(Mt.list,xn)},!!fn.length&&fn.map((ui,qn)=>{const{name:ze,id:yn,identifier:Ni,power:Yi,cover_image_id:Dn,pic:De}=ui;return Lt.createElement("div",{className:Mt.wrap,key:yn,style:{width:ai,marginRight:(1+qn)%ln===0?0:Yn+Ge,marginBottom:Li}},Lt.createElement("a",{target:"_blank",href:`/shixuns/${Ni}/challenges`,className:Mt.li,onClick:xi=>{xi.preventDefault(),we&&(0,Zt.L9)([we]),Yi&&(0,Zt.xg)(`/shixuns/${Ni}/challenges`)}},Lt.createElement("div",{className:Mt.img},Lt.createElement("img",{className:Mt.cover,src:`${De}`}),ui.is_jupyter&&Lt.createElement("img",{className:Mt.sign,src:Pe}),ui.is_jupyter_lab&&Lt.createElement("img",{className:Mt.sign,src:ge}),ui.is_unity_3d&&Lt.createElement("img",{className:Mt.sign,src:Fe})),Lt.createElement("div",{className:Mt.name},Lt.createElement(qt.Z,{title:ze||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Lt.createElement("span",{className:Mt.e},ze||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Lt.createElement("div",{className:Mt.tags},Lt.createElement(qt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Lt.createElement("span",null,ui.challenges_count))),!!ui.myshixuns_count&&Lt.createElement(qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Lt.createElement("span",null,ui.myshixuns_count))),Lt.createElement(qt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Lt.createElement("span",null,Lt.createElement("span",null,ui.level))),Lt.createElement("div",{className:Mt.rate},Lt.createElement(re.Z,{allowHalf:!0,disabled:!0,defaultValue:ui.score_info}),Lt.createElement("span",null,"\xA0",ui.score_info?`${ui.score_info}\u5206`:"5\u5206")))),!Yi&&Lt.createElement("div",{className:Mt.lockWrap},Lt.createElement("img",{src:`${_t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Lt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!fn.length&&Lt.createElement(He.Z,null)))},bn=Ft(5476),cn={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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4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",$t=Ft(67294),Ee=({className:xn,dataSource:fn=[],col:ln=4,right:Yn,bottom:Li=23,precision:Ge=0,wrapWidth:je=1200,trackEventItems:we,loading:Ze,handleVery:ai=()=>!0})=>{const ui=Math.floor((je-(ln-1)*Yn)/ln);return $t.createElement(zt.Z,{spinning:Ze},$t.createElement("div",{className:ue()(cn.list,xn)},!!fn.length&&fn.map((qn,ze)=>{const{subject_identifier:yn,id:Ni,identifier:Yi,power:Dn}=qn,De=qn.is_public!=0&&qn.is_public;return $t.createElement("div",{className:cn.wrap,key:Ni,style:{width:ui,marginRight:(1+ze)%ln===0?0:Yn+Ge,marginBottom:Li}},$t.createElement("a",{className:cn.li,onClick:xi=>{xi.preventDefault(),ai(qn==null?void 0:qn.first_category_url)&&(we&&(0,Zt.L9)([we]),(0,Zt.xg)(qn.first_category_url))}},$t.createElement("div",{className:cn.top},$t.createElement(qt.Z,{title:qn.name},$t.createElement("div",{className:cn.name},qn.name)),$t.createElement("img",{className:cn.img,src:_t.Z.IMG_SERVER+"/images/"+qn.avatar_url}),$t.createElement("div",{className:cn.text,title:qn.creator},qn.creator),yn&&$t.createElement("div",{className:cn.btns},$t.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),$t.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),De&&$t.createElement("div",{className:cn.sign},"\u516C\u5F00")),$t.createElement("div",{className:cn.bottom},qn.visits>0&&$t.createElement(qt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-liulanyan"}),$t.createElement("span",null,qn.visits))),qn.course_members_count>0&&$t.createElement(qt.Z,{title:"\u6210\u5458",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-chengyuan"}),qn.course_members_count)),qn.tasks_count>0&&$t.createElement(qt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-zuoye"}),qn.tasks_count)),qn.is_end?$t.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):$t.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!qn.is_accessible&&$t.createElement("div",{className:cn.lockWrap},$t.createElement("img",{src:`${_t.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")))}),!fn.length&&$t.createElement(He.Z,null)))},sn={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"},Tn=Ft(35973),gn=({dataSource:xn=[],value:fn,onChange:ln,className:Yn,style:Li={},tabBarExtraContent:Ge})=>Lt.createElement("div",{className:ue()(sn.tabs,Yn),style:Li},Lt.createElement("div",{className:sn.tabsWrap},xn.map((je,we)=>!(je!=null&&je.hide)&&Lt.createElement("aside",{className:sn.tab,onClick:()=>{ln(je.id),je.link&&Tn.history.push(je.link)},key:we},Lt.createElement("div",{className:fn===je.id?sn.active:""},je.name),(je==null?void 0:je.resetCount)==null&&(je==null?void 0:je.total)!==void 0&&Lt.createElement("span",null,"\uFF08",je==null?void 0:je.total,"\uFF09"),(je==null?void 0:je.resetCount)!==void 0&&(je==null?void 0:je.total)!==void 0&&Lt.createElement(qt.Z,{title:(je==null?void 0:je.tip)!=null?je==null?void 0:je.tip:""},Lt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Lt.createElement("span",{style:{color:"#000"}},je==null?void 0:je.resetCount),"/",Lt.createElement("span",null,je==null?void 0:je.total),"\uFF09"))))),Lt.createElement("div",{className:sn.tabBar},Ge)),Fn=({className:xn,style:fn={},children:ln})=>Lt.createElement("div",{className:ue()(xn),style:fn},ln),ke={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"},fe=Ft(85418),Re=Ft(50136);const dn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ht=({sortValue:xn,dropValue:fn,className:ln,onSort:Yn,onDrop:Li,dataSource:Ge=dn})=>{var je;return Lt.createElement("div",{className:ue()(ke.orderWrap,ln)},Lt.createElement(fe.Z,{dropdownRender:()=>Lt.createElement(Re.default,null,Ge.map((we,Ze)=>Lt.createElement(Re.default.Item,{key:Ze,onClick:()=>Li(we.id)},we.name)))},Lt.createElement("span",{className:ke.orderTextWrap},(je=Ge.find(we=>fn===we.id))==null?void 0:je.name)),Lt.createElement("span",{className:ke.orderIconWrap},Lt.createElement("span",{className:ke.orderAsc},Lt.createElement("i",{className:xn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ke.cursorPointer} ${ke.active}`:`iconfont icon-sanjiaoxing-up font12 ${ke.cursorPointer}`,onClick:()=>Yn(xn==="asc"?"desc":"asc")})),Lt.createElement("span",{className:ke.orderDesc},Lt.createElement("i",{className:xn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ke.cursorPointer} ${ke.active}`:`iconfont icon-sanjiaoxing-down font12 ${ke.cursorPointer}`,onClick:()=>Yn(xn==="asc"?"desc":"asc")}))))},At={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"},Ct=Ft(85804),Tt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,rn=(xn,fn,ln)=>fn in xn?Tt(xn,fn,{enumerable:!0,configurable:!0,writable:!0,value:ln}):xn[fn]=ln,on=(xn,fn)=>{for(var ln in fn||(fn={}))kt.call(fn,ln)&&rn(xn,ln,fn[ln]);if(Xt)for(var ln of Xt(fn))ee.call(fn,ln)&&rn(xn,ln,fn[ln]);return xn},Un=(xn,fn)=>{var ln={};for(var Yn in xn)kt.call(xn,Yn)&&fn.indexOf(Yn)<0&&(ln[Yn]=xn[Yn]);if(xn!=null&&Xt)for(var Yn of Xt(xn))fn.indexOf(Yn)<0&&ee.call(xn,Yn)&&(ln[Yn]=xn[Yn]);return ln},en=(xn,fn,ln)=>new Promise((Yn,Li)=>{var Ge=Ze=>{try{we(ln.next(Ze))}catch(ai){Li(ai)}},je=Ze=>{try{we(ln.throw(Ze))}catch(ai){Li(ai)}},we=Ze=>Ze.done?Yn(Ze.value):Promise.resolve(Ze.value).then(Ge,je);we((ln=ln.apply(xn,fn)).next())}),Ke=xn=>{var fn=xn,{className:ln,style:Yn,children:Li,loading:Ge=!1,openLoading:je,onClick:we=()=>{},size:Ze="middle",shape:ai="round"}=fn,ui=Un(fn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[qn,ze]=(0,Lt.useState)(!1);return Lt.createElement(Ct.ZP,on({onClick:(0,ce.throttle)(yn=>en(void 0,null,function*(){je&&ze(!0);try{yield we(yn)}catch(Ni){console.log("error",Ni)}je&&ze(!1)}),2e3,{leading:!0,trailing:!1}),className:ue()(At.btn,At[`${Ze}-${ai}`],ln),style:Yn,size:Ze,shape:ai,loading:qn||Ge},ui),Li)},jn={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"},Oi=({className:xn,style:fn,children:ln=null,onClick:Yn,title:Li})=>Lt.createElement("div",{className:ue()(jn.head,xn),style:fn},Lt.createElement("span",{className:"primary-hover",onClick:Yn},Lt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Lt.createElement("b",{title:Li},Li),Lt.createElement("div",{className:jn.node},ln)),$n={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"},Ki=({confirmShow:xn=!0,confirmTitle:fn,confirmClick:ln,cancelShow:Yn=!0,cancelTitle:Li,cancelClick:Ge,className:je,style:we,confirmLoading:Ze=!1})=>Lt.createElement("div",{className:ue()($n.btns,je),style:we},xn&&Lt.createElement(Ct.ZP,{loading:Ze,onClick:ln,type:"primary",className:$n.confirm},fn),Yn&&Lt.createElement(Ct.ZP,{onClick:Ge,className:$n.cancel},Li)),ii={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"},di=({className:xn,style:fn={},LeftContent:ln,children:Yn,RightContent:Li})=>Lt.createElement("div",{className:ue()(ii.fixedBottom,xn),style:fn},Lt.createElement("div",{className:ii.wrap},Lt.createElement("div",{className:ii.left},ln),Lt.createElement("div",{className:ii.center},Yn),Lt.createElement("div",{className:ii.right},Li))),gi={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"},Or=({className:xn,style:fn={},dataSource:ln=[]})=>Lt.createElement("div",{className:ue()(gi.crumbs,xn),style:fn},ln.map((Yn,Li)=>Li<ln.length-1?Lt.createElement(Lt.Fragment,{key:Li},Yn.path||Yn.onClick?Lt.createElement("span",{className:gi.hover,onClick:Yn!=null&&Yn.onClick?Yn.onClick:()=>Tn.history.push(Yn.path)},Yn.name):Lt.createElement("span",null,Yn.name),Lt.createElement("span",null,"\xA0",">","\xA0")):Lt.createElement("span",{key:Li,style:{color:"#5F6368"}},Yn.name))),sr=Ft(55054),Di=Object.defineProperty,jr=Object.defineProperties,ao=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,Ga=(xn,fn,ln)=>fn in xn?Di(xn,fn,{enumerable:!0,configurable:!0,writable:!0,value:ln}):xn[fn]=ln,zo=(xn,fn)=>{for(var ln in fn||(fn={}))_o.call(fn,ln)&&Ga(xn,ln,fn[ln]);if(fa)for(var ln of fa(fn))ta.call(fn,ln)&&Ga(xn,ln,fn[ln]);return xn},gr=(xn,fn)=>jr(xn,ao(fn)),vn=(xn,fn)=>{var ln={};for(var Yn in xn)_o.call(xn,Yn)&&fn.indexOf(Yn)<0&&(ln[Yn]=xn[Yn]);if(xn!=null&&fa)for(var Yn of fa(xn))fn.indexOf(Yn)<0&&ta.call(xn,Yn)&&(ln[Yn]=xn[Yn]);return ln};const{Countdown:wt}=sr.default;var Ye=xn=>{var fn=xn,{onChange:ln}=fn,Yn=vn(fn,["onChange"]);const[Li,Ge]=(0,Lt.useState)(null);(0,Lt.useEffect)(()=>{typeof Li=="number"&&Li>=0&&ln(Li)},[Li]);const je=we=>{const Ze=Math.floor(we/1e3);Ge(Ze)};return Lt.createElement(wt,gr(zo({},Yn),{onChange:je}))}},99914:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return ie}});var Lt=Ft(67294);function ie(Be,Ne){const Ae=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{Ae.current=Be}),(0,Lt.useEffect)(()=>{function Dt(){Ae.current()}if(Ne!==null){let Jt=setInterval(Dt,Ne);return()=>clearInterval(Jt)}},[Ne])}},17998:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Q8:function(){return jt},d0:function(){return Ee},w6:function(){return $t}});var Lt=Ft(67294),ie=Ft(18046),Be=Ft(88044),Ne=Ft(2453),Ae=Ft(62844),Dt=Ft(98813),Jt=Ft(71230),ue=Ft(15746),ce=Ft(83062),ye=Ft(84567),Je=Ft(85804),de=Ft(94699),It=Ft.n(de),Nt=Ft(52262),nt=Ft(33170),et=Ft(96486),ht=Ft.n(et),lt=Ft(28706),gt=Ft(39886),mt=Ft(35973),St=Ft(39717),Mt=Ft(78207),zt=Ft(92882),qt=Ft(96332),re=Ft(93686),_t=Ft(67294),Zt=Object.defineProperty,Pe=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,In=($e,Fn,ke)=>Fn in $e?Zt($e,Fn,{enumerable:!0,configurable:!0,writable:!0,value:ke}):$e[Fn]=ke,bn=($e,Fn)=>{for(var ke in Fn||(Fn={}))He.call(Fn,ke)&&In($e,ke,Fn[ke]);if(Fe)for(var ke of Fe(Fn))Ie.call(Fn,ke)&&In($e,ke,Fn[ke]);return $e},cn=($e,Fn)=>Pe($e,ge(Fn)),Xn=($e,Fn,ke)=>new Promise((fe,Re)=>{var dn=At=>{try{Ht(ke.next(At))}catch(Ct){Re(Ct)}},Te=At=>{try{Ht(ke.throw(At))}catch(Ct){Re(Ct)}},Ht=At=>At.done?fe(At.value):Promise.resolve(At.value).then(dn,Te);Ht((ke=ke.apply($e,Fn)).next())});function $t($e,Fn){const ke=[];for(let fe=$e;fe<Fn;fe++)ke.push(fe);return ke}const jt=($e,Fn,ke)=>{const fe=$e<It()().startOf("day"),Re=$e>It()(Fn).endOf("day"),dn=$e<It()(ke).startOf("day");return Fn?ke?It()()<=It()(ke)?dn||Re:fe||Re:$e&&fe||Re:ke&&It()()<=It()(ke)?dn:fe},Ee=($e,Fn)=>{const ke=parseInt(It()($e).format("HH")),fe=parseInt(It()().format("HH")),Re=parseInt(It()().format("mm"));if(!$e)return{disabledHours:()=>$t(0,fe),disabledMinutes:()=>$t(0,Re)};if(Fn){const dn=parseInt(It()(Fn).format("HH")),Te=parseInt(It()(Fn).format("mm"));return It()($e).isSame(It()(Fn),"day")?{disabledHours:()=>$t(0,dn),disabledMinutes:()=>ke<=dn?$t(0,Te):[]}:void 0}if(It()($e).isSame(It()(),"day"))return{disabledHours:()=>$t(0,fe),disabledMinutes:()=>It()($e).isSame(It()(),"hour")&&ke<=fe?$t(0,Re):[]}},sn=($e,Fn)=>$e==null?void 0:$e.map(ke=>{var fe;return(fe=Fn==null?void 0:Fn.find(Re=>Re.value===ke))==null?void 0:fe.id}),{RangePicker:Tn}=ie.default,{Option:Le}=Be.default,gn=({shixunHomeworks:$e,loading:Fn,dispatch:ke,classroomList:fe,user:Re})=>{var dn,Te,Ht,At,Ct,Tt,Xt,kt,ee;const rn=(0,mt.useParams)(),{workSetting:on,workList:Un,shixunWorkList:en,headerInfo:Mn,changeData:Ke}=$e,[jn,ni]=(0,Lt.useState)(!1),[Oi,$n]=(0,Lt.useState)(!1);let[Ai,Ki]=(0,Lt.useState)([]),[ii,mi]=(0,Lt.useState)([]),[di,gi]=(0,Lt.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:St.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[hr,Or]=(0,Lt.useState)({}),[sr,Di]=(0,Lt.useState)({});(0,Lt.useEffect)(()=>()=>{Ki([])},[]),(0,Lt.useEffect)(()=>{ni(!(0,Nt.GJ)())},[(0,Nt.GJ)()]);const jr=()=>{ke({type:"shixunHomeworks/getWorkSetting",payload:bn({},rn)})};(0,Lt.useEffect)(()=>{if(!(on!=null&&on.course_id))return;Object.keys(di).map(function(Ye){di[Ye]=on[Ye]}),(!di.allow_late||!di.unified_late)&&(di.late_penalty=20,di.penalty_type=St.Q.Percent),di.unified_setting||(di.unified_late=!1,di.unified_anonymous_comment=!1,di.unified_anonymous_appeal=!1),Ai=JSON.parse(JSON.stringify(on.group_settings.map(Ye=>cn(bn({},Ye),{group_name:[Ye.group_name]})).filter(Ye=>Ye.publish_time!==null))),ii=JSON.parse(JSON.stringify(on.allow_late_settings.map(Ye=>cn(bn({},Ye),{group_name:[Ye.group_name]})).filter(Ye=>Ye.late_time!==null))),gi(bn({},di));const Ve=(0,lt.QE)((Ai==null?void 0:Ai.length)>0?Ai:[]);Ki([...Ve]),(ii==null?void 0:ii.length)<=0?mi([{penalty_type:St.Q.Percent,late_penalty:20}]):mi([...ii])},[on]);const ao=()=>Xn(void 0,null,function*(){var Ve,Ye;if(((Ve=Re==null?void 0:Re.userInfo)==null?void 0:Ve.user_status)===2){(0,Mt.Rd)();return}const xn=JSON.parse(JSON.stringify(di));if(xn.challenge_settings.filter(ln=>!ln.hide),xn.categoryId=rn.categoryId,(Ye=xn.challenge_settings)!=null&&Ye.every(ln=>!ln.checked)){Ne.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Ai),!di.unified_setting)Ai=Ai==null?void 0:Ai.map(ln=>{var Yn;if(!ln.publish_time||!ln.end_time)throw Ne.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ln.group_name)throw Ne.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ln.group_name=typeof(ln==null?void 0:ln.group_name)=="string"?[ln==null?void 0:ln.group_name]:ln==null?void 0:ln.group_name,ln.group_id=(Yn=on.group_settings)==null?void 0:Yn.filter(Li=>{var Ge;return(Ge=ln==null?void 0:ln.group_name)==null?void 0:Ge.includes(Li.group_name)}).map(Li=>Li.group_id||Li.id).toString().split(","),ln});else if(!di.publish_time||!di.end_time)throw Ne.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(xn.group_settings=Ai,di.allow_late)if(di.unified_late){if(di.late_penalty===null||di.late_penalty===void 0||di.late_penalty<0||di.late_penalty>100)throw Ne.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!di.late_time)throw Ne.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else ii=ii==null?void 0:ii.map(ln=>{var Yn,Li;if(ln.late_penalty===null||ln.late_penalty===void 0||ln.late_penalty<0||ln.late_penalty>100)throw Ne.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ln.late_time)throw Ne.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ln.group_name)throw Ne.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ln.group_name=typeof(ln==null?void 0:ln.group_name)=="string"?[ln==null?void 0:ln.group_name]:ln==null?void 0:ln.group_name,ln.group_id=(Li=(Yn=ln==null?void 0:ln.group_name)==null?void 0:Yn.map(Ge=>{var je,we;let Ze=(we=(je=on.group_settings)==null?void 0:je.filter(ai=>(ai==null?void 0:ai.group_name)===Ge))==null?void 0:we[0];return Ze==null?void 0:Ze.group_id}))==null?void 0:Li.toString().split(","),ln}),xn.allow_late_settings=ii;let fn=yield(0,re.Tr)({homework_common_ids:[parseInt(rn.categoryId)],course_id:rn.coursesId,type:"homework_common"});(fn==null?void 0:fn.student_count)===0?fa(xn):(Di(xn),Or(fn))}),fa=Ve=>{var Ye;if(Ve.total_score===null){Ne.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ve!=null&&Ve.work_efficiency&&Ve.eff_score===null){Ne.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const xn=Ve.challenge_settings.reduce((Yn,Li)=>Yn+Number(Li.challenge_score),0);if((xn==null?void 0:xn.toFixed(10))!==((Ye=Ve.total_score-Ve.eff_score)==null?void 0:Ye.toFixed(10))){Ne.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Ve.total_score}\u5206`);return}const fn={shixun_evaluation:Ve.shixun_evaluation,challenge_settings:Ve.challenge_settings};let ln=()=>{var Yn;const Li=()=>Xn(void 0,null,function*(){$n(!0),(yield(0,nt.ZP)(`/api/homework_commons/${rn.categoryId}/publish_setting.json`,{method:"post",body:bn({},Ve)})).status===0&&(Ne.ZP.success("\u66F4\u65B0\u6210\u529F"),jr(),ke({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:bn({},rn)})),$n(!1)});!(0,et.isEqual)(Ke,fn)&&!((Yn=Mn==null?void 0:Mn.homework_status)!=null&&Yn.includes("\u672A\u53D1\u5E03"))?Ae.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Li}):Li()};on!=null&&on.high_resources_consume&&!(on!=null&&on.high_resources_consume_permission)?ke({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:rn.coursesId,type:"shixun",type_id:rn.categoryId,name:on.homework_name,fn:()=>{ln()}}}):ln()},_o=(Ve,Ye,xn="group_id")=>{var fn;return Ye?Ye.find(ln=>ln[xn]===Ve):(fn=on==null?void 0:on.group_settings)==null?void 0:fn.find(ln=>ln.group_id[0]===Ve)},ta=(on==null?void 0:on.allow_late)||(on==null?void 0:on.anonymous_comment),Ga=Ve=>{var Ye,xn;const fn=_o(Ve,on==null?void 0:on.allow_late_settings,"id"),ln=_o(Ve,on==null?void 0:on.anonymous_comment_settings),Yn=_o(Ve);return(on==null?void 0:on.allow_late)&&fn&&It()(fn==null?void 0:fn.late_time)<=It()()||(on==null?void 0:on.anonymous_comment)&&ln&&(ln==null?void 0:ln.evaluation_start)!==null||((xn=(It()(Yn==null?void 0:Yn.end_time)<=It()()&&((Ye=on==null?void 0:on.allow_late_settings)==null?void 0:Ye.filter(Li=>Li.group_id.includes(Ve))))[0])==null?void 0:xn.late_time)!=null},zo=(0,Lt.useMemo)(()=>(on==null?void 0:on.allow_late)||(on==null?void 0:on.all_group_late),[on,Mn]),gr=on==null?void 0:on.anonymous_comment,vn=Ve=>{if(!Ve)return!1;const Ye=_o(Ve,on==null?void 0:on.anonymous_comment_settings);return(on==null?void 0:on.anonymous_comment)&&Ye&&(Ye==null?void 0:Ye.evaluation_start)!==null},wt=(Ve,Ye)=>{var xn,fn,ln,Yn,Li;Ve!=null&&Ve.group_id||(Ve.group_id=sn(Ve==null?void 0:Ve.group_name,on==null?void 0:on.group_settings)),ke({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Ve,index:Ye,rangePickerDisabled:(fn=(xn=Ve==null?void 0:Ve.group_id)==null?void 0:xn[0])!=null&&fn.publish_time?jn||(It()()<=It()((Yn=_o((ln=Ve==null?void 0:Ve.group_id)==null?void 0:ln[0]))==null?void 0:Yn.publish_time)?!1:[!0,Ga((Li=Ve==null?void 0:Ve.group_id)==null?void 0:Li[0])]):!1,disabledDate:on==null?void 0:on.course_end_date}})};return _t.createElement("section",{className:gt.Z.form},_t.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",_t.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),_t.createElement("div",null,_t.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},_t.createElement(Dt.ZP.Group,{disabled:jn||!((dn=Mn==null?void 0:Mn.homework_status)!=null&&dn.includes("\u672A\u53D1\u5E03"))||(0,Nt.Rm)()&&!((Te=fe.AssistantObject.practice)!=null&&Te.can_publish),value:di.unified_setting,onChange:Ve=>{var Ye;if(!((Ye=Mn==null?void 0:Mn.homework_status)!=null&&Ye.includes("\u672A\u53D1\u5E03"))){Ne.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(di.unified_setting=!di.unified_setting,di.unified_setting||(di.unified_late=!1,mi([{late_penalty:5}])),gi(Object.assign({},di)),di.unified_setting===!1&&Ai==""){Ki(Ai.concat({}));return}di.unified_setting&&(Ki([]),mi([{late_penalty:5}]))}},_t.createElement(Dt.ZP,{value:!0,disabled:jn||!(on!=null&&on.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),_t.createElement(Dt.ZP,{disabled:jn||!((Ht=on==null?void 0:on.group_settings)!=null&&Ht.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((At=on==null?void 0:on.group_settings)==null?void 0:At.length)===0&&_t.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),di.unified_setting&&_t.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},_t.createElement(Jt.Z,{align:"middle"},_t.createElement(ue.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),_t.createElement(ue.Z,{className:"ml10"},_t.createElement(ie.default,{size:"large",disabled:jn||!((Ct=Mn==null?void 0:Mn.homework_status)!=null&&Ct.includes("\u672A\u53D1\u5E03")||(Tt=Mn==null?void 0:Mn.homework_status)!=null&&Tt.includes("\u672A\u5F00\u59CB"))||(0,Nt.Rm)()&&!((Xt=fe.AssistantObject.practice)!=null&&Xt.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Ve=>jt(Ve,on==null?void 0:on.course_end_date),disabledTime:Ve=>Ee(Ve),value:di.publish_time?It()(di.publish_time):"",onChange:(Ve,Ye)=>{di.publish_time=Ye,(di.end_time==""||!di.end_time)&&di.unified_setting&&(di.end_time=It()(Ve).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),gi(Object.assign({},di))}}))),_t.createElement(Jt.Z,{align:"middle",className:"pl30"},_t.createElement(ue.Z,null,"\u622A\u6B62\u65F6\u95F4"),_t.createElement(ue.Z,{className:"ml10"},_t.createElement(ie.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:It()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(on==null?void 0:on.allow_late)&&(on==null?void 0:on.homework_status.includes("\u5DF2\u622A\u6B62"))||jn||(on==null?void 0:on.allow_late)&&It()()>=It()(on==null?void 0:on.end_time)||(0,Nt.Rm)()&&!((kt=fe.AssistantObject.practice)!=null&&kt.can_publish),disabledDate:Ve=>jt(Ve,on==null?void 0:on.course_end_date,di.publish_time),disabledTime:Ve=>Ee(Ve,di.publish_time),value:di.end_time?It()(di.end_time):"",onChange:(Ve,Ye)=>{di.end_time=Ye,gi(Object.assign({},di))}})))),!di.unified_setting&&(Ai==null?void 0:Ai.length)>0&&_t.createElement(Jt.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Ai&&Ai.map(function(Ve,Ye){var xn,fn,ln,Yn,Li,Ge,je;return _t.createElement(ue.Z,{span:24,key:Ye},_t.createElement(Jt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ye==(Ai==null?void 0:Ai.length)-1?"0px":"10px"}},_t.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Ye+1),_t.createElement(Be.default,{disabled:jn||((xn=Mn==null?void 0:Mn.homework_status)!=null&&xn.includes("\u672A\u53D1\u5E03")&&Ve.id||It()()<It()(Ve==null?void 0:Ve.publish_time)?!1:!!(Ve!=null&&Ve.publish_time))||(0,Nt.Rm)()&&!((fn=fe.AssistantObject.practice)!=null&&fn.can_publish),mode:"multiple",className:gt.Z.multiple_select,style:{width:"250px"},value:Ve.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:we=>{var Ze;if((0,Nt.Rm)()&&!((Ze=fe.AssistantObject.practice)!=null&&Ze.can_publish)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ai[Ye].group_name=we,Ai[Ye].group_id=Ve.group_id;const ai=(0,et.flattenDeep)(Ai.map(qn=>qn.group_name)),ui=ii.map(qn=>{let ze=(qn==null?void 0:qn.group_name)||[];return cn(bn({},qn),{group_name:(0,et.remove)(ze,yn=>ai.includes(yn))})});mi(ui),Ki(Ai.slice())},maxTagCount:4,maxTagPlaceholder:we=>_t.createElement("div",{style:{cursor:"pointer"},onClick:()=>wt(Ve,Ye)},"+",we==null?void 0:we.length)},on.group_settings&&on.group_settings.map(function(we){if(!Ai.map(ai=>ai.group_name).flat().includes(we.group_name))return _t.createElement(Le,{value:we.group_name,key:we.id},we.group_name)})),_t.createElement("div",{className:"ml20"},_t.createElement(Tn,{size:"large",ranges:{\u6B64\u523B:[Ve.publish_time?It()(Ve.publish_time):It()(),It()()]},allowClear:!1,disabled:jn||(It()()<=It()((Yn=_o((ln=Ve==null?void 0:Ve.group_id)==null?void 0:ln[0]))==null?void 0:Yn.publish_time)?!1:[!0,Ga((Li=Ve==null?void 0:Ve.group_id)==null?void 0:Li[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:we=>jt(we,on==null?void 0:on.course_end_date),disabledTime:we=>Ee(we),showTime:{showNow:!0,format:"HH:mm",defaultValue:[It()((0,lt.U6)(),"HH:mm"),It()((0,lt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Ve.publish_time?It()(Ve.publish_time):void 0,Ve.end_time?It()(Ve.end_time):void 0],onChange:(we,Ze)=>{var ai;if((0,Nt.Rm)()&&!((ai=fe.AssistantObject.practice)!=null&&ai.can_publish)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ai[Ye].publish_time=Ze[0],!Ve.end_time&&Ze[0]?Ai[Ye].end_time=It()(Ze[0]).add(7,"days"):Ai[Ye].end_time=Ze[1],Ki([...Ai])},onCalendarChange:(we,Ze,ai)=>{if(Ze!=null&&Ze[0]&&!Ze[1]){const ui=It()(Ze[0]).add(7,"days");Ai[Ye].publish_time=Ze[0],Ai[Ye].end_time=ui,Ki([...Ai])}}})),!jn&&_t.createElement("div",{style:{display:"flex",width:"50px"}},((Ge=Ve==null?void 0:Ve.group_id)==null?void 0:Ge.length)>1&&_t.createElement(ce.Z,{title:"\u89C4\u5219\u62C6\u5206"},_t.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>wt(Ve,Ye)})),Ai.length<((je=on==null?void 0:on.group_settings)==null?void 0:je.length)&&_t.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var we;if((0,Nt.Rm)()&&!((we=fe.AssistantObject.practice)!=null&&we.can_publish)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ki(Ai.concat({}))}}),((Ve==null?void 0:Ve.publish_time)&&It()()<It()(Ve==null?void 0:Ve.publish_time)||!(Ve!=null&&Ve.publish_time))&&Ye!=0&&_t.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const we=(0,et.cloneDeep)(ii);we.forEach((Ze,ai)=>{Ze.group_name&&(Ze.group_name=Ze.group_name.filter(ui=>{var qn;return!((qn=Ai[Ye].group_name)!=null&&qn.includes(ui))}))}),Ai=Ai.filter((Ze,ai)=>Ye!==ai),mi(we),Ki(Ai.slice()),setTimeout(()=>Ki(Ai.slice()),10)}}))))}))),_t.createElement(Jt.Z,null,_t.createElement(ue.Z,null,_t.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",_t.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),_t.createElement(ue.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},_t.createElement(ye.default,{checked:di.allow_late,disabled:jn||zo,onChange:Ve=>{var Ye;if((0,Nt.Rm)()&&!((Ye=fe.AssistantObject.practice)!=null&&Ye.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ve.target.checked&&Ae.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:_t.createElement("div",{style:{padding:10,background:"#f5f6f9"}},_t.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),_t.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),_t.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),di.allow_late=!di.allow_late,ii==""&&mi([{late_penalty:5}]),gi(Object.assign({},di))}},_t.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(di==null?void 0:di.allow_late)&&_t.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},_t.createElement("div",{style:{display:"flex"}},_t.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),_t.createElement(Dt.ZP.Group,{style:{marginLeft:"20px"},disabled:jn||(on==null?void 0:on.anonymous_comment)||(on==null?void 0:on.allow_late),value:di.unified_late,onChange:Ve=>{var Ye;if((0,Nt.Rm)()&&!((Ye=fe.AssistantObject.practice)!=null&&Ye.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}di.unified_late=Ve.target.value,ii==""&&!Ve.target.value&&mi([{penalty_type:St.Q.Percent,late_penalty:20}]),gi(bn({},di))}},(di==null?void 0:di.unified_setting)&&_t.createElement(Dt.ZP,{value:!0,disabled:!(on!=null&&on.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((ee=on==null?void 0:on.group_settings)==null?void 0:ee.length)>0&&_t.createElement(Dt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),di!=null&&di.unified_late?_t.createElement(_t.Fragment,null,_t.createElement(Jt.Z,{align:"middle",style:{marginTop:"10px"}},_t.createElement(ue.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),_t.createElement(ue.Z,{className:"ml20"},_t.createElement(St.Z,{disabled:jn||gr,value:{type:di.penalty_type,inputValue:di.late_penalty},onChange:Ve=>{var Ye;if((0,Nt.Rm)()&&!((Ye=fe.AssistantObject.practice)!=null&&Ye.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}gi(cn(bn({},di),{late_penalty:Ve.inputValue,penalty_type:Ve.type}))}})),_t.createElement(ue.Z,{flex:"1",className:"ml5"},_t.createElement("span",{className:"c-grey-c ml10"},di.penalty_type===St.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),_t.createElement(Jt.Z,{align:"middle",style:{marginTop:"15px"}},_t.createElement(ue.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),_t.createElement(ue.Z,{className:"ml20"},_t.createElement(ie.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:It()((0,lt.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:jn||gr,value:di.late_time?It()(di.late_time):"",disabledDate:Ve=>jt(Ve,on==null?void 0:on.course_end_date),onChange:(Ve,Ye)=>{var xn;if((0,Nt.Rm)()&&!((xn=fe.AssistantObject.practice)!=null&&xn.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}di.late_time=Ye,gi(Object.assign({},di))}})))):ii.map(function(Ve,Ye){var xn;return _t.createElement(ue.Z,{span:24,key:Ye},_t.createElement(Jt.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},_t.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Ye+1),_t.createElement(Be.default,{disabled:jn||!((xn=Mn==null?void 0:Mn.homework_status)!=null&&xn.includes("\u672A\u53D1\u5E03"))&&Ve.id||(on==null?void 0:on.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Ve.group_name=="string"?[Ve.group_name]:Ve.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:fn=>{var ln;if((0,Nt.Rm)()&&!((ln=fe.AssistantObject.practice)!=null&&ln.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ii[Ye].group_name=fn,ii[Ye].group_id=Ve.group_id,mi(ii.slice())}},on.group_settings&&on.group_settings.map(function(fn){const ln=ii.map(Li=>Li.group_name).flat(),Yn=Ai.map(Li=>Li.group_name).flat();if(di!=null&&di.unified_setting){if(!ln.includes(fn.group_name))return _t.createElement(Le,{value:fn.group_name,key:fn.id},fn.group_name)}else if(Yn.includes(fn.group_name)&&!ln.includes(fn.group_name))return _t.createElement(Le,{value:fn.group_name,key:fn.id},fn.group_name)})),_t.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),_t.createElement(St.Z,{disabled:jn||vn(Ve.id),value:{type:Ve.penalty_type,inputValue:Ve.late_penalty},onChange:fn=>{var ln;if((0,Nt.Rm)()&&!((ln=fe.AssistantObject.practice)!=null&&ln.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ii[Ye].late_penalty=fn.inputValue,ii[Ye].penalty_type=fn.type,mi([...ii])}}),_t.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),_t.createElement(ie.default,{size:"large",disabled:jn||vn(Ve.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:It()((0,lt.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:fn=>jt(fn,on==null?void 0:on.course_end_date),format:"YYYY-MM-DD HH:mm",value:Ve!=null&&Ve.late_time?It()(Ve.late_time):void 0,onChange:(fn,ln)=>{var Yn;if((0,Nt.Rm)()&&!((Yn=fe.AssistantObject.practice)!=null&&Yn.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ii[Ye].late_time=ln,mi([...ii])}}),!jn&&_t.createElement("div",{style:{display:"flex",width:"50px"}},_t.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var fn;if((0,Nt.Rm)()&&!((fn=fe.AssistantObject.practice)!=null&&fn.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}mi(ii.concat({penalty_type:St.Q.Percent,late_penalty:20}))}}),Ye>0&&!Ve.id&&_t.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var fn;if((0,Nt.Rm)()&&!((fn=fe.AssistantObject.practice)!=null&&fn.can_late)){Ne.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ii=ii.filter((ln,Yn)=>Ye!==Yn),mi(ii.slice()),setTimeout(()=>mi(ii.slice()),10)}}))))})),!jn&&_t.createElement(_t.Fragment,null,_t.createElement(Je.ZP,{type:"primary",size:"large",loading:Oi,style:{width:"138px",marginTop:"30px"},onClick:()=>ao()},"\u4FDD\u5B58")),_t.createElement(zt.Z,{onConfirm:(Ve,Ye)=>{Ai.splice(Ve,0,...Ye),Ai.splice(Ve+Ye.length,1);const xn=(0,lt.QE)([...Ai]);Ki([...xn])}}),_t.createElement(qt.Z,{resdata:hr,type:"shixun",okloading:Oi,oktext:(hr==null?void 0:hr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ve=>Xn(void 0,null,function*(){$n(!0);let Ye=yield(0,nt.ZP)(`/api/courses/${rn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(rn.categoryId)]}});$n(!1),(Ye==null?void 0:Ye.status)===0&&fa(sr)})}))};Hn.ZP=(0,mt.connect)(({shixunHomeworks:$e,classroomList:Fn,loading:ke,user:fe})=>({shixunHomeworks:$e,classroomList:Fn,loading:ke.effects,user:fe}))(gn)},92882:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return ht}});var Lt=Ft(67294),ie=Ft(35973),Be=Ft(18046),Ne=Ft(62844),Ae=Ft(28802),Dt=Ft(2453),Jt=Ft(71230),ue=Ft(15746),ce={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},ye=Ft(94699),Je=Ft.n(ye),de=Ft(28706),It=Ft(26194),Nt=Ft(67294);const{RangePicker:nt}=Be.default,et=({dispatch:lt,classroomList:gt,onConfirm:mt})=>{const[St,Mt]=(0,Lt.useState)([]),[zt,qt]=(0,Lt.useState)([]),[re,_t]=(0,Lt.useState)(""),[Zt,Pe]=(0,Lt.useState)([!1,!1]);(0,Lt.useEffect)(()=>{var He,Ie,In,bn;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((He=gt.actionTabs)==null?void 0:He.rangePickerDisabled),(Ie=gt.actionTabs)!=null&&Ie.rangePickerDisabled?Pe((In=gt.actionTabs)==null?void 0:In.rangePickerDisabled):Pe([!1,!1]);let cn=gt.actionTabs.data,Xn=(bn=cn==null?void 0:cn.group_name)==null?void 0:bn.map(($t,jt)=>{var Ee;return{group_id:cn==null?void 0:cn.group_id[jt],group_name:cn==null?void 0:cn.group_name[jt],is_admin:cn==null?void 0:cn.is_admin,end_time:cn==null?void 0:cn.end_time,publish_time:Array.isArray(cn==null?void 0:cn.publish_time)?(Ee=cn==null?void 0:cn.publish_time)==null?void 0:Ee[0]:cn==null?void 0:cn.publish_time}});Xn&&(Mt([...Xn]),qt([...Xn]))}},[gt.actionTabs]);const ge=()=>{lt({type:"classroomList/setActionTabs",payload:{}}),_t("")},Fe=He=>{if(He){const Ie=zt==null?void 0:zt.filter(In=>{var bn,cn;return(cn=(bn=In==null?void 0:In.group_name)==null?void 0:bn.toLowerCase())==null?void 0:cn.includes(He==null?void 0:He.toLowerCase())});Mt(Ie)}else Mt(zt)};return Nt.createElement(Ne.default,{width:980,title:Nt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Nt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Nt.createElement("span",{className:ce.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Nt.createElement(Ae.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:re,onChange:He=>{_t(He.target.value.trim()),Fe(He.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>ge(),onOk:()=>{var He;if(zt.some(In=>!In.end_time||!In.publish_time)){Dt.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}mt((He=gt.actionTabs)==null?void 0:He.index,zt),ge()}},Nt.createElement("div",{className:ce.modal_con},Nt.createElement(Jt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(St==null?void 0:St.length)>0?St.map(function(He,Ie){return Nt.createElement(ue.Z,{span:24,key:Ie},Nt.createElement(Jt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ie==(St==null?void 0:St.length)-1?"0px":"10px"}},Nt.createElement("div",{className:ce.multiple_select,title:He==null?void 0:He.group_name},He==null?void 0:He.group_name),Nt.createElement("div",{className:"ml20"},Nt.createElement(nt,{size:"large",allowClear:!1,disabled:Zt,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:In=>{var bn;return(0,de.Q8)(In,(bn=gt.actionTabs)==null?void 0:bn.disabledDate)},disabledTime:In=>(0,de.d0)(In),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Je()((0,de.U6)(),"HH:mm"),Je()((0,de.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(He==null?void 0:He.publish_time)&&[Je()(He==null?void 0:He.publish_time),He!=null&&He.end_time?Je()(He==null?void 0:He.end_time):void 0],onChange:(In,bn)=>{St[Ie].publish_time=bn[0],St[Ie].end_time=bn[1],Mt([...St]),zt.forEach(cn=>{cn.group_id===(He==null?void 0:He.group_id)&&(cn.publish_time=bn[0],cn.end_time=bn[1])}),qt([...zt])},onCalendarChange:(In,bn,cn)=>{if(bn!=null&&bn[0]&&!bn[1]){const Xn=Je()(bn[0]).add(7,"days");St[Ie].publish_time=bn[0],St[Ie].end_time=Xn,Mt([...St]),zt.forEach($t=>{$t.group_id===(He==null?void 0:He.group_id)&&($t.publish_time=bn[0],$t.end_time=Xn)}),qt([...zt])}}})),Zt[0]?Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Nt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{St.splice(Ie,1),Mt([...St]),zt.forEach((In,bn)=>{In.group_id===(He==null?void 0:He.group_id)&&zt.splice(bn,1)}),qt([...zt])}})))}):Nt.createElement(It.Z,null))))};var ht=(0,ie.connect)(({classroomList:lt})=>({classroomList:lt}))(et)},78550:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return ce}});var Lt=Ft(67294),ie={flex_box_center:"flex_box_center___oGGi8",flex_space_between:"flex_space_between___e1At5",flex_box_vertical_center:"flex_box_vertical_center___K1Nl5",flex_box_center_end:"flex_box_center_end___IP1rf",flex_box_column:"flex_box_column____nxPW",title:"title___Ynb7w",time:"time___dxFRB"},Be=Ft(94184),Ne=Ft.n(Be),Ae=Ft(4599),Dt=Ft(94699),Jt=Ft.n(Dt),ce=({className:ye,status:Je,style:de={},startAt:It,endAt:Nt,title:nt})=>Lt.createElement("div",{className:Ne()(ie.title,ye),style:de},Lt.createElement("b",null,nt),Lt.createElement(Ae.Z,{className:"ml10",status:Je}),Lt.createElement("span",{className:ie.time},Lt.createElement("span",null,"\u5F00\u542F\u65F6\u95F4",Lt.createElement("span",{className:"ml10"},It?Jt()(It).format("YYYY-MM-DD HH:mm"):"--")),Lt.createElement("span",{className:"ml30"},"\u622A\u6B62\u65F6\u95F4",Lt.createElement("span",{className:"ml10"},Nt?Jt()(Nt).format("YYYY-MM-DD HH:mm"):"--"))))},74648:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return re}});var Lt=Ft(67294),ie=Ft(2453),Be=Ft(35059),Ne=Ft(62844),Ae=Ft(71230),Dt=Ft(18046),Jt={flex_box_center:"flex_box_center___cQ5Sl",flex_space_between:"flex_space_between___BU1Wl",flex_box_vertical_center:"flex_box_vertical_center___jBfz4",flex_box_center_end:"flex_box_center_end___mFYce",flex_box_column:"flex_box_column___jBfuW",wrap:"wrap___npJKs",label:"label___mSlLf"},ue=Ft(11320),ce=Ft(35973),ye=Ft(30001),Je=Ft(33170),de=Ft(28706),It=Ft(35567),Nt=Ft(94699),nt=Ft.n(Nt),et=Ft(17998),ht=Object.defineProperty,lt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,St=(_t,Zt,Pe)=>Zt in _t?ht(_t,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):_t[Zt]=Pe,Mt=(_t,Zt)=>{for(var Pe in Zt||(Zt={}))gt.call(Zt,Pe)&&St(_t,Pe,Zt[Pe]);if(lt)for(var Pe of lt(Zt))mt.call(Zt,Pe)&&St(_t,Pe,Zt[Pe]);return _t},zt=(_t,Zt,Pe)=>new Promise((ge,Fe)=>{var He=bn=>{try{In(Pe.next(bn))}catch(cn){Fe(cn)}},Ie=bn=>{try{In(Pe.throw(bn))}catch(cn){Fe(cn)}},In=bn=>bn.done?ge(bn.value):Promise.resolve(bn.value).then(He,Ie);In((Pe=Pe.apply(_t,Zt)).next())}),re=({visible:_t,data:Zt,onClose:Pe=()=>{},onSuccess:ge=()=>{}})=>{const[Fe,He]=(0,Lt.useState)([]),[Ie,In]=(0,Lt.useState)(""),[bn,cn]=(0,Lt.useState)(""),[Xn,$t]=(0,Lt.useState)(""),[jt,Ee]=(0,Lt.useState)(!1),sn=(0,ce.useParams)();(0,Lt.useEffect)(()=>{var Te;_t&&($t((Zt==null?void 0:Zt.description)||""),In((Zt==null?void 0:Zt.start_at)||""),cn((Zt==null?void 0:Zt.end_at)||""),He(((Te=Zt==null?void 0:Zt.attachments)==null?void 0:Te.map(Ht=>({name:Ht.name||Ht.title,status:"done",response:{id:Ht.id}})))||[]))},[_t]);const Tn={multiple:!0,withCredentials:!0,fileList:Fe,beforeUpload:Te=>Te.size/1024/1024>150?(ie.ZP.error(`\u300A${Te.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150M)`),Be.default.LIST_IGNORE):!0,action:`${ue.Z.API_SERVER}/api/attachments.json`,onChange(Te){He((0,de.uD)(Te))}},Le=()=>zt(void 0,null,function*(){if(!Ie||!bn){ie.ZP.warning(`\u8BF7\u9009\u62E9${ke}`);return}Ee(!0),console.log(Fe,"fileList");const Te=yield(0,Je.ZP)(`/api/graduations/${sn.id}/graduation_stages/${Zt.id}.json`,{method:"put",body:{start_at:Ie,end_at:bn,description:Xn,attachment_ids:Fe.map(Ht=>{var At;return(At=Ht==null?void 0:Ht.response)==null?void 0:At.id})}});if((Te==null?void 0:Te.status)===0){ie.ZP.success("\u4FDD\u5B58\u8BBE\u7F6E\u6210\u529F"),(0,ce.getDvaApp)()._store.dispatch({type:"graduations/getGraduationsDetails",payload:{id:sn==null?void 0:sn.id}}),ge();return}Ee(!1)});console.log(Zt,"data");const gn=[{name:"\u5B66\u751F\u9009\u9898",key:"student_selection",timeName:"\u5B66\u751F\u9009\u9898\u8D77\u6B62\u65F6\u95F4",width:460,text:"\u5728\u6B64\u65F6\u95F4\u5185\uFF0C\u5B66\u751F\u53EF\u81EA\u52A9\u64CD\u4F5C\u9009\u9898\u548C\u66F4\u6539\u9009\u9898"},{name:"\u4EFB\u52A1\u4E66",key:"tasks",width:460,timeName:"\u4EFB\u52A1\u4E66\u8D77\u6B62\u65F6\u95F4",text:""},{name:"\u5F00\u9898\u62A5\u544A",key:"opening_report",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u5F00\u9898\u62A5\u544A\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u4E2D\u671F\u68C0\u67E5",key:"midterm_report",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u4E2D\u671F\u68C0\u67E5\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u6BD5\u4E1A\u8BBA\u6587",key:"thesis",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u6BD5\u4E1A\u8BBA\u6587\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u6BD5\u4E1A\u7B54\u8FA9",key:"final_defense",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u6BD5\u4E1A\u7B54\u8FA9\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u8BBA\u6587\u5B9A\u7A3F",key:"final_thesis",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u8BBA\u6587\u5B9A\u7A3F\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"},{name:"\u5F52\u6863",key:"archives",width:1146,timeName:"\u5B66\u751F\u63D0\u4EA4\u5F52\u6863\u8D77\u6B62\u65F6\u95F4",text:"\u5728\u8BE5\u9636\u6BB5\u5185\u6216\u8005\u8001\u5E08\u8BC4\u9605\u901A\u8FC7\u4E4B\u524D\uFF0C\u5B66\u751F\u53EF\u4EE5\u81EA\u7531\u63D0\u4EA4\u6587\u6863\uFF0C\u4E00\u65E6\u8FC7\u4E86\u622A\u6B62\u65F6\u95F4\uFF0C\u5219\u9700\u8981\u7BA1\u7406\u5458\u6388\u6743\u8865\u4EA4"}],$e=["opening_report","midterm_report","thesis","final_defense","final_thesis","archives"],Fn=Fe.some(Te=>!(Te!=null&&Te.response)),{timeName:ke,text:fe,width:Re,key:dn}=(gn==null?void 0:gn.find(Te=>Te.key===(Zt==null?void 0:Zt.clazz)))||{};return Lt.createElement(Ne.default,{centered:!0,destroyOnClose:!0,confirmLoading:jt,okButtonProps:{disabled:Fn},onCancel:Pe,onOk:Le,open:_t,title:`${Zt.name}\u8BBE\u7F6E`,width:Re,afterClose:()=>{He([]),In(""),$t(""),cn(""),Ee(!1)},okText:"\u4FDD\u5B58\u8BBE\u7F6E",cancelText:"\u53D6\u6D88"},Lt.createElement("div",{className:Jt.wrap},Lt.createElement("div",{className:Jt.label},Lt.createElement("span",null,"*"),ke),Lt.createElement(Ae.Z,{align:"middle",className:$e.includes(dn)?"mb20":""},Lt.createElement(Dt.default,{format:"YYYY-MM-DD HH:mm",value:Ie?nt()(Ie):"",disabledDate:Te=>(0,et.Q8)(Te,"",Zt==null?void 0:Zt.disabled_time),disabledTime:Te=>(0,et.d0)(Te,Zt==null?void 0:Zt.disabled_time),showTime:{format:"HH:mm"},onChange:(Te,Ht)=>{In(Ht)}}),Lt.createElement("span",{className:"ml10 mr10"},"\u81F3"),Lt.createElement(Dt.default,{format:"YYYY-MM-DD HH:mm",value:bn?nt()(bn):"",disabledDate:Te=>(0,et.Q8)(Te,"",Zt==null?void 0:Zt.disabled_time),disabledTime:Te=>(0,et.d0)(Te,Zt==null?void 0:Zt.disabled_time),showTime:{format:"HH:mm"},onChange:(Te,Ht)=>{cn(Ht)}}),Lt.createElement("span",{className:`${dn==="student_selection"?"mt10":"ml10"} font14`,style:{color:"#9096A3"}},fe)),$e.includes(dn)&&Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:Jt.label},"\u9636\u6BB5\u63CF\u8FF0"),Lt.createElement(It.Z,{height:140,defaultValue:Xn,onChange:Te=>{$t(Te)}}),Lt.createElement(Be.default,Mt({},Tn),Lt.createElement(Ae.Z,{align:"middle",className:"mt10"},Lt.createElement(ye.op,{style:{borderRadius:2}},Lt.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6587\u6863"),Lt.createElement("div",{className:"ml10 font14",style:{color:"#5F6367"},onClick:Te=>{Te.stopPropagation()}},"\u4E0A\u4F20\u6B64\u9636\u6BB5\u7684\u6587\u6863\u6A21\u7248\u3001\u6279\u9605\u8981\u6C42\u7B49\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M"))))))}},4599:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Dt}});var Lt=Ft(67294),ie={flex_box_center:"flex_box_center___Sswcw",flex_space_between:"flex_space_between___nBexI",flex_box_vertical_center:"flex_box_vertical_center___sPXvb",flex_box_center_end:"flex_box_center_end___c6nca",flex_box_column:"flex_box_column___Bq_gi",tag:"tag___NEywM"},Be=Ft(94184),Ne=Ft.n(Be),Dt=({className:Jt,status:ue})=>Lt.createElement(Lt.Fragment,null,ue===0&&Lt.createElement("div",{className:Ne()(ie.tag,Jt)},"\u672A\u5F00\u59CB"),ue===1&&Lt.createElement("div",{className:Ne()(ie.tag,Jt),style:{background:"#19CB70"}},"\u8FDB\u884C\u4E2D"),ue===2&&Lt.createElement("div",{className:Ne()(ie.tag,Jt),style:{background:"#EE5D5D"}},"\u5DF2\u7ED3\u675F"))},51161:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{AL:function(){return St},Iy:function(){return Je},Qv:function(){return Nt},ez:function(){return mt},jb:function(){return de}});var Lt=Ft(47084),ie=Ft.n(Lt),Be=Ft(90621),Ne=Ft.n(Be);let Ae=1;function Dt(_t,Zt){const Pe=_t.match(/^(\s+)(?:```)/);if(Pe===null)return Zt;const ge=Pe[1];return Zt.split(`
|
|
`).map(Fe=>{const He=Fe.match(/^\s+/);if(He===null)return Fe;const[Ie]=He;return Ie.length>=ge.length?Fe.slice(ge.length):Fe}).join(`
|
|
`)}let Jt=[],ue=["<ul>"];const ce=new(ie()).Renderer,ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Jt.length=0,ue=["<ul>"]}const de={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(_t,Zt,Pe,ge){if(Zt>=_t.length||_t[Zt].level<=Pe)return Zt;var Fe=_t[Zt];ge.push("<li><a href='#"+Ae+Fe.anchor+"'>"+Fe.text+"</a>"),Zt++;var He=[];return Zt=It(_t,Zt,Fe.level,He),He.length>0&&(ge.push("<ul>"),He.forEach(function(Ie){ge.push(Ie)}),ge.push("</ul>")),ge.push("</li>"),Zt=It(_t,Zt,Pe,ge),Zt}function Nt(){return It(Jt,0,0,ue),ue.push("</ul>"),ue.join("")}const nt={heading(_t){const Zt=ye.exec(_t);if(Ae+=1,Zt)return{type:"heading",raw:Zt[0],depth:Zt[1].length,text:Zt[2]}},fences(_t){const Zt=this.rules.block.fences.exec(_t);if(Zt){const Pe=Zt[0];let ge=Dt(Pe,Zt[3]||"");const Fe=Zt[2]?Zt[2].trim():Zt[2];if(["latex","katex","math"].indexOf(Fe)>=0){const He=lt(),Ie=ge;ge=He,gt[He]={type:"block",expression:Ie}}return{type:"code",raw:Pe,lang:Fe,text:ge}}}},et=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const lt=()=>`__special_katext_id_${ht++}__`;let gt={};function mt(){return gt}function St(){ht=0,gt={}}function Mt(_t){return _t=_t.replace(et,(Zt,Pe)=>{const ge=lt();return gt[ge]={type:"inline",expression:Pe},ge}),_t}const zt=ce.listitem;ce.listitem=function(_t){return zt(Mt(_t))};const qt=ce.paragraph;ce.paragraph=function(_t){return qt(Mt(_t))};const re=ce.tablecell;ce.tablecell=function(_t,Zt){return re(Mt(_t),Zt)},ce.code=function(_t,Zt,Pe){const ge=(Zt||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?`<p class='editormd-tex'>${_t}</p>`:`<pre class="prettyprint linenums"><code class="language-${Zt}">${Pe?_t:(0,Be.escape)(_t,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Pe?_t:(0,Be.escape)(_t,!0))+"</code></pre>"},ce.heading=function(_t,Zt,Pe){let ge=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Jt.push({anchor:ge,level:Zt,text:_t}),"<h"+Zt+' id="'+Ae+ge+'">'+_t+"</h"+Zt+">"},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:nt,renderer:ce}),Hn.ZP=ie()},78207:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{rX:function(){return Mt},pW:function(){return zt},gy:function(){return qt},xY:function(){return St},O5:function(){return mt},hs:function(){return et},tJ:function(){return Nt},o1:function(){return nt},Rd:function(){return gt}});var Lt=Ft(35973),ie=Ft(62844),Be=Ft(96074),Ne=Ft(2453),Ae=Ft(52262),Dt=Ft(28706),Jt=Ft(55304),ue=Ft(25510),ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYA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AyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",ye=Ft.p+"static/newqrcode.a8740efb.png",Je=Ft(32637),de=Ft(67294),It=(re,_t,Zt)=>new Promise((Pe,ge)=>{var Fe=In=>{try{Ie(Zt.next(In))}catch(bn){ge(bn)}},He=In=>{try{Ie(Zt.throw(In))}catch(bn){ge(bn)}},Ie=In=>In.done?Pe(In.value):Promise.resolve(In.value).then(Fe,He);Ie((Zt=Zt.apply(re,_t)).next())});const Nt=(re,_t=!1,Zt=!1,Pe="",ge=!1)=>!!(nt(re)&&ht(re,_t,Zt,Pe,ge)),nt=re=>(0,Ae.bg)()?!0:(re({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),et=re=>{var _t,Zt,Pe;const{user:ge}=(0,Lt.getDvaApp)()._store.getState();(0,Ae.bg)()&&!((Zt=(_t=ge==null?void 0:ge.userInfo)==null?void 0:_t.course)!=null&&Zt.course_public)&&!((Pe=ge==null?void 0:ge.userInfo)!=null&&Pe.profile_completed)&&re({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ht=(re,_t=!1,Zt=!0,Pe="",ge=!1)=>{var Fe;const{user:He}=(0,Lt.getDvaApp)()._store.getState();return(Fe=He.userInfo)!=null&&Fe.profile_completed?!0:(Zt?re({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:Pe,isCurrentPage:ge}}):ie.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,Dt.xg)("/account/profile/edit"),lt()}}),!1)},lt=()=>{ie.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=()=>{ie.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:de.createElement("div",{style:{textAlign:"center"}},de.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"),de.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Je}),de.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:_t}=(0,Lt.getDvaApp)()._store.getState();return(re=_t.userInfo)!=null&&re.professional_certification?!0:(ie.default.confirm({title:"\u63D0\u793A",centered:!0,content:de.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,Dt.xg)("/account/certification")}}),!1)},St=()=>(0,Ae.V9)()?!0:(ie.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:de.createElement("div",{className:"tc",style:{marginLeft:-38}},de.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),de.createElement("img",{src:ye,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Mt=(re,_t)=>re?!0:(ie.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:de.createElement("div",null,de.createElement("p",null,_t||"\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"),de.createElement("div",{style:{marginLeft:"110px"}},de.createElement("img",{src:ce,width:200}),de.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Dt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),zt=re=>{ie.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:de.createElement("div",null,de.createElement("div",null,de.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"),de.createElement(Be.Z,null),de.createElement("p",{style:{color:"#666666",fontSize:12}}," ",de.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 ",de.createElement("a",null,re),"\u5929\u3002"),de.createElement("p",{style:{color:"#666666",fontSize:12}}," ",de.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")),de.createElement("div",{style:{textAlign:"center",marginTop:30}},de.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ue,alt:"\u4E8C\u7EF4\u7801",width:160})))})},qt=(re,_t="")=>{const{shixunsDetail:{detail:Zt}}=(0,Lt.getDvaApp)()._store.getState();if((Zt==null?void 0:Zt.public)===2||(Zt==null?void 0:Zt.public)===1||(Zt==null?void 0:Zt.shixun_status)===3){let Pe="";return(Zt==null?void 0:Zt.public)===2&&(Pe="\u5DF2\u516C\u5F00"),(Zt==null?void 0:Zt.public)===1&&(Pe="\u5F85\u5BA1\u6838"),(Zt==null?void 0:Zt.shixun_status)===3&&(Pe="\u5DF2\u5173\u95ED"),ie.default.info({centered:!0,icon:de.createElement(Jt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:de.createElement("div",{className:"tc",style:{marginLeft:-38}},de.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},de.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Pe,"\uFF0C",_t,"\u3002"),de.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),de.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ue,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Zt==null?void 0:Zt.shixun_status)===2?(ie.default.confirm({centered:!0,icon:de.createElement(Jt.Z,null),title:"\u63D0\u793A",content:de.createElement("div",null,de.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",_t,"\u3002"),de.createElement("br",null),de.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:()=>{ie.default.confirm({width:440,centered:!0,icon:de.createElement(Jt.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:()=>It(void 0,null,function*(){(yield re({type:"shixunsDetail/cancelRelease",payload:{id:Zt==null?void 0:Zt.identifier}})).status!==401&&(Ne.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:Zt==null?void 0:Zt.identifier}}),re({type:"practiceSetting/getCommonData",payload:{id:Zt==null?void 0:Zt.identifier}}))})})}}),!0):!1}},88386:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){Lt.defineOption("placeholder","",function(ue,ce,ye){var Je=ye&&ye!=Lt.Init;if(ce&&!Je)ue.on("blur",Ae),ue.on("change",Dt),ue.on("swapDoc",Dt),Lt.on(ue.getInputField(),"compositionupdate",ue.state.placeholderCompose=function(){Ne(ue)}),Dt(ue);else if(!ce&&Je){ue.off("blur",Ae),ue.off("change",Dt),ue.off("swapDoc",Dt),Lt.off(ue.getInputField(),"compositionupdate",ue.state.placeholderCompose),ie(ue);var de=ue.getWrapperElement();de.className=de.className.replace(" CodeMirror-empty","")}ce&&!ue.hasFocus()&&Ae(ue)});function ie(ue){ue.state.placeholder&&(ue.state.placeholder.parentNode.removeChild(ue.state.placeholder),ue.state.placeholder=null)}function Be(ue){ie(ue);var ce=ue.state.placeholder=document.createElement("pre");ce.style.cssText="height: 0; overflow: visible",ce.style.direction=ue.getOption("direction"),ce.className="CodeMirror-placeholder CodeMirror-line-like";var ye=ue.getOption("placeholder");typeof ye=="string"&&(ye=document.createTextNode(ye)),ce.appendChild(ye),ue.display.lineSpace.insertBefore(ce,ue.display.lineSpace.firstChild)}function Ne(ue){setTimeout(function(){var ce=!1,ye=ue.getInputField();ye.nodeName=="TEXTAREA"?ce=!ye.value:ue.lineCount()==1&&(ce=!/[^\u200b]/.test(ye.querySelector(".CodeMirror-line").textContent)),ce?Be(ue):ie(ue)},20)}function Ae(ue){Jt(ue)&&Be(ue)}function Dt(ue){var ce=ue.getWrapperElement(),ye=Jt(ue);ce.className=ce.className.replace(" CodeMirror-empty","")+(ye?" CodeMirror-empty":""),ye?Be(ue):ie(ue)}function Jt(ue){return ue.lineCount()===1&&ue.getLine(0)===""}})},82801:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Be=Lt.Pos;Lt.defineOption("autoCloseBrackets",!1,function(nt,et,ht){ht&&ht!=Lt.Init&&(nt.removeKeyMap(Ae),nt.state.closeBrackets=null),et&&(Dt(Ne(et,"pairs")),nt.state.closeBrackets=et,nt.addKeyMap(Ae))});function Ne(nt,et){return et=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[et]!=null?nt[et]:ie[et]}var Ae={Backspace:ce,Enter:ye};function Dt(nt){for(var et=0;et<nt.length;et++){var ht=nt.charAt(et),lt="'"+ht+"'";Ae[lt]||(Ae[lt]=Jt(ht))}}Dt(ie.pairs+"`");function Jt(nt){return function(et){return de(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 ce(nt){var et=ue(nt);if(!et||nt.getOption("disableInput"))return Lt.Pass;for(var ht=Ne(et,"pairs"),lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Lt.Pass;var mt=It(nt,lt[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return Lt.Pass}for(var gt=lt.length-1;gt>=0;gt--){var St=lt[gt].head;nt.replaceRange("",Be(St.line,St.ch-1),Be(St.line,St.ch+1),"+delete")}}function ye(nt){var et=ue(nt),ht=et&&Ne(et,"explode");if(!ht||nt.getOption("disableInput"))return Lt.Pass;for(var lt=nt.listSelections(),gt=0;gt<lt.length;gt++){if(!lt[gt].empty())return Lt.Pass;var mt=It(nt,lt[gt].head);if(!mt||ht.indexOf(mt)%2!=0)return Lt.Pass}nt.operation(function(){var St=nt.lineSeparator()||`
|
|
`;nt.replaceSelection(St+St,null),nt.execCommand("goCharLeft"),lt=nt.listSelections();for(var Mt=0;Mt<lt.length;Mt++){var zt=lt[Mt].head.line;nt.indentLine(zt,null,!0),nt.indentLine(zt+1,null,!0)}})}function Je(nt){var et=Lt.cmpPos(nt.anchor,nt.head)>0;return{anchor:new Be(nt.anchor.line,nt.anchor.ch+(et?-1:1)),head:new Be(nt.head.line,nt.head.ch+(et?1:-1))}}function de(nt,et){var ht=ue(nt);if(!ht||nt.getOption("disableInput"))return Lt.Pass;var lt=Ne(ht,"pairs"),gt=lt.indexOf(et);if(gt==-1)return Lt.Pass;for(var mt=Ne(ht,"closeBefore"),St=Ne(ht,"triples"),Mt=lt.charAt(gt+1)==et,zt=nt.listSelections(),qt=gt%2==0,re,_t=0;_t<zt.length;_t++){var Zt=zt[_t],Pe=Zt.head,ge,Fe=nt.getRange(Pe,Be(Pe.line,Pe.ch+1));if(qt&&!Zt.empty())ge="surround";else if((Mt||!qt)&&Fe==et)Mt&&Nt(nt,Pe)?ge="both":St.indexOf(et)>=0&&nt.getRange(Pe,Be(Pe.line,Pe.ch+3))==et+et+et?ge="skipThree":ge="skip";else if(Mt&&Pe.ch>1&&St.indexOf(et)>=0&&nt.getRange(Be(Pe.line,Pe.ch-2),Pe)==et+et){if(Pe.ch>2&&/\bstring/.test(nt.getTokenTypeAt(Be(Pe.line,Pe.ch-2))))return Lt.Pass;ge="addFour"}else if(Mt){var He=Pe.ch==0?" ":nt.getRange(Be(Pe.line,Pe.ch-1),Pe);if(!Lt.isWordChar(Fe)&&He!=et&&!Lt.isWordChar(He))ge="both";else return Lt.Pass}else if(qt&&(Fe.length===0||/\s/.test(Fe)||mt.indexOf(Fe)>-1))ge="both";else return Lt.Pass;if(!re)re=ge;else if(re!=ge)return Lt.Pass}var Ie=gt%2?lt.charAt(gt-1):et,In=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 cn=nt.getSelections(),bn=0;bn<cn.length;bn++)cn[bn]=Ie+cn[bn]+In;nt.replaceSelections(cn,"around"),cn=nt.listSelections().slice();for(var bn=0;bn<cn.length;bn++)cn[bn]=Je(cn[bn]);nt.setSelections(cn)}else re=="both"?(nt.replaceSelection(Ie+In,null),nt.triggerElectric(Ie+In),nt.execCommand("goCharLeft")):re=="addFour"&&(nt.replaceSelection(Ie+Ie+Ie+Ie,"before"),nt.execCommand("goCharRight"))})}function It(nt,et){var ht=nt.getRange(Be(et.line,et.ch-1),Be(et.line,et.ch+1));return ht.length==2?ht:null}function Nt(nt,et){var ht=nt.getTokenAt(Be(et.line,et.ch+1));return/\bstring/.test(ht.type)&&ht.start==et.ch&&(et.ch==0||!/\bstring/.test(nt.getTokenTypeAt(et)))}})},57341:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631),Ft(4786))})(function(Lt){Lt.defineOption("autoCloseTags",!1,function(ce,ye,Je){if(Je!=Lt.Init&&Je&&ce.removeKeyMap("autoCloseTags"),!!ye){var de={name:"autoCloseTags"};(typeof ye!="object"||ye.whenClosing!==!1)&&(de["'/'"]=function(It){return Dt(It)}),(typeof ye!="object"||ye.whenOpening!==!1)&&(de["'>'"]=function(It){return Ne(It)}),ce.addKeyMap(de)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Be=["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 Ne(ce){if(ce.getOption("disableInput"))return Lt.Pass;for(var ye=ce.listSelections(),Je=[],de=ce.getOption("autoCloseTags"),It=0;It<ye.length;It++){if(!ye[It].empty())return Lt.Pass;var Nt=ye[It].head,nt=ce.getTokenAt(Nt),et=Lt.innerMode(ce.getMode(),nt.state),ht=et.state,lt=et.mode.xmlCurrentTag&&et.mode.xmlCurrentTag(ht),gt=lt&<.name;if(!gt)return Lt.Pass;var mt=et.mode.configuration=="html",St=typeof de=="object"&&de.dontCloseTags||mt&&ie,Mt=typeof de=="object"&&de.indentTags||mt&&Be;nt.end>Nt.ch&&(gt=gt.slice(0,gt.length-nt.end+Nt.ch));var zt=gt.toLowerCase();if(!gt||nt.type=="string"&&(nt.end!=Nt.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&<.close||nt.string.indexOf("/")==Nt.ch-nt.start-1||St&&Jt(St,zt)>-1||ue(ce,et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(ht)||[],gt,Nt,!0))return Lt.Pass;var qt=typeof de=="object"&&de.emptyTags;if(qt&&Jt(qt,gt)>-1){Je[It]={text:"/>",newPos:Lt.Pos(Nt.line,Nt.ch+2)};continue}var re=Mt&&Jt(Mt,zt)>-1;Je[It]={indent:re,text:">"+(re?`
|
|
|
|
`:"")+"</"+gt+">",newPos:re?Lt.Pos(Nt.line+1,0):Lt.Pos(Nt.line,Nt.ch+1)}}for(var _t=typeof de=="object"&&de.dontIndentOnAutoClose,It=ye.length-1;It>=0;It--){var Zt=Je[It];ce.replaceRange(Zt.text,ye[It].head,ye[It].anchor,"+insert");var Pe=ce.listSelections().slice(0);Pe[It]={head:Zt.newPos,anchor:Zt.newPos},ce.setSelections(Pe),!_t&&Zt.indent&&(ce.indentLine(Zt.newPos.line,null,!0),ce.indentLine(Zt.newPos.line+1,null,!0))}}function Ae(ce,ye){for(var Je=ce.listSelections(),de=[],It=ye?"/":"</",Nt=ce.getOption("autoCloseTags"),nt=typeof Nt=="object"&&Nt.dontIndentOnSlash,et=0;et<Je.length;et++){if(!Je[et].empty())return Lt.Pass;var ht=Je[et].head,lt=ce.getTokenAt(ht),gt=Lt.innerMode(ce.getMode(),lt.state),mt=gt.state;if(ye&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=ht.ch-1))return Lt.Pass;var St,Mt=gt.mode.name!="xml"&&ce.getMode().name=="htmlmixed";if(Mt&>.mode.name=="javascript")St=It+"script";else if(Mt&>.mode.name=="css")St=It+"style";else{var zt=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(mt);if(!zt||zt.length&&ue(ce,zt,zt[zt.length-1],ht))return Lt.Pass;St=It+zt[zt.length-1]}ce.getLine(ht.line).charAt(lt.end)!=">"&&(St+=">"),de[et]=St}if(ce.replaceSelections(de),Je=ce.listSelections(),!nt)for(var et=0;et<Je.length;et++)(et==Je.length-1||Je[et].head.line<Je[et+1].head.line)&&ce.indentLine(Je[et].head.line)}function Dt(ce){return ce.getOption("disableInput")?Lt.Pass:Ae(ce,!0)}Lt.commands.closeTag=function(ce){return Ae(ce)};function Jt(ce,ye){if(ce.indexOf)return ce.indexOf(ye);for(var Je=0,de=ce.length;Je<de;++Je)if(ce[Je]==ye)return Je;return-1}function ue(ce,ye,Je,de,It){if(!Lt.scanForClosingTag)return!1;var Nt=Math.min(ce.lastLine()+1,de.line+500),nt=Lt.scanForClosingTag(ce,de,null,Nt);if(!nt||nt.tag!=Je)return!1;for(var et=It?1:0,ht=ye.length-1;ht>=0&&ye[ht]==Je;ht--)++et;de=nt.to;for(var ht=1;ht<et;ht++){var lt=Lt.scanForClosingTag(ce,de,null,Nt);if(!lt||lt.tag!=Je)return!1;de=lt.to}return!0}})},4786:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){"use strict";var ie=Lt.Pos;function Be(ht,lt){return ht.line-lt.line||ht.ch-lt.ch}var Ne="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",Ae=Ne+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Dt=new RegExp("<(/?)(["+Ne+"]["+Ae+"]*)","g");function Jt(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(ie(ht.line,lt));return gt&&/\btag\b/.test(gt)}function ce(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function ye(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function Je(ht){for(;;){var lt=ht.text.indexOf(">",ht.ch);if(lt==-1){if(ce(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 de(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(lt==-1){if(ye(ht))continue;return}if(!ue(ht,lt+1)){ht.ch=lt;continue}Dt.lastIndex=lt,ht.ch=lt;var gt=Dt.exec(ht.text);if(gt&>.index==lt)return gt}}function It(ht){for(;;){Dt.lastIndex=ht.ch;var lt=Dt.exec(ht.text);if(!lt){if(ce(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 Nt(ht){for(;;){var lt=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(lt==-1){if(ye(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=It(ht),St,Mt=ht.line,zt=ht.ch-(mt?mt[0].length:0);if(!mt||!(St=Je(ht)))return;if(St!="selfClose")if(mt[1]){for(var qt=gt.length-1;qt>=0;--qt)if(gt[qt]==mt[2]){gt.length=qt;break}if(qt<0&&(!lt||lt==mt[2]))return{tag:mt[2],from:ie(Mt,zt),to:ie(ht.line,ht.ch)}}else gt.push(mt[2])}}function et(ht,lt){for(var gt=[];;){var mt=Nt(ht);if(!mt)return;if(mt=="selfClose"){de(ht);continue}var St=ht.line,Mt=ht.ch,zt=de(ht);if(!zt)return;if(zt[1])gt.push(zt[2]);else{for(var qt=gt.length-1;qt>=0;--qt)if(gt[qt]==zt[2]){gt.length=qt;break}if(qt<0&&(!lt||lt==zt[2]))return{tag:zt[2],from:ie(ht.line,ht.ch),to:ie(St,Mt)}}}}Lt.registerHelper("fold","xml",function(ht,lt){for(var gt=new Jt(ht,lt.line,0);;){var mt=It(gt);if(!mt||gt.line!=lt.line)return;var St=Je(gt);if(!St)return;if(!mt[1]&&St!="selfClose"){var Mt=ie(gt.line,gt.ch),zt=nt(gt,mt[2]);return zt&&Be(zt.from,Mt)>0?{from:Mt,to:zt.from}:null}}}),Lt.findMatchingTag=function(ht,lt,gt){var mt=new Jt(ht,lt.line,lt.ch,gt);if(!(mt.text.indexOf(">")==-1&&mt.text.indexOf("<")==-1)){var St=Je(mt),Mt=St&&ie(mt.line,mt.ch),zt=St&&de(mt);if(!(!St||!zt||Be(mt,lt)>0)){var qt={from:ie(mt.line,mt.ch),to:Mt,tag:zt[2]};return St=="selfClose"?{open:qt,close:null,at:"open"}:zt[1]?{open:et(mt,zt[2]),close:qt,at:"close"}:(mt=new Jt(ht,Mt.line,Mt.ch,gt),{open:qt,close:nt(mt,zt[2]),at:"open"})}}},Lt.findEnclosingTag=function(ht,lt,gt,mt){for(var St=new Jt(ht,lt.line,lt.ch,gt);;){var Mt=et(St,mt);if(!Mt)break;var zt=new Jt(ht,lt.line,lt.ch,gt),qt=nt(zt,Mt.tag);if(qt)return{open:Mt,close:qt}}},Lt.scanForClosingTag=function(ht,lt,gt,mt){var St=new Jt(ht,lt.line,lt.ch,mt?{from:0,to:mt}:null);return nt(St,gt)}})},4631:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";var Hn=navigator.userAgent,Ft=navigator.platform,Lt=/gecko\/\d/i.test(Hn),ie=/MSIE \d/.test(Hn),Be=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hn),Ne=/Edge\/(\d+)/.exec(Hn),Ae=ie||Be||Ne,Dt=Ae&&(ie?document.documentMode||6:+(Ne||Be)[1]),Jt=!Ne&&/WebKit\//.test(Hn),ue=Jt&&/Qt\/\d+\.\d+/.test(Hn),ce=!Ne&&/Chrome\//.test(Hn),ye=/Opera\//.test(Hn),Je=/Apple Computer/.test(navigator.vendor),de=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Hn),It=/PhantomJS/.test(Hn),Nt=!Ne&&/AppleWebKit/.test(Hn)&&/Mobile\/\w+/.test(Hn),nt=/Android/.test(Hn),et=Nt||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Hn),ht=Nt||/Mac/.test(Ft),lt=/\bCrOS\b/.test(Hn),gt=/win/i.test(Ft),mt=ye&&Hn.match(/Version\/(\d*\.\d*)/);mt&&(mt=Number(mt[1])),mt&&mt>=15&&(ye=!1,Jt=!0);var St=ht&&(ue||ye&&(mt==null||mt<12.11)),Mt=Lt||Ae&&Dt>=9;function zt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var qt=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 _t(it,ot){return re(it).appendChild(ot)}function Zt(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 Et=0;Et<ot.length;++Et)pt.appendChild(ot[Et]);return pt}function Pe(it,ot,ct,dt){var pt=Zt(it,ot,ct,dt);return pt.setAttribute("role","presentation"),pt}var ge;document.createRange?ge=function(it,ot,ct,dt){var pt=document.createRange();return pt.setEnd(dt||it,ct),pt.setStart(it,ot),pt}:ge=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 He(){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 Ie(it,ot){var ct=it.className;zt(ot).test(ct)||(it.className+=(ct?" ":"")+ot)}function In(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()};Nt?bn=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Ae&&(bn=function(it){try{it.select()}catch(ot){}});function cn(it){var ot=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,ot)}}function Xn(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 Et=dt||0,Rt=pt||0;;){var Ut=it.indexOf(" ",Et);if(Ut<0||Ut>=ot)return Rt+(ot-Et);Rt+=Ut-Et,Rt+=ct-Rt%ct,Et=Ut+1}}var jt=function(){this.id=null,this.f=null,this.time=0,this.handler=cn(this.onTimeout,this)};jt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},jt.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 Ee(it,ot){for(var ct=0;ct<it.length;++ct)if(it[ct]==ot)return ct;return-1}var sn=50,Tn={toString:function(){return"CodeMirror.Pass"}},Le={scroll:!1},gn={origin:"*mouse"},$e={origin:"+move"};function Fn(it,ot,ct){for(var dt=0,pt=0;;){var Et=it.indexOf(" ",dt);Et==-1&&(Et=it.length);var Rt=Et-dt;if(Et==it.length||pt+Rt>=ot)return dt+Math.min(Rt,ot-pt);if(pt+=Et-dt,pt+=ct-pt%ct,dt=Et+1,pt>=ot)return dt}}var ke=[""];function fe(it){for(;ke.length<=it;)ke.push(Re(ke)+" ");return ke[it]}function Re(it){return it[it.length-1]}function dn(it,ot){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=ot(it[dt],dt);return ct}function Te(it,ot,ct){for(var dt=0,pt=ct(ot);dt<it.length&&ct(it[dt])<=pt;)dt++;it.splice(dt,0,ot)}function Ht(){}function At(it,ot){var ct;return Object.create?ct=Object.create(it):(Ht.prototype=it,ct=new Ht),ot&&Xn(ot,ct),ct}var Ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Tt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Ct.test(it))}function Xt(it,ot){return ot?ot.source.indexOf("\\w")>-1&&Tt(it)?!0:ot.test(it):Tt(it)}function kt(it){for(var ot in it)if(it.hasOwnProperty(ot)&&it[ot])return!1;return!0}var ee=/[\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 rn(it){return it.charCodeAt(0)>=768&&ee.test(it)}function on(it,ot,ct){for(;(ct<0?ot>0:ot<it.length)&&rn(it.charAt(ot));)ot+=ct;return ot}function Un(it,ot,ct){for(var dt=ot>ct?-1:1;;){if(ot==ct)return ot;var pt=(ot+ct)/2,Et=dt<0?Math.ceil(pt):Math.floor(pt);if(Et==ot)return it(Et)?ot:ct;it(Et)?ct=Et:ot=Et+dt}}function en(it,ot,ct,dt){if(!it)return dt(ot,ct,"ltr",0);for(var pt=!1,Et=0;Et<it.length;++Et){var Rt=it[Et];(Rt.from<ct&&Rt.to>ot||ot==ct&&Rt.to==ot)&&(dt(Math.max(Rt.from,ot),Math.min(Rt.to,ct),Rt.level==1?"rtl":"ltr",Et),pt=!0)}pt||dt(ot,ct,"ltr")}var Mn=null;function Ke(it,ot,ct){var dt;Mn=null;for(var pt=0;pt<it.length;++pt){var Et=it[pt];if(Et.from<ot&&Et.to>ot)return pt;Et.to==ot&&(Et.from!=Et.to&&ct=="before"?dt=pt:Mn=pt),Et.from==ot&&(Et.from!=Et.to&&ct!="before"?dt=pt:Mn=pt)}return dt!=null?dt:Mn}var jn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ot="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(ae){return ae<=247?it.charAt(ae):1424<=ae&&ae<=1524?"R":1536<=ae&&ae<=1785?ot.charAt(ae-1536):1774<=ae&&ae<=2220?"r":8192<=ae&&ae<=8203?"w":ae==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,Et=/[LRr]/,Rt=/[Lb1n]/,Ut=/[1n]/;function Vt(ae,be,se){this.level=ae,this.from=be,this.to=se}return function(ae,be){var se=be=="ltr"?"L":"R";if(ae.length==0||be=="ltr"&&!dt.test(ae))return!1;for(var _e=ae.length,qe=[],Jn=0;Jn<_e;++Jn)qe.push(ct(ae.charCodeAt(Jn)));for(var vi=0,Ti=se;vi<_e;++vi){var Zi=qe[vi];Zi=="m"?qe[vi]=Ti:Ti=Zi}for(var br=0,ur=se;br<_e;++br){var Ir=qe[br];Ir=="1"&&ur=="r"?qe[br]="n":Et.test(Ir)&&(ur=Ir,Ir=="r"&&(qe[br]="R"))}for(var Bo=1,lr=qe[0];Bo<_e-1;++Bo){var da=qe[Bo];da=="+"&&lr=="1"&&qe[Bo+1]=="1"?qe[Bo]="1":da==","&&lr==qe[Bo+1]&&(lr=="1"||lr=="n")&&(qe[Bo]=lr),lr=da}for(var Ds=0;Ds<_e;++Ds){var zl=qe[Ds];if(zl==",")qe[Ds]="N";else if(zl=="%"){var Ks=void 0;for(Ks=Ds+1;Ks<_e&&qe[Ks]=="%";++Ks);for(var Yu=Ds&&qe[Ds-1]=="!"||Ks<_e&&qe[Ks]=="1"?"1":"N",vu=Ds;vu<Ks;++vu)qe[vu]=Yu;Ds=Ks-1}}for(var Ll=0,rh=se;Ll<_e;++Ll){var iu=qe[Ll];rh=="L"&&iu=="1"?qe[Ll]="L":Et.test(iu)&&(rh=iu)}for(var Ml=0;Ml<_e;++Ml)if(pt.test(qe[Ml])){var Xa=void 0;for(Xa=Ml+1;Xa<_e&&pt.test(qe[Xa]);++Xa);for(var Qs=(Ml?qe[Ml-1]:se)=="L",Kl=(Xa<_e?qe[Xa]:se)=="L",ru=Qs==Kl?Qs?"L":"R":se,sc=Ml;sc<Xa;++sc)qe[sc]=ru;Ml=Xa-1}for(var Vs=[],jh,ol=0;ol<_e;)if(Rt.test(qe[ol])){var sg=ol;for(++ol;ol<_e&&Rt.test(qe[ol]);++ol);Vs.push(new Vt(0,sg,ol))}else{var Sh=ol,oh=Vs.length,Uu=be=="rtl"?1:0;for(++ol;ol<_e&&qe[ol]!="L";++ol);for(var Ss=Sh;Ss<ol;)if(Ut.test(qe[Ss])){Sh<Ss&&(Vs.splice(oh,0,new Vt(1,Sh,Ss)),oh+=Uu);var Vl=Ss;for(++Ss;Ss<ol&&Ut.test(qe[Ss]);++Ss);Vs.splice(oh,0,new Vt(2,Vl,Ss)),oh+=Uu,Sh=Ss}else++Ss;Sh<ol&&Vs.splice(oh,0,new Vt(1,Sh,ol))}return be=="ltr"&&(Vs[0].level==1&&(jh=ae.match(/^\s+/))&&(Vs[0].from=jh[0].length,Vs.unshift(new Vt(0,0,jh[0].length))),Re(Vs).level==1&&(jh=ae.match(/\s+$/))&&(Re(Vs).to-=jh[0].length,Vs.push(new Vt(0,_e-jh[0].length,_e)))),be=="rtl"?Vs.reverse():Vs}}();function ni(it,ot){var ct=it.order;return ct==null&&(ct=it.order=jn(it.text,ot)),ct}var Oi=[],$n=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]||Oi).concat(ct)}};function Ai(it,ot){return it._handlers&&it._handlers[ot]||Oi}function Ki(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 Et=Ee(pt,ct);Et>-1&&(dt[ot]=pt.slice(0,Et).concat(pt.slice(Et+1)))}}}function ii(it,ot){var ct=Ai(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 mi(it,ot,ct){return typeof ot=="string"&&(ot={type:ot,preventDefault:function(){this.defaultPrevented=!0}}),ii(it,ct||ot.type,it,ot),Di(ot)||ot.codemirrorIgnore}function di(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)Ee(ct,ot[dt])==-1&&ct.push(ot[dt])}function gi(it,ot){return Ai(it,ot).length>0}function hr(it){it.prototype.on=function(ot,ct){$n(this,ot,ct)},it.prototype.off=function(ot,ct){Ki(this,ot,ct)}}function Or(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function sr(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Di(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function jr(it){Or(it),sr(it)}function ao(it){return it.target||it.srcElement}function fa(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 _o=function(){if(Ae&&Dt<9)return!1;var it=Zt("div");return"draggable"in it||"dragDrop"in it}(),ta;function Ga(it){if(ta==null){var ot=Zt("span","\u200B");_t(it,Zt("span",[ot,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(ta=ot.offsetWidth<=1&&ot.offsetHeight>2&&!(Ae&&Dt<8))}var ct=ta?Zt("span","\u200B"):Zt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var zo;function gr(it){if(zo!=null)return zo;var ot=_t(it,document.createTextNode("A\u062EA")),ct=ge(ot,0,1).getBoundingClientRect(),dt=ge(ot,1,2).getBoundingClientRect();return re(it),!ct||ct.left==ct.right?!1:zo=dt.right-ct.right<3}var vn=`
|
|
|
|
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 Et=it.slice(ot,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=Et.indexOf("\r");Rt!=-1?(ct.push(Et.slice(0,Rt)),ot+=Rt+1):(ct.push(Et),ot=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},wt=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},Ve=function(){var it=Zt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Ye=null;function xn(it){if(Ye!=null)return Ye;var ot=_t(it,Zt("span","x")),ct=ot.getBoundingClientRect(),dt=ge(ot,0,1).getBoundingClientRect();return Ye=Math.abs(ct.left-dt.left)>1}var fn={},ln={};function Yn(it,ot){arguments.length>2&&(ot.dependencies=Array.prototype.slice.call(arguments,2)),fn[it]=ot}function Li(it,ot){ln[it]=ot}function Ge(it){if(typeof it=="string"&&ln.hasOwnProperty(it))it=ln[it];else if(it&&typeof it.name=="string"&&ln.hasOwnProperty(it.name)){var ot=ln[it.name];typeof ot=="string"&&(ot={name:ot}),it=At(ot,it),it.name=ot.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Ge("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Ge("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function je(it,ot){ot=Ge(ot);var ct=fn[ot.name];if(!ct)return je(it,"text/plain");var dt=ct(it,ot);if(we.hasOwnProperty(ot.name)){var pt=we[ot.name];for(var Et in pt)pt.hasOwnProperty(Et)&&(dt.hasOwnProperty(Et)&&(dt["_"+Et]=dt[Et]),dt[Et]=pt[Et])}if(dt.name=ot.name,ot.helperType&&(dt.helperType=ot.helperType),ot.modeProps)for(var Rt in ot.modeProps)dt[Rt]=ot.modeProps[Rt];return dt}var we={};function Ze(it,ot){var ct=we.hasOwnProperty(it)?we[it]:we[it]={};Xn(ot,ct)}function ai(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 ui(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 qn(it,ot,ct){return it.startState?it.startState(ot,ct):!0}var ze=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};ze.prototype.eol=function(){return this.pos>=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ze.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},ze.prototype.eatWhile=function(it){for(var ot=this.pos;this.eat(it););return this.pos>ot},ze.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(it){var ot=this.string.indexOf(it,this.pos);if(ot>-1)return this.pos=ot,!0},ze.prototype.backUp=function(it){this.pos-=it},ze.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)},ze.prototype.indentation=function(){return $t(this.string,null,this.tabSize)-(this.lineStart?$t(this.string,this.lineStart,this.tabSize):0)},ze.prototype.match=function(it,ot,ct){if(typeof it=="string"){var dt=function(Rt){return ct?Rt.toLowerCase():Rt},pt=this.string.substr(this.pos,it.length);if(dt(pt)==dt(it))return ot!==!1&&(this.pos+=it.length),!0}else{var Et=this.string.slice(this.pos).match(it);return Et&&Et.index>0?null:(Et&&ot!==!1&&(this.pos+=Et[0].length),Et)}},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(it,ot){this.lineStart+=it;try{return ot()}finally{this.lineStart-=it}},ze.prototype.lookAhead=function(it){var ot=this.lineOracle;return ot&&ot.lookAhead(it)},ze.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function yn(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],Et=pt.chunkSize();if(ot<Et){ct=pt;break}ot-=Et}return ct.lines[ot]}function Ni(it,ot,ct){var dt=[],pt=ot.line;return it.iter(ot.line,ct.line+1,function(Et){var Rt=Et.text;pt==ct.line&&(Rt=Rt.slice(0,ct.ch)),pt==ot.line&&(Rt=Rt.slice(ot.ch)),dt.push(Rt),++pt}),dt}function Yi(it,ot,ct){var dt=[];return it.iter(ot,ct,function(pt){dt.push(pt.text)}),dt}function Dn(it,ot){var ct=ot-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function De(it){if(it.parent==null)return null;for(var ot=it.parent,ct=Ee(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 xi(it,ot){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var pt=it.children[dt],Et=pt.height;if(ot<Et){it=pt;continue t}ot-=Et,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var Rt=0;Rt<it.lines.length;++Rt){var Ut=it.lines[Rt],Vt=Ut.height;if(ot<Vt)break;ot-=Vt}return ct+Rt}function Ui(it,ot){return ot>=it.first&&ot<it.first+it.size}function Tr(it,ot){return String(it.lineNumberFormatter(ot+it.firstLineNumber))}function Cn(it,ot,ct){if(ct===void 0&&(ct=null),!(this instanceof Cn))return new Cn(it,ot,ct);this.line=it,this.ch=ot,this.sticky=ct}function Ri(it,ot){return it.line-ot.line||it.ch-ot.ch}function ro(it,ot){return it.sticky==ot.sticky&&Ri(it,ot)==0}function Sa(it){return Cn(it.line,it.ch)}function bo(it,ot){return Ri(it,ot)<0?ot:it}function ki(it,ot){return Ri(it,ot)<0?it:ot}function Bi(it,ot){return Math.max(it.first,Math.min(ot,it.first+it.size-1))}function Hi(it,ot){if(ot.line<it.first)return Cn(it.first,0);var ct=it.first+it.size-1;return ot.line>ct?Cn(ct,yn(it,ct).text.length):to(ot,yn(it,ot.line).text.length)}function to(it,ot){var ct=it.ch;return ct==null||ct>ot?Cn(it.line,ot):ct<0?Cn(it.line,0):it}function Yr(it,ot){for(var ct=[],dt=0;dt<ot.length;dt++)ct[dt]=Hi(it,ot[dt]);return ct}var ti=function(it,ot){this.state=it,this.lookAhead=ot},or=function(it,ot,ct,dt){this.state=ot,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};or.prototype.lookAhead=function(it){var ot=this.doc.getLine(this.line+it);return ot!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),ot},or.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}},or.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},or.fromSaved=function(it,ot,ct){return ot instanceof ti?new or(it,ai(it.mode,ot.state),ct,ot.lookAhead):new or(it,ai(it.mode,ot),ct)},or.prototype.save=function(it){var ot=it!==!1?ai(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ti(ot,this.maxLookAhead):ot};function pl(it,ot,ct,dt){var pt=[it.state.modeGen],Et={};To(it,ot.text,it.doc.mode,ct,function(ae,be){return pt.push(ae,be)},Et,dt);for(var Rt=ct.state,Ut=function(ae){ct.baseTokens=pt;var be=it.state.overlays[ae],se=1,_e=0;ct.state=!0,To(it,ot.text,be.mode,ct,function(qe,Jn){for(var vi=se;_e<qe;){var Ti=pt[se];Ti>qe&&pt.splice(se,1,qe,pt[se+1],Ti),se+=2,_e=Math.min(qe,Ti)}if(Jn)if(be.opaque)pt.splice(vi,se-vi,qe,"overlay "+Jn),se=vi+2;else for(;vi<se;vi+=2){var Zi=pt[vi+1];pt[vi+1]=(Zi?Zi+" ":"")+"overlay "+Jn}},Et),ct.state=Rt,ct.baseTokens=null,ct.baseTokenPos=1},Vt=0;Vt<it.state.overlays.length;++Vt)Ut(Vt);return{styles:pt,classes:Et.bgClass||Et.textClass?Et:null}}function gs(it,ot,ct){if(!ot.styles||ot.styles[0]!=it.state.modeGen){var dt=qa(it,De(ot)),pt=ot.text.length>it.options.maxHighlightLength&&ai(it.doc.mode,dt.state),Et=pl(it,ot,dt);pt&&(dt.state=pt),ot.stateAfter=dt.save(!pt),ot.styles=Et.styles,Et.classes?ot.styleClasses=Et.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 qa(it,ot,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new or(dt,!0,ot);var Et=so(it,ot,ct),Rt=Et>dt.first&&yn(dt,Et-1).stateAfter,Ut=Rt?or.fromSaved(dt,Rt,Et):new or(dt,qn(dt.mode),Et);return dt.iter(Et,ot,function(Vt){We(it,Vt.text,Ut);var ae=Ut.line;Vt.stateAfter=ae==ot-1||ae%5==0||ae>=pt.viewFrom&&ae<pt.viewTo?Ut.save():null,Ut.nextLine()}),ct&&(dt.modeFrontier=Ut.line),Ut}function We(it,ot,ct,dt){var pt=it.doc.mode,Et=new ze(ot,it.options.tabSize,ct);for(Et.start=Et.pos=dt||0,ot==""&&mr(pt,ct.state);!Et.eol();)xo(pt,Et,ct.state),Et.start=Et.pos}function mr(it,ot){if(it.blankLine)return it.blankLine(ot);if(it.innerMode){var ct=ui(it,ot);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function xo(it,ot,ct,dt){for(var pt=0;pt<10;pt++){dt&&(dt[0]=ui(it,ct).mode);var Et=it.token(ot,ct);if(ot.pos>ot.start)return Et}throw new Error("Mode "+it.name+" failed to advance stream.")}var ir=function(it,ot,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=ot||null,this.state=ct};function Ea(it,ot,ct,dt){var pt=it.doc,Et=pt.mode,Rt;ot=Hi(pt,ot);var Ut=yn(pt,ot.line),Vt=qa(it,ot.line,ct),ae=new ze(Ut.text,it.options.tabSize,Vt),be;for(dt&&(be=[]);(dt||ae.pos<ot.ch)&&!ae.eol();)ae.start=ae.pos,Rt=xo(Et,ae,Vt.state),dt&&be.push(new ir(ae,Rt,ai(pt.mode,Vt.state)));return dt?be:new ir(ae,Rt,Vt.state)}function mo(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 To(it,ot,ct,dt,pt,Et,Rt){var Ut=ct.flattenSpans;Ut==null&&(Ut=it.options.flattenSpans);var Vt=0,ae=null,be=new ze(ot,it.options.tabSize,dt),se,_e=it.options.addModeClass&&[null];for(ot==""&&mo(mr(ct,dt.state),Et);!be.eol();){if(be.pos>it.options.maxHighlightLength?(Ut=!1,Rt&&We(it,ot,dt,be.pos),be.pos=ot.length,se=null):se=mo(xo(ct,be,dt.state,_e),Et),_e){var qe=_e[0].name;qe&&(se="m-"+(se?qe+" "+se:qe))}if(!Ut||ae!=se){for(;Vt<be.start;)Vt=Math.min(be.start,Vt+5e3),pt(Vt,ae);ae=se}be.start=be.pos}for(;Vt<be.pos;){var Jn=Math.min(be.pos,Vt+5e3);pt(Jn,ae),Vt=Jn}}function so(it,ot,ct){for(var dt,pt,Et=it.doc,Rt=ct?-1:ot-(it.doc.mode.innerMode?1e3:100),Ut=ot;Ut>Rt;--Ut){if(Ut<=Et.first)return Et.first;var Vt=yn(Et,Ut-1),ae=Vt.stateAfter;if(ae&&(!ct||Ut+(ae instanceof ti?ae.lookAhead:0)<=Et.modeFrontier))return Ut;var be=$t(Vt.text,null,it.options.tabSize);(pt==null||dt>be)&&(pt=Ut-1,dt=be)}return pt}function Hr(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=yn(it,dt).stateAfter;if(pt&&(!(pt instanceof ti)||dt+pt.lookAhead<ot)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var ea=!1,Ln=!1;function La(){ea=!0}function pn(){Ln=!0}function vo(it,ot,ct){this.marker=it,this.from=ot,this.to=ct}function Fs(it,ot){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==ot)return dt}}function Ia(it,ot){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=ot&&(ct||(ct=[])).push(it[dt]);return ct}function $s(it,ot){it.markedSpans=it.markedSpans?it.markedSpans.concat([ot]):[ot],ot.marker.attachLine(it)}function Ca(it,ot,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Et=it[pt],Rt=Et.marker,Ut=Et.from==null||(Rt.inclusiveLeft?Et.from<=ot:Et.from<ot);if(Ut||Et.from==ot&&Rt.type=="bookmark"&&(!ct||!Et.marker.insertLeft)){var Vt=Et.to==null||(Rt.inclusiveRight?Et.to>=ot:Et.to>ot);(dt||(dt=[])).push(new vo(Rt,Et.from,Vt?null:Et.to))}}return dt}function Fo(it,ot,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Et=it[pt],Rt=Et.marker,Ut=Et.to==null||(Rt.inclusiveRight?Et.to>=ot:Et.to>ot);if(Ut||Et.from==ot&&Rt.type=="bookmark"&&(!ct||Et.marker.insertLeft)){var Vt=Et.from==null||(Rt.inclusiveLeft?Et.from<=ot:Et.from<ot);(dt||(dt=[])).push(new vo(Rt,Vt?null:Et.from-ot,Et.to==null?null:Et.to-ot))}}return dt}function Fa(it,ot){if(ot.full)return null;var ct=Ui(it,ot.from.line)&&yn(it,ot.from.line).markedSpans,dt=Ui(it,ot.to.line)&&yn(it,ot.to.line).markedSpans;if(!ct&&!dt)return null;var pt=ot.from.ch,Et=ot.to.ch,Rt=Ri(ot.from,ot.to)==0,Ut=Ca(ct,pt,Rt),Vt=Fo(dt,Et,Rt),ae=ot.text.length==1,be=Re(ot.text).length+(ae?pt:0);if(Ut)for(var se=0;se<Ut.length;++se){var _e=Ut[se];if(_e.to==null){var qe=Fs(Vt,_e.marker);qe?ae&&(_e.to=qe.to==null?null:qe.to+be):_e.to=pt}}if(Vt)for(var Jn=0;Jn<Vt.length;++Jn){var vi=Vt[Jn];if(vi.to!=null&&(vi.to+=be),vi.from==null){var Ti=Fs(Ut,vi.marker);Ti||(vi.from=be,ae&&(Ut||(Ut=[])).push(vi))}else vi.from+=be,ae&&(Ut||(Ut=[])).push(vi)}Ut&&(Ut=al(Ut)),Vt&&Vt!=Ut&&(Vt=al(Vt));var Zi=[Ut];if(!ae){var br=ot.text.length-2,ur;if(br>0&&Ut)for(var Ir=0;Ir<Ut.length;++Ir)Ut[Ir].to==null&&(ur||(ur=[])).push(new vo(Ut[Ir].marker,null,null));for(var Bo=0;Bo<br;++Bo)Zi.push(ur);Zi.push(Vt)}return Zi}function al(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 la(it,ot,ct){var dt=null;if(it.iter(ot.line,ct.line+1,function(qe){if(qe.markedSpans)for(var Jn=0;Jn<qe.markedSpans.length;++Jn){var vi=qe.markedSpans[Jn].marker;vi.readOnly&&(!dt||Ee(dt,vi)==-1)&&(dt||(dt=[])).push(vi)}}),!dt)return null;for(var pt=[{from:ot,to:ct}],Et=0;Et<dt.length;++Et)for(var Rt=dt[Et],Ut=Rt.find(0),Vt=0;Vt<pt.length;++Vt){var ae=pt[Vt];if(!(Ri(ae.to,Ut.from)<0||Ri(ae.from,Ut.to)>0)){var be=[Vt,1],se=Ri(ae.from,Ut.from),_e=Ri(ae.to,Ut.to);(se<0||!Rt.inclusiveLeft&&!se)&&be.push({from:ae.from,to:Ut.from}),(_e>0||!Rt.inclusiveRight&&!_e)&&be.push({from:Ut.to,to:ae.to}),pt.splice.apply(pt,be),Vt+=be.length-3}}return pt}function yi(it){var ot=it.markedSpans;if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.detachLine(it);it.markedSpans=null}}function Qt(it,ot){if(ot){for(var ct=0;ct<ot.length;++ct)ot[ct].marker.attachLine(it);it.markedSpans=ot}}function os(it){return it.inclusiveLeft?-1:0}function uu(it){return it.inclusiveRight?1:0}function hu(it,ot){var ct=it.lines.length-ot.lines.length;if(ct!=0)return ct;var dt=it.find(),pt=ot.find(),Et=Ri(dt.from,pt.from)||os(it)-os(ot);if(Et)return-Et;var Rt=Ri(dt.to,pt.to)||uu(it)-uu(ot);return Rt||ot.id-it.id}function Ys(it,ot){var ct=Ln&&it.markedSpans,dt;if(ct)for(var pt=void 0,Et=0;Et<ct.length;++Et)pt=ct[Et],pt.marker.collapsed&&(ot?pt.from:pt.to)==null&&(!dt||hu(dt,pt.marker)<0)&&(dt=pt.marker);return dt}function cu(it){return Ys(it,!0)}function tl(it){return Ys(it,!1)}function Mh(it,ot){var ct=Ln&&it.markedSpans,dt;if(ct)for(var pt=0;pt<ct.length;++pt){var Et=ct[pt];Et.marker.collapsed&&(Et.from==null||Et.from<ot)&&(Et.to==null||Et.to>ot)&&(!dt||hu(dt,Et.marker)<0)&&(dt=Et.marker)}return dt}function Cu(it,ot,ct,dt,pt){var Et=yn(it,ot),Rt=Ln&&Et.markedSpans;if(Rt)for(var Ut=0;Ut<Rt.length;++Ut){var Vt=Rt[Ut];if(Vt.marker.collapsed){var ae=Vt.marker.find(0),be=Ri(ae.from,ct)||os(Vt.marker)-os(pt),se=Ri(ae.to,dt)||uu(Vt.marker)-uu(pt);if(!(be>=0&&se<=0||be<=0&&se>=0)&&(be<=0&&(Vt.marker.inclusiveRight&&pt.inclusiveLeft?Ri(ae.to,ct)>=0:Ri(ae.to,ct)>0)||be>=0&&(Vt.marker.inclusiveRight&&pt.inclusiveLeft?Ri(ae.from,dt)<=0:Ri(ae.from,dt)<0)))return!0}}}function Ma(it){for(var ot;ot=cu(it);)it=ot.find(-1,!0).line;return it}function Ja(it){for(var ot;ot=tl(it);)it=ot.find(1,!0).line;return it}function cr(it){for(var ot,ct;ot=tl(it);)it=ot.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function Xi(it,ot){var ct=yn(it,ot),dt=Ma(ct);return ct==dt?ot:De(dt)}function Rr(it,ot){if(ot>it.lastLine())return ot;var ct=yn(it,ot),dt;if(!un(it,ct))return ot;for(;dt=tl(ct);)ct=dt.find(1,!0).line;return De(ct)+1}function un(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&&vr(it,ot,dt))return!0}}}function vr(it,ot,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return vr(it,dt.line,Fs(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==ot.text.length)return!0;for(var pt=void 0,Et=0;Et<ot.markedSpans.length;++Et)if(pt=ot.markedSpans[Et],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&vr(it,ot,pt))return!0}function oo(it){it=Ma(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 Et=ct.parent;Et;ct=Et,Et=ct.parent)for(var Rt=0;Rt<Et.children.length;++Rt){var Ut=Et.children[Rt];if(Ut==ct)break;ot+=Ut.height}return ot}function za(it){if(it.height==0)return 0;for(var ot=it.text.length,ct,dt=it;ct=cu(dt);){var pt=ct.find(0,!0);dt=pt.from.line,ot+=pt.from.ch-pt.to.ch}for(dt=it;ct=tl(dt);){var Et=ct.find(0,!0);ot-=dt.text.length-Et.from.ch,dt=Et.to.line,ot+=dt.text.length-Et.to.ch}return ot}function ka(it){var ot=it.display,ct=it.doc;ot.maxLine=yn(ct,ct.first),ot.maxLineLength=za(ot.maxLine),ot.maxLineChanged=!0,ct.iter(function(dt){var pt=za(dt);pt>ot.maxLineLength&&(ot.maxLineLength=pt,ot.maxLine=dt)})}var Na=function(it,ot,ct){this.text=it,Qt(this,ot),this.height=ct?ct(this):1};Na.prototype.lineNo=function(){return De(this)},hr(Na);function Ws(it,ot,ct,dt){it.text=ot,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),yi(it),Qt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&Dn(it,pt)}function xl(it){it.parent=null,yi(it)}var wl={},Xh={};function fh(it,ot){if(!it||/^\s*$/.test(it))return null;var ct=ot.addModeClass?Xh:wl;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function Xe(it,ot){var ct=Pe("span",null,null,Jt?"padding-right: .1px":null),dt={pre:Pe("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 Et=pt?ot.rest[pt-1]:ot.line,Rt=void 0;dt.pos=0,dt.addToken=Au,gr(it.display.measure)&&(Rt=ni(Et,it.doc.direction))&&(dt.addToken=as(dt.addToken,Rt)),dt.map=[];var Ut=ot!=it.display.externalMeasured&&De(Et);Fh(Et,dt,gs(it,Et,Ut)),Et.styleClasses&&(Et.styleClasses.bgClass&&(dt.bgClass=In(Et.styleClasses.bgClass,dt.bgClass||"")),Et.styleClasses.textClass&&(dt.textClass=In(Et.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(Ga(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(Jt){var Vt=dt.content.lastChild;(/\bcm-tab\b/.test(Vt.className)||Vt.querySelector&&Vt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return ii(it,"renderLine",it,ot.line,dt.pre),dt.pre.className&&(dt.textClass=In(dt.pre.className,dt.textClass||"")),dt}function bl(it){var ot=Zt("span","\u2022","cm-invalidchar");return ot.title="\\u"+it.charCodeAt(0).toString(16),ot.setAttribute("aria-label",ot.title),ot}function Au(it,ot,ct,dt,pt,Et,Rt){if(ot){var Ut=it.splitSpaces?kh(ot,it.trailingSpace):ot,Vt=it.cm.state.specialChars,ae=!1,be;if(!Vt.test(ot))it.col+=ot.length,be=document.createTextNode(Ut),it.map.push(it.pos,it.pos+ot.length,be),Ae&&Dt<9&&(ae=!0),it.pos+=ot.length;else{be=document.createDocumentFragment();for(var se=0;;){Vt.lastIndex=se;var _e=Vt.exec(ot),qe=_e?_e.index-se:ot.length-se;if(qe){var Jn=document.createTextNode(Ut.slice(se,se+qe));Ae&&Dt<9?be.appendChild(Zt("span",[Jn])):be.appendChild(Jn),it.map.push(it.pos,it.pos+qe,Jn),it.col+=qe,it.pos+=qe}if(!_e)break;se+=qe+1;var vi=void 0;if(_e[0]==" "){var Ti=it.cm.options.tabSize,Zi=Ti-it.col%Ti;vi=be.appendChild(Zt("span",fe(Zi),"cm-tab")),vi.setAttribute("role","presentation"),vi.setAttribute("cm-text"," "),it.col+=Zi}else _e[0]=="\r"||_e[0]==`
|
|
`?(vi=be.appendChild(Zt("span",_e[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vi.setAttribute("cm-text",_e[0]),it.col+=1):(vi=it.cm.options.specialCharPlaceholder(_e[0]),vi.setAttribute("cm-text",_e[0]),Ae&&Dt<9?be.appendChild(Zt("span",[vi])):be.appendChild(vi),it.col+=1);it.map.push(it.pos,it.pos+1,vi),it.pos++}}if(it.trailingSpace=Ut.charCodeAt(ot.length-1)==32,ct||dt||pt||ae||Et||Rt){var br=ct||"";dt&&(br+=dt),pt&&(br+=pt);var ur=Zt("span",[be],br,Et);if(Rt)for(var Ir in Rt)Rt.hasOwnProperty(Ir)&&Ir!="style"&&Ir!="class"&&ur.setAttribute(Ir,Rt[Ir]);return it.content.appendChild(ur)}it.content.appendChild(be)}}function kh(it,ot){if(it.length>1&&!/ /.test(it))return it;for(var ct=ot,dt="",pt=0;pt<it.length;pt++){var Et=it.charAt(pt);Et==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(Et="\xA0"),dt+=Et,ct=Et==" "}return dt}function as(it,ot){return function(ct,dt,pt,Et,Rt,Ut,Vt){pt=pt?pt+" cm-force-border":"cm-force-border";for(var ae=ct.pos,be=ae+dt.length;;){for(var se=void 0,_e=0;_e<ot.length&&(se=ot[_e],!(se.to>ae&&se.from<=ae));_e++);if(se.to>=be)return it(ct,dt,pt,Et,Rt,Ut,Vt);it(ct,dt.slice(0,se.to-ae),pt,Et,null,Ut,Vt),Et=null,dt=dt.slice(se.to-ae),ae=se.to}}}function bh(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 Fh(it,ot,ct){var dt=it.markedSpans,pt=it.text,Et=0;if(!dt){for(var Rt=1;Rt<ct.length;Rt+=2)ot.addToken(ot,pt.slice(Et,Et=ct[Rt]),fh(ct[Rt+1],ot.cm.options));return}for(var Ut=pt.length,Vt=0,ae=1,be="",se,_e,qe=0,Jn,vi,Ti,Zi,br;;){if(qe==Vt){Jn=vi=Ti=_e="",br=null,Zi=null,qe=1/0;for(var ur=[],Ir=void 0,Bo=0;Bo<dt.length;++Bo){var lr=dt[Bo],da=lr.marker;if(da.type=="bookmark"&&lr.from==Vt&&da.widgetNode)ur.push(da);else if(lr.from<=Vt&&(lr.to==null||lr.to>Vt||da.collapsed&&lr.to==Vt&&lr.from==Vt)){if(lr.to!=null&&lr.to!=Vt&&qe>lr.to&&(qe=lr.to,vi=""),da.className&&(Jn+=" "+da.className),da.css&&(_e=(_e?_e+";":"")+da.css),da.startStyle&&lr.from==Vt&&(Ti+=" "+da.startStyle),da.endStyle&&lr.to==qe&&(Ir||(Ir=[])).push(da.endStyle,lr.to),da.title&&((br||(br={})).title=da.title),da.attributes)for(var Ds in da.attributes)(br||(br={}))[Ds]=da.attributes[Ds];da.collapsed&&(!Zi||hu(Zi.marker,da)<0)&&(Zi=lr)}else lr.from>Vt&&qe>lr.from&&(qe=lr.from)}if(Ir)for(var zl=0;zl<Ir.length;zl+=2)Ir[zl+1]==qe&&(vi+=" "+Ir[zl]);if(!Zi||Zi.from==Vt)for(var Ks=0;Ks<ur.length;++Ks)bh(ot,0,ur[Ks]);if(Zi&&(Zi.from||0)==Vt){if(bh(ot,(Zi.to==null?Ut+1:Zi.to)-Vt,Zi.marker,Zi.from==null),Zi.to==null)return;Zi.to==Vt&&(Zi=!1)}}if(Vt>=Ut)break;for(var Yu=Math.min(Ut,qe);;){if(be){var vu=Vt+be.length;if(!Zi){var Ll=vu>Yu?be.slice(0,Yu-Vt):be;ot.addToken(ot,Ll,se?se+Jn:Jn,Ti,Vt+Ll.length==qe?vi:"",_e,br)}if(vu>=Yu){be=be.slice(Yu-Vt),Vt=Yu;break}Vt=vu,Ti=""}be=pt.slice(Et,Et=ct[ae++]),se=fh(ct[ae++],ot.cm.options)}}}function Jh(it,ot,ct){this.line=ot,this.rest=cr(ot),this.size=this.rest?De(Re(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=un(it,ot)}function ja(it,ot,ct){for(var dt=[],pt,Et=ot;Et<ct;Et=pt){var Rt=new Jh(it.doc,yn(it.doc,Et),Et);pt=Et+Rt.size,dt.push(Rt)}return dt}var Ps=null;function eo(it){Ps?Ps.ops.push(it):it.ownsGroup=Ps={ops:[it],delayedCallbacks:[]}}function Oo(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 Wa(it,ot){var ct=it.ownsGroup;if(ct)try{Oo(ct)}finally{Ps=null,ot(ct)}}var ps=null;function $i(it,ot){var ct=Ai(it,ot);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),pt;Ps?pt=Ps.delayedCallbacks:ps?pt=ps:(pt=ps=[],setTimeout(ad,0));for(var Et=function(Ut){pt.push(function(){return ct[Ut].apply(null,dt)})},Rt=0;Rt<ct.length;++Rt)Et(Rt)}}function ad(){var it=ps;ps=null;for(var ot=0;ot<it.length;++ot)it[ot]()}function Qh(it,ot,ct,dt){for(var pt=0;pt<ot.changes.length;pt++){var Et=ot.changes[pt];Et=="text"?wi(it,ot):Et=="gutter"?bs(it,ot,ct,dt):Et=="class"?ms(it,ot):Et=="widget"&&_u(it,ot,dt)}ot.changes=null}function Fl(it){return it.node==it.text&&(it.node=Zt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Ae&&Dt<8&&(it.node.style.zIndex=2)),it.node}function sd(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=Fl(ot);ot.background=dt.insertBefore(Zt("div",null,ct),dt.firstChild),it.display.input.setUneditable(ot.background)}}function _h(it,ot){var ct=it.display.externalMeasured;return ct&&ct.line==ot.line?(it.display.externalMeasured=null,ot.measure=ct.measure,ct.built):Xe(it,ot)}function wi(it,ot){var ct=ot.text.className,dt=_h(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,ms(it,ot)):ct&&(ot.text.className=ct)}function ms(it,ot){sd(it,ot),ot.line.wrapClass?Fl(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 bs(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=Fl(ot);ot.gutterBackground=Zt("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 Et=ot.line.gutterMarkers;if(it.options.lineNumbers||Et){var Rt=Fl(ot),Ut=ot.gutter=Zt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ut),Rt.insertBefore(Ut,ot.text),ot.line.gutterClass&&(Ut.className+=" "+ot.line.gutterClass),it.options.lineNumbers&&(!Et||!Et["CodeMirror-linenumbers"])&&(ot.lineNumber=Ut.appendChild(Zt("div",Tr(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Et)for(var Vt=0;Vt<it.display.gutterSpecs.length;++Vt){var ae=it.display.gutterSpecs[Vt].className,be=Et.hasOwnProperty(ae)&&Et[ae];be&&Ut.appendChild(Zt("div",[be],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[ae]+"px; width: "+dt.gutterWidth[ae]+"px"))}}}function _u(it,ot,ct){ot.alignable&&(ot.alignable=null);for(var dt=zt("CodeMirror-linewidget"),pt=ot.node.firstChild,Et=void 0;pt;pt=Et)Et=pt.nextSibling,dt.test(pt.className)&&ot.node.removeChild(pt);Ru(it,ot,ct)}function Rc(it,ot,ct,dt){var pt=_h(it,ot);return ot.text=ot.node=pt.pre,pt.bgClass&&(ot.bgClass=pt.bgClass),pt.textClass&&(ot.textClass=pt.textClass),ms(it,ot),bs(it,ot,ct,dt),Ru(it,ot,dt),ot.node}function Ru(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 Et=Fl(ct),Rt=0,Ut=ot.widgets;Rt<Ut.length;++Rt){var Vt=Ut[Rt],ae=Zt("div",[Vt.node],"CodeMirror-linewidget"+(Vt.className?" "+Vt.className:""));Vt.handleMouseEvents||ae.setAttribute("cm-ignore-events","true"),qu(Vt,ae,ct,dt),it.display.input.setUneditable(ae),pt&&Vt.above?Et.insertBefore(ae,ct.gutter||ct.text):Et.appendChild(ae),$i(Vt,"redraw")}}function qu(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 ml(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;"),_t(ot.display.measure,Zt("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function vl(it,ot){for(var ct=ao(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 yl(it){return it.lineSpace.offsetTop}function qh(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function $u(it){if(it.cachedPaddingH)return it.cachedPaddingH;var ot=_t(it.measure,Zt("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 sl(it){return sn-it.display.nativeBarWidth}function Iu(it){return it.display.scroller.clientWidth-sl(it)-it.display.barWidth}function ld(it){return it.display.scroller.clientHeight-sl(it)-it.display.barHeight}function sf(it,ot,ct){var dt=it.options.lineWrapping,pt=dt&&Iu(it);if(!ot.measure.heights||dt&&ot.measure.width!=pt){var Et=ot.measure.heights=[];if(dt){ot.measure.width=pt;for(var Rt=ot.text.firstChild.getClientRects(),Ut=0;Ut<Rt.length-1;Ut++){var Vt=Rt[Ut],ae=Rt[Ut+1];Math.abs(Vt.bottom-ae.bottom)>2&&Et.push((Vt.bottom+ae.top)/2-ct.top)}}Et.push(ct.bottom-ct.top)}}function Fd(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(De(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function lf(it,ot){ot=Ma(ot);var ct=De(ot),dt=it.display.externalMeasured=new Jh(it.doc,ot,ct);dt.lineN=ct;var pt=dt.built=Xe(it,dt);return dt.text=pt.pre,_t(it.display.lineMeasure,pt.pre),dt}function Nh(it,ot,ct,dt){return zu(it,$h(it,ot),ct,dt)}function du(it,ot){if(ot>=it.display.viewFrom&&ot<it.display.viewTo)return it.display.view[fu(it,ot)];var ct=it.display.externalMeasured;if(ct&&ot>=ct.lineN&&ot<ct.lineN+ct.size)return ct}function $h(it,ot){var ct=De(ot),dt=du(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&(Qh(it,dt,ct,Sc(it)),it.curOp.forceUpdate=!0),dt||(dt=lf(it,ot));var pt=Fd(dt,ot,ct);return{line:ot,view:dt,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function zu(it,ot,ct,dt,pt){ot.before&&(ct=-1);var Et=ct+(dt||""),Rt;return ot.cache.hasOwnProperty(Et)?Rt=ot.cache[Et]:(ot.rect||(ot.rect=ot.view.text.getBoundingClientRect()),ot.hasHeights||(sf(it,ot.view,ot.rect),ot.hasHeights=!0),Rt=Is(it,ot,ct,dt),Rt.bogus||(ot.cache[Et]=Rt)),{left:Rt.left,right:Rt.right,top:pt?Rt.rtop:Rt.top,bottom:pt?Rt.rbottom:Rt.bottom}}var ud={left:0,right:0,top:0,bottom:0};function Nd(it,ot,ct){for(var dt,pt,Et,Rt,Ut,Vt,ae=0;ae<it.length;ae+=3)if(Ut=it[ae],Vt=it[ae+1],ot<Ut?(pt=0,Et=1,Rt="left"):ot<Vt?(pt=ot-Ut,Et=pt+1):(ae==it.length-3||ot==Vt&&it[ae+3]>ot)&&(Et=Vt-Ut,pt=Et-1,ot>=Vt&&(Rt="right")),pt!=null){if(dt=it[ae+2],Ut==Vt&&ct==(dt.insertLeft?"left":"right")&&(Rt=ct),ct=="left"&&pt==0)for(;ae&&it[ae-2]==it[ae-3]&&it[ae-1].insertLeft;)dt=it[(ae-=3)+2],Rt="left";if(ct=="right"&&pt==Vt-Ut)for(;ae<it.length-3&&it[ae+3]==it[ae+4]&&!it[ae+5].insertLeft;)dt=it[(ae+=3)+2],Rt="right";break}return{node:dt,start:pt,end:Et,collapse:Rt,coverStart:Ut,coverEnd:Vt}}function uf(it,ot){var ct=ud;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 Is(it,ot,ct,dt){var pt=Nd(ot.map,ct,dt),Et=pt.node,Rt=pt.start,Ut=pt.end,Vt=pt.collapse,ae;if(Et.nodeType==3){for(var be=0;be<4;be++){for(;Rt&&rn(ot.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+Ut<pt.coverEnd&&rn(ot.line.text.charAt(pt.coverStart+Ut));)++Ut;if(Ae&&Dt<9&&Rt==0&&Ut==pt.coverEnd-pt.coverStart?ae=Et.parentNode.getBoundingClientRect():ae=uf(ge(Et,Rt,Ut).getClientRects(),dt),ae.left||ae.right||Rt==0)break;Ut=Rt,Rt=Rt-1,Vt="right"}Ae&&Dt<11&&(ae=ag(it.display.measure,ae))}else{Rt>0&&(Vt=dt="right");var se;it.options.lineWrapping&&(se=Et.getClientRects()).length>1?ae=se[dt=="right"?se.length-1:0]:ae=Et.getBoundingClientRect()}if(Ae&&Dt<9&&!Rt&&(!ae||!ae.left&&!ae.right)){var _e=Et.parentNode.getClientRects()[0];_e?ae={left:_e.left,right:_e.left+yc(it.display),top:_e.top,bottom:_e.bottom}:ae=ud}for(var qe=ae.top-ot.rect.top,Jn=ae.bottom-ot.rect.top,vi=(qe+Jn)/2,Ti=ot.view.measure.heights,Zi=0;Zi<Ti.length-1&&!(vi<Ti[Zi]);Zi++);var br=Zi?Ti[Zi-1]:0,ur=Ti[Zi],Ir={left:(Vt=="right"?ae.right:ae.left)-ot.rect.left,right:(Vt=="left"?ae.left:ae.right)-ot.rect.left,top:br,bottom:ur};return!ae.left&&!ae.right&&(Ir.bogus=!0),it.options.singleCursorHeightPerLine||(Ir.rtop=qe,Ir.rbottom=Jn),Ir}function ag(it,ot){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xn(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 hd(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 vc(it){hd(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Pl(){return ce&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ll(){return ce&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hs(it){var ot=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(ot+=ml(it.widgets[ct]));return ot}function el(it,ot,ct,dt,pt){if(!pt){var Et=Hs(ot);ct.top+=Et,ct.bottom+=Et}if(dt=="line")return ct;dt||(dt="local");var Rt=oo(ot);if(dt=="local"?Rt+=yl(it.display):Rt-=it.display.viewOffset,dt=="page"||dt=="window"){var Ut=it.display.lineSpace.getBoundingClientRect();Rt+=Ut.top+(dt=="window"?0:ll());var Vt=Ut.left+(dt=="window"?0:Pl());ct.left+=Vt,ct.right+=Vt}return ct.top+=Rt,ct.bottom+=Rt,ct}function cd(it,ot,ct){if(ct=="div")return ot;var dt=ot.left,pt=ot.top;if(ct=="page")dt-=Pl(),pt-=ll();else if(ct=="local"||!ct){var Et=it.display.sizer.getBoundingClientRect();dt+=Et.left,pt+=Et.top}var Rt=it.display.lineSpace.getBoundingClientRect();return{left:dt-Rt.left,top:pt-Rt.top}}function tu(it,ot,ct,dt,pt){return dt||(dt=yn(it.doc,ot.line)),el(it,dt,Nh(it,dt,ot.ch,pt),ct)}function Cs(it,ot,ct,dt,pt,Et){dt=dt||yn(it.doc,ot.line),pt||(pt=$h(it,dt));function Rt(Jn,vi){var Ti=zu(it,pt,Jn,vi?"right":"left",Et);return vi?Ti.left=Ti.right:Ti.right=Ti.left,el(it,dt,Ti,ct)}var Ut=ni(dt,it.doc.direction),Vt=ot.ch,ae=ot.sticky;if(Vt>=dt.text.length?(Vt=dt.text.length,ae="before"):Vt<=0&&(Vt=0,ae="after"),!Ut)return Rt(ae=="before"?Vt-1:Vt,ae=="before");function be(Jn,vi,Ti){var Zi=Ut[vi],br=Zi.level==1;return Rt(Ti?Jn-1:Jn,br!=Ti)}var se=Ke(Ut,Vt,ae),_e=Mn,qe=be(Vt,se,ae=="before");return _e!=null&&(qe.other=be(Vt,_e,ae!="before")),qe}function gh(it,ot){var ct=0;ot=Hi(it.doc,ot),it.options.lineWrapping||(ct=yc(it.display)*ot.ch);var dt=yn(it.doc,ot.line),pt=oo(dt)+yl(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function Ic(it,ot,ct,dt,pt){var Et=Cn(it,ot,ct);return Et.xRel=pt,dt&&(Et.outside=dt),Et}function Bd(it,ot,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return Ic(dt.first,0,null,-1,-1);var pt=xi(dt,ct),Et=dt.first+dt.size-1;if(pt>Et)return Ic(dt.first+dt.size-1,yn(dt,Et).text.length,null,1,1);ot<0&&(ot=0);for(var Rt=yn(dt,pt);;){var Ut=kn(it,Rt,pt,ot,ct),Vt=Mh(Rt,Ut.ch+(Ut.xRel>0||Ut.outside>0?1:0));if(!Vt)return Ut;var ae=Vt.find(1);if(ae.line==pt)return ae;Rt=yn(dt,pt=ae.line)}}function rr(it,ot,ct,dt){dt-=Hs(ot);var pt=ot.text.length,Et=Un(function(Rt){return zu(it,ct,Rt-1).bottom<=dt},pt,0);return pt=Un(function(Rt){return zu(it,ct,Rt).top>dt},Et,pt),{begin:Et,end:pt}}function cf(it,ot,ct,dt){ct||(ct=$h(it,ot));var pt=el(it,ot,zu(it,ct,dt),"line").top;return rr(it,ot,ct,pt)}function xe(it,ot,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>ot}function kn(it,ot,ct,dt,pt){pt-=oo(ot);var Et=$h(it,ot),Rt=Hs(ot),Ut=0,Vt=ot.text.length,ae=!0,be=ni(ot,it.doc.direction);if(be){var se=(it.options.lineWrapping?df:Td)(it,ot,ct,Et,be,dt,pt);ae=se.level!=1,Ut=ae?se.from:se.to-1,Vt=ae?se.to:se.from-1}var _e=null,qe=null,Jn=Un(function(Bo){var lr=zu(it,Et,Bo);return lr.top+=Rt,lr.bottom+=Rt,xe(lr,dt,pt,!1)?(lr.top<=pt&&lr.left<=dt&&(_e=Bo,qe=lr),!0):!1},Ut,Vt),vi,Ti,Zi=!1;if(qe){var br=dt-qe.left<qe.right-dt,ur=br==ae;Jn=_e+(ur?0:1),Ti=ur?"after":"before",vi=br?qe.left:qe.right}else{!ae&&(Jn==Vt||Jn==Ut)&&Jn++,Ti=Jn==0?"after":Jn==ot.text.length?"before":zu(it,Et,Jn-(ae?1:0)).bottom+Rt<=pt==ae?"after":"before";var Ir=Cs(it,Cn(ct,Jn,Ti),"line",ot,Et);vi=Ir.left,Zi=pt<Ir.top?-1:pt>=Ir.bottom?1:0}return Jn=on(ot.text,Jn,1),Ic(ct,Jn,Ti,Zi,dt-vi)}function Td(it,ot,ct,dt,pt,Et,Rt){var Ut=Un(function(se){var _e=pt[se],qe=_e.level!=1;return xe(Cs(it,Cn(ct,qe?_e.to:_e.from,qe?"before":"after"),"line",ot,dt),Et,Rt,!0)},0,pt.length-1),Vt=pt[Ut];if(Ut>0){var ae=Vt.level!=1,be=Cs(it,Cn(ct,ae?Vt.from:Vt.to,ae?"after":"before"),"line",ot,dt);xe(be,Et,Rt,!0)&&be.top>Rt&&(Vt=pt[Ut-1])}return Vt}function df(it,ot,ct,dt,pt,Et,Rt){var Ut=rr(it,ot,dt,Rt),Vt=Ut.begin,ae=Ut.end;/\s/.test(ot.text.charAt(ae-1))&&ae--;for(var be=null,se=null,_e=0;_e<pt.length;_e++){var qe=pt[_e];if(!(qe.from>=ae||qe.to<=Vt)){var Jn=qe.level!=1,vi=zu(it,dt,Jn?Math.min(ae,qe.to)-1:Math.max(Vt,qe.from)).right,Ti=vi<Et?Et-vi+1e9:vi-Et;(!be||se>Ti)&&(be=qe,se=Ti)}}return be||(be=pt[pt.length-1]),be.from<Vt&&(be={from:Vt,to:be.to,level:be.level}),be.to>ae&&(be={from:be.from,to:ae,level:be.level}),be}var Bh;function th(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Bh==null){Bh=Zt("pre",null,"CodeMirror-line-like");for(var ot=0;ot<49;++ot)Bh.appendChild(document.createTextNode("x")),Bh.appendChild(Zt("br"));Bh.appendChild(document.createTextNode("x"))}_t(it.measure,Bh);var ct=Bh.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),re(it.measure),ct||1}function yc(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var ot=Zt("span","xxxxxxxxxx"),ct=Zt("pre",[ot],"CodeMirror-line-like");_t(it.measure,ct);var dt=ot.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Sc(it){for(var ot=it.display,ct={},dt={},pt=ot.gutters.clientLeft,Et=ot.gutters.firstChild,Rt=0;Et;Et=Et.nextSibling,++Rt){var Ut=it.display.gutterSpecs[Rt].className;ct[Ut]=Et.offsetLeft+Et.clientLeft+pt,dt[Ut]=Et.clientWidth}return{fixedPos:tc(ot),gutterTotalWidth:ot.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:ot.wrapper.clientWidth}}function tc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function cs(it){var ot=th(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/yc(it.display)-3);return function(pt){if(un(it.doc,pt))return 0;var Et=0;if(pt.widgets)for(var Rt=0;Rt<pt.widgets.length;Rt++)pt.widgets[Rt].height&&(Et+=pt.widgets[Rt].height);return ct?Et+(Math.ceil(pt.text.length/dt)||1)*ot:Et+ot}}function zr(it){var ot=it.doc,ct=cs(it);ot.iter(function(dt){var pt=ct(dt);pt!=dt.height&&Dn(dt,pt)})}function Nl(it,ot,ct,dt){var pt=it.display;if(!ct&&ao(ot).getAttribute("cm-not-content")=="true")return null;var Et,Rt,Ut=pt.lineSpace.getBoundingClientRect();try{Et=ot.clientX-Ut.left,Rt=ot.clientY-Ut.top}catch(se){return null}var Vt=Bd(it,Et,Rt),ae;if(dt&&Vt.xRel>0&&(ae=yn(it.doc,Vt.line).text).length==Vt.ch){var be=$t(ae,ae.length,it.options.tabSize)-ae.length;Vt=Cn(Vt.line,Math.max(0,Math.round((Et-$u(it.display).left)/yc(it.display))-be))}return Vt}function fu(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 $a(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&&Xi(it.doc,ot)<pt.viewTo&&Ns(it);else if(ct<=pt.viewFrom)Ln&&Rr(it.doc,ct+dt)>pt.viewFrom?Ns(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(ot<=pt.viewFrom&&ct>=pt.viewTo)Ns(it);else if(ot<=pt.viewFrom){var Et=Gl(it,ct,ct+dt,1);Et?(pt.view=pt.view.slice(Et.index),pt.viewFrom=Et.lineN,pt.viewTo+=dt):Ns(it)}else if(ct>=pt.viewTo){var Rt=Gl(it,ot,ot,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):Ns(it)}else{var Ut=Gl(it,ot,ot,-1),Vt=Gl(it,ct,ct+dt,1);Ut&&Vt?(pt.view=pt.view.slice(0,Ut.index).concat(ja(it,Ut.lineN,Vt.lineN)).concat(pt.view.slice(Vt.index)),pt.viewTo+=dt):Ns(it)}var ae=pt.externalMeasured;ae&&(ct<ae.lineN?ae.lineN+=dt:ot<ae.lineN+ae.size&&(pt.externalMeasured=null))}function Ho(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 Et=dt.view[fu(it,ot)];if(Et.node!=null){var Rt=Et.changes||(Et.changes=[]);Ee(Rt,ct)==-1&&Rt.push(ct)}}}function Ns(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function Gl(it,ot,ct,dt){var pt=fu(it,ot),Et,Rt=it.display.view;if(!Ln||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var Ut=it.display.viewFrom,Vt=0;Vt<pt;Vt++)Ut+=Rt[Vt].size;if(Ut!=ot){if(dt>0){if(pt==Rt.length-1)return null;Et=Ut+Rt[pt].size-ot,pt++}else Et=Ut-ot;ot+=Et,ct+=Et}for(;Xi(it.doc,ct)!=ct;){if(pt==(dt<0?0:Rt.length-1))return null;ct+=dt*Rt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Qa(it,ot,ct){var dt=it.display,pt=dt.view;pt.length==0||ot>=dt.viewTo||ct<=dt.viewFrom?(dt.view=ja(it,ot,ct),dt.viewFrom=ot):(dt.viewFrom>ot?dt.view=ja(it,ot,dt.viewFrom).concat(dt.view):dt.viewFrom<ot&&(dt.view=dt.view.slice(fu(it,ot))),dt.viewFrom=ot,dt.viewTo<ct?dt.view=dt.view.concat(ja(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,fu(it,ct)))),dt.viewTo=ct}function eu(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 Us(it){it.display.input.showSelection(it.display.input.prepareSelection())}function ju(it,ot){ot===void 0&&(ot=!0);for(var ct=it.doc,dt={},pt=dt.cursors=document.createDocumentFragment(),Et=dt.selection=document.createDocumentFragment(),Rt=0;Rt<ct.sel.ranges.length;Rt++)if(!(!ot&&Rt==ct.sel.primIndex)){var Ut=ct.sel.ranges[Rt];if(!(Ut.from().line>=it.display.viewTo||Ut.to().line<it.display.viewFrom)){var Vt=Ut.empty();(Vt||it.options.showCursorWhenSelecting)&&ma(it,Ut.head,pt),Vt||na(it,Ut,Et)}}return dt}function ma(it,ot,ct){var dt=Cs(it,ot,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild(Zt("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 Et=ct.appendChild(Zt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Et.style.display="",Et.style.left=dt.other.left+"px",Et.style.top=dt.other.top+"px",Et.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function Bl(it,ot){return it.top-ot.top||it.left-ot.left}function na(it,ot,ct){var dt=it.display,pt=it.doc,Et=document.createDocumentFragment(),Rt=$u(it.display),Ut=Rt.left,Vt=Math.max(dt.sizerWidth,Iu(it)-dt.sizer.offsetLeft)-Rt.right,ae=pt.direction=="ltr";function be(ur,Ir,Bo,lr){Ir<0&&(Ir=0),Ir=Math.round(Ir),lr=Math.round(lr),Et.appendChild(Zt("div",null,"CodeMirror-selected","position: absolute; left: "+ur+`px;
|
|
top: `+Ir+"px; width: "+(Bo==null?Vt-ur:Bo)+`px;
|
|
height: `+(lr-Ir)+"px"))}function se(ur,Ir,Bo){var lr=yn(pt,ur),da=lr.text.length,Ds,zl;function Ks(Ll,rh){return tu(it,Cn(ur,Ll),"div",lr,rh)}function Yu(Ll,rh,iu){var Ml=cf(it,lr,null,Ll),Xa=rh=="ltr"==(iu=="after")?"left":"right",Qs=iu=="after"?Ml.begin:Ml.end-(/\s/.test(lr.text.charAt(Ml.end-1))?2:1);return Ks(Qs,Xa)[Xa]}var vu=ni(lr,pt.direction);return en(vu,Ir||0,Bo==null?da:Bo,function(Ll,rh,iu,Ml){var Xa=iu=="ltr",Qs=Ks(Ll,Xa?"left":"right"),Kl=Ks(rh-1,Xa?"right":"left"),ru=Ir==null&&Ll==0,sc=Bo==null&&rh==da,Vs=Ml==0,jh=!vu||Ml==vu.length-1;if(Kl.top-Qs.top<=3){var ol=(ae?ru:sc)&&Vs,sg=(ae?sc:ru)&&jh,Sh=ol?Ut:(Xa?Qs:Kl).left,oh=sg?Vt:(Xa?Kl:Qs).right;be(Sh,Qs.top,oh-Sh,Qs.bottom)}else{var Uu,Ss,Vl,Uc;Xa?(Uu=ae&&ru&&Vs?Ut:Qs.left,Ss=ae?Vt:Yu(Ll,iu,"before"),Vl=ae?Ut:Yu(rh,iu,"after"),Uc=ae&&sc&&jh?Vt:Kl.right):(Uu=ae?Yu(Ll,iu,"before"):Ut,Ss=!ae&&ru&&Vs?Vt:Qs.right,Vl=!ae&&sc&&jh?Ut:Kl.left,Uc=ae?Yu(rh,iu,"after"):Vt),be(Uu,Qs.top,Ss-Uu,Qs.bottom),Qs.bottom<Kl.top&&be(Ut,Qs.bottom,null,Kl.top),be(Vl,Kl.top,Uc-Vl,Kl.bottom)}(!Ds||Bl(Qs,Ds)<0)&&(Ds=Qs),Bl(Kl,Ds)<0&&(Ds=Kl),(!zl||Bl(Qs,zl)<0)&&(zl=Qs),Bl(Kl,zl)<0&&(zl=Kl)}),{start:Ds,end:zl}}var _e=ot.from(),qe=ot.to();if(_e.line==qe.line)se(_e.line,_e.ch,qe.ch);else{var Jn=yn(pt,_e.line),vi=yn(pt,qe.line),Ti=Ma(Jn)==Ma(vi),Zi=se(_e.line,_e.ch,Ti?Jn.text.length+1:null).end,br=se(qe.line,Ti?0:null,qe.ch).start;Ti&&(Zi.top<br.top-2?(be(Zi.right,Zi.top,null,Zi.bottom),be(Ut,br.top,br.left,br.bottom)):be(Zi.right,Zi.top,br.left-Zi.right,Zi.bottom)),Zi.bottom<br.top&&be(Ut,Zi.bottom,null,br.top)}ct.appendChild(Et)}function ga(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()||xc(it),ot.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(ot.cursorDiv.style.visibility="hidden")}}function Ka(it){it.state.focused||(it.display.input.focus(),va(it))}function vs(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,xc(it))},100)}function va(it,ot){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(ii(it,"focus",it,ot),it.state.focused=!0,Ie(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Jt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),ga(it))}function xc(it,ot){it.state.delayingBlurEvent||(it.state.focused&&(ii(it,"blur",it,ot),it.state.focused=!1,qt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Nr(it){for(var ot=it.display,ct=ot.lineDiv.offsetTop,dt=0;dt<ot.view.length;dt++){var pt=ot.view[dt],Et=it.options.lineWrapping,Rt=void 0,Ut=0;if(!pt.hidden){if(Ae&&Dt<8){var Vt=pt.node.offsetTop+pt.node.offsetHeight;Rt=Vt-ct,ct=Vt}else{var ae=pt.node.getBoundingClientRect();Rt=ae.bottom-ae.top,!Et&&pt.text.firstChild&&(Ut=pt.text.firstChild.getBoundingClientRect().right-ae.left-1)}var be=pt.line.height-Rt;if((be>.005||be<-.005)&&(Dn(pt.line,Rt),Th(pt.line),pt.rest))for(var se=0;se<pt.rest.length;se++)Th(pt.rest[se]);if(Ut>it.display.sizerWidth){var _e=Math.ceil(Ut/yc(it.display));_e>it.display.maxLineLength&&(it.display.maxLineLength=_e,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Th(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 ia(it,ot,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-yl(it));var pt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,Et=xi(ot,dt),Rt=xi(ot,pt);if(ct&&ct.ensure){var Ut=ct.ensure.from.line,Vt=ct.ensure.to.line;Ut<Et?(Et=Ut,Rt=xi(ot,oo(yn(ot,Ut))+it.wrapper.clientHeight)):Math.min(Vt,ot.lastLine())>=Rt&&(Et=xi(ot,oo(yn(ot,Vt))-it.wrapper.clientHeight),Rt=Vt)}return{from:Et,to:Math.max(Rt,Et+1)}}function zf(it,ot){if(!mi(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&&!It){var Et=Zt("div","\u200B",null,`position: absolute;
|
|
top: `+(ot.top-ct.viewOffset-yl(it.display))+`px;
|
|
height: `+(ot.bottom-ot.top+sl(it)+ct.barHeight)+`px;
|
|
left: `+ot.left+"px; width: "+Math.max(2,ot.right-ot.left)+"px;");it.display.lineSpace.appendChild(Et),Et.scrollIntoView(pt),it.display.lineSpace.removeChild(Et)}}}function wc(it,ot,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&ot==ct&&(ot=ot.ch?Cn(ot.line,ot.sticky=="before"?ot.ch-1:ot.ch,"after"):ot,ct=ot.sticky=="before"?Cn(ot.line,ot.ch+1,"before"):ot);for(var Et=0;Et<5;Et++){var Rt=!1,Ut=Cs(it,ot),Vt=!ct||ct==ot?Ut:Cs(it,ct);pt={left:Math.min(Ut.left,Vt.left),top:Math.min(Ut.top,Vt.top)-dt,right:Math.max(Ut.left,Vt.left),bottom:Math.max(Ut.bottom,Vt.bottom)+dt};var ae=ff(it,pt),be=it.doc.scrollTop,se=it.doc.scrollLeft;if(ae.scrollTop!=null&&(he(it,ae.scrollTop),Math.abs(it.doc.scrollTop-be)>1&&(Rt=!0)),ae.scrollLeft!=null&&(Se(it,ae.scrollLeft),Math.abs(it.doc.scrollLeft-se)>1&&(Rt=!0)),!Rt)break}return pt}function dd(it,ot){var ct=ff(it,ot);ct.scrollTop!=null&&he(it,ct.scrollTop),ct.scrollLeft!=null&&Se(it,ct.scrollLeft)}function ff(it,ot){var ct=it.display,dt=th(it.display);ot.top<0&&(ot.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Et=ld(it),Rt={};ot.bottom-ot.top>Et&&(ot.bottom=ot.top+Et);var Ut=it.doc.height+qh(ct),Vt=ot.top<dt,ae=ot.bottom>Ut-dt;if(ot.top<pt)Rt.scrollTop=Vt?0:ot.top;else if(ot.bottom>pt+Et){var be=Math.min(ot.top,(ae?Ut:ot.bottom)-Et);be!=pt&&(Rt.scrollTop=be)}var se=it.options.fixedGutter?0:ct.gutters.offsetWidth,_e=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-se,qe=Iu(it)-ct.gutters.offsetWidth,Jn=ot.right-ot.left>qe;return Jn&&(ot.right=ot.left+qe),ot.left<10?Rt.scrollLeft=0:ot.left<_e?Rt.scrollLeft=Math.max(0,ot.left+se-(Jn?0:10)):ot.right>qe+_e-3&&(Rt.scrollLeft=ot.right+(Jn?0:10)-qe),Rt}function Wu(it,ot){ot!=null&&(eh(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+ot)}function Dh(it){eh(it);var ot=it.getCursor();it.curOp.scrollToPos={from:ot,to:ot,margin:it.options.cursorScrollMargin}}function Hu(it,ot,ct){(ot!=null||ct!=null)&&eh(it),ot!=null&&(it.curOp.scrollLeft=ot),ct!=null&&(it.curOp.scrollTop=ct)}function xa(it,ot){eh(it),it.curOp.scrollToPos=ot}function eh(it){var ot=it.curOp.scrollToPos;if(ot){it.curOp.scrollToPos=null;var ct=gh(it,ot.from),dt=gh(it,ot.to);Gt(it,ct,dt,ot.margin)}}function Gt(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});Hu(it,pt.scrollLeft,pt.scrollTop)}function he(it,ot){Math.abs(it.doc.scrollTop-ot)<2||(Lt||Pr(it,{top:ot}),ve(it,ot,!0),Lt&&Pr(it),Ro(it,100))}function ve(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 Se(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,ua(it),it.display.scroller.scrollLeft!=ot&&(it.display.scroller.scrollLeft=ot),it.display.scrollbars.setScrollLeft(ot))}function Oe(it){var ot=it.display,ct=ot.gutters.offsetWidth,dt=Math.round(it.doc.height+qh(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+sl(it)+ot.barHeight,nativeBarWidth:ot.nativeBarWidth,gutterWidth:ct}}var Qe=function(it,ot,ct){this.cm=ct;var dt=this.vert=Zt("div",[Zt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Zt("div",[Zt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),$n(dt,"scroll",function(){dt.clientHeight&&ot(dt.scrollTop,"vertical")}),$n(pt,"scroll",function(){pt.clientWidth&&ot(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ae&&Dt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qe.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 Et=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Et)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:ot?dt:0}},Qe.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qe.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qe.prototype.zeroWidthHack=function(){var it=ht&&!de?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new jt,this.disableVert=new jt},Qe.prototype.enableZeroWidthBar=function(it,ot,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),Et=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);Et!=it?it.style.pointerEvents="none":ot.set(1e3,dt)}ot.set(1e3,dt)},Qe.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var nn=function(){};nn.prototype.update=function(){return{bottom:0,right:0}},nn.prototype.setScrollLeft=function(){},nn.prototype.setScrollTop=function(){},nn.prototype.clear=function(){};function Sn(it,ot){ot||(ot=Oe(it));var ct=it.display.barWidth,dt=it.display.barHeight;Gn(it,ot);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&Nr(it),Gn(it,Oe(it)),ct=it.display.barWidth,dt=it.display.barHeight}function Gn(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 On={native:Qe,null:nn};function ci(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&qt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new On[it.options.scrollbarStyle](function(ot){it.display.wrapper.insertBefore(ot,it.display.scrollbarFiller),$n(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"?Se(it,ot):he(it,ot)},it),it.display.scrollbars.addClass&&Ie(it.display.wrapper,it.display.scrollbars.addClass)}var Wn=0;function ri(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:++Wn},eo(it.curOp)}function Zn(it){var ot=it.curOp;ot&&Wa(ot,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;Si(ct)})}function Si(it){for(var ot=it.ops,ct=0;ct<ot.length;ct++)Ii(ot[ct]);for(var dt=0;dt<ot.length;dt++)tr(ot[dt]);for(var pt=0;pt<ot.length;pt++)yr(ot[pt]);for(var Et=0;Et<ot.length;Et++)Fi(ot[Et]);for(var Rt=0;Rt<ot.length;Rt++)Ji(ot[Rt])}function Ii(it){var ot=it.cm,ct=ot.display;Ba(ot),it.updateMaxLine&&ka(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 Vo(ot,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function tr(it){it.updatedDisplay=it.mustUpdate&&Qr(it.cm,it.update)}function yr(it){var ot=it.cm,ct=ot.display;it.updatedDisplay&&Nr(ot),it.barMeasure=Oe(ot),ct.maxLineChanged&&!ot.options.lineWrapping&&(it.adjustWidthTo=Nh(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+sl(ot)+ot.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Iu(ot))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Fi(it){var ot=it.cm;it.adjustWidthTo!=null&&(ot.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<ot.doc.scrollLeft&&Se(ot,Math.min(ot.display.scroller.scrollLeft,it.maxScrollLeft),!0),ot.display.maxLineChanged=!1);var ct=it.focus&&it.focus==He();it.preparedSelection&&ot.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=ot.doc.height)&&Sn(ot,it.barMeasure),it.updatedDisplay&&co(ot,it.barMeasure),it.selectionChanged&&ga(ot),ot.state.focused&&it.updateInput&&ot.display.input.reset(it.typing),ct&&Ka(it.cm)}function Ji(it){var ot=it.cm,ct=ot.display,dt=ot.doc;if(it.updatedDisplay&&zi(ot,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&ve(ot,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Se(ot,it.scrollLeft,!0,!0),it.scrollToPos){var pt=wc(ot,Hi(dt,it.scrollToPos.from),Hi(dt,it.scrollToPos.to),it.scrollToPos.margin);zf(ot,pt)}var Et=it.maybeHiddenMarkers,Rt=it.maybeUnhiddenMarkers;if(Et)for(var Ut=0;Ut<Et.length;++Ut)Et[Ut].lines.length||ii(Et[Ut],"hide");if(Rt)for(var Vt=0;Vt<Rt.length;++Vt)Rt[Vt].lines.length&&ii(Rt[Vt],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=ot.display.scroller.scrollTop),it.changeObjs&&ii(ot,"changes",ot,it.changeObjs),it.update&&it.update.finish()}function ji(it,ot){if(it.curOp)return ot();ri(it);try{return ot()}finally{Zn(it)}}function Sr(it,ot){return function(){if(it.curOp)return ot.apply(it,arguments);ri(it);try{return ot.apply(it,arguments)}finally{Zn(it)}}}function Jr(it){return function(){if(this.curOp)return it.apply(this,arguments);ri(this);try{return it.apply(this,arguments)}finally{Zn(this)}}}function pr(it){return function(){var ot=this.cm;if(!ot||ot.curOp)return it.apply(this,arguments);ri(ot);try{return it.apply(this,arguments)}finally{Zn(ot)}}}function Ro(it,ot){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(ot,cn(Vr,it))}function Vr(it){var ot=it.doc;if(!(ot.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=qa(it,ot.highlightFrontier),pt=[];ot.iter(dt.line,Math.min(ot.first+ot.size,it.display.viewTo+500),function(Et){if(dt.line>=it.display.viewFrom){var Rt=Et.styles,Ut=Et.text.length>it.options.maxHighlightLength?ai(ot.mode,dt.state):null,Vt=pl(it,Et,dt,!0);Ut&&(dt.state=Ut),Et.styles=Vt.styles;var ae=Et.styleClasses,be=Vt.classes;be?Et.styleClasses=be:ae&&(Et.styleClasses=null);for(var se=!Rt||Rt.length!=Et.styles.length||ae!=be&&(!ae||!be||ae.bgClass!=be.bgClass||ae.textClass!=be.textClass),_e=0;!se&&_e<Rt.length;++_e)se=Rt[_e]!=Et.styles[_e];se&&pt.push(dt.line),Et.stateAfter=dt.save(),dt.nextLine()}else Et.text.length<=it.options.maxHighlightLength&&We(it,Et.text,dt),Et.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return Ro(it,it.options.workDelay),!0}),ot.highlightFrontier=dt.line,ot.modeFrontier=Math.max(ot.modeFrontier,dt.line),pt.length&&ji(it,function(){for(var Et=0;Et<pt.length;Et++)Ho(it,pt[Et],"text")})}}var Vo=function(it,ot,ct){var dt=it.display;this.viewport=ot,this.visible=ia(dt,it.doc,ot),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=Iu(it),this.force=ct,this.dims=Sc(it),this.events=[]};Vo.prototype.signal=function(it,ot){gi(it,ot)&&this.events.push(arguments)},Vo.prototype.finish=function(){for(var it=0;it<this.events.length;it++)ii.apply(null,this.events[it])};function Ba(it){var ot=it.display;!ot.scrollbarsClipped&&ot.scroller.offsetWidth&&(ot.nativeBarWidth=ot.scroller.offsetWidth-ot.scroller.clientWidth,ot.heightForcer.style.height=sl(it)+"px",ot.sizer.style.marginBottom=-ot.nativeBarWidth+"px",ot.sizer.style.borderRightWidth=sl(it)+"px",ot.scrollbarsClipped=!0)}function Xo(it){if(it.hasFocus())return null;var ot=He();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 Ur(it){if(!(!it||!it.activeElt||it.activeElt==He())&&(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 Qr(it,ot){var ct=it.display,dt=it.doc;if(ot.editorIsHidden)return Ns(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&&eu(it)==0)return!1;Ao(it)&&(Ns(it),ot.dims=Sc(it));var pt=dt.first+dt.size,Et=Math.max(ot.visible.from-it.options.viewportMargin,dt.first),Rt=Math.min(pt,ot.visible.to+it.options.viewportMargin);ct.viewFrom<Et&&Et-ct.viewFrom<20&&(Et=Math.max(dt.first,ct.viewFrom)),ct.viewTo>Rt&&ct.viewTo-Rt<20&&(Rt=Math.min(pt,ct.viewTo)),Ln&&(Et=Xi(it.doc,Et),Rt=Rr(it.doc,Rt));var Ut=Et!=ct.viewFrom||Rt!=ct.viewTo||ct.lastWrapHeight!=ot.wrapperHeight||ct.lastWrapWidth!=ot.wrapperWidth;Qa(it,Et,Rt),ct.viewOffset=oo(yn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Vt=eu(it);if(!Ut&&Vt==0&&!ot.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var ae=Xo(it);return Vt>4&&(ct.lineDiv.style.display="none"),io(it,ct.updateLineNumbers,ot.dims),Vt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,Ur(ae),re(ct.cursorDiv),re(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,Ut&&(ct.lastWrapHeight=ot.wrapperHeight,ct.lastWrapWidth=ot.wrapperWidth,Ro(it,400)),ct.updateLineNumbers=null,!0}function zi(it,ot){for(var ct=ot.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||ot.oldDisplayWidth==Iu(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+qh(it.display)-ld(it),ct.top)}),ot.visible=ia(it.display,it.doc,ct),ot.visible.from>=it.display.viewFrom&&ot.visible.to<=it.display.viewTo)break}else dt&&(ot.visible=ia(it.display,it.doc,ct));if(!Qr(it,ot))break;Nr(it);var pt=Oe(it);Us(it),Sn(it,pt),co(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 Pr(it,ot){var ct=new Vo(it,ot);if(Qr(it,ct)){Nr(it),zi(it,ct);var dt=Oe(it);Us(it),Sn(it,dt),co(it,dt),ct.finish()}}function io(it,ot,ct){var dt=it.display,pt=it.options.lineNumbers,Et=dt.lineDiv,Rt=Et.firstChild;function Ut(Jn){var vi=Jn.nextSibling;return Jt&&ht&&it.display.currentWheelTarget==Jn?Jn.style.display="none":Jn.parentNode.removeChild(Jn),vi}for(var Vt=dt.view,ae=dt.viewFrom,be=0;be<Vt.length;be++){var se=Vt[be];if(!se.hidden)if(!se.node||se.node.parentNode!=Et){var _e=Rc(it,se,ae,ct);Et.insertBefore(_e,Rt)}else{for(;Rt!=se.node;)Rt=Ut(Rt);var qe=pt&&ot!=null&&ot<=ae&&se.lineNumber;se.changes&&(Ee(se.changes,"gutter")>-1&&(qe=!1),Qh(it,se,ae,ct)),qe&&(re(se.lineNumber),se.lineNumber.appendChild(document.createTextNode(Tr(it.options,ae)))),Rt=se.node.nextSibling}ae+=se.size}for(;Rt;)Rt=Ut(Rt)}function ho(it){var ot=it.gutters.offsetWidth;it.sizer.style.marginLeft=ot+"px"}function co(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+sl(it)+"px"}function ua(it){var ot=it.display,ct=ot.view;if(!(!ot.alignWidgets&&(!ot.gutters.firstChild||!it.options.fixedGutter))){for(var dt=tc(ot)-ot.scroller.scrollLeft+it.doc.scrollLeft,pt=ot.gutters.offsetWidth,Et=dt+"px",Rt=0;Rt<ct.length;Rt++)if(!ct[Rt].hidden){it.options.fixedGutter&&(ct[Rt].gutter&&(ct[Rt].gutter.style.left=Et),ct[Rt].gutterBackground&&(ct[Rt].gutterBackground.style.left=Et));var Ut=ct[Rt].alignable;if(Ut)for(var Vt=0;Vt<Ut.length;Vt++)Ut[Vt].style.left=Et}it.options.fixedGutter&&(ot.gutters.style.left=dt+pt+"px")}}function Ao(it){if(!it.options.lineNumbers)return!1;var ot=it.doc,ct=Tr(it.options,ot.first+ot.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var pt=dt.measure.appendChild(Zt("div",[Zt("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Et=pt.firstChild.offsetWidth,Rt=pt.offsetWidth-Et;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(Et,dt.lineGutter.offsetWidth-Rt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+Rt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",ho(it.display),!0}return!1}function Ta(it,ot){for(var ct=[],dt=!1,pt=0;pt<it.length;pt++){var Et=it[pt],Rt=null;if(typeof Et!="string"&&(Rt=Et.style,Et=Et.className),Et=="CodeMirror-linenumbers")if(ot)dt=!0;else continue;ct.push({className:Et,style:Rt})}return ot&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function Va(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],Et=pt.className,Rt=pt.style,Ut=ot.appendChild(Zt("div",null,"CodeMirror-gutter "+Et));Rt&&(Ut.style.cssText=Rt),Et=="CodeMirror-linenumbers"&&(it.lineGutter=Ut,Ut.style.width=(it.lineNumWidth||1)+"px")}ot.style.display=ct.length?"":"none",ho(it)}function ts(it){Va(it.display),$a(it),ua(it)}function Zs(it,ot,ct,dt){var pt=this;this.input=ct,pt.scrollbarFiller=Zt("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=Zt("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=Pe("div",null,"CodeMirror-code"),pt.selectionDiv=Zt("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=Zt("div",null,"CodeMirror-cursors"),pt.measure=Zt("div",null,"CodeMirror-measure"),pt.lineMeasure=Zt("div",null,"CodeMirror-measure"),pt.lineSpace=Pe("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var Et=Pe("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=Zt("div",[Et],null,"position: relative"),pt.sizer=Zt("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=Zt("div",null,null,"position: absolute; height: "+sn+"px; width: 1px;"),pt.gutters=Zt("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=Zt("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=Zt("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Ae&&Dt<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!Jt&&!(Lt&&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=Ta(dt.gutters,dt.lineNumbers),Va(pt),ct.init(pt)}var ys=0,Io=null;Ae?Io=-.53:Lt?Io=15:ce?Io=-.7:Je&&(Io=-1/3);function ra(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 wa(it){var ot=ra(it);return ot.x*=Io,ot.y*=Io,ot}function Da(it,ot){var ct=ra(ot),dt=ct.x,pt=ct.y,Et=it.display,Rt=Et.scroller,Ut=Rt.scrollWidth>Rt.clientWidth,Vt=Rt.scrollHeight>Rt.clientHeight;if(dt&&Ut||pt&&Vt){if(pt&&ht&&Jt){t:for(var ae=ot.target,be=Et.view;ae!=Rt;ae=ae.parentNode)for(var se=0;se<be.length;se++)if(be[se].node==ae){it.display.currentWheelTarget=ae;break t}}if(dt&&!Lt&&!ye&&Io!=null){pt&&Vt&&he(it,Math.max(0,Rt.scrollTop+pt*Io)),Se(it,Math.max(0,Rt.scrollLeft+dt*Io)),(!pt||pt&&Vt)&&Or(ot),Et.wheelStartX=null;return}if(pt&&Io!=null){var _e=pt*Io,qe=it.doc.scrollTop,Jn=qe+Et.wrapper.clientHeight;_e<0?qe=Math.max(0,qe+_e-50):Jn=Math.min(it.doc.height,Jn+_e+50),Pr(it,{top:qe,bottom:Jn})}ys<20&&(Et.wheelStartX==null?(Et.wheelStartX=Rt.scrollLeft,Et.wheelStartY=Rt.scrollTop,Et.wheelDX=dt,Et.wheelDY=pt,setTimeout(function(){if(Et.wheelStartX!=null){var vi=Rt.scrollLeft-Et.wheelStartX,Ti=Rt.scrollTop-Et.wheelStartY,Zi=Ti&&Et.wheelDY&&Ti/Et.wheelDY||vi&&Et.wheelDX&&vi/Et.wheelDX;Et.wheelStartX=Et.wheelStartY=null,Zi&&(Io=(Io*ys+Zi)/(ys+1),++ys)}},200)):(Et.wheelDX+=dt,Et.wheelDY+=pt))}}var oa=function(it,ot){this.ranges=it,this.primIndex=ot};oa.prototype.primary=function(){return this.ranges[this.primIndex]},oa.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(!ro(ct.anchor,dt.anchor)||!ro(ct.head,dt.head))return!1}return!0},oa.prototype.deepCopy=function(){for(var it=[],ot=0;ot<this.ranges.length;ot++)it[ot]=new Lr(Sa(this.ranges[ot].anchor),Sa(this.ranges[ot].head));return new oa(it,this.primIndex)},oa.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},oa.prototype.contains=function(it,ot){ot||(ot=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(Ri(ot,dt.from())>=0&&Ri(it,dt.to())<=0)return ct}return-1};var Lr=function(it,ot){this.anchor=it,this.head=ot};Lr.prototype.from=function(){return ki(this.anchor,this.head)},Lr.prototype.to=function(){return bo(this.anchor,this.head)},Lr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pa(it,ot,ct){var dt=it&&it.options.selectionsMayTouch,pt=ot[ct];ot.sort(function(_e,qe){return Ri(_e.from(),qe.from())}),ct=Ee(ot,pt);for(var Et=1;Et<ot.length;Et++){var Rt=ot[Et],Ut=ot[Et-1],Vt=Ri(Ut.to(),Rt.from());if(dt&&!Rt.empty()?Vt>0:Vt>=0){var ae=ki(Ut.from(),Rt.from()),be=bo(Ut.to(),Rt.to()),se=Ut.empty()?Rt.from()==Rt.head:Ut.from()==Ut.head;Et<=ct&&--ct,ot.splice(--Et,2,new Lr(se?be:ae,se?ae:be))}}return new oa(ot,ct)}function As(it,ot){return new oa([new Lr(it,ot||it)],0)}function nl(it){return it.text?Cn(it.from.line+it.text.length-1,Re(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Sl(it,ot){if(Ri(it,ot.from)<0)return it;if(Ri(it,ot.to)<=0)return nl(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+=nl(ot).ch-ot.to.ch),Cn(ct,dt)}function Tl(it,ot){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var pt=it.sel.ranges[dt];ct.push(new Lr(Sl(pt.anchor,ot),Sl(pt.head,ot)))}return pa(it.cm,ct,it.sel.primIndex)}function Dl(it,ot,ct){return it.line==ot.line?Cn(ct.line,it.ch-ot.ch+ct.ch):Cn(ct.line+(it.line-ot.line),it.ch)}function nu(it,ot,ct){for(var dt=[],pt=Cn(it.first,0),Et=pt,Rt=0;Rt<ot.length;Rt++){var Ut=ot[Rt],Vt=Dl(Ut.from,pt,Et),ae=Dl(nl(Ut),pt,Et);if(pt=Ut.to,Et=ae,ct=="around"){var be=it.sel.ranges[Rt],se=Ri(be.head,be.anchor)<0;dt[Rt]=new Lr(se?ae:Vt,se?Vt:ae)}else dt[Rt]=new Lr(Vt,Vt)}return new oa(dt,it.sel.primIndex)}function _r(it){it.doc.mode=je(it.options,it.doc.modeOption),Ol(it)}function Ol(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,Ro(it,100),it.state.modeGen++,it.curOp&&$a(it)}function Oa(it,ot){return ot.from.ch==0&&ot.to.ch==0&&Re(ot.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function il(it,ot,ct,dt){function pt(br){return ct?ct[br]:null}function Et(br,ur,Ir){Ws(br,ur,Ir,dt),$i(br,"change",br,ot)}function Rt(br,ur){for(var Ir=[],Bo=br;Bo<ur;++Bo)Ir.push(new Na(ae[Bo],pt(Bo),dt));return Ir}var Ut=ot.from,Vt=ot.to,ae=ot.text,be=yn(it,Ut.line),se=yn(it,Vt.line),_e=Re(ae),qe=pt(ae.length-1),Jn=Vt.line-Ut.line;if(ot.full)it.insert(0,Rt(0,ae.length)),it.remove(ae.length,it.size-ae.length);else if(Oa(it,ot)){var vi=Rt(0,ae.length-1);Et(se,se.text,qe),Jn&&it.remove(Ut.line,Jn),vi.length&&it.insert(Ut.line,vi)}else if(be==se)if(ae.length==1)Et(be,be.text.slice(0,Ut.ch)+_e+be.text.slice(Vt.ch),qe);else{var Ti=Rt(1,ae.length-1);Ti.push(new Na(_e+be.text.slice(Vt.ch),qe,dt)),Et(be,be.text.slice(0,Ut.ch)+ae[0],pt(0)),it.insert(Ut.line+1,Ti)}else if(ae.length==1)Et(be,be.text.slice(0,Ut.ch)+ae[0]+se.text.slice(Vt.ch),pt(0)),it.remove(Ut.line+1,Jn);else{Et(be,be.text.slice(0,Ut.ch)+ae[0],pt(0)),Et(se,_e+se.text.slice(Vt.ch),qe);var Zi=Rt(1,ae.length-1);Jn>1&&it.remove(Ut.line+1,Jn-1),it.insert(Ut.line+1,Zi)}$i(it,"change",it,ot)}function ul(it,ot,ct){function dt(pt,Et,Rt){if(pt.linked)for(var Ut=0;Ut<pt.linked.length;++Ut){var Vt=pt.linked[Ut];if(Vt.doc!=Et){var ae=Rt&&Vt.sharedHist;ct&&!ae||(ot(Vt.doc,ae),dt(Vt.doc,pt,ae))}}}dt(it,null,!0)}function Bs(it,ot){if(ot.cm)throw new Error("This document is already in use.");it.doc=ot,ot.cm=it,zr(it),_r(it),gu(it),it.options.lineWrapping||ka(it),it.options.mode=ot.modeOption,$a(it)}function gu(it){(it.doc.direction=="rtl"?Ie:qt)(it.display.lineDiv,"CodeMirror-rtl")}function Cl(it){ji(it,function(){gu(it),$a(it)})}function Eu(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 ds(it,ot){var ct={from:Sa(ot.from),to:nl(ot),text:Ni(it,ot.from,ot.to)};return nh(it,ct,ot.from.line,ot.to.line+1),ul(it,function(dt){return nh(dt,ct,ot.from.line,ot.to.line+1)},!0),ct}function pu(it){for(;it.length;){var ot=Re(it);if(ot.ranges)it.pop();else break}}function Gu(it,ot){if(ot)return pu(it.done),Re(it.done);if(it.done.length&&!Re(it.done).ranges)return Re(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Re(it.done)}function Oh(it,ot,ct,dt){var pt=it.history;pt.undone.length=0;var Et=+new Date,Rt,Ut;if((pt.lastOp==dt||pt.lastOrigin==ot.origin&&ot.origin&&(ot.origin.charAt(0)=="+"&&pt.lastModTime>Et-(it.cm?it.cm.options.historyEventDelay:500)||ot.origin.charAt(0)=="*"))&&(Rt=Gu(pt,pt.lastOp==dt)))Ut=Re(Rt.changes),Ri(ot.from,ot.to)==0&&Ri(ot.from,Ut.to)==0?Ut.to=nl(ot):Rt.changes.push(ds(it,ot));else{var Vt=Re(pt.done);for((!Vt||!Vt.ranges)&&hl(it.sel,pt.done),Rt={changes:[ds(it,ot)],generation:pt.generation},pt.done.push(Rt);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=Et,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=ot.origin,Ut||ii(it,"historyAdded")}function zc(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 ec(it,ot,ct,dt){var pt=it.history,Et=dt&&dt.origin;ct==pt.lastSelOp||Et&&pt.lastSelOrigin==Et&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==Et||zc(it,Et,Re(pt.done),ot))?pt.done[pt.done.length-1]=ot:hl(ot,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=Et,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&pu(pt.undone)}function hl(it,ot){var ct=Re(ot);ct&&ct.ranges&&ct.equals(it)||ot.push(it)}function nh(it,ot,ct,dt){var pt=ot["spans_"+it.id],Et=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(Rt){Rt.markedSpans&&((pt||(pt=ot["spans_"+it.id]={}))[Et]=Rt.markedSpans),++Et})}function cl(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 Lu(it,ot){var ct=ot["spans_"+it.id];if(!ct)return null;for(var dt=[],pt=0;pt<ot.text.length;++pt)dt.push(cl(ct[pt]));return dt}function mu(it,ot){var ct=Lu(it,ot),dt=Fa(it,ot);if(!ct)return dt;if(!dt)return ct;for(var pt=0;pt<ct.length;++pt){var Et=ct[pt],Rt=dt[pt];if(Et&&Rt)t:for(var Ut=0;Ut<Rt.length;++Ut){for(var Vt=Rt[Ut],ae=0;ae<Et.length;++ae)if(Et[ae].marker==Vt.marker)continue t;Et.push(Vt)}else Rt&&(ct[pt]=Rt)}return ct}function ih(it,ot,ct){for(var dt=[],pt=0;pt<it.length;++pt){var Et=it[pt];if(Et.ranges){dt.push(ct?oa.prototype.deepCopy.call(Et):Et);continue}var Rt=Et.changes,Ut=[];dt.push({changes:Ut});for(var Vt=0;Vt<Rt.length;++Vt){var ae=Rt[Vt],be=void 0;if(Ut.push({from:ae.from,to:ae.to,text:ae.text}),ot)for(var se in ae)(be=se.match(/^spans_(\d+)$/))&&Ee(ot,Number(be[1]))>-1&&(Re(Ut)[se]=ae[se],delete ae[se])}}return dt}function Pc(it,ot,ct,dt){if(dt){var pt=it.anchor;if(ct){var Et=Ri(ot,pt)<0;Et!=Ri(ct,pt)<0?(pt=ot,ot=ct):Et!=Ri(ot,ct)<0&&(ot=ct)}return new Lr(pt,ot)}else return new Lr(ct||ot,ot)}function nc(it,ot,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),is(it,new oa([Pc(it.sel.primary(),ot,ct,pt)],0),dt)}function jc(it,ot,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),Et=0;Et<it.sel.ranges.length;Et++)dt[Et]=Pc(it.sel.ranges[Et],ot[Et],null,pt);var Rt=pa(it.cm,dt,it.sel.primIndex);is(it,Rt,ct)}function ph(it,ot,ct,dt){var pt=it.sel.ranges.slice(0);pt[ot]=ct,is(it,pa(it.cm,pt,it.sel.primIndex),dt)}function Mu(it,ot,ct,dt){is(it,As(ot,ct),dt)}function ic(it,ot,ct){var dt={ranges:ot.ranges,update:function(pt){this.ranges=[];for(var Et=0;Et<pt.length;Et++)this.ranges[Et]=new Lr(Hi(it,pt[Et].anchor),Hi(it,pt[Et].head))},origin:ct&&ct.origin};return ii(it,"beforeSelectionChange",it,dt),it.cm&&ii(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=ot.ranges?pa(it.cm,dt.ranges,dt.ranges.length-1):ot}function mh(it,ot,ct){var dt=it.history.done,pt=Re(dt);pt&&pt.ranges?(dt[dt.length-1]=ot,Al(it,ot,ct)):is(it,ot,ct)}function is(it,ot,ct){Al(it,ot,ct),ec(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function Al(it,ot,ct){(gi(it,"beforeSelectionChange")||it.cm&&gi(it.cm,"beforeSelectionChange"))&&(ot=ic(it,ot,ct));var dt=ct&&ct.bias||(Ri(ot.primary().head,it.sel.primary().head)<0?-1:1);Ku(it,Bt(it,ot,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Dh(it.cm)}function Ku(it,ot){ot.equals(it.sel)||(it.sel=ot,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,di(it.cm)),$i(it,"cursorActivity",it))}function yt(it){Ku(it,Bt(it,it.sel,null,!1))}function Bt(it,ot,ct,dt){for(var pt,Et=0;Et<ot.ranges.length;Et++){var Rt=ot.ranges[Et],Ut=ot.ranges.length==it.sel.ranges.length&&it.sel.ranges[Et],Vt=Kt(it,Rt.anchor,Ut&&Ut.anchor,ct,dt),ae=Kt(it,Rt.head,Ut&&Ut.head,ct,dt);(pt||Vt!=Rt.anchor||ae!=Rt.head)&&(pt||(pt=ot.ranges.slice(0,Et)),pt[Et]=new Lr(Vt,ae))}return pt?pa(it.cm,pt,ot.primIndex):ot}function Ot(it,ot,ct,dt,pt){var Et=yn(it,ot.line);if(Et.markedSpans)for(var Rt=0;Rt<Et.markedSpans.length;++Rt){var Ut=Et.markedSpans[Rt],Vt=Ut.marker,ae="selectLeft"in Vt?!Vt.selectLeft:Vt.inclusiveLeft,be="selectRight"in Vt?!Vt.selectRight:Vt.inclusiveRight;if((Ut.from==null||(ae?Ut.from<=ot.ch:Ut.from<ot.ch))&&(Ut.to==null||(be?Ut.to>=ot.ch:Ut.to>ot.ch))){if(pt&&(ii(Vt,"beforeCursorEnter"),Vt.explicitlyCleared))if(Et.markedSpans){--Rt;continue}else break;if(!Vt.atomic)continue;if(ct){var se=Vt.find(dt<0?1:-1),_e=void 0;if((dt<0?be:ae)&&(se=le(it,se,-dt,se&&se.line==ot.line?Et:null)),se&&se.line==ot.line&&(_e=Ri(se,ct))&&(dt<0?_e<0:_e>0))return Ot(it,se,ot,dt,pt)}var qe=Vt.find(dt<0?-1:1);return(dt<0?ae:be)&&(qe=le(it,qe,dt,qe.line==ot.line?Et:null)),qe?Ot(it,qe,ot,dt,pt):null}}return ot}function Kt(it,ot,ct,dt,pt){var Et=dt||1,Rt=Ot(it,ot,ct,Et,pt)||!pt&&Ot(it,ot,ct,Et,!0)||Ot(it,ot,ct,-Et,pt)||!pt&&Ot(it,ot,ct,-Et,!0);return Rt||(it.cantEdit=!0,Cn(it.first,0))}function le(it,ot,ct,dt){return ct<0&&ot.ch==0?ot.line>it.first?Hi(it,Cn(ot.line-1)):null:ct>0&&ot.ch==(dt||yn(it,ot.line)).text.length?ot.line<it.first+it.size-1?Cn(ot.line+1,0):null:new Cn(ot.line,ot.ch+ct)}function Ce(it){it.setSelection(Cn(it.firstLine(),0),Cn(it.lastLine()),Le)}function Ue(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,Et,Rt,Ut){pt&&(dt.from=Hi(it,pt)),Et&&(dt.to=Hi(it,Et)),Rt&&(dt.text=Rt),Ut!==void 0&&(dt.origin=Ut)}),ii(it,"beforeChange",it,dt),it.cm&&ii(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 tn(it,ot,ct){if(it.cm){if(!it.cm.curOp)return Sr(it.cm,tn)(it,ot,ct);if(it.cm.state.suppressEdits)return}if(!((gi(it,"beforeChange")||it.cm&&gi(it.cm,"beforeChange"))&&(ot=Ue(it,ot,!0),!ot))){var dt=ea&&!ct&&la(it,ot.from,ot.to);if(dt)for(var pt=dt.length-1;pt>=0;--pt)wn(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:ot.text,origin:ot.origin});else wn(it,ot)}}function wn(it,ot){if(!(ot.text.length==1&&ot.text[0]==""&&Ri(ot.from,ot.to)==0)){var ct=Tl(it,ot);Oh(it,ot,ct,it.cm?it.cm.curOp.id:NaN),oi(it,ot,ct,Fa(it,ot));var dt=[];ul(it,function(pt,Et){!Et&&Ee(dt,pt.history)==-1&&(si(pt.history,ot),dt.push(pt.history)),oi(pt,ot,null,Fa(pt,ot))})}}function Bn(it,ot,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,Et,Rt=it.sel,Ut=ot=="undo"?pt.done:pt.undone,Vt=ot=="undo"?pt.undone:pt.done,ae=0;ae<Ut.length&&(Et=Ut[ae],!(ct?Et.ranges&&!Et.equals(it.sel):!Et.ranges));ae++);if(ae!=Ut.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(Et=Ut.pop(),Et.ranges){if(hl(Et,Vt),ct&&!Et.equals(it.sel)){is(it,Et,{clearRedo:!1});return}Rt=Et}else if(dt){Ut.push(Et);return}else break;var be=[];hl(Rt,Vt),Vt.push({changes:be,generation:pt.generation}),pt.generation=Et.generation||++pt.maxGeneration;for(var se=gi(it,"beforeChange")||it.cm&&gi(it.cm,"beforeChange"),_e=function(vi){var Ti=Et.changes[vi];if(Ti.origin=ot,se&&!Ue(it,Ti,!1))return Ut.length=0,{};be.push(ds(it,Ti));var Zi=vi?Tl(it,Ti):Re(Ut);oi(it,Ti,Zi,mu(it,Ti)),!vi&&it.cm&&it.cm.scrollIntoView({from:Ti.from,to:nl(Ti)});var br=[];ul(it,function(ur,Ir){!Ir&&Ee(br,ur.history)==-1&&(si(ur.history,Ti),br.push(ur.history)),oi(ur,Ti,null,mu(ur,Ti))})},qe=Et.changes.length-1;qe>=0;--qe){var Jn=_e(qe);if(Jn)return Jn.v}}}}function hn(it,ot){if(ot!=0&&(it.first+=ot,it.sel=new oa(dn(it.sel.ranges,function(pt){return new Lr(Cn(pt.anchor.line+ot,pt.anchor.ch),Cn(pt.head.line+ot,pt.head.ch))}),it.sel.primIndex),it.cm)){$a(it.cm,it.first,it.first-ot,ot);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)Ho(it.cm,dt,"gutter")}}function oi(it,ot,ct,dt){if(it.cm&&!it.cm.curOp)return Sr(it.cm,oi)(it,ot,ct,dt);if(ot.to.line<it.first){hn(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);hn(it,pt),ot={from:Cn(it.first,0),to:Cn(ot.to.line+pt,ot.to.ch),text:[Re(ot.text)],origin:ot.origin}}var Et=it.lastLine();ot.to.line>Et&&(ot={from:ot.from,to:Cn(Et,yn(it,Et).text.length),text:[ot.text[0]],origin:ot.origin}),ot.removed=Ni(it,ot.from,ot.to),ct||(ct=Tl(it,ot)),it.cm?Pi(it.cm,ot,dt):il(it,ot,dt),Al(it,ct,Le),it.cantEdit&&Kt(it,Cn(it.firstLine(),0))&&(it.cantEdit=!1)}}function Pi(it,ot,ct){var dt=it.doc,pt=it.display,Et=ot.from,Rt=ot.to,Ut=!1,Vt=Et.line;it.options.lineWrapping||(Vt=De(Ma(yn(dt,Et.line))),dt.iter(Vt,Rt.line+1,function(qe){if(qe==pt.maxLine)return Ut=!0,!0})),dt.sel.contains(ot.from,ot.to)>-1&&di(it),il(dt,ot,ct,cs(it)),it.options.lineWrapping||(dt.iter(Vt,Et.line+ot.text.length,function(qe){var Jn=za(qe);Jn>pt.maxLineLength&&(pt.maxLine=qe,pt.maxLineLength=Jn,pt.maxLineChanged=!0,Ut=!1)}),Ut&&(it.curOp.updateMaxLine=!0)),Hr(dt,Et.line),Ro(it,400);var ae=ot.text.length-(Rt.line-Et.line)-1;ot.full?$a(it):Et.line==Rt.line&&ot.text.length==1&&!Oa(it.doc,ot)?Ho(it,Et.line,"text"):$a(it,Et.line,Rt.line+1,ae);var be=gi(it,"changes"),se=gi(it,"change");if(se||be){var _e={from:Et,to:Rt,text:ot.text,removed:ot.removed,origin:ot.origin};se&&$i(it,"change",it,_e),be&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(_e)}it.display.selForContextMenu=null}function pi(it,ot,ct,dt,pt){var Et;dt||(dt=ct),Ri(dt,ct)<0&&(Et=[dt,ct],ct=Et[0],dt=Et[1]),typeof ot=="string"&&(ot=it.splitLines(ot)),tn(it,{from:ct,to:dt,text:ot,origin:pt})}function Qn(it,ot,ct,dt){ct<it.line?it.line+=dt:ot<it.line&&(it.line=ot,it.ch=0)}function hi(it,ot,ct,dt){for(var pt=0;pt<it.length;++pt){var Et=it[pt],Rt=!0;if(Et.ranges){Et.copied||(Et=it[pt]=Et.deepCopy(),Et.copied=!0);for(var Ut=0;Ut<Et.ranges.length;Ut++)Qn(Et.ranges[Ut].anchor,ot,ct,dt),Qn(Et.ranges[Ut].head,ot,ct,dt);continue}for(var Vt=0;Vt<Et.changes.length;++Vt){var ae=Et.changes[Vt];if(ct<ae.from.line)ae.from=Cn(ae.from.line+dt,ae.from.ch),ae.to=Cn(ae.to.line+dt,ae.to.ch);else if(ot<=ae.to.line){Rt=!1;break}}Rt||(it.splice(0,pt+1),pt=0)}}function si(it,ot){var ct=ot.from.line,dt=ot.to.line,pt=ot.text.length-(dt-ct)-1;hi(it.done,ct,dt,pt),hi(it.undone,ct,dt,pt)}function Nn(it,ot,ct,dt){var pt=ot,Et=ot;return typeof ot=="number"?Et=yn(it,Bi(it,ot)):pt=De(ot),pt==null?null:(dt(Et,pt)&&it.cm&&Ho(it.cm,pt,ct),Et)}function Vn(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}Vn.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,xl(pt),$i(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 Rn(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}Rn.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 Et=Math.min(ot,pt-it),Rt=dt.height;if(dt.removeInner(it,Et),this.height-=Rt-dt.height,pt==Et&&(this.children.splice(ct--,1),dt.parent=null),(ot-=Et)==0)break;it=0}else it-=pt}if(this.size-ot<25&&(this.children.length>1||!(this.children[0]instanceof Vn))){var Ut=[];this.collapse(Ut),this.children=[new Vn(Ut)],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],Et=pt.chunkSize();if(it<=Et){if(pt.insertInner(it,ot,ct),pt.lines&&pt.lines.length>50){for(var Rt=pt.lines.length%25+25,Ut=Rt;Ut<pt.lines.length;){var Vt=new Vn(pt.lines.slice(Ut,Ut+=25));pt.height-=Vt.height,this.children.splice(++dt,0,Vt),Vt.parent=this}pt.lines=pt.lines.slice(0,Rt),this.maybeSpill()}break}it-=Et}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var ot=it.children.splice(it.children.length-5,5),ct=new Rn(ot);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=Ee(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var dt=new Rn(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],Et=pt.chunkSize();if(it<Et){var Rt=Math.min(ot,Et-it);if(pt.iterN(it,Rt,ct))return!0;if((ot-=Rt)==0)break;it=0}else it-=Et}}};var ei=function(it,ot,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=ot};ei.prototype.clear=function(){var it=this.doc.cm,ot=this.line.widgets,ct=this.line,dt=De(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 Et=ml(this);Dn(ct,Math.max(0,ct.height-Et)),it&&(ji(it,function(){bi(it,ct,-Et),Ho(it,dt,"widget")}),$i(it,"lineWidgetCleared",it,this,dt))}},ei.prototype.changed=function(){var it=this,ot=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var pt=ml(this)-ot;pt&&(un(this.doc,dt)||Dn(dt,dt.height+pt),ct&&ji(ct,function(){ct.curOp.forceUpdate=!0,bi(ct,dt,pt),$i(ct,"lineWidgetChanged",ct,it,De(dt))}))},hr(ei);function bi(it,ot,ct){oo(ot)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Wu(it,ct)}function Mi(it,ot,ct,dt){var pt=new ei(it,ct,dt),Et=it.cm;return Et&&pt.noHScroll&&(Et.display.alignWidgets=!0),Nn(it,ot,"widget",function(Rt){var Ut=Rt.widgets||(Rt.widgets=[]);if(pt.insertAt==null?Ut.push(pt):Ut.splice(Math.min(Ut.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Rt,Et&&!un(it,Rt)){var Vt=oo(Rt)<it.scrollTop;Dn(Rt,Rt.height+ml(pt)),Vt&&Wu(Et,pt.height),Et.curOp.forceUpdate=!0}return!0}),Et&&$i(Et,"lineWidgetAdded",Et,pt,typeof ot=="number"?ot:De(ot)),pt}var Ei=0,pe=function(it,ot){this.lines=[],this.type=ot,this.doc=it,this.id=++Ei};pe.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,ot=it&&!it.curOp;if(ot&&ri(it),gi(this,"clear")){var ct=this.find();ct&&$i(this,"clear",ct.from,ct.to)}for(var dt=null,pt=null,Et=0;Et<this.lines.length;++Et){var Rt=this.lines[Et],Ut=Fs(Rt.markedSpans,this);it&&!this.collapsed?Ho(it,De(Rt),"text"):it&&(Ut.to!=null&&(pt=De(Rt)),Ut.from!=null&&(dt=De(Rt))),Rt.markedSpans=Ia(Rt.markedSpans,Ut),Ut.from==null&&this.collapsed&&!un(this.doc,Rt)&&it&&Dn(Rt,th(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Vt=0;Vt<this.lines.length;++Vt){var ae=Ma(this.lines[Vt]),be=za(ae);be>it.display.maxLineLength&&(it.display.maxLine=ae,it.display.maxLineLength=be,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&$a(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&&$i(it,"markerCleared",it,this,dt,pt),ot&&Zn(it),this.parent&&this.parent.clear()}},pe.prototype.find=function(it,ot){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt<this.lines.length;++pt){var Et=this.lines[pt],Rt=Fs(Et.markedSpans,this);if(Rt.from!=null&&(ct=Cn(ot?Et:De(Et),Rt.from),it==-1))return ct;if(Rt.to!=null&&(dt=Cn(ot?Et:De(Et),Rt.to),it==1))return dt}return ct&&{from:ct,to:dt}},pe.prototype.changed=function(){var it=this,ot=this.find(-1,!0),ct=this,dt=this.doc.cm;!ot||!dt||ji(dt,function(){var pt=ot.line,Et=De(ot.line),Rt=du(dt,Et);if(Rt&&(hf(Rt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!un(ct.doc,pt)&&ct.height!=null){var Ut=ct.height;ct.height=null;var Vt=ml(ct)-Ut;Vt&&Dn(pt,pt.height+Vt)}$i(dt,"markerChanged",dt,it)})},pe.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(!ot.maybeHiddenMarkers||Ee(ot.maybeHiddenMarkers,this)==-1)&&(ot.maybeUnhiddenMarkers||(ot.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},pe.prototype.detachLine=function(it){if(this.lines.splice(Ee(this.lines,it),1),!this.lines.length&&this.doc.cm){var ot=this.doc.cm.curOp;(ot.maybeHiddenMarkers||(ot.maybeHiddenMarkers=[])).push(this)}},hr(pe);function _i(it,ot,ct,dt,pt){if(dt&&dt.shared)return xr(it,ot,ct,dt,pt);if(it.cm&&!it.cm.curOp)return Sr(it.cm,_i)(it,ot,ct,dt,pt);var Et=new pe(it,pt),Rt=Ri(ot,ct);if(dt&&Xn(dt,Et,!1),Rt>0||Rt==0&&Et.clearWhenEmpty!==!1)return Et;if(Et.replacedWith&&(Et.collapsed=!0,Et.widgetNode=Pe("span",[Et.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Et.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Et.widgetNode.insertLeft=!0)),Et.collapsed){if(Cu(it,ot.line,ot,ct,Et)||ot.line!=ct.line&&Cu(it,ct.line,ot,ct,Et))throw new Error("Inserting collapsed marker partially overlapping an existing one");pn()}Et.addToHistory&&Oh(it,{from:ot,to:ct,origin:"markText"},it.sel,NaN);var Ut=ot.line,Vt=it.cm,ae;if(it.iter(Ut,ct.line+1,function(se){Vt&&Et.collapsed&&!Vt.options.lineWrapping&&Ma(se)==Vt.display.maxLine&&(ae=!0),Et.collapsed&&Ut!=ot.line&&Dn(se,0),$s(se,new vo(Et,Ut==ot.line?ot.ch:null,Ut==ct.line?ct.ch:null)),++Ut}),Et.collapsed&&it.iter(ot.line,ct.line+1,function(se){un(it,se)&&Dn(se,0)}),Et.clearOnEnter&&$n(Et,"beforeCursorEnter",function(){return Et.clear()}),Et.readOnly&&(La(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Et.collapsed&&(Et.id=++Ei,Et.atomic=!0),Vt){if(ae&&(Vt.curOp.updateMaxLine=!0),Et.collapsed)$a(Vt,ot.line,ct.line+1);else if(Et.className||Et.startStyle||Et.endStyle||Et.css||Et.attributes||Et.title)for(var be=ot.line;be<=ct.line;be++)Ho(Vt,be,"text");Et.atomic&&yt(Vt.doc),$i(Vt,"markerAdded",Vt,Et)}return Et}var er=function(it,ot){this.markers=it,this.primary=ot;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};er.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();$i(this,"clear")}},er.prototype.find=function(it,ot){return this.primary.find(it,ot)},hr(er);function xr(it,ot,ct,dt,pt){dt=Xn(dt),dt.shared=!1;var Et=[_i(it,ot,ct,dt,pt)],Rt=Et[0],Ut=dt.widgetNode;return ul(it,function(Vt){Ut&&(dt.widgetNode=Ut.cloneNode(!0)),Et.push(_i(Vt,Hi(Vt,ot),Hi(Vt,ct),dt,pt));for(var ae=0;ae<Vt.linked.length;++ae)if(Vt.linked[ae].isParent)return;Rt=Re(Et)}),new er(Et,Rt)}function Gr(it){return it.findMarks(Cn(it.first,0),it.clipPos(Cn(it.lastLine())),function(ot){return ot.parent})}function dr(it,ot){for(var ct=0;ct<ot.length;ct++){var dt=ot[ct],pt=dt.find(),Et=it.clipPos(pt.from),Rt=it.clipPos(pt.to);if(Ri(Et,Rt)){var Ut=_i(it,Et,Rt,dt.primary,dt.primary.type);dt.markers.push(Ut),Ut.parent=dt}}}function Cr(it){for(var ot=function(dt){var pt=it[dt],Et=[pt.primary.doc];ul(pt.primary.doc,function(Vt){return Et.push(Vt)});for(var Rt=0;Rt<pt.markers.length;Rt++){var Ut=pt.markers[Rt];Ee(Et,Ut.doc)==-1&&(Ut.parent=null,pt.markers.splice(Rt--,1))}},ct=0;ct<it.length;ct++)ot(ct)}var Dr=0,fr=function(it,ot,ct,dt,pt){if(!(this instanceof fr))return new fr(it,ot,ct,dt,pt);ct==null&&(ct=0),Rn.call(this,[new Vn([new Na("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Et=Cn(ct,0);this.sel=As(Et),this.history=new Eu(null),this.id=++Dr,this.modeOption=ot,this.lineSep=dt,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),il(this,{from:Et,to:Et,text:it}),is(this,As(Et),Le)};fr.prototype=At(Rn.prototype,{constructor:fr,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=Yi(this,this.first,this.first+this.size);return it===!1?ot:ot.join(it||this.lineSeparator())},setValue:pr(function(it){var ot=Cn(this.first,0),ct=this.first+this.size-1;tn(this,{from:ot,to:Cn(ct,yn(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Hu(this.cm,0,0),is(this,As(ot),Le)}),replaceRange:function(it,ot,ct,dt){ot=Hi(this,ot),ct=ct?Hi(this,ct):ot,pi(this,it,ot,ct,dt)},getRange:function(it,ot,ct){var dt=Ni(this,Hi(this,it),Hi(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(Ui(this,it))return yn(this,it)},getLineNumber:function(it){return De(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=yn(this,it)),Ma(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Hi(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:pr(function(it,ot,ct){Mu(this,Hi(this,typeof it=="number"?Cn(it,ot||0):it),null,ct)}),setSelection:pr(function(it,ot,ct){Mu(this,Hi(this,it),Hi(this,ot||it),ct)}),extendSelection:pr(function(it,ot,ct){nc(this,Hi(this,it),ot&&Hi(this,ot),ct)}),extendSelections:pr(function(it,ot){jc(this,Yr(this,it),ot)}),extendSelectionsBy:pr(function(it,ot){var ct=dn(this.sel.ranges,it);jc(this,Yr(this,ct),ot)}),setSelections:pr(function(it,ot,ct){if(it.length){for(var dt=[],pt=0;pt<it.length;pt++)dt[pt]=new Lr(Hi(this,it[pt].anchor),Hi(this,it[pt].head));ot==null&&(ot=Math.min(it.length-1,this.sel.primIndex)),is(this,pa(this.cm,dt,ot),ct)}}),addSelection:pr(function(it,ot,ct){var dt=this.sel.ranges.slice(0);dt.push(new Lr(Hi(this,it),Hi(this,ot||it))),is(this,pa(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=Ni(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=Ni(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:pr(function(it,ot,ct){for(var dt=[],pt=this.sel,Et=0;Et<pt.ranges.length;Et++){var Rt=pt.ranges[Et];dt[Et]={from:Rt.from(),to:Rt.to(),text:this.splitLines(it[Et]),origin:ct}}for(var Ut=ot&&ot!="end"&&nu(this,dt,ot),Vt=dt.length-1;Vt>=0;Vt--)tn(this,dt[Vt]);Ut?mh(this,Ut):this.cm&&Dh(this.cm)}),undo:pr(function(){Bn(this,"undo")}),redo:pr(function(){Bn(this,"redo")}),undoSelection:pr(function(){Bn(this,"undo",!0)}),redoSelection:pr(function(){Bn(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 Eu(this.history.maxGeneration),ul(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:ih(this.history.done),undone:ih(this.history.undone)}},setHistory:function(it){var ot=this.history=new Eu(this.history.maxGeneration);ot.done=ih(it.done.slice(0),null,!0),ot.undone=ih(it.undone.slice(0),null,!0)},setGutterMarker:pr(function(it,ot,ct){return Nn(this,it,"gutter",function(dt){var pt=dt.gutterMarkers||(dt.gutterMarkers={});return pt[ot]=ct,!ct&&kt(pt)&&(dt.gutterMarkers=null),!0})}),clearGutter:pr(function(it){var ot=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&Nn(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(!Ui(this,it)||(ot=it,it=yn(this,it),!it))return null}else if(ot=De(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:pr(function(it,ot,ct){return Nn(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:pr(function(it,ot,ct){return Nn(this,it,ot=="gutter"?"gutter":"class",function(dt){var pt=ot=="text"?"textClass":ot=="background"?"bgClass":ot=="gutter"?"gutterClass":"wrapClass",Et=dt[pt];if(Et)if(ct==null)dt[pt]=null;else{var Rt=Et.match(zt(ct));if(!Rt)return!1;var Ut=Rt.index+Rt[0].length;dt[pt]=Et.slice(0,Rt.index)+(!Rt.index||Ut==Et.length?"":" ")+Et.slice(Ut)||null}else return!1;return!0})}),addLineWidget:pr(function(it,ot,ct){return Mi(this,it,ot,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,ot,ct){return _i(this,Hi(this,it),Hi(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=Hi(this,it),_i(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Hi(this,it);var ot=[],ct=yn(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=Hi(this,it),ot=Hi(this,ot);var dt=[],pt=it.line;return this.iter(it.line,ot.line+1,function(Et){var Rt=Et.markedSpans;if(Rt)for(var Ut=0;Ut<Rt.length;Ut++){var Vt=Rt[Ut];!(Vt.to!=null&&pt==it.line&&it.ch>=Vt.to||Vt.from==null&&pt!=it.line||Vt.from!=null&&pt==ot.line&&Vt.from>=ot.ch)&&(!ct||ct(Vt.marker))&&dt.push(Vt.marker.parent||Vt.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 Et=pt.text.length+dt;if(Et>it)return ot=it,!0;it-=Et,++ct}),Hi(this,Cn(ct,ot))},indexFromPos:function(it){it=Hi(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 fr(Yi(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 fr(Yi(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}],dr(dt,Gr(this)),dt},unlinkDoc:function(it){if(it instanceof sa&&(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),Cr(Gr(this));break}}if(it.history==this.history){var dt=[it.id];ul(it,function(pt){return dt.push(pt.id)},!0),it.history=new Eu(null),it.history.done=ih(this.history.done,dt),it.history.undone=ih(this.history.undone,dt)}},iterLinkedDocs:function(it){ul(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):vn(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:pr(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(ot){return ot.order=null}),this.cm&&Cl(this.cm))})}),fr.prototype.eachLine=fr.prototype.iter;var Zr=0;function No(it){var ot=this;if(Fr(ot),!(mi(ot,it)||vl(ot.display,it))){Or(it),Ae&&(Zr=+new Date);var ct=Nl(ot,it,!0),dt=it.dataTransfer.files;if(!(!ct||ot.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var pt=dt.length,Et=Array(pt),Rt=0,Ut=function(){++Rt==pt&&Sr(ot,function(){ct=Hi(ot.doc,ct);var qe={from:ct,to:ct,text:ot.doc.splitLines(Et.filter(function(Jn){return Jn!=null}).join(ot.doc.lineSeparator())),origin:"paste"};tn(ot.doc,qe),mh(ot.doc,As(Hi(ot.doc,ct),Hi(ot.doc,nl(qe))))})()},Vt=function(qe,Jn){if(ot.options.allowDropFileTypes&&Ee(ot.options.allowDropFileTypes,qe.type)==-1){Ut();return}var vi=new FileReader;vi.onerror=function(){return Ut()},vi.onload=function(){var Ti=vi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ti)){Ut();return}Et[Jn]=Ti,Ut()},vi.readAsText(qe)},ae=0;ae<dt.length;ae++)Vt(dt[ae],ae);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 be=it.dataTransfer.getData("Text");if(be){var se;if(ot.state.draggingText&&!ot.state.draggingText.copy&&(se=ot.listSelections()),Al(ot.doc,As(ct,ct)),se)for(var _e=0;_e<se.length;++_e)pi(ot.doc,"",se[_e].anchor,se[_e].head,"drag");ot.replaceSelection(be,"around","paste"),ot.display.input.focus()}}catch(qe){}}}}function wo(it,ot){if(Ae&&(!it.state.draggingText||+new Date-Zr<100)){jr(ot);return}if(!(mi(it,ot)||vl(it.display,ot))&&(ot.dataTransfer.setData("Text",it.getSelection()),ot.dataTransfer.effectAllowed="copyMove",ot.dataTransfer.setDragImage&&!Je)){var ct=Zt("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ye&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),ot.dataTransfer.setDragImage(ct,0,0),ye&&ct.parentNode.removeChild(ct)}}function yo(it,ot){var ct=Nl(it,ot);if(ct){var dt=document.createDocumentFragment();ma(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=Zt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),_t(it.display.dragCursor,dt)}}function Fr(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function ar(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 Et=0;Et<ct.length;Et++)it(ct[Et])})}}var kr=!1;function nr(){kr||(Eo(),kr=!0)}function Eo(){var it;$n(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,ar(Go)},100))}),$n(window,"blur",function(){return ar(xc)})}function Go(it){var ot=it.display;ot.cachedCharWidth=ot.cachedTextHeight=ot.cachedPaddingH=null,ot.scrollbarsClipped=!1,it.setSize()}for(var lo={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"},ko=0;ko<10;ko++)lo[ko+48]=lo[ko+96]=String(ko);for(var fo=65;fo<=90;fo++)lo[fo]=String.fromCharCode(fo);for(var Ko=1;Ko<=12;Ko++)lo[Ko+111]=lo[Ko+63235]="F"+Ko;var po={};po.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"},po.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"},po.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"},po.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"]},po.default=ht?po.macDefault:po.pcDefault;function qo(it){var ot=it.split(/-(?!$)/);it=ot[ot.length-1];for(var ct,dt,pt,Et,Rt=0;Rt<ot.length-1;Rt++){var Ut=ot[Rt];if(/^(cmd|meta|m)$/i.test(Ut))Et=!0;else if(/^a(lt)?$/i.test(Ut))ct=!0;else if(/^(c|ctrl|control)$/i.test(Ut))dt=!0;else if(/^s(hift)?$/i.test(Ut))pt=!0;else throw new Error("Unrecognized modifier name: "+Ut)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),Et&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Ar(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=dn(ct.split(" "),qo),Et=0;Et<pt.length;Et++){var Rt=void 0,Ut=void 0;Et==pt.length-1?(Ut=pt.join(" "),Rt=dt):(Ut=pt.slice(0,Et+1).join(" "),Rt="...");var Vt=ot[Ut];if(!Vt)ot[Ut]=Rt;else if(Vt!=Rt)throw new Error("Inconsistent bindings for "+Ut)}delete it[ct]}for(var ae in ot)it[ae]=ot[ae];return it}function Qi(it,ot,ct,dt){ot=So(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 Qi(it,ot.fallthrough,ct,dt);for(var Et=0;Et<ot.fallthrough.length;Et++){var Rt=Qi(it,ot.fallthrough[Et],ct,dt);if(Rt)return Rt}}}function Po(it){var ot=typeof it=="string"?it:lo[it.keyCode];return ot=="Ctrl"||ot=="Alt"||ot=="Shift"||ot=="Mod"}function qr(it,ot,ct){var dt=it;return ot.altKey&&dt!="Alt"&&(it="Alt-"+it),(St?ot.metaKey:ot.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(St?ot.ctrlKey:ot.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&ot.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function ha(it,ot){if(ye&&it.keyCode==34&&it.char)return!1;var ct=lo[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),qr(ct,it,ot))}function So(it){return typeof it=="string"?po[it]:it}function jo(it,ot){for(var ct=it.doc.sel.ranges,dt=[],pt=0;pt<ct.length;pt++){for(var Et=ot(ct[pt]);dt.length&&Ri(Et.from,Re(dt).to)<=0;){var Rt=dt.pop();if(Ri(Rt.from,Et.from)<0){Et.from=Rt.from;break}}dt.push(Et)}ji(it,function(){for(var Ut=dt.length-1;Ut>=0;Ut--)pi(it.doc,"",dt[Ut].from,dt[Ut].to,"+delete");Dh(it)})}function ba(it,ot,ct){var dt=on(it.text,ot+ct,ct);return dt<0||dt>it.text.length?null:dt}function Xr(it,ot,ct){var dt=ba(it,ot.ch,ct);return dt==null?null:new Cn(ot.line,dt,ct<0?"after":"before")}function Yo(it,ot,ct,dt,pt){if(it){ot.doc.direction=="rtl"&&(pt=-pt);var Et=ni(ct,ot.doc.direction);if(Et){var Rt=pt<0?Re(Et):Et[0],Ut=pt<0==(Rt.level==1),Vt=Ut?"after":"before",ae;if(Rt.level>0||ot.doc.direction=="rtl"){var be=$h(ot,ct);ae=pt<0?ct.text.length-1:0;var se=zu(ot,be,ae).top;ae=Un(function(_e){return zu(ot,be,_e).top==se},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,ae),Vt=="before"&&(ae=ba(ct,ae,1))}else ae=pt<0?Rt.to:Rt.from;return new Cn(dt,ae,Vt)}}return new Cn(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function es(it,ot,ct,dt){var pt=ni(ot,it.doc.direction);if(!pt)return Xr(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 Et=Ke(pt,ct.ch,ct.sticky),Rt=pt[Et];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(dt>0?Rt.to>ct.ch:Rt.from<ct.ch))return Xr(ot,ct,dt);var Ut=function(Zi,br){return ba(ot,Zi instanceof Cn?Zi.ch:Zi,br)},Vt,ae=function(Zi){return it.options.lineWrapping?(Vt=Vt||$h(it,ot),cf(it,ot,Vt,Zi)):{begin:0,end:ot.text.length}},be=ae(ct.sticky=="before"?Ut(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Rt.level==1){var se=Rt.level==1==dt<0,_e=Ut(ct,se?1:-1);if(_e!=null&&(se?_e<=Rt.to&&_e<=be.end:_e>=Rt.from&&_e>=be.begin)){var qe=se?"before":"after";return new Cn(ct.line,_e,qe)}}var Jn=function(Zi,br,ur){for(var Ir=function(Ds,zl){return zl?new Cn(ct.line,Ut(Ds,1),"before"):new Cn(ct.line,Ds,"after")};Zi>=0&&Zi<pt.length;Zi+=br){var Bo=pt[Zi],lr=br>0==(Bo.level!=1),da=lr?ur.begin:Ut(ur.end,-1);if(Bo.from<=da&&da<Bo.to||(da=lr?Bo.from:Ut(Bo.to,-1),ur.begin<=da&&da<ur.end))return Ir(da,lr)}},vi=Jn(Et+dt,dt,be);if(vi)return vi;var Ti=dt>0?be.end:Ut(be.begin,-1);return Ti!=null&&!(dt>0&&Ti==ot.text.length)&&(vi=Jn(dt>0?0:pt.length-1,dt,ae(Ti)),vi)?vi:null}var Ya={selectAll:Ce,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Le)},killLine:function(it){return jo(it,function(ot){if(ot.empty()){var ct=yn(it.doc,ot.head.line).text.length;return ot.head.ch==ct&&ot.head.line<it.lastLine()?{from:ot.head,to:Cn(ot.head.line+1,0)}:{from:ot.head,to:Cn(ot.head.line,ct)}}else return{from:ot.from(),to:ot.to()}})},deleteLine:function(it){return jo(it,function(ot){return{from:Cn(ot.from().line,0),to:Hi(it.doc,Cn(ot.to().line+1,0))}})},delLineLeft:function(it){return jo(it,function(ot){return{from:Cn(ot.from().line,0),to:ot.from()}})},delWrappedLineLeft:function(it){return jo(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 jo(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(Cn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Cn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(ot){return ss(it,ot.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(ot){return dl(it,ot.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(ot){return Wo(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")},$e)},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")},$e)},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/)?dl(it,ot.head):dt},$e)},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 Et=ct[pt].from(),Rt=$t(it.getLine(Et.line),Et.ch,dt);ot.push(fe(dt-Rt%dt))}it.replaceSelections(ot)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return ji(it,function(){for(var ot=it.listSelections(),ct=[],dt=0;dt<ot.length;dt++)if(ot[dt].empty()){var pt=ot[dt].head,Et=yn(it.doc,pt.line).text;if(Et){if(pt.ch==Et.length&&(pt=new Cn(pt.line,pt.ch-1)),pt.ch>0)pt=new Cn(pt.line,pt.ch+1),it.replaceRange(Et.charAt(pt.ch-1)+Et.charAt(pt.ch-2),Cn(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=yn(it.doc,pt.line-1).text;Rt&&(pt=new Cn(pt.line,1),it.replaceRange(Et.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),Cn(pt.line-1,Rt.length-1),pt,"+transpose"))}}ct.push(new Lr(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return ji(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);Dh(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function ss(it,ot){var ct=yn(it.doc,ot),dt=Ma(ct);return dt!=ct&&(ot=De(dt)),Yo(!0,it,dt,ot,1)}function Wo(it,ot){var ct=yn(it.doc,ot),dt=Ja(ct);return dt!=ct&&(ot=De(dt)),Yo(!0,it,ct,ot,-1)}function dl(it,ot){var ct=ss(it,ot.line),dt=yn(it.doc,ct.line),pt=ni(dt,it.doc.direction);if(!pt||pt[0].level==0){var Et=Math.max(ct.ch,dt.text.search(/\S/)),Rt=ot.line==ct.line&&ot.ch<=Et&&ot.ch;return Cn(ct.line,Rt?0:Et,ct.sticky)}return ct}function Ra(it,ot,ct){if(typeof ot=="string"&&(ot=Ya[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)!=Tn}finally{it.display.shift=dt,it.state.suppressEdits=!1}return pt}function aa(it,ot,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var pt=Qi(ot,it.state.keyMaps[dt],ct,it);if(pt)return pt}return it.options.extraKeys&&Qi(ot,it.options.extraKeys,ct,it)||Qi(ot,it.options.keyMap,ct,it)}var ca=new jt;function fs(it,ot,ct,dt){var pt=it.state.keySeq;if(pt){if(Po(ot))return"handled";if(/\'$/.test(ot)?it.state.keySeq=null:ca.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),Uo(it,pt+" "+ot,ct,dt))return!0}return Uo(it,ot,ct,dt)}function Uo(it,ot,ct,dt){var pt=aa(it,ot,dt);return pt=="multi"&&(it.state.keySeq=ot),pt=="handled"&&$i(it,"keyHandled",it,ot,ct),(pt=="handled"||pt=="multi")&&(Or(ct),ga(it)),!!pt}function Rl(it,ot){var ct=ha(ot,!0);return ct?ot.shiftKey&&!it.state.keySeq?fs(it,"Shift-"+ct,ot,function(dt){return Ra(it,dt,!0)})||fs(it,ct,ot,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return Ra(it,dt)}):fs(it,ct,ot,function(dt){return Ra(it,dt)}):!1}function uo(it,ot,ct){return fs(it,"'"+ct+"'",ot,function(dt){return Ra(it,dt,!0)})}var Er=null;function Aa(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&(ot.curOp.focus=He(),!mi(ot,it))){Ae&&Dt<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;ot.display.shift=ct==16||it.shiftKey;var dt=Rl(ot,it);ye&&(Er=dt?ct:null,!dt&&ct==88&&!Ve&&(ht?it.metaKey:it.ctrlKey)&&ot.replaceSelection("",null,"cut")),Lt&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(ot.display.lineDiv.className)&&Mr(ot)}}function Mr(it){var ot=it.display.lineDiv;Ie(ot,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(qt(ot,"CodeMirror-crosshair"),Ki(document,"keyup",ct),Ki(document,"mouseover",ct))}$n(document,"keyup",ct),$n(document,"mouseover",ct)}function Wr(it){it.keyCode==16&&(this.doc.sel.shift=!1),mi(this,it)}function Za(it){var ot=this;if(!(it.target&&it.target!=ot.display.input.getField())&&!(vl(ot.display,it)||mi(ot,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(ye&&ct==Er){Er=null,Or(it);return}if(!(ye&&(!it.which||it.which<10)&&Rl(ot,it))){var pt=String.fromCharCode(dt==null?ct:dt);pt!="\b"&&(uo(ot,it,pt)||ot.display.input.onKeyPress(it))}}}var Es=400,Ls=function(it,ot,ct){this.time=it,this.pos=ot,this.button=ct};Ls.prototype.compare=function(it,ot,ct){return this.time+Es>it&&Ri(ot,this.pos)==0&&ct==this.button};var Il,Xs;function Vu(it,ot){var ct=+new Date;return Xs&&Xs.compare(ct,it,ot)?(Il=Xs=null,"triple"):Il&&Il.compare(ct,it,ot)?(Xs=new Ls(ct,it,ot),Il=null,"double"):(Il=new Ls(ct,it,ot),Xs=null,"single")}function Gs(it){var ot=this,ct=ot.display;if(!(mi(ot,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,vl(ct,it)){Jt||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Ec(ot,it)){var dt=Nl(ot,it),pt=fa(it),Et=dt?Vu(dt,pt):"single";window.focus(),pt==1&&ot.state.selectingText&&ot.state.selectingText(it),!(dt&&ku(ot,pt,dt,Et,it))&&(pt==1?dt?Ua(ot,dt,Et,it):ao(it)==ct.scroller&&Or(it):pt==2?(dt&&nc(ot.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(Mt?ot.display.input.onContextMenu(it):vs(ot)))}}}function ku(it,ot,ct,dt,pt){var Et="Click";return dt=="double"?Et="Double"+Et:dt=="triple"&&(Et="Triple"+Et),Et=(ot==1?"Left":ot==2?"Middle":"Right")+Et,fs(it,qr(Et,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=Ya[Rt]),!Rt)return!1;var Ut=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ut=Rt(it,ct)!=Tn}finally{it.state.suppressEdits=!1}return Ut})}function Do(it,ot,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,ot,ct):{};if(pt.unit==null){var Et=lt?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=Et?"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 Ua(it,ot,ct,dt){Ae?setTimeout(cn(Ka,it),0):it.curOp.focus=He();var pt=Do(it,ct,dt),Et=it.doc.sel,Rt;it.options.dragDrop&&_o&&!it.isReadOnly()&&ct=="single"&&(Rt=Et.contains(ot))>-1&&(Ri((Rt=Et.ranges[Rt]).from(),ot)<0||ot.xRel>0)&&(Ri(Rt.to(),ot)>0||ot.xRel<0)?Ts(it,dt,ot,pt):vh(it,dt,ot,pt)}function Ts(it,ot,ct,dt){var pt=it.display,Et=!1,Rt=Sr(it,function(ae){Jt&&(pt.scroller.draggable=!1),it.state.draggingText=!1,Ki(pt.wrapper.ownerDocument,"mouseup",Rt),Ki(pt.wrapper.ownerDocument,"mousemove",Ut),Ki(pt.scroller,"dragstart",Vt),Ki(pt.scroller,"drop",Rt),Et||(Or(ae),dt.addNew||nc(it.doc,ct,null,null,dt.extend),Jt&&!Je||Ae&&Dt==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),Ut=function(ae){Et=Et||Math.abs(ot.clientX-ae.clientX)+Math.abs(ot.clientY-ae.clientY)>=10},Vt=function(){return Et=!0};Jt&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),$n(pt.wrapper.ownerDocument,"mouseup",Rt),$n(pt.wrapper.ownerDocument,"mousemove",Ut),$n(pt.scroller,"dragstart",Vt),$n(pt.scroller,"drop",Rt),vs(it),setTimeout(function(){return pt.input.focus()},20)}function fl(it,ot,ct){if(ct=="char")return new Lr(ot,ot);if(ct=="word")return it.findWordAt(ot);if(ct=="line")return new Lr(Cn(ot.line,0),Hi(it.doc,Cn(ot.line+1,0)));var dt=ct(it,ot);return new Lr(dt.from,dt.to)}function vh(it,ot,ct,dt){var pt=it.display,Et=it.doc;Or(ot);var Rt,Ut,Vt=Et.sel,ae=Vt.ranges;if(dt.addNew&&!dt.extend?(Ut=Et.sel.contains(ct),Ut>-1?Rt=ae[Ut]:Rt=new Lr(ct,ct)):(Rt=Et.sel.primary(),Ut=Et.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Rt=new Lr(ct,ct)),ct=Nl(it,ot,!0,!0),Ut=-1;else{var be=fl(it,ct,dt.unit);dt.extend?Rt=Pc(Rt,be.anchor,be.head,dt.extend):Rt=be}dt.addNew?Ut==-1?(Ut=ae.length,is(Et,pa(it,ae.concat([Rt]),Ut),{scroll:!1,origin:"*mouse"})):ae.length>1&&ae[Ut].empty()&&dt.unit=="char"&&!dt.extend?(is(Et,pa(it,ae.slice(0,Ut).concat(ae.slice(Ut+1)),0),{scroll:!1,origin:"*mouse"}),Vt=Et.sel):ph(Et,Ut,Rt,gn):(Ut=0,is(Et,new oa([Rt],0),gn),Vt=Et.sel);var se=ct;function _e(ur){if(Ri(se,ur)!=0)if(se=ur,dt.unit=="rectangle"){for(var Ir=[],Bo=it.options.tabSize,lr=$t(yn(Et,ct.line).text,ct.ch,Bo),da=$t(yn(Et,ur.line).text,ur.ch,Bo),Ds=Math.min(lr,da),zl=Math.max(lr,da),Ks=Math.min(ct.line,ur.line),Yu=Math.min(it.lastLine(),Math.max(ct.line,ur.line));Ks<=Yu;Ks++){var vu=yn(Et,Ks).text,Ll=Fn(vu,Ds,Bo);Ds==zl?Ir.push(new Lr(Cn(Ks,Ll),Cn(Ks,Ll))):vu.length>Ll&&Ir.push(new Lr(Cn(Ks,Ll),Cn(Ks,Fn(vu,zl,Bo))))}Ir.length||Ir.push(new Lr(ct,ct)),is(Et,pa(it,Vt.ranges.slice(0,Ut).concat(Ir),Ut),{origin:"*mouse",scroll:!1}),it.scrollIntoView(ur)}else{var rh=Rt,iu=fl(it,ur,dt.unit),Ml=rh.anchor,Xa;Ri(iu.anchor,Ml)>0?(Xa=iu.head,Ml=ki(rh.from(),iu.anchor)):(Xa=iu.anchor,Ml=bo(rh.to(),iu.head));var Qs=Vt.ranges.slice(0);Qs[Ut]=Cc(it,new Lr(Hi(Et,Ml),Xa)),is(Et,pa(it,Qs,Ut),gn)}}var qe=pt.wrapper.getBoundingClientRect(),Jn=0;function vi(ur){var Ir=++Jn,Bo=Nl(it,ur,!0,dt.unit=="rectangle");if(Bo)if(Ri(Bo,se)!=0){it.curOp.focus=He(),_e(Bo);var lr=ia(pt,Et);(Bo.line>=lr.to||Bo.line<lr.from)&&setTimeout(Sr(it,function(){Jn==Ir&&vi(ur)}),150)}else{var da=ur.clientY<qe.top?-20:ur.clientY>qe.bottom?20:0;da&&setTimeout(Sr(it,function(){Jn==Ir&&(pt.scroller.scrollTop+=da,vi(ur))}),50)}}function Ti(ur){it.state.selectingText=!1,Jn=1/0,ur&&(Or(ur),pt.input.focus()),Ki(pt.wrapper.ownerDocument,"mousemove",Zi),Ki(pt.wrapper.ownerDocument,"mouseup",br),Et.history.lastSelOrigin=null}var Zi=Sr(it,function(ur){ur.buttons===0||!fa(ur)?Ti(ur):vi(ur)}),br=Sr(it,Ti);it.state.selectingText=br,$n(pt.wrapper.ownerDocument,"mousemove",Zi),$n(pt.wrapper.ownerDocument,"mouseup",br)}function Cc(it,ot){var ct=ot.anchor,dt=ot.head,pt=yn(it.doc,ct.line);if(Ri(ct,dt)==0&&ct.sticky==dt.sticky)return ot;var Et=ni(pt);if(!Et)return ot;var Rt=Ke(Et,ct.ch,ct.sticky),Ut=Et[Rt];if(Ut.from!=ct.ch&&Ut.to!=ct.ch)return ot;var Vt=Rt+(Ut.from==ct.ch==(Ut.level!=1)?0:1);if(Vt==0||Vt==Et.length)return ot;var ae;if(dt.line!=ct.line)ae=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var be=Ke(Et,dt.ch,dt.sticky),se=be-Rt||(dt.ch-ct.ch)*(Ut.level==1?-1:1);be==Vt-1||be==Vt?ae=se<0:ae=se>0}var _e=Et[Vt+(ae?-1:0)],qe=ae==(_e.level==1),Jn=qe?_e.from:_e.to,vi=qe?"after":"before";return ct.ch==Jn&&ct.sticky==vi?ot:new Lr(new Cn(ct.line,Jn,vi),dt)}function Ac(it,ot,ct,dt){var pt,Et;if(ot.touches)pt=ot.touches[0].clientX,Et=ot.touches[0].clientY;else try{pt=ot.clientX,Et=ot.clientY}catch(_e){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&Or(ot);var Rt=it.display,Ut=Rt.lineDiv.getBoundingClientRect();if(Et>Ut.bottom||!gi(it,ct))return Di(ot);Et-=Ut.top-Rt.viewOffset;for(var Vt=0;Vt<it.display.gutterSpecs.length;++Vt){var ae=Rt.gutters.childNodes[Vt];if(ae&&ae.getBoundingClientRect().right>=pt){var be=xi(it.doc,Et),se=it.display.gutterSpecs[Vt];return ii(it,ct,it,be,se.className,ot),Di(ot)}}}function Ec(it,ot){return Ac(it,ot,"gutterClick",!0)}function fd(it,ot){vl(it.display,ot)||jf(it,ot)||mi(it,ot,"contextmenu")||Mt||it.display.input.onContextMenu(ot)}function jf(it,ot){return gi(it,"gutterContextMenu")?Ac(it,ot,"gutterContextMenu",!1):!1}function Dd(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vc(it)}var Rh={toString:function(){return"CodeMirror.Init"}},Od={},gd={};function gf(it){var ot=it.optionHandlers;function ct(dt,pt,Et,Rt){it.defaults[dt]=pt,Et&&(ot[dt]=Rt?function(Ut,Vt,ae){ae!=Rh&&Et(Ut,Vt,ae)}:Et)}it.defineOption=ct,it.Init=Rh,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,_r(dt)},!0),ct("indentUnit",2,_r,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){Ol(dt),vc(dt),$a(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var Et=[],Rt=dt.doc.first;dt.doc.iter(function(Vt){for(var ae=0;;){var be=Vt.text.indexOf(pt,ae);if(be==-1)break;ae=be+pt.length,Et.push(Cn(Rt,be))}Rt++});for(var Ut=Et.length-1;Ut>=0;Ut--)pi(dt.doc,pt,Et[Ut],Cn(Et[Ut].line,Et[Ut].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,Et){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),Et!=Rh&&dt.refresh()}),ct("specialCharPlaceholder",bl,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){Dd(dt),ts(dt)},!0),ct("keyMap","default",function(dt,pt,Et){var Rt=So(pt),Ut=Et!=Rh&&So(Et);Ut&&Ut.detach&&Ut.detach(dt,Rt),Rt.attach&&Rt.attach(dt,Ut||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,Rd,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=Ta(pt,dt.options.lineNumbers),ts(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?tc(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return Sn(dt)},!0),ct("scrollbarStyle","native",function(dt){ci(dt),Sn(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=Ta(dt.options.gutters,pt),ts(dt)},!0),ct("firstLineNumber",1,ts,!0),ct("lineNumberFormatter",function(dt){return dt},ts,!0),ct("showCursorWhenSelecting",!1,Us,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(xc(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,yh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,Us,!0),ct("singleCursorHeightPerLine",!0,Us,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,Ol,!0),ct("addModeClass",!1,Ol,!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,Ol,!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 yh(it,ot,ct){var dt=ct&&ct!=Rh;if(!ot!=!dt){var pt=it.display.dragFunctions,Et=ot?$n:Ki;Et(it.display.scroller,"dragstart",pt.start),Et(it.display.scroller,"dragenter",pt.enter),Et(it.display.scroller,"dragover",pt.over),Et(it.display.scroller,"dragleave",pt.leave),Et(it.display.scroller,"drop",pt.drop)}}function Rd(it){it.options.lineWrapping?(Ie(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(qt(it.display.wrapper,"CodeMirror-wrap"),ka(it)),zr(it),$a(it),vc(it),setTimeout(function(){return Sn(it)},100)}function sa(it,ot){var ct=this;if(!(this instanceof sa))return new sa(it,ot);this.options=ot=ot?Xn(ot):{},Xn(Od,ot,!1);var dt=ot.value;typeof dt=="string"?dt=new fr(dt,ot.mode,null,ot.lineSeparator,ot.direction):ot.mode&&(dt.modeOption=ot.mode),this.doc=dt;var pt=new sa.inputStyles[ot.inputStyle](this),Et=this.display=new Zs(it,dt,pt,ot);Et.wrapper.CodeMirror=this,Dd(this),ot.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ci(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 jt,keySeq:null,specialChars:null},ot.autofocus&&!et&&Et.input.focus(),Ae&&Dt<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Wc(this),nr(),ri(this),this.curOp.forceUpdate=!0,Bs(this,dt),ot.autofocus&&!et||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&va(ct)},20):xc(this);for(var Rt in gd)gd.hasOwnProperty(Rt)&&gd[Rt](this,ot[Rt],Rh);Ao(this),ot.finishInit&&ot.finishInit(this);for(var Ut=0;Ut<rc.length;++Ut)rc[Ut](this);Zn(this),Jt&&ot.lineWrapping&&getComputedStyle(Et.lineDiv).textRendering=="optimizelegibility"&&(Et.lineDiv.style.textRendering="auto")}sa.defaults=Od,sa.optionHandlers=gd;function Wc(it){var ot=it.display;$n(ot.scroller,"mousedown",Sr(it,Gs)),Ae&&Dt<11?$n(ot.scroller,"dblclick",Sr(it,function(Vt){if(!mi(it,Vt)){var ae=Nl(it,Vt);if(!(!ae||Ec(it,Vt)||vl(it.display,Vt))){Or(Vt);var be=it.findWordAt(ae);nc(it.doc,be.anchor,be.head)}}})):$n(ot.scroller,"dblclick",function(Vt){return mi(it,Vt)||Or(Vt)}),$n(ot.scroller,"contextmenu",function(Vt){return fd(it,Vt)}),$n(ot.input.getField(),"contextmenu",function(Vt){ot.scroller.contains(Vt.target)||fd(it,Vt)});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 Et(Vt){if(Vt.touches.length!=1)return!1;var ae=Vt.touches[0];return ae.radiusX<=1&&ae.radiusY<=1}function Rt(Vt,ae){if(ae.left==null)return!0;var be=ae.left-Vt.left,se=ae.top-Vt.top;return be*be+se*se>20*20}$n(ot.scroller,"touchstart",function(Vt){if(!mi(it,Vt)&&!Et(Vt)&&!Ec(it,Vt)){ot.input.ensurePolled(),clearTimeout(ct);var ae=+new Date;ot.activeTouch={start:ae,moved:!1,prev:ae-dt.end<=300?dt:null},Vt.touches.length==1&&(ot.activeTouch.left=Vt.touches[0].pageX,ot.activeTouch.top=Vt.touches[0].pageY)}}),$n(ot.scroller,"touchmove",function(){ot.activeTouch&&(ot.activeTouch.moved=!0)}),$n(ot.scroller,"touchend",function(Vt){var ae=ot.activeTouch;if(ae&&!vl(ot,Vt)&&ae.left!=null&&!ae.moved&&new Date-ae.start<300){var be=it.coordsChar(ot.activeTouch,"page"),se;!ae.prev||Rt(ae,ae.prev)?se=new Lr(be,be):!ae.prev.prev||Rt(ae,ae.prev.prev)?se=it.findWordAt(be):se=new Lr(Cn(be.line,0),Hi(it.doc,Cn(be.line+1,0))),it.setSelection(se.anchor,se.head),it.focus(),Or(Vt)}pt()}),$n(ot.scroller,"touchcancel",pt),$n(ot.scroller,"scroll",function(){ot.scroller.clientHeight&&(he(it,ot.scroller.scrollTop),Se(it,ot.scroller.scrollLeft,!0),ii(it,"scroll",it))}),$n(ot.scroller,"mousewheel",function(Vt){return Da(it,Vt)}),$n(ot.scroller,"DOMMouseScroll",function(Vt){return Da(it,Vt)}),$n(ot.wrapper,"scroll",function(){return ot.wrapper.scrollTop=ot.wrapper.scrollLeft=0}),ot.dragFunctions={enter:function(Vt){mi(it,Vt)||jr(Vt)},over:function(Vt){mi(it,Vt)||(yo(it,Vt),jr(Vt))},start:function(Vt){return wo(it,Vt)},drop:Sr(it,No),leave:function(Vt){mi(it,Vt)||Fr(it)}};var Ut=ot.input.getField();$n(Ut,"keyup",function(Vt){return Wr.call(it,Vt)}),$n(Ut,"keydown",Sr(it,Aa)),$n(Ut,"keypress",Sr(it,Za)),$n(Ut,"focus",function(Vt){return va(it,Vt)}),$n(Ut,"blur",function(Vt){return xc(it,Vt)})}var rc=[];sa.defineInitHook=function(it){return rc.push(it)};function rl(it,ot,ct,dt){var pt=it.doc,Et;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?Et=qa(it,ot).state:ct="prev");var Rt=it.options.tabSize,Ut=yn(pt,ot),Vt=$t(Ut.text,null,Rt);Ut.stateAfter&&(Ut.stateAfter=null);var ae=Ut.text.match(/^\s*/)[0],be;if(!dt&&!/\S/.test(Ut.text))be=0,ct="not";else if(ct=="smart"&&(be=pt.mode.indent(Et,Ut.text.slice(ae.length),Ut.text),be==Tn||be>150)){if(!dt)return;ct="prev"}ct=="prev"?ot>pt.first?be=$t(yn(pt,ot-1).text,null,Rt):be=0:ct=="add"?be=Vt+it.options.indentUnit:ct=="subtract"?be=Vt-it.options.indentUnit:typeof ct=="number"&&(be=Vt+ct),be=Math.max(0,be);var se="",_e=0;if(it.options.indentWithTabs)for(var qe=Math.floor(be/Rt);qe;--qe)_e+=Rt,se+=" ";if(_e<be&&(se+=fe(be-_e)),se!=ae)return pi(pt,se,Cn(ot,0),Cn(ot,ae.length),"+input"),Ut.stateAfter=null,!0;for(var Jn=0;Jn<pt.sel.ranges.length;Jn++){var vi=pt.sel.ranges[Jn];if(vi.head.line==ot&&vi.head.ch<ae.length){var Ti=Cn(ot,ae.length);ph(pt,Jn,new Lr(Ti,Ti));break}}}var El=null;function Lc(it){El=it}function Mc(it,ot,ct,dt,pt){var Et=it.doc;it.display.shift=!1,dt||(dt=Et.sel);var Rt=+new Date-200,Ut=pt=="paste"||it.state.pasteIncoming>Rt,Vt=vn(ot),ae=null;if(Ut&&dt.ranges.length>1)if(El&&El.text.join(`
|
|
`)==ot){if(dt.ranges.length%El.text.length==0){ae=[];for(var be=0;be<El.text.length;be++)ae.push(Et.splitLines(El.text[be]))}}else Vt.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(ae=dn(Vt,function(Zi){return[Zi]}));for(var se=it.curOp.updateInput,_e=dt.ranges.length-1;_e>=0;_e--){var qe=dt.ranges[_e],Jn=qe.from(),vi=qe.to();qe.empty()&&(ct&&ct>0?Jn=Cn(Jn.line,Jn.ch-ct):it.state.overwrite&&!Ut?vi=Cn(vi.line,Math.min(yn(Et,vi.line).text.length,vi.ch+Re(Vt).length)):Ut&&El&&El.lineWise&&El.text.join(`
|
|
`)==Vt.join(`
|
|
`)&&(Jn=vi=Cn(Jn.line,0)));var Ti={from:Jn,to:vi,text:ae?ae[_e%ae.length]:Vt,origin:pt||(Ut?"paste":it.state.cutIncoming>Rt?"cut":"+input")};tn(it.doc,Ti),$i(it,"inputRead",it,Ti)}ot&&!Ut&&Hc(it,ot),Dh(it),it.curOp.updateInput<2&&(it.curOp.updateInput=se),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Ih(it,ot){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!ot.isReadOnly()&&!ot.options.disableInput&&ji(ot,function(){return Mc(ot,ct,0,null,"paste")}),!0}function Hc(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 Et=it.getModeAt(pt.head),Rt=!1;if(Et.electricChars){for(var Ut=0;Ut<Et.electricChars.length;Ut++)if(ot.indexOf(Et.electricChars.charAt(Ut))>-1){Rt=rl(it,pt.head.line,"smart");break}}else Et.electricInput&&Et.electricInput.test(yn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=rl(it,pt.head.line,"smart"));Rt&&$i(it,"electricInput",it,pt.head.line)}}}function Gc(it){for(var ot=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var pt=it.doc.sel.ranges[dt].head.line,Et={anchor:Cn(pt,0),head:Cn(pt+1,0)};ct.push(Et),ot.push(it.getRange(Et.anchor,Et.head))}return{text:ot,ranges:ct}}function pd(it,ot,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!ot)}function Id(){var it=Zt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ot=Zt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Jt?it.style.width="1000px":it.setAttribute("wrap","off"),Nt&&(it.style.border="1px solid black"),pd(it),ot}function oc(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 Et=this.options,Rt=Et[dt];Et[dt]==pt&&dt!="mode"||(Et[dt]=pt,ot.hasOwnProperty(dt)&&Sr(this,ot[dt])(this,pt,Rt),ii(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"](So(dt))},removeKeyMap:function(dt){for(var pt=this.state.keyMaps,Et=0;Et<pt.length;++Et)if(pt[Et]==dt||pt[Et].name==dt)return pt.splice(Et,1),!0},addOverlay:Jr(function(dt,pt){var Et=dt.token?dt:it.getMode(this.options,dt);if(Et.startState)throw new Error("Overlays may not be stateful.");Te(this.state.overlays,{mode:Et,modeSpec:dt,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,$a(this)}),removeOverlay:Jr(function(dt){for(var pt=this.state.overlays,Et=0;Et<pt.length;++Et){var Rt=pt[Et].modeSpec;if(Rt==dt||typeof dt=="string"&&Rt.name==dt){pt.splice(Et,1),this.state.modeGen++,$a(this);return}}}),indentLine:Jr(function(dt,pt,Et){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Ui(this.doc,dt)&&rl(this,dt,pt,Et)}),indentSelection:Jr(function(dt){for(var pt=this.doc.sel.ranges,Et=-1,Rt=0;Rt<pt.length;Rt++){var Ut=pt[Rt];if(Ut.empty())Ut.head.line>Et&&(rl(this,Ut.head.line,dt,!0),Et=Ut.head.line,Rt==this.doc.sel.primIndex&&Dh(this));else{var Vt=Ut.from(),ae=Ut.to(),be=Math.max(Et,Vt.line);Et=Math.min(this.lastLine(),ae.line-(ae.ch?0:1))+1;for(var se=be;se<Et;++se)rl(this,se,dt);var _e=this.doc.sel.ranges;Vt.ch==0&&pt.length==_e.length&&_e[Rt].from().ch>0&&ph(this.doc,Rt,new Lr(Vt,_e[Rt].to()),Le)}}}),getTokenAt:function(dt,pt){return Ea(this,dt,pt)},getLineTokens:function(dt,pt){return Ea(this,Cn(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Hi(this.doc,dt);var pt=gs(this,yn(this.doc,dt.line)),Et=0,Rt=(pt.length-1)/2,Ut=dt.ch,Vt;if(Ut==0)Vt=pt[2];else for(;;){var ae=Et+Rt>>1;if((ae?pt[ae*2-1]:0)>=Ut)Rt=ae;else if(pt[ae*2+1]<Ut)Et=ae+1;else{Vt=pt[ae*2+2];break}}var be=Vt?Vt.indexOf("overlay "):-1;return be<0?Vt:be==0?null:Vt.slice(0,be-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 Et=[];if(!ct.hasOwnProperty(pt))return Et;var Rt=ct[pt],Ut=this.getModeAt(dt);if(typeof Ut[pt]=="string")Rt[Ut[pt]]&&Et.push(Rt[Ut[pt]]);else if(Ut[pt])for(var Vt=0;Vt<Ut[pt].length;Vt++){var ae=Rt[Ut[pt][Vt]];ae&&Et.push(ae)}else Ut.helperType&&Rt[Ut.helperType]?Et.push(Rt[Ut.helperType]):Rt[Ut.name]&&Et.push(Rt[Ut.name]);for(var be=0;be<Rt._global.length;be++){var se=Rt._global[be];se.pred(Ut,this)&&Ee(Et,se.val)==-1&&Et.push(se.val)}return Et},getStateAfter:function(dt,pt){var Et=this.doc;return dt=Bi(Et,dt==null?Et.first+Et.size-1:dt),qa(this,dt+1,pt).state},cursorCoords:function(dt,pt){var Et,Rt=this.doc.sel.primary();return dt==null?Et=Rt.head:typeof dt=="object"?Et=Hi(this.doc,dt):Et=dt?Rt.from():Rt.to(),Cs(this,Et,pt||"page")},charCoords:function(dt,pt){return tu(this,Hi(this.doc,dt),pt||"page")},coordsChar:function(dt,pt){return dt=cd(this,dt,pt||"page"),Bd(this,dt.left,dt.top)},lineAtHeight:function(dt,pt){return dt=cd(this,{top:dt,left:0},pt||"page").top,xi(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,pt,Et){var Rt=!1,Ut;if(typeof dt=="number"){var Vt=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>Vt&&(dt=Vt,Rt=!0),Ut=yn(this.doc,dt)}else Ut=dt;return el(this,Ut,{top:0,left:0},pt||"page",Et||Rt).top+(Rt?this.doc.height-oo(Ut):0)},defaultTextHeight:function(){return th(this.display)},defaultCharWidth:function(){return yc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,Et,Rt,Ut){var Vt=this.display;dt=Cs(this,Hi(this.doc,dt));var ae=dt.bottom,be=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Vt.sizer.appendChild(pt),Rt=="over")ae=dt.top;else if(Rt=="above"||Rt=="near"){var se=Math.max(Vt.wrapper.clientHeight,this.doc.height),_e=Math.max(Vt.sizer.clientWidth,Vt.lineSpace.clientWidth);(Rt=="above"||dt.bottom+pt.offsetHeight>se)&&dt.top>pt.offsetHeight?ae=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=se&&(ae=dt.bottom),be+pt.offsetWidth>_e&&(be=_e-pt.offsetWidth)}pt.style.top=ae+"px",pt.style.left=pt.style.right="",Ut=="right"?(be=Vt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(Ut=="left"?be=0:Ut=="middle"&&(be=(Vt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=be+"px"),Et&&dd(this,{left:be,top:ae,right:be+pt.offsetWidth,bottom:ae+pt.offsetHeight})},triggerOnKeyDown:Jr(Aa),triggerOnKeyPress:Jr(Za),triggerOnKeyUp:Wr,triggerOnMouseDown:Jr(Gs),execCommand:function(dt){if(Ya.hasOwnProperty(dt))return Ya[dt].call(null,this)},triggerElectric:Jr(function(dt){Hc(this,dt)}),findPosH:function(dt,pt,Et,Rt){var Ut=1;pt<0&&(Ut=-1,pt=-pt);for(var Vt=Hi(this.doc,dt),ae=0;ae<pt&&(Vt=kc(this.doc,Vt,Ut,Et,Rt),!Vt.hitSide);++ae);return Vt},moveH:Jr(function(dt,pt){var Et=this;this.extendSelectionsBy(function(Rt){return Et.display.shift||Et.doc.extend||Rt.empty()?kc(Et.doc,Rt.head,dt,pt,Et.options.rtlMoveVisually):dt<0?Rt.from():Rt.to()},$e)}),deleteH:Jr(function(dt,pt){var Et=this.doc.sel,Rt=this.doc;Et.somethingSelected()?Rt.replaceSelection("",null,"+delete"):jo(this,function(Ut){var Vt=kc(Rt,Ut.head,dt,pt,!1);return dt<0?{from:Vt,to:Ut.head}:{from:Ut.head,to:Vt}})}),findPosV:function(dt,pt,Et,Rt){var Ut=1,Vt=Rt;pt<0&&(Ut=-1,pt=-pt);for(var ae=Hi(this.doc,dt),be=0;be<pt;++be){var se=Cs(this,ae,"div");if(Vt==null?Vt=se.left:se.left=Vt,ae=ac(this,se,Ut,Et),ae.hitSide)break}return ae},moveV:Jr(function(dt,pt){var Et=this,Rt=this.doc,Ut=[],Vt=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(be){if(Vt)return dt<0?be.from():be.to();var se=Cs(Et,be.head,"div");be.goalColumn!=null&&(se.left=be.goalColumn),Ut.push(se.left);var _e=ac(Et,se,dt,pt);return pt=="page"&&be==Rt.sel.primary()&&Wu(Et,tu(Et,_e,"div").top-se.top),_e},$e),Ut.length)for(var ae=0;ae<Rt.sel.ranges.length;ae++)Rt.sel.ranges[ae].goalColumn=Ut[ae]}),findWordAt:function(dt){var pt=this.doc,Et=yn(pt,dt.line).text,Rt=dt.ch,Ut=dt.ch;if(Et){var Vt=this.getHelper(dt,"wordChars");(dt.sticky=="before"||Ut==Et.length)&&Rt?--Rt:++Ut;for(var ae=Et.charAt(Rt),be=Xt(ae,Vt)?function(se){return Xt(se,Vt)}:/\s/.test(ae)?function(se){return/\s/.test(se)}:function(se){return!/\s/.test(se)&&!Xt(se)};Rt>0&&be(Et.charAt(Rt-1));)--Rt;for(;Ut<Et.length&&be(Et.charAt(Ut));)++Ut}return new Lr(Cn(dt.line,Rt),Cn(dt.line,Ut))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ie(this.display.cursorDiv,"CodeMirror-overwrite"):qt(this.display.cursorDiv,"CodeMirror-overwrite"),ii(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==He()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Jr(function(dt,pt){Hu(this,dt,pt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-sl(this)-this.display.barHeight,width:dt.scrollWidth-sl(this)-this.display.barWidth,clientHeight:ld(this),clientWidth:Iu(this)}},scrollIntoView:Jr(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:Cn(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?xa(this,dt):Gt(this,dt.from,dt.to,dt.margin)}),setSize:Jr(function(dt,pt){var Et=this,Rt=function(Vt){return typeof Vt=="number"||/^\d+$/.test(String(Vt))?Vt+"px":Vt};dt!=null&&(this.display.wrapper.style.width=Rt(dt)),pt!=null&&(this.display.wrapper.style.height=Rt(pt)),this.options.lineWrapping&&hd(this);var Ut=this.display.viewFrom;this.doc.iter(Ut,this.display.viewTo,function(Vt){if(Vt.widgets){for(var ae=0;ae<Vt.widgets.length;ae++)if(Vt.widgets[ae].noHScroll){Ho(Et,Ut,"widget");break}}++Ut}),this.curOp.forceUpdate=!0,ii(this,"refresh",this)}),operation:function(dt){return ji(this,dt)},startOperation:function(){return ri(this)},endOperation:function(){return Zn(this)},refresh:Jr(function(){var dt=this.display.cachedTextHeight;$a(this),this.curOp.forceUpdate=!0,vc(this),Hu(this,this.doc.scrollLeft,this.doc.scrollTop),ho(this.display),(dt==null||Math.abs(dt-th(this.display))>.5||this.options.lineWrapping)&&zr(this),ii(this,"refresh",this)}),swapDoc:Jr(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),Bs(this,dt),vc(this),this.display.input.reset(),Hu(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,$i(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}},hr(it),it.registerHelper=function(dt,pt,Et){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=Et},it.registerGlobalHelper=function(dt,pt,Et,Rt){it.registerHelper(dt,pt,Rt),ct[dt]._global.push({pred:Et,val:Rt})}}function kc(it,ot,ct,dt,pt){var Et=ot,Rt=ct,Ut=yn(it,ot.line),Vt=pt&&it.direction=="rtl"?-ct:ct;function ae(){var br=ot.line+Vt;return br<it.first||br>=it.first+it.size?!1:(ot=new Cn(br,ot.ch,ot.sticky),Ut=yn(it,br))}function be(br){var ur;if(dt=="codepoint"){var Ir=Ut.text.charCodeAt(ot.ch+(dt>0?0:-1));isNaN(Ir)?ur=null:ur=new Cn(ot.line,Math.max(0,Math.min(Ut.text.length,ot.ch+ct*(Ir>=55296&&Ir<56320?2:1))),-ct)}else pt?ur=es(it.cm,Ut,ot,ct):ur=Xr(Ut,ot,ct);if(ur==null)if(!br&&ae())ot=Yo(pt,it.cm,Ut,ot.line,Vt);else return!1;else ot=ur;return!0}if(dt=="char"||dt=="codepoint")be();else if(dt=="column")be(!0);else if(dt=="word"||dt=="group")for(var se=null,_e=dt=="group",qe=it.cm&&it.cm.getHelper(ot,"wordChars"),Jn=!0;!(ct<0&&!be(!Jn));Jn=!1){var vi=Ut.text.charAt(ot.ch)||`
|
|
`,Ti=Xt(vi,qe)?"w":_e&&vi==`
|
|
`?"n":!_e||/\s/.test(vi)?null:"p";if(_e&&!Jn&&!Ti&&(Ti="s"),se&&se!=Ti){ct<0&&(ct=1,be(),ot.sticky="after");break}if(Ti&&(se=Ti),ct>0&&!be(!Jn))break}var Zi=Kt(it,ot,Et,Rt,!0);return ro(Et,Zi)&&(Zi.hitSide=!0),Zi}function ac(it,ot,ct,dt){var pt=it.doc,Et=ot.left,Rt;if(dt=="page"){var Ut=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Vt=Math.max(Ut-.5*th(it.display),3);Rt=(ct>0?ot.bottom:ot.top)+ct*Vt}else dt=="line"&&(Rt=ct>0?ot.bottom+3:ot.top-3);for(var ae;ae=Bd(it,Et,Rt),!!ae.outside;){if(ct<0?Rt<=0:Rt>=pt.height){ae.hitSide=!0;break}Rt+=ct*5}return ae}var ns=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new jt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ns.prototype.init=function(it){var ot=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;pd(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Et(Ut){for(var Vt=Ut.target;Vt;Vt=Vt.parentNode){if(Vt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Vt.className))break}return!1}$n(pt,"paste",function(Ut){!Et(Ut)||mi(dt,Ut)||Ih(Ut,dt)||Dt<=11&&setTimeout(Sr(dt,function(){return ot.updateFromDOM()}),20)}),$n(pt,"compositionstart",function(Ut){ot.composing={data:Ut.data,done:!1}}),$n(pt,"compositionupdate",function(Ut){ot.composing||(ot.composing={data:Ut.data,done:!1})}),$n(pt,"compositionend",function(Ut){ot.composing&&(Ut.data!=ot.composing.data&&ot.readFromDOMSoon(),ot.composing.done=!0)}),$n(pt,"touchstart",function(){return ct.forceCompositionEnd()}),$n(pt,"input",function(){ot.composing||ot.readFromDOMSoon()});function Rt(Ut){if(!(!Et(Ut)||mi(dt,Ut))){if(dt.somethingSelected())Lc({lineWise:!1,text:dt.getSelections()}),Ut.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Vt=Gc(dt);Lc({lineWise:!0,text:Vt.text}),Ut.type=="cut"&&dt.operation(function(){dt.setSelections(Vt.ranges,0,Le),dt.replaceSelection("",null,"cut")})}else return;if(Ut.clipboardData){Ut.clipboardData.clearData();var ae=El.text.join(`
|
|
`);if(Ut.clipboardData.setData("Text",ae),Ut.clipboardData.getData("Text")==ae){Ut.preventDefault();return}}var be=Id(),se=be.firstChild;dt.display.lineSpace.insertBefore(be,dt.display.lineSpace.firstChild),se.value=El.text.join(`
|
|
`);var _e=document.activeElement;bn(se),setTimeout(function(){dt.display.lineSpace.removeChild(be),_e.focus(),_e==pt&&ct.showPrimarySelection()},50)}}$n(pt,"copy",Rt),$n(pt,"cut",Rt)},ns.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ns.prototype.prepareSelection=function(){var it=ju(this.cm,!1);return it.focus=document.activeElement==this.div,it},ns.prototype.showSelection=function(it,ot){!it||!this.cm.display.view.length||((it.focus||ot)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ns.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ns.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 Et=md(ot,it.anchorNode,it.anchorOffset),Rt=md(ot,it.focusNode,it.focusOffset);if(!(Et&&!Et.bad&&Rt&&!Rt.bad&&Ri(ki(Et,Rt),dt)==0&&Ri(bo(Et,Rt),pt)==0)){var Ut=ot.display.view,Vt=dt.line>=ot.display.viewFrom&&zd(ot,dt)||{node:Ut[0].measure.map[2],offset:0},ae=pt.line<ot.display.viewTo&&zd(ot,pt);if(!ae){var be=Ut[Ut.length-1].measure,se=be.maps?be.maps[be.maps.length-1]:be.map;ae={node:se[se.length-1],offset:se[se.length-2]-se[se.length-3]}}if(!Vt||!ae){it.removeAllRanges();return}var _e=it.rangeCount&&it.getRangeAt(0),qe;try{qe=ge(Vt.node,Vt.offset,ae.offset,ae.node)}catch(Jn){}qe&&(!Lt&&ot.state.focused?(it.collapse(Vt.node,Vt.offset),qe.collapsed||(it.removeAllRanges(),it.addRange(qe))):(it.removeAllRanges(),it.addRange(qe)),_e&&it.anchorNode==null?it.addRange(_e):Lt&&this.startGracePeriod()),this.rememberSelection()}},ns.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)},ns.prototype.showMultipleSelections=function(it){_t(this.cm.display.cursorDiv,it.cursors),_t(this.cm.display.selectionDiv,it.selection)},ns.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ns.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var ot=it.getRangeAt(0).commonAncestorContainer;return Fe(this.div,ot)},ns.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ns.prototype.blur=function(){this.div.blur()},ns.prototype.getField=function(){return this.div},ns.prototype.supportsTouch=function(){return!0},ns.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():ji(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)},ns.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ns.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),ot=this.cm;if(nt&&ce&&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=md(ot,it.anchorNode,it.anchorOffset),dt=md(ot,it.focusNode,it.focusOffset);ct&&dt&&ji(ot,function(){is(ot.doc,As(ct,dt),Le),(ct.bad||dt.bad)&&(ot.curOp.selectionChanged=!0)})}}},ns.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=Cn(dt.line-1,yn(it.doc,dt.line-1).length)),pt.ch==yn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=Cn(pt.line+1,0)),dt.line<ot.viewFrom||pt.line>ot.viewTo-1)return!1;var Et,Rt,Ut;dt.line==ot.viewFrom||(Et=fu(it,dt.line))==0?(Rt=De(ot.view[0].line),Ut=ot.view[0].node):(Rt=De(ot.view[Et].line),Ut=ot.view[Et-1].node.nextSibling);var Vt=fu(it,pt.line),ae,be;if(Vt==ot.view.length-1?(ae=ot.viewTo-1,be=ot.lineDiv.lastChild):(ae=De(ot.view[Vt+1].line)-1,be=ot.view[Vt+1].node.previousSibling),!Ut)return!1;for(var se=it.doc.splitLines(Vc(it,Ut,be,Rt,ae)),_e=Ni(it.doc,Cn(Rt,0),Cn(ae,yn(it.doc,ae).text.length));se.length>1&&_e.length>1;)if(Re(se)==Re(_e))se.pop(),_e.pop(),ae--;else if(se[0]==_e[0])se.shift(),_e.shift(),Rt++;else break;for(var qe=0,Jn=0,vi=se[0],Ti=_e[0],Zi=Math.min(vi.length,Ti.length);qe<Zi&&vi.charCodeAt(qe)==Ti.charCodeAt(qe);)++qe;for(var br=Re(se),ur=Re(_e),Ir=Math.min(br.length-(se.length==1?qe:0),ur.length-(_e.length==1?qe:0));Jn<Ir&&br.charCodeAt(br.length-Jn-1)==ur.charCodeAt(ur.length-Jn-1);)++Jn;if(se.length==1&&_e.length==1&&Rt==dt.line)for(;qe&&qe>dt.ch&&br.charCodeAt(br.length-Jn-1)==ur.charCodeAt(ur.length-Jn-1);)qe--,Jn++;se[se.length-1]=br.slice(0,br.length-Jn).replace(/^\u200b+/,""),se[0]=se[0].slice(qe).replace(/\u200b+$/,"");var Bo=Cn(Rt,qe),lr=Cn(ae,_e.length?Re(_e).length-Jn:0);if(se.length>1||se[0]||Ri(Bo,lr))return pi(it.doc,se,Bo,lr,"+input"),!0},ns.prototype.ensurePolled=function(){this.forceCompositionEnd()},ns.prototype.reset=function(){this.forceCompositionEnd()},ns.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ns.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))},ns.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return $a(it.cm)})},ns.prototype.setUneditable=function(it){it.contentEditable="false"},ns.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Sr(this.cm,Mc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ns.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ns.prototype.onContextMenu=function(){},ns.prototype.resetPosition=function(){},ns.prototype.needsContentAttribute=!0;function zd(it,ot){var ct=du(it,ot.line);if(!ct||ct.hidden)return null;var dt=yn(it.doc,ot.line),pt=Fd(ct,dt,ot.line),Et=ni(dt,it.doc.direction),Rt="left";if(Et){var Ut=Ke(Et,ot.ch);Rt=Ut%2?"right":"left"}var Vt=Nd(pt.map,ot.ch,Rt);return Vt.offset=Vt.collapse=="right"?Vt.end:Vt.start,Vt}function pf(it){for(var ot=it;ot;ot=ot.parentNode)if(/CodeMirror-gutter-wrapper/.test(ot.className))return!0;return!1}function Kc(it,ot){return ot&&(it.bad=!0),it}function Vc(it,ot,ct,dt,pt){var Et="",Rt=!1,Ut=it.doc.lineSeparator(),Vt=!1;function ae(qe){return function(Jn){return Jn.id==qe}}function be(){Rt&&(Et+=Ut,Vt&&(Et+=Ut),Rt=Vt=!1)}function se(qe){qe&&(be(),Et+=qe)}function _e(qe){if(qe.nodeType==1){var Jn=qe.getAttribute("cm-text");if(Jn){se(Jn);return}var vi=qe.getAttribute("cm-marker"),Ti;if(vi){var Zi=it.findMarks(Cn(dt,0),Cn(pt+1,0),ae(+vi));Zi.length&&(Ti=Zi[0].find(0))&&se(Ni(it.doc,Ti.from,Ti.to).join(Ut));return}if(qe.getAttribute("contenteditable")=="false")return;var br=/^(pre|div|p|li|table|br)$/i.test(qe.nodeName);if(!/^br$/i.test(qe.nodeName)&&qe.textContent.length==0)return;br&&be();for(var ur=0;ur<qe.childNodes.length;ur++)_e(qe.childNodes[ur]);/^(pre|p)$/i.test(qe.nodeName)&&(Vt=!0),br&&(Rt=!0)}else qe.nodeType==3&&se(qe.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;_e(ot),ot!=ct;)ot=ot.nextSibling,Vt=!1;return Et}function md(it,ot,ct){var dt;if(ot==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return Kc(it.clipPos(Cn(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 Et=it.display.view[pt];if(Et.node==dt)return Wf(Et,ot,ct)}}function Wf(it,ot,ct){var dt=it.text.firstChild,pt=!1;if(!ot||!Fe(dt,ot))return Kc(Cn(De(it.line),0),!0);if(ot==dt&&(pt=!0,ot=dt.childNodes[ct],ct=0,!ot)){var Et=it.rest?Re(it.rest):it.line;return Kc(Cn(De(Et),Et.text.length),pt)}var Rt=ot.nodeType==3?ot:null,Ut=ot;for(!Rt&&ot.childNodes.length==1&&ot.firstChild.nodeType==3&&(Rt=ot.firstChild,ct&&(ct=Rt.nodeValue.length));Ut.parentNode!=dt;)Ut=Ut.parentNode;var Vt=it.measure,ae=Vt.maps;function be(Ti,Zi,br){for(var ur=-1;ur<(ae?ae.length:0);ur++)for(var Ir=ur<0?Vt.map:ae[ur],Bo=0;Bo<Ir.length;Bo+=3){var lr=Ir[Bo+2];if(lr==Ti||lr==Zi){var da=De(ur<0?it.line:it.rest[ur]),Ds=Ir[Bo]+br;return(br<0||lr!=Ti)&&(Ds=Ir[Bo+(br?1:0)]),Cn(da,Ds)}}}var se=be(Rt,Ut,ct);if(se)return Kc(se,pt);for(var _e=Ut.nextSibling,qe=Rt?Rt.nodeValue.length-ct:0;_e;_e=_e.nextSibling){if(se=be(_e,_e.firstChild,0),se)return Kc(Cn(se.line,se.ch-qe),pt);qe+=_e.textContent.length}for(var Jn=Ut.previousSibling,vi=ct;Jn;Jn=Jn.previousSibling){if(se=be(Jn,Jn.firstChild,-1),se)return Kc(Cn(se.line,se.ch+vi),pt);vi+=Jn.textContent.length}}var Js=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new jt,this.hasSelection=!1,this.composing=null};Js.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),Nt&&(pt.style.width="0px"),$n(pt,"input",function(){Ae&&Dt>=9&&ot.hasSelection&&(ot.hasSelection=null),ct.poll()}),$n(pt,"paste",function(Rt){mi(dt,Rt)||Ih(Rt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function Et(Rt){if(!mi(dt,Rt)){if(dt.somethingSelected())Lc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var Ut=Gc(dt);Lc({lineWise:!0,text:Ut.text}),Rt.type=="cut"?dt.setSelections(Ut.ranges,null,Le):(ct.prevInput="",pt.value=Ut.text.join(`
|
|
`),bn(pt))}else return;Rt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}$n(pt,"cut",Et),$n(pt,"copy",Et),$n(it.scroller,"paste",function(Rt){if(!(vl(it,Rt)||mi(dt,Rt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var Ut=new Event("paste");Ut.clipboardData=Rt.clipboardData,pt.dispatchEvent(Ut)}}),$n(it.lineSpace,"selectstart",function(Rt){vl(it,Rt)||Or(Rt)}),$n(pt,"compositionstart",function(){var Rt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Rt,range:dt.markText(Rt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),$n(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},Js.prototype.createField=function(it){this.wrapper=Id(),this.textarea=this.wrapper.firstChild},Js.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var it=this.cm,ot=it.display,ct=it.doc,dt=ju(it);if(it.options.moveInputWithCursor){var pt=Cs(it,ct.sel.primary().head,"div"),Et=ot.wrapper.getBoundingClientRect(),Rt=ot.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(ot.wrapper.clientHeight-10,pt.top+Rt.top-Et.top)),dt.teLeft=Math.max(0,Math.min(ot.wrapper.clientWidth-10,pt.left+Rt.left-Et.left))}return dt},Js.prototype.showSelection=function(it){var ot=this.cm,ct=ot.display;_t(ct.cursorDiv,it.cursors),_t(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Js.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),Ae&&Dt>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Ae&&Dt>=9&&(this.hasSelection=null))}},Js.prototype.getField=function(){return this.textarea},Js.prototype.supportsTouch=function(){return!1},Js.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!et||He()!=this.textarea))try{this.textarea.focus()}catch(it){}},Js.prototype.blur=function(){this.textarea.blur()},Js.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Js.prototype.receivedFocus=function(){this.slowPoll()},Js.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Js.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)},Js.prototype.poll=function(){var it=this,ot=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!ot.state.focused||wt(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(Ae&&Dt>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return ot.display.input.reset(),!1;if(ot.doc.sel==ot.display.selForContextMenu){var Et=pt.charCodeAt(0);if(Et==8203&&!dt&&(dt="\u200B"),Et==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,Ut=Math.min(dt.length,pt.length);Rt<Ut&&dt.charCodeAt(Rt)==pt.charCodeAt(Rt);)++Rt;return ji(ot,function(){Mc(ot,pt.slice(Rt),dt.length-Rt,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},Js.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Js.prototype.onKeyPress=function(){Ae&&Dt>=9&&(this.hasSelection=null),this.fastPoll()},Js.prototype.onContextMenu=function(it){var ot=this,ct=ot.cm,dt=ct.display,pt=ot.textarea;ot.contextMenuPending&&ot.contextMenuPending();var Et=Nl(ct,it),Rt=dt.scroller.scrollTop;if(!Et||ye)return;var Ut=ct.options.resetSelectionOnContextMenu;Ut&&ct.doc.sel.contains(Et)==-1&&Sr(ct,is)(ct.doc,As(Et),Le);var Vt=pt.style.cssText,ae=ot.wrapper.style.cssText,be=ot.wrapper.offsetParent.getBoundingClientRect();ot.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-be.top-5)+"px; left: "+(it.clientX-be.left-5)+`px;
|
|
z-index: 1000; background: `+(Ae?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var se;Jt&&(se=window.scrollY),dt.input.focus(),Jt&&window.scrollTo(null,se),dt.input.reset(),ct.somethingSelected()||(pt.value=ot.prevInput=" "),ot.contextMenuPending=qe,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function _e(){if(pt.selectionStart!=null){var vi=ct.somethingSelected(),Ti="\u200B"+(vi?pt.value:"");pt.value="\u21DA",pt.value=Ti,ot.prevInput=vi?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=Ti.length,dt.selForContextMenu=ct.doc.sel}}function qe(){if(ot.contextMenuPending==qe&&(ot.contextMenuPending=!1,ot.wrapper.style.cssText=ae,pt.style.cssText=Vt,Ae&&Dt<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!Ae||Ae&&Dt<9)&&_e();var vi=0,Ti=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&ot.prevInput=="\u200B"?Sr(ct,Ce)(ct):vi++<10?dt.detectingSelectAll=setTimeout(Ti,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ti,200)}}if(Ae&&Dt>=9&&_e(),Mt){jr(it);var Jn=function(){Ki(window,"mouseup",Jn),setTimeout(qe,20)};$n(window,"mouseup",Jn)}else setTimeout(qe,50)},Js.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Js.prototype.setUneditable=function(){},Js.prototype.needsContentAttribute=!1;function Hf(it,ot){if(ot=ot?Xn(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=He();ot.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=Ut.getValue()}var pt;if(it.form&&($n(it.form,"submit",dt),!ot.leaveSubmitMethodAlone)){var Et=it.form;pt=Et.submit;try{var Rt=Et.submit=function(){dt(),Et.submit=pt,Et.submit(),Et.submit=Rt}}catch(Vt){}}ot.finishInit=function(Vt){Vt.save=dt,Vt.getTextArea=function(){return it},Vt.toTextArea=function(){Vt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Vt.getWrapperElement()),it.style.display="",it.form&&(Ki(it.form,"submit",dt),!ot.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var Ut=sa(function(Vt){return it.parentNode.insertBefore(Vt,it.nextSibling)},ot);return Ut}function Yc(it){it.off=Ki,it.on=$n,it.wheelEventPixels=wa,it.Doc=fr,it.splitLines=vn,it.countColumn=$t,it.findColumn=Fn,it.isWordChar=Tt,it.Pass=Tn,it.signal=ii,it.Line=Na,it.changeEnd=nl,it.scrollbarModel=On,it.Pos=Cn,it.cmpPos=Ri,it.modes=fn,it.mimeModes=ln,it.resolveMode=Ge,it.getMode=je,it.modeExtensions=we,it.extendMode=Ze,it.copyState=ai,it.startState=qn,it.innerMode=ui,it.commands=Ya,it.keyMap=po,it.keyName=ha,it.isModifierKey=Po,it.lookupKey=Qi,it.normalizeKeyMap=Ar,it.StringStream=ze,it.SharedTextMarker=er,it.TextMarker=pe,it.LineWidget=ei,it.e_preventDefault=Or,it.e_stopPropagation=sr,it.e_stop=jr,it.addClass=Ie,it.contains=Fe,it.rmClass=qt,it.keyNames=lo}gf(sa),oc(sa);var zh="iter insert remove copy getEditor constructor".split(" ");for(var vd in fr.prototype)fr.prototype.hasOwnProperty(vd)&&Ee(zh,vd)<0&&(sa.prototype[vd]=function(it){return function(){return it.apply(this.doc,arguments)}}(fr.prototype[vd]));return hr(fr),sa.inputStyles={textarea:Js,contenteditable:ns},sa.defineMode=function(it){!sa.defaults.mode&&it!="null"&&(sa.defaults.mode=it),Yn.apply(this,arguments)},sa.defineMIME=Li,sa.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),sa.defineMIME("text/plain","null"),sa.defineExtension=function(it,ot){sa.prototype[it]=ot},sa.defineDocExtension=function(it,ot){fr.prototype[it]=ot},sa.fromTextArea=Hf,Yc(sa),sa.version="5.58.2",sa})},49047:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631),Ft(29589),Ft(52539))})(function(Lt){"use strict";Lt.defineMode("markdown",function(ie,Be){var Ne=Lt.getMode(ie,"text/html"),Ae=Ne.name=="null";function Dt($t){if(Lt.findModeByName){var jt=Lt.findModeByName($t);jt&&($t=jt.mime||jt.mimes[0])}var Ee=Lt.getMode(ie,$t);return Ee.name=="null"?null:Ee}Be.highlightFormatting===void 0&&(Be.highlightFormatting=!1),Be.maxBlockquoteDepth===void 0&&(Be.maxBlockquoteDepth=0),Be.taskLists===void 0&&(Be.taskLists=!1),Be.strikethrough===void 0&&(Be.strikethrough=!1),Be.emoji===void 0&&(Be.emoji=!1),Be.fencedCodeBlockHighlighting===void 0&&(Be.fencedCodeBlockHighlighting=!0),Be.fencedCodeBlockDefaultMode===void 0&&(Be.fencedCodeBlockDefaultMode="text/plain"),Be.xml===void 0&&(Be.xml=!0),Be.tokenTypeOverrides===void 0&&(Be.tokenTypeOverrides={});var Jt={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 Jt)Jt.hasOwnProperty(ue)&&Be.tokenTypeOverrides[ue]&&(Jt[ue]=Be.tokenTypeOverrides[ue]);var ce=/^([*\-_])(?:\s*\1){2,}\s*$/,ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,de=Be.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Nt=/^[^#!\[\]*_\\<>` "'(~:]+/,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,jt,Ee){return jt.f=jt.inline=Ee,Ee($t,jt)}function mt($t,jt,Ee){return jt.f=jt.block=Ee,Ee($t,jt)}function St($t){return!$t||!/\S/.test($t.string)}function Mt($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==qt){var jt=Ae;if(!jt){var Ee=Lt.innerMode(Ne,$t.htmlState);jt=Ee.mode.name=="xml"&&Ee.state.tagStart===null&&!Ee.state.context&&Ee.state.tokenize.isInText}jt&&($t.f=Pe,$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,jt){var Ee=$t.column()===jt.indentation,sn=St(jt.prevLine.stream),Tn=jt.indentedCode,Le=jt.prevLine.hr,gn=jt.list!==!1,$e=(jt.listStack[jt.listStack.length-1]||0)+3;jt.indentedCode=!1;var Fn=jt.indentation;if(jt.indentationDiff===null&&(jt.indentationDiff=jt.indentation,gn)){for(jt.list=null;Fn<jt.listStack[jt.listStack.length-1];)jt.listStack.pop(),jt.listStack.length?jt.indentation=jt.listStack[jt.listStack.length-1]:jt.list=!1;jt.list!==!1&&(jt.indentationDiff=Fn-jt.listStack[jt.listStack.length-1])}var ke=!sn&&!Le&&!jt.prevLine.header&&(!gn||!Tn)&&!jt.prevLine.fencedCodeEnd,fe=(jt.list===!1||Le||sn)&&jt.indentation<=$e&&$t.match(ce),Re=null;if(jt.indentationDiff>=4&&(Tn||jt.prevLine.fencedCodeEnd||jt.prevLine.header||sn))return $t.skipToEnd(),jt.indentedCode=!0,Jt.code;if($t.eatSpace())return null;if(Ee&&jt.indentation<=$e&&(Re=$t.match(de))&&Re[1].length<=6)return jt.quote=0,jt.header=Re[1].length,jt.thisLine.header=!0,Be.highlightFormatting&&(jt.formatting="header"),jt.f=jt.inline,_t(jt);if(jt.indentation<=$e&&$t.eat(">"))return jt.quote=Ee?1:jt.quote+1,Be.highlightFormatting&&(jt.formatting="quote"),$t.eatSpace(),_t(jt);if(!fe&&!jt.setext&&Ee&&jt.indentation<=$e&&(Re=$t.match(ye))){var dn=Re[1]?"ol":"ul";return jt.indentation=Fn+$t.current().length,jt.list=!0,jt.quote=0,jt.listStack.push(jt.indentation),jt.em=!1,jt.strong=!1,jt.code=!1,jt.strikethrough=!1,Be.taskLists&&$t.match(Je,!1)&&(jt.taskList=!0),jt.f=jt.inline,Be.highlightFormatting&&(jt.formatting=["list","list-"+dn]),_t(jt)}else{if(Ee&&jt.indentation<=$e&&(Re=$t.match(nt,!0)))return jt.quote=0,jt.fencedEndRE=new RegExp(Re[1]+"+ *$"),jt.localMode=Be.fencedCodeBlockHighlighting&&Dt(Re[2]||Be.fencedCodeBlockDefaultMode),jt.localMode&&(jt.localState=Lt.startState(jt.localMode)),jt.f=jt.block=re,Be.highlightFormatting&&(jt.formatting="code-block"),jt.code=-1,_t(jt);if(jt.setext||(!ke||!gn)&&!jt.quote&&jt.list===!1&&!jt.code&&!fe&&!et.test($t.string)&&(Re=$t.lookAhead(1))&&(Re=Re.match(It)))return jt.setext?(jt.header=jt.setext,jt.setext=0,$t.skipToEnd(),Be.highlightFormatting&&(jt.formatting="header")):(jt.header=Re[0].charAt(0)=="="?1:2,jt.setext=jt.header),jt.thisLine.header=!0,jt.f=jt.inline,_t(jt);if(fe)return $t.skipToEnd(),jt.hr=!0,jt.thisLine.hr=!0,Jt.hr;if($t.peek()==="[")return gt($t,jt,In)}return gt($t,jt,jt.inline)}function qt($t,jt){var Ee=Ne.token($t,jt.htmlState);if(!Ae){var sn=Lt.innerMode(Ne,jt.htmlState);(sn.mode.name=="xml"&&sn.state.tagStart===null&&!sn.state.context&&sn.state.tokenize.isInText||jt.md_inside&&$t.current().indexOf(">")>-1)&&(jt.f=Pe,jt.block=zt,jt.htmlState=null)}return Ee}function re($t,jt){var Ee=jt.listStack[jt.listStack.length-1]||0,sn=jt.indentation<Ee,Tn=Ee+3;if(jt.fencedEndRE&&jt.indentation<=Tn&&(sn||$t.match(jt.fencedEndRE))){Be.highlightFormatting&&(jt.formatting="code-block");var Le;return sn||(Le=_t(jt)),jt.localMode=jt.localState=null,jt.block=zt,jt.f=Pe,jt.fencedEndRE=null,jt.code=0,jt.thisLine.fencedCodeEnd=!0,sn?mt($t,jt,jt.block):Le}else return jt.localMode?jt.localMode.token($t,jt.localState):($t.skipToEnd(),Jt.code)}function _t($t){var jt=[];if($t.formatting){jt.push(Jt.formatting),typeof $t.formatting=="string"&&($t.formatting=[$t.formatting]);for(var Ee=0;Ee<$t.formatting.length;Ee++)jt.push(Jt.formatting+"-"+$t.formatting[Ee]),$t.formatting[Ee]==="header"&&jt.push(Jt.formatting+"-"+$t.formatting[Ee]+"-"+$t.header),$t.formatting[Ee]==="quote"&&(!Be.maxBlockquoteDepth||Be.maxBlockquoteDepth>=$t.quote?jt.push(Jt.formatting+"-"+$t.formatting[Ee]+"-"+$t.quote):jt.push("error"))}if($t.taskOpen)return jt.push("meta"),jt.length?jt.join(" "):null;if($t.taskClosed)return jt.push("property"),jt.length?jt.join(" "):null;if($t.linkHref?jt.push(Jt.linkHref,"url"):($t.strong&&jt.push(Jt.strong),$t.em&&jt.push(Jt.em),$t.strikethrough&&jt.push(Jt.strikethrough),$t.emoji&&jt.push(Jt.emoji),$t.linkText&&jt.push(Jt.linkText),$t.code&&jt.push(Jt.code),$t.image&&jt.push(Jt.image),$t.imageAltText&&jt.push(Jt.imageAltText,"link"),$t.imageMarker&&jt.push(Jt.imageMarker)),$t.header&&jt.push(Jt.header,Jt.header+"-"+$t.header),$t.quote&&(jt.push(Jt.quote),!Be.maxBlockquoteDepth||Be.maxBlockquoteDepth>=$t.quote?jt.push(Jt.quote+"-"+$t.quote):jt.push(Jt.quote+"-"+Be.maxBlockquoteDepth)),$t.list!==!1){var sn=($t.listStack.length-1)%3;sn?sn===1?jt.push(Jt.list2):jt.push(Jt.list3):jt.push(Jt.list1)}return $t.trailingSpaceNewLine?jt.push("trailing-space-new-line"):$t.trailingSpace&&jt.push("trailing-space-"+($t.trailingSpace%2?"a":"b")),jt.length?jt.join(" "):null}function Zt($t,jt){if($t.match(Nt,!0))return _t(jt)}function Pe($t,jt){var Ee=jt.text($t,jt);if(typeof Ee!="undefined")return Ee;if(jt.list)return jt.list=null,_t(jt);if(jt.taskList){var sn=$t.match(Je,!0)[1]===" ";return sn?jt.taskOpen=!0:jt.taskClosed=!0,Be.highlightFormatting&&(jt.formatting="task"),jt.taskList=!1,_t(jt)}if(jt.taskOpen=!1,jt.taskClosed=!1,jt.header&&$t.match(/^#+$/,!0))return Be.highlightFormatting&&(jt.formatting="header"),_t(jt);var Tn=$t.next();if(jt.linkTitle){jt.linkTitle=!1;var Le=Tn;Tn==="("&&(Le=")"),Le=(Le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var gn="^\\s*(?:[^"+Le+"\\\\]+|\\\\\\\\|\\\\.)"+Le;if($t.match(new RegExp(gn),!0))return Jt.linkHref}if(Tn==="`"){var $e=jt.formatting;Be.highlightFormatting&&(jt.formatting="code"),$t.eatWhile("`");var Fn=$t.current().length;if(jt.code==0&&(!jt.quote||Fn==1))return jt.code=Fn,_t(jt);if(Fn==jt.code){var ke=_t(jt);return jt.code=0,ke}else return jt.formatting=$e,_t(jt)}else if(jt.code)return _t(jt);if(Tn==="\\"&&($t.next(),Be.highlightFormatting)){var fe=_t(jt),Re=Jt.formatting+"-escape";return fe?fe+" "+Re:Re}if(Tn==="!"&&$t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return jt.imageMarker=!0,jt.image=!0,Be.highlightFormatting&&(jt.formatting="image"),_t(jt);if(Tn==="["&&jt.imageMarker&&$t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return jt.imageMarker=!1,jt.imageAltText=!0,Be.highlightFormatting&&(jt.formatting="image"),_t(jt);if(Tn==="]"&&jt.imageAltText){Be.highlightFormatting&&(jt.formatting="image");var fe=_t(jt);return jt.imageAltText=!1,jt.image=!1,jt.inline=jt.f=Fe,fe}if(Tn==="["&&!jt.image)return jt.linkText&&$t.match(/^.*?\]/)||(jt.linkText=!0,Be.highlightFormatting&&(jt.formatting="link")),_t(jt);if(Tn==="]"&&jt.linkText){Be.highlightFormatting&&(jt.formatting="link");var fe=_t(jt);return jt.linkText=!1,jt.inline=jt.f=$t.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:Pe,fe}if(Tn==="<"&&$t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){jt.f=jt.inline=ge,Be.highlightFormatting&&(jt.formatting="link");var fe=_t(jt);return fe?fe+=" ":fe="",fe+Jt.linkInline}if(Tn==="<"&&$t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){jt.f=jt.inline=ge,Be.highlightFormatting&&(jt.formatting="link");var fe=_t(jt);return fe?fe+=" ":fe="",fe+Jt.linkEmail}if(Be.xml&&Tn==="<"&&$t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var dn=$t.string.indexOf(">",$t.pos);if(dn!=-1){var Te=$t.string.substring($t.start,dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Te)&&(jt.md_inside=!0)}return $t.backUp(1),jt.htmlState=Lt.startState(Ne),mt($t,jt,qt)}if(Be.xml&&Tn==="<"&&$t.match(/^\/\w*?>/))return jt.md_inside=!1,"tag";if(Tn==="*"||Tn==="_"){for(var Ht=1,At=$t.pos==1?" ":$t.string.charAt($t.pos-2);Ht<3&&$t.eat(Tn);)Ht++;var Ct=$t.peek()||" ",Tt=!/\s/.test(Ct)&&(!ht.test(Ct)||/\s/.test(At)||ht.test(At)),Xt=!/\s/.test(At)&&(!ht.test(At)||/\s/.test(Ct)||ht.test(Ct)),kt=null,ee=null;if(Ht%2&&(!jt.em&&Tt&&(Tn==="*"||!Xt||ht.test(At))?kt=!0:jt.em==Tn&&Xt&&(Tn==="*"||!Tt||ht.test(Ct))&&(kt=!1)),Ht>1&&(!jt.strong&&Tt&&(Tn==="*"||!Xt||ht.test(At))?ee=!0:jt.strong==Tn&&Xt&&(Tn==="*"||!Tt||ht.test(Ct))&&(ee=!1)),ee!=null||kt!=null){Be.highlightFormatting&&(jt.formatting=kt==null?"strong":ee==null?"em":"strong em"),kt===!0&&(jt.em=Tn),ee===!0&&(jt.strong=Tn);var ke=_t(jt);return kt===!1&&(jt.em=!1),ee===!1&&(jt.strong=!1),ke}}else if(Tn===" "&&($t.eat("*")||$t.eat("_"))){if($t.peek()===" ")return _t(jt);$t.backUp(1)}if(Be.strikethrough){if(Tn==="~"&&$t.eatWhile(Tn)){if(jt.strikethrough){Be.highlightFormatting&&(jt.formatting="strikethrough");var ke=_t(jt);return jt.strikethrough=!1,ke}else if($t.match(/^[^\s]/,!1))return jt.strikethrough=!0,Be.highlightFormatting&&(jt.formatting="strikethrough"),_t(jt)}else if(Tn===" "&&$t.match(/^~~/,!0)){if($t.peek()===" ")return _t(jt);$t.backUp(2)}}if(Be.emoji&&Tn===":"&&$t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){jt.emoji=!0,Be.highlightFormatting&&(jt.formatting="emoji");var rn=_t(jt);return jt.emoji=!1,rn}return Tn===" "&&($t.match(/^ +$/,!1)?jt.trailingSpace++:jt.trailingSpace&&(jt.trailingSpaceNewLine=!0)),_t(jt)}function ge($t,jt){var Ee=$t.next();if(Ee===">"){jt.f=jt.inline=Pe,Be.highlightFormatting&&(jt.formatting="link");var sn=_t(jt);return sn?sn+=" ":sn="",sn+Jt.linkInline}return $t.match(/^[^>]+/,!0),Jt.linkInline}function Fe($t,jt){if($t.eatSpace())return null;var Ee=$t.next();return Ee==="("||Ee==="["?(jt.f=jt.inline=Ie(Ee==="("?")":"]"),Be.highlightFormatting&&(jt.formatting="link-string"),jt.linkHref=!0,_t(jt)):"error"}var He={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ie($t){return function(jt,Ee){var sn=jt.next();if(sn===$t){Ee.f=Ee.inline=Pe,Be.highlightFormatting&&(Ee.formatting="link-string");var Tn=_t(Ee);return Ee.linkHref=!1,Tn}return jt.match(He[$t]),Ee.linkHref=!0,_t(Ee)}}function In($t,jt){return $t.match(/^([^\]\\]|\\.)*\]:/,!1)?(jt.f=bn,$t.next(),Be.highlightFormatting&&(jt.formatting="link"),jt.linkText=!0,_t(jt)):gt($t,jt,Pe)}function bn($t,jt){if($t.match(/^\]:/,!0)){jt.f=jt.inline=cn,Be.highlightFormatting&&(jt.formatting="link");var Ee=_t(jt);return jt.linkText=!1,Ee}return $t.match(/^([^\]\\]|\\.)+/,!0),Jt.linkText}function cn($t,jt){return $t.eatSpace()?null:($t.match(/^[^\s]+/,!0),$t.peek()===void 0?jt.linkTitle=!0:$t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),jt.f=jt.inline=Pe,Jt.linkHref+" url")}var Xn={startState:function(){return{f:zt,prevLine:{stream:null},thisLine:{stream:null},block:zt,htmlState:null,indentation:0,inline:Pe,text:Zt,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&&Lt.copyState(Ne,$t.htmlState),indentation:$t.indentation,localMode:$t.localMode,localState:$t.localMode?Lt.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,jt){if(jt.formatting=!1,$t!=jt.thisLine.stream){if(jt.header=0,jt.hr=!1,$t.match(/^\s*$/,!0))return Mt(jt),null;if(jt.prevLine=jt.thisLine,jt.thisLine={stream:$t},jt.taskList=!1,jt.trailingSpace=0,jt.trailingSpaceNewLine=!1,!jt.localState&&(jt.f=jt.block,jt.f!=qt)){var Ee=$t.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(jt.indentation=Ee,jt.indentationDiff=null,Ee>0)return null}}return jt.f($t,jt)},innerMode:function($t){return $t.block==qt?{state:$t.htmlState,mode:Ne}:$t.localState?{state:$t.localState,mode:$t.localMode}:{state:$t,mode:Xn}},indent:function($t,jt,Ee){return $t.block==qt&&Ne.indent?Ne.indent($t.htmlState,jt,Ee):$t.localState&&$t.localMode.indent?$t.localMode.indent($t.localState,jt,Ee):Lt.Pass},blankLine:Mt,getType:_t,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xn},"xml"),Lt.defineMIME("text/markdown","markdown"),Lt.defineMIME("text/x-markdown","markdown")})},52539:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){"use strict";Lt.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 ie=0;ie<Lt.modeInfo.length;ie++){var Be=Lt.modeInfo[ie];Be.mimes&&(Be.mime=Be.mimes[0])}Lt.findModeByMIME=function(Ne){Ne=Ne.toLowerCase();for(var Ae=0;Ae<Lt.modeInfo.length;Ae++){var Dt=Lt.modeInfo[Ae];if(Dt.mime==Ne)return Dt;if(Dt.mimes){for(var Jt=0;Jt<Dt.mimes.length;Jt++)if(Dt.mimes[Jt]==Ne)return Dt}}if(/\+xml$/.test(Ne))return Lt.findModeByMIME("application/xml");if(/\+json$/.test(Ne))return Lt.findModeByMIME("application/json")},Lt.findModeByExtension=function(Ne){Ne=Ne.toLowerCase();for(var Ae=0;Ae<Lt.modeInfo.length;Ae++){var Dt=Lt.modeInfo[Ae];if(Dt.ext){for(var Jt=0;Jt<Dt.ext.length;Jt++)if(Dt.ext[Jt]==Ne)return Dt}}},Lt.findModeByFileName=function(Ne){for(var Ae=0;Ae<Lt.modeInfo.length;Ae++){var Dt=Lt.modeInfo[Ae];if(Dt.file&&Dt.file.test(Ne))return Dt}var Jt=Ne.lastIndexOf("."),ue=Jt>-1&&Ne.substring(Jt+1,Ne.length);if(ue)return Lt.findModeByExtension(ue)},Lt.findModeByName=function(Ne){Ne=Ne.toLowerCase();for(var Ae=0;Ae<Lt.modeInfo.length;Ae++){var Dt=Lt.modeInfo[Ae];if(Dt.name.toLowerCase()==Ne)return Dt;if(Dt.alias){for(var Jt=0;Jt<Dt.alias.length;Jt++)if(Dt.alias[Jt].toLowerCase()==Ne)return Dt}}}})},80785:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){"use strict";Lt.defineMode("stex",function(ie,Be){"use strict";function Ne(Nt,nt){Nt.cmdState.push(nt)}function Ae(Nt){return Nt.cmdState.length>0?Nt.cmdState[Nt.cmdState.length-1]:null}function Dt(Nt){var nt=Nt.cmdState.pop();nt&&nt.closeBracket()}function Jt(Nt){for(var nt=Nt.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(Nt,nt,et){return function(){this.name=Nt,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 ce={};ce.importmodule=ue("importmodule","tag",["string","builtin"]),ce.documentclass=ue("documentclass","tag",["","atom"]),ce.usepackage=ue("usepackage","tag",["atom"]),ce.begin=ue("begin","tag",["atom"]),ce.end=ue("end","tag",["atom"]),ce.label=ue("label","tag",["atom"]),ce.ref=ue("ref","tag",["atom"]),ce.eqref=ue("eqref","tag",["atom"]),ce.cite=ue("cite","tag",["atom"]),ce.bibitem=ue("bibitem","tag",["atom"]),ce.Bibitem=ue("Bibitem","tag",["atom"]),ce.RBibitem=ue("RBibitem","tag",["atom"]),ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ye(Nt,nt){Nt.f=nt}function Je(Nt,nt){var et;if(Nt.match(/^\\[a-zA-Z@]+/)){var ht=Nt.current().slice(1);return et=ce.hasOwnProperty(ht)?ce[ht]:ce.DEFAULT,et=new et,Ne(nt,et),ye(nt,It),et.style}if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/\\]/))return"tag";if(Nt.match("\\["))return ye(nt,function(gt,mt){return de(gt,mt,"\\]")}),"keyword";if(Nt.match("\\("))return ye(nt,function(gt,mt){return de(gt,mt,"\\)")}),"keyword";if(Nt.match("$$"))return ye(nt,function(gt,mt){return de(gt,mt,"$$")}),"keyword";if(Nt.match("$"))return ye(nt,function(gt,mt){return de(gt,mt,"$")}),"keyword";var lt=Nt.next();if(lt=="%")return Nt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(et=Ae(nt),et)et.closeBracket(lt),ye(nt,It);else return"error";return"bracket"}else return lt=="{"||lt=="["?(et=ce.DEFAULT,et=new et,Ne(nt,et),"bracket"):/\d/.test(lt)?(Nt.eatWhile(/[\w.%]/),"atom"):(Nt.eatWhile(/[\w\-_]/),et=Jt(nt),et.name=="begin"&&(et.argument=Nt.current()),et.styleIdentifier())}function de(Nt,nt,et){if(Nt.eatSpace())return null;if(et&&Nt.match(et))return ye(nt,Je),"keyword";if(Nt.match(/^\\[a-zA-Z@]+/))return"tag";if(Nt.match(/^[a-zA-Z]+/))return"variable-2";if(Nt.match(/^\\[$&%#{}_]/)||Nt.match(/^\\[,;!\/]/)||Nt.match(/^[\^_&]/))return"tag";if(Nt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Nt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Nt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Nt.skipToEnd(),"comment"):"error"}function It(Nt,nt){var et=Nt.peek(),ht;return et=="{"||et=="["?(ht=Ae(nt),ht.openBracket(et),Nt.eat(et),ye(nt,Je),"bracket"):/[ \t\r]/.test(et)?(Nt.eat(et),null):(ye(nt,Je),Dt(nt),Je(Nt,nt))}return{startState:function(){var Nt=Be.inMathMode?function(nt,et){return de(nt,et)}:Je;return{cmdState:[],f:Nt}},copyState:function(Nt){return{cmdState:Nt.cmdState.slice(),f:Nt.f}},token:function(Nt,nt){return nt.f(Nt,nt)},blankLine:function(Nt){Nt.f=Je,Nt.cmdState.length=0},lineComment:"%"}}),Lt.defineMIME("text/x-stex","stex"),Lt.defineMIME("text/x-latex","stex")})},29589:function(Pn,Hn,Ft){(function(Lt){Lt(Ft(4631))})(function(Lt){"use strict";var ie={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},Be={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Lt.defineMode("xml",function(Ne,Ae){var Dt=Ne.indentUnit,Jt={},ue=Ae.htmlMode?ie:Be;for(var ce in ue)Jt[ce]=ue[ce];for(var ce in Ae)Jt[ce]=Ae[ce];var ye,Je;function de(ge,Fe){function He(bn){return Fe.tokenize=bn,bn(ge,Fe)}var Ie=ge.next();if(Ie=="<")return ge.eat("!")?ge.eat("[")?ge.match("CDATA[")?He(nt("atom","]]>")):null:ge.match("--")?He(nt("comment","-->")):ge.match("DOCTYPE",!0,!0)?(ge.eatWhile(/[\w\._\-]/),He(et(1))):null:ge.eat("?")?(ge.eatWhile(/[\w\._\-]/),Fe.tokenize=nt("meta","?>"),"meta"):(ye=ge.eat("/")?"closeTag":"openTag",Fe.tokenize=It,"tag bracket");if(Ie=="&"){var In;return ge.eat("#")?ge.eat("x")?In=ge.eatWhile(/[a-fA-F\d]/)&&ge.eat(";"):In=ge.eatWhile(/[\d]/)&&ge.eat(";"):In=ge.eatWhile(/[\w\.\-:]/)&&ge.eat(";"),In?"atom":"error"}else return ge.eatWhile(/[^&<]/),null}de.isInText=!0;function It(ge,Fe){var He=ge.next();if(He==">"||He=="/"&&ge.eat(">"))return Fe.tokenize=de,ye=He==">"?"endTag":"selfcloseTag","tag bracket";if(He=="=")return ye="equals",null;if(He=="<"){Fe.tokenize=de,Fe.state=mt,Fe.tagName=Fe.tagStart=null;var Ie=Fe.tokenize(ge,Fe);return Ie?Ie+" tag error":"tag error"}else return/[\'\"]/.test(He)?(Fe.tokenize=Nt(He),Fe.stringStartCol=ge.column(),Fe.tokenize(ge,Fe)):(ge.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Nt(ge){var Fe=function(He,Ie){for(;!He.eol();)if(He.next()==ge){Ie.tokenize=It;break}return"string"};return Fe.isInAttribute=!0,Fe}function nt(ge,Fe){return function(He,Ie){for(;!He.eol();){if(He.match(Fe)){Ie.tokenize=de;break}He.next()}return ge}}function et(ge){return function(Fe,He){for(var Ie;(Ie=Fe.next())!=null;){if(Ie=="<")return He.tokenize=et(ge+1),He.tokenize(Fe,He);if(Ie==">")if(ge==1){He.tokenize=de;break}else return He.tokenize=et(ge-1),He.tokenize(Fe,He)}return"meta"}}function ht(ge,Fe,He){this.prev=ge.context,this.tagName=Fe,this.indent=ge.indented,this.startOfLine=He,(Jt.doNotIndent.hasOwnProperty(Fe)||ge.context&&ge.context.noIndent)&&(this.noIndent=!0)}function lt(ge){ge.context&&(ge.context=ge.context.prev)}function gt(ge,Fe){for(var He;;){if(!ge.context||(He=ge.context.tagName,!Jt.contextGrabbers.hasOwnProperty(He)||!Jt.contextGrabbers[He].hasOwnProperty(Fe)))return;lt(ge)}}function mt(ge,Fe,He){return ge=="openTag"?(He.tagStart=Fe.column(),St):ge=="closeTag"?Mt:mt}function St(ge,Fe,He){return ge=="word"?(He.tagName=Fe.current(),Je="tag",re):Jt.allowMissingTagName&&ge=="endTag"?(Je="tag bracket",re(ge,Fe,He)):(Je="error",St)}function Mt(ge,Fe,He){if(ge=="word"){var Ie=Fe.current();return He.context&&He.context.tagName!=Ie&&Jt.implicitlyClosed.hasOwnProperty(He.context.tagName)&<(He),He.context&&He.context.tagName==Ie||Jt.matchClosing===!1?(Je="tag",zt):(Je="tag error",qt)}else return Jt.allowMissingTagName&&ge=="endTag"?(Je="tag bracket",zt(ge,Fe,He)):(Je="error",qt)}function zt(ge,Fe,He){return ge!="endTag"?(Je="error",zt):(lt(He),mt)}function qt(ge,Fe,He){return Je="error",zt(ge,Fe,He)}function re(ge,Fe,He){if(ge=="word")return Je="attribute",_t;if(ge=="endTag"||ge=="selfcloseTag"){var Ie=He.tagName,In=He.tagStart;return He.tagName=He.tagStart=null,ge=="selfcloseTag"||Jt.autoSelfClosers.hasOwnProperty(Ie)?gt(He,Ie):(gt(He,Ie),He.context=new ht(He,Ie,In==He.indented)),mt}return Je="error",re}function _t(ge,Fe,He){return ge=="equals"?Zt:(Jt.allowMissing||(Je="error"),re(ge,Fe,He))}function Zt(ge,Fe,He){return ge=="string"?Pe:ge=="word"&&Jt.allowUnquoted?(Je="string",re):(Je="error",re(ge,Fe,He))}function Pe(ge,Fe,He){return ge=="string"?Pe:re(ge,Fe,He)}return{startState:function(ge){var Fe={tokenize:de,state:mt,indented:ge||0,tagName:null,tagStart:null,context:null};return ge!=null&&(Fe.baseIndent=ge),Fe},token:function(ge,Fe){if(!Fe.tagName&&ge.sol()&&(Fe.indented=ge.indentation()),ge.eatSpace())return null;ye=null;var He=Fe.tokenize(ge,Fe);return(He||ye)&&He!="comment"&&(Je=null,Fe.state=Fe.state(ye||He,ge,Fe),Je&&(He=Je=="error"?He+" error":Je)),He},indent:function(ge,Fe,He){var Ie=ge.context;if(ge.tokenize.isInAttribute)return ge.tagStart==ge.indented?ge.stringStartCol+1:ge.indented+Dt;if(Ie&&Ie.noIndent)return Lt.Pass;if(ge.tokenize!=It&&ge.tokenize!=de)return He?He.match(/^(\s*)/)[0].length:0;if(ge.tagName)return Jt.multilineTagIndentPastTag!==!1?ge.tagStart+ge.tagName.length+2:ge.tagStart+Dt*(Jt.multilineTagIndentFactor||1);if(Jt.alignCDATA&&/<!\[CDATA\[/.test(Fe))return 0;var In=Fe&&/^<(\/)?([\w_:\.-]*)/.exec(Fe);if(In&&In[1])for(;Ie;)if(Ie.tagName==In[2]){Ie=Ie.prev;break}else if(Jt.implicitlyClosed.hasOwnProperty(Ie.tagName))Ie=Ie.prev;else break;else if(In)for(;Ie;){var bn=Jt.contextGrabbers[Ie.tagName];if(bn&&bn.hasOwnProperty(In[2]))Ie=Ie.prev;else break}for(;Ie&&Ie.prev&&!Ie.startOfLine;)Ie=Ie.prev;return Ie?Ie.indent+Dt:ge.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Jt.htmlMode?"html":"xml",helperType:Jt.htmlMode?"html":"xml",skipAttribute:function(ge){ge.state==Zt&&(ge.state=re)},xmlCurrentTag:function(ge){return ge.tagName?{name:ge.tagName,close:ge.type=="closeTag"}:null},xmlCurrentContext:function(ge){for(var Fe=[],He=ge.context;He;He=He.prev)He.tagName&&Fe.push(He.tagName);return Fe.reverse()}}}),Lt.defineMIME("text/xml","xml"),Lt.defineMIME("application/xml","xml"),Lt.mimeModes.hasOwnProperty("text/html")||Lt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},28734:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";return function(Hn,Ft){var Lt=Ft.prototype,ie=Lt.format;Lt.format=function(Be){var Ne=this,Ae=this.$locale();if(!this.isValid())return ie.bind(this)(Be);var Dt=this.$utils(),Jt=(Be||"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((Ne.$M+1)/3);case"Do":return Ae.ordinal(Ne.$D);case"gggg":return Ne.weekYear();case"GGGG":return Ne.isoWeekYear();case"wo":return Ae.ordinal(Ne.week(),"W");case"w":case"ww":return Dt.s(Ne.week(),ue==="w"?1:2,"0");case"W":case"WW":return Dt.s(Ne.isoWeek(),ue==="W"?1:2,"0");case"k":case"kk":return Dt.s(String(Ne.$H===0?24:Ne.$H),ue==="k"?1:2,"0");case"X":return Math.floor(Ne.$d.getTime()/1e3);case"x":return Ne.$d.getTime();case"z":return"["+Ne.offsetName()+"]";case"zzz":return"["+Ne.offsetName("long")+"]";default:return ue}});return ie.bind(this)(Jt)}}})},96036:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";return function(Hn,Ft,Lt){var ie=Ft.prototype,Be=function(ue){return ue&&(ue.indexOf?ue:ue.s)},Ne=function(ue,ce,ye,Je,de){var It=ue.name?ue:ue.$locale(),Nt=Be(It[ce]),nt=Be(It[ye]),et=Nt||nt.map(function(lt){return lt.slice(0,Je)});if(!de)return et;var ht=It.weekStart;return et.map(function(lt,gt){return et[(gt+(ht||0))%7]})},Ae=function(){return Lt.Ls[Lt.locale()]},Dt=function(ue,ce){return ue.formats[ce]||function(ye){return ye.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Je,de,It){return de||It.slice(1)})}(ue.formats[ce.toUpperCase()])},Jt=function(){var ue=this;return{months:function(ce){return ce?ce.format("MMMM"):Ne(ue,"months")},monthsShort:function(ce){return ce?ce.format("MMM"):Ne(ue,"monthsShort","months",3)},firstDayOfWeek:function(){return ue.$locale().weekStart||0},weekdays:function(ce){return ce?ce.format("dddd"):Ne(ue,"weekdays")},weekdaysMin:function(ce){return ce?ce.format("dd"):Ne(ue,"weekdaysMin","weekdays",2)},weekdaysShort:function(ce){return ce?ce.format("ddd"):Ne(ue,"weekdaysShort","weekdays",3)},longDateFormat:function(ce){return Dt(ue.$locale(),ce)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};ie.localeData=function(){return Jt.bind(this)()},Lt.localeData=function(){var ue=Ae();return{firstDayOfWeek:function(){return ue.weekStart||0},weekdays:function(){return Lt.weekdays()},weekdaysShort:function(){return Lt.weekdaysShort()},weekdaysMin:function(){return Lt.weekdaysMin()},months:function(){return Lt.months()},monthsShort:function(){return Lt.monthsShort()},longDateFormat:function(ce){return Dt(ue,ce)},meridiem:ue.meridiem,ordinal:ue.ordinal}},Lt.months=function(){return Ne(Ae(),"months")},Lt.monthsShort=function(){return Ne(Ae(),"monthsShort","months",3)},Lt.weekdays=function(ue){return Ne(Ae(),"weekdays",null,null,ue)},Lt.weekdaysShort=function(ue){return Ne(Ae(),"weekdaysShort","weekdays",3,ue)},Lt.weekdaysMin=function(ue){return Ne(Ae(),"weekdaysMin","weekdays",2,ue)}}})},55183:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";var Hn="week",Ft="year";return function(Lt,ie,Be){var Ne=ie.prototype;Ne.week=function(Ae){if(Ae===void 0&&(Ae=null),Ae!==null)return this.add(7*(Ae-this.week()),"day");var Dt=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Jt=Be(this).startOf(Ft).add(1,Ft).date(Dt),ue=Be(this).endOf(Hn);if(Jt.isBefore(ue))return 1}var ce=Be(this).startOf(Ft).date(Dt).startOf(Hn).subtract(1,"millisecond"),ye=this.diff(ce,Hn,!0);return ye<0?Be(this).startOf("week").week():Math.ceil(ye)},Ne.weeks=function(Ae){return Ae===void 0&&(Ae=null),this.week(Ae)}}})},172:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";return function(Hn,Ft){Ft.prototype.weekYear=function(){var Lt=this.month(),ie=this.week(),Be=this.year();return ie===1&&Lt===11?Be+1:Lt===0&&ie>=52?Be-1:Be}}})},6833:function(Pn){(function(Hn,Ft){Pn.exports=Ft()})(this,function(){"use strict";return function(Hn,Ft){Ft.prototype.weekday=function(Lt){var ie=this.$locale().weekStart||0,Be=this.$W,Ne=(Be<ie?Be+7:Be)-ie;return this.$utils().u(Lt)?Ne:this.subtract(Ne,"day").add(Lt,"day")}}})},23495:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{$u:function(){return ce},BD:function(){return Ht},E9:function(){return ue},FF:function(){return ta},FJ:function(){return mt},Hn:function(){return gt},KX:function(){return Mt},NB:function(){return en},S0:function(){return Re},UL:function(){return ye},Vk:function(){return lt},Vm:function(){return Ke},YI:function(){return dn},ZA:function(){return Be},Zt:function(){return Je},al:function(){return kt},bn:function(){return Xt},bx:function(){return At},g2:function(){return Te},h1:function(){return Zt},hD:function(){return hr},l4:function(){return Dt},rU:function(){return Mn},s_:function(){return Ct},uz:function(){return Un},z6:function(){return de}}),Pn=Ft.hmd(Pn),function(){var wt;function Ve(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ye(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ve(a)}}function xn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var fn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ln;if(typeof Object.setPrototypeOf=="function")ln=Object.setPrototypeOf;else{var Yn;t:{var Li={a:!0},Ge={};try{Ge.__proto__=Li,Yn=Ge.a;break t}catch(a){}Yn=!1}ln=Yn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var je=ln;function we(a,y){if(a.prototype=fn(y.prototype),a.prototype.constructor=a,je)je(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var Ze=typeof Ft.g!="undefined"&&Ft.g!=null?Ft.g:self,ai=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},ui=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function qn(a,y){if(y){var x=Ze;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&ui(x,a,{writable:!0,value:y})}}qn("Object.assign",function(a){return a||ai}),qn("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var ze=typeof globalThis=="object"&&globalThis||typeof Ft.g=="object"&&Ft.g.global===Ft.g&&Ft.g||typeof self=="object"&&self.self===self&&self||{};ze.requestAnimationFrame===void 0&&(ze.setImmediate===void 0?ze.requestAnimationFrame=function(a){ze.setTimeout(a,0)}:ze.requestAnimationFrame=ze.setImmediate);function yn(){}function Ni(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&ze.clearTimeout(x),x=Yi(function(){x=-1,a.apply(E,b)},y)}}function Yi(a,y){return ze.setTimeout(a,y)}function Dn(a){return ze.document.createElement(a)}function De(a){throw Error(a)}function xi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),De(a)}function Ui(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),De(x+" is not in the range "+y+": "+a)}function Tr(a){ze.console&&ze.console.log(a)}function Cn(a){return typeof a=="object"&&a!==null}function Ri(a){return Array.isArray(a)||ze.NodeList&&a instanceof ze.NodeList||ze.HTMLCollection&&a instanceof ze.HTMLCollection}function ro(a){return Array.prototype.slice.call(a)}function Sa(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):De("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function bo(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):De("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ki(){var a=qa.pop();return a===void 0?[]:a}function Bi(a){a.length=0,qa.push(a)}function Hi(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(Cn(a)&&a.constructor)return Hi(a.constructor);return typeof a}function to(a){var y=a;return Cn(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 Yr(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 ti(a,y,x){Object.defineProperty(ia.prototype,a,{get:y,set:x})}function or(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var pl=ze.navigator!==void 0&&0<ze.navigator.userAgent.indexOf("Trident/7"),gs=ze.navigator!==void 0&&ze.navigator.platform!==void 0&&ze.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,qa=[];Object.freeze([]),yn.className="Util",yn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",yn.adym="gojs.net",yn.vfo="28e645fdb266",yn.className="Util";function We(a,y,x){vo(this),this.j=a,this.xa=y,this.o=x}We.prototype.toString=function(){return"EnumValue."+this.xa};function mr(a,y){return y==null||y===""?null:a[y]}Ze.Object.defineProperties(We.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),We.className="EnumValue";function xo(){this.ew=[]}xo.prototype.toString=function(){return this.ew.join("")},xo.prototype.add=function(a){a!==""&&this.ew.push(a)},xo.className="StringBuilder";function ir(){}ir.className="PropertyCollection";var Ea={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ze.console&&ze.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function mo(){}mo.prototype.reset=function(){},mo.prototype.next=function(){return!1},mo.prototype.Ad=function(){return!1},mo.prototype.first=function(){return null},mo.prototype.any=function(){return!1},mo.prototype.all=function(){return!0},mo.prototype.each=function(){return this},mo.prototype.map=function(){return this},mo.prototype.filter=function(){return this},mo.prototype.de=function(){},mo.prototype.toString=function(){return"EmptyIterator"},Ze.Object.defineProperties(mo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),mo.prototype.first=mo.prototype.first,mo.prototype.hasNext=mo.prototype.Ad,mo.prototype.next=mo.prototype.next,mo.prototype.reset=mo.prototype.reset;var To=null;mo.className="EmptyIterator",To=new mo;function so(a){this.key=-1,this.value=a}so.prototype.reset=function(){this.key=-1},so.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},so.prototype.Ad=function(){return this.next()},so.prototype.first=function(){return this.key=0,this.value},so.prototype.any=function(a){return this.key=-1,a(this.value)},so.prototype.all=function(a){return this.key=-1,a(this.value)},so.prototype.each=function(a){return this.key=-1,a(this.value),this},so.prototype.map=function(a){return new so(a(this.value))},so.prototype.filter=function(a){return a(this.value)?new so(this.value):To},so.prototype.de=function(){this.value=null},so.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ze.Object.defineProperties(so.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),so.prototype.first=so.prototype.first,so.prototype.hasNext=so.prototype.Ad,so.prototype.next=so.prototype.next,so.prototype.reset=so.prototype.reset,so.className="SingletonIterator";function Hr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Hr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Hr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Hr.prototype.Ad=function(){return this.next()},Hr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Hr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},Hr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},Hr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},Hr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&x.push(a(tt))}return a=new Ln,a.s=x,a.xb(),a.iterator},Hr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&a(tt)&&x.push(tt)}return a=new Ln,a.s=x,a.xb(),a.iterator},Hr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Hr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ze.Object.defineProperties(Hr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),Hr.prototype.first=Hr.prototype.first,Hr.prototype.hasNext=Hr.prototype.Ad,Hr.prototype.next=Hr.prototype.next,Hr.prototype.reset=Hr.prototype.reset,Hr.className="ListIterator";function ea(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}ea.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},ea.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)},ea.prototype.Ad=function(){return this.next()},ea.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},ea.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},ea.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},ea.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},ea.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new Ln,a.s=x,a.xb(),a.iterator},ea.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new Ln,a.s=x,a.xb(),a.iterator},ea.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},ea.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ze.Object.defineProperties(ea.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),ea.prototype.first=ea.prototype.first,ea.prototype.hasNext=ea.prototype.Ad,ea.prototype.next=ea.prototype.next,ea.prototype.reset=ea.prototype.reset,ea.className="ListIteratorBackwards";function Ln(a){vo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&De("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=Ln.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"List()#"+Ia(this)},wt.add=function(a){return a===null?this:(this._isFrozen&&xi(this,a),this.s.push(a),this.xb(),this)},wt.push=function(a){this.add(a)},wt.addAll=function(a){if(a===null)return this;this._isFrozen&&xi(this);var y=this.s;if(Ri(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},wt.clear=function(){this._isFrozen&&xi(this),this.s.length=0,this.xb()},wt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},wt.has=function(a){return this.contains(a)},wt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},wt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ui(a,"0 <= i < length",Ln,"elt:i"),y[a]},wt.get=function(a){return this.M(a)},wt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ui(a,"0 <= i < length",Ln,"setElt:i"),this._isFrozen&&xi(this,a),x[a]=y},wt.set=function(a,y){this.cd(a,y)},wt.first=function(){var a=this.s;return a.length===0?null:a[0]},wt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},wt.pop=function(){this._isFrozen&&xi(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,E=0;E<x;E++)if(a(y[E]))return!0;return!1},Ln.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},Ln.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},Ln.prototype.map=function(a){for(var y=new Ln,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},Ln.prototype.filter=function(a){for(var y=new Ln,x=[],E=this.s,b=E.length,z=0;z<b;z++){var tt=E[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},wt=Ln.prototype,wt.Gb=function(a,y){0>a&&Ui(a,">= 0",Ln,"insertAt:i"),this._isFrozen&&xi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(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)},wt.delete=function(a){return this.remove(a)},wt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ui(a,"0 <= i < length",Ln,"removeAt:i"),this._isFrozen&&xi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},wt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&xi(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(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},wt=Ln.prototype,wt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},wt.Iv=function(){for(var a=new pn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},wt.sort=function(a){return this._isFrozen&&xi(this),this.s.sort(a),this.xb(),this},wt.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&xi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Ui(y,"0 <= from < length",Ln,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},wt.reverse=function(){return this._isFrozen&&xi(this),this.s.reverse(),this.xb(),this},Ze.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 To;var a=this.Sa;return a!==null?(a.reset(),a):new Hr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return To;var a=this.Hg;return a!==null?(a.reset(),a):new ea(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 La(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}La.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},La.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)},La.prototype.Ad=function(){return this.next()},La.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},La.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},La.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},La.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},La.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},La.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},La.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},La.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ze.Object.defineProperties(La.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),La.prototype.first=La.prototype.first,La.prototype.hasNext=La.prototype.Ad,La.prototype.next=La.prototype.next,La.prototype.reset=La.prototype.reset,La.className="SetIterator";function pn(a){vo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&De("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=pn.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"Set()#"+Ia(this)},wt.add=function(a){if(a===null)return this;this._isFrozen&&xi(this,a);var y=a;return Cn(a)&&(y=Fs(a)),this.Tb[y]===void 0&&(this.Sb++,a=new al(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},wt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&xi(this),Ri(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},wt.contains=function(a){if(a===null)return!1;var y=a;return Cn(a)&&(y=Ia(a),y===void 0)?!1:this.Tb[y]!==void 0},wt.has=function(a){return this.contains(a)},wt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},wt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},wt.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 E=x.value;a(E)&&y.add(E),x=x.va}return y},wt=pn.prototype,wt.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(this,a);var y=a;if(Cn(a)&&(y=Ia(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},wt.delete=function(a){return this.remove(a)},wt.hp=function(a){if(a===null)return this;if(this._isFrozen&&xi(this),Ri(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},wt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&xi(this);var y=new pn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},wt.clear=function(){this._isFrozen&&xi(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,E;for(E in y)a[x]=y[E].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 vo(a){a.__gohashid=$s++}function Fs(a){var y=a.__gohashid;return y===void 0&&(y=$s++,a.__gohashid=y),y}function Ia(a){return a.__gohashid}Ze.Object.defineProperties(pn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return To;var a=this.Sa;return a!==null?(a.reset(),a):new La(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 $s=1;pn.className="Set",pn.uniqueHash=vo,pn.hashIdUnique=Fs,pn.hashId=Ia;function Ca(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ca.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ca.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)},Ca.prototype.Ad=function(){return this.next()},Ca.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},Ca.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},Ca.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},Ca.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},Ca.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},Ca.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Ca.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ca.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ze.Object.defineProperties(Ca.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ca.prototype.first=Ca.prototype.first,Ca.prototype.hasNext=Ca.prototype.Ad,Ca.prototype.next=Ca.prototype.next,Ca.prototype.reset=Ca.prototype.reset,Ca.className="MapKeySetIterator";function Fo(a){pn.call(this),vo(this),this._isFrozen=!0,this.ma=a}we(Fo,pn),wt=Fo.prototype,wt.freeze=function(){return this},wt.ka=function(){return this},wt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},wt.add=function(){De("This Set is read-only: "+this.toString())},wt.contains=function(a){return this.ma.contains(a)},wt.has=function(a){return this.contains(a)},wt.remove=function(){De("This Set is read-only: "+this.toString())},wt.delete=function(a){return this.remove(a)},wt.clear=function(){De("This Set is read-only: "+this.toString())},wt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Fo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Fo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Fo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Fo.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},Fo.prototype.filter=function(a){for(var y=new pn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Fo.prototype.copy=function(){return new Fo(this.ma)},Fo.prototype.Iv=function(){var a=new pn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Fo.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Fo.prototype.Hv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ze.Object.defineProperties(Fo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?To:new Ca(this.ma)}}}),Fo.prototype.toList=Fo.prototype.Hv,Fo.prototype.toArray=Fo.prototype.Fa,Fo.prototype.toSet=Fo.prototype.Iv,Fo.prototype.first=Fo.prototype.first,Fo.prototype.clear=Fo.prototype.clear,Fo.prototype.delete=Fo.prototype.delete,Fo.prototype.remove=Fo.prototype.remove,Fo.prototype.has=Fo.prototype.has,Fo.prototype.contains=Fo.prototype.contains,Fo.prototype.add=Fo.prototype.add,Fo.prototype.thaw=Fo.prototype.ka,Fo.prototype.freeze=Fo.prototype.freeze,Fo.className="MapKeySet";function Fa(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Fa.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Fa.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)},Fa.prototype.Ad=function(){return this.next()},Fa.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},Fa.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},Fa.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},Fa.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},Fa.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},Fa.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Fa.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Fa.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ze.Object.defineProperties(Fa.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Fa.prototype.first=Fa.prototype.first,Fa.prototype.hasNext=Fa.prototype.Ad,Fa.prototype.next=Fa.prototype.next,Fa.prototype.reset=Fa.prototype.reset,Fa.className="MapValueSetIterator";function al(a,y){this.key=a,this.value=y,this.ll=this.va=null}al.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},al.className="KeyValuePair";function la(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}la.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},la.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)},la.prototype.Ad=function(){return this.next()},la.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},la.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},la.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},la.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},la.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},la.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},la.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},la.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ze.Object.defineProperties(la.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),la.prototype.first=la.prototype.first,la.prototype.hasNext=la.prototype.Ad,la.prototype.next=la.prototype.next,la.prototype.reset=la.prototype.reset,la.className="MapIterator";function yi(a){vo(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"&&De("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=yi.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"Map()#"+Ia(this)},wt.add=function(a,y){this._isFrozen&&xi(this,a);var x=a;Cn(a)&&(x=Fs(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new al(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},wt.set=function(a,y){return this.add(a,y)},wt.addAll=function(a){if(a===null)return this;if(Ri(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof yi)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},wt.first=function(){return this.ea},yi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},yi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},yi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},yi.prototype.map=function(a){for(var y=new yi,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},yi.prototype.filter=function(a){for(var y=new yi,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},wt=yi.prototype,wt.contains=function(a){var y=a;return Cn(a)&&(y=Ia(a),y===void 0)?!1:this.Tb[y]!==void 0},wt.has=function(a){return this.contains(a)},wt.I=function(a){var y=a;return Cn(a)&&(y=Ia(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},wt.get=function(a){return this.I(a)},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&xi(this,a);var y=a;if(Cn(a)&&(y=Ia(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},wt.delete=function(a){return this.remove(a)},wt.clear=function(){this._isFrozen&&xi(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()},yi.prototype.copy=function(){var a=new yi,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},yi.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new al(b.key,b.value),x++}return y},yi.prototype.Lf=function(){return new Fo(this)},Ze.Object.defineProperties(yi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return To;var a=this.Sa;return a!==null?(a.reset(),a):new la(this)}},iteratorKeys:{get:function(){return 0>=this.count?To:new Ca(this)}},iteratorValues:{get:function(){if(0>=this.count)return To;var a=this.jf;return a!==null?(a.reset(),a):new Fa(this)}}}),yi.prototype.toKeySet=yi.prototype.Lf,yi.prototype.toArray=yi.prototype.Fa,yi.prototype.clear=yi.prototype.clear,yi.prototype.delete=yi.prototype.delete,yi.prototype.remove=yi.prototype.remove,yi.prototype.get=yi.prototype.get,yi.prototype.getValue=yi.prototype.I,yi.prototype.has=yi.prototype.has,yi.prototype.contains=yi.prototype.contains,yi.prototype.first=yi.prototype.first,yi.prototype.addAll=yi.prototype.addAll,yi.prototype.set=yi.prototype.set,yi.prototype.add=yi.prototype.add,yi.prototype.thaw=yi.prototype.ka,yi.prototype.freeze=yi.prototype.freeze,yi.className="Map";function Qt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):De("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var os,uu,hu,Ys,cu;Qt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Qt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Qt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Qt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Qt.prototype.copy=function(){var a=new Qt;return a.x=this.x,a.y=this.y,a},wt=Qt.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this};function tl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Qt(x,b)}return new Qt}function Mh(a){return a.x.toString()+" "+a.y.toString()}wt.toString=function(){return"Point("+this.x+","+this.y+")"},wt.D=function(a){return a instanceof Qt?this.x===a.x&&this.y===a.y:!1},wt.hi=function(a,y){return this.x===a&&this.y===y},wt.Xa=function(a){return xe.B(this.x,a.x)&&xe.B(this.y,a.y)},wt.add=function(a){return this.x+=a.x,this.y+=a.y,this},wt.re=function(a){return this.x-=a.x,this.y-=a.y,this},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},Qt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},wt=Qt.prototype,wt.scale=function(a,y){return this.x*=a,this.y*=y,this},wt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},wt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},wt.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},wt.ab=function(a){return Cu(a.x-this.x,a.y-this.y)},wt.direction=function(a,y){return Cu(a-this.x,y-this.y)};function Cu(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}wt.Ry=function(a,y){return xe.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},wt.fA=function(a,y,x,E){return xe.qh(a,y,x,E,this.x,this.y,this),this},wt.gA=function(a,y){return xe.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},wt.uA=function(a,y,x,E){return xe.No(this.x,this.y,a,y,x,E,this),this},wt.vA=function(a,y){return xe.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},wt.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},wt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},wt.transform=function(a){return a.Ga(this),this};function Ma(a,y){return y.Cd(a),a}function Ja(a,y,x,E,b,z){var tt=b-x,rt=z-E,at=tt*tt+rt*rt;x-=a,E-=y;var st=-x*tt-E*rt;return 0>=st||st>=at?(tt=b-a,rt=z-y,Math.min(x*x+E*E,tt*tt+rt*rt)):(a=tt*E-rt*x,a*a/at)}function cr(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Xi(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Qt.alloc=function(){var a=Rr.pop();return a===void 0?new Qt:a},Qt.allocAt=function(a,y){var x=Rr.pop();return x===void 0?new Qt(a,y):(x.x=a,x.y=y,x)},Qt.free=function(a){Rr.push(a)},Qt.prototype.isReal=Qt.prototype.w,Qt.prototype.setSpot=Qt.prototype.yi,Qt.prototype.setRectSpot=Qt.prototype.xi,Qt.prototype.snapToGridPoint=Qt.prototype.vA,Qt.prototype.snapToGrid=Qt.prototype.uA,Qt.prototype.projectOntoLineSegmentPoint=Qt.prototype.gA,Qt.prototype.projectOntoLineSegment=Qt.prototype.fA,Qt.intersectingLineSegments=function(a,y,x,E,b,z,tt,rt){return xe.Rl(a,y,x,E,b,z,tt,rt)},Qt.prototype.compareWithLineSegmentPoint=Qt.prototype.Ry,Qt.compareWithLineSegment=function(a,y,x,E,b,z){return xe.Fl(a,y,x,E,b,z)},Qt.prototype.direction=Qt.prototype.direction,Qt.prototype.directionPoint=Qt.prototype.ab,Qt.prototype.normalize=Qt.prototype.normalize,Qt.prototype.distanceSquared=Qt.prototype.zd,Qt.prototype.distanceSquaredPoint=Qt.prototype.Bf,Qt.prototype.scale=Qt.prototype.scale,Qt.prototype.rotate=Qt.prototype.rotate,Qt.prototype.offset=Qt.prototype.offset,Qt.prototype.subtract=Qt.prototype.re,Qt.prototype.add=Qt.prototype.add,Qt.prototype.equalsApprox=Qt.prototype.Xa,Qt.prototype.equalTo=Qt.prototype.hi,Qt.prototype.equals=Qt.prototype.D,Qt.prototype.set=Qt.prototype.set,Qt.prototype.setTo=Qt.prototype.sg;var Rr=[];Qt.className="Point",Qt.parse=tl,Qt.stringify=Mh,Qt.distanceLineSegmentSquared=Ja,Qt.distanceSquared=cr,Qt.direction=Xi,Qt.Origin=os=new Qt(0,0).ja(),Qt.InfiniteTopLeft=uu=new Qt(-1/0,-1/0).ja(),Qt.InfiniteBottomRight=hu=new Qt(1/0,1/0).ja(),Qt.SixPoint=Ys=new Qt(6,6).ja(),Qt.NoPoint=cu=new Qt(NaN,NaN).ja(),Qt.parse=tl,Qt.stringify=Mh,Qt.distanceLineSegmentSquared=Ja,Qt.distanceSquared=cr,Qt.direction=Xi;function un(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):De("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var vr,oo,za,ka,Na,Ws,xl;un.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.h=function(a,y){return this.width=a,this.height=y,this},un.prototype.sg=function(a,y){return this.width=a,this.height=y,this},un.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},un.prototype.copy=function(){var a=new un;return a.width=this.width,a.height=this.height,a},wt=un.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this};function wl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new un(x,b)}return new un}function Xh(a){return a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Size("+this.width+","+this.height+")"},wt.D=function(a){return a instanceof un?this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y){return this.width===a&&this.height===y},wt.Xa=function(a){return xe.B(this.width,a.width)&&xe.B(this.height,a.height)},wt.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},wt.w=function(){return isFinite(this.width)&&isFinite(this.height)},un.alloc=function(){var a=fh.pop();return a===void 0?new un:a},un.free=function(a){fh.push(a)},un.prototype.isReal=un.prototype.w,un.prototype.inflate=un.prototype.Bc,un.prototype.equalsApprox=un.prototype.Xa,un.prototype.equalTo=un.prototype.hi,un.prototype.equals=un.prototype.D,un.prototype.set=un.prototype.set,un.prototype.setTo=un.prototype.sg;var fh=[];un.className="Size",un.parse=wl,un.stringify=Xh,un.ZeroSize=vr=new un(0,0).ja(),un.OneSize=oo=new un(1,1).ja(),un.SixSize=za=new un(6,6).ja(),un.EightSize=ka=new un(8,8).ja(),un.TenSize=Na=new un(10,10).ja(),un.InfiniteSize=Ws=new un(1/0,1/0).ja(),un.NoSize=xl=new un(NaN,NaN).ja(),un.parse=wl,un.stringify=Xh;function Xe(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Qt?(x=a.x,a=a.y,y instanceof Qt?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof un?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):De("Incorrect second argument supplied to Rect constructor "+y)):De("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}wt=Xe.prototype,wt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function bl(a,y,x){a.width=y,a.height=x}wt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},wt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.dd=function(a){return this.x=a.x,this.y=a.y,this},wt.tA=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.copy=function(){var a=new Xe;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},wt=Xe.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this};function Au(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new Xe(x,b,z,tt)}return new Xe}function kh(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},wt.D=function(a){return a instanceof Xe?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},wt.Xa=function(a){return xe.B(this.x,a.x)&&xe.B(this.y,a.y)&&xe.B(this.width,a.width)&&xe.B(this.height,a.height)};function as(a,y){return xe.$(a.x,y.x)&&xe.$(a.y,y.y)&&xe.$(a.width,y.width)&&xe.$(a.height,y.height)}wt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},wt.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},wt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},wt.Bc=function(a,y){return bh(this,y,a,y,a)},wt.Co=function(a){return bh(this,a.top,a.right,a.bottom,a.left)},wt.Fv=function(a){return bh(this,-a.top,-a.right,-a.bottom,-a.left)},wt.Hz=function(a,y,x,E){return bh(this,a,y,x,E)};function bh(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}wt.Ex=function(a){return Fh(this,a.x,a.y,a.width,a.height)},wt.Uu=function(a,y,x,E){return Fh(this,a,y,x,E)};function Fh(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}wt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},wt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function Jh(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}wt.Ye=function(a){return ja(this,a.x,a.y,0,0)},wt.ed=function(a){return ja(this,a.x,a.y,a.width,a.height)},wt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),ja(this,a,y,x,E)};function ja(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}wt.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,E,b,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=b&&b+tt<=a+x&&y<=z&&z+rt<=y+E}function eo(a,y,x,E,b,z,tt,rt){return a>tt+b||b>x+a?!1:!(y>rt+z||z>E+y)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},wt.Mz=function(){return this.width===0&&this.height===0},Xe.alloc=function(){var a=ps.pop();return a===void 0?new Xe:a},Xe.allocAt=function(a,y,x,E){var b=ps.pop();return b===void 0?new Xe(a,y,x,E):b.h(a,y,x,E)},Xe.free=function(a){ps.push(a)},Ze.Object.defineProperties(Xe.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 Qt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new un(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Qt(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}}}),Xe.prototype.isEmpty=Xe.prototype.Mz,Xe.prototype.isReal=Xe.prototype.w,Xe.intersectsLineSegment=function(a,y,x,E,b,z,tt,rt){return xe.Fx(a,y,x,E,b,z,tt,rt)},Xe.prototype.setSpot=Xe.prototype.yi,Xe.prototype.union=Xe.prototype.Kv,Xe.prototype.unionRect=Xe.prototype.ed,Xe.prototype.unionPoint=Xe.prototype.Ye,Xe.prototype.intersects=Xe.prototype.Vu,Xe.prototype.intersectsRect=Xe.prototype.Yc,Xe.prototype.intersect=Xe.prototype.Uu,Xe.prototype.intersectRect=Xe.prototype.Ex,Xe.prototype.grow=Xe.prototype.Hz,Xe.prototype.subtractMargin=Xe.prototype.Fv,Xe.prototype.addMargin=Xe.prototype.Co,Xe.prototype.inflate=Xe.prototype.Bc,Xe.prototype.offset=Xe.prototype.offset,Xe.prototype.contains=Xe.prototype.contains,Xe.prototype.containsRect=Xe.prototype.Re,Xe.prototype.containsPoint=Xe.prototype.ca,Xe.prototype.equalsApprox=Xe.prototype.Xa,Xe.prototype.equalTo=Xe.prototype.hi,Xe.prototype.equals=Xe.prototype.D,Xe.prototype.setSize=Xe.prototype.tA,Xe.prototype.setPoint=Xe.prototype.dd,Xe.prototype.set=Xe.prototype.set,Xe.prototype.setTo=Xe.prototype.sg;var Oo=null,Wa=null,ps=[];Xe.className="Rect",Xe.parse=Au,Xe.stringify=kh,Xe.contains=Ps,Xe.intersects=eo,Xe.ZeroRect=Oo=new Xe(0,0,0,0).ja(),Xe.NoRect=Wa=new Xe(NaN,NaN,NaN,NaN).ja(),Xe.parse=Au,Xe.stringify=kh,Xe.contains=Ps,Xe.intersects=eo;function $i(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):De("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}$i.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},$i.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},$i.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},$i.prototype.copy=function(){var a=new $i;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},wt=$i.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this};function ad(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new $i;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new $i(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new $i(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new $i(x,b):new $i(x,b,z,tt)}return new $i}function Qh(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}wt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},wt.D=function(a){return a instanceof $i?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},wt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},wt.Xa=function(a){return xe.B(this.top,a.top)&&xe.B(this.right,a.right)&&xe.B(this.bottom,a.bottom)&&xe.B(this.left,a.left)},wt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},$i.alloc=function(){var a=_h.pop();return a===void 0?new $i:a},$i.free=function(a){_h.push(a)},$i.prototype.isReal=$i.prototype.w,$i.prototype.equalsApprox=$i.prototype.Xa,$i.prototype.equalTo=$i.prototype.hi,$i.prototype.equals=$i.prototype.D,$i.prototype.set=$i.prototype.set,$i.prototype.setTo=$i.prototype.sg;var Fl=null,sd=null,_h=[];$i.className="Margin",$i.parse=ad,$i.stringify=Qh,$i.ZeroMargin=Fl=new $i(0,0,0,0).ja(),$i.TwoMargin=sd=new $i(2,2,2,2).ja(),$i.parse=ad,$i.stringify=Qh;function wi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var ms,bs,_u,Rc,Ru,no,qu,ml,vl,yl,qh,$u,sl,Iu,ld,sf,Fd,lf,Nh,du,$h,zu,ud,Nd,uf,Is,ag,hf,hd,vc,Pl,ll,Hs,el,cd,tu;wi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},wi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wi.prototype.copy=function(){var a=new wi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},wt=wi.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this};function Cs(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function gh(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ms;if(a==="TopLeft")return bs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return _u;if(a==="TopRight")return Rc;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ru;if(a==="Center")return no;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return qu;if(a==="BottomLeft")return ml;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return vl;if(a==="BottomRight")return yl;if(a==="TopSide")return qh;if(a==="LeftSide")return $u;if(a==="RightSide")return sl;if(a==="BottomSide")return Iu;if(a==="TopBottomSides")return ld;if(a==="LeftRightSides")return sf;if(a==="TopLeftSides")return Fd;if(a==="TopRightSides")return lf;if(a==="BottomLeftSides")return Nh;if(a==="BottomRightSides")return du;if(a==="NotTopSide")return $h;if(a==="NotLeftSide")return zu;if(a==="NotRightSide")return ud;if(a==="NotBottomSide")return Nd;if(a==="AllSides")return uf;if(a==="Default")return Is;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(tt=parseFloat(E)),new wi(x,b,z,tt)}return new wi}function Ic(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}wt.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(ms)?"None":this.D(bs)?"TopLeft":this.D(_u)?"Top":this.D(Rc)?"TopRight":this.D(Ru)?"Left":this.D(no)?"Center":this.D(qu)?"Right":this.D(ml)?"BottomLeft":this.D(vl)?"Bottom":this.D(yl)?"BottomRight":this.D(qh)?"TopSide":this.D($u)?"LeftSide":this.D(sl)?"RightSide":this.D(Iu)?"BottomSide":this.D(ld)?"TopBottomSides":this.D(sf)?"LeftRightSides":this.D(Fd)?"TopLeftSides":this.D(lf)?"TopRightSides":this.D(Nh)?"BottomLeftSides":this.D(du)?"BottomRightSides":this.D($h)?"NotTopSide":this.D(zu)?"NotLeftSide":this.D(ud)?"NotRightSide":this.D(Nd)?"NotBottomSide":this.D(uf)?"AllSides":this.D(Is)?"Default":"None"},wt.D=function(a){return a instanceof wi?(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},wt.gv=function(){return new wi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},wt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ag))a=$u;else if(a.D(hf))a=sl;else if(a.D(hd))a=qh;else if(a.D(vc))a=Iu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},wt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},wt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},wt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},wt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},wt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},wi.alloc=function(){var a=Bd.pop();return a===void 0?new wi:a},wi.free=function(a){Bd.push(a)},wi.prototype.isDefault=wi.prototype.Xb,wi.prototype.isNone=wi.prototype.ys,wi.prototype.isSide=wi.prototype.$c,wi.prototype.isNoSpot=wi.prototype.Mc,wi.prototype.isSpot=wi.prototype.sb,wi.prototype.includesSide=wi.prototype.Hf,wi.prototype.opposite=wi.prototype.gv,wi.prototype.equals=wi.prototype.D,wi.prototype.set=wi.prototype.set,wi.prototype.setTo=wi.prototype.sg;var Bd=[];wi.className="Spot",wi.parse=gh,wi.stringify=Ic,wi.None=ms=Cs(new wi(0,0,0,0),0).ja(),wi.Default=Is=Cs(new wi(0,0,-1,0),-1).ja(),wi.TopLeft=bs=new wi(0,0,0,0).ja(),wi.TopCenter=_u=new wi(.5,0,0,0).ja(),wi.TopRight=Rc=new wi(1,0,0,0).ja(),wi.LeftCenter=Ru=new wi(0,.5,0,0).ja(),wi.Center=no=new wi(.5,.5,0,0).ja(),wi.RightCenter=qu=new wi(1,.5,0,0).ja(),wi.BottomLeft=ml=new wi(0,1,0,0).ja(),wi.BottomCenter=vl=new wi(.5,1,0,0).ja(),wi.BottomRight=yl=new wi(1,1,0,0).ja(),wi.MiddleTop=Pl=_u,wi.MiddleLeft=ll=Ru,wi.MiddleRight=Hs=qu,wi.MiddleBottom=el=vl,wi.Top=hd=_u,wi.Left=ag=Ru,wi.Right=hf=qu,wi.Bottom=vc=vl,wi.TopSide=qh=Cs(new wi(0,0,1,1),1).ja(),wi.LeftSide=$u=Cs(new wi(0,0,1,2),1).ja(),wi.RightSide=sl=Cs(new wi(0,0,1,4),1).ja(),wi.BottomSide=Iu=Cs(new wi(0,0,1,8),1).ja(),wi.TopBottomSides=ld=Cs(new wi(0,0,1,9),1).ja(),wi.LeftRightSides=sf=Cs(new wi(0,0,1,6),1).ja(),wi.TopLeftSides=Fd=Cs(new wi(0,0,1,3),1).ja(),wi.TopRightSides=lf=Cs(new wi(0,0,1,5),1).ja(),wi.BottomLeftSides=Nh=Cs(new wi(0,0,1,10),1).ja(),wi.BottomRightSides=du=Cs(new wi(0,0,1,12),1).ja(),wi.NotTopSide=$h=Cs(new wi(0,0,1,14),1).ja(),wi.NotLeftSide=zu=Cs(new wi(0,0,1,13),1).ja(),wi.NotRightSide=ud=Cs(new wi(0,0,1,11),1).ja(),wi.NotBottomSide=Nd=Cs(new wi(0,0,1,7),1).ja(),wi.AllSides=uf=Cs(new wi(0,0,1,15),1).ja(),cd=new wi(.156,.156).ja(),tu=new wi(.844,.844).ja(),wi.parse=gh,wi.stringify=Ic;function rr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}rr.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},rr.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},rr.prototype.copy=function(){var a=new rr;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},rr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},rr.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},rr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},rr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},rr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},rr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},rr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},rr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},wt=rr.prototype,wt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},wt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},wt.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)},wt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,at=this.m22,st=this.dx,ut=this.dy,ft=y*z+x*rt+st,vt=y*tt+x*at+ut,xt=E*z+x*rt+st,Pt=E*tt+x*at+ut;return x=y*z+b*rt+st,y=y*tt+b*at+ut,z=E*z+b*rt+st,E=E*tt+b*at+ut,b=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Pt),vt=Math.max(vt,Pt),b=Math.min(b,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),xt=Math.min(xt,E),vt=Math.max(vt,E),a.h(b,xt,ft-b,vt-xt),a},rr.alloc=function(){var a=cf.pop();return a===void 0?new rr:a},rr.free=function(a){cf.push(a)},rr.prototype.transformRect=rr.prototype.pp,rr.prototype.transformPoint=rr.prototype.Ga,rr.prototype.scale=rr.prototype.scale,rr.prototype.translate=rr.prototype.translate,rr.prototype.rotate=rr.prototype.rotate,rr.prototype.invert=rr.prototype.Vj,rr.prototype.multiplyInverted=rr.prototype.bv,rr.prototype.multiply=rr.prototype.multiply,rr.prototype.reset=rr.prototype.reset,rr.prototype.isIdentity=rr.prototype.ws,rr.prototype.equals=rr.prototype.D,rr.prototype.setTransform=rr.prototype.setTransform,rr.prototype.set=rr.prototype.set;var cf=[];rr.className="Transform",rr.xF="54a702f3e53909c447824c6706603faf4c";var xe={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=xe.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);xe.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,tt){if(0>=b&&(b=1e-6),a<x)var rt=a,at=x;else rt=x,at=a;if(y<E)var st=y,ut=E;else st=E,ut=y;if(a===x)return st<=tt&&tt<=ut&&a-b<=z&&z<=a+b;if(y===E)return rt<=z&&z<=at&&y-b<=tt&&tt<=y+b;if(at+=b,rt-=b,rt<=z&&z<=at&&(ut+=b,st-=b,st<=tt&&tt<=ut))if(at-rt>ut-st)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,rt,at,st,ut,ft){if(xe.Yb(a,y,tt,rt,ft,x,E)&&xe.Yb(a,y,tt,rt,ft,b,z))return xe.Yb(a,y,tt,rt,ft,st,ut);var vt=(a+x)/2,xt=(y+E)/2,Pt=(x+b)/2,bt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(vt+Pt)/2,x=(xt+bt)/2,Pt=(Pt+b)/2,bt=(bt+z)/2;var Yt=(E+Pt)/2,Wt=(x+bt)/2;return xe.cs(a,y,vt,xt,E,x,Yt,Wt,at,st,ut,ft)||xe.cs(Yt,Wt,Pt,bt,b,z,tt,rt,at,st,ut,ft)},ax:function(a,y,x,E,b,z,tt,rt,at){var st=(x+b)/2,ut=(E+z)/2;return at.h((((a+x)/2+st)/2+(st+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+rt)/2)/2)/2),at},My:function(a,y,x,E,b,z,tt,rt){var at=(x+b)/2,st=(E+z)/2;return Xi(((a+x)/2+at)/2,((y+E)/2+st)/2,(at+(b+tt)/2)/2,(st+(z+rt)/2)/2)},Dl:function(a,y,x,E,b,z,tt,rt,at,st){if(xe.Yb(a,y,tt,rt,at,x,E)&&xe.Yb(a,y,tt,rt,at,b,z))ja(st,a,y,0,0),ja(st,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,bt=(x+xt)/2;xe.Dl(a,y,ut,ft,E,x,Pt,bt,at,st),xe.Dl(Pt,bt,vt,xt,b,z,tt,rt,at,st)}return st},Qe:function(a,y,x,E,b,z,tt,rt,at,st){if(xe.Yb(a,y,tt,rt,at,x,E)&&xe.Yb(a,y,tt,rt,at,b,z))st.length===0&&(st.push(a),st.push(y)),st.push(tt),st.push(rt);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,bt=(x+xt)/2;xe.Qe(a,y,ut,ft,E,x,Pt,bt,at,st),xe.Qe(Pt,bt,vt,xt,b,z,tt,rt,at,st)}return st},jv:function(a,y,x,E,b,z,tt,rt,at,st){if(xe.Yb(a,y,b,z,st,x,E))return xe.Yb(a,y,b,z,st,rt,at);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ut+x)/2,xt=(ft+E)/2;return xe.jv(a,y,ut,ft,vt,xt,tt,rt,at,st)||xe.jv(vt,xt,x,E,b,z,tt,rt,at,st)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,rt){if(xe.Yb(a,y,b,z,tt,x,E))ja(rt,a,y,0,0),ja(rt,b,z,0,0);else{var at=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(at+x)/2,ft=(st+E)/2;xe.iv(a,y,at,st,ut,ft,tt,rt),xe.iv(ut,ft,x,E,b,z,tt,rt)}return rt},ep:function(a,y,x,E,b,z,tt,rt){if(xe.Yb(a,y,b,z,tt,x,E))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(b),rt.push(z);else{var at=(a+x)/2,st=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(at+x)/2,ft=(st+E)/2;xe.ep(a,y,at,st,ut,ft,tt,rt),xe.ep(ut,ft,x,E,b,z,tt,rt)}return rt},Eo:function(a,y,x,E,b,z,tt,rt,at,st,ut,ft,vt,xt){if(xe.Yb(a,y,tt,rt,vt,x,E)&&xe.Yb(a,y,tt,rt,vt,b,z))return!xe.Rl(a,y,tt,rt,at,st,ut,ft)||(vt=(a-tt)*(st-ft)-(y-rt)*(at-ut),vt===0)?!1:(xt.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 Pt=(a+x)/2,bt=(y+E)/2,Yt=(x+b)/2,Wt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Pt+Yt)/2,x=(bt+Wt)/2,Yt=(Yt+b)/2,Wt=(Wt+z)/2;var te=(E+Yt)/2,ne=(x+Wt)/2,oe=1/0,me=!1,Me=0,zn=0;return xe.Eo(a,y,Pt,bt,E,x,te,ne,at,st,ut,ft,vt,xt)&&(a=(xt.x-at)*(xt.x-at)+(xt.y-st)*(xt.y-st),a<oe&&(oe=a,me=!0,Me=xt.x,zn=xt.y)),xe.Eo(te,ne,Yt,Wt,b,z,tt,rt,at,st,ut,ft,vt,xt)&&(xt.x-at)*(xt.x-at)+(xt.y-st)*(xt.y-st)<oe&&(me=!0,Me=xt.x,zn=xt.y),me&&(xt.x=Me,xt.y=zn),me},Fo:function(a,y,x,E,b,z,tt,rt,at,st,ut,ft,vt){var xt=0;if(xe.Yb(a,y,tt,rt,vt,x,E)&&xe.Yb(a,y,tt,rt,vt,b,z)){if(vt=(a-tt)*(st-ft)-(y-rt)*(at-ut),vt===0)return xt;var Pt=((a*rt-y*tt)*(at-ut)-(a-tt)*(at*ft-st*ut))/vt,bt=((a*rt-y*tt)*(st-ft)-(y-rt)*(at*ft-st*ut))/vt;if(Pt>=ut)return xt;if((at>ut?at-ut:ut-at)<(st>ft?st-ft:ft-st)){if(y<rt?(at=y,a=rt):(at=rt,a=y),bt<at||bt>a)return xt}else if(a<tt?(at=a,a=tt):at=tt,Pt<at||Pt>a)return xt;0<vt?xt++:0>vt&&xt--}else{Pt=(a+x)/2,bt=(y+E)/2;var Yt=(x+b)/2,Wt=(E+z)/2;b=(b+tt)/2,z=(z+rt)/2,E=(Pt+Yt)/2,x=(bt+Wt)/2,Yt=(Yt+b)/2,Wt=(Wt+z)/2;var te=(E+Yt)/2,ne=(x+Wt)/2;xt+=xe.Fo(a,y,Pt,bt,E,x,te,ne,at,st,ut,ft,vt),xt+=xe.Fo(te,ne,Yt,Wt,b,z,tt,rt,at,st,ut,ft,vt)}return xt},qh:function(a,y,x,E,b,z,tt){return xe.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):xe.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(tt.h(E,y),!1):b>a?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005<b?(tt.h(x,E),!1):(tt.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,tt,rt,at){return xe.B(a,x)&&xe.B(y,E)?(at.h(a,y),!1):xe.$(b,tt)?xe.$(a,x)?(xe.qh(a,y,x,E,b,z,at),!1):xe.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,at):(rt=(rt-z)/(tt-b),xe.$(a,x)?(x=rt*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(at.h(a,b),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(tt=(E-y)/(x-a),xe.$(rt,tt)?(xe.qh(a,y,x,E,b,z,at),!1):(b=(tt*a-rt*b+z-y)/(tt-rt),xe.$(tt,0)?(a<x?(E=a,a=x):E=x,b<E?(at.h(E,y),!1):b>a?(at.h(a,y),!1):(at.h(b,y),!0)):xe.qh(a,y,x,E,b,tt*(b-a)+y,at))))},MA:function(a,y,x,E,b){return xe.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,rt,at,st){function ut(Yt,Wt){var te=(Yt-a)*(Yt-a)+(Wt-y)*(Wt-y);te<ft&&(ft=te,at.h(Yt,Wt))}var ft=1/0;ut(at.x,at.y);var vt=0,xt=0,Pt=0,bt=0;if(b<tt?(vt=b,xt=tt):(vt=tt,xt=b),z<rt?(Pt=b,bt=tt):(Pt=tt,bt=b),vt=(xt-vt)/2+st,st=(bt-Pt)/2+st,b=(b+tt)/2,z=(z+rt)/2,vt===0||st===0)return at;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return at;vt=Math.sqrt(vt),E=-st*vt+z,ut(x,st*vt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(st*st),rt=2*x*(y-x*a)/(st*st)-2*x*z/(st*st)-2*b/(vt*vt),vt=rt*rt-4*E*(2*x*a*z/(st*st)-2*y*z/(st*st)+z*z/(st*st)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(st*st)),0>vt)return at;vt=Math.sqrt(vt),st=(-rt+vt)/(2*E),ut(st,x*st-x*a+y),vt=(-rt-vt)/(2*E),ut(vt,x*vt-x*a+y)}return at},Ff:function(a,y,x,E,b,z,tt,rt,at){var st=1e21,ut=a,ft=y;if(xe.Ve(a,y,a,E,b,z,tt,rt,at)){var vt=(at.x-b)*(at.x-b)+(at.y-z)*(at.y-z);vt<st&&(st=vt,ut=at.x,ft=at.y)}return xe.Ve(x,y,x,E,b,z,tt,rt,at)&&(vt=(at.x-b)*(at.x-b)+(at.y-z)*(at.y-z),vt<st&&(st=vt,ut=at.x,ft=at.y)),xe.Ve(a,y,x,y,b,z,tt,rt,at)&&(y=(at.x-b)*(at.x-b)+(at.y-z)*(at.y-z),y<st&&(st=y,ut=at.x,ft=at.y)),xe.Ve(a,E,x,E,b,z,tt,rt,at)&&(a=(at.x-b)*(at.x-b)+(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 xe.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,rt){var at=a+x,st=y+E;return b===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=b&&b<=at&&tt<=st&&z>=y):z===rt?(b<tt?(rt=b,b=tt):rt=tt,y<=z&&z<=st&&rt<=at&&b>=a):!!(Ps(a,y,x,E,b,z)||Ps(a,y,x,E,tt,rt)||xe.Rl(a,y,at,y,b,z,tt,rt)||xe.Rl(at,y,at,st,b,z,tt,rt)||xe.Rl(at,st,a,st,b,z,tt,rt)||xe.Rl(a,st,a,y,b,z,tt,rt))},Rl:function(a,y,x,E,b,z,tt,rt){return a===x&&y===E&&b===tt&&z===rt?a===b&&y===z:0>=xe.Fl(a,y,x,E,b,z)*xe.Fl(a,y,x,E,tt,rt)&&0>=xe.Fl(b,z,tt,rt,a,y)*xe.Fl(b,z,tt,rt,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var rt=E>b?-1:1;z=[];var at=tt/2,st=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return at=st+rt*Math.min(E,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<E;)b=st+rt*Math.min(E,at),z.push(xe.Vy(x,st,b,a,y)),E-=Math.abs(b-st),st=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),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),[E+a*Math.cos(y),b+a*Math.sin(y),E+rt*z-tt*st,b+rt*st+tt*z,E+rt*z-at*st,b+rt*st+at*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,tt){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var rt=x;return x+b-a<b/2&&(rt=x+b),a=E,E+z-y<z/2&&(a=E+z),tt.h(rt,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var tt=1,rt=0;else tt=0,rt=1;var at=tt===0?a:y,st=tt===0?x:E;return(tt===0?b:z)&&(st=-st),tt=rt,x=tt===0?x:E,(tt===0?b:z)&&(x=-x),xe.az(at,tt===0?a:y,st,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var tt=y*E,rt=-z+tt,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+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)at=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new ir,um:new ir,Mf:new ir,Nf:0,vm:100};xe.za=xe.AA;function kn(a){vo(this),this.l=2,a===void 0&&(a=kn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===kn.o?this.ee=new Ln:(kn.V===null&&(kn.V=new Ln().freeze()),this.ee=kn.V),this.aq=this.ee.Ja,this.Ip=new Xe().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=bs,this.gg=yl,this.Rk=this.Sk=NaN,this.Uf=_e}kn.prototype.copy=function(){var a=new kn;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===kn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},kn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},kn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==kn.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},kn.prototype.ka=function(){if(Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==kn.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},kn.prototype.Xa=function(a){if(!(a instanceof kn))return!1;if(this.type!==a.type)return this.type===kn.j&&a.type===kn.o?Td(this,a):a.type===kn.j&&this.type===kn.o?Td(a,this):!1;if(this.type===kn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return xe.B(this.startX,a.startX)&&xe.B(this.startY,a.startY)&&xe.B(this.endX,a.endX)&&xe.B(this.endY,a.endY)};function Td(a,y){return a.type!==kn.j||y.type!==kn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&xe.B(a.startX,y.startX)&&xe.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Ho&&xe.B(a.endX,y.endX)&&xe.B(a.endY,y.endY))))}kn.ia=function(a){return a.toString()},kn.prototype.qb=function(a){a.classType===kn&&(this.type=a)},kn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case kn.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 kn.u:var y=new Xe(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 kn.F:if(y=new Xe(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 kn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},kn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},kn.parse=function(a,y){function x(){return bt>=oe-1?!0:st[bt+1].match(me)!==null}function E(){return bt++,st[bt]}function b(Gi){var Wi=parseFloat(E()),$r=parseFloat(E());Yt===Yt.toLowerCase()&&(Wi=ne.x+Wi,$r=ne.y+$r),Gi.h(Wi,$r)}function z(){return b(ne),ne}function tt(){return b(te),te}function rt(){var Gi=Wt.toLowerCase();return Gi!=="c"&&Gi!=="s"&&Gi!=="q"&&Gi!=="t"?ne:new Qt(2*ne.x-te.x,2*ne.y-te.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=ki();for(var ft="",vt=!1,xt=0;xt<ut.length;xt++){var Pt=ut[xt];Pt!=="."||vt?Pt==="."?(at.push(ft),ft="."):ft+=Pt:(vt=!0,ft+=Pt)}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,Bi(at)}}var bt=-1,Yt="",Wt="";at=new Qt(0,0);var te=new Qt(0,0),ne=new Qt(0,0),oe=st.length;a=FS(null),vt=ft=ut=!1,xt=!0,Pt=null;for(var me=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(bt>=oe-1);)if(Wt=Yt,Yt=E(),Yt!=="")switch(Yt.toUpperCase()){case"X":xt=!0,ft=ut=!1;break;case"M":for(Pt=z(),a.mc===null||xt===!0?(Kg(a,Pt.x,Pt.y,ut,!ft,vt),xt=!1):a.moveTo(Pt.x,Pt.y),at.assign(ne);!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"L":for(;!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"H":for(;!x();)ne=new Qt((Yt===Yt.toLowerCase()?ne.x:0)+parseFloat(E()),ne.y),a.lineTo(ne.x,ne.y);break;case"V":for(;!x();)ne=new Qt(ne.x,(Yt===Yt.toLowerCase()?ne.y:0)+parseFloat(E())),a.lineTo(ne.x,ne.y);break;case"C":for(;!x();){Pt=new Qt,b(Pt);var Me=tt(),zn=z();Gd(a,Pt.x,Pt.y,Me.x,Me.y,zn.x,zn.y)}break;case"S":for(;!x();)Pt=rt(),Me=tt(),zn=z(),Gd(a,Pt.x,Pt.y,Me.x,Me.y,zn.x,zn.y);break;case"Q":for(;!x();)Pt=tt(),Me=z(),Gm(a,Pt.x,Pt.y,Me.x,Me.y);break;case"T":for(;!x();)te=Pt=rt(),Me=z(),Gm(a,Pt.x,Pt.y,Me.x,Me.y);break;case"B":for(;!x();){Pt=parseFloat(E()),Me=parseFloat(E()),zn=parseFloat(E());var li=parseFloat(E()),_n=parseFloat(E()),An=_n,an=!1;x()||(An=parseFloat(E()),x()||(an=parseFloat(E())!==0)),Yt===Yt.toLowerCase()&&(zn+=ne.x,li+=ne.y),a.arcTo(Pt,Me,zn,li,_n,An,an)}break;case"A":for(;!x();)Pt=Math.abs(parseFloat(E())),Me=Math.abs(parseFloat(E())),zn=parseFloat(E()),_n=li=!1,an=An=0,An=E(),An.length===1?(li=!!parseFloat(An),_n=!!parseFloat(E()),An=parseFloat(E())):An.length===2?(li=!!parseFloat(An[0]),_n=!!parseFloat(An[1]),An=parseFloat(E())):(li=!!parseFloat(An[0]),_n=!!parseFloat(An[1]),An=parseFloat(An.slice(2))),an=parseFloat(E()),Yt===Yt.toLowerCase()&&(An=ne.x+An,an=ne.y+an),ne.h(An,an),Px(a,Pt,Me,zn,li,_n,An,an);break;case"Z":wx(a),ne.assign(at);break;case"F":for(Pt="",Me=1;st[bt+Me];)if(st[bt+Me]==="0")vt=!0,Me++;else if(st[bt+Me].match(/[Uu]/)!==null)Me++;else if(st[bt+Me].match(me)===null)Me++;else{Pt=st[bt+Me];break}Pt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Pt="",Me=1;st[bt+Me];)if(st[bt+Me].match(/[Ff]/)!==null)Me++;else if(st[bt+Me].match(me)===null)Me++;else{Pt=st[bt+Me];break}Pt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(at=a.os,Km=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},kn.Ha=function(a,y){for(var x=a.length,E=Qt.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}Qt.free(E)},kn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===kn.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},kn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===kn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var tt=E[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),df(this,a,!1),ja(a,0,0,0,0),a.freeze()},kn.prototype.ix=function(){var a=new Xe;return df(this,a,!0),a};function df(a,y,x){switch(a.type){case kn.j:case kn.u:case kn.F:x?y.h(a.od,a.pd,0,0):ja(y,a.od,a.pd,0,0),ja(y,a.Dc,a.Ec,0,0);break;case kn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):ja(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 Ho:case $a:at=ft.endX,st=ft.endY,ja(y,at,st,0,0);break;case Ns:xe.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 Gl:xe.iv(at,st,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),at=ft.endX,st=ft.endY;break;case Qa:case eu:var vt=ft.type===Qa?Nl(ft,z):fu(ft,z,at,st),xt=vt.length;if(xt===0){at=ft.type===Qa?ft.centerX:ft.endX,st=ft.type===Qa?ft.centerY:ft.endY,ja(y,at,st,0,0);break}ft=null;for(var Pt=0;Pt<xt;Pt++)ft=vt[Pt],xe.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:De("Unknown Segment type: "+ft.type)}}}break;default:De("Unknown Geometry type: "+a.type)}}kn.prototype.normalize=function(){this._isFrozen&&xi(this);var a=this.ix();return this.offset(-a.x,-a.y),new Qt(-a.x,-a.y)},kn.prototype.offset=function(a,y){return this._isFrozen&&xi(this),this.transform(1,0,0,1,a,y),this},kn.prototype.scale=function(a,y){return this._isFrozen&&xi(this),this.transform(a,0,0,y,0,0),this},kn.prototype.rotate=function(a,y,x){this._isFrozen&&xi(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=rr.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),rr.free(E),this},wt=kn.prototype,wt.transform=function(a,y,x,E,b,z){switch(this.type){case kn.j:case kn.u:case kn.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+b,this.pd=tt*y+rt*E+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+b,this.Ec=tt*y+rt*E+z;break;case kn.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+b,ft.startY=tt*y+rt*E+z,ft=ft.segments.s;for(var vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];switch(Pt.type){case Ho:case $a:tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case Ns:tt=Pt.point1X,rt=Pt.point1Y,Pt.point1X=tt*a+rt*x+b,Pt.point1Y=tt*y+rt*E+z,tt=Pt.point2X,rt=Pt.point2Y,Pt.point2X=tt*a+rt*x+b,Pt.point2Y=tt*y+rt*E+z,tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case Gl:tt=Pt.point1X,rt=Pt.point1Y,Pt.point1X=tt*a+rt*x+b,Pt.point1Y=tt*y+rt*E+z,tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z;break;case Qa:tt=Pt.centerX,rt=Pt.centerY,Pt.centerX=tt*a+rt*x+b,Pt.centerY=tt*y+rt*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.startAngle+=tt),0>a&&(Pt.startAngle=180-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),0>E&&(Pt.startAngle=-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY!==void 0&&(Pt.radiusY*=Math.sqrt(y*y+E*E));break;case eu:if(tt=Pt.endX,rt=Pt.endY,Pt.endX=tt*a+rt*x+b,Pt.endY=tt*y+rt*E+z,Pt.radiusX===0||Pt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.xAxisRotation+=tt),0>a&&(Pt.xAxisRotation=180-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),0>E&&(Pt.xAxisRotation=-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY*=Math.sqrt(y*y+E*E);break;default:De("Unknown Segment type: "+Pt.type)}}}}return this._isInvalidBounds=!0,this},wt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case kn.j:return xe.Yb(x,E,b,z,y,a.x,a.y);case kn.u:var tt=Xe.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),Xe.free(tt),a;case kn.F:tt=Math.min(x,b)-y;var rt=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case kn.o:return Bh(this,a,y,!0,!1);default:return!1}};function Bh(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,at,st,ut,ft,vt=a.figures.s,xt=vt.length,Pt=0;Pt<xt;Pt++){var bt=vt[Pt],Yt=!bt.isEvenOdd;if(bt.isFilled){if(E&&bt.ca(z,y,x))return!0;var Wt=bt.segments;at=bt.startX,st=bt.startY;for(var te=at,ne=st,oe=Wt.s,me=0;me<=Wt.length;me++){var Me=void 0;if(me!==Wt.length){Me=oe[me];var zn=Me.type;a=Me.endX,ft=Me.endY}else zn=Ho,a=te,ft=ne;switch(zn){case $a:if(te=th(z,y,tt,y,at,st,te,ne),isNaN(te))return!0;rt+=te,te=a,ne=ft;break;case Ho:if(at=th(z,y,tt,y,at,st,a,ft),isNaN(at))return!0;rt+=at;break;case Ns:ut=xe.Fo(at,st,Me.point1X,Me.point1Y,Me.point2X,Me.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case Gl:ut=xe.Fo(at,st,(at+2*Me.point1X)/3,(st+2*Me.point1Y)/3,(2*Me.point1X+a)/3,(2*Me.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case Qa:case eu:zn=Me.type===Qa?Nl(Me,bt):fu(Me,bt,at,st);var li=zn.length;if(li===0){if(at=th(z,y,tt,y,at,st,Me.type===Qa?Me.centerX:Me.endX,Me.type===Qa?Me.centerY:Me.endY),isNaN(at))return!0;rt+=at;break}Me=null;for(var _n=0;_n<li;_n++){if(Me=zn[_n],_n===0){if(ut=th(z,y,tt,y,at,st,Me[0],Me[1]),isNaN(ut))return!0;rt+=ut}ut=xe.Fo(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],tt,y,z,y,.5),rt+=ut}Me!==null&&(a=Me[6],ft=Me[7]);break;default:De("Unknown Segment type: "+Me.type)}at=a,st=ft}if(Yt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(bt.ca(z,y,b?x:x+2))return!0}return!1}function th(a,y,x,E,b,z,tt,rt){if(xe.Yb(b,z,tt,rt,.05,a,y))return NaN;var at=(a-x)*(z-rt);if(at===0)return 0;var st=((a*E-y*x)*(b-tt)-(a-x)*(b*rt-z*tt))/at;if(y=(a*E-y*x)*(z-rt)/at,st>=a)return 0;if((b>tt?b-tt:tt-b)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(b<tt){if(st<b||st>tt)return 0}else if(st<tt||st>b)return 0;return 0<at?1:-1}function yc(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}wt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Qt),this.type===kn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var at=E[rt],st=at.length;for(a=0;a<st;a++){var ut=at[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,x=x[rt],rt=x[2*a],b=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},wt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===kn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,tt=0;tt<E;tt++){var rt=x[tt],at=rt.length;for(a=0;a<at;a++){var st=rt[a];if(z+st>=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=st}}return NaN},wt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===kn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<b;rt++){var at=E[rt],st=at.length;for(a=0;a<st;a++){var ut=at[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=rt+(a-rt)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-rt)?0:1>Math.abs(b-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=b-x?0:180:180*Math.atan2(a-rt,b-x)/Math.PI,y;tt+=ut}}return y},wt.xx=function(a){if(this.type===kn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var tt=x;E=b}else tt=b,E=x;return a<=tt?tt===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y<E?tt=y:(tt=E,E=y),z<=tt?tt===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var rt=Qt.alloc();return xe.qh(y,x,E,b,z,a,rt),a=rt.x,z=rt.y,Qt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===kn.u){tt=this.startX,rt=this.startY;var at=this.endX;if(b=this.endY,tt!==at||rt!==b){y=at-tt,x=b-rt,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),at),a=Math.min(Math.max(a,rt),b),tt=Math.abs(E-tt),at=Math.abs(E-at),rt=Math.abs(a-rt),b=Math.abs(a-b);var st=Math.min(tt,at,rt,b);if(st===rt)return E/z;if(st===at)return(y+a)/z;if(st===b)return(2*y+x-E)/z;if(st===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Qt.alloc(),b=1/0,rt=tt=0,at=y.length;for(var ut=st=0,ft=0;ft<at;ft++)for(var vt=y[ft],xt=x[ft],Pt=vt.length,bt=0;bt<Pt;bt+=2){var Yt=vt[bt],Wt=vt[bt+1];if(bt!==0){xe.qh(st,ut,Yt,Wt,a.x,a.y,E);var te=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);te<b&&(b=te,tt=rt,tt+=Math.sqrt((E.x-st)*(E.x-st)+(E.y-ut)*(E.y-ut))),rt+=xt[(bt-2)/2]}st=Yt,ut=Wt}return Qt.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Sc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===kn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===kn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===kn.F){var z=new cs;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new zr(Qa);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=Nl(tt,z),b=a.length,b===0)E.push(tt.centerX),E.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<b;rt++){var at=a[rt];xe.Qe(tt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,E),tt=at[6],z=at[7]}}y.push(E),x.push(tc(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),tt=b.startX,z=b.startY,rt=tt,at=z;for(var st=b.segments.s,ut=st.length,ft=0;ft<ut;ft++){var vt=st[ft];switch(vt.type){case $a:4<=E.length&&(y.push(E),x.push(tc(E))),E=[],E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY,rt=tt,at=z;break;case Ho:E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY;break;case Ns:xe.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case Gl:xe.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case Qa:var xt=Nl(vt,b),Pt=xt.length;if(Pt===0){E.push(vt.centerX),E.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var bt=0;bt<Pt;bt++){var Yt=xt[bt];xe.Qe(tt,z,Yt[2],Yt[3],Yt[4],Yt[5],Yt[6],Yt[7],.5,E),tt=Yt[6],z=Yt[7]}break;case eu:if(xt=fu(vt,b,tt,z),Pt=xt.length,bt=vt.endX,Yt=vt.endY,Pt===0){E.push(bt),E.push(Yt),tt=bt,z=Yt;break}for(bt=0;bt<Pt;bt++)Yt=xt[bt],xe.Qe(tt,z,Yt[2],Yt[3],Yt[4],Yt[5],Yt[6],Yt[7],.5,E),tt=Yt[6],z=Yt[7];break;default:De("Segment not of valid type: "+vt.type)}vt.isClosed&&(E.push(rt),E.push(at))}4<=E.length&&(y.push(E),x.push(tc(E)))}}}function tc(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(cr(x,E,tt,rt))),x=tt,E=rt}return y}wt.add=function(a){return this.ee.add(a),this},wt.pm=function(a,y,x,E,b,z,tt,rt){return this._isFrozen&&xi(this),this.fg=new wi(a,y,b,z).freeze(),this.gg=new wi(x,E,tt,rt).freeze(),this},Ze.Object.defineProperties(kn.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 Sc(this),this.tk}},flattenedLengths:{get:function(){return Sc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===kn.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===kn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,tt=0;tt<z;tt++)a+=b[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&xi(this,a),this.na=a,a===kn.o?this.ee=new Ln:(kn.V===null&&(kn.V=new Ln().freeze()),this.ee=kn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&xi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&xi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&xi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&xi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&xi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&xi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&xi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&xi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),kn.prototype.setSpots=kn.prototype.pm,kn.prototype.add=kn.prototype.add,kn.prototype.getFractionForPoint=kn.prototype.xx,kn.prototype.getPointAndAngleAlongPath=kn.prototype.Qu,kn.prototype.getAngleAlongPath=kn.prototype.wx,kn.prototype.getPointAlongPath=kn.prototype.Pu,kn.prototype.containsPoint=kn.prototype.ca,kn.prototype.transform=kn.prototype.transform,kn.prototype.rotate=kn.prototype.rotate,kn.prototype.scale=kn.prototype.scale,kn.prototype.offset=kn.prototype.offset,kn.prototype.normalize=kn.prototype.normalize,kn.prototype.computeBoundsWithoutOrigin=kn.prototype.ix,kn.prototype.equalsApprox=kn.prototype.Xa,kn.className="Geometry",kn.j=new We(kn,"Line",0),kn.u=new We(kn,"Rectangle",1),kn.F=new We(kn,"Ellipse",2),kn.o=new We(kn,"Path",3),kn.V=null,kn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",kn.className="Geometry",kn.stringify=kn.ia,kn.fillPath=kn.nb,kn.parse=kn.parse,kn.Line=kn.j,kn.Rectangle=kn.u,kn.Ellipse=kn.F,kn.Path=kn.o;function cs(a,y,x,E,b){vo(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Ln,this.sr=this.pl.Ja,this.fw=null}cs.prototype.copy=function(){var a=new cs;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},wt=cs.prototype,wt.Xa=function(a){if(!(a instanceof cs&&xe.B(this.startX,a.startX)&&xe.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},wt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},wt.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},wt.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},wt.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},wt.add=function(a){return this.pl.add(a),this},wt.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,tt=b,rt=this.segments.s,at=rt.length,st=0;st<at;st++){var ut=rt[st];switch(ut.type){case $a:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case Ho:if(xe.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case Ns:if(xe.cs(E,b,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case Gl:if(xe.jv(E,b,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case Qa:case eu:var ft=ut.type===Qa?Nl(ut,this):fu(ut,this,E,b),vt=ft.length,xt=ut.type===Qa?ut.centerX:ut.endX,Pt=ut.type===Qa?ut.centerY:ut.endY;if(vt===0){if(xe.Yb(E,b,xt,Pt,x,a,y))return!0;E=xt,b=Pt;break}for(xt=null,Pt=0;Pt<vt;Pt++)if(xt=ft[Pt],Pt===0&&xe.Yb(E,b,xt[0],xt[1],x,a,y)||xe.cs(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,a,y,x))return!0;xt!==null&&(E=xt[6],b=xt[7]);break;default:De("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&xe.Yb(E,b,z,tt,x,a,y))return!0}return!1},Ze.Object.defineProperties(cs.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&&xi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&xi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&xi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&xi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&xi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&xi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),cs.prototype.add=cs.prototype.add,cs.prototype.equalsApprox=cs.prototype.Xa,cs.className="PathFigure";function zr(a,y,x,E,b,z,tt,rt){vo(this),a===void 0&&(a=Ho),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===eu?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===Qa&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Qa&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}zr.prototype.copy=function(){var a=new zr;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},wt=zr.prototype,wt.Xa=function(a){if(!(a instanceof zr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case $a:case Ho:return xe.B(this.endX,a.endX)&&xe.B(this.endY,a.endY);case Ns:return xe.B(this.endX,a.endX)&&xe.B(this.endY,a.endY)&&xe.B(this.point1X,a.point1X)&&xe.B(this.point1Y,a.point1Y)&&xe.B(this.point2X,a.point2X)&&xe.B(this.point2Y,a.point2Y);case Gl:return xe.B(this.endX,a.endX)&&xe.B(this.endY,a.endY)&&xe.B(this.point1X,a.point1X)&&xe.B(this.point1Y,a.point1Y);case Qa:return xe.B(this.startAngle,a.startAngle)&&xe.B(this.sweepAngle,a.sweepAngle)&&xe.B(this.centerX,a.centerX)&&xe.B(this.centerY,a.centerY)&&xe.B(this.radiusX,a.radiusX)&&xe.B(this.radiusY,a.radiusY);case eu:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&xe.B(this.xAxisRotation,a.xAxisRotation)&&xe.B(this.endX,a.endX)&&xe.B(this.endY,a.endY)&&xe.B(this.radiusX,a.radiusX)&&xe.B(this.radiusY,a.radiusY);default:return!1}},wt.qb=function(a){a.classType===zr&&(this.type=a)},wt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case $a:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ho:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Ns: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 Gl: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 Qa: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 eu: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":"")},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.close=function(){return this.isClosed=!0,this};function Nl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=xe.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=rr.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),kn.Ha(z,tt),rr.free(tt)}for(x=z.length,E=0;E<x;E++)tt=z[E],tt[0]+=y,tt[1]+=b,tt[2]+=y,tt[3]+=b,tt[4]+=y,tt[5]+=b,tt[6]+=y,tt[7]+=b;return a.ae=z,a.ae}function fu(a,y,x,E){function b(bt,Yt,Wt,te){return(bt*te<Yt*Wt?-1:1)*Math.acos((bt*Wt+Yt*te)/(Math.sqrt(bt*bt+Yt*Yt)*Math.sqrt(Wt*Wt+te*te)))}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),xt=ft*(x-st)/2+vt*(E-ut)/2;tt=-vt*(x-st)/2+ft*(E-ut)/2;var Pt=xt*xt/(y*y)+tt*tt/(z*z);return 1<Pt&&(y*=Math.sqrt(Pt),z*=Math.sqrt(Pt)),Pt=(rt===at?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*xt*xt)/(y*y*tt*tt+z*z*xt*xt)),isNaN(Pt)&&(Pt=0),rt=Pt*y*tt/z,Pt=Pt*-z*xt/y,isNaN(rt)&&(rt=0),isNaN(Pt)&&(Pt=0),x=(x+st)/2+ft*rt-vt*Pt,E=(E+ut)/2+vt*rt+ft*Pt,ut=b(1,0,(xt-rt)/y,(tt-Pt)/z),ft=(xt-rt)/y,st=(tt-Pt)/z,xt=(-xt-rt)/y,rt=(-tt-Pt)/z,tt=b(ft,st,xt,rt),xt=(ft*xt+st*rt)/(Math.sqrt(ft*ft+st*st)*Math.sqrt(xt*xt+rt*rt)),-1>=xt?tt=Math.PI:1<=xt&&(tt=0),!at&&0<tt&&(tt-=2*Math.PI),at&&0>tt&&(tt+=2*Math.PI),at=y>z?1:y/z,xt=y>z?z/y:1,y=xe.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=rr.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(at,xt),kn.Ha(y,z),rr.free(z),a.ae=y,a.ae}Ze.Object.defineProperties(zr.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&&xi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&xi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&xi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&xi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ui(a,">= zero",zr,"radiusX"),this._isFrozen&&xi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ui(a,">= zero",zr,"radiusY"),this._isFrozen&&xi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xi(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&&xi(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&&xi(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&&xi(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&&xi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),zr.prototype.equalsApprox=zr.prototype.Xa;var $a=new We(zr,"Move",0),Ho=new We(zr,"Line",1),Ns=new We(zr,"Bezier",2),Gl=new We(zr,"QuadraticBezier",3),Qa=new We(zr,"Arc",4),eu=new We(zr,"SvgArc",4);zr.className="PathSegment",zr.Move=$a,zr.Line=Ho,zr.Bezier=Ns,zr.QuadraticBezier=Gl,zr.Arc=Qa,zr.SvgArc=eu;function Us(){this.H=null,this.xu=new Qt(0,0).freeze(),this.mt=new Qt(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}Us.prototype.copy=function(){var a=new Us;return this.clone(a)},Us.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},Us.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},Us.prototype.So=function(a,y){var x=this.diagram;return x===null||qr(x,a,y),y},Us.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(qr(x,a,y),y.assign(x.Ps(y))),y},Ze.Object.defineProperties(Us.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}}}),Us.prototype.getMultiTouchDocumentPoint=Us.prototype.Bz,Us.prototype.getMultiTouchViewPoint=Us.prototype.So,Us.className="InputEvent";function ju(){this.H=null,this.xa="",this.ar=this.Lr=null}ju.prototype.copy=function(){var a=new ju;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ju.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ze.Object.defineProperties(ju.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}}}),ju.className="DiagramEvent";function ma(){this.Fm=na,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}ma.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},ma.prototype.copy=function(){var a=new ma;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=Cn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Cn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Cn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Cn(y)&&typeof y.J=="function"?y.J():y,a},ma.prototype.qb=function(a){a.classType===ma&&(this.change=a)},ma.prototype.toString=function(){var a="";return a=this.change===Bl?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===Bl?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=to(this.object)),this.oldValue!==null&&(a+=" old: "+to(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+to(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},ma.prototype.I=function(a){return a?this.oldValue:this.newValue},ma.prototype.Dz=function(a){return a?this.oldParam:this.newParam},ma.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},ma.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},ma.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},ma.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ze.Object.defineProperties(ma.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===Bl&&(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}}}),ma.prototype.redo=ma.prototype.redo,ma.prototype.canRedo=ma.prototype.canRedo,ma.prototype.undo=ma.prototype.undo,ma.prototype.canUndo=ma.prototype.canUndo,ma.prototype.getParam=ma.prototype.Dz,ma.prototype.getValue=ma.prototype.I,ma.prototype.clear=ma.prototype.clear;var Bl=new We(ma,"Transaction",-1),na=new We(ma,"Property",0),ga=new We(ma,"Insert",1),Ka=new We(ma,"Remove",2);ma.className="ChangedEvent",ma.Transaction=Bl,ma.Property=na,ma.Insert=ga,ma.Remove=Ka;function vs(){this.o=new Ln().freeze(),this.xa="",this.j=!1}vs.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},vs.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()},vs.prototype.canUndo=function(){return this.isComplete},vs.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()}},vs.prototype.canRedo=function(){return this.isComplete},vs.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()}},vs.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new yi,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===na&&E.object){var b=y.get(E.object);b||(b=new yi,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Ze.Object.defineProperties(vs.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}}}),vs.prototype.optimize=vs.prototype.ak,vs.prototype.redo=vs.prototype.redo,vs.prototype.canRedo=vs.prototype.canRedo,vs.prototype.undo=vs.prototype.undo,vs.prototype.canUndo=vs.prototype.canUndo,vs.prototype.clear=vs.prototype.clear,vs.className="Transaction";function va(){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}va.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},va.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},va.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},wt=va.prototype,wt.Xw=function(a){this.Pt.add(a)},wt.Rx=function(a){this.Pt.remove(a)},wt.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},wt.eb=function(a){return a===void 0&&(a=""),xc(this,!0,a)},wt.Kf=function(){return xc(this,!1,"")};function xc(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Tr("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}wt.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()}},va.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},va.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){Tr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},va.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},va.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){Tr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},va.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new ma;for(E.change=Bl,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},va.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new vs);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||Tr("Change not within a transaction: "+x.toString()))}},va.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},Ze.Object.defineProperties(va.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}}}),va.prototype.handleChanged=va.prototype.Tu,va.prototype.redo=va.prototype.redo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.discardHistoryAfterIndex=va.prototype.lx,va.prototype.rollbackTransaction=va.prototype.Kf,va.prototype.commitTransaction=va.prototype.eb,va.prototype.startTransaction=va.prototype.Ea,va.prototype.removeModel=va.prototype.Rx,va.prototype.addModel=va.prototype.Xw,va.prototype.clear=va.prototype.clear,va.className="UndoManager";function Nr(){vo(this),this.H=er,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Us,this.Zr=-1}Nr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Hi(this.constructor)},Nr.prototype.updateAdornments=function(){},Nr.prototype.canStart=function(){return this.isEnabled},Nr.prototype.doStart=function(){},Nr.prototype.doActivate=function(){this.isActive=!0},Nr.prototype.doDeactivate=function(){this.isActive=!1},Nr.prototype.doStop=function(){},Nr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Nr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Nr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Nr.prototype.doMouseMove=function(){},Nr.prototype.doMouseUp=function(){this.stopTool()},Nr.prototype.doMouseWheel=function(){},Nr.prototype.canStartMultiTouch=function(){return!0},Nr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Qt.allocAt(NaN,NaN)),E=y.So(1,Qt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}Qt.free(x),Qt.free(E)},Nr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Qt.allocAt(NaN,NaN)),E=y.So(1,Qt.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new Qt((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=b,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Qt.free(x),Qt.free(E)},Nr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Nr.prototype.doKeyUp=function(){},Nr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Nr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Nr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(gs?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||(gs?y.meta:y.control)||y.shift||a.clearSelection()}},Nr.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,Th(a,E,x),E.handled};function Th(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Nr.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(E===z||E!==null&&E.rg(z)||(rt(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;E!==null&&(tt=E.mouseEnter,!(tt!==null&&(z===E||z!==null&&z.rg(E)||(tt(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},Nr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Nr.prototype.doCurrentObjectChanged=function(){},Nr.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===dd&&!y.shift||b===wc&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===dd&&y.shift||b===wc&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},Nr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Nr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Yi(function(){x.doWaitAfter(E)},a)},Nr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ze.clearTimeout(this.Zr),this.Zr=-1},Nr.prototype.doWaitAfter=function(){},Nr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Kr);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Nr.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},Ze.Object.defineProperties(Nr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof pe&&(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}}}),Nr.prototype.startTransaction=Nr.prototype.Ea,Nr.className="Tool";function ia(){Nr.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 un(2,2).ja(),this.Ha=5e3,this.ia=wc,this.u=Wu,this.Mp=this.j=null,this.zj=-1}we(ia,Nr),ia.prototype.initializeStandardTools=function(){},ia.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Kr&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ia.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Dh&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Hu){y.bubbles=!0;return}if(this.gestureBehavior===Dh)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===wc?this.mouseWheelBehavior=dd:this.mouseWheelBehavior===dd&&(this.mouseWheelBehavior=wc)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ia.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Hu){y.bubbles=!0;return}if(this.gestureBehavior===Dh)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}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)}ia.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Kr&&(y===a||y.rg(a))||this.hideToolTip()},ia.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()))},ia.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)},ia.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 Kr)||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()},ia.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Kr){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof ra&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ze.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Yi(function(){b.hideToolTip()},a)}},ia.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},ia.prototype.hideToolTip=function(){this.zj!==-1&&(ze.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Kr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ra&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ia.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},ia.prototype.doMouseWheel=function(){this.standardMouseWheel()},ia.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ia.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ia.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},ia.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},ia.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)},Ze.Object.defineProperties(ia.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 Kr?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}}}),ia.prototype.replaceStandardTool=ia.prototype.gb;var wc=new We(ia,"WheelScroll",0),dd=new We(ia,"WheelZoom",1),ff=new We(ia,"WheelNone",2),Wu=new We(ia,"GestureZoom",3),Dh=new We(ia,"GestureCancel",4),Hu=new We(ia,"GestureNone",5);ia.className="ToolManager",ia.WheelScroll=wc,ia.WheelZoom=dd,ia.WheelNone=ff,ia.GestureZoom=Wu,ia.GestureCancel=Dh,ia.GestureNone=Hu;function xa(){Nr.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 Qt(NaN,NaN),this.Fr=new Qt,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 eh;we(xa,Nr),xa.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},xa.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},xa.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,(gs?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},xa.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),Fi=null,this.isActive=!0,this.tl.set(a.position),Gt(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&&fr(a),uo(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Fi=this,Ji=this.diagram,this.doSimulatedDragOut()))};function Gt(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof En?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Ur,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}xa.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},xa.prototype.Pd=function(a){return a===void 0?new zh(os):this.isGridSnapEnabled?new zh(new Qt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new zh(a.copy())},xa.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),he(this),Er(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<eh.count){for(var y=eh,x=y.length,E=0;E<x;E++){var b=y.M(E);Qe(b),Oe(b),he(b),b.diagram.ug()}y.clear()}Qe(this),this.tl.h(NaN,NaN),Ji!==null&&(Ji.currentCursor=""),Fi=Ji=null,Oe(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Zr(a,!0)},xa.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function he(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,On(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function ve(){var a=Fi;Oe(a),Sn(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}xa.prototype.doCancel=function(){Oe(this),Sn(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},xa.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},xa.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Se(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Sn(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 yi,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof En&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Gt(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Oe(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 En&&(x.value.point=new Qt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Qe(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 nn(a,y,x){var E=a.diagram,b=a.startPoint,z=Qt.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Qt.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(fr(E),E.hk())}xa.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&fs(E,a,y,this.dragOptions,x)};function Sn(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof En&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Yd(E,-b.x,-b.y)}y.bd()}}function Gn(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ri(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=On(a,b,E),!a.isActive&&Fi===null)return;var rt=E!==null?E.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Vi)){var at=x.mouseDragOver;at!==null&&(at(b),tt=!0)}if(!a.isActive&&Fi===null||(a.doDragOver(y,E),!a.isActive&&Fi===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}xa.prototype.findDragOverObject=function(a){var y=this;return lo(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Kr||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},xa.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 On(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<b;tt++){var rt=a.Cg[tt],at=rt.mouseDragLeave;if(at!==null&&(at(y,rt,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Fi===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=ci(b);for(b=a.Cg.length,x=0;x<b&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),E=!0,!y.handled));x++);return E}function ci(a){var y=a.panel;return y!==null?y:a instanceof Ci&&!(a instanceof Vi)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Wn(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(st){return E.findValidLinkablePort(st,x)});a=Qt.alloc();var z=1/0,tt=null;for(b=b.iterator;b.next();){var rt=b.value;if(rt.part!==null){var at=rt.ga(no,a);at=y.Bf(at),at<z&&(tt=rt,z=at)}}return Qt.free(a),tt}function ri(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Wn(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,at=null;x.toNode===null&&(rt=Wn(a,x.i(x.pointsCount-1),!0),rt!==null&&(at=rt.part)),b.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!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Qr(b,tt,z,at,rt):Qr(b,null,null,null,null)}}}}xa.prototype.doDragOver=function(){};function Zn(a,y){var x=a.diagram;a.dragsLink&&ri(a,!0),he(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Si(a,b,z),z=ci(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Fi!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Kn&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Fi!==null){for(a=Xe.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Kn&&Ii(x,E,a);Xe.free(a)}}}function Si(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Vi||(x=a.mouseDrop,x!==null&&x(y))}function Ii(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof En},!0,function(b){return b instanceof En},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}xa.prototype.doDropOnto=function(){},xa.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()?(Se(this,!1),uo(a,this.copiedParts),nn(this,this.copiedParts,!1),Er(a,this.copiedParts)):this.mayMove()?(Oe(this),nn(this,this.draggedParts,!0)):this.mayDragOut()?(Se(this,!1),nn(this,this.copiedParts,!1)):Oe(this),Gn(this,a.lastInput.documentPoint))}},xa.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?(Oe(this),Se(this,!0),uo(a,this.copiedParts),nn(this,this.copiedParts,!1),Er(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Oe(this),this.mayMove()&&(nn(this,this.draggedParts,!0),Gn(this,a.lastInput.documentPoint))),this.Ym=!0,Zn(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&tr(this),a.Ya(),Er(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},xa.prototype.simulatedMouseMove=function(a,y,x){if(Fi===null)return!1;var E=Fi.diagram;x instanceof pe||(x=null);var b=Ji;return x!==b&&(b!==null&&b!==E&&(b.ug(),Fi.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Ji=x,x!==null&&x!==E&&(ve(),b=x.toolManager.findTool("Dragging"),b!==null&&(eh.contains(b)||eh.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},xa.prototype.simulatedMouseUp=function(a,y,x){if(Fi===null)return!1;var E=Ji,b=Fi.diagram;if(x===null)return Fi.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Fi.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Ji=x,E=x.toolManager.findTool("Dragging"),E!==null&&(ve(),eh.contains(E)||eh.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Qt),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=Fi,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function tr(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Kn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}xa.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(gs?!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())},xa.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())},xa.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())},xa.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},xa.prototype.Az=function(){return Fi},xa.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Fi;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},xa.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),jo(a),a.animationManager.Cc(),a=Fi,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},xa.prototype.doSimulatedDragLeave=function(){var a=Fi;a!==null&&a.doSimulatedDragOut(),this.doCancel()},xa.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Fi;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;yr(this,y.draggedParts.Lf(),!1,a.firstInput),nn(this,this.copiedParts,!1),Gn(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},xa.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Fi;if(y!==null){var x=y.diagram;if(y.Ym=!0,Oe(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),yr(this,y.draggedParts.Lf(),!0,a.lastInput),nn(this,this.copiedParts,!1);var E=new pn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Zn(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function yr(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=Xe.alloc();b=E=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<E&&(E=st),ut<b&&(b=ut),st>tt&&(tt=st),ut>rt&&(rt=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,rt-b),E=z.x+z.width/2,b=z.y+z.height/2,Xe.free(z),z=a.Fr,tt=new yi,rt=Qt.alloc(),at=y.iterator;at.next();)st=at.value,st instanceof En&&st.canCopy()&&(ut=x.I(st),ut!==null&&(ut.points=st.points,Yd(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)st=y.value,st.Zc()&&st.canCopy()&&(at=x.I(st),at!==null&&(st=st.location,rt.h(z.x-(E-st.x),z.y-(b-st.y)),at.location=rt,at.Va(),tt.add(at,a.Pd(rt))));Qt.free(rt),a.copiedParts=tt,Gt(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yd(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}xa.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},xa.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Qt},Ze.Object.defineProperties(xa.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}}}),xa.prototype.getDraggingSource=xa.prototype.Az;var Fi=null,Ji=null;xa.className="DraggingTool",eh=new Ln,ti("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ia.prototype.doCancel=function(){Fi!==null&&Fi.doCancel(),Nr.prototype.doCancel.call(this)};function ji(){Nr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new En,y=new qi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new qi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Kn,y=new qi,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 Kn,y=new qi,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 yi,this.Of=this.gj=this.Pf=null}we(ji,Nr),ji.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},ji.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=un.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,un.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=no,z=Qt.alloc(),x.location=y.ga(no,z),Qt.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},ji.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=oo,y.fromSpot=ms,y.toSpot=ms),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},ji.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},ji.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Kn){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)}},ji.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Kn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Kn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},ji.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof Kn){var at=tt.ga(no,Qt.alloc()),st=x.x-at.x,ut=x.y-at.y;Qt.free(at),at=st*st+ut*ut,at<E&&(st=this.validPortsCache.I(tt),st!==null?st&&(y=tt,E=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,E=at):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof Kn&&(x.layer===null||x.layer.allowLink))?y:null},ji.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},ji.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},ji.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},ji.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Kn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Kn))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},ji.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},ji.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new pn;return E.add(a),Sr(this,x,y,E)};function Sr(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Sr(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Sr(a,y.labeledLink,x,E))))}ji.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Mc){if(E===pd){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Jr(this,a,y,x,!0)}if(E===Id){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Jr(this,a,y,x,!0)}if(E===Ih)return a===y?a=!0:(E=new pn,E.add(y),a=pr(this,E,a,y,x)),!a;if(E===Hc)return!Jr(this,a,y,x,!1);if(E===Gc)return a===y?a=!0:(E=new pn,E.add(y),a=Ro(this,E,a,y,x)),!a}return!0};function Jr(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Jr(a,tt,x,E,b)))return!0}return!1}function pr(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&pr(a,y,tt,E,b)))return!0}return!1}function Ro(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&Ro(a,y,rt,E,b))return!0}}return!1}Ze.Object.defineProperties(ji.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}}}),ji.className="LinkingBaseTool";function Vr(){ji.call(this),this.name="Linking",this.V={},this.F=null,this.K=Vo,this.Xd=null}we(Vr,ji),Vr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Vr.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Kn)))return null;var x=this.direction;if(x===Vo||x===Ba){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Vo||x===Xo)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Vr.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Kn&&(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 Kn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},Vr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Vr.prototype.doStop=function(){ji.prototype.doStop.call(this),this.startObject=null},Vr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof Kn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=rt,b=tt):(y=rt,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Vr.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof En)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},Vr.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},Vr.prototype.doNoLink=function(){},Ze.Object.defineProperties(Vr.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Vo=new We(Vr,"Either",0),Ba=new We(Vr,"ForwardsOnly",0),Xo=new We(Vr,"BackwardsOnly",0);Vr.className="LinkingTool",Vr.Either=Vo,Vr.ForwardsOnly=Ba,Vr.BackwardsOnly=Xo;function Ur(){ji.call(this),this.name="Relinking";var a=new qi;a.figure="Diamond",a.desiredSize=ka,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new qi,a.figure="Diamond",a.desiredSize=ka,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Xe}we(Ur,ji),Ur.prototype.updateAdornments=function(a){if(a!==null&&a instanceof En){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Ur.prototype.makeAdornment=function(a,y){var x=new Kr;return x.type=mn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ur.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Ur.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Kr&&x.adornedPart instanceof En))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=vr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=vr),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},Ur.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Ug||x===Ud)&&(x=Zl),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Ur.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Ur.prototype.doStop=function(){ji.prototype.doStop.call(this),this.handle=null},Ur.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof Kn&&(this.isForwards?(E=tt,b=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Ur.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Ur.prototype.doNoRelink=function(){};function Qr(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ze.Object.defineProperties(Ur.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Kr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ur.className="RelinkingTool",ti("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ti("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function zi(){Nr.call(this),this.name="LinkReshaping";var a=new qi;a.figure="Rectangle",a.desiredSize=za,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new qi,a.figure="Diamond",a.desiredSize=ka,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Qt,this.Yq=new Ln}we(zi,Nr),zi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:io},zi.prototype.om=function(a,y){a.reshapingBehavior=y},zi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof En){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)}},zi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Kr,b.type=mn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==Xu)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,b.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&&E){at=y.i(x);var st=y.i(x+1);xe.B(at.x,st.x)&&xe.B(at.y,st.y)&&(st=y.i(x-1)),xe.B(at.x,st.x)?(this.om(rt,co),rt.cursor="n-resize"):xe.B(at.y,st.y)&&(this.om(rt,ho),rt.cursor="w-resize")}else tt===z-1&&E?(at=y.i(z-1),st=y.i(z),xe.B(at.x,st.x)&&xe.B(at.y,st.y)&&(at=y.i(z+1)),xe.B(at.x,st.x)?(this.om(rt,co),rt.cursor="n-resize"):xe.B(at.y,st.y)&&(this.om(rt,ho),rt.cursor="w-resize")):tt!==z&&(this.om(rt,ua),rt.cursor="move");b.add(rt)}b.adornedObject=a}return b},zi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},zi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},zi.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},zi.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 En){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},zi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},zi.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},zi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},zi.prototype.getResegmentingPoint=function(){return this.handle.ga(no)},zi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},zi.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(Pr(this,tt,E,b,z,!0)||Pr(this,tt,E,b,z,!1))){var rt=y.points.copy();Pr(this,tt,E,b,z,!0)?(rt.cd(x-2,new Qt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Qt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Qt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Qt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(Pr(this,E,b,z,tt,!0)||Pr(this,E,b,z,tt,!1))&&(rt=y.points.copy(),Pr(this,E,b,z,tt,!0)?(rt.cd(x-1,new Qt(E.x,(E.y+tt.y)/2)),rt.cd(x+2,new Qt(tt.x,(E.y+tt.y)/2))):(rt.cd(x-1,new Qt((E.x+tt.x)/2,E.y)),rt.cd(x+2,new Qt((E.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Qt.alloc(),xe.qh(E.x,E.y,z.x,z.y,b.x,b.y,tt)&&tt.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),Qt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Pr(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}zi.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===co?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===ho&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===co?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===ho&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),tt=y.i(E+1);xe.B(z.x,b.x)&&xe.B(b.y,tt.y)?(xe.B(z.x,y.i(E-2).x)&&!xe.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),xe.B(tt.y,y.i(E+2).y)&&!xe.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):xe.B(z.y,b.y)&&xe.B(b.x,tt.x)?(xe.B(z.y,y.i(E-2).y)&&!xe.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),xe.B(tt.x,y.i(E+2).x)&&!xe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):xe.B(z.x,b.x)&&xe.B(b.x,tt.x)?(xe.B(z.x,y.i(E-2).x)&&!xe.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),xe.B(tt.x,y.i(E+2).x)&&!xe.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):xe.B(z.y,b.y)&&xe.B(b.y,tt.y)&&(xe.B(z.y,y.i(E-2).y)&&!xe.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),xe.B(tt.y,y.i(E+2).y)&&!xe.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(no,Qt.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Qt.alloc()),y.L(0,E.x,E.y),Qt.free(z),Qt.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(no,Qt.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Qt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Qt.free(x),Qt.free(a));y.zf()},zi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ua:return a;case co:return new Qt(y.i(x).x,a.y);case ho:return new Qt(a.x,y.i(x).y);default:case io:return y.i(x)}},Ze.Object.defineProperties(zi.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 Kr))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}}}),zi.prototype.setReshapingBehavior=zi.prototype.om,zi.prototype.getReshapingBehavior=zi.prototype.Ru;var io=new We(zi,"None",0),ho=new We(zi,"Horizontal",1),co=new We(zi,"Vertical",2),ua=new We(zi,"All",3);zi.className="LinkReshapingTool",zi.None=io,zi.Horizontal=ho,zi.Vertical=co,zi.All=ua,ti("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ao(){Nr.call(this),this.name="Resizing",this.o=new un(1,1).freeze(),this.j=new un(9999,9999).freeze(),this.yg=new un(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new qi;a.alignmentFocus=no,a.figure="Rectangle",a.desiredSize=za,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Qt,this.Dw=new un,this.Tn=new Qt,this.rt=new un(0,0),this.qt=new un(1/0,1/0),this.pt=new un(1,1)}we(Ao,Nr),Ao.prototype.updateAdornments=function(a){if(!(a===null||a instanceof En)){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)}},Ao.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Kr,y.type=mn.Spot,y.locationSpot=no;var x=new Ul;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,bs)),y.add(this.makeHandle(a,Rc)),y.add(this.makeHandle(a,yl)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,Pl)),y.add(this.makeHandle(a,Hs)),y.add(this.makeHandle(a,el)),y.add(this.makeHandle(a,ll))}else if(wh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ao.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ao.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 mn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ao.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},Ao.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))},Ao.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ao.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ao.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ao.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Qt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Qt.free(b)}},Ao.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Qt.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Qt.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ao.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 Vi){var E=new Ln;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ot;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ao.prototype.computeResize=function(a,y,x,E,b,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=Qt.alloc(),xe.No(a.x,a.y,rt,at,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=Math.max(st-a.x,x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=st-a.width)):(a.x=Math.max(vt.x,st-E.width),a.x=Math.min(a.x,st-x.width),a.width=st-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ut-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-rt,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=at+.5*(ut-at-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-at,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=rt+.5*(st-rt-a.width))),Qt.free(vt),a},Ao.prototype.computeReshape=function(){var a=qe;return this.adornedObject instanceof qi&&(a=Av(this.adornedObject)),!(a===Jn||this.diagram.lastInput.shift)},Ao.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},Ao.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},Ao.prototype.computeCellSize=function(){var a=new un(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},Ze.Object.defineProperties(Ao.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 Kr))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 Kr)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}}}),Ao.className="ResizingTool",ti("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ta(){Nr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Qt,this.ue=null;var a=new qi;a.figure="Ellipse",a.desiredSize=ka,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Qt(NaN,NaN),this.u=0,this.F=50}we(Ta,Nr),Ta.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)}},Ta.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Kr,y.type=mn.Position,y.locationSpot=no;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(wh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ta.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},Ta.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)},Ta.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)},Ta.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Ta.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Qt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ta.prototype.stopTransaction=function(){var a=this.diagram,y=Nr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ta.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ta.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ta.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()},Ta.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Ta.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},Ze.Object.defineProperties(Ta.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 Kr))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 Kr)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}}}),Ta.className="RotatingTool",ti("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Va(){Nr.call(this),this.name="ClickSelecting"}we(Va,Nr),Va.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Va.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Va.className="ClickSelectingTool";function ts(){Nr.call(this),this.name="Action",this.pk=null}we(ts,Nr),ts.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},ts.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()},ts.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))}},ts.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()},ts.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())},ts.prototype.doStop=function(){this.pk=null},ts.className="ActionTool";function Zs(){Nr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Qt(0,0)}we(Zs,Nr),Zs.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)},Zs.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Zs.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Ci)x.Zc()&&(wh(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Cn(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Qt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Rl(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Qt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Ze.Object.defineProperties(Zs.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}}}),Zs.className="ClickCreatingTool";function ys(){Nr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Ci;a.layerName="Tool",a.selectable=!1;var y=new qi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}we(ys,Nr),ys.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))},ys.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ys.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ys.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=un.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),un.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ys.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()},ys.prototype.computeBoxBounds=function(){var a=this.diagram;return new Xe(a.firstInput.documentPoint,a.lastInput.documentPoint)},ys.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),gs?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 E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ze.Object.defineProperties(ys.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}}}),ys.className="DragSelectingTool";function Io(){Nr.call(this),this.name="Panning",this.Xt=new Qt,this.xy=new Qt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ze.document,"scroll",a.Kw,!1),a.stopTool()}}we(Io,Nr),Io.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())},Io.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ze.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Io.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Io.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Io.prototype.doMouseMove=function(){this.move()},Io.prototype.doMouseUp=function(){this.move(),this.stopTool()},Io.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},Ze.Object.defineProperties(Io.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Io.className="PanningTool",ti("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ti("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ti("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ti("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ti("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function ra(){this.F=this.u=this.j=this.o=null}Ze.Object.defineProperties(ra.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}}}),ra.className="HTMLInfo";function wa(a,y,x){this.text=a,this.hx=y,this.visible=x}wa.className="ContextMenuButtonInfo";function Da(){Nr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Qt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}we(Da,Nr);function oa(a){var y=new ra;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Sl=y,a.tu=function(){a.stopTool()},y=Dn("div");var x=Dn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=Dn("style");ze.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Lr,!1),E.addEventListener(y,"selectstart",Lr,!1),E.addEventListener(x,"contextmenu",Lr,!1)),y.className="goCXforeground",x.className="goCXbackground",ze.document.body&&(ze.document.body.appendChild(y),ze.document.body.appendChild(x)),nu=y,Dl=x,Tl=!0}function Lr(a){return a.preventDefault(),!1}Da.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)},Da.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Da.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Da.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof pe||(a instanceof se?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},Da.prototype.doActivate=function(){},Da.prototype.doMouseDown=function(){if(Nr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Kr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&pa(this)},Da.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Kr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}pa(this)};function pa(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof ra||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(As(a,!0),a.isActive||a.stopTool())}Da.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function As(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=Sl,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof se?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Kr&&!a.currentContextMenu.visible&&a.stopTool()}}Da.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Da.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Kr){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof ra&&a.show(y,x,this);this.currentContextMenu=a},Da.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},Da.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Kr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof ra&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function nl(a){var y=new Ln;return y.add(new wa("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new wa("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new wa("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new wa("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new wa("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new wa("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new wa("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new wa("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new wa("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new wa("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new wa("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new wa("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new wa("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Da.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=nl(this)),nu.innerHTML="",Dl.addEventListener("pointerdown",this.tu,!1);var y=this,x=Dn("ul");x.className="goCXul",nu.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=Dn("li"),z.className="goCXli";var tt=Dn("a");tt.className="goCXa",tt.href="#",tt.ky=b.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=b.text,z.appendChild(tt),x.appendChild(z)}}nu.style.display="block",Dl.style.display="block"},Da.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Sl){nu.style.display="none",Dl.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Dl,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ze.Object.defineProperties(Da.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Kr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Tl===!1&&Sl===null&&sa&&oa(this),Sl},set:function(a){a===null&&(Tl=!0),Sl=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Sl=null,Tl=!1,Dl=null,nu=null;Da.className="ContextMenuTool",ti("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _r(){Nr.call(this),this.name="TextEditing",this.Zh=new Jo,this.ia=null,this.V=Eu,this.vj=null,this.qa=pu,this.u=1,this.F=!0,this.o=null,this.j=new ra,this.kt=null,Ol(this,this.j)}we(_r,Nr);function Ol(a,y){if(sa){var x=Dn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(gu)):b==="Tab"?(a.acceptText(Bs),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==pu){var E=a.kt;a.qa===Gu&&(a.qa=Oh),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==pu){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Jo&&z instanceof _r)if(z.state===ec)x.style.border="3px solid red",x.focus();else{var tt=E.ga(no),rt=b.position,at=b.scale,st=E.Df()*at;st<z.minimumEditorScale&&(st=z.minimumEditorScale);var ut=E.naturalBounds.width*st+6,ft=E.naturalBounds.height*st+2,vt=(tt.x-rt.x)*at;tt=(tt.y-rt.y)*at,rt=E.verticalAlignment,at=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*st,ft=rt.y*ft-rt.y*at+rt.offsetY-(.5*ft-.5*at)-at/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*st+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=st,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}_r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||nh&&nh!==this&&(nh.acceptText(ul),nh&&nh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Jo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Eu&&!y.isSelected||this.starting===ds&&2>a.lastInput.clickCount)):!1},_r.prototype.doStart=function(){nh=this,this.textBlock!==null&&this.doActivate()},_r.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Jo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Gu;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Xe(this.textBlock.ga(bs),this.textBlock.ga(yl));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},_r.prototype.doCancel=function(){this.stopTool()},_r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(ul)},_r.prototype.acceptText=function(a){switch(a){case ul:this.qa===hl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Gu||this.qa===ec||this.qa===Oh)&&(this.qa=zc,Oa(this));break;case il:case gu:case Bs:(gu!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Gu||this.qa===ec||this.qa===Oh)&&(this.qa=zc,Oa(this))}};function Oa(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=hl,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=ec,a.doError(b,z))}}_r.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},_r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=pu,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_r.prototype.doStop=function(){nh=null},_r.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},_r.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ze.Object.defineProperties(_r.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),_r.prototype.measureTemporaryTextBlock=_r.prototype.Lx;var il=new We(_r,"LostFocus",0),ul=new We(_r,"MouseDown",1),Bs=new We(_r,"Tab",2),gu=new We(_r,"Enter",3),Cl=new We(_r,"SingleClick",0),Eu=new We(_r,"SingleClickSelected",1),ds=new We(_r,"DoubleClick",2),pu=new We(_r,"StateNone",0),Gu=new We(_r,"StateActive",1),Oh=new We(_r,"StateEditing",2),zc=new We(_r,"StateValidating",3),ec=new We(_r,"StateInvalid",4),hl=new We(_r,"StateValidated",5),nh=null;_r.className="TextEditingTool",_r.LostFocus=il,_r.MouseDown=ul,_r.Tab=Bs,_r.Enter=gu,_r.SingleClick=Cl,_r.SingleClickSelected=Eu,_r.DoubleClick=ds,_r.StateNone=pu,_r.StateActive=Gu,_r.StateEditing=Oh,_r.StateValidating=zc,_r.StateInvalid=ec,_r.StateValidated=hl,ti("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function cl(a){Bt||(Ku(),Bt=!0),this.H=er,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Ot,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new pn,this.ce=new Ce,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)}cl.prototype.Xe=function(a){this.H=a},cl.prototype.canStart=function(){return!0};function Lu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Xr(a.H),a.zb=!0)}function mu(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Ot?(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===le&&y.vc.clear(),a.Qw=!!(a.Pk===Kt&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Ue(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==rl&&E!==null&&(delete E.start.scale,delete E.end.scale),ze.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fr(x),No(x),a.zb=!1,y.start(),y.bc&&(ph(a),x.Ya(),hn(y,0),jo(x,!0),Mu(a),x.R("AnimationStarting",a)))}))}}function ih(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Pc(a,y,x,E){a.isTicking||ih(a)||y instanceof En&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}wt=cl.prototype,wt.fv=function(a){return this.ce.fv(a)},wt.Xu=function(a){return this.ce.Xu(a)};function nc(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var at=rt.key;if(at instanceof se&&at.diagram!==null||at instanceof pe){rt=!0;break t}}rt=!1}rt?Bn(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(ph(b),jo(b.H),Mu(b)),ze.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),ze.requestAnimationFrame(function(){x()}))}function jc(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ph(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 Mu(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}wt.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(),Ue(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ue(y,this.H)},wt.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))},wt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),is(this,a))},wt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),tn(this.ce,y,"position",y.position,y.position),is(this,a))};function ic(a,y,x){!a.zb||y.D(x)||ih(a)||(a.H.pi||(y=x.copy()),tn(a.ce,a.H,"position",y,x))}function mh(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function is(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Al(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var 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=b(x,z,at-z,E)%360,tt=b(x,tt,st-tt,E),rt=b(x,rt,ut-rt,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function Ku(){function a(x,E,b,z,tt,rt){x.position=new Qt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}var y=new yi;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Qt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("location",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!0):x.location=new Qt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:placeholder",function(x,E,b,z,tt,rt){tt<rt?x.mm(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt),!1):x.position=new Qt(z(tt,E.x,b.x-E.x,rt),z(tt,E.y,b.y-E.y,rt))}),y.add("position:nodeCollapse",function(x,E,b,z,tt,rt){var at=x.actualBounds,st=b.actualBounds;b=st.x+st.width/2-at.width/2,at=st.y+st.height/2-at.height/2,tt<rt?x.mm(z(tt,E.x,b-E.x,rt),z(tt,E.y,at-E.y,rt),!1):x.position=new Qt(z(tt,E.x,b-E.x,rt),z(tt,E.y,at-E.y,rt))}),y.add("desiredSize",function(x,E,b,z,tt,rt){x.desiredSize=new Xe(z(tt,E.width,b.width-E.width,rt),z(tt,E.height,b.height-E.height,rt))}),y.add("width",function(x,E,b,z,tt,rt){x.width=z(tt,E,b-E,rt)}),y.add("height",function(x,E,b,z,tt,rt){x.height=z(tt,E,b-E,rt)}),y.add("fill",function(x,E,b,z,tt,rt){x.fill=Al(E,b,tt,rt,z)}),y.add("stroke",function(x,E,b,z,tt,rt){x.stroke=Al(E,b,tt,rt,z)}),y.add("strokeWidth",function(x,E,b,z,tt,rt){x.strokeWidth=z(tt,E,b-E,rt)}),y.add("strokeDashOffset",function(x,E,b,z,tt,rt){x.strokeDashOffset=z(tt,E,b-E,rt)}),y.add("background",function(x,E,b,z,tt,rt){x.background=Al(E,b,tt,rt,z)}),y.add("areaBackground",function(x,E,b,z,tt,rt){x.areaBackground=Al(E,b,tt,rt,z)}),y.add("opacity",function(x,E,b,z,tt,rt){x.opacity=z(tt,E,b-E,rt)}),y.add("scale",function(x,E,b,z,tt,rt){x.scale=z(tt,E,b-E,rt)}),y.add("angle",function(x,E,b,z,tt,rt){x.angle=z(tt,E,b-E,rt)}),yt=y}Ze.Object.defineProperties(cl.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&&Ui(a,">= 1",cl,"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}}}),cl.prototype.stopAnimation=cl.prototype.Cc;var yt=null,Bt=!1,Ot=new We(cl,"Default",1),Kt=new We(cl,"AnimateLocations",2),le=new We(cl,"None",3);cl.className="AnimationManager",cl.defineAnimationEffect=function(a,y){Bt||(Ku(),Bt=!0),yt.add(a,y)},cl.Default=Ot,cl.AnimateLocations=Kt,cl.None=le;function Ce(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=oi,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=os,this.vc=new yi,this.Tt=new yi,this.yl=new pn,this.Ut=new pn,this.dw=oc,a&&Object.assign(this,a)}Ce.prototype.suspend=function(){this.Xk=!0},Ce.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Bn(this,!0),ph(this.Yd),jo(this.H),Mu(this.Yd),this.H.redraw()};function Ue(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}wt=Ce.prototype,wt.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 pe?a=x:x instanceof se&&(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===Ot&&this===y.defaultAnimation&&(this.Lp=Pi,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=kc),ph(y),this.yl.each(function(E){E.data=null,a.add(E)}),Mu(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,nc(y,this),this)},wt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},wt.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof pe?this.H=a:a instanceof se&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Ci){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return tn(this,a,y,x,E,b),this};function tn(a,y,x,E,b,z){var tt=a.vc;if(y instanceof pe&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Sd(E),av(),E=[Zu.j,Zu.u,Zu.o,Zu.F],Sd(b),av(),b=[Zu.j,Zu.u,Zu.o,Zu.F]),tt.contains(y)){var rt=tt.I(y),at=rt.start,st=rt.end;at[x]===void 0&&(at[x]=wn(E)),st[x]=wn(b)}else at={},st={},at[x]=wn(E),st[x]=wn(b),rt=at.position,y instanceof se&&rt instanceof Qt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(st.position),rt=new pi(at,st,z),tt.add(y,rt);tt=at[x],tt instanceof Qt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Ci?rt.Ku.location=wn(y.location):z&&(rt.Ku[x]=wn(E))}function wn(a){return a instanceof Qt||a instanceof un?a.copy():a}wt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},wt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Bn(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),ph(x),hn(a,b),jo(a.H,!0),Mu(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function hn(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof se&&z.diagram===null)){var tt=E.value,rt=b?tt.end:tt.start;tt=b?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)}}}wt.stop=function(){return this.bc?(this.Ml(!0),this):this},wt.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,ph(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=yt;E.next();){var tt=E.key,rt=E.value,at=b?rt.end:rt.start,st=b?rt.start:rt.end,ut=rt.Ku,ft;for(ft in st)if(z.get(ft)!==null){var 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 Ci&&(tt.location=ut.location),rt.nv&&tt instanceof Ci&&tt.Zb(!1)}if(y.As.clear(),Zr(y,!1),y.Ya(),y.N(),jo(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}jo(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Mu(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ue(this,null),x.Ml(this),y.$b())}},wt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Vi&&(E=y.placeholder),E!==null?(x=E.ga(bs),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Qt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Vi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Kn&&this.Cj(E,y)},wt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Vi&&(x=y.placeholder),x!==null){var E=x.ga(bs);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Vi)for(a=a.memberParts;a.next();)E=a.value,E instanceof Kn&&this.Aj(E,y)}},wt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ze.Object.defineProperties(Ce.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ui(a,">= 1",Ce,"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:De("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}}}),Ce.prototype.getTemporaryState=Ce.prototype.Ez,Ce.prototype.stop=Ce.prototype.stop,Ce.prototype.add=Ce.prototype.add,Ce.prototype.addTemporaryPart=Ce.prototype.Iy;function oi(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Pi(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Ce.className="Animation",Ce.EaseLinear=function(a,y,x,E){return x*a/E+y},Ce.EaseInOutQuad=oi,Ce.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Ce.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Ce.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Ce.EaseOutExpo=Pi;function pi(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}pi.className="AnimationState";function Qn(a,y,x){this.xd=null,this.rf=a,this.so=x||si,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Nn))}Qn.prototype.copy=function(){var a=new Qn(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 hi(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))}Ze.Object.defineProperties(Qn.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 si=new We(Qn,"Default",1),Nn=new We(Qn,"Immediate",2),Vn=new We(Qn,"Bundled",3);Qn.className="AnimationTrigger",Qn.Default=si,Qn.Immediate=Nn,Qn.Bundled=Vn;function Rn(a){vo(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)}wt=Rn.prototype,wt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ml(x)}a.clear(),this.Zq.length=0},wt.Xe=function(a){this.H=a},wt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,rt=this.Pa.iterator;rt.next();){var at=rt.value;at instanceof Vi?b++:at instanceof Kn?E++:at instanceof En?z++:at instanceof Kr?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<E&&(rt+=E+" Nodes "),0<b&&(rt+=b+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
|
|
`+x.toString(),E=x.data,E!==null&&Ia(E)&&(rt+=" #"+Ia(E)),x instanceof Kn?rt+=" "+to(E):x instanceof En&&(rt+=" "+to(x.fromNode)+" "+to(x.toNode));return y+" "+this.Pa.count+": "+rt},wt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=Qt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((E!==!0||yf(rt)!==!1)&&rt.isVisible()&&(b.assign(a),Ma(b,rt.oe),rt=rt.ic(b,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Qt.free(b),rt}return Qt.free(b),null},wt.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Ln||E instanceof pn||(E=new pn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Qt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var at=tt[rt];if((b!==!0||yf(at)!==!1)&&at.isVisible()){z.assign(a),Ma(z,at.oe);var st=at;at.ji(z,y,x,E)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||E.add(st))}}return Qt.free(z),E},wt.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Ln||b instanceof pn||(b=new pn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var at=tt[rt];if((z!==!0||yf(at)!==!1)&&at.isVisible()){var st=at;at.Cf(a,y,x,E,b)&&(y!==null&&(st=y(st)),st===null||x!==null&&!x(st)||b.add(st))}}return b},wt.Nu=function(a,y,x,E,b,z,tt){if(this.Uh===!1)return b;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,E,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return b},wt.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Ln||b instanceof pn)&&(z=b),b=!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=Qt.alloc(),at=Qt.alloc(),st=this.Pa.s,ut=st.length;ut--;){var ft=st[ut];if((tt!==!0||yf(ft)!==!1)&&ft.isVisible()){rt.assign(a),Ma(rt,ft.oe),at.h(a.x+y,a.y),Ma(at,ft.oe);var vt=ft;ft.og(rt,at,x,E,b,z)&&(x!==null&&(vt=x(vt)),vt===null||E!==null&&!E(vt)||z.add(vt))}}return Qt.free(rt),Qt.free(at),z},wt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=ki();for(var b=ki(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof En){if(tt.fd===!1)continue}else if(tt instanceof Kr&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&Jh(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&b.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Ov(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)Ov(b[y]);Bi(a),Bi(b)}}};function ei(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}wt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=ei(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=Xe.alloc(),at=0;at<E;at++)this.Oj(a,x[at],y,z,tt,rt,!0);if(Xe.free(rt),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function bi(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var tt=ei(a,y),rt=a.Zq;rt.length=0;for(var at=x.scale,st=Xe.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,rt,at,st,!1)}Xe.free(st),y.globalAlpha=tt}}}wt.Oj=function(a,y,x,E,b,z,tt){if(tt&&!yf(y))a.Hs(y);else{if(E!==null&&y instanceof En&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,E=y.containingGroup;E!==null;)tt?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(tt=!0,z.assign(E.tb)),E=E.containingGroup;var rt=y.actualBounds;if(E=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}E=!z.Re(rt)}E&&(a.save(),a instanceof bu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*b>x.Oq||rt.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Xa(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(Xa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Xa(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},wt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(na,a,this,y,x,E,b)},wt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Ml(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),Mi(this,a,y),a},wt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Ml(y),a};function Mi(a,y,x){if(y=Ei(a,y,x),x instanceof Vi&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];if(rt===x&&(y=tt,0<=E)||0>E&&rt.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&Mi(a,-1,y)}x.svg!==null&&x.svg.remove()}function Ei(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,at=NaN;rt<b&&(at=a.M(rt).zOrder,!!isNaN(at));)rt++;if(!isNaN(tt)&&tt>E)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(at)&&at<E)for(;;){if(rt===b||at>=E){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(at=NaN;++rt<b&&(at=a.M(rt).zOrder,isNaN(at)););}return y}Ze.Object.defineProperties(Rn.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===""&&De("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&De("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)&&Ui(a,"0 <= value <= 1",Rn,"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))}}}),Rn.prototype.findObjectsNear=Rn.prototype.og,Rn.prototype.findObjectsIn=Rn.prototype.Cf,Rn.prototype.findObjectsAt=Rn.prototype.ji,Rn.prototype.findObjectAt=Rn.prototype.ic,Rn.className="Layer";function pe(a,y){if(Wf||(Js(),Wf=!0),vo(this),er=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,sa){var x=this,E=function(){x.removeEventListener(ze.document,"DOMContentLoaded",E,!1),x.setRTL()};ze.document.body!==null?this.setRTL():x.addEventListener(ze.document,"DOMContentLoaded",E,!1)}this.ol=null,yh.add("Model",Lo);var b=this;return this.Hb=function(z){var tt=b.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===na&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,xr(this),this.model=hy(),this.Wg=!0,wo(this),this.layout=new Pa,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 Hf,a!==void 0&&(typeof a=="string"||ze.Element&&a instanceof Element?Cr(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var _i,er;function xr(a){a.Yd=new cl,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ln,a.pj=new yi,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Qt(NaN,NaN).freeze(),a.du=new Qt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Qt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new rr,a.zu=new Qt(NaN,NaN).freeze(),a.ut=new Xe(NaN,NaN,NaN,NaN).freeze(),a.rj=new $i(0,0,0,0).freeze(),a.sj=oc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=rl,a.zk=Is,a.Fg=rl,a.pq=Is,a.yt=bs,a.Bt=bs,a.Fc=!0,a.pn=!1,a.De=new pn,a.Eh=new yi,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new $i(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Us,a.bq.diagram=a,a.Qg=new Us,a.Qg.diagram=a,a.cj=new Us,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,vh(a),a.ai=new pn,a.Ht=!0,a.uu=ac,a.pw=!1,a.wu=Mc,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new yi,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 $i(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 un(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Qt,bounds:new Xe,Py:new un,bA:new un,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Xe(NaN,NaN,NaN,NaN).freeze(),a.wo=new un(NaN,NaN).freeze(),a.Sp=new Xe(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new yi;var y=new Kn,x=new Jo;x.bind(new ls("text","",to)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Kn,x=new Jo,x.stroke="brown",x.bind(new ls("text","",to)),y.add(x),a.Lg.add("Comment",y),y=new Kn,y.selectable=!1,y.avoidable=!1,x=new qi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new un(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new yi,y=new Vi,y.selectionObjectName="GROUPPANEL",y.type=mn.Vertical,x=new Jo,x.font="bold 12pt sans-serif",x.bind(new ls("text","",to)),y.add(x),x=new mn(mn.Auto),x.name="GROUPPANEL";var E=new qi;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Ul,E.padding=new $i(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new yi,y=new En,x=new qi,x.isPanelMain=!0,y.add(x),x=new qi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new En,x=new qi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Kr,y.type=mn.Auto,x=new qi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ul,x.margin=new $i(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Kr,y.type=mn.Link,x=new qi,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 Lo,a.toolManager=new ia,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=dr(),a.eq=null,a.fq=cu,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 Qt,a.zy=500,a.wp=new Qt,a.wq=!1}pe.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Wc=null,rc="",Gr(this,!1),this.Xn.clear(),Hg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Gr(a,y){a.animationManager.Cc(!0),a.Hw=new pn().freeze(),a.nw=new pn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var at=rt.value;at!==b&&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(),Hg(),a.Og.clear(),qa=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function dr(){return null}pe.prototype.reset=function(){this.clear(),this.vb=!0,xr(this),Gs(this),this.Wg=!0,wo(this),this.layout=new Pa,this.Wg=!1,this.model=hy(),this.model.undoManager=new va,this.vb=this.rn=!1,this.N()},pe.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ze.document.body);var y=Dn("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},pe.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ze.document.body);var y=0;if(sa){var x=Rd;y=_i,x===null&&(x=Rd=Dn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=_i=Dn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||gs||(y=11)}this.Db=y,this.Gw=!0},pe.prototype.qb=function(a){a.classType===pe&&(this.autoScale=a)},pe.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 Cr(a,y){if(sa){if(y!=null||De("Diagram setup requires an argument DIV."),a.Ka!==null&&De("Diagram has already completed setup."),typeof y=="string"?a.Ka=ze.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:De("No DIV or DIV id supplied: "+y),a.Ka===null&&De("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&De("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ze.ResizeObserver){var x=Ni(function(){a.$b()},250);a.ol=new ze.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ze.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ze.go;var b=new xh(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",ze.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),dl(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new xh(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,sa){b=Dn("div");var z=Dn("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Fr,b.addEventListener("pointerdown",ar),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Ni(function(){a.Yh=null,a.N()},300),a.Ov=Ni(function(){No(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=po(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(),Qi(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,po(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=Ar(a,tt,!0,!1,!0,st),Po(a,tt,at),at.targetDiagram=qo(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():Qi(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=Ar(a,tt,!1,!1,!1,rt[1]!==null);var at=ze.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,Po(a,ut,rt),rt.targetObject=null,a.doMouseMove(),Qi(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=Ar(a,tt,!1,!0,!0,!1);var st=ze.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 pe&&st.H!==a&&Po(st.H,tt,at),st===null&&(st=tt.target),Po(a,tt,at),at.clickCount=a.yq,at.targetDiagram=qo(tt,st),at.targetObject=null,a.doMouseUp(),Qi(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=E.Z["d"+vd[1]+vd[2]+"wI"+Vc.slice(1,5)]["b"+Bx.slice(1,y)](E.Z,md,y,y),E.Vc(!0),Dr(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}pe.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},pe.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function Dr(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(ze,"resize",a.Ov,!1)}function fr(a){30<a.Sq&&(a.Yh=1)}function Zr(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Ea&&Ea.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}pe.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ze.devicePixelRatio||1},pe.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},pe.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},pe.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},pe.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},pe.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},pe.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},pe.prototype.doFocus=function(){this.focus()},pe.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ze.scrollX||ze.pageXOffset,y=ze.scrollY||ze.pageYOffset;this.ta.focus(),ze.scrollTo(a,y)}},pe.prototype.Oy=function(){this.H.R("GainedFocus")},pe.prototype.Ny=function(){this.H.R("LostFocus")};function No(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===rl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function wo(a){var y=new Rn;y.name="Background",a.Al(y),y=new Rn,y.name="",a.Al(y),y=new Rn,y.name="Foreground",a.Al(y),y=new Rn,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Rn,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Rn,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function yo(a){var y=new mn(mn.Grid);y.name="GRID";var x=new qi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new qi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new qi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new qi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new qi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new qi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ci,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 Fr(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Ra(this.H)}function ar(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Ra(this.H)}pe.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,tt=E.x-z.left,rt=E.y-z.top,at=E.width+z.left+z.right,st=E.height+z.top+z.bottom,ut=E.right+z.right;z=E.bottom+z.bottom;var ft=b.x;E=b.y;var vt=b.width,xt=b.height,Pt=b.right,bt=b.bottom;b=this.scale;var Yt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Yt=Yt+a.scrollWidth-a.clientWidth;break;case"reverse":Yt=a.scrollWidth-Yt-a.clientWidth}var Wt=Yt;vt<at||xt<st?(Yt=Qt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Wt&&(Yt.x=Wt/b+tt,this.ju=Wt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Yt.y=a.scrollTop/b+rt,this.lu=a.scrollTop),this.position=Yt,Qt.free(Yt),this.Ee=this.qr=!1):(Yt=Qt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Yt.h(Wt+tt,this.position.y)),ut>Pt&&(this.position=Yt.h(-(y.scrollWidth-this.Aa)+Wt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<E&&(this.position=Yt.h(this.position.x,a.scrollTop+rt)),z>bt&&(this.position=Yt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Qt.free(Yt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,Pt=b.right,z=E.bottom,bt=b.bottom,tt=E.x,ft=b.x,rt=E.y,E=b.y,vt>=at&&tt>=ft&&ut<=Pt&&(x.style.width="1px"),xt>=st&&rt>=E&&z<=bt&&(x.style.height="1px"))}},pe.prototype.computeBounds=function(a){return a===void 0&&(a=new Xe),Xr(this),kr(this,a)};function kr(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var tt=E[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,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}pe.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Ri(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof En||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof En||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new Xe(NaN,NaN,0,0):x};function nr(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=Qt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=Xe.allocAt(0,0,E.width,E.height);var b=Qt.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,Xe.free(E),Qt.free(b),Qt.free(x)}x=a.yh,y&&a.Fg!==rl&&(x=a.Fg);var z=x!==rl?Eo(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=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),Go(a,a.documentBounds,b,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,xe.B(z.x,x)&&xe.B(z.y,E)&&xe.B(z.width,b)&&xe.B(z.height,tt)||a.onViewportBoundsChanged(new Xe(x,E,b,tt),z,y,!1)}}function Eo(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/b,at=tt/E;return y===El?(y=Math.min(at,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Lc?(y=at>rt?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}pe.prototype.zoomToFit=function(){var a=this.sj;this.sj=oc,this.scale=Eo(this,El),a!==oc&&(nr(this,!1),Go(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},wt=pe.prototype,wt.BA=function(a,y){y===void 0&&(y=El);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===El||y===Lc)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Lc?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Qt(a.x,a.y)}},wt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Qt(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},wt.zz=function(a){if(a instanceof se){this.eq=a;var y=Qt.alloc();this.fq=this.op(a.ga(bs,y)),Qt.free(y)}else this.eq=null,this.fq=cu};function Go(a,y,x,E,b,z){var tt=Qt.allocAt(a.pa.x,a.pa.y),rt=tt.x,at=tt.y;if(a.eq!==null){var st=Qt.alloc();st=a.eq.ga(bs,st),rt=st.x-a.fq.x/a.scale,at=st.y-a.fq.y/a.scale,b=ms,Qt.free(st)}(z||a.scrollMode===oc)&&(b.sb()&&(x>y.width&&(rt=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(at=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(rt=Math.min(rt+x/2,y.right+Math.max(z,b.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,b.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(at=Math.min(at+E/2,y.bottom+Math.max(x,b.bottom)-E/2),at=Math.max(at,y.top-Math.max(x,b.top)+E/2),at-=E/2):at>y.top?at=y.top:at<y.bottom-E&&(at=y.bottom-E)),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),ic(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),Gs(a),Qt.free(tt)}wt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=lo(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Ci)return a}else if(a=lo(this,a,function(x){return x.part}),a instanceof Ci)return a;return null},wt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Xr(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function lo(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),Xr(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}wt.lz=function(a,y,x){return y===void 0&&(y=!0),ko(this,a,function(E){return E.part},y?function(E){return E instanceof Ci&&E.canSelect()}:null,x)};function ko(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof Ln||b instanceof pn||(b=new pn),Xr(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}wt.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Ln||E instanceof pn||(E=new pn),Xr(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},wt.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),fo(this,a,function(b){return b instanceof Ci&&(!x||b.canSelect())},y,E)},wt.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Ln||b instanceof pn||(b=new pn),Xr(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},wt.Nu=function(a,y,x,E,b,z){var tt=new pn;Xr(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var at=rt.value;at.visible&&at.Nu(a,y,x,E,tt,b,z)}return tt};function fo(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Ln||b instanceof pn||(b=new pn),Xr(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}wt.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Ko(this,a,y,function(z){return z instanceof Ci&&(!E||z.canSelect())},x,b)},wt.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Ln||b instanceof pn)&&(z=b),b=!0),z instanceof Ln||z instanceof pn||(z=new pn),Xr(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,E,b,z)}return z};function Ko(a,y,x,E,b,z){var tt=null;for(tt===void 0&&(tt=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Ln||b instanceof pn)&&(z=b),b=!0),z instanceof Ln||z instanceof pn||(z=new pn),Xr(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,E,b,z)}return z}pe.prototype.acceptEvent=function(a){return po(this,a,a instanceof MouseEvent)};function po(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?Po(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),gs&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=qo(y,y.target),E.targetObject=null,E}function qo(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 Ar(a,y,x,E,b,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,gs&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=E,tt.handled=!1,tt.bubbles=b,tt.isMultiTouch=z,tt}function Qi(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}pe.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=po(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(),Qi(x,a)},pe.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=po(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(),Qi(x,a)},pe.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=po(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Qi(x,a)},pe.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=po(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Qi(x,a)},pe.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Qt(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?Ma(new Qt(y,a),this.Ab):new Qt(y,a)};function Po(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,tt=0,rt=0;E!==null&&(E=E.getBoundingClientRect(),tt=y.clientX-b/E.width*E.left,rt=y.clientY-z/E.height*E.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Qt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Qt.free(y)):x.documentPoint.h(tt,rt)}function qr(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}pe.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ha(a){a.ld||Xr(a),a.Va()}pe.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},wt=pe.prototype,wt.Pz=function(){return this.kg},wt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,jo(this),this.hf=!1,this.du=new Qt(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Yi(function(){E.ld=!1,Lu(y,"Model"),a(E)},1)},wt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ze.requestAnimationFrame(function(){y.kg&&y.bd()})}},wt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),jo(this))};function So(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Ra(a)||(y&&Xr(a),x&&nr(a,!1))}function jo(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];Ss(rt,!1),rt.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(at){at.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||No(a),So(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Za(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Xr(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ts(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ts(a,!1)),z=!0),a.Jk=!1,Xr(a),a.ou||ha(a),So(a,!0,!1),tt=!1,z?(x=Xe.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,ba(a)),a.R("LayoutCompleted"),So(a,!0,!1),Xe.free(x)):x.Ok&&x.Qw&&(a.Fg!==rl?a.scale=Eo(a,a.Fg):a.yh!==rl?a.scale=Eo(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),nr(a,!0)),z&&tt&&a.eb("Initial Layout"),Xr(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function ba(a){if(a.Fg!==rl)a.scale=Eo(a,a.Fg);else if(a.yh!==rl)a.scale=Eo(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}nr(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Za(a)}function Xr(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(E){E instanceof Vi&&E.U&65536&&(E.U=E.U^65536)})}}wt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Vi||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Vi&&x.isVisible()&&Yo(this,x);for(a.reset();a.next();)x=a.value,x instanceof En&&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 Kr&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Yo(a,y){for(var x=ki(),E=ki(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Vi?(Uu(z)||Vl(z)||vf(z))&&Yo(a,z):z instanceof En?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(Bi(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();Bi(E)}wt.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},wt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&De("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Wo(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,tt=Math.round(y.y*b)/b,rt=this.Ab;for(rt.reset(),b!==1&&rt.scale(b),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Xy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ya(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Yc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(rr.prototype.Cd=rr.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Wo(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,rt=this.pa;var 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),Ya(this,a),rt=0;rt<b;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Yc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(rr.prototype.Cd=rr.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Ea&&Ea.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function es(a,y,x,E,b,z,tt,rt,at,st){if(a.Ka!==null){a.ta===null&&De("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),at===void 0&&(at=!1),st===void 0&&(st=!1),Wo(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=b;var ft=a.Wa.s,vt=ft.length;try{var xt=new Xe(z.x,z.y,E.width/b,E.height/b),Pt=xt.copy();Pt.Co(x),Za(a,Pt),Xr(a),a.Fd(ft,vt,a,xt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,E.width,E.height));var bt=a.Mb;y.scale(bt,bt);var Yt=rr.alloc();Yt.reset(),Yt.translate(x.left,x.top),Yt.scale(b),z.x===0&&z.y===0||Yt.translate(-z.x,-z.y),y.setTransform(Yt.m11,Yt.m12,Yt.m21,Yt.m22,Yt.dx,Yt.dy),y.yc(),y instanceof bu&&Xy(y,Yt.m11,Yt.m12,Yt.m21,Yt.m22,Yt.dx,Yt.dy),rr.free(Yt),Ya(a,y),y.globalAlpha=a.pb;var Wt=a.Qj("Grid");if(tt){var te=new pn,ne=tt.iterator;for(ne.reset();ne.next();){var oe=ne.value;oe instanceof Ci&&(st||oe.layer!==Wt)&&(oe.Gj(),te.add(oe))}for(st=0;st<vt;st++)bi(ft[st],y,a,te,at);te.each(function(Me){return Me.Gj()})}else for(te=0;te<vt;te++){var me=ft[te];me===Wt?st&&me.gc(y,a,!0):me.gc(y,a,at)}a.$i=!1,a.Yf&&Yc(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),Za(a),a.ib instanceof bu&&(a.ib.Nj.PA(),a.redraw())}}}wt.Gf=function(a){return this.Rg[a]},wt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},wt.Tx=function(){this.Rg=new ir,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(gs||pl),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ya(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}wt.Ql=function(a){return this.on[a]},wt.sA=function(a,y){this.on[a]=y},wt.Sx=function(){this.on=new ir,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},wt.set=function(a){return Object.assign(this,a),this},wt.Du=function(a){return this.nm(a)},wt.nm=function(a){return ss(this,a),this};function ss(a,y){var x=a instanceof mn,E=a instanceof pe,b;for(b in y){b===""&&De("Setting properties requires non-empty property names");var z=a,tt=b;if(x||E){var rt=b.indexOf(".");if(0<rt){var at=b.substring(0,rt);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),Cn(z)?tt=b.substr(rt+1):De("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!Yr(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&Yr(a.toolManager,tt))z=a.toolManager;else if(E&&Cc(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof fi&&tt==="Changed"){a.Pe(y[tt]);continue}else De('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof se&&z.Vw(tt)}}wt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new yi,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},wt.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")},pe.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!==kc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=Xe.alloc(),ku(this,this.computeBounds(E)),Xe.free(E)),E=this.ta,E===null||E instanceof bc)))){var tt=this.Mb;b=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!==b&&(at.width=b),at.height!==rt&&(at.height=rt),a.clearRect(0,0,b,rt),at=190*tt;var st=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(b-ut),xt=Math.floor(rt-ft);a.drawImage(E.Oa,ut,ft,vt,xt,0,0,vt,xt),Yc(this.Yf,this)&&a.clearRect(0,0,at,st),E=ki(),a=ki(),xt=Math.abs(z),vt=Math.abs(y);var Pt=ut===0?0:b-xt;ut=Qt.allocAt(Pt,0),xt=Qt.allocAt(xt+Pt,rt),a.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)));var bt=this.Ab;if(bt.reset(),bt.scale(tt,tt),this.Ca!==1&&bt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&bt.translate(-tt.x,-tt.y),Ma(ut,bt),Ma(xt,bt),E.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Pt=ft===0?0:rt-vt,ut.h(0,Pt),xt.h(b,vt+Pt),a.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Ma(ut,bt),Ma(xt,bt),E.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Yc(this.Yf,this)&&(b=0<z?0:-z,rt=0<y?0:-y,ut.h(b,rt),xt.h(at+b,st+rt),a.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Ma(ut,bt),Ma(xt,bt),E.push(new Xe(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)))),Qt.free(ut),Qt.free(xt),So(this,!1,!0),this.Ka===null&&De("No div specified"),this.ta===null&&De("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Wo(this),rt=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*rt,this.ya*rt),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,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),b.save(),b.beginPath(),z=a.length,tt=0;tt<z;tt++)at=a[tt],at.width!==0&&at.height!==0&&b.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(b.clip(),b.setTransform(rt,0,0,rt,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ya(this,b),b.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],at=E,tt.visible&&tt.pb!==0){st=ei(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,vt=Xe.alloc(),xt=tt.Pa.s,bt=xt.length,Pt=at.length;for(var Yt=0;Yt<bt;Yt++){var Wt=xt[Yt],te=Xf(Wt,Wt.actualBounds);t:{for(var ne=2/ut,oe=4/ut,me=0;me<Pt;me++){var Me=at[me];if(Me.width!==0&&Me.height!==0&&te.Vu(Me.x-ne,Me.y-ne,Me.width+oe,Me.height+oe)){te=!0;break t}}te=!1}te&&tt.Oj(b,Wt,this,ft,ut,vt,!0)}Xe.free(vt),b.globalAlpha=st}b.restore(),b.Vc(!0),this.Yf&&Yc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Bi(E),Bi(a),this.ld=!1}}else this.bd();x&&(fr(this),this.bd(),Zr(this,!0))}else x?(fr(this),this.bd(),Zr(this,!0)):this.bd()}};function Wo(a){a.pn!==!1&&(a.pn=!1,dl(a,a.Aa,a.ya))}function dl(a,y,x){Gs(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Ra(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,at=b.clientWidth||x+tt,st=b.clientHeight||E+rt,ut=a.viewportBounds;b=ut.x;var ft=ut.y,vt=ut.width,xt=ut.height;if((at!==x+tt||st!==E+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=at,a.ya=st,z=a.pn=!0,Gs(a)),!a.hf||!a.viewportBounds.w())return!0;var Pt=a.ku,bt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Yt=a.documentBounds,Wt=0,te=0,ne=0,oe=0,me=ut.width,Me=ut.height,zn=a.rj;a.contentAlignment.sb()?(Yt.width>me&&(Wt=zn.left,te=zn.right),Yt.height>Me&&(ne=zn.top,oe=zn.bottom)):(Wt=zn.left,te=zn.right,ne=zn.top,oe=zn.bottom);var li=Yt.width+Wt+te,_n=Yt.height+ne+oe;zn=a.scale;var An=li>at/zn,an=_n>st/zn;if(!(z||a.gf||a.Be||An||an))return!0;Wt=Yt.x-Wt,at=ut.x,te=Yt.right+te,st=ut.right+tt,ne=Yt.y-ne;var Gi=ut.y;Yt=Yt.bottom+oe,ut=ut.bottom+rt;var Wi="1px";if(oe="1px",a.scrollMode===oc&&(An||an)&&(An&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(An=1,Wt+1<at&&(An=Math.max((at-Wt)*zn+a.Aa,An)),te>st+1&&(An=Math.max((te-st)*zn+a.Aa,An)),me+tt+1<li&&(An=Math.max((li-me)*zn+a.Aa,An)),Wi=An.toString()+"px"),an&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(An=1,ne+1<Gi&&(An=Math.max((Gi-ne)*zn+a.ya,An)),Yt>ut+1&&(An=Math.max((Yt-ut)*zn+a.ya,An)),Me+rt+1<_n&&(An=Math.max((_n-Me)*zn+a.ya,An)),oe=An.toString()+"px")),An=Wi!=="1px",an=oe!=="1px",An&&an||!An&&!an||(an&&(st-=a.Db),An&&(ut-=a.Db),li<me+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Wt+1<at&&(tt=Math.max((at-Wt)*zn+a.Aa,tt)),te>st+1&&(tt=Math.max((te-st)*zn+a.Aa,tt)),me+1<li&&(tt=Math.max((li-me)*zn+a.Aa,tt)),Wi=tt.toString()+"px"),An=Wi!=="1px",tt=a.ya,An!==a.Be&&(tt=An?a.ya-a.Db:a.ya+a.Db),_n<Me+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,ne+1<Gi&&(rt=Math.max((Gi-ne)*zn+tt,rt)),Yt>ut+1&&(rt=Math.max((Yt-ut)*zn+tt,rt)),Me+1<_n&&(rt=Math.max((_n-Me)*zn+tt,rt)),oe=rt.toString()+"px"),an=oe!=="1px"),a.qr&&An===a.Be&&an===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(An!==a.Be&&(Wi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=An,bt.style.width=Wi,an!==a.gf&&(oe==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Qt.alloc(),an?(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)),Qt.free(rt))),z&&Gs(a),a.gf=an,bt.style.height=oe,a.gu=!0,z&&(a.pn=!0),y=Pt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(me+1<li?y=(a.position.x-Wt)*zn:Wt+1<at?y=Pt.scrollWidth-Pt.clientWidth:te>st+1&&(y=a.position.x*zn)),a.tn)switch(a.bu){case"negative":y=-(Pt.scrollWidth-y-Pt.clientWidth);break;case"reverse":y=Pt.scrollWidth-y-Pt.clientWidth}return Pt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Me+1<_n?Pt.scrollTop=(a.position.y-ne)*zn:ne+1<Gi?Pt.scrollTop=Pt.scrollHeight-Pt.clientHeight:Yt>ut+1&&(Pt.scrollTop=a.position.y*zn)),at=a.Aa,st=a.ya,Pt.style.width=at+(a.gf?a.Db:0)+"px",Pt.style.height=st+(a.Be?a.Db:0)+"px",x!==at||E!==st||a.animationManager.zb?(x=Xe.allocAt(b,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,zn,z),Xe.free(x),!1):!0}wt=pe.prototype,wt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&De("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&&De('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(ga,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},wt.oi=function(a){this.partManager.oi(a);var y=this;Yf(a,function(x){Il(y,x)}),(a instanceof Kr||a instanceof Vi&&a.placeholder!==null)&&a.v(),a.data!==null&&Yf(a,function(x){sy(y.partManager,x)}),Vl(a)!==!0&&vf(a)!==!0||this.De.add(a),IS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(Xf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Xf(a,a.actualBounds)),this.$b()},wt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Yf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(Xf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Xf(a,a.actualBounds)),this.$b()},wt.remove=function(a){aa(this,a,!0)};function aa(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Ka,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}wt.Is=function(a,y){if(y===void 0&&(y=!1),Ri(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new pn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},wt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},pe.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=Uo(this)),this.toolManager!==null){var b=new yi;if(a!==null)if(Ri(a))for(var z=0;z<a.length;z++)ca(this,b,a[z],x,E);else for(a=a.iterator;a.next();)ca(this,b,a.value,x,E);else{for(a=this.parts;a.next();)ca(this,b,a.value,x,E);for(a=this.nodes;a.next();)ca(this,b,a.value,x,E);for(a=this.links;a.next();)ca(this,b,a.value,x,E)}fs(this,b,y,E,x)}};function ca(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=Uo(a)),x instanceof Kn){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Vi&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)ca(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,at=tt.toNode;rt!==null&&y.contains(rt)&&at!==null&&y.contains(at)&&ca(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)ca(a,y,x.value,E,b)}else if(x instanceof En)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)ca(a,y,x.value,E,b);else x instanceof Kr||y.add(x,a.Pd(b,x,x.location))}function fs(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Qt.alloc(),tt=Qt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||uo(a,y);for(var rt=ki(),at=ki(),st=y.iterator,ut=Qt.alloc();st.next();){var ft=st.key,vt=st.value;if(ft.Zc()){var xt=Aa(a,ft,y);xt!==null?rt.push(new it(ft,vt,xt)):(!b||ft.canMove())&&(xt=vt.point,z.assign(xt),a.computeMove(ft,z.add(tt),E,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new Qt),vt.shifted.assign(ut.re(xt)))}else st.key instanceof En&&at.push(st.sa)}for(Qt.free(ut),b=rt.length,st=0;st<b;st++)ft=rt[st],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Qt),ft.node.location=z.add(ft.Su.shifted);for(b=Qt.alloc(),st=Qt.alloc(),ft=at.length,vt=0;vt<ft;vt++){var Pt=at[vt];if(xt=Pt.key,xt instanceof En)if(xt.suspendsRouting){xt.Tg=null,ut=xt.fromNode;var bt=xt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(bt=Pt.value.point,xt.dragComputation===null)y.add(xt,a.Pd(E,xt,tt)),Yd(xt,tt.x-bt.x,tt.y-bt.y);else{Pt=Qt.allocAt(0,0),(ut=xt.i(0))&&ut.w()&&Pt.assign(ut);var Yt=ut=Qt.alloc().assign(Pt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Yt=Qt.alloc(),Rl(a,xt,ut,Yt,E)),ut.assign(xt.dragComputation(xt,ut,Yt)).re(Pt),y.add(xt,a.Pd(E,xt,ut)),Yd(xt,ut.x-bt.x,ut.y-bt.y),Qt.free(Pt),Qt.free(ut),Yt!==ut&&Qt.free(Yt)}else ut!==null&&(b.assign(ut.location),Yt=y.I(ut),Yt!==null&&b.re(Yt.point)),bt!==null&&(st.assign(bt.location),Yt=y.I(bt),Yt!==null&&st.re(Yt.point)),ut!==null&&bt!==null?b.Xa(st)?(ut=Pt.value.point,bt=z,bt.assign(b),bt.re(ut),y.add(xt,a.Pd(E,xt,b)),Yd(xt,bt.x,bt.y)):(xt.suspendsRouting=!1,xt.bb()):(Pt=Pt.value.point,ut=ut!==null?b:bt!==null?st:tt,y.add(xt,a.Pd(E,xt,ut)),Yd(xt,ut.x-Pt.x,ut.y-Pt.y))}else(xt.fromNode===null||xt.toNode===null)&&(ut=Pt.value.point,y.add(xt,a.Pd(E,xt,tt)),Yd(xt,tt.x-ut.x,tt.y-ut.y))}Qt.free(z),Qt.free(tt),Qt.free(b),Qt.free(st),Bi(rt),Bi(at),x||(Xr(a),Er(a,y))}}pe.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Qt),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Qt.alloc(),Rl(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var 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),E.h(Math.max(rt,Math.min(x.x,st)),Math.max(tt,Math.min(x.y,at))),b!==y&&Qt.free(b),E};function Uo(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Rl(a,y,x,E,b){if(b===void 0&&(b=Uo(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var tt=b.gridSnapOrigin,rt=tt.x;if(tt=tt.y,b=b.gridSnapCellSpot,z!==null){var 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=Qt.allocAt(0,0),z.yi(0,0,a,y,b),xe.No(x.x,x.y,rt+z.x,tt+z.y,a,y,E),Qt.free(z)}}function uo(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof En&&(y.suspendsRouting=!0)}function Er(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof En&&(x.suspendsRouting=!1,Zv(x)&&x.bb())}a.Mr=!1}}function Aa(a,y,x){return y=y.containingGroup,y!==null&&(a=Aa(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}wt=pe.prototype,wt.Pd=function(a,y,x){if(x===void 0)return new zh(os);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new zh(new Qt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new zh(x.copy())};function Mr(a,y,x){if(y.diagram!==null&&y.diagram!==a&&De("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&De("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&De("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&De("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&De("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}wt.Al=function(a){Mr(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(ga,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},wt.Ww=function(a,y){Mr(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ka,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(ga,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},wt.Cy=function(a,y){Mr(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ka,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(ga,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},wt.kA=function(a){if(a.diagram!==this&&De("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Ka,"layers",this,a,null,x,null),this.N(),this.Ya()}}},wt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},wt.Yw=function(a){return this.pf===null&&(this.pf=new Ln),this.pf.add(a),this.model.Pe(a),this},wt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},wt.Pe=function(a){return this.zg===null&&(this.zg=new Ln),this.zg.add(a),this},wt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},wt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Bl&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},wt.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new ma;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=E,rt.oldParam=z,rt.newValue=b,rt.newParam=tt,this.ds(rt)},wt.g=function(a,y,x,E,b){this.cb(na,a,this,y,x,E,b)},pe.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===na){var b=a.object;if(ya(b,a.propertyName,a.I(y)),b instanceof se){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ga){var tt=a.object,rt=a.newParam,at=a.newValue;if(tt instanceof mn)if(typeof rt=="number"&&at instanceof se){y?tt.pc(rt):tt.Gb(rt,at);var st=tt.part;st!==null&&st.Wb()}else typeof rt=="number"&&at instanceof xs&&(at.isRow?hS(tt,rt,y?void 0:at):cS(tt,rt,y?void 0:at));else if(tt instanceof Rn){var ut=a.oldParam===!0;typeof rt=="number"&&at instanceof Ci&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),tt.pc(ut?rt:-1,at,ut)):tt.oi(rt,at,ut))}else tt instanceof pe?typeof rt=="number"&&at instanceof Rn&&(y?this.Wa.mb(rt):(at.Xe(this),this.Wa.Gb(rt,at))):De("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Ka){var ft=a.object,vt=a.oldParam,xt=a.oldValue;if(ft instanceof mn)typeof vt=="number"&&xt instanceof se?y?ft.Gb(vt,xt):ft.pc(vt):typeof vt=="number"&&xt instanceof xs&&(xt.isRow?hS(ft,vt,y?xt:void 0):cS(ft,vt,y?xt:void 0));else if(ft instanceof Rn){var Pt=a.newParam===!0;typeof vt=="number"&&xt instanceof Ci&&(y?0>ft.Pa.indexOf(xt)&&ft.oi(vt,xt,Pt):(xt.isSelected=!1,xt.isHighlighted=!1,xt.Wb(),ft.pc(Pt?vt:-1,xt,Pt)))}else ft instanceof pe?typeof vt=="number"&&xt instanceof Rn&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):De("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Bl&&De("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},pe.prototype.Ea=function(a){return this.undoManager.Ea(a)},pe.prototype.eb=function(a){return this.undoManager.eb(a)},pe.prototype.Kf=function(){return this.undoManager.Kf()},pe.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},pe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},pe.prototype.rp=function(){this.partManager.rp()};function Wr(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Gs(a),a.N(),a.Ee=!0,E.zb&&(ih(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Gs(a);else{a.vb=!0;var b=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($u)?rt=0:st.Hf(sl)&&(rt=z-1):rt=st.sb()?st.x*(z-1):z/2),isNaN(at)&&(st.$c()?st.Hf(qh)?at=0:st.Hf(Iu)&&(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=Qt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+at/y-at/x),a.position=z,Qt.free(z),a.Ca=x,Gs(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),nr(a,!1),E.zb&&(ih(E)||E.ce.add(E.H,"scale",y,a.Ca))}}pe.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==rl||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof ia&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),zf(b,this)),this.vb||this.invalidateViewport(a,y),Za(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Za(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=un.alloc(),b=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||(pv(st.figure)?z=z*ut/xe.vx(z,ut):b=b*ut/xe.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=Xe.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Xe.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,Xe.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Qt.alloc(),xe.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),un.free(E),x.part.location=y,Qt.free(y)}}pe.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},pe.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))},pe.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Ri(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Ci||De("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Ci||De("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},pe.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},wt=pe.prototype,wt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},wt.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 Ci||De("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},wt.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Qt.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),Qt.free(z);return}De("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):De("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Qt.free(z)},wt.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)},wt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},wt.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)},wt.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,tt=y.m11,rt=y.m12,at=y.m21,st=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+E*at+ut;y=x*rt+E*st+ft;var xt=b*tt+E*at+ut;return a=b*rt+E*st+ft,E=x*tt+z*at+ut,x=x*rt+z*st+ft,tt=b*tt+z*at+ut,b=b*rt+z*st+ft,z=Math.min(vt,xt),vt=Math.max(vt,xt),xt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),vt=Math.max(vt,E),xt=Math.min(xt,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),xt=Math.min(xt,b),y=Math.max(y,b),new Xe(z,xt,vt-z,y-xt)},wt.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),Ma(a.copy(),this.Ab)};function Es(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ls(a){return a=yh.get(a),a!==null?new a:new Lo}pe.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Bl&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=b}),a.mouseMoveTools.each(function(at){return at.diagram=b}),a.mouseUpTools.each(function(at){return at.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Bl){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Xr(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||mu(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(Es(this),this.As.clear(),jc(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Yi(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function Il(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)Xs(a,y[E])}function Xs(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 E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Vu(a,y){if(y instanceof au){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof pn&&x.Bg.remove(a),Hg(E));break}}}}}pe.prototype.Wd=function(){this.partManager.Wd()},pe.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},pe.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},pe.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},pe.prototype.Vb=function(a){return this.partManager.Vb(a)},pe.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},wt=pe.prototype,wt.Lc=function(a){return this.partManager.Lc(a)},wt.ii=function(a){return this.partManager.ii(a)},wt.Kc=function(a){return this.partManager.Kc(a)},wt.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:xn(Ye(y)))},wt.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:xn(Ye(y)))};function Gs(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 ku(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),nr(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}wt.Va=function(){if(this.Zi){var a=Xe.alloc();ku(this,this.computeBounds(a)),Xe.free(a)}},wt.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},wt.qz=function(){return this.ai.iterator},wt.Uz=function(a){Xr(this),a&&Do(this,!0),this.ld?Ts(this,!1):(this.Jk=!0,jo(this))};function Do(a,y){for(var x=a.ai.iterator;x.next();)Ua(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Ua(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)Ua(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ts(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Lu(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)fl(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),Xr(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||mu(z),a.aa=x}}}function fl(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)fl(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Yo(a,y),b.isValidLayout=!0):a.xh=!0)}}wt.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 vh(a){function y(b){var z=b.toLowerCase(),tt=new Ln;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new yi,E=new yi;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function Cc(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Ac(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;De("Unknown DiagramEvent name: "+y)}wt.Bj=function(a,y){return a=Ac(this,a),a!==null&&a.add(y),this},wt.am=function(a,y){a=Ac(this,a),a!==null&&a.remove(y)},wt.R=function(a,y,x){var E=Ac(this,a),b=new ju;if(b.diagram=this,a=Cc(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function Ec(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}wt.Yj=function(a,y){return fd(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},pe.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?kr(this,a):a.assign(this.documentBounds)};function fd(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new Ip(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=jf(a,x)),x===null){y=Xe.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&Dd(a,tt,E,y)}Xe.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=Xe.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Kn&&Dd(a,tt,E,y);Xe.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&r1(b);return b}function jf(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?jf(a,y.containingGroup):null}function Dd(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Zg(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Zd,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Zd}else if(y instanceof Vi)for(y=y.memberParts;y.next();)b=y.value,b instanceof Kn&&Dd(a,b,x,E)}}function Rh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}pe.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Od(this)};function Od(a){a.vk===-1&&(a.vk=Yi(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=Xe.alloc(),a.computeBounds(y),y.ed(a.documentBounds),ku(a,y),Xe.free(y),a.Fc=!0,a.bd(),Od(a))}},a.vp))}pe.prototype.ug=function(){this.vk!==-1&&(ze.clearTimeout(this.vk),this.vk=-1)},pe.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=Xe.allocAt(0,0,E.width*b,E.height*b);var z=Qt.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<E.x+x.left/2&&(z.x-=tt),a.x<E.x+x.left/4&&(z.x-=4*tt)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<E.y+x.top/2&&(z.y-=tt),a.y<E.y+x.top/4&&(z.y-=4*tt)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(os)||(y=new Qt(y.x+z.x/b,y.y+z.y/b)),Xe.free(E),Qt.free(z),y},wt=pe.prototype,wt.Cs=function(){return null},wt.av=function(){return null},wt.bs=function(a,y){this.pj.add(a,y)},wt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Vi&&(y.$p=null)})};function gd(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-st>at?y(x,b,rt):ze.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var rt=a,at=x.callbackTimeout||300,st=+new Date;return ze.requestAnimationFrame(function(){E()}),null}wt.Wz=function(a){return sa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},wt.Jx=function(a){return a===void 0&&(a={}),gd(this,this.Xz,a)},wt.Xz=function(a,y,x){var E=gf(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Vc+"data":b=E.getImageData(0,0,x.width,x.height);break;case Vc:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&De('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function gf(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&De("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new un(1/0,1/0):new un(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,xt=y.elementFinished||null,Pt=y.showTemporary;Pt===void 0&&(Pt=!ft),y=y.showGrid,y===void 0&&(y=Pt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof st=="number"?st=new $i(st):st instanceof $i||De("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 xh(null,vt,void 0,!0);var bt=ft.context;if(!(b||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"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,es(a,E.context,st,new un(ft.width,ft.height),a.Ca,a.pa,at,ut,Pt,y),E.context):(a.Xm=!1,es(a,bt,st,new un(ft.width,ft.height),a.Ca,a.pa,at,ut,Pt,y),a.Xm=!0,ft.context);var Yt=a.Pp,Wt=a.documentBounds.copy();if(Wt.Fv(a.yb),Pt)for(var te=a.Wa.s,ne=te.length,oe=0;oe<ne;oe++){var me=te[oe];if(me.visible&&me.isTemporary){me=me.Pa.s;for(var Me=me.length,zn=0;zn<Me;zn++){var li=me[zn];li.isInDocumentBounds&&li.isVisible()&&(li=li.actualBounds,li.w()&&Wt.ed(li))}}}if(te=new Qt(Wt.x,Wt.y),at!==null){for(ne=new Xe(0,0,0,0),oe=!0,me=at.iterator,me.reset();me.next();)Me=me.value,Me instanceof Ci&&(zn=Me.layer,zn!==null&&!zn.visible||zn!==null&&!Pt&&zn.isTemporary||!Me.isVisible()||(Me=Me.actualBounds,Me.w()&&(oe?(oe=!1,ne.assign(Me)):ne.ed(Me))));Wt.width=ne.width,Wt.height=ne.height,te.x=ne.x,te.y=ne.y}return rt!==null&&rt.w()&&(te=rt,z||(z=Yt)),ne=rt=0,st!==null&&(rt=st.left+st.right,ne=st.top+st.bottom),oe=me=0,b!==null&&(me=b.width,oe=b.height,isFinite(me)&&(me=Math.max(0,me-rt)),isFinite(oe)&&(oe=Math.max(0,oe-ne))),b!==null&&z!==null?(z==="NaN"&&(z=Yt),b.w()?(b=me,Wt=oe):isNaN(oe)?(b=me,Wt=Wt.height*z):(b=Wt.width*z,Wt=oe)):b!==null?b.w()?(z=Math.min(me/Wt.width,oe/Wt.height),b=me,Wt=oe):isNaN(oe)?(z=me/Wt.width,b=me,Wt=Wt.height*z):(z=oe/Wt.height,b=Wt.width*z,Wt=oe):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Wt.width,(tt.height-ne)/Wt.height),z>Yt?(z=Yt,b=Wt.width,Wt=Wt.height):(b=tt.width,Wt=tt.height)):(b=Wt.width*z,Wt=Wt.height*z):(z=Yt,b=Wt.width,Wt=Wt.height),st!==null?(b+=rt,Wt+=ne):st=new $i(0),tt!==null&&(Yt=tt.width,tt=tt.height,isNaN(Yt)&&(Yt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Yt)&&(b=Math.min(b,Yt)),isFinite(tt)&&(Wt=Math.min(Wt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Wt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,es(a,E.context,st,new un(Math.ceil(b),Math.ceil(Wt)),z,te,at,ut,Pt,y),E.context):(a.Xm=!1,es(a,bt,st,new un(Math.ceil(b),Math.ceil(Wt)),z,te,at,ut,Pt,y),a.Xm=!0,ft.context)}Ze.Object.defineProperties(pe.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 bc(this,ze.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 bc(this,ze.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(ze,"resize",this.Ov,!1),this.removeEventListener(ze,"wheel",this.$j,!0),er===this&&(er=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Cr(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)&&Ui(a,"0 <= value <= 1",pe,"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),nr(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),nr(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),nr(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),nr(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ui(a,">= 0",pe,"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&&Ui(a,">= 0",pe,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Ui(a,">= 0",pe,"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||Es(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&&De("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Gr(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Lu(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=Ls(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(ze,"pointermove",this.dk,!0),this.addEventListener(ze,"pointerdown",this.ui,!0),this.addEventListener(ze,"pointerup",this.fk,!0),this.addEventListener(ze,"pointerout",this.ek,!0),this.addEventListener(ze,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ze,"wheel",this.$j,!0),this.addEventListener(ze,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ze,"pointermove",this.dk,!0),this.removeEventListener(ze,"pointerdown",this.ui,!0),this.removeEventListener(ze,"pointerup",this.fk,!0),this.removeEventListener(ze,"pointerout",this.ek,!0),this.removeEventListener(ze,"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(ze,"wheel",this.$j,!0),this.removeEventListener(ze,"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=Qt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ic(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Gs(this):(this.vb=!0,a=this.scale,Go(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)}Qt.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=yo(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=yo(this)),a.type!==mn.Grid&&De("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),Za(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),Gs(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||De("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 $i(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===oc&&nr(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,nr(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,Wr(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&&Wr(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!==rl&&nr(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()||De("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()||De("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)):Ui(a,"> 0",pe,"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)):Ui(a,"> 0",pe,"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),nr(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 $i(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&&De("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();)Mp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==ac&&a!==ns&&a!==zd&&De("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 un(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 $i(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ze.Object.defineProperties(pe,{licenseKey:{get:function(){return pf.jc()},set:function(a){pf.add(a.replace(/\s/g,""))}},version:{get:function(){return Kc}}}),pe.prototype.makeImageData=pe.prototype.Jx,pe.prototype.makeImage=pe.prototype.Wz,pe.prototype.cacheGroupExternalLinks=pe.prototype.Fu,pe.prototype.addRenderer=pe.prototype.bs,pe.prototype.makeSVG=pe.prototype.av,pe.prototype.makeSvg=pe.prototype.Cs,pe.prototype.stopAutoScroll=pe.prototype.ug,pe.prototype.doAutoScroll=pe.prototype.gs,pe.prototype.isUnoccupied=pe.prototype.Yj,pe.prototype.raiseDiagramEvent=pe.prototype.R,pe.prototype.removeDiagramListener=pe.prototype.am,pe.prototype.addDiagramListener=pe.prototype.Bj,pe.prototype.findTreeRoots=pe.prototype.yz,pe.prototype.layoutDiagram=pe.prototype.Uz,pe.prototype.findTopLevelGroups=pe.prototype.qz,pe.prototype.findTopLevelNodesAndLinks=pe.prototype.rz,pe.prototype.ensureBounds=pe.prototype.Va,pe.prototype.findLinksByExample=pe.prototype.ls,pe.prototype.findNodesByExample=pe.prototype.ms,pe.prototype.findLinkForData=pe.prototype.Kc,pe.prototype.findNodeForData=pe.prototype.ii,pe.prototype.findPartForData=pe.prototype.Lc,pe.prototype.findLinkForKey=pe.prototype.findLinkForKey,pe.prototype.findNodeForKey=pe.prototype.Vb,pe.prototype.findPartForKey=pe.prototype.findPartForKey,pe.prototype.rebuildParts=pe.prototype.Wd,pe.prototype.transformViewToDoc=pe.prototype.Ps,pe.prototype.transformRectDocToView=pe.prototype.zA,pe.prototype.transformDocToView=pe.prototype.op,pe.prototype.centerRect=pe.prototype.es,pe.prototype.scrollToRect=pe.prototype.tv,pe.prototype.scroll=pe.prototype.scroll,pe.prototype.highlightCollection=pe.prototype.Jz,pe.prototype.highlight=pe.prototype.Iz,pe.prototype.selectCollection=pe.prototype.rA,pe.prototype.select=pe.prototype.select,pe.prototype.updateAllRelationshipsFromData=pe.prototype.rp,pe.prototype.updateAllTargetBindings=pe.prototype.updateAllTargetBindings,pe.prototype.commit=pe.prototype.commit,pe.prototype.rollbackTransaction=pe.prototype.Kf,pe.prototype.commitTransaction=pe.prototype.eb,pe.prototype.startTransaction=pe.prototype.Ea,pe.prototype.raiseChanged=pe.prototype.g,pe.prototype.raiseChangedEvent=pe.prototype.cb,pe.prototype.removeChangedListener=pe.prototype.ik,pe.prototype.addChangedListener=pe.prototype.Pe,pe.prototype.removeModelChangedListener=pe.prototype.mA,pe.prototype.addModelChangedListener=pe.prototype.Yw,pe.prototype.findLayer=pe.prototype.Qj,pe.prototype.removeLayer=pe.prototype.kA,pe.prototype.addLayerAfter=pe.prototype.Cy,pe.prototype.addLayerBefore=pe.prototype.Ww,pe.prototype.addLayer=pe.prototype.Al,pe.prototype.moveParts=pe.prototype.moveParts,pe.prototype.copyParts=pe.prototype.Kj,pe.prototype.removeParts=pe.prototype.Is,pe.prototype.remove=pe.prototype.remove,pe.prototype.add=pe.prototype.add,pe.prototype.clearDelayedGeometries=pe.prototype.bx,pe.prototype.setProperties=pe.prototype.nm,pe.prototype.attach=pe.prototype.Du,pe.prototype.set=pe.prototype.set,pe.prototype.resetInputOptions=pe.prototype.Sx,pe.prototype.setInputOption=pe.prototype.sA,pe.prototype.getInputOption=pe.prototype.Ql,pe.prototype.resetRenderingHints=pe.prototype.Tx,pe.prototype.setRenderingHint=pe.prototype.Xx,pe.prototype.getRenderingHint=pe.prototype.Gf,pe.prototype.maybeUpdate=pe.prototype.bd,pe.prototype.requestUpdate=pe.prototype.$b,pe.prototype.delayInitialization=pe.prototype.Xy,pe.prototype.isUpdateRequested=pe.prototype.Pz,pe.prototype.invalidateDocumentBounds=pe.prototype.Ya,pe.prototype.findObjectsNear=pe.prototype.og,pe.prototype.findPartsNear=pe.prototype.mz,pe.prototype.findObjectsIn=pe.prototype.Cf,pe.prototype.findPartsIn=pe.prototype.ux,pe.prototype.findObjectsAt=pe.prototype.ji,pe.prototype.findPartsAt=pe.prototype.lz,pe.prototype.findObjectAt=pe.prototype.ic,pe.prototype.findPartAt=pe.prototype.Ol,pe.prototype.focusObject=pe.prototype.zz,pe.prototype.alignDocument=pe.prototype.Jy,pe.prototype.zoomToRect=pe.prototype.BA,pe.prototype.zoomToFit=pe.prototype.zoomToFit,pe.prototype.diagramScroll=pe.prototype.kx,pe.prototype.focus=pe.prototype.focus;var yh=new yi,Rd=null,sa=ze.document!==void 0,Wc=null,rc="",rl=new We(pe,"None",0),El=new We(pe,"Uniform",1),Lc=new We(pe,"UniformToFill",2),Mc=new We(pe,"CycleAll",10),Ih=new We(pe,"CycleNotDirected",11),Hc=new We(pe,"CycleNotDirectedFast",12),Gc=new We(pe,"CycleNotUndirected",13),pd=new We(pe,"CycleDestinationTree",14),Id=new We(pe,"CycleSourceTree",15),oc=new We(pe,"DocumentScroll",1),kc=new We(pe,"InfiniteScroll",2),ac=new We(pe,"TreeParentCollapsed",21),ns=new We(pe,"AllParentsCollapsed",22),zd=new We(pe,"AnyParentsCollapsed",23),pf=new Ln,Kc="2.3.10",Vc="image",md=null,Wf=!1;function Js(){if(sa){var a=ze.document.createElement("canvas"),y=a.getContext("2d"),x=or("7ca11abfd022028846");y[x]=or("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",yn.Dx+"4ae6247590da4bb21c324ba3a84e385776",rr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",xe.za],b=1;5>b;b++)y[or("7ca11abfd7330390")](or(E[b-1]),10,15*b);for(y[x]=or("39f046ebb36e4b"),x=1;5>x;x++)y[or("7ca11abfd7330390")](or(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(rr.prototype.Cd=rr.prototype.Eu),md=a}}pe.className="Diagram",pe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ze.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof pe?y.H:null},pe.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},pe.useDOM=function(a){sa=a?ze.document!==void 0:!1},pe.isUsingDOM=function(){return sa},pe.None=rl,pe.Uniform=El,pe.UniformToFill=Lc,pe.CycleAll=Mc,pe.CycleNotDirected=Ih,pe.CycleNotDirectedFast=Hc,pe.CycleNotUndirected=Gc,pe.CycleDestinationTree=pd,pe.CycleSourceTree=Id,pe.DocumentScroll=oc,pe.InfiniteScroll=kc,pe.TreeParentCollapsed=ac,pe.AllParentsCollapsed=ns,pe.AnyParentsCollapsed=zd;function Hf(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Yc(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=ze[or("76a715b2f73f148a")][or("72ba13b5")]||"";if(a.Rc=!0,sa){var E=pe[or("76a115b6ed251eaf4692")];if(E)for(var b=pf.iterator;b.next()&&(E=b.value,E=or(E).split(or("39e9")),!(6>E.length));){var z=or(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=or(yn[or("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ze[or("74a900bae4370f8b51")][or("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[or("73a612b6fb191d")](or("3aad1ab6e022098b4dc4")),z=or(E[2]),-1<tt&&(rt=rt[or("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[or("76ad18b4f73e")],rt=x[or("73a612b6fb191d")](or("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[or("73a612b6fb191d")](z),0>tt&&z!==or("7da71ca0ad381e90")&&(tt=y[or("73a612b6fb191d")](or("76a715b2ef3e149757"))),0>tt&&(tt=y[or("73a612b6fb191d")](or("76a715b2ef3e149757"))),0>tt&&(tt=y[or("73a612b6fb191d")](or("2bfa41fdb3784bca12"))),0>tt&&(tt=x[or("73a612b6fb191d")](or("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[or("73a612b6fb191d")](or("35"))||y[or("73a612b6fb191d")](or("35"))===-1),!a.Rc||x[or("73a612b6fb191d")](or("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[or("73a612b6fb191d")](z)),!a.Rc)||(tt=ze[or("76a715b2f73f148a")][or("69ad17a1e03e")],rt=tt[or("73a612b6fb191d")](or("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[or("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=ze.document.createElement("div");for(var at=E[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(rt=at,at=at.substr(at.length-4),E="",E+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],tt[or("79a417a0f0181a8946")]=E,ze.document[or("78a712aa")]){ze.document[or("78a712aa")][or("7bb806b6ed32388c4a875b")](tt),at=ze.getComputedStyle(tt).getPropertyValue(or("78a704b7e62456904c9b12701b6532a8"));var st=ze.getComputedStyle(tt).getPropertyValue(or("75b817b0ea2202"));if(ze.document[or("78a712aa")][or("68ad1bbcf533388c4a875b")](tt),at){if(tt=ze[or("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(or("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(E===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[or("76ad18b4f73e")],b=x[or("73a612b6fb191d")](or("35e7"))+2;b<ut;b++)y+=x[b];x=y[or("73a612b6fb191d")](or("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[or("73a612b6fb191d")](or("35")))}}}return 0<a.Rc&&a!==a.wy}Hf.className="DiagramHelper";function zh(a){this.j=a===void 0?new Qt:a,this.o=new Qt}Ze.Object.defineProperties(zh.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 vd="DraggingInfo";zh.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 un(NaN,NaN).freeze(),this.gridSnapCellSpot=bs,this.gridSnapOrigin=new Qt(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"||ze.Element&&a instanceof Element)var x=pe.call(this,a)||this;else x=pe.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}we(ct,pe);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=_u,a.layout=new _s}ct.prototype.reset=function(){pe.prototype.reset.call(this),dt(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||ze.Element&&a instanceof Element)var x=pe.call(this,a)||this;else x=pe.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Ci;var b=new qi;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new $i(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ut,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,rt=E.lastInput.documentPoint;z.position=new Qt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){E.Ya(),Rt(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Rt(E)},x.autoScale=El,x.vb=!1,y&&Object.assign(x,y),x}we(pt,pe),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(Wo(this),this.ql===null){var x=new xh(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Et(this)}finally{this.ta=a,this.ib=y}}}pe.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&De("No div specified"),this.ta===null&&De("No canvas specified"),!(this.ta instanceof bc)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Wo(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Et(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Et(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=Xe.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Za(y,b),Xe.free(b),Xr(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],at=a;if(rt.visible&&rt.opacity!==0){var st=rt.diagram.grid.part;if(!x&&rt.isTemporary)E&&st.layer===rt&&(rt=ei(rt,b),st.gc(b,at),b.globalAlpha=rt);else{for(var ut=ei(rt,b),ft=at.scale,vt=Xe.alloc(),xt=rt.Pa.s,Pt=xt.length,bt=0;bt<Pt;bt++){var Yt=xt[bt];(E||Yt!==st)&&rt.Oj(b,Yt,at,null,ft,vt,!1)}Xe.free(vt),b.globalAlpha=ut}}}}}function Rt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=un.alloc();b.h(x.width,x.height),E.desiredSize=b,un.free(b),a=2/a.scale,E instanceof qi&&(E.strokeWidth=a),y.location=new Qt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Oo;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,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Rt(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},Ze.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&De("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Rt(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),Rt(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 Ut(){xa.call(this),this.j=null}we(Ut,xa),Ut.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Qt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Qt(a.x-this.j.x,a.y-this.j.y)),!0)},Ut.prototype.doActivate=function(){this.j=null,xa.prototype.doActivate.call(this)},Ut.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ut.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new Qt(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Qt(a.x-this.j.x,a.y-this.j.y)}}},Ut.className="OverviewDraggingTool";function Vt(){vo(this),this.H=er,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=Oo,this.hb=!0,this.cg=null,this.ob=200}Vt.prototype.toString=function(){return"CommandHandler"},Vt.prototype.Xe=function(a){this.H=a},Vt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=gs?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Vt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Vt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ia&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Vt.prototype.canStopCommand=function(){return!0},Vt.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Vt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Vt.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(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Vt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Vt.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)},Vt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Vt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Vt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Vt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Wc=null,rc="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new Ln,x.addAll(z),Wc=x,rc=y.model.dataFormat}}y.R("ClipboardChanged",x)},Vt.prototype.pasteFromClipboard=function(){var a=new pn,y=Wc;if(y===null)return a;var x=this.diagram;if(rc!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,tt=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=tt.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},Vt.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);fs(y,z,new Qt(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Vt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Wc===null||Wc.count===0||rc!==a.model.dataFormat)},Vt.prototype.undo=function(){this.diagram.undoManager.undo()},Vt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Vt.prototype.redo=function(){this.diagram.undoManager.redo()},Vt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Vt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===rl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Vt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==rl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Vt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===rl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Vt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==rl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Vt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Vt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Vt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Lu(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Oo):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),mu(y)},Vt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Vt.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;Lu(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=ae(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=b.pop();0<b.length&&at instanceof Kn&&at.isTreeExpanded&&(!(at instanceof Vi)||at.isSubGraphExpanded);)at=b.pop();0<b.length?(at instanceof Ci&&y.tv(at.actualBounds),at instanceof Kn&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Vi&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Ci&&y.es(at.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Yi(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function ae(a,y,x){if(y.isVisible())return x;if(y instanceof Kr)ae(a,y.adornedPart,x);else if(y instanceof En){var E=y.fromNode;E!==null&&ae(a,E,x),y=y.toNode,y!==null&&ae(a,y,x)}else y instanceof Kn&&(E=y.labeledLink,E!==null&&ae(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),ae(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),ae(a,y,x));return x}Vt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Ci)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Vt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Lu(y.animationManager,"Collapse Tree");var x=new Ln;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Kn&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Vt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Kn&&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 Kn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Vt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Lu(y.animationManager,"Expand Tree");var x=new Ln;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Kn&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Vt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Kn)||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 Kn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Vt.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new Ln,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var rt=new Ln,at=b.iterator;at.next();){var st=at.value;z=!1;for(var ut=b.iterator;ut.next();)if(st.Td(ut.value)){z=!0;break}z||rt.add(st)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){b=!1;for(var vt=rt.iterator;vt.next();)if(!vt.value.Td(ft)){b=!0;break}if(b)ft=ft.containingGroup;else break}if(x instanceof Vi)wh(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var xt=y.copyNodeData(x);Cn(xt)&&(y.xf(xt),E=a.ii(xt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var Pt=rt.iterator;Pt.next();){var bt=Pt.value;this.isValidMember(E,bt)&&(bt.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Vt.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function be(a){var y=ki();for(a=a.iterator;a.next();){var x=a.value;x instanceof En||y.push(x)}a=new pn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,tt=0;tt<x;tt++)if(b.Td(y[tt])){z=!1;break}z&&a.add(b)}return Bi(y),a}Vt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof En)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},Vt.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new Ln;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Vi&&z.canUngroup()&&E.add(z)}var tt=new Ln;if(0<E.count){y.clearSelection(!0);for(var rt=E.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 En)){var xt=vt.data;xt!==null?x.mp(xt,ut):vt.containingGroup=st}}y.remove(at)}}y.R("SelectionUngrouped",E,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Vt.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 Vi))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Vi&&y.canUngroup())return!0;return!1},Vt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=be(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Vt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Lu(y.animationManager,"Collapse SubGraph");var x=new Ln;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Vi&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Vt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Vi&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Vi&&y.isSubGraphExpanded)return!0;return!1},Vt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Lu(y.animationManager,"Expand SubGraph");var x=new Ln;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Vi&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Vt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Vi&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Vi&&!y.isSubGraphExpanded)return!0;return!1},Vt.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Jo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Vt.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Jo))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Jo&&x.editable}),a!==null))return!0;return!1},Vt.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof se?b=a.ga(no):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Qt(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,As(x,!1,a)}},Vt.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)},Vt.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new yi,a===null)return E;for(var z=a.iterator;z.next();)ca(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof En&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},Ze.Object.defineProperties(Vt.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||De("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}}}),Vt.className="CommandHandler",dr=function(){return new Vt};function se(){vo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Qt(NaN,NaN).freeze(),this.jd=xl,this.Ab=new rr,this.wh=new rr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Fl,this.uc=new Xe(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Xe(NaN,NaN,NaN,NaN).freeze(),this.dc=new Xe(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Is,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 _e,qe,Jn,vi,Ti,Zi,br,ur,Ir,Bo;se.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=ro(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},se.prototype.Vw=function(a){var y=this.Dh;if(Ri(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},se.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},se.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},se.prototype.copy=function(){return this.clone()},wt=se.prototype,wt.qb=function(a){a.classType===En?a.name.indexOf("Orient")===0?this.segmentOrientation=a:De("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===se&&(this.stretch=a)},wt.toString=function(){return Hi(this.constructor)+"#"+Ia(this)},wt.th=function(){this.A!==null&&(this.A.nc=!0)};function lr(a){a.A===null?a.A=new lg:a.A.nc&&(a.A=a.A.copy())}wt.Xc=function(){if(this.ba===null){var a=new mp;a.Xi=ms,a.yj=ms,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},wt.cb=function(a,y,x,E,b,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,E,b,z,tt),x===this&&a===na&&ol(this)&&da(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 yi),tt=z.undoManager.transactionLevel===0,a.startCondition===Nn?tt=!0:a.startCondition===Vn&&(tt=!1),tt?(z=new Ce,hi(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Lu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof mn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)rt=x[b],rt instanceof mn&&Yf(rt,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function da(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,tt=null;if(z.sourceName!==null){if(tt=L1(z,E,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,E)}else{if(rt=E.data,rt===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,rt,x,E)}tt===a&&(rt=E.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}wt.ks=function(a){return this.bindingId===a?this:null},wt.g=function(a,y,x){this.cb(na,a,this,y,x)},wt.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new rr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function Ds(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}wt.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?Ja(a.x,a.y,0,0,0,E.height)<=y||Ja(a.x,a.y,0,E.height,E.width,E.height)<=y||Ja(a.x,a.y,E.width,E.height,E.width,0)<=y||Ja(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},wt.se=function(){return!0},wt.ca=function(a){var y=Qt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Qt.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;E=this.Df()*E.scale;var at=1/E;if(rt.width*E<b&&rt.height*E<b)return a=Ps(x.x-tt*at,x.y-tt*at,x.width+z*at,x.height+z*at,y.x,y.y),Qt.free(y),a}return b=!1,(this instanceof Kr||this instanceof qi?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)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),Qt.free(y),b},wt.gh=function(a){var y=this.naturalBounds;return Ps(0,0,y.width,y.height,a.x,a.y)},wt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Xe.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Qt.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),Qt.free(b),Xe.free(y),E},wt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Qt.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),Qt.free(b),E},wt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Qt.allocAt(0,0),b=Qt.allocAt(0,x.height),z=Qt.allocAt(x.width,x.height),tt=Qt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=Xe.allocAt(0,0,x.width,x.height);var at=Qt.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)))),Qt.free(at),Xe.free(x),!rt&&(xe.us(a,E,b)||xe.us(a,b,z)||xe.us(a,z,tt)||xe.us(a,tt,E))&&(rt=!0)}return Qt.free(E),Qt.free(b),Qt.free(z),Qt.free(tt),rt},wt.ga=function(a,y){if(y===void 0&&(y=new Qt),a instanceof wi){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},wt.mi=function(a){a===void 0&&(a=new Xe);var y=this.naturalBounds,x=this.oe,E=Qt.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),ja(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),ja(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),ja(a,E.x,E.y,0,0),Qt.free(E),a},wt.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},wt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},wt.qs=function(a,y){return y===void 0&&(y=new Qt),y.assign(a),this.oe.Cd(y),y},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,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,xe.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*rt+y*st+ft,a=a*at+y*ut+vt,y=x*rt+E*st+ft,x=x*at+E*ut+vt,b.h(0,0),E=this.naturalBounds,x=xe.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},se.prototype.measure=function(a,y,x,E){if(Uu(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var rt=this instanceof mn;switch(ru(this,!0)){case qe:tt=b=0,rt&&(y=a=1/0);break;case _e:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case vi:isFinite(a)&&a>x&&(b=a),tt=0,rt&&(y=1/0);break;case Ti:isFinite(y)&&y>E&&(tt=y),b=0,rt&&(a=1/0)}rt=this.maxSize;var at=this.minSize;b>rt.width&&at.width<rt.width&&(b=rt.width),tt>rt.height&&at.height<rt.height&&(tt=rt.height),x=Math.max(b,at.width),E=Math.max(tt,at.height),rt.width<x&&(x=Math.min(at.width,x)),rt.height<E&&(E=Math.min(at.height,E)),a=Math.min(rt.width,a),y=Math.min(rt.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||De("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ss(this,!1)}},se.prototype.Wl=function(){},se.prototype.Dd=function(){return!1},se.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=Xe.alloc();z.assign(this.Ib),this.Ib.ka(),Vl(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&Hd(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Jo&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||De("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Uc(this,!1),Xe.free(z)},wt=se.prototype,wt.eh=function(){};function zl(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=ru(a,!0),x===E&&z===b&&(y=qe),y){case qe:(x>E||z>b)&&(Ss(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case _e:Ss(a,!0),a.measure(E,b,0,0);break;case vi:Ss(a,!0),a.measure(E,z,0,0);break;case Ti:Ss(a,!0),a.measure(x,b,0,0)}}}wt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),as(a,y)||(x.oh(),this.Pn(x)))},wt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Kn&&KS(a,this))},wt.gc=function(a,y){if(!rh(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof mn&&Hd(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&&(Xa(this,a,st,!0,!0,at,rt),st instanceof Co&&st.type===sh?(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&&(Xa(this,a,ut,!0,!1,at,rt),ut instanceof Co&&ut.type===sh?(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&&Qs(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 xt=this.naturalBounds;vt=this.wh;var Pt=vt.m11,bt=vt.m21,Yt=vt.dx,Wt=vt.m12,te=vt.m22,ne=vt.dy,oe,me=oe=0;vt=oe*Pt+me*bt+Yt;var Me=oe*Wt+me*te+ne;oe=xt.width+ft,me=0;var zn=oe*Pt+me*bt+Yt;oe=oe*Wt+me*te+ne,me=Math.min(vt,zn);var li=Math.min(Me,oe),_n=Math.max(vt+0,zn)-me,An=Math.max(Me+0,oe)-li;vt=me,Me=li,oe=xt.width+ft,me=xt.height+ft,zn=oe*Pt+me*bt+Yt,oe=oe*Wt+me*te+ne,me=Math.min(vt,zn),li=Math.min(Me,oe),_n=Math.max(vt+_n,zn)-me,An=Math.max(Me+An,oe)-li,vt=me,Me=li,oe=0,me=xt.height+ft,zn=oe*Pt+me*bt+Yt,oe=oe*Wt+me*te+ne,me=Math.min(vt,zn),li=Math.min(Me,oe),_n=Math.max(vt+_n,zn)-me,An=Math.max(Me+An,oe)-li,vt=me,Me=li,ft=y.viewportBounds,xt=ft.x,Pt=ft.y,vt=!(vt>ft.width+xt||xt>_n+vt||Me>ft.height+Pt||Pt>An+Me)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof Jo&&(a.font=this.font),vt){if(Me=rt.se()?rt.naturalBounds:rt.actualBounds,_n=Math.max(tt.x,Me.x),An=Math.max(tt.y,Me.y),ft=Math.min(tt.right,Me.right)-_n,xt=Math.min(tt.bottom,Me.bottom)-An,Pt=this.tb,Pt!==null&&(_n=Pt.x,An=Pt.y,ft=Pt.width,xt=Pt.height),_n>tt.width+tt.x||tt.x>Me.width+Me.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(_n,An,ft,xt),a.clip()}if(ut){if(!st.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}at&&(Me=st.shadowOffset,a.Ev(Me.x*y.scale*this.scale*y.Mb,Me.y*y.scale*this.scale*y.Mb,st.shadowBlur),yd(a),a.shadowColor=st.shadowColor)}at&&this.shadowVisible===!0?yd(a):at&&this.shadowVisible===!1&&Zc(a),st=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Yu(this,a,st,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&Ks(this,rt)&&this.shadowVisible===null&&Zc(a),this.Ma!==null&&(a.yc(),vu(this,a,st,tt)),at&&(this.Ma!==null||this.areaBackground!==null||Ks(this,rt))?(jh(this,!0),this.shadowVisible===null&&Zc(a)):jh(this,!1),this.hh(a,y),at&&this.l&512&&yd(a),ut&&at&&Zc(a),vt&&(a.restore(),a.Vc(this instanceof mn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Ks(a,y){return y===null?!1:(Hd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===mn.Auto||y.type===mn.Spot)&&y.Pb()!==a)}wt.Dv=function(){};function Yu(a,y,x,E){Xa(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof Co&&a.areaBackground.type===sh?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function vu(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,rt=x.width+b,at=x.height+b;Xa(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof Co&&a.Ma.type===sh?(y.beginPath(),y.rect(z-b/2,tt-b/2,rt,at),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,rt,at)}function Ll(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;tt<b;tt++)if(E[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===mn.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 rh(a,y,x){if(!(y instanceof bu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&Ll(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),yd(y),y.shadowColor=a.shadowColor}a instanceof Jo&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof mn;var rt=a instanceof mn?Hd(a):!1;a.l&4096&&Qs(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(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)),b=a.naturalBounds,a.areaBackground!==null){var st=tt.copy().Vj();y.rb.ha=[st.m11,st.m12,st.m21,st.m22,st.dx,st.dy],Yu(a,y,b,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]),vu(a,y,b,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],vu(a,y,b,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,b=a.part,rt=!1,b&&x.Gf("drawShadows")&&(rt=b.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&yd(y),rt&&a.shadowVisible===!0?yd(y):rt&&a.shadowVisible===!1&&Zc(y),b=a.panel,rt&&Ks(a,b)&&a.shadowVisible===null&&Zc(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||Ks(a,b))?(jh(a,!0),a.shadowVisible===null&&Zc(y)):jh(a,!1),b=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,st=a.svg,!z&&st!==null&&rt!==st&&st.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,E,at,rt),iu(y,st),!0):(a.svg=rt,tt!==null&&rt===null&&(gm(y),y.nh.pop()),rt===null||(a.$o(y,E,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+")")),b&&a.l&512&&yd(y),a.Dd()&&Zc(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):E!==null&&Ll(a,E,rt),tt!==null&&tt(a,rt)),!0)}wt.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,tt=z.width,x=z.height),z=E.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+$s++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof mn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),iu(a,E)};function iu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ml(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Ye(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}wt.hh=function(){},wt.lv=function(){this.Uc=!0},wt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof mn?Hd(this):!1;if(!(this instanceof mn&&b))if(this instanceof au){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof mn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof qi){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=E.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Yu(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):((b||x&&!(this instanceof mn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),vu(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},wt.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 Xa(a,y,x,E,b,z,tt){if(x!==null){var rt=1,at=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Wd)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var st=a.kq();if(rt=z.width,at=z.height,b?(rt=tt.width,at=tt.height):E||(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,xt=0,Pt=0,bt=0,Yt=0;if(Yt=bt=0,b?(bt=tt.x,Yt=tt.y):E||(bt-=st/2,Yt-=st/2),ft=x.start.x*rt+x.start.offsetX,vt=x.start.y*at+x.start.offsetY,xt=x.end.x*rt+x.end.offsetX,Pt=x.end.y*at+x.end.offsetY,ft+=bt,xt+=bt,vt+=Yt,Pt+=Yt,x.type===xd)ut=y.createLinearGradient(ft,vt,xt,Pt);else if(x.type===sh)Yt=isNaN(x.endRadius)?Math.max(rt,at)/2:x.endRadius,isNaN(x.startRadius)?(bt=0,Yt=Math.max(rt,at)/2):bt=x.startRadius,ut=y.createRadialGradient(ft,vt,bt,xt,Pt,Yt);else if(x.type===Rg)try{ut=y.createPattern(x.pattern,"repeat")}catch(te){ut=null}if(x.type!==Rg&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ut.addColorStop(b.key,b.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=at),ut===null&&x.type===Rg&&x.yk!==-1)){x.yk=-1;var Wt=a.diagram;Wt!==null&&x.yk===-1&&Yi(function(){Wt.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}wt.rg=function(a){if(a instanceof mn)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},wt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},wt.If=function(){for(var a=this instanceof mn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Qs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Sh(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)}Sh(a,!1),oh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,oh(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,oh(a,!1)))}wt.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Qt.alloc();z.yi(y,x,E,b,no),a.rotate(this.Kb,z.x,z.y),Qt.free(z)}},wt.v=function(a){if(!Uu(this)){a===void 0&&(a=!1),Ss(this,!0),Uc(this,!0);var y=this.panel;y===null||a||y.v()}},wt.Uj=function(){Uu(this)||(Ss(this,!0),Uc(this,!0))};function Kl(a){if(!Vl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Kn&&a.Bd(),y.$b())),Uc(a,!0)}}wt.Uk=function(){!(this.l&2048)&&(Sh(this,!0),oh(this,!0))},wt.Wu=function(){oh(this,!0)},wt.N=function(){var a=this.part;a!==null&&a.N()};function ru(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===mn.Table?sc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===mn.Auto&&E.Pb()===a?Vs(a,_e,y):x===Zi?E!==null?E.type===mn.Spot&&E.Pb()===a?Vs(a,_e,y):(x=E.defaultStretch,x===Zi?Vs(a,qe,y):Vs(a,x,y)):Vs(a,qe,y):Vs(a,x,y)}function sc(a,y,x,E){var b=a.stretch;if(b!==Zi)return Vs(a,b,E);var z=b=null;switch(y.stretch){case Ti:z=!0;break;case _e:z=!0}switch(x.stretch){case vi:b=!0;break;case _e:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===vi||y===_e),z===null&&(z=y===Ti||y===_e),b===!0&&z===!0?Vs(a,_e,E):b===!0?Vs(a,vi,E):z===!0?Vs(a,Ti,E):Vs(a,qe,E)}function Vs(a,y,x){if(x)return y;if(y===qe||(x=a.desiredSize,x.w()))return qe;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===vi)return qe;if(y===_e)return Ti}else{if(y===Ti)return qe;if(y===_e)return vi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ti)return qe;if(y===_e)return vi}else{if(y===vi)return qe;if(y===_e)return Ti}return y}function jh(a,y){a.l=y?a.l|512:a.l&-513}function ol(a){return(a.l&1024)!==0}function sg(a,y){a.l=y?a.l|1024:a.l&-1025}function Sh(a,y){a.l=y?a.l|2048:a.l&-2049}function oh(a,y){a.l=y?a.l|4096:a.l&-4097}function Uu(a){return(a.l&8192)!==0}function Ss(a,y){a.l=y?a.l|8192:a.l&-8193}function Vl(a){return(a.l&16384)!==0}function Uc(a,y){a.l=y?a.l|16384:a.l&-16385}wt.Gj=function(){this.svg=null},wt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},wt.Av=function(){},wt.zv=function(a){return this.pa=a,Kl(this),!0},wt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},wt.kq=function(){return 0};function Gf(a){var y=a.part;if(y instanceof Kn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||KS(y,a)}}function Zy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof mn?a instanceof Kn?a.Bd():a.qm(a,function(x){Gf(x)}):Gf(a))}wt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ls(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&dS(a)&&De("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Ln),this.localBindings.add(b),this},wt.set=function(a){return Object.assign(this,a),this},wt.Du=function(a){return nv(this,a),this},wt.apply=function(a){return a(this),this},wt.nm=function(a){return ss(this,a),this},wt.pz=function(){return this.ih()},wt.ih=function(){for(var a=this instanceof mn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},wt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new yi),this.animationTriggers.add(a.propertyName,a),this};function ah(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Fg.I(a);typeof z=="function"?(x=ro(arguments),E=z(x),Cn(E)||De('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=ze.go[a]}if(E===null&&(b!=null&&b.constructor||De("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof pe&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Cr(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?De("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):nv(E,z);return E}function nv(a,y){if(typeof y=="string")if(a instanceof Jo)a.text=y;else if(a instanceof qi)a.figure=y;else if(a instanceof au)a.source=y;else if(a instanceof mn)y=Wh.I(y),y!==null&&(a.type=y);else if(a instanceof Co){var x=mr(Co,y);x!==null?a.type=x:De("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof kn?(y=mr(kn,y),y!==null&&(a.type=y)):a instanceof zr&&(y=mr(zr,y),y!==null&&(a.type=y));else if(y instanceof se)a instanceof mn||De("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof xs){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof xs?Nm(E,y):De("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof We)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ms)a.type=y;else if(y instanceof ls)a instanceof se||a instanceof xs?a.bind(y):De("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Qn)a instanceof se?a.Jv(y):De("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof cs)a instanceof kn&&a.type===kn.o?a.figures.add(y):De("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof zr)a instanceof cs?a.segments.add(y):De("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Pa)a instanceof pe||a instanceof Vi?a.layout=y:De("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Co){x=new ir;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);ss(a,x)}else if(a instanceof xs){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&De("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&De("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new ir;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);ss(a,b)}else ss(a,y);else De('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function jd(a,y){Fg.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ze.Object.defineProperties(se.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&&(lr(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&&(lr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zl},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===Zl&&(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:os},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:Zi},set:function(a){var y=this.stretch;y!==a&&(lr(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&&(lr(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)&&Ui(a,"0 <= value <= 1",se,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Xf(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(Xf(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(),Zy(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 Co&&a.freeze(),lr(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 Co&&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 Ci)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new Qt(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&De("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,Zy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof qi&&this.qc(),this.g("desiredSize",E,a),ol(this)&&(a=this.part,a!==null&&(da(this,a,"width"),da(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 un(a,this.jd.height).freeze(),this.v(),this instanceof qi&&this.qc(),this.g("desiredSize",y,a),ol(this)&&(a=this.part,a!==null&&da(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 un(this.jd.width,a).freeze(),this.v(),this instanceof qi&&this.qc(),this.g("desiredSize",y,a),ol(this)&&(a=this.part,a!==null&&da(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:vr},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(),lr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ws},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(),lr(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 $i(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&&Qs(this),this.Ab}},oe:{get:function(){return this.l&4096&&Qs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(lr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:qe},set:function(a){this.reshapingBehavior!==a&&(lr(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()&&De("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Kl(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&&Ui(a,">= 0",se,"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&&Ui(a,">= 1",se,"columnSpan"),lr(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&&Ui(a,">= 0",se,"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&&Ui(a,">= 1",se,"rowSpan"),lr(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&&(lr(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 Kn||De("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(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:ms},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&&Ui(a,">= 0",se,"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&&Ui(a,">= 0",se,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ms},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&&Ui(a,">= 0",se,"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&&Ui(a,">= 0",se,"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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(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&&(lr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),se.prototype.trigger=se.prototype.Jv,se.prototype.findBindingPanel=se.prototype.ih,se.prototype.findTemplateBinder=se.prototype.pz,se.prototype.setProperties=se.prototype.nm,se.prototype.apply=se.prototype.apply,se.prototype.attach=se.prototype.Du,se.prototype.set=se.prototype.set,se.prototype.isEnabledObject=se.prototype.If,se.prototype.isVisibleObject=se.prototype.Ed,se.prototype.isContainedBy=se.prototype.rg,se.prototype.getNearestIntersectionPoint=se.prototype.rs,se.prototype.getLocalPoint=se.prototype.qs,se.prototype.getDocumentScale=se.prototype.Df,se.prototype.getDocumentAngle=se.prototype.li,se.prototype.getDocumentBounds=se.prototype.mi,se.prototype.getDocumentPoint=se.prototype.ga,se.prototype.intersectsRect=se.prototype.Yc,se.prototype.containedInRect=se.prototype.fh,se.prototype.containsRect=se.prototype.Re,se.prototype.containsPoint=se.prototype.ca,se.prototype.raiseChanged=se.prototype.g,se.prototype.raiseChangedEvent=se.prototype.cb,se.prototype.addCopyProperty=se.prototype.Vw;var Fg=null;se.className="GraphObject",Fg=new yi,jd("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=ah(mn,mn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof mn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ah(qi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new wi(0,0,2.76142374915397,2.761423749153969),spot2:new wi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof mn&&(x=E.fb("ButtonBorder"),x instanceof qi)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof mn&&(x=E.fb("ButtonBorder"),x instanceof qi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof mn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof qi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof mn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof qi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof mn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof qi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof mn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof qi))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),jd("TreeExpanderButton",function(){var a=ah("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ah(qi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ka},new ls("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ls("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Kr&&(x=x.adornedPart),x instanceof Kn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),jd("SubGraphExpanderButton",function(){var a=ah("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ah(qi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ka},new ls("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Kr&&(x=x.adornedPart),x instanceof Vi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),jd("ToolTip",function(){return ah(Kr,mn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Qt(0,3),shadowBlur:5},ah(qi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new wi(0,0,4,6),spot2:new wi(1,1,-4,-4)}))}),jd("ContextMenu",function(){return ah(Kr,mn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Qt(0,3),shadowBlur:5},new ls("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),jd("ContextMenuButton",function(){var a=ah("Button");a.stretch=vi;var y=a.fb("ButtonBorder");return y instanceof qi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new wi(0,0,2,3),y.spot2=new wi(1,1,-2,-2)),a}),jd("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=ah("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},ah(qi,{name:"ButtonIcon",strokeWidth:2},new ls("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof qi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),jd("CheckBoxButton",function(a){var y=fm(a);return a=ah("Button",{desiredSize:new un(14,14)},ah(qi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:_e,geometryStretch:Jn,visible:!1},y!==""?new ls("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof mn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),jd("CheckBox",function(a){a=fm(a),a=ah("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new $i(0,1,0,0)});var y=ah(mn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new $i(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}),se.None=qe=new We(se,"None",0),se.Default=Zi=new We(se,"Default",0),se.Vertical=Ti=new We(se,"Vertical",4),se.Horizontal=vi=new We(se,"Horizontal",5),se.Fill=_e=new We(se,"Fill",3),se.Uniform=Jn=new We(se,"Uniform",1),se.UniformToFill=br=new We(se,"UniformToFill",2),se.FlipVertical=ur=new We(se,"FlipVertical",1),se.FlipHorizontal=Ir=new We(se,"FlipHorizontal",2),se.FlipBoth=Bo=new We(se,"FlipBoth",3),se.make=ah,se.getBuilders=function(){var a=new yi,y;for(y in Fg)if(y!==y.toLowerCase()){var x=Fg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},se.defineBuilder=jd,se.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Fg.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof se))return y&&E.set(y),E;De('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},se.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=vr,this.o=Ws,this.hg=Zi,this.ob=this.Bi=1,this.Pf=qe,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=os,this.rr=Zl,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=Is,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 Kf(){this.ha=[1,0,0,1,0,0]}Kf.prototype.copy=function(){var a=new Kf;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},Kf.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},Kf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Kf.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Kf.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 bc(a,y,x){this.ownerDocument=a=y===void 0?ze.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 bu(this,x)}bc.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},bc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Cn(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},bc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},bc.prototype.focus=function(){this.Oa.focus()},bc.prototype.mx=function(){this.ownerDocument=null},Ze.Object.defineProperties(bc.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}}}),bc.className="SVGSurface";function bu(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 Kf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=$s++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,E,b,z,tt){a.Nj===void 0?vp(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}wt=bu.prototype,wt.arc=function(a,y,x,E,b,z,tt,rt){var at=2*Math.PI,st=at-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ut,xt=y+ft,Pt=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(rt-xt))&&this.path.push(["L",vt,+xt]),0>E&&(E=E%at+at),E>st?(this.path.push(["A",x,x,0,1,Pt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Pt,vt,xt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Pt,a+x*Math.cos(b),y+x*Math.sin(b)])},wt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},wt.Se=function(a){this.addPath(this.path,this.rb,a||0)},wt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},wt.clearRect=function(){},wt.clip=function(){this.Yl.clipPath=!0},wt.closePath=function(){this.path.push(["z"])},wt.createLinearGradient=function(a,y,x,E){var b=new ug("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},wt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+$s++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Vc,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},wt.createRadialGradient=function(a,y,x,E,b,z){var tt=new ug("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Jy(a,y,x,E,b,z,tt,rt,at){E=rt/E,b=at/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}wt.drawImage=function(a,y,x,E,b,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,E===void 0&&(z=y,tt=x,rt=E=ut,at=b=a),E=E||0,b=b||0,rt=rt||0,at=at||0,Jy(this,y,x,E,b,z||0,tt||0,rt,at),z={x:0,y:0,width:ut||E,height:a||b,href:st},xe.$(E,rt)&&xe.$(b,at)?st.toLowerCase().indexOf(".svg")===-1&&st.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Ng(this,Vc,z,this.rb),this.addElement(Vc,z)},wt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},wt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},wt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ng(this,"fill",a,this.rb),this.addElement("rect",a)},wt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Ng(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},wt.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},Ng(this,"fill",y,this.rb),this.addElement("text",y,a[0])},wt.lineTo=function(a,y){this.path.push(["L",a,y])},wt.moveTo=function(a,y){this.path.push(["M",a,y])},wt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},wt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},wt.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},wt.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())},wt.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||vp(this,a,y,x,E,b,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}wt.scale=function(a,y){this.rb.scale(a,y)},wt.translate=function(a,y){this.rb.translate(a,y)},wt.transform=function(){},wt.yc=function(){},wt.stroke=function(){qy(this,this.Yl)},wt.jk=function(){this.clipInsteadOfFill||this.stroke()},wt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},wt.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 Ng(a,y,x,E){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof ug?y.fill=rv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function _y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof ug?y.setAttributeNS(null,"fill",rv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof ug)y.stroke=rv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function rv(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+$s++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],tt=0;tt<y;tt++){var rt=b[tt],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}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}wt.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=ro(a[b]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());E.push(tt.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Ng(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,E,b,z,tt){var rt=new Kf;rt.ha=[y,x,E,b,z,tt],y={},Ng(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}wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Zc(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function yd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}wt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},wt.fs=function(){this.Ct=!1},wt.Vc=function(){},wt.Wx=function(){},bu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},bu.prototype.getImageData=function(){return null},bu.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()))}bu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},bu.className="SVGContext",pe.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new bc(this,ze.document));var y=new bc(this,ze.document,!0);a===void 0&&(a=new ir);var x=this;return gd(this,function(E,b){return E=gf(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},pe.prototype.makeSvg=pe.prototype.Cs,pe.prototype.av=function(a){return this.Cs(a)},pe.prototype.makeSVG=pe.prototype.av;function xh(a,y,x,E){this.ownerDocument=y=y===void 0?ze.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Vf(y,x,E),y.H=a}xh.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},xh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},xh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},xh.prototype.focus=function(){this.Oa.focus()},xh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ze.Object.defineProperties(xh.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}}}),xh.className="CanvasSurface";function Vf(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&De("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 rr,this.isTemporary=!!x}wt=Vf.prototype,wt.Wx=function(a){this.Z.imageSmoothingEnabled=a},wt.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},wt.beginPath=function(){this.Z.beginPath()},wt.Se=function(){},wt.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},wt.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},wt.clip=function(){this.Z.clip()},wt.closePath=function(){this.Z.closePath()},wt.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},wt.createPattern=function(a,y){return this.Z.createPattern(a,y)},wt.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},wt.drawImage=function(a,y,x,E,b,z,tt,rt,at){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,tt,rt,at)},wt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},wt.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},wt.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},wt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},wt.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},wt.lineTo=function(a,y){this.Z.lineTo(a,y)},wt.measureText=function(a){return this.Z.measureText(a)},wt.moveTo=function(a,y){this.Z.moveTo(a,y)},wt.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},wt.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},wt.restore=function(){this.Z.restore()},wt.save=function(){this.yc(),this.Z.save()},Vf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},wt=Vf.prototype,wt.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},wt.scale=function(a,y){this.El.scale(a,y)},wt.translate=function(a,y){this.El.translate(a,y)},wt.stroke=function(){this.Z.stroke()},wt.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*E,x=tt.m12*x+tt.m22*E,tt.dx=tt.m11*b+tt.m21*z+tt.dx,tt.dy=tt.m12*b+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},wt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},wt.ng=function(a,y){if(a instanceof Co&&a.type===sh){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)},wt.jk=function(){this.Hm||this.stroke()},wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},wt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},wt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},wt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},wt.Hs=function(){},Ze.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 Co(a,y){Og||(hv(),Og=!0),vo(this),this._isFrozen=!1,a===void 0?(this.na=Wd,this.xk="black"):typeof a=="string"?(this.na=Wd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===xd?(this.Qd=_u,this.Lk=vl):this.Lk=a===sh?this.Qd=no:this.Qd=ms,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Co.prototype.copy=function(){var a=new Co;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},wt=Co.prototype,wt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},wt.ka=function(){return Object.isFrozen(this)&&De("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},wt.qb=function(a){a.classType===Co&&(this.type=a)},wt.toString=function(){var a="Brush(";if(this.type===Wd)a+=this.color;else if(a=this.type===xd?a+"Linear ":this.type===sh?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+")"},wt.addColorStop=function(a,y){return this._isFrozen&&xi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ui(a,"0 <= loc <= 1",Co,"addColorStop:loc"),this.we===null&&(this.we=new yi),this.we.add(a,y),this.na===Wd&&(this.type=xd),this.xe=null,this},wt.Vz=function(a,y){if(this._isFrozen&&xi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ig:y,this.type===Wd)Sd(this.color),this.color=Tg(a,y);else if((this.type===xd||this.type===sh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Tg(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,Sd(a),Tg(y,x)}wt.Wy=function(a,y){if(this._isFrozen&&xi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ig:y,this.type===Wd)Sd(this.color),this.color=Tg(-a,y);else if((this.type===xd||this.type===sh)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Sd(x.value),this.addColorStop(x.key,Tg(-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,Sd(a),Tg(-y,x)}function ov(a,y,x){Sd(a),a=$o.j;var E=$o.u,b=$o.o,z=$o.F;return Sd(y),x===void 0&&(x=.5),"rgba("+Math.round(($o.j-a)*x+a)+", "+Math.round(($o.u-E)*x+E)+", "+Math.round(($o.o-b)*x+b)+", "+Math.round(($o.F-z)*x+z)+")"}wt.Gx=function(){if(this.type===Wd)return Bg(this.color);if((this.type===xd||this.type===sh)&&this.colorStops!==null){var a=this.colorStops;if(this.type===sh)return Bg(a.first().value);if(a.get(.5)!==null)return Bg(a.get(.5));if(a.count===2)return a=a.Fa(),Bg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);b>z&&rt<b?(x=tt,b=rt):z>=b&&rt<z&&(E=tt,z=rt)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Bg(ov(a.get(x),a.get(E),1-z/b))}return!1};function Bg(a){return a?a instanceof Co?a.Gx():(Sd(a),128>(299*$o.j+587*$o.u+114*$o.o)/1e3):!1}function Tg(a,y){switch(y){case Ig:y=100*sv($o.j);var x=100*sv($o.u),E=100*sv($o.o);return Yl.j=.4124564*y+.3575761*x+.1804375*E,Yl.u=.2126729*y+.7151522*x+.072175*E,Yl.o=.0193339*y+.119192*x+.9503041*E,Yl.F=$o.F,y=uv(Yl.j/Dg[0]),x=uv(Yl.u/Dg[1]),E=uv(Yl.o/Dg[2]),Xc.j=116*x-16,Xc.u=500*(y-x),Xc.o=200*(x-E),Xc.F=Yl.F,Xc.j=Math.min(100,Math.max(0,Xc.j+100*a)),a=(Xc.j+16)/116,y=a-Xc.o/200,Yl.j=Dg[0]*eS(Xc.u/500+a),Yl.u=Dg[1]*(Xc.j>mm*cv?Math.pow(a,3):Xc.j/mm),Yl.o=Dg[2]*eS(y),Yl.F=Xc.F,a=-.969266*Yl.j+1.8760108*Yl.u+.041556*Yl.o,y=.0556434*Yl.j+-.2040259*Yl.u+1.0572252*Yl.o,$o.j=255*lv((3.2404542*Yl.j+-1.5371385*Yl.u+-.4985314*Yl.o)/100),$o.u=255*lv(a/100),$o.o=255*lv(y/100),$o.F=Yl.F,$o.j=Math.round($o.j),255<$o.j?$o.j=255:0>$o.j&&($o.j=0),$o.u=Math.round($o.u),255<$o.u?$o.u=255:0>$o.u&&($o.u=0),$o.o=Math.round($o.o),255<$o.o?$o.o=255:0>$o.o&&($o.o=0),"rgba("+$o.j+", "+$o.u+", "+$o.o+", "+$o.F+")";case nS:return av(),Zu.o=Math.min(100,Math.max(0,Zu.o+100*a)),"hsla("+Zu.j+", "+Zu.u+"%, "+Zu.o+"%, "+Zu.F+")";default:De("Unknown color space: "+y)}}function Sd(a){Og||(hv(),Og=!0);var y=dv;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,$o.j=a[0],$o.u=a[1],$o.o=a[2],$o.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,$o.j=0,$o.u=0,$o.o=0,$o.F=1)}}function av(){var a=$o.j/255,y=$o.u/255,x=$o.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}Zu.j=Math.round(tt),Zu.u=Math.round(100*a),Zu.o=Math.round(100*b),Zu.F=$o.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>cv?Math.pow(a,1/3):(mm*a+16)/116}function eS(a){var y=a*a*a;return y>cv?y:(116*a-16)/mm}function hg(a,y){typeof a!="string"&&(a instanceof Co||De("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){dv=sa?new xh(null,void 0,{willReadFrequently:!0}).context:null}Ze.Object.defineProperties(Co.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&xi(this,a),this.na=a,this.start.Mc()&&(a===xd?this.start=_u:a===sh&&(this.start=no)),this.end.Mc()&&(a===xd?this.end=vl:a===sh&&(this.end=no)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&xi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&xi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&xi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&xi(this,a),0>a&&Ui(a,">= zero",Co,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&xi(this,a),0>a&&Ui(a,">= zero",Co,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&xi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&xi(this,a),this.cr=a,this.xe=null}}}),Co.prototype.isDark=Co.prototype.Gx,Co.prototype.darkenBy=Co.prototype.Wy,Co.prototype.lightenBy=Co.prototype.Vz,Co.prototype.addColorStop=Co.prototype.addColorStop;var cv=216/24389,mm=24389/27,Dg=[95.047,100,108.883],dv=null,$o=new yp,Zu=new yp,Yl=new yp,Xc=new yp,Og=!1;Co.className="Brush";var Wd;Co.Solid=Wd=new We(Co,"Solid",0);var xd;Co.Linear=xd=new We(Co,"Linear",1);var sh;Co.Radial=sh=new We(Co,"Radial",2);var Rg;Co.Pattern=Rg=new We(Co,"Pattern",4);var Ig;Co.Lab=Ig=new We(Co,"Lab",5);var nS;Co.HSL=nS=new We(Co,"HSL",6),Co.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},Co.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Og||(hv(),Og=!0);var y=dv;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)},Co.lighten=function(a){return $y(a)},Co.lightenBy=$y,Co.darken=function(a){return tS(a)},Co.darkenBy=tS,Co.mix=ov,Co.isDark=Bg;function Ms(){this.xa="Base"}Ms.prototype.measure=function(){},Ms.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ms.prototype.arrange=function(){},Ms.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ms.prototype.iA=function(a){a.Uj()},Ms.prototype.gc=function(){},Ze.Object.defineProperties(Ms.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return mn}}}),Ms.prototype.remeasureObject=Ms.prototype.iA,Ms.prototype.arrangeElement=Ms.prototype.Ly,Ms.prototype.measureElement=Ms.prototype.Yz,Ms.className="PanelLayout";function vm(){this.xa="Base"}we(vm,Ms),vm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;a=wd(a);for(var at=0;at<rt;at++){var st=E[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 xt=st.position.y;isFinite(vt)||(vt=0),isFinite(xt)||(xt=0),st instanceof qi&&st.isGeometryPositioned&&(st=st.strokeWidth/2,vt-=st,xt-=st),ja(b,vt,xt,ft,ut)}}},vm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],tt=z.measuredBounds,rt=z.margin,at=z.position.x,st=z.position.y;if(at=isNaN(at)?-a:at-a,st=isNaN(st)?-x:st-x,z instanceof qi&&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"}we(ym,Ms),ym.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length;y=ki(),z=wd(a);for(var at=0;at<rt;at++){var st=E[at];if(st.visible||st===z){var ut=ru(st,!1);if(ut!==qe&&ut!==vi)y.push(st);else{st.measure(1/0,x,0,tt),ut=st.margin,st=st.measuredBounds;var ft=Math.max(st.height+ut.top+ut.bottom,0);b.width+=Math.max(st.width+ut.right+ut.left,0),b.height=Math.max(b.height,ft)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)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),b.width+=Math.max(at.width+rt,0),b.height=Math.max(b.height,ut));Bi(y)},ym.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,tt=a.isOpposite,rt=tt?x.width:b.left,at=0;at<E;at++){var st=z,ut=y[at];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.top+vt.bottom,Pt=z+b.bottom,bt=ft.height,Yt=ru(ut,!1);(isNaN(ut.desiredSize.height)&&Yt===_e||Yt===Ti)&&(bt=Math.max(x.height-xt-Pt,0)),xt=bt+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=no),tt&&(rt-=ft.width+vt.left+vt.right),ut.arrange(rt+Pt.offsetX+vt.left,st+Pt.offsetY+vt.top+(x.height*Pt.y-xt*Pt.y),ft.width,bt),tt||(rt+=ft.width+vt.left+vt.right)}}};function Sm(){this.xa="Base"}we(Sm,Ms),Sm.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=ki();for(var rt=wd(a),at=0;at<tt;at++){var st=E[at];if(st.visible||st===rt){var ut=ru(st,!1);if(ut!==qe&&ut!==Ti)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,bl(b,Math.max(b.width,Math.max(st.width+ut,0)),b.height+Math.max(st.height+ft,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)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),b.width=Math.max(b.width,Math.max(at.width+tt,0)),b.height+=st);Bi(x)}},Sm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,tt=a.isOpposite,rt=tt?x.height:b.top,at=0;at<E;at++){var st=z,ut=y[at];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.left+vt.right,Pt=z+b.right,bt=ft.width,Yt=ru(ut,!1);(isNaN(ut.desiredSize.width)&&Yt===_e||Yt===vi)&&(bt=Math.max(x.width-xt-Pt,0)),xt=bt+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=no),tt&&(rt-=ft.height+vt.bottom+vt.top),ut.arrange(st+Pt.offsetX+vt.left+(x.width*Pt.x-xt*Pt.x),rt+Pt.offsetY+vt.top,bt,ft.height),tt||(rt+=ft.height+vt.bottom+vt.top)}}};function xm(){this.xa="Base"}we(xm,Ms),xm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.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 xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),bt=a.isClipping,Yt=Xe.allocAt(-st.left,-st.top,xt,Pt),Wt=Xe.allocAt(0,0,z,tt);fv(at,Wt,!0),z=Wt.width,tt=Wt.height;for(var te=!0,ne=wd(a),oe=0;oe<rt;oe++){var me=E[oe];vt=y;var Me=x;if(me!==at&&(me.visible||me===ne)){st=me.margin;var zn=st.left,li=st.top;switch(xt=st.right+st.left,Pt=st.top+st.bottom,st=ru(me,!1),st){case _e:vt=z,Me=tt,li=zn=Pt=xt=0;break;case vi:vt=z,zn=xt=0;break;case Ti:Me=tt,li=Pt=0}me.measure(vt,Me,0,0),vt=me.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),st=me.alignment,st.Xb()&&(st=a.defaultAlignment),st.sb()||(st=no);var _n=me.alignmentFocus;if(_n.Xb()&&(_n=no),Me=null,me instanceof mn&&me.$e!==""&&(Me=me.fb(me.$e),Me===me&&(Me=null)),zn=Wt.x-zn,li=Wt.y-li,Me!==null){for(me.arrange(0,0,vt.width,vt.height),vt=Me.actualBounds,vt=Qt.allocAt(vt.x+(_n.x*vt.width-_n.offsetX),vt.y+(_n.y*vt.height-_n.offsetY)),Me=Me.panel;Me!==me;)Me.transform.Ga(vt),Me=Me.panel;zn+=st.x*z+st.offsetX-vt.x,li+=st.y*tt+st.offsetY-vt.y,Qt.free(vt)}else zn+=st.x*z+st.offsetX-(_n.x*vt.width+_n.offsetX),li+=st.y*tt+st.offsetY-(_n.y*vt.height+_n.offsetY);te?(te=!1,b.h(zn,li,xt,Pt)):ja(b,zn,li,xt,Pt)}}switch(te?b.assign(Yt):bt?b.Uu(Wt.x,Wt.y,Wt.width,Wt.height):ja(b,Yt.x,Yt.y,Yt.width,Yt.height),Xe.free(Yt),Xe.free(Wt),st=at.stretch,st===Zi&&(st=ru(at,!1)),st){case qe:return;case _e:if(!isFinite(y)&&!isFinite(x))return;break;case vi:if(!isFinite(y))return;break;case Ti:if(!isFinite(x))return}for(vt=at.measuredBounds,z=vt.width,tt=vt.height,xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),st=at.margin,Wt=Xe.allocAt(-st.left,-st.top,xt,Pt),fv(at,Wt,!0),z=Wt.width,tt=Wt.height,y=0;y<rt;y++)x=E[y],x===at||!x.visible&&x!==ne||(st=x.margin,xt=st.right+st.left,Pt=st.top+st.bottom,vt=x.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=no),x=x.alignmentFocus,x.Xb()&&(x=no),te?(te=!1,b.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,xt,Pt)):ja(b,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,xt,Pt));te?b.assign(Yt):bt?b.Uu(Wt.x,Wt.y,Wt.width,Wt.height):ja(b,Yt.x,Yt.y,Yt.width,Yt.height),Xe.free(Wt)},xm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.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(b.arrange(st,ut,tt,rt),tt=Xe.allocAt(0,0,tt,rt),fv(b,tt,!1),rt=0;rt<E;rt++){var ft=y[rt];if(ft!==b){st=ft.measuredBounds;var vt=st.width,xt=st.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=no);var Pt=ft.alignmentFocus;if(Pt.Xb()&&(Pt=no),st=null,ft instanceof mn&&ft.$e!==""&&(st=ft.fb(ft.$e),st===ft&&(st=null)),st!==null){var bt=st.actualBounds;for(Pt=Qt.allocAt(bt.x+(Pt.x*bt.width-Pt.offsetX),bt.y+(Pt.y*bt.height-Pt.offsetY)),st=st.panel;st!==ft;)st.transform.Ga(Pt),st=st.panel;st=ut.x*tt.width+ut.offsetX-Pt.x,ut=ut.y*tt.height+ut.offsetY-Pt.y,Qt.free(Pt)}else st=ut.x*tt.width+ut.offsetX-(Pt.x*vt+Pt.offsetX),ut=ut.y*tt.height+ut.offsetY-(Pt.y*xt+Pt.offsetY);st+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+st,at+ut,vt,xt)}}Xe.free(tt)};function fv(a,y,x){var E=null;if(a instanceof mn&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function wm(){this.xa="Base"}we(wm,Ms),wm.prototype.measure=function(a,y,x,E,b,z,tt){var rt=E.length,at=a.Pb(),st=at.margin,ut=y,ft=x,vt=st.right+st.left,xt=st.top+st.bottom;at.measure(y,x,z,tt),st=at.measuredBounds;var Pt=0,bt=null;at instanceof qi&&(bt=at,Pt=bt.strokeWidth*bt.scale);var Yt=Math.max(st.width+vt,0);st=Math.max(st.height+xt,0);var Wt=vv(at),te=Wt.x*Yt+Wt.offsetX;Wt=Wt.y*st+Wt.offsetY;var ne=yv(at),oe=ne.x*Yt+ne.offsetX;for(ne=ne.y*st+ne.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(te-oe)-Pt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Wt-ne)-Pt,0)),Pt=un.alloc(),Pt.h(0,0),a=wd(a),ne=0;ne<rt;ne++)Wt=E[ne],Wt===at||!Wt.visible&&Wt!==a||(st=Wt.margin,Yt=st.right+st.left,te=st.top+st.bottom,Wt.measure(ut,ft,0,0),st=Wt.measuredBounds,Yt=Math.max(st.width+Yt,0),st=Math.max(st.height+te,0),Pt.h(Math.max(Yt,Pt.width),Math.max(st,Pt.height)));if(rt===1)b.width=Yt,b.height=st,un.free(Pt);else{switch(Wt=vv(at),ne=yv(at),rt=E=0,ne.x!==Wt.x&&ne.y!==Wt.y&&(E=Pt.width/Math.abs(ne.x-Wt.x),rt=Pt.height/Math.abs(ne.y-Wt.y)),un.free(Pt),Pt=0,bt!==null&&(Pt=bt.strokeWidth*bt.scale,Av(bt)===Jn&&(E=rt=Math.max(E,rt))),E+=Math.abs(Wt.offsetX)+Math.abs(ne.offsetX)+Pt,rt+=Math.abs(Wt.offsetY)+Math.abs(ne.offsetY)+Pt,bt=at.stretch,bt===Zi&&(bt=ru(at,!1)),bt){case qe:tt=z=0;break;case _e:isFinite(y)&&(E=y),isFinite(x)&&(rt=x);break;case vi:isFinite(y)&&(E=y),tt=0;break;case Ti:z=0,isFinite(x)&&(rt=x)}at.Uj(),at.measure(E,rt,z,tt),b.width=at.measuredBounds.width+vt,b.height=at.measuredBounds.height+xt}},wm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=Xe.alloc();z.h(0,0,1,1);var tt=E.margin,rt=tt.left;tt=tt.top;var at=a.padding,st=at.left;at=at.top,E.arrange(st+rt,at+tt,b.width,b.height);var ut=vv(E),ft=yv(E),vt=ut.y*b.height+ut.offsetY,xt=ft.x*b.width+ft.offsetX;for(ft=ft.y*b.height+ft.offsetY,z.x=ut.x*b.width+ut.offsetX,z.y=vt,ja(z,xt,ft,0,0),z.x+=rt+st,z.y+=tt+at,b=0;b<x;b++)rt=y[b],rt!==E&&(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 Xe(z.x,z.y,z.width,z.height))));Xe.free(z)};function Pm(){this.xa="Base",this.name="Table"}we(Pm,Ms),Pm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=ki(),rt=ki(),at=0;at<z;at++){var st=E[at],ut=st instanceof mn?st:null;if(ut!==null&&Hd(ut)&&st.visible){rt.push(ut);for(var ft=ut.O.s,vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];ut.type===mn.TableRow?Pt.row=st.row:ut.type===mn.TableColumn&&(Pt.column=st.column),tt.push(Pt)}}else tt.push(st)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var bt=[],Yt=0;Yt<z;Yt++){var Wt=tt[Yt];Wt.visible&&(Ss(Wt,!0),Uc(Wt,!0),bt[Wt.row]||(bt[Wt.row]=[]),bt[Wt.row][Wt.column]||(bt[Wt.row][Wt.column]=[]),bt[Wt.row][Wt.column].push(Wt))}Bi(tt);var te=ki(),ne=ki(),oe=ki(),me={count:0},Me={count:0},zn=y,li=x,_n=a.rowDefs,An=a.colDefs,an=null;z=_n.length;for(var Gi=0;Gi<z;Gi++)an=_n[Gi],an!==void 0&&(an.actual=0);z=An.length;for(var Wi=0;Wi<z;Wi++)an=An[Wi],an!==void 0&&(an.actual=0);for(var $r=bt.length,Zo=0,Os=0;Os<$r;Os++)bt[Os]&&(Zo=Math.max(Zo,bt[Os].length));var js=Math.min(a.topIndex,$r-1),jl=Math.min(a.leftIndex,Zo-1),Rs=0;$r=bt.length;for(var _d=wd(a),us=0;us<$r;us++)if(bt[us]){Zo=bt[us].length;var dc=a.Fb(us);dc.actual=0;for(var Wl=dc.oc=0;Wl<Zo;Wl++)if(bt[us][Wl]){var qd=a.Eb(Wl);te[Wl]===void 0&&(qd.actual=0,qd.oc=0,te[Wl]=!0);for(var Qu=bt[us][Wl],Ah=Qu.length,Bu=0;Bu<Ah;Bu++){var Su=Qu[Bu];if(Su.visible||Su===_d){var Ff=1<Su.rowSpan||1<Su.columnSpan;Ff&&(us<js||Wl<jl||ne.push(Su));var fc=Su.margin,ap=fc.right+fc.left,Tu=fc.top+fc.bottom,Hl=sc(Su,dc,qd,!1),om=Su.desiredSize,Pg=!isNaN(om.height),Bc=!isNaN(om.width)&&Pg;if(Ff||Hl===qe||Bc||us<js||Wl<jl||(me[Wl]!==void 0||Hl!==_e&&Hl!==vi||(me[Wl]=-1,me.count++),Me[us]!==void 0||Hl!==_e&&Hl!==Ti||(Me[us]=-1,Me.count++),oe.push(Su)),Su.measure(1/0,1/0,0,0),!(us<js||Wl<jl)){var xu=Su.measuredBounds,$f=Math.max(xu.width+ap,0),Du=Math.max(xu.height+Tu,0);if(Su.rowSpan===1&&(Hl===qe||Hl===vi)){an=a.Fb(us);var Nf=an.Wc();Rs=Math.max(Du-an.actual,0),Rs+Nf>li&&(Rs=Math.max(li-Nf,0));var Y0=an.oa===0;an.oc=an.oc+Rs,an.actual=an.oa+Rs,li=Math.max(li-(Rs+(Y0?Nf:0)),0)}if(Su.columnSpan===1&&(Hl===qe||Hl===Ti)){an=a.Eb(Wl);var am=an.Wc();Rs=Math.max($f-an.actual,0),Rs+am>zn&&(Rs=Math.max(zn-am,0));var Wy=an.oa===0;an.oc=an.oc+Rs,an.actual=an.oa+Rs,zn=Math.max(zn-(Rs+(Wy?am:0)),0)}Ff&&Su.Uj()}}}}}Bi(te);var id=0,Ad=0;z=a.columnCount;for(var Cg=0;Cg<z;Cg++){var Bf=An[Cg];Bf!==void 0&&(id+=isNaN(Bf.Hc)?Bf.oc:Bf.Hc,Bf.oc!==0&&(id+=Bf.Wc()))}z=a.rowCount;for(var sp=0;sp<z;sp++){var Tf=_n[sp];Tf!==void 0&&(Ad+=isNaN(Tf.Hc)?Tf.oc:Tf.Hc,Tf.oc!==0&&(Ad+=Tf.Wc()))}zn=Math.max(y-id,0);var rd=li=Math.max(x-Ad,0),$d=zn;z=oe.length;for(var wu=0;wu<z;wu++){var Tc=oe[wu],U0=a.Fb(Tc.row),Ed=a.Eb(Tc.column),lp=Tc.measuredBounds,gc=Tc.margin,tg=gc.right+gc.left,Dc=gc.top+gc.bottom;me[Tc.column]=Ed.oc===0&&me[Tc.column]!==void 0?Math.max(lp.width+tg,me[Tc.column]):null,Me[Tc.row]=U0.oc===0&&Me[Tc.row]!==void 0?Math.max(lp.height+Dc,Me[Tc.row]):null}var Ag=0,up=0,Uh;for(Uh in Me)Uh!=="count"&&(Ag+=Me[Uh]);for(Uh in me)Uh!=="count"&&(up+=me[Uh]);for(var qs=un.alloc(),sm=0;sm<z;sm++){var ql=oe[sm];if(ql.visible||ql===_d){var hs=a.Fb(ql.row),$l=a.Eb(ql.column),Ld=0;isFinite($l.width)?Ld=$l.width:(isFinite(zn)&&me[ql.column]!==null?up===0?Ld=$l.actual+zn:Ld=me[ql.column]/up*$d:me[ql.column]!==null?Ld=zn:Ld=$l.actual||zn,Ld=Math.max(0,Ld-$l.Wc()));var tf=0;switch(isFinite(hs.height)?tf=hs.height:(isFinite(li)&&Me[ql.row]!==null?Ag===0?tf=hs.actual+li:tf=Me[ql.row]/Ag*rd:Me[ql.row]!==null?tf=li:tf=hs.actual||li,tf=Math.max(0,tf-hs.Wc())),qs.h(Math.max($l.minimum,Math.min(Ld,$l.maximum)),Math.max(hs.minimum,Math.min(tf,hs.maximum))),Hl=sc(ql,hs,$l,!1),Hl){case vi:qs.height=Math.max(qs.height,hs.actual+li);break;case Ti:qs.width=Math.max(qs.width,$l.actual+zn)}var eg=ql.margin,Hy=eg.right+eg.left,Z0=eg.top+eg.bottom;ql.Uj(),ql.measure(qs.width,qs.height,$l.minimum,hs.minimum);var hp=ql.measuredBounds,ng=Math.max(hp.width+Hy,0),Eg=Math.max(hp.height+Z0,0);isFinite(zn)&&(ng=Math.min(ng,qs.width)),isFinite(li)&&(Eg=Math.min(Eg,qs.height));var Pu=0;Pu=hs.actual,hs.actual=Math.max(hs.actual,Eg),hs.oc=Math.max(hs.oc,Eg),Rs=hs.actual-Pu,li=Math.max(li-Rs,0),Me[ql.row]===null&&(rd=Math.max(rd-Rs,0)),Pu=$l.actual,$l.actual=Math.max($l.actual,ng),$l.oc=Math.max($l.oc,ng),Rs=$l.actual-Pu,zn=Math.max(zn-Rs,0),me[ql.column]===null&&($d=Math.max($d-Rs,0))}}Bi(oe);var Md=un.alloc(),pc=ki(),dh=ki();if(z=ne.length,z!==0){for(var Df=0;Df<$r;Df++)if(bt[Df]){Zo=bt[Df].length;var cp=a.Fb(Df);pc[Df]=cp.actual;for(var Of=0;Of<Zo;Of++)if(bt[Df][Of]){var X0=a.Eb(Of);dh[Of]=X0.actual}}}for(var dp=0;dp<z;dp++){var _a=ne[dp];if(_a.visible||_a===_d){var Zh=a.Fb(_a.row),Eh=a.Eb(_a.column);switch(qs.h(Math.max(Eh.minimum,Math.min(y,Eh.maximum)),Math.max(Zh.minimum,Math.min(x,Zh.maximum))),Hl=sc(_a,Zh,Eh,!1),Hl){case _e:dh[Eh.index]!==0&&(qs.width=Math.min(qs.width,dh[Eh.index])),pc[Zh.index]!==0&&(qs.height=Math.min(qs.height,pc[Zh.index]));break;case vi:dh[Eh.index]!==0&&(qs.width=Math.min(qs.width,dh[Eh.index]));break;case Ti:pc[Zh.index]!==0&&(qs.height=Math.min(qs.height,pc[Zh.index]))}isFinite(Eh.width)&&(qs.width=Eh.width),isFinite(Zh.height)&&(qs.height=Zh.height),Md.h(0,0);for(var J0=Eh.minimum,Ou=Zh.minimum,ef=1;ef<_a.rowSpan&&!(_a.row+ef>=a.rowCount);ef++)an=a.Fb(_a.row+ef),Rs=0,Rs=Hl===_e||Hl===Ti?Math.max(an.minimum,pc[_a.row+ef]===0?an.maximum:Math.min(pc[_a.row+ef],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),Md.height+=Rs,Ou+=an.minimum;for(var Lh=1;Lh<_a.columnSpan&&!(_a.column+Lh>=a.columnCount);Lh++)an=a.Eb(_a.column+Lh),Rs=0,Rs=Hl===_e||Hl===vi?Math.max(an.minimum,dh[_a.column+Lh]===0?an.maximum:Math.min(dh[_a.column+Lh],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),Md.width+=Rs,J0+=an.minimum;qs.width+=Md.width,qs.height+=Md.height;var fp=_a.margin,Rf=fp.right+fp.left,lm=fp.top+fp.bottom;_a.measure(qs.width,qs.height,J0,Ou);for(var gp=_a.measuredBounds,Oc=Math.max(gp.width+Rf,0),ig=Math.max(gp.height+lm,0),If=0,pp=0;pp<_a.rowSpan&&!(_a.row+pp>=a.rowCount);pp++)an=a.Fb(_a.row+pp),If+=an.total||0;if(If<ig){var nf=ig-If,od=ig-If;if(_a.spanAllocation!==null)for(var rf=_a.spanAllocation,kd=0;kd<_a.rowSpan&&!(0>=nf)&&!(_a.row+kd>=a.rowCount);kd++){an=a.Fb(_a.row+kd);var of=an.oa||0,rg=rf(_a,an,od);an.actual=Math.min(an.maximum,of+rg),an.oa!==of&&(nf-=an.oa-of)}for(;0<nf;){var mc=an.oa||0;if(isNaN(an.height)&&an.maximum>mc&&(an.actual=Math.min(an.maximum,mc+nf),an.oa!==mc&&(nf-=an.oa-mc)),an.index===0)break;an=a.Fb(an.index-1)}}for(var Lg=0,af=0;af<_a.columnSpan&&!(_a.column+af>=a.columnCount);af++)an=a.Eb(_a.column+af),Lg+=an.total||0;if(Lg<Oc){var Mg=Oc-Lg,Gy=Oc-Lg;if(_a.spanAllocation!==null)for(var bd=_a.spanAllocation,og=0;og<_a.columnSpan&&!(0>=Mg)&&!(_a.column+og>=a.columnCount);og++){an=a.Eb(_a.column+og);var um=an.oa||0,Ky=bd(_a,an,Gy);an.actual=Math.min(an.maximum,um+Ky),an.oa!==um&&(Mg-=an.oa-um)}for(;0<Mg;){var Q0=an.oa||0;if(isNaN(an.width)&&an.maximum>Q0&&(an.actual=Math.min(an.maximum,Q0+Mg),an.oa!==Q0&&(Mg-=an.oa-Q0)),an.index===0)break;an=a.Eb(an.index-1)}}}}Bi(ne),un.free(Md),un.free(qs),pc!==void 0&&Bi(pc),dh!==void 0&&Bi(dh);var kg=0,bg=0,_0=a.desiredSize,gx=a.maxSize;Hl=ru(a,!0);var hm=Ad=id=0,cm=0;z=a.columnCount;for(var q0=0;q0<z;q0++)An[q0]!==void 0&&(an=a.Eb(q0),isFinite(an.width)?(hm+=an.width,hm+=an.Wc()):Bm(an)===Pp?(hm+=an.oa,hm+=an.Wc()):an.oa!==0&&(id+=an.oa,id+=an.Wc()));isFinite(_0.width)?kg=Math.min(_0.width,gx.width):kg=Hl!==qe&&isFinite(y)?y:id,kg=Math.max(kg,a.minSize.width),kg=Math.max(kg-hm,0);for(var _x=id===0?1:Math.max(kg/id,1),$0=0;$0<z;$0++)An[$0]!==void 0&&(an=a.Eb($0),isFinite(an.width)||Bm(an)===Pp||(an.actual=an.oa*_x),an.position=b.width,an.oa!==0&&(b.width+=an.oa,b.width+=an.Wc()));z=a.rowCount;for(var tv=0;tv<z;tv++)_n[tv]!==void 0&&(an=a.Fb(tv),isFinite(an.height)?(cm+=an.height,cm+=an.Wc()):Bm(an)===Pp?(cm+=an.oa,cm+=an.Wc()):an.oa!==0&&(Ad+=an.oa,Ad+=an.Wc()));isFinite(_0.height)?bg=Math.min(_0.height,gx.height):bg=Hl!==qe&&isFinite(x)?x:Ad,bg=Math.max(bg,a.minSize.height),bg=Math.max(bg-cm,0);for(var qx=Ad===0?1:Math.max(bg/Ad,1),ev=0;ev<z;ev++)_n[ev]!==void 0&&(an=a.Fb(ev),isFinite(an.height)||Bm(an)===Pp||(an.actual=an.oa*qx),an.position=b.height,an.oa!==0&&(b.height+=an.oa,b.height+=an.Wc()));z=rt.length;for(var Vy=0;Vy<z;Vy++){var dm=rt[Vy],Yy=0,Uy=0;dm.type===mn.TableRow?(Yy=b.width,an=a.Fb(dm.row),Uy=an.actual):(an=a.Eb(dm.column),Yy=an.actual,Uy=b.height),dm.measuredBounds.h(0,0,Yy,Uy),Ss(dm,!1)}Bi(rt),a.inRowsCols=bt},Pm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,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,xt=Math.min(a.topIndex,st-1);if(0<at.length){for(;xt!==st&&(at[xt]===void 0||at[xt].oa===0);)xt++;xt=Math.max(Math.min(xt,st-1),0),ft=-at[xt].position}var Pt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;Pt!==ut&&(rt[Pt]===void 0||rt[Pt].oa===0);)Pt++;Pt=Math.max(Math.min(Pt,ut-1),0),vt=-rt[Pt].position}for(var bt=0,Yt=0;bt!==st&&at[bt]===void 0;)bt++;for(;Yt!==st&&rt[Yt]===void 0;)Yt++;ut=a.part,a.Fb(bt),a.Eb(Yt);for(var Wt=0;Wt<y.length;Wt++){var te=y[Wt];if(te instanceof mn&&te.visible&&Hd(te)){if(te.type===mn.TableRow){rt=a.Fb(te.row);var ne=a.Eb(Yt)}else rt=a.Fb(bt),ne=a.Eb(te.column);at=rt.position+ft+b,rt.oa!==0&&(at+=rt.Io(Math.max(bt,xt))),rt=ne.position+vt+z,ne.oa!==0&&(rt+=ne.Io(Math.max(Yt,Pt))),ne=te.measuredBounds,te.Uk(),te.actualBounds.ka();var oe=te.actualBounds,me=Xe.allocAt(oe.x,oe.y,oe.width,oe.height);oe.x=te.type===mn.TableRow?z:rt,oe.y=te.type===mn.TableColumn?b:at,oe.width=ne.width,oe.height=ne.height,te.actualBounds.freeze(),Uc(te,!1),as(me,oe)||ut===null||(ut.oh(),te.Pn(ut)),Xe.free(me)}}for(Wt=un.alloc(),te=0;te<st;te++)if(tt[te]){for(ut=tt[te].length,ne=a.Fb(te),at=ne.position+ft+b,ne.oa!==0&&(at+=ne.Io(Math.max(bt,xt))),oe=0;oe<ut;oe++)if(tt[te][oe]){me=a.Eb(oe),rt=me.position+vt+z,me.oa!==0&&(rt+=me.Io(Math.max(Yt,Pt)));for(var Me=tt[te][oe],zn=Me.length,li=0;li<zn;li++){var _n=Me[li],An=_n.measuredBounds;Wt.h(0,0);for(var an=1;an<_n.rowSpan&&!(te+an>=a.rowCount);an++){var Gi=a.Fb(te+an);Gi.oa!==0&&(Wt.height+=Gi.total)}for(an=1;an<_n.columnSpan&&!(oe+an>=a.columnCount);an++)Gi=a.Eb(oe+an),Gi.oa!==0&&(Wt.width+=Gi.total);var Wi=me.oa+Wt.width,$r=ne.oa+Wt.height;an=rt,Gi=at;var Zo=Wi,Os=$r,js=rt,jl=at,Rs=Wi,_d=$r;rt+Wi>x.width&&(Rs=Math.max(x.width-rt,0)),at+$r>x.height&&(_d=Math.max(x.height-at,0));var us=_n.alignment;if(us.Xb()){us=a.defaultAlignment,us.sb()||(us=no);var dc=us.x,Wl=us.y,qd=us.offsetX;us=us.offsetY;var Qu=me.alignment,Ah=ne.alignment;Qu.sb()&&(dc=Qu.x,qd=Qu.offsetX),Ah.sb()&&(Wl=Ah.y,us=Ah.offsetY)}else dc=us.x,Wl=us.y,qd=us.offsetX,us=us.offsetY;(isNaN(dc)||isNaN(Wl))&&(Wl=dc=.5,us=qd=0),Qu=An.width,Ah=An.height;var Bu=_n.margin,Su=Bu.left+Bu.right,Ff=Bu.top+Bu.bottom,fc=sc(_n,ne,me,!1);!isNaN(_n.desiredSize.width)||fc!==_e&&fc!==vi||(Qu=Math.max(Wi-Su,0)),!isNaN(_n.desiredSize.height)||fc!==_e&&fc!==Ti||(Ah=Math.max($r-Ff,0)),Wi=_n.maxSize,$r=_n.minSize,Qu=Math.min(Wi.width,Qu),Ah=Math.min(Wi.height,Ah),Qu=Math.max($r.width,Qu),Ah=Math.max($r.height,Ah),Wi=Ah+Ff,an+=Zo*dc-(Qu+Su)*dc+qd+Bu.left,Gi+=Os*Wl-Wi*Wl+us+Bu.top,_n.visible&&(Ps(js,jl,Rs,_d,an,Gi,An.width,An.height)?_n.arrange(an,Gi,Qu,Ah):_n.arrange(an,Gi,Qu,Ah,new Xe(js,jl,Rs,_d)))}}}for(un.free(Wt),a=0;a<E;a++)x=y[a],z=x instanceof mn?x:null,z!==null&&Hd(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}we(Cm,Ms),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Am(){this.xa="Base"}we(Am,Ms),Am.prototype.measure=function(){},Am.prototype.arrange=function(){};function Em(){this.xa="Base"}we(Em,Ms),Em.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&De("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,tt);var rt=E.measuredBounds,at=E.margin,st=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ut=E.scale,ft=rt.width;rt=rt.height;var vt=Math.max(y-st,0),xt=Math.max(x-at,0),Pt=1;a.viewboxStretch===Jn?ft!==0&&rt!==0&&(Pt=Math.min(vt/ft,xt/rt)):ft!==0&&rt!==0&&(Pt=Math.max(vt/ft,xt/rt)),Pt===0&&(Pt=1e-4),E.Ca*=Pt,ut!==E.scale&&(Ss(E,!0),E.measure(1/0,1/0,z,tt))}rt=E.measuredBounds,b.width=isFinite(y)?y:Math.max(rt.width+st,0),b.height=isFinite(x)?x:Math.max(rt.height+at,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=no),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-b*tt.y+tt.offsetY,E.width,E.height)};function Sp(){this.xa="Base"}we(Sp,Ms),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 E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,at=z.height,st=Math.ceil(rt/b),ut=Math.ceil(at/E),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 xt=[],Pt=a.O.s,bt=Pt.length,Yt=0;Yt<bt;Yt++){var Wt=Pt[Yt],te=[];if(xt.push(te),Wt.visible){var ne=Wt.interval;if(!(0>ne)){Wt=pv(Wt.figure);for(var oe=0;oe<bt;oe++)if(oe!==Yt){var me=Pt[oe];me.visible&&pv(me.figure)===Wt&&(me=me.interval,me>ne&&te.push(me))}}}}for(Pt=a.O.s,bt=Pt.length,Yt=0;Yt<bt;Yt++){var Me=Pt[Yt];if(Me.visible&&(te=Me.interval||1,Wt=Math.abs(te),!(2>b*Wt*x))){if(ne=Me.segmentIndex,(!isFinite(ne)||isNaN(ne))&&(ne=0),0>ne&&(ne=Wt-Math.min(-ne,Wt)),ne=Math.round(ne%Wt),Wt=Me.opacity,oe=1,Wt!==1){if(Wt===0)continue;oe=y.globalAlpha,y.globalAlpha=oe*Wt}me=xt[Yt];var zn=!1,li=Me.strokeDashArray;if(li!==null&&(zn=!0,y.js(li,Me.strokeDashOffset)),Me.figure==="LineV"&&Me.stroke!==null&&0<Me.strokeWidth){for(y.lineWidth=Me.strokeWidth,Xa(a,y,Me.stroke,!1,!1,z,tt),y.beginPath(),li=Me=Math.floor((vt-b)/b);li<=Me+st;li++){var _n=li*b+vt;0<=_n&&_n<=rt&&Lm(li,te,ne,me)&&(y.moveTo(_n,0),y.lineTo(_n,at))}y.stroke(),y.Se()}else if(Me.figure==="LineH"&&Me.stroke!==null&&0<Me.strokeWidth){for(y.lineWidth=Me.strokeWidth,Xa(a,y,Me.stroke,!1,!1,z,tt),y.beginPath(),li=Me=Math.floor((ft-E)/E);li<=Me+ut;li++)_n=li*E+ft,0<=_n&&_n<=at&&Lm(li,te,ne,me)&&(y.moveTo(0,_n),y.lineTo(rt,_n));y.stroke(),y.Se()}else if(Me.figure==="BarV"&&Me.fill!==null)for(Xa(a,y,Me.fill,!0,!1,z,tt),Me=Me.width,isNaN(Me)&&(Me=b),_n=li=Math.floor((vt-b)/b);_n<=li+st;_n++){var An=_n*b+vt;0<=An+Me&&An<=rt&&Lm(_n,te,ne,me)&&y.fillRect(An,0,Me,at)}else if(Me.figure==="BarH"&&Me.fill!==null)for(Xa(a,y,Me.fill,!0,!1,z,tt),Me=Me.height,isNaN(Me)&&(Me=E),_n=li=Math.floor((ft-E)/E);_n<=li+ut;_n++)An=_n*E+ft,0<=An+Me&&An<=at&&Lm(_n,te,ne,me)&&y.fillRect(0,An,rt,Me);zn&&y.fs(),Wt!==1&&(y.globalAlpha=oe)}}y.restore(),y.Vc(!1)};function Lm(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Mm(){this.xa="Base"}we(Mm,Ms),Mm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Kr||a instanceof En){var tt=null,rt=null;if(a instanceof En&&(tt=a),a instanceof Kr&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof En){var at=tt;if(z===0)bl(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var st=a instanceof Kr?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,xt=a.j;if(xt.length=0,st!==null){iS(a,rt,vt,st);var Pt=st.measuredBounds;x.ed(Pt),xt.push(Pt)}Pt=rr.alloc();for(var bt=Qt.alloc(),Yt=Qt.alloc(),Wt=0;Wt<z;Wt++){var te=E[Wt];if(te!==st)if(te.isPanelMain&&te instanceof qi){iS(a,rt,vt,te);var ne=te.measuredBounds;x.ed(ne),xt.push(ne)}else if(2>ft)te.measure(1/0,1/0,0,0),ne=te.measuredBounds,x.ed(ne),xt.push(ne);else{var oe=te.segmentIndex,me=te.segmentFraction,Me=te.alignmentFocus;Me.Mc()&&(Me=no);var zn=te.segmentOrientation,li=te.segmentOffset;if(isNaN(oe)){var _n=at.ua;ne=ki(),_n.Qu(me,ne);var An=Qt.allocAt(ne[0],ne[1]);if(An.add(at.i(0)),_n.type===kn.j?An.offset(-_n.startX,-_n.startY):(_n=_n.figures.first(),_n!==null&&An.offset(-_n.startX,-_n.startY)),_n=ne[2],zn!==Zl){var an=at.computeAngle(te,zn,_n);te.Kb=an}an=An.x-y.x;var Gi=An.y-y.y;Qt.free(An),Bi(ne)}else if(oe<-ft||oe>=ft)ne=Qt.alloc(),at.vg(),at.computeMidPoint(ne),_n=at.midAngle,zn!==Zl&&(an=at.computeAngle(te,zn,_n),te.Kb=an),an=ne.x-y.x,Gi=ne.y-y.y,Qt.free(ne);else{if(an=0,0<=oe?(Gi=ut.M(oe),ne=oe<ft-1?ut.M(oe+1):Gi):(an=ft+oe,Gi=ut.M(an),ne=0<an?ut.M(an-1):Gi),Gi.Xa(ne)){0<=oe?(_n=0<oe?ut.M(oe-1):Gi,an=oe<ft-2?ut.M(oe+2):ne):(_n=an<ft-1?ut.M(an+1):Gi,an=1<an?ut.M(an-2):ne),An=_n.Bf(Gi);var Wi=ne.Bf(an);_n=An>Wi+10?0<=oe?_n.ab(Gi):Gi.ab(_n):Wi>An+10?0<=oe?ne.ab(an):an.ab(ne):0<=oe?_n.ab(an):an.ab(_n)}else _n=0<=oe?Gi.ab(ne):ne.ab(Gi);zn!==Zl&&(an=at.computeAngle(te,zn,_n),te.Kb=an),an=Gi.x+(ne.x-Gi.x)*me-y.x,Gi=Gi.y+(ne.y-Gi.y)*me-y.y}te.measure(1/0,1/0,0,0),ne=te.measuredBounds,An=te.naturalBounds;var $r=0;te instanceof qi&&($r=te.strokeWidth),Wi=An.width+$r;var Zo=An.height+$r;Pt.reset(),Pt.translate(-ne.x,-ne.y),Pt.scale(te.scale,te.scale),Pt.rotate(zn===Zl?te.angle:_n,Wi/2,Zo/2),zn!==Bp&&zn!==Dp||Pt.rotate(90,Wi/2,Zo/2),zn!==Tp&&zn!==Op||Pt.rotate(-90,Wi/2,Zo/2),zn===i0&&(45<_n&&135>_n||225<_n&&315>_n)&&Pt.rotate(-_n,Wi/2,Zo/2),An=new Xe(0,0,Wi,Zo),bt.xi(An,Me),Pt.Ga(bt),Me=-bt.x+$r/2*te.scale,te=-bt.y+$r/2*te.scale,Yt.assign(li),$r=isNaN(li.x);var Os=isNaN(li.y);if($r||Os){Wi=Wi/2+3,Zo=Zo/2+3;var js=45<=_n&&135>=_n,jl=225<=_n&&315>=_n;zn===Zl&&(js||jl)?(Yt.x=Os?Wi:li.y,Yt.y=$r?Zo:li.x,js?0<=oe||isNaN(oe)&&.5>me||!$r||(Yt.y=-Zo):jl&&((0<=oe||isNaN(oe)&&.5>me)&&$r&&(Yt.y=-Zo),Os&&(Yt.x=-Wi))):($r&&(Yt.x=0<=oe||isNaN(oe)&&.5>me?Wi:-Wi),Os&&(Yt.y=-Zo),Yt.rotate(_n))}else Yt.rotate(_n);an+=Yt.x,Gi+=Yt.y,An.set(ne),An.h(an+Me,Gi+te,ne.width,ne.height),xt.push(An),x.ed(An)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),bl(b,x.width||0,x.height||0),rr.free(Pt),Qt.free(bt),Qt.free(Yt)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Kr||a instanceof En){var E=a,b=null;a instanceof Kr&&(b=a,E=b.adornedPart);var z=a instanceof Kr?null:E.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=E.points,x=y.count,2<=x&&a instanceof En)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 xt=ft.ua,Pt=ki();xt.Qu(at,Pt);var bt=Qt.allocAt(Pt[0],Pt[1]);bt.add(ft.i(0)),xt.type===kn.j||(xt=xt.figures.first()),bt.offset(-xt.startX,-xt.startY),xt=Pt[2],st!==Zl&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=bt.x;var Yt=bt.y;Qt.free(bt),Bi(Pt)}else if(rt<-x||rt>=x)Pt=Qt.alloc(),xt=ft,Yt=Pt,xt.vg(),xt.computeMidPoint(Yt),xt=ft.midAngle,st!==Zl&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Pt.x,Yt=Pt.y,Qt.free(Pt);else{if(bt=0,0<=rt?(Pt=y.s[rt],Yt=rt<x-1?y.s[rt+1]:Pt):(bt=x+rt,Pt=y.s[bt],Yt=0<bt?y.s[bt-1]:Pt),Pt.Xa(Yt)){0<=rt?(xt=0<rt?y.s[rt-1]:Pt,bt=rt<x-2?y.s[rt+2]:Yt):(xt=bt<x-1?y.s[bt+1]:Pt,bt=1<bt?y.s[bt-2]:Yt);var Wt=xt.Bf(Pt),te=Yt.Bf(bt);xt=Wt>te+10?0<=rt?xt.ab(Pt):Pt.ab(xt):te>Wt+10?0<=rt?Yt.ab(bt):bt.ab(Yt):0<=rt?xt.ab(bt):bt.ab(xt)}else xt=0<=rt?Pt.ab(Yt):Yt.ab(Pt);st!==Zl&&(ft=ft.computeAngle(tt,st,xt),tt.angle=ft),ft=Pt.x+(Yt.x-Pt.x)*at,Yt=Pt.y+(Yt.y-Pt.y)*at}if(vt.ys())tt.location=new Qt(ft,Yt);else{vt.Mc()&&(vt=no),Pt=rr.alloc(),Pt.reset(),Pt.scale(tt.scale,tt.scale),Pt.rotate(tt.angle,0,0);var ne=tt.naturalBounds;bt=Xe.allocAt(0,0,ne.width,ne.height),Wt=Qt.alloc(),Wt.xi(bt,vt),Pt.Ga(Wt),vt=-Wt.x,te=-Wt.y;var oe=ne.width,me=ne.height;ne=Qt.alloc(),ne.assign(ut);var Me=isNaN(ut.x),zn=isNaN(ut.y);if(Me||zn){oe=oe/2+3,me=me/2+3;var li=45<=xt&&135>=xt,_n=225<=xt&&315>=xt;st===Zl&&(li||_n)?(ne.x=zn?oe:ut.y,ne.y=Me?me:ut.x,li?0<=rt||isNaN(rt)&&.5>at||!Me||(ne.y=-me):_n&&((0<=rt||isNaN(rt)&&.5>at)&&Me&&(ne.y=-me),zn&&(ne.x=-oe))):(Me&&(ne.x=0<=rt||isNaN(rt)&&.5>at?oe:-oe),zn&&(ne.y=-me),ne.rotate(xt))}else ne.rotate(xt);ft+=ne.x,Yt+=ne.y,Pt.pp(bt),vt+=bt.x,te+=bt.y,rt=Qt.allocAt(ft+vt,Yt+te),tt.move(rt),Qt.free(rt),Qt.free(ne),Qt.free(Wt),Xe.free(bt),rr.free(Pt)}}b!==null?b.Ul(!1):E.Ul(!1),E=BS(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Qt.free(E)}};function iS(a,y,x,E){if(Uu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Kr&&a.type===mn.Link&&a.adornedObject instanceof qi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof En&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Kr&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Ss(E,!1)}}function xp(){this.xa="Base"}we(xp,Ms),xp.prototype.measure=function(a,y,x,E,b,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 Xe(-at.left,-at.top,Math.max(ft.width+st,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),b.assign(vt);for(var xt=rt.geometry,Pt=rt.strokeWidth,bt=xt.flattenedSegments,Yt=xt.flattenedLengths,Wt=xt.flattenedTotalLength,te=bt.length,ne=0,oe=0,me=ki(),Me=0;Me<te;Me++){var zn=bt[Me],li=[];oe=ne=0;for(var _n=zn.length,An=0;An<_n;An+=2){var an=zn[An],Gi=zn[An+1];if(An!==0){var Wi=180*Math.atan2(Gi-oe,an-ne)/Math.PI;0>Wi&&(Wi+=360),li.push(Wi)}ne=an,oe=Gi}me.push(li)}if(a.graduatedIntervals===null){for(var $r=[],Zo=a.O.s,Os=Zo.length,js=0;js<Os;js++){var jl=Zo[js],Rs=[];if($r.push(Rs),jl.visible){var _d=jl.interval;if(!(0>_d)){for(var us=0;us<Os;us++)if(us!==js){var dc=Zo[us];if(dc.visible&&jl.constructor===dc.constructor){var Wl=dc.interval;Wl>_d&&Rs.push(Wl)}}}}}a.graduatedIntervals=$r}var qd=a.graduatedIntervals,Qu=a.O.s,Ah=Qu.length,Bu=0,Su=0,Ff=Wt;a.graduatedMarks=[];for(var fc,ap=0;ap<Ah;ap++){var Tu=Qu[ap];if(fc=[],Tu.visible&&Tu!==rt){var Hl=Math.abs(Tu.interval),om=a.graduatedTickUnit;if(!(2>om*Hl*Wt/a.graduatedRange&&Tu.graduatedSkip===null)){var Pg=Yt[0][0],Bc=0,xu=0;Su=Wt*Tu.graduatedStart-1e-4,Ff=Wt*Tu.graduatedEnd+1e-4;var $f=om*Hl,Du=a.graduatedTickBase;if(Du<a.graduatedMin){var Nf=(a.graduatedMin-Du)/$f;Nf=Nf%1===0?Nf:Math.floor(Nf+1),Du+=Nf*$f}else Du>a.graduatedMin+$f&&(Du-=Math.floor((Du-a.graduatedMin)/$f)*$f);for(var Y0=qd[ap],am=Du,Wy=1e-6*a.graduatedMax,id=1;Du<=a.graduatedMax+Wy;id++){t:{for(var Ad=Y0.length,Cg=0;Cg<Ad;Cg++){var Bf=(Du-a.graduatedTickBase)%(Y0[Cg]*a.graduatedTickUnit),sp=1e-6*a.graduatedTickUnit;if(Bf<sp&&Bf>-sp){var Tf=!1;break t}}Tf=!0}if(Tf&&(Du>a.graduatedMax&&(Du=a.graduatedMax),Tu.graduatedSkip===null||Tu instanceof Jo&&!Tu.graduatedSkip(Du,Tu)||Tu instanceof qi&&!Tu.graduatedSkip(Du,Tu))&&(Bu=(Du-a.graduatedMin)*Wt/a.graduatedRange,Bu>Wt&&(Bu=Wt),Su<=Bu&&Bu<=Ff)){for(var rd=me[Bc][xu],$d=Yt[Bc][xu];Bc<Yt.length;){for(;Bu>Pg&&xu<Yt[Bc].length-1;)xu++,rd=me[Bc][xu],$d=Yt[Bc][xu],Pg+=$d;if(Bu<=Pg)break;Bc++,xu=0,rd=me[Bc][xu],$d=Yt[Bc][xu],Pg+=$d}var wu=bt[Bc],Tc=wu[2*xu],U0=wu[2*xu+1],Ed=(Bu-(Pg-$d))/$d,lp=new Qt(Tc+(wu[2*xu+2]-Tc)*Ed+Pt/2-xt.bounds.x,U0+(wu[2*xu+3]-U0)*Ed+Pt/2-xt.bounds.y);lp.scale(rt.scale,rt.scale);t:{var gc=rd,tg=me[Bc];if(!(.5005>Ed&&.4995<Ed)){var Dc=gc;if(.5>Ed?0<xu?Dc=tg[xu-1]:xe.$(wu[0],wu[wu.length-2])&&xe.$(wu[1],wu[wu.length-1])&&(Dc=tg[tg.length-1]):.5<Ed&&(xu+1<tg.length?Dc=tg[xu+1]:xe.$(wu[0],wu[wu.length-2])&&xe.$(wu[1],wu[wu.length-1])&&(Dc=tg[0])),gc!==Dc){var Ag=Math.abs(gc-Dc);if(180<Ag&&(gc<Dc?gc+=360:Dc+=360,Ag=Math.abs(gc-Dc)),5e-4>Ed||.9995<Ed){rd=(gc+Dc)/2%360;break t}if(10>Ag){var up=1-Math.abs(.5-Ed);rd=(gc*up+Dc*(1-up))%360;break t}}}rd=gc}if(Tu instanceof Jo){var Uh="";Tu.graduatedFunction!==null?(Uh=Tu.graduatedFunction(Du,Tu),Uh=Uh!=null?Uh.toString():""):Uh=(+Du.toFixed(2)).toString(),Uh!==""&&fc.push({$l:lp,angle:rd,text:Uh})}else fc.push({$l:lp,angle:rd})}Du=am+id*$f}}}a.graduatedMarks.push(fc)}Bi(me);var qs=a.graduatedMarks;if(qs!==null)for(var sm=E.length,ql=0;ql<sm;ql++){var hs=E[ql],$l=qs[ql];if(hs.visible&&hs!==rt&&$l.length!==0){if(hs instanceof qi){var Ld=a,tf=b,eg=hs.alignmentFocus;eg.Mc()&&(eg=_u);var Hy=hs.angle;hs.Kb=0,hs.measure(1/0,1/0,0,0),hs.Kb=Hy;var Z0=hs.measuredBounds,hp=Z0.width,ng=Z0.height,Eg=Xe.allocAt(0,0,hp,ng),Pu=Qt.alloc();Pu.xi(Eg,eg),Xe.free(Eg);for(var Md=-Pu.x,pc=-Pu.y,dh=new Xe,Df=$l.length,cp=0;cp<Df;cp++)for(var Of=$l[cp],X0=Of.$l.x,dp=Of.$l.y,_a=Of.angle,Zh=0;4>Zh;Zh++){switch(Zh){case 0:Pu.h(Md,pc);break;case 1:Pu.h(Md+hp,pc);break;case 2:Pu.h(Md,pc+ng);break;case 3:Pu.h(Md+hp,pc+ng)}Pu.rotate(_a+hs.angle),Pu.offset(X0,dp),cp===0&&Zh===0?dh.h(Pu.x,Pu.y,0,0):dh.Ye(Pu),Pu.offset(-X0,-dp),Pu.rotate(-_a-hs.angle)}Qt.free(Pu),Ld.graduatedBounds!==null&&Ld.graduatedBounds.push(dh),ja(tf,dh.x,dh.y,dh.width,dh.height)}else if(hs instanceof Jo){var Eh=a,J0=b;Eh.temporaryTextBlock===null&&(Eh.temporaryTextBlock=new Jo);var Ou=Eh.temporaryTextBlock;yS(Ou,hs);var ef=hs.alignmentFocus;ef.Mc()&&(ef=_u);for(var Lh=hs.segmentOrientation,fp=hs.segmentOffset,Rf=new Xe,lm=0,gp=0,Oc=0,ig=0,If=0,pp=$l.length,nf=0;nf<pp;nf++){var od=$l[nf];lm=od.$l.x,gp=od.$l.y,Oc=od.angle,If=ig=hs.angle,Lh!==Zl&&(If=Lh===Np||Lh===n0?Oc+hs.angle:Oc,ig=En.computeAngle(Lh,If)),Ou.Kb=ig,Ou.text=od.text||"",Ou.measure(1/0,1/0,0,0);var rf=Ou.measuredBounds,kd=Ou.naturalBounds,of=kd.width,rg=kd.height,mc=rr.alloc();mc.reset(),mc.translate(-rf.x,-rf.y),mc.scale(Ou.scale,Ou.scale),mc.rotate(If,of/2,rg/2),Lh!==Bp&&Lh!==Dp||mc.rotate(90,of/2,rg/2),Lh!==Tp&&Lh!==Op||mc.rotate(-90,of/2,rg/2),Lh===i0&&(45<Oc&&135>Oc||225<Oc&&315>Oc)&&mc.rotate(-Oc,of/2,rg/2);var Lg=Xe.allocAt(0,0,of,rg),af=Qt.alloc();af.xi(Lg,ef),mc.Ga(af);var Mg=-af.x,Gy=-af.y,bd=Qt.alloc();bd.assign(fp),isNaN(bd.x)&&(bd.x=of/2+3),isNaN(bd.y)&&(bd.y=-(rg/2+3)),bd.rotate(Oc),lm+=bd.x+Mg,gp+=bd.y+Gy;var og=new Xe(lm,gp,rf.width,rf.height),um=new Xe(rf.x,rf.y,rf.width,rf.height),Ky=new Xe(kd.x,kd.y,kd.width,kd.height);od.Sz=ig,od.lineCount=Ou.lineCount,od.lines=[Ou.Cb,Ou.Ih,Ou.df,Ou.Le,Ou.Qc,Ou.Qb,Ou.ze],od.actualBounds=og,od.measuredBounds=um,od.naturalBounds=Ky,nf===0?Rf.assign(og):Rf.ed(og),Qt.free(bd),Qt.free(af),Xe.free(Lg),rr.free(mc)}Eh.graduatedBounds!==null&&Eh.graduatedBounds.push(Rf),ja(J0,Rf.x,Rf.y,Rf.width,Rf.height)}Ss(hs,!1)}}},xp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,E!==null&&E.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var at=y.length,st=0;st<at;st++){var ut=y[st];rt=b[st],ut.visible&&ut!==E&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},xp.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,tt=b.height;b=y instanceof bu,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],xt=st[ft],Pt=xt.length;if(vt.visible&&vt!==z&&xt.length!==0){if(vt instanceof qi){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var bt=vt.measuredBounds,Yt=vt.strokeWidth*vt.scale,Wt=vt.alignmentFocus;Wt.Mc()&&(Wt=_u);for(var te=0;te<Pt;te++){var ne=xt[te].$l,oe=xt[te].angle,me=Wt,Me=vt.Ab;Me.reset(),Me.translate(ne.x+rt.x,ne.y+rt.y),Me.rotate(oe+vt.angle,0,0),Me.translate(-bt.width*me.x+me.offsetX+Yt/2,-bt.height*me.y+me.offsetY+Yt/2),Me.scale(vt.scale,vt.scale),Sh(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,oh(vt,!1),vt.gc(y,x),b&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof Jo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Jo),bt=a.temporaryTextBlock,yS(bt,vt),Yt=0;Yt<Pt;Yt++)Wt=xt[Yt],Wt.actualBounds&&Wt.measuredBounds&&Wt.naturalBounds&&(bt.ec=Wt.text||"",bt.Kb=Wt.Sz||0,bt.Gc=Wt.lineCount||0,te=Wt.lines,te!==void 0&&(bt.Cb=te[0],bt.Ih=te[1],bt.df=te[2],bt.Le=te[3],bt.Qc=te[4],bt.Qb=te[5],bt.ze=te[6]),Wt.naturalBounds&&(bt.dc=Wt.naturalBounds),Wt.actualBounds&&(te=Wt.actualBounds,bt.arrange(te.x,te.y,te.width,te.height)),te=Wt.actualBounds,bt.arrange(te.x,te.y,te.width,te.height),ne=Wt.measuredBounds,Wt=Wt.naturalBounds,oe=bt.Ab,oe.reset(),oe.translate(te.x+rt.x,te.y+rt.y),oe.translate(-ne.x,-ne.y),bt.no(oe,Wt.x,Wt.y,Wt.width,Wt.height),Sh(bt,!1),bt.wh.set(bt.Ab),bt.Kk=bt.scale,oh(bt,!1),bt.Ng=vt.part,bt.Me=vt.panel,bt.gc(y,x),bt.Me=null,bt.Ng=null,b&&(a.svg.appendChild(bt.svg),bt.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function mn(a,y){if(se.call(this),this.na=null,a===void 0)this.na=mn.Position;else if(typeof a=="string"){var x=Wh.I(a);x!==null&&(this.na=x)}else a instanceof Ms?this.na=a:a&&(this.na=mn.Position,y=a);this.na===null&&De("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===mn.Grid?1048576:0),this.O=new Ln,this.yb=Fl,this.Tm=Is,this.Uf=Zi,this.$g=null,this.$e="",this.jg=new Xe(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Jn,this.jn=Na,this.kn=os,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}we(mn,se),mn.prototype.cloneProtected=function(a){se.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},mn.prototype.Af=function(a){se.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},mn.prototype.copy=function(){var a=se.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof Kn&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(ga,"elements",a,null,b,null,tt)}}return a}return null},wt=mn.prototype,wt.toString=function(){return"Panel("+this.type.name+")#"+Ia(this)},wt.Pn=function(a){se.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},wt.hh=function(a,y){if(this.na===mn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===mn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===mn.Table)if(a.yc(),a instanceof bu){var x=a.yd;a.yd=gm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===mn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x&&rt===E&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&km(a,y,!0,x,!0),E!==null&&km(a,y,!1,E,!0),x!==null&&rS(a,y,!0,x),E!==null&&rS(a,y,!1,E),x!==null&&km(a,y,!0,x,!1),E!==null&&km(a,y,!1,E,!1)}function rS(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,at=0;at<b;at++){var st=E[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){Xa(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 km(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,rt=a.naturalBounds,at=oS(a,!0),st=oS(a,!1),ut=0;ut<z;ut++){var ft=E[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==b&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var xt=ft.Wc(),Pt=ft.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var bt=ft.separatorStroke;bt===null&&(bt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(bt===null||ft.index===(x?at:st))&&(Pt=0),xt-=Pt,Pt=ft.position+Pt,xt+=ft.actual,Pt+xt>vt&&(xt=vt-Pt),0>=xt||(vt=a.yb,Xa(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(vt.left,Pt+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Pt+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function oS(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}wt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},wt.kk=function(a,y,x){if(!se.prototype.kk.call(this,a,y,x))return!1;if(this.type===mn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===mn.Grid||this.na===mn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},wt.nk=function(){return!0},wt.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;b=tt===0?rt.x:Math.min(rt.x,b),z=tt===0?rt.y:Math.min(rt.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else se.prototype.$o.call(this,a,y,x,E)},wt.Sj=function(a,y,x,E,b){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),xt=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,xe.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,E,b);if(this.background!==null)return z=a*at+y*ut+vt,rt=a*st+y*ft+xt,a=x*at+E*ut+vt,at=x*st+E*ft+xt,b.h(0,0),x=this.naturalBounds,z=xe.Ff(0,0,x.width,x.height,z,rt,a,at,b),b.transform(tt),z;z||(at=1,ut=st=0,ft=1,xt=vt=0),rt=a*at+y*ut+vt,a=a*st+y*ft+xt,at=x*at+E*ut+vt,x=x*st+E*ft+xt,b.h(at,x),E=(at-rt)*(at-rt)+(x-a)*(x-a),st=!1,ft=this.O.s,xt=ft.length,ut=Qt.alloc(),vt=null,y=1/0;var Pt=null,bt=this.isClipping&&this.na===mn.Spot;bt&&(Pt=Qt.alloc(),vt=this.Pb(),(st=vt.Sj(rt,a,at,x,Pt))&&(y=(rt-Pt.x)*(rt-Pt.x)+(a-Pt.y)*(a-Pt.y)));for(var Yt=0;Yt<xt;Yt++){var Wt=ft[Yt];Wt.visible&&Wt!==vt&&Wt.Sj(rt,a,at,x,ut)&&(st=!0,Wt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Wt<E&&(E=Wt,b.set(ut)))}return bt&&(y>E&&b.set(Pt),Qt.free(Pt)),Qt.free(ut),z&&b.transform(tt),st},wt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();se.prototype.Gj.call(this)},wt.v=function(a){if(!Uu(this)){se.prototype.v.call(this,a),a=null,(this.na===mn.Auto||this.na===mn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=ru(b,!1);(b instanceof Ul||b instanceof mn||b instanceof Jo||z!==qe)&&b.v(!0)}}}},wt.Uj=function(){if(!Uu(this)){Ss(this,!0),Uc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},wt.Uk=function(){if(!(this.l&2048)){Sh(this,!0),oh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},wt.Wu=function(){oh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},wt.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,E=tt.height),x=Math.max(x,tt.width),E=Math.max(E,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(E,y);var 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,b,x,E),a=b.width+at.left+at.right,at=b.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(E,at),bl(b,a,at),bl(this.naturalBounds,a,at),this.Ge(0,0,a,at)},wt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function wd(a){return a.part!==null?a.part.locationObject:null}wt.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=ru(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===E&&(a=qe),a){case qe:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case _e:this.v(!0),this.measure(x+rt,E+tt,0,0);break;case vi:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case Ti:this.v(!0),this.measure(y+rt,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},wt.gh=function(a){var y=this.naturalBounds,x=wd(this);if(Ps(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Qt.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Ma(b.set(a),z.transform),z.ca(b)))return Qt.free(b),!0}return Qt.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},wt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},wt.qm=function(a,y){if(y(this,a),a instanceof mn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Yf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof mn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof mn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)sS(a,y[b],x)}}wt.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof mn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=lS(a,y[b],x);if(z!==null)return z}}return null}wt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=wp(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof mn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof mn?x=Math.max(x,uS(b)):b instanceof qi&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}wt.se=function(){return!(this.type===mn.TableRow||this.type===mn.TableColumn)};function Hd(a){return a.type===mn.TableRow||a.type===mn.TableColumn}wt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Vl(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:Ma(Qt.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*b),-(st*b),E.width+at*b,E.height+at*b,tt.x,tt.y)){if(!this.isAtomic){b=this.O.s;var ut=b.length;if(rt=Qt.alloc(),st=(at=this.isClipping&&this.na===mn.Spot)?this.Pb():null,at&&(st.se()?Ma(rt.set(a),st.transform):rt.set(a),!st.ca(rt)))return Qt.free(rt),z||Qt.free(tt),null;for(var ft=wd(this);ut--;){var vt=b[ut];if((vt.visible||vt===ft)&&(vt.se()?Ma(rt.set(a),vt.transform):rt.set(a),!at||vt!==st)){var xt=null;if(vt instanceof mn?xt=vt.ic(rt,y,x):vt.pickable===!0&&vt.ca(rt)&&(xt=vt),xt!==null&&(y!==null&&(xt=y(xt)),xt!==null&&(x===null||x(xt))))return Qt.free(rt),z||Qt.free(tt),xt}}Qt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Qt.free(tt),null):(a=Ps(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||Qt.free(tt),a)}return z||Qt.free(tt),null},wt.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),tt=z?a:Ma(Qt.allocAt(a.x,a.y),this.transform);if(b=Ps(0,0,b.width,b.height,tt.x,tt.y),Hd(this)||b){if(!this.isAtomic){for(var rt=this.O.s,at=rt.length,st=Qt.alloc(),ut=wd(this);at--;){var ft=rt[at];if(ft.visible||ft===ut){ft.se()?Ma(st.set(a),ft.transform):st.set(a);var vt=ft;ft=ft instanceof mn?ft:null,(ft!==null?ft.ji(st,y,x,E):vt.ca(st))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||E.add(vt))}}Qt.free(st)}return z||Qt.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||Qt.free(tt),!1},wt.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=rr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&rr.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=wd(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 mn?ut:null,vt=rr.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,vt):Ds(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),rr.free(vt))}}return z===void 0&&rr.free(tt),E}return z===void 0&&rr.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var rt=tt.actualBounds,at=a.naturalBounds;rt.x>at.width||rt.y>at.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof mn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}wt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,rt=this.se(),at=rt?a:Ma(Qt.allocAt(a.x,a.y),this.transform),st=rt?y:Ma(Qt.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||Ja(at.x,at.y,0,0,0,tt.height)<=ut||Ja(at.x,at.y,0,tt.height,tt.width,tt.height)<=ut||Ja(at.x,at.y,tt.width,tt.height,tt.width,0)<=ut||Ja(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||(Qt.free(at),Qt.free(st)),ft){if(!this.isAtomic){at=Qt.alloc(),st=Qt.alloc(),ut=wd(this);for(var vt=this.O.s,xt=vt.length;xt--;){var Pt=vt[xt];if(Pt.visible||Pt===ut){var bt=Pt.actualBounds,Yt=this.naturalBounds;(!rt||!(bt.x>Yt.width||bt.y>Yt.height||0>bt.x+bt.width||0>bt.y+bt.height))&&(Pt.se()?(bt=Pt.transform,Ma(at.set(a),bt),Ma(st.set(y),bt)):(at.set(a),st.set(y)),bt=Pt,Pt=Pt instanceof mn?Pt:null,(Pt!==null?Pt.og(at,st,x,E,b,z):bt.tx(at,st,b))&&(x!==null&&(bt=x(bt)),bt===null||E!==null&&!E(bt)||z.add(bt)))}}Qt.free(at),Qt.free(st)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof qi&&(y=a.spot1,y===Is&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=bs),y}function yv(a){var y=null;return a instanceof qi&&(y=a.spot2,y===Is&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=yl),y}wt.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},wt.M=function(a){return this.O.M(a)},wt.Gb=function(a,y){y instanceof Ci&&De("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&De("Cannot make a Panel contain itself: "+this.toString()),De("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&De("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!==mn.Grid||y instanceof qi||De("Can only add Shapes to a Grid Panel, not: "+y),this.na!==mn.Graduated||y instanceof qi||y instanceof Jo||De("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new yi),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,at=0;at<rt;at++)if(tt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else De("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Uu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof mn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Kn&&(x.Te=!0),x.Te&&x instanceof Kn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Ka,"elements",this,y,null,E,null),x.cb(ga,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}wt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},wt.mb=function(a){0<=a&&this.pc(a,!0)},wt.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Ss(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Kn&&(E instanceof mn?E.qm(E,function(tt,rt){Gv(z,rt,y)}):Gv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ka,"elements",this,E,null,a,null))},wt.Fb=function(a){0>a&&Ui(a,">= 0",mn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new xs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ga,"rowdefs",this,null,x,null,a)}return y[a]},wt.oA=function(a){if(0>a&&Ui(a,">= 0",mn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ka,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof xs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Eb=function(a){0>a&&Ui(a,">= 0",mn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new xs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ga,"coldefs",this,null,x,null,a)}return y[a]},wt.jA=function(a){if(0>a&&Ui(a,">= 0",mn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ka,"coldefs",this,x,null,a,null),this.v()}}};function cS(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof xs?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Nm(y,a),this},wt.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new xs(y)),this},wt.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new xs(y)),this},wt.nz=function(a){if(0>a||this.type!==mn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},wt.fz=function(a){if(0>a||this.type!==mn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},wt.Fz=function(a,y){if(y===void 0&&(y=new Qt(NaN,NaN)),this.type!==mn.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)},wt.Gz=function(a){if(this.type!==mn.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 wh(a){var y=a.allBindings;if(y===null)a.data!==null&&De("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ln;else if(y._isFrozen)return;var x=new Ln;Sv(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===Kp&&sg(ut,!0);var xt=vt.sourceName;xt!==null&&(xt==="/"&&Sv(st,!0),xt=L1(vt,st,ut),xt!==null&&(x.add(xt),xt.srcBindings===null&&(xt.srcBindings=new Ln),xt.srcBindings.add(vt))),y.add(vt)}if(ut instanceof mn&&ut.type===mn.Table){if(0<ut.rowCount){for(st=ut.rowDefs,ft=st.length,vt=0;vt<ft;vt++)if(xt=st[vt],xt!==void 0&&xt.be!==null)for(var Pt=xt.be.iterator;Pt.next();){var bt=Pt.value;bt.xd=xt,bt.to=2,bt.wl=xt.index,y.add(bt)}}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(xt=vt.be.iterator;xt.next();)Pt=xt.value,Pt.xd=vt,Pt.to=1,Pt.wl=vt.index,y.add(Pt)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){sg(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new Ln),b.localBindings.add(tt)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var rt=b.targetProperty,at=rt.indexOf(".");0<at&&z instanceof mn&&(tt=rt.substring(0,at),rt=rt.substr(at+1),at=z.fb(tt),at!==null?(z=at,b.targetProperty=rt):Tr('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof xs?(tt=Ia(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof se?(tt=Ia(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):De("Unknown type of binding target: "+z)}y.freeze(),a instanceof Ci&&a.Zc()&&a.Va()}wt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof mn&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&wh(y),y},wt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof mn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},wt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof mn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var tt=0;b<x&&tt<E;){if(z=a[b],!(z instanceof mn)||z.data!==y[tt])return!0;b++,tt++}return!1}function wp(a){if(a.type===mn.Spot||a.type===mn.Auto)return Math.min(a.O.length,1);if(a.type===mn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof qi&&E.isPanelMain))break}return x}return a.type===mn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof mn&&Hd(a))?1:0}wt.mv=function(){for(var a=wp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=wp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)bm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],tt=E<a.O.length?a.O.M(E):null;if(tt instanceof mn){if(tt.data!==z){var rt=wv(a,tt.data),at=wv(a,z),st=at!==rt;st||(rt=Pv(a,rt),st=Pv(a,at)!==rt),st?(a.pc(E,!1),bm(a,z,b,!1)):tt.data=z}}else bm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,xv(a,x,0),Uu(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Kn&&(y.Te=!0),y.Te&&y instanceof Kn&&(y.wc=null))}}function bm(a,y,x,E){if(!(y==null||0>x)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(wh(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new yi),a.ge.add(y,b)),z=x+wp(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof mn){var b=y,z=x;E.type===mn.TableRow?E.row=b:E.type===mn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function wv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=rs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;De("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(gS||(gS=!0,Tr('No item template Panel found for category "'+y+'" on '+a),Tr(" Using default item template."),a=new mn,y=new Jo,y.bind(new ls("text","",to)),a.add(y),pS=a),E=pS)),E}function Fm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof mn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof mn&&!z.isEnabled||Fm(a,z,x)}}}function Fc(a,y){y.name=a,Wh.add(a,y)}Ze.Object.defineProperties(mn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===mn.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&&Ui(a,">= 0",mn,"padding"),a=new $i(a)):(0>a.left&&Ui(a.left,">= 0",mn,"padding:value.left"),0>a.right&&Ui(a.right,">= 0",mn,"padding:value.right"),0>a.top&&Ui(a.top,">= 0",mn,"padding:value.top"),0>a.bottom&&Ui(a.bottom,">= 0",mn,"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:Fl},set:function(a){typeof a=="number"&&(a=new $i(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 Co)&&(a instanceof Co&&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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||De("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new 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 Co)&&(a instanceof Co&&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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||De("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new 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||De("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Za(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()||De("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Za(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 Pd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ol(this)&&(a=this.part,a!==null&&da(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 Pd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ol(this)&&(a=this.part,a!==null&&da(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 Pd),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 Pd),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 Pd,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 Pd,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 Pd,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 Pd,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:Tm},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:Tm},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)&&De("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)&&De("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 Ci&&!(this instanceof Kr);wh(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof En?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Ci&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new 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 yi}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Ci||a.isPanelMain)&&De("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(););lr(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&&(lr(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 Vi&&(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&&Fm(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))}}}),Ze.Object.defineProperties(mn,{Position:{get:function(){return Wh.I("Position")}},Horizontal:{get:function(){return Wh.I("Horizontal")}},Vertical:{get:function(){return Wh.I("Vertical")}},Spot:{get:function(){return Wh.I("Spot")}},Auto:{get:function(){return Wh.I("Auto")}},Table:{get:function(){return Wh.I("Table")}},Viewbox:{get:function(){return Wh.I("Viewbox")}},TableRow:{get:function(){return Wh.I("TableRow")}},TableColumn:{get:function(){return Wh.I("TableColumn")}},Link:{get:function(){return Wh.I("Link")}},Grid:{get:function(){return Wh.I("Grid")}},Graduated:{get:function(){return Wh.I("Graduated")}}}),mn.prototype.rebuildItemElements=mn.prototype.mv,mn.prototype.findItemPanelForData=mn.prototype.sx,mn.prototype.updateTargetBindings=mn.prototype.La,mn.prototype.copyTemplate=mn.prototype.Uy,mn.prototype.graduatedValueForPoint=mn.prototype.Gz,mn.prototype.graduatedPointForValue=mn.prototype.Fz,mn.prototype.findColumnForLocalX=mn.prototype.fz,mn.prototype.findRowForLocalY=mn.prototype.nz,mn.prototype.addColumnDefinition=mn.prototype.By,mn.prototype.addRowDefinition=mn.prototype.Hy,mn.prototype.addRowColumnDefinition=mn.prototype.Gy,mn.prototype.removeColumnDefinition=mn.prototype.jA,mn.prototype.getColumnDefinition=mn.prototype.Eb,mn.prototype.removeRowDefinition=mn.prototype.oA,mn.prototype.getRowDefinition=mn.prototype.Fb,mn.prototype.removeAt=mn.prototype.mb,mn.prototype.remove=mn.prototype.remove,mn.prototype.insertAt=mn.prototype.Gb,mn.prototype.elt=mn.prototype.M,mn.prototype.add=mn.prototype.add,mn.prototype.findObject=mn.prototype.fb,mn.prototype.findInVisualTree=mn.prototype.Nl,mn.prototype.walkVisualTreeFrom=mn.prototype.qm,mn.prototype.findMainElement=mn.prototype.Pb;var gS=!1,pS=null,Wh=new yi;mn.className="Panel",mn.definePanelLayout=Fc,Fc("Position",new vm),Fc("Vertical",new Sm),Fc("Auto",new wm),Fc("Link",new Mm);function Pd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Pd.prototype.copy=function(){var a=new Pd;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},Pd.className="GradPanelSettings";function lh(){this.Pc=[],this.Oc=[],this.j=this.ob=Tm,this.hb=this.Hb=0,this.Qp=Fl,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,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),b[z]=tt}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),b[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},lh.className="TablePanelSettings";function xs(a){vo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Is,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Zi,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}xs.prototype.copy=function(){var a=new xs;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=ro(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Nm(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=ro(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}wt=xs.prototype,wt.qb=function(a){a.classType===xs&&(this.sizing=a)},wt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Ia(this)},wt.wi=function(a){this.Me=a},wt.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)},wt.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===mn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var tt=E?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},wt.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(na,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function Bm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}wt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new ls(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&dS(y)&&De("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Ln),this.be.add(b),this},Ze.Object.defineProperties(xs.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&&Ui(a,">= 0",xs,"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&&Ui(a,">= 0",xs,"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))&&Ui(a,">= 0",xs,"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&&Ui(a,">= 0",xs,"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 $i(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 Co&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||De("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&hg(a,"RowColumnDefinition.background"),a instanceof Co&&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}}}),xs.prototype.computeEffectiveSpacing=xs.prototype.Wc,xs.prototype.computeEffectiveSpacingTop=xs.prototype.Io;var Cv=new We(xs,"Default",0),Pp=new We(xs,"None",1),Tm=new We(xs,"ProportionalExtra",2);xs.className="RowColumnDefinition",xs.Default=Cv,xs.None=Pp,xs.ProportionalExtra=Tm;function qi(a,y){se.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}we(qi,se),qi.prototype.cloneProtected=function(a){se.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=ro(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 Lv:a.Na.nc&&(a.Na=a.Na.copy())}wt=qi.prototype,wt.th=function(){se.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},wt.qb=function(a){a===qe||a===Jn||a===br||a===Zi?this.geometryStretch=a:se.prototype.qb.call(this,a)},wt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Ia(this)};function zg(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],at=x[1],st,ut,ft,vt,xt,Pt,bt=0,Yt=ki(),Wt=2;Wt<b;Wt+=2)st=x[Wt],ut=x[Wt+1],ft=st-rt,rt=ut-at,ft===0&&(ft=.001),vt=rt/ft,xt=Math.atan2(rt,ft),Pt=Math.sqrt(ft*ft+rt*rt),Yt.push([ft,xt,vt,Pt]),bt+=Pt,rt=st,at=ut;rt=x[0],at=x[1],ft=E.measuredBounds.width,E instanceof qi&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,st=tt/2,ut=st!==0,Wt=0,Pt=Yt[Wt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3];for(var te=0;.1<=bt;){if(te===0&&(ut?(b=x,b-=st,bt-=st,ut=!1):b=x,b===0&&(b=1)),b>bt){Bi(Yt);return}b>Pt?(te=b-Pt,b=Pt):te=0;var ne=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(ne=-ne),rt+=ne,at+=vt*ne,a.translate(rt,at),a.rotate(xt),a.translate(-(tt/2),-(z/2)),te===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-rt,-at),bt-=b,Pt-=b,te!==0){if(Wt++,Wt===Yt.length){Bi(Yt);return}Pt=Yt[Wt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3],b=te}}Bi(Yt)}}wt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&Xa(this,a,E,!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===mn.Link&&rt instanceof Kr&&rt.category==="Selection"&&rt.adornedObject instanceof qi&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Xa(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||E!==null&&E!=="transparent"||(rt=!1),tt=!1,at=this.strokeDashArray,at!==null&&(tt=!0,a.js(at,this.strokeDashOffset)),b.type===kn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===kn.u){var st=b.startX;at=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(st,ut);var vt=Math.min(at,ft);st=Math.abs(ut-st),at=Math.abs(ft-at),a.beginPath(),a.rect(b,vt,st,at),E!==null&&a.ng(E),x!==null&&(rt&&z&&Zc(a),a.jk(),rt&&z&&yd(a)),a.Se()}else if(b.type===kn.F)st=b.startX,at=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-st)/2,vt=Math.abs(ft-at)/2,st=Math.min(st,ut)+b,at=Math.min(at,ft)+vt,a.beginPath(),a.moveTo(st,at-vt),a.bezierCurveTo(st+xe.wg*b,at-vt,st+b,at-xe.wg*vt,st+b,at),a.bezierCurveTo(st+b,at+xe.wg*vt,st+xe.wg*b,at+vt,st,at+vt),a.bezierCurveTo(st-xe.wg*b,at+vt,st-b,at+xe.wg*vt,st-b,at),a.bezierCurveTo(st-b,at-xe.wg*vt,st-xe.wg*b,at-vt,st,at-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(rt&&z&&Zc(a),a.jk(),rt&&z&&yd(a)),a.Se();else if(b.type===kn.o)for(b=b.figures,at=b.length,vt=0;vt<at;vt++){st=b.s[vt],a.beginPath(),a.moveTo(st.startX,st.startY),ut=st.segments.s,ft=ut.length;for(var xt=null,Pt=0;Pt<ft;Pt++){var bt=ut[Pt];switch(bt.type){case $a:a.moveTo(bt.endX,bt.endY);break;case Ho:a.lineTo(bt.endX,bt.endY);break;case Ns:a.bezierCurveTo(bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,bt.endX,bt.endY);break;case Gl:a.quadraticCurveTo(bt.point1X,bt.point1Y,bt.endX,bt.endY);break;case Qa:if(bt.radiusX===bt.radiusY){var Yt=Math.PI/180;a.arc(bt.point1X,bt.point1Y,bt.radiusX,bt.startAngle*Yt,(bt.startAngle+bt.sweepAngle)*Yt,0>bt.sweepAngle,xt!==null?xt.endX:st.startX,xt!==null?xt.endY:st.startY)}else if(xt=Nl(bt,st),Yt=xt.length,Yt===0)a.lineTo(bt.centerX,bt.centerY);else for(var Wt=0;Wt<Yt;Wt++){var te=xt[Wt];Wt===0&&a.lineTo(te[0],te[1]),a.bezierCurveTo(te[2],te[3],te[4],te[5],te[6],te[7])}break;case eu:if(Wt=Yt=0,xt!==null&&xt.type===Qa){if(xt=Nl(xt,st),te=xt.length,te===0){a.lineTo(bt.endX,bt.endY);break}xt=xt[te-1]||null,xt!==null&&(Yt=xt[6],Wt=xt[7])}else Yt=xt!==null?xt.endX:st.startX,Wt=xt!==null?xt.endY:st.startY;if(xt=fu(bt,st,Yt,Wt),Yt=xt.length,Yt===0){a.lineTo(bt.endX,bt.endY);break}for(Wt=0;Wt<Yt;Wt++)te=xt[Wt],a.bezierCurveTo(te[2],te[3],te[4],te[5],te[6],te[7]);break;default:De("Segment not of valid type: "+bt.type)}bt.isClosed&&a.closePath(),xt=bt}ut=st.isFilled,z?st.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&(ut&&rt&&Zc(a),a.jk(),ut&&rt&&yd(a))):(Zc(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,st.isEvenOdd),x!==null&&a.jk(),yd(a)):(ut&&E!==null&&a.ng(E,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),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=ki(),z.type===kn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),zg(a,y,E,x);else if(z.type===kn.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,E.length=0,E.push(rt.startX),E.push(rt.startY),tt=rt.startX,b=rt.startY,at=tt,vt=b,st=rt.segments.s,ut=st.length,ft=0;ft<ut;ft++){switch(Pt=st[ft],Pt.type){case $a:zg(a,y,E,x),E.length=0,E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY,at=tt,vt=b;break;case Ho:E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break;case Ns:xe.Qe(tt,b,Pt.point1X,Pt.point1Y,Pt.point2X,Pt.point2Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case Gl:xe.ep(tt,b,Pt.point1X,Pt.point1Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case Qa:if(bt=Nl(Pt,rt),xt=bt.length,xt===0){E.push(Pt.centerX),E.push(Pt.centerY),tt=Pt.centerX,b=Pt.centerY;break}for(Yt=0;Yt<xt;Yt++)Wt=bt[Yt],xe.Qe(tt,b,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,E),tt=Wt[6],b=Wt[7];break;case eu:if(bt=fu(Pt,rt,tt,b),xt=bt.length,xt===0){E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break}for(Yt=0;Yt<xt;Yt++)Wt=bt[Yt],xe.Qe(tt,b,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,E),tt=Wt[6],b=Wt[7];break;default:De("Segment not of valid type: "+Pt.type)}Pt.isClosed&&(E.push(at),E.push(vt),zg(a,y,E,x))}zg(a,y,E,x)}else if(z.type===kn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),zg(a,y,E,x);else if(z.type===kn.F){if(b=new cs,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new zr(Qa),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,b.add(tt),z=Nl(tt,b),rt=z.length,rt===0)E.push(tt.centerX),E.push(tt.centerY);else for(tt=b.startX,b=b.startY,at=0;at<rt;at++)vt=z[at],xe.Qe(tt,b,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,E),tt=vt[6],b=vt[7];zg(a,y,E,x)}Bi(E),a.restore(),a.Vc(!1)}}}},wt.kk=function(a,y,x){return!se.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)},wt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:se.prototype.nk.call(this,a)},wt.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)}},wt.ga=function(a,y){if(y===void 0&&(y=new Qt),a instanceof wi){a.Mc()&&De("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},wt.mi=function(a){a===void 0&&(a=new Xe);var y=this.naturalBounds,x=this.oe;y=Xe.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Qt.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),ja(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),ja(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),ja(a,E.x,E.y,0,0),Xe.free(y),Qt.free(E),a},wt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==kn.j||y||(b+=2);var z=Xe.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return Xe.free(z),!1;if(E=b+1e-4,x.type===kn.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(Xe.free(z),xe.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===kn.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return Xe.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Xe.free(z),a}if(x.type===kn.F){tt=x.startX,b=x.startY,rt=x.endX;var at=x.endY;if(x=Math.min(tt,rt),y=Math.min(b,at),tt=Math.abs(rt-tt)/2,b=Math.abs(at-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return Xe.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),Xe.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===kn.o)return Xe.free(z),this.fill===null?yc(x,a.x,a.y,b):Bh(x,a,b,1<this.strokeWidth,y);De("Unknown Geometry type: "+x.type)},wt.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var rt=this.figure,at=Ev[rt];if(at===void 0){var st=xe.Ze[rt];typeof st=="string"&&(st=xe.Ze[st]),typeof st=="function"?(at=st(null,100,100),Ev[rt]=at):De("Unsupported Figure: "+rt)}tt=at.bounds}rt=tt.width,at=tt.height,st=tt.width;var ut=tt.height;switch(ru(this,!0)){case qe:E=x=0;break;case _e:st=Math.max(a-z,0),ut=Math.max(y-z,0);break;case vi:st=Math.max(a-z,0),E=0;break;case Ti:x=0,ut=Math.max(y-z,0)}isFinite(b.width)&&(st=b.width),isFinite(b.height)&&(ut=b.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),E=Math.max(E-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(E,ut):Math.max(at,E),x=Av(this),x){case qe:break;case _e:rt=st,at=ut;break;case Jn:x=Math.min(st/rt,ut/at),isFinite(x)||(x=1),rt*=x,at*=x;break;default:De(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,E=rt/tt.width,tt=at/tt.height,isFinite(E)||(E=1),isFinite(tt)||(tt=1),this.ua=E===1&&tt===1?x:x.copy().scale(E,tt)):this.ua!==null&&xe.$(this.ua.Sk,a-z)&&xe.$(this.ua.Rk,y-z)||(this.ua=qi.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),b.w()?(st=b.width,ut=b.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 Av(a){var y=a.geometryStretch;return a.Rd!==null?y===Zi?_e:y:y===Zi?Ev[a.figure].defaultStretch:y}wt.eh=function(a,y,x,E){zl(this,a,y,x,E)},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,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+E*st+ft,at=x*at+E*ut+vt,ft=this.ig/2,st=this.ua,st===null&&(this.measure(1/0,1/0),st=this.ua);var xt=st.bounds;if(ut=!1,st.type===kn.j)if(1.5>=this.strokeWidth)ut=xe.Ve(st.startX,st.startY,st.endX,st.endY,z,tt,rt,at,b);else{if(st.startX===st.endX?(E=ft,ut=0):(y=(st.endY-st.startY)/(st.endX-st.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=ki(),a=new Qt,xe.Ve(st.startX+E,st.startY+ut,st.endX+E,st.endY+ut,z,tt,rt,at,a)&&y.push(a),a=new Qt,xe.Ve(st.startX-E,st.startY-ut,st.endX-E,st.endY-ut,z,tt,rt,at,a)&&y.push(a),a=new Qt,xe.Ve(st.startX+E,st.startY+ut,st.startX-E,st.startY-ut,z,tt,rt,at,a)&&y.push(a),a=new Qt,xe.Ve(st.endX+E,st.endY+ut,st.endX-E,st.endY-ut,z,tt,rt,at,a)&&y.push(a),rt=y.length,rt===0)return Bi(y),!1;for(ut=!0,at=1/0,E=0;E<rt;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<at&&(at=x,b.x=a.x,b.y=a.y);Bi(y)}else if(st.type===kn.u)ut=xe.Ff(xt.x-ft,xt.y-ft,xt.x+xt.width+ft,xt.y+xt.height+ft,z,tt,rt,at,b);else if(st.type===kn.F){y=Xe.allocAt(xt.x,xt.y,xt.width,xt.height).Bc(ft,ft);t:if(y.width===0)ut=xe.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,at,b);else if(y.height===0)ut=xe.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,at,b);else{if(a=y.width/2,st=y.height/2,E=y.x+a,ut=y.y+st,x=9999,z!==rt&&(x=(tt-at)/(z-rt)),9999>Math.abs(x)){if(at=tt-ut-x*(z-E),0>a*a*x*x+st*st-at*at){b.x=NaN,b.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)+E,a=(-(a*a*x*at)-a*st*ft)/(st*st+a*a*x*x)+E,st=x*(rt-E)+at+ut,at=x*(a-E)+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))?(b.x=rt,b.y=st):(b.x=a,b.y=at)}else{if(rt=st*st,at=z-E,rt-=rt/(a*a)*at*at,0>rt){b.x=NaN,b.y=NaN,ut=!1;break t}at=Math.sqrt(rt),rt=ut+at,at=ut-at,Math.abs(rt-tt)<Math.abs(at-tt)?(b.x=z,b.y=rt):(b.x=z,b.y=at)}ut=!0}Xe.free(y)}else if(st.type===kn.o){vt=Qt.alloc();var Pt=rt-z,bt=at-tt,Yt=Pt*Pt+bt*bt,Wt=z,te=tt;if(0<Yt&&xt.contains(Wt,te)&&(vt.x=Wt,vt.y=te,this.ca(vt)))for(Pt!==0&&.5>Math.abs(Pt)?(bt*=.5/Pt,Pt=.5):bt!==0&&.5>Math.abs(bt)&&(Pt*=.5/bt,bt=.5),Wt-=Pt,te-=bt;xt.contains(Wt,te);)Wt-=Pt,te-=bt;for(b.x=rt,b.y=at,bt=0;bt<st.figures.count;bt++){var ne=st.figures.s[bt],oe=ne.isFilled?Wt:z,me=ne.isFilled?te:tt,Me=ne.segments;xt=ne.startX,Pt=ne.startY;for(var zn=xt,li=Pt,_n=0;_n<Me.count;_n++){var An=Me.s[_n],an=An.type,Gi=An.endX,Wi=An.endY,$r=!1;switch(an){case $a:zn=Gi,li=Wi;break;case Ho:$r=Om(xt,Pt,Gi,Wi,oe,me,rt,at,vt);break;case Ns:$r=xe.Eo(xt,Pt,An.point1X,An.point1Y,An.point2X,An.point2Y,Gi,Wi,oe,me,rt,at,.6,vt);break;case Gl:$r=xe.Eo(xt,Pt,xt+2/3*(An.point1X-xt),Pt+2/3*(An.point1Y-Pt),Gi+2/3*(An.point1X-Gi),Wi+2/3*(An.point1Y-Wi),Gi,Wi,oe,me,rt,at,.6,vt);break;case Qa:case eu:an=An.type===Qa?Nl(An,ne):fu(An,ne,xt,Pt);var Zo=an.length;if(Zo===0){$r=Om(xt,Pt,An.type===Qa?An.centerX:An.endX,An.type===Qa?An.centerY:An.endY,oe,me,rt,at,vt);break}for(Wi=null,Gi=0;Gi<Zo;Gi++){if(Wi=an[Gi],Gi===0&&Om(xt,Pt,Wi[0],Wi[1],oe,me,rt,at,vt)){var Os=Dm(oe,me,vt,Yt,b);Os<Yt&&(Yt=Os,ut=!0)}xe.Eo(Wi[0],Wi[1],Wi[2],Wi[3],Wi[4],Wi[5],Wi[6],Wi[7],oe,me,rt,at,.6,vt)&&(Os=Dm(oe,me,vt,Yt,b),Os<Yt&&(Yt=Os,ut=!0))}Gi=Wi[6],Wi=Wi[7];break;default:De("Unknown Segment type: "+an)}xt=Gi,Pt=Wi,$r&&($r=Dm(oe,me,vt,Yt,b),$r<Yt&&(Yt=$r,ut=!0)),An.isClosed&&(Gi=zn,Wi=li,Om(xt,Pt,Gi,Wi,oe,me,rt,at,vt)&&(An=Dm(oe,me,vt,Yt,b),An<Yt&&(Yt=An,ut=!0)))}}z=x-a,tt=E-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),b.x-=z*ft,b.y-=tt*ft,Qt.free(vt)}else De("Unknown Geometry type: "+st.type);return ut?(this.transform.Ga(b),!0):!1};function Dm(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Om(a,y,x,E,b,z,tt,rt,at){if(xe.$(a,x)&&xe.$(y,E)||xe.$(b,tt)&&xe.$(z,rt))return!1;var st=!1,ut=(b-tt)*(y-E)-(z-rt)*(a-x);return ut===0?!1:(at.x=((b*rt-z*tt)*(a-x)-(b-tt)*(a*E-y*x))/ut,at.y=((b*rt-z*tt)*(y-E)-(z-rt)*(a*E-y*x))/ut,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(at.y>a||xe.$(at.y,a))&&(at.y<y||xe.$(at.y,y))&&(st=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||xe.$(at.x,y))&&(at.x<a||xe.$(at.x,a))&&(st=!0)),st)}wt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=Qt.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),Qt.free(z),b},wt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=rr.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=Qt.alloc();if(tt.h(E,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(b,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0)))return Qt.free(tt),!0;var rt=Qt.alloc(),at=Qt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=b,rt.y=z,rt.transform(x),tt.x=E,tt.y=z,tt.transform(x),y=!1,Zf(this,tt,rt,at)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),Zf(this,tt,rt,at)?y=!0:(rt.x=E,rt.y=a,rt.transform(x),Zf(this,tt,rt,at)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),Zf(this,tt,rt,at)&&(y=!0)))),Qt.free(tt),rr.free(x),Qt.free(rt),Qt.free(at),y};function Zf(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}wt.tx=function(a,y,x){function E(Yt,Wt){for(var te=Yt.length,ne=0;ne<te;ne+=2)if(Wt.zd(Yt[ne],Yt[ne+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,rt=tt.x,at=tt.y,st=tt.x+tt.width;if(tt=tt.y+tt.height,cr(a.x,a.y,rt,at)<=b&&cr(a.x,a.y,st,at)<=b&&cr(a.x,a.y,rt,tt)<=b&&cr(a.x,a.y,st,tt)<=b)return!0}if(rt=y.startX,at=y.startY,st=y.endX,tt=y.endY,y.type===kn.j){if(x=(rt-st)*(a.x-st)+(at-tt)*(a.y-tt),Ja(a.x,a.y,rt,at,st,tt)<=(0<=(st-rt)*(a.x-rt)+(tt-at)*(a.y-at)&&0<=x?b:z))return!0}else{if(y.type===kn.u)return y=!1,x&&(y=Ja(a.x,a.y,rt,at,rt,tt)<=b||Ja(a.x,a.y,rt,at,st,at)<=b||Ja(a.x,a.y,st,at,st,tt)<=b||Ja(a.x,a.y,rt,tt,st,tt)<=b),y;if(y.type===kn.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 Ja(a.x,a.y,rt,at,st,tt)<=b;if(x){if(a=xe.$y(ut,ft,y,z),a*a<=b)return!0}else return!(cr(y,z,-ut,0)>=b||cr(y,z,0,-ft)>=b||cr(y,z,0,ft)>=b||cr(y,z,ut,0)>=b)}else if(y.type===kn.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&&Ja(a.x,a.y,z,rt,z,st)>b&&Ja(a.x,a.y,z,rt,at,rt)>b&&Ja(a.x,a.y,at,st,z,st)>b&&Ja(a.x,a.y,at,st,at,rt)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?yc(y,a.x,a.y,z):Bh(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>b)return!1;for(rt=z.segments.s,at=rt.length,st=0;st<at;st++)switch(ft=rt[st],ft.type){case $a:case Ho:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case Ns:var vt=ki();if(xe.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Gl:if(vt=ki(),xe.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),Bi(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case Qa:case eu:vt=ft.type===Qa?Nl(ft,z):fu(ft,z,tt,ut);var xt=vt.length;if(xt===0){if(tt=ft.type===Qa?ft.centerX:ft.endX,ut=ft.type===Qa?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Pt=ki(),bt=0;bt<xt;bt++)if(ft=vt[bt],Pt.length=0,xe.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Pt),E(Pt,a))return Bi(Pt),!1;Bi(Pt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:De("Unknown Segment type: "+ft.type)}}return!0}}}return!1},wt.qc=function(){this.ua=null},wt.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Np,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Hs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new wi(1-Hs.x,Hs.y)))}qi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Jc[a.toArrow];else a.fromArrow!=="None"?E=Jc[a.fromArrow]:(E=xe.Ze[a.figure],typeof E=="string"&&(E=xe.Ze[E]),E===void 0&&De("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=xe.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function vS(a){var y=Jc[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Jc[x],y===void 0){var E=null,b;for(b in xe.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=kn.parse(xe.um[E],!1),Jc[E]=a,x!==E&&(Jc[x]=E),E}}return typeof y=="string"?y:y instanceof kn?a:null}Ze.Object.defineProperties(qi.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),ol(this)&&(a=this.part,a!==null&&da(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=kn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Qt.allocAt(-y.x,-y.y),Qt.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 Co&&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 Co&&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 Ui(a,"value >= 0",qi,"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"?Ui(a,'"butt", "round", or "square"',qi,"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"?Ui(a,'"miter", "bevel", or "round"',qi,"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,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||De("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(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=xe.Ze[a];typeof x=="function"?x=a:(x=xe.Ze[a.toLowerCase()])||De("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?De("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?De("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:Is},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:Is},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:Zi},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 Qc),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Za(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 Qc),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 Qc),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 Qc),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),qi.prototype.intersectsRect=qi.prototype.Yc,qi.prototype.containedInRect=qi.prototype.fh,qi.prototype.getNearestIntersectionPoint=qi.prototype.rs,qi.prototype.getDocumentBounds=qi.prototype.mi,qi.prototype.getDocumentPoint=qi.prototype.ga;var Jc=new ir,Ev=new ir;qi.className="Shape",qi.getFigureGenerators=function(){var a=new yi,y;for(y in xe.Ze)y!==y.toLowerCase()&&a.add(y,xe.Ze[y]);return a.freeze(),a},qi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=xe.Ze;E[a]=y,E[x]=a},qi.getArrowheadGeometries=function(){var a=new yi;for(E in xe.um)if(Jc[E]===void 0){var y=kn.parse(xe.um[E],!1);Jc[E]=y,y=E.toLowerCase(),y!==E&&(Jc[y]=E)}for(var x in Jc)if(x!==x.toLowerCase()){var E=Jc[x];E instanceof kn&&a.add(x,E)}return a.freeze(),a},qi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=kn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||De("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Jc;E[a]=x,E[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Zi,this.gg=this.fg=Is}Lv.prototype.copy=function(){var a=new Lv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Jo(a,y){return se.call(this),Wm||(ou=sa?new xh(null).context:null,Wm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}we(Jo,se),Jo.prototype.cloneProtected=function(a){se.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 Nc(a){a.da===null?a.da=new Tv:a.da.nc&&(a.da=a.da.copy())}wt=Jo.prototype,wt.th=function(){se.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}wt.qb=function(a){a.classType===Jo?this.wrap=a:se.prototype.qb.call(this,a)},wt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},wt.v=function(){se.prototype.v.call(this)},wt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,tt=Ap(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;Xa(this,a,this.xc,!0,!1,x,E),(at||st)&&Xa(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof bu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case Ir:a.translate(b,0),a.scale(-1,1);break;case ur:a.translate(0,z),a.scale(1,-1);break;case Bo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,rt,at,st);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var xt=this.Qc[vt];xt>b&&(xt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,xt,x,rt,at,st),E+=tt+ft}switch(this.flip){case Ir:a.scale(-1,1),a.translate(-b,0);break;case ur:a.scale(1,-1),a.translate(0,-z);break;case Bo:a.scale(-1,-1),a.translate(-b,-z)}}},wt.Oj=function(a,y,x,E,b,z,tt,rt,at,st,ut){var ft=0;if(rt)at==="left"?ft=0:at==="right"?ft=b-tt:at==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(at==="left"?ft=0:at==="right"?ft=b:at==="center"&&(ft=b/2),b=Rm!==null?Rm(this,z):.75*z,y.fillText(a,x+ft,E+b),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=E+rt,b=x+ft+tt,rt=E+rt;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(at,st),y.lineTo(b,rt),y.stroke(),y.Se(),y instanceof bu&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof bu&&y.ad.classList.add("gojs-td"))}},wt.kk=function(a,y,x){if(!se.prototype.kk.call(this,a,y,x))return!1;if(Xa(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++)_y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,_y(a,y,!0);return!0},wt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:se.prototype.nk.call(this,a)},wt.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)}},wt.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;ou!==null&&ES!==z&&(ES=ou.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===Ep&&(rt=rt.trim()),tt=Math.max(tt,Hh(rt)),rt=st+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=Hh(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,Ap(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);Hh(st)>y&&1<st.length;)st=st.substr(0,st.length-1);st+=Lp,y=Hh(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===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),bl(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},wt.eh=function(a,y,x,E){zl(this,a,y,x,E)};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 Mv(a,y,x,E){var b=a.formatting===Ep;b&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Ap(a)+rt);var at=a.overflow===zm?SS(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,rt);else if(tt=y,a.wrap===kv){a.Le=1;var st=Hh(y);if(at===0||st<=x)a.Cb=Math.max(a.Cb,st),Cp(a,y,a.Cb),E!==null&&E.h(st,rt);else{for(z=jg(a,tt),tt=tt.substr(z.length),y=jg(a,tt),st=Hh(z+y);0<y.length&&st<=x;)z+=y,tt=tt.substr(y.length),y=jg(a,tt),st=z+y,b&&(st=st.trim()),st=Hh(st);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-at);Hh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Lp;var ut=Hh(z);a.Cb=ut,Cp(a,z,ut),E!==null&&E.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);Hh(y)>x;){var ft=1;for(st=Hh(y.substr(0,ft)),ut=0;st<=x;)ft++,ut=st,st=Hh(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=Hh(y+ut);0<ut.length&&st<=x;)y+=ut,tt=tt.substr(ut.length),ut=jg(a,tt),st=y+ut,b&&(st=st.trim()),st=Hh(st);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=st,z=Math.max(z,st)):(ft=ut=Hh(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),E!==null&&E.h(a.Cb,rt*a.Le)}}function jg(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===CS&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Hh(a){return ou===null?8*a.length:ou.measureText(a).width}function Ap(a){if(a.df!==null)return a.df;var y=a.Ae;if(ou===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>AS?x=Nv[y]:(x=1.3*ou.measureText("M").width,Nv[y]=x,AS++),a.df=x}function SS(a){if(ou===null)return 6;if(jm[a]!==void 0&&5e3>Bv)var y=jm[a];else y=ou.measureText(Lp).width,jm[a]=y,Bv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Ap(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
|
|
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==kv){a.Le=0;var at=un.alloc();Mv(a,z,y,at),b+=at.height,un.free(at),a.Gc+=a.Le}else Mv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=b}Ze.Object.defineProperties(Jo.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Nc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:qe},set:function(a){var y=this.flip;y!==a&&(Nc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:hd},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Nc(this),this.da.Yr=a,Kl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=un.alloc();Mv(this,this.ec,999999,a);var y=a.width;un.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),bl(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:bv},set:function(a){var y=this.wrap;y!==a&&(Nc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(Nc(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 Co&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Ap(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&&(Nc(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&&(Nc(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 Qc),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 Qc),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 Qc),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 Qc),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 Qc),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&&(Nc(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&&(Nc(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&&(Nc(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&&(Nc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Ep},set:function(a){var y=this.formatting;y!==a&&(Nc(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&&Ui(a,"> 0",Jo,"maxLines"),Nc(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,kv=new We(Jo,"None",0),wS=new We(Jo,"WrapFit",1),bv=new We(Jo,"WrapDesiredSize",2),PS=new We(Jo,"WrapBreakAll",3),Fv=new We(Jo,"OverflowClip",0),zm=new We(Jo,"OverflowEllipsis",1),Ep=new We(Jo,"FormatTrim",0),CS=new We(Jo,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new ir,AS=0,jm=new ir,Bv=0,Lp="...",ES="",ou=null,Wm=!1;Jo.className="TextBlock";function Tv(){this.nc=!1,this.Hd=null,this.Xf=qe,this.gq=Ep,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=hd,this.$r=bv}Tv.prototype.copy=function(){var a=new Tv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Jo.getEllipsis=function(){return Lp},Jo.setEllipsis=function(a){Lp=a,jm=new ir,Bv=0},Jo.getBaseline=function(){return Rm},Jo.setBaseline=function(a){Rm=a},Jo.getUnderline=function(){return Im},Jo.setUnderline=function(a){Im=a},Jo.isValidFont=function(a){if(Wm||(ou=sa?new xh(null).context:null,Wm=!0),ou===null)return!0;var y=ou.font;if(a===y||a==="10px sans-serif")return!0;ou.font="10px sans-serif",ou.font=a;var x=ou.font;if(x!=="10px sans-serif")return ou.font=y,!0;ou.font="19px serif";var E=ou.font;return ou.font=a,x=ou.font,ou.font=y,x!==E},Jo.FormatNone=CS,Jo.FormatTrim=Ep,Jo.None=kv,Jo.OverflowClip=Fv,Jo.OverflowEllipsis=zm,Jo.WrapBreakAll=PS,Jo.WrapDesiredSize=bv,Jo.WrapFit=wS;function Qc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Qc.prototype.copy=function(){var a=new Qc;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Qc.className="GradElementSettings";function au(a,y){se.call(this),this.Eg=null,this.qo="",this.Xg=Wa,this.Nk=_e,this.Zg=this.Hd=null,this.Mk=no,this.Xf=qe,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 Wg;we(au,se),au.prototype.cloneProtected=function(a){se.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===qe||a===Jn||a===br?this.imageStretch=a:se.prototype.qb.call(this,a)},au.prototype.toString=function(){return"Picture("+this.source+")#"+Ia(this)};function Hg(a){a===void 0&&(a=""),a!==""?Wg[a]&&(delete Wg[a],Hm--):(Wg=new ir,Hm=0)}function LS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var rt=tt.length,at=0;at<rt;at++)z=tt[at],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Ss(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null){b=tt.length,z=ki();for(var rt=0;rt<b;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<b;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);Bi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}au.prototype.hA=function(){if(this.source!==""){Hg(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 E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Vf)){var b=a instanceof bu;E=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||E.width,rt=rt||E.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,xt=this.Nk,Pt=this.Mk;switch(xt){case qe:if(this.sourceRect.w())break;ft>=E.width&&(z=z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)),vt>=E.height&&(tt=tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)),at=Math.min(E.width,ft),rt=Math.min(E.height,vt);break;case _e:ft=E.width,vt=E.height;break;case Jn:case br:xt===Jn?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===br&&(xt=Math.max(E.height/vt,E.width/ft),ft*=xt,vt*=xt,ft>=E.width&&(z=(z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)/ft)*at),vt>=E.height&&(tt=(tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)/vt)*rt),at*=1/(ft/E.width),rt*=1/(vt/E.height),ft=E.width,vt=E.height)}xt=this.Df()*y.scale;var bt=ft*xt*vt*xt,Yt=at*rt/bt,Wt=x.__goCache;xt=null;var te=xx;if(!b){if(x.sq&&Wt!==void 0&&4<bt&&Yt>te*te)for(Wt.gi===null&&(kS(Wt,4,st,ut,x),kS(Wt,16,st,ut,x)),b=Wt.gi,st=b.length,ut=0;ut<st&&b[ut].ratio*b[ut].ratio<Yt;ut++)xt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new xh(null).context;try{b.drawImage(this.Eg,0,0)}catch(ne){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ne){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?Pt.offsetX+(E.width*Pt.x-ft*Pt.x):0,Pt=vt<E.height?Pt.offsetY+(E.height*Pt.y-vt*Pt.y):0,this.flip){case Ir:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case ur:a.translate(0,Math.min(E.height,vt)),a.scale(1,-1);break;case Bo:a.translate(Math.min(E.width,ft),Math.min(E.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Wt!==void 0&&xt!==null&&xt.ratio!==1){a.save(),y=xt.ratio;try{a.drawImage(xt.source,z/y,tt/y,Math.min(xt.source.width,at/y),Math.min(xt.source.height,rt/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof bu&&(this.bt=[z/y,tt/y,Math.min(xt.source.width,at/y),Math.min(xt.source.height,rt/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(ne){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,at,rt,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof bu&&(this.bt=[z,tt,at,rt,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(ne){this.en=!1}switch(this.flip){case Ir:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case ur:a.scale(1,-1),a.translate(0,-Math.min(E.height,vt));break;case Bo:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,vt))}}}}},au.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=ru(this,!0),tt=this.Eg,rt=this.qn,at=0,st=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(at=rt?+tt.width:tt.naturalWidth,st=rt?+tt.height:tt.naturalHeight),isFinite(b.width)||z===_e||z===vi?(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(b.height)||z===_e||z===Ti?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=st)),E=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:st),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),bl(this.dc,a,y),this.Ge(0,0,a,y)},au.prototype.eh=function(a,y,x,E){zl(this,a,y,x,E)},Ze.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||De("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Vu(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new pn),E!==null&&x&&Xs(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ss(this,!1),this.v())):x&&LS(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=Wg;if(sa){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Hm&&(Hg(),x=Wg),E=Dn("img"),E.hn=!0,LS(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Hm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new MS),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 Hm=0,xx=4;au.className="Picture",Wg=new ir,au.clearCache=Hg;function MS(){this.gi=null}function kS(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new xh(null),tt=z.context,rt=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new bS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(b,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function bS(a,y){this.source=a,this.ratio=y}bS.className="PictureCacheInstance";function Gg(){this.os=new kn,this.mc=null}Gg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new kn,this.mc=null};function Kg(a,y,x,E,b,z){a.mc=new cs,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Gg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new zr($a);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Gg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new zr(Ho);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Gd(a,y,x,E,b,z,tt){var rt;rt===void 0&&(rt=!1);var at=new zr(Ns);at.point1X=y,at.point1Y=x,at.point2X=E,at.point2Y=b,at.endX=z,at.endY=tt,rt&&at.close(),a.mc.segments.add(at)}function Gm(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new zr(Gl);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}Gg.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new zr(Qa);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=E,rt.radiusX=b,rt.radiusY=z!==0?z:b,tt&&rt.close(),this.mc.segments.add(rt)};function Px(a,y,x,E,b,z,tt,rt){var at;at===void 0&&(at=!1),y=new zr(eu,tt,rt,y,x,E,b,z),at&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Km;return y!==null?(Km=null,y.reset(a),y):(y=new Gg,y.reset(a),y)}var Km=null;Gg.className="StreamGeometryContext";function kl(a,y){var x=a.toLowerCase(),E=xe.Ze;E[a]=y,E[x]=a}kl("Rectangle",function(a,y,x){a="r"+y+","+x;var E=xe.Mf[a];return E!==void 0||(E=new kn(kn.u),E.endX=y,E.endY=x,xe.Nf<xe.vm&&(xe.Mf[a]=E,xe.Nf++)),E}),kl("Square",function(a,y,x){a="s"+y+","+x;var E=xe.Mf[a];return E!==void 0||(E=new kn(kn.u),E.endX=y,E.endY=x,E.defaultStretch=Jn,xe.Nf<xe.vm&&(xe.Mf[a]=E,xe.Nf++)),E}),kl("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=xe.Mf[E];if(b!==void 0)return b;var z=a*xe.wg;return b=new kn().add(new cs(a,0,!0).add(new zr(Ho,y-a,0)).add(new zr(Ns,y,a,y-z,0,y,z)).add(new zr(Ho,y,x-a)).add(new zr(Ns,y-a,x,y,x-z,y-z,x)).add(new zr(Ho,a,x)).add(new zr(Ns,0,x-a,z,x,0,x-z)).add(new zr(Ho,0,a)).add(new zr(Ns,a,0,0,z,z,0).close())),1<z&&(b.spot1=new wi(0,0,z,z),b.spot2=new wi(1,1,-z,-z)),xe.Nf<xe.vm&&(xe.Mf[E]=b,xe.Nf++),b}),kl("Border","RoundedRectangle"),kl("Ellipse",function(a,y,x){a="e"+y+","+x;var E=xe.Mf[a];return E!==void 0||(E=new kn(kn.F),E.endX=y,E.endY=x,E.spot1=cd,E.spot2=tu,xe.Nf<xe.vm&&(xe.Mf[a]=E,xe.Nf++)),E}),kl("Circle",function(a,y,x){a="c"+y+","+x;var E=xe.Mf[a];return E!==void 0||(E=new kn(kn.F),E.endX=y,E.endY=x,E.spot1=cd,E.spot2=tu,E.defaultStretch=Jn,xe.Nf<xe.vm&&(xe.Mf[a]=E,xe.Nf++)),E}),kl("TriangleRight",function(a,y,x){return new kn().add(new cs(0,0).add(new zr(Ho,y,.5*x)).add(new zr(Ho,0,x).close())).pm(0,.25,.5,.75)}),kl("TriangleDown",function(a,y,x){return new kn().add(new cs(0,0).add(new zr(Ho,y,0)).add(new zr(Ho,.5*y,x).close())).pm(.25,0,.75,.5)}),kl("TriangleLeft",function(a,y,x){return new kn().add(new cs(y,x).add(new zr(Ho,0,.5*x)).add(new zr(Ho,y,0).close())).pm(.5,.25,1,.75)}),kl("TriangleUp",function(a,y,x){return new kn().add(new cs(y,x).add(new zr(Ho,0,x)).add(new zr(Ho,.5*y,0).close())).pm(.25,.5,.75,1)}),kl("Triangle","TriangleUp"),kl("Diamond",function(a,y,x){return new kn().add(new cs(.5*y,0).add(new zr(Ho,0,.5*x)).add(new zr(Ho,.5*y,x)).add(new zr(Ho,y,.5*x).close())).pm(.25,.25,.75,.75)}),kl("LineH",function(a,y,x){return a=new kn(kn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),kl("LineV",function(a,y,x){return a=new kn(kn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),kl("None","Rectangle"),kl("BarH","Rectangle"),kl("BarV","Rectangle"),kl("MinusLine","LineH"),kl("PlusLine",function(a,y,x){return new kn().add(new cs(0,x/2,!1).add(new zr(Ho,y,x/2)).add(new zr($a,y/2,0)).add(new zr(Ho,y/2,x)))}),kl("XLine",function(a,y,x){return new kn().add(new cs(0,x,!1).add(new zr(Ho,y,0)).add(new zr($a,0,0)).add(new zr(Ho,y,x)))}),kl("LineRight",function(a,y,x){return new kn().add(new cs(.25*y,0,!1).add(new zr(Ho,.75*y,.5*x)).add(new zr(Ho,.25*y,x)))}),kl("LineDown",function(a,y,x){return new kn().add(new cs(0,.25*x,!1).add(new zr(Ho,.5*y,.75*x)).add(new zr(Ho,y,.25*x)))}),kl("LineLeft",function(a,y,x){return new kn().add(new cs(.75*y,0,!1).add(new zr(Ho,.25*y,.5*x)).add(new zr(Ho,.75*y,x)))}),kl("LineUp",function(a,y,x){return new kn().add(new cs(0,.75*x,!1).add(new zr(Ho,.5*y,.25*x)).add(new zr(Ho,y,.75*x)))}),xe.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 Dv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=xl,this.ir=null,this.jr="",this.lr=Is,this.Gq="",this.Hq=bs,this.Pq=uu,this.Kq=hu,this.Up=null,this.Cq=127,this.zr=Ys,this.yr="gray",this.Vg=4}Dv.prototype.copy=function(){var a=new Dv;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 Ci(a,y){a===void 0||a instanceof Ms||typeof a=="string"?mn.call(this,a):(mn.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 Qt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Xe,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}we(Ci,mn),Ci.prototype.cloneProtected=function(a){mn.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},wt=Ci.prototype,wt.Af=function(a){mn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},wt.toString=function(){var a=Hi(this.constructor)+"#"+Ia(this);return this.data!==null&&(a+="("+to(this.data)+")"),a};function su(a){a.P===null?a.P=new Dv:a.P.nc&&(a.P=a.P.copy())}wt.th=function(){mn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},wt.gk=function(a,y,x,E,b,z,tt){var rt=this.diagram;rt!==null&&(a===ga&&y==="elements"?b instanceof mn?Yf(b,function(at){sy(rt.partManager,at),Il(rt,at)}):Xs(rt,b):a===Ka&&y==="elements"&&(b instanceof mn?Yf(b,function(at){ly(rt.partManager,at,rt)}):Vu(rt,b)),rt.cb(a,y,x,E,b,z,tt))},wt.La=function(a){if(mn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof mn&&Yf(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Ci.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Ci.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Ci.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new yi),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Ci.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Ci.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ki();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Bi(y)}},Ci.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 Vi?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Kr))break t;wh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=mn.Link),x.adornedObject=y)}if(x!==null){x.type===mn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Ci.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Vm(a){if(vf(a)===!1){Iv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function NS(a){if(a.G|=2097152,vf(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||DS(a,y,x),x=a.Ib;var E=Xe.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),Xe.free(E),Iv(a,!1)}}Ci.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new rr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},Ci.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=no;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Qt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,E,b,z);a.rotate(this.Kb,tt.x,tt.y),Qt.free(tt)}},Ci.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Ci.prototype.moveTo=function(a,y,x){a=Qt.allocAt(a,y),this.move(a,x),Qt.free(a)},Ci.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())},Ci.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())},Ci.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new yi),y.I(a)!==null)return y.I(a);var x=mn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Kd(a,y,x,E){E===void 0&&(E=new Qt),x=x.Mc()?no:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}Ci.prototype.mi=function(a){return a===void 0&&(a=new Xe),a.assign(this.actualBounds)},Ci.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function BS(a){var y=Qt.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof qi?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Xf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,E-=tt/2,b-=tt/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}Ci.prototype.arrange=function(){if(Vl(this)===!1)NS(this);else{Uc(this,!1);var a=this.Ib,y=Xe.alloc();y.assign(a);var x=yf(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;DS(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||xe.B(y.width,a.width)&&xe.B(y.height,a.height)||0<=this.vw&&this.C(16),Xe.free(y),Iv(this,!1)}},wt=Ci.prototype,wt.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=Xe.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),Xe.free(b)}!(this.G&65536)&&a.D(y)||IS(this,E,x),x.N(),!a.w()&&!y.w()||as(a,y)||(this instanceof Kn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},wt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&TS(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Qt(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),vf(this)===!1&&Vl(this)===!1&&(Vm(this),NS(this)),!0};function TS(a,y,x,E,b){y===null||a instanceof Kr||(y=y.animationManager,y.zb&&Pc(y,a,new Qt(E,b),x))}wt.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;vf(this)||Vl(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Vm(this)},wt.Av=function(){this.G&=-2097153,Vm(this)};function DS(a,y,x){var E=BS(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?OS(a,y,x,b,E):RS(a,y,x,b,E):z?OS(a,y,x,b,E):tt&&RS(a,y,x,b,E),a.G|=2097152,Qt.free(E),a.Uk()}function OS(a,y,x,E,b){var z=y.x,tt=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Kr||Pc(x,a,new Qt(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new Qt(z,tt),y.copy()))}function RS(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function IS(a,y,x){zv(a,!1),a instanceof Kn&&Rh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?yf(a)?(Jh(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}wt.si=function(){return!0},wt.Zc=function(){return!0},wt.ph=function(){return!1},wt.Dd=function(){return!0};function Rv(a,y,x,E){y.constructor===a.constructor||WS||(WS=!0,Tr('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Tr(" Old class: "+Hi(a.constructor)+", new class: "+Hi(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,at=!0,st=!1;a instanceof Kn&&(rt=a.isTreeLeaf,at=a.isTreeExpanded,st=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof Kn&&(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),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}Ci.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},Ci.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},Ci.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},Ci.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},Ci.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},Ci.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},Ci.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},Ci.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},Ci.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 Iv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function yf(a){return(a.G&131072)!==0}wt=Ci.prototype,wt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Ym(a,y){a.G=y?a.G|1048576:a.G&-1048577}wt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},wt.N=function(){var a=this.diagram;a!==null&&!Vl(this)&&!vf(this)&&this.isVisible()&&this.Ib.w()&&a.N(Xf(this,this.Ib))},wt.v=function(){mn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Kn&&this.labeledLink!==null&&Kl(this.labeledLink),a.$b(!0))},wt.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},wt.Wo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},wt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},wt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof Kn&&(y=y.labeledLink,y!==null)?jv(a,y):0}wt.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof Kn&&(x=y.labeledLink,x!==null)?zS(a,x):y}wt.Td=function(a){return a instanceof Vi?Wv(this,this,a):!1};function Wv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Wv(a,E,x)?y instanceof Kn&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}wt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Vi&&Ym(y,!0),y instanceof Kn){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 Kn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Vi&&Ym(y,!1),y instanceof Kn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Ci.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Kn&&this.isLinkLabel)},Ci.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 Kn&&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,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Kr)){if(a.add(y),y instanceof Kn){if(x&&y instanceof Vi)for(var tt=y.memberParts;tt.next();)Sf(a,tt.value,x,E,b,z);if(b!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var at=rt.fromNode,st=rt.toNode;at=at===null||a.contains(at),st=st===null||a.contains(st),(b?at&&st:at||st)&&Sf(a,rt,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)Sf(a,y.value,x,E-1,b,z)}else if(y instanceof En)for(y=y.labelNodes;y.next();)Sf(a,y.value,x,E,b,z)}}Ze.Object.defineProperties(Ci.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?To:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(Ka,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ga,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(su(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&&Mi(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 Kr?this.type!==mn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:uu},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),su(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:hu},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),su(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&&(su(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:bs},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),su(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Vl(this)===!1&&(Vm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),TS(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof Kr)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof Kr?this instanceof Kr&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(wh(x),x=x.copy(),x!==null&&Rv(this,x,y,a))):(z!==null&&z.jm(E,a),x=c1(x.partManager,E,a),x!==null&&(wh(x),x=x.copy(),x===null||x instanceof En||(E=this.location.copy(),Rv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Rv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(su(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&&(su(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&&(su(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 En?(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&&(su(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&&(su(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&&(su(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:xl},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),su(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&&(su(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&&(su(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:Is},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),su(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&&De("Cannot make a Group a member of itself: "+this.toString()),De("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Yv(y,this):this instanceof Vi&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Vi&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Vi){for(x=new pn,Sf(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Kn)for(E=E.linksConnected;E.next();)Vg(E.value)}if(this instanceof Kn){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&&Mi(y,-1,a))}}else De("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&&(su(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Kn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(su(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&&(su(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ys},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),su(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&&(su(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&&(su(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Ci.prototype.invalidateLayout=Ci.prototype.C,Ci.prototype.findCommonContainingGroup=Ci.prototype.px,Ci.prototype.isMemberOf=Ci.prototype.Td,Ci.prototype.findTopLevelPart=Ci.prototype.sz,Ci.prototype.findSubGraphLevel=Ci.prototype.oz,Ci.prototype.ensureBounds=Ci.prototype.Va,Ci.prototype.getDocumentBounds=Ci.prototype.mi,Ci.prototype.findObject=Ci.prototype.fb,Ci.prototype.moveTo=Ci.prototype.moveTo,Ci.prototype.invalidateAdornments=Ci.prototype.Wb,Ci.prototype.clearAdornments=Ci.prototype.Ej,Ci.prototype.removeAdornment=Ci.prototype.Jf,Ci.prototype.addAdornment=Ci.prototype.bh,Ci.prototype.findAdornment=Ci.prototype.Pj,Ci.prototype.updateTargetBindings=Ci.prototype.La;var WS=!1;Ci.className="Part",Ci.LayoutNone=0,Ci.LayoutAdded=1,Ci.LayoutRemoved=2,Ci.LayoutShown=4,Ci.LayoutHidden=8,Ci.LayoutNodeSized=16,Ci.LayoutGroupLayout=32,Ci.LayoutNodeReplaced=64,Ci.LayoutStandard=127,Ci.LayoutAll=16777215;function Kr(a,y){a===void 0||a instanceof Ms||typeof a=="string"?Ci.call(this,a):(Ci.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}we(Kr,Ci),Kr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Kr.prototype.updateRelationshipsFromData=function(){},Kr.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof En&&y instanceof qi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof qi&&(b.ua=a)}}},Kr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Vl(a))},Kr.prototype.Zc=function(){return!1},Kr.prototype.gk=function(a,y,x,E,b,z,tt){if(a===ga&&y==="elements"){if(b instanceof Ul)this.$a===null&&(this.$a=b);else if(b instanceof mn){var rt=b.Nl(function(at){return at instanceof Ul});rt instanceof Ul&&this.$a===null&&(this.$a=rt)}}else a===Ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof mn&&this.$a.rg(E)&&(this.$a=null));Ci.prototype.gk.call(this,a,y,x,E,b,z,tt)},Kr.prototype.updateAdornments=function(){},Kr.prototype.Lj=function(){},Ze.Object.defineProperties(Kr.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}}}),Kr.className="Adornment";function Hv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=sd,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Hv.prototype.copy=function(){var a=new Hv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Kn(a,y){a===void 0||a instanceof Ms||typeof a=="string"?Ci.call(this,a):(Ci.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)}we(Kn,Ci),Kn.prototype.cloneProtected=function(a){Ci.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},wt=Kn.prototype,wt.Af=function(a){Ci.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Vd(a){a.Ba===null?a.Ba=new Hv:a.Ba.nc&&(a.Ba=a.Ba.copy())}wt.th=function(){Ci.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function HS(a,y){y!==null&&(a.af===null&&(a.af=new pn),a.af.add(y))}function GS(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}wt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=GS(this,a,y,x),a!==null&&a.Sl()},wt.gk=function(a,y,x,E,b,z,tt){a===ga&&y==="elements"?this.wc=null:a===Ka&&y==="elements"&&(this.wc=null),Ci.prototype.gk.call(this,a,y,x,E,b,z,tt)},wt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Fu(x.fromPort),Fu(x.toPort),x.bb())}};function KS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Fu(x.fromPort),Fu(x.toPort),x.bb())}}function Fu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Fu(y.port)}}wt.si=function(){return!0},Kn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Kn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Kn.prototype.isVisible=function(){if(!Ci.prototype.isVisible.call(this))return!1;var a=!0,y=ac,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===ac){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===ns){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===zd&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Kn.prototype.Zb=function(a){Ci.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Kn.prototype.qx=function(){var a=new pn,y=new pn;return VS(this,this,a,y),y.iterator};function VS(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(b?tt.fromNode===y:tt.toNode===y)&&VS(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}Kn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Hr(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},wt=Kn.prototype,wt.Mo=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},wt.Sd=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},wt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new pn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new pn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new so(x):To},wt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new pn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new so(x):To},wt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new pn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new so(x):To},wt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Hr(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},wt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Hr(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Um(a,y,x){Fu(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,y,x),tt!==null&&(tt.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Zm(a,y,x){Fu(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=tt)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Mp(y)))}function Mp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Kn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},wt=Kn.prototype,wt.Vo=function(a){Ci.prototype.Vo.call(this,a),a||(Mp(this),a=this.Yk,a!==null&&$S(a,this))},wt.Wo=function(a){Ci.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},wt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,Ci.prototype.Lj.call(this)},wt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;YS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function YS(a){a.wc===null?a.wc=new yi: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 Gv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=ki()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Bi(x)}}}wt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},wt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},wt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Ym(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;)Ym(y,!1),y=y.pg();return x},wt.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},wt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Kn)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},wt.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new pn;return a(this,y),y},wt.uz=function(){return ZS(this,this)};function ZS(a,y){return y=y.pg(),y===null?0:1+ZS(a,y)}wt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Hr(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},wt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ln,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ln,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new so(x):To},wt.wz=function(a){a===void 0&&(a=1/0);var y=new pn;return Sf(y,this,!1,a,!0),y},Kn.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),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===ac),y.Ue=!1}};function XS(a,y,x,E,b,z,tt){if(1<E)for(var rt=x?a.Mo():a.Sd();rt.next();){var at=rt.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),XS(at,y,x,E-1,b,z,tt)))}else JS(a,y,x,b,z,tt)}function JS(a,y,x,E,b,z){for(var tt=b===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),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(xt){return xt===vt.uv||!xt.isTreeExpanded}}(at))&&E.Aj(st,b),st.oh(),st.Zb(!1)}st.isTreeExpanded&&(st.wasTreeExpanded=st.isTreeExpanded,ut||JS(st,y,x,E,b,z))}at={uv:at.uv}}a.isTreeExpanded=!1}Kn.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===ac),y.Ue=!1}};function QS(a,y,x,E,b,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(xt){return xt===vt.vv||!xt.isTreeExpanded}}(st))&&b.Cj(ut,z)}(2<E||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,QS(ut,y,x,E-1,b,z,tt))}st={vv:st.vv}}a.isTreeExpanded=!0}Ze.Object.defineProperties(Kn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(Vd(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&&Rh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:sd},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Vd(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Rh(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&&(Vd(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&&(Vd(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&&(Vd(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var tt=z.wa(E);tt!==void 0&&z.Qx(b,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($S(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),Kl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&YS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Vd(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))}}}),Kn.prototype.expandTree=Kn.prototype.expandTree,Kn.prototype.collapseTree=Kn.prototype.collapseTree,Kn.prototype.findTreeParts=Kn.prototype.wz,Kn.prototype.findTreeChildrenNodes=Kn.prototype.Ou,Kn.prototype.findTreeChildrenLinks=Kn.prototype.Qo,Kn.prototype.findTreeLevel=Kn.prototype.uz,Kn.prototype.findTreeParentChain=Kn.prototype.vz,Kn.prototype.findTreeParentNode=Kn.prototype.pg,Kn.prototype.findTreeParentLink=Kn.prototype.kh,Kn.prototype.findCommonTreeParent=Kn.prototype.gz,Kn.prototype.findTreeRoot=Kn.prototype.xz,Kn.prototype.isInTreeOf=Kn.prototype.Nz,Kn.prototype.findPort=Kn.prototype.ns,Kn.prototype.findLinksTo=Kn.prototype.kz,Kn.prototype.findLinksBetween=Kn.prototype.jz,Kn.prototype.findNodesInto=Kn.prototype.Oo,Kn.prototype.findNodesOutOf=Kn.prototype.Po,Kn.prototype.findNodesConnected=Kn.prototype.Mu,Kn.prototype.findLinksInto=Kn.prototype.Sd,Kn.prototype.findLinksOutOf=Kn.prototype.Mo,Kn.prototype.findExternalTreeLinksConnected=Kn.prototype.qx,Kn.prototype.invalidateConnectedLinks=Kn.prototype.Bd,Kn.prototype.invalidateLinkBundle=Kn.prototype.Lz;var Ax=new We(Kn,"SpreadingNone",10),Xm=new We(Kn,"SpreadingEvenly",11),Kv=new We(Kn,"SpreadingPacked",12);Kn.className="Node",Kn.SpreadingNone=Ax,Kn.SpreadingEvenly=Xm,Kn.SpreadingPacked=Kv;function Vi(a,y){a===void 0||a instanceof Ms||typeof a=="string"?Kn.call(this,a):(Kn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new pn,this.$a=null,this.Sc=new Pa,this.Sc.group=this,this.gl=new pn,this.tb=this.$p=null,y&&Object.assign(this,y)}we(Vi,Kn),Vi.prototype.cloneProtected=function(a){Kn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ul});y instanceof Ul?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())},wt=Vi.prototype,wt.Af=function(a){Kn.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 Kn)x.Bd(y);else if(x instanceof En)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},wt.gk=function(a,y,x,E,b,z,tt){if(a===ga&&y==="elements"){if(b instanceof Ul)this.$a===null?this.$a=b:this.$a!==b&&De("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof mn){var rt=b.Nl(function(at){return at instanceof Ul});rt instanceof Ul&&(this.$a===null?this.$a=rt:this.$a!==rt&&De("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ka&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof mn&&this.$a.rg(E)&&(this.$a=null));Kn.prototype.gk.call(this,a,y,x,E,b,z,tt)},wt.Xl=function(a,y){Kn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==mn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof mn&&(a=a.Pb()),this.tb===null&&(this.tb=new Xe),a.mi(this.tb),a instanceof qi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},wt.eh=function(a,y,x,E){this.nf=this.$a,Kn.prototype.eh.call(this,a,y,x,E)},wt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof En||y.Va()}),Kn.prototype.Va.call(this)},wt.si=function(){if(!Kn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Kn){if(y.isVisible()&&Vl(y))return!1}else if(y instanceof En&&y.isVisible()&&Vl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Vi&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof En&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Yv(a,y){if(a.Gn.remove(y)){y instanceof Vi&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof En&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}wt.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)}Kn.prototype.Lj.call(this)},Vi.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=be(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Vi.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=be(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Vi.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))},wt=Vi.prototype,wt.Bd=function(a){var y=(this.U&65536)!==0;if(Kn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Fu(x.fromPort),Fu(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Fu(x.fromPort),Fu(x.toPort),x.bb()))}}},wt.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,E=y.iterator;E.next();){var b=E.value;if(b instanceof Kn)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},wt.iz=function(){var a=this.Rj();a.add(this);for(var y=new pn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Kn)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},wt.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new pn;return a(this,y),y},wt.Rj=function(){var a=new pn;return Sf(a,this,!0,0,!0),a.remove(this),a},wt.Zb=function(a){Kn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Vi.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_S(this,y,a,this),a.Ue=!1}};function _S(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Vi&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,_S(z,y,x,E)),z instanceof Kn)z.Bd(y),x.Aj(z,E);else if(z instanceof En)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Vi.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Vi&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,qS(z,y,x,E)),z instanceof Kn)z.Bd(y),x.Cj(z,E);else if(z instanceof En)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Vi.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=Qt.alloc(),Kn.prototype.move.call(this,a,y),a=new pn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof En&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof Kn&&b.isLinkLabel)){var tt=b.position,rt=b.location;tt.w()?(z.x=tt.x+E,z.y=tt.y+x,b.position=z):rt.w()&&(z.x=rt.x+E,z.y=rt.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof En&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(tt=b.position,z.x=tt.x+E,z.y=tt.y+x,z.w()?b.move(z):b.bb(),Zv(b)&&b.bb());Qt.free(z)}},Ze.Object.defineProperties(Vi.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&&De("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&&(Vd(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&&(Vd(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&&(Vd(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Vd(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)}}}),Vi.prototype.expandSubGraph=Vi.prototype.expandSubGraph,Vi.prototype.collapseSubGraph=Vi.prototype.collapseSubGraph,Vi.prototype.findSubGraphParts=Vi.prototype.Rj,Vi.prototype.findContainingGroupChain=Vi.prototype.hz,Vi.prototype.findExternalNodesConnected=Vi.prototype.iz,Vi.prototype.findExternalLinksConnected=Vi.prototype.Lu,Vi.prototype.ensureBounds=Vi.prototype.Va,Vi.className="Group";function Ul(a){se.call(this),this.yb=Fl,this.ko=new Xe(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}we(Ul,se),Ul.prototype.cloneProtected=function(a){se.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ul.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)},Ul.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Vi||a instanceof Kr)||De("Placeholder is not inside a Group or Adornment."),a instanceof Vi){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(bl(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Qt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Qt.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof qi&&(tt=z.strokeWidth);var rt=z.Df(),at=z.naturalBounds,st=(at.width+tt)*rt;tt=(at.height+tt)*rt,a.type!==mn.Link&&(rt=z.ga(a.category==="Selection"?bs:a.locationSpot,Qt.alloc()),a.location=rt,Qt.free(rt)),isNaN(st)||isNaN(tt)?(a=z.ga(bs,Qt.alloc()),st=Xe.allocAt(a.x,a.y,0,0),st.Ye(z.ga(yl,a)),st.Ye(z.ga(Rc,a)),st.Ye(z.ga(ml,a)),bl(y,st.width+E||0,st.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Qt.free(a),Xe.free(st)):(bl(y,st+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ul.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},Ul.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Vi&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=Xe.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Vi&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),Xe.free(x),E&&y instanceof Vi&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ul.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Vi))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof En&&(!y.computesBoundsIncludingLinks||Uu(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<E&&(E=rt.top),rt.right>b&&(b=rt.right),rt.bottom>z&&(z=rt.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Ze.Object.defineProperties(Ul.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ul.className="Placeholder";function En(a){Ci.call(this,mn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zl,this.Om=0,this.Qm=Zl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new Ln().freeze(),this.Tg=this.Mg=null,this.ml=new Xe,this.ua=new kn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Qt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}we(En,Ci),En.prototype.cloneProtected=function(a){Ci.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())},wt=En.prototype,wt.Af=function(a){Ci.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&&Fu(y),a=a.toPort,a!==null&&Fu(a)},wt.qb=function(a){a.classType===En?(a.value&2)===2?this.routing=a:a===Xu||a===Ud||a===Ug?this.curve=a:a===Fp||a===t0||a===e0?this.adjusting=a:a!==Qv&&a!==Zl&&De("Unknown Link enum value for a Link property: "+a):Ci.prototype.qb.call(this,a)},wt.Xc=function(){this.ba===null&&(this.ba=new mp)},wt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Vl(a)||vf(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Vl(a)||vf(a)))},wt.zv=function(){return!1},wt.Av=function(){},wt.Zc=function(){return!1},En.prototype.computeAngle=function(a,y,x){return En.computeAngle(y,x)},En.computeAngle=function(a,y){switch(a){default:case Zl:a=0;break;case Np:a=y;break;case Bp:a=y+90;break;case Tp:a=y-90;break;case _v:a=y+180;break;case n0:a=xe.bp(y),90<a&&270>a&&(a-=180);break;case Dp:a=xe.bp(y+90),90<a&&270>a&&(a-=180);break;case Op:a=xe.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=xe.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return xe.bp(a)};function Vg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Yv(x,a),a.Ah=y,y!==null&&Vv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}wt=En.prototype,wt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ci.prototype.oh.call(this)},wt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},wt.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()}wt.Vo=function(a){if(Ci.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 E=this.toPort;x===a&&E===y||Um(x,this,E)}kp(this)}},wt.Wo=function(a){if(Ci.prototype.Wo.call(this,a),Jf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Zm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Zm(x,this,E)}bp(this)}},wt.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))},En.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},En.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Ci.prototype.move.call(this,a,!1):(a=Qt.allocAt(x.x+E,x.y+b),Ci.prototype.move.call(this,a,!1),Qt.free(a)),Yd(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},En.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},En.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},En.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(cu),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Xu))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()===Xu){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return xe.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),xe.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=tt[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},En.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()===Xu))return this.ua.wx(.5);if(this.computeCurve()===Xu&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),xe.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},wt=En.prototype,wt.i=function(a){return this.Nb.s[a]},wt.dd=function(a,y){this.Nb.cd(a,y)},wt.L=function(a,y,x){this.Nb.cd(a,new Qt(y,x))},wt.Kz=function(a,y){this.Nb.Gb(a,y)},wt.m=function(a,y,x){this.Nb.Gb(a,new Qt(y,x))},wt.ne=function(a){this.Nb.add(a)},wt.yf=function(a,y){this.Nb.add(new Qt(a,y))},wt.pv=function(a){this.Nb.mb(a)},wt.Fj=function(){this.Nb.clear()};function Yd(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new Ln,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new Qt(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Kl(a)),E?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&mh(tt.animationManager,a,b),a.g("points",z,b)}}wt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},wt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;tt<z;tt++){var rt=b[tt];x=Math.min(rt.x,x),E=Math.min(rt.y,E)}rt=tt=1/0;for(var 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=b[z],ft=at[z],ut.x-x!==ft.x-tt||ut.y-E!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&mh(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},wt.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))}wt.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())}},wt.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()}}},En.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(fg||(fg=new Kn,fg.desiredSize=vr,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 E=this.toNode,b=null;if(E===null?(gg||(gg=new Kn,gg.desiredSize=vr,gg.Va()),this.defaultToPoint&&(gg.location=this.defaultToPoint,gg.Va(),b=E=gg)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var rt=Yg(tt),at=Yg(x),st=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===Xu;this.Wf=st&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===Zl||st;if(!ut&&!st&&rt&&at){if(rt=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),at=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=this.adjustPoints(0,vt,z-1,at))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),at=this.getLinkPoint(E,b,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,E,b),vt=this.getLinkPoint(E,b,x,!1,!1,a,y),rt=vt.x-z.x,at=vt.y-z.y,st=this.computeCurviness(),ft=ut=0;var xt=z.x+rt/3,Pt=z.y+at/3,bt=xt,Yt=Pt;xe.B(at,0)?Yt=0<rt?Yt-st:Yt+st:(ut=-rt/at,ft=Math.sqrt(st*st/(ut*ut+1)),0>st&&(ft=-ft),bt=(0>at?-1:1)*ft+xt,Yt=ut*(bt-xt)+Pt),xt=z.x+2*rt/3,Pt=z.y+2*at/3;var Wt=xt,te=Pt;xe.B(at,0)?te=0<rt?te-st:te+st:(Wt=(0>at?-1:1)*ft+xt,te=ut*(Wt-xt)+Pt),this.Fj(),this.ne(z),this.yf(bt,Yt),this.yf(Wt,te),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,rt=y,xe.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(E),this.yf(z,rt),this.ne(b)):(this.ne(E),this.ne(b),rt=Xe.alloc(),y.mi(rt),at=rt.ca(b),vt.mi(rt),st=rt.ca(E),(at||st)&&(tt=y.ga(_m(tt),new Qt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(_m(x),new Qt),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),Xe.free(rt))}else{ft=this.isAvoiding,vt&&(ut&&ft||st)&&this.Fj();var ne=st?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),xt=bt=Pt=0,(ut||!rt||st)&&(Yt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),st&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ut?90:30,0>ne&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),st&&(Yt+=Math.abs(ne)*(ut?1:2)),xt===0?Pt=Yt:xt===90?bt=Yt:xt===180?Pt=-Yt:xt===270?bt=-Yt:(Pt=Yt*Math.cos(xt*Math.PI/180),bt=Yt*Math.sin(xt*Math.PI/180)),tt.Mc()&&st&&(Yt=y.ga(no,Qt.alloc()),Wt=Qt.allocAt(Yt.x+1e3*Pt,Yt.y+1e3*bt),this.getLinkPointFromPoint(a,y,Yt,Wt,!0,ft),Qt.free(Yt),Qt.free(Wt))),Yt=this.getLinkPoint(E,b,x,!1,ut,a,y);var oe=te=Wt=0;if(ut||!at||st){var me=this.computeEndSegmentLength(E,b,x,!1);oe=this.getLinkDirection(E,b,Yt,x,!1,ut,a,y),st&&(at||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(oe+=ut?0:30,0>ne&&(oe+=180)),0>oe?oe+=360:360<=oe&&(oe-=360),st&&(me+=Math.abs(ne)*(ut?1:2)),oe===0?Wt=me:oe===90?te=me:oe===180?Wt=-me:oe===270?te=-me:(Wt=me*Math.cos(oe*Math.PI/180),te=me*Math.sin(oe*Math.PI/180)),x.Mc()&&st&&(x=b.ga(no,Qt.alloc()),tt=Qt.allocAt(x.x+1e3*Wt,x.y+1e3*te),this.getLinkPointFromPoint(E,b,x,tt,!1,Yt),Qt.free(x),Qt.free(tt))}x=ft,(ut||!rt||st)&&(x=new Qt(ft.x+Pt,ft.y+bt)),tt=Yt,(ut||!at||st)&&(tt=new Qt(Yt.x+Wt,Yt.y+te)),!vt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Yt):!vt&&!ut&&at&&3<z&&this.adjustPoints(1,x,z-1,Yt)?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,Yt)):(this.Fj(),this.ne(ft),(ut||!rt||st)&&this.ne(x),ut&&this.addOrthoPoints(x,xt,tt,oe,a,E),(ut||!at||st)&&this.ne(tt),this.ne(Yt))}return!0};function Uv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}En.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Qt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var rt=-a.m12*b,at=-a.m21*b,st=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*at+ut,E=E.x*rt+E.y*st+ft,tt=x.x*tt+x.y*at+ut,x=x.x*rt+x.y*st+ft}return y.Sj(b,E,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)}En.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,rt){if(rt===void 0&&(rt=new Qt),x.sb()&&!Yg(x))return y.ga(x,rt),rt;if(x.$c()){var at=Qm(this,y);if(at!==null){if(rt.assign(at.Zo),b&&this.routing===e1){var st=Qm(this,tt);if(st!==null&&at.Gl<st.Gl){at=Qt.alloc(),st=Qt.alloc();var ut=new Xe(y.ga(bs,at),y.ga(yl,st)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,st),(x.Hf($u)||x.Hf(sl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(qh)||x.Hf(Iu))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Qt.free(at),Qt.free(st)}}return rt}}return x=y.ga(_m(x),Qt.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Uv(x,tt.copy()))):(at=this.computeSpot(!E,tt),z=Qt.alloc(),tt=tt.ga(_m(at),z),b&&(tt=Uv(x,tt)),Qt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,rt),Qt.free(x),rt},En.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,rt){t:if(E.sb())var at=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(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,Qt.alloc()),this.pointsCount>(z?6:2)?(rt=b?this.i(1):this.i(this.pointsCount-2),rt=z?Uv(at,rt.copy()):x):(x=Qt.alloc(),rt=rt.ga(no,x),Qt.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,Qt.free(at),at=x}return E.Mc()&&tt.Td(a)&&(at+=180,360<=at&&(at-=360)),Yg(E)||(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},En.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},En.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===Is?ms:y)):(a=y||this.toPort,a===null?a=no:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Is?ms:y)),a};function Yg(a){return a===ms||a.x===.5&&a.y===.5}function _m(a){return a.x===.5&&a.y===.5?a:no}En.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zl&&4<this.pointsCount?this.computeMidPoint(new Qt):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(no))},En.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},En.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=rr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&rr.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=rr.alloc(),ft.set(tt),ut instanceof mn)rt=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof qi)if(rt=a,vt=E,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),vt)t:{var xt=rt,Pt=ft;if(ut.fh(xt,Pt))rt=!0;else{if(Pt===void 0&&(Pt=ut.transform,xt.Re(ut.actualBounds))){rt=!0;break t}rt=xt.left,vt=xt.right;var bt=xt.top;xt=xt.bottom;var Yt=Qt.alloc(),Wt=Qt.alloc(),te=Qt.alloc(),ne=rr.alloc();ne.set(Pt),ne.bv(ut.transform),ne.Vj(),Wt.x=vt,Wt.y=bt,Wt.transform(ne),Yt.x=rt,Yt.y=bt,Yt.transform(ne),Pt=!1,Zf(ut,Yt,Wt,te)?Pt=!0:(Yt.x=vt,Yt.y=xt,Yt.transform(ne),Zf(ut,Yt,Wt,te)?Pt=!0:(Wt.x=rt,Wt.y=xt,Wt.transform(ne),Zf(ut,Yt,Wt,te)?Pt=!0:(Yt.x=rt,Yt.y=bt,Yt.transform(ne),Zf(ut,Yt,Wt,te)&&(Pt=!0)))),rr.free(ne),Qt.free(Yt),Qt.free(Wt),Qt.free(te),rt=Pt}}else rt=ut.fh(rt,ft)}else rt=Ds(ut,a,E,ft);rt&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&b.add(vt)),rr.free(ft)}}}return z===void 0&&rr.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&rr.free(tt),!1},En.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?Xu:this.curve},En.prototype.computeCorner=function(){if(this.curve===Xu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},En.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},En.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=i1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,tt=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===Np||E===n0||E===_v?a=Math.max(a,b):E===Tp||E===Op||E===Bp||E===Dp?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)*b)+1)),this.curve===Xu&&(a*=1.333)}}return a},En.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Zl&&x.bb()}},En.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=ki(),E=0,b=y.links,z=0;z<b.length;z++){var tt=b[z].computeSpacing();x.push(tt),E+=tt}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),Bi(x)}}return a},En.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},En.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},En.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===t0)return!1;b===e0&&(b=Fp)}switch(b){case t0:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(E)){b=z.x,z=z.y;var rt=tt.x-b,at=tt.y-z,st=Math.sqrt(rt*rt+at*at);if(!xe.$(st,0)){if(xe.$(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=E.x-tt;var vt=E.y-ft;for(at=Math.sqrt(rt*rt+vt*vt),xe.$(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-b,at=y.y-z,y=Math.sqrt(rt*rt+at*at),xe.$(y,0)||(xe.$(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,E)}}return!0;case e0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,st=(tt-b)*(tt-b)+(ft-z)*(ft-z),rt=y.x,ut=y.y,at=E.x,vt=E.y;var xt=1;if(at-rt!==0){var Pt=(vt-ut)/(at-rt);xt=Math.sqrt(1+1/(Pt*Pt))}else Pt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var bt=y.x,Yt=y.y,Wt=.5;st!==0&&(Wt=((b-bt)*(b-tt)+(z-Yt)*(z-ft))/st);var te=b+Wt*(tt-b),ne=z+Wt*(ft-z);y=Math.sqrt((bt-te)*(bt-te)+(Yt-ne)*(Yt-ne)),Yt<Pt*(bt-te)+ne&&(y=-y),0<Pt&&(y=-y),bt=rt+Wt*(at-rt),Wt=ut+Wt*(vt-ut),Pt!==0?(y=bt+y/xt,this.L(a,y,Wt-(y-bt)/Pt)):this.L(a,bt,Wt+y)}this.dd(x,E)}return!0;case Fp:t:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,st=ut,xe.B(b.y,z.y)?xe.B(z.x,tt.x)?ut=y.y:xe.B(z.y,tt.y)&&(rt=y.x):xe.B(b.x,z.x)&&(xe.B(z.y,tt.y)?rt=y.x:xe.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),b=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,at=rt,vt=ut,xe.B(b.y,z.y)?xe.B(z.x,tt.x)?ut=E.y:xe.B(z.y,tt.y)&&(rt=E.x):xe.B(b.x,z.x)&&(xe.B(z.y,tt.y)?rt=E.x:xe.B(z.x,tt.x)&&(ut=E.y)),this.L(x-1,rt,ut),Zv(this))){this.L(a+1,ft,st),this.L(x-1,at,vt),x=!1;break t}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},En.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var rt=b.actualBounds.copy(),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=Qt.alloc(),ut=Qt.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&at.right>a.x||E===90&&x.y>a.y&&at.right>a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(E===270&&a.y<at.top||E===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):E===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),(E===180||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===180&&(at.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(E===180||E===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?(E===90||E===270)&&(st.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?rt.top:Math.min(rt.top,at.top)):Math.max(x.y,E===0?rt.bottom:Math.max(rt.bottom,at.bottom)),ut.x=x.x,ut.y=st.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&at.left<a.x||E===90&&x.y>a.y&&at.left<a.x?(st.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===0?(st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=st.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(st.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(E===270&&a.y<at.top||E===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):E===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),(E===0||E===90&&x.y<rt.top||E===270&&x.y>rt.bottom)&&(E===0&&(at.ca(a)||rt.ca(x))?st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?st.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(E===0||E===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?(E===90||E===270)&&(st.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(st.x,x.y)):(st.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?rt.top:Math.min(rt.top,at.top)):Math.max(x.y,E===180?rt.bottom:Math.max(rt.bottom,at.bottom)),ut.x=x.x,ut.y=st.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&at.bottom>a.y||E===0&&x.x>a.x&&at.bottom>a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(st.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(E===180&&a.x<at.left||E===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):E===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),(E===270||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===270&&(at.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(E===270||E===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?(E===0||E===180)&&(st.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?rt.left:Math.min(rt.left,at.left)):Math.max(x.x,E===90?rt.right:Math.max(rt.right,at.right)),ut.x=st.x,ut.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&at.top<a.y||E===0&&x.x>a.x&&at.top<a.y?(st.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===90?(st.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=st.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(st.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(E===180&&a.x<at.left||E===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):E===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),(E===90||E===0&&x.x<rt.left||E===180&&x.x>rt.right)&&(E===90&&(at.ca(a)||rt.ca(x))?st.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?st.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(E===90||E===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?(E===0||E===180)&&(st.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,st.y)):(st.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?rt.left:Math.min(rt.left,at.left)):Math.max(x.x,E===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||b===z||this.layer.isTemporary||!Ec(vt)||rt.ca(ft)&&!z.Td(b)||at.ca(a)&&!b.Td(z))y=!1;else{var xt=fd(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&xt.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))&&xt.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))&&xt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{b=a,z=ft;var Pt=x=null;if(vt.isVirtualized){vt=xt.bounds.copy(),vt.Bc(-xt.Ho,-xt.Go);var bt=Qt.alloc();Zg(xt,a.x,a.y)||(xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,st.x,st.y,bt)?(x=a=bt.copy(),y=bt.ab(st)):xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,ut.x,ut.y,bt)?(x=a=bt.copy(),y=bt.ab(ut)):xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,bt)&&(x=a=bt.copy(),y=bt.ab(ft))),Zg(xt,ft.x,ft.y)||(xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,bt)?(Pt=ft=bt.copy(),E=ut.ab(bt)):xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,st.x,st.y,bt)?(Pt=ft=bt.copy(),E=st.ab(bt)):xe.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,st.x,st.y,a.x,a.y,bt)&&(Pt=ft=bt.copy(),E=a.ab(bt))),Qt.free(bt)}rt=rt.copy().ed(at),rt.Bc(xt.Ho*xt.Os,xt.Go*xt.Os),o1(xt,a,y,ft,E,rt,!0),at=_c(xt,ft.x,ft.y),!xt.abort&&at>=Xg&&(r1(xt),rt.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),o1(xt,a,y,ft,E,rt,!1),at=_c(xt,ft.x,ft.y)),!xt.abort&&at<Xg&&_c(xt,ft.x,ft.y)!==Zd?(Xv(this,xt,ft.x,ft.y,E,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?xe.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)):xe.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=xt.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)&&(xe.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)):xe.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=xt.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pt!==null&&(E===0||E===180?this.yf(z.x,Pt.y):this.yf(Pt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(st.copy()),this.ne(ut.copy())),Qt.free(st),Qt.free(ut)}},En.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Zv(a){if(a.diagram===null||!a.isAvoiding||!Ec(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=fd(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Xv(a,y,x,E,b,z,tt){var rt=y.Ho,at=y.Go,st=_c(y,x,E),ut=x,ft=E;for(b===0?ut+=rt:b===90?ft+=at:b===180?ut-=rt:ft-=at,b!==tt&&st>Qf&&_c(y,ut,ft)!==st-1&&(_c(y,x-rt,E)===st-1?(b=180,ut=x-rt,ft=E):_c(y,x+rt,E)===st-1?(b=0,ut=x+rt,ft=E):_c(y,x,E-at)===st-1?(b=270,ut=x,ft=E-at):_c(y,x,E+at)===st-1&&(b=90,ut=x,ft=E+at));st>Qf&&_c(y,ut,ft)===st-1;)x=ut,E=ft,b===0?ut+=rt:b===90?ft+=at:b===180?ut-=rt:ft-=at,--st;z?st>Qf&&(b===180||b===0?x=Math.floor(x/rt)*rt+rt/2:(b===90||b===270)&&(E=Math.floor(E/at)*at+at/2)):(x=Math.floor(x/rt)*rt+rt/2,E=Math.floor(E/at)*at+at/2),st>Qf&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=at):b===90?(z=180,tt-=rt):b===180?(z=270,ut-=at):b===270&&(z=0,tt+=rt),_c(y,tt,ut)===st-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=at):b===90?(z=0,tt+=rt):b===180?(z=90,ut+=at):b===270&&(z=180,tt-=rt),_c(y,tt,ut)===st-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}En.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Ja(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=Ja(y,a,E.x,E.y,x.x,x.y);E=x,rt<b&&(z=tt,b=rt)}return z},En.prototype.qc=function(){this.lk=!1,this.v()},En.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof qi&&(b.ua=this.ua)}}},En.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Jf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var tt=this.computeCurve();if(tt===Xu&&3<=y&&!xe.$(this.smoothness,0))if(y===3){var rt=this.i(1);E=Math.min(b.x,rt.x);var at=Math.min(b.y,rt.y);rt=this.i(2),E=Math.min(E,rt.x),at=Math.min(at,rt.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)rt=E[at],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),at=this.i(E),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);E=z.x,at=z.y}else{for(at=0;at<y;at++)rt=E[at],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,at=z.y}if(E-=this.su.x,at-=this.su.y,b.x-=E,b.y-=at,y!==2||Jf(this)){if(a.type=kn.o,rt=FS(a),this.computeShortLength(!0)!==0&&(b=cg(this,b,!0,z)),Kg(rt,b.x,b.y,!1),tt===Xu&&3<=y&&!xe.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-at,b=this.i(2).copy(),b.x-=E,b.y-=at,this.computeShortLength(!1)!==0&&(b=cg(this,b,!1,z)),Gd(rt,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Qt.allocAt(E,at),x=Qt.alloc(),x.assign(this.i(1)),z=Qt.allocAt(E,at),b=Qt.allocAt(E,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,xt=st,Pt=this.i(Jv(this,st,ft,!1));if((!xe.$(vt.x,xt.x)||!xe.$(xt.x,Pt.x))&&(!xe.$(vt.y,xt.y)||!xe.$(xt.y,Pt.y))){var bt=ut;isNaN(bt)&&(bt=this.smoothness/3);var Yt=vt.x;vt=vt.y;var Wt=xt.x;xt=xt.y;var te=Pt.x;Pt=Pt.y;var ne=bt*qm(Yt,vt,Wt,xt);bt*=qm(Wt,xt,te,Pt),xe.$(vt,xt)&&xe.$(Wt,te)&&(Wt>Yt?Pt>xt?(z.x=Wt-ne,z.y=xt-ne,b.x=Wt+bt,b.y=xt+bt):(z.x=Wt-ne,z.y=xt+ne,b.x=Wt+bt,b.y=xt-bt):Pt>xt?(z.x=Wt+ne,z.y=xt-ne,b.x=Wt-bt,b.y=xt+bt):(z.x=Wt+ne,z.y=xt+ne,b.x=Wt-bt,b.y=xt-bt)),xe.$(Yt,Wt)&&xe.$(xt,Pt)&&(xt>vt?(te>Wt?(z.x=Wt-ne,z.y=xt-ne,b.x=Wt+bt):(z.x=Wt+ne,z.y=xt-ne,b.x=Wt-bt),b.y=xt+bt):(te>Wt?(z.x=Wt-ne,z.y=xt+ne,b.x=Wt+bt):(z.x=Wt+ne,z.y=xt+ne,b.x=Wt-bt),b.y=xt-bt)),(xe.$(Yt,Wt)&&xe.$(Wt,te)||xe.$(vt,xt)&&xe.$(xt,Pt))&&(Yt=.5*(Yt+te),vt=.5*(vt+Pt),z.x=Yt,z.y=vt,b.x=Yt,b.y=vt),(ft===1||ft===2&&xe.$(tt.x,this.i(0).x)&&xe.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+st.x),x.y=.5*(tt.y+st.y)),Gd(rt,x.x-E,x.y-at,z.x-E,z.y-at,st.x-E,st.y-at),y.set(z),x.set(b),tt=st}}st=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=cg(this,ut.copy(),!1,os)),st=.5*(st+ut.x),tt=.5*(tt+ut.y),Gd(rt,b.x-E,b.y-at,st-E,tt-at,ut.x-E,ut.y-at),Qt.free(y),Qt.free(x),Qt.free(z),Qt.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=cg(this,tt.copy(),!1,os)),Gd(rt,z.x-E,z.y-at,b.x-E,b.y-at,tt.x-E,tt.y-at);else{for(z=Qt.alloc(),z.assign(this.i(0)),b=Qt.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,st=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=cg(this,ut.copy(),!1,os)),dg(this,rt,-E,-at,z,ut,x);else if(st===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),dg(this,rt,-E,-at,z,ut,x),z.assign(ut);break}if(st=Jv(this,ut,ft+1,ft<y-3),ft=-E,Yt=-at,vt=ut,Wt=this.i(st),bt=x,xe.B(z.y,vt.y)&&xe.B(vt.x,Wt.x))if(Pt=Math.min(tt,Math.abs(vt.x-b.x)/2),Pt=ne=Math.min(Pt,Math.abs(Wt.y-vt.y)/2),xe.B(Pt,0))dg(this,rt,ft,Yt,z,vt,bt),z.assign(vt);else{var oe=vt.x,me=vt.y;xt=oe,te=me,vt.x>z.x?oe=vt.x-Pt:oe=vt.x+Pt,Wt.y>vt.y?te=vt.y+ne:te=vt.y-ne,Wt=Qt.allocAt(oe,me),dg(this,rt,ft,Yt,z,Wt,bt),Qt.free(Wt),Gm(rt,vt.x+ft,vt.y+Yt,xt+ft,te+Yt),z.h(xt,te)}else xe.B(z.x,vt.x)&&xe.B(vt.y,Wt.y)?(Pt=Math.min(tt,Math.abs(vt.y-b.y)/2),Pt=ne=Math.min(Pt,Math.abs(Wt.x-vt.x)/2),xe.B(ne,0)?(dg(this,rt,ft,Yt,z,vt,bt),z.assign(vt)):(oe=vt.x,me=vt.y,xt=oe,te=me,vt.y>z.y?me=vt.y-Pt:me=vt.y+Pt,Wt.x>vt.x?xt=vt.x+ne:xt=vt.x-ne,Wt=Qt.allocAt(oe,me),dg(this,rt,ft,Yt,z,Wt,bt),Qt.free(Wt),Gm(rt,vt.x+ft,vt.y+Yt,xt+ft,te+Yt),z.h(xt,te))):(dg(this,rt,ft,Yt,z,vt,bt),z.assign(vt));b.assign(ut),ft=st}Qt.free(z)}Km=rt}else rt=this.i(1).copy(),rt.x-=E,rt.y-=at,this.computeShortLength(!0)!==0&&(b=cg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(rt=cg(this,rt,!1,z)),a.type=kn.j,a.startX=b.x,a.startY=b.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),xe.$(a,0)?y:xe.$(y,0)?a:Math.sqrt(a*a+y*y)))}function cg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Jv(a,y,x,E){for(var b=a.pointsCount,z=y;xe.$(y.x,z.x)&&xe.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!xe.$(y.x,z.x)&&!xe.$(y.y,z.y))return x-1;for(var tt=z;xe.$(y.x,z.x)&&xe.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||xe.$(y.y,z.y)&&xe.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}En.prototype.computeJumpLength=function(){return 10};function dg(a,y,x,E,b,z,tt){if(!tt&&Jf(a)){tt=a.computeJumpLength();var rt=tt/2,at=[],st=0;if(a.isVisible()&&(st=Ex(a,b,z,at)),0<st){if(xe.B(b.y,z.y))if(b.x<z.x)for(var ut=0;ut<st;){var ft=Math.max(b.x,Math.min(at[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+E);for(var vt=ft+x,xt=Math.min(ft+tt,z.x);ut<st&&(ft=at[ut],ft<xt+tt);)ut++,xt=Math.min(ft+rt,z.x);ft=z.y-tt+E,xt+=x;var Pt=z.y+E;a.curve===Ud?Kg(y,xt,Pt,!1):Gd(y,vt,ft,xt,ft,xt,Pt)}else for(--st;0<=st;){for(ut=Math.min(b.x,Math.max(at[st--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+E),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+E,ft+=x,xt=z.y+E,a.curve===Ud?Kg(y,ft,xt,!1):Gd(y,vt,ut,ft,ut,ft,xt)}else if(xe.B(b.x,z.x))if(b.y<z.y)for(ut=0;ut<st;){for(ft=Math.max(b.y,Math.min(at[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+E),vt=ft+E,ft=Math.min(ft+tt,z.y);ut<st&&(xt=at[ut],xt<ft+tt);)ut++,ft=Math.min(xt+rt,z.y);xt=z.x-tt+x,Pt=z.x+x,ft+=E,a.curve===Ud?Kg(y,Pt,ft,!1):Gd(y,xt,vt,xt,ft,Pt,ft)}else for(--st;0<=st;){for(ut=Math.min(b.y,Math.max(at[st--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+E),vt=ut+E,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,xt=z.x+x,ut+=E,a.curve===Ud?Kg(y,xt,ut,!1):Gd(y,ft,vt,ft,ut,xt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Ex(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var at=z[rt];if(at instanceof En){if(at===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.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()&&Lx(y,x,E,at))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Lx(a,y,x,E){for(var b=xe.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),rt=Qt.alloc(),at=1;at<z;at++){var st=E.i(at);if(at<z-1){var ut=E.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,xt=y.y,Pt=tt.x;tt=tt.y;var bt=st.x,Yt=st.y;if(xe.B(ut,vt)){if(!xe.B(ft,xt)&&xe.B(tt,Yt)&&Math.min(ft,xt)<tt&&Math.max(ft,xt)>tt&&Math.min(Pt,bt)<ut&&Math.max(Pt,bt)>ut&&!xe.B(Pt,bt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(xe.B(ft,xt)&&xe.B(Pt,bt)&&Math.min(ut,vt)<Pt&&Math.max(ut,vt)>Pt&&Math.min(tt,Yt)<ft&&Math.max(tt,Yt)>ft&&!xe.B(tt,Yt)){rt.x=Pt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(b?x.push(rt.x):x.push(rt.y)),tt=st}Qt.free(rt)}function Jf(a){return a=a.curve,a===Ug||a===Ud}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()))}En.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,rt=0;rt<tt;rt++){var at=b[rt];at instanceof En&&(at===this?z=!0:z&&t1(this,at,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)rt=z[tt],rt instanceof En&&t1(this,rt,a)}}}}};function t1(a,y,x){if(y!==null&&y.lk&&y.fd&&Jf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}En.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},En.prototype.isVisible=function(){if(!Ci.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},En.prototype.Zb=function(a){if(Ci.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)},En.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Fp:this.qk};function kp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,at=0;at<rt;at++){var st=tt[at];(st.ef===y&&st.ff===E&&st.uf===x&&st.vf===b||st.ef===x&&st.ff===b&&st.uf===y&&st.vf===E)&&(z===null?z=st:(a===null&&(a=[],a.push(z)),a.push(st)))}if(a!==null){for(z=GS(y,x,E,b),z===null&&(z=new r0(y,E,x,b),HS(y,z),HS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function bp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(bo(y.links,a),y.Sl()))}En.prototype.ph=function(){return!0},Ze.Object.defineProperties(En.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Zm(y,this,x),bp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.uf!==a&&Um(a,this,b),kp(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&&Fu(x),bp(this),this.ff=a;var E=this.fromPort;E!==null&&Fu(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),kp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Zm(y,this,x),bp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.ef!==a&&Um(a,this,b),kp(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&&Fu(x),bp(this),this.vf=a;var E=this.toPort;E!==null&&Fu(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),kp(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:Is},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&&Fu(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&&Ui(a,">= 0",En,"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:Is},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&&Fu(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&&Ui(a,">= 0",En,"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?To: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&&Mp(this.fromNode),this.toNode!==null&&Mp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof qi?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===Xu&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),xe.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var tt=this.i(z-2);z+3>=E&&(z=E-1);var rt=this.i(z-1),at=this.i(z);xe.Dl(b.x,b.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),b=at}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Qt)}},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 E=this.i(x),b=this.i(x+1);xe.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):xe.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new Ln,E=0;E<a.length/2;E++)b=new Qt(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Cn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new Ln,E=0;E<a.length;E++)b=a[E],x.add(new Qt(b.x,b.y).freeze())}}else if(a instanceof Ln)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else De("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&&mh(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||!Yg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Yg(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===Ud||y===Ug||a===Ud||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)}}}),En.prototype.invalidateOtherJumpOvers=En.prototype.Xo,En.prototype.findClosestSegment=En.prototype.ez,En.prototype.updateRoute=En.prototype.vg,En.prototype.invalidateRoute=En.prototype.bb,En.prototype.rollbackRoute=En.prototype.rv,En.prototype.commitRoute=En.prototype.zf,En.prototype.startRoute=En.prototype.uh,En.prototype.clearPoints=En.prototype.Fj,En.prototype.removePoint=En.prototype.pv,En.prototype.addPointAt=En.prototype.yf,En.prototype.addPoint=En.prototype.ne,En.prototype.insertPointAt=En.prototype.m,En.prototype.insertPoint=En.prototype.Kz,En.prototype.setPointAt=En.prototype.L,En.prototype.setPoint=En.prototype.dd,En.prototype.getPoint=En.prototype.i,En.prototype.getOtherPort=En.prototype.Cz,En.prototype.getOtherNode=En.prototype.To;var fg=null,gg=null,Qv=new We(En,"Normal",1),Mx=new We(En,"Orthogonal",2),kx=new We(En,"AvoidsNodes",6),e1=new We(En,"AvoidsNodesStraight",7),Zl=new We(En,"None",0),Xu=new We(En,"Bezier",9),Ud=new We(En,"JumpGap",10),Ug=new We(En,"JumpOver",11),Fp=new We(En,"End",17),t0=new We(En,"Scale",18),e0=new We(En,"Stretch",19),Np=new We(En,"OrientAlong",21),Bp=new We(En,"OrientPlus90",22),Tp=new We(En,"OrientMinus90",23),_v=new We(En,"OrientOpposite",24),n0=new We(En,"OrientUpright",25),Dp=new We(En,"OrientPlus90Upright",26),Op=new We(En,"OrientMinus90Upright",27),i0=new We(En,"OrientUpright45",28),n1=16,i1=14,Rp=8;En.className="Link",En.Normal=Qv,En.Orthogonal=Mx,En.AvoidsNodes=kx,En.AvoidsNodesStraight=e1,En.None=Zl,En.Bezier=Xu,En.JumpGap=Ud,En.JumpOver=Ug,En.End=Fp,En.Scale=t0,En.Stretch=e0,En.OrientAlong=Np,En.OrientPlus90=Bp,En.OrientMinus90=Tp,En.OrientOpposite=_v,En.OrientUpright=n0,En.OrientPlus90Upright=Dp,En.OrientMinus90Upright=Op,En.OrientUpright45=i0,En.EndSegmentStep=8,En.CurvinessStart=n1,En.SpacingMin=i1,En.OrthoShortCut=Rp;function r0(a,y,x,E){vo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}r0.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},r0.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))}},r0.className="LinkBundle";function Ip(a){vo(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,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=qv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Zg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function _c(a,y,x){return Zg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function r1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=Qf&&(x[E]=qv)}Ip.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Zd)return!1}return!0};function qc(a,y,x,E,b,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<Xg)for(b?ut+=E:st+=E,ft+=1;z<=st&&st<=tt&&rt<=ut&&ut<=at&&!(ft>=a.ac[st][ut]);)a.ac[st][ut]=ft,ft+=1,b?ut+=E:st+=E;if(st=b?ut:st,b)if(0<E)for(x+=E;x<st;x+=E)qc(a,y,x,1,!b,z,tt,rt,at),qc(a,y,x,-1,!b,z,tt,rt,at);else for(x+=E;x>st;x+=E)qc(a,y,x,1,!b,z,tt,rt,at),qc(a,y,x,-1,!b,z,tt,rt,at);else if(0<E)for(y+=E;y<st;y+=E)qc(a,y,x,1,!b,z,tt,rt,at),qc(a,y,x,-1,!b,z,tt,rt,at);else for(y+=E;y>st;y+=E)qc(a,y,x,1,!b,z,tt,rt,at),qc(a,y,x,-1,!b,z,tt,rt,at)}}function o0(a,y,x,E,b,z,tt,rt,at){y|=0,x|=0;var st=Zd,ut=Qf;for(a.ac[y][x]=ut;st===Zd&&y>z&&y<tt&&x>rt&&x<at;)ut+=1,a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function a0(a,y,x,E,b,z,tt,rt,at){y|=0,x|=0;var st=Zd,ut=Xg;for(a.ac[y][x]=ut;st===Zd&&y>z&&y<tt&&x>rt&&x<at;)a.ac[y][x]=ut,b?x+=E:y+=E,st=a.ac[y][x]}function o1(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,at=y.y;if(Zg(a,rt,at)){rt-=a.Nd,rt/=a.rc,at-=a.Od,at/=a.sc;var st=E.x,ut=E.y;if(Zg(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;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=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,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,rt|=0,at|=0,st|=0,ut|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,E[rt][at]===Zd?(o0(a,rt,at,xt,x,z,y,ft,vt),o0(a,rt,at,1,!x,z,y,ft,vt),o0(a,rt,at,-1,!x,z,y,ft,vt)):o0(a,rt,at,xt,x,rt,at,rt,at),E[st][ut]===Zd?(a0(a,st,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),a0(a,st,ut,1,!(b===90||b===270),z,y,ft,vt),a0(a,st,ut,-1,!(b===90||b===270),z,y,ft,vt)):a0(a,st,ut,xt,x,st,ut,st,ut),x=ki(),tt&&a1(a,st,ut,b,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,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],st=x[z+1];y>b?b++:y<b?b--:st>tt?tt++:st<tt&&tt--,E[b][tt]=a++,b!==y||tt!==st;);else qc(a,rt,at,1,!1,z,y,ft,vt),qc(a,rt,at,-1,!1,z,y,ft,vt),qc(a,rt,at,1,!0,z,y,ft,vt),qc(a,rt,at,-1,!0,z,y,ft,vt);Bi(x)}}}}function a1(a,y,x,E,b,z,tt){for(var rt=a.ac,at=y,st=x;;){if(at===b&&st===z)return!0;var ut=at,ft=st;if(E===0)if(ut<b)ut++;else break;else if(E===90)if(ft<z)ft++;else break;else if(E===180)if(ut>b)ut--;else break;else if(ft>z)ft--;else break;var vt=rt[ut][ft];if(vt===0||vt===$v)break;at=ut,st=ft}for(;;){if(ut=E,ft=at,vt=st,E===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):E===90?ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--):E===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--),ft=rt[ft][vt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(at),tt.push(st),a1(a,at,st,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(rt[at][st]=$v,E===0){if(at===y)return!1;at--}else if(E===90){if(st===x)return!1;st--}else if(E===180){if(at===y)return!1;at++}else{if(st===x)return!1;st++}}}Ze.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new Xe(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 Zd=0,Qf=1,Xg=999999,qv=Xg+1,$v=Xg+2;Ip.className="PositionArray";function pg(){vo(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 E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function bx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}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 E=null,b=a.node,z=b instanceof Vi?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var rt=a.port.ga(bs,Qt.alloc()),at=a.port.ga(yl,Qt.alloc());for(b=Xe.allocAt(rt.x,rt.y,0,0),b.Ye(at),Qt.free(rt),Qt.free(at),rt=Qt.allocAt(b.x+b.width/2,b.y+b.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(E),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 xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ut=vt.port),ut=st.computeOtherPoint(vt,ut),vt=rt.ab(ut),vt-=at,0>vt?vt+=360:360<=vt&&(vt-=360),ft=bx(b,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)),xt=a.pe[z],xt===void 0?(xt=new ty(st,vt,ft),a.pe[z]=xt):(xt.link=st,xt.angle=vt,xt.Nc=ft),xt.hv.set(ut),z++}}}}for(Qt.free(rt),a.pe.sort(pg.prototype.j),at=a.pe.length,E=-1,z=rt=0;z<at;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==E&&(E=tt.Nc,rt=0),tt.Uo=rt,rt++);for(E=-1,rt=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==E&&(E=at.Nc,rt=at.Uo+1),at.Gl=rt);if(z=a.pe,ft=a.port,E=a.node.portSpreading,rt=Qt.alloc(),at=Qt.alloc(),tt=Qt.alloc(),st=Qt.alloc(),ft.ga(bs,rt),ft.ga(Rc,at),ft.ga(yl,tt),ft.ga(ml,st),xt=vt=ut=ft=0,E===Kv)for(var Pt=0;Pt<z.length;Pt++){var bt=z[Pt];if(bt!==null){var Yt=bt.link.computeThickness();switch(bt.Nc){case 8:vt+=Yt;break;case 2:xt+=Yt;break;case 1:ft+=Yt;break;default:case 4:ut+=Yt}}}var Wt=Pt=0,te=1,ne=bt=0;for(Yt=0;Yt<z.length;Yt++){var oe=z[Yt];if(oe!==null){if(Pt!==oe.Nc){switch(Pt=oe.Nc,Pt){case 8:var me=tt;Wt=st;break;case 2:me=st,Wt=rt;break;case 1:me=rt,Wt=at;break;default:case 4:me=at,Wt=tt}switch(bt=Wt.x-me.x,ne=Wt.y-me.y,Pt){case 8:vt>Math.abs(bt)?(te=Math.abs(bt)/vt,vt=Math.abs(bt)):te=1;break;case 2:xt>Math.abs(ne)?(te=Math.abs(ne)/xt,xt=Math.abs(ne)):te=1;break;case 1:ft>Math.abs(bt)?(te=Math.abs(bt)/ft,ft=Math.abs(bt)):te=1;break;default:case 4:ut>Math.abs(ne)?(te=Math.abs(ne)/ut,ut=Math.abs(ne)):te=1}Wt=0}var Me=oe.Zo;if(E===Kv){switch(oe=oe.link.computeThickness(),oe*=te,Me.set(me),Pt){case 8:Me.x=me.x+bt/2+vt/2-Wt-oe/2;break;case 2:Me.y=me.y+ne/2+xt/2-Wt-oe/2;break;case 1:Me.x=me.x+bt/2-ft/2+Wt+oe/2;break;default:case 4:Me.y=me.y+ne/2-ut/2+Wt+oe/2}Wt+=oe}else{var zn=.5;E===Xm&&(zn=(oe.Uo+1)/(oe.Gl+1)),Me.x=me.x+bt*zn,Me.y=me.y+ne*zn}}}for(Qt.free(rt),Qt.free(at),Qt.free(tt),Qt.free(st),me=a.pe,z=0;z<me.length;z++)E=me[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,Xe.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}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,ms,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},pg.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Qt,this.Gl=this.Uo=0,this.Zo=new Qt,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 Pa(a){vo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Qt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Pa.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},Pa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Pa.prototype.qb=function(){},Pa.prototype.toString=function(){var a=Hi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Pa.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())}}},Pa.prototype.createNetwork=function(){return new Qo(this)},Pa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof pe?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Vi?y.lg(a.memberParts):y.lg(a.iterator),y},Pa.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")}},Pa.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()}},Pa.prototype.doLayout=function(a){var y=new pn;a instanceof pe?(xf(this,y,a.nodes,!0,this.rh,!0,!1,!0),xf(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Vi?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},Pa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var rt=a.value;zp(rt);var at=rt.measuredBounds,st=at.width;at=at.height,rt.moveTo(E,b),rt instanceof Vi&&(rt.rh=!1),E+=Math.max(st,50)+20,tt=Math.max(tt,Math.max(at,50)),z>=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Pa.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof En)&&(zp(rt),this.rh(rt))){var at=rt.measuredBounds,st=at.width;at=at.height,rt.moveTo(x,E),rt instanceof Vi&&(rt.rh=!1),x+=Math.max(st,50)+20,z=Math.max(z,Math.max(at,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Pa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Vi&&a.rh)};function xf(a,y,x,E,b,z,tt,rt){for(x=x.iterator;x.next();){var at=x.value;E&&!at.isTopLevel||b!==null&&!b(at)||!at.canLayout()||(z&&at instanceof Kn?at.isLinkLabel||(at instanceof Vi&&at.layout===null?xf(a,y,at.memberParts,!1,b,z,tt,rt):(zp(at),y.add(at))):tt&&at instanceof En?y.add(at):!rt||!at.Zc()||at instanceof Kn||(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()}Pa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Xe),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Pa.prototype.ex=function(a){var y=new pn;return a instanceof pe?(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 Vi?xf(this,y,a.memberParts,!1,null,!0,!0,!0):xf(this,y,a.iterator,!1,null,!0,!0,!0),y},Pa.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(bs),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ze.Object.defineProperties(Pa.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())}}}),Pa.prototype.collectParts=Pa.prototype.ex,Pa.prototype.getLayoutBounds=Pa.prototype.ni,Pa.prototype.invalidateLayout=Pa.prototype.C,Pa.className="Layout";function Qo(a){vo(this),this.Sc=a,this.wf=new pn,this.ye=new pn,this.Es=new yi,this.zs=new yi}Qo.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 yi,this.zs=new yi},Qo.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},Qo.prototype.createVertex=function(){return new ks(this)},Qo.prototype.createEdge=function(){return new Nu(this)},Qo.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 Kn)return!tt.isLinkLabel;if(tt instanceof En){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof Kn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Vi&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof En&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Qo.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},wt=Qo.prototype,wt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},wt.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},wt.Iu=function(a){if(a!==null&&l1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function l1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}wt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},wt.ki=function(a){return a===null?null:this.Es.I(a)},wt.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}}wt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},wt.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))}wt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},wt.Lo=function(a){return a===null?null:this.zs.I(a)},wt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},wt.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))}},wt.Ko=function(){for(var a=ki(),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]);Bi(a)},Qo.prototype.deleteArtificialVertexes=function(){for(var a=ki(),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=ki(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);Bi(a),Bi(y)};function Fx(a){for(var y=ki(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);Bi(y)}Qo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new Ln;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){l1(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ny(a,b),ey(y,b),iy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}Qo.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},Ze.Object.defineProperties(Qo.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}}}),Qo.prototype.findAllParts=Qo.prototype.dz,Qo.prototype.splitIntoSubNetworks=Qo.prototype.Zx,Qo.prototype.deleteSelfEdges=Qo.prototype.Ko,Qo.prototype.reverseEdge=Qo.prototype.gm,Qo.prototype.linkVertexes=Qo.prototype.Zj,Qo.prototype.findEdge=Qo.prototype.Lo,Qo.prototype.deleteLink=Qo.prototype.Yy,Qo.prototype.deleteEdge=Qo.prototype.Mj,Qo.prototype.addLink=Qo.prototype.Dy,Qo.prototype.addEdge=Qo.prototype.Bo,Qo.prototype.findVertex=Qo.prototype.ki,Qo.prototype.deleteNode=Qo.prototype.Zy,Qo.prototype.deleteVertex=Qo.prototype.Iu,Qo.prototype.addNode=Qo.prototype.Bl,Qo.prototype.addVertex=Qo.prototype.dh,Qo.prototype.addParts=Qo.prototype.lg,Qo.className="LayoutNetwork";function ks(a){vo(this),this.ob=a,this.j=new Xe(0,0,10,10).freeze(),this.o=new Qt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln}ks.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln},ks.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Ia(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},ks.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Cn(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 Vi)){x=Xe.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(no);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),Xe.free(x);return}Xe.free(x)}a.moveTo(y.x,y.y)}},ks.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ks.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ks.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ks.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}Ze.Object.defineProperties(ks.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=Xe.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),Xe.free(x),!(a instanceof Vi)&&(a=a.locationObject.ga(no),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new 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}}}),ks.prototype.deleteDestinationEdge=ks.prototype.Jl,ks.prototype.addDestinationEdge=ks.prototype.zl,ks.prototype.deleteSourceEdge=ks.prototype.Kl,ks.prototype.addSourceEdge=ks.prototype.Cl,ks.className="LayoutVertex",ks.standardComparer=ry,ks.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Nu(a){vo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Nu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Nu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Ia(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},Nu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Nu.prototype.commit=function(){},Nu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ze.Object.defineProperties(Nu.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)}}}),Nu.prototype.getOtherVertex=Nu.prototype.Ax,Nu.className="LayoutEdge";function _s(a){Pa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new un(NaN,NaN).freeze(),this.tf=new un(10,10).freeze(),this.Jb=jp,this.Rb=l0,this.nd=Wp,this.hd=u1,a&&Object.assign(this,a)}we(_s,Pa),_s.prototype.cloneProtected=function(a){Pa.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},_s.prototype.qb=function(a){a.classType===_s?a===Wp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===lc?this.arrangement=a:a===jp||a===s0?this.alignment=a:De("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},_s.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Vi)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case u0:b.reverse();break;case Wp:b.sort(this.comparer);break;case h0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case s0:var rt=y,at=x,st=Xe.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<b.length;ft++){var vt=this.ni(b[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<b.length;vt++){var xt=this.ni(b[vt],st);ft=Math.max(ft,xt.height)}ft=Math.max(ft+at,1),vt=this.arrangement;for(var Pt=xt=this.arrangementOrigin.x,bt=this.arrangementOrigin.y,Yt=0,Wt=0,te=0;te<b.length;te++){var ne=b[te],oe=this.ni(ne,st),me=Math.ceil((oe.width+rt)/ut)*ut,Me=Math.ceil((oe.height+at)/ft)*ft;switch(vt){case lc:var zn=Math.abs(Pt-oe.width);break;default:zn=Pt+oe.width}switch((0<z&&Yt>z-1||0<tt&&0<Yt&&zn-xt>tt)&&(E.push(new Xe(0,bt,tt+rt,Wt)),Yt=0,Pt=xt,bt+=Wt,Wt=0),Wt=Math.max(Wt,Me),vt){case lc:oe=-oe.width;break;default:oe=0}switch(ne.moveTo(Pt+oe,bt),vt){case lc:Pt-=me;break;default:Pt+=me}Yt++}E.push(new Xe(0,bt,tt+rt,Wt)),Xe.free(st);break;case jp:for(at=tt,ut=z,ft=y,vt=x,tt=Xe.alloc(),xt=Math.max(this.cellSize.width,1),z=bt=st=0,rt=Qt.alloc(),Pt=0;Pt<b.length;Pt++)Wt=b[Pt],Yt=this.ni(Wt,tt),Wt=Kd(Wt,Wt.locationObject,Wt.locationSpot,rt),st=Math.max(st,Wt.x),bt=Math.max(bt,Yt.width-Wt.x),z=Math.max(z,Wt.y);switch(Pt=this.arrangement,Pt){case lc:st+=ft;break;default:bt+=ft}xt=isFinite(xt)?Math.max(xt+ft,1):Math.max(st+bt,1);var li=Wt=this.arrangementOrigin.x;for(te=this.arrangementOrigin.y,bt=0,at>=st&&(at-=st),st=ne=0,me=Math.max(this.cellSize.height,1),oe=z=0,Me=!0,Yt=Qt.alloc(),zn=0;zn<b.length;zn++){var _n=b[zn],An=this.ni(_n,tt),an=Kd(_n,_n.locationObject,_n.locationSpot,rt);if(0<bt)switch(Pt){case lc:li=(li-Wt-(An.width-an.x))/xt,li=xe.$(Math.round(li),li)?Math.round(li):Math.floor(li),li=li*xt+Wt;break;default:li=(li-Wt+an.x)/xt,li=xe.$(Math.round(li),li)?Math.round(li):Math.ceil(li),li=li*xt+Wt}else switch(Pt){case lc:ne=li+an.x+An.width;break;default:ne=li-an.x}switch(Pt){case lc:var Gi=-(li+an.x)+ne;break;default:Gi=li+An.width-an.x-ne}if(0<ut&&bt>ut-1||0<at&&0<bt&&Gi>at){for(E.push(new Xe(0,Me?te-z:te,at+ft,oe+z+vt)),li=0;li<bt&&zn!==bt;li++){Gi=b[zn-bt+li];var Wi=Kd(Gi,Gi.locationObject,Gi.locationSpot,Yt);Gi.moveTo(Gi.position.x,Gi.position.y+z-Wi.y)}oe+=vt,te=Me?te+oe:te+(oe+z),bt=oe=z=0,li=Wt,Me=!1}switch(li===Wt&&(st=Pt===lc?Math.max(st,An.width-an.x):Math.min(st,-an.x)),z=Math.max(z,an.y),oe=Math.max(oe,An.height-an.y),isFinite(me)&&(oe=Math.max(oe,Math.max(An.height,me)-an.y)),Me?_n.moveTo(li-an.x,te-an.y):_n.moveTo(li-an.x,te),Pt){case lc:li-=an.x+ft;break;default:li+=An.width-an.x+ft}bt++}if(E.push(new Xe(0,te,at+ft,(Me?oe:oe+z)+vt)),b.length!==bt)for(at=0;at<bt;at++)ut=b[b.length-bt+at],ft=Kd(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Qt.free(rt),Qt.free(Yt),Pt===lc)for(b=0;b<E.length;b++)z=E[b],z.width+=st,z.x-=st;else for(b=0;b<E.length;b++)z=E[b],z.x>st&&(z.width+=z.x-st,z.x=st);Xe.free(tt)}for(rt=z=tt=b=0;rt<E.length;rt++)at=E[rt],b=Math.min(b,at.x),tt=Math.min(tt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===lc?this.commitLayers(E,new Qt(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new Qt(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},_s.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ze.Object.defineProperties(_s.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!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==lc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==u0&&a!==Wp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new We(_s,"Position",0),jp=new We(_s,"Location",1),l0=new We(_s,"LeftToRight",2),lc=new We(_s,"RightToLeft",3),oy=new We(_s,"Forward",4),u0=new We(_s,"Reverse",5),Wp=new We(_s,"Ascending",6),h0=new We(_s,"Descending",7);_s.className="GridLayout",_s.standardComparer=u1,_s.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},_s.Position=s0,_s.Location=jp,_s.LeftToRight=l0,_s.RightToLeft=lc,_s.Forward=oy,_s.Reverse=u0,_s.Ascending=Wp,_s.Descending=h0;function Lo(){this.On=new pn,this.Dn=new pn,this.Pa=new pn,this.cf=new yi,this.bf=new yi,this.aj=new yi,this.H=null,this.tp=!1}wt=Lo.prototype,wt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},wt.Xe=function(a){this.H=a},wt.oi=function(a){if(a instanceof Kn){if(this.On.add(a),a instanceof Vi){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 En?this.Dn.add(a):a instanceof Kr||this.Pa.add(a);y=a.data,y===null||a instanceof Kr||(a instanceof En?this.bf.add(y,a):this.cf.add(y,a))},wt.pc=function(a){if(a.Ej(),a instanceof Kn){if(this.On.remove(a),a instanceof Vi){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 En?this.Dn.remove(a):a instanceof Kr||this.Pa.remove(a);y=a.data,y===null||a instanceof Kr||(a instanceof En?this.bf.remove(y):this.cf.remove(y))},wt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Vi)&&De('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Vi||De('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof En||De('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ki(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=ki(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=ki(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);Bi(y),Bi(x),Bi(a)}},Lo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Lo.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&h1(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Do(this.diagram,!1)};function h1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=c1(a,y,E);if(b!==null&&(wh(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break t}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Lo.prototype.insertLink=function(){return null},Lo.prototype.resolveReferencesForData=function(){},Lo.prototype.Ro=function(a){return this.H.model.Ro(a)};function c1(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(g1||(g1=!0,Tr('No Group template found for category "'+x+'"'),Tr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Tr('No Node template found for category "'+x+'"'),Tr(" Using default node template")),y=a.ny))),y}Lo.prototype.getLinkCategoryForData=function(){return""},Lo.prototype.setLinkCategoryForData=function(){},Lo.prototype.setFromNodeForLink=function(){},Lo.prototype.setToNodeForLink=function(){},Lo.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,Tr('No Link template found for category "'+a+'"'),Tr(" Using default link template")),x=y.my)),x},Lo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Lo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Lo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(aa(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Lo.prototype.unresolveReferencesForPart=function(){},Lo.prototype.removeDataForLink=function(){},Lo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Lo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Kn?a:null)},Lo.prototype.findLinkForKey=function(){return null},wt=Lo.prototype,wt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},wt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Kn?a:null)},wt.Kc=function(a){return a===null?null:this.bf.I(a)},wt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new pn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Cn(tt)&&ay(this,b,tt)){y.add(E);break}}}return y.iterator},wt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new pn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Cn(tt)&&ay(this,b,tt)){y.add(E);break}}}return y.iterator};function ay(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Ri(z)){if(!Ri(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var rt=z[tt];if(rt!==void 0&&!d1(a,b[tt],rt))return!1}}else if(!d1(a,b,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(Cn(y)&&Cn(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Lo.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===na){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===ga){var tt=a.newValue;E==="nodeDataArray"&&Cn(tt)&&h1(this,tt),y.isModified=!0}else if(x===Ka){var rt=a.oldValue;E==="nodeDataArray"&&Cn(rt)&&this.ip(rt),y.isModified=!0}else x===Bl&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="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===ga||x===Ka){var ut=a.change===ga,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,xt=this.aj.I(a.object);if(Array.isArray(xt))for(a=0;a<xt.length;a++){var Pt=xt[a];if(ut)bm(Pt,vt,ft,!0);else if(!(0>ft)){var bt=ft+wp(Pt);Pt.pc(bt,!0),xv(Pt,bt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Lo.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)},Lo.prototype.rp=function(){for(var a=this.H.model,y=new pn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),b.forEach(function(tt){A1(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&C1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Lo.prototype.refreshDataBoundLinks=function(){},Lo.prototype.updateRelationshipsFromData=function(){},Lo.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var tt=b[z].sx(a);tt!==null&&(x===null&&(x=ki()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Bi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(Ri(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function ly(a,y,x){Yf(y,function(tt){tt=tt.O.s;for(var rt=tt.length,at=0;at<rt;at++)Vu(x,tt[at])});var E=y.Hh;if(Ri(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}Lo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new yi;if(Ri(a))for(var b=0;b<a.length;b++)c0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)c0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new pn;for(var z=new yi,tt=E.iterator;tt.next();){var rt=tt.value;if(rt instanceof En)a||rt.fromNode!==null&&rt.toNode!==null||b.add(rt);else if(rt instanceof Kn&&rt.data!==null&&x.Tl()){var at=rt;rt=tt.key;var st=rt.pg();st!==null&&(st=E.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<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new yi;E.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function c0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Ci))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Kn){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var at=E.I(rt);at!==null&&(at.fromNode=z)}rt.toNode===y&&(rt=E.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Vi&&z instanceof Vi)for(y=y.memberParts;y.next();)tt=c0(a,y.value,x,E,b),tt instanceof En||tt===null||(tt.containingGroup=z)}else if(y instanceof En&&z instanceof En)for(tt=y.fromNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=c0(a,y.value,x,E,b),tt!==null&&tt instanceof Kn&&(tt.labeledLink=z);return z}Lo.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof En||(E=b.copyNodeData(E),Cn(E)&&(b.xf(E),x=y.Lc(E)))}else wh(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof En||(b=y.copyNodeData(E)),Cn(b)&&(x.data=b)));return x},Ze.Object.defineProperties(Lo.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}}}),Lo.prototype.updateAllRelationshipsFromData=Lo.prototype.rp,Lo.prototype.findLinksByExample=Lo.prototype.ls,Lo.prototype.findNodesByExample=Lo.prototype.ms,Lo.prototype.findLinkForData=Lo.prototype.Kc,Lo.prototype.findNodeForData=Lo.prototype.ii,Lo.prototype.findPartForData=Lo.prototype.Lc,Lo.prototype.findNodeForKey=Lo.prototype.Vb,Lo.prototype.removeModeledPart=Lo.prototype.ip,Lo.prototype.removeModeledParts=Lo.prototype.Gs,Lo.prototype.rebuildParts=Lo.prototype.Wd;var f1=!1,g1=!1,p1=!1;Lo.className="PartManager";function zs(a){Lo.apply(this,arguments)}we(zs,Lo),zs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},zs.prototype.addModeledParts=function(a){for(Lo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Vg(a.value);Do(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),Do(a.diagram,!1)}function v1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){wh(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(b.fromPortId=z),z=Ju(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Kn&&(b.fromNode=z)),z=p0(x,y,!1),z!==""&&(b.toPortId=z),z=Ju(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Kn&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}zs.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)})}zs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zs.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},zs.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},zs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zs.prototype.findPartForKey=function(a){var y=Lo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zs.prototype.doModelChanged=function(a){var y=this;if(Lo.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===na){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(b==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var at=this.Vb(a.newValue);rt.toNode=at}}else if(b==="linkFromPortId"){var st=this.Kc(a.object);if(st!==null){var ut=a.newValue;typeof ut=="string"&&(st.fromPortId=ut)}}else if(b==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(b==="nodeGroupKey"){var xt=this.Lc(a.object);if(xt!==null){var Pt=a.newValue;if(Pt!==void 0){var bt=this.Vb(Pt);bt instanceof Vi?xt.containingGroup=bt:xt.containingGroup=null}else xt.containingGroup=null}}else if(b==="linkLabelKeys"){var Yt=this.Kc(a.object);if(Yt!==null){var Wt=a.oldValue,te=a.newValue;Array.isArray(Wt)&&Wt.forEach(function(an){0<=te.indexOf(an)||(an=y.Vb(an),an!==null&&(an.labeledLink=null))}),Array.isArray(te)&&te.forEach(function(an){an=y.Vb(an),an!==null&&(an.labeledLink=Yt)})}}else if(b==="linkCategory"){var ne=this.Kc(a.object),oe=a.newValue;ne!==null&&typeof oe=="string"&&(ne.category=oe)}else b==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(E===ga){var me=a.newValue;if(b==="linkDataArray"&&typeof me=="object"&&me!==null)v1(this,me);else if(b==="linkLabelKeys"&&Pf(me)){var Me=this.Kc(a.object),zn=this.Vb(me);Me!==null&&zn!==null&&(zn.labeledLink=Me)}x.isModified=!0}else if(E===Ka){var li=a.oldValue;if(b==="linkDataArray"&&typeof li=="object"&&li!==null)this.ip(li);else if(b==="linkLabelKeys"&&Pf(li)){var _n=this.Vb(li);_n!==null&&(_n.labeledLink=null)}x.isModified=!0}}else if(E===na){var An=a.propertyName;a.object!==x.model||An!=="linkFromKeyProperty"&&An!=="linkToKeyProperty"&&An!=="linkFromPortIdProperty"&&An!=="linkToPortIdProperty"&&An!=="linkLabelKeysProperty"&&An!=="nodeIsGroupProperty"&&An!=="nodeGroupKeyProperty"&&An!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},zs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new pn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){F1(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&b1(y,z,!1)})},zs.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof En){var b=Ju(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Ju(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new pn().addAll(y);var tt=new pn;a.labelNodes.each(function(rt){rt.data!==null&&(rt=E.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(b),b=b.copy(),b.hp(tt),(0<y.count||0<b.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),b.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof Kr)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Vi)&&(a.containingGroup=y)}}},zs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Hp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var tt=E.value;y.lb(tt)?b instanceof Vi&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof Kn&&(Ju(y,tt,!0)===x&&(z.link.fromNode=b),Ju(y,tt,!1)===x&&(z.link.toNode=b),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(at){return at===x?(b.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}hc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Vi&&(b.containingGroup=a))}},zs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Kn){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)uc(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&uc(y,x,E.data)),a instanceof Vi)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&uc(y,x,E)}}},zs.prototype.copyPartData=function(a,y){var x=Lo.prototype.copyPartData.call(this,a,y);if(a instanceof En)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},zs.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,tt=b.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=tt.archetypeLinkData,E instanceof En){if(wh(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,b.add(z),a=tt.archetypeLabelNodeData,a instanceof Kn&&(wh(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Qg(z,E,z.wa(a.data),!0),_g(z,E,rt,!0),x!==null&&Qg(z,E,z.wa(x.data),!1),_g(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof Kn||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},zs.prototype.findLinkForKey=zs.prototype.findLinkForKey,zs.prototype.findPartForKey=zs.prototype.findPartForKey,zs.prototype.removeAllModeledParts=zs.prototype.removeAllModeledParts,zs.prototype.addModeledParts=zs.prototype.addModeledParts,zs.prototype.addAllModeledParts=zs.prototype.addAllModeledParts,zs.className="GraphLinksPartManager";function uh(){Lo.apply(this,arguments),this.Sg=null}we(uh,Lo);function d0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Jr(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(wh(E),E=E.copy(),E!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}uh.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},uh.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},uh.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},uh.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},uh.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},uh.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},uh.prototype.doModelChanged=function(a){if(Lo.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===na){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),tt=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:d0(this,z,tt)}}else if(E==="parentLinkCategory"){var 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}}}}},uh.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Kn&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:d0(this,y,a):E!==null&&aa(x,E,!1)))}}},uh.prototype.updateDataBindings=function(a,y){Lo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},uh.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Hp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof Kn&&y.mh(z)===x&&d0(this,b,this.ii(z))}hc(y,x)}a=y.mh(a),a!==void 0&&b instanceof Kn&&(a=this.Vb(a),d0(this,a,b))}},uh.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Kn){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(Ka,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&uc(y,x,b)}},uh.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},uh.prototype.findLinkForKey=uh.prototype.findLinkForKey,uh.className="TreePartManager";function fi(a,y){this.kl=new pn,this.il=new pn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,vo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new yi,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 yi,this.Lt=new Ln,this.Wg=!1,this.o=null,this.undoManager=new va,a!==void 0&&(Ri(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}fi.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},fi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},fi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},fi.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+to(b)}}return y},fi.prototype.xA=function(a){a.change!==Bl&&De("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof vs?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},fi.prototype.Qv=function(a,y){var x=this,E=!1,b=new pn,z=new pn,tt=new pn,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===ga?b.add(ft.newValue):ft.change===Ka&&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 fi||x.ri()&&x.Jc(ft.object)||w1(x,ft.object).each(function(vt){z.add(vt)})):E=!0)});var at=this.il;at.clear(),b.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 E&&(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},fi.prototype.cloneDeep=function(a){return Jg(this,a,!0)};function Jg(a,y,x,E,b,z){function tt(ft,vt){rt?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,vt)):(ft=$s++,E.set(ft,vt),b.set(ft,y))}if(!Cn(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(E||(E=new yi),rt){var at=E.get(y);if(at)return at}else for(b||(b=new yi),at=b.iterator;at.next();){var st=at.key;if(at.value===y&&(st=E.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,E,b,z))}else if(y instanceof Qt||y instanceof un||y instanceof Xe||y instanceof $i||y instanceof wi)at=y.copy(),tt(y,at);else{if(y instanceof Co||y instanceof kn||y instanceof We)return y;if(y instanceof Ln)at=new Ln().addAll(Jg(a,y.Fa(),!1,E,b,z)),tt(y,at);else if(y instanceof pn)at=new pn().addAll(Jg(a,y.Fa(),!1,E,b,z)),tt(y,at);else if(y instanceof yi)at=new yi().addAll(Jg(a,y.Fa(),!1,E,b,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,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),at}wt=fi.prototype,wt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},wt.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},wt.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,Cn(y)&&(a.dm(y),a.modelData=y)}wt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!P1(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+wf(this,this.nodeDataArray,!0)},wt.kv=function(a){S1(this,a),a=a.nodeDataArray,Ri(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new pn,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new yi,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===na?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===ga||z===Ka)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function w1(a,y){for(var x=new pn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];f0(a,y,b,b,x)}return x}function f0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return b.add(E),!0;if(f0(a,y,tt,E,b))return!0}else if(Cn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(f0(a,y,tt,E,b))return!0}return!1}wt.Pv=function(a,y){var x=this,E=!1,b=new pn,z=new pn,tt=new pn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===ga?b.add(ut.newValue):ut.change===Ka&&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 fi||x.ri()&&x.Jc(ut.object)||w1(x,ut.object).each(function(ft){z.add(ft)})):E=!0)});var at=this.il;at.clear(),b.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="",E&&(a+=`,
|
|
"modelData": `+uy(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+wf(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+wf(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Wv:this.Yv)+wf(this,st.Fa(),!0)),st.clear(),at.clear(),a},wt.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)&&De("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new yi;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],tt=this.wa(z);tt!=null&&E.set(tt,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=E.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var at in b)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,b[at]);this.lm(b,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)},wt.$x=function(a,y){a.change!==Bl&&De("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof vs?(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 }'},wt.yA=function(a,y){return this.$x(a,y)},wt.np=function(a){return a===void 0&&(a=Gp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},wt.toJSON=function(a){return this.np(a)},wt.Zw=function(a){var y=null;if(typeof a=="string")try{y=ze.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:De("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&De("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},wt.Ky=function(a){return this.Zw(a)},fi.constructGraphLinksModel=function(){return new fi},wt=fi.prototype,wt.dm=function(a){if(Ri(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Cn(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:De("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Cn(a)){for(y in a)if(x=a[y],Cn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new Ln,E=0;E<x.length/2;E++)b.add(new Qt(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Nx(a)}return a},wt.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()):Ri(a)?wf(this,a):Cn(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function wf(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new xo;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var tt=y[z];tt!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(tt)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Xl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Qt)y={class:"go.Point",x:Xl(x.x),y:Xl(x.y)};else if(x instanceof un)y={class:"go.Size",width:Xl(x.width),height:Xl(x.height)};else if(x instanceof Xe)y={class:"go.Rect",x:Xl(x.x),y:Xl(x.y),width:Xl(x.width),height:Xl(x.height)};else if(x instanceof $i)y={class:"go.Margin",top:Xl(x.top),right:Xl(x.right),bottom:Xl(x.bottom),left:Xl(x.left)};else if(x instanceof wi)x.sb()?y={class:"go.Spot",x:Xl(x.x),y:Xl(x.y),offsetX:Xl(x.offsetX),offsetY:Xl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Co){if(y={class:"go.Brush",type:x.type.name},x.type===Wd?y.color=x.color:(x.type===xd||x.type===sh)&&(y.start=x.start,y.end=x.end,x.type===sh&&(x.startRadius!==0&&(y.startRadius=Xl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Xl(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof kn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Xl(x.startX)),x.startY!==0&&(y.startY=Xl(x.startY)),x.endX!==0&&(y.endX=Xl(x.endX)),x.endY!==0&&(y.endY=Xl(x.endY)),x.spot1.D(bs)||(y.spot1=x.spot1),x.spot2.D(yl)||(y.spot2=x.spot2),x.type===kn.o&&(y.path=kn.ia(x))):x instanceof We&&(y={class:"go.EnumValue",classType:Gp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=rs(y,b);if(!P1(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="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+="]",E+=tt}else E+=a.sm(z)}return E+"}"}function Jl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Qt(Jl(a.x),Jl(a.y));else if(y==="Size")x=new un(Jl(a.width),Jl(a.height));else if(y==="Rect")x=new Xe(Jl(a.x),Jl(a.y),Jl(a.width),Jl(a.height));else if(y==="Margin")x=new $i(Jl(a.top),Jl(a.right),Jl(a.bottom),Jl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=gh(a.enum):x=new wi(Jl(a.x),Jl(a.y),Jl(a.offsetX),Jl(a.offsetY));else if(y==="Brush"){if(x=new Co,x.type=mr(Co,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof wi&&(x.start=a.start),a.end instanceof wi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Jl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Jl(a.endRadius)),a=a.colorStops,Cn(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=kn.parse(a.path):x=new kn,x.type=mr(kn,a.type),typeof a.startX=="number"&&(x.startX=Jl(a.startX)),typeof a.startY=="number"&&(x.startY=Jl(a.startY)),typeof a.endX=="number"&&(x.endX=Jl(a.endX)),typeof a.endY=="number"&&(x.endY=Jl(a.endY)),a.spot1 instanceof wi&&(x.spot1=a.spot1),a.spot2 instanceof wi&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=cy(E),typeof E=="function"&&(x=mr(E,a.name)));return x}wt.Pe=function(a){return this.Lt.add(a),this},wt.ik=function(a){this.Lt.remove(a)},wt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},wt.cb=function(a,y,x,E,b,z,tt){ws(this,"",a,y,x,E,b,z,tt)},wt.g=function(a,y,x,E,b){ws(this,"",na,a,this,y,x,E,b)},wt.Fs=function(a,y,x,E,b,z){ws(this,"",na,y,a,x,E,b,z)};function ws(a,y,x,E,b,z,tt,rt,at){rt===void 0&&(rt=null),at===void 0&&(at=null);var st=new ma;st.model=a,st.change=x,st.modelChange=y,st.propertyName=E,st.object=b,st.oldValue=z,st.oldParam=rt,st.newValue=tt,st.newParam=at,a.ds(st)}fi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===na){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),ya(x,E,b)}else a.change===ga?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Cn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&bo(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Sa(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Ri(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Ri(E)&&typeof x=="number"&&(a=a.newValue,y?bo(E,x):Sa(E,x,a))):De("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ka?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Cn(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Sa(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&bo(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Ri(E)&&a.propertyName&&(E=rs(a.object,a.propertyName)),Ri(E)&&typeof x=="number"&&(a=a.oldValue,y?Sa(E,x,a):bo(E,x))):De("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Bl&&De("unknown ChangedEvent: "+a.toString())},fi.prototype.Ea=function(a){return this.undoManager.Ea(a)},fi.prototype.eb=function(a){return this.undoManager.eb(a)},fi.prototype.Kf=function(){return this.undoManager.Kf()},fi.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},wt=fi.prototype,wt.La=function(a,y){y===void 0&&(y=""),ws(this,"SourceChanged",Bl,y,a,null,null)},wt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=rs(a,y),y!==void 0)){if(Pf(y))return y;De("Key value for node data "+a+" is not a number or a string: "+y)}}},wt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=rs(a,x);E!==y&&this.hc(y)===null&&(ya(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ws(this,"nodeKey",na,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else ya(a,x,y)}};function Pf(a){return typeof a=="number"||typeof a=="string"}wt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},wt.hc=function(a){return a===null&&De("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Pf(a)?this.kb.I(a):null},wt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){ya(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;ya(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ya(a,y,x)}}}}},wt.xf=function(a){a!==null&&(Fs(a),this.lb(a)||C1(this,a,!0))};function C1(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&De("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Sa(a.Tc,E,y)),ws(a,"nodeDataArray",ga,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}wt.Fy=function(a){if(Ri(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)},wt.cm=function(a){a!==null&&A1(this,a,!0)};function A1(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){t:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break t}E=-1}if(0>E)return;bo(a.Tc,E)}ws(a,"nodeDataArray",Ka,"nodeDataArray",a,y,null,E,null),a.qp(y)}wt.nA=function(a){if(Ri(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)},wt.$z=function(a){if(a!==this.nodeDataArray&&Ri(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},wt.jp=function(a,y){y!==void 0&&(a=Hp(this,a),a instanceof pn&&this.Vf.add(y,a))},wt.Lv=function(){},wt.fm=function(){},wt.em=function(){},wt.qp=function(){};function uc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new pn,a.Vf.add(y,E)),E.add(x)}}function hc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof pn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Hp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof pn?a:null)}wt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},fi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),Cn(a)&&vo(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=g0(a,y[x],a.copiesArrayObjects);E.push(b)}return vo(E),E}if(x&&Cn(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=rs(y,E),tt=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 fi||z instanceof va||z instanceof vs||z instanceof ma||(z=g0(a,z,!1)),ya(x,E,z)}return vo(x),x}return y instanceof Qt||y instanceof un||y instanceof Xe||y instanceof wi||y instanceof $i?y.copy():y}fi.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!E1&&a instanceof se&&(E1=!0,Tr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Tr(" Is that really your intent?"));var E=rs(a,y);E!==x&&(ya(a,y,x),this.Fs(a,y,E,x))},wt=fi.prototype,wt.set=function(a,y,x){this.setDataProperty(a,y,x)},wt.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},wt.Ay=function(a,y){this.ts(a,-1,y)},wt.ts=function(a,y,x){0>y&&(y=a.length),Sa(a,y,x),ws(this,"",ga,"",a,null,x,null,y)},wt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&De("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];bo(a,y),ws(this,"",Ka,"",a,x,null,y,null)},wt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;De("getCategoryForNodeData found a non-string category for "+a+": "+y)},wt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(ya(a,x,y),ws(this,"nodeCategory",na,x,a,E,y))}else ya(a,x,y)}},wt.lm=function(a,y){this.jm(y,this.Ro(a))},wt.Tl=function(){return!1},wt.Wj=function(){return!1},wt.ri=function(){return!1},wt.xs=function(){return!1},wt.Xj=function(){return!1};function hy(){return new fi}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 Gh[a]?Gh[a]:ze.go!==void 0&&ze.go[a]?ze.go[a]:null}function rs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function ya(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Ze.Object.defineProperties(fi.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===""&&De("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&De("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];Cn(b)||De("Model.nodeDataArray must only contain Objects, not: "+b),Fs(b)}for(this.Tc=a,E=new Ln,b=0;b<x;b++){var z=a[b],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?E.add(z):this.kb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(ws(this,"nodeDataArray",na,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),fi.prototype.setCategoryForNodeData=fi.prototype.jm,fi.prototype.getCategoryForNodeData=fi.prototype.Ro,fi.prototype.removeArrayItem=fi.prototype.ov,fi.prototype.insertArrayItem=fi.prototype.ts,fi.prototype.addArrayItem=fi.prototype.Ay,fi.prototype.assignAllDataProperties=fi.prototype.Do,fi.prototype.set=fi.prototype.set,fi.prototype.clearUnresolvedReferences=fi.prototype.Qy,fi.prototype.mergeNodeDataArray=fi.prototype.$z,fi.prototype.removeNodeDataCollection=fi.prototype.nA,fi.prototype.removeNodeData=fi.prototype.cm,fi.prototype.addNodeDataCollection=fi.prototype.Fy,fi.prototype.addNodeData=fi.prototype.xf,fi.prototype.makeNodeDataKeyUnique=fi.prototype.$u,fi.prototype.findNodeDataForKey=fi.prototype.hc,fi.prototype.containsNodeData=fi.prototype.lb,fi.prototype.setKeyForNodeData=fi.prototype.km,fi.prototype.getKeyForNodeData=fi.prototype.wa,fi.prototype.updateTargetBindings=fi.prototype.La,fi.prototype.commit=fi.prototype.commit,fi.prototype.rollbackTransaction=fi.prototype.Kf,fi.prototype.commitTransaction=fi.prototype.eb,fi.prototype.startTransaction=fi.prototype.Ea,fi.prototype.raiseDataChanged=fi.prototype.Fs,fi.prototype.raiseChanged=fi.prototype.g,fi.prototype.raiseChangedEvent=fi.prototype.cb,fi.prototype.removeChangedListener=fi.prototype.ik,fi.prototype.addChangedListener=fi.prototype.Pe,fi.prototype.writeJsonValue=fi.prototype.sm,fi.prototype.replaceJsonObjects=fi.prototype.dm,fi.prototype.applyIncrementalJSON=fi.prototype.Ky,fi.prototype.applyIncrementalJson=fi.prototype.Zw,fi.prototype.toJSON=fi.prototype.toJSON,fi.prototype.toJson=fi.prototype.np,fi.prototype.toIncrementalJSON=fi.prototype.yA,fi.prototype.toIncrementalJson=fi.prototype.$x,fi.prototype.toIncrementalData=fi.prototype.xA,fi.prototype.clear=fi.prototype.clear;var E1=!1,Gh={};fi.className="Model",fi.fromJSON=fi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ze.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:De("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=cy(E)):(b=cy(E),b===null&&(b=ze[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof fi?y=a:De("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=fi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},fi.safePropertyValue=rs,fi.safePropertySet=ya,Gh.Brush=Co,Gh.ChangedEvent=ma,Gh.Geometry=kn,Gh.Margin=$i,Gh.Panel=mn,Gh.Point=Qt,Gh.Rect=Xe,Gh.Size=un,Gh.Spot=wi,Gh.Transaction=vs,Gh.UndoManager=va;function ls(a,y,x,E){vo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=M1,this.wk=null):(this.el=Kp,this.wk=E),this.st=new pn}ls.prototype.copy=function(){var a=new ls;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},wt=ls.prototype,wt.qb=function(a){a.classType===ls&&(this.mode=a)},wt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.Kx=function(a){return a===void 0&&(a=null),this.mode=Kp,this.backConverter=a,this},wt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},wt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function L1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}wt.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")Tr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=rs(y,E)),z!==void 0)if(b===null)x!==""&&ya(a,x,z);else try{if(x!==""){var tt=b(z,a);ya(a,x,tt)}else b(z,a)}catch(rt){}}}},wt.sp=function(a,y,x,E){if(this.el===Kp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=rs(a,b)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=E!==null?E.diagram:null,at=rt!==null?rt.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,tt):ya(y,x,tt);else if(at!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var st=E.itemIndex,ut=E.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):ya(y,x,ft)}else{var vt=z(tt,y,at);if(vt!==void 0&&at!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var xt=E.itemIndex,Pt=E.panel.itemArray;at.ov(Pt,xt),at.ts(Pt,xt,vt)}}}catch(bt){}}finally{this.st.remove(a)}}}},Ze.Object.defineProperties(ls.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&xi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&xi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&xi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&xi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&xi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&xi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&xi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&xi(this),this.el=a}}}),ls.prototype.updateSource=ls.prototype.sp,ls.prototype.updateTarget=ls.prototype.Mv,ls.prototype.ofModel=ls.prototype.dA,ls.prototype.ofObject=ls.prototype.cp,ls.prototype.makeTwoWay=ls.prototype.Kx;var Bx="Binding",M1=new We(ls,"OneWay",1),Kp=new We(ls,"TwoWay",2);ls.className="Binding",ls.parseEnum=function(a,y){return function(x){return x=mr(a,x),x===null?y:x}},ls.toString=to,ls.OneWay=M1,ls.TwoWay=Kp;function Br(a,y,x){fi.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new pn,this.wb=new yi,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&&(Ri(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}we(Br,fi),Br.constructGraphLinksModel=fi.constructGraphLinksModel,Br.prototype.cloneProtected=function(a){fi.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},wt=Br.prototype,wt.clear=function(){fi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},wt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+to(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Ju(this,b,!0)+"-->"+Ju(this,b,!1)}return y},wt.Qv=function(a,y){this.linkKeyProperty===""&&De("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=fi.prototype.Qv.call(this,a,y),E=this,b=new pn,z=new pn,tt=new pn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ga?b.add(ut.newValue):ut.change===Ka&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof fi||E.lb(ut.object)||k1(E,ut.object).each(function(ft){z.add(ft)})))});var at=this.il;at.clear(),b.each(function(ut){at.add(E.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0<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},wt.rm=function(){var a=fi.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},wt.gp=function(a){fi.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)},wt.Rv=function(){var a=fi.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+wf(this,this.linkDataArray,!0);return a+y},wt.kv=function(a){fi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function k1(a,y){for(var x=new pn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];f0(a,y,b,b,x)}return x}wt.Pv=function(a,y){this.linkKeyProperty===""&&De("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=fi.prototype.Pv.call(this,a,y),E=this,b=new pn,z=new pn,tt=new pn,rt=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ga?b.add(ut.newValue):ut.change===Ka&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof fi||E.lb(ut.object)||k1(E,ut.object).each(function(ft){z.add(ft)})))});var at=this.il;at.clear(),b.each(function(ut){at.add(E.Ac(ut)),y||z.add(ut)});var st=this.kl;return st.clear(),tt.each(function(ut){st.add(E.Ac(ut)),y&&z.add(ut)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+wf(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+wf(this,z.Fa(),!0)),0<st.count&&(a+=(y?this.Vv:this.Xv)+wf(this,st.Fa(),!0)),st.clear(),at.clear(),a},wt.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)&&De("applyIncrementalJson cannot change Model properties"),fi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var tt in b)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,b[tt]);N1(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Br.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===na){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),ya(x,E,b);return}}else if(a.change===ga){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Cn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Ka){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Cn(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}fi.prototype.changeState.call(this,a,y)}},wt=Br.prototype,wt.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),ya(x,this.nodeKeyProperty,a),this.xf(x))}return a}},wt.yx=function(a){return Ju(this,a,!0)},wt.wv=function(a,y){Qg(this,a,y,!0)},wt.Bx=function(a){return Ju(this,a,!1)},wt.Bv=function(a,y){Qg(this,a,y,!1)};function Ju(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=rs(y,a),a!==void 0))){if(Pf(a))return a;De((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=rs(y,b);z!==x&&(hc(a,z,y),ya(y,b,x),a.hc(x)===null&&uc(a,x,y),ws(a,E?"linkFromKey":"linkToKey",na,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ya(y,b,x)}}wt.zx=function(a){return p0(this,a,!0)},wt.xv=function(a,y){_g(this,a,y,!0)},wt.Cx=function(a){return p0(this,a,!1)},wt.Cv=function(a,y){_g(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=rs(y,a),y===void 0?"":y)}function _g(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=rs(y,b);z===void 0&&(z=""),z!==x&&(ya(y,b,x),ws(a,E?"linkFromPortId":"linkToPortId",na,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ya(y,b,x)}}wt.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=rs(a,y),a===void 0?m0:a)},wt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=rs(a,x);if(E===void 0&&(E=m0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)hc(this,E[z],a);for(ya(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&uc(this,tt,a)}ws(this,"linkLabelKeys",na,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ya(a,x,y)}},wt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=rs(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&uc(this,y,a),ws(this,"linkLabelKeys",ga,x,a,null,y,null,b)))}else De(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},wt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=rs(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(hc(this,y,a),ws(this,"linkLabelKeys",Ka,x,a,y,null,b,null)))}else E!==void 0&&De(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},wt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=rs(a,y),y!==void 0)){if(Pf(y))return y;De("Key value for link data "+a+" is not a number or a string: "+y)}}},wt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=rs(a,x);E!==y&&this.jh(y)===null&&(ya(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ws(this,"linkKey",na,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ya(a,x,y)}},wt.jh=function(a){return a===null&&De("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Pf(a)?this.wb.I(a):null},wt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){ya(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ya(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ya(a,y,x)}}}}},wt.Jc=function(a){return a===null?!1:this.$f.contains(a)},wt.fi=function(a){a!==null&&(Fs(a),this.Jc(a)||b1(this,a,!0))};function b1(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&De("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),ws(a,"linkDataArray",ga,"linkDataArray",a,null,y,null,E),dy(a,y)}wt.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)},wt.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(ws(a,"linkDataArray",Ka,"linkDataArray",a,y,null,E,null),x=Ju(a,y,!0),hc(a,x,y),x=Ju(a,y,!1),hc(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],hc(a,x,y)}wt.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)},wt.Zz=function(a){if(this.linkKeyProperty===""&&De("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Ri(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),N1(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function dy(a,y){var x=Ju(a,y,!0);x=a.Vl(x),a.hc(x)===null&&uc(a,x,y),x=Ju(a,y,!1),x=a.Vl(x),a.hc(x)===null&&uc(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&uc(a,x,y)}wt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),Cn(a)&&(vo(a),this.lf!==""&&ya(a,this.lf,void 0),this.mf!==""&&ya(a,this.mf,void 0),this.je!==""&&ya(a,this.je,[])),a},wt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!rs(a,y)},wt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=rs(a,y),y!==void 0)){if(Pf(y))return y;De("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},wt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=rs(a,x);E!==y&&(hc(this,E,a),ya(a,x,y),this.hc(y)===null&&uc(this,y,a),ws(this,"nodeGroupKey",na,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ya(a,x,y)}},Br.prototype.copyNodeData=function(a){return a===null?null:(a=fi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||rs(a,this.Je)===void 0||ya(a,this.Je,void 0),a)},Br.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){_g(this,a,x,!0);return}if(y===this.linkToPortIdProperty){_g(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=rs(a,y);E!==x&&(ya(a,y,x),this.Fs(a,y,E,x))},wt=Br.prototype,wt.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&rs(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},wt.jp=function(a,y){fi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(Ju(this,E,!0)===b){var tt=this.lf;ya(E,tt,z),ws(this,"linkFromKey",na,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(Ju(this,E,!1)===b&&(tt=this.mf,ya(E,tt,z),ws(this,"linkToKey",na,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)),tt=this.Ef(E),Array.isArray(tt))for(var rt=tt.length,at=this.je,st=0;st<rt;st++)tt[st]===b&&(tt[st]=z,ws(this,"linkLabelKeys",ga,at,E,b,z,st,st))}},wt.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ya(a,E,x),ws(this,"nodeGroupKey",na,E,a,y,x),typeof E=="string"&&this.La(a,E)}},wt.Lv=function(){fi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)dy(this,a[x])},wt.fm=function(a){fi.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=ki();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;ws(this,"nodeGroupKey",na,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Ju(this,E,!0)===a&&(b=this.lf,ws(this,"linkFromKey",na,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Ju(this,E,!1)===a&&(b=this.mf,ws(this,"linkToKey",na,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,tt=this.je,rt=0;rt<z;rt++)b[rt]===a&&(ws(this,"linkLabelKeys",ga,tt,E,a,a,rt,rt),x.push(E))}for(y=0;y<x.length;y++)hc(this,a,x[y]);Bi(x)}},wt.em=function(a){fi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&uc(this,y,a)},wt.qp=function(a){fi.prototype.qp.call(this,a);var y=this.lh(a);hc(this,y,a)},wt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=rs(a,y),y===void 0))return"";if(typeof y=="string")return y;De("getCategoryForLinkData found a non-string category for "+a+": "+y)},Br.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Br.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(ya(a,x,y),ws(this,"linkCategory",na,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ya(a,x,y)}},Br.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},wt=Br.prototype,wt.lm=function(a,y){fi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}wt.Wj=function(){return!0},wt.ri=function(){return!0},wt.xs=function(){return!0},wt.Xj=function(){return!0},Ze.Object.defineProperties(Br.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];Cn(b)||De("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Fs(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new Ln,b=0;b<x;b++){var z=a[b],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?E.add(z):this.wb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new pn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,ws(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,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),Br.prototype.setCategoryForLinkData=Br.prototype.lp,Br.prototype.getCategoryForLinkData=Br.prototype.ps,Br.prototype.assignAllDataProperties=Br.prototype.Do,Br.prototype.setGroupKeyForNodeData=Br.prototype.mp,Br.prototype.getGroupKeyForNodeData=Br.prototype.lh,Br.prototype.isGroupForNodeData=Br.prototype.Yu,Br.prototype.copyLinkData=Br.prototype.Jo,Br.prototype.mergeLinkDataArray=Br.prototype.Zz,Br.prototype.removeLinkDataCollection=Br.prototype.lA,Br.prototype.removeLinkData=Br.prototype.bm,Br.prototype.addLinkDataCollection=Br.prototype.Ey,Br.prototype.addLinkData=Br.prototype.fi,Br.prototype.containsLinkData=Br.prototype.Jc,Br.prototype.makeLinkDataKeyUnique=Br.prototype.Bs,Br.prototype.findLinkDataForKey=Br.prototype.jh,Br.prototype.setKeyForLinkData=Br.prototype.Ks,Br.prototype.getKeyForLinkData=Br.prototype.Ac,Br.prototype.removeLabelKeyForLinkData=Br.prototype.Qx,Br.prototype.addLabelKeyForLinkData=Br.prototype.Bu,Br.prototype.setLabelKeysForLinkData=Br.prototype.Ls,Br.prototype.getLabelKeysForLinkData=Br.prototype.Ef,Br.prototype.setToPortIdForLinkData=Br.prototype.Cv,Br.prototype.getToPortIdForLinkData=Br.prototype.Cx,Br.prototype.setFromPortIdForLinkData=Br.prototype.xv,Br.prototype.getFromPortIdForLinkData=Br.prototype.zx,Br.prototype.setToKeyForLinkData=Br.prototype.Bv,Br.prototype.getToKeyForLinkData=Br.prototype.Bx,Br.prototype.setFromKeyForLinkData=Br.prototype.wv,Br.prototype.getFromKeyForLinkData=Br.prototype.yx,Br.prototype.clear=Br.prototype.clear;var m0=Object.freeze([]);Br.className="GraphLinksModel",Gh.GraphLinksModel=Br,fi.constructGraphLinksModel=fi.constructGraphLinksModel=function(){return new Br},fi.initDiagramModel=hy=function(){return new Br};function Ql(a,y){fi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Ri(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}we(Ql,fi),Ql.constructGraphLinksModel=fi.constructGraphLinksModel,Ql.prototype.cloneProtected=function(a){fi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},wt=Ql.prototype,wt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+to(b)}}return y},wt.rm=function(){var a=fi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},wt.gp=function(a){fi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},wt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&De("applyIncrementalJson cannot change Model properties"),fi.prototype.fp.call(this,a)},wt.Vl=function(a){return a},wt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=rs(a,y),y!==void 0)){if(Pf(y))return y;De("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},wt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=rs(a,x);E!==y&&(hc(this,E,a),ya(a,x,y),this.hc(y)===null&&uc(this,y,a),ws(this,"nodeParentKey",na,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ya(a,x,y)}},wt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=rs(a,y),y===void 0)?"":typeof y=="string"?y:(De("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ql.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ql.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=rs(a,x);E===void 0&&(E=""),E!==y&&(ya(a,x,y),ws(this,"parentLinkCategory",na,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ya(a,x,y)}},Ql.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ql.prototype.copyNodeData=function(a){return a===null?null:(a=fi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||rs(a,this.Ke)===void 0||ya(a,this.Ke,void 0),a)},Ql.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=rs(a,y);E!==x&&(ya(a,y,x),this.Fs(a,y,E,x))},wt=Ql.prototype,wt.jp=function(a,y){fi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},wt.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ya(a,E,x),ws(this,"nodeParentKey",na,E,a,y,x),typeof E=="string"&&this.La(a,E)}},wt.fm=function(a){fi.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=ki();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;ws(this,"nodeParentKey",na,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)hc(this,a,x[y]);Bi(x)}},wt.em=function(a){fi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&uc(this,y,a)},wt.qp=function(a){fi.prototype.qp.call(this,a);var y=this.mh(a);hc(this,y,a)},wt.lm=function(a,y){fi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},wt.Tl=function(){return!0},wt.xs=function(){return!0},Ze.Object.defineProperties(Ql.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"}}}),Ql.prototype.setParentLinkCategoryForNodeData=Ql.prototype.Ms,Ql.prototype.getParentLinkCategoryForNodeData=Ql.prototype.ss,Ql.prototype.setParentKeyForNodeData=Ql.prototype.qe,Ql.prototype.getParentKeyForNodeData=Ql.prototype.mh,Ql.className="TreeModel",Gh.TreeModel=Ql;function Ha(a){Pa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Kh,this.Ti=0,this.Zv=new Qt,this.Jp=this.me=0,this.Xr=new Zp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Kh,this.K=_l,this.nd=$g,this.hd=ry,this.tf=6,this.Nn=C0,a&&Object.assign(this,a)}we(Ha,Pa),Ha.prototype.cloneProtected=function(a){Pa.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},Ha.prototype.qb=function(a){a.classType===Ha?a===w0||a===P0||a===S0||a===x0||a===$g?this.sorting=a:a===_f||a===qg||a===_l||a===Af?this.direction=a:a===Xd||a===Cf||a===Kh||a===Vh?this.arrangement=a:(a===mg||a===C0)&&(this.nodeDiameterFormula=a):Pa.prototype.qb.call(this,a)},Ha.prototype.createNetwork=function(){return new tp(this)},Ha.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,E=this.sort(y),b,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===Vh&&at===mg?rt=Kh:rt===Vh&&at!==mg&&(rt=this.arrangement),(this.direction===_f||this.direction===qg)&&this.sorting!==$g){for(at=0;!(at>=E.length)&&(a.add(E.M(at)),!(at+1>=E.length));at+=2)x.add(E.M(at+1));this.direction===_f?(this.arrangement===Vh&&a.reverse(),E=new Ln,E.addAll(a),E.addAll(x)):(this.arrangement===Vh&&x.reverse(),E=new Ln,E.addAll(x),E.addAll(a))}at=E.length;for(var xt=z=b=0;xt<E.length;xt++){var Pt=ft+vt*z*(this.direction===_l?1:-1)/at,bt=E.M(xt).diameter;isNaN(bt)&&(bt=Ef(E.M(xt),Pt)),360>vt&&(xt===0||xt===E.length-1)&&(bt/=2),b+=bt,z++}if(isNaN(st)||rt===Vh){if(isNaN(y)&&(y=6),rt!==Kh&&rt!==Vh){for(z=-1/0,tt=0;tt<at;tt++)xt=E.M(tt),b=E.M(tt===at-1?0:tt+1),isNaN(xt.diameter)&&Ef(xt,0),isNaN(b.diameter)&&Ef(b,0),z=Math.max(z,(xt.diameter+b.diameter)/2);tt=z+y,rt===Xd?st=(z+y)/(2*Math.PI/at):st=v0(this,tt*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else st=v0(this,b+(360<=vt?at:at-1)*(rt!==Vh?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=st*ut}else if(z=st*ut,xt=fy(this,st,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(rt===Kh||rt===Vh)&&(y=(xt-b)/(360<=vt?at:at-1));else if(rt===Kh||rt===Vh)xt=(xt-b)/(360<=vt?at:at-1),xt<y?(st=v0(this,b+y*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=st*ut):y=xt;else{for(tt=-1/0,b=0;b<at;b++)Pt=E.M(b),bt=E.M(b===at-1?0:b+1),isNaN(Pt.diameter)&&Ef(Pt,0),isNaN(bt.diameter)&&Ef(bt,0),tt=Math.max(tt,(Pt.diameter+bt.diameter)/2);tt+=y,b=v0(this,tt*(360<=vt?at:at-1),ut,ft*Math.PI/180,vt*Math.PI/180),b>st?(st=b,z=st*ut):tt=xt/(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=E,E=this.kw,rt=this.lc,st=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,at=this.Jp,this.direction!==_f&&this.direction!==qg||E!==Vh)if(this.direction===_f||this.direction===qg){switch(tt=0,E){case Cf:tt=180*y0(this,rt,vt,st,at)/Math.PI;break;case Kh:at=y=0,tt=a.first(),tt!==null&&(y=Ef(tt,Math.PI/2)),tt=x.first(),tt!==null&&(at=Ef(tt,Math.PI/2)),tt=180*y0(this,rt,vt,st,ft+(y+at)/2)/Math.PI;break;case Xd:tt=ut/y.length}if(this.direction===_f){switch(E){case Cf:Up(this,a,st,Af);break;case Kh:Yp(this,a,st,Af);break;case Xd:Vp(this,a,ut/2,st,Af)}switch(E){case Cf:Up(this,x,st+tt,_l);break;case Kh:Yp(this,x,st+tt,_l);break;case Xd:Vp(this,x,ut/2,st+tt,_l)}}else{switch(E){case Cf:Up(this,x,st,Af);break;case Kh:Yp(this,x,st,Af);break;case Xd:Vp(this,x,ut/2,st,Af)}switch(E){case Cf:Up(this,a,st+tt,_l);break;case Kh:Yp(this,a,st+tt,_l);break;case Xd:Vp(this,a,ut/2,st+tt,_l)}}}else switch(E){case Cf:Up(this,y,st,this.direction);break;case Kh:Yp(this,y,st,this.direction);break;case Xd:Vp(this,y,ut,st,this.direction);break;case Vh:B1(this,y,ut,st,this.direction)}else B1(this,y,ut,st-ut/2,_l)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Vp(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,at=0;at<rt;at++){var st=E+(b===_l?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 Yp(a,y,x,E){var b=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=b*Math.cos(x),st.centerY=ft,st.actualAngle=180*x/Math.PI,isNaN(st.diameter)&&Ef(st,0),isNaN(ut.diameter)&&Ef(ut,0),st=y0(a,b,z,E===_l?x:-x,(st.diameter+ut.diameter)/2+tt),x+=E===_l?st:-st}}function Up(a,y,x,E){var b=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=b*Math.cos(x),st.centerY=z*Math.sin(x),st.actualAngle=180*x/Math.PI,st=y0(a,b,z,E===_l?x:-x,tt),x+=E===_l?st:-st}}function B1(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Zp,360>x){for(z=E+(b===_l?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,D1(a,y,x,E,b)}else T1(a,y,x,E,b);a.Xr.commit(y)}function T1(a,y,x,E,b){var z=a.lc,tt=a.Ti,rt=a.Zm,at=z*Math.cos(E*Math.PI/180),st=a.me*Math.sin(E*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Qt.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,b,z)||R1(a,at,st,ut,ft,b,z),at=z.x,st=z.y;if(Qt.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),xt=Math.abs(st-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(xt)?Math.abs(at-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<xt?xt:1>Math.abs(vt)?0:vt,at=Math.abs(z)>Math.abs(ft)?0<z!=st>ft:0<ft!=at<z,(at=b===_l?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,T1(a,y,x,E,b))}}}function D1(a,y,x,E,b){for(var z=a.lc,tt=a.me,rt=a.Zm,at=z*Math.cos(E*Math.PI/180),st=tt*Math.sin(E*Math.PI/180),ut=Qt.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,b,ut)||R1(a,at,st,ft,vt,b,ut),at=ut.x,st=ut.y;if(Qt.free(ut),a.mj++,!(23<a.mj)){if(at=Math.atan2(st,at),at=b===_l?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,D1(a,y,x,E,b))}}function O1(a,y,x,E,b,z,tt){var rt=a.lc,at=a.me,st=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===_l)){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)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=st,!1):(tt.x=z,tt.y=st,!0)}function R1(a,y,x,E,b,z,tt){var rt=a.lc,at=a.me,st=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===_l)){if(z=x-a,z<-at){if(z=x+a,z>at){tt.x=st,tt.y=z;return}E=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){tt.x=st,tt.y=z;return}E=!0}st=Math.sqrt(1-Math.min(1,z*z/(at*at)))*rt,0>y!==E&&(st=-st),tt.x=st,tt.y=z}Ha.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Ha.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 Qt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Ha.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),at=0,st=0;st<=z;st++){E!==void 0&&b!==void 0?at=E+st*b/z:at=st*Math.PI/(2*z);var ut=Math.sin(at);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?fy(a,1,x,E,b):fy(a,1,x))}function y0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var rt=0;;rt++){var at=Math.sin(E+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,tt>=b)return rt*a}}Ha.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case $g:return this.ak(Tx(a));default:De("Invalid sorting type.")}return a};function Tx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ln;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>b&&(b=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>b&&(b=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Ha.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],rt=[];E=[],b=new Ln;for(var at=0,st=0;st<y.length;st++){var ut=y[st].length;if(ut===1)E.push(st);else if(ut===0)b.add(a.M(st));else{if(at===0)x.push(st);else{for(var ft=ut=1/0,vt=-1,xt=[],Pt=0;Pt<x.length;Pt++)0>y[x[Pt]].indexOf(x[Pt===x.length-1?0:Pt+1])&&xt.push(Pt===x.length-1?0:Pt+1);if(xt.length===0)for(Pt=0;Pt<x.length;Pt++)xt.push(Pt);for(Pt=0;Pt<xt.length;Pt++){for(var bt=xt[Pt],Yt=y[st],Wt=0,te=0;te<tt.length;te++){var ne=z[tt[te]],oe=z[rt[te]];if(ne<oe){var me=ne;ne=oe}else me=oe;if(me<bt&&bt<=ne)for(oe=0;oe<Yt.length;oe++){var Me=Yt[oe];0>x.indexOf(Me)||me<z[Me]&&z[Me]<ne||me===z[Me]||ne===z[Me]||Wt++}else for(oe=0;oe<Yt.length;oe++)Me=Yt[oe],0>x.indexOf(Me)||me<z[Me]&&z[Me]<ne&&me!==z[Me]&&ne!==z[Me]&&Wt++}for(Yt=Wt,te=Wt=0;te<y[st].length;te++)me=x.indexOf(y[st][te]),0<=me&&(me=Math.abs(bt-(me>=bt?me+1:me)),Wt+=me<x.length+1-me?me:x.length+1-me);for(te=0;te<tt.length;te++)me=z[tt[te]],ne=z[rt[te]],me>=bt&&me++,ne>=bt&&ne++,me>ne&&(oe=ne,ne=me,me=oe),ne-me<(x.length+2)/2==(me<bt&&bt<=ne)&&Wt++;(Yt<ut||Yt===ut&&Wt<ft)&&(ut=Yt,ft=Wt,vt=bt)}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<E.length;rt++)if(at=E[rt],st=y[at][0],ut=x.indexOf(st),0<=ut){for(vt=ft=0;vt<y[st].length;vt++)xt=x.indexOf(y[st][vt]),0>xt||xt===ut||(Pt=xt>ut?xt-ut:ut-xt,ft+=xt<ut!=Pt>tt-Pt?1:-1);x.splice(0>ft?ut:ut+1,0,at),E.splice(rt,1),rt--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},Ze.Object.defineProperties(Ha.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!==Vh&&a!==Kh&&a!==Cf&&a!==Xd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==_l&&a!==Af&&a!==_f&&a!==qg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&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!==C0&&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 Kh=new We(Ha,"ConstantSpacing",0),Cf=new We(Ha,"ConstantDistance",1),Xd=new We(Ha,"ConstantAngle",2),Vh=new We(Ha,"Packed",3),_l=new We(Ha,"Clockwise",4),Af=new We(Ha,"Counterclockwise",5),_f=new We(Ha,"BidirectionalLeft",6),qg=new We(Ha,"BidirectionalRight",7),S0=new We(Ha,"Forwards",8),x0=new We(Ha,"Reverse",9),w0=new We(Ha,"Ascending",10),P0=new We(Ha,"Descending",11),$g=new We(Ha,"Optimized",12),C0=new We(Ha,"Pythagorean",13),mg=new We(Ha,"Circular",14);Ha.className="CircularLayout",Ha.ConstantSpacing=Kh,Ha.ConstantDistance=Cf,Ha.ConstantAngle=Xd,Ha.Packed=Vh,Ha.Clockwise=_l,Ha.Counterclockwise=Af,Ha.BidirectionalLeft=_f,Ha.BidirectionalRight=qg,Ha.Forwards=S0,Ha.Reverse=x0,Ha.Ascending=w0,Ha.Descending=P0,Ha.Optimized=$g,Ha.Pythagorean=C0,Ha.Circular=mg;function Zp(){this.Pl=-1/0,this.tm=this.mk=null}Zp.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},Zp.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]}},Zp.className="VertexArrangement";function tp(a){Qo.call(this,a)}we(tp,Qo),tp.prototype.createVertex=function(){return new Xp(this)},tp.prototype.createEdge=function(){return new A0(this)},tp.className="CircularNetwork";function Xp(a){ks.call(this,a),this.u=this.Si=NaN}we(Xp,ks);function Ef(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Vh)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}Ze.Object.defineProperties(Xp.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)}}}),Xp.className="CircularVertex";function A0(a){Nu.call(this,a)}we(A0,Nu),A0.className="CircularEdge";function gl(a){Pa.call(this),this.ah=null,this.An=0,this.$d=new un(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}we(gl,Pa),gl.prototype.cloneProtected=function(a){Pa.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},gl.prototype.createNetwork=function(){return new vg(this)},gl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}I1(this,0,a)}this.network=y;var tt=E=x.iterator;E=this.arrangementSpacing;var rt=tt.count,at=!0;z=b=0;for(var st=ki(),ut=0;ut<rt+y.vertexes.count+2;ut++)st[ut]=null;rt=0,tt.reset();for(var ft=Xe.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),at)at=!1,b=ft.x+ft.width/2,z=ft.y+ft.height/2,st[0]=new Qt(ft.x+ft.width+E.width,ft.y),st[1]=new Qt(ft.x,ft.y+ft.height+E.height),rt=2;else{var vt=z1(st,rt,b,z,ft.width,ft.height,E),xt=st[vt],Pt=new Qt(xt.x+ft.width+E.width,xt.y),bt=new Qt(xt.x,xt.y+ft.height+E.height);for(vt+1<rt&&st.splice(vt+1,0,null),st[vt]=Pt,st[vt+1]=bt,rt++,vt=xt.x-ft.x,xt=xt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Pt=ut.value,Pt.centerX+=vt,Pt.centerY+=xt}for(Xe.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>rt?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,st[0]=new Qt(vt.x+vt.width+E.width,vt.y),st[1]=new Qt(vt.x,vt.y+vt.height+E.height),rt=2):(at=z1(st,rt,b,z,vt.width,vt.height,E),ft=st[at],xt=new Qt(ft.x+vt.width+E.width,ft.y),vt=new Qt(ft.x,ft.y+vt.height+E.height),at+1<rt&&st.splice(at+1,0,null),st[at]=xt,st[at+1]=vt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(Bi(st),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}W1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},gl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},gl.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function I1(a,y,x){if(Dx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,I1(a,y+1,x),W1(a,z),Rx(a,b),y=b.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Ix(a,y[x]);a.Zf=E}}function Dx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ox(a,y){for(var x=a.network,E=new vg(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new H1;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new Ln),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;b=rt.fromVertex,tt=rt.toVertex,b.network===E&&tt.network===E?E.Bo(rt):b.network===E?(rt=b.Hj,rt===null&&(rt=new Ln,b.Hj=rt),rt.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(rt=tt.Hj,rt===null&&(rt=new Ln,tt.Hj=rt),rt.add(b),tt.Vd--,tt.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,xe.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var at=b.Hj;if(at!==null&&0<at.count&&(tt=b.We.M(b.We.count-1).Rs-b.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 xt=z.value;if(xt.Ax(ft)===b){vt=xt;break}}vt!==null&&(st+=vt.length,rt+=ft.width*ft.height)}z=b.centerX,at=b.centerY,ut=b.width,ft=b.height,vt=b.focus,xt=ut*ft,1>xt&&(xt=1),rt=xe.sqrt((rt+xt+st*st*4/(tt*tt))/xt),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,b.bounds=new Xe(z-vt.x-tt,at-vt.y-rt,ut+2*tt,ft+2*rt),b.focus=new Qt(vt.x+tt,vt.y+rt)}}return a.network=E,x}function Rx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new Xe(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new Qt(z,tt),E.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 E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=xe.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(xt,Pt){return xt===null||Pt===null||xt===Pt?0:Pt.width*Pt.height-xt.width*xt.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=xe.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=E+ut*Math.cos(ft),at.centerY=b+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,E,b,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-E;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<b+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}gl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},gl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function j1(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,E+b<tt?a>y+z?(x=E+b-tt,a=a-y-z,xe.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,xe.sqrt(E*E+a*a)):tt-(E+b):E>tt+rt?a>y+z?(x=E-tt-rt,a=a-y-z,xe.sqrt(x*x+a*a)):a+x<y?(E=E-tt-rt,a=a+x-y,xe.sqrt(E*E+a*a)):E-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function W1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var at=rt.centerX;rt=rt.centerY,E=Math.min(E,at),b=Math.max(b,at),x=Math.min(x,rt),z=Math.max(z,rt)}(b=b-E>z-x)?y.sort(function(bt,Yt){return bt===null||Yt===null||bt===Yt?0:bt.centerX-Yt.centerX}):y.sort(function(bt,Yt){return bt===null||Yt===null||bt===Yt?0:bt.centerY-Yt.centerY}),x=a.Zf;var st=E=rt=0;for(z=0;z<y.length;z++){tt=y[z],E=tt.bounds,rt=tt.focus,at=E.x+rt.x;var ut=E.y+rt.y;E=tt.charge*a.electricalFieldX(at,ut),st=tt.charge*a.electricalFieldY(at,ut),E+=tt.mass*a.gravitationalFieldX(at,ut),st+=tt.mass*a.gravitationalFieldY(at,ut),tt.forceX+=E,tt.forceY+=st;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){E=vt.bounds,rt=vt.focus,st=E.x+rt.x;var xt=E.y+rt.y;if(at-st>x||st-at>x){if(b)break}else if(ut-xt>x||xt-ut>x){if(!b)break}else{var Pt=j1(tt,vt);1>Pt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Pt=E.random(),rt=E.random(),at>st?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Pt):at<st?(E=Math.abs(vt.bounds.x-tt.bounds.right),E=-(1+E)*Pt):(E=Math.max(vt.width,tt.width),E=(1+E)*Pt-E/2),ut>xt?(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)/(Pt*Pt),E=(st-at)/Pt*rt,st=(xt-ut)/Pt*rt),tt.forceX+=E,tt.forceY+=st,vt.forceX-=E,vt.forceY-=st}}}}for(b=a.network.edges.iterator;b.next();)rt=b.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,at=x.focus,E=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 E0),rt=ft.random(),ft=ft.random(),E=(E>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),E=(at-E)/ft*rt,st=(ut-tt)/ft*rt),x.forceX+=E,x.forceY+=st,z.forceX-=E,z.forceY-=st;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}gl.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},gl.prototype.moveFixedVertex=function(){},gl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},gl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Is,y.toSpot=Is)}},gl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Xe.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Xe.free(x)}x=Xe.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}Xe.free(x)},gl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},gl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},gl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},gl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},gl.prototype.electricalFieldX=function(){return 0},gl.prototype.electricalFieldY=function(){return 0},gl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},gl.prototype.gravitationalFieldX=function(){return 0},gl.prototype.gravitationalFieldY=function(){return 0},gl.prototype.isFixed=function(a){return a.isFixed},Ze.Object.defineProperties(gl.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"&&De('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())}}}),gl.className="ForceDirectedLayout";function H1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}H1.className="ForceDirectedSubnet";function vg(a){Qo.call(this,a)}we(vg,Qo),vg.prototype.createVertex=function(){return new Jp(this)},vg.prototype.createEdge=function(){return new Qp(this)},vg.className="ForceDirectedNetwork";function Jp(a){ks.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}we(Jp,ks),Ze.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){Nu.call(this,a),this.j=this.o=NaN}we(Qp,Nu),Ze.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 E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Mo(a){Pa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=N0,this.Qk=B0,this.bj=4,this.rk=T0,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 Qt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}we(Mo,Pa),Mo.prototype.cloneProtected=function(a){Pa.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},Mo.prototype.qb=function(a){a.classType===Mo?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:De("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},Mo.prototype.createNetwork=function(){return new np(this)},Mo.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!==qp&&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===qp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var tt=0,rt=0,at=0,st=0;if(E.link!==null){if(rt=E.link,rt===null)continue;var ut=b.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;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(E.rev){st=ft;var xt=vt;ft=at,vt=rt,at=st,rt=xt}var Pt=b.focus;st=z.focus;var bt=E.rev?z.bounds:b.bounds;xt=Qt.alloc(),ut!==ft?bt.w()&&ft.isVisible()?ft.actualBounds.w()?(Kd(ft,vt,no,xt),xt.x+=ft.actualBounds.x-bt.x,xt.y+=ft.actualBounds.y-bt.y):(Kd(ft,vt,no,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt):bt.w()?(Kd(ft,vt,no,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt),ft=E.rev?b.bounds:z.bounds,ut=Qt.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((xt.x-Pt.x)/this.kc),at=xt.x,rt=Math.round((ut.x-st.x)/this.kc),st=ut.x):(tt=Math.round((xt.y-Pt.y)/this.kc),at=xt.y,rt=Math.round((ut.y-st.y)/this.kc),st=ut.y),Qt.free(xt),Qt.free(ut),E.portFromColOffset=tt,E.portFromPos=at,E.portToColOffset=rt,E.portToPos=st}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(xt=b.layer,ut=z.layer,ft=0,bt=E.link,bt!==null){var Yt=bt.fromPort,Wt=bt.toPort;if(Yt!==null&&Wt!==null){var te=bt.fromNode;if(vt=bt.toNode,te!==null&&vt!==null){var ne=b0(this,!0),oe=b0(this,!1),me=this.setsPortSpots?ne:bt.computeSpot(!0,Yt);Pt=this.setsPortSpots?oe:bt.computeSpot(!1,Wt);var Me=bt.isOrthogonal;me.$c()&&me.Hf(oe)&&Pt.$c()&&Pt.Hf(ne)?ft=0:(ne=bt.getLinkPoint(te,Yt,me,!0,Me,vt,Wt,Qt.alloc()),oe=bt.getLinkDirection(te,Yt,ne,me,!0,Me,vt,Wt),Qt.free(ne),me.ys()||oe!==Q1(this,E,!0)?this.setsPortSpots&&te!==null&&te.ports.count===1&&E.rev&&(ft+=1):ft+=1,me=bt.getLinkPoint(vt,Wt,Pt,!1,Me,te,Yt,Qt.alloc()),bt=bt.getLinkDirection(vt,Wt,me,Pt,!1,Me,te,Yt),Qt.free(me),Pt.ys()||bt!==Q1(this,E,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&E.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Pt=a.createVertex(),Pt.node=null,Pt.Dj=1,Pt.layer=xt,Pt.near=b,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=at,b.portToPos=0,b=Pt),bt=1,ft&&bt--,xt-ut>bt&&0<xt){for(E.valid=!1,Pt=a.createVertex(),Pt.node=null,Pt.Dj=2,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=vt?0:tt,b.portToColOffset=0,b.portFromPos=vt?0:at,b.portToPos=0,b=Pt,xt--;xt-ut>bt&&0<xt;)Pt=a.createVertex(),Pt.node=null,Pt.Dj=3,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Pt,xt--;b=a.Zj(Pt,z,E.link),b.valid=!ft,ft&&(Pt.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=rt,b.portFromPos=0,b.portToPos=st}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Lf(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),Mf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Mo.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}Mo.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},Mo.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 lu(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function hh(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function G1(a,y,x){var E=Lf(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<b;tt++){var rt=0,at=E[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=E[ut];ft.near===st&&ft.Dj===st.Dj||rt++}else for(ut=tt-1;ut>at;ut--)ft=E[ut],ft.near===st&&ft.Dj===st.Dj||rt++;var vt;if(0<=x)for(at=E[tt].sourceEdgesArrayAccess,st=0;st<at.length;st++){var xt=at[st];if(xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<at.length;vt++){var Pt=at[vt];if(Pt.valid&&Pt.fromVertex.layer!==y){var bt=Pt.fromVertex.index,Yt=Pt.portToPos;Pt=Pt.portFromPos,ut<Yt&&(ft>bt||ft===bt&&xt>Pt)&&rt++,Yt<ut&&(bt>ft||bt===ft&&Pt>xt)&&rt++}}}if(0>=x){for(at=E[tt].destinationEdgesArrayAccess,st=0;st<at.length;st++)if(xt=at[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=st+1;vt<at.length;vt++)Pt=at[vt],Pt.valid&&Pt.toVertex.layer!==y&&(bt=Pt.toVertex.index,Yt=Pt.portToPos,Pt=Pt.portFromPos,xt<Pt&&(ft>bt||ft===bt&&ut>Yt)&&rt++,Pt<xt&&(bt>ft||bt===ft&&Yt>ut)&&rt++)}for(z[tt*b+tt]=rt,at=tt+1;at<b;at++){var Wt=0,te=0;if(0<=x){rt=E[tt].sourceEdgesArrayAccess;var ne=E[at].sourceEdgesArrayAccess;for(st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,xt=xt.portFromPos,vt=0;vt<ne.length;vt++)Pt=ne[vt],Pt.valid&&Pt.fromVertex.layer!==y&&(bt=Pt.fromVertex.index,Pt=Pt.portFromPos,(ft<bt||ft===bt&&xt<Pt)&&te++,(bt<ft||bt===ft&&Pt<xt)&&Wt++)}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,ne=E[at].destinationEdgesArrayAccess,st=0;st<rt.length;st++)if(xt=rt[st],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,vt=0;vt<ne.length;vt++)Pt=ne[vt],Pt.valid&&Pt.toVertex.layer!==y&&(bt=Pt.toVertex.index,Yt=Pt.portToPos,(ft<bt||ft===bt&&ut<Yt)&&te++,(bt<ft||bt===ft&&Yt<ut)&&Wt++)}z[tt*b+at]=Wt,z[at*b+tt]=te}}return Mf(a,y,E),z}Mo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=G1(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Lf(E,b),tt=E.tc[b],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!==b){var vt=ft.fromVertex.column+ft.portFromColOffset,xt=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(vt-xt)+1)*gy(ft)}}}Mf(E,b,z),y+=rt}return y}Mo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function py(a,y,x){for(var E=Lf(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[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 xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ut+=xt.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 Mf(a,y,E),z}function K1(a,y,x){for(var E=Lf(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var rt=E[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 xt=rt.fromVertex;rt.valid&&!rt.rev&&xt.layer!==y&&(ft[ut]=xt.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(Pt,bt){return Pt-bt}),st=ut>>1,z[tt]=ut&1?ft[st]:ft[st-1]+ft[st]>>1)}return Mf(a,y,E),z}function _p(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,at=rt.toVertex,st=y.layer-at.layer;rt=a.linkMinLength(rt),st===rt&&_p(a,at,x,E,b,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&&_p(a,at,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}Mo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;jx(a)!==null;){for(b=V1(a);b!==null;)E[x]=b,x--,b.valid=!1,b=V1(a);for(b=Y1(a);b!==null;)E[y]=b,y++,b.valid=!1,b=Y1(a);b=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++;(b===null||z<at-st)&&(b=rt,z=at-st)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case F0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case qp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function V1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,vy(a,b))}y.finish=a.Kn,a.Kn++}Mo.prototype.assignLayers=function(){switch(this.Zk){case xy:U1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case N0: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=Z1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function Z1(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,Z1(a,z)+b)}y.layer=x}else x=y.layer;return x}function X1(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,X1(a,z)+b)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var tt=E[z],rt=tt.fromVertex,at=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-at.layer>tt&&_p(a,rt,0,-1,!0,!1)}for(_p(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=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;b=vt.length;for(var xt=0;xt<b;xt++){var Pt=vt[xt],bt=Pt.fromVertex;ut+=1,bt.component!==1&&(z+=1,bt=bt.layer-st.layer,Pt=a.linkMinLength(Pt),E=Math.min(E,bt-Pt))}for(vt=st.destinationEdgesArrayAccess,b=vt.length,xt=0;xt<b;xt++)Pt=vt[xt].toVertex,--ut,Pt.component!==1?--z:ft=!0;(at===null||ut<rt)&&!ft&&(at=st,rt=ut)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(_p(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=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,xt=0;xt<ft;xt++)Pt=vt[xt].fromVertex,st+=1,Pt.component!==1?E+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Pt=vt[xt],bt=Pt.toVertex,--st,bt.component!==1&&(--E,bt=tt.layer-bt.layer,Pt=a.linkMinLength(Pt),b=Math.min(b,bt-Pt));(rt===null||st>z)&&!ut&&(rt=tt,z=st)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else rt.component=0}}}function Q1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Mo.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 B0: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&&_1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x)}};function _1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&_1(a,E))}function q1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&q1(a,E))}Mo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=lu(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)M0(this,E,1),Ph(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=lu(this)),E=this.Ia;0<=E;E--)M0(this,E,-1),Ph(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=lu(this))}for(hh(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)M0(this,E,0),Ph(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=lu(this)),E=this.Ia;0<=E;E--)M0(this,E,0),Ph(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=lu(this))}hh(this,y);var z,tt,rt;switch(this.rk){case Ay:break;case Ey:for(rt=a+1;(E=this.countCrossings())<rt;)for(rt=E,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,1)||z;for(b=this.countCrossings(),b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,1)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,-1)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,0)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,0)||z;b>=a?hh(this,y):(a=b,y=lu(this))}break;default:case T0:for(x=this.Ia,tt=0,rt=a+1;(E=this.countCrossings())<rt;){for(rt=E,z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,-1)||z;for(b=this.countCrossings(),b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,1)||z;for(b=this.countCrossings(),b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,1)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,-1)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ph(this,E,0)||z;for(b>=a?hh(this,y):(a=b,y=lu(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ph(this,E,0)||z;b>=a?hh(this,y):(a=b,y=lu(this))}}hh(this,y)};function M0(a,y,x){var E=Lf(a,y),b=a.tc[y],z=K1(a,y,x),tt=py(a,y,x);for(x=0;x<b;x++)tt[x]===-1&&(tt[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var rt=!0,at;rt;)for(rt=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,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=E[x],E[x]=E[x+1],E[x+1]=at);for(x=z=0;x<b;x++)at=E[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);Mf(a,y,E)}function Ph(a,y,x){var E=Lf(a,y),b=a.tc[y];x=G1(a,y,x);var z,tt=[];for(z=0;z<b;z++)tt[z]=-1;var rt=[];for(z=0;z<b;z++)rt[z]=-1;for(var at=!1,st=!0;st;)for(st=!1,z=0;z<b-1;z++){var ut=x[E[z].index*b+E[z+1].index],ft=x[E[z+1].index*b+E[z].index],vt=0,xt=0,Pt=E[z].column,bt=E[z+1].column,Yt=a.nodeMinColumnSpace(E[z],!0),Wt=a.nodeMinColumnSpace(E[z],!1),te=a.nodeMinColumnSpace(E[z+1],!0),ne=a.nodeMinColumnSpace(E[z+1],!1);Yt=Pt-Yt+te,Wt=bt-Wt+ne;var oe=E[z].sourceEdges.iterator;for(oe.reset();oe.next();)if(te=oe.value,ne=te.fromVertex,te.valid&&ne.layer===y){for(te=0;E[te]!==ne;)te++;te<z&&(vt+=2*(z-te),xt+=2*(z+1-te)),te===z+1&&(vt+=1),te>z+1&&(vt+=4*(te-z),xt+=4*(te-(z+1)))}for(oe=E[z].destinationEdges.iterator,oe.reset();oe.next();)if(te=oe.value,ne=te.toVertex,te.valid&&ne.layer===y){for(te=0;E[te]!==ne;)te++;te===z+1&&(xt+=1)}for(oe=E[z+1].sourceEdges.iterator,oe.reset();oe.next();)if(te=oe.value,ne=te.fromVertex,te.valid&&ne.layer===y){for(te=0;E[te]!==ne;)te++;te<z&&(vt+=2*(z+1-te),xt+=2*(z-te)),te===z&&(xt+=1),te>z+1&&(vt+=4*(te-(z+1)),xt+=4*(te-z))}for(oe=E[z+1].destinationEdges.iterator,oe.reset();oe.next();)if(te=oe.value,ne=te.toVertex,te.valid&&ne.layer===y){for(te=0;E[te]!==ne;)te++;te===z&&(vt+=1)}te=ne=0,oe=tt[E[z].index];var me=rt[E[z].index],Me=tt[E[z+1].index],zn=rt[E[z+1].index];oe!==-1&&(ne+=Math.abs(oe-Pt),te+=Math.abs(oe-Wt)),me!==-1&&(ne+=Math.abs(me-Pt),te+=Math.abs(me-Wt)),Me!==-1&&(ne+=Math.abs(Me-bt),te+=Math.abs(Me-Yt)),zn!==-1&&(ne+=Math.abs(zn-bt),te+=Math.abs(zn-Yt)),(xt<vt-.5||xt===vt&&ft<ut-.5||xt===vt&&ft===ut&&te<ne-.5)&&(st=at=!0,E[z].column=Wt,E[z+1].column=Yt,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return Mf(a,y,E),at}Mo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Zx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=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 Kx(this)};function ep(a,y,x){for(var E=!1;Wx(a,y,x);)E=!0;return E}function Wx(a,y,x){var E,b=Lf(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(E=0;E<z;E++)tt[E]=-1;var rt=py(a,y,1);if(0>x)for(E=0;E<z;E++)rt[E]=-1;for(var at=!1,st=!0;st;)for(st=!1,E=0;E<z;E++){var ut=b[E].column,ft=a.nodeMinColumnSpace(b[E],!0),vt=a.nodeMinColumnSpace(b[E],!1),xt=0;0>E-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?xt=ut-1:xt=ut,ft=E+1>=z||b[E+1].column-ut-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var Pt=vt=0,bt=0;if(0>=x)for(var Yt=b[E].sourceEdges.iterator;Yt.next();){var Wt=Yt.value,te=Wt.fromVertex;if(Wt.valid&&te.layer!==y){var ne=gy(Wt),oe=Wt.portFromColOffset;Wt=Wt.portToColOffset,te=te.column,vt+=(Math.abs(ut+Wt-(te+oe))+1)*ne,Pt+=(Math.abs(xt+Wt-(te+oe))+1)*ne,bt+=(Math.abs(ft+Wt-(te+oe))+1)*ne}}if(0<=x)for(Yt=b[E].destinationEdges.iterator;Yt.next();)Wt=Yt.value,te=Wt.toVertex,Wt.valid&&te.layer!==y&&(ne=gy(Wt),oe=Wt.portFromColOffset,Wt=Wt.portToColOffset,te=te.column,vt+=(Math.abs(ut+oe-(te+Wt))+1)*ne,Pt+=(Math.abs(xt+oe-(te+Wt))+1)*ne,bt+=(Math.abs(ft+oe-(te+Wt))+1)*ne);Wt=oe=ne=0,Yt=tt[b[E].index],te=rt[b[E].index],Yt!==-1&&(ne+=Math.abs(Yt-ut),oe+=Math.abs(Yt-xt),Wt+=Math.abs(Yt-ft)),te!==-1&&(ne+=Math.abs(te-ut),oe+=Math.abs(te-xt),Wt+=Math.abs(te-ft)),Pt<vt||Pt===vt&&oe<ne?(st=at=!0,b[E].column=xt):(bt<vt||bt===vt&&Wt<ne)&&(st=at=!0,b[E].column=ft)}return Mf(a,y,b),a.normalize(),at}function yy(a,y,x){var E=Lf(a,y),b=a.tc[y],z=K1(a,y,x),tt=[];for(x=0;x<b;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var rt=E[x].column,at=a.nodeMinColumnSpace(E[x],!0),st=a.nodeMinColumnSpace(E[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===b-1)ut=rt;else if(x===0){var ft=E[x+1].column;ft-rt===st+a.nodeMinColumnSpace(E[x+1],!0)?ut=rt-1:ut=rt}else x===b-1?(ft=E[x-1].column,ut=rt-ft===at+a.nodeMinColumnSpace(E[x-1],!1)?rt+1:rt):(ft=E[x-1].column,at=ft+a.nodeMinColumnSpace(E[x-1],!1)+at+1,ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=(at+st)/2|0);else x===0&&x===b-1?ut=tt[x]:x===0?(ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[x+1],!0)-st-1,ut=Math.min(tt[x],st)):x===b-1?(ft=E[x-1].column,at=ft+a.nodeMinColumnSpace(E[x-1],!1)+at+1,ut=Math.max(tt[x],at)):(ft=E[x-1].column,at=ft+a.nodeMinColumnSpace(E[x-1],!1)+at+1,ft=E[x+1].column,st=ft-a.nodeMinColumnSpace(E[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,E[x].column=ut)}Mf(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Gx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var rt=E.column-a.nodeMinColumnSpace(E,!0),at=E.column+a.nodeMinColumnSpace(E,!1);rt<=y&&at>=y&&(b[E.layer]=!0),rt<=x&&at>=x&&(z[E.layer]=!0)}for(rt=!0,x=!1,E=0;E<=a.Ia;E++)rt=rt&&!(b[E]&&z[E]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $1(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=lu(a),z=L0(a);for(E=z+1;z<E;){E=z,tx(a,x,1);var tt=L0(a);tt>z?hh(a,b):tt<z&&(z=tt,b=lu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=lu(a),z=L0(a),E=z+1;z<E;)E=z,tx(a,x,-1),tt=L0(a),tt>z?hh(a,b):tt<z&&(z=tt,b=lu(a));a.normalize()}function tx(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=at;rt++)b[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt+1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt+1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt-1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt-1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(at=tt[tt.length-1],tt.pop(),b[at])for(b[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&tt.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Kx(a){for(var y=ki(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new 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=k0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=k0(a,y,!1,!1)),E=Ye(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),at=k0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=k0(a,y,!0,!0)),Bi(y),a.u(z,tt,rt,at),a.network.vertexes.each(function(xt){var Pt=ki();st&&Pt.push(z.get(xt)),ut&&Pt.push(tt.get(xt)),ft&&Pt.push(rt.get(xt)),vt&&Pt.push(at.get(xt)),Pt.sort(function(Yt,Wt){return Yt-Wt});var bt=Pt.length;bt=(Pt[Math.floor((bt-1)/2)]+Pt[Math.ceil((bt-1)/2)])/2,Bi(Pt),xt.zc=bt})}function Vx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,tt=a[E],rt=a[E+1],at=0;z<rt.length;at++){var st=rt[at];t:{if(st.node===null){var ut=Ly(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=Ly(st)[0].index);z<=at;){if(st=rt[z],!st.bo){ft=[];for(var vt=Ye(st.sourceEdgesArrayAccess),xt=vt.next();!xt.done;xt=vt.next())xt=xt.value,xt.valid&&ft.push(xt);st.bo=ft}for(st=Ye(st.bo),ft=st.next();!ft.done;ft=st.next())ft=ft.value,vt=ft.fromVertex.index,(vt<b||vt>ut)&&y.add(ft);z++}b=ut}}}Mo.prototype.verticalAlignment=function(a,y,x){Yx(a),a=Ye(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Ye(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?Ly(z):Xx(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?D0(st,z):D0(z,st),!y.contains(ut)&&b<st.vi&&(st.align=z,z.root=st.root,z.align=st.root,b=st.vi)}}}}};function Yx(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function k0(a,y,x,E){for(var b=a.K===90||a.K===270,z=Ye(y),tt=z.next();!tt.done;tt=z.next()){var rt=Ye(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=Ye(y),rt=z.next();!rt.done;rt=z.next()){rt=Ye(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,xt=tt?ft.width:ft.height;if(x){var Pt=D0(ut,ft),bt=Pt.portFromPos,Yt=Pt.portToPos;Pt.link!==null&&(ut.node&&ut.node!==Pt.link.fromNode&&(bt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.toNode&&(Yt=tt?ft.focusX:ft.focusY))}else Pt=D0(ft,ut),bt=Pt.portToPos,Yt=Pt.portFromPos,Pt.link!==null&&(ut.node&&ut.node!==Pt.link.toNode&&(bt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.fromNode&&(Yt=tt?ft.focusX:ft.focusY));vt=E?ut.qg+(vt-bt)-(xt-Yt):ut.qg+bt-Yt,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=Ye(y),tt=x.next();!tt.done;tt=x.next())for(z=Ye(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=nx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(b?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new yi,y=Ye(y),tt=y.next();!tt.done;tt=y.next())for(x=Ye(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=b?tt.width:tt.height,a.add(tt,E?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=nx(E,x),z=b.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+tt-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&De("Could not determine previous vertex in layer"),y[x][a-1]}Mo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=ki(),b=ki(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Ux(this,y[tt],E,b,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(at){return function(st){st.value+=at.delta}}(z)));Bi(E),Bi(b)};function Ux(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var 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[b]=z,E[b]=tt,tt-z}Mo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=b0(this,!0),y=b0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function b0(a,y){return a.K===270?y?Pl:el:a.K===90?y?el:Pl:a.K===180?y?ll:Hs:y?Hs:ll}Mo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,tt=b=1/0,rt=-1/0;a.next();){var at=a.value,st=at.layer,ut=at.column|0;E?(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)&&(E?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),b=Math.min(at.y,b),E?(tt=z,rt=Math.max(rt,at.bounds.right)):(tt=b,rt=Math.max(rt,at.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-b,this.Rf=new Qt(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Mo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new Xe(0,0,x,Math.abs(this.Ta[0]))):y.push(new Xe(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new Xe(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Xe(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new Xe(0,0,Math.abs(this.Ta[0]),x)):y.push(new Xe(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new Xe(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Xe(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Mo.prototype.commitLayers=function(){},Mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,tt=E.fromPort,rt=E.toPort;if(b!==null){var at=b.findVisibleNode();at!==null&&at!==b&&(b=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===Xu&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(b,tt,st,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,at,!1,!1,b,tt),x.w()||x.set(b.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=E=!1,tt!==null&&st===ms&&(E=!0),rt!==null&&at===ms&&(x=!0),(E||x)&&(at=null,E&&(at=y.getLinkPointFromPoint(b,tt,tt.ga(no),y.i(3),!0),at.w()||at.set(b.actualBounds.center),y.L(0,at.x,at.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,rt,rt.ga(no),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,xt=!1,Pt=this.ie,bt=y.firstPickIndex+1;if(y.isOrthogonal){xt=!0;var Yt=y.pointsCount;4<Yt&&y.points.removeRange(2,Yt-3)}else if(y.curve===Xu)vt=!0,Yt=y.pointsCount,4<Yt&&y.points.removeRange(2,Yt-3),Yt===4&&(bt=2);else{Yt=y.pointsCount;var Wt=st===ms,te=at===ms;2<Yt&&Wt&&te?y.points.removeRange(1,Yt-2):3<Yt&&Wt&&!te?y.points.removeRange(1,Yt-3):3<Yt&&!Wt&&te?y.points.removeRange(2,Yt-2):4<Yt&&!Wt&&!te&&y.points.removeRange(2,Yt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var ne=Yt=null;for(Wt=ft.sourceEdges.iterator;Wt.next()&&(te=Wt.value,te.link!==x.link||(Yt=te.fromVertex,ne=te.toVertex,Yt.node!==null)););if(Yt===null)break;if(Yt!==ut){Wt=y.i(bt-1).x,te=y.i(bt-1).y;var oe=Yt.centerX,me=Yt.centerY;if(xt)this.K===180||this.K===0?bt===y.firstPickIndex+1?(y.m(bt++,Wt,te),y.m(bt++,Wt,me)):(ne!==null?ne.centerY:te)!==me&&(ne=this.Ta[Yt.layer-1]+this.Rf.x,y.m(bt++,ne,te),y.m(bt++,ne,me)):bt===y.firstPickIndex+1?(y.m(bt++,Wt,te),y.m(bt++,oe,te)):(ne!==null?ne.centerX:Wt)!==oe&&(ne=this.Ta[Yt.layer-1]+this.Rf.y,y.m(bt++,Wt,ne),y.m(bt++,oe,ne));else if(bt===y.firstPickIndex+1){ne=Math.max(10,this.he[ft.layer]);var Me=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?oe<=ft.bounds.x?(ft=ft.bounds.x,y.m(bt++,ft-ne,me),y.m(bt++,ft,me),y.m(bt++,ft+Me,me)):(y.m(bt++,oe-ne,me),y.m(bt++,oe,me),y.m(bt++,oe+Me,me)):this.K===90?me>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(bt++,oe,ft+Me),y.m(bt++,oe,ft),y.m(bt++,oe,ft-ne)):(y.m(bt++,oe,me+Me),y.m(bt++,oe,me),y.m(bt++,oe,me-ne)):this.K===270?me<=ft.bounds.y?(ft=ft.bounds.y,y.m(bt++,oe,ft-ne),y.m(bt++,oe,ft),y.m(bt++,oe,ft+Me)):(y.m(bt++,oe,me-ne),y.m(bt++,oe,me),y.m(bt++,oe,me+Me)):this.K===0&&(oe>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(bt++,ft+Me,me),y.m(bt++,ft,me),y.m(bt++,ft-ne,me)):(y.m(bt++,oe+Me,me),y.m(bt++,oe,me),y.m(bt++,oe-ne,me)));else{y.m(bt++,Wt,te);var zn=0;this.K===180||this.K===0?((this.K===180?oe>=ft.bounds.right:oe<=ft.bounds.x)&&(zn=(this.K===0?-ne:Me)/2),y.m(bt++,Wt+zn,me)):((this.K===270?me>=ft.bounds.bottom:me<=ft.bounds.y)&&(zn=(this.K===90?-ne:Me)/2),y.m(bt++,oe,te+zn)),y.m(bt++,oe,me)}}else ne=Math.max(10,this.he[Yt.layer]),Me=Math.max(10,this.Ld[Yt.layer]),vt?this.K===180?(y.m(bt++,oe-ne-Pt,me),y.m(bt++,Math.min(oe-ne+Pt/2,oe),me),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,Math.max(oe+Me-Pt/2,oe),me),y.m(bt++,oe+Me+Pt,me)):this.K===90?(y.m(bt++,oe,me+Me+Pt),y.m(bt++,oe,Math.max(me+Me-Pt/2,me)),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,oe,Math.min(me-ne+Pt/2,me)),y.m(bt++,oe,me-ne-Pt)):this.K===270?(y.m(bt++,oe,me-ne-Pt),y.m(bt++,oe,Math.min(me-ne+Pt/2,me)),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,oe,Math.max(me+Me-Pt/2,me)),y.m(bt++,oe,me+Me+Pt)):(y.m(bt++,oe+Me+Pt,me),y.m(bt++,Math.max(oe+Me-Pt/2,oe),me),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,Math.min(oe-ne+Pt/2,oe),me),y.m(bt++,oe-ne-Pt,me)):y.m(bt++,oe,me)}ft=Yt}(rt===null||st!==ms||xt)&&(Wt=y.i(bt-1).x,te=y.i(bt-1).y,oe=y.i(bt).x,me=y.i(bt).y,xt?(Pt=this.Ld[ut.layer],this.K===180||this.K===0?(xt=te,xt>=ut.bounds.y&&xt<=ut.bounds.bottom&&(this.K===180?oe>=ut.bounds.x:oe<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Pt:Pt),xt<ut.bounds.y+ut.bounds.height/2?xt=ut.bounds.y-this.kc/2:xt=ut.bounds.bottom+this.kc/2,y.m(bt++,ft,te),y.m(bt++,ft,xt)),y.m(bt++,oe,xt)):(xt=Wt,xt>=ut.bounds.x&&xt<=ut.bounds.right&&(this.K===270?me>=ut.bounds.y:me<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Pt:Pt),xt<ut.bounds.x+ut.bounds.width/2?xt=ut.bounds.x-this.kc/2:xt=ut.bounds.right+this.kc/2,y.m(bt++,Wt,ft),y.m(bt++,xt,ft)),y.m(bt++,xt,me)),y.m(bt++,oe,me)):vt?(ne=Math.max(10,this.he[ut.layer]),Me=Math.max(10,this.Ld[ut.layer]),this.K===180&&oe>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(bt-2,ft,te),y.L(bt-1,ft+Me,te)):this.K===90&&me<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(bt-2,Wt,ft),y.L(bt-1,Wt,ft-ne)):this.K===270&&me>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(bt-2,Wt,ft),y.L(bt-1,Wt,ft+Me)):this.K===0&&oe<=ut.bounds.right&&(ft=ut.bounds.x,y.L(bt-2,ft,te),y.L(bt-1,ft-ne,te))):(ne=Math.max(10,this.he[ut.layer]),Me=Math.max(10,this.Ld[ut.layer]),xt=0,this.K===180||this.K===0?((this.K===180?oe<=ut.bounds.x:oe>=ut.bounds.right)&&(xt=(this.K===0?Me:-ne)/2),y.m(bt++,oe+xt,te)):((this.K===270?me<=ut.bounds.y:me>=ut.bounds.bottom)&&(xt=(this.K===90?Me:-ne)/2),y.m(bt++,Wt,me+xt)),y.m(bt++,oe,me)))}else{for(;ut!==null&&ut!==ft;){for(ne=Yt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Wt=ut.value,Wt.link!==x.link||(Yt=Wt.toVertex,ne=Wt.fromVertex,ne.node!==null&&(ne=null),Yt.node!==null)););if(Yt===null)break;Yt!==ft&&(Wt=y.i(bt-1).x,te=y.i(bt-1).y,oe=Yt.centerX,me=Yt.centerY,xt?this.K===180||this.K===0?(ne!==null?ne.centerY:te)!==me&&(ne=this.Ta[Yt.layer]+this.Rf.x,bt===y.firstPickIndex+1&&(ne=this.K===0?Math.max(ne,Wt):Math.min(ne,Wt)),y.m(bt++,ne,te),y.m(bt++,ne,me)):(ne!==null?ne.centerX:Wt)!==oe&&(ne=this.Ta[Yt.layer]+this.Rf.y,bt===y.firstPickIndex+1&&(ne=this.K===90?Math.max(ne,te):Math.min(ne,te)),y.m(bt++,Wt,ne),y.m(bt++,oe,ne)):(ne=Math.max(10,this.he[Yt.layer]),Me=Math.max(10,this.Ld[Yt.layer]),vt?this.K===180?(y.m(bt++,oe+Me+Pt,me),y.m(bt++,Math.max(oe+Me-Pt/2,oe),me),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,Math.min(oe-ne+Pt/2,oe),me),y.m(bt++,oe-ne-Pt,me)):this.K===90?(y.m(bt++,oe,me-ne-Pt),y.m(bt++,oe,Math.min(me-ne+Pt/2,me)),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,oe,Math.max(me+Me-Pt/2,me)),y.m(bt++,oe,me+Me+Pt)):this.K===270?(y.m(bt++,oe,me+Me+Pt),y.m(bt++,oe,Math.max(me+Me-Pt/2,me)),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,oe,Math.min(me-ne+Pt/2,me)),y.m(bt++,oe,me-ne-Pt)):(y.m(bt++,oe-ne-Pt,me),y.m(bt++,Math.min(oe-ne+Pt/2,oe),me),y.m(bt++,oe,me),y.m(bt++,oe,me),y.m(bt++,Math.max(oe+Me-Pt/2,oe),me),y.m(bt++,oe+Me+Pt,me)):this.K===180?(y.m(bt++,oe+Me,me),y.m(bt++,oe-ne,me)):this.K===90?(y.m(bt++,oe,me-ne),y.m(bt++,oe,me+Me)):this.K===270?(y.m(bt++,oe,me+Me),y.m(bt++,oe,me-ne)):(y.m(bt++,oe-ne,me),y.m(bt++,oe+Me,me)))),ut=Yt}xt&&(Wt=y.i(bt-1).x,te=y.i(bt-1).y,oe=y.i(bt).x,me=y.i(bt).y,this.K===180||this.K===0?te!==me&&(ne=this.K===0?Math.min(Math.max((oe+Wt)/2,this.Ta[ft.layer]+this.Rf.x),oe):Math.max(Math.min((oe+Wt)/2,this.Ta[ft.layer]+this.Rf.x),oe),y.m(bt++,ne,te),y.m(bt++,ne,me)):Wt!==oe&&(ne=this.K===90?Math.min(Math.max((me+te)/2,this.Ta[ft.layer]+this.Rf.y),me):Math.max(Math.min((me+te)/2,this.Ta[ft.layer]+this.Rf.y),me),y.m(bt++,Wt,ne),y.m(bt++,oe,ne)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=st===ms?y.getLinkPointFromPoint(b,tt,tt.ga(no),y.i(3),!0):y.i(0),st===ms&&(st=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+st.x)/2,st.y),y.L(2,E.x,(st.y+E.y)/2)):(y.L(1,st.x,(tt.y+st.y)/2),y.L(2,(st.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(b=at===ms?y.getLinkPointFromPoint(z,rt,rt.ga(no),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ms&&(rt=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,at.x,(rt.y+at.y)/2)):(y.L(y.pointsCount-2,rt.x,(b.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+at.x)/2,at.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Mo.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 E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),tt=E.i(b+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new kf;rt.layer=Math.floor(z.y/2);var at=E.i(0),st=E.i(E.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=b,rt.link=E,b+2<E.pointsCount){at=E.i(b-1),st=E.i(b+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,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,at=z;at<b;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<b;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<b;ft++){var vt=x[ft];(at?vt.first:vt.jc)!==rt&&(ut++,rt=at?vt.first:vt.jc);var xt=vt.link;z=xt.i(vt.index),tt=xt.i(vt.index+1);var Pt=this.linkSpacing*(ut-(st-1)/2);y++,xt.uh(),xt.L(vt.index,z.x,z.y+Pt),xt.L(vt.index+1,tt.x,tt.y+Pt),xt.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),tt=E.i(b+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new kf,rt.layer=Math.floor(z.x/2),at=E.i(0),st=E.i(E.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=b,rt.link=E,b+2<E.pointsCount&&(at=E.i(b-1),st=E.i(b+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,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,at=z;at<b;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<b;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<b;ft++)vt=x[ft],(at?vt.first:vt.jc)!==rt&&(ut++,rt=at?vt.first:vt.jc),xt=vt.link,z=xt.i(vt.index),tt=xt.i(vt.index+1),Pt=this.linkSpacing*(ut-(st-1)/2),y++,xt.uh(),xt.L(vt.index,z.x+Pt,z.y),xt.L(vt.index+1,tt.x+Pt,tt.y),xt.zf()}z=b}a=E}}}},wt=Mo.prototype,wt.Vx=function(a,y){return a instanceof kf&&y instanceof kf&&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},wt.Ux=function(a,y){return a instanceof kf&&y instanceof kf&&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},wt.Js=function(a,y){return a instanceof kf&&y instanceof kf&&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},wt.B=function(a,y){return a-=y,-1<a&&1>a},wt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&De("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function Lf(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function Mf(a,y,x){a.He[a.tc[y]]=x}Ze.Object.defineProperties(Mo.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()):De("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==B0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ay&&a!==T0&&a!==Ey||(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 F0=new We(Mo,"CycleDepthFirst",0),Sy=new We(Mo,"CycleGreedy",1),qp=new We(Mo,"CycleFromLayers",2),N0=new We(Mo,"LayerOptimalLinkLength",0),xy=new We(Mo,"LayerLongestPathSink",1),wy=new We(Mo,"LayerLongestPathSource",2),B0=new We(Mo,"InitDepthFirstOut",0),Py=new We(Mo,"InitDepthFirstIn",1),Cy=new We(Mo,"InitNaive",2),Ay=new We(Mo,"AggressiveNone",0),T0=new We(Mo,"AggressiveLess",1),Ey=new We(Mo,"AggressiveMore",2),Zx=8;Mo.className="LayeredDigraphLayout",Mo.CycleDepthFirst=F0,Mo.CycleGreedy=Sy,Mo.CycleFromLayers=qp,Mo.LayerOptimalLinkLength=N0,Mo.LayerLongestPathSink=xy,Mo.LayerLongestPathSource=wy,Mo.InitDepthFirstOut=B0,Mo.InitDepthFirstIn=Py,Mo.InitNaive=Cy,Mo.AggressiveNone=Ay,Mo.AggressiveLess=T0,Mo.AggressiveMore=Ey,Mo.PackNone=0,Mo.PackExpand=1,Mo.PackStraighten=2,Mo.PackMedian=4,Mo.PackAll=15,Mo.AlignNone=0,Mo.AlignUpperLeft=1,Mo.AlignUpperRight=2,Mo.AlignLowerLeft=4,Mo.AlignLowerRight=8,Mo.AlignAll=15;function kf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}kf.className="SegInfo";function np(a){Qo.call(this,a)}we(np,Qo),np.prototype.createVertex=function(){return new ch(this)},np.prototype.createEdge=function(){return new $p(this)},np.className="LayeredDigraphNetwork";function ch(a){ks.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}we(ch,ks);function ix(a,y){return a.index-y.index}function D0(a,y){if(!a.$n){for(var x=[],E=Ye(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Ye(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;De("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Ye(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=Ye(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}ch.prototype.Cl=function(a){ks.prototype.Cl.call(this,a),this.bo=this.co=null},ch.prototype.Kl=function(a){ks.prototype.Kl.call(this,a),this.bo=this.co=null},ch.prototype.zl=function(a){ks.prototype.zl.call(this,a),this.$n=this.ao=null},ch.prototype.Jl=function(a){ks.prototype.Jl.call(this,a),this.$n=this.ao=null},Ze.Object.defineProperties(ch.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)}}}),ch.prototype.deleteDestinationEdge=ch.prototype.Jl,ch.prototype.addDestinationEdge=ch.prototype.zl,ch.prototype.deleteSourceEdge=ch.prototype.Kl,ch.prototype.addSourceEdge=ch.prototype.Cl,ch.className="LayeredDigraphVertex";function $p(a){Nu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}we($p,Nu),Ze.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){Pa.call(this),this.Ub=new pn,this.Wn=z0,this.ud=$c,this.vo=W0,this.Bq=Iy,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new un(10,10).freeze();var y=new wg(this);this.W=new Ch(y),this.Y=new Ch(y),this.ru=[],a&&Object.assign(this,a)}we(wr,Pa),wr.prototype.cloneProtected=function(a){Pa.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:De("Unknown enum value: "+a):Pa.prototype.qb.call(this,a)},wr.prototype.createNetwork=function(){return new wg(this)},wr.prototype.makeNetwork=function(a){function y(E){if(E instanceof Kn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof En){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof pe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Vi?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!==G0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof pe&&(y=a),this.path===z0&&y!==null?this.ud=y.isTreePathToChildren?$c:Sg:this.ud=this.path===z0?$c: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 Kn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Ch&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ch&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ch&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ch&&lx(this,y);if(this.Cu(),this.layerStyle===K0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ch&&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 $c:x.sourceEdges.count===0&&this.Ub.add(x);break;case Sg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:De("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case $c:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Sg:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:De("Unhandled path value "+a.ud.toString())}}return E}function My(a,y){if(y!==null){switch(a.ud){case $c:if(0<y.destinationEdges.count){for(var x=new Ln,E=y.destinationVertexes;E.next();){var b=E.value;ox(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Sg:if(0<y.sourceEdges.count){for(x=new Ln,E=y.sourceVertexes;E.next();)b=E.value,ox(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:De("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)My(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}wr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===nd&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var at=z[rt];ax(a,at),x+=at.descendantCount+1,E=Math.max(E,at.maxChildrenCount),b=Math.max(b,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function Qx(a,y){switch(a.vo){default:case W0: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 Dy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ty:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}wr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===nd){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)sx(a,y[E])}}wr.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==nd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)lx(a,y[E])}}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:De("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,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=bf(b)),y=y===90||y===270,E=E===90||E===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||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=at)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=Xe.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,Xe.free(b))};function bf(a){return a===Jd||a===nd||a===Qd||a===Cd}function tm(a){return a===Jd||a===nd}function ky(a){var y=a.parent;if(y!==null){var x=y.alignment;if(bf(x)){if(tm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Qd)return!0}}return!1}wr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=bf(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,rt=ky(a),at=0,st=a.comments,ut=st.length,ft=Qt.alloc(),vt=0;vt<ut;vt++){var xt=st[vt],Pt=xt.measuredBounds;if(E&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<b&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Pt.width,a.bounds.y+at),xt.move(ft),xt=xt.Sd();xt.next();){var bt=xt.value;bt.fromSpot=ll,bt.toSpot=Hs}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=Hs,bt.toSpot=ll;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=Hs,bt.toSpot=ll;else for(ft.h(a.bounds.x+a.commentMargin-Pt.width,a.bounds.y+at),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=ll,bt.toSpot=Hs;at=0<=a.commentSpacing?at+(Pt.height+a.commentSpacing):at+(a.commentSpacing-Pt.height)}else{if(135<b&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=Pl,bt.toSpot=el;else for(ft.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=el,bt.toSpot=Pl;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=el,bt.toSpot=Pl;else for(ft.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)bt=xt.value,bt.fromSpot=Pl,bt.toSpot=el;at=0<=a.commentSpacing?at+(Pt.width+a.commentSpacing):at+(a.commentSpacing-Pt.width)}}if(Qt.free(ft),y=at-a.commentSpacing-(E?y.height:y.width),this.ud===$c)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},wr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case j0:ux(this,a);break;case rm:if(a.alignment===nd)ux(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=bf(x)),E=ky(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=Yh(a);y=b===90||b===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)E=tt[x],z=Math.max(z,y?E.Da.width:E.Da.height);var at=a.alignment;E=at===td;var st=at===ed,ut=bf(at),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,xt=this.computeNodeIndent(a),Pt=a.rowSpacing,bt=0;(E||st||a.hm||a.im&&a.maxGenerationCount===1)&&(bt=Math.max(0,a.rowIndent)),E=a.width;var Yt=a.height,Wt=0,te=0,ne=0,oe=null,me=null,Me=0,zn=0,li=0,_n=0,An=0,an=0,Gi=0,Wi=0;if(ut&&!tm(at)&&135<b&&tt.reverse(),tm(at))if(1<rt)for(var $r=0;$r<rt;$r++)$r%2===0&&$r!==rt-1&&(Wi=Math.max(Wi,y?tt[$r].Da.width:tt[$r].Da.height));else rt===1&&(Wi=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(at){case Jd:te=135>b?hx(this,a,tt,Wi,Wt,te):cx(this,a,tt,Wi,Wt,te),Wi=te.x,Wt=te.width,te=te.height;break;case Qd:for(oe=0;oe<rt;oe++)me=tt[oe],ft=me.Da,ne=an===0?0:Pt,y?(me.S.h(z-ft.width,_n+ne),Wt=Math.max(Wt,ft.width),te=Math.max(te,_n+ne+ft.height),_n+=ne+ft.height):(me.S.h(li+ne,z-ft.height),Wt=Math.max(Wt,li+ne+ft.width),te=Math.max(te,ft.height),li+=ne+ft.width),an++;break;case Cd:for(oe=0;oe<rt;oe++)me=tt[oe],z=me.Da,ft=an===0?0:Pt,y?(me.S.h(vt/2+a.focus.x,_n+ft),Wt=Math.max(Wt,z.width),te=Math.max(te,_n+ft+z.height),_n+=ft+z.height):(me.S.h(li+ft,vt/2+a.focus.y),Wt=Math.max(Wt,li+ft+z.width),te=Math.max(te,z.height),li+=ft+z.width),an++}oe=yu(this,2),me=yu(this,2),y?(oe[0].h(0,0),oe[1].h(0,te),me[0].h(Wt,0)):(oe[0].h(0,0),oe[1].h(Wt,0),me[0].h(0,te)),me[1].h(Wt,te)}else for($r=0;$r<rt;$r++){var Zo=tt[$r],Os=Zo.Da;if(y){0<ft&&0<an&&li+vt+Os.width>ft&&(li<z&&qf(a,at,z-li,0,Gi,$r-1),An++,an=0,Gi=$r,ne=te,li=0,_n=135<b?-te-Pt:te+Pt),R0(this,Zo,0,_n);var js=0;if(an===0)oe=Zo.Yo,me=Zo.kp,Me=Os.width,zn=Os.height,(oe===null||me===null||b!==Yh(Zo))&&(oe=yu(this,2),me=yu(this,2),oe[0].h(0,0),oe[1].h(0,zn),me[0].h(Me,0),me[1].h(Me,zn));else{var jl=ki();zn=dx(this,a,Zo,oe,me,Me,zn,jl),js=zn.x,oe=jl[0],me=jl[1],Me=zn.width,zn=zn.height,Bi(jl),li<Os.width&&0>js&&(yg(a,-js,0,Gi,$r-1),I0(oe,-js,0),I0(me,-js,0),js=0)}Zo.S.h(js,_n),Wt=Math.max(Wt,Me),te=Math.max(te,ne+(An===0?0:Pt)+Os.height),li=Me}else 0<ft&&0<an&&_n+vt+Os.height>ft&&(_n<z&&qf(a,at,0,z-_n,Gi,$r-1),An++,an=0,Gi=$r,ne=Wt,_n=0,li=135<b?-Wt-Pt:Wt+Pt),R0(this,Zo,li,0),js=0,an===0?(oe=Zo.Yo,me=Zo.kp,Me=Os.width,zn=Os.height,(oe===null||me===null||b!==Yh(Zo))&&(oe=yu(this,2),me=yu(this,2),oe[0].h(0,0),oe[1].h(Me,0),me[0].h(0,zn),me[1].h(Me,zn))):(jl=ki(),zn=dx(this,a,Zo,oe,me,Me,zn,jl),js=zn.x,oe=jl[0],me=jl[1],Me=zn.width,zn=zn.height,Bi(jl),_n<Os.height&&0>js&&(yg(a,0,-js,Gi,$r-1),I0(oe,0,-js),I0(me,0,-js),js=0)),Zo.S.h(li,js),te=Math.max(te,zn),Wt=Math.max(Wt,ne+(An===0?0:Pt)+Os.width),_n=zn;an++}switch(0<An&&(y?(te+=Math.max(0,x),li<Wt&&qf(a,at,Wt-li,0,Gi,rt-1),0<bt&&(st||yg(a,bt,0,0,rt-1),Wt+=bt)):(Wt+=Math.max(0,x),_n<te&&qf(a,at,0,te-_n,Gi,rt-1),0<bt&&(st||yg(a,0,bt,0,rt-1),te+=bt))),bt=st=0,at){case rp:y?st+=Wt/2-a.focus.x-xt/2:bt+=te/2-a.focus.y-xt/2;break;case xg:0<An?y?st+=Wt/2-a.focus.x-xt/2:bt+=te/2-a.focus.y-xt/2:y?(Wi=tt[0].S.x+tt[0].la.x,st+=Wi+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-Wi)/2-a.focus.x-xt/2):(Wi=tt[0].S.y+tt[0].la.y,bt+=Wi+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-Wi)/2-a.focus.y-xt/2);break;case td:y?(st-=xt,Wt+=xt):(bt-=xt,te+=xt);break;case ed:y?(st+=Wt-a.width+xt,Wt+=xt):(bt+=te-a.height+xt,te+=xt);break;case Jd:y?1<rt?st+=Wi+vt/2-a.focus.x:st+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?bt+=Wi+vt/2-a.focus.y:bt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Qd:y?st+=Wt+vt/2-a.focus.x:bt+=te+vt/2-a.focus.y;break;case Cd:break;default:te=this.customAlignment(a,st,bt,Wt,te),st=te[0],bt=te[1],Wt=te[2],te=te[3]}for(xt=0;xt<rt;xt++)Wi=tt[xt],y?Wi.S.h(Wi.S.x+Wi.la.x-st,Wi.S.y+(135<b?(ut?-te:-Wi.Da.height)+Wi.la.y-x:Yt+x+Wi.la.y)):Wi.S.h(Wi.S.x+(135<b?(ut?-Wt:-Wi.Da.width)+Wi.la.x-x:E+x+Wi.la.x),Wi.S.y+Wi.la.y-bt);if(rt=tt=0,ut?y?(Wt=by(a,Wt,st),0>st&&(st=0),135<b&&(bt+=te+x),te+=Yt+x,at===Cd&&(tt+=vt/2+a.focus.x),rt+=Yt+x):(135<b&&(st+=Wt+x),Wt+=E+x,te=Fy(a,te,bt),0>bt&&(bt=0),at===Cd&&(rt+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Wt&&(Wt=Ny(at,E-Wt,0),tt=Wt.x,rt=Wt.y,Wt=E,st=0):Wt=by(a,Wt,st),0>st&&(tt-=st,st=0),135<b&&(bt+=te+x),te=Math.max(Math.max(te,Yt),te+Yt+x),rt+=Yt+x):(135<b&&(st+=Wt+x),Wt=Math.max(Math.max(Wt,E),Wt+E+x),a.comments===null?Yt>te&&(te=Ny(at,0,Yt-te),tt=te.x,rt=te.y,te=Yt,bt=0):te=Fy(a,te,bt),0>bt&&(rt-=bt,bt=0),tt+=E+x),0<An)b=yu(this,4),An=yu(this,4),y?(b[2].h(0,Yt+x),b[3].h(b[2].x,te),An[2].h(Wt,b[2].y),An[3].h(An[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Wt,b[2].y),An[2].h(b[2].x,te),An[3].h(b[3].x,An[2].y));else{for(b=yu(this,oe.length+2),An=yu(this,me.length+2),at=0;at<oe.length;at++)ut=oe[at],b[at+2].h(ut.x+tt,ut.y+rt);for(at=0;at<me.length;at++)ut=me[at],An[at+2].h(ut.x+tt,ut.y+rt)}y?(b[0].h(st,0),b[1].h(b[0].x,Yt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),An[0].h(st+E,0),An[1].h(An[0].x,Yt),An[2].y<An[1].y&&(An[2].x<An[0].x?An[2].assign(An[1]):An[1].assign(An[2])),An[3].y<An[2].y&&(An[3].x<An[0].x?An[3].assign(An[2]):An[2].assign(An[3])),b[2].y-=x/2,An[2].y-=x/2):(b[0].h(0,bt),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),An[0].h(0,bt+Yt),An[1].h(E,An[0].y),An[2].x<An[1].x&&(An[2].y<An[0].y?An[2].assign(An[1]):An[1].assign(An[2])),An[3].x<An[2].x&&(An[3].y<An[0].y?An[3].assign(An[2]):An[2].assign(An[3])),b[2].x-=x/2,An[2].x-=x/2),cc(this,oe),cc(this,me),a.Yo=b,a.kp=An,a.la.h(st,bt),a.Da.h(Wt,te)}break;default:De("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=bf(x));var b=ky(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=Yh(y),x=E===90||E===270;var z=0;b=y.children;for(var tt=b.length,rt=0;rt<tt;rt++){var at=b[rt];z=Math.max(z,x?at.Da.width:at.Da.height)}var st=y.alignment,ut=st===td,ft=st===ed;rt=bf(st);var vt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var xt=y.nodeSpacing,Pt=a.computeNodeIndent(y),bt=ut||ft?0:Pt/2,Yt=y.rowSpacing,Wt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Wt=Math.max(0,y.rowIndent)),ut=y.width;var te=y.height,ne=0,oe=0,me=0,Me=0,zn=0,li=0,_n=0,An=0,an=0,Gi=0;if(rt&&!tm(st)&&135<E&&b.reverse(),tm(st))if(1<tt)for(var Wi=0;Wi<tt;Wi++){var $r=b[Wi],Zo=$r.Da;Wi%2===0&&Wi!==tt-1?an=Math.max(an,(x?Zo.width:Zo.height)+a.computeBusNodeSpacing($r)-xt):Wi%2!==0&&(Gi=Math.max(Gi,(x?Zo.width:Zo.height)+a.computeBusNodeSpacing($r)-xt))}else tt===1&&(an=x?b[0].Da.width:b[0].Da.height);if(rt)switch(st){case Jd:case nd:oe=135>E?hx(a,y,b,an,ne,oe):cx(a,y,b,an,ne,oe),an=oe.x,ne=oe.width,oe=oe.height;break;case Qd:for(vt=0;vt<tt;vt++)bt=b[vt],me=bt.Da,Gi=_n===0?0:Yt,x?(bt.S.h(z-me.width,zn+Gi),ne=Math.max(ne,me.width),oe=Math.max(oe,zn+Gi+me.height),zn+=Gi+me.height):(bt.S.h(Me+Gi,z-me.height),ne=Math.max(ne,Me+Gi+me.width),oe=Math.max(oe,me.height),Me+=Gi+me.width),_n++;break;case Cd:for(z=0;z<tt;z++)vt=b[z],bt=vt.Da,me=_n===0?0:Yt,x?(vt.S.h(xt/2+y.focus.x,zn+me),ne=Math.max(ne,bt.width),oe=Math.max(oe,zn+me+bt.height),zn+=me+bt.height):(vt.S.h(Me+me,xt/2+y.focus.y),ne=Math.max(ne,Me+me+bt.width),oe=Math.max(oe,bt.height),Me+=me+bt.width),_n++}else for(Gi=0;Gi<tt;Gi++)Wi=b[Gi],$r=Wi.Da,x?(0<vt&&0<_n&&Me+xt+$r.width>vt&&(Me<z&&qf(y,st,z-Me,0,An,Gi-1),li++,_n=0,An=Gi,me=oe,Me=0,zn=135<E?-oe-Yt:oe+Yt),Zo=_n===0?bt:xt,R0(a,Wi,0,zn),Wi.S.h(Me+Zo,zn),ne=Math.max(ne,Me+Zo+$r.width),oe=Math.max(oe,me+(li===0?0:Yt)+$r.height),Me+=Zo+$r.width):(0<vt&&0<_n&&zn+xt+$r.height>vt&&(zn<z&&qf(y,st,0,z-zn,An,Gi-1),li++,_n=0,An=Gi,me=ne,zn=0,Me=135<E?-ne-Yt:ne+Yt),Zo=_n===0?bt:xt,R0(a,Wi,Me,0),Wi.S.h(Me,zn+Zo),oe=Math.max(oe,zn+Zo+$r.height),ne=Math.max(ne,me+(li===0?0:Yt)+$r.width),zn+=Zo+$r.height),_n++;switch(0<li&&(x?(oe+=Math.max(0,at),Me<ne&&qf(y,st,ne-Me,0,An,tt-1),0<Wt&&(ft||yg(y,Wt,0,0,tt-1),ne+=Wt)):(ne+=Math.max(0,at),zn<oe&&qf(y,st,0,oe-zn,An,tt-1),0<Wt&&(ft||yg(y,0,Wt,0,tt-1),oe+=Wt))),Wt=ft=0,st){case rp:x?ft+=ne/2-y.focus.x-Pt/2:Wt+=oe/2-y.focus.y-Pt/2;break;case xg:0<li?x?ft+=ne/2-y.focus.x-Pt/2:Wt+=oe/2-y.focus.y-Pt/2:x?(a=b[0].S.x+b[0].la.x,ft+=a+(b[tt-1].S.x+b[tt-1].la.x+2*b[tt-1].focus.x-a)/2-y.focus.x-Pt/2):(a=b[0].S.y+b[0].la.y,Wt+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-Pt/2);break;case td:x?(ft-=Pt,ne+=Pt):(Wt-=Pt,oe+=Pt);break;case ed:x?(ft+=ne-y.width+Pt,ne+=Pt):(Wt+=oe-y.height+Pt,oe+=Pt);break;case Jd:case nd:x?1<tt?ft+=an+xt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?Wt+=an+xt/2-y.focus.y:Wt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Qd:x?ft+=ne+xt/2-y.focus.x:Wt+=oe+xt/2-y.focus.y;break;case Cd:break;default:a=a.customAlignment(y,ft,Wt,ne,oe),ft=a[0],Wt=a[1],ne=a[2],oe=a[3]}for(a=0;a<tt;a++)Pt=b[a],x?Pt.S.h(Pt.S.x+Pt.la.x-ft,Pt.S.y+(135<E?(rt?-oe:-Pt.Da.height)+Pt.la.y-at:te+at+Pt.la.y)):Pt.S.h(Pt.S.x+(135<E?(rt?-ne:-Pt.Da.width)+Pt.la.x-at:ut+at+Pt.la.x),Pt.S.y+Pt.la.y-Wt);x?(ne=by(y,ne,ft),0>ft&&(ft=0),135<E&&(Wt+=oe+at),oe=Math.max(Math.max(oe,te),oe+te+at)):(135<E&&(ft+=ne+at),ne=Math.max(Math.max(ne,ut),ne+ut+at),oe=Fy(y,oe,Wt),0>Wt&&(Wt=0)),y.la.h(ft,Wt),y.Da.h(ne,oe)}}wr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Xe(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Xe(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,st=Yh(y)===90,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],bt=Pt.Da,Yt=ut===0?0:at;if(st){var Wt=a.computeBusNodeSpacing(Pt)-rt;Pt.S.h(E-(bt.width+Wt),vt+Yt),b=Math.max(b,bt.width+Wt),z=Math.max(z,vt+Yt+bt.height),vt+=Yt+bt.height}else Wt=a.computeBusNodeSpacing(Pt)-rt,Pt.S.h(ft+Yt,E-(bt.height+Wt)),z=Math.max(z,bt.height+Wt),b=Math.max(b,ft+Yt+bt.width),ft+=Yt+bt.width;ut++}for(ut=0,Pt=ft,xt=vt,st?(ft=E+rt,vt=0):(ft=0,vt=E+rt),bt=0;bt<tt;bt++)if(bt%2!==0){Yt=x[bt],Wt=Yt.Da;var te=ut===0?0:at;if(st){var ne=a.computeBusNodeSpacing(Yt)-rt;Yt.S.h(ft+ne,vt+te),b=Math.max(b,ft+Wt.width+ne),z=Math.max(z,vt+te+Wt.height),vt+=te+Wt.height}else ne=a.computeBusNodeSpacing(Yt)-rt,Yt.S.h(ft+te,vt+ne),b=Math.max(b,ft+te+Wt.width),z=Math.max(z,vt+Wt.height+ne),ft+=te+Wt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,st?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),st?(x.S.h(E+rt/2-x.focus.x-x.la.x,z+a),st=E+rt/2-x.focus.x-x.la.x,b=Math.max(b,st+tt.width),0>st&&(b-=st),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(E=O0(y,x.S.x,!1,E,rt))):(x.S.h(b+a,E+rt/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pt,ft)+a+tt.width),vt=E+rt/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=O0(y,x.S.y,!0,E,rt)))),new Xe(E,0,b,z)}function cx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new Xe(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Xe(E,0,b,z);for(var rt=y.nodeSpacing,at=y.rowSpacing,st=Yh(y)===270,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],bt=Pt.Da,Yt=ut===0?0:at;if(st){var Wt=a.computeBusNodeSpacing(Pt)-rt;vt-=Yt+bt.height,Pt.S.h(E-(bt.width+Wt),vt),b=Math.max(b,bt.width+Wt),z=Math.max(z,Math.abs(vt))}else Wt=a.computeBusNodeSpacing(Pt)-rt,ft-=Yt+bt.width,Pt.S.h(ft,E-(bt.height+Wt)),z=Math.max(z,bt.height+Wt),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,Pt=ft,xt=vt,st?(ft=E+rt,vt=0):(ft=0,vt=E+rt),bt=0;bt<tt;bt++)if(bt%2!==0){Yt=x[bt],Wt=Yt.Da;var te=ut===0?0:at;if(st){var ne=a.computeBusNodeSpacing(Yt)-rt;vt-=te+Wt.height,Yt.S.h(ft+ne,vt),b=Math.max(b,ft+Wt.width+ne),z=Math.max(z,Math.abs(vt))}else ne=a.computeBusNodeSpacing(Yt)-rt,ft-=te+Wt.width,Yt.S.h(ft,vt+ne),z=Math.max(z,vt+Wt.height+ne),b=Math.max(b,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(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),st?(at.S.h(E+rt/2-at.focus.x-at.la.x,-z-ut.height-a),ft=E+rt/2-at.focus.x-at.la.x,b=Math.max(b,ft+ut.width),0>ft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ut.height),0>at.S.x&&(E=O0(y,at.S.x,!1,E,rt))):(at.S.h(-b-ut.width-a,E+rt/2-at.focus.y-at.la.y),b=Math.max(b,Math.abs(Math.min(Pt,ft))+a+ut.width),vt=E+rt/2-at.focus.y-at.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>at.S.y&&(E=O0(y,at.S.y,!0,E,rt)))),y=0;y<tt;y++)rt=x[y],st?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+b,rt.S.y);return new Xe(E,0,b,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 O0(a,y,x,E,b){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function by(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 td:return a.width>y?a.width:y;case ed:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Jd:case nd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Qd:return a.width-a.focus.x+a.nodeSpacing/2+y;case Cd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(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 td:return a.height>y?a.height:y;case ed:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Jd:case nd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Qd:return a.height-a.focus.y+a.nodeSpacing/2+y;case Cd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case rp:y/=2,x/=2;break;case xg:y/=2,x/=2;break;case td:x=y=0;break;case ed:break;default:De("Unhandled alignment value "+a.toString())}return new Qt(y,x)}function qf(a,y,x,E,b,z){y=Ny(y,x,E),yg(a,y.x,y.y,b,z)}function yg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function R0(a,y,x,E){var b=y.parent;switch(a.ud){case $c:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Sg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:De("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function dx(a,y,x,E,b,z,tt,rt){var at=Yh(y),st=at===90||at===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var vt=tt,xt=x.Yo,Pt=x.kp;tt=x.Da;var bt=st?Math.max(vt,tt.height):Math.max(E,tt.width);if((xt===null||at!==Yh(x))&&(xt=yu(a,2),Pt=yu(a,2),st?(xt[0].h(0,0),xt[1].h(0,tt.height),Pt[0].h(tt.width,0),Pt[1].h(Pt[0].x,xt[1].y)):(xt[0].h(0,0),xt[1].h(tt.width,0),Pt[0].h(0,tt.height),Pt[1].h(xt[1].x,Pt[0].y))),st){if(vt=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;){z=ft[x];var Yt=xt[b];at=Yt.x,st=Yt.y,at+=E;var Wt=z;x+1<ft.length&&(Wt=ft[x+1]);var te=Yt;Yt=te.x,te=te.y,b+1<xt.length&&(te=xt[b+1],Yt=te.x,te=te.y,Yt+=E);var ne=vt;z.y===st?ne=at-z.x:z.y>st&&z.y<te?ne=at+(z.y-st)/(te-st)*(Yt-at)-z.x:st>z.y&&st<Wt.y&&(ne=at-(z.x+(st-z.y)/(Wt.y-z.y)*(Wt.x-z.x))),ne<vt&&(vt=ne),Wt.y<=z.y?x++:te<=st?b++:(Wt.y<=te&&x++,te<=Wt.y&&b++)}if(vt=E-vt,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=yu(a,y.length+x.length),E=z=at=0;z<x.length&&x[z].y<y[0].y;)st=x[z++],ut[E++].h(st.x+b,st.y);for(;at<y.length;)st=y[at++],ut[E++].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[E++].h(st.x+b,st.y);for(x=yu(a,E),at=0;at<E;at++)x[at].assign(ut[at]);cc(a,ut),E=x}if(z=Pt,at=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=yu(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].y<z[0].y;)Wt=ft[x++],ut[b++].h(Wt.x,Wt.y);for(;st<z.length;)Wt=z[st++],ut[b++].h(Wt.x+at,Wt.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[b++].h(at.x,at.y);for(z=yu(a,b),x=0;x<b;x++)z[x].assign(ut[x]);cc(a,ut),b=z}return z=Math.max(0,vt)+tt.width,tt=bt,cc(a,y),cc(a,xt),cc(a,ft),cc(a,Pt),rt[0]=E,rt[1]=b,new Xe(vt,0,z,tt)}if(E=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;)z=ft[x],Yt=xt[b],at=Yt.x,st=Yt.y,st+=vt,Wt=z,x+1<ft.length&&(Wt=ft[x+1]),te=Yt,Yt=te.x,te=te.y,b+1<xt.length&&(te=xt[b+1],Yt=te.x,te=te.y,te+=vt),ne=E,z.x===at?ne=st-z.y:z.x>at&&z.x<Yt?ne=st+(z.x-at)/(Yt-at)*(te-st)-z.y:at>z.x&&at<Wt.x&&(ne=st-(z.y+(at-z.x)/(Wt.x-z.x)*(Wt.y-z.y))),ne<E&&(E=ne),Wt.x<=z.x?x++:Yt<=at?b++:(Wt.x<=Yt&&x++,Yt<=Wt.x&&b++);if(vt-=E,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=yu(a,y.length+x.length),E=z=at=0;z<x.length&&x[z].x<y[0].x;)st=x[z++],ut[E++].h(st.x,st.y+b);for(;at<y.length;)st=y[at++],ut[E++].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[E++].h(st.x,st.y+b);for(x=yu(a,E),at=0;at<E;at++)x[at].assign(ut[at]);cc(a,ut),E=x}if(z=Pt,at=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=yu(a,ft.length+z.length),b=st=x=0;x<ft.length&&ft[x].x<z[0].x;)Wt=ft[x++],ut[b++].h(Wt.x,Wt.y);for(;st<z.length;)Wt=z[st++],ut[b++].h(Wt.x,Wt.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[b++].h(at.x,at.y);for(z=yu(a,b),x=0;x<b;x++)z[x].assign(ut[x]);cc(a,ut),b=z}return z=bt,tt=Math.max(0,vt)+tt.height,cc(a,y),cc(a,xt),cc(a,ft),cc(a,Pt),rt[0]=E,rt[1]=b,new Xe(vt,0,z,tt)}function yu(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 Qt;return a}function cc(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}wr.prototype.arrangeTrees=function(){if(this.Rb===G0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ch){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),By(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Ch&&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:De("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(By(this,b,y+b.la.x,x+b.la.y),this.Rb){case H0:x+=b.Da.height+this.$d.height;break;case Ry:y+=b.Da.width+this.$d.width;break;default:De("Unhandled arrangement value "+this.Rb.toString())}}}};function By(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var tt=y[z];By(a,tt,x+tt.S.x,E+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===K0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new Qt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Qt(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,b.push(new Xe(0,z,x,rt))):this.angle===90?(b.push(new Xe(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,b.push(new Xe(z,0,rt,x))):(b.push(new Xe(z,0,rt,x)),z+=rt)}this.commitLayers(b,E)}},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 Ch&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}wr.prototype.setPortSpots=function(a){var y=a.alignment;if(bf(y)){var x=this.ud===$c,E=Yh(a);switch(E){case 0:var b=Hs;break;case 90:b=el;break;case 180:b=ll;break;default:b=Pl}var z=a.children,tt=z.length;switch(y){case Jd:case nd: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=E===90||E===270?ll:Pl;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:at=ll;break;case 90:at=Pl;break;case 180:at=Hs;break;default:at=el}else y%2===0&&(at=E===90||E===270?Hs:el);x?(a.setsPortSpot&&(rt.fromSpot=b),a.setsChildPortSpot&&(rt.toSpot=at)):(a.setsPortSpot&&(rt.fromSpot=at),a.setsChildPortSpot&&(rt.toSpot=b))}}break;case Qd:for(E=E===90||E===270?Hs:el,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)));break;case Cd:for(E=E===90||E===270?ll:Pl,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)))}}else if(x=Yh(a),this.ud===$c){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=Hs;break;case 90:E.fromSpot=el;break;case 180:E.fromSpot=ll;break;default:E.fromSpot=Pl}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=ll;break;case 90:E.toSpot=Pl;break;case 180:E.toSpot=Hs;break;default:E.toSpot=el}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=Hs;break;case 90:E.toSpot=el;break;case 180:E.toSpot=ll;break;default:E.toSpot=Pl}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=ll;break;case 90:E.fromSpot=Pl;break;case 180:E.fromSpot=Hs;break;default:E.fromSpot=el}else E.fromSpot=a.childPortSpot}};function Yh(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=Yh(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},wr.prototype.computeNodeIndent=function(a){var y=Yh(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},Ze.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!==W0&&a!==Dy&&a!==Ty&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Iy&&a!==zy&&a!==K0||(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!==H0&&a!==Ry&&a!==G0||(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()):De("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!==j0&&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!==j0&&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 z0=new We(wr,"PathDefault",-1),$c=new We(wr,"PathDestination",0),Sg=new We(wr,"PathSource",1),ip=new We(wr,"SortingForwards",10),em=new We(wr,"SortingReverse",11),nm=new We(wr,"SortingAscending",12),im=new We(wr,"SortingDescending",13),rp=new We(wr,"AlignmentCenterSubtrees",20),xg=new We(wr,"AlignmentCenterChildren",21),td=new We(wr,"AlignmentStart",22),ed=new We(wr,"AlignmentEnd",23),Jd=new We(wr,"AlignmentBus",24),nd=new We(wr,"AlignmentBusBranching",25),Qd=new We(wr,"AlignmentTopLeftBus",26),Cd=new We(wr,"AlignmentBottomRightBus",27),j0=new We(wr,"CompactionNone",30),rm=new We(wr,"CompactionBlock",31),W0=new We(wr,"StyleLayered",40),Ty=new We(wr,"StyleLastParents",41),Dy=new We(wr,"StyleAlternating",42),Oy=new We(wr,"StyleRootOnly",43),H0=new We(wr,"ArrangementVertical",50),Ry=new We(wr,"ArrangementHorizontal",51),G0=new We(wr,"ArrangementFixedRoots",52),Iy=new We(wr,"LayerIndividual",60),zy=new We(wr,"LayerSiblings",61),K0=new We(wr,"LayerUniform",62);wr.className="TreeLayout",wr.PathDefault=z0,wr.PathDestination=$c,wr.PathSource=Sg,wr.SortingForwards=ip,wr.SortingReverse=em,wr.SortingAscending=nm,wr.SortingDescending=im,wr.AlignmentCenterSubtrees=rp,wr.AlignmentCenterChildren=xg,wr.AlignmentStart=td,wr.AlignmentEnd=ed,wr.AlignmentBus=Jd,wr.AlignmentBusBranching=nd,wr.AlignmentTopLeftBus=Qd,wr.AlignmentBottomRightBus=Cd,wr.CompactionNone=j0,wr.CompactionBlock=rm,wr.StyleLayered=W0,wr.StyleLastParents=Ty,wr.StyleAlternating=Dy,wr.StyleRootOnly=Oy,wr.ArrangementVertical=H0,wr.ArrangementHorizontal=Ry,wr.ArrangementFixedRoots=G0,wr.LayerIndividual=Iy,wr.LayerSiblings=zy,wr.LayerUniform=K0;function wg(a){Qo.call(this,a)}we(wg,Qo),wg.prototype.createVertex=function(){return new Ch(this)},wg.prototype.createEdge=function(){return new op(this)},wg.className="TreeNetwork";function Ch(a){ks.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 Qt(0,0),this.Da=new un(0,0),this.la=new Qt(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=Is,this.wr=!0,this.Dp=Is}we(Ch,ks),Ch.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)},Ze.Object.defineProperties(Ch.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)}}}),Ch.className="TreeVertex";function op(a){Nu.call(this,a),this.$t=new Qt(0,0)}we(op,Nu),op.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case $c:x=this.fromVertex,E=this.toVertex;break;case Sg:x=this.toVertex,E=this.fromVertex;break;default:De("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=Yh(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var at=a.curve===Xu,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 xt=a.i(a.pointsCount-1);z===0?(x.alignment===ed?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===td?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,at?(a.m(ut,ft.x,z),ut++,a.m(ut,E.right+tt,z),ut++,a.m(ut,E.right+tt+(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+2*(b.x-rt)/3,z),ut++,a.m(ut,E.right+tt+(b.x-rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,E.right+tt/2,ft.y),ut++),a.m(ut,E.right+tt/2,z),ut++,a.m(ut,E.right+tt+b.x-(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===ed?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===td?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,at?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.bottom+tt),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+2*(b.y-rt)/3),ut++,a.m(ut,z,E.bottom+tt+(b.y-rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,E.bottom+tt/2),ut++),a.m(ut,z,E.bottom+tt/2),ut++,a.m(ut,z,E.bottom+tt+b.y-(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===ed?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===td?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,at?(a.m(ut,ft.x,z),ut++,a.m(ut,E.left-tt,z),ut++,a.m(ut,E.left-tt+(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+2*(b.x+rt)/3,z),ut++,a.m(ut,E.left-tt+(b.x+rt),z),ut++,a.m(ut,vt.x,z)):(st&&(a.m(ut,E.left-tt/2,ft.y),ut++),a.m(ut,E.left-tt/2,z),ut++,a.m(ut,E.left-tt+b.x+(st?rt/2:rt),z),ut++,st&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===ed?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===td?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,at?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.top-tt),ut++,a.m(ut,z,E.top-tt+(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+2*(b.y+rt)/3),ut++,a.m(ut,z,E.top-tt+(b.y+rt)),ut++,a.m(ut,z,vt.y)):(st&&(a.m(ut,ft.x,E.top-tt/2),ut++),a.m(ut,z,E.top-tt/2),ut++,a.m(ut,z,E.top-tt+b.y+(st?rt/2:rt)),ut++,st&&a.m(ut,vt.x,a.i(ut-1).y))):De("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=Yh(x),y!==Yh(b)&&(tt=E.computeLayerSpacing(x),rt=x.bounds,x=b.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===Xu,b=a.isOrthogonal,E=bf(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=rt.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=rt.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=rt.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ze.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",ia.prototype.initializeStandardTools=function(){this.gb("Action",new ts,this.mouseDownTools),this.gb("Relinking",new Ur,this.mouseDownTools),this.gb("LinkReshaping",new zi,this.mouseDownTools),this.gb("Rotating",new Ta,this.mouseDownTools),this.gb("Resizing",new Ao,this.mouseDownTools),this.gb("Linking",new Vr,this.mouseMoveTools),this.gb("Dragging",new xa,this.mouseMoveTools),this.gb("DragSelecting",new ys,this.mouseMoveTools),this.gb("Panning",new Io,this.mouseMoveTools),this.gb("ContextMenu",new Da,this.mouseUpTools),this.gb("TextEditing",new _r,this.mouseUpTools),this.gb("ClickCreating",new Zs,this.mouseUpTools),this.gb("ClickSelecting",new Va,this.mouseUpTools)},Fc("Horizontal",new ym),Fc("Spot",new xm),Fc("Table",new Pm),Fc("Viewbox",new Em),Fc("TableRow",new Cm),Fc("TableColumn",new Am),Fc("Graduated",new xp),Fc("Grid",new Sp),yh.add("GraphLinksModel",zs),yh.add("TreeModel",uh);var V0=ze.go,jy={get licenseKey(){return pe.licenseKey},set licenseKey(a){pe.licenseKey=a},get version(){return pe.version},Group:Vi,EnumValue:We,List:Ln,Set:pn,Map:yi,Point:Qt,Size:un,Rect:Xe,Margin:$i,Spot:wi,Geometry:kn,PathFigure:cs,PathSegment:zr,InputEvent:Us,DiagramEvent:ju,ChangedEvent:ma,Model:fi,GraphLinksModel:Br,TreeModel:Ql,Binding:ls,Transaction:vs,UndoManager:va,CommandHandler:Vt,Tool:Nr,DraggingTool:xa,DraggingInfo:zh,DraggingOptions:ot,LinkingBaseTool:ji,LinkingTool:Vr,RelinkingTool:Ur,LinkReshapingTool:zi,ResizingTool:Ao,RotatingTool:Ta,ClickSelectingTool:Va,ActionTool:ts,ClickCreatingTool:Zs,HTMLInfo:ra,ContextMenuTool:Da,DragSelectingTool:ys,PanningTool:Io,TextEditingTool:_r,ToolManager:ia,Animation:Ce,AnimationManager:cl,AnimationTrigger:Qn,Layer:Rn,Diagram:pe,Palette:ct,Overview:pt,Brush:Co,GraphObject:se,Panel:mn,RowColumnDefinition:xs,Shape:qi,TextBlock:Jo,Picture:au,Part:Ci,Adornment:Kr,Node:Kn,Link:En,Placeholder:Ul,Layout:Pa,LayoutNetwork:Qo,LayoutVertex:ks,LayoutEdge:Nu,GridLayout:_s,PanelLayout:Ms,CircularLayout:Ha,CircularNetwork:tp,CircularVertex:Xp,CircularEdge:A0,ForceDirectedLayout:gl,ForceDirectedNetwork:vg,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:Mo,LayeredDigraphNetwork:np,LayeredDigraphVertex:ch,LayeredDigraphEdge:$p,TreeLayout:wr,TreeNetwork:wg,TreeVertex:Ch,TreeEdge:op};typeof V0=="object"&&V0.version&&Tr("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+jy.version),pe.prototype.go=jy,ze.go=jy,typeof Pn.exports=="object"&&(Pn.exports=typeof Ft.g!="undefined"?Ft.g.go:self.go)}();var Lt=typeof Ft.g!="undefined"?Ft.g.go:self.go;const ie=typeof Ft.g!="undefined"?Ft.g.go:self.go,Be=ie.Group,Ne=ie.EnumValue,Ae=ie.List,Dt=ie.Set,Jt=ie.Map,ue=ie.Point,ce=ie.Size,ye=ie.Rect,Je=ie.Margin,de=ie.Spot,It=ie.Geometry,Nt=ie.PathFigure,nt=ie.PathSegment,et=ie.InputEvent,ht=ie.DiagramEvent,lt=ie.ChangedEvent,gt=ie.Model,mt=ie.GraphLinksModel,St=ie.TreeModel,Mt=ie.Binding,zt=ie.Transaction,qt=ie.UndoManager,re=ie.CommandHandler,_t=ie.Tool,Zt=ie.DraggingTool,Pe=ie.DraggingInfo,ge=ie.LinkingBaseTool,Fe=ie.LinkingTool,He=ie.RelinkingTool,Ie=ie.LinkReshapingTool,In=ie.ResizingTool,bn=ie.RotatingTool,cn=ie.ClickSelectingTool,Xn=ie.ActionTool,$t=ie.ClickCreatingTool,jt=ie.HTMLInfo,Ee=ie.ContextMenuTool,sn=ie.DragSelectingTool,Tn=ie.PanningTool,Le=ie.TextEditingTool,gn=ie.ToolManager,$e=ie.Animation,Fn=ie.AnimationManager,ke=ie.AnimationTrigger,fe=ie.Layer,Re=ie.Diagram,dn=ie.Palette,Te=ie.Overview,Ht=ie.Brush,At=ie.GraphObject,Ct=ie.Panel,Tt=ie.RowColumnDefinition,Xt=ie.Shape,kt=ie.TextBlock,ee=ie.TextBlockMetrics,rn=ie.Picture,on=ie.Part,Un=ie.Adornment,en=ie.Node,Mn=ie.Link,Ke=ie.Placeholder,jn=ie.Layout,ni=ie.LayoutNetwork,Oi=ie.LayoutVertex,$n=ie.LayoutEdge,Ai=ie.GridLayout,Ki=ie.PanelLayout,ii=ie.CircularLayout,mi=ie.CircularNetwork,di=ie.CircularVertex,gi=ie.CircularEdge,hr=ie.ForceDirectedLayout,Or=ie.ForceDirectedNetwork,sr=ie.ForceDirectedVertex,Di=ie.ForceDirectedEdge,jr=ie.LayeredDigraphLayout,ao=ie.LayeredDigraphNetwork,fa=ie.LayeredDigraphVertex,_o=ie.LayeredDigraphEdge,ta=ie.TreeLayout,Ga=ie.TreeNetwork,zo=ie.TreeVertex,gr=ie.TreeEdge,vn=ie.version},15979:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{hP:function(){return Te}});var Lt=function(Ht,At){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,Tt){Ct.__proto__=Tt}||function(Ct,Tt){for(var Xt in Tt)Object.prototype.hasOwnProperty.call(Tt,Xt)&&(Ct[Xt]=Tt[Xt])})(Ht,At)};function ie(Ht,At){function Ct(){this.constructor=Ht}Lt(Ht,At),Ht.prototype=At===null?Object.create(At):(Ct.prototype=At.prototype,new Ct)}function Be(Ht,At,Ct,Tt){return new(Ct||(Ct=Promise))(function(Xt,kt){function ee(Un){try{on(Tt.next(Un))}catch(en){kt(en)}}function rn(Un){try{on(Tt.throw(Un))}catch(en){kt(en)}}function on(Un){var en;Un.done?Xt(Un.value):(en=Un.value,en instanceof Ct?en:new Ct(function(Mn){Mn(en)})).then(ee,rn)}on((Tt=Tt.apply(Ht,At||[])).next())})}function Ne(Ht,At){var Ct,Tt,Xt,kt,ee={label:0,sent:function(){if(1&Xt[0])throw Xt[1];return Xt[1]},trys:[],ops:[]};return kt={next:rn(0),throw:rn(1),return:rn(2)},typeof Symbol=="function"&&(kt[Symbol.iterator]=function(){return this}),kt;function rn(on){return function(Un){return function(en){if(Ct)throw new TypeError("Generator is already executing.");for(;ee;)try{if(Ct=1,Tt&&(Xt=2&en[0]?Tt.return:en[0]?Tt.throw||((Xt=Tt.return)&&Xt.call(Tt),0):Tt.next)&&!(Xt=Xt.call(Tt,en[1])).done)return Xt;switch(Tt=0,Xt&&(en=[2&en[0],Xt.value]),en[0]){case 0:case 1:Xt=en;break;case 4:return ee.label++,{value:en[1],done:!1};case 5:ee.label++,Tt=en[1],en=[0];continue;case 7:en=ee.ops.pop(),ee.trys.pop();continue;default:if(Xt=ee.trys,!((Xt=Xt.length>0&&Xt[Xt.length-1])||en[0]!==6&&en[0]!==2)){ee=0;continue}if(en[0]===3&&(!Xt||en[1]>Xt[0]&&en[1]<Xt[3])){ee.label=en[1];break}if(en[0]===6&&ee.label<Xt[1]){ee.label=Xt[1],Xt=en;break}if(Xt&&ee.label<Xt[2]){ee.label=Xt[2],ee.ops.push(en);break}Xt[2]&&ee.ops.pop(),ee.trys.pop();continue}en=At.call(Ht,ee)}catch(Mn){en=[6,Mn],Tt=0}finally{Ct=Xt=0}if(5&en[0])throw en[1];return{value:en[0]?en[1]:void 0,done:!0}}([on,Un])}}}function Ae(){for(var Ht=0,At=0,Ct=arguments.length;At<Ct;At++)Ht+=arguments[At].length;var Tt=Array(Ht),Xt=0;for(At=0;At<Ct;At++)for(var kt=arguments[At],ee=0,rn=kt.length;ee<rn;ee++,Xt++)Tt[Xt]=kt[ee];return Tt}var Dt=function(){function Ht(){}return Ht.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ht.setAttributes=function(At,Ct){for(var Tt=0,Xt=Ct;Tt<Xt.length;Tt++){var kt=Xt[Tt],ee=kt[0],rn=kt[1];At.setAttribute(ee,rn)}},Ht.createRect=function(At,Ct,Tt){var Xt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Xt.setAttribute("width",At.toString()),Xt.setAttribute("height",Ct.toString()),Tt&&Ht.setAttributes(Xt,Tt),Xt},Ht.createLine=function(At,Ct,Tt,Xt,kt){var ee=document.createElementNS("http://www.w3.org/2000/svg","line");return ee.setAttribute("x1",At.toString()),ee.setAttribute("y1",Ct.toString()),ee.setAttribute("x2",Tt.toString()),ee.setAttribute("y2",Xt.toString()),kt&&Ht.setAttributes(ee,kt),ee},Ht.createPolygon=function(At,Ct){var Tt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Tt.setAttribute("points",At),Ct&&Ht.setAttributes(Tt,Ct),Tt},Ht.createCircle=function(At,Ct){var Tt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Tt.setAttribute("cx",(At/2).toString()),Tt.setAttribute("cy",(At/2).toString()),Tt.setAttribute("r",At.toString()),Ct&&Ht.setAttributes(Tt,Ct),Tt},Ht.createEllipse=function(At,Ct,Tt){var Xt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Xt.setAttribute("cx",(At/2).toString()),Xt.setAttribute("cy",(Ct/2).toString()),Xt.setAttribute("rx",(At/2).toString()),Xt.setAttribute("ry",(Ct/2).toString()),Tt&&Ht.setAttributes(Xt,Tt),Xt},Ht.createGroup=function(At){var Ct=document.createElementNS("http://www.w3.org/2000/svg","g");return At&&Ht.setAttributes(Ct,At),Ct},Ht.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ht.createMarker=function(At,Ct,Tt,Xt,kt,ee,rn){var on=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ht.setAttributes(on,[["id",At],["orient",Ct],["markerWidth",Tt.toString()],["markerHeight",Xt.toString()],["refX",kt.toString()],["refY",ee.toString()]]),on.appendChild(rn),on},Ht.createText=function(At){var Ct=document.createElementNS("http://www.w3.org/2000/svg","text");return Ct.setAttribute("x","0"),Ct.setAttribute("y","0"),At&&Ht.setAttributes(Ct,At),Ct},Ht.createTSpan=function(At,Ct){var Tt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Tt.textContent=At,Ct&&Ht.setAttributes(Tt,Ct),Tt},Ht.createImage=function(At){var Ct=document.createElementNS("http://www.w3.org/2000/svg","image");return At&&Ht.setAttributes(Ct,At),Ct},Ht.createPoint=function(At,Ct){var Tt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Tt.x=At,Tt.y=Ct,Tt},Ht.createPath=function(At,Ct){var Tt=document.createElementNS("http://www.w3.org/2000/svg","path");return Tt.setAttribute("d",At),Ct&&Ht.setAttributes(Tt,Ct),Tt},Ht}(),Jt=function(){function Ht(){}return Ht.addKey=function(At){Ht.key=At},Object.defineProperty(Ht,"isLicensed",{get:function(){return!!Ht.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ht.key)},enumerable:!1,configurable:!0}),Ht}(),ue=function(){function Ht(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ht.prototype.rasterize=function(At,Ct,Tt){var Xt=this;return new Promise(function(kt){var ee=Tt!==void 0?Tt:document.createElement("canvas");At===null&&(Xt.markersOnly=!0,Xt.naturalSize=!1);var rn=document.createElementNS("http://www.w3.org/2000/svg","svg");rn.setAttribute("xmlns","http://www.w3.org/2000/svg"),rn.setAttribute("width",Ct.width.baseVal.valueAsString),rn.setAttribute("height",Ct.height.baseVal.valueAsString),rn.setAttribute("viewBox","0 0 "+Ct.viewBox.baseVal.width.toString()+" "+Ct.viewBox.baseVal.height.toString()),rn.innerHTML=Ct.innerHTML,Xt.naturalSize===!0?(rn.width.baseVal.value=At.naturalWidth,rn.height.baseVal.value=At.naturalHeight):Xt.width!==void 0&&Xt.height!==void 0&&(rn.width.baseVal.value=Xt.width,rn.height.baseVal.value=Xt.height),ee.width=rn.width.baseVal.value,ee.height=rn.height.baseVal.value;var on=rn.outerHTML,Un=ee.getContext("2d");Xt.markersOnly!==!0&&Un.drawImage(At,0,0,ee.width,ee.height);var en=window.URL,Mn=new Image(ee.width,ee.height);Mn.setAttribute("crossOrigin","anonymous");var Ke=new Blob([on],{type:"image/svg+xml"}),jn=en.createObjectURL(Ke);Mn.onload=function(){Un.drawImage(Mn,0,0),en.revokeObjectURL(jn);var ni=ee.toDataURL(Xt.imageType,Xt.imageQuality);kt(ni)},Mn.src=jn})},Ht}(),ce=function(){},ye=function(){function Ht(At){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+At+"_"}return Object.defineProperty(Ht.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.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(Ht.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ht.prototype.addClass=function(At){return this.styleSheet===void 0&&this.addStyleSheet(),At.name=""+this.classNamePrefix+At.localName,this.classes.push(At),this.styleSheet.sheet.insertRule("."+At.name+" {"+At.style+"}",this.styleSheet.sheet.cssRules.length),At},Ht.prototype.addRule=function(At){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(At),this.styleSheet.sheet.insertRule(At.selector+" {"+At.style+"}",this.styleSheet.sheet.cssRules.length)},Ht.prototype.addStyleSheet=function(){var At;this.styleSheet=document.createElement("style"),((At=this.styleSheetRoot)!==null&&At!==void 0?At:document.head).appendChild(this.styleSheet),this.addRule(new Je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new de("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new de("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Ht.prototype.removeStyleSheet=function(){var At;this.styleSheet&&(((At=this.styleSheetRoot)!==null&&At!==void 0?At:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ht}(),Je=function(Ht,At){this.selector=Ht,this.style=At},de=function(Ht,At){this.localName=Ht,this.style=At},It=function(){function Ht(At,Ct,Tt,Xt,kt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=At,this.displayMode=Ct,this.markerItems=Tt,this.uiStyleSettings=Xt,this.styles=kt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ht.prototype.show=function(At){var Ct=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=At,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Tt=document.createElement("div");Tt.className=this.toolbarBlockStyleClass.name,Tt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Tt),this.addActionButton(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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(Tt,'<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 ee=document.createElement("div");ee.className=""+Ct.toolbarButtonStyleClass.name,ee.setAttribute("data-type-name",kt.typeName),ee.innerHTML=kt.icon,ee.addEventListener("click",function(){Ct.markerToolbarButtonClicked(ee,kt)}),Ct.buttons.push(ee),Ct.markerButtons.push(ee)}),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 Xt=document.createElement("div");Xt.className=this.toolbarBlockStyleClass.name,Xt.style.whiteSpace="nowrap",Xt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Xt),this.addActionButton(Xt,'<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(Xt,'<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()},Ht.prototype.addButtonClickListener=function(At){this.buttonClickListeners.push(At)},Ht.prototype.removeButtonClickListener=function(At){this.buttonClickListeners.indexOf(At)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(At),1)},Ht.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ht.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var At=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Ct=0;Ct<this.markerButtons.length;Ct++)Ct<At||Ct===At&&this.markerButtons.length-1===At?this.markerButtonBlock.appendChild(this.markerButtons[Ct]):(Ct===At&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Ct]))}},Ht.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")},Ht.prototype.resetButtonStyles=function(){var At=this;this.buttons.forEach(function(Ct){Ct.className=Ct.className.replace(At.uiStyleSettings.toolbarButtonStyleColorsClassName?At.uiStyleSettings.toolbarButtonStyleColorsClassName:At.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className=Ct.className.replace(At.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?At.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:At.toolbarActiveButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(At.uiStyleSettings.toolbarButtonStyleColorsClassName?At.uiStyleSettings.toolbarButtonStyleColorsClassName:At.toolbarButtonStyleColorsClass.name)})},Ht.prototype.addActionButton=function(At,Ct,Tt){var Xt=this,kt=document.createElement("div");switch(kt.className=""+this.toolbarButtonStyleClass.name,kt.innerHTML=Ct,kt.setAttribute("data-action",Tt),kt.addEventListener("click",function(){Xt.actionToolbarButtonClicked(kt,Tt)}),Tt){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}At.appendChild(kt),this.buttons.push(kt)},Ht.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new de("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 de("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new de("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new de("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 de("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var At=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new de("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*At)+`px;
|
|
padding: `+At+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new de("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Ht.prototype.markerToolbarButtonClicked=function(At,Ct){this.setActiveButton(At),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("marker",Ct)}),this.markerButtonOverflowBlock.style.display="none"},Ht.prototype.actionToolbarButtonClicked=function(At,Ct){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Tt){return Tt("action",Ct)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ht.prototype.setActiveButton=function(At){this.resetButtonStyles(),At.className=At.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),At.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ht.prototype.setActiveMarkerButton=function(At){var Ct=this.markerButtons.find(function(Tt){return Tt.getAttribute("data-type-name")===At});Ct&&this.setActiveButton(Ct)},Ht.prototype.setCurrentMarker=function(At){var Ct=this;this.currentMarker=At,this.buttons.filter(function(Tt){return/delete|notes/.test(Tt.getAttribute("data-action"))}).forEach(function(Tt){Ct.currentMarker===void 0?(Tt.style.fillOpacity="0.4",Tt.style.pointerEvents="none"):(Tt.style.fillOpacity="1",Tt.style.pointerEvents="all")})},Ht}(),Nt=function(){function Ht(At,Ct,Tt,Xt){this.panels=[],this.panelButtons=[],this.markerjsContainer=At,this.displayMode=Ct,this.uiStyleSettings=Tt,this.styles=Xt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ht.prototype.addStyles=function(){var At;this.toolboxStyleClass=this.styles.addClass(new de("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 de("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new de("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new de("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new de("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 de("toolbox-panel-row_colors",`
|
|
background-color: `+((At=this.uiStyleSettings.toolboxBackgroundColor)!==null&&At!==void 0?At:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new de("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
padding: `+Ct+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new de("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Ht.prototype.show=function(At){var Ct;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=At,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ht.prototype.setPanelButtons=function(At){var Ct,Tt,Xt=this;this.panels=At,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Ct=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Ct!==void 0?Ct:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Tt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Tt!==void 0?Tt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(kt){var ee;kt.uiStyleSettings=Xt.uiStyleSettings;var rn=document.createElement("div");rn.className=Xt.toolboxButtonStyleClass.name+" "+((ee=Xt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ee!==void 0?ee:Xt.toolboxButtonStyleColorsClass.name),rn.innerHTML=kt.icon,rn.title=kt.title,rn.addEventListener("click",function(){Xt.panelButtonClick(kt)}),Xt.panelButtons.push(rn),Xt.buttonRow.appendChild(rn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ht.prototype.panelButtonClick=function(At){var Ct=this,Tt=-1;if(At!==this.activePanel){Tt=this.panels.indexOf(At),this.panelRow.innerHTML="";var Xt=At.getUi();Xt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Xt),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=At}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Ct.displayMode==="inline"?Ct.panelRow.style.display="none":Ct.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(kt,ee){var rn,on;kt.className=Ct.toolboxButtonStyleClass.name+" "+(ee===Tt?""+((rn=Ct.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&rn!==void 0?rn:Ct.toolboxActiveButtonStyleColorsClass.name):""+((on=Ct.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&on!==void 0?on:Ct.toolboxButtonStyleColorsClass.name))})},Ht}(),nt=function(Ht,At){this.title=Ht,this.icon=At},et=function(Ht){function At(Ct,Tt,Xt,kt){var ee=Ht.call(this,Ct,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 ee.colors=[],ee.addTransparent=!1,ee.colorBoxes=[],ee.colors=Tt,ee.currentColor=Xt,ee.setCurrentColor=ee.setCurrentColor.bind(ee),ee.getColorBox=ee.getColorBox.bind(ee),ee}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.whiteSpace="nowrap",this.colors.forEach(function(Xt){var kt=Ct.getColorBox(Xt);Tt.appendChild(kt),Ct.colorBoxes.push(kt)}),Tt},At.prototype.getColorBox=function(Ct){var Tt=this,Xt=this.uiStyleSettings.toolbarHeight/4,kt=this.uiStyleSettings.toolbarHeight-Xt,ee=document.createElement("div");ee.style.display="inline-block",ee.style.boxSizing="content-box",ee.style.width=kt-2+"px",ee.style.height=kt-2+"px",ee.style.padding="1px",ee.style.marginRight="2px",ee.style.marginBottom="2px",ee.style.borderWidth="2px",ee.style.borderStyle="solid",ee.style.borderRadius=(kt+2)/2+"px",ee.style.borderColor=Ct===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ee.addEventListener("click",function(){Tt.setCurrentColor(Ct,ee)});var rn=document.createElement("div");return rn.style.display="inline-block",rn.style.width=kt-2+"px",rn.style.height=kt-2+"px",rn.style.backgroundColor=Ct,rn.style.borderRadius=kt/2+"px",Ct==="transparent"&&(rn.style.fill=this.uiStyleSettings.toolboxAccentColor,rn.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>`),ee.appendChild(rn),ee},At.prototype.setCurrentColor=function(Ct,Tt){var Xt=this;this.currentColor=Ct,this.colorBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Ct)},At}(nt),ht=function(){function Ht(At,Ct,Tt){this._state="new",this._isSelected=!1,this._container=At,this._overlayContainer=Ct,this.globalSettings=Tt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ht.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ht.prototype.ownsTarget=function(At){return!1},Object.defineProperty(Ht.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ht.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ht.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ht.prototype.pointerDown=function(At,Ct){},Ht.prototype.dblClick=function(At,Ct){},Ht.prototype.manipulate=function(At){},Ht.prototype.pointerUp=function(At){this.stateChanged()},Ht.prototype.dispose=function(){},Ht.prototype.addMarkerVisualToContainer=function(At){this.container.childNodes.length>0?this.container.insertBefore(At,this.container.childNodes[0]):this.container.appendChild(At)},Ht.prototype.getState=function(){return{typeName:Ht.typeName,state:this.state,notes:this.notes}},Ht.prototype.restoreState=function(At){this._state=At.state,this.notes=At.notes},Ht.prototype.scale=function(At,Ct){},Ht.prototype.colorChanged=function(At){this.onColorChanged&&this.onColorChanged(At),this.stateChanged()},Ht.prototype.fillColorChanged=function(At){this.onFillColorChanged&&this.onFillColorChanged(At),this.stateChanged()},Ht.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var At=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),At.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(At)&&this.onStateChanged(this)}},Ht.typeName="MarkerBase",Ht}(),lt=function(){function Ht(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ht.prototype.findGripByVisual=function(At){return this.topLeft.ownsTarget(At)?this.topLeft:this.topCenter.ownsTarget(At)?this.topCenter:this.topRight.ownsTarget(At)?this.topRight:this.centerLeft.ownsTarget(At)?this.centerLeft:this.centerRight.ownsTarget(At)?this.centerRight:this.bottomLeft.ownsTarget(At)?this.bottomLeft:this.bottomCenter.ownsTarget(At)?this.bottomCenter:this.bottomRight.ownsTarget(At)?this.bottomRight:void 0},Ht}(),gt=function(){function Ht(){this.GRIP_SIZE=10,this.visual=Dt.createGroup(),this.visual.appendChild(Dt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Dt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ht.prototype.ownsTarget=function(At){return At===this.visual||At===this.visual.childNodes[0]||At===this.visual.childNodes[1]},Ht}(),mt=function(){function Ht(){}return Ht.toITransformMatrix=function(At){return{a:At.a,b:At.b,c:At.c,d:At.d,e:At.e,f:At.f}},Ht.toSVGMatrix=function(At,Ct){return At.a=Ct.a,At.b=Ct.b,At.c=Ct.c,At.d=Ct.d,At.e=Ct.e,At.f=Ct.f,At},Ht}(),St=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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(Dt.createTransform()),kt.setupControlBox(),kt}return ie(At,Ht),Object.defineProperty(At.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(At.prototype,"visual",{get:function(){return this._visual},set:function(Ct){this._visual=Ct;var Tt=Dt.createTransform();this._visual.transform.baseVal.appendItem(Tt)},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(Ct){return!!Ht.prototype.ownsTarget.call(this,Ct)||!!(this.controlGrips.findGripByVisual(Ct)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ct))},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="new"&&(this.left=Ct.x,this.top=Ct.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Xt=this.unrotatePoint(Ct);if(this.manipulationStartX=Xt.x,this.manipulationStartY=Xt.y,this.offsetX=Xt.x-this.left,this.offsetY=Xt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Tt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Tt)){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 ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},At.prototype.pointerUp=function(Ct){var Tt=this.state;Ht.prototype.pointerUp.call(this,Ct),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(Ct),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},At.prototype.moveVisual=function(Ct){this.visual.style.transform="translate("+Ct.x+"px, "+Ct.y+"px)"},At.prototype.manipulate=function(Ct){var Tt=this.unrotatePoint(Ct);this.state==="creating"?this.resize(Ct):this.state==="move"?(this.left=this.manipulationStartLeft+(Tt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Tt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Tt):this.state==="rotate"&&this.rotate(Ct)},At.prototype.resize=function(Ct){var Tt=this.manipulationStartLeft,Xt=this.manipulationStartWidth,kt=this.manipulationStartTop,ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Tt=this.manipulationStartLeft+Ct.x-this.manipulationStartX,Xt=this.manipulationStartWidth+this.manipulationStartLeft-Tt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Xt=this.manipulationStartWidth+Ct.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:kt=this.manipulationStartTop+Ct.y-this.manipulationStartY,ee=this.manipulationStartHeight+this.manipulationStartTop-kt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ee=this.manipulationStartHeight+Ct.y-this.manipulationStartY}Xt>=0?(this.left=Tt,this.width=Xt):(this.left=Tt+Xt,this.width=-Xt),ee>=0?(this.top=kt,this.height=ee):(this.top=kt+ee,this.height=-ee),this.setSize()},At.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},At.prototype.rotate=function(Ct){if(Math.abs(Ct.x-this.centerX)>.1){var Tt=Math.sign(Ct.x-this.centerX);this.rotationAngle=180*Math.atan((Ct.y-this.centerY)/(Ct.x-this.centerX))/Math.PI+90*Tt,this.applyRotation()}},At.prototype.applyRotation=function(){var Ct=this.container.transform.baseVal.getItem(0);Ct.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ct,0)},At.prototype.rotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var Tt=this.container.getCTM(),Xt=Dt.createPoint(Ct.x,Ct.y);return{x:(Xt=Xt.matrixTransform(Tt)).x,y:Xt.y}},At.prototype.unrotatePoint=function(Ct){if(this.rotationAngle===0)return Ct;var Tt=this.container.getCTM();Tt=Tt.inverse();var Xt=Dt.createPoint(Ct.x,Ct.y);return{x:(Xt=Xt.matrixTransform(Tt)).x,y:Xt.y}},At.prototype.select=function(){Ht.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Ht.prototype.deselect.call(this),this.controlBox.style.display="none"},At.prototype.setupControlBox=function(){this.controlBox=Dt.createGroup();var Ct=Dt.createTransform();Ct.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Ct),this.container.appendChild(this.controlBox),this.controlRect=Dt.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=Dt.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"},At.prototype.adjustControlBox=function(){var Ct=this.controlBox.transform.baseVal.getItem(0);Ct.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Ct,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()},At.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()},At.prototype.createGrip=function(){var Ct=new gt;return Ct.visual.transform.baseVal.appendItem(Dt.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},At.prototype.positionGrips=function(){var Ct=this.controlGrips.topLeft.GRIP_SIZE,Tt=-Ct/2,Xt=Tt,kt=(this.width+this.CB_DISTANCE)/2-Ct/2,ee=(this.height+this.CB_DISTANCE)/2-Ct/2,rn=this.height+this.CB_DISTANCE-Ct/2,on=this.width+this.CB_DISTANCE-Ct/2;this.positionGrip(this.controlGrips.topLeft.visual,Tt,Xt),this.positionGrip(this.controlGrips.topCenter.visual,kt,Xt),this.positionGrip(this.controlGrips.topRight.visual,on,Xt),this.positionGrip(this.controlGrips.centerLeft.visual,Tt,ee),this.positionGrip(this.controlGrips.centerRight.visual,on,ee),this.positionGrip(this.controlGrips.bottomLeft.visual,Tt,rn),this.positionGrip(this.controlGrips.bottomCenter.visual,kt,rn),this.positionGrip(this.controlGrips.bottomRight.visual,on,rn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,kt,Xt-3*this.CB_DISTANCE)},At.prototype.positionGrip=function(Ct,Tt,Xt){var kt=Ct.transform.baseVal.getItem(0);kt.setTranslate(Tt,Xt),Ct.transform.baseVal.replaceItem(kt,0)},At.prototype.hideControlBox=function(){this.controlBox.style.display="none"},At.prototype.showControlBox=function(){this.controlBox.style.display=""},At.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)},Ht.prototype.getState.call(this))},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct);var Tt=Ct;this.left=Tt.left,this.top=Tt.top,this.width=Tt.width,this.height=Tt.height,this.rotationAngle=Tt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Tt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(mt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Tt.containerTransformMatrix))},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt);var Xt=this.rotatePoint({x:this.left,y:this.top}),kt=this.unrotatePoint({x:Xt.x*Ct,y:Xt.y*Tt});this.left=kt.x,this.top=kt.y,this.width=this.width*Ct,this.height=this.height*Tt,this.adjustControlBox()},At}(ht),Mt=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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 ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},At.prototype.createVisual=function(){this.visual=Dt.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)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},At.prototype.manipulate=function(Ct){Ht.prototype.manipulate.call(this,Ct)},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),this.setSize()},At.prototype.setSize=function(){Ht.prototype.setSize.call(this),Dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},At.prototype.pointerUp=function(Ct){Ht.prototype.pointerUp.call(this,Ct),this.setSize()},At.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},At.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&Dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},At.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},At.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ht.prototype.getState.call(this))},At.prototype.restoreState=function(Ct){var Tt=Ct;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),Ht.prototype.restoreState.call(this,Ct),this.setSize()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.setSize()},At.title="Rectangle marker",At}(St),zt=function(Ht){function At(Ct,Tt,Xt,kt){var ee=Ht.call(this,Ct,kt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ee.widths=[],ee.widthBoxes=[],ee.widths=Tt,ee.currentWidth=Xt,ee.setCurrentWidth=ee.setCurrentWidth.bind(ee),ee}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.widths.forEach(function(Xt){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=Xt===Ct.currentWidth?Ct.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){Ct.setCurrentWidth(Xt,kt)}),Tt.appendChild(kt);var ee=document.createElement("div");ee.innerText=Xt.toString(),ee.style.marginRight="5px",kt.appendChild(ee);var rn=document.createElement("div");rn.style.minHeight="20px",rn.style.flexGrow="2",rn.style.display="flex",rn.style.alignItems="center";var on=document.createElement("hr");on.style.minWidth="20px",on.style.border="0px",on.style.borderTop=Xt+"px solid "+Ct.uiStyleSettings.toolboxColor,on.style.flexGrow="2",rn.appendChild(on),kt.appendChild(rn),Ct.widthBoxes.push(kt)}),Tt},At.prototype.setCurrentWidth=function(Ct,Tt){var Xt=this;this.currentWidth=Ct,this.widthBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},At}(nt),qt=function(Ht){function At(Ct,Tt,Xt,kt){var ee=Ht.call(this,Ct,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 ee.styles=[],ee.styleBoxes=[],ee.styles=Tt,ee.currentStyle=Xt,ee.setCurrentStyle=ee.setCurrentStyle.bind(ee),ee}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.styles.forEach(function(Xt){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/Ct.styles.length-5+"%",kt.style.borderColor=Xt===Ct.currentStyle?Ct.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){Ct.setCurrentStyle(Xt,kt)}),Tt.appendChild(kt);var ee=document.createElement("div");ee.style.minHeight="20px",ee.style.flexGrow="2",ee.style.overflow="hidden";var rn=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Ct.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Xt!==""?'stroke-dasharray="'+Xt+'"':"")+` />
|
|
</svg>`;ee.innerHTML=rn,kt.appendChild(ee),Ct.styleBoxes.push(kt)}),Tt},At.prototype.setCurrentStyle=function(Ct,Tt){var Xt=this;this.currentStyle=Ct,this.styleBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},At}(nt),re=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.strokeColor=Xt.defaultColor,kt.strokeWidth=Xt.defaultStrokeWidth,kt.strokeDasharray=Xt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Xt.defaultColorSet,Xt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new qt("Line style",Xt.defaultStrokeDasharrays,Xt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ie(At,Ht),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Ht.prototype.getState.call(this);return Ct.typeName=At.typeName,Ct},At.typeName="FrameMarker",At.title="Frame marker",At.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',At}(Mt),_t=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"},Zt=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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 ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!!Ht.prototype.ownsTarget.call(this,Ct)||!(!this.grip1.ownsTarget(Ct)&&!this.grip2.ownsTarget(Ct))},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.manipulationStartX=Ct.x,this.manipulationStartY=Ct.y,this.state==="new"&&(this.x1=Ct.x,this.y1=Ct.y,this.x2=Ct.x,this.y2=Ct.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(Tt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Tt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},At.prototype.pointerUp=function(Ct){var Tt=this.state;Ht.prototype.pointerUp.call(this,Ct),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(Ct),this._state="select",Tt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},At.prototype.adjustVisual=function(){},At.prototype.manipulate=function(Ct){this.state==="creating"?this.resize(Ct):this.state==="move"?(this.x1=this.manipulationStartX1+Ct.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Ct.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Ct.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Ct.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Ct)},At.prototype.resize=function(Ct){switch(this.activeGrip){case this.grip1:this.x1=Ct.x,this.y1=Ct.y;break;case this.grip2:case void 0:this.x2=Ct.x,this.y2=Ct.y}this.adjustVisual(),this.adjustControlBox()},At.prototype.select=function(){Ht.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},At.prototype.deselect=function(){Ht.prototype.deselect.call(this),this.controlBox.style.display="none"},At.prototype.setupControlBox=function(){this.controlBox=Dt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},At.prototype.adjustControlBox=function(){this.positionGrips()},At.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},At.prototype.createGrip=function(){var Ct=new gt;return Ct.visual.transform.baseVal.appendItem(Dt.createTransform()),this.controlBox.appendChild(Ct.visual),Ct},At.prototype.positionGrips=function(){var Ct=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Ct/2,this.y1-Ct/2),this.positionGrip(this.grip2.visual,this.x2-Ct/2,this.y2-Ct/2)},At.prototype.positionGrip=function(Ct,Tt,Xt){var kt=Ct.transform.baseVal.getItem(0);kt.setTranslate(Tt,Xt),Ct.transform.baseVal.replaceItem(kt,0)},At.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ht.prototype.getState.call(this))},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct);var Tt=Ct;this.x1=Tt.x1,this.y1=Tt.y1,this.x2=Tt.x2,this.y2=Tt.y2},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.x1=this.x1*Ct,this.y1=this.y1*Tt,this.x2=this.x2*Ct,this.y2=this.y2*Tt,this.adjustVisual(),this.adjustControlBox()},At}(ht),Pe=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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=Xt.defaultColor,kt.strokeWidth=Xt.defaultStrokeWidth,kt.strokeDasharray=Xt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Xt.defaultColorSet,Xt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new qt("Line style",Xt.defaultStrokeDasharrays,Xt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorLine&&Ct!==this.visibleLine)},At.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.selectorLine=Dt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Dt.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)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},At.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()),Dt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Dt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Dt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},At.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},At.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},At.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct);var Tt=Ct;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.createVisual(),this.adjustVisual()},At.typeName="LineMarker",At.title="Line marker",At.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',At}(Zt),ge=function(Ht){function At(Ct,Tt,Xt,kt){var ee=Ht.call(this,Ct,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 ee.fonts=[],ee.fontBoxes=[],ee.fonts=Tt,ee.currentFont=Xt,ee.setCurrentFont=ee.setCurrentFont.bind(ee),ee}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");return Tt.style.overflow="hidden",Tt.style.flexGrow="2",this.fonts.forEach(function(Xt){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/Ct.fonts.length-5+"%",kt.style.borderColor=Xt===Ct.currentFont?Ct.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){Ct.setCurrentFont(Xt,kt)}),Tt.appendChild(kt);var ee=document.createElement("div");ee.style.display="flex",ee.style.minHeight="20px",ee.style.flexGrow="2",ee.style.fontFamily=Xt,ee.style.overflow="hidden";var rn=document.createElement("div");rn.style.whiteSpace="nowrap",rn.style.overflow="hidden",rn.style.textOverflow="ellipsis",rn.innerHTML="The quick brown fox jumps over the lazy dog",ee.appendChild(rn),kt.appendChild(ee),Ct.fontBoxes.push(kt)}),Tt},At.prototype.setCurrentFont=function(Ct,Tt){var Xt=this;this.currentFont=Ct,this.fontBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},At}(nt),Fe=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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=Xt.defaultColor,kt.fontFamily=Xt.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",Xt.defaultColorSet,Xt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.fontFamilyPanel=new ge("Font",Xt.defaultFontFamilies,Xt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){if(Ht.prototype.ownsTarget.call(this,Ct)||Ct===this.visual||Ct===this.textElement||Ct===this.bgRectangle)return!0;var Tt=!1;return this.textElement.childNodes.forEach(function(Xt){Xt===Ct&&(Tt=!0)}),Tt},At.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.bgRectangle=Dt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Dt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Dt.createTransform()),this.textElement.transform.baseVal.appendItem(Dt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},At.prototype.renderText=function(){var Ct=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(Tt){Ct.textElement.appendChild(Dt.createTSpan(Tt.trim()===""?" ":Tt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},At.prototype.getTextScale=function(){var Ct=this.textElement.getBBox(),Tt=1;if(Ct.width>0&&Ct.height>0){var Xt=(1*this.width-this.width*this.padding*2/100)/Ct.width,kt=(1*this.height-this.height*this.padding*2/100)/Ct.height;Tt=Math.min(Xt,kt)}return Tt},At.prototype.getTextPosition=function(Ct){var Tt=this.textElement.getBBox(),Xt=0,kt=0;return Tt.width>0&&Tt.height>0&&(Xt=(this.width-Tt.width*Ct)/2,kt=this.height/2-Tt.height*Ct/2),{x:Xt,y:kt}},At.prototype.sizeText=function(){var Ct=this.textElement.getBBox(),Tt=this.getTextScale(),Xt=this.getTextPosition(Tt);Xt.y-=Ct.y*Tt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Xt.x+"px, "+Xt.y+"px) scale("+Tt+", "+Tt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Xt.x,Xt.y),this.textElement.transform.baseVal.getItem(1).setScale(Tt,Tt))},At.prototype.manipulate=function(Ct){Ht.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),this.isMoved=!0,this.setSize(),this.sizeText()},At.prototype.setSize=function(){Ht.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Dt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},At.prototype.pointerUp=function(Ct){var Tt=this.state;Tt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ht.prototype.pointerUp.call(this,Ct),this.setSize(),(Tt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},At.prototype.showTextEditor=function(){var Ct=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(Tt){Tt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Tt=Number.parseFloat(Ct.textEditor.style.fontSize);Ct.textEditor.clientWidth>=Number.parseInt(Ct.textEditor.style.maxWidth)&&Tt>.9;)Tt-=.1,Ct.textEditor.style.fontSize=Math.max(Tt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Tt){if(Tt.clipboardData){var Xt=Tt.clipboardData.getData("text"),kt=window.getSelection();if(!kt.rangeCount)return!1;kt.deleteFromDocument(),kt.getRangeAt(0).insertNode(document.createTextNode(Xt)),Tt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Ct.textEditDivClicked(Ct.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},At.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Ct=this.getTextScale(),Tt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Xt=this.textElement.getBBox(),kt={x:Xt.width*Ct,y:Xt.height*Ct};Tt.x-=kt.x/2,Tt.y-=kt.y/2,this.textEditor.style.top=Tt.y+"px",this.textEditor.style.left=Tt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Tt.x+"px",this.textEditor.style.fontSize=Math.max(16*Ct,12)+"px",this.textElement.style.display="none"}},At.prototype.textEditDivClicked=function(Ct){this.text=Ct.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},At.prototype.select=function(){Ht.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},At.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ht.prototype.deselect.call(this)},At.prototype.dblClick=function(Ct,Tt){Ht.prototype.dblClick.call(this,Ct,Tt),this.showTextEditor()},At.prototype.setColor=function(Ct){this.textElement&&Dt.setAttributes(this.textElement,[["fill",Ct]]),this.color=Ct,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Ct)},At.prototype.setFont=function(Ct){this.textElement&&Dt.setAttributes(this.textElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},At.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},At.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){var Tt=Ct;this.color=Tt.color,this.fontFamily=Tt.fontFamily,this.padding=Tt.padding,this.text=Tt.text,this.createVisual(),Ht.prototype.restoreState.call(this,Ct),this.setSize()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.setSize(),this.sizeText(),this.positionTextEditor()},At.typeName="TextMarker",At.title="Text marker",At.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>',At}(St),He=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.color="transparent",kt.lineWidth=3,kt.drawing=!1,kt.pixelRatio=1,kt.color=Xt.defaultColor,kt.lineWidth=Xt.defaultStrokeWidth,kt.pixelRatio=Xt.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",Xt.defaultColorSet,Xt.defaultColor),kt.colorPanel.onColorChanged=kt.setColor,kt.lineWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.lineWidthPanel.onWidthChanged=kt.setLineWidth,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.drawingImage)},At.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.drawingImage=Dt.createImage(),this.visual.appendChild(this.drawingImage);var Ct=Dt.createTransform();this.visual.transform.baseVal.appendItem(Ct),this.addMarkerVisualToContainer(this.visual)},At.prototype.pointerDown=function(Ct,Tt){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(Ct.x,Ct.y),this.drawing=!0):Ht.prototype.pointerDown.call(this,Ct,Tt)},At.prototype.manipulate=function(Ct){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Ct.x,Ct.y),this.canvasContext.stroke()):Ht.prototype.manipulate.call(this,Ct)},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),Dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},At.prototype.pointerUp=function(Ct){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ht.prototype.pointerUp.call(this,Ct)},At.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)},At.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ht.prototype.select.call(this)},At.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ht.prototype.deselect.call(this)},At.prototype.finishCreation=function(){for(var Ct=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Tt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Xt=Tt[0],kt=Tt[1],ee=Tt[2],rn=Tt[3],on=!1,Un=0;Un<this.canvasElement.height;Un++)for(var en=0;en<this.canvasElement.width;en++)Ct.data[Un*this.canvasElement.width*4+4*en+3]>0&&(on=!0,Un<kt&&(kt=Un),en<Xt&&(Xt=en),Un>rn&&(rn=Un),en>ee&&(ee=en));if(on){this.left=Xt/this.pixelRatio,this.top=kt/this.pixelRatio,this.width=(ee-Xt)/this.pixelRatio,this.height=(rn-kt)/this.pixelRatio;var Mn=document.createElement("canvas");Mn.width=ee-Xt,Mn.height=rn-kt,Mn.getContext("2d").putImageData(this.canvasContext.getImageData(Xt,kt,ee-Xt,rn-kt),0,0),this.drawingImgUrl=Mn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},At.prototype.setDrawingImage=function(){Dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Dt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},At.prototype.setColor=function(Ct){this.color=Ct,this.colorChanged(Ct)},At.prototype.setLineWidth=function(Ct){this.lineWidth=Ct},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({drawingImgUrl:this.drawingImgUrl},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){this.createVisual(),Ht.prototype.restoreState.call(this,Ct),this.drawingImgUrl=Ct.drawingImgUrl,this.setDrawingImage()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.setDrawingImage()},At.typeName="FreehandMarker",At.title="Freehand marker",At.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>',At}(St),Ie=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Xt||'<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=Tt,kt.setCurrentType=kt.setCurrentType.bind(kt),kt}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2";for(var Xt=function(rn){var on="both";switch(rn){case 0:on="both";break;case 1:on="start";break;case 2:on="end";break;case 3:on="none"}var Un=document.createElement("div");if(Un.style.display="flex",Un.style.flexGrow="2",Un.style.alignItems="center",Un.style.justifyContent="space-between",Un.style.padding="5px",Un.style.borderWidth="2px",Un.style.borderStyle="solid",Un.style.borderColor=on===kt.currentType?kt.uiStyleSettings.toolboxAccentColor:"transparent",Un.addEventListener("click",function(){Ct.setCurrentType(on,Un)}),Tt.appendChild(Un),on==="both"||on==="start"){var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.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>`,en.style.marginLeft="5px",Un.appendChild(en)}var Mn=document.createElement("div");Mn.style.display="flex",Mn.style.alignItems="center",Mn.style.minHeight="20px",Mn.style.flexGrow="2";var Ke=document.createElement("hr");if(Ke.style.minWidth="20px",Ke.style.border="0px",Ke.style.borderTop="3px solid "+(kt.uiStyleSettings!==void 0?kt.uiStyleSettings.toolboxColor:"#eeeeee"),Ke.style.flexGrow="2",Mn.appendChild(Ke),Un.appendChild(Mn),on==="both"||on==="end"){var jn=document.createElement("div");jn.style.display="flex",jn.style.alignItems="center",jn.style.minHeight="20px",jn.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>`,jn.style.marginRight="5px",Un.appendChild(jn)}kt.typeBoxes.push(Un)},kt=this,ee=0;ee<4;ee++)Xt(ee);return Tt},At.prototype.setCurrentType=function(Ct,Tt){var Xt=this;this.currentType=Ct,this.typeBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings!==void 0?Xt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},At}(nt),In=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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 Ie("Arrow type","end"),kt.arrowTypePanel.onArrowTypeChanged=kt.setArrowType,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.arrow1&&Ct!==this.arrow2)},At.prototype.getArrowPoints=function(Ct,Tt){var Xt=this.arrowBaseWidth+2*this.strokeWidth,kt=this.arrowBaseHeight+2*this.strokeWidth;return Ct-Xt/2+","+(Tt+kt/2)+" "+Ct+","+(Tt-kt/2)+" "+(Ct+Xt/2)+","+(Tt+kt/2)},At.prototype.createTips=function(){this.arrow1=Dt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Dt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Dt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Dt.createTransform()),this.visual.appendChild(this.arrow2)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Ht.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",Dt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Dt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var Ct=0;Math.abs(this.x1-this.x2)>.1&&(Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Tt=this.arrow1.transform.baseVal.getItem(0);Tt.setRotate(Ct,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Tt,0);var Xt=this.arrow2.transform.baseVal.getItem(0);Xt.setRotate(Ct+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Xt,0)}},At.prototype.setArrowType=function(Ct){this.arrowType=Ct,this.adjustVisual(),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({arrowType:this.arrowType},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct);var Tt=Ct;this.arrowType=Tt.arrowType,this.createTips(),this.adjustVisual()},At.typeName="ArrowMarker",At.title="Arrow marker",At.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',At}(Pe),bn=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.fillColor=Xt.defaultFillColor,kt.strokeWidth=0,kt.fillPanel=new et("Color",Xt.defaultColorSet,Xt.defaultFillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt}return ie(At,Ht),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Ht.prototype.getState.call(this);return Ct.typeName=At.typeName,Ct},At.typeName="CoverMarker",At.title="Cover marker",At.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',At}(Mt),cn=function(Ht){function At(Ct,Tt,Xt,kt){var ee=Ht.call(this,Ct,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 ee.opacities=[],ee.opacityBoxes=[],ee.opacities=Tt,ee.currentOpacity=Xt,ee.setCurrentOpacity=ee.setCurrentOpacity.bind(ee),ee}return ie(At,Ht),At.prototype.getUi=function(){var Ct=this,Tt=document.createElement("div");return Tt.style.display="flex",Tt.style.overflow="hidden",Tt.style.flexGrow="2",Tt.style.justifyContent="space-between",this.opacities.forEach(function(Xt){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=Xt===Ct.currentOpacity?Ct.uiStyleSettings.toolboxAccentColor:"transparent",kt.addEventListener("click",function(){Ct.setCurrentOpacity(Xt,kt)}),Tt.appendChild(kt);var ee=document.createElement("div");ee.innerText=100*Xt+"%",kt.appendChild(ee),Ct.opacityBoxes.push(kt)}),Tt},At.prototype.setCurrentOpacity=function(Ct,Tt){var Xt=this;this.currentOpacity=Ct,this.opacityBoxes.forEach(function(kt){kt.style.borderColor=kt===Tt?Xt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},At}(nt),Xn=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.setOpacity=kt.setOpacity.bind(kt),kt.fillColor=Xt.defaultHighlightColor,kt.strokeWidth=0,kt.opacity=Xt.defaultHighlightOpacity,kt.fillPanel=new et("Color",Xt.defaultColorSet,kt.fillColor),kt.fillPanel.onColorChanged=kt.setFillColor,kt.opacityPanel=new cn("Opacity",Xt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ie(At,Ht),At.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&Dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Ht.prototype.getState.call(this);return Ct.typeName=At.typeName,Ct},At.typeName="HighlightMarker",At.title="Highlight marker",At.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>',At}(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>',jt='<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>',Ee=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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=Xt.defaultStrokeColor,kt.bgColor=Xt.defaultFillColor,kt.fontFamily=Xt.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",Xt.defaultColorSet,kt.color,$t),kt.colorPanel.onColorChanged=kt.setColor,kt.bgColorPanel=new et("Fill color",Xt.defaultColorSet,kt.bgColor,jt),kt.bgColorPanel.onColorChanged=kt.setBgColor,kt.fontFamilyPanel=new ge("Font",Xt.defaultFontFamilies,Xt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.tipGrip=new gt,kt.tipGrip.visual.transform.baseVal.appendItem(Dt.createTransform()),kt.controlBox.appendChild(kt.tipGrip.visual),kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return Ht.prototype.ownsTarget.call(this,Ct)||this.tipGrip.ownsTarget(Ct)||this.tip===Ct},At.prototype.createTip=function(){Dt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Dt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},At.prototype.pointerDown=function(Ct,Tt){this.state==="new"&&Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Tt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ht.prototype.pointerDown.call(this,Ct,Tt)},At.prototype.pointerUp=function(Ct){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ht.prototype.pointerUp.call(this,Ct);else{var Tt=this.state==="creating";Ht.prototype.pointerUp.call(this,Ct),this.setTipPoints(Tt),this.positionTip()}},At.prototype.manipulate=function(Ct){if(this.tipMoving){var Tt=this.unrotatePoint(Ct);this.tipPosition={x:Tt.x-this.manipulationStartLeft,y:Tt.y-this.manipulationStartTop},this.positionTip()}else Ht.prototype.manipulate.call(this,Ct)},At.prototype.setBgColor=function(Ct){this.bgRectangle&&this.tip&&(Dt.setAttributes(this.bgRectangle,[["fill",Ct]]),Dt.setAttributes(this.tip,[["fill",Ct]])),this.bgColor=Ct,this.fillColorChanged(Ct)},At.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},At.prototype.setTipPoints=function(Ct){Ct===void 0&&(Ct=!1);var Tt=Math.min(this.height/2,15),Xt=this.height/5;Ct&&(this.tipPosition={x:Tt+Xt/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))?(Xt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:0},this.tipBase2Position={x:Tt+Xt,y:0}):(this.tipBase1Position={x:0,y:Tt},this.tipBase2Position={x:0,y:Tt+Xt}):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))?(Xt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Xt,y:0},this.tipBase2Position={x:this.width-Tt,y:0}):(this.tipBase1Position={x:this.width,y:Tt},this.tipBase2Position={x:this.width,y:Tt+Xt}):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))?(Xt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Tt-Xt,y:this.height},this.tipBase2Position={x:this.width-Tt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Tt-Xt},this.tipBase2Position={x:this.width,y:this.height-Tt}):kt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Xt=this.width/5,Tt=Math.min(this.width/2,15),this.tipBase1Position={x:Tt,y:this.height},this.tipBase2Position={x:Tt+Xt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Tt},this.tipBase2Position={x:0,y:this.height-Tt-Xt})},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),this.positionTip()},At.prototype.positionTip=function(){Dt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Ct=this.tipGrip.visual.transform.baseVal.getItem(0);Ct.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Ct,0)},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),At.prototype.select=function(){this.positionTip(),Ht.prototype.select.call(this)},At.prototype.getState=function(){var Ct=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){var Tt=Ct;this.bgColor=Tt.bgColor,this.tipPosition=Tt.tipPosition,Ht.prototype.restoreState.call(this,Ct),this.createTip(),this.setTipPoints()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.tipPosition={x:this.tipPosition.x*Ct,y:this.tipPosition.y*Tt},this.positionTip()},At.typeName="CalloutMarker",At.title="Callout marker",At.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>',At}(Fe),sn=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.fillColor="transparent",kt.strokeColor="transparent",kt.strokeWidth=0,kt.strokeDasharray="",kt.opacity=1,kt.strokeColor=Xt.defaultColor,kt.strokeWidth=Xt.defaultStrokeWidth,kt.strokeDasharray=Xt.defaultStrokeDasharray,kt.fillColor=Xt.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",Ae(Xt.defaultColorSet,["transparent"]),Xt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Ae(Xt.defaultColorSet,["transparent"]),kt.fillColor,jt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new qt("Line style",Xt.defaultStrokeDasharrays,Xt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.opacityPanel=new cn("Opacity",Xt.defaultOpacitySteps,kt.opacity),kt.opacityPanel.onOpacityChanged=kt.setOpacity,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual)},At.prototype.createVisual=function(){this.visual=Dt.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)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},At.prototype.manipulate=function(Ct){Ht.prototype.manipulate.call(this,Ct)},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),this.setSize()},At.prototype.setSize=function(){Ht.prototype.setSize.call(this),Dt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},At.prototype.pointerUp=function(Ct){Ht.prototype.pointerUp.call(this,Ct),this.setSize()},At.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},At.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.visual&&Dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},At.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.visual&&Dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},At.prototype.setOpacity=function(Ct){this.opacity=Ct,this.visual&&Dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){var Tt=Ct;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.opacity=Tt.opacity,this.createVisual(),Ht.prototype.restoreState.call(this,Ct),this.setSize()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.setSize()},At.typeName="EllipseMarker",At.title="Ellipse marker",At.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>',At}(St),Tn=function(Ht){function At(Ct,Tt,Xt){return Ht.call(this,Ct,Tt,Xt)||this}return ie(At,Ht),Object.defineProperty(At.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.tip1&&Ct!==this.tip2)},At.prototype.createTips=function(){this.tip1=Dt.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(Dt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Dt.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(Dt.createTransform()),this.visual.appendChild(this.tip2)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.state==="creating"&&this.createTips()},At.prototype.adjustVisual=function(){if(Ht.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Dt.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()]]),Dt.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 Ct=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Tt=this.tip1.transform.baseVal.getItem(0);Tt.setRotate(Ct,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Tt,0);var Xt=this.tip2.transform.baseVal.getItem(0);Xt.setRotate(Ct+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Xt,0)}},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Ht.prototype.getState.call(this);return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct),this.createTips(),this.adjustVisual()},At.typeName="MeasurementMarker",At.title="Measurement marker",At.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>',At}(Pe),Le=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||this;return kt.strokePanel.colors=Xt.defaultColorSet,kt.fillColor="transparent",kt}return ie(At,Ht),Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Ht.prototype.getState.call(this);return Ct.typeName=At.typeName,Ct},At.typeName="EllipseFrameMarker",At.title="Ellipse frame marker",At.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>',At}(sn),gn=function(){function Ht(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ht.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ht.prototype.addUndoStep=function(At){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(At)||(this.undoStack.push(At),JSON.stringify(this.lastRedoStep)!==JSON.stringify(At)&&this.redoStack.splice(0,this.redoStack.length))},Ht.prototype.replaceLastUndoStep=function(At){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=At)},Ht.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ht.prototype.undo=function(){if(this.undoStack.length>1){var At=this.undoStack.pop();return At!==void 0&&this.redoStack.push(At),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ht.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ht}(),$e=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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=Xt.defaultColor,kt.strokeWidth=Xt.defaultStrokeWidth,kt.strokeDasharray=Xt.defaultStrokeDasharray,kt.strokePanel=new et("Line color",Xt.defaultColorSet,Xt.defaultColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.strokeWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new qt("Line style",Xt.defaultStrokeDasharrays,Xt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.selectorCurve&&Ct!==this.visibleCurve&&!this.curveGrip.ownsTarget(Ct))},At.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},At.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.selectorCurve=Dt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Dt.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)},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Ct.x,this.curveY=Ct.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Tt)&&(this.activeGrip=this.curveGrip,this._state="resize")},At.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Dt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Dt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Dt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},At.prototype.setupControlBox=function(){Ht.prototype.setupControlBox.call(this),this.curveControlLine1=Dt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Dt.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)},At.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ht.prototype.addControlGrips.call(this)},At.prototype.positionGrips=function(){Ht.prototype.positionGrips.call(this);var Ct=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-Ct/2,this.curveY-Ct/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()))},At.prototype.manipulate=function(Ct){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Ct.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Ct.y-this.manipulationStartY),Ht.prototype.manipulate.call(this,Ct)},At.prototype.resize=function(Ct){this.activeGrip===this.curveGrip&&(this.curveX=Ct.x,this.curveY=Ct.y),Ht.prototype.resize.call(this,Ct),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},At.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.adjustVisual(),this.colorChanged(Ct)},At.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.adjustVisual()},At.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.adjustVisual()},At.prototype.scale=function(Ct,Tt){this.curveX=this.curveX*Ct,this.curveY=this.curveY*Tt,Ht.prototype.scale.call(this,Ct,Tt)},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ht.prototype.getState.call(this));return Ct.typeName=At.typeName,Ct},At.prototype.restoreState=function(Ct){Ht.prototype.restoreState.call(this,Ct);var Tt=Ct;this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.curveX=Tt.curveX,this.curveY=Tt.curveY,this.createVisual(),this.adjustVisual()},At.typeName="CurveMarker",At.title="Curve marker",At.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>',At}(Zt),Fn=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,Tt,Xt)||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=Xt.defaultColor,kt.strokeWidth=Xt.defaultStrokeWidth,kt.strokeDasharray=Xt.defaultStrokeDasharray,kt.fillColor=Xt.defaultFillColor,kt.textColor=Xt.defaultStrokeColor,kt.fontFamily=Xt.defaultFontFamily,kt.fontSize=Xt.defaultCaptionFontSize,kt.captionText=Xt.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",Ae(Xt.defaultColorSet,["transparent"]),kt.strokeColor),kt.strokePanel.onColorChanged=kt.setStrokeColor,kt.fillPanel=new et("Fill color",Ae(Xt.defaultColorSet,["transparent"]),kt.fillColor,jt),kt.fillPanel.onColorChanged=kt.setFillColor,kt.strokeWidthPanel=new zt("Line width",Xt.defaultStrokeWidths,Xt.defaultStrokeWidth),kt.strokeWidthPanel.onWidthChanged=kt.setStrokeWidth,kt.strokeStylePanel=new qt("Line style",Xt.defaultStrokeDasharrays,Xt.defaultStrokeDasharray),kt.strokeStylePanel.onStyleChanged=kt.setStrokeDasharray,kt.fontFamilyPanel=new ge("Font",Xt.defaultFontFamilies,Xt.defaultFontFamily),kt.fontFamilyPanel.onFontChanged=kt.setFont,kt.textColorPanel=new et("Text color",Xt.defaultColorSet,kt.textColor,$t),kt.textColorPanel.onColorChanged=kt.setTextColor,kt}return ie(At,Ht),At.prototype.ownsTarget=function(Ct){return!(!Ht.prototype.ownsTarget.call(this,Ct)&&Ct!==this.visual&&Ct!==this.frame&&Ct!==this.captionBg&&Ct!==this.captionElement)},At.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Dt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Dt.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=Dt.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()},At.prototype.setCaptionText=function(Ct){this.captionText=Ct,this.captionElement.textContent=this.captionText,this.sizeCaption()},At.prototype.pointerDown=function(Ct,Tt){Ht.prototype.pointerDown.call(this,Ct,Tt),this.isMoved=!1,this.pointerDownPoint=Ct,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Ct),this._state="creating")},At.prototype.manipulate=function(Ct){Ht.prototype.manipulate.call(this,Ct),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(Ct.x-this.pointerDownPoint.x)>5||Math.abs(Ct.y-this.pointerDownPoint.y)>5)},At.prototype.resize=function(Ct){Ht.prototype.resize.call(this,Ct),this.setSize()},At.prototype.sizeCaption=function(){var Ct=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=Ct.width+2*this.PADDING,this.captionBoxHeight=Ct.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Dt.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')"]]),Dt.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')"]])},At.prototype.showTextEditor=function(){var Ct=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(Tt){Tt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Tt){Tt.key==="Enter"&&Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Tt){Tt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){Ct.finishTextEditing(Ct.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},At.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"))},At.prototype.finishTextEditing=function(Ct){this.setCaptionText(Ct.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},At.prototype.setFont=function(Ct){this.captionElement&&Dt.setAttributes(this.captionElement,[["font-family",Ct]]),this.fontFamily=Ct,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},At.prototype.setTextColor=function(Ct){this.captionElement&&Dt.setAttributes(this.captionElement,[["fill",Ct]]),this.textColor=Ct,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},At.prototype.setSize=function(){Ht.prototype.setSize.call(this),Dt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},At.prototype.pointerUp=function(Ct){Ht.prototype.pointerUp.call(this,Ct),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},At.prototype.dblClick=function(Ct,Tt){Ht.prototype.dblClick.call(this,Ct,Tt),this.showTextEditor()},At.prototype.setStrokeColor=function(Ct){this.strokeColor=Ct,this.frame&&Dt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(Ct),this.stateChanged()},At.prototype.setFillColor=function(Ct){this.fillColor=Ct,this.captionBg&&Dt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(Ct),this.stateChanged()},At.prototype.setStrokeWidth=function(Ct){this.strokeWidth=Ct,this.frame&&Dt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},At.prototype.setStrokeDasharray=function(Ct){this.strokeDasharray=Ct,this.frame&&Dt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(At.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),At.prototype.getState=function(){var Ct=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},Ht.prototype.getState.call(this));return Ct.typeName=this.typeName,Ct},At.prototype.restoreState=function(Ct){var Tt=Ct;this.fillColor=Tt.fillColor,this.strokeColor=Tt.strokeColor,this.strokeWidth=Tt.strokeWidth,this.strokeDasharray=Tt.strokeDasharray,this.textColor=Tt.textColor,this.fontFamily=Tt.fontFamily,this.captionText=Tt.captionText,this.fontSize=Tt.fontSize,this.createVisual(),Ht.prototype.restoreState.call(this,Ct),this.setSize()},At.prototype.scale=function(Ct,Tt){Ht.prototype.scale.call(this,Ct,Tt),this.setSize()},At.typeName="CaptionFrameMarker",At.title="Caption frame marker",At.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>',At}(St),ke=function(){function Ht(At,Ct){Ct===void 0&&(Ct=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=At,this.cancelable=Ct}return Object.defineProperty(Ht.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ht.prototype.preventDefault=function(){this._defaultPrevented=!0},Ht}(),fe=function(Ht){function At(Ct,Tt,Xt){var kt=Ht.call(this,Ct,!1)||this;return kt.dataUrl=Tt,kt.state=Xt,kt}return ie(At,Ht),At}(ke),Re=function(Ht){function At(Ct,Tt,Xt){Xt===void 0&&(Xt=!1);var kt=Ht.call(this,Ct,Xt)||this;return kt.marker=Tt,kt}return ie(At,Ht),At}(ke),dn=function(){function Ht(){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 Ht.prototype.addEventListener=function(At,Ct){this[At].push(Ct)},Ht.prototype.removeEventListener=function(At,Ct){var Tt=this[At].indexOf(Ct);Tt>-1&&this[At].splice(Tt,1)},Ht}(),Te=function(){function Ht(At){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _t,this._isOpen=!1,this.undoRedoManager=new gn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ht.instanceCounter++,this.styles=new ye(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=At,this.targetRoot=document.body,this.width=At.clientWidth,this.height=At.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(Ht.prototype,"ALL_MARKER_TYPES",{get:function(){return[re,He,In,Fe,Le,sn,Xn,Ee,Tn,bn,Pe,$e,Fn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[re,He,In,Fe,sn,Xn,Ee]},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"BASIC_MARKER_TYPES",{get:function(){return[re,He,In,Fe,Xn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(At){var Ct=this;this._availableMarkerTypes.splice(0),At.forEach(function(Tt){if(typeof Tt=="string"){var Xt=Ct.ALL_MARKER_TYPES.find(function(kt){return kt.typeName===Tt});Xt!==void 0&&Ct._availableMarkerTypes.push(Xt)}else Ct._availableMarkerTypes.push(Tt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ht.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(At){this._zoomLevel=At,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(Ht.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ht.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Jt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ht.prototype.show=function(){var At=this;this.styles.styleSheetRoot===void 0&&ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Ct){return Ct(new ke(At))})},Ht.prototype.render=function(){return Be(this,void 0,void 0,function(){var At;return Ne(this,function(Ct){switch(Ct.label){case 0:return this.setCurrentMarker(),(At=new ue).naturalSize=this.renderAtNaturalSize,At.imageType=this.renderImageType,At.imageQuality=this.renderImageQuality,At.markersOnly=this.renderMarkersOnly,At.width=this.renderWidth,At.height=this.renderHeight,[4,At.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Ct.sent(),[4,At.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Ct.sent()]}})})},Ht.prototype.close=function(At){var Ct=this;if(At===void 0&&(At=!1),this.isOpen){var Tt=!1;At||this.eventListeners.beforeclose.forEach(function(Xt){var kt=new ke(Ct,!0);Xt(kt),kt.defaultPrevented&&(Tt=!0)}),Tt||(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(Xt){return Xt(new ke(Ct))}),this.detachEvents(),this._isOpen=!1)}},Ht.prototype.addMarkersToToolbar=function(){for(var At,Ct=[],Tt=0;Tt<arguments.length;Tt++)Ct[Tt]=arguments[Tt];(At=this._availableMarkerTypes).push.apply(At,Ct)},Ht.prototype.addRenderEventListener=function(At){this.addEventListener("render",function(Ct){At(Ct.dataUrl,Ct.state)})},Ht.prototype.removeRenderEventListener=function(At){},Ht.prototype.addCloseEventListener=function(At){this.addEventListener("close",function(){At()})},Ht.prototype.removeCloseEventListener=function(At){},Ht.prototype.setupResizeObserver=function(){var At=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){At.resize(At.target.clientWidth,At.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return At.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ht.prototype.onPopupTargetResize=function(){var At=1*this.target.clientWidth/this.target.clientHeight,Ct=this.editorCanvas.clientWidth/At>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*At:this.editorCanvas.clientWidth,Tt=Ct<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/At;this.resize(Ct,Tt)},Ht.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ht.prototype.resize=function(At,Ct){this._isResizing=!0;var Tt=At/this.imageWidth,Xt=Ct/this.imageHeight;this.imageWidth=Math.round(At),this.imageHeight=Math.round(Ct),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(Tt,Xt),this._isResizing=!1},Ht.prototype.scaleMarkers=function(At,Ct){var Tt,Xt=this;this._currentMarker&&this._currentMarker instanceof Fe?this._currentMarker.scale(At,Ct):(Tt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(kt){kt!==Xt._currentMarker&&kt.scale(At,Ct)}),Tt!==void 0&&this.setCurrentMarker(Tt)},Ht.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"},Ht.prototype.setTopLeft=function(){var At=this.editingTarget.getBoundingClientRect(),Ct=this.editorCanvas.getBoundingClientRect();this.left=At.left-Ct.left,this.top=At.top-Ct.top},Ht.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)},Ht.prototype.addDefs=function(){for(var At,Ct=[],Tt=0;Tt<arguments.length;Tt++)Ct[Tt]=arguments[Tt];this.defs=Dt.createDefs(),this.addDefsToImage(),(At=this.defs).append.apply(At,Ct)},Ht.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ht.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)},Ht.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ht.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ht.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)},Ht.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ht.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)},Ht.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 At=document.createElement("a");At.href="https://markerjs.com/",At.target="_blank",At.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>',At.title="Powered by marker.js",At.style.display="grid",At.style.alignItems="center",At.style.justifyItems="center",At.style.padding="3px",At.style.width="20px",At.style.height="20px",this.logoUI.appendChild(At),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ht.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")},Ht.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"},Ht.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ht.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 At=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=At+"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 It(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 Nt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ht.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ht.prototype.removeMarker=function(At){this.markerImage.removeChild(At.container),this.markers.indexOf(At)>-1&&this.markers.splice(this.markers.indexOf(At),1),At.dispose()},Ht.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())},Ht.prototype.toolbarButtonClicked=function(At,Ct){if(At==="marker"&&Ct!==void 0)this.createNewMarker(Ct);else if(At==="action")switch(Ct){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()}},Ht.prototype.deleteSelectedMarker=function(){var At=this;if(this._currentMarker!==void 0){var Ct=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Xt){var kt=new Re(At,At._currentMarker,!0);Xt(kt),kt.defaultPrevented&&(Ct=!0)}),!Ct){var Tt=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(Xt){return Xt(new Re(At,Tt))})}}},Ht.prototype.clear=function(){var At=this,Ct=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ee){var rn=new Re(At,void 0,!0);ee(rn),rn.defaultPrevented&&(Ct=!0)}),!Ct)){this.setCurrentMarker();for(var Tt=function(ee){var rn=Xt.markers[ee];Xt.setCurrentMarker(Xt.markers[ee]),Xt._currentMarker.dispose(),Xt.markerImage.removeChild(Xt._currentMarker.container),Xt.markers.splice(Xt.markers.indexOf(Xt._currentMarker),1),Xt.eventListeners.markerdelete.forEach(function(on){return on(new Re(At,rn))})},Xt=this,kt=this.markers.length-1;kt>=0;kt--)Tt(kt);this.addUndoStep()}},Object.defineProperty(Ht.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ht.prototype.showNotesEditor=function(){var At;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=(At=this._currentMarker.notes)!==null&&At!==void 0?At:"",this.overlayContainer.appendChild(this.notesArea))},Ht.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)},Ht.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ht.prototype.addUndoStep=function(){var At=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Ct=this.getState(),Tt=this.undoRedoManager.getLastUndoStep();if(!Tt||Tt.width===Ct.width&&Tt.height===Ct.height){var Xt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Ct),Xt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(kt){return kt(new ke(At))})}else this.undoRedoManager.replaceLastUndoStep(Ct),this.eventListeners.statechange.forEach(function(kt){return kt(new ke(At))})}},Ht.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ht.prototype.undoStep=function(){var At=this,Ct=this.undoRedoManager.undo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new ke(At))}))},Ht.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ht.prototype.redoStep=function(){var At=this,Ct=this.undoRedoManager.redo();Ct!==void 0&&(this.restoreState(Ct),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Tt){return Tt(new ke(At))}))},Ht.prototype.stepZoom=function(){var At=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=At<this.zoomSteps.length-1?this.zoomSteps[At+1]:this.zoomSteps[0]},Ht.prototype.panTo=function(At){this.contentDiv.scrollBy({left:this.prevPanPoint.x-At.x,top:this.prevPanPoint.y-At.y}),this.prevPanPoint=At},Ht.prototype.startRenderAndClose=function(){return Be(this,void 0,void 0,function(){var At,Ct,Tt=this;return Ne(this,function(Xt){switch(Xt.label){case 0:return[4,this.render()];case 1:return At=Xt.sent(),Ct=this.getState(),this.eventListeners.render.forEach(function(kt){return kt(new fe(Tt,At,Ct))}),this.close(!0),[2]}})})},Ht.prototype.getState=function(At){At===!0&&this.setCurrentMarker();var Ct={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Tt){return Ct.markers.push(Tt.getState())}),Ct},Ht.prototype.restoreState=function(At){var Ct=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);At.markers.forEach(function(Tt){var Xt=Ct._availableMarkerTypes.find(function(ee){return ee.typeName===Tt.typeName});if(Xt!==void 0){var kt=Ct.addNewMarker(Xt);kt.restoreState(Tt),Ct.markers.push(kt)}}),At.width&&At.height&&(At.width!==this.imageWidth||At.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/At.width,this.imageHeight/At.height),this.eventListeners.restorestate.forEach(function(Tt){return Tt(new ke(Ct))})},Ht.prototype.addNewMarker=function(At){var Ct=Dt.createGroup();return this.markerImage.appendChild(Ct),new At(Ct,this.overlayContainer,this.settings)},Ht.prototype.createNewMarker=function(At){var Ct,Tt=this;(Ct=typeof At=="string"?this._availableMarkerTypes.find(function(Xt){return Xt.typeName===At}):At)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Ct),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(Ct.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Xt){return Xt(new Re(Tt,Tt._currentMarker))}))},Ht.prototype.markerCreated=function(At){var Ct=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(At),this.setCurrentMarker(At),At instanceof He&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(He):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Tt){return Tt(new Re(Ct,Ct._currentMarker))})},Ht.prototype.colorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=At,this.settings.defaultStrokeColor=At)},Ht.prototype.fillColorChanged=function(At){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=At)},Ht.prototype.markerStateChanged=function(At){var Ct=this;this.eventListeners.markerchange.forEach(function(Tt){return Tt(new Re(Ct,At))})},Ht.prototype.setCurrentMarker=function(At){var Ct=this;this._currentMarker!==At&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Tt){return Tt(new Re(Ct,Ct._currentMarker))})),this._currentMarker=At,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(Tt){return Tt(new Re(Ct,Ct._currentMarker))}))},Ht.prototype.onPointerDown=function(At){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||At.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Ct=this.markers.find(function(Tt){return Tt.ownsTarget(At.target)});Ct!==void 0?(this.setCurrentMarker(Ct),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(At.clientX,At.clientY),At.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:At.clientX,y:At.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(At.clientX,At.clientY))},Ht.prototype.onDblClick=function(At){if(this._isFocused||this.focus(),this.mode==="select"){var Ct=this.markers.find(function(Tt){return Tt.ownsTarget(At.target)});Ct!==void 0&&Ct!==this._currentMarker&&this.setCurrentMarker(Ct),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(At.clientX,At.clientY),At.target):this.setCurrentMarker()}},Ht.prototype.onPointerMove=function(At){this.touchPoints!==1&&At.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||At.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(At.clientX,At.clientY)):this.zoomLevel>1&&this.panTo({x:At.clientX,y:At.clientY}))},Ht.prototype.onPointerUp=function(At){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(At.clientX,At.clientY)),this.isDragging=!1,this.addUndoStep()},Ht.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ht.prototype.onKeyUp=function(At){this._currentMarker===void 0||this.notesArea!==void 0||At.key!=="Delete"&&At.key!=="Backspace"||this.deleteSelectedMarker()},Ht.prototype.clientToLocalCoordinates=function(At,Ct){var Tt=this.markerImage.getBoundingClientRect();return{x:(At-Tt.left)/this.zoomLevel,y:(Ct-Tt.top)/this.zoomLevel}},Ht.prototype.onWindowResize=function(){this.positionUI()},Ht.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var At=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=At+"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()},Ht.prototype.addLicenseKey=function(At){Jt.addKey(At)},Ht.prototype.addEventListener=function(At,Ct){this.eventListeners.addEventListener(At,Ct)},Ht.prototype.removeEventListener=function(At,Ct){this.eventListeners.removeEventListener(At,Ct)},Ht.prototype.renderState=function(At){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(At),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ht.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ht.prototype.focus=function(){var At=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Ct){return Ct(new ke(At))}))},Ht.prototype.blur=function(){var At=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Ct){return Ct(new ke(At))}))},Ht.instanceCounter=0,Ht}()},31457:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Re}});var Lt=Ft(4942),ie=Ft(87462),Be=Ft(71002),Ne=Ft(1413),Ae=Ft(97685),Dt=Ft(94184),Jt=Ft.n(Dt),ue=Ft(67294);function ce(dn){var Te=ue.useRef();Te.current=dn;var Ht=ue.useCallback(function(){for(var At,Ct=arguments.length,Tt=new Array(Ct),Xt=0;Xt<Ct;Xt++)Tt[Xt]=arguments[Xt];return(At=Te.current)===null||At===void 0?void 0:At.call.apply(At,[Te].concat(Tt))},[]);return Ht}function ye(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Je=ye()?ue.useLayoutEffect:ue.useEffect,de=function(Te,Ht){var At=ue.useRef(!0);Je(function(){return Te(At.current)},Ht),Je(function(){return At.current=!1,function(){At.current=!0}},[])},It=function(Te,Ht){de(function(At){if(!At)return Te()},Ht)},Nt=null;function nt(dn){var Te=ue.useRef(!1),Ht=ue.useState(dn),At=(0,Ae.Z)(Ht,2),Ct=At[0],Tt=At[1];ue.useEffect(function(){return Te.current=!1,function(){Te.current=!0}},[]);function Xt(kt,ee){ee&&Te.current||Tt(kt)}return[Ct,Xt]}function et(dn){return dn!==void 0}function ht(dn,Te){var Ht=Te||{},At=Ht.defaultValue,Ct=Ht.value,Tt=Ht.onChange,Xt=Ht.postState,kt=nt(function(){return et(Ct)?Ct:et(At)?typeof At=="function"?At():At:typeof dn=="function"?dn():dn}),ee=(0,Ae.Z)(kt,2),rn=ee[0],on=ee[1],Un=Ct!==void 0?Ct:rn,en=Xt?Xt(Un):Un,Mn=ce(Tt),Ke=nt([Un]),jn=(0,Ae.Z)(Ke,2),ni=jn[0],Oi=jn[1];It(function(){var Ai=ni[0];rn!==Ai&&Mn(rn,Ai)},[ni]),It(function(){et(Ct)||on(Ct)},[Ct]);var $n=ce(function(Ai,Ki){on(Ai,Ki),Oi([Un],Ki)});return[en,$n]}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(Te){var Ht=Te.keyCode;if(Te.altKey&&!Te.ctrlKey||Te.metaKey||Ht>=lt.F1&&Ht<=lt.F12)return!1;switch(Ht){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(Te){if(Te>=lt.ZERO&&Te<=lt.NINE||Te>=lt.NUM_ZERO&&Te<=lt.NUM_MULTIPLY||Te>=lt.A&&Te<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){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`,St=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Mt="".concat(mt," ").concat(St).split(/[\s\n]+/),zt="aria-",qt="data-";function re(dn,Te){return dn.indexOf(Te)===0}function _t(dn){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht;Te===!1?Ht={aria:!0,data:!0,attr:!0}:Te===!0?Ht={aria:!0}:Ht=(0,Ne.Z)({},Te);var At={};return Object.keys(dn).forEach(function(Ct){(Ht.aria&&(Ct==="role"||re(Ct,zt))||Ht.data&&re(Ct,qt)||Ht.attr&&Mt.includes(Ct))&&(At[Ct]=dn[Ct])}),At}var Zt={},Pe=[],ge=function(Te){Pe.push(Te)};function Fe(dn,Te){if(0)var Ht}function He(dn,Te){if(0)var Ht}function Ie(){Zt={}}function In(dn,Te,Ht){!Te&&!Zt[Ht]&&(dn(!1,Ht),Zt[Ht]=!0)}function bn(dn,Te){In(Fe,dn,Te)}function cn(dn,Te){In(He,dn,Te)}bn.preMessage=ge,bn.resetWarned=Ie,bn.noteOnce=cn;var Xn=null,$t=Ft(81626),jt=[10,20,50,100],Ee=function(Te){var Ht=Te.pageSizeOptions,At=Ht===void 0?jt:Ht,Ct=Te.locale,Tt=Te.changeSize,Xt=Te.pageSize,kt=Te.goButton,ee=Te.quickGo,rn=Te.rootPrefixCls,on=Te.disabled,Un=Te.buildOptionText,en=Te.showSizeChanger,Mn=Te.sizeChangerRender,Ke=ue.useState(""),jn=(0,Ae.Z)(Ke,2),ni=jn[0],Oi=jn[1],$n=function(){return!ni||Number.isNaN(ni)?void 0:Number(ni)},Ai=typeof Un=="function"?Un:function(Di){return"".concat(Di," ").concat(Ct.items_per_page)},Ki=function(jr){Oi(jr.target.value)},ii=function(jr){kt||ni===""||(Oi(""),!(jr.relatedTarget&&(jr.relatedTarget.className.indexOf("".concat(rn,"-item-link"))>=0||jr.relatedTarget.className.indexOf("".concat(rn,"-item"))>=0))&&(ee==null||ee($n())))},mi=function(jr){ni!==""&&(jr.keyCode===gt.ENTER||jr.type==="click")&&(Oi(""),ee==null||ee($n()))},di=function(){return At.some(function(jr){return jr.toString()===Xt.toString()})?At:At.concat([Xt]).sort(function(jr,ao){var fa=Number.isNaN(Number(jr))?0:Number(jr),_o=Number.isNaN(Number(ao))?0:Number(ao);return fa-_o})},gi="".concat(rn,"-options");if(!en&&!ee)return null;var hr=null,Or=null,sr=null;return en&&Mn&&(hr=Mn({disabled:on,size:Xt,onSizeChange:function(jr){Tt==null||Tt(Number(jr))},"aria-label":Ct.page_size,className:"".concat(gi,"-size-changer"),options:di().map(function(Di){return{label:Ai(Di),value:Di}})})),ee&&(kt&&(sr=typeof kt=="boolean"?ue.createElement("button",{type:"button",onClick:mi,onKeyUp:mi,disabled:on,className:"".concat(gi,"-quick-jumper-button")},Ct.jump_to_confirm):ue.createElement("span",{onClick:mi,onKeyUp:mi},kt)),Or=ue.createElement("div",{className:"".concat(gi,"-quick-jumper")},Ct.jump_to,ue.createElement("input",{disabled:on,type:"text",value:ni,onChange:Ki,onKeyUp:mi,onBlur:ii,"aria-label":Ct.page}),Ct.page,sr)),ue.createElement("li",{className:gi},hr,Or)},sn=Ee,Tn=function(Te){var Ht=Te.rootPrefixCls,At=Te.page,Ct=Te.active,Tt=Te.className,Xt=Te.showTitle,kt=Te.onClick,ee=Te.onKeyPress,rn=Te.itemRender,on="".concat(Ht,"-item"),Un=Jt()(on,"".concat(on,"-").concat(At),(0,Lt.Z)((0,Lt.Z)({},"".concat(on,"-active"),Ct),"".concat(on,"-disabled"),!At),Tt),en=function(){kt(At)},Mn=function(ni){ee(ni,kt,At)},Ke=rn(At,"page",ue.createElement("a",{rel:"nofollow"},At));return Ke?ue.createElement("li",{title:Xt?String(At):null,className:Un,onClick:en,onKeyDown:Mn,tabIndex:0},Ke):null},Le=Tn,gn=function(Te,Ht,At){return At};function $e(){}function Fn(dn){var Te=Number(dn);return typeof Te=="number"&&!Number.isNaN(Te)&&isFinite(Te)&&Math.floor(Te)===Te}function ke(dn,Te,Ht){var At=typeof dn=="undefined"?Te:dn;return Math.floor((Ht-1)/At)+1}var fe=function(Te){var Ht=Te.prefixCls,At=Ht===void 0?"rc-pagination":Ht,Ct=Te.selectPrefixCls,Tt=Ct===void 0?"rc-select":Ct,Xt=Te.className,kt=Te.current,ee=Te.defaultCurrent,rn=ee===void 0?1:ee,on=Te.total,Un=on===void 0?0:on,en=Te.pageSize,Mn=Te.defaultPageSize,Ke=Mn===void 0?10:Mn,jn=Te.onChange,ni=jn===void 0?$e:jn,Oi=Te.hideOnSinglePage,$n=Te.align,Ai=Te.showPrevNextJumpers,Ki=Ai===void 0?!0:Ai,ii=Te.showQuickJumper,mi=Te.showLessItems,di=Te.showTitle,gi=di===void 0?!0:di,hr=Te.onShowSizeChange,Or=hr===void 0?$e:hr,sr=Te.locale,Di=sr===void 0?$t.Z:sr,jr=Te.style,ao=Te.totalBoundaryShowSizeChanger,fa=ao===void 0?50:ao,_o=Te.disabled,ta=Te.simple,Ga=Te.showTotal,zo=Te.showSizeChanger,gr=zo===void 0?Un>fa:zo,vn=Te.sizeChangerRender,wt=Te.pageSizeOptions,Ve=Te.itemRender,Ye=Ve===void 0?gn:Ve,xn=Te.jumpPrevIcon,fn=Te.jumpNextIcon,ln=Te.prevIcon,Yn=Te.nextIcon,Li=ue.useRef(null),Ge=ht(10,{value:en,defaultValue:Ke}),je=(0,Ae.Z)(Ge,2),we=je[0],Ze=je[1],ai=ht(1,{value:kt,defaultValue:rn,postState:function(vr){return Math.max(1,Math.min(vr,ke(void 0,we,Un)))}}),ui=(0,Ae.Z)(ai,2),qn=ui[0],ze=ui[1],yn=ue.useState(qn),Ni=(0,Ae.Z)(yn,2),Yi=Ni[0],Dn=Ni[1];(0,ue.useEffect)(function(){Dn(qn)},[qn]);var De=ni!==$e,xi="current"in Te,Ui=Math.max(1,qn-(mi?3:5)),Tr=Math.min(ke(void 0,we,Un),qn+(mi?3:5));function Cn(un,vr){var oo=un||ue.createElement("button",{type:"button","aria-label":vr,className:"".concat(At,"-item-link")});return typeof un=="function"&&(oo=ue.createElement(un,(0,Ne.Z)({},Te))),oo}function Ri(un){var vr=un.target.value,oo=ke(void 0,we,Un),za;return vr===""?za=vr:Number.isNaN(Number(vr))?za=Yi:vr>=oo?za=oo:za=Number(vr),za}function ro(un){return Fn(un)&&un!==qn&&Fn(Un)&&Un>0}var Sa=Un>we?ii:!1;function bo(un){(un.keyCode===gt.UP||un.keyCode===gt.DOWN)&&un.preventDefault()}function ki(un){var vr=Ri(un);switch(vr!==Yi&&Dn(vr),un.keyCode){case gt.ENTER:to(vr);break;case gt.UP:to(vr-1);break;case gt.DOWN:to(vr+1);break;default:break}}function Bi(un){to(Ri(un))}function Hi(un){var vr=ke(un,we,Un),oo=qn>vr&&vr!==0?vr:qn;Ze(un),Dn(oo),Or==null||Or(qn,un),ze(oo),ni==null||ni(oo,un)}function to(un){if(ro(un)&&!_o){var vr=ke(void 0,we,Un),oo=un;return un>vr?oo=vr:un<1&&(oo=1),oo!==Yi&&Dn(oo),ze(oo),ni==null||ni(oo,we),oo}return qn}var Yr=qn>1,ti=qn<ke(void 0,we,Un);function or(){Yr&&to(qn-1)}function pl(){ti&&to(qn+1)}function gs(){to(Ui)}function qa(){to(Tr)}function We(un,vr){if(un.key==="Enter"||un.charCode===gt.ENTER||un.keyCode===gt.ENTER){for(var oo=arguments.length,za=new Array(oo>2?oo-2:0),ka=2;ka<oo;ka++)za[ka-2]=arguments[ka];vr.apply(void 0,za)}}function mr(un){We(un,or)}function xo(un){We(un,pl)}function ir(un){We(un,gs)}function Ea(un){We(un,qa)}function mo(un){var vr=Ye(un,"prev",Cn(ln,"prev page"));return ue.isValidElement(vr)?ue.cloneElement(vr,{disabled:!Yr}):vr}function To(un){var vr=Ye(un,"next",Cn(Yn,"next page"));return ue.isValidElement(vr)?ue.cloneElement(vr,{disabled:!ti}):vr}function so(un){(un.type==="click"||un.keyCode===gt.ENTER)&&to(Yi)}var Hr=null,ea=_t(Te,{aria:!0,data:!0}),Ln=Ga&&ue.createElement("li",{className:"".concat(At,"-total-text")},Ga(Un,[Un===0?0:(qn-1)*we+1,qn*we>Un?Un:qn*we])),La=null,pn=ke(void 0,we,Un);if(Oi&&Un<=we)return null;var vo=[],Fs={rootPrefixCls:At,onClick:to,onKeyPress:We,showTitle:gi,itemRender:Ye,page:-1},Ia=qn-1>0?qn-1:0,$s=qn+1<pn?qn+1:pn,Ca=ii&&ii.goButton,Fo=(0,Be.Z)(ta)==="object"?ta.readOnly:!ta,Fa=Ca,al=null;ta&&(Ca&&(typeof Ca=="boolean"?Fa=ue.createElement("button",{type:"button",onClick:so,onKeyUp:so},Di.jump_to_confirm):Fa=ue.createElement("span",{onClick:so,onKeyUp:so},Ca),Fa=ue.createElement("li",{title:gi?"".concat(Di.jump_to).concat(qn,"/").concat(pn):null,className:"".concat(At,"-simple-pager")},Fa)),al=ue.createElement("li",{title:gi?"".concat(qn,"/").concat(pn):null,className:"".concat(At,"-simple-pager")},Fo?Yi:ue.createElement("input",{type:"text","aria-label":Di.jump_to,value:Yi,disabled:_o,onKeyDown:bo,onKeyUp:ki,onChange:ki,onBlur:Bi,size:3}),ue.createElement("span",{className:"".concat(At,"-slash")},"/"),pn));var la=mi?1:2;if(pn<=3+la*2){pn||vo.push(ue.createElement(Le,(0,ie.Z)({},Fs,{key:"noPager",page:1,className:"".concat(At,"-item-disabled")})));for(var yi=1;yi<=pn;yi+=1)vo.push(ue.createElement(Le,(0,ie.Z)({},Fs,{key:yi,page:yi,active:qn===yi})))}else{var Qt=mi?Di.prev_3:Di.prev_5,os=mi?Di.next_3:Di.next_5,uu=Ye(Ui,"jump-prev",Cn(xn,"prev page")),hu=Ye(Tr,"jump-next",Cn(fn,"next page"));Ki&&(Hr=uu?ue.createElement("li",{title:gi?Qt:null,key:"prev",onClick:gs,tabIndex:0,onKeyDown:ir,className:Jt()("".concat(At,"-jump-prev"),(0,Lt.Z)({},"".concat(At,"-jump-prev-custom-icon"),!!xn))},uu):null,La=hu?ue.createElement("li",{title:gi?os:null,key:"next",onClick:qa,tabIndex:0,onKeyDown:Ea,className:Jt()("".concat(At,"-jump-next"),(0,Lt.Z)({},"".concat(At,"-jump-next-custom-icon"),!!fn))},hu):null);var Ys=Math.max(1,qn-la),cu=Math.min(qn+la,pn);qn-1<=la&&(cu=1+la*2),pn-qn<=la&&(Ys=pn-la*2);for(var tl=Ys;tl<=cu;tl+=1)vo.push(ue.createElement(Le,(0,ie.Z)({},Fs,{key:tl,page:tl,active:qn===tl})));if(qn-1>=la*2&&qn!==3&&(vo[0]=ue.cloneElement(vo[0],{className:Jt()("".concat(At,"-item-after-jump-prev"),vo[0].props.className)}),vo.unshift(Hr)),pn-qn>=la*2&&qn!==pn-2){var Mh=vo[vo.length-1];vo[vo.length-1]=ue.cloneElement(Mh,{className:Jt()("".concat(At,"-item-before-jump-next"),Mh.props.className)}),vo.push(La)}Ys!==1&&vo.unshift(ue.createElement(Le,(0,ie.Z)({},Fs,{key:1,page:1}))),cu!==pn&&vo.push(ue.createElement(Le,(0,ie.Z)({},Fs,{key:pn,page:pn})))}var Cu=mo(Ia);if(Cu){var Ma=!Yr||!pn;Cu=ue.createElement("li",{title:gi?Di.prev_page:null,onClick:or,tabIndex:Ma?null:0,onKeyDown:mr,className:Jt()("".concat(At,"-prev"),(0,Lt.Z)({},"".concat(At,"-disabled"),Ma)),"aria-disabled":Ma},Cu)}var Ja=To($s);if(Ja){var cr,Xi;ta?(cr=!ti,Xi=Yr?0:null):(cr=!ti||!pn,Xi=cr?null:0),Ja=ue.createElement("li",{title:gi?Di.next_page:null,onClick:pl,tabIndex:Xi,onKeyDown:xo,className:Jt()("".concat(At,"-next"),(0,Lt.Z)({},"".concat(At,"-disabled"),cr)),"aria-disabled":cr},Ja)}var Rr=Jt()(At,Xt,(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},"".concat(At,"-start"),$n==="start"),"".concat(At,"-center"),$n==="center"),"".concat(At,"-end"),$n==="end"),"".concat(At,"-simple"),ta),"".concat(At,"-disabled"),_o));return ue.createElement("ul",(0,ie.Z)({className:Rr,style:jr,ref:Li},ea),Ln,Cu,ta?al:vo,Ja,ue.createElement(sn,{locale:Di,rootPrefixCls:At,disabled:_o,selectPrefixCls:Tt,changeSize:Hi,pageSize:we,pageSizeOptions:wt,quickGo:Sa?to:null,goButton:Fa,showSizeChanger:gr,sizeChangerRender:vn}))},Re=fe},63697:function(Pn,Hn,Ft){"use strict";var Lt=Ft(27484),ie=Ft.n(Lt),Be=Ft(6833),Ne=Ft.n(Be),Ae=Ft(96036),Dt=Ft.n(Ae),Jt=Ft(55183),ue=Ft.n(Jt),ce=Ft(172),ye=Ft.n(ce),Je=Ft(28734),de=Ft.n(Je),It=Ft(10285),Nt=Ft.n(It);ie().extend(Nt()),ie().extend(de()),ie().extend(Ne()),ie().extend(Dt()),ie().extend(ue()),ie().extend(ye()),ie().extend(function(gt,mt){var St=mt.prototype,Mt=St.format;St.format=function(qt){var re=(qt||"").replace("Wo","wo");return Mt.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 St=nt[mt];return St||mt.split("_")[0]},ht=function(){},lt={getNow:function(){var mt=ie()();return typeof mt.tz=="function"?mt.tz():mt},getFixedDate:function(mt){return ie()(mt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(mt){return mt.endOf("month")},getWeekDay:function(mt){var St=mt.locale("en");return St.weekday()+St.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,St){return mt.add(St,"year")},addMonth:function(mt,St){return mt.add(St,"month")},addDate:function(mt,St){return mt.add(St,"day")},setYear:function(mt,St){return mt.year(St)},setMonth:function(mt,St){return mt.month(St)},setDate:function(mt,St){return mt.date(St)},setHour:function(mt,St){return mt.hour(St)},setMinute:function(mt,St){return mt.minute(St)},setSecond:function(mt,St){return mt.second(St)},setMillisecond:function(mt,St){return mt.millisecond(St)},isAfter:function(mt,St){return mt.isAfter(St)},isValidate:function(mt){return mt.isValid()},locale:{getWeekFirstDay:function(mt){return ie()().locale(et(mt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(mt,St){return St.locale(et(mt)).weekday(0)},getWeek:function(mt,St){return St.locale(et(mt)).week()},getShortWeekDays:function(mt){return ie()().locale(et(mt)).localeData().weekdaysMin()},getShortMonths:function(mt){return ie()().locale(et(mt)).localeData().monthsShort()},format:function(mt,St,Mt){return St.locale(et(mt)).format(Mt)},parse:function(mt,St,Mt){for(var zt=et(mt),qt=0;qt<Mt.length;qt+=1){var re=Mt[qt],_t=St;if(re.includes("wo")||re.includes("Wo")){for(var Zt=_t.split("-")[0],Pe=_t.split("-")[1],ge=ie()(Zt,"YYYY").startOf("year").locale(zt),Fe=0;Fe<=52;Fe+=1){var He=ge.add(Fe,"week");if(He.format("Wo")===Pe)return He}return ht(),null}var Ie=ie()(_t,re,!0).locale(zt);if(Ie.isValid())return Ie}return St&&ht(),null}}};Hn.Z=lt},24465:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Sq:function(){return na},ZP:function(){return Ku}});function Lt(){return Lt=Object.assign?Object.assign.bind():function(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt];for(var Kt in Ot)({}).hasOwnProperty.call(Ot,Kt)&&(yt[Kt]=Ot[Kt])}return yt},Lt.apply(null,arguments)}function ie(yt,Bt){(Bt==null||Bt>yt.length)&&(Bt=yt.length);for(var Ot=0,Kt=Array(Bt);Ot<Bt;Ot++)Kt[Ot]=yt[Ot];return Kt}function Be(yt){if(Array.isArray(yt))return ie(yt)}function Ne(yt){if(typeof Symbol!="undefined"&&yt[Symbol.iterator]!=null||yt["@@iterator"]!=null)return Array.from(yt)}function Ae(yt,Bt){if(yt){if(typeof yt=="string")return ie(yt,Bt);var Ot={}.toString.call(yt).slice(8,-1);return Ot==="Object"&&yt.constructor&&(Ot=yt.constructor.name),Ot==="Map"||Ot==="Set"?Array.from(yt):Ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ot)?ie(yt,Bt):void 0}}function Dt(){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 Jt(yt){return Be(yt)||Ne(yt)||Ae(yt)||Dt()}var ue=Ft(46394);function ce(yt){if(Array.isArray(yt))return yt}function ye(yt,Bt){var Ot=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(Ot!=null){var Kt,le,Ce,Ue,tn=[],wn=!0,Bn=!1;try{if(Ce=(Ot=Ot.call(yt)).next,Bt===0){if(Object(Ot)!==Ot)return;wn=!1}else for(;!(wn=(Kt=Ce.call(Ot)).done)&&(tn.push(Kt.value),tn.length!==Bt);wn=!0);}catch(hn){Bn=!0,le=hn}finally{try{if(!wn&&Ot.return!=null&&(Ue=Ot.return(),Object(Ue)!==Ue))return}finally{if(Bn)throw le}}return tn}}function Je(){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 de(yt,Bt){return ce(yt)||ye(yt,Bt)||Ae(yt,Bt)||Je()}var It=Ft(67294);function Nt(yt){var Bt=It.useRef();Bt.current=yt;var Ot=It.useCallback(function(){for(var Kt,le=arguments.length,Ce=new Array(le),Ue=0;Ue<le;Ue++)Ce[Ue]=arguments[Ue];return(Kt=Bt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[Bt].concat(Ce))},[]);return Ot}function nt(yt){if(Array.isArray(yt))return yt}function et(yt,Bt){var Ot=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(Ot!=null){var Kt,le,Ce,Ue,tn=[],wn=!0,Bn=!1;try{if(Ce=(Ot=Ot.call(yt)).next,Bt===0){if(Object(Ot)!==Ot)return;wn=!1}else for(;!(wn=(Kt=Ce.call(Ot)).done)&&(tn.push(Kt.value),tn.length!==Bt);wn=!0);}catch(hn){Bn=!0,le=hn}finally{try{if(!wn&&Ot.return!=null&&(Ue=Ot.return(),Object(Ue)!==Ue))return}finally{if(Bn)throw le}}return tn}}function ht(yt,Bt){(Bt==null||Bt>yt.length)&&(Bt=yt.length);for(var Ot=0,Kt=new Array(Bt);Ot<Bt;Ot++)Kt[Ot]=yt[Ot];return Kt}function lt(yt,Bt){if(yt){if(typeof yt=="string")return ht(yt,Bt);var Ot=Object.prototype.toString.call(yt).slice(8,-1);if(Ot==="Object"&&yt.constructor&&(Ot=yt.constructor.name),Ot==="Map"||Ot==="Set")return Array.from(yt);if(Ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ot))return ht(yt,Bt)}}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,Bt){return nt(yt)||et(yt,Bt)||lt(yt,Bt)||gt()}function St(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Mt=St()?It.useLayoutEffect:It.useEffect,zt=function(Bt,Ot){var Kt=It.useRef(!0);Mt(function(){return Bt(Kt.current)},Ot),Mt(function(){return Kt.current=!1,function(){Kt.current=!0}},[])},qt=function(Bt,Ot){zt(function(Kt){if(!Kt)return Bt()},Ot)},re=zt;function _t(yt){var Bt=It.useRef(!1),Ot=It.useState(yt),Kt=mt(Ot,2),le=Kt[0],Ce=Kt[1];It.useEffect(function(){return Bt.current=!1,function(){Bt.current=!0}},[]);function Ue(tn,wn){wn&&Bt.current||Ce(tn)}return[le,Ue]}function Zt(yt){return yt!==void 0}function Pe(yt,Bt){var Ot=Bt||{},Kt=Ot.defaultValue,le=Ot.value,Ce=Ot.onChange,Ue=Ot.postState,tn=_t(function(){return Zt(le)?le:Zt(Kt)?typeof Kt=="function"?Kt():Kt:typeof yt=="function"?yt():yt}),wn=mt(tn,2),Bn=wn[0],hn=wn[1],oi=le!==void 0?le:Bn,Pi=Ue?Ue(oi):oi,pi=Nt(Ce),Qn=_t([oi]),hi=mt(Qn,2),si=hi[0],Nn=hi[1];qt(function(){var Rn=si[0];Bn!==Rn&&pi(Bn,Rn)},[si]),qt(function(){Zt(le)||hn(le)},[le]);var Vn=Nt(function(Rn,ei){hn(Rn,ei),Nn([oi],ei)});return[Pi,Vn]}function ge(yt){"@babel/helpers - typeof";return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bt){return typeof Bt}:function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},ge(yt)}var Fe=Ft(17756);function He(yt,Bt,Ot){var Kt=It.useRef({});return(!("value"in Kt.current)||Ot(Kt.current.condition,Bt))&&(Kt.current.value=yt(),Kt.current.condition=Bt),Kt.current.value}var Ie=Symbol.for("react.element"),In=Symbol.for("react.transitional.element"),bn=Symbol.for("react.fragment");function cn(yt){return yt&&ge(yt)==="object"&&(yt.$$typeof===Ie||yt.$$typeof===In)&&yt.type===bn}var Xn=Number(It.version.split(".")[0]),$t=function(Bt,Ot){typeof Bt=="function"?Bt(Ot):ge(Bt)==="object"&&Bt&&"current"in Bt&&(Bt.current=Ot)},jt=function(){for(var Bt=arguments.length,Ot=new Array(Bt),Kt=0;Kt<Bt;Kt++)Ot[Kt]=arguments[Kt];var le=Ot.filter(Boolean);return le.length<=1?le[0]:function(Ce){Ot.forEach(function(Ue){$t(Ue,Ce)})}},Ee=function(){for(var Bt=arguments.length,Ot=new Array(Bt),Kt=0;Kt<Bt;Kt++)Ot[Kt]=arguments[Kt];return He(function(){return jt.apply(void 0,Ot)},Ot,function(le,Ce){return le.length!==Ce.length||le.every(function(Ue,tn){return Ue!==Ce[tn]})})},sn=function(Bt){var Ot,Kt;if(!Bt)return!1;if(Tn(Bt)&&Xn>=19)return!0;var le=(0,Fe.isMemo)(Bt)?Bt.type.type:Bt.type;return!(typeof le=="function"&&!((Ot=le.prototype)!==null&&Ot!==void 0&&Ot.render)&&le.$$typeof!==Fe.ForwardRef||typeof Bt=="function"&&!((Kt=Bt.prototype)!==null&&Kt!==void 0&&Kt.render)&&Bt.$$typeof!==Fe.ForwardRef)};function Tn(yt){return(0,It.isValidElement)(yt)&&!cn(yt)}var Le=function(Bt){return Tn(Bt)&&sn(Bt)},gn=function(Bt){if(Bt&&Tn(Bt)){var Ot=Bt;return Ot.props.propertyIsEnumerable("ref")?Ot.props.ref:Ot.ref}return null};function $e(yt,Bt,Ot,Kt){if(!Bt.length)return Ot;var le=_toArray(Bt),Ce=le[0],Ue=le.slice(1),tn;return!yt&&typeof Ce=="number"?tn=[]:Array.isArray(yt)?tn=_toConsumableArray(yt):tn=_objectSpread({},yt),Kt&&Ot===void 0&&Ue.length===1?delete tn[Ce][Ue[0]]:tn[Ce]=$e(tn[Ce],Ue,Ot,Kt),tn}function Fn(yt,Bt,Ot){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Bt.length&&Kt&&Ot===void 0&&!get(yt,Bt.slice(0,-1))?yt:$e(yt,Bt,Ot,Kt)}function ke(yt){return _typeof(yt)==="object"&&yt!==null&&Object.getPrototypeOf(yt)===Object.prototype}function fe(yt){return Array.isArray(yt)?[]:{}}var Re=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function dn(){for(var yt=arguments.length,Bt=new Array(yt),Ot=0;Ot<yt;Ot++)Bt[Ot]=arguments[Ot];var Kt=fe(Bt[0]);return Bt.forEach(function(le){function Ce(Ue,tn){var wn=new Set(tn),Bn=get(le,Ue),hn=Array.isArray(Bn);if(hn||ke(Bn)){if(!wn.has(Bn)){wn.add(Bn);var oi=get(Kt,Ue);hn?Kt=Fn(Kt,Ue,[]):(!oi||_typeof(oi)!=="object")&&(Kt=Fn(Kt,Ue,fe(Bn))),Re(Bn).forEach(function(Pi){Ce([].concat(_toConsumableArray(Ue),[Pi]),wn)})}}else Kt=Fn(Kt,Ue,Bn)}Ce([])}),Kt}var Te={},Ht=[],At=function(Bt){Ht.push(Bt)};function Ct(yt,Bt){if(0)var Ot}function Tt(yt,Bt){if(0)var Ot}function Xt(){Te={}}function kt(yt,Bt,Ot){!Bt&&!Te[Ot]&&(yt(!1,Ot),Te[Ot]=!0)}function ee(yt,Bt){kt(Ct,yt,Bt)}function rn(yt,Bt){kt(Tt,yt,Bt)}ee.preMessage=At,ee.resetWarned=Xt,ee.noteOnce=rn;var on=ee;function Un(yt,Bt){var Ot=Object.assign({},yt);return Array.isArray(Bt)&&Bt.forEach(function(Kt){delete Ot[Kt]}),Ot}function en(yt,Bt){if(ge(yt)!=="object"||yt===null)return yt;var Ot=yt[Symbol.toPrimitive];if(Ot!==void 0){var Kt=Ot.call(yt,Bt||"default");if(ge(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Bt==="string"?String:Number)(yt)}function Mn(yt){var Bt=en(yt,"string");return ge(Bt)==="symbol"?Bt:String(Bt)}function Ke(yt,Bt,Ot){return Bt=Mn(Bt),Bt in yt?Object.defineProperty(yt,Bt,{value:Ot,enumerable:!0,configurable:!0,writable:!0}):yt[Bt]=Ot,yt}function jn(yt,Bt){var Ot=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Bt&&(Kt=Kt.filter(function(le){return Object.getOwnPropertyDescriptor(yt,le).enumerable})),Ot.push.apply(Ot,Kt)}return Ot}function ni(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt]!=null?arguments[Bt]:{};Bt%2?jn(Object(Ot),!0).forEach(function(Kt){Ke(yt,Kt,Ot[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(Ot)):jn(Object(Ot)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(Ot,Kt))})}return yt}var Oi=`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`,$n=`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`,Ai="".concat(Oi," ").concat($n).split(/[\s\n]+/),Ki="aria-",ii="data-";function mi(yt,Bt){return yt.indexOf(Bt)===0}function di(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot;Bt===!1?Ot={aria:!0,data:!0,attr:!0}:Bt===!0?Ot={aria:!0}:Ot=ni({},Bt);var Kt={};return Object.keys(yt).forEach(function(le){(Ot.aria&&(le==="role"||mi(le,Ki))||Ot.data&&mi(le,ii)||Ot.attr&&Ai.includes(le))&&(Kt[le]=yt[le])}),Kt}var gi=Ft(53550),hr=Ft(98280),Or=Ft(94184),sr=Ft.n(Or);function Di(yt,Bt){return yt!==void 0?yt:Bt?"bottomRight":"bottomLeft"}var jr=It.createContext(null),ao=jr,fa={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 _o(yt){var Bt=yt.popupElement,Ot=yt.popupStyle,Kt=yt.popupClassName,le=yt.popupAlign,Ce=yt.transitionName,Ue=yt.getPopupContainer,tn=yt.children,wn=yt.range,Bn=yt.placement,hn=yt.builtinPlacements,oi=hn===void 0?fa:hn,Pi=yt.direction,pi=yt.visible,Qn=yt.onClose,hi=It.useContext(ao),si=hi.prefixCls,Nn="".concat(si,"-dropdown"),Vn=Di(Bn,Pi==="rtl");return It.createElement(hr.Z,{showAction:[],hideAction:["click"],popupPlacement:Vn,builtinPlacements:oi,prefixCls:Nn,popupTransitionName:Ce,popup:Bt,popupAlign:le,popupVisible:pi,popupClassName:sr()(Kt,(0,gi.Z)((0,gi.Z)({},"".concat(Nn,"-range"),wn),"".concat(Nn,"-rtl"),Pi==="rtl")),popupStyle:Ot,stretch:"minWidth",getPopupContainer:Ue,onPopupVisibleChange:function(ei){ei||Qn()}},tn)}var ta=_o;function Ga(yt,Bt){for(var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Kt=String(yt);Kt.length<Bt;)Kt="".concat(Ot).concat(Kt);return Kt}function zo(yt){return yt==null?[]:Array.isArray(yt)?yt:[yt]}function gr(yt,Bt,Ot){var Kt=Jt(yt);return Kt[Bt]=Ot,Kt}function vn(yt,Bt){var Ot={},Kt=Bt||Object.keys(yt);return Kt.forEach(function(le){yt[le]!==void 0&&(Ot[le]=yt[le])}),Ot}function wt(yt,Bt,Ot){if(Ot)return Ot;switch(yt){case"time":return Bt.fieldTimeFormat;case"datetime":return Bt.fieldDateTimeFormat;case"month":return Bt.fieldMonthFormat;case"year":return Bt.fieldYearFormat;case"quarter":return Bt.fieldQuarterFormat;case"week":return Bt.fieldWeekFormat;default:return Bt.fieldDateFormat}}function Ve(yt,Bt,Ot){var Kt=Ot!==void 0?Ot:Bt[Bt.length-1],le=Bt.find(function(Ce){return yt[Ce]});return Kt!==le?yt[le]:void 0}function Ye(yt){return vn(yt,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function xn(yt,Bt,Ot,Kt){var le=It.useMemo(function(){return yt||function(Ue,tn){var wn=Ue;return Bt&&tn.type==="date"?Bt(wn,tn.today):Ot&&tn.type==="month"?Ot(wn,tn.locale):tn.originNode}},[yt,Ot,Bt]),Ce=It.useCallback(function(Ue,tn){return le(Ue,(0,ue.Z)((0,ue.Z)({},tn),{},{range:Kt}))},[le,Kt]);return Ce}function fn(yt,Bt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Kt=It.useState([!1,!1]),le=de(Kt,2),Ce=le[0],Ue=le[1],tn=function(hn,oi){Ue(function(Pi){return gr(Pi,oi,hn)})},wn=It.useMemo(function(){return Ce.map(function(Bn,hn){if(Bn)return!0;var oi=yt[hn];return oi?!!(!Ot[hn]&&!oi||oi&&Bt(oi,{activeIndex:hn})):!1})},[yt,Ce,Bt,Ot]);return[wn,tn]}function ln(yt,Bt,Ot,Kt,le){var Ce="",Ue=[];return yt&&Ue.push(le?"hh":"HH"),Bt&&Ue.push("mm"),Ot&&Ue.push("ss"),Ce=Ue.join(":"),Kt&&(Ce+=".SSS"),le&&(Ce+=" A"),Ce}function Yn(yt,Bt,Ot,Kt,le,Ce){var Ue=yt.fieldDateTimeFormat,tn=yt.fieldDateFormat,wn=yt.fieldTimeFormat,Bn=yt.fieldMonthFormat,hn=yt.fieldYearFormat,oi=yt.fieldWeekFormat,Pi=yt.fieldQuarterFormat,pi=yt.yearFormat,Qn=yt.cellYearFormat,hi=yt.cellQuarterFormat,si=yt.dayFormat,Nn=yt.cellDateFormat,Vn=ln(Bt,Ot,Kt,le,Ce);return(0,ue.Z)((0,ue.Z)({},yt),{},{fieldDateTimeFormat:Ue||"YYYY-MM-DD ".concat(Vn),fieldDateFormat:tn||"YYYY-MM-DD",fieldTimeFormat:wn||Vn,fieldMonthFormat:Bn||"YYYY-MM",fieldYearFormat:hn||"YYYY",fieldWeekFormat:oi||"gggg-wo",fieldQuarterFormat:Pi||"YYYY-[Q]Q",yearFormat:pi||"YYYY",cellYearFormat:Qn||"YYYY",cellQuarterFormat:hi||"[Q]Q",cellDateFormat:Nn||si||"D"})}function Li(yt,Bt){var Ot=Bt.showHour,Kt=Bt.showMinute,le=Bt.showSecond,Ce=Bt.showMillisecond,Ue=Bt.use12Hours;return It.useMemo(function(){return Yn(yt,Ot,Kt,le,Ce,Ue)},[yt,Ot,Kt,le,Ce,Ue])}var Ge=Ft(19706);function je(yt,Bt,Ot){return Ot!=null?Ot:Bt.some(function(Kt){return yt.includes(Kt)})}var we=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Ze(yt){var Bt=vn(yt,we),Ot=yt.format,Kt=yt.picker,le=null;return Ot&&(le=Ot,Array.isArray(le)&&(le=le[0]),le=(0,Ge.Z)(le)==="object"?le.format:le),Kt==="time"&&(Bt.format=le),[Bt,le]}function ai(yt){return yt&&typeof yt=="string"}function ui(yt,Bt,Ot,Kt){return[yt,Bt,Ot,Kt].some(function(le){return le!==void 0})}function qn(yt,Bt,Ot,Kt,le){var Ce=Bt,Ue=Ot,tn=Kt;if(!yt&&!Ce&&!Ue&&!tn&&!le)Ce=!0,Ue=!0,tn=!0;else if(yt){var wn,Bn,hn,oi=[Ce,Ue,tn].some(function(Qn){return Qn===!1}),Pi=[Ce,Ue,tn].some(function(Qn){return Qn===!0}),pi=oi?!0:!Pi;Ce=(wn=Ce)!==null&&wn!==void 0?wn:pi,Ue=(Bn=Ue)!==null&&Bn!==void 0?Bn:pi,tn=(hn=tn)!==null&&hn!==void 0?hn:pi}return[Ce,Ue,tn,le]}function ze(yt){var Bt=yt.showTime,Ot=Ze(yt),Kt=de(Ot,2),le=Kt[0],Ce=Kt[1],Ue=Bt&&(0,Ge.Z)(Bt)==="object"?Bt:{},tn=(0,ue.Z)((0,ue.Z)({defaultOpenValue:Ue.defaultOpenValue||Ue.defaultValue},le),Ue),wn=tn.showMillisecond,Bn=tn.showHour,hn=tn.showMinute,oi=tn.showSecond,Pi=ui(Bn,hn,oi,wn),pi=qn(Pi,Bn,hn,oi,wn),Qn=de(pi,3);return Bn=Qn[0],hn=Qn[1],oi=Qn[2],[tn,(0,ue.Z)((0,ue.Z)({},tn),{},{showHour:Bn,showMinute:hn,showSecond:oi,showMillisecond:wn}),tn.format,Ce]}function yn(yt,Bt,Ot,Kt,le){var Ce=yt==="time";if(yt==="datetime"||Ce){for(var Ue=Kt,tn=wt(yt,le,null),wn=tn,Bn=[Bt,Ot],hn=0;hn<Bn.length;hn+=1){var oi=zo(Bn[hn])[0];if(ai(oi)){wn=oi;break}}var Pi=Ue.showHour,pi=Ue.showMinute,Qn=Ue.showSecond,hi=Ue.showMillisecond,si=Ue.use12Hours,Nn=je(wn,["a","A","LT","LLL","LTS"],si),Vn=ui(Pi,pi,Qn,hi);Vn||(Pi=je(wn,["H","h","k","LT","LLL"]),pi=je(wn,["m","LT","LLL"]),Qn=je(wn,["s","LTS"]),hi=je(wn,["SSS"]));var Rn=qn(Vn,Pi,pi,Qn,hi),ei=de(Rn,3);Pi=ei[0],pi=ei[1],Qn=ei[2];var bi=Bt||ln(Pi,pi,Qn,hi,Nn);return(0,ue.Z)((0,ue.Z)({},Ue),{},{format:bi,showHour:Pi,showMinute:pi,showSecond:Qn,showMillisecond:hi,use12Hours:Nn})}return null}function Ni(yt,Bt,Ot){if(Bt===!1)return null;var Kt=Bt&&(0,Ge.Z)(Bt)==="object"?Bt:{};return Kt.clearIcon||Ot||It.createElement("span",{className:"".concat(yt,"-clear-btn")})}var Yi=7;function Dn(yt,Bt,Ot){return!yt&&!Bt||yt===Bt?!0:!yt||!Bt?!1:Ot()}function De(yt,Bt,Ot){return Dn(Bt,Ot,function(){var Kt=Math.floor(yt.getYear(Bt)/10),le=Math.floor(yt.getYear(Ot)/10);return Kt===le})}function xi(yt,Bt,Ot){return Dn(Bt,Ot,function(){return yt.getYear(Bt)===yt.getYear(Ot)})}function Ui(yt,Bt){var Ot=Math.floor(yt.getMonth(Bt)/3);return Ot+1}function Tr(yt,Bt,Ot){return Dn(Bt,Ot,function(){return xi(yt,Bt,Ot)&&Ui(yt,Bt)===Ui(yt,Ot)})}function Cn(yt,Bt,Ot){return Dn(Bt,Ot,function(){return xi(yt,Bt,Ot)&&yt.getMonth(Bt)===yt.getMonth(Ot)})}function Ri(yt,Bt,Ot){return Dn(Bt,Ot,function(){return xi(yt,Bt,Ot)&&Cn(yt,Bt,Ot)&&yt.getDate(Bt)===yt.getDate(Ot)})}function ro(yt,Bt,Ot){return Dn(Bt,Ot,function(){return yt.getHour(Bt)===yt.getHour(Ot)&&yt.getMinute(Bt)===yt.getMinute(Ot)&&yt.getSecond(Bt)===yt.getSecond(Ot)})}function Sa(yt,Bt,Ot){return Dn(Bt,Ot,function(){return Ri(yt,Bt,Ot)&&ro(yt,Bt,Ot)&&yt.getMillisecond(Bt)===yt.getMillisecond(Ot)})}function bo(yt,Bt,Ot,Kt){return Dn(Ot,Kt,function(){var le=yt.locale.getWeekFirstDate(Bt,Ot),Ce=yt.locale.getWeekFirstDate(Bt,Kt);return xi(yt,le,Ce)&&yt.locale.getWeek(Bt,Ot)===yt.locale.getWeek(Bt,Kt)})}function ki(yt,Bt,Ot,Kt,le){switch(le){case"date":return Ri(yt,Ot,Kt);case"week":return bo(yt,Bt.locale,Ot,Kt);case"month":return Cn(yt,Ot,Kt);case"quarter":return Tr(yt,Ot,Kt);case"year":return xi(yt,Ot,Kt);case"decade":return De(yt,Ot,Kt);case"time":return ro(yt,Ot,Kt);default:return Sa(yt,Ot,Kt)}}function Bi(yt,Bt,Ot,Kt){return!Bt||!Ot||!Kt?!1:yt.isAfter(Kt,Bt)&&yt.isAfter(Ot,Kt)}function Hi(yt,Bt,Ot,Kt,le){return ki(yt,Bt,Ot,Kt,le)?!0:yt.isAfter(Ot,Kt)}function to(yt,Bt,Ot){var Kt=Bt.locale.getWeekFirstDay(yt),le=Bt.setDate(Ot,1),Ce=Bt.getWeekDay(le),Ue=Bt.addDate(le,Kt-Ce);return Bt.getMonth(Ue)===Bt.getMonth(Ot)&&Bt.getDate(Ue)>1&&(Ue=Bt.addDate(Ue,-7)),Ue}function Yr(yt,Bt){var Ot=Bt.generateConfig,Kt=Bt.locale,le=Bt.format;return yt?typeof le=="function"?le(yt):Ot.locale.format(Kt.locale,yt,le):""}function ti(yt,Bt,Ot){var Kt=Bt,le=["getHour","getMinute","getSecond","getMillisecond"],Ce=["setHour","setMinute","setSecond","setMillisecond"];return Ce.forEach(function(Ue,tn){Ot?Kt=yt[Ue](Kt,yt[le[tn]](Ot)):Kt=yt[Ue](Kt,0)}),Kt}function or(yt,Bt,Ot,Kt,le){var Ce=Nt(function(Ue,tn){return!!(Ot&&Ot(Ue,tn)||Kt&&yt.isAfter(Kt,Ue)&&!ki(yt,Bt,Kt,Ue,tn.type)||le&&yt.isAfter(Ue,le)&&!ki(yt,Bt,le,Ue,tn.type))});return Ce}function pl(yt,Bt,Ot){return It.useMemo(function(){var Kt=wt(yt,Bt,Ot),le=zo(Kt),Ce=le[0],Ue=(0,Ge.Z)(Ce)==="object"&&Ce.type==="mask"?Ce.format:null;return[le.map(function(tn){return typeof tn=="string"||typeof tn=="function"?tn:tn.format}),Ue]},[yt,Bt,Ot])}function gs(yt,Bt,Ot){return typeof yt[0]=="function"||Ot?!0:Bt}function qa(yt,Bt,Ot,Kt){var le=Nt(function(Ce,Ue){var tn=(0,ue.Z)({type:Bt},Ue);if(delete tn.activeIndex,!yt.isValidate(Ce)||Ot&&Ot(Ce,tn))return!0;if((Bt==="date"||Bt==="time")&&Kt){var wn,Bn=Ue&&Ue.activeIndex===1?"end":"start",hn=((wn=Kt.disabledTime)===null||wn===void 0?void 0:wn.call(Kt,Ce,Bn,{from:tn.from}))||{},oi=hn.disabledHours,Pi=hn.disabledMinutes,pi=hn.disabledSeconds,Qn=hn.disabledMilliseconds,hi=Kt.disabledHours,si=Kt.disabledMinutes,Nn=Kt.disabledSeconds,Vn=oi||hi,Rn=Pi||si,ei=pi||Nn,bi=yt.getHour(Ce),Mi=yt.getMinute(Ce),Ei=yt.getSecond(Ce),pe=yt.getMillisecond(Ce);if(Vn&&Vn().includes(bi)||Rn&&Rn(bi).includes(Mi)||ei&&ei(bi,Mi).includes(Ei)||Qn&&Qn(bi,Mi,Ei).includes(pe))return!0}return!1});return le}function We(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=It.useMemo(function(){var Kt=yt&&zo(yt);return Bt&&Kt&&(Kt[1]=Kt[1]||Kt[0]),Kt},[yt,Bt]);return Ot}function mr(yt,Bt){var Ot=yt.generateConfig,Kt=yt.locale,le=yt.picker,Ce=le===void 0?"date":le,Ue=yt.prefixCls,tn=Ue===void 0?"rc-picker":Ue,wn=yt.styles,Bn=wn===void 0?{}:wn,hn=yt.classNames,oi=hn===void 0?{}:hn,Pi=yt.order,pi=Pi===void 0?!0:Pi,Qn=yt.components,hi=Qn===void 0?{}:Qn,si=yt.inputRender,Nn=yt.allowClear,Vn=yt.clearIcon,Rn=yt.needConfirm,ei=yt.multiple,bi=yt.format,Mi=yt.inputReadOnly,Ei=yt.disabledDate,pe=yt.minDate,_i=yt.maxDate,er=yt.showTime,xr=yt.value,Gr=yt.defaultValue,dr=yt.pickerValue,Cr=yt.defaultPickerValue,Dr=We(xr),fr=We(Gr),Zr=We(dr),No=We(Cr),wo=Ce==="date"&&er?"datetime":Ce,yo=wo==="time"||wo==="datetime",Fr=yo||ei,ar=Rn!=null?Rn:yo,kr=ze(yt),nr=de(kr,4),Eo=nr[0],Go=nr[1],lo=nr[2],ko=nr[3],fo=Li(Kt,Go),Ko=It.useMemo(function(){return yn(wo,lo,ko,Eo,fo)},[wo,lo,ko,Eo,fo]),po=It.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},yt),{},{prefixCls:tn,locale:fo,picker:Ce,styles:Bn,classNames:oi,order:pi,components:(0,ue.Z)({input:si},hi),clearIcon:Ni(tn,Nn,Vn),showTime:Ko,value:Dr,defaultValue:fr,pickerValue:Zr,defaultPickerValue:No},Bt==null?void 0:Bt())},[yt]),qo=pl(wo,fo,bi),Ar=de(qo,2),Qi=Ar[0],Po=Ar[1],qr=gs(Qi,Mi,ei),ha=or(Ot,Kt,Ei,pe,_i),So=qa(Ot,Ce,ha,Ko),jo=It.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},po),{},{needConfirm:ar,inputReadOnly:qr,disabledDate:ha})},[po,ar,qr,ha]);return[jo,wo,Fr,Qi,Po,So]}var xo=function(Bt){return+setTimeout(Bt,16)},ir=function(Bt){return clearTimeout(Bt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(xo=function(Bt){return window.requestAnimationFrame(Bt)},ir=function(Bt){return window.cancelAnimationFrame(Bt)});var Ea=0,mo=new Map;function To(yt){mo.delete(yt)}var so=function(Bt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ea+=1;var Kt=Ea;function le(Ce){if(Ce===0)To(Kt),Bt();else{var Ue=xo(function(){le(Ce-1)});mo.set(Kt,Ue)}}return le(Ot),Kt};so.cancel=function(yt){var Bt=mo.get(yt);return To(yt),ir(Bt)};var Hr=so;function ea(yt,Bt,Ot){var Kt=Pe(Bt,{value:yt}),le=de(Kt,2),Ce=le[0],Ue=le[1],tn=It.useRef(yt),wn=It.useRef(),Bn=function(){Hr.cancel(wn.current)},hn=Nt(function(){Ue(tn.current),Ot&&Ce!==tn.current&&Ot(tn.current)}),oi=Nt(function(Pi,pi){Bn(),tn.current=Pi,Pi||pi?hn():wn.current=Hr(hn)});return It.useEffect(function(){return Bn},[]),[Ce,oi]}function Ln(yt,Bt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Kt=arguments.length>3?arguments[3]:void 0,le=Ot.every(function(hn){return hn})?!1:yt,Ce=ea(le,Bt||!1,Kt),Ue=de(Ce,2),tn=Ue[0],wn=Ue[1];function Bn(hn){var oi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!oi.inherit||tn)&&wn(hn,oi.force)}return[tn,Bn]}function La(yt){var Bt=It.useRef();return It.useImperativeHandle(yt,function(){var Ot;return{nativeElement:(Ot=Bt.current)===null||Ot===void 0?void 0:Ot.nativeElement,focus:function(le){var Ce;(Ce=Bt.current)===null||Ce===void 0||Ce.focus(le)},blur:function(){var le;(le=Bt.current)===null||le===void 0||le.blur()}}}),Bt}function pn(yt,Bt){return It.useMemo(function(){return yt||(Bt?(on(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Bt).map(function(Ot){var Kt=de(Ot,2),le=Kt[0],Ce=Kt[1];return{label:le,value:Ce}})):[])},[yt,Bt])}function vo(yt,Bt){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Kt=It.useRef(Bt);Kt.current=Bt,qt(function(){if(yt)Kt.current(yt);else{var le=Hr(function(){Kt.current(yt)},Ot);return function(){Hr.cancel(le)}}},[yt])}function Fs(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Kt=It.useState(0),le=de(Kt,2),Ce=le[0],Ue=le[1],tn=It.useState(!1),wn=de(tn,2),Bn=wn[0],hn=wn[1],oi=It.useRef([]),Pi=It.useRef(null),pi=It.useRef(null),Qn=function(ei){Pi.current=ei},hi=function(ei){return Pi.current===ei},si=function(ei){hn(ei)},Nn=function(ei){return ei&&(pi.current=ei),pi.current},Vn=function(ei){var bi=oi.current,Mi=new Set(bi.filter(function(pe){return ei[pe]||Bt[pe]})),Ei=bi[bi.length-1]===0?1:0;return Mi.size>=2||yt[Ei]?null:Ei};return vo(Bn||Ot,function(){Bn||(oi.current=[],Qn(null))}),It.useEffect(function(){Bn&&oi.current.push(Ce)},[Bn,Ce]),[Bn,si,Nn,Ce,Ue,Vn,oi.current,Qn,hi]}function Ia(yt,Bt,Ot,Kt,le,Ce){var Ue=Ot[Ot.length-1],tn=function(Bn,hn){var oi=de(yt,2),Pi=oi[0],pi=oi[1],Qn=(0,ue.Z)((0,ue.Z)({},hn),{},{from:Ve(yt,Ot)});return Ue===1&&Bt[0]&&Pi&&!ki(Kt,le,Pi,Bn,Qn.type)&&Kt.isAfter(Pi,Bn)||Ue===0&&Bt[1]&&pi&&!ki(Kt,le,pi,Bn,Qn.type)&&Kt.isAfter(Bn,pi)?!0:Ce==null?void 0:Ce(Bn,Qn)};return tn}function $s(yt,Bt,Ot,Kt){switch(Bt){case"date":case"week":return yt.addMonth(Ot,Kt);case"month":case"quarter":return yt.addYear(Ot,Kt);case"year":return yt.addYear(Ot,Kt*10);case"decade":return yt.addYear(Ot,Kt*100);default:return Ot}}var Ca=[];function Fo(yt,Bt,Ot,Kt,le,Ce,Ue,tn){var wn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ca,Bn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ca,hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ca,oi=arguments.length>11?arguments[11]:void 0,Pi=arguments.length>12?arguments[12]:void 0,pi=arguments.length>13?arguments[13]:void 0,Qn=Ue==="time",hi=Ce||0,si=function(Zr){var No=yt.getNow();return Qn&&(No=ti(yt,No)),wn[Zr]||Ot[Zr]||No},Nn=de(Bn,2),Vn=Nn[0],Rn=Nn[1],ei=Pe(function(){return si(0)},{value:Vn}),bi=de(ei,2),Mi=bi[0],Ei=bi[1],pe=Pe(function(){return si(1)},{value:Rn}),_i=de(pe,2),er=_i[0],xr=_i[1],Gr=It.useMemo(function(){var fr=[Mi,er][hi];return Qn?fr:ti(yt,fr,hn[hi])},[Qn,Mi,er,hi,yt,hn]),dr=function(Zr){var No=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",wo=[Ei,xr][hi];wo(Zr);var yo=[Mi,er];yo[hi]=Zr,oi&&(!ki(yt,Bt,Mi,yo[0],Ue)||!ki(yt,Bt,er,yo[1],Ue))&&oi(yo,{source:No,range:hi===1?"end":"start",mode:Kt})},Cr=function(Zr,No){if(tn){var wo={date:"month",week:"month",month:"year",quarter:"year"},yo=wo[Ue];if(yo&&!ki(yt,Bt,Zr,No,yo))return $s(yt,Ue,No,-1);if(Ue==="year"&&Zr){var Fr=Math.floor(yt.getYear(Zr)/10),ar=Math.floor(yt.getYear(No)/10);if(Fr!==ar)return $s(yt,Ue,No,-1)}}return No},Dr=It.useRef(null);return re(function(){if(le&&!wn[hi]){var fr=Qn?null:yt.getNow();if(Dr.current!==null&&Dr.current!==hi?fr=[Mi,er][hi^1]:Ot[hi]?fr=hi===0?Ot[0]:Cr(Ot[0],Ot[1]):Ot[hi^1]&&(fr=Ot[hi^1]),fr){Pi&&yt.isAfter(Pi,fr)&&(fr=Pi);var Zr=tn?$s(yt,Ue,fr,1):fr;pi&&yt.isAfter(Zr,pi)&&(fr=tn?$s(yt,Ue,pi,-1):pi),dr(fr,"reset")}}},[le,hi,Ot[hi]]),It.useEffect(function(){le?Dr.current=hi:Dr.current=null},[le,hi]),re(function(){le&&wn&&wn[hi]&&dr(wn[hi],"reset")},[le,hi]),[Gr,dr]}function Fa(yt,Bt){var Ot=It.useRef(yt),Kt=It.useState({}),le=de(Kt,2),Ce=le[1],Ue=function(Bn){return Bn&&Bt!==void 0?Bt:Ot.current},tn=function(Bn){Ot.current=Bn,Ce({})};return[Ue,tn,Ue(!0)]}var al=[];function la(yt,Bt,Ot){var Kt=function(Ue){return Ue.map(function(tn){return Yr(tn,{generateConfig:yt,locale:Bt,format:Ot[0]})})},le=function(Ue,tn){for(var wn=Math.max(Ue.length,tn.length),Bn=-1,hn=0;hn<wn;hn+=1){var oi=Ue[hn]||null,Pi=tn[hn]||null;if(oi!==Pi&&!Sa(yt,oi,Pi)){Bn=hn;break}}return[Bn<0,Bn!==0]};return[Kt,le]}function yi(yt,Bt){return Jt(yt).sort(function(Ot,Kt){return Bt.isAfter(Ot,Kt)?1:-1})}function Qt(yt){var Bt=Fa(yt),Ot=de(Bt,2),Kt=Ot[0],le=Ot[1],Ce=Nt(function(){le(yt)});return It.useEffect(function(){Ce()},[yt]),[Kt,le]}function os(yt,Bt,Ot,Kt,le,Ce,Ue,tn,wn){var Bn=Pe(Ce,{value:Ue}),hn=de(Bn,2),oi=hn[0],Pi=hn[1],pi=oi||al,Qn=Qt(pi),hi=de(Qn,2),si=hi[0],Nn=hi[1],Vn=la(yt,Bt,Ot),Rn=de(Vn,2),ei=Rn[0],bi=Rn[1],Mi=Nt(function(pe){var _i=Jt(pe);if(Kt)for(var er=0;er<2;er+=1)_i[er]=_i[er]||null;else le&&(_i=yi(_i.filter(function(fr){return fr}),yt));var xr=bi(si(),_i),Gr=de(xr,2),dr=Gr[0],Cr=Gr[1];if(!dr&&(Nn(_i),tn)){var Dr=ei(_i);tn(_i,Dr,{range:Cr?"end":"start"})}}),Ei=function(){wn&&wn(si())};return[pi,Pi,si,Mi,Ei]}function uu(yt,Bt,Ot,Kt,le,Ce,Ue,tn,wn,Bn){var hn=yt.generateConfig,oi=yt.locale,Pi=yt.picker,pi=yt.onChange,Qn=yt.allowEmpty,hi=yt.order,si=Ce.some(function(dr){return dr})?!1:hi,Nn=la(hn,oi,Ue),Vn=de(Nn,2),Rn=Vn[0],ei=Vn[1],bi=Fa(Bt),Mi=de(bi,2),Ei=Mi[0],pe=Mi[1],_i=Nt(function(){pe(Bt)});It.useEffect(function(){_i()},[Bt]);var er=Nt(function(dr){var Cr=dr===null,Dr=Jt(dr||Ei());if(Cr)for(var fr=Math.max(Ce.length,Dr.length),Zr=0;Zr<fr;Zr+=1)Ce[Zr]||(Dr[Zr]=null);si&&Dr[0]&&Dr[1]&&(Dr=yi(Dr,hn)),le(Dr);var No=Dr,wo=de(No,2),yo=wo[0],Fr=wo[1],ar=!yo,kr=!Fr,nr=Qn?(!ar||Qn[0])&&(!kr||Qn[1]):!0,Eo=!hi||ar||kr||ki(hn,oi,yo,Fr,Pi)||hn.isAfter(Fr,yo),Go=(Ce[0]||!yo||!Bn(yo,{activeIndex:0}))&&(Ce[1]||!Fr||!Bn(Fr,{from:yo,activeIndex:1})),lo=Cr||nr&&Eo&&Go;if(lo){Ot(Dr);var ko=ei(Dr,Bt),fo=de(ko,1),Ko=fo[0];pi&&!Ko&&pi(Cr&&Dr.every(function(po){return!po})?null:Dr,Rn(Dr))}return lo}),xr=Nt(function(dr,Cr){var Dr=gr(Ei(),dr,Kt()[dr]);pe(Dr),Cr&&er()}),Gr=!tn&&!wn;return vo(!Gr,function(){Gr&&(er(),le(Bt),_i())},2),[xr,er]}function hu(yt,Bt,Ot,Kt,le){return Bt!=="date"&&Bt!=="time"?!1:Ot!==void 0?Ot:Kt!==void 0?Kt:!le&&(yt==="date"||yt==="time")}function Ys(){return Ys=Object.assign?Object.assign.bind():function(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt];for(var Kt in Ot)Object.prototype.hasOwnProperty.call(Ot,Kt)&&(yt[Kt]=Ot[Kt])}return yt},Ys.apply(this,arguments)}function cu(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=[];return It.Children.forEach(yt,function(Kt){Kt==null&&!Bt.keepEmpty||(Array.isArray(Kt)?Ot=Ot.concat(cu(Kt)):cn(Kt)&&Kt.props?Ot=Ot.concat(cu(Kt.props.children,Bt)):Ot.push(Kt))}),Ot}function tl(yt){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bt){return typeof Bt}:function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},tl(yt)}function Mh(yt,Bt){if(tl(yt)!=="object"||yt===null)return yt;var Ot=yt[Symbol.toPrimitive];if(Ot!==void 0){var Kt=Ot.call(yt,Bt||"default");if(tl(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Bt==="string"?String:Number)(yt)}function Cu(yt){var Bt=Mh(yt,"string");return tl(Bt)==="symbol"?Bt:String(Bt)}function Ma(yt,Bt,Ot){return Bt=Cu(Bt),Bt in yt?Object.defineProperty(yt,Bt,{value:Ot,enumerable:!0,configurable:!0,writable:!0}):yt[Bt]=Ot,yt}function Ja(yt,Bt){var Ot=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Bt&&(Kt=Kt.filter(function(le){return Object.getOwnPropertyDescriptor(yt,le).enumerable})),Ot.push.apply(Ot,Kt)}return Ot}function cr(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt]!=null?arguments[Bt]:{};Bt%2?Ja(Object(Ot),!0).forEach(function(Kt){Ma(yt,Kt,Ot[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(Ot)):Ja(Object(Ot)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(Ot,Kt))})}return yt}var Xi=Ft(73935);function Rr(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function un(yt){return yt&&ge(yt)==="object"&&Rr(yt.nativeElement)?yt.nativeElement:Rr(yt)?yt:null}function vr(yt){var Bt=un(yt);if(Bt)return Bt;if(yt instanceof It.Component){var Ot;return(Ot=Xi.findDOMNode)===null||Ot===void 0?void 0:Ot.call(Xi,yt)}return null}var oo=It.createContext(null);function za(yt){var Bt=yt.children,Ot=yt.onBatchResize,Kt=It.useRef(0),le=It.useRef([]),Ce=It.useContext(oo),Ue=It.useCallback(function(tn,wn,Bn){Kt.current+=1;var hn=Kt.current;le.current.push({size:tn,element:wn,data:Bn}),Promise.resolve().then(function(){hn===Kt.current&&(Ot==null||Ot(le.current),le.current=[])}),Ce==null||Ce(tn,wn,Bn)},[Ot,Ce]);return It.createElement(oo.Provider,{value:Ue},Bt)}var ka=Ft(91033),Na=new Map;function Ws(yt){yt.forEach(function(Bt){var Ot,Kt=Bt.target;(Ot=Na.get(Kt))===null||Ot===void 0||Ot.forEach(function(le){return le(Kt)})})}var xl=new ka.Z(Ws),wl=null,Xh=null;function fh(yt,Bt){Na.has(yt)||(Na.set(yt,new Set),xl.observe(yt)),Na.get(yt).add(Bt)}function Xe(yt,Bt){Na.has(yt)&&(Na.get(yt).delete(Bt),Na.get(yt).size||(xl.unobserve(yt),Na.delete(yt)))}function bl(yt,Bt){if(!(yt instanceof Bt))throw new TypeError("Cannot call a class as a function")}function Au(yt,Bt){for(var Ot=0;Ot<Bt.length;Ot++){var Kt=Bt[Ot];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,Cu(Kt.key),Kt)}}function kh(yt,Bt,Ot){return Bt&&Au(yt.prototype,Bt),Ot&&Au(yt,Ot),Object.defineProperty(yt,"prototype",{writable:!1}),yt}function as(yt,Bt){return as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kt,le){return Kt.__proto__=le,Kt},as(yt,Bt)}function bh(yt,Bt){if(typeof Bt!="function"&&Bt!==null)throw new TypeError("Super expression must either be null or a function");yt.prototype=Object.create(Bt&&Bt.prototype,{constructor:{value:yt,writable:!0,configurable:!0}}),Object.defineProperty(yt,"prototype",{writable:!1}),Bt&&as(yt,Bt)}function Fh(yt){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ot){return Ot.__proto__||Object.getPrototypeOf(Ot)},Fh(yt)}function Jh(){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 ja(yt){if(yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yt}function Ps(yt,Bt){if(Bt&&(tl(Bt)==="object"||typeof Bt=="function"))return Bt;if(Bt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ja(yt)}function eo(yt){var Bt=Jh();return function(){var Kt=Fh(yt),le;if(Bt){var Ce=Fh(this).constructor;le=Reflect.construct(Kt,arguments,Ce)}else le=Kt.apply(this,arguments);return Ps(this,le)}}var Oo=function(yt){bh(Ot,yt);var Bt=eo(Ot);function Ot(){return bl(this,Ot),Bt.apply(this,arguments)}return kh(Ot,[{key:"render",value:function(){return this.props.children}}]),Ot}(It.Component);function Wa(yt,Bt){var Ot=yt.children,Kt=yt.disabled,le=It.useRef(null),Ce=It.useRef(null),Ue=It.useContext(oo),tn=typeof Ot=="function",wn=tn?Ot(le):Ot,Bn=It.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),hn=!tn&&It.isValidElement(wn)&&sn(wn),oi=hn?gn(wn):null,Pi=Ee(oi,le),pi=function(){var Nn;return vr(le.current)||(le.current&&tl(le.current)==="object"?vr((Nn=le.current)===null||Nn===void 0?void 0:Nn.nativeElement):null)||vr(Ce.current)};It.useImperativeHandle(Bt,function(){return pi()});var Qn=It.useRef(yt);Qn.current=yt;var hi=It.useCallback(function(si){var Nn=Qn.current,Vn=Nn.onResize,Rn=Nn.data,ei=si.getBoundingClientRect(),bi=ei.width,Mi=ei.height,Ei=si.offsetWidth,pe=si.offsetHeight,_i=Math.floor(bi),er=Math.floor(Mi);if(Bn.current.width!==_i||Bn.current.height!==er||Bn.current.offsetWidth!==Ei||Bn.current.offsetHeight!==pe){var xr={width:_i,height:er,offsetWidth:Ei,offsetHeight:pe};Bn.current=xr;var Gr=Ei===Math.round(bi)?bi:Ei,dr=pe===Math.round(Mi)?Mi:pe,Cr=cr(cr({},xr),{},{offsetWidth:Gr,offsetHeight:dr});Ue==null||Ue(Cr,si,Rn),Vn&&Promise.resolve().then(function(){Vn(Cr,si)})}},[]);return It.useEffect(function(){var si=pi();return si&&!Kt&&fh(si,hi),function(){return Xe(si,hi)}},[le.current,Kt]),It.createElement(Oo,{ref:Ce},hn?It.cloneElement(wn,{ref:Pi}):wn)}var ps=It.forwardRef(Wa),$i=ps,ad="rc-observer-key";function Qh(yt,Bt){var Ot=yt.children,Kt=typeof Ot=="function"?[Ot]:cu(Ot);return Kt.map(function(le,Ce){var Ue=(le==null?void 0:le.key)||"".concat(ad,"-").concat(Ce);return It.createElement($i,Ys({},yt,{key:Ue,ref:Ce===0?Bt:void 0}),le)})}var Fl=It.forwardRef(Qh);Fl.Collection=za;var sd=Fl;function _h(yt,Bt,Ot,Kt,le,Ce){var Ue=yt;function tn(oi,Pi,pi){var Qn=Ce[oi](Ue),hi=pi.find(function(Rn){return Rn.value===Qn});if(!hi||hi.disabled){var si=pi.filter(function(Rn){return!Rn.disabled}),Nn=Jt(si).reverse(),Vn=Nn.find(function(Rn){return Rn.value<=Qn})||si[0];Vn&&(Qn=Vn.value,Ue=Ce[Pi](Ue,Qn))}return Qn}var wn=tn("getHour","setHour",Bt()),Bn=tn("getMinute","setMinute",Ot(wn)),hn=tn("getSecond","setSecond",Kt(wn,Bn));return tn("getMillisecond","setMillisecond",le(wn,Bn,hn)),Ue}function wi(){return[]}function ms(yt,Bt){for(var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,le=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Ue=[],tn=Ot>=1?Ot|0:1,wn=yt;wn<=Bt;wn+=tn){var Bn=le.includes(wn);(!Bn||!Kt)&&Ue.push({label:Ga(wn,Ce),value:wn,disabled:Bn})}return Ue}function bs(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=arguments.length>2?arguments[2]:void 0,Kt=Bt||{},le=Kt.use12Hours,Ce=Kt.hourStep,Ue=Ce===void 0?1:Ce,tn=Kt.minuteStep,wn=tn===void 0?1:tn,Bn=Kt.secondStep,hn=Bn===void 0?1:Bn,oi=Kt.millisecondStep,Pi=oi===void 0?100:oi,pi=Kt.hideDisabledOptions,Qn=Kt.disabledTime,hi=Kt.disabledHours,si=Kt.disabledMinutes,Nn=Kt.disabledSeconds,Vn=It.useMemo(function(){return Ot||yt.getNow()},[Ot,yt]);if(0)var Rn,ei,bi;var Mi=It.useCallback(function(Fr){var ar=(Qn==null?void 0:Qn(Fr))||{};return[ar.disabledHours||hi||wi,ar.disabledMinutes||si||wi,ar.disabledSeconds||Nn||wi,ar.disabledMilliseconds||wi]},[Qn,hi,si,Nn]),Ei=It.useMemo(function(){return Mi(Vn)},[Vn,Mi]),pe=de(Ei,4),_i=pe[0],er=pe[1],xr=pe[2],Gr=pe[3],dr=It.useCallback(function(Fr,ar,kr,nr){var Eo=ms(0,23,Ue,pi,Fr()),Go=le?Eo.map(function(Ko){return(0,ue.Z)((0,ue.Z)({},Ko),{},{label:Ga(Ko.value%12||12,2)})}):Eo,lo=function(po){return ms(0,59,wn,pi,ar(po))},ko=function(po,qo){return ms(0,59,hn,pi,kr(po,qo))},fo=function(po,qo,Ar){return ms(0,999,Pi,pi,nr(po,qo,Ar),3)};return[Go,lo,ko,fo]},[pi,Ue,le,Pi,wn,hn]),Cr=It.useMemo(function(){return dr(_i,er,xr,Gr)},[dr,_i,er,xr,Gr]),Dr=de(Cr,4),fr=Dr[0],Zr=Dr[1],No=Dr[2],wo=Dr[3],yo=function(ar,kr){var nr=function(){return fr},Eo=Zr,Go=No,lo=wo;if(kr){var ko=Mi(kr),fo=de(ko,4),Ko=fo[0],po=fo[1],qo=fo[2],Ar=fo[3],Qi=dr(Ko,po,qo,Ar),Po=de(Qi,4),qr=Po[0],ha=Po[1],So=Po[2],jo=Po[3];nr=function(){return qr},Eo=ha,Go=So,lo=jo}var ba=_h(ar,nr,Eo,Go,lo,yt);return ba};return[yo,fr,Zr,No,wo]}function _u(yt){var Bt=yt.mode,Ot=yt.internalMode,Kt=yt.renderExtraFooter,le=yt.showNow,Ce=yt.showTime,Ue=yt.onSubmit,tn=yt.onNow,wn=yt.invalid,Bn=yt.needConfirm,hn=yt.generateConfig,oi=yt.disabledDate,Pi=It.useContext(ao),pi=Pi.prefixCls,Qn=Pi.locale,hi=Pi.button,si=hi===void 0?"button":hi,Nn=hn.getNow(),Vn=bs(hn,Ce,Nn),Rn=de(Vn,1),ei=Rn[0],bi=Kt==null?void 0:Kt(Bt),Mi=oi(Nn,{type:Bt}),Ei=function(){if(!Mi){var Cr=ei(Nn);tn(Cr)}},pe="".concat(pi,"-now"),_i="".concat(pe,"-btn"),er=le&&It.createElement("li",{className:pe},It.createElement("a",{className:sr()(_i,Mi&&"".concat(_i,"-disabled")),"aria-disabled":Mi,onClick:Ei},Ot==="date"?Qn.today:Qn.now)),xr=Bn&&It.createElement("li",{className:"".concat(pi,"-ok")},It.createElement(si,{disabled:wn,onClick:Ue},Qn.ok)),Gr=(er||xr)&&It.createElement("ul",{className:"".concat(pi,"-ranges")},er,xr);return!bi&&!Gr?null:It.createElement("div",{className:"".concat(pi,"-footer")},bi&&It.createElement("div",{className:"".concat(pi,"-footer-extra")},bi),Gr)}function Rc(yt,Bt,Ot){function Kt(le,Ce){var Ue=le.findIndex(function(wn){return ki(yt,Bt,wn,Ce,Ot)});if(Ue===-1)return[].concat(Jt(le),[Ce]);var tn=Jt(le);return tn.splice(Ue,1),tn}return Kt}var Ru=It.createContext(null);function no(){return It.useContext(Ru)}function qu(yt,Bt){var Ot=yt.prefixCls,Kt=yt.generateConfig,le=yt.locale,Ce=yt.disabledDate,Ue=yt.minDate,tn=yt.maxDate,wn=yt.cellRender,Bn=yt.hoverValue,hn=yt.hoverRangeValue,oi=yt.onHover,Pi=yt.values,pi=yt.pickerValue,Qn=yt.onSelect,hi=yt.prevIcon,si=yt.nextIcon,Nn=yt.superPrevIcon,Vn=yt.superNextIcon,Rn=Kt.getNow(),ei={now:Rn,values:Pi,pickerValue:pi,prefixCls:Ot,disabledDate:Ce,minDate:Ue,maxDate:tn,cellRender:wn,hoverValue:Bn,hoverRangeValue:hn,onHover:oi,locale:le,generateConfig:Kt,onSelect:Qn,panelType:Bt,prevIcon:hi,nextIcon:si,superPrevIcon:Nn,superNextIcon:Vn};return[ei,Rn]}var ml=It.createContext({});function vl(yt){for(var Bt=yt.rowNum,Ot=yt.colNum,Kt=yt.baseDate,le=yt.getCellDate,Ce=yt.prefixColumn,Ue=yt.rowClassName,tn=yt.titleFormat,wn=yt.getCellText,Bn=yt.getCellClassName,hn=yt.headerCells,oi=yt.cellSelection,Pi=oi===void 0?!0:oi,pi=yt.disabledDate,Qn=no(),hi=Qn.prefixCls,si=Qn.panelType,Nn=Qn.now,Vn=Qn.disabledDate,Rn=Qn.cellRender,ei=Qn.onHover,bi=Qn.hoverValue,Mi=Qn.hoverRangeValue,Ei=Qn.generateConfig,pe=Qn.values,_i=Qn.locale,er=Qn.onSelect,xr=pi||Vn,Gr="".concat(hi,"-cell"),dr=It.useContext(ml),Cr=dr.onCellDblClick,Dr=function(kr){return pe.some(function(nr){return nr&&ki(Ei,_i,kr,nr,si)})},fr=[],Zr=0;Zr<Bt;Zr+=1){for(var No=[],wo=void 0,yo=function(){var kr=Zr*Ot+Fr,nr=le(Kt,kr),Eo=xr==null?void 0:xr(nr,{type:si});Fr===0&&(wo=nr,Ce&&No.push(Ce(wo)));var Go=!1,lo=!1,ko=!1;if(Pi&&Mi){var fo=de(Mi,2),Ko=fo[0],po=fo[1];Go=Bi(Ei,Ko,po,nr),lo=ki(Ei,_i,nr,Ko,si),ko=ki(Ei,_i,nr,po,si)}var qo=tn?Yr(nr,{locale:_i,format:tn,generateConfig:Ei}):void 0,Ar=It.createElement("div",{className:"".concat(Gr,"-inner")},wn(nr));No.push(It.createElement("td",{key:Fr,title:qo,className:sr()(Gr,(0,ue.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)({},"".concat(Gr,"-disabled"),Eo),"".concat(Gr,"-hover"),(bi||[]).some(function(Qi){return ki(Ei,_i,nr,Qi,si)})),"".concat(Gr,"-in-range"),Go&&!lo&&!ko),"".concat(Gr,"-range-start"),lo),"".concat(Gr,"-range-end"),ko),"".concat(hi,"-cell-selected"),!Mi&&si!=="week"&&Dr(nr)),Bn(nr))),onClick:function(){Eo||er(nr)},onDoubleClick:function(){!Eo&&Cr&&Cr()},onMouseEnter:function(){Eo||ei==null||ei(nr)},onMouseLeave:function(){Eo||ei==null||ei(null)}},Rn?Rn(nr,{prefixCls:hi,originNode:Ar,today:Nn,type:si,locale:_i}):Ar))},Fr=0;Fr<Ot;Fr+=1)yo();fr.push(It.createElement("tr",{key:Zr,className:Ue==null?void 0:Ue(wo)},No))}return It.createElement("div",{className:"".concat(hi,"-body")},It.createElement("table",{className:"".concat(hi,"-content")},hn&&It.createElement("thead",null,It.createElement("tr",null,hn)),It.createElement("tbody",null,fr)))}var yl={visibility:"hidden"};function qh(yt){var Bt=yt.offset,Ot=yt.superOffset,Kt=yt.onChange,le=yt.getStart,Ce=yt.getEnd,Ue=yt.children,tn=no(),wn=tn.prefixCls,Bn=tn.prevIcon,hn=Bn===void 0?"\u2039":Bn,oi=tn.nextIcon,Pi=oi===void 0?"\u203A":oi,pi=tn.superPrevIcon,Qn=pi===void 0?"\xAB":pi,hi=tn.superNextIcon,si=hi===void 0?"\xBB":hi,Nn=tn.minDate,Vn=tn.maxDate,Rn=tn.generateConfig,ei=tn.locale,bi=tn.pickerValue,Mi=tn.panelType,Ei="".concat(wn,"-header"),pe=It.useContext(ml),_i=pe.hidePrev,er=pe.hideNext,xr=pe.hideHeader,Gr=It.useMemo(function(){if(!Nn||!Bt||!Ce)return!1;var ar=Ce(Bt(-1,bi));return!Hi(Rn,ei,ar,Nn,Mi)},[Nn,Bt,bi,Ce,Rn,ei,Mi]),dr=It.useMemo(function(){if(!Nn||!Ot||!Ce)return!1;var ar=Ce(Ot(-1,bi));return!Hi(Rn,ei,ar,Nn,Mi)},[Nn,Ot,bi,Ce,Rn,ei,Mi]),Cr=It.useMemo(function(){if(!Vn||!Bt||!le)return!1;var ar=le(Bt(1,bi));return!Hi(Rn,ei,Vn,ar,Mi)},[Vn,Bt,bi,le,Rn,ei,Mi]),Dr=It.useMemo(function(){if(!Vn||!Ot||!le)return!1;var ar=le(Ot(1,bi));return!Hi(Rn,ei,Vn,ar,Mi)},[Vn,Ot,bi,le,Rn,ei,Mi]),fr=function(kr){Bt&&Kt(Bt(kr,bi))},Zr=function(kr){Ot&&Kt(Ot(kr,bi))};if(xr)return null;var No="".concat(Ei,"-prev-btn"),wo="".concat(Ei,"-next-btn"),yo="".concat(Ei,"-super-prev-btn"),Fr="".concat(Ei,"-super-next-btn");return It.createElement("div",{className:Ei},Ot&&It.createElement("button",{type:"button","aria-label":ei.previousYear,onClick:function(){return Zr(-1)},tabIndex:-1,className:sr()(yo,dr&&"".concat(yo,"-disabled")),disabled:dr,style:_i?yl:{}},Qn),Bt&&It.createElement("button",{type:"button","aria-label":ei.previousMonth,onClick:function(){return fr(-1)},tabIndex:-1,className:sr()(No,Gr&&"".concat(No,"-disabled")),disabled:Gr,style:_i?yl:{}},hn),It.createElement("div",{className:"".concat(Ei,"-view")},Ue),Bt&&It.createElement("button",{type:"button","aria-label":ei.nextMonth,onClick:function(){return fr(1)},tabIndex:-1,className:sr()(wo,Cr&&"".concat(wo,"-disabled")),disabled:Cr,style:er?yl:{}},Pi),Ot&&It.createElement("button",{type:"button","aria-label":ei.nextYear,onClick:function(){return Zr(1)},tabIndex:-1,className:sr()(Fr,Dr&&"".concat(Fr,"-disabled")),disabled:Dr,style:er?yl:{}},si))}var $u=qh;function sl(yt){var Bt=yt.prefixCls,Ot=yt.panelName,Kt=Ot===void 0?"date":Ot,le=yt.locale,Ce=yt.generateConfig,Ue=yt.pickerValue,tn=yt.onPickerValueChange,wn=yt.onModeChange,Bn=yt.mode,hn=Bn===void 0?"date":Bn,oi=yt.disabledDate,Pi=yt.onSelect,pi=yt.onHover,Qn=yt.showWeek,hi="".concat(Bt,"-").concat(Kt,"-panel"),si="".concat(Bt,"-cell"),Nn=hn==="week",Vn=qu(yt,hn),Rn=de(Vn,2),ei=Rn[0],bi=Rn[1],Mi=Ce.locale.getWeekFirstDay(le.locale),Ei=Ce.setDate(Ue,1),pe=to(le.locale,Ce,Ei),_i=Ce.getMonth(Ue),er=Qn===void 0?Nn:Qn,xr=er?function(ar){var kr=oi==null?void 0:oi(ar,{type:"week"});return It.createElement("td",{key:"week",className:sr()(si,"".concat(si,"-week"),(0,gi.Z)({},"".concat(si,"-disabled"),kr)),onClick:function(){kr||Pi(ar)},onMouseEnter:function(){kr||pi==null||pi(ar)},onMouseLeave:function(){kr||pi==null||pi(null)}},It.createElement("div",{className:"".concat(si,"-inner")},Ce.locale.getWeek(le.locale,ar)))}:null,Gr=[],dr=le.shortWeekDays||(Ce.locale.getShortWeekDays?Ce.locale.getShortWeekDays(le.locale):[]);xr&&Gr.push(It.createElement("th",{key:"empty"},It.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},le.week)));for(var Cr=0;Cr<Yi;Cr+=1)Gr.push(It.createElement("th",{key:Cr},dr[(Cr+Mi)%Yi]));var Dr=function(kr,nr){return Ce.addDate(kr,nr)},fr=function(kr){return Yr(kr,{locale:le,format:le.cellDateFormat,generateConfig:Ce})},Zr=function(kr){var nr=(0,gi.Z)((0,gi.Z)({},"".concat(Bt,"-cell-in-view"),Cn(Ce,kr,Ue)),"".concat(Bt,"-cell-today"),Ri(Ce,kr,bi));return nr},No=le.shortMonths||(Ce.locale.getShortMonths?Ce.locale.getShortMonths(le.locale):[]),wo=It.createElement("button",{type:"button","aria-label":le.yearSelect,key:"year",onClick:function(){wn("year",Ue)},tabIndex:-1,className:"".concat(Bt,"-year-btn")},Yr(Ue,{locale:le,format:le.yearFormat,generateConfig:Ce})),yo=It.createElement("button",{type:"button","aria-label":le.monthSelect,key:"month",onClick:function(){wn("month",Ue)},tabIndex:-1,className:"".concat(Bt,"-month-btn")},le.monthFormat?Yr(Ue,{locale:le,format:le.monthFormat,generateConfig:Ce}):No[_i]),Fr=le.monthBeforeYear?[yo,wo]:[wo,yo];return It.createElement(Ru.Provider,{value:ei},It.createElement("div",{className:sr()(hi,Qn&&"".concat(hi,"-show-week"))},It.createElement($u,{offset:function(kr){return Ce.addMonth(Ue,kr)},superOffset:function(kr){return Ce.addYear(Ue,kr)},onChange:tn,getStart:function(kr){return Ce.setDate(kr,1)},getEnd:function(kr){var nr=Ce.setDate(kr,1);return nr=Ce.addMonth(nr,1),Ce.addDate(nr,-1)}},Fr),It.createElement(vl,Lt({titleFormat:le.fieldDateFormat},yt,{colNum:Yi,rowNum:6,baseDate:pe,headerCells:Gr,getCellDate:Dr,getCellText:fr,getCellClassName:Zr,prefixColumn:xr,cellSelection:!Nn}))))}var Iu=function(yt){if(!yt)return!1;if(yt instanceof Element){if(yt.offsetParent)return!0;if(yt.getBBox){var Bt=yt.getBBox(),Ot=Bt.width,Kt=Bt.height;if(Ot||Kt)return!0}if(yt.getBoundingClientRect){var le=yt.getBoundingClientRect(),Ce=le.width,Ue=le.height;if(Ce||Ue)return!0}}return!1},ld=1/3;function sf(yt,Bt){var Ot=It.useRef(!1),Kt=It.useRef(null),le=It.useRef(null),Ce=function(){return Ot.current},Ue=function(){Hr.cancel(Kt.current),Ot.current=!1},tn=It.useRef(),wn=function(){var oi=yt.current;if(le.current=null,tn.current=0,oi){var Pi=oi.querySelector('[data-value="'.concat(Bt,'"]')),pi=oi.querySelector("li"),Qn=function hi(){Ue(),Ot.current=!0,tn.current+=1;var si=oi.scrollTop,Nn=pi.offsetTop,Vn=Pi.offsetTop,Rn=Vn-Nn;if(Vn===0&&Pi!==pi||!Iu(oi)){tn.current<=5&&(Kt.current=Hr(hi));return}var ei=si+(Rn-si)*ld,bi=Math.abs(Rn-ei);if(le.current!==null&&le.current<bi){Ue();return}if(le.current=bi,bi<=1){oi.scrollTop=Rn,Ue();return}oi.scrollTop=ei,Kt.current=Hr(hi)};Pi&&pi&&Qn()}},Bn=Nt(wn);return[Bn,Ue,Ce]}var Fd=300;function lf(yt){return yt.map(function(Bt){var Ot=Bt.value,Kt=Bt.label,le=Bt.disabled;return[Ot,Kt,le].join(",")}).join(";")}function Nh(yt){var Bt=yt.units,Ot=yt.value,Kt=yt.optionalValue,le=yt.type,Ce=yt.onChange,Ue=yt.onHover,tn=yt.onDblClick,wn=yt.changeOnScroll,Bn=no(),hn=Bn.prefixCls,oi=Bn.cellRender,Pi=Bn.now,pi=Bn.locale,Qn="".concat(hn,"-time-panel"),hi="".concat(hn,"-time-panel-cell"),si=It.useRef(null),Nn=It.useRef(),Vn=function(){clearTimeout(Nn.current)},Rn=sf(si,Ot!=null?Ot:Kt),ei=de(Rn,3),bi=ei[0],Mi=ei[1],Ei=ei[2];re(function(){return bi(),Vn(),function(){Mi(),Vn()}},[Ot,Kt,lf(Bt)]);var pe=function(xr){Vn();var Gr=xr.target;!Ei()&&wn&&(Nn.current=setTimeout(function(){var dr=si.current,Cr=dr.querySelector("li").offsetTop,Dr=Array.from(dr.querySelectorAll("li")),fr=Dr.map(function(Fr){return Fr.offsetTop-Cr}),Zr=fr.map(function(Fr,ar){return Bt[ar].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Fr-Gr.scrollTop)}),No=Math.min.apply(Math,Jt(Zr)),wo=Zr.findIndex(function(Fr){return Fr===No}),yo=Bt[wo];yo&&!yo.disabled&&Ce(yo.value)},Fd))},_i="".concat(Qn,"-column");return It.createElement("ul",{className:_i,ref:si,"data-type":le,onScroll:pe},Bt.map(function(er){var xr=er.label,Gr=er.value,dr=er.disabled,Cr=It.createElement("div",{className:"".concat(hi,"-inner")},xr);return It.createElement("li",{key:Gr,className:sr()(hi,(0,gi.Z)((0,gi.Z)({},"".concat(hi,"-selected"),Ot===Gr),"".concat(hi,"-disabled"),dr)),onClick:function(){dr||Ce(Gr)},onDoubleClick:function(){!dr&&tn&&tn()},onMouseEnter:function(){Ue(Gr)},onMouseLeave:function(){Ue(null)},"data-value":Gr},oi?oi(Gr,{prefixCls:hn,originNode:Cr,today:Pi,type:"time",subType:le,locale:pi}):Cr)}))}function du(yt){return yt<12}function $h(yt){var Bt=yt.showHour,Ot=yt.showMinute,Kt=yt.showSecond,le=yt.showMillisecond,Ce=yt.use12Hours,Ue=yt.changeOnScroll,tn=no(),wn=tn.prefixCls,Bn=tn.values,hn=tn.generateConfig,oi=tn.locale,Pi=tn.onSelect,pi=tn.onHover,Qn=pi===void 0?function(){}:pi,hi=tn.pickerValue,si=(Bn==null?void 0:Bn[0])||null,Nn=It.useContext(ml),Vn=Nn.onCellDblClick,Rn=bs(hn,yt,si),ei=de(Rn,5),bi=ei[0],Mi=ei[1],Ei=ei[2],pe=ei[3],_i=ei[4],er=function(Wr){var Za=si&&hn[Wr](si),Es=hi&&hn[Wr](hi);return[Za,Es]},xr=er("getHour"),Gr=de(xr,2),dr=Gr[0],Cr=Gr[1],Dr=er("getMinute"),fr=de(Dr,2),Zr=fr[0],No=fr[1],wo=er("getSecond"),yo=de(wo,2),Fr=yo[0],ar=yo[1],kr=er("getMillisecond"),nr=de(kr,2),Eo=nr[0],Go=nr[1],lo=dr===null?null:du(dr)?"am":"pm",ko=It.useMemo(function(){return Ce?du(dr)?Mi.filter(function(Mr){return du(Mr.value)}):Mi.filter(function(Mr){return!du(Mr.value)}):Mi},[dr,Mi,Ce]),fo=function(Wr,Za){var Es,Ls=Wr.filter(function(Il){return!Il.disabled});return Za!=null?Za:Ls==null||(Es=Ls[0])===null||Es===void 0?void 0:Es.value},Ko=fo(Mi,dr),po=It.useMemo(function(){return Ei(Ko)},[Ei,Ko]),qo=fo(po,Zr),Ar=It.useMemo(function(){return pe(Ko,qo)},[pe,Ko,qo]),Qi=fo(Ar,Fr),Po=It.useMemo(function(){return _i(Ko,qo,Qi)},[_i,Ko,qo,Qi]),qr=fo(Po,Eo),ha=It.useMemo(function(){if(!Ce)return[];var Mr=hn.getNow(),Wr=hn.setHour(Mr,6),Za=hn.setHour(Mr,18),Es=function(Il,Xs){var Vu=oi.cellMeridiemFormat;return Vu?Yr(Il,{generateConfig:hn,locale:oi,format:Vu}):Xs};return[{label:Es(Wr,"AM"),value:"am",disabled:Mi.every(function(Ls){return Ls.disabled||!du(Ls.value)})},{label:Es(Za,"PM"),value:"pm",disabled:Mi.every(function(Ls){return Ls.disabled||du(Ls.value)})}]},[Mi,Ce,hn,oi]),So=function(Wr){var Za=bi(Wr);Pi(Za)},jo=It.useMemo(function(){var Mr=si||hi||hn.getNow(),Wr=function(Es){return Es!=null};return Wr(dr)?(Mr=hn.setHour(Mr,dr),Mr=hn.setMinute(Mr,Zr),Mr=hn.setSecond(Mr,Fr),Mr=hn.setMillisecond(Mr,Eo)):Wr(Cr)?(Mr=hn.setHour(Mr,Cr),Mr=hn.setMinute(Mr,No),Mr=hn.setSecond(Mr,ar),Mr=hn.setMillisecond(Mr,Go)):Wr(Ko)&&(Mr=hn.setHour(Mr,Ko),Mr=hn.setMinute(Mr,qo),Mr=hn.setSecond(Mr,Qi),Mr=hn.setMillisecond(Mr,qr)),Mr},[si,hi,dr,Zr,Fr,Eo,Ko,qo,Qi,qr,Cr,No,ar,Go,hn]),ba=function(Wr,Za){return Wr===null?null:hn[Za](jo,Wr)},Xr=function(Wr){return ba(Wr,"setHour")},Yo=function(Wr){return ba(Wr,"setMinute")},es=function(Wr){return ba(Wr,"setSecond")},Ya=function(Wr){return ba(Wr,"setMillisecond")},ss=function(Wr){return Wr===null?null:Wr==="am"&&!du(dr)?hn.setHour(jo,dr-12):Wr==="pm"&&du(dr)?hn.setHour(jo,dr+12):jo},Wo=function(Wr){So(Xr(Wr))},dl=function(Wr){So(Yo(Wr))},Ra=function(Wr){So(es(Wr))},aa=function(Wr){So(Ya(Wr))},ca=function(Wr){So(ss(Wr))},fs=function(Wr){Qn(Xr(Wr))},Uo=function(Wr){Qn(Yo(Wr))},Rl=function(Wr){Qn(es(Wr))},uo=function(Wr){Qn(Ya(Wr))},Er=function(Wr){Qn(ss(Wr))},Aa={onDblClick:Vn,changeOnScroll:Ue};return It.createElement("div",{className:"".concat(wn,"-content")},Bt&&It.createElement(Nh,Lt({units:ko,value:dr,optionalValue:Cr,type:"hour",onChange:Wo,onHover:fs},Aa)),Ot&&It.createElement(Nh,Lt({units:po,value:Zr,optionalValue:No,type:"minute",onChange:dl,onHover:Uo},Aa)),Kt&&It.createElement(Nh,Lt({units:Ar,value:Fr,optionalValue:ar,type:"second",onChange:Ra,onHover:Rl},Aa)),le&&It.createElement(Nh,Lt({units:Po,value:Eo,optionalValue:Go,type:"millisecond",onChange:aa,onHover:uo},Aa)),Ce&&It.createElement(Nh,Lt({units:ha,value:lo,type:"meridiem",onChange:ca,onHover:Er},Aa)))}function zu(yt){var Bt=yt.prefixCls,Ot=yt.value,Kt=yt.locale,le=yt.generateConfig,Ce=yt.showTime,Ue=Ce||{},tn=Ue.format,wn="".concat(Bt,"-time-panel"),Bn=qu(yt,"time"),hn=de(Bn,1),oi=hn[0];return It.createElement(Ru.Provider,{value:oi},It.createElement("div",{className:sr()(wn)},It.createElement($u,null,Ot?Yr(Ot,{locale:Kt,format:tn,generateConfig:le}):"\xA0"),It.createElement($h,Ce)))}function ud(yt){var Bt=yt.prefixCls,Ot=yt.generateConfig,Kt=yt.showTime,le=yt.onSelect,Ce=yt.value,Ue=yt.pickerValue,tn=yt.onHover,wn="".concat(Bt,"-datetime-panel"),Bn=bs(Ot,Kt),hn=de(Bn,1),oi=hn[0],Pi=function(si){return Ce?ti(Ot,si,Ce):ti(Ot,si,Ue)},pi=function(si){tn==null||tn(si&&Pi(si))},Qn=function(si){var Nn=Pi(si);le(oi(Nn,Nn))};return It.createElement("div",{className:wn},It.createElement(sl,Lt({},yt,{onSelect:Qn,onHover:pi})),It.createElement(zu,yt))}function Nd(yt){var Bt=yt.prefixCls,Ot=yt.locale,Kt=yt.generateConfig,le=yt.pickerValue,Ce=yt.disabledDate,Ue=yt.onPickerValueChange,tn="".concat(Bt,"-decade-panel"),wn=qu(yt,"decade"),Bn=de(wn,1),hn=Bn[0],oi=function(Mi){var Ei=Math.floor(Kt.getYear(Mi)/100)*100;return Kt.setYear(Mi,Ei)},Pi=function(Mi){var Ei=oi(Mi);return Kt.addYear(Ei,99)},pi=oi(le),Qn=Pi(le),hi=Kt.addYear(pi,-10),si=function(Mi,Ei){return Kt.addYear(Mi,Ei*10)},Nn=function(Mi){var Ei=Ot.cellYearFormat,pe=Yr(Mi,{locale:Ot,format:Ei,generateConfig:Kt}),_i=Yr(Kt.addYear(Mi,9),{locale:Ot,format:Ei,generateConfig:Kt});return"".concat(pe,"-").concat(_i)},Vn=function(Mi){return(0,gi.Z)({},"".concat(Bt,"-cell-in-view"),De(Kt,Mi,pi)||De(Kt,Mi,Qn)||Bi(Kt,pi,Qn,Mi))},Rn=Ce?function(bi,Mi){var Ei=Kt.setDate(bi,1),pe=Kt.setMonth(Ei,0),_i=Kt.setYear(pe,Math.floor(Kt.getYear(pe)/10)*10),er=Kt.addYear(_i,10),xr=Kt.addDate(er,-1);return Ce(_i,Mi)&&Ce(xr,Mi)}:null,ei="".concat(Yr(pi,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}),"-").concat(Yr(Qn,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}));return It.createElement(Ru.Provider,{value:hn},It.createElement("div",{className:tn},It.createElement($u,{superOffset:function(Mi){return Kt.addYear(le,Mi*100)},onChange:Ue,getStart:oi,getEnd:Pi},ei),It.createElement(vl,Lt({},yt,{disabledDate:Rn,colNum:3,rowNum:4,baseDate:hi,getCellDate:si,getCellText:Nn,getCellClassName:Vn}))))}function uf(yt){var Bt=yt.prefixCls,Ot=yt.locale,Kt=yt.generateConfig,le=yt.pickerValue,Ce=yt.disabledDate,Ue=yt.onPickerValueChange,tn=yt.onModeChange,wn="".concat(Bt,"-month-panel"),Bn=qu(yt,"month"),hn=de(Bn,1),oi=hn[0],Pi=Kt.setMonth(le,0),pi=Ot.shortMonths||(Kt.locale.getShortMonths?Kt.locale.getShortMonths(Ot.locale):[]),Qn=function(ei,bi){return Kt.addMonth(ei,bi)},hi=function(ei){var bi=Kt.getMonth(ei);return Ot.monthFormat?Yr(ei,{locale:Ot,format:Ot.monthFormat,generateConfig:Kt}):pi[bi]},si=function(){return(0,gi.Z)({},"".concat(Bt,"-cell-in-view"),!0)},Nn=Ce?function(Rn,ei){var bi=Kt.setDate(Rn,1),Mi=Kt.setMonth(bi,Kt.getMonth(bi)+1),Ei=Kt.addDate(Mi,-1);return Ce(bi,ei)&&Ce(Ei,ei)}:null,Vn=It.createElement("button",{type:"button",key:"year","aria-label":Ot.yearSelect,onClick:function(){tn("year")},tabIndex:-1,className:"".concat(Bt,"-year-btn")},Yr(le,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}));return It.createElement(Ru.Provider,{value:oi},It.createElement("div",{className:wn},It.createElement($u,{superOffset:function(ei){return Kt.addYear(le,ei)},onChange:Ue,getStart:function(ei){return Kt.setMonth(ei,0)},getEnd:function(ei){return Kt.setMonth(ei,11)}},Vn),It.createElement(vl,Lt({},yt,{disabledDate:Nn,titleFormat:Ot.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Pi,getCellDate:Qn,getCellText:hi,getCellClassName:si}))))}function Is(yt){var Bt=yt.prefixCls,Ot=yt.locale,Kt=yt.generateConfig,le=yt.pickerValue,Ce=yt.onPickerValueChange,Ue=yt.onModeChange,tn="".concat(Bt,"-quarter-panel"),wn=qu(yt,"quarter"),Bn=de(wn,1),hn=Bn[0],oi=Kt.setMonth(le,0),Pi=function(Nn,Vn){return Kt.addMonth(Nn,Vn*3)},pi=function(Nn){return Yr(Nn,{locale:Ot,format:Ot.cellQuarterFormat,generateConfig:Kt})},Qn=function(){return(0,gi.Z)({},"".concat(Bt,"-cell-in-view"),!0)},hi=It.createElement("button",{type:"button",key:"year","aria-label":Ot.yearSelect,onClick:function(){Ue("year")},tabIndex:-1,className:"".concat(Bt,"-year-btn")},Yr(le,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}));return It.createElement(Ru.Provider,{value:hn},It.createElement("div",{className:tn},It.createElement($u,{superOffset:function(Nn){return Kt.addYear(le,Nn)},onChange:Ce,getStart:function(Nn){return Kt.setMonth(Nn,0)},getEnd:function(Nn){return Kt.setMonth(Nn,11)}},hi),It.createElement(vl,Lt({},yt,{titleFormat:Ot.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:oi,getCellDate:Pi,getCellText:pi,getCellClassName:Qn}))))}function ag(yt){var Bt=yt.prefixCls,Ot=yt.generateConfig,Kt=yt.locale,le=yt.value,Ce=yt.hoverValue,Ue=yt.hoverRangeValue,tn=Kt.locale,wn="".concat(Bt,"-week-panel-row"),Bn=function(oi){var Pi={};if(Ue){var pi=de(Ue,2),Qn=pi[0],hi=pi[1],si=bo(Ot,tn,Qn,oi),Nn=bo(Ot,tn,hi,oi);Pi["".concat(wn,"-range-start")]=si,Pi["".concat(wn,"-range-end")]=Nn,Pi["".concat(wn,"-range-hover")]=!si&&!Nn&&Bi(Ot,Qn,hi,oi)}return Ce&&(Pi["".concat(wn,"-hover")]=Ce.some(function(Vn){return bo(Ot,tn,oi,Vn)})),sr()(wn,(0,gi.Z)({},"".concat(wn,"-selected"),!Ue&&bo(Ot,tn,le,oi)),Pi)};return It.createElement(sl,Lt({},yt,{mode:"week",panelName:"week",rowClassName:Bn}))}function hf(yt){var Bt=yt.prefixCls,Ot=yt.locale,Kt=yt.generateConfig,le=yt.pickerValue,Ce=yt.disabledDate,Ue=yt.onPickerValueChange,tn=yt.onModeChange,wn="".concat(Bt,"-year-panel"),Bn=qu(yt,"year"),hn=de(Bn,1),oi=hn[0],Pi=function(Ei){var pe=Math.floor(Kt.getYear(Ei)/10)*10;return Kt.setYear(Ei,pe)},pi=function(Ei){var pe=Pi(Ei);return Kt.addYear(pe,9)},Qn=Pi(le),hi=pi(le),si=Kt.addYear(Qn,-1),Nn=function(Ei,pe){return Kt.addYear(Ei,pe)},Vn=function(Ei){return Yr(Ei,{locale:Ot,format:Ot.cellYearFormat,generateConfig:Kt})},Rn=function(Ei){return(0,gi.Z)({},"".concat(Bt,"-cell-in-view"),xi(Kt,Ei,Qn)||xi(Kt,Ei,hi)||Bi(Kt,Qn,hi,Ei))},ei=Ce?function(Mi,Ei){var pe=Kt.setMonth(Mi,0),_i=Kt.setDate(pe,1),er=Kt.addYear(_i,1),xr=Kt.addDate(er,-1);return Ce(_i,Ei)&&Ce(xr,Ei)}:null,bi=It.createElement("button",{type:"button",key:"decade","aria-label":Ot.decadeSelect,onClick:function(){tn("decade")},tabIndex:-1,className:"".concat(Bt,"-decade-btn")},Yr(Qn,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}),"-",Yr(hi,{locale:Ot,format:Ot.yearFormat,generateConfig:Kt}));return It.createElement(Ru.Provider,{value:oi},It.createElement("div",{className:wn},It.createElement($u,{superOffset:function(Ei){return Kt.addYear(le,Ei*10)},onChange:Ue,getStart:Pi,getEnd:pi},bi),It.createElement(vl,Lt({},yt,{disabledDate:ei,titleFormat:Ot.fieldYearFormat,colNum:3,rowNum:4,baseDate:si,getCellDate:Nn,getCellText:Vn,getCellClassName:Rn}))))}var hd={date:sl,datetime:ud,week:ag,month:uf,quarter:Is,year:hf,decade:Nd,time:zu};function vc(yt,Bt){var Ot,Kt=yt.locale,le=yt.generateConfig,Ce=yt.direction,Ue=yt.prefixCls,tn=yt.tabIndex,wn=tn===void 0?0:tn,Bn=yt.multiple,hn=yt.defaultValue,oi=yt.value,Pi=yt.onChange,pi=yt.onSelect,Qn=yt.defaultPickerValue,hi=yt.pickerValue,si=yt.onPickerValueChange,Nn=yt.mode,Vn=yt.onPanelChange,Rn=yt.picker,ei=Rn===void 0?"date":Rn,bi=yt.showTime,Mi=yt.hoverValue,Ei=yt.hoverRangeValue,pe=yt.cellRender,_i=yt.dateRender,er=yt.monthCellRender,xr=yt.components,Gr=xr===void 0?{}:xr,dr=yt.hideHeader,Cr=((Ot=It.useContext(ao))===null||Ot===void 0?void 0:Ot.prefixCls)||Ue||"rc-picker",Dr=It.useRef();It.useImperativeHandle(Bt,function(){return{nativeElement:Dr.current}});var fr=ze(yt),Zr=de(fr,4),No=Zr[0],wo=Zr[1],yo=Zr[2],Fr=Zr[3],ar=Li(Kt,wo),kr=ei==="date"&&bi?"datetime":ei,nr=It.useMemo(function(){return yn(kr,yo,Fr,No,ar)},[kr,yo,Fr,No,ar]),Eo=le.getNow(),Go=Pe(ei,{value:Nn,postState:function(Er){return Er||"date"}}),lo=de(Go,2),ko=lo[0],fo=lo[1],Ko=ko==="date"&&nr?"datetime":ko,po=Rc(le,Kt,kr),qo=Pe(hn,{value:oi}),Ar=de(qo,2),Qi=Ar[0],Po=Ar[1],qr=It.useMemo(function(){var uo=zo(Qi).filter(function(Er){return Er});return Bn?uo:uo.slice(0,1)},[Qi,Bn]),ha=Nt(function(uo){Po(uo),Pi&&(uo===null||qr.length!==uo.length||qr.some(function(Er,Aa){return!ki(le,Kt,Er,uo[Aa],kr)}))&&(Pi==null||Pi(Bn?uo:uo[0]))}),So=Nt(function(uo){if(pi==null||pi(uo),ko===ei){var Er=Bn?po(qr,uo):[uo];ha(Er)}}),jo=Pe(Qn||qr[0]||Eo,{value:hi}),ba=de(jo,2),Xr=ba[0],Yo=ba[1];It.useEffect(function(){qr[0]&&!hi&&Yo(qr[0])},[qr[0]]);var es=function(Er,Aa){Vn==null||Vn(Er||hi,Aa||ko)},Ya=function(Er){var Aa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Yo(Er),si==null||si(Er),Aa&&es(Er)},ss=function(Er,Aa){fo(Er),Aa&&Ya(Aa),es(Aa,Er)},Wo=function(Er){if(So(Er),Ya(Er),ko!==ei){var Aa=["decade","year"],Mr=[].concat(Aa,["month"]),Wr={quarter:[].concat(Aa,["quarter"]),week:[].concat(Jt(Mr),["week"]),date:[].concat(Jt(Mr),["date"])},Za=Wr[ei]||Mr,Es=Za.indexOf(ko),Ls=Za[Es+1];Ls&&ss(Ls,Er)}},dl=It.useMemo(function(){var uo,Er;if(Array.isArray(Ei)){var Aa=de(Ei,2);uo=Aa[0],Er=Aa[1]}else uo=Ei;return!uo&&!Er?null:(uo=uo||Er,Er=Er||uo,le.isAfter(uo,Er)?[Er,uo]:[uo,Er])},[Ei,le]),Ra=xn(pe,_i,er),aa=Gr[Ko]||hd[Ko]||sl,ca=It.useContext(ml),fs=It.useMemo(function(){return(0,ue.Z)((0,ue.Z)({},ca),{},{hideHeader:dr})},[ca,dr]),Uo="".concat(Cr,"-panel"),Rl=vn(yt,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return It.createElement(ml.Provider,{value:fs},It.createElement("div",{ref:Dr,tabIndex:wn,className:sr()(Uo,(0,gi.Z)({},"".concat(Uo,"-rtl"),Ce==="rtl"))},It.createElement(aa,Lt({},Rl,{showTime:nr,prefixCls:Cr,locale:ar,generateConfig:le,onModeChange:ss,pickerValue:Xr,onPickerValueChange:function(Er){Ya(Er,!0)},value:qr[0],onSelect:Wo,values:qr,cellRender:Ra,hoverRangeValue:dl,hoverValue:Mi}))))}var Pl=It.memo(It.forwardRef(vc)),ll=Pl;function Hs(yt){var Bt=yt.picker,Ot=yt.multiplePanel,Kt=yt.pickerValue,le=yt.onPickerValueChange,Ce=yt.needConfirm,Ue=yt.onSubmit,tn=yt.range,wn=yt.hoverValue,Bn=It.useContext(ao),hn=Bn.prefixCls,oi=Bn.generateConfig,Pi=It.useCallback(function(Vn,Rn){return $s(oi,Bt,Vn,Rn)},[oi,Bt]),pi=It.useMemo(function(){return Pi(Kt,1)},[Kt,Pi]),Qn=function(Rn){le(Pi(Rn,-1))},hi={onCellDblClick:function(){Ce&&Ue()}},si=Bt==="time",Nn=(0,ue.Z)((0,ue.Z)({},yt),{},{hoverValue:null,hoverRangeValue:null,hideHeader:si});return tn?Nn.hoverRangeValue=wn:Nn.hoverValue=wn,Ot?It.createElement("div",{className:"".concat(hn,"-panels")},It.createElement(ml.Provider,{value:(0,ue.Z)((0,ue.Z)({},hi),{},{hideNext:!0})},It.createElement(ll,Nn)),It.createElement(ml.Provider,{value:(0,ue.Z)((0,ue.Z)({},hi),{},{hidePrev:!0})},It.createElement(ll,Lt({},Nn,{pickerValue:pi,onPickerValueChange:Qn})))):It.createElement(ml.Provider,{value:(0,ue.Z)({},hi)},It.createElement(ll,Nn))}function el(yt){return typeof yt=="function"?yt():yt}function cd(yt){var Bt=yt.prefixCls,Ot=yt.presets,Kt=yt.onClick,le=yt.onHover;return Ot.length?It.createElement("div",{className:"".concat(Bt,"-presets")},It.createElement("ul",null,Ot.map(function(Ce,Ue){var tn=Ce.label,wn=Ce.value;return It.createElement("li",{key:Ue,onClick:function(){Kt(el(wn))},onMouseEnter:function(){le(el(wn))},onMouseLeave:function(){le(null)}},tn)}))):null}function tu(yt){var Bt=yt.panelRender,Ot=yt.internalMode,Kt=yt.picker,le=yt.showNow,Ce=yt.range,Ue=yt.multiple,tn=yt.activeInfo,wn=tn===void 0?[0,0,0]:tn,Bn=yt.presets,hn=yt.onPresetHover,oi=yt.onPresetSubmit,Pi=yt.onFocus,pi=yt.onBlur,Qn=yt.onPanelMouseDown,hi=yt.direction,si=yt.value,Nn=yt.onSelect,Vn=yt.isInvalid,Rn=yt.defaultOpenValue,ei=yt.onOk,bi=yt.onSubmit,Mi=It.useContext(ao),Ei=Mi.prefixCls,pe="".concat(Ei,"-panel"),_i=hi==="rtl",er=It.useRef(null),xr=It.useRef(null),Gr=It.useState(0),dr=de(Gr,2),Cr=dr[0],Dr=dr[1],fr=It.useState(0),Zr=de(fr,2),No=Zr[0],wo=Zr[1],yo=It.useState(0),Fr=de(yo,2),ar=Fr[0],kr=Fr[1],nr=function(Wo){Wo.width&&Dr(Wo.width)},Eo=de(wn,3),Go=Eo[0],lo=Eo[1],ko=Eo[2],fo=It.useState(0),Ko=de(fo,2),po=Ko[0],qo=Ko[1];It.useEffect(function(){qo(10)},[Go]),It.useEffect(function(){if(Ce&&xr.current){var ss,Wo=((ss=er.current)===null||ss===void 0?void 0:ss.offsetWidth)||0,dl=xr.current.getBoundingClientRect();if(!dl.height||dl.right<0){qo(function(fs){return Math.max(0,fs-1)});return}var Ra=(_i?lo-Wo:Go)-dl.left;if(kr(Ra),Cr&&Cr<ko){var aa=_i?dl.right-(lo-Wo+Cr):Go+Wo-dl.left-Cr,ca=Math.max(0,aa);wo(ca)}else wo(0)}},[po,_i,Cr,Go,lo,ko,Ce]);function Ar(ss){return ss.filter(function(Wo){return Wo})}var Qi=It.useMemo(function(){return Ar(zo(si))},[si]),Po=Kt==="time"&&!Qi.length,qr=It.useMemo(function(){return Po?Ar([Rn]):Qi},[Po,Qi,Rn]),ha=Po?Rn:Qi,So=It.useMemo(function(){return qr.length?qr.some(function(ss){return Vn(ss)}):!0},[qr,Vn]),jo=function(){Po&&Nn(Rn),ei(),bi()},ba=It.createElement("div",{className:"".concat(Ei,"-panel-layout")},It.createElement(cd,{prefixCls:Ei,presets:Bn,onClick:oi,onHover:hn}),It.createElement("div",null,It.createElement(Hs,Lt({},yt,{value:ha})),It.createElement(_u,Lt({},yt,{showNow:Ue?!1:le,invalid:So,onSubmit:jo}))));Bt&&(ba=Bt(ba));var Xr="".concat(pe,"-container"),Yo="marginLeft",es="marginRight",Ya=It.createElement("div",{onMouseDown:Qn,tabIndex:-1,className:sr()(Xr,"".concat(Ei,"-").concat(Ot,"-panel-container")),style:(0,gi.Z)((0,gi.Z)({},_i?es:Yo,No),_i?Yo:es,"auto"),onFocus:Pi,onBlur:pi},ba);return Ce&&(Ya=It.createElement("div",{onMouseDown:Qn,ref:xr,className:sr()("".concat(Ei,"-range-wrapper"),"".concat(Ei,"-").concat(Kt,"-range-wrapper"))},It.createElement("div",{ref:er,className:"".concat(Ei,"-range-arrow"),style:{left:ar}}),It.createElement(sd,{onResize:nr},Ya))),Ya}function Cs(yt,Bt){if(yt==null)return{};var Ot={};for(var Kt in yt)if({}.hasOwnProperty.call(yt,Kt)){if(Bt.indexOf(Kt)!==-1)continue;Ot[Kt]=yt[Kt]}return Ot}function gh(yt,Bt){if(yt==null)return{};var Ot,Kt,le=Cs(yt,Bt);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(yt);for(Kt=0;Kt<Ce.length;Kt++)Ot=Ce[Kt],Bt.indexOf(Ot)===-1&&{}.propertyIsEnumerable.call(yt,Ot)&&(le[Ot]=yt[Ot])}return le}function Ic(yt,Bt){var Ot=yt.format,Kt=yt.maskFormat,le=yt.generateConfig,Ce=yt.locale,Ue=yt.preserveInvalidOnBlur,tn=yt.inputReadOnly,wn=yt.required,Bn=yt["aria-required"],hn=yt.onSubmit,oi=yt.onFocus,Pi=yt.onBlur,pi=yt.onInputChange,Qn=yt.onInvalid,hi=yt.open,si=yt.onOpenChange,Nn=yt.onKeyDown,Vn=yt.onChange,Rn=yt.activeHelp,ei=yt.name,bi=yt.autoComplete,Mi=yt.id,Ei=yt.value,pe=yt.invalid,_i=yt.placeholder,er=yt.disabled,xr=yt.activeIndex,Gr=yt.allHelp,dr=yt.picker,Cr=function(ar,kr){var nr=le.locale.parse(Ce.locale,ar,[kr]);return nr&&le.isValidate(nr)?nr:null},Dr=Ot[0],fr=It.useCallback(function(Fr){return Yr(Fr,{locale:Ce,format:Dr,generateConfig:le})},[Ce,le,Dr]),Zr=It.useMemo(function(){return Ei.map(fr)},[Ei,fr]),No=It.useMemo(function(){var Fr=dr==="time"?8:10,ar=typeof Dr=="function"?Dr(le.getNow()).length:Dr.length;return Math.max(Fr,ar)+2},[Dr,dr,le]),wo=function(ar){for(var kr=0;kr<Ot.length;kr+=1){var nr=Ot[kr];if(typeof nr=="string"){var Eo=Cr(ar,nr);if(Eo)return Eo}}return!1},yo=function(ar){function kr(Go){return ar!==void 0?Go[ar]:Go}var nr=di(yt,{aria:!0,data:!0}),Eo=(0,ue.Z)((0,ue.Z)({},nr),{},{format:Kt,validateFormat:function(lo){return!!wo(lo)},preserveInvalidOnBlur:Ue,readOnly:tn,required:wn,"aria-required":Bn,name:ei,autoComplete:bi,size:No,id:kr(Mi),value:kr(Zr)||"",invalid:kr(pe),placeholder:kr(_i),active:xr===ar,helped:Gr||Rn&&xr===ar,disabled:kr(er),onFocus:function(lo){oi(lo,ar)},onBlur:function(lo){Pi(lo,ar)},onSubmit:hn,onChange:function(lo){pi();var ko=wo(lo);if(ko){Qn(!1,ar),Vn(ko,ar);return}Qn(!!lo,ar)},onHelp:function(){si(!0,{index:ar})},onKeyDown:function(lo){var ko=!1;if(Nn==null||Nn(lo,function(){ko=!0}),!lo.defaultPrevented&&!ko)switch(lo.key){case"Escape":si(!1,{index:ar});break;case"Enter":hi||si(!0);break}}},Bt==null?void 0:Bt({valueTexts:Zr}));return Object.keys(Eo).forEach(function(Go){Eo[Go]===void 0&&delete Eo[Go]}),Eo};return[yo,fr]}var Bd=["onMouseEnter","onMouseLeave"];function rr(yt){return It.useMemo(function(){return vn(yt,Bd)},[yt])}var cf=["icon","type"],xe=["onClear"];function kn(yt){var Bt=yt.icon,Ot=yt.type,Kt=gh(yt,cf),le=It.useContext(ao),Ce=le.prefixCls;return Bt?It.createElement("span",Lt({className:"".concat(Ce,"-").concat(Ot)},Kt),Bt):null}function Td(yt){var Bt=yt.onClear,Ot=gh(yt,xe);return It.createElement(kn,Lt({},Ot,{type:"clear",role:"button",onMouseDown:function(le){le.preventDefault()},onClick:function(le){le.stopPropagation(),Bt()}}))}function df(yt,Bt){if(!(yt instanceof Bt))throw new TypeError("Cannot call a class as a function")}var Bh=Ft(69847);function th(yt,Bt){for(var Ot=0;Ot<Bt.length;Ot++){var Kt=Bt[Ot];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,(0,Bh.Z)(Kt.key),Kt)}}function yc(yt,Bt,Ot){return Bt&&th(yt.prototype,Bt),Ot&&th(yt,Ot),Object.defineProperty(yt,"prototype",{writable:!1}),yt}var Sc=["YYYY","MM","DD","HH","mm","ss","SSS"],tc="\u9867",cs=function(){function yt(Bt){df(this,yt),(0,gi.Z)(this,"format",void 0),(0,gi.Z)(this,"maskFormat",void 0),(0,gi.Z)(this,"cells",void 0),(0,gi.Z)(this,"maskCells",void 0),this.format=Bt;var Ot=Sc.map(function(tn){return"(".concat(tn,")")}).join("|"),Kt=new RegExp(Ot,"g");this.maskFormat=Bt.replace(Kt,function(tn){return tc.repeat(tn.length)});var le=new RegExp("(".concat(Sc.join("|"),")")),Ce=(Bt.split(le)||[]).filter(function(tn){return tn}),Ue=0;this.cells=Ce.map(function(tn){var wn=Sc.includes(tn),Bn=Ue,hn=Ue+tn.length;return Ue=hn,{text:tn,mask:wn,start:Bn,end:hn}}),this.maskCells=this.cells.filter(function(tn){return tn.mask})}return yc(yt,[{key:"getSelection",value:function(Ot){var Kt=this.maskCells[Ot]||{},le=Kt.start,Ce=Kt.end;return[le||0,Ce||0]}},{key:"match",value:function(Ot){for(var Kt=0;Kt<this.maskFormat.length;Kt+=1){var le=this.maskFormat[Kt],Ce=Ot[Kt];if(!Ce||le!==tc&&le!==Ce)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Ot){for(var Kt=Number.MAX_SAFE_INTEGER,le=0,Ce=0;Ce<this.maskCells.length;Ce+=1){var Ue=this.maskCells[Ce],tn=Ue.start,wn=Ue.end;if(Ot>=tn&&Ot<=wn)return Ce;var Bn=Math.min(Math.abs(Ot-tn),Math.abs(Ot-wn));Bn<Kt&&(Kt=Bn,le=Ce)}return le}}]),yt}();function zr(yt){var Bt={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 Bt[yt]}var Nl=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],fu=It.forwardRef(function(yt,Bt){var Ot=yt.active,Kt=yt.showActiveCls,le=Kt===void 0?!0:Kt,Ce=yt.suffixIcon,Ue=yt.format,tn=yt.validateFormat,wn=yt.onChange,Bn=yt.onInput,hn=yt.helped,oi=yt.onHelp,Pi=yt.onSubmit,pi=yt.onKeyDown,Qn=yt.preserveInvalidOnBlur,hi=Qn===void 0?!1:Qn,si=yt.invalid,Nn=yt.clearIcon,Vn=gh(yt,Nl),Rn=yt.value,ei=yt.onFocus,bi=yt.onBlur,Mi=yt.onMouseUp,Ei=It.useContext(ao),pe=Ei.prefixCls,_i=Ei.input,er=_i===void 0?"input":_i,xr="".concat(pe,"-input"),Gr=It.useState(!1),dr=de(Gr,2),Cr=dr[0],Dr=dr[1],fr=It.useState(Rn),Zr=de(fr,2),No=Zr[0],wo=Zr[1],yo=It.useState(""),Fr=de(yo,2),ar=Fr[0],kr=Fr[1],nr=It.useState(null),Eo=de(nr,2),Go=Eo[0],lo=Eo[1],ko=It.useState(null),fo=de(ko,2),Ko=fo[0],po=fo[1],qo=No||"";It.useEffect(function(){wo(Rn)},[Rn]);var Ar=It.useRef(),Qi=It.useRef();It.useImperativeHandle(Bt,function(){return{nativeElement:Ar.current,inputElement:Qi.current,focus:function(Er){Qi.current.focus(Er)},blur:function(){Qi.current.blur()}}});var Po=It.useMemo(function(){return new cs(Ue||"")},[Ue]),qr=It.useMemo(function(){return hn?[0,0]:Po.getSelection(Go)},[Po,Go,hn]),ha=de(qr,2),So=ha[0],jo=ha[1],ba=function(Er){Er&&Er!==Ue&&Er!==Rn&&oi()},Xr=Nt(function(uo){tn(uo)&&wn(uo),wo(uo),ba(uo)}),Yo=function(Er){if(!Ue){var Aa=Er.target.value;ba(Aa),wo(Aa),wn(Aa)}},es=function(Er){var Aa=Er.clipboardData.getData("text");tn(Aa)&&Xr(Aa)},Ya=It.useRef(!1),ss=function(){Ya.current=!0},Wo=function(Er){var Aa=Er.target,Mr=Aa.selectionStart,Wr=Po.getMaskCellIndex(Mr);lo(Wr),po({}),Mi==null||Mi(Er),Ya.current=!1},dl=function(Er){Dr(!0),lo(0),kr(""),ei(Er)},Ra=function(Er){bi(Er)},aa=function(Er){Dr(!1),Ra(Er)};vo(Ot,function(){!Ot&&!hi&&wo(Rn)});var ca=function(Er){Er.key==="Enter"&&tn(qo)&&Pi(),pi==null||pi(Er)},fs=function(Er){ca(Er);var Aa=Er.key,Mr=null,Wr=null,Za=jo-So,Es=Ue.slice(So,jo),Ls=function(Gs){lo(function(ku){var Do=ku+Gs;return Do=Math.max(Do,0),Do=Math.min(Do,Po.size()-1),Do})},Il=function(Gs){var ku=zr(Es),Do=de(ku,3),Ua=Do[0],Ts=Do[1],fl=Do[2],vh=qo.slice(So,jo),Cc=Number(vh);if(isNaN(Cc))return String(fl||(Gs>0?Ua:Ts));var Ac=Cc+Gs,Ec=Ts-Ua+1;return String(Ua+(Ec+Ac-Ua)%Ec)};switch(Aa){case"Backspace":case"Delete":Mr="",Wr=Es;break;case"ArrowLeft":Mr="",Ls(-1);break;case"ArrowRight":Mr="",Ls(1);break;case"ArrowUp":Mr="",Wr=Il(1);break;case"ArrowDown":Mr="",Wr=Il(-1);break;default:isNaN(Number(Aa))||(Mr=ar+Aa,Wr=Mr);break}if(Mr!==null&&(kr(Mr),Mr.length>=Za&&(Ls(1),kr(""))),Wr!==null){var Xs=qo.slice(0,So)+Ga(Wr,Za)+qo.slice(jo);Xr(Xs.slice(0,Ue.length))}po({})},Uo=It.useRef();re(function(){if(!(!Cr||!Ue||Ya.current)){if(!Po.match(qo)){Xr(Ue);return}return Qi.current.setSelectionRange(So,jo),Uo.current=Hr(function(){Qi.current.setSelectionRange(So,jo)}),function(){Hr.cancel(Uo.current)}}},[Po,Ue,Cr,qo,Go,So,jo,Ko,Xr]);var Rl=Ue?{onFocus:dl,onBlur:aa,onKeyDown:fs,onMouseDown:ss,onMouseUp:Wo,onPaste:es}:{};return It.createElement("div",{ref:Ar,className:sr()(xr,(0,gi.Z)((0,gi.Z)({},"".concat(xr,"-active"),Ot&&le),"".concat(xr,"-placeholder"),hn))},It.createElement(er,Lt({ref:Qi,"aria-invalid":si,autoComplete:"off"},Vn,{onKeyDown:ca,onBlur:Ra},Rl,{value:qo,onChange:Yo})),It.createElement(kn,{type:"suffix",icon:Ce}),Nn)}),$a=fu,Ho=["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"],Ns=["index"];function Gl(yt,Bt){var Ot=yt.id,Kt=yt.prefix,le=yt.clearIcon,Ce=yt.suffixIcon,Ue=yt.separator,tn=Ue===void 0?"~":Ue,wn=yt.activeIndex,Bn=yt.activeHelp,hn=yt.allHelp,oi=yt.focused,Pi=yt.onFocus,pi=yt.onBlur,Qn=yt.onKeyDown,hi=yt.locale,si=yt.generateConfig,Nn=yt.placeholder,Vn=yt.className,Rn=yt.style,ei=yt.onClick,bi=yt.onClear,Mi=yt.value,Ei=yt.onChange,pe=yt.onSubmit,_i=yt.onInputChange,er=yt.format,xr=yt.maskFormat,Gr=yt.preserveInvalidOnBlur,dr=yt.onInvalid,Cr=yt.disabled,Dr=yt.invalid,fr=yt.inputReadOnly,Zr=yt.direction,No=yt.onOpenChange,wo=yt.onActiveInfo,yo=yt.placement,Fr=yt.onMouseDown,ar=yt.required,kr=yt["aria-required"],nr=yt.autoFocus,Eo=yt.tabIndex,Go=gh(yt,Ho),lo=Zr==="rtl",ko=It.useContext(ao),fo=ko.prefixCls,Ko=It.useMemo(function(){if(typeof Ot=="string")return[Ot];var Ra=Ot||{};return[Ra.start,Ra.end]},[Ot]),po=It.useRef(),qo=It.useRef(),Ar=It.useRef(),Qi=function(aa){var ca;return(ca=[qo,Ar][aa])===null||ca===void 0?void 0:ca.current};It.useImperativeHandle(Bt,function(){return{nativeElement:po.current,focus:function(aa){if((0,Ge.Z)(aa)==="object"){var ca,fs=aa||{},Uo=fs.index,Rl=Uo===void 0?0:Uo,uo=gh(fs,Ns);(ca=Qi(Rl))===null||ca===void 0||ca.focus(uo)}else{var Er;(Er=Qi(aa!=null?aa:0))===null||Er===void 0||Er.focus()}},blur:function(){var aa,ca;(aa=Qi(0))===null||aa===void 0||aa.blur(),(ca=Qi(1))===null||ca===void 0||ca.blur()}}});var Po=rr(Go),qr=It.useMemo(function(){return Array.isArray(Nn)?Nn:[Nn,Nn]},[Nn]),ha=Ic((0,ue.Z)((0,ue.Z)({},yt),{},{id:Ko,placeholder:qr})),So=de(ha,1),jo=So[0],ba=It.useState({position:"absolute",width:0}),Xr=de(ba,2),Yo=Xr[0],es=Xr[1],Ya=Nt(function(){var Ra=Qi(wn);if(Ra){var aa=Ra.nativeElement.getBoundingClientRect(),ca=po.current.getBoundingClientRect(),fs=aa.left-ca.left;es(function(Uo){return(0,ue.Z)((0,ue.Z)({},Uo),{},{width:aa.width,left:fs})}),wo([aa.left,aa.right,ca.width])}});It.useEffect(function(){Ya()},[wn]);var ss=le&&(Mi[0]&&!Cr[0]||Mi[1]&&!Cr[1]),Wo=nr&&!Cr[0],dl=nr&&!Wo&&!Cr[1];return It.createElement(sd,{onResize:Ya},It.createElement("div",Lt({},Po,{className:sr()(fo,"".concat(fo,"-range"),(0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)({},"".concat(fo,"-focused"),oi),"".concat(fo,"-disabled"),Cr.every(function(Ra){return Ra})),"".concat(fo,"-invalid"),Dr.some(function(Ra){return Ra})),"".concat(fo,"-rtl"),lo),Vn),style:Rn,ref:po,onClick:ei,onMouseDown:function(aa){var ca=aa.target;ca!==qo.current.inputElement&&ca!==Ar.current.inputElement&&aa.preventDefault(),Fr==null||Fr(aa)}}),Kt&&It.createElement("div",{className:"".concat(fo,"-prefix")},Kt),It.createElement($a,Lt({ref:qo},jo(0),{autoFocus:Wo,tabIndex:Eo,"date-range":"start"})),It.createElement("div",{className:"".concat(fo,"-range-separator")},tn),It.createElement($a,Lt({ref:Ar},jo(1),{autoFocus:dl,tabIndex:Eo,"date-range":"end"})),It.createElement("div",{className:"".concat(fo,"-active-bar"),style:Yo}),It.createElement(kn,{type:"suffix",icon:Ce}),ss&&It.createElement(Td,{icon:le,onClear:bi})))}var Qa=It.forwardRef(Gl),eu=Qa;function Us(yt,Bt){var Ot=yt!=null?yt:Bt;return Array.isArray(Ot)?Ot:[Ot,Ot]}function ju(yt){return yt===1?"end":"start"}function ma(yt,Bt){var Ot=mr(yt,function(){var be=yt.disabled,se=yt.allowEmpty,_e=Us(be,!1),qe=Us(se,!1);return{disabled:_e,allowEmpty:qe}}),Kt=de(Ot,6),le=Kt[0],Ce=Kt[1],Ue=Kt[2],tn=Kt[3],wn=Kt[4],Bn=Kt[5],hn=le.prefixCls,oi=le.styles,Pi=le.classNames,pi=le.defaultValue,Qn=le.value,hi=le.needConfirm,si=le.onKeyDown,Nn=le.disabled,Vn=le.allowEmpty,Rn=le.disabledDate,ei=le.minDate,bi=le.maxDate,Mi=le.defaultOpen,Ei=le.open,pe=le.onOpenChange,_i=le.locale,er=le.generateConfig,xr=le.picker,Gr=le.showNow,dr=le.showToday,Cr=le.showTime,Dr=le.mode,fr=le.onPanelChange,Zr=le.onCalendarChange,No=le.onOk,wo=le.defaultPickerValue,yo=le.pickerValue,Fr=le.onPickerValueChange,ar=le.inputReadOnly,kr=le.suffixIcon,nr=le.onFocus,Eo=le.onBlur,Go=le.presets,lo=le.ranges,ko=le.components,fo=le.cellRender,Ko=le.dateRender,po=le.monthCellRender,qo=le.onClick,Ar=La(Bt),Qi=Ln(Ei,Mi,Nn,pe),Po=de(Qi,2),qr=Po[0],ha=Po[1],So=function(se,_e){(Nn.some(function(qe){return!qe})||!se)&&ha(se,_e)},jo=os(er,_i,tn,!0,!1,pi,Qn,Zr,No),ba=de(jo,5),Xr=ba[0],Yo=ba[1],es=ba[2],Ya=ba[3],ss=ba[4],Wo=es(),dl=Fs(Nn,Vn,qr),Ra=de(dl,9),aa=Ra[0],ca=Ra[1],fs=Ra[2],Uo=Ra[3],Rl=Ra[4],uo=Ra[5],Er=Ra[6],Aa=Ra[7],Mr=Ra[8],Wr=function(se,_e){ca(!0),nr==null||nr(se,{range:ju(_e!=null?_e:Uo)})},Za=function(se,_e){ca(!1),Eo==null||Eo(se,{range:ju(_e!=null?_e:Uo)})},Es=It.useMemo(function(){if(!Cr)return null;var be=Cr.disabledTime,se=be?function(_e){var qe=ju(Uo),Jn=Ve(Wo,Er,Uo);return be(_e,qe,{from:Jn})}:void 0;return(0,ue.Z)((0,ue.Z)({},Cr),{},{disabledTime:se})},[Cr,Uo,Wo,Er]),Ls=Pe([xr,xr],{value:Dr}),Il=de(Ls,2),Xs=Il[0],Vu=Il[1],Gs=Xs[Uo]||xr,ku=Gs==="date"&&Es?"datetime":Gs,Do=ku===xr&&ku!=="time",Ua=hu(xr,Gs,Gr,dr,!0),Ts=uu(le,Xr,Yo,es,Ya,Nn,tn,aa,qr,Bn),fl=de(Ts,2),vh=fl[0],Cc=fl[1],Ac=Ia(Wo,Nn,Er,er,_i,Rn),Ec=fn(Wo,Bn,Vn),fd=de(Ec,2),jf=fd[0],Dd=fd[1],Rh=Fo(er,_i,Wo,Xs,qr,Uo,Ce,Do,wo,yo,Es==null?void 0:Es.defaultOpenValue,Fr,ei,bi),Od=de(Rh,2),gd=Od[0],gf=Od[1],yh=Nt(function(be,se,_e){var qe=gr(Xs,Uo,se);if((qe[0]!==Xs[0]||qe[1]!==Xs[1])&&Vu(qe),fr&&_e!==!1){var Jn=Jt(Wo);be&&(Jn[Uo]=be),fr(Jn,qe)}}),Rd=function(se,_e){return gr(Wo,_e,se)},sa=function(se,_e){var qe=Wo;se&&(qe=Rd(se,Uo)),Aa(Uo);var Jn=uo(qe);Ya(qe),vh(Uo,Jn===null),Jn===null?So(!1,{force:!0}):_e||Ar.current.focus({index:Jn})},Wc=function(se){var _e,qe=se.target.getRootNode();if(!Ar.current.nativeElement.contains((_e=qe.activeElement)!==null&&_e!==void 0?_e:document.activeElement)){var Jn=Nn.findIndex(function(vi){return!vi});Jn>=0&&Ar.current.focus({index:Jn})}So(!0),qo==null||qo(se)},rc=function(){Cc(null),So(!1,{force:!0})},rl=It.useState(null),El=de(rl,2),Lc=El[0],Mc=El[1],Ih=It.useState(null),Hc=de(Ih,2),Gc=Hc[0],pd=Hc[1],Id=It.useMemo(function(){return Gc||Wo},[Wo,Gc]);It.useEffect(function(){qr||pd(null)},[qr]);var oc=It.useState([0,0,0]),kc=de(oc,2),ac=kc[0],ns=kc[1],zd=pn(Go,lo),pf=function(se){pd(se),Mc("preset")},Kc=function(se){var _e=Cc(se);_e&&So(!1,{force:!0})},Vc=function(se){sa(se)},md=function(se){pd(se?Rd(se,Uo):null),Mc("cell")},Wf=function(se){So(!0),Wr(se)},Js=function(){fs("panel")},Hf=function(se){var _e=gr(Wo,Uo,se);Ya(_e),!hi&&!Ue&&Ce===ku&&sa(se)},Yc=function(){So(!1)},zh=xn(fo,Ko,po,ju(Uo)),vd=Wo[Uo]||null,it=Nt(function(be){return Bn(be,{activeIndex:Uo})}),ot=It.useMemo(function(){var be=di(le,!1),se=Un(le,[].concat(Jt(Object.keys(be)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return se},[le]),ct=It.createElement(tu,Lt({},ot,{showNow:Ua,showTime:Es,range:!0,multiplePanel:Do,activeInfo:ac,disabledDate:Ac,onFocus:Wf,onBlur:Za,onPanelMouseDown:Js,picker:xr,mode:Gs,internalMode:ku,onPanelChange:yh,format:wn,value:vd,isInvalid:it,onChange:null,onSelect:Hf,pickerValue:gd,defaultOpenValue:zo(Cr==null?void 0:Cr.defaultOpenValue)[Uo],onPickerValueChange:gf,hoverValue:Id,onHover:md,needConfirm:hi,onSubmit:sa,onOk:ss,presets:zd,onPresetHover:pf,onPresetSubmit:Kc,onNow:Vc,cellRender:zh})),dt=function(se,_e){var qe=Rd(se,_e);Ya(qe)},pt=function(){fs("input")},Et=function(se,_e){var qe=Er.length,Jn=Er[qe-1];if(qe&&Jn!==_e&&hi&&!Vn[Jn]&&!Mr(Jn)&&Wo[Jn]){Ar.current.focus({index:Jn});return}fs("input"),So(!0,{inherit:!0}),Uo!==_e&&qr&&!hi&&Ue&&sa(null,!0),Rl(_e),Wr(se,_e)},Rt=function(se,_e){if(So(!1),!hi&&fs()==="input"){var qe=uo(Wo);vh(Uo,qe===null)}Za(se,_e)},Ut=function(se,_e){se.key==="Tab"&&sa(null,!0),si==null||si(se,_e)},Vt=It.useMemo(function(){return{prefixCls:hn,locale:_i,generateConfig:er,button:ko.button,input:ko.input}},[hn,_i,er,ko.button,ko.input]);if(re(function(){qr&&Uo!==void 0&&yh(null,xr,!1)},[qr,Uo,xr]),re(function(){var be=fs();!qr&&be==="input"&&(So(!1),sa(null,!0)),!qr&&Ue&&!hi&&be==="panel"&&(So(!0),sa())},[qr]),0)var ae;return It.createElement(ao.Provider,{value:Vt},It.createElement(ta,Lt({},Ye(le),{popupElement:ct,popupStyle:oi.popup,popupClassName:Pi.popup,visible:qr,onClose:Yc,range:!0}),It.createElement(eu,Lt({},le,{ref:Ar,suffixIcon:kr,activeIndex:aa||qr?Uo:null,activeHelp:!!Gc,allHelp:!!Gc&&Lc==="preset",focused:aa,onFocus:Et,onBlur:Rt,onKeyDown:Ut,onSubmit:sa,value:Id,maskFormat:wn,onChange:dt,onInputChange:pt,format:tn,inputReadOnly:ar,disabled:Nn,open:qr,onOpenChange:So,onClick:Wc,onClear:rc,invalid:jf,onInvalid:Dd,onActiveInfo:ns}))))}var Bl=It.forwardRef(ma),na=Bl;function ga(){return ga=Object.assign?Object.assign.bind():function(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt];for(var Kt in Ot)Object.prototype.hasOwnProperty.call(Ot,Kt)&&(yt[Kt]=Ot[Kt])}return yt},ga.apply(this,arguments)}function Ka(yt){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Bt){return typeof Bt}:function(Bt){return Bt&&typeof Symbol=="function"&&Bt.constructor===Symbol&&Bt!==Symbol.prototype?"symbol":typeof Bt},Ka(yt)}function vs(yt,Bt){if(Ka(yt)!=="object"||yt===null)return yt;var Ot=yt[Symbol.toPrimitive];if(Ot!==void 0){var Kt=Ot.call(yt,Bt||"default");if(Ka(Kt)!=="object")return Kt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Bt==="string"?String:Number)(yt)}function va(yt){var Bt=vs(yt,"string");return Ka(Bt)==="symbol"?Bt:String(Bt)}function xc(yt,Bt,Ot){return Bt=va(Bt),Bt in yt?Object.defineProperty(yt,Bt,{value:Ot,enumerable:!0,configurable:!0,writable:!0}):yt[Bt]=Ot,yt}function Nr(yt,Bt){var Ot=Object.keys(yt);if(Object.getOwnPropertySymbols){var Kt=Object.getOwnPropertySymbols(yt);Bt&&(Kt=Kt.filter(function(le){return Object.getOwnPropertyDescriptor(yt,le).enumerable})),Ot.push.apply(Ot,Kt)}return Ot}function Th(yt){for(var Bt=1;Bt<arguments.length;Bt++){var Ot=arguments[Bt]!=null?arguments[Bt]:{};Bt%2?Nr(Object(Ot),!0).forEach(function(Kt){xc(yt,Kt,Ot[Kt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(yt,Object.getOwnPropertyDescriptors(Ot)):Nr(Object(Ot)).forEach(function(Kt){Object.defineProperty(yt,Kt,Object.getOwnPropertyDescriptor(Ot,Kt))})}return yt}function ia(yt){if(Array.isArray(yt))return yt}function zf(yt,Bt){var Ot=yt==null?null:typeof Symbol!="undefined"&&yt[Symbol.iterator]||yt["@@iterator"];if(Ot!=null){var Kt,le,Ce,Ue,tn=[],wn=!0,Bn=!1;try{if(Ce=(Ot=Ot.call(yt)).next,Bt===0){if(Object(Ot)!==Ot)return;wn=!1}else for(;!(wn=(Kt=Ce.call(Ot)).done)&&(tn.push(Kt.value),tn.length!==Bt);wn=!0);}catch(hn){Bn=!0,le=hn}finally{try{if(!wn&&Ot.return!=null&&(Ue=Ot.return(),Object(Ue)!==Ue))return}finally{if(Bn)throw le}}return tn}}function wc(yt,Bt){(Bt==null||Bt>yt.length)&&(Bt=yt.length);for(var Ot=0,Kt=new Array(Bt);Ot<Bt;Ot++)Kt[Ot]=yt[Ot];return Kt}function dd(yt,Bt){if(yt){if(typeof yt=="string")return wc(yt,Bt);var Ot=Object.prototype.toString.call(yt).slice(8,-1);if(Ot==="Object"&&yt.constructor&&(Ot=yt.constructor.name),Ot==="Map"||Ot==="Set")return Array.from(yt);if(Ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ot))return wc(yt,Bt)}}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 Wu(yt,Bt){return ia(yt)||zf(yt,Bt)||dd(yt,Bt)||ff()}function Dh(yt,Bt){if(yt==null)return{};var Ot={},Kt=Object.keys(yt),le,Ce;for(Ce=0;Ce<Kt.length;Ce++)le=Kt[Ce],!(Bt.indexOf(le)>=0)&&(Ot[le]=yt[le]);return Ot}function Hu(yt,Bt){if(yt==null)return{};var Ot=Dh(yt,Bt),Kt,le;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(yt);for(le=0;le<Ce.length;le++)Kt=Ce[le],!(Bt.indexOf(Kt)>=0)&&Object.prototype.propertyIsEnumerable.call(yt,Kt)&&(Ot[Kt]=yt[Kt])}return Ot}var xa=Ft(64363);function eh(yt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=[];return It.Children.forEach(yt,function(Kt){Kt==null&&!Bt.keepEmpty||(Array.isArray(Kt)?Ot=Ot.concat(eh(Kt)):(0,xa.isFragment)(Kt)&&Kt.props?Ot=Ot.concat(eh(Kt.props.children,Bt)):Ot.push(Kt))}),Ot}var Gt={};function he(yt,Bt){}function ve(yt,Bt){}function Se(){Gt={}}function Oe(yt,Bt,Ot){!Bt&&!Gt[Ot]&&(yt(!1,Ot),Gt[Ot]=!0)}function Qe(yt,Bt){Oe(he,yt,Bt)}function nn(yt,Bt){Oe(ve,yt,Bt)}var Sn=null;function Gn(yt,Bt,Ot){var Kt=React.useRef({});return(!("value"in Kt.current)||Ot(Kt.current.condition,Bt))&&(Kt.current.value=yt(),Kt.current.condition=Bt),Kt.current.value}function On(yt,Bt){typeof yt=="function"?yt(Bt):Ka(yt)==="object"&&yt&&"current"in yt&&(yt.current=Bt)}function ci(){for(var yt=arguments.length,Bt=new Array(yt),Ot=0;Ot<yt;Ot++)Bt[Ot]=arguments[Ot];var Kt=Bt.filter(function(le){return le});return Kt.length<=1?Kt[0]:function(le){Bt.forEach(function(Ce){On(Ce,le)})}}function Wn(){for(var yt=arguments.length,Bt=new Array(yt),Ot=0;Ot<yt;Ot++)Bt[Ot]=arguments[Ot];return useMemo(function(){return ci.apply(void 0,Bt)},Bt,function(Kt,le){return Kt.length===le.length&&Kt.every(function(Ce,Ue){return Ce===le[Ue]})})}function ri(yt){var Bt,Ot,Kt=(0,xa.isMemo)(yt)?yt.type.type:yt.type;return!(typeof Kt=="function"&&!((Bt=Kt.prototype)!==null&&Bt!==void 0&&Bt.render)||typeof yt=="function"&&!((Ot=yt.prototype)!==null&&Ot!==void 0&&Ot.render))}function Zn(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function Si(yt){return Zn(yt)?yt:yt instanceof It.Component?Xi.findDOMNode(yt):null}var Ii=new Map;function tr(yt){yt.forEach(function(Bt){var Ot,Kt=Bt.target;(Ot=Ii.get(Kt))===null||Ot===void 0||Ot.forEach(function(le){return le(Kt)})})}var yr=new ka.Z(tr),Fi=null,Ji=null;function ji(yt,Bt){Ii.has(yt)||(Ii.set(yt,new Set),yr.observe(yt)),Ii.get(yt).add(Bt)}function Sr(yt,Bt){Ii.has(yt)&&(Ii.get(yt).delete(Bt),Ii.get(yt).size||(yr.unobserve(yt),Ii.delete(yt)))}function Jr(yt,Bt){if(!(yt instanceof Bt))throw new TypeError("Cannot call a class as a function")}function pr(yt,Bt){for(var Ot=0;Ot<Bt.length;Ot++){var Kt=Bt[Ot];Kt.enumerable=Kt.enumerable||!1,Kt.configurable=!0,"value"in Kt&&(Kt.writable=!0),Object.defineProperty(yt,va(Kt.key),Kt)}}function Ro(yt,Bt,Ot){return Bt&&pr(yt.prototype,Bt),Ot&&pr(yt,Ot),Object.defineProperty(yt,"prototype",{writable:!1}),yt}function Vr(yt,Bt){return Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Kt,le){return Kt.__proto__=le,Kt},Vr(yt,Bt)}function Vo(yt,Bt){if(typeof Bt!="function"&&Bt!==null)throw new TypeError("Super expression must either be null or a function");yt.prototype=Object.create(Bt&&Bt.prototype,{constructor:{value:yt,writable:!0,configurable:!0}}),Object.defineProperty(yt,"prototype",{writable:!1}),Bt&&Vr(yt,Bt)}function Ba(yt){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ot){return Ot.__proto__||Object.getPrototypeOf(Ot)},Ba(yt)}function Xo(){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 Ur(yt){if(yt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return yt}function Qr(yt,Bt){if(Bt&&(Ka(Bt)==="object"||typeof Bt=="function"))return Bt;if(Bt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ur(yt)}function zi(yt){var Bt=Xo();return function(){var Kt=Ba(yt),le;if(Bt){var Ce=Ba(this).constructor;le=Reflect.construct(Kt,arguments,Ce)}else le=Kt.apply(this,arguments);return Qr(this,le)}}var Pr=function(yt){Vo(Ot,yt);var Bt=zi(Ot);function Ot(){return Jr(this,Ot),Bt.apply(this,arguments)}return Ro(Ot,[{key:"render",value:function(){return this.props.children}}]),Ot}(It.Component),io=It.createContext(null);function ho(yt){var Bt=yt.children,Ot=yt.onBatchResize,Kt=It.useRef(0),le=It.useRef([]),Ce=It.useContext(io),Ue=It.useCallback(function(tn,wn,Bn){Kt.current+=1;var hn=Kt.current;le.current.push({size:tn,element:wn,data:Bn}),Promise.resolve().then(function(){hn===Kt.current&&(Ot==null||Ot(le.current),le.current=[])}),Ce==null||Ce(tn,wn,Bn)},[Ot,Ce]);return It.createElement(io.Provider,{value:Ue},Bt)}function co(yt,Bt){var Ot=yt.children,Kt=yt.disabled,le=It.useRef(null),Ce=It.useRef(null),Ue=It.useContext(io),tn=typeof Ot=="function",wn=tn?Ot(le):Ot,Bn=It.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),hn=!tn&&It.isValidElement(wn)&&ri(wn),oi=hn?wn.ref:null,Pi=It.useMemo(function(){return ci(oi,le)},[oi,le]),pi=function(){return Si(le.current)||Si(Ce.current)};It.useImperativeHandle(Bt,function(){return pi()});var Qn=It.useRef(yt);Qn.current=yt;var hi=It.useCallback(function(si){var Nn=Qn.current,Vn=Nn.onResize,Rn=Nn.data,ei=si.getBoundingClientRect(),bi=ei.width,Mi=ei.height,Ei=si.offsetWidth,pe=si.offsetHeight,_i=Math.floor(bi),er=Math.floor(Mi);if(Bn.current.width!==_i||Bn.current.height!==er||Bn.current.offsetWidth!==Ei||Bn.current.offsetHeight!==pe){var xr={width:_i,height:er,offsetWidth:Ei,offsetHeight:pe};Bn.current=xr;var Gr=Ei===Math.round(bi)?bi:Ei,dr=pe===Math.round(Mi)?Mi:pe,Cr=Th(Th({},xr),{},{offsetWidth:Gr,offsetHeight:dr});Ue==null||Ue(Cr,si,Rn),Vn&&Promise.resolve().then(function(){Vn(Cr,si)})}},[]);return It.useEffect(function(){var si=pi();return si&&!Kt&&ji(si,hi),function(){return Sr(si,hi)}},[le.current,Kt]),It.createElement(Pr,{ref:Ce},hn?It.cloneElement(wn,{ref:Pi}):wn)}var ua=It.forwardRef(co),Ao=ua,Ta="rc-observer-key";function Va(yt,Bt){var Ot=yt.children,Kt=typeof Ot=="function"?[Ot]:eh(Ot);return Kt.map(function(le,Ce){var Ue=(le==null?void 0:le.key)||"".concat(Ta,"-").concat(Ce);return It.createElement(Ao,ga({},yt,{key:Ue,ref:Ce===0?Bt:void 0}),le)})}var ts=It.forwardRef(Va);ts.Collection=ho;var Zs=ts;function ys(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Io=ys()?It.useLayoutEffect:It.useEffect,ra=function(Bt,Ot){var Kt=It.useRef(!0);Io(function(){return Bt(Kt.current)},Ot),Io(function(){return Kt.current=!1,function(){Kt.current=!0}},[])},wa=function(Bt,Ot){ra(function(Kt){if(!Kt)return Bt()},Ot)},Da=ra,oa=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Lr=void 0;function pa(yt,Bt){var Ot=yt.prefixCls,Kt=yt.invalidate,le=yt.item,Ce=yt.renderItem,Ue=yt.responsive,tn=yt.responsiveDisabled,wn=yt.registerSize,Bn=yt.itemKey,hn=yt.className,oi=yt.style,Pi=yt.children,pi=yt.display,Qn=yt.order,hi=yt.component,si=hi===void 0?"div":hi,Nn=Hu(yt,oa),Vn=Ue&&!pi;function Rn(pe){wn(Bn,pe)}It.useEffect(function(){return function(){Rn(null)}},[]);var ei=Ce&&le!==Lr?Ce(le,{index:Qn}):Pi,bi;Kt||(bi={opacity:Vn?0:1,height:Vn?0:Lr,overflowY:Vn?"hidden":Lr,order:Ue?Qn:Lr,pointerEvents:Vn?"none":Lr,position:Vn?"absolute":Lr});var Mi={};Vn&&(Mi["aria-hidden"]=!0);var Ei=It.createElement(si,ga({className:sr()(!Kt&&Ot,hn),style:Th(Th({},bi),oi)},Mi,Nn,{ref:Bt}),ei);return Ue&&(Ei=It.createElement(Zs,{onResize:function(_i){var er=_i.offsetWidth;Rn(er)},disabled:tn},Ei)),Ei}var As=It.forwardRef(pa);As.displayName="Item";var nl=As;function Sl(yt){var Bt=It.useRef();Bt.current=yt;var Ot=It.useCallback(function(){for(var Kt,le=arguments.length,Ce=new Array(le),Ue=0;Ue<le;Ue++)Ce[Ue]=arguments[Ue];return(Kt=Bt.current)===null||Kt===void 0?void 0:Kt.call.apply(Kt,[Bt].concat(Ce))},[]);return Ot}var Tl=function(Bt){return+setTimeout(Bt,16)},Dl=function(Bt){return clearTimeout(Bt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Tl=function(Bt){return window.requestAnimationFrame(Bt)},Dl=function(Bt){return window.cancelAnimationFrame(Bt)});var nu=0,_r=new Map;function Ol(yt){_r.delete(yt)}var Oa=function(Bt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;nu+=1;var Kt=nu;function le(Ce){if(Ce===0)Ol(Kt),Bt();else{var Ue=Tl(function(){le(Ce-1)});_r.set(Kt,Ue)}}return le(Ot),Kt};Oa.cancel=function(yt){var Bt=_r.get(yt);return Ol(Bt),Dl(Bt)};var il=Oa;function ul(yt){if(typeof MessageChannel=="undefined")il(yt);else{var Bt=new MessageChannel;Bt.port1.onmessage=function(){return yt()},Bt.port2.postMessage(void 0)}}function Bs(){var yt=It.useRef(null),Bt=function(Kt){yt.current||(yt.current=[],ul(function(){(0,Xi.unstable_batchedUpdates)(function(){yt.current.forEach(function(le){le()}),yt.current=null})})),yt.current.push(Kt)};return Bt}function gu(yt,Bt){var Ot=It.useState(Bt),Kt=Wu(Ot,2),le=Kt[0],Ce=Kt[1],Ue=Sl(function(tn){yt(function(){Ce(tn)})});return[le,Ue]}var Cl=It.createContext(null),Eu=["component"],ds=["className"],pu=["className"],Gu=function(Bt,Ot){var Kt=It.useContext(Cl);if(!Kt){var le=Bt.component,Ce=le===void 0?"div":le,Ue=Hu(Bt,Eu);return It.createElement(Ce,ga({},Ue,{ref:Ot}))}var tn=Kt.className,wn=Hu(Kt,ds),Bn=Bt.className,hn=Hu(Bt,pu);return It.createElement(Cl.Provider,{value:null},It.createElement(nl,ga({ref:Ot,className:sr()(tn,Bn)},wn,hn)))},Oh=It.forwardRef(Gu);Oh.displayName="RawItem";var zc=Oh,ec=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],hl="responsive",nh="invalidate";function cl(yt){return"+ ".concat(yt.length," ...")}function Lu(yt,Bt){var Ot=yt.prefixCls,Kt=Ot===void 0?"rc-overflow":Ot,le=yt.data,Ce=le===void 0?[]:le,Ue=yt.renderItem,tn=yt.renderRawItem,wn=yt.itemKey,Bn=yt.itemWidth,hn=Bn===void 0?10:Bn,oi=yt.ssr,Pi=yt.style,pi=yt.className,Qn=yt.maxCount,hi=yt.renderRest,si=yt.renderRawRest,Nn=yt.suffix,Vn=yt.component,Rn=Vn===void 0?"div":Vn,ei=yt.itemComponent,bi=yt.onVisibleChange,Mi=Hu(yt,ec),Ei=oi==="full",pe=Bs(),_i=gu(pe,null),er=Wu(_i,2),xr=er[0],Gr=er[1],dr=xr||0,Cr=gu(pe,new Map),Dr=Wu(Cr,2),fr=Dr[0],Zr=Dr[1],No=gu(pe,0),wo=Wu(No,2),yo=wo[0],Fr=wo[1],ar=gu(pe,0),kr=Wu(ar,2),nr=kr[0],Eo=kr[1],Go=gu(pe,0),lo=Wu(Go,2),ko=lo[0],fo=lo[1],Ko=(0,It.useState)(null),po=Wu(Ko,2),qo=po[0],Ar=po[1],Qi=(0,It.useState)(null),Po=Wu(Qi,2),qr=Po[0],ha=Po[1],So=It.useMemo(function(){return qr===null&&Ei?Number.MAX_SAFE_INTEGER:qr||0},[qr,xr]),jo=(0,It.useState)(!1),ba=Wu(jo,2),Xr=ba[0],Yo=ba[1],es="".concat(Kt,"-item"),Ya=Math.max(yo,nr),ss=Qn===hl,Wo=Ce.length&&ss,dl=Qn===nh,Ra=Wo||typeof Qn=="number"&&Ce.length>Qn,aa=(0,It.useMemo)(function(){var Do=Ce;return Wo?xr===null&&Ei?Do=Ce:Do=Ce.slice(0,Math.min(Ce.length,dr/hn)):typeof Qn=="number"&&(Do=Ce.slice(0,Qn)),Do},[Ce,hn,xr,Qn,Wo]),ca=(0,It.useMemo)(function(){return Wo?Ce.slice(So+1):Ce.slice(aa.length)},[Ce,aa,Wo,So]),fs=(0,It.useCallback)(function(Do,Ua){var Ts;return typeof wn=="function"?wn(Do):(Ts=wn&&(Do==null?void 0:Do[wn]))!==null&&Ts!==void 0?Ts:Ua},[wn]),Uo=(0,It.useCallback)(Ue||function(Do){return Do},[Ue]);function Rl(Do,Ua,Ts){qr===Do&&(Ua===void 0||Ua===qo)||(ha(Do),Ts||(Yo(Do<Ce.length-1),bi==null||bi(Do)),Ua!==void 0&&Ar(Ua))}function uo(Do,Ua){Gr(Ua.clientWidth)}function Er(Do,Ua){Zr(function(Ts){var fl=new Map(Ts);return Ua===null?fl.delete(Do):fl.set(Do,Ua),fl})}function Aa(Do,Ua){Eo(Ua),Fr(nr)}function Mr(Do,Ua){fo(Ua)}function Wr(Do){return fr.get(fs(aa[Do],Do))}Da(function(){if(dr&&typeof Ya=="number"&&aa){var Do=ko,Ua=aa.length,Ts=Ua-1;if(!Ua){Rl(0,null);return}for(var fl=0;fl<Ua;fl+=1){var vh=Wr(fl);if(Ei&&(vh=vh||0),vh===void 0){Rl(fl-1,void 0,!0);break}if(Do+=vh,Ts===0&&Do<=dr||fl===Ts-1&&Do+Wr(Ts)<=dr){Rl(Ts,null);break}else if(Do+Ya>dr){Rl(fl-1,Do-vh-ko+nr);break}}Nn&&Wr(0)+ko>dr&&Ar(null)}},[dr,fr,nr,ko,fs,aa]);var Za=Xr&&!!ca.length,Es={};qo!==null&&Wo&&(Es={position:"absolute",left:qo,top:0});var Ls={prefixCls:es,responsive:Wo,component:ei,invalidate:dl},Il=tn?function(Do,Ua){var Ts=fs(Do,Ua);return It.createElement(Cl.Provider,{key:Ts,value:Th(Th({},Ls),{},{order:Ua,item:Do,itemKey:Ts,registerSize:Er,display:Ua<=So})},tn(Do,Ua))}:function(Do,Ua){var Ts=fs(Do,Ua);return It.createElement(nl,ga({},Ls,{order:Ua,key:Ts,item:Do,renderItem:Uo,itemKey:Ts,registerSize:Er,display:Ua<=So}))},Xs={order:Za?So:Number.MAX_SAFE_INTEGER,className:"".concat(es,"-rest"),registerSize:Aa,display:Za},Vu=hi||cl,Gs=si?It.createElement(Cl.Provider,{value:Th(Th({},Ls),Xs)},si(ca)):It.createElement(nl,ga({},Ls,Xs),typeof Vu=="function"?Vu(ca):Vu),ku=It.createElement(Rn,ga({className:sr()(!dl&&Kt,pi),style:Pi,ref:Bt},Mi),aa.map(Il),Ra?Gs:null,Nn&&It.createElement(nl,ga({},Ls,{responsive:ss,responsiveDisabled:!Wo,order:So,className:"".concat(es,"-suffix"),registerSize:Mr,display:!0,style:Es}),Nn));return ss?It.createElement(Zs,{onResize:uo,disabled:!Wo},ku):ku}var mu=It.forwardRef(Lu);mu.displayName="Overflow",mu.Item=zc,mu.RESPONSIVE=hl,mu.INVALIDATE=nh;var ih=mu,Pc=ih;function nc(yt){var Bt=yt.prefixCls,Ot=yt.value,Kt=yt.onRemove,le=yt.removeIcon,Ce=le===void 0?"\xD7":le,Ue=yt.formatDate,tn=yt.disabled,wn=yt.maxTagCount,Bn=yt.placeholder,hn="".concat(Bt,"-selector"),oi="".concat(Bt,"-selection"),Pi="".concat(oi,"-overflow");function pi(si,Nn){return It.createElement("span",{className:sr()("".concat(oi,"-item")),title:typeof si=="string"?si:null},It.createElement("span",{className:"".concat(oi,"-item-content")},si),!tn&&Nn&&It.createElement("span",{onMouseDown:function(Rn){Rn.preventDefault()},onClick:Nn,className:"".concat(oi,"-item-remove")},Ce))}function Qn(si){var Nn=Ue(si),Vn=function(ei){ei&&ei.stopPropagation(),Kt(si)};return pi(Nn,Vn)}function hi(si){var Nn="+ ".concat(si.length," ...");return pi(Nn)}return It.createElement("div",{className:hn},It.createElement(Pc,{prefixCls:Pi,data:Ot,renderItem:Qn,renderRest:hi,itemKey:function(Nn){return Ue(Nn)},maxCount:wn}),!Ot.length&&It.createElement("span",{className:"".concat(Bt,"-selection-placeholder")},Bn))}var jc=["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 ph(yt,Bt){var Ot=yt.id,Kt=yt.open,le=yt.prefix,Ce=yt.clearIcon,Ue=yt.suffixIcon,tn=yt.activeHelp,wn=yt.allHelp,Bn=yt.focused,hn=yt.onFocus,oi=yt.onBlur,Pi=yt.onKeyDown,pi=yt.locale,Qn=yt.generateConfig,hi=yt.placeholder,si=yt.className,Nn=yt.style,Vn=yt.onClick,Rn=yt.onClear,ei=yt.internalPicker,bi=yt.value,Mi=yt.onChange,Ei=yt.onSubmit,pe=yt.onInputChange,_i=yt.multiple,er=yt.maxTagCount,xr=yt.format,Gr=yt.maskFormat,dr=yt.preserveInvalidOnBlur,Cr=yt.onInvalid,Dr=yt.disabled,fr=yt.invalid,Zr=yt.inputReadOnly,No=yt.direction,wo=yt.onOpenChange,yo=yt.onMouseDown,Fr=yt.required,ar=yt["aria-required"],kr=yt.autoFocus,nr=yt.tabIndex,Eo=yt.removeIcon,Go=gh(yt,jc),lo=No==="rtl",ko=It.useContext(ao),fo=ko.prefixCls,Ko=It.useRef(),po=It.useRef();It.useImperativeHandle(Bt,function(){return{nativeElement:Ko.current,focus:function(Yo){var es;(es=po.current)===null||es===void 0||es.focus(Yo)},blur:function(){var Yo;(Yo=po.current)===null||Yo===void 0||Yo.blur()}}});var qo=rr(Go),Ar=function(Yo){Mi([Yo])},Qi=function(Yo){var es=bi.filter(function(Ya){return Ya&&!ki(Qn,pi,Ya,Yo,ei)});Mi(es),Kt||Ei()},Po=Ic((0,ue.Z)((0,ue.Z)({},yt),{},{onChange:Ar}),function(Xr){var Yo=Xr.valueTexts;return{value:Yo[0]||"",active:Bn}}),qr=de(Po,2),ha=qr[0],So=qr[1],jo=!!(Ce&&bi.length&&!Dr),ba=_i?It.createElement(It.Fragment,null,It.createElement(nc,{prefixCls:fo,value:bi,onRemove:Qi,formatDate:So,maxTagCount:er,disabled:Dr,removeIcon:Eo,placeholder:hi}),It.createElement("input",{className:"".concat(fo,"-multiple-input"),value:bi.map(So).join(","),ref:po,readOnly:!0,autoFocus:kr,tabIndex:nr}),It.createElement(kn,{type:"suffix",icon:Ue}),jo&&It.createElement(Td,{icon:Ce,onClear:Rn})):It.createElement($a,Lt({ref:po},ha(),{autoFocus:kr,tabIndex:nr,suffixIcon:Ue,clearIcon:jo&&It.createElement(Td,{icon:Ce,onClear:Rn}),showActiveCls:!1}));return It.createElement("div",Lt({},qo,{className:sr()(fo,(0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)((0,gi.Z)({},"".concat(fo,"-multiple"),_i),"".concat(fo,"-focused"),Bn),"".concat(fo,"-disabled"),Dr),"".concat(fo,"-invalid"),fr),"".concat(fo,"-rtl"),lo),si),style:Nn,ref:Ko,onClick:Vn,onMouseDown:function(Yo){var es,Ya=Yo.target;Ya!==((es=po.current)===null||es===void 0?void 0:es.inputElement)&&Yo.preventDefault(),yo==null||yo(Yo)}}),le&&It.createElement("div",{className:"".concat(fo,"-prefix")},le),ba)}var Mu=It.forwardRef(ph),ic=Mu;function mh(yt,Bt){var Ot=mr(yt),Kt=de(Ot,6),le=Kt[0],Ce=Kt[1],Ue=Kt[2],tn=Kt[3],wn=Kt[4],Bn=Kt[5],hn=le,oi=hn.prefixCls,Pi=hn.styles,pi=hn.classNames,Qn=hn.order,hi=hn.defaultValue,si=hn.value,Nn=hn.needConfirm,Vn=hn.onChange,Rn=hn.onKeyDown,ei=hn.disabled,bi=hn.disabledDate,Mi=hn.minDate,Ei=hn.maxDate,pe=hn.defaultOpen,_i=hn.open,er=hn.onOpenChange,xr=hn.locale,Gr=hn.generateConfig,dr=hn.picker,Cr=hn.showNow,Dr=hn.showToday,fr=hn.showTime,Zr=hn.mode,No=hn.onPanelChange,wo=hn.onCalendarChange,yo=hn.onOk,Fr=hn.multiple,ar=hn.defaultPickerValue,kr=hn.pickerValue,nr=hn.onPickerValueChange,Eo=hn.inputReadOnly,Go=hn.suffixIcon,lo=hn.removeIcon,ko=hn.onFocus,fo=hn.onBlur,Ko=hn.presets,po=hn.components,qo=hn.cellRender,Ar=hn.dateRender,Qi=hn.monthCellRender,Po=hn.onClick,qr=La(Bt);function ha(ot){return ot===null?null:Fr?ot:ot[0]}var So=Rc(Gr,xr,Ce),jo=Ln(_i,pe,[ei],er),ba=de(jo,2),Xr=ba[0],Yo=ba[1],es=function(ct,dt,pt){if(wo){var Et=(0,ue.Z)({},pt);delete Et.range,wo(ha(ct),ha(dt),Et)}},Ya=function(ct){yo==null||yo(ha(ct))},ss=os(Gr,xr,tn,!1,Qn,hi,si,es,Ya),Wo=de(ss,5),dl=Wo[0],Ra=Wo[1],aa=Wo[2],ca=Wo[3],fs=Wo[4],Uo=aa(),Rl=Fs([ei]),uo=de(Rl,4),Er=uo[0],Aa=uo[1],Mr=uo[2],Wr=uo[3],Za=function(ct){Aa(!0),ko==null||ko(ct,{})},Es=function(ct){Aa(!1),fo==null||fo(ct,{})},Ls=Pe(dr,{value:Zr}),Il=de(Ls,2),Xs=Il[0],Vu=Il[1],Gs=Xs==="date"&&fr?"datetime":Xs,ku=hu(dr,Xs,Cr,Dr),Do=Vn&&function(ot,ct){Vn(ha(ot),ha(ct))},Ua=uu((0,ue.Z)((0,ue.Z)({},le),{},{onChange:Do}),dl,Ra,aa,ca,[],tn,Er,Xr,Bn),Ts=de(Ua,2),fl=Ts[1],vh=fn(Uo,Bn),Cc=de(vh,2),Ac=Cc[0],Ec=Cc[1],fd=It.useMemo(function(){return Ac.some(function(ot){return ot})},[Ac]),jf=function(ct,dt){if(nr){var pt=(0,ue.Z)((0,ue.Z)({},dt),{},{mode:dt.mode[0]});delete pt.range,nr(ct[0],pt)}},Dd=Fo(Gr,xr,Uo,[Xs],Xr,Wr,Ce,!1,ar,kr,zo(fr==null?void 0:fr.defaultOpenValue),jf,Mi,Ei),Rh=de(Dd,2),Od=Rh[0],gd=Rh[1],gf=Nt(function(ot,ct,dt){if(Vu(ct),No&&dt!==!1){var pt=ot||Uo[Uo.length-1];No(pt,ct)}}),yh=function(){fl(aa()),Yo(!1,{force:!0})},Rd=function(ct){!ei&&!qr.current.nativeElement.contains(document.activeElement)&&qr.current.focus(),Yo(!0),Po==null||Po(ct)},sa=function(){fl(null),Yo(!1,{force:!0})},Wc=It.useState(null),rc=de(Wc,2),rl=rc[0],El=rc[1],Lc=It.useState(null),Mc=de(Lc,2),Ih=Mc[0],Hc=Mc[1],Gc=It.useMemo(function(){var ot=[Ih].concat(Jt(Uo)).filter(function(ct){return ct});return Fr?ot:ot.slice(0,1)},[Uo,Ih,Fr]),pd=It.useMemo(function(){return!Fr&&Ih?[Ih]:Uo.filter(function(ot){return ot})},[Uo,Ih,Fr]);It.useEffect(function(){Xr||Hc(null)},[Xr]);var Id=pn(Ko),oc=function(ct){Hc(ct),El("preset")},kc=function(ct){var dt=Fr?So(aa(),ct):[ct],pt=fl(dt);pt&&!Fr&&Yo(!1,{force:!0})},ac=function(ct){kc(ct)},ns=function(ct){Hc(ct),El("cell")},zd=function(ct){Yo(!0),Za(ct)},pf=function(ct){if(Mr("panel"),!(Fr&&Gs!==dr)){var dt=Fr?So(aa(),ct):[ct];ca(dt),!Nn&&!Ue&&Ce===Gs&&yh()}},Kc=function(){Yo(!1)},Vc=xn(qo,Ar,Qi),md=It.useMemo(function(){var ot=di(le,!1),ct=Un(le,[].concat(Jt(Object.keys(ot)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,ue.Z)((0,ue.Z)({},ct),{},{multiple:le.multiple})},[le]),Wf=It.createElement(tu,Lt({},md,{showNow:ku,showTime:fr,disabledDate:bi,onFocus:zd,onBlur:Es,picker:dr,mode:Xs,internalMode:Gs,onPanelChange:gf,format:wn,value:Uo,isInvalid:Bn,onChange:null,onSelect:pf,pickerValue:Od,defaultOpenValue:fr==null?void 0:fr.defaultOpenValue,onPickerValueChange:gd,hoverValue:Gc,onHover:ns,needConfirm:Nn,onSubmit:yh,onOk:fs,presets:Id,onPresetHover:oc,onPresetSubmit:kc,onNow:ac,cellRender:Vc})),Js=function(ct){ca(ct)},Hf=function(){Mr("input")},Yc=function(ct){Mr("input"),Yo(!0,{inherit:!0}),Za(ct)},zh=function(ct){Yo(!1),Es(ct)},vd=function(ct,dt){ct.key==="Tab"&&yh(),Rn==null||Rn(ct,dt)},it=It.useMemo(function(){return{prefixCls:oi,locale:xr,generateConfig:Gr,button:po.button,input:po.input}},[oi,xr,Gr,po.button,po.input]);return re(function(){Xr&&Wr!==void 0&&gf(null,dr,!1)},[Xr,Wr,dr]),re(function(){var ot=Mr();!Xr&&ot==="input"&&(Yo(!1),yh()),!Xr&&Ue&&!Nn&&ot==="panel"&&yh()},[Xr]),It.createElement(ao.Provider,{value:it},It.createElement(ta,Lt({},Ye(le),{popupElement:Wf,popupStyle:Pi.popup,popupClassName:pi.popup,visible:Xr,onClose:Kc}),It.createElement(ic,Lt({},le,{ref:qr,suffixIcon:Go,removeIcon:lo,activeHelp:!!Ih,allHelp:!!Ih&&rl==="preset",focused:Er,onFocus:Yc,onBlur:zh,onKeyDown:vd,onSubmit:yh,value:pd,maskFormat:wn,onChange:Js,onInputChange:Hf,internalPicker:Ce,format:tn,inputReadOnly:Eo,disabled:ei,open:Xr,onOpenChange:Yo,onClick:Rd,onClear:sa,invalid:fd,onInvalid:function(ct){Ec(ct,0)}}))))}var is=It.forwardRef(mh),Al=is,Ku=Al},50538:function(Pn,Hn){"use strict";var Ft;var Lt=typeof Symbol=="function"&&Symbol.for,ie=Lt?Symbol.for("react.element"):60103,Be=Lt?Symbol.for("react.portal"):60106,Ne=Lt?Symbol.for("react.fragment"):60107,Ae=Lt?Symbol.for("react.strict_mode"):60108,Dt=Lt?Symbol.for("react.profiler"):60114,Jt=Lt?Symbol.for("react.provider"):60109,ue=Lt?Symbol.for("react.context"):60110,ce=Lt?Symbol.for("react.async_mode"):60111,ye=Lt?Symbol.for("react.concurrent_mode"):60111,Je=Lt?Symbol.for("react.forward_ref"):60112,de=Lt?Symbol.for("react.suspense"):60113,It=Lt?Symbol.for("react.suspense_list"):60120,Nt=Lt?Symbol.for("react.memo"):60115,nt=Lt?Symbol.for("react.lazy"):60116,et=Lt?Symbol.for("react.block"):60121,ht=Lt?Symbol.for("react.fundamental"):60117,lt=Lt?Symbol.for("react.responder"):60118,gt=Lt?Symbol.for("react.scope"):60119;function mt(Mt){if(typeof Mt=="object"&&Mt!==null){var zt=Mt.$$typeof;switch(zt){case ie:switch(Mt=Mt.type,Mt){case ce:case ye:case Ne:case Dt:case Ae:case de:return Mt;default:switch(Mt=Mt&&Mt.$$typeof,Mt){case ue:case Je:case nt:case Nt:case Jt:return Mt;default:return zt}}case Be:return zt}}}function St(Mt){return mt(Mt)===ye}Ft=ce,Ft=ye,Ft=ue,Ft=Jt,Ft=ie,Ft=Je,Ft=Ne,Ft=nt,Ft=Nt,Ft=Be,Ft=Dt,Ft=Ae,Ft=de,Ft=function(Mt){return St(Mt)||mt(Mt)===ce},Ft=St,Ft=function(Mt){return mt(Mt)===ue},Ft=function(Mt){return mt(Mt)===Jt},Ft=function(Mt){return typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===ie},Ft=function(Mt){return mt(Mt)===Je},Hn.isFragment=function(Mt){return mt(Mt)===Ne},Ft=function(Mt){return mt(Mt)===nt},Hn.isMemo=function(Mt){return mt(Mt)===Nt},Ft=function(Mt){return mt(Mt)===Be},Ft=function(Mt){return mt(Mt)===Dt},Ft=function(Mt){return mt(Mt)===Ae},Ft=function(Mt){return mt(Mt)===de},Ft=function(Mt){return typeof Mt=="string"||typeof Mt=="function"||Mt===Ne||Mt===ye||Mt===Dt||Mt===Ae||Mt===de||Mt===It||typeof Mt=="object"&&Mt!==null&&(Mt.$$typeof===nt||Mt.$$typeof===Nt||Mt.$$typeof===Jt||Mt.$$typeof===ue||Mt.$$typeof===Je||Mt.$$typeof===ht||Mt.$$typeof===lt||Mt.$$typeof===gt||Mt.$$typeof===et)},Ft=mt},64363:function(Pn,Hn,Ft){"use strict";Pn.exports=Ft(50538)},36963:function(Pn,Hn){"use strict";var Ft;var Lt=Symbol.for("react.element"),ie=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ae=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),Jt=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),ce=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Nt=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 Lt:switch(ht=ht.type,ht){case Be:case Ae:case Ne:case ye:case Je:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Jt:case ce:case It:case de:case Dt:return ht;default:return lt}}case ie:return lt}}}Ft=Jt,Ft=Dt,Ft=Lt,Hn.ForwardRef=ce,Ft=Be,Ft=It,Ft=de,Ft=ie,Ft=Ae,Ft=Ne,Ft=ye,Ft=Je,Ft=function(){return!1},Ft=function(){return!1},Ft=function(ht){return et(ht)===Jt},Ft=function(ht){return et(ht)===Dt},Ft=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Lt},Ft=function(ht){return et(ht)===ce},Ft=function(ht){return et(ht)===Be},Ft=function(ht){return et(ht)===It},Hn.isMemo=function(ht){return et(ht)===de},Ft=function(ht){return et(ht)===ie},Ft=function(ht){return et(ht)===Ae},Ft=function(ht){return et(ht)===Ne},Ft=function(ht){return et(ht)===ye},Ft=function(ht){return et(ht)===Je},Ft=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Be||ht===Ae||ht===Ne||ht===ye||ht===Je||ht===Nt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===It||ht.$$typeof===de||ht.$$typeof===Dt||ht.$$typeof===Jt||ht.$$typeof===ce||ht.$$typeof===nt||ht.getModuleId!==void 0)},Ft=et},17756:function(Pn,Hn,Ft){"use strict";Pn.exports=Ft(36963)},43579:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Cd:function(){return Pe}});var Lt=Ft(87462),ie=Ft(1413),Be=Ft(45987),Ne=Ft(67294),Ae=Ft(94184),Dt=Ft.n(Ae),Jt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ue=function(){var He=(0,Ne.useRef)([]),Ie=(0,Ne.useRef)(null);return(0,Ne.useEffect)(function(){var In=Date.now(),bn=!1;He.current.forEach(function(cn){if(cn){bn=!0;var Xn=cn.style;Xn.transitionDuration=".3s, .3s, .3s, .06s",Ie.current&&In-Ie.current<100&&(Xn.transitionDuration="0s, 0s")}}),bn&&(Ie.current=Date.now())}),He.current},ce=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ye=function(He){var Ie=(0,ie.Z)((0,ie.Z)({},Jt),He),In=Ie.className,bn=Ie.percent,cn=Ie.prefixCls,Xn=Ie.strokeColor,$t=Ie.strokeLinecap,jt=Ie.strokeWidth,Ee=Ie.style,sn=Ie.trailColor,Tn=Ie.trailWidth,Le=Ie.transition,gn=(0,Be.Z)(Ie,ce);delete gn.gapPosition;var $e=Array.isArray(bn)?bn:[bn],Fn=Array.isArray(Xn)?Xn:[Xn],ke=ue(),fe=jt/2,Re=100-jt/2,dn="M ".concat($t==="round"?fe:0,",").concat(fe,`
|
|
L `).concat($t==="round"?Re:100,",").concat(fe),Te="0 0 100 ".concat(jt),Ht=0;return Ne.createElement("svg",(0,Lt.Z)({className:Dt()("".concat(cn,"-line"),In),viewBox:Te,preserveAspectRatio:"none",style:Ee},gn),Ne.createElement("path",{className:"".concat(cn,"-line-trail"),d:dn,strokeLinecap:$t,stroke:sn,strokeWidth:Tn||jt,fillOpacity:"0"}),$e.map(function(At,Ct){var Tt=1;switch($t){case"round":Tt=1-jt/100;break;case"square":Tt=1-jt/2/100;break;default:Tt=1;break}var Xt={strokeDasharray:"".concat(At*Tt,"px, 100px"),strokeDashoffset:"-".concat(Ht,"px"),transition:Le||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kt=Fn[Ct]||Fn[Fn.length-1];return Ht+=At,Ne.createElement("path",{key:Ct,className:"".concat(cn,"-line-path"),d:dn,strokeLinecap:$t,stroke:kt,strokeWidth:jt,fillOpacity:"0",ref:function(rn){ke[Ct]=rn},style:Xt})}))},Je=ye,de=Ft(71002),It=Ft(97685),Nt=Ft(98924),nt=0,et=(0,Nt.Z)();function ht(){var Fe;return et?(Fe=nt,nt+=1):Fe="TEST_OR_SSR",Fe}var lt=function(Fe){var He=Ne.useState(),Ie=(0,It.Z)(He,2),In=Ie[0],bn=Ie[1];return Ne.useEffect(function(){bn("rc_progress_".concat(ht()))},[]),Fe||In},gt=function(He){var Ie=He.bg,In=He.children;return Ne.createElement("div",{style:{width:"100%",height:"100%",background:Ie}},In)};function mt(Fe,He){return Object.keys(Fe).map(function(Ie){var In=parseFloat(Ie),bn="".concat(Math.floor(In*He),"%");return"".concat(Fe[Ie]," ").concat(bn)})}var St=Ne.forwardRef(function(Fe,He){var Ie=Fe.prefixCls,In=Fe.color,bn=Fe.gradientId,cn=Fe.radius,Xn=Fe.style,$t=Fe.ptg,jt=Fe.strokeLinecap,Ee=Fe.strokeWidth,sn=Fe.size,Tn=Fe.gapDegree,Le=In&&(0,de.Z)(In)==="object",gn=Le?"#FFF":void 0,$e=sn/2,Fn=Ne.createElement("circle",{className:"".concat(Ie,"-circle-path"),r:cn,cx:$e,cy:$e,stroke:gn,strokeLinecap:jt,strokeWidth:Ee,opacity:$t===0?0:1,style:Xn,ref:He});if(!Le)return Fn;var ke="".concat(bn,"-conic"),fe=Tn?"".concat(180+Tn/2,"deg"):"0deg",Re=mt(In,(360-Tn)/360),dn=mt(In,1),Te="conic-gradient(from ".concat(fe,", ").concat(Re.join(", "),")"),Ht="linear-gradient(to ".concat(Tn?"bottom":"top",", ").concat(dn.join(", "),")");return Ne.createElement(Ne.Fragment,null,Ne.createElement("mask",{id:ke},Fn),Ne.createElement("foreignObject",{x:0,y:0,width:sn,height:sn,mask:"url(#".concat(ke,")")},Ne.createElement(gt,{bg:Ht},Ne.createElement(gt,{bg:Te}))))}),Mt=St,zt=100,qt=function(He,Ie,In,bn,cn,Xn,$t,jt,Ee,sn){var Tn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Le=In/100*360*((360-Xn)/360),gn=Xn===0?0:{bottom:0,top:180,left:90,right:-90}[$t],$e=(100-bn)/100*Ie;Ee==="round"&&bn!==100&&($e+=sn/2,$e>=Ie&&($e=Ie-.01));var Fn=zt/2;return{stroke:typeof jt=="string"?jt:void 0,strokeDasharray:"".concat(Ie,"px ").concat(He),strokeDashoffset:$e+Tn,transform:"rotate(".concat(cn+Le+gn,"deg)"),transformOrigin:"".concat(Fn,"px ").concat(Fn,"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 _t(Fe){var He=Fe!=null?Fe:[];return Array.isArray(He)?He:[He]}var Zt=function(He){var Ie=(0,ie.Z)((0,ie.Z)({},Jt),He),In=Ie.id,bn=Ie.prefixCls,cn=Ie.steps,Xn=Ie.strokeWidth,$t=Ie.trailWidth,jt=Ie.gapDegree,Ee=jt===void 0?0:jt,sn=Ie.gapPosition,Tn=Ie.trailColor,Le=Ie.strokeLinecap,gn=Ie.style,$e=Ie.className,Fn=Ie.strokeColor,ke=Ie.percent,fe=(0,Be.Z)(Ie,re),Re=zt/2,dn=lt(In),Te="".concat(dn,"-gradient"),Ht=Re-Xn/2,At=Math.PI*2*Ht,Ct=Ee>0?90+Ee/2:-90,Tt=At*((360-Ee)/360),Xt=(0,de.Z)(cn)==="object"?cn:{count:cn,gap:2},kt=Xt.count,ee=Xt.gap,rn=_t(ke),on=_t(Fn),Un=on.find(function($n){return $n&&(0,de.Z)($n)==="object"}),en=Un&&(0,de.Z)(Un)==="object",Mn=en?"butt":Le,Ke=qt(At,Tt,0,100,Ct,Ee,sn,Tn,Mn,Xn),jn=ue(),ni=function(){var Ai=0;return rn.map(function(Ki,ii){var mi=on[ii]||on[on.length-1],di=qt(At,Tt,Ai,Ki,Ct,Ee,sn,mi,Mn,Xn);return Ai+=Ki,Ne.createElement(Mt,{key:ii,color:mi,ptg:Ki,radius:Ht,prefixCls:bn,gradientId:Te,style:di,strokeLinecap:Mn,strokeWidth:Xn,gapDegree:Ee,ref:function(hr){jn[ii]=hr},size:zt})}).reverse()},Oi=function(){var Ai=Math.round(kt*(rn[0]/100)),Ki=100/kt,ii=0;return new Array(kt).fill(null).map(function(mi,di){var gi=di<=Ai-1?on[0]:Tn,hr=gi&&(0,de.Z)(gi)==="object"?"url(#".concat(Te,")"):void 0,Or=qt(At,Tt,ii,Ki,Ct,Ee,sn,gi,"butt",Xn,ee);return ii+=(Tt-Or.strokeDashoffset+ee)*100/Tt,Ne.createElement("circle",{key:di,className:"".concat(bn,"-circle-path"),r:Ht,cx:Re,cy:Re,stroke:hr,strokeWidth:Xn,opacity:1,style:Or,ref:function(Di){jn[di]=Di}})})};return Ne.createElement("svg",(0,Lt.Z)({className:Dt()("".concat(bn,"-circle"),$e),viewBox:"0 0 ".concat(zt," ").concat(zt),style:gn,id:In,role:"presentation"},fe),!kt&&Ne.createElement("circle",{className:"".concat(bn,"-circle-trail"),r:Ht,cx:Re,cy:Re,stroke:Tn,strokeLinecap:Mn,strokeWidth:$t||Xn,style:Ke}),kt?Oi():ni())},Pe=Zt,ge={Line:Je,Circle:Pe}},71032:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return mt}});var Lt=Ft(87462),ie=Ft(4942),Be=Ft(97685),Ne=Ft(45987),Ae=Ft(94184),Dt=Ft.n(Ae),Jt=Ft(21770),ue=Ft(15105),ce=Ft(64217),ye=Ft(67294);function Je(St,Mt){var zt=St.disabled,qt=St.prefixCls,re=St.character,_t=St.characterRender,Zt=St.index,Pe=St.count,ge=St.value,Fe=St.allowHalf,He=St.focused,Ie=St.onHover,In=St.onClick,bn=function(Le){Ie(Le,Zt)},cn=function(Le){In(Le,Zt)},Xn=function(Le){Le.keyCode===ue.Z.ENTER&&In(Le,Zt)},$t=Zt+1,jt=new Set([qt]);ge===0&&Zt===0&&He?jt.add("".concat(qt,"-focused")):Fe&&ge+.5>=$t&&ge<$t?(jt.add("".concat(qt,"-half")),jt.add("".concat(qt,"-active")),He&&jt.add("".concat(qt,"-focused"))):($t<=ge?jt.add("".concat(qt,"-full")):jt.add("".concat(qt,"-zero")),$t===ge&&He&&jt.add("".concat(qt,"-focused")));var Ee=typeof re=="function"?re(St):re,sn=ye.createElement("li",{className:Dt()(Array.from(jt)),ref:Mt},ye.createElement("div",{onClick:zt?null:cn,onKeyDown:zt?null:Xn,onMouseMove:zt?null:bn,role:"radio","aria-checked":ge>Zt?"true":"false","aria-posinset":Zt+1,"aria-setsize":Pe,tabIndex:zt?-1:0},ye.createElement("div",{className:"".concat(qt,"-first")},Ee),ye.createElement("div",{className:"".concat(qt,"-second")},Ee)));return _t&&(sn=_t(sn,St)),sn}var de=ye.forwardRef(Je);function It(){var St=ye.useRef({});function Mt(qt){return St.current[qt]}function zt(qt){return function(re){St.current[qt]=re}}return[Mt,zt]}function Nt(St){var Mt=St.pageXOffset,zt="scrollLeft";if(typeof Mt!="number"){var qt=St.document;Mt=qt.documentElement[zt],typeof Mt!="number"&&(Mt=qt.body[zt])}return Mt}function nt(St){var Mt,zt,qt=St.ownerDocument,re=qt.body,_t=qt&&qt.documentElement,Zt=St.getBoundingClientRect();return Mt=Zt.left,zt=Zt.top,Mt-=_t.clientLeft||re.clientLeft||0,zt-=_t.clientTop||re.clientTop||0,{left:Mt,top:zt}}function et(St){var Mt=nt(St),zt=St.ownerDocument,qt=zt.defaultView||zt.parentWindow;return Mt.left+=Nt(qt),Mt.left}var ht=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function lt(St,Mt){var zt=St.prefixCls,qt=zt===void 0?"rc-rate":zt,re=St.className,_t=St.defaultValue,Zt=St.value,Pe=St.count,ge=Pe===void 0?5:Pe,Fe=St.allowHalf,He=Fe===void 0?!1:Fe,Ie=St.allowClear,In=Ie===void 0?!0:Ie,bn=St.keyboard,cn=bn===void 0?!0:bn,Xn=St.character,$t=Xn===void 0?"\u2605":Xn,jt=St.characterRender,Ee=St.disabled,sn=St.direction,Tn=sn===void 0?"ltr":sn,Le=St.tabIndex,gn=Le===void 0?0:Le,$e=St.autoFocus,Fn=St.onHoverChange,ke=St.onChange,fe=St.onFocus,Re=St.onBlur,dn=St.onKeyDown,Te=St.onMouseLeave,Ht=(0,Ne.Z)(St,ht),At=It(),Ct=(0,Be.Z)(At,2),Tt=Ct[0],Xt=Ct[1],kt=ye.useRef(null),ee=function(){if(!Ee){var gr;(gr=kt.current)===null||gr===void 0||gr.focus()}};ye.useImperativeHandle(Mt,function(){return{focus:ee,blur:function(){if(!Ee){var gr;(gr=kt.current)===null||gr===void 0||gr.blur()}}}});var rn=(0,Jt.Z)(_t||0,{value:Zt}),on=(0,Be.Z)(rn,2),Un=on[0],en=on[1],Mn=(0,Jt.Z)(null),Ke=(0,Be.Z)(Mn,2),jn=Ke[0],ni=Ke[1],Oi=function(gr,vn){var wt=Tn==="rtl",Ve=gr+1;if(He){var Ye=Tt(gr),xn=et(Ye),fn=Ye.clientWidth;(wt&&vn-xn>fn/2||!wt&&vn-xn<fn/2)&&(Ve-=.5)}return Ve},$n=function(gr){en(gr),ke==null||ke(gr)},Ai=ye.useState(!1),Ki=(0,Be.Z)(Ai,2),ii=Ki[0],mi=Ki[1],di=function(){mi(!0),fe==null||fe()},gi=function(){mi(!1),Re==null||Re()},hr=ye.useState(null),Or=(0,Be.Z)(hr,2),sr=Or[0],Di=Or[1],jr=function(gr,vn){var wt=Oi(vn,gr.pageX);wt!==jn&&(Di(wt),ni(null)),Fn==null||Fn(wt)},ao=function(gr){Ee||(Di(null),ni(null),Fn==null||Fn(void 0)),gr&&(Te==null||Te(gr))},fa=function(gr,vn){var wt=Oi(vn,gr.pageX),Ve=!1;In&&(Ve=wt===Un),ao(),$n(Ve?0:wt),ni(Ve?wt:null)},_o=function(gr){var vn=gr.keyCode,wt=Tn==="rtl",Ve=He?.5:1;cn&&(vn===ue.Z.RIGHT&&Un<ge&&!wt?($n(Un+Ve),gr.preventDefault()):vn===ue.Z.LEFT&&Un>0&&!wt||vn===ue.Z.RIGHT&&Un>0&&wt?($n(Un-Ve),gr.preventDefault()):vn===ue.Z.LEFT&&Un<ge&&wt&&($n(Un+Ve),gr.preventDefault())),dn==null||dn(gr)};ye.useEffect(function(){$e&&!Ee&&ee()},[]);var ta=new Array(ge).fill(0).map(function(zo,gr){return ye.createElement(de,{ref:Xt(gr),index:gr,count:ge,disabled:Ee,prefixCls:"".concat(qt,"-star"),allowHalf:He,value:sr===null?Un:sr,onClick:fa,onHover:jr,key:zo||gr,character:$t,characterRender:jt,focused:ii})}),Ga=Dt()(qt,re,(0,ie.Z)((0,ie.Z)({},"".concat(qt,"-disabled"),Ee),"".concat(qt,"-rtl"),Tn==="rtl"));return ye.createElement("ul",(0,Lt.Z)({className:Ga,onMouseLeave:ao,tabIndex:Ee?-1:gn,onFocus:Ee?null:di,onBlur:Ee?null:gi,onKeyDown:Ee?null:_o,ref:kt},(0,ce.Z)(Ht,{aria:!0,data:!0,attr:!0})),ta)}var gt=ye.forwardRef(lt),mt=gt},58212:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Xn}});function Lt(){return Lt=Object.assign?Object.assign.bind():function($t){for(var jt=1;jt<arguments.length;jt++){var Ee=arguments[jt];for(var sn in Ee)Object.prototype.hasOwnProperty.call(Ee,sn)&&($t[sn]=Ee[sn])}return $t},Lt.apply(this,arguments)}function ie($t){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(jt){return typeof jt}:function(jt){return jt&&typeof Symbol=="function"&&jt.constructor===Symbol&&jt!==Symbol.prototype?"symbol":typeof jt},ie($t)}function Be($t,jt){if(ie($t)!=="object"||$t===null)return $t;var Ee=$t[Symbol.toPrimitive];if(Ee!==void 0){var sn=Ee.call($t,jt||"default");if(ie(sn)!=="object")return sn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(jt==="string"?String:Number)($t)}function Ne($t){var jt=Be($t,"string");return ie(jt)==="symbol"?jt:String(jt)}function Ae($t,jt,Ee){return jt=Ne(jt),jt in $t?Object.defineProperty($t,jt,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):$t[jt]=Ee,$t}function Dt($t){if(Array.isArray($t))return $t}function Jt($t,jt){var Ee=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Ee!=null){var sn,Tn,Le,gn,$e=[],Fn=!0,ke=!1;try{if(Le=(Ee=Ee.call($t)).next,jt===0){if(Object(Ee)!==Ee)return;Fn=!1}else for(;!(Fn=(sn=Le.call(Ee)).done)&&($e.push(sn.value),$e.length!==jt);Fn=!0);}catch(fe){ke=!0,Tn=fe}finally{try{if(!Fn&&Ee.return!=null&&(gn=Ee.return(),Object(gn)!==gn))return}finally{if(ke)throw Tn}}return $e}}function ue($t,jt){(jt==null||jt>$t.length)&&(jt=$t.length);for(var Ee=0,sn=new Array(jt);Ee<jt;Ee++)sn[Ee]=$t[Ee];return sn}function ce($t,jt){if($t){if(typeof $t=="string")return ue($t,jt);var Ee=Object.prototype.toString.call($t).slice(8,-1);if(Ee==="Object"&&$t.constructor&&(Ee=$t.constructor.name),Ee==="Map"||Ee==="Set")return Array.from($t);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return ue($t,jt)}}function ye(){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 Je($t,jt){return Dt($t)||Jt($t,jt)||ce($t,jt)||ye()}function de($t,jt){if($t==null)return{};var Ee={},sn=Object.keys($t),Tn,Le;for(Le=0;Le<sn.length;Le++)Tn=sn[Le],!(jt.indexOf(Tn)>=0)&&(Ee[Tn]=$t[Tn]);return Ee}function It($t,jt){if($t==null)return{};var Ee=de($t,jt),sn,Tn;if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols($t);for(Tn=0;Tn<Le.length;Tn++)sn=Le[Tn],!(jt.indexOf(sn)>=0)&&Object.prototype.propertyIsEnumerable.call($t,sn)&&(Ee[sn]=$t[sn])}return Ee}var Nt=Ft(67294),nt=Ft(94184),et=Ft.n(nt);function ht($t){if(Array.isArray($t))return $t}function lt($t,jt){var Ee=$t==null?null:typeof Symbol!="undefined"&&$t[Symbol.iterator]||$t["@@iterator"];if(Ee!=null){var sn,Tn,Le,gn,$e=[],Fn=!0,ke=!1;try{if(Le=(Ee=Ee.call($t)).next,jt===0){if(Object(Ee)!==Ee)return;Fn=!1}else for(;!(Fn=(sn=Le.call(Ee)).done)&&($e.push(sn.value),$e.length!==jt);Fn=!0);}catch(fe){ke=!0,Tn=fe}finally{try{if(!Fn&&Ee.return!=null&&(gn=Ee.return(),Object(gn)!==gn))return}finally{if(ke)throw Tn}}return $e}}function gt($t,jt){(jt==null||jt>$t.length)&&(jt=$t.length);for(var Ee=0,sn=new Array(jt);Ee<jt;Ee++)sn[Ee]=$t[Ee];return sn}function mt($t,jt){if($t){if(typeof $t=="string")return gt($t,jt);var Ee=Object.prototype.toString.call($t).slice(8,-1);if(Ee==="Object"&&$t.constructor&&(Ee=$t.constructor.name),Ee==="Map"||Ee==="Set")return Array.from($t);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return gt($t,jt)}}function St(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt($t,jt){return ht($t)||lt($t,jt)||mt($t,jt)||St()}function zt($t){var jt=Nt.useRef();jt.current=$t;var Ee=Nt.useCallback(function(){for(var sn,Tn=arguments.length,Le=new Array(Tn),gn=0;gn<Tn;gn++)Le[gn]=arguments[gn];return(sn=jt.current)===null||sn===void 0?void 0:sn.call.apply(sn,[jt].concat(Le))},[]);return Ee}function qt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re=qt()?Nt.useLayoutEffect:Nt.useEffect,_t=function(jt,Ee){var sn=Nt.useRef(!0);re(function(){return jt(sn.current)},Ee),re(function(){return sn.current=!1,function(){sn.current=!0}},[])},Zt=function(jt,Ee){_t(function(sn){if(!sn)return jt()},Ee)},Pe=null;function ge($t){var jt=Nt.useRef(!1),Ee=Nt.useState($t),sn=Mt(Ee,2),Tn=sn[0],Le=sn[1];Nt.useEffect(function(){return jt.current=!1,function(){jt.current=!0}},[]);function gn($e,Fn){Fn&&jt.current||Le($e)}return[Tn,gn]}function Fe($t){return $t!==void 0}function He($t,jt){var Ee=jt||{},sn=Ee.defaultValue,Tn=Ee.value,Le=Ee.onChange,gn=Ee.postState,$e=ge(function(){return Fe(Tn)?Tn:Fe(sn)?typeof sn=="function"?sn():sn:typeof $t=="function"?$t():$t}),Fn=Mt($e,2),ke=Fn[0],fe=Fn[1],Re=Tn!==void 0?Tn:ke,dn=gn?gn(Re):Re,Te=zt(Le),Ht=ge([Re]),At=Mt(Ht,2),Ct=At[0],Tt=At[1];Zt(function(){var kt=Ct[0];ke!==kt&&Te(ke,kt)},[Ct]),Zt(function(){Fe(Tn)||fe(Tn)},[Tn]);var Xt=zt(function(kt,ee){fe(kt,ee),Tt([Re],ee)});return[dn,Xt]}var Ie={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(jt){var Ee=jt.keyCode;if(jt.altKey&&!jt.ctrlKey||jt.metaKey||Ee>=Ie.F1&&Ee<=Ie.F12)return!1;switch(Ee){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(jt){if(jt>=Ie.ZERO&&jt<=Ie.NINE||jt>=Ie.NUM_ZERO&&jt<=Ie.NUM_MULTIPLY||jt>=Ie.A&&jt<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&jt===0)return!0;switch(jt){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},In=Ie,bn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],cn=Nt.forwardRef(function($t,jt){var Ee,sn=$t.prefixCls,Tn=sn===void 0?"rc-switch":sn,Le=$t.className,gn=$t.checked,$e=$t.defaultChecked,Fn=$t.disabled,ke=$t.loadingIcon,fe=$t.checkedChildren,Re=$t.unCheckedChildren,dn=$t.onClick,Te=$t.onChange,Ht=$t.onKeyDown,At=It($t,bn),Ct=He(!1,{value:gn,defaultValue:$e}),Tt=Je(Ct,2),Xt=Tt[0],kt=Tt[1];function ee(en,Mn){var Ke=Xt;return Fn||(Ke=en,kt(Ke),Te==null||Te(Ke,Mn)),Ke}function rn(en){en.which===In.LEFT?ee(!1,en):en.which===In.RIGHT&&ee(!0,en),Ht==null||Ht(en)}function on(en){var Mn=ee(!Xt,en);dn==null||dn(Mn,en)}var Un=et()(Tn,Le,(Ee={},Ae(Ee,"".concat(Tn,"-checked"),Xt),Ae(Ee,"".concat(Tn,"-disabled"),Fn),Ee));return Nt.createElement("button",Lt({},At,{type:"button",role:"switch","aria-checked":Xt,disabled:Fn,className:Un,ref:jt,onKeyDown:rn,onClick:on}),ke,Nt.createElement("span",{className:"".concat(Tn,"-inner")},Nt.createElement("span",{className:"".concat(Tn,"-inner-checked")},fe),Nt.createElement("span",{className:"".concat(Tn,"-inner-unchecked")},Re)))});cn.displayName="Switch";var Xn=cn},45233:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{R:function(){return ie},w:function(){return Lt}});var Lt={},ie="rc-table-internal-hook"},54768:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{L:function(){return ht},Z:function(){return Mt}});var Lt=Ft(97685),ie=Ft(4942),Be=Ft(74902),Ne=Ft(71002),Ae=Ft(1413),Dt=Ft(45987),Jt=Ft(63295),ue=Ft(67294);function ce(zt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=[];return ue.Children.forEach(zt,function(_t){_t==null&&!qt.keepEmpty||(Array.isArray(_t)?re=re.concat(ce(_t)):(0,Jt.Z)(_t)&&_t.props?re=re.concat(ce(_t.props.children,qt)):re.push(_t))}),re}var ye=Ft(40830),Je=Ft(45233),de=Ft(62978);function It(zt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof qt=="number"?qt:qt.endsWith("%")?zt*parseFloat(qt)/100:null}function Nt(zt,qt,re){return ue.useMemo(function(){if(qt&&qt>0){var _t=0,Zt=0;zt.forEach(function(cn){var Xn=It(qt,cn.width);Xn?_t+=Xn:Zt+=1});var Pe=Math.max(qt,re),ge=Math.max(Pe-_t,Zt),Fe=Zt,He=ge/Zt,Ie=0,In=zt.map(function(cn){var Xn=(0,Ae.Z)({},cn),$t=It(qt,Xn.width);if($t)Xn.width=$t;else{var jt=Math.floor(He);Xn.width=Fe===1?ge:jt,ge-=jt,Fe-=1}return Ie+=Xn.width,Xn});if(Ie<Pe){var bn=Pe/Ie;ge=Pe,In.forEach(function(cn,Xn){var $t=Math.floor(cn.width*bn);cn.width=Xn===In.length-1?ge:$t,ge-=$t})}return[In,Math.max(Ie,Pe)]}return[zt,qt]},[zt,qt,re])}var nt=["children"],et=["fixed"];function ht(zt){return ce(zt).filter(function(qt){return ue.isValidElement(qt)}).map(function(qt){var re=qt.key,_t=qt.props,Zt=_t.children,Pe=(0,Dt.Z)(_t,nt),ge=(0,Ae.Z)({key:re},Pe);return Zt&&(ge.children=ht(Zt)),ge})}function lt(zt){return zt.filter(function(qt){return qt&&(0,Ne.Z)(qt)==="object"&&!qt.hidden}).map(function(qt){var re=qt.children;return re&&re.length>0?(0,Ae.Z)((0,Ae.Z)({},qt),{},{children:lt(re)}):qt})}function gt(zt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return zt.filter(function(re){return re&&(0,Ne.Z)(re)==="object"}).reduce(function(re,_t,Zt){var Pe=_t.fixed,ge=Pe===!0?"left":Pe,Fe="".concat(qt,"-").concat(Zt),He=_t.children;return He&&He.length>0?[].concat((0,Be.Z)(re),(0,Be.Z)(gt(He,Fe).map(function(Ie){return(0,Ae.Z)({fixed:ge},Ie)}))):[].concat((0,Be.Z)(re),[(0,Ae.Z)((0,Ae.Z)({key:Fe},_t),{},{fixed:ge})])},[])}function mt(zt){return zt.map(function(qt){var re=qt.fixed,_t=(0,Dt.Z)(qt,et),Zt=re;return re==="left"?Zt="right":re==="right"&&(Zt="left"),(0,Ae.Z)({fixed:Zt},_t)})}function St(zt,qt){var re=zt.prefixCls,_t=zt.columns,Zt=zt.children,Pe=zt.expandable,ge=zt.expandedKeys,Fe=zt.columnTitle,He=zt.getRowKey,Ie=zt.onTriggerExpand,In=zt.expandIcon,bn=zt.rowExpandable,cn=zt.expandIconColumnIndex,Xn=zt.direction,$t=zt.expandRowByClick,jt=zt.columnWidth,Ee=zt.fixed,sn=zt.scrollWidth,Tn=zt.clientWidth,Le=ue.useMemo(function(){var Ht=_t||ht(Zt)||[];return lt(Ht.slice())},[_t,Zt]),gn=ue.useMemo(function(){if(Pe){var Ht=Le.slice();if(!Ht.includes(Je.w)){var At=cn||0;At>=0&&(At||Ee==="left"||!Ee)&&Ht.splice(At,0,Je.w),Ee==="right"&&Ht.splice(Le.length,0,Je.w)}var Ct=Ht.indexOf(Je.w);Ht=Ht.filter(function(ee,rn){return ee!==Je.w||rn===Ct});var Tt=Le[Ct],Xt;Ee?Xt=Ee:Xt=Tt?Tt.fixed:null;var kt=(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},de.v,{className:"".concat(re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Fe),"fixed",Xt),"className","".concat(re,"-row-expand-icon-cell")),"width",jt),"render",function(rn,on,Un){var en=He(on,Un),Mn=ge.has(en),Ke=bn?bn(on):!0,jn=In({prefixCls:re,expanded:Mn,expandable:Ke,record:on,onExpand:Ie});return $t?ue.createElement("span",{onClick:function(Oi){return Oi.stopPropagation()}},jn):jn});return Ht.map(function(ee){return ee===Je.w?kt:ee})}return Le.filter(function(ee){return ee!==Je.w})},[Pe,Le,He,ge,In,Xn]),$e=ue.useMemo(function(){var Ht=gn;return qt&&(Ht=qt(Ht)),Ht.length||(Ht=[{render:function(){return null}}]),Ht},[qt,gn,Xn]),Fn=ue.useMemo(function(){return Xn==="rtl"?mt(gt($e)):gt($e)},[$e,Xn,sn]),ke=ue.useMemo(function(){for(var Ht=-1,At=Fn.length-1;At>=0;At-=1){var Ct=Fn[At].fixed;if(Ct==="left"||Ct===!0){Ht=At;break}}if(Ht>=0)for(var Tt=0;Tt<=Ht;Tt+=1){var Xt=Fn[Tt].fixed;if(Xt!=="left"&&Xt!==!0)return!0}var kt=Fn.findIndex(function(on){var Un=on.fixed;return Un==="right"});if(kt>=0)for(var ee=kt;ee<Fn.length;ee+=1){var rn=Fn[ee].fixed;if(rn!=="right")return!0}return!1},[Fn]),fe=Nt(Fn,sn,Tn),Re=(0,Lt.Z)(fe,2),dn=Re[0],Te=Re[1];return[$e,dn,Te,ke]}var Mt=St},29104:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{w2:function(){return Lt.w},vP:function(){return so.v},RQ:function(){return Lt.R},ER:function(){return vn},Q$:function(){return Ps},TN:function(){return Hu}});var Lt=Ft(45233),ie=Ft(97685),Be=Ft(66680),Ne=Ft(8410),Ae=Ft(91881),Dt=Ft(67294),Jt=Ft(73935);function ue(Gt){var he=Dt.createContext(void 0),ve=function(Oe){var Qe=Oe.value,nn=Oe.children,Sn=Dt.useRef(Qe);Sn.current=Qe;var Gn=Dt.useState(function(){return{getValue:function(){return Sn.current},listeners:new Set}}),On=(0,ie.Z)(Gn,1),ci=On[0];return(0,Ne.Z)(function(){(0,Jt.unstable_batchedUpdates)(function(){ci.listeners.forEach(function(Wn){Wn(Qe)})})},[Qe]),Dt.createElement(he.Provider,{value:ci},nn)};return{Context:he,Provider:ve,defaultValue:Gt}}function ce(Gt,he){var ve=(0,Be.Z)(typeof he=="function"?he:function(Wn){if(he===void 0)return Wn;if(!Array.isArray(he))return Wn[he];var ri={};return he.forEach(function(Zn){ri[Zn]=Wn[Zn]}),ri}),Se=Dt.useContext(Gt==null?void 0:Gt.Context),Oe=Se||{},Qe=Oe.listeners,nn=Oe.getValue,Sn=Dt.useRef();Sn.current=ve(Se?nn():Gt==null?void 0:Gt.defaultValue);var Gn=Dt.useState({}),On=(0,ie.Z)(Gn,2),ci=On[1];return(0,Ne.Z)(function(){if(!Se)return;function Wn(ri){var Zn=ve(ri);(0,Ae.Z)(Sn.current,Zn,!0)||ci({})}return Qe.add(Wn),function(){Qe.delete(Wn)}},[Se]),Sn.current}var ye=Ft(87462),Je=Ft(42550);function de(){var Gt=Dt.createContext(null);function he(){return Dt.useContext(Gt)}function ve(Oe,Qe){var nn=(0,Je.Yr)(Oe),Sn=function(On,ci){var Wn=nn?{ref:ci}:{},ri=Dt.useRef(0),Zn=Dt.useRef(On),Si=he();return Si!==null?Dt.createElement(Oe,(0,ye.Z)({},On,Wn)):((!Qe||Qe(Zn.current,On))&&(ri.current+=1),Zn.current=On,Dt.createElement(Gt.Provider,{value:ri.current},Dt.createElement(Oe,(0,ye.Z)({},On,Wn))))};return nn?Dt.forwardRef(Sn):Sn}function Se(Oe,Qe){var nn=(0,Je.Yr)(Oe),Sn=function(On,ci){var Wn=nn?{ref:ci}:{};return he(),Dt.createElement(Oe,(0,ye.Z)({},On,Wn))};return nn?Dt.memo(Dt.forwardRef(Sn),Qe):Dt.memo(Sn,Qe)}return{makeImmutable:ve,responseImmutable:Se,useImmutableMark:he}}var It=de(),Nt=It.makeImmutable,nt=It.responseImmutable,et=It.useImmutableMark,ht=de(),lt=ht.makeImmutable,gt=ht.responseImmutable,mt=ht.useImmutableMark,St=ue(),Mt=St;function zt(Gt,he){var ve=React.useRef(0);ve.current+=1;var Se=React.useRef(Gt),Oe=[];Object.keys(Gt||{}).map(function(nn){var Sn;(Gt==null?void 0:Gt[nn])!==((Sn=Se.current)===null||Sn===void 0?void 0:Sn[nn])&&Oe.push(nn)}),Se.current=Gt;var Qe=React.useRef([]);return Oe.length&&(Qe.current=Oe),React.useDebugValue(ve.current),React.useDebugValue(Qe.current.join(", ")),he&&console.log("".concat(he,":"),ve.current,Qe.current),ve.current}var qt=null,re=null,_t=Ft(71002),Zt=Ft(1413),Pe=Ft(4942),ge=Ft(94184),Fe=Ft.n(ge);function He(Gt,he,ve){var Se=Dt.useRef({});return(!("value"in Se.current)||ve(Se.current.condition,he))&&(Se.current.value=Gt(),Se.current.condition=he),Se.current.value}var Ie=Ft(40830);function In(Gt,he){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Se=new Set;function Oe(Qe,nn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Gn=Se.has(Qe);if((0,Ie.ZP)(!Gn,"Warning: There may be circular references"),Gn)return!1;if(Qe===nn)return!0;if(ve&&Sn>1)return!1;Se.add(Qe);var On=Sn+1;if(Array.isArray(Qe)){if(!Array.isArray(nn)||Qe.length!==nn.length)return!1;for(var ci=0;ci<Qe.length;ci++)if(!Oe(Qe[ci],nn[ci],On))return!1;return!0}if(Qe&&nn&&(0,_t.Z)(Qe)==="object"&&(0,_t.Z)(nn)==="object"){var Wn=Object.keys(Qe);return Wn.length!==Object.keys(nn).length?!1:Wn.every(function(ri){return Oe(Qe[ri],nn[ri],On)})}return!1}return Oe(Gt,he)}var bn=In;function cn(Gt,he){for(var ve=Gt,Se=0;Se<he.length;Se+=1){if(ve==null)return;ve=ve[he[Se]]}return ve}var Xn=Dt.createContext({renderWithProps:!1}),$t=Xn,jt="RC_TABLE_KEY";function Ee(Gt){return Gt==null?[]:Array.isArray(Gt)?Gt:[Gt]}function sn(Gt){var he=[],ve={};return Gt.forEach(function(Se){for(var Oe=Se||{},Qe=Oe.key,nn=Oe.dataIndex,Sn=Qe||Ee(nn).join("-")||jt;ve[Sn];)Sn="".concat(Sn,"_next");ve[Sn]=!0,he.push(Sn)}),he}function Tn(Gt){return Gt!=null}function Le(Gt){return typeof Gt=="number"&&!Number.isNaN(Gt)}function gn(Gt){return Gt&&(0,_t.Z)(Gt)==="object"&&!Array.isArray(Gt)&&!Dt.isValidElement(Gt)}function $e(Gt,he,ve,Se,Oe,Qe){var nn=Dt.useContext($t),Sn=mt(),Gn=He(function(){if(Tn(Se))return[Se];var On=he==null||he===""?[]:Array.isArray(he)?he:[he],ci=cn(Gt,On),Wn=ci,ri=void 0;if(Oe){var Zn=Oe(ci,Gt,ve);gn(Zn)?(Wn=Zn.children,ri=Zn.props,nn.renderWithProps=!0):Wn=Zn}return[Wn,ri]},[Sn,Gt,Se,he,Oe,ve],function(On,ci){if(Qe){var Wn=(0,ie.Z)(On,2),ri=Wn[1],Zn=(0,ie.Z)(ci,2),Si=Zn[1];return Qe(Si,ri)}return nn.renderWithProps?!0:!bn(On,ci,!0)});return Gn}function Fn(Gt,he,ve,Se){var Oe=Gt+he-1;return Gt<=Se&&Oe>=ve}function ke(Gt,he){return ce(Mt,function(ve){var Se=Fn(Gt,he||1,ve.hoverStartRow,ve.hoverEndRow);return[Se,ve.onHover]})}function fe(Gt){var he=Dt.useRef();he.current=Gt;var ve=Dt.useCallback(function(){for(var Se,Oe=arguments.length,Qe=new Array(Oe),nn=0;nn<Oe;nn++)Qe[nn]=arguments[nn];return(Se=he.current)===null||Se===void 0?void 0:Se.call.apply(Se,[he].concat(Qe))},[]);return ve}function Re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var dn=Re()?Dt.useLayoutEffect:Dt.useEffect,Te=function(he,ve){var Se=React.useRef(!0);dn(function(){return he(Se.current)},ve),dn(function(){return Se.current=!1,function(){Se.current=!0}},[])},Ht=function(he,ve){Te(function(Se){if(!Se)return he()},ve)},At=null;function Ct(Gt){var he=React.useRef(!1),ve=React.useState(Gt),Se=_slicedToArray(ve,2),Oe=Se[0],Qe=Se[1];React.useEffect(function(){return he.current=!1,function(){he.current=!0}},[]);function nn(Sn,Gn){Gn&&he.current||Qe(Sn)}return[Oe,nn]}function Tt(Gt){return Gt!==void 0}function Xt(Gt,he){var ve=he||{},Se=ve.defaultValue,Oe=ve.value,Qe=ve.onChange,nn=ve.postState,Sn=useState(function(){return Tt(Oe)?Oe:Tt(Se)?typeof Se=="function"?Se():Se:typeof Gt=="function"?Gt():Gt}),Gn=_slicedToArray(Sn,2),On=Gn[0],ci=Gn[1],Wn=Oe!==void 0?Oe:On,ri=nn?nn(Wn):Wn,Zn=useEvent(Qe),Si=useState([Wn]),Ii=_slicedToArray(Si,2),tr=Ii[0],yr=Ii[1];useLayoutUpdateEffect(function(){var Ji=tr[0];On!==Ji&&Zn(On,Ji)},[tr]),useLayoutUpdateEffect(function(){Tt(Oe)||ci(Oe)},[Oe]);var Fi=useEvent(function(Ji,ji){ci(Ji,ji),yr([Wn],ji)});return[ri,Fi]}var kt=Ft(35110),ee=Ft(63295),rn=Number(Dt.version.split(".")[0]),on=function(he,ve){typeof he=="function"?he(ve):(0,_t.Z)(he)==="object"&&he&&"current"in he&&(he.current=ve)},Un=function(){for(var he=arguments.length,ve=new Array(he),Se=0;Se<he;Se++)ve[Se]=arguments[Se];var Oe=ve.filter(Boolean);return Oe.length<=1?Oe[0]:function(Qe){ve.forEach(function(nn){on(nn,Qe)})}},en=function(){for(var he=arguments.length,ve=new Array(he),Se=0;Se<he;Se++)ve[Se]=arguments[Se];return useMemo(function(){return Un.apply(void 0,ve)},ve,function(Oe,Qe){return Oe.length!==Qe.length||Oe.every(function(nn,Sn){return nn!==Qe[Sn]})})},Mn=function(he){var ve,Se;if(!he)return!1;if(Ke(he)&&rn>=19)return!0;var Oe=isMemo(he)?he.type.type:he.type;return!(typeof Oe=="function"&&!((ve=Oe.prototype)!==null&&ve!==void 0&&ve.render)&&Oe.$$typeof!==ForwardRef||typeof he=="function"&&!((Se=he.prototype)!==null&&Se!==void 0&&Se.render)&&he.$$typeof!==ForwardRef)};function Ke(Gt){return isValidElement(Gt)&&!isFragment(Gt)}var jn=function(he){return Ke(he)&&Mn(he)},ni=function(he){if(he&&Ke(he)){var ve=he;return ve.props.propertyIsEnumerable("ref")?ve.props.ref:ve.ref}return null};function Oi(Gt,he,ve,Se){if(!he.length)return ve;var Oe=_toArray(he),Qe=Oe[0],nn=Oe.slice(1),Sn;return!Gt&&typeof Qe=="number"?Sn=[]:Array.isArray(Gt)?Sn=_toConsumableArray(Gt):Sn=_objectSpread({},Gt),Se&&ve===void 0&&nn.length===1?delete Sn[Qe][nn[0]]:Sn[Qe]=Oi(Sn[Qe],nn,ve,Se),Sn}function $n(Gt,he,ve){var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he.length&&Se&&ve===void 0&&!get(Gt,he.slice(0,-1))?Gt:Oi(Gt,he,ve,Se)}function Ai(Gt){return _typeof(Gt)==="object"&&Gt!==null&&Object.getPrototypeOf(Gt)===Object.prototype}function Ki(Gt){return Array.isArray(Gt)?[]:{}}var ii=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mi(){for(var Gt=arguments.length,he=new Array(Gt),ve=0;ve<Gt;ve++)he[ve]=arguments[ve];var Se=Ki(he[0]);return he.forEach(function(Oe){function Qe(nn,Sn){var Gn=new Set(Sn),On=get(Oe,nn),ci=Array.isArray(On);if(ci||Ai(On)){if(!Gn.has(On)){Gn.add(On);var Wn=get(Se,nn);ci?Se=$n(Se,nn,[]):(!Wn||_typeof(Wn)!=="object")&&(Se=$n(Se,nn,Ki(On))),ii(On).forEach(function(ri){Qe([].concat(_toConsumableArray(nn),[ri]),Gn)})}}else Se=$n(Se,nn,On)}Qe([])}),Se}var di=function(he){var ve=he.ellipsis,Se=he.rowType,Oe=he.children,Qe,nn=ve===!0?{showTitle:!0}:ve;return nn&&(nn.showTitle||Se==="header")&&(typeof Oe=="string"||typeof Oe=="number"?Qe=Oe.toString():Dt.isValidElement(Oe)&&typeof Oe.props.children=="string"&&(Qe=Oe.props.children)),Qe};function gi(Gt){var he,ve,Se,Oe,Qe,nn,Sn,Gn,On=Gt.component,ci=Gt.children,Wn=Gt.ellipsis,ri=Gt.scope,Zn=Gt.prefixCls,Si=Gt.className,Ii=Gt.align,tr=Gt.record,yr=Gt.render,Fi=Gt.dataIndex,Ji=Gt.renderIndex,ji=Gt.shouldCellUpdate,Sr=Gt.index,Jr=Gt.rowType,pr=Gt.colSpan,Ro=Gt.rowSpan,Vr=Gt.fixLeft,Vo=Gt.fixRight,Ba=Gt.firstFixLeft,Xo=Gt.lastFixLeft,Ur=Gt.firstFixRight,Qr=Gt.lastFixRight,zi=Gt.appendNode,Pr=Gt.additionalProps,io=Pr===void 0?{}:Pr,ho=Gt.isSticky,co="".concat(Zn,"-cell"),ua=ce(Mt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ao=ua.supportSticky,Ta=ua.allColumnsFixedLeft,Va=ua.rowHoverable,ts=$e(tr,Fi,Ji,ci,yr,ji),Zs=(0,ie.Z)(ts,2),ys=Zs[0],Io=Zs[1],ra={},wa=typeof Vr=="number"&&Ao,Da=typeof Vo=="number"&&Ao;wa&&(ra.position="sticky",ra.left=Vr),Da&&(ra.position="sticky",ra.right=Vo);var oa=(he=(ve=(Se=Io==null?void 0:Io.colSpan)!==null&&Se!==void 0?Se:io.colSpan)!==null&&ve!==void 0?ve:pr)!==null&&he!==void 0?he:1,Lr=(Oe=(Qe=(nn=Io==null?void 0:Io.rowSpan)!==null&&nn!==void 0?nn:io.rowSpan)!==null&&Qe!==void 0?Qe:Ro)!==null&&Oe!==void 0?Oe:1,pa=ke(Sr,Lr),As=(0,ie.Z)(pa,2),nl=As[0],Sl=As[1],Tl=fe(function(ul){var Bs;tr&&Sl(Sr,Sr+Lr-1),io==null||(Bs=io.onMouseEnter)===null||Bs===void 0||Bs.call(io,ul)}),Dl=fe(function(ul){var Bs;tr&&Sl(-1,-1),io==null||(Bs=io.onMouseLeave)===null||Bs===void 0||Bs.call(io,ul)});if(oa===0||Lr===0)return null;var nu=(Sn=io.title)!==null&&Sn!==void 0?Sn:di({rowType:Jr,ellipsis:Wn,children:ys}),_r=Fe()(co,Si,(Gn={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(Gn,"".concat(co,"-fix-left"),wa&&Ao),"".concat(co,"-fix-left-first"),Ba&&Ao),"".concat(co,"-fix-left-last"),Xo&&Ao),"".concat(co,"-fix-left-all"),Xo&&Ta&&Ao),"".concat(co,"-fix-right"),Da&&Ao),"".concat(co,"-fix-right-first"),Ur&&Ao),"".concat(co,"-fix-right-last"),Qr&&Ao),"".concat(co,"-ellipsis"),Wn),"".concat(co,"-with-append"),zi),"".concat(co,"-fix-sticky"),(wa||Da)&&ho&&Ao),(0,Pe.Z)(Gn,"".concat(co,"-row-hover"),!Io&&nl)),io.className,Io==null?void 0:Io.className),Ol={};Ii&&(Ol.textAlign=Ii);var Oa=(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},Io==null?void 0:Io.style),ra),Ol),io.style),il=ys;return(0,_t.Z)(il)==="object"&&!Array.isArray(il)&&!Dt.isValidElement(il)&&(il=null),Wn&&(Xo||Ur)&&(il=Dt.createElement("span",{className:"".concat(co,"-content")},il)),Dt.createElement(On,(0,ye.Z)({},Io,io,{className:_r,style:Oa,title:nu,scope:ri,onMouseEnter:Va?Tl:void 0,onMouseLeave:Va?Dl:void 0,colSpan:oa!==1?oa:null,rowSpan:Lr!==1?Lr:null}),zi,il)}var hr=Dt.memo(gi);function Or(Gt,he,ve,Se,Oe){var Qe=ve[Gt]||{},nn=ve[he]||{},Sn,Gn;Qe.fixed==="left"?Sn=Se.left[Oe==="rtl"?he:Gt]:nn.fixed==="right"&&(Gn=Se.right[Oe==="rtl"?Gt:he]);var On=!1,ci=!1,Wn=!1,ri=!1,Zn=ve[he+1],Si=ve[Gt-1],Ii=Zn&&!Zn.fixed||Si&&!Si.fixed||ve.every(function(ji){return ji.fixed==="left"});if(Oe==="rtl"){if(Sn!==void 0){var tr=Si&&Si.fixed==="left";ri=!tr&&Ii}else if(Gn!==void 0){var yr=Zn&&Zn.fixed==="right";Wn=!yr&&Ii}}else if(Sn!==void 0){var Fi=Zn&&Zn.fixed==="left";On=!Fi&&Ii}else if(Gn!==void 0){var Ji=Si&&Si.fixed==="right";ci=!Ji&&Ii}return{fixLeft:Sn,fixRight:Gn,lastFixLeft:On,firstFixRight:ci,lastFixRight:Wn,firstFixLeft:ri,isSticky:Se.isSticky}}var sr=Dt.createContext({}),Di=sr;function jr(Gt){var he=Gt.className,ve=Gt.index,Se=Gt.children,Oe=Gt.colSpan,Qe=Oe===void 0?1:Oe,nn=Gt.rowSpan,Sn=Gt.align,Gn=ce(Mt,["prefixCls","direction"]),On=Gn.prefixCls,ci=Gn.direction,Wn=Dt.useContext(Di),ri=Wn.scrollColumnIndex,Zn=Wn.stickyOffsets,Si=Wn.flattenColumns,Ii=ve+Qe-1,tr=Ii+1===ri?Qe+1:Qe,yr=Or(ve,ve+tr-1,Si,Zn,ci);return Dt.createElement(hr,(0,ye.Z)({className:he,index:ve,component:"td",prefixCls:On,record:null,dataIndex:null,align:Sn,colSpan:tr,rowSpan:nn,render:function(){return Se}},yr))}var ao=Ft(45987),fa=["children"];function _o(Gt){var he=Gt.children,ve=(0,ao.Z)(Gt,fa);return Dt.createElement("tr",ve,he)}function ta(Gt){var he=Gt.children;return he}ta.Row=_o,ta.Cell=jr;var Ga=ta;function zo(Gt){var he=Gt.children,ve=Gt.stickyOffsets,Se=Gt.flattenColumns,Oe=ce(Mt,"prefixCls"),Qe=Se.length-1,nn=Se[Qe],Sn=Dt.useMemo(function(){return{stickyOffsets:ve,flattenColumns:Se,scrollColumnIndex:nn!=null&&nn.scrollbar?Qe:null}},[nn,Se,Qe,ve]);return Dt.createElement(Di.Provider,{value:Sn},Dt.createElement("tfoot",{className:"".concat(Oe,"-summary")},he))}var gr=gt(zo),vn=Ga,wt=Ft(48555),Ve=function(Gt){if(!Gt)return!1;if(Gt instanceof Element){if(Gt.offsetParent)return!0;if(Gt.getBBox){var he=Gt.getBBox(),ve=he.width,Se=he.height;if(ve||Se)return!0}if(Gt.getBoundingClientRect){var Oe=Gt.getBoundingClientRect(),Qe=Oe.width,nn=Oe.height;if(Qe||nn)return!0}}return!1},Ye=function(he){if(Re()&&window.document.documentElement){var ve=Array.isArray(he)?he:[he],Se=window.document.documentElement;return ve.some(function(Oe){return Oe in Se.style})}return!1},xn=function(he,ve){if(!Ye(he))return!1;var Se=document.createElement("div"),Oe=Se.style[he];return Se.style[he]=ve,Se.style[he]!==Oe};function fn(Gt,he){return!Array.isArray(Gt)&&he!==void 0?xn(Gt,he):Ye(Gt)}function ln(Gt,he){if(!Gt)return!1;if(Gt.contains)return Gt.contains(he);for(var ve=he;ve;){if(ve===Gt)return!0;ve=ve.parentNode}return!1}var Yn="data-rc-order",Li="data-rc-priority",Ge="rc-util-key",je=new Map;function we(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=Gt.mark;return he?he.startsWith("data-")?he:"data-".concat(he):Ge}function Ze(Gt){if(Gt.attachTo)return Gt.attachTo;var he=document.querySelector("head");return he||document.body}function ai(Gt){return Gt==="queue"?"prependQueue":Gt?"prepend":"append"}function ui(Gt){return Array.from((je.get(Gt)||Gt).children).filter(function(he){return he.tagName==="STYLE"})}function qn(Gt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Re())return null;var ve=he.csp,Se=he.prepend,Oe=he.priority,Qe=Oe===void 0?0:Oe,nn=ai(Se),Sn=nn==="prependQueue",Gn=document.createElement("style");Gn.setAttribute(Yn,nn),Sn&&Qe&&Gn.setAttribute(Li,"".concat(Qe)),ve!=null&&ve.nonce&&(Gn.nonce=ve==null?void 0:ve.nonce),Gn.innerHTML=Gt;var On=Ze(he),ci=On.firstChild;if(Se){if(Sn){var Wn=(he.styles||ui(On)).filter(function(ri){if(!["prepend","prependQueue"].includes(ri.getAttribute(Yn)))return!1;var Zn=Number(ri.getAttribute(Li)||0);return Qe>=Zn});if(Wn.length)return On.insertBefore(Gn,Wn[Wn.length-1].nextSibling),Gn}On.insertBefore(Gn,ci)}else On.appendChild(Gn);return Gn}function ze(Gt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=Ze(he);return(he.styles||ui(ve)).find(function(Se){return Se.getAttribute(we(he))===Gt})}function yn(Gt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=ze(Gt,he);if(ve){var Se=Ze(he);Se.removeChild(ve)}}function Ni(Gt,he){var ve=je.get(Gt);if(!ve||!ln(document,ve)){var Se=qn("",he),Oe=Se.parentNode;je.set(Gt,Oe),Gt.removeChild(Se)}}function Yi(){je.clear()}function Dn(Gt,he){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=Ze(ve),Oe=ui(Se),Qe=(0,Zt.Z)((0,Zt.Z)({},ve),{},{styles:Oe});Ni(Se,Qe);var nn=ze(he,Qe);if(nn){var Sn,Gn;if((Sn=Qe.csp)!==null&&Sn!==void 0&&Sn.nonce&&nn.nonce!==((Gn=Qe.csp)===null||Gn===void 0?void 0:Gn.nonce)){var On;nn.nonce=(On=Qe.csp)===null||On===void 0?void 0:On.nonce}return nn.innerHTML!==Gt&&(nn.innerHTML=Gt),nn}var ci=qn(Gt,Qe);return ci.setAttribute(we(Qe),he),ci}var De;function xi(Gt){var he="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),ve=document.createElement("div");ve.id=he;var Se=ve.style;Se.position="absolute",Se.left="0",Se.top="0",Se.width="100px",Se.height="100px",Se.overflow="scroll";var Oe,Qe;if(Gt){var nn=getComputedStyle(Gt);Se.scrollbarColor=nn.scrollbarColor,Se.scrollbarWidth=nn.scrollbarWidth;var Sn=getComputedStyle(Gt,"::-webkit-scrollbar"),Gn=parseInt(Sn.width,10),On=parseInt(Sn.height,10);try{var ci=Gn?"width: ".concat(Sn.width,";"):"",Wn=On?"height: ".concat(Sn.height,";"):"";Dn(`
|
|
#`.concat(he,`::-webkit-scrollbar {
|
|
`).concat(ci,`
|
|
`).concat(Wn,`
|
|
}`),he)}catch(Si){console.error(Si),Oe=Gn,Qe=On}}document.body.appendChild(ve);var ri=Gt&&Oe&&!isNaN(Oe)?Oe:ve.offsetWidth-ve.clientWidth,Zn=Gt&&Qe&&!isNaN(Qe)?Qe:ve.offsetHeight-ve.clientHeight;return document.body.removeChild(ve),yn(he),{width:ri,height:Zn}}function Ui(Gt){return typeof document=="undefined"?0:((Gt||De===void 0)&&(De=xi()),De.width)}function Tr(Gt){return typeof document=="undefined"||!Gt||!(Gt instanceof Element)?{width:0,height:0}:xi(Gt)}var Cn=`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`,Ri=`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`,ro="".concat(Cn," ").concat(Ri).split(/[\s\n]+/),Sa="aria-",bo="data-";function ki(Gt,he){return Gt.indexOf(he)===0}function Bi(Gt){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve;he===!1?ve={aria:!0,data:!0,attr:!0}:he===!0?ve={aria:!0}:ve=(0,Zt.Z)({},he);var Se={};return Object.keys(Gt).forEach(function(Oe){(ve.aria&&(Oe==="role"||ki(Oe,Sa))||ve.data&&ki(Oe,bo)||ve.attr&&ro.includes(Oe))&&(Se[Oe]=Gt[Oe])}),Se}function Hi(Gt,he,ve,Se,Oe,Qe,nn){Gt.push({record:he,indent:ve,index:nn});var Sn=Qe(he),Gn=Oe==null?void 0:Oe.has(Sn);if(he&&Array.isArray(he[Se])&&Gn)for(var On=0;On<he[Se].length;On+=1)Hi(Gt,he[Se][On],ve+1,Se,Oe,Qe,On)}function to(Gt,he,ve,Se){var Oe=Dt.useMemo(function(){if(ve!=null&&ve.size){for(var Qe=[],nn=0;nn<(Gt==null?void 0:Gt.length);nn+=1){var Sn=Gt[nn];Hi(Qe,Sn,0,he,ve,Se,nn)}return Qe}return Gt==null?void 0:Gt.map(function(Gn,On){return{record:Gn,indent:0,index:On}})},[Gt,he,ve,Se]);return Oe}function Yr(Gt,he,ve,Se){var Oe=ce(Mt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Qe=Oe.flattenColumns,nn=Oe.expandableType,Sn=Oe.expandedKeys,Gn=Oe.childrenColumnName,On=Oe.onTriggerExpand,ci=Oe.rowExpandable,Wn=Oe.onRow,ri=Oe.expandRowByClick,Zn=Oe.rowClassName,Si=nn==="nest",Ii=nn==="row"&&(!ci||ci(Gt)),tr=Ii||Si,yr=Sn&&Sn.has(he),Fi=Gn&&Gt&&Gt[Gn],Ji=fe(On),ji=Wn==null?void 0:Wn(Gt,ve),Sr=ji==null?void 0:ji.onClick,Jr=function(Vo){ri&&tr&&On(Gt,Vo);for(var Ba=arguments.length,Xo=new Array(Ba>1?Ba-1:0),Ur=1;Ur<Ba;Ur++)Xo[Ur-1]=arguments[Ur];Sr==null||Sr.apply(void 0,[Vo].concat(Xo))},pr;typeof Zn=="string"?pr=Zn:typeof Zn=="function"&&(pr=Zn(Gt,ve,Se));var Ro=sn(Qe);return(0,Zt.Z)((0,Zt.Z)({},Oe),{},{columnsKey:Ro,nestExpandable:Si,expanded:yr,hasNestChildren:Fi,record:Gt,onTriggerExpand:Ji,rowSupportExpand:Ii,expandable:tr,rowProps:(0,Zt.Z)((0,Zt.Z)({},ji),{},{className:Fe()(pr,ji==null?void 0:ji.className),onClick:Jr})})}function ti(Gt){var he=Gt.prefixCls,ve=Gt.children,Se=Gt.component,Oe=Gt.cellComponent,Qe=Gt.className,nn=Gt.expanded,Sn=Gt.colSpan,Gn=Gt.isEmpty,On=ce(Mt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ci=On.scrollbarSize,Wn=On.fixHeader,ri=On.fixColumn,Zn=On.componentWidth,Si=On.horizonScroll,Ii=ve;return(Gn?Si&&Zn:ri)&&(Ii=Dt.createElement("div",{style:{width:Zn-(Wn&&!Gn?ci:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(he,"-expanded-row-fixed")},Ii)),Dt.createElement(Se,{className:Qe,style:{display:nn?null:"none"}},Dt.createElement(hr,{component:Oe,prefixCls:he,colSpan:Sn},Ii))}var or=ti;function pl(Gt){var he=Gt.prefixCls,ve=Gt.record,Se=Gt.onExpand,Oe=Gt.expanded,Qe=Gt.expandable,nn="".concat(he,"-row-expand-icon");if(!Qe)return Dt.createElement("span",{className:Fe()(nn,"".concat(he,"-row-spaced"))});var Sn=function(On){Se(ve,On),On.stopPropagation()};return Dt.createElement("span",{className:Fe()(nn,(0,Pe.Z)((0,Pe.Z)({},"".concat(he,"-row-expanded"),Oe),"".concat(he,"-row-collapsed"),!Oe)),onClick:Sn})}function gs(Gt,he,ve){var Se=[];function Oe(Qe){(Qe||[]).forEach(function(nn,Sn){Se.push(he(nn,Sn)),Oe(nn[ve])})}return Oe(Gt),Se}function qa(Gt,he,ve,Se){return typeof Gt=="string"?Gt:typeof Gt=="function"?Gt(he,ve,Se):""}function We(Gt,he,ve,Se,Oe){var Qe=Gt.record,nn=Gt.prefixCls,Sn=Gt.columnsKey,Gn=Gt.fixedInfoList,On=Gt.expandIconColumnIndex,ci=Gt.nestExpandable,Wn=Gt.indentSize,ri=Gt.expandIcon,Zn=Gt.expanded,Si=Gt.hasNestChildren,Ii=Gt.onTriggerExpand,tr=Sn[ve],yr=Gn[ve],Fi;ve===(On||0)&&ci&&(Fi=Dt.createElement(Dt.Fragment,null,Dt.createElement("span",{style:{paddingLeft:"".concat(Wn*Se,"px")},className:"".concat(nn,"-row-indent indent-level-").concat(Se)}),ri({prefixCls:nn,expanded:Zn,expandable:Si,record:Qe,onExpand:Ii})));var Ji;return he.onCell&&(Ji=he.onCell(Qe,Oe)),{key:tr,fixedInfo:yr,appendCellNode:Fi,additionalCellProps:Ji||{}}}function mr(Gt){var he=Gt.className,ve=Gt.style,Se=Gt.record,Oe=Gt.index,Qe=Gt.renderIndex,nn=Gt.rowKey,Sn=Gt.indent,Gn=Sn===void 0?0:Sn,On=Gt.rowComponent,ci=Gt.cellComponent,Wn=Gt.scopeCellComponent,ri=Yr(Se,nn,Oe,Gn),Zn=ri.prefixCls,Si=ri.flattenColumns,Ii=ri.expandedRowClassName,tr=ri.expandedRowRender,yr=ri.rowProps,Fi=ri.expanded,Ji=ri.rowSupportExpand,ji=Dt.useRef(!1);ji.current||(ji.current=Fi);var Sr=qa(Ii,Se,Oe,Gn),Jr=Dt.createElement(On,(0,ye.Z)({},yr,{"data-row-key":nn,className:Fe()(he,"".concat(Zn,"-row"),"".concat(Zn,"-row-level-").concat(Gn),yr==null?void 0:yr.className,(0,Pe.Z)({},Sr,Gn>=1)),style:(0,Zt.Z)((0,Zt.Z)({},ve),yr==null?void 0:yr.style)}),Si.map(function(Vr,Vo){var Ba=Vr.render,Xo=Vr.dataIndex,Ur=Vr.className,Qr=We(ri,Vr,Vo,Gn,Oe),zi=Qr.key,Pr=Qr.fixedInfo,io=Qr.appendCellNode,ho=Qr.additionalCellProps;return Dt.createElement(hr,(0,ye.Z)({className:Ur,ellipsis:Vr.ellipsis,align:Vr.align,scope:Vr.rowScope,component:Vr.rowScope?Wn:ci,prefixCls:Zn,key:zi,record:Se,index:Oe,renderIndex:Qe,dataIndex:Xo,render:Ba,shouldCellUpdate:Vr.shouldCellUpdate},Pr,{appendNode:io,additionalProps:ho}))})),pr;if(Ji&&(ji.current||Fi)){var Ro=tr(Se,Oe,Gn+1,Fi);pr=Dt.createElement(or,{expanded:Fi,className:Fe()("".concat(Zn,"-expanded-row"),"".concat(Zn,"-expanded-row-level-").concat(Gn+1),Sr),prefixCls:Zn,component:On,cellComponent:ci,colSpan:Si.length,isEmpty:!1},Ro)}return Dt.createElement(Dt.Fragment,null,Jr,pr)}var xo=gt(mr);function ir(Gt){var he=Gt.columnKey,ve=Gt.onColumnResize,Se=Dt.useRef();return Dt.useEffect(function(){Se.current&&ve(he,Se.current.offsetWidth)},[]),Dt.createElement(wt.Z,{data:he},Dt.createElement("td",{ref:Se,style:{padding:0,border:0,height:0}},Dt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ea(Gt){var he=Gt.prefixCls,ve=Gt.columnsKey,Se=Gt.onColumnResize;return Dt.createElement("tr",{"aria-hidden":"true",className:"".concat(he,"-measure-row"),style:{height:0,fontSize:0}},Dt.createElement(wt.Z.Collection,{onBatchResize:function(Qe){Qe.forEach(function(nn){var Sn=nn.data,Gn=nn.size;Se(Sn,Gn.offsetWidth)})}},ve.map(function(Oe){return Dt.createElement(ir,{key:Oe,columnKey:Oe,onColumnResize:Se})})))}function mo(Gt){var he=Gt.data,ve=Gt.measureColumnWidth,Se=ce(Mt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Oe=Se.prefixCls,Qe=Se.getComponent,nn=Se.onColumnResize,Sn=Se.flattenColumns,Gn=Se.getRowKey,On=Se.expandedKeys,ci=Se.childrenColumnName,Wn=Se.emptyNode,ri=to(he,ci,On,Gn),Zn=Dt.useRef({renderWithProps:!1}),Si=Qe(["body","wrapper"],"tbody"),Ii=Qe(["body","row"],"tr"),tr=Qe(["body","cell"],"td"),yr=Qe(["body","cell"],"th"),Fi;he.length?Fi=ri.map(function(ji,Sr){var Jr=ji.record,pr=ji.indent,Ro=ji.index,Vr=Gn(Jr,Sr);return Dt.createElement(xo,{key:Vr,rowKey:Vr,record:Jr,index:Sr,renderIndex:Ro,rowComponent:Ii,cellComponent:tr,scopeCellComponent:yr,indent:pr})}):Fi=Dt.createElement(or,{expanded:!0,className:"".concat(Oe,"-placeholder"),prefixCls:Oe,component:Ii,cellComponent:tr,colSpan:Sn.length,isEmpty:!0},Wn);var Ji=sn(Sn);return Dt.createElement($t.Provider,{value:Zn.current},Dt.createElement(Si,{className:"".concat(Oe,"-tbody")},ve&&Dt.createElement(Ea,{prefixCls:Oe,columnsKey:Ji,onColumnResize:nn}),Fi))}var To=gt(mo),so=Ft(62978),Hr=["columnType"];function ea(Gt){for(var he=Gt.colWidths,ve=Gt.columns,Se=Gt.columCount,Oe=ce(Mt,["tableLayout"]),Qe=Oe.tableLayout,nn=[],Sn=Se||ve.length,Gn=!1,On=Sn-1;On>=0;On-=1){var ci=he[On],Wn=ve&&ve[On],ri=void 0,Zn=void 0;if(Wn&&(ri=Wn[so.v],Qe==="auto"&&(Zn=Wn.minWidth)),ci||Zn||ri||Gn){var Si=ri||{},Ii=Si.columnType,tr=(0,ao.Z)(Si,Hr);nn.unshift(Dt.createElement("col",(0,ye.Z)({key:On,style:{width:ci,minWidth:Zn}},tr))),Gn=!0}}return Dt.createElement("colgroup",null,nn)}var Ln=ea,La=Ft(74902),pn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function vo(Gt,he){return(0,Dt.useMemo)(function(){for(var ve=[],Se=0;Se<he;Se+=1){var Oe=Gt[Se];if(Oe!==void 0)ve[Se]=Oe;else return null}return ve},[Gt.join("_"),he])}var Fs=Dt.forwardRef(function(Gt,he){var ve=Gt.className,Se=Gt.noData,Oe=Gt.columns,Qe=Gt.flattenColumns,nn=Gt.colWidths,Sn=Gt.columCount,Gn=Gt.stickyOffsets,On=Gt.direction,ci=Gt.fixHeader,Wn=Gt.stickyTopOffset,ri=Gt.stickyBottomOffset,Zn=Gt.stickyClassName,Si=Gt.onScroll,Ii=Gt.maxContentScroll,tr=Gt.children,yr=(0,ao.Z)(Gt,pn),Fi=ce(Mt,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ji=Fi.prefixCls,ji=Fi.scrollbarSize,Sr=Fi.isSticky,Jr=Fi.getComponent,pr=Jr(["header","table"],"table"),Ro=Sr&&!ci?0:ji,Vr=Dt.useRef(null),Vo=Dt.useCallback(function(ho){on(he,ho),on(Vr,ho)},[]);Dt.useEffect(function(){var ho;function co(ua){var Ao=ua,Ta=Ao.currentTarget,Va=Ao.deltaX;Va&&(Si({currentTarget:Ta,scrollLeft:Ta.scrollLeft+Va}),ua.preventDefault())}return(ho=Vr.current)===null||ho===void 0||ho.addEventListener("wheel",co,{passive:!1}),function(){var ua;(ua=Vr.current)===null||ua===void 0||ua.removeEventListener("wheel",co)}},[]);var Ba=Dt.useMemo(function(){return Qe.every(function(ho){return ho.width})},[Qe]),Xo=Qe[Qe.length-1],Ur={fixed:Xo?Xo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ji,"-cell-scrollbar")}}},Qr=(0,Dt.useMemo)(function(){return Ro?[].concat((0,La.Z)(Oe),[Ur]):Oe},[Ro,Oe]),zi=(0,Dt.useMemo)(function(){return Ro?[].concat((0,La.Z)(Qe),[Ur]):Qe},[Ro,Qe]),Pr=(0,Dt.useMemo)(function(){var ho=Gn.right,co=Gn.left;return(0,Zt.Z)((0,Zt.Z)({},Gn),{},{left:On==="rtl"?[].concat((0,La.Z)(co.map(function(ua){return ua+Ro})),[0]):co,right:On==="rtl"?ho:[].concat((0,La.Z)(ho.map(function(ua){return ua+Ro})),[0]),isSticky:Sr})},[Ro,Gn,Sr]),io=vo(nn,Sn);return Dt.createElement("div",{style:(0,Zt.Z)({overflow:"hidden"},Sr?{top:Wn,bottom:ri}:{}),ref:Vo,className:Fe()(ve,(0,Pe.Z)({},Zn,!!Zn))},Dt.createElement(pr,{style:{tableLayout:"fixed",visibility:Se||io?null:"hidden"}},(!Se||!Ii||Ba)&&Dt.createElement(Ln,{colWidths:io?[].concat((0,La.Z)(io),[Ro]):[],columCount:Sn+1,columns:zi}),tr((0,Zt.Z)((0,Zt.Z)({},yr),{},{stickyOffsets:Pr,columns:Qr,flattenColumns:zi}))))}),Ia=Dt.memo(Fs),$s=function(he){var ve=he.cells,Se=he.stickyOffsets,Oe=he.flattenColumns,Qe=he.rowComponent,nn=he.cellComponent,Sn=he.onHeaderRow,Gn=he.index,On=ce(Mt,["prefixCls","direction"]),ci=On.prefixCls,Wn=On.direction,ri;Sn&&(ri=Sn(ve.map(function(Si){return Si.column}),Gn));var Zn=sn(ve.map(function(Si){return Si.column}));return Dt.createElement(Qe,ri,ve.map(function(Si,Ii){var tr=Si.column,yr=Or(Si.colStart,Si.colEnd,Oe,Se,Wn),Fi;return tr&&tr.onHeaderCell&&(Fi=Si.column.onHeaderCell(tr)),Dt.createElement(hr,(0,ye.Z)({},Si,{scope:tr.title?Si.colSpan>1?"colgroup":"col":null,ellipsis:tr.ellipsis,align:tr.align,component:nn,prefixCls:ci,key:Zn[Ii]},yr,{additionalProps:Fi,rowType:"header"}))}))},Ca=$s;function Fo(Gt){var he=[];function ve(nn,Sn){var Gn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;he[Gn]=he[Gn]||[];var On=Sn,ci=nn.filter(Boolean).map(function(Wn){var ri={key:Wn.key,className:Wn.className||"",children:Wn.title,column:Wn,colStart:On},Zn=1,Si=Wn.children;return Si&&Si.length>0&&(Zn=ve(Si,On,Gn+1).reduce(function(Ii,tr){return Ii+tr},0),ri.hasSubColumns=!0),"colSpan"in Wn&&(Zn=Wn.colSpan),"rowSpan"in Wn&&(ri.rowSpan=Wn.rowSpan),ri.colSpan=Zn,ri.colEnd=ri.colStart+Zn-1,he[Gn].push(ri),On+=Zn,Zn});return ci}ve(Gt,0);for(var Se=he.length,Oe=function(Sn){he[Sn].forEach(function(Gn){!("rowSpan"in Gn)&&!Gn.hasSubColumns&&(Gn.rowSpan=Se-Sn)})},Qe=0;Qe<Se;Qe+=1)Oe(Qe);return he}var Fa=function(he){var ve=he.stickyOffsets,Se=he.columns,Oe=he.flattenColumns,Qe=he.onHeaderRow,nn=ce(Mt,["prefixCls","getComponent"]),Sn=nn.prefixCls,Gn=nn.getComponent,On=Dt.useMemo(function(){return Fo(Se)},[Se]),ci=Gn(["header","wrapper"],"thead"),Wn=Gn(["header","row"],"tr"),ri=Gn(["header","cell"],"th");return Dt.createElement(ci,{className:"".concat(Sn,"-thead")},On.map(function(Zn,Si){var Ii=Dt.createElement(Ca,{key:Si,flattenColumns:Oe,cells:Zn,stickyOffsets:ve,rowComponent:Wn,cellComponent:ri,onHeaderRow:Qe,index:Si});return Ii}))},al=gt(Fa),la=Ft(54768);function yi(Gt,he,ve){var Se=(0,so.g)(Gt),Oe=Se.expandIcon,Qe=Se.expandedRowKeys,nn=Se.defaultExpandedRowKeys,Sn=Se.defaultExpandAllRows,Gn=Se.expandedRowRender,On=Se.onExpand,ci=Se.onExpandedRowsChange,Wn=Se.childrenColumnName,ri=Oe||pl,Zn=Wn||"children",Si=Dt.useMemo(function(){return Gn?"row":Gt.expandable&&Gt.internalHooks===Lt.R&&Gt.expandable.__PARENT_RENDER_ICON__||he.some(function(Sr){return Sr&&(0,_t.Z)(Sr)==="object"&&Sr[Zn]})?"nest":!1},[!!Gn,he]),Ii=Dt.useState(function(){return nn||(Sn?gs(he,ve,Zn):[])}),tr=(0,ie.Z)(Ii,2),yr=tr[0],Fi=tr[1],Ji=Dt.useMemo(function(){return new Set(Qe||yr||[])},[Qe,yr]),ji=Dt.useCallback(function(Sr){var Jr=ve(Sr,he.indexOf(Sr)),pr,Ro=Ji.has(Jr);Ro?(Ji.delete(Jr),pr=(0,La.Z)(Ji)):pr=[].concat((0,La.Z)(Ji),[Jr]),Fi(pr),On&&On(!Ro,Sr),ci&&ci(pr)},[ve,Ji,he,On,ci]);return[Se,Si,Ji,ri,Zn,ji]}function Qt(Gt,he,ve){var Se=Gt.map(function(Oe,Qe){return Or(Qe,Qe,Gt,he,ve)});return He(function(){return Se},[Se],function(Oe,Qe){return!bn(Oe,Qe)})}function os(Gt){var he=(0,Dt.useRef)(Gt),ve=(0,Dt.useState)({}),Se=(0,ie.Z)(ve,2),Oe=Se[1],Qe=(0,Dt.useRef)(null),nn=(0,Dt.useRef)([]);function Sn(Gn){nn.current.push(Gn);var On=Promise.resolve();Qe.current=On,On.then(function(){if(Qe.current===On){var ci=nn.current,Wn=he.current;nn.current=[],ci.forEach(function(ri){he.current=ri(he.current)}),Qe.current=null,Wn!==he.current&&Oe({})}})}return(0,Dt.useEffect)(function(){return function(){Qe.current=null}},[]),[he.current,Sn]}function uu(Gt){var he=(0,Dt.useRef)(Gt||null),ve=(0,Dt.useRef)();function Se(){window.clearTimeout(ve.current)}function Oe(nn){he.current=nn,Se(),ve.current=window.setTimeout(function(){he.current=null,ve.current=void 0},100)}function Qe(){return he.current}return(0,Dt.useEffect)(function(){return Se},[]),[Oe,Qe]}function hu(){var Gt=Dt.useState(-1),he=(0,ie.Z)(Gt,2),ve=he[0],Se=he[1],Oe=Dt.useState(-1),Qe=(0,ie.Z)(Oe,2),nn=Qe[0],Sn=Qe[1],Gn=Dt.useCallback(function(On,ci){Se(On),Sn(ci)},[]);return[ve,nn,Gn]}var Ys=Re()?window:null;function cu(Gt,he){var ve=(0,_t.Z)(Gt)==="object"?Gt:{},Se=ve.offsetHeader,Oe=Se===void 0?0:Se,Qe=ve.offsetSummary,nn=Qe===void 0?0:Qe,Sn=ve.offsetScroll,Gn=Sn===void 0?0:Sn,On=ve.getContainer,ci=On===void 0?function(){return Ys}:On,Wn=ci()||Ys,ri=!!Gt;return Dt.useMemo(function(){return{isSticky:ri,stickyClassName:ri?"".concat(he,"-sticky-holder"):"",offsetHeader:Oe,offsetSummary:nn,offsetScroll:Gn,container:Wn}},[ri,Gn,Oe,nn,he,Wn])}function tl(Gt,he,ve){var Se=(0,Dt.useMemo)(function(){var Oe=he.length,Qe=function(On,ci,Wn){for(var ri=[],Zn=0,Si=On;Si!==ci;Si+=Wn)ri.push(Zn),he[Si].fixed&&(Zn+=Gt[Si]||0);return ri},nn=Qe(0,Oe,1),Sn=Qe(Oe-1,-1,-1).reverse();return ve==="rtl"?{left:Sn,right:nn}:{left:nn,right:Sn}},[Gt,he,ve]);return Se}var Mh=tl;function Cu(Gt){var he=Gt.className,ve=Gt.children;return Dt.createElement("div",{className:he},ve)}var Ma=Cu;function Ja(Gt,he,ve,Se){var Oe=Jt.unstable_batchedUpdates?function(nn){Jt.unstable_batchedUpdates(ve,nn)}:ve;return Gt!=null&&Gt.addEventListener&&Gt.addEventListener(he,Oe,Se),{remove:function(){Gt!=null&&Gt.removeEventListener&&Gt.removeEventListener(he,Oe,Se)}}}var cr=function(he){return+setTimeout(he,16)},Xi=function(he){return clearTimeout(he)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(cr=function(he){return window.requestAnimationFrame(he)},Xi=function(he){return window.cancelAnimationFrame(he)});var Rr=0,un=new Map;function vr(Gt){un.delete(Gt)}var oo=function(he){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rr+=1;var Se=Rr;function Oe(Qe){if(Qe===0)vr(Se),he();else{var nn=cr(function(){Oe(Qe-1)});un.set(Se,nn)}}return Oe(ve),Se};oo.cancel=function(Gt){var he=un.get(Gt);return vr(Gt),Xi(he)};var za=oo;function ka(Gt){return Gt instanceof HTMLElement||Gt instanceof SVGElement}function Na(Gt){return Gt&&(0,_t.Z)(Gt)==="object"&&ka(Gt.nativeElement)?Gt.nativeElement:ka(Gt)?Gt:null}function Ws(Gt){var he=Na(Gt);if(he)return he;if(Gt instanceof React.Component){var ve;return(ve=ReactDOM.findDOMNode)===null||ve===void 0?void 0:ve.call(ReactDOM,Gt)}return null}function xl(Gt){var he=Na(Gt),ve=he.getBoundingClientRect(),Se=document.documentElement;return{left:ve.left+(window.pageXOffset||Se.scrollLeft)-(Se.clientLeft||document.body.clientLeft||0),top:ve.top+(window.pageYOffset||Se.scrollTop)-(Se.clientTop||document.body.clientTop||0)}}var wl=function(he,ve){var Se,Oe,Qe=he.scrollBodyRef,nn=he.onScroll,Sn=he.offsetScroll,Gn=he.container,On=he.direction,ci=ce(Mt,"prefixCls"),Wn=((Se=Qe.current)===null||Se===void 0?void 0:Se.scrollWidth)||0,ri=((Oe=Qe.current)===null||Oe===void 0?void 0:Oe.clientWidth)||0,Zn=Wn&&ri*(ri/Wn),Si=Dt.useRef(),Ii=os({scrollLeft:0,isHiddenScrollBar:!0}),tr=(0,ie.Z)(Ii,2),yr=tr[0],Fi=tr[1],Ji=Dt.useRef({delta:0,x:0}),ji=Dt.useState(!1),Sr=(0,ie.Z)(ji,2),Jr=Sr[0],pr=Sr[1],Ro=Dt.useRef(null);Dt.useEffect(function(){return function(){za.cancel(Ro.current)}},[]);var Vr=function(){pr(!1)},Vo=function(zi){zi.persist(),Ji.current.delta=zi.pageX-yr.scrollLeft,Ji.current.x=0,pr(!0),zi.preventDefault()},Ba=function(zi){var Pr,io=zi||((Pr=window)===null||Pr===void 0?void 0:Pr.event),ho=io.buttons;if(!Jr||ho===0){Jr&&pr(!1);return}var co=Ji.current.x+zi.pageX-Ji.current.x-Ji.current.delta,ua=On==="rtl";co=Math.max(ua?Zn-ri:0,Math.min(ua?0:ri-Zn,co));var Ao=!ua||Math.abs(co)+Math.abs(Zn)<ri;Ao&&(nn({scrollLeft:co/ri*(Wn+2)}),Ji.current.x=zi.pageX)},Xo=function(){za.cancel(Ro.current),Ro.current=za(function(){if(Qe.current){var zi=xl(Qe.current).top,Pr=zi+Qe.current.offsetHeight,io=Gn===window?document.documentElement.scrollTop+window.innerHeight:xl(Gn).top+Gn.clientHeight;Pr-Ui()<=io||zi>=io-Sn?Fi(function(ho){return(0,Zt.Z)((0,Zt.Z)({},ho),{},{isHiddenScrollBar:!0})}):Fi(function(ho){return(0,Zt.Z)((0,Zt.Z)({},ho),{},{isHiddenScrollBar:!1})})}})},Ur=function(zi){Fi(function(Pr){return(0,Zt.Z)((0,Zt.Z)({},Pr),{},{scrollLeft:zi/Wn*ri||0})})};return Dt.useImperativeHandle(ve,function(){return{setScrollLeft:Ur,checkScrollBarVisible:Xo}}),Dt.useEffect(function(){var Qr=Ja(document.body,"mouseup",Vr,!1),zi=Ja(document.body,"mousemove",Ba,!1);return Xo(),function(){Qr.remove(),zi.remove()}},[Zn,Jr]),Dt.useEffect(function(){if(Qe.current){for(var Qr=[],zi=Na(Qe.current);zi;)Qr.push(zi),zi=zi.parentElement;return Qr.forEach(function(Pr){return Pr.addEventListener("scroll",Xo,!1)}),window.addEventListener("resize",Xo,!1),window.addEventListener("scroll",Xo,!1),Gn.addEventListener("scroll",Xo,!1),function(){Qr.forEach(function(Pr){return Pr.removeEventListener("scroll",Xo)}),window.removeEventListener("resize",Xo),window.removeEventListener("scroll",Xo),Gn.removeEventListener("scroll",Xo)}}},[Gn]),Dt.useEffect(function(){yr.isHiddenScrollBar||Fi(function(Qr){var zi=Qe.current;return zi?(0,Zt.Z)((0,Zt.Z)({},Qr),{},{scrollLeft:zi.scrollLeft/zi.scrollWidth*zi.clientWidth}):Qr})},[yr.isHiddenScrollBar]),Wn<=ri||!Zn||yr.isHiddenScrollBar?null:Dt.createElement("div",{style:{height:Ui(),width:ri,bottom:Sn},className:"".concat(ci,"-sticky-scroll")},Dt.createElement("div",{onMouseDown:Vo,ref:Si,className:Fe()("".concat(ci,"-sticky-scroll-bar"),(0,Pe.Z)({},"".concat(ci,"-sticky-scroll-bar-active"),Jr)),style:{width:"".concat(Zn,"px"),transform:"translate3d(".concat(yr.scrollLeft,"px, 0, 0)")}}))},Xh=Dt.forwardRef(wl);function fh(Gt){return null}var Xe=fh;function bl(Gt){return null}var Au=bl,kh="rc-table",as=[],bh={};function Fh(){return"No Data"}function Jh(Gt,he){var ve=(0,Zt.Z)({rowKey:"key",prefixCls:kh,emptyText:Fh},Gt),Se=ve.prefixCls,Oe=ve.className,Qe=ve.rowClassName,nn=ve.style,Sn=ve.data,Gn=ve.rowKey,On=ve.scroll,ci=ve.tableLayout,Wn=ve.direction,ri=ve.title,Zn=ve.footer,Si=ve.summary,Ii=ve.caption,tr=ve.id,yr=ve.showHeader,Fi=ve.components,Ji=ve.emptyText,ji=ve.onRow,Sr=ve.onHeaderRow,Jr=ve.onScroll,pr=ve.internalHooks,Ro=ve.transformColumns,Vr=ve.internalRefs,Vo=ve.tailor,Ba=ve.getContainerWidth,Xo=ve.sticky,Ur=ve.rowHoverable,Qr=Ur===void 0?!0:Ur,zi=Sn||as,Pr=!!zi.length,io=pr===Lt.R,ho=Dt.useCallback(function(Ar,Qi){return cn(Fi,Ar)||Qi},[Fi]),co=Dt.useMemo(function(){return typeof Gn=="function"?Gn:function(Ar){var Qi=Ar&&Ar[Gn];return Qi}},[Gn]),ua=ho(["body"]),Ao=hu(),Ta=(0,ie.Z)(Ao,3),Va=Ta[0],ts=Ta[1],Zs=Ta[2],ys=yi(ve,zi,co),Io=(0,ie.Z)(ys,6),ra=Io[0],wa=Io[1],Da=Io[2],oa=Io[3],Lr=Io[4],pa=Io[5],As=On==null?void 0:On.x,nl=Dt.useState(0),Sl=(0,ie.Z)(nl,2),Tl=Sl[0],Dl=Sl[1],nu=(0,la.Z)((0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},ve),ra),{},{expandable:!!ra.expandedRowRender,columnTitle:ra.columnTitle,expandedKeys:Da,getRowKey:co,onTriggerExpand:pa,expandIcon:oa,expandIconColumnIndex:ra.expandIconColumnIndex,direction:Wn,scrollWidth:io&&Vo&&typeof As=="number"?As:null,clientWidth:Tl}),io?Ro:null),_r=(0,ie.Z)(nu,4),Ol=_r[0],Oa=_r[1],il=_r[2],ul=_r[3],Bs=il!=null?il:As,gu=Dt.useMemo(function(){return{columns:Ol,flattenColumns:Oa}},[Ol,Oa]),Cl=Dt.useRef(),Eu=Dt.useRef(),ds=Dt.useRef(),pu=Dt.useRef();Dt.useImperativeHandle(he,function(){return{nativeElement:Cl.current,scrollTo:function(Qi){var Po;if(ds.current instanceof HTMLElement){var qr=Qi.index,ha=Qi.top,So=Qi.key;if(Le(ha)){var jo;(jo=ds.current)===null||jo===void 0||jo.scrollTo({top:ha})}else{var ba,Xr=So!=null?So:co(zi[qr]);(ba=ds.current.querySelector('[data-row-key="'.concat(Xr,'"]')))===null||ba===void 0||ba.scrollIntoView()}}else(Po=ds.current)!==null&&Po!==void 0&&Po.scrollTo&&ds.current.scrollTo(Qi)}}});var Gu=Dt.useRef(),Oh=Dt.useState(!1),zc=(0,ie.Z)(Oh,2),ec=zc[0],hl=zc[1],nh=Dt.useState(!1),cl=(0,ie.Z)(nh,2),Lu=cl[0],mu=cl[1],ih=os(new Map),Pc=(0,ie.Z)(ih,2),nc=Pc[0],jc=Pc[1],ph=sn(Oa),Mu=ph.map(function(Ar){return nc.get(Ar)}),ic=Dt.useMemo(function(){return Mu},[Mu.join("_")]),mh=Mh(ic,Oa,Wn),is=On&&Tn(On.y),Al=On&&Tn(Bs)||!!ra.fixed,Ku=Al&&Oa.some(function(Ar){var Qi=Ar.fixed;return Qi}),yt=Dt.useRef(),Bt=cu(Xo,Se),Ot=Bt.isSticky,Kt=Bt.offsetHeader,le=Bt.offsetSummary,Ce=Bt.offsetScroll,Ue=Bt.stickyClassName,tn=Bt.container,wn=Dt.useMemo(function(){return Si==null?void 0:Si(zi)},[Si,zi]),Bn=(is||Ot)&&Dt.isValidElement(wn)&&wn.type===Ga&&wn.props.fixed,hn,oi,Pi;is&&(oi={overflowY:Pr?"scroll":"auto",maxHeight:On.y}),Al&&(hn={overflowX:"auto"},is||(oi={overflowY:"hidden"}),Pi={width:Bs===!0?"auto":Bs,minWidth:"100%"});var pi=Dt.useCallback(function(Ar,Qi){Ve(Cl.current)&&jc(function(Po){if(Po.get(Ar)!==Qi){var qr=new Map(Po);return qr.set(Ar,Qi),qr}return Po})},[]),Qn=uu(null),hi=(0,ie.Z)(Qn,2),si=hi[0],Nn=hi[1];function Vn(Ar,Qi){Qi&&(typeof Qi=="function"?Qi(Ar):Qi.scrollLeft!==Ar&&(Qi.scrollLeft=Ar,Qi.scrollLeft!==Ar&&setTimeout(function(){Qi.scrollLeft=Ar},0)))}var Rn=fe(function(Ar){var Qi=Ar.currentTarget,Po=Ar.scrollLeft,qr=Wn==="rtl",ha=typeof Po=="number"?Po:Qi.scrollLeft,So=Qi||bh;if(!Nn()||Nn()===So){var jo;si(So),Vn(ha,Eu.current),Vn(ha,ds.current),Vn(ha,Gu.current),Vn(ha,(jo=yt.current)===null||jo===void 0?void 0:jo.setScrollLeft)}var ba=Qi||Eu.current;if(ba){var Xr=io&&Vo&&typeof Bs=="number"?Bs:ba.scrollWidth,Yo=ba.clientWidth;if(Xr===Yo){hl(!1),mu(!1);return}qr?(hl(-ha<Xr-Yo),mu(-ha>0)):(hl(ha>0),mu(ha<Xr-Yo))}}),ei=fe(function(Ar){Rn(Ar),Jr==null||Jr(Ar)}),bi=function(){if(Al&&ds.current){var Qi;Rn({currentTarget:Na(ds.current),scrollLeft:(Qi=ds.current)===null||Qi===void 0?void 0:Qi.scrollLeft})}else hl(!1),mu(!1)},Mi=function(Qi){var Po,qr=Qi.width;(Po=yt.current)===null||Po===void 0||Po.checkScrollBarVisible();var ha=Cl.current?Cl.current.offsetWidth:qr;io&&Ba&&Cl.current&&(ha=Ba(Cl.current,ha)||ha),ha!==Tl&&(bi(),Dl(ha))},Ei=Dt.useRef(!1);Dt.useEffect(function(){Ei.current&&bi()},[Al,Sn,Ol.length]),Dt.useEffect(function(){Ei.current=!0},[]);var pe=Dt.useState(0),_i=(0,ie.Z)(pe,2),er=_i[0],xr=_i[1],Gr=Dt.useState(!0),dr=(0,ie.Z)(Gr,2),Cr=dr[0],Dr=dr[1];Dt.useEffect(function(){(!Vo||!io)&&(ds.current instanceof Element?xr(Tr(ds.current).width):xr(Tr(pu.current).width)),Dr(fn("position","sticky"))},[]),Dt.useEffect(function(){io&&Vr&&(Vr.body.current=ds.current)});var fr=Dt.useCallback(function(Ar){return Dt.createElement(Dt.Fragment,null,Dt.createElement(al,Ar),Bn==="top"&&Dt.createElement(gr,Ar,wn))},[Bn,wn]),Zr=Dt.useCallback(function(Ar){return Dt.createElement(gr,Ar,wn)},[wn]),No=ho(["table"],"table"),wo=Dt.useMemo(function(){return ci||(Ku?Bs==="max-content"?"auto":"fixed":is||Ot||Oa.some(function(Ar){var Qi=Ar.ellipsis;return Qi})?"fixed":"auto")},[is,Ku,Oa,ci,Ot]),yo,Fr={colWidths:ic,columCount:Oa.length,stickyOffsets:mh,onHeaderRow:Sr,fixHeader:is,scroll:On},ar=Dt.useMemo(function(){return Pr?null:typeof Ji=="function"?Ji():Ji},[Pr,Ji]),kr=Dt.createElement(To,{data:zi,measureColumnWidth:is||Al||Ot}),nr=Dt.createElement(Ln,{colWidths:Oa.map(function(Ar){var Qi=Ar.width;return Qi}),columns:Oa}),Eo=Ii!=null?Dt.createElement("caption",{className:"".concat(Se,"-caption")},Ii):void 0,Go=Bi(ve,{data:!0}),lo=Bi(ve,{aria:!0});if(is||Ot){var ko;typeof ua=="function"?(ko=ua(zi,{scrollbarSize:er,ref:ds,onScroll:Rn}),Fr.colWidths=Oa.map(function(Ar,Qi){var Po=Ar.width,qr=Qi===Oa.length-1?Po-er:Po;return typeof qr=="number"&&!Number.isNaN(qr)?qr:0})):ko=Dt.createElement("div",{style:(0,Zt.Z)((0,Zt.Z)({},hn),oi),onScroll:ei,ref:ds,className:Fe()("".concat(Se,"-body"))},Dt.createElement(No,(0,ye.Z)({style:(0,Zt.Z)((0,Zt.Z)({},Pi),{},{tableLayout:wo})},lo),Eo,nr,kr,!Bn&&wn&&Dt.createElement(gr,{stickyOffsets:mh,flattenColumns:Oa},wn)));var fo=(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({noData:!zi.length,maxContentScroll:Al&&Bs==="max-content"},Fr),gu),{},{direction:Wn,stickyClassName:Ue,onScroll:Rn});yo=Dt.createElement(Dt.Fragment,null,yr!==!1&&Dt.createElement(Ia,(0,ye.Z)({},fo,{stickyTopOffset:Kt,className:"".concat(Se,"-header"),ref:Eu}),fr),ko,Bn&&Bn!=="top"&&Dt.createElement(Ia,(0,ye.Z)({},fo,{stickyBottomOffset:le,className:"".concat(Se,"-summary"),ref:Gu}),Zr),Ot&&ds.current&&ds.current instanceof Element&&Dt.createElement(Xh,{ref:yt,offsetScroll:Ce,scrollBodyRef:ds,onScroll:Rn,container:tn,direction:Wn}))}else yo=Dt.createElement("div",{style:(0,Zt.Z)((0,Zt.Z)({},hn),oi),className:Fe()("".concat(Se,"-content")),onScroll:Rn,ref:ds},Dt.createElement(No,(0,ye.Z)({style:(0,Zt.Z)((0,Zt.Z)({},Pi),{},{tableLayout:wo})},lo),Eo,nr,yr!==!1&&Dt.createElement(al,(0,ye.Z)({},Fr,gu)),kr,wn&&Dt.createElement(gr,{stickyOffsets:mh,flattenColumns:Oa},wn)));var Ko=Dt.createElement("div",(0,ye.Z)({className:Fe()(Se,Oe,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(Se,"-rtl"),Wn==="rtl"),"".concat(Se,"-ping-left"),ec),"".concat(Se,"-ping-right"),Lu),"".concat(Se,"-layout-fixed"),ci==="fixed"),"".concat(Se,"-fixed-header"),is),"".concat(Se,"-fixed-column"),Ku),"".concat(Se,"-fixed-column-gapped"),Ku&&ul),"".concat(Se,"-scroll-horizontal"),Al),"".concat(Se,"-has-fix-left"),Oa[0]&&Oa[0].fixed),"".concat(Se,"-has-fix-right"),Oa[Oa.length-1]&&Oa[Oa.length-1].fixed==="right")),style:nn,id:tr,ref:Cl},Go),ri&&Dt.createElement(Ma,{className:"".concat(Se,"-title")},ri(zi)),Dt.createElement("div",{ref:pu,className:"".concat(Se,"-container")},yo),Zn&&Dt.createElement(Ma,{className:"".concat(Se,"-footer")},Zn(zi)));Al&&(Ko=Dt.createElement(wt.Z,{onResize:Mi},Ko));var po=Qt(Oa,mh,Wn),qo=Dt.useMemo(function(){return{scrollX:Bs,prefixCls:Se,getComponent:ho,scrollbarSize:er,direction:Wn,fixedInfoList:po,isSticky:Ot,supportSticky:Cr,componentWidth:Tl,fixHeader:is,fixColumn:Ku,horizonScroll:Al,tableLayout:wo,rowClassName:Qe,expandedRowClassName:ra.expandedRowClassName,expandIcon:oa,expandableType:wa,expandRowByClick:ra.expandRowByClick,expandedRowRender:ra.expandedRowRender,onTriggerExpand:pa,expandIconColumnIndex:ra.expandIconColumnIndex,indentSize:ra.indentSize,allColumnsFixedLeft:Oa.every(function(Ar){return Ar.fixed==="left"}),emptyNode:ar,columns:Ol,flattenColumns:Oa,onColumnResize:pi,hoverStartRow:Va,hoverEndRow:ts,onHover:Zs,rowExpandable:ra.rowExpandable,onRow:ji,getRowKey:co,expandedKeys:Da,childrenColumnName:Lr,rowHoverable:Qr}},[Bs,Se,ho,er,Wn,po,Ot,Cr,Tl,is,Ku,Al,wo,Qe,ra.expandedRowClassName,oa,wa,ra.expandRowByClick,ra.expandedRowRender,pa,ra.expandIconColumnIndex,ra.indentSize,ar,Ol,Oa,pi,Va,ts,Zs,ra.rowExpandable,ji,co,Da,Lr,Qr]);return Dt.createElement(Mt.Provider,{value:qo},Ko)}var ja=Dt.forwardRef(Jh);function Ps(Gt){return lt(ja,Gt)}var eo=Ps();eo.EXPAND_COLUMN=Lt.w,eo.INTERNAL_HOOKS=Lt.R,eo.Column=Xe,eo.ColumnGroup=Au,eo.Summary=vn;var Oo=eo;function Wa(Gt){var he=Dt.useRef();he.current=Gt;var ve=Dt.useCallback(function(){for(var Se,Oe=arguments.length,Qe=new Array(Oe),nn=0;nn<Oe;nn++)Qe[nn]=arguments[nn];return(Se=he.current)===null||Se===void 0?void 0:Se.call.apply(Se,[he].concat(Qe))},[]);return ve}function ps(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var $i=ps()?Dt.useLayoutEffect:Dt.useEffect,ad=function(he,ve){var Se=Dt.useRef(!0);$i(function(){return he(Se.current)},ve),$i(function(){return Se.current=!1,function(){Se.current=!0}},[])},Qh=function(he,ve){ad(function(Se){if(!Se)return he()},ve)},Fl=ad;function sd(Gt){var he=React.useRef(!1),ve=React.useState(Gt),Se=_slicedToArray(ve,2),Oe=Se[0],Qe=Se[1];React.useEffect(function(){return he.current=!1,function(){he.current=!0}},[]);function nn(Sn,Gn){Gn&&he.current||Qe(Sn)}return[Oe,nn]}function _h(Gt){return Gt!==void 0}function wi(Gt,he){var ve=he||{},Se=ve.defaultValue,Oe=ve.value,Qe=ve.onChange,nn=ve.postState,Sn=useState(function(){return _h(Oe)?Oe:_h(Se)?typeof Se=="function"?Se():Se:typeof Gt=="function"?Gt():Gt}),Gn=_slicedToArray(Sn,2),On=Gn[0],ci=Gn[1],Wn=Oe!==void 0?Oe:On,ri=nn?nn(Wn):Wn,Zn=useEvent(Qe),Si=useState([Wn]),Ii=_slicedToArray(Si,2),tr=Ii[0],yr=Ii[1];useLayoutUpdateEffect(function(){var Ji=tr[0];On!==Ji&&Zn(On,Ji)},[tr]),useLayoutUpdateEffect(function(){_h(Oe)||ci(Oe)},[Oe]);var Fi=useEvent(function(Ji,ji){ci(Ji,ji),yr([Wn],ji)});return[ri,Fi]}function ms(Gt,he,ve){var Se=React.useRef({});return(!("value"in Se.current)||ve(Se.current.condition,he))&&(Se.current.value=Gt(),Se.current.condition=he),Se.current.value}function bs(Gt,he){typeof Gt=="function"?Gt(he):_typeof(Gt)==="object"&&Gt&&"current"in Gt&&(Gt.current=he)}function _u(){for(var Gt=arguments.length,he=new Array(Gt),ve=0;ve<Gt;ve++)he[ve]=arguments[ve];var Se=he.filter(function(Oe){return Oe});return Se.length<=1?Se[0]:function(Oe){he.forEach(function(Qe){bs(Qe,Oe)})}}function Rc(){for(var Gt=arguments.length,he=new Array(Gt),ve=0;ve<Gt;ve++)he[ve]=arguments[ve];return useMemo(function(){return _u.apply(void 0,he)},he,function(Se,Oe){return Se.length!==Oe.length||Se.every(function(Qe,nn){return Qe!==Oe[nn]})})}function Ru(Gt){var he,ve,Se=isMemo(Gt)?Gt.type.type:Gt.type;return!(typeof Se=="function"&&!((he=Se.prototype)!==null&&he!==void 0&&he.render)||typeof Gt=="function"&&!((ve=Gt.prototype)!==null&&ve!==void 0&&ve.render))}function no(Gt){return!isValidElement(Gt)||isFragment(Gt)?!1:Ru(Gt)}function qu(Gt,he,ve,Se){if(!he.length)return ve;var Oe=_toArray(he),Qe=Oe[0],nn=Oe.slice(1),Sn;return!Gt&&typeof Qe=="number"?Sn=[]:Array.isArray(Gt)?Sn=_toConsumableArray(Gt):Sn=_objectSpread({},Gt),Se&&ve===void 0&&nn.length===1?delete Sn[Qe][nn[0]]:Sn[Qe]=qu(Sn[Qe],nn,ve,Se),Sn}function ml(Gt,he,ve){var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return he.length&&Se&&ve===void 0&&!get(Gt,he.slice(0,-1))?Gt:qu(Gt,he,ve,Se)}function vl(Gt){return _typeof(Gt)==="object"&&Gt!==null&&Object.getPrototypeOf(Gt)===Object.prototype}function yl(Gt){return Array.isArray(Gt)?[]:{}}var qh=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function $u(){for(var Gt=arguments.length,he=new Array(Gt),ve=0;ve<Gt;ve++)he[ve]=arguments[ve];var Se=yl(he[0]);return he.forEach(function(Oe){function Qe(nn,Sn){var Gn=new Set(Sn),On=get(Oe,nn),ci=Array.isArray(On);if(ci||vl(On)){if(!Gn.has(On)){Gn.add(On);var Wn=get(Se,nn);ci?Se=ml(Se,nn,[]):(!Wn||_typeof(Wn)!=="object")&&(Se=ml(Se,nn,yl(On))),qh(On).forEach(function(ri){Qe([].concat(_toConsumableArray(nn),[ri]),Gn)})}}else Se=ml(Se,nn,On)}Qe([])}),Se}var sl={},Iu=[],ld=function(he){Iu.push(he)};function sf(Gt,he){if(0)var ve}function Fd(Gt,he){if(0)var ve}function lf(){sl={}}function Nh(Gt,he,ve){!he&&!sl[ve]&&(Gt(!1,ve),sl[ve]=!0)}function du(Gt,he){Nh(sf,Gt,he)}function $h(Gt,he){Nh(Fd,Gt,he)}du.preMessage=ld,du.resetWarned=lf,du.noteOnce=$h;var zu=null,ud=Dt.forwardRef(function(Gt,he){var ve=Gt.height,Se=Gt.offsetY,Oe=Gt.offsetX,Qe=Gt.children,nn=Gt.prefixCls,Sn=Gt.onInnerResize,Gn=Gt.innerProps,On=Gt.rtl,ci=Gt.extra,Wn={},ri={display:"flex",flexDirection:"column"};return Se!==void 0&&(Wn={height:ve,position:"relative",overflow:"hidden"},ri=(0,Zt.Z)((0,Zt.Z)({},ri),{},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({transform:"translateY(".concat(Se,"px)")},On?"marginRight":"marginLeft",-Oe),"position","absolute"),"left",0),"right",0),"top",0))),Dt.createElement("div",{style:Wn},Dt.createElement(wt.Z,{onResize:function(Si){var Ii=Si.offsetHeight;Ii&&Sn&&Sn()}},Dt.createElement("div",(0,ye.Z)({style:ri,className:Fe()((0,Pe.Z)({},"".concat(nn,"-holder-inner"),nn)),ref:he},Gn),Qe,ci)))});ud.displayName="Filler";var Nd=ud;function uf(Gt){var he=Gt.children,ve=Gt.setRef,Se=Dt.useCallback(function(Oe){ve(Oe)},[]);return Dt.cloneElement(he,{ref:Se})}function Is(Gt,he,ve,Se,Oe,Qe,nn,Sn){var Gn=Sn.getKey;return Gt.slice(he,ve+1).map(function(On,ci){var Wn=he+ci,ri=nn(On,Wn,{style:{width:Se},offsetX:Oe}),Zn=Gn(On);return Dt.createElement(uf,{key:Zn,setRef:function(Ii){return Qe(On,Ii)}},ri)})}function ag(Gt,he,ve,Se){var Oe=ve-Gt,Qe=he-ve,nn=Math.min(Oe,Qe)*2;if(Se<=nn){var Sn=Math.floor(Se/2);return Se%2?ve+Sn+1:ve-Sn}return Oe>Qe?ve-(Se-Qe):ve+(Se-Oe)}function hf(Gt,he,ve){var Se=Gt.length,Oe=he.length,Qe,nn;if(Se===0&&Oe===0)return null;Se<Oe?(Qe=Gt,nn=he):(Qe=he,nn=Gt);var Sn={__EMPTY_ITEM__:!0};function Gn(Si){return Si!==void 0?ve(Si):Sn}for(var On=null,ci=Math.abs(Se-Oe)!==1,Wn=0;Wn<nn.length;Wn+=1){var ri=Gn(Qe[Wn]),Zn=Gn(nn[Wn]);if(ri!==Zn){On=Wn,ci=ci||ri!==Gn(nn[Wn+1]);break}}return On===null?null:{index:On,multiple:ci}}function hd(Gt,he,ve){var Se=Dt.useState(Gt),Oe=(0,ie.Z)(Se,2),Qe=Oe[0],nn=Oe[1],Sn=Dt.useState(null),Gn=(0,ie.Z)(Sn,2),On=Gn[0],ci=Gn[1];return Dt.useEffect(function(){var Wn=hf(Qe||[],Gt||[],he);(Wn==null?void 0:Wn.index)!==void 0&&(ve==null||ve(Wn.index),ci(Gt[Wn.index])),nn(Gt)},[Gt]),[On]}var vc=function(he){return+setTimeout(he,16)},Pl=function(he){return clearTimeout(he)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(vc=function(he){return window.requestAnimationFrame(he)},Pl=function(he){return window.cancelAnimationFrame(he)});var ll=0,Hs=new Map;function el(Gt){Hs.delete(Gt)}var cd=function(he){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ll+=1;var Se=ll;function Oe(Qe){if(Qe===0)el(Se),he();else{var nn=vc(function(){Oe(Qe-1)});Hs.set(Se,nn)}}return Oe(ve),Se};cd.cancel=function(Gt){var he=Hs.get(Gt);return el(he),Pl(he)};var tu=cd,Cs=(typeof navigator=="undefined"?"undefined":(0,_t.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),gh=Cs,Ic=function(Gt,he,ve,Se){var Oe=(0,Dt.useRef)(!1),Qe=(0,Dt.useRef)(null);function nn(){clearTimeout(Qe.current),Oe.current=!0,Qe.current=setTimeout(function(){Oe.current=!1},50)}var Sn=(0,Dt.useRef)({top:Gt,bottom:he,left:ve,right:Se});return Sn.current.top=Gt,Sn.current.bottom=he,Sn.current.left=ve,Sn.current.right=Se,function(Gn,On){var ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Wn=Gn?On<0&&Sn.current.left||On>0&&Sn.current.right:On<0&&Sn.current.top||On>0&&Sn.current.bottom;return ci&&Wn?(clearTimeout(Qe.current),Oe.current=!1):(!Wn||Oe.current)&&nn(),!Oe.current&&Wn}};function Bd(Gt,he,ve,Se,Oe,Qe,nn){var Sn=(0,Dt.useRef)(0),Gn=(0,Dt.useRef)(null),On=(0,Dt.useRef)(null),ci=(0,Dt.useRef)(!1),Wn=Ic(he,ve,Se,Oe);function ri(Fi,Ji){if(tu.cancel(Gn.current),!Wn(!1,Ji)){var ji=Fi;if(!ji._virtualHandled)ji._virtualHandled=!0;else return;Sn.current+=Ji,On.current=Ji,gh||ji.preventDefault(),Gn.current=tu(function(){var Sr=ci.current?10:1;nn(Sn.current*Sr,!1),Sn.current=0})}}function Zn(Fi,Ji){nn(Ji,!0),gh||Fi.preventDefault()}var Si=(0,Dt.useRef)(null),Ii=(0,Dt.useRef)(null);function tr(Fi){if(Gt){tu.cancel(Ii.current),Ii.current=tu(function(){Si.current=null},2);var Ji=Fi.deltaX,ji=Fi.deltaY,Sr=Fi.shiftKey,Jr=Ji,pr=ji;(Si.current==="sx"||!Si.current&&Sr&&ji&&!Ji)&&(Jr=ji,pr=0,Si.current="sx");var Ro=Math.abs(Jr),Vr=Math.abs(pr);Si.current===null&&(Si.current=Qe&&Ro>Vr?"x":"y"),Si.current==="y"?ri(Fi,pr):Zn(Fi,Jr)}}function yr(Fi){Gt&&(ci.current=Fi.detail===On.current)}return[tr,yr]}function rr(Gt,he,ve,Se){var Oe=Dt.useMemo(function(){return[new Map,[]]},[Gt,ve.id,Se]),Qe=(0,ie.Z)(Oe,2),nn=Qe[0],Sn=Qe[1],Gn=function(ci){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ci,ri=nn.get(ci),Zn=nn.get(Wn);if(ri===void 0||Zn===void 0)for(var Si=Gt.length,Ii=Sn.length;Ii<Si;Ii+=1){var tr,yr=Gt[Ii],Fi=he(yr);nn.set(Fi,Ii);var Ji=(tr=ve.get(Fi))!==null&&tr!==void 0?tr:Se;if(Sn[Ii]=(Sn[Ii-1]||0)+Ji,Fi===ci&&(ri=Ii),Fi===Wn&&(Zn=Ii),ri!==void 0&&Zn!==void 0)break}return{top:Sn[ri-1]||0,bottom:Sn[Zn]}};return Gn}var cf=Ft(15671),xe=Ft(43144),kn=function(){function Gt(){(0,cf.Z)(this,Gt),(0,Pe.Z)(this,"maps",void 0),(0,Pe.Z)(this,"id",0),(0,Pe.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,xe.Z)(Gt,[{key:"set",value:function(ve,Se){this.maps[ve]=Se,this.id+=1,this.diffKeys.add(ve)}},{key:"get",value:function(ve){return this.maps[ve]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Gt}(),Td=kn;function df(Gt){var he=parseFloat(Gt);return isNaN(he)?0:he}function Bh(Gt,he,ve){var Se=Dt.useState(0),Oe=(0,ie.Z)(Se,2),Qe=Oe[0],nn=Oe[1],Sn=(0,Dt.useRef)(new Map),Gn=(0,Dt.useRef)(new Td),On=(0,Dt.useRef)(0);function ci(){On.current+=1}function Wn(){var Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ci();var Si=function(){var yr=!1;Sn.current.forEach(function(Fi,Ji){if(Fi&&Fi.offsetParent){var ji=Fi.offsetHeight,Sr=getComputedStyle(Fi),Jr=Sr.marginTop,pr=Sr.marginBottom,Ro=df(Jr),Vr=df(pr),Vo=ji+Ro+Vr;Gn.current.get(Ji)!==Vo&&(Gn.current.set(Ji,Vo),yr=!0)}}),yr&&nn(function(Fi){return Fi+1})};if(Zn)Si();else{On.current+=1;var Ii=On.current;Promise.resolve().then(function(){Ii===On.current&&Si()})}}function ri(Zn,Si){var Ii=Gt(Zn),tr=Sn.current.get(Ii);Si?(Sn.current.set(Ii,Si),Wn()):Sn.current.delete(Ii),!tr!=!Si&&(Si?he==null||he(Zn):ve==null||ve(Zn))}return(0,Dt.useEffect)(function(){return ci},[]),[ri,Wn,Gn.current,Qe]}var th=14/15;function yc(Gt,he,ve){var Se=(0,Dt.useRef)(!1),Oe=(0,Dt.useRef)(0),Qe=(0,Dt.useRef)(0),nn=(0,Dt.useRef)(null),Sn=(0,Dt.useRef)(null),Gn,On=function(Zn){if(Se.current){var Si=Math.ceil(Zn.touches[0].pageX),Ii=Math.ceil(Zn.touches[0].pageY),tr=Oe.current-Si,yr=Qe.current-Ii,Fi=Math.abs(tr)>Math.abs(yr);Fi?Oe.current=Si:Qe.current=Ii;var Ji=ve(Fi,Fi?tr:yr,!1,Zn);Ji&&Zn.preventDefault(),clearInterval(Sn.current),Ji&&(Sn.current=setInterval(function(){Fi?tr*=th:yr*=th;var ji=Math.floor(Fi?tr:yr);(!ve(Fi,ji,!0)||Math.abs(ji)<=.1)&&clearInterval(Sn.current)},16))}},ci=function(){Se.current=!1,Gn()},Wn=function(Zn){Gn(),Zn.touches.length===1&&!Se.current&&(Se.current=!0,Oe.current=Math.ceil(Zn.touches[0].pageX),Qe.current=Math.ceil(Zn.touches[0].pageY),nn.current=Zn.target,nn.current.addEventListener("touchmove",On,{passive:!1}),nn.current.addEventListener("touchend",ci,{passive:!0}))};Gn=function(){nn.current&&(nn.current.removeEventListener("touchmove",On),nn.current.removeEventListener("touchend",ci))},Fl(function(){return Gt&&he.current.addEventListener("touchstart",Wn,{passive:!0}),function(){var ri;(ri=he.current)===null||ri===void 0||ri.removeEventListener("touchstart",Wn),Gn(),clearInterval(Sn.current)}},[Gt])}function Sc(Gt){return Math.floor(Math.pow(Gt,.5))}function tc(Gt,he){var ve="touches"in Gt?Gt.touches[0]:Gt;return ve[he?"pageX":"pageY"]-window[he?"scrollX":"scrollY"]}function cs(Gt,he,ve){Dt.useEffect(function(){var Se=he.current;if(Gt&&Se){var Oe=!1,Qe,nn,Sn=function(){tu.cancel(Qe)},Gn=function ri(){Sn(),Qe=tu(function(){ve(nn),ri()})},On=function(Zn){if(!(Zn.target.draggable||Zn.button!==0)){var Si=Zn;Si._virtualHandled||(Si._virtualHandled=!0,Oe=!0)}},ci=function(){Oe=!1,Sn()},Wn=function(Zn){if(Oe){var Si=tc(Zn,!1),Ii=Se.getBoundingClientRect(),tr=Ii.top,yr=Ii.bottom;if(Si<=tr){var Fi=tr-Si;nn=-Sc(Fi),Gn()}else if(Si>=yr){var Ji=Si-yr;nn=Sc(Ji),Gn()}else Sn()}};return Se.addEventListener("mousedown",On),Se.ownerDocument.addEventListener("mouseup",ci),Se.ownerDocument.addEventListener("mousemove",Wn),function(){Se.removeEventListener("mousedown",On),Se.ownerDocument.removeEventListener("mouseup",ci),Se.ownerDocument.removeEventListener("mousemove",Wn),Sn()}}},[Gt])}var zr=10;function Nl(Gt,he,ve,Se,Oe,Qe,nn,Sn){var Gn=Dt.useRef(),On=Dt.useState(null),ci=(0,ie.Z)(On,2),Wn=ci[0],ri=ci[1];return Fl(function(){if(Wn&&Wn.times<zr){if(!Gt.current){ri(function(co){return(0,Zt.Z)({},co)});return}Qe();var Zn=Wn.targetAlign,Si=Wn.originAlign,Ii=Wn.index,tr=Wn.offset,yr=Gt.current.clientHeight,Fi=!1,Ji=Zn,ji=null;if(yr){for(var Sr=Zn||Si,Jr=0,pr=0,Ro=0,Vr=Math.min(he.length-1,Ii),Vo=0;Vo<=Vr;Vo+=1){var Ba=Oe(he[Vo]);pr=Jr;var Xo=ve.get(Ba);Ro=pr+(Xo===void 0?Se:Xo),Jr=Ro}for(var Ur=Sr==="top"?tr:yr-tr,Qr=Vr;Qr>=0;Qr-=1){var zi=Oe(he[Qr]),Pr=ve.get(zi);if(Pr===void 0){Fi=!0;break}if(Ur-=Pr,Ur<=0)break}switch(Sr){case"top":ji=pr-tr;break;case"bottom":ji=Ro-yr+tr;break;default:{var io=Gt.current.scrollTop,ho=io+yr;pr<io?Ji="top":Ro>ho&&(Ji="bottom")}}ji!==null&&nn(ji),ji!==Wn.lastTop&&(Fi=!0)}Fi&&ri((0,Zt.Z)((0,Zt.Z)({},Wn),{},{times:Wn.times+1,targetAlign:Ji,lastTop:ji}))}},[Wn,Gt.current]),function(Zn){if(Zn==null){Sn();return}if(tu.cancel(Gn.current),typeof Zn=="number")nn(Zn);else if(Zn&&(0,_t.Z)(Zn)==="object"){var Si,Ii=Zn.align;"index"in Zn?Si=Zn.index:Si=he.findIndex(function(Fi){return Oe(Fi)===Zn.key});var tr=Zn.offset,yr=tr===void 0?0:tr;ri({times:0,index:Si,offset:yr,originAlign:Ii})}}}var fu=Dt.forwardRef(function(Gt,he){var ve=Gt.prefixCls,Se=Gt.rtl,Oe=Gt.scrollOffset,Qe=Gt.scrollRange,nn=Gt.onStartMove,Sn=Gt.onStopMove,Gn=Gt.onScroll,On=Gt.horizontal,ci=Gt.spinSize,Wn=Gt.containerSize,ri=Gt.style,Zn=Gt.thumbStyle,Si=Gt.showScrollBar,Ii=Dt.useState(!1),tr=(0,ie.Z)(Ii,2),yr=tr[0],Fi=tr[1],Ji=Dt.useState(null),ji=(0,ie.Z)(Ji,2),Sr=ji[0],Jr=ji[1],pr=Dt.useState(null),Ro=(0,ie.Z)(pr,2),Vr=Ro[0],Vo=Ro[1],Ba=!Se,Xo=Dt.useRef(),Ur=Dt.useRef(),Qr=Dt.useState(Si),zi=(0,ie.Z)(Qr,2),Pr=zi[0],io=zi[1],ho=Dt.useRef(),co=function(){Si===!0||Si===!1||(clearTimeout(ho.current),io(!0),ho.current=setTimeout(function(){io(!1)},3e3))},ua=Qe-Wn||0,Ao=Wn-ci||0,Ta=Dt.useMemo(function(){if(Oe===0||ua===0)return 0;var oa=Oe/ua;return oa*Ao},[Oe,ua,Ao]),Va=function(Lr){Lr.stopPropagation(),Lr.preventDefault()},ts=Dt.useRef({top:Ta,dragging:yr,pageY:Sr,startTop:Vr});ts.current={top:Ta,dragging:yr,pageY:Sr,startTop:Vr};var Zs=function(Lr){Fi(!0),Jr(tc(Lr,On)),Vo(ts.current.top),nn(),Lr.stopPropagation(),Lr.preventDefault()};Dt.useEffect(function(){var oa=function(nl){nl.preventDefault()},Lr=Xo.current,pa=Ur.current;return Lr.addEventListener("touchstart",oa,{passive:!1}),pa.addEventListener("touchstart",Zs,{passive:!1}),function(){Lr.removeEventListener("touchstart",oa),pa.removeEventListener("touchstart",Zs)}},[]);var ys=Dt.useRef();ys.current=ua;var Io=Dt.useRef();Io.current=Ao,Dt.useEffect(function(){if(yr){var oa,Lr=function(nl){var Sl=ts.current,Tl=Sl.dragging,Dl=Sl.pageY,nu=Sl.startTop;tu.cancel(oa);var _r=Xo.current.getBoundingClientRect(),Ol=Wn/(On?_r.width:_r.height);if(Tl){var Oa=(tc(nl,On)-Dl)*Ol,il=nu;!Ba&&On?il-=Oa:il+=Oa;var ul=ys.current,Bs=Io.current,gu=Bs?il/Bs:0,Cl=Math.ceil(gu*ul);Cl=Math.max(Cl,0),Cl=Math.min(Cl,ul),oa=tu(function(){Gn(Cl,On)})}},pa=function(){Fi(!1),Sn()};return window.addEventListener("mousemove",Lr,{passive:!0}),window.addEventListener("touchmove",Lr,{passive:!0}),window.addEventListener("mouseup",pa,{passive:!0}),window.addEventListener("touchend",pa,{passive:!0}),function(){window.removeEventListener("mousemove",Lr),window.removeEventListener("touchmove",Lr),window.removeEventListener("mouseup",pa),window.removeEventListener("touchend",pa),tu.cancel(oa)}}},[yr]),Dt.useEffect(function(){return co(),function(){clearTimeout(ho.current)}},[Oe]),Dt.useImperativeHandle(he,function(){return{delayHidden:co}});var ra="".concat(ve,"-scrollbar"),wa={position:"absolute",visibility:Pr?null:"hidden"},Da={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return On?(wa.height=8,wa.left=0,wa.right=0,wa.bottom=0,Da.height="100%",Da.width=ci,Ba?Da.left=Ta:Da.right=Ta):(wa.width=8,wa.top=0,wa.bottom=0,Ba?wa.right=0:wa.left=0,Da.width="100%",Da.height=ci,Da.top=Ta),Dt.createElement("div",{ref:Xo,className:Fe()(ra,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(ra,"-horizontal"),On),"".concat(ra,"-vertical"),!On),"".concat(ra,"-visible"),Pr)),style:(0,Zt.Z)((0,Zt.Z)({},wa),ri),onMouseDown:Va,onMouseMove:co},Dt.createElement("div",{ref:Ur,className:Fe()("".concat(ra,"-thumb"),(0,Pe.Z)({},"".concat(ra,"-thumb-moving"),yr)),style:(0,Zt.Z)((0,Zt.Z)({},Da),Zn),onMouseDown:Zs}))}),$a=fu,Ho=20;function Ns(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ve=Gt/he*Gt;return isNaN(ve)&&(ve=0),ve=Math.max(ve,Ho),Math.floor(ve)}var Gl=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qa=[],eu={overflowY:"auto",overflowAnchor:"none"};function Us(Gt,he){var ve=Gt.prefixCls,Se=ve===void 0?"rc-virtual-list":ve,Oe=Gt.className,Qe=Gt.height,nn=Gt.itemHeight,Sn=Gt.fullHeight,Gn=Sn===void 0?!0:Sn,On=Gt.style,ci=Gt.data,Wn=Gt.children,ri=Gt.itemKey,Zn=Gt.virtual,Si=Gt.direction,Ii=Gt.scrollWidth,tr=Gt.component,yr=tr===void 0?"div":tr,Fi=Gt.onScroll,Ji=Gt.onVirtualScroll,ji=Gt.onVisibleChange,Sr=Gt.innerProps,Jr=Gt.extraRender,pr=Gt.styles,Ro=Gt.showScrollBar,Vr=Ro===void 0?"optional":Ro,Vo=(0,ao.Z)(Gt,Gl),Ba=Dt.useCallback(function(Nn){return typeof ri=="function"?ri(Nn):Nn==null?void 0:Nn[ri]},[ri]),Xo=Bh(Ba,null,null),Ur=(0,ie.Z)(Xo,4),Qr=Ur[0],zi=Ur[1],Pr=Ur[2],io=Ur[3],ho=!!(Zn!==!1&&Qe&&nn),co=Dt.useMemo(function(){return Object.values(Pr.maps).reduce(function(Nn,Vn){return Nn+Vn},0)},[Pr.id,Pr.maps]),ua=ho&&ci&&(Math.max(nn*ci.length,co)>Qe||!!Ii),Ao=Si==="rtl",Ta=Fe()(Se,(0,Pe.Z)({},"".concat(Se,"-rtl"),Ao),Oe),Va=ci||Qa,ts=(0,Dt.useRef)(),Zs=(0,Dt.useRef)(),ys=(0,Dt.useRef)(),Io=(0,Dt.useState)(0),ra=(0,ie.Z)(Io,2),wa=ra[0],Da=ra[1],oa=(0,Dt.useState)(0),Lr=(0,ie.Z)(oa,2),pa=Lr[0],As=Lr[1],nl=(0,Dt.useState)(!1),Sl=(0,ie.Z)(nl,2),Tl=Sl[0],Dl=Sl[1],nu=function(){Dl(!0)},_r=function(){Dl(!1)},Ol={getKey:Ba};function Oa(Nn){Da(function(Vn){var Rn;typeof Nn=="function"?Rn=Nn(Vn):Rn=Nn;var ei=ph(Rn);return ts.current.scrollTop=ei,ei})}var il=(0,Dt.useRef)({start:0,end:Va.length}),ul=(0,Dt.useRef)(),Bs=hd(Va,Ba),gu=(0,ie.Z)(Bs,1),Cl=gu[0];ul.current=Cl;var Eu=Dt.useMemo(function(){if(!ho)return{scrollHeight:void 0,start:0,end:Va.length-1,offset:void 0};if(!ua){var Nn;return{scrollHeight:((Nn=Zs.current)===null||Nn===void 0?void 0:Nn.offsetHeight)||0,start:0,end:Va.length-1,offset:void 0}}for(var Vn=0,Rn,ei,bi,Mi=Va.length,Ei=0;Ei<Mi;Ei+=1){var pe=Va[Ei],_i=Ba(pe),er=Pr.get(_i),xr=Vn+(er===void 0?nn:er);xr>=wa&&Rn===void 0&&(Rn=Ei,ei=Vn),xr>wa+Qe&&bi===void 0&&(bi=Ei),Vn=xr}return Rn===void 0&&(Rn=0,ei=0,bi=Math.ceil(Qe/nn)),bi===void 0&&(bi=Va.length-1),bi=Math.min(bi+1,Va.length-1),{scrollHeight:Vn,start:Rn,end:bi,offset:ei}},[ua,ho,wa,Va,io,Qe]),ds=Eu.scrollHeight,pu=Eu.start,Gu=Eu.end,Oh=Eu.offset;il.current.start=pu,il.current.end=Gu,Dt.useLayoutEffect(function(){var Nn=Pr.getRecord();if(Nn.size===1){var Vn=Array.from(Nn)[0],Rn=Va[pu];if(Rn){var ei=Ba(Rn);if(ei===Vn){var bi=Pr.get(Vn),Mi=bi-nn;Oa(function(Ei){return Ei+Mi})}}}Pr.resetRecord()},[ds]);var zc=Dt.useState({width:0,height:Qe}),ec=(0,ie.Z)(zc,2),hl=ec[0],nh=ec[1],cl=function(Vn){nh({width:Vn.offsetWidth,height:Vn.offsetHeight})},Lu=(0,Dt.useRef)(),mu=(0,Dt.useRef)(),ih=Dt.useMemo(function(){return Ns(hl.width,Ii)},[hl.width,Ii]),Pc=Dt.useMemo(function(){return Ns(hl.height,ds)},[hl.height,ds]),nc=ds-Qe,jc=(0,Dt.useRef)(nc);jc.current=nc;function ph(Nn){var Vn=Nn;return Number.isNaN(jc.current)||(Vn=Math.min(Vn,jc.current)),Vn=Math.max(Vn,0),Vn}var Mu=wa<=0,ic=wa>=nc,mh=pa<=0,is=pa>=Ii,Al=Ic(Mu,ic,mh,is),Ku=function(){return{x:Ao?-pa:pa,y:wa}},yt=(0,Dt.useRef)(Ku()),Bt=Wa(function(Nn){if(Ji){var Vn=(0,Zt.Z)((0,Zt.Z)({},Ku()),Nn);(yt.current.x!==Vn.x||yt.current.y!==Vn.y)&&(Ji(Vn),yt.current=Vn)}});function Ot(Nn,Vn){var Rn=Nn;Vn?((0,Jt.flushSync)(function(){As(Rn)}),Bt()):Oa(Rn)}function Kt(Nn){var Vn=Nn.currentTarget.scrollTop;Vn!==wa&&Oa(Vn),Fi==null||Fi(Nn),Bt()}var le=function(Vn){var Rn=Vn,ei=Ii?Ii-hl.width:0;return Rn=Math.max(Rn,0),Rn=Math.min(Rn,ei),Rn},Ce=Wa(function(Nn,Vn){Vn?((0,Jt.flushSync)(function(){As(function(Rn){var ei=Rn+(Ao?-Nn:Nn);return le(ei)})}),Bt()):Oa(function(Rn){var ei=Rn+Nn;return ei})}),Ue=Bd(ho,Mu,ic,mh,is,!!Ii,Ce),tn=(0,ie.Z)(Ue,2),wn=tn[0],Bn=tn[1];yc(ho,ts,function(Nn,Vn,Rn,ei){var bi=ei;return Al(Nn,Vn,Rn)?!1:!bi||!bi._virtualHandled?(bi&&(bi._virtualHandled=!0),wn({preventDefault:function(){},deltaX:Nn?Vn:0,deltaY:Nn?0:Vn}),!0):!1}),cs(ua,ts,function(Nn){Oa(function(Vn){return Vn+Nn})}),Fl(function(){function Nn(Rn){var ei=Mu&&Rn.detail<0,bi=ic&&Rn.detail>0;ho&&!ei&&!bi&&Rn.preventDefault()}var Vn=ts.current;return Vn.addEventListener("wheel",wn,{passive:!1}),Vn.addEventListener("DOMMouseScroll",Bn,{passive:!0}),Vn.addEventListener("MozMousePixelScroll",Nn,{passive:!1}),function(){Vn.removeEventListener("wheel",wn),Vn.removeEventListener("DOMMouseScroll",Bn),Vn.removeEventListener("MozMousePixelScroll",Nn)}},[ho,Mu,ic]),Fl(function(){if(Ii){var Nn=le(pa);As(Nn),Bt({x:Nn})}},[hl.width,Ii]);var hn=function(){var Vn,Rn;(Vn=Lu.current)===null||Vn===void 0||Vn.delayHidden(),(Rn=mu.current)===null||Rn===void 0||Rn.delayHidden()},oi=Nl(ts,Va,Pr,nn,Ba,function(){return zi(!0)},Oa,hn);Dt.useImperativeHandle(he,function(){return{nativeElement:ys.current,getScrollInfo:Ku,scrollTo:function(Vn){function Rn(ei){return ei&&(0,_t.Z)(ei)==="object"&&("left"in ei||"top"in ei)}Rn(Vn)?(Vn.left!==void 0&&As(le(Vn.left)),oi(Vn.top)):oi(Vn)}}}),Fl(function(){if(ji){var Nn=Va.slice(pu,Gu+1);ji(Nn,Va)}},[pu,Gu,Va]);var Pi=rr(Va,Ba,Pr,nn),pi=Jr==null?void 0:Jr({start:pu,end:Gu,virtual:ua,offsetX:pa,offsetY:Oh,rtl:Ao,getSize:Pi}),Qn=Is(Va,pu,Gu,Ii,pa,Qr,Wn,Ol),hi=null;Qe&&(hi=(0,Zt.Z)((0,Pe.Z)({},Gn?"height":"maxHeight",Qe),eu),ho&&(hi.overflowY="hidden",Ii&&(hi.overflowX="hidden"),Tl&&(hi.pointerEvents="none")));var si={};return Ao&&(si.dir="rtl"),Dt.createElement("div",(0,ye.Z)({ref:ys,style:(0,Zt.Z)((0,Zt.Z)({},On),{},{position:"relative"}),className:Ta},si,Vo),Dt.createElement(wt.Z,{onResize:cl},Dt.createElement(yr,{className:"".concat(Se,"-holder"),style:hi,ref:ts,onScroll:Kt,onMouseEnter:hn},Dt.createElement(Nd,{prefixCls:Se,height:ds,offsetX:pa,offsetY:Oh,scrollWidth:Ii,onInnerResize:zi,ref:Zs,innerProps:Sr,rtl:Ao,extra:pi},Qn))),ua&&ds>Qe&&Dt.createElement($a,{ref:Lu,prefixCls:Se,scrollOffset:wa,scrollRange:ds,rtl:Ao,onScroll:Ot,onStartMove:nu,onStopMove:_r,spinSize:Pc,containerSize:hl.height,style:pr==null?void 0:pr.verticalScrollBar,thumbStyle:pr==null?void 0:pr.verticalScrollBarThumb,showScrollBar:Vr}),ua&&Ii>hl.width&&Dt.createElement($a,{ref:mu,prefixCls:Se,scrollOffset:pa,scrollRange:Ii,rtl:Ao,onScroll:Ot,onStartMove:nu,onStopMove:_r,spinSize:ih,containerSize:hl.width,horizontal:!0,style:pr==null?void 0:pr.horizontalScrollBar,thumbStyle:pr==null?void 0:pr.horizontalScrollBarThumb,showScrollBar:Vr}))}var ju=Dt.forwardRef(Us);ju.displayName="List";var ma=ju,Bl=ma,na=ue(null),ga=ue(null);function Ka(Gt,he,ve){var Se=he||1;return ve[Gt+Se]-(ve[Gt]||0)}function vs(Gt){var he=Gt.rowInfo,ve=Gt.column,Se=Gt.colIndex,Oe=Gt.indent,Qe=Gt.index,nn=Gt.component,Sn=Gt.renderIndex,Gn=Gt.record,On=Gt.style,ci=Gt.className,Wn=Gt.inverse,ri=Gt.getHeight,Zn=ve.render,Si=ve.dataIndex,Ii=ve.className,tr=ve.width,yr=ce(ga,["columnsOffset"]),Fi=yr.columnsOffset,Ji=We(he,ve,Se,Oe,Qe),ji=Ji.key,Sr=Ji.fixedInfo,Jr=Ji.appendCellNode,pr=Ji.additionalCellProps,Ro=pr.style,Vr=pr.colSpan,Vo=Vr===void 0?1:Vr,Ba=pr.rowSpan,Xo=Ba===void 0?1:Ba,Ur=Se-1,Qr=Ka(Ur,Vo,Fi),zi=Vo>1?tr-Qr:0,Pr=(0,Zt.Z)((0,Zt.Z)((0,Zt.Z)({},Ro),On),{},{flex:"0 0 ".concat(Qr,"px"),width:"".concat(Qr,"px"),marginRight:zi,pointerEvents:"auto"}),io=Dt.useMemo(function(){return Wn?Xo<=1:Vo===0||Xo===0||Xo>1},[Xo,Vo,Wn]);io?Pr.visibility="hidden":Wn&&(Pr.height=ri==null?void 0:ri(Xo));var ho=io?function(){return null}:Zn,co={};return(Xo===0||Vo===0)&&(co.rowSpan=1,co.colSpan=1),Dt.createElement(hr,(0,ye.Z)({className:Fe()(Ii,ci),ellipsis:ve.ellipsis,align:ve.align,scope:ve.rowScope,component:nn,prefixCls:he.prefixCls,key:ji,record:Gn,index:Qe,renderIndex:Sn,dataIndex:Si,render:ho,shouldCellUpdate:ve.shouldCellUpdate},Sr,{appendNode:Jr,additionalProps:(0,Zt.Z)((0,Zt.Z)({},pr),{},{style:Pr},co)}))}var va=vs,xc=["data","index","className","rowKey","style","extra","getHeight"],Nr=Dt.forwardRef(function(Gt,he){var ve=Gt.data,Se=Gt.index,Oe=Gt.className,Qe=Gt.rowKey,nn=Gt.style,Sn=Gt.extra,Gn=Gt.getHeight,On=(0,ao.Z)(Gt,xc),ci=ve.record,Wn=ve.indent,ri=ve.index,Zn=ce(Mt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Si=Zn.scrollX,Ii=Zn.flattenColumns,tr=Zn.prefixCls,yr=Zn.fixColumn,Fi=Zn.componentWidth,Ji=ce(na,["getComponent"]),ji=Ji.getComponent,Sr=Yr(ci,Qe,Se,Wn),Jr=ji(["body","row"],"div"),pr=ji(["body","cell"],"div"),Ro=Sr.rowSupportExpand,Vr=Sr.expanded,Vo=Sr.rowProps,Ba=Sr.expandedRowRender,Xo=Sr.expandedRowClassName,Ur;if(Ro&&Vr){var Qr=Ba(ci,Se,Wn+1,Vr),zi=qa(Xo,ci,Se,Wn),Pr={};yr&&(Pr={style:(0,Pe.Z)({},"--virtual-width","".concat(Fi,"px"))});var io="".concat(tr,"-expanded-row-cell");Ur=Dt.createElement(Jr,{className:Fe()("".concat(tr,"-expanded-row"),"".concat(tr,"-expanded-row-level-").concat(Wn+1),zi)},Dt.createElement(hr,{component:pr,prefixCls:tr,className:Fe()(io,(0,Pe.Z)({},"".concat(io,"-fixed"),yr)),additionalProps:Pr},Qr))}var ho=(0,Zt.Z)((0,Zt.Z)({},nn),{},{width:Si});Sn&&(ho.position="absolute",ho.pointerEvents="none");var co=Dt.createElement(Jr,(0,ye.Z)({},Vo,On,{"data-row-key":Qe,ref:Ro?null:he,className:Fe()(Oe,"".concat(tr,"-row"),Vo==null?void 0:Vo.className,(0,Pe.Z)({},"".concat(tr,"-row-extra"),Sn)),style:(0,Zt.Z)((0,Zt.Z)({},ho),Vo==null?void 0:Vo.style)}),Ii.map(function(ua,Ao){return Dt.createElement(va,{key:Ao,component:pr,rowInfo:Sr,column:ua,colIndex:Ao,indent:Wn,index:Se,renderIndex:ri,record:ci,inverse:Sn,getHeight:Gn})}));return Ro?Dt.createElement("div",{ref:he},co,Ur):co}),Th=gt(Nr),ia=Th,zf=Dt.forwardRef(function(Gt,he){var ve=Gt.data,Se=Gt.onScroll,Oe=ce(Mt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Qe=Oe.flattenColumns,nn=Oe.onColumnResize,Sn=Oe.getRowKey,Gn=Oe.expandedKeys,On=Oe.prefixCls,ci=Oe.childrenColumnName,Wn=Oe.scrollX,ri=Oe.direction,Zn=ce(na),Si=Zn.sticky,Ii=Zn.scrollY,tr=Zn.listItemHeight,yr=Zn.getComponent,Fi=Zn.onScroll,Ji=Dt.useRef(),ji=to(ve,ci,Gn,Sn),Sr=Dt.useMemo(function(){var Ur=0;return Qe.map(function(Qr){var zi=Qr.width,Pr=Qr.key;return Ur+=zi,[Pr,zi,Ur]})},[Qe]),Jr=Dt.useMemo(function(){return Sr.map(function(Ur){return Ur[2]})},[Sr]);Dt.useEffect(function(){Sr.forEach(function(Ur){var Qr=(0,ie.Z)(Ur,2),zi=Qr[0],Pr=Qr[1];nn(zi,Pr)})},[Sr]),Dt.useImperativeHandle(he,function(){var Ur,Qr={scrollTo:function(Pr){var io;(io=Ji.current)===null||io===void 0||io.scrollTo(Pr)},nativeElement:(Ur=Ji.current)===null||Ur===void 0?void 0:Ur.nativeElement};return Object.defineProperty(Qr,"scrollLeft",{get:function(){var Pr;return((Pr=Ji.current)===null||Pr===void 0?void 0:Pr.getScrollInfo().x)||0},set:function(Pr){var io;(io=Ji.current)===null||io===void 0||io.scrollTo({left:Pr})}}),Qr});var pr=function(Qr,zi){var Pr,io=(Pr=ji[zi])===null||Pr===void 0?void 0:Pr.record,ho=Qr.onCell;if(ho){var co,ua=ho(io,zi);return(co=ua==null?void 0:ua.rowSpan)!==null&&co!==void 0?co:1}return 1},Ro=function(Qr){var zi=Qr.start,Pr=Qr.end,io=Qr.getSize,ho=Qr.offsetY;if(Pr<0)return null;for(var co=Qe.filter(function(oa){return pr(oa,zi)===0}),ua=zi,Ao=function(Lr){if(co=co.filter(function(pa){return pr(pa,Lr)===0}),!co.length)return ua=Lr,1},Ta=zi;Ta>=0&&!Ao(Ta);Ta-=1);for(var Va=Qe.filter(function(oa){return pr(oa,Pr)!==1}),ts=Pr,Zs=function(Lr){if(Va=Va.filter(function(pa){return pr(pa,Lr)!==1}),!Va.length)return ts=Math.max(Lr-1,Pr),1},ys=Pr;ys<ji.length&&!Zs(ys);ys+=1);for(var Io=[],ra=function(Lr){var pa=ji[Lr];if(!pa)return 1;Qe.some(function(As){return pr(As,Lr)>1})&&Io.push(Lr)},wa=ua;wa<=ts;wa+=1)ra(wa);var Da=Io.map(function(oa){var Lr=ji[oa],pa=Sn(Lr.record,oa),As=function(Tl){var Dl=oa+Tl-1,nu=Sn(ji[Dl].record,Dl),_r=io(pa,nu);return _r.bottom-_r.top},nl=io(pa);return Dt.createElement(ia,{key:oa,data:Lr,rowKey:pa,index:oa,style:{top:-ho+nl.top},extra:!0,getHeight:As})});return Da},Vr=Dt.useMemo(function(){return{columnsOffset:Jr}},[Jr]),Vo="".concat(On,"-tbody"),Ba=yr(["body","wrapper"]),Xo={};return Si&&(Xo.position="sticky",Xo.bottom=0,(0,_t.Z)(Si)==="object"&&Si.offsetScroll&&(Xo.bottom=Si.offsetScroll)),Dt.createElement(ga.Provider,{value:Vr},Dt.createElement(Bl,{fullHeight:!1,ref:Ji,prefixCls:"".concat(Vo,"-virtual"),styles:{horizontalScrollBar:Xo},className:Vo,height:Ii,itemHeight:tr||24,data:ji,itemKey:function(Qr){return Sn(Qr.record)},component:Ba,scrollWidth:Wn,direction:ri,onVirtualScroll:function(Qr){var zi,Pr=Qr.x;Se({currentTarget:(zi=Ji.current)===null||zi===void 0?void 0:zi.nativeElement,scrollLeft:Pr})},onScroll:Fi,extraRender:Ro},function(Ur,Qr,zi){var Pr=Sn(Ur.record,Qr);return Dt.createElement(ia,{data:Ur,rowKey:Pr,index:Qr,style:zi.style})}))}),wc=gt(zf),dd=wc,ff=function(he,ve){var Se=ve.ref,Oe=ve.onScroll;return Dt.createElement(dd,{ref:Se,data:he,onScroll:Oe})};function Wu(Gt,he){var ve=Gt.data,Se=Gt.columns,Oe=Gt.scroll,Qe=Gt.sticky,nn=Gt.prefixCls,Sn=nn===void 0?kh:nn,Gn=Gt.className,On=Gt.listItemHeight,ci=Gt.components,Wn=Gt.onScroll,ri=Oe||{},Zn=ri.x,Si=ri.y;typeof Zn!="number"&&(Zn=1),typeof Si!="number"&&(Si=500);var Ii=fe(function(Fi,Ji){return cn(ci,Fi)||Ji}),tr=fe(Wn),yr=Dt.useMemo(function(){return{sticky:Qe,scrollY:Si,listItemHeight:On,getComponent:Ii,onScroll:tr}},[Qe,Si,On,Ii,tr]);return Dt.createElement(na.Provider,{value:yr},Dt.createElement(Oo,(0,ye.Z)({},Gt,{className:Fe()(Gn,"".concat(Sn,"-virtual")),scroll:(0,Zt.Z)((0,Zt.Z)({},Oe),{},{x:Zn}),components:(0,Zt.Z)((0,Zt.Z)({},ci),{},{body:ve!=null&&ve.length?ff:void 0}),columns:Se,internalHooks:Lt.R,tailor:!0,ref:he})))}var Dh=Dt.forwardRef(Wu);function Hu(Gt){return lt(Dh,Gt)}var xa=Hu(),eh=null},62978:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{g:function(){return Dt},v:function(){return Ae}});var Lt=Ft(1413),ie=Ft(45987),Be=Ft(40830),Ne=["expandable"],Ae="RC_TABLE_INTERNAL_COL_DEFINE";function Dt(Jt){var ue=Jt.expandable,ce=(0,ie.Z)(Jt,Ne),ye;return"expandable"in Jt?ye=(0,Lt.Z)((0,Lt.Z)({},ce),ue):ye=ce,ye.showExpandColumn===!1&&(ye.expandIconColumnIndex=-1),ye}},63295:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Ae}});var Lt=Ft(71002),ie=Symbol.for("react.element"),Be=Symbol.for("react.transitional.element"),Ne=Symbol.for("react.fragment");function Ae(Dt){return Dt&&(0,Lt.Z)(Dt)==="object"&&(Dt.$$typeof===ie||Dt.$$typeof===Be)&&Dt.type===Ne}},40830:function(Pn,Hn,Ft){"use strict";var Lt={},ie=[],Be=function(Je){ie.push(Je)};function Ne(ye,Je){if(0)var de}function Ae(ye,Je){if(0)var de}function Dt(){Lt={}}function Jt(ye,Je,de){!Je&&!Lt[de]&&(ye(!1,de),Lt[de]=!0)}function ue(ye,Je){Jt(Ne,ye,Je)}function ce(ye,Je){Jt(Ae,ye,Je)}ue.preMessage=Be,ue.resetWarned=Dt,ue.noteOnce=ce,Hn.ZP=ue},46762:function(Pn,Hn){"use strict";var Ft;var Lt=Symbol.for("react.element"),ie=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ae=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),Jt=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),ce=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Nt=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 Lt:switch(ht=ht.type,ht){case Be:case Ae:case Ne:case ye:case Je:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Jt:case ce:case It:case de:case Dt:return ht;default:return lt}}case ie:return lt}}}Ft=Jt,Ft=Dt,Ft=Lt,Ft=ce,Ft=Be,Ft=It,Ft=de,Ft=ie,Ft=Ae,Ft=Ne,Ft=ye,Ft=Je,Ft=function(){return!1},Ft=function(){return!1},Ft=function(ht){return et(ht)===Jt},Ft=function(ht){return et(ht)===Dt},Ft=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Lt},Ft=function(ht){return et(ht)===ce},Ft=function(ht){return et(ht)===Be},Ft=function(ht){return et(ht)===It},Ft=function(ht){return et(ht)===de},Ft=function(ht){return et(ht)===ie},Ft=function(ht){return et(ht)===Ae},Ft=function(ht){return et(ht)===Ne},Ft=function(ht){return et(ht)===ye},Ft=function(ht){return et(ht)===Je},Ft=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Be||ht===Ae||ht===Ne||ht===ye||ht===Je||ht===Nt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===It||ht.$$typeof===de||ht.$$typeof===Dt||ht.$$typeof===Jt||ht.$$typeof===ce||ht.$$typeof===nt||ht.getModuleId!==void 0)},Ft=et},35110:function(Pn,Hn,Ft){"use strict";Ft(46762)},86128:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return mt}});var Lt=Ft(87462),ie=Ft(4942),Be=Ft(1413),Ne=Ft(97685),Ae=Ft(45987),Dt=Ft(67294),Jt=Ft(94184),ue=Ft.n(Jt),ce=Ft(64217),ye=Ft(27822),Je=function(Mt){for(var zt=Mt.prefixCls,qt=Mt.level,re=Mt.isStart,_t=Mt.isEnd,Zt="".concat(zt,"-indent-unit"),Pe=[],ge=0;ge<qt;ge+=1)Pe.push(Dt.createElement("span",{key:ge,className:ue()(Zt,(0,ie.Z)((0,ie.Z)({},"".concat(Zt,"-start"),re[ge]),"".concat(Zt,"-end"),_t[ge]))}));return Dt.createElement("span",{"aria-hidden":"true",className:"".concat(zt,"-indent")},Pe)},de=Dt.memo(Je),It=Ft(35381),Nt=Ft(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(Mt){var zt,qt,re,_t=Mt.eventKey,Zt=Mt.className,Pe=Mt.style,ge=Mt.dragOver,Fe=Mt.dragOverGapTop,He=Mt.dragOverGapBottom,Ie=Mt.isLeaf,In=Mt.isStart,bn=Mt.isEnd,cn=Mt.expanded,Xn=Mt.selected,$t=Mt.checked,jt=Mt.halfChecked,Ee=Mt.loading,sn=Mt.domRef,Tn=Mt.active,Le=Mt.data,gn=Mt.onMouseMove,$e=Mt.selectable,Fn=(0,Ae.Z)(Mt,nt),ke=Dt.useContext(ye.k),fe=Dt.useContext(ye.y),Re=Dt.useRef(null),dn=Dt.useState(!1),Te=(0,Ne.Z)(dn,2),Ht=Te[0],At=Te[1],Ct=!!(ke.disabled||Mt.disabled||(zt=fe.nodeDisabled)!==null&&zt!==void 0&&zt.call(fe,Le)),Tt=Dt.useMemo(function(){return!ke.checkable||Mt.checkable===!1?!1:ke.checkable},[ke.checkable,Mt.checkable]),Xt=function(Ye){Ct||ke.onNodeSelect(Ye,(0,Nt.F)(Mt))},kt=function(Ye){Ct||!Tt||Mt.disableCheckbox||ke.onNodeCheck(Ye,(0,Nt.F)(Mt),!$t)},ee=Dt.useMemo(function(){return typeof $e=="boolean"?$e:ke.selectable},[$e,ke.selectable]),rn=function(Ye){ke.onNodeClick(Ye,(0,Nt.F)(Mt)),ee?Xt(Ye):kt(Ye)},on=function(Ye){ke.onNodeDoubleClick(Ye,(0,Nt.F)(Mt))},Un=function(Ye){ke.onNodeMouseEnter(Ye,(0,Nt.F)(Mt))},en=function(Ye){ke.onNodeMouseLeave(Ye,(0,Nt.F)(Mt))},Mn=function(Ye){ke.onNodeContextMenu(Ye,(0,Nt.F)(Mt))},Ke=Dt.useMemo(function(){return!!(ke.draggable&&(!ke.draggable.nodeDraggable||ke.draggable.nodeDraggable(Le)))},[ke.draggable,Le]),jn=function(Ye){Ye.stopPropagation(),At(!0),ke.onNodeDragStart(Ye,Mt);try{Ye.dataTransfer.setData("text/plain","")}catch(xn){}},ni=function(Ye){Ye.preventDefault(),Ye.stopPropagation(),ke.onNodeDragEnter(Ye,Mt)},Oi=function(Ye){Ye.preventDefault(),Ye.stopPropagation(),ke.onNodeDragOver(Ye,Mt)},$n=function(Ye){Ye.stopPropagation(),ke.onNodeDragLeave(Ye,Mt)},Ai=function(Ye){Ye.stopPropagation(),At(!1),ke.onNodeDragEnd(Ye,Mt)},Ki=function(Ye){Ye.preventDefault(),Ye.stopPropagation(),At(!1),ke.onNodeDrop(Ye,Mt)},ii=function(Ye){Ee||ke.onNodeExpand(Ye,(0,Nt.F)(Mt))},mi=Dt.useMemo(function(){var Ve=(0,It.Z)(ke.keyEntities,_t)||{},Ye=Ve.children;return!!(Ye||[]).length},[ke.keyEntities,_t]),di=Dt.useMemo(function(){return Ie===!1?!1:Ie||!ke.loadData&&!mi||ke.loadData&&Mt.loaded&&!mi},[Ie,ke.loadData,mi,Mt.loaded]);Dt.useEffect(function(){Ee||typeof ke.loadData=="function"&&cn&&!di&&!Mt.loaded&&ke.onNodeLoad((0,Nt.F)(Mt))},[Ee,ke.loadData,ke.onNodeLoad,cn,di,Mt]);var gi=Dt.useMemo(function(){var Ve;return(Ve=ke.draggable)!==null&&Ve!==void 0&&Ve.icon?Dt.createElement("span",{className:"".concat(ke.prefixCls,"-draggable-icon")},ke.draggable.icon):null},[ke.draggable]),hr=function(Ye){var xn=Mt.switcherIcon||ke.switcherIcon;return typeof xn=="function"?xn((0,Be.Z)((0,Be.Z)({},Mt),{},{isLeaf:Ye})):xn},Or=function(){if(di){var Ye=hr(!0);return Ye!==!1?Dt.createElement("span",{className:ue()("".concat(ke.prefixCls,"-switcher"),"".concat(ke.prefixCls,"-switcher-noop"))},Ye):null}var xn=hr(!1);return xn!==!1?Dt.createElement("span",{onClick:ii,className:ue()("".concat(ke.prefixCls,"-switcher"),"".concat(ke.prefixCls,"-switcher_").concat(cn?et:ht))},xn):null},sr=Dt.useMemo(function(){if(!Tt)return null;var Ve=typeof Tt!="boolean"?Tt:null;return Dt.createElement("span",{className:ue()("".concat(ke.prefixCls,"-checkbox"),(0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(ke.prefixCls,"-checkbox-checked"),$t),"".concat(ke.prefixCls,"-checkbox-indeterminate"),!$t&&jt),"".concat(ke.prefixCls,"-checkbox-disabled"),Ct||Mt.disableCheckbox)),onClick:kt,role:"checkbox","aria-checked":jt?"mixed":$t,"aria-disabled":Ct||Mt.disableCheckbox,"aria-label":"Select ".concat(typeof Mt.title=="string"?Mt.title:"tree node")},Ve)},[Tt,$t,jt,Ct,Mt.disableCheckbox,Mt.title]),Di=Dt.useMemo(function(){return di?null:cn?et:ht},[di,cn]),jr=Dt.useMemo(function(){return Dt.createElement("span",{className:ue()("".concat(ke.prefixCls,"-iconEle"),"".concat(ke.prefixCls,"-icon__").concat(Di||"docu"),(0,ie.Z)({},"".concat(ke.prefixCls,"-icon_loading"),Ee))})},[ke.prefixCls,Di,Ee]),ao=Dt.useMemo(function(){var Ve=!!ke.draggable,Ye=!Mt.disabled&&Ve&&ke.dragOverNodeKey===_t;return Ye?ke.dropIndicatorRender({dropPosition:ke.dropPosition,dropLevelOffset:ke.dropLevelOffset,indent:ke.indent,prefixCls:ke.prefixCls,direction:ke.direction}):null},[ke.dropPosition,ke.dropLevelOffset,ke.indent,ke.prefixCls,ke.direction,ke.draggable,ke.dragOverNodeKey,ke.dropIndicatorRender]),fa=Dt.useMemo(function(){var Ve=Mt.title,Ye=Ve===void 0?lt:Ve,xn="".concat(ke.prefixCls,"-node-content-wrapper"),fn;if(ke.showIcon){var ln=Mt.icon||ke.icon;fn=ln?Dt.createElement("span",{className:ue()("".concat(ke.prefixCls,"-iconEle"),"".concat(ke.prefixCls,"-icon__customize"))},typeof ln=="function"?ln(Mt):ln):jr}else ke.loadData&&Ee&&(fn=jr);var Yn;return typeof Ye=="function"?Yn=Ye(Le):ke.titleRender?Yn=ke.titleRender(Le):Yn=Ye,Dt.createElement("span",{ref:Re,title:typeof Ye=="string"?Ye:"",className:ue()(xn,"".concat(xn,"-").concat(Di||"normal"),(0,ie.Z)({},"".concat(ke.prefixCls,"-node-selected"),!Ct&&(Xn||Ht))),onMouseEnter:Un,onMouseLeave:en,onContextMenu:Mn,onClick:rn,onDoubleClick:on},fn,Dt.createElement("span",{className:"".concat(ke.prefixCls,"-title")},Yn),ao)},[ke.prefixCls,ke.showIcon,Mt,ke.icon,jr,ke.titleRender,Le,Di,Un,en,Mn,rn,on]),_o=(0,ce.Z)(Fn,{aria:!0,data:!0}),ta=(0,It.Z)(ke.keyEntities,_t)||{},Ga=ta.level,zo=bn[bn.length-1],gr=!Ct&&Ke,vn=ke.draggingNodeKey===_t,wt=$e!==void 0?{"aria-selected":!!$e}:void 0;return Dt.createElement("div",(0,Lt.Z)({ref:sn,role:"treeitem","aria-expanded":Ie?void 0:cn,className:ue()(Zt,"".concat(ke.prefixCls,"-treenode"),(re={},(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(re,"".concat(ke.prefixCls,"-treenode-disabled"),Ct),"".concat(ke.prefixCls,"-treenode-switcher-").concat(cn?"open":"close"),!Ie),"".concat(ke.prefixCls,"-treenode-checkbox-checked"),$t),"".concat(ke.prefixCls,"-treenode-checkbox-indeterminate"),jt),"".concat(ke.prefixCls,"-treenode-selected"),Xn),"".concat(ke.prefixCls,"-treenode-loading"),Ee),"".concat(ke.prefixCls,"-treenode-active"),Tn),"".concat(ke.prefixCls,"-treenode-leaf-last"),zo),"".concat(ke.prefixCls,"-treenode-draggable"),Ke),"dragging",vn),(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(re,"drop-target",ke.dropTargetKey===_t),"drop-container",ke.dropContainerKey===_t),"drag-over",!Ct&&ge),"drag-over-gap-top",!Ct&&Fe),"drag-over-gap-bottom",!Ct&&He),"filter-node",(qt=ke.filterTreeNode)===null||qt===void 0?void 0:qt.call(ke,(0,Nt.F)(Mt))),"".concat(ke.prefixCls,"-treenode-leaf"),di))),style:Pe,draggable:gr,onDragStart:gr?jn:void 0,onDragEnter:Ke?ni:void 0,onDragOver:Ke?Oi:void 0,onDragLeave:Ke?$n:void 0,onDrop:Ke?Ki:void 0,onDragEnd:Ke?Ai:void 0,onMouseMove:gn},wt,_o),Dt.createElement(de,{prefixCls:ke.prefixCls,level:Ga,isStart:In,isEnd:bn}),gi,Or(),sr,fa)};gt.isTreeNode=1;var mt=gt},27822:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{k:function(){return ie},y:function(){return Be}});var Lt=Ft(67294),ie=Lt.createContext(null),Be=Lt.createContext({})},70593:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{OF:function(){return _t.Z},y6:function(){return ht.y},ZP:function(){return Ct}});var Lt=Ft(87462),ie=Ft(71002),Be=Ft(1413),Ne=Ft(74902),Ae=Ft(15671),Dt=Ft(43144),Jt=Ft(97326),ue=Ft(60136),ce=Ft(29388),ye=Ft(4942),Je=Ft(94184),de=Ft.n(Je),It=Ft(15105),Nt=Ft(64217),nt=Ft(80334),et=Ft(67294),ht=Ft(27822),lt=function(Xt){var kt=Xt.dropPosition,ee=Xt.dropLevelOffset,rn=Xt.indent,on={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kt){case-1:on.top=0,on.left=-ee*rn;break;case 1:on.bottom=0,on.left=-ee*rn;break;case 0:on.bottom=0,on.left=rn;break}return et.createElement("div",{style:on})},gt=lt;function mt(Tt){if(Tt==null)throw new TypeError("Cannot destructure "+Tt)}var St=Ft(97685),Mt=Ft(45987),zt=Ft(8410),qt=Ft(73299),re=Ft(62874),_t=Ft(86128);function Zt(Tt,Xt){var kt=et.useState(!1),ee=(0,St.Z)(kt,2),rn=ee[0],on=ee[1];(0,zt.Z)(function(){if(rn)return Tt(),function(){Xt()}},[rn]),(0,zt.Z)(function(){return on(!0),function(){on(!1)}},[])}var Pe=Zt,ge=Ft(1089),Fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],He=et.forwardRef(function(Tt,Xt){var kt=Tt.className,ee=Tt.style,rn=Tt.motion,on=Tt.motionNodes,Un=Tt.motionType,en=Tt.onMotionStart,Mn=Tt.onMotionEnd,Ke=Tt.active,jn=Tt.treeNodeRequiredProps,ni=(0,Mt.Z)(Tt,Fe),Oi=et.useState(!0),$n=(0,St.Z)(Oi,2),Ai=$n[0],Ki=$n[1],ii=et.useContext(ht.k),mi=ii.prefixCls,di=on&&Un!=="hide";(0,zt.Z)(function(){on&&di!==Ai&&Ki(di)},[on]);var gi=function(){on&&en()},hr=et.useRef(!1),Or=function(){on&&!hr.current&&(hr.current=!0,Mn())};Pe(gi,Or);var sr=function(jr){di===jr&&Or()};return on?et.createElement(re.Z,(0,Lt.Z)({ref:Xt,visible:Ai},rn,{motionAppear:Un==="show",onVisibleChanged:sr}),function(Di,jr){var ao=Di.className,fa=Di.style;return et.createElement("div",{ref:jr,className:de()("".concat(mi,"-treenode-motion"),ao),style:fa},on.map(function(_o){var ta=Object.assign({},(mt(_o.data),_o.data)),Ga=_o.title,zo=_o.key,gr=_o.isStart,vn=_o.isEnd;delete ta.children;var wt=(0,ge.H8)(zo,jn);return et.createElement(_t.Z,(0,Lt.Z)({},ta,wt,{title:Ga,active:Ke,data:_o.data,key:zo,isStart:gr,isEnd:vn}))}))}):et.createElement(_t.Z,(0,Lt.Z)({domRef:Xt,className:kt,style:ee},ni,{active:Ke}))}),Ie=He;function In(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=Tt.length,ee=Xt.length;if(Math.abs(kt-ee)!==1)return{add:!1,key:null};function rn(on,Un){var en=new Map;on.forEach(function(Ke){en.set(Ke,!0)});var Mn=Un.filter(function(Ke){return!en.has(Ke)});return Mn.length===1?Mn[0]:null}return kt<ee?{add:!0,key:rn(Tt,Xt)}:{add:!1,key:rn(Xt,Tt)}}function bn(Tt,Xt,kt){var ee=Tt.findIndex(function(en){return en.key===kt}),rn=Tt[ee+1],on=Xt.findIndex(function(en){return en.key===kt});if(rn){var Un=Xt.findIndex(function(en){return en.key===rn.key});return Xt.slice(on+1,Un)}return Xt.slice(on+1)}var cn=["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"],Xn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},$t=function(){},jt="RC_TREE_MOTION_".concat(Math.random()),Ee={key:jt},sn={key:jt,level:0,index:0,pos:"0",node:Ee,nodes:[Ee]},Tn={parent:null,children:[],pos:sn.pos,data:Ee,title:null,key:jt,isStart:[],isEnd:[]};function Le(Tt,Xt,kt,ee){return Xt===!1||!kt?Tt:Tt.slice(0,Math.ceil(kt/ee)+1)}function gn(Tt){var Xt=Tt.key,kt=Tt.pos;return(0,ge.km)(Xt,kt)}function $e(Tt){for(var Xt=String(Tt.data.key),kt=Tt;kt.parent;)kt=kt.parent,Xt="".concat(kt.data.key," > ").concat(Xt);return Xt}var Fn=et.forwardRef(function(Tt,Xt){var kt=Tt.prefixCls,ee=Tt.data,rn=Tt.selectable,on=Tt.checkable,Un=Tt.expandedKeys,en=Tt.selectedKeys,Mn=Tt.checkedKeys,Ke=Tt.loadedKeys,jn=Tt.loadingKeys,ni=Tt.halfCheckedKeys,Oi=Tt.keyEntities,$n=Tt.disabled,Ai=Tt.dragging,Ki=Tt.dragOverNodeKey,ii=Tt.dropPosition,mi=Tt.motion,di=Tt.height,gi=Tt.itemHeight,hr=Tt.virtual,Or=Tt.scrollWidth,sr=Tt.focusable,Di=Tt.activeItem,jr=Tt.focused,ao=Tt.tabIndex,fa=Tt.onKeyDown,_o=Tt.onFocus,ta=Tt.onBlur,Ga=Tt.onActiveChange,zo=Tt.onListChangeStart,gr=Tt.onListChangeEnd,vn=(0,Mt.Z)(Tt,cn),wt=et.useRef(null),Ve=et.useRef(null);et.useImperativeHandle(Xt,function(){return{scrollTo:function(Sa){wt.current.scrollTo(Sa)},getIndentWidth:function(){return Ve.current.offsetWidth}}});var Ye=et.useState(Un),xn=(0,St.Z)(Ye,2),fn=xn[0],ln=xn[1],Yn=et.useState(ee),Li=(0,St.Z)(Yn,2),Ge=Li[0],je=Li[1],we=et.useState(ee),Ze=(0,St.Z)(we,2),ai=Ze[0],ui=Ze[1],qn=et.useState([]),ze=(0,St.Z)(qn,2),yn=ze[0],Ni=ze[1],Yi=et.useState(null),Dn=(0,St.Z)(Yi,2),De=Dn[0],xi=Dn[1],Ui=et.useRef(ee);Ui.current=ee;function Tr(){var ro=Ui.current;je(ro),ui(ro),Ni([]),xi(null),gr()}(0,zt.Z)(function(){ln(Un);var ro=In(fn,Un);if(ro.key!==null)if(ro.add){var Sa=Ge.findIndex(function(Yr){var ti=Yr.key;return ti===ro.key}),bo=Le(bn(Ge,ee,ro.key),hr,di,gi),ki=Ge.slice();ki.splice(Sa+1,0,Tn),ui(ki),Ni(bo),xi("show")}else{var Bi=ee.findIndex(function(Yr){var ti=Yr.key;return ti===ro.key}),Hi=Le(bn(ee,Ge,ro.key),hr,di,gi),to=ee.slice();to.splice(Bi+1,0,Tn),ui(to),Ni(Hi),xi("hide")}else Ge!==ee&&(je(ee),ui(ee))},[Un,ee]),et.useEffect(function(){Ai||Tr()},[Ai]);var Cn=mi?ai:ee,Ri={expandedKeys:Un,selectedKeys:en,loadedKeys:Ke,loadingKeys:jn,checkedKeys:Mn,halfCheckedKeys:ni,dragOverNodeKey:Ki,dropPosition:ii,keyEntities:Oi};return et.createElement(et.Fragment,null,jr&&Di&&et.createElement("span",{style:Xn,"aria-live":"assertive"},$e(Di)),et.createElement("div",null,et.createElement("input",{style:Xn,disabled:sr===!1||$n,tabIndex:sr!==!1?ao:null,onKeyDown:fa,onFocus:_o,onBlur:ta,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:Ve,className:"".concat(kt,"-indent-unit")}))),et.createElement(qt.Z,(0,Lt.Z)({},vn,{data:Cn,itemKey:gn,height:di,fullHeight:!1,virtual:hr,itemHeight:gi,scrollWidth:Or,prefixCls:"".concat(kt,"-list"),ref:wt,role:"tree",onVisibleChange:function(Sa){Sa.every(function(bo){return gn(bo)!==jt})&&Tr()}}),function(ro){var Sa=ro.pos,bo=Object.assign({},(mt(ro.data),ro.data)),ki=ro.title,Bi=ro.key,Hi=ro.isStart,to=ro.isEnd,Yr=(0,ge.km)(Bi,Sa);delete bo.key,delete bo.children;var ti=(0,ge.H8)(Yr,Ri);return et.createElement(Ie,(0,Lt.Z)({},bo,ti,{title:ki,active:!!Di&&Bi===Di.key,pos:Sa,data:ro.data,isStart:Hi,isEnd:to,motion:mi,motionNodes:Bi===jt?yn:null,motionType:De,onMotionStart:zo,onMotionEnd:Tr,treeNodeRequiredProps:Ri,onMouseMove:function(){Ga(null)}}))}))}),ke=Fn,fe=Ft(10225),Re=Ft(17341),dn=Ft(35381),Te=10,Ht=function(Tt){(0,ue.Z)(kt,Tt);var Xt=(0,ce.Z)(kt);function kt(){var ee;(0,Ae.Z)(this,kt);for(var rn=arguments.length,on=new Array(rn),Un=0;Un<rn;Un++)on[Un]=arguments[Un];return ee=Xt.call.apply(Xt,[this].concat(on)),(0,ye.Z)((0,Jt.Z)(ee),"destroyed",!1),(0,ye.Z)((0,Jt.Z)(ee),"delayedDragEnterLogic",void 0),(0,ye.Z)((0,Jt.Z)(ee),"loadingRetryTimes",{}),(0,ye.Z)((0,Jt.Z)(ee),"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,ge.w$)()}),(0,ye.Z)((0,Jt.Z)(ee),"dragStartMousePosition",null),(0,ye.Z)((0,Jt.Z)(ee),"dragNodeProps",null),(0,ye.Z)((0,Jt.Z)(ee),"currentMouseOverDroppableNodeKey",null),(0,ye.Z)((0,Jt.Z)(ee),"listRef",et.createRef()),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDragStart",function(en,Mn){var Ke=ee.state,jn=Ke.expandedKeys,ni=Ke.keyEntities,Oi=ee.props.onDragStart,$n=Mn.eventKey;ee.dragNodeProps=Mn,ee.dragStartMousePosition={x:en.clientX,y:en.clientY};var Ai=(0,fe._5)(jn,$n);ee.setState({draggingNodeKey:$n,dragChildrenKeys:(0,fe.wA)($n,ni),indent:ee.listRef.current.getIndentWidth()}),ee.setExpandedKeys(Ai),window.addEventListener("dragend",ee.onWindowDragEnd),Oi==null||Oi({event:en,node:(0,ge.F)(Mn)})}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDragEnter",function(en,Mn){var Ke=ee.state,jn=Ke.expandedKeys,ni=Ke.keyEntities,Oi=Ke.dragChildrenKeys,$n=Ke.flattenNodes,Ai=Ke.indent,Ki=ee.props,ii=Ki.onDragEnter,mi=Ki.onExpand,di=Ki.allowDrop,gi=Ki.direction,hr=Mn.pos,Or=Mn.eventKey;if(ee.currentMouseOverDroppableNodeKey!==Or&&(ee.currentMouseOverDroppableNodeKey=Or),!ee.dragNodeProps){ee.resetDragState();return}var sr=(0,fe.OM)(en,ee.dragNodeProps,Mn,Ai,ee.dragStartMousePosition,di,$n,ni,jn,gi),Di=sr.dropPosition,jr=sr.dropLevelOffset,ao=sr.dropTargetKey,fa=sr.dropContainerKey,_o=sr.dropTargetPos,ta=sr.dropAllowed,Ga=sr.dragOverNodeKey;if(Oi.includes(ao)||!ta){ee.resetDragState();return}if(ee.delayedDragEnterLogic||(ee.delayedDragEnterLogic={}),Object.keys(ee.delayedDragEnterLogic).forEach(function(zo){clearTimeout(ee.delayedDragEnterLogic[zo])}),ee.dragNodeProps.eventKey!==Mn.eventKey&&(en.persist(),ee.delayedDragEnterLogic[hr]=window.setTimeout(function(){if(ee.state.draggingNodeKey!==null){var zo=(0,Ne.Z)(jn),gr=(0,dn.Z)(ni,Mn.eventKey);gr&&(gr.children||[]).length&&(zo=(0,fe.L0)(jn,Mn.eventKey)),ee.props.hasOwnProperty("expandedKeys")||ee.setExpandedKeys(zo),mi==null||mi(zo,{node:(0,ge.F)(Mn),expanded:!0,nativeEvent:en.nativeEvent})}},800)),ee.dragNodeProps.eventKey===ao&&jr===0){ee.resetDragState();return}ee.setState({dragOverNodeKey:Ga,dropPosition:Di,dropLevelOffset:jr,dropTargetKey:ao,dropContainerKey:fa,dropTargetPos:_o,dropAllowed:ta}),ii==null||ii({event:en,node:(0,ge.F)(Mn),expandedKeys:jn})}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDragOver",function(en,Mn){var Ke=ee.state,jn=Ke.dragChildrenKeys,ni=Ke.flattenNodes,Oi=Ke.keyEntities,$n=Ke.expandedKeys,Ai=Ke.indent,Ki=ee.props,ii=Ki.onDragOver,mi=Ki.allowDrop,di=Ki.direction;if(ee.dragNodeProps){var gi=(0,fe.OM)(en,ee.dragNodeProps,Mn,Ai,ee.dragStartMousePosition,mi,ni,Oi,$n,di),hr=gi.dropPosition,Or=gi.dropLevelOffset,sr=gi.dropTargetKey,Di=gi.dropContainerKey,jr=gi.dropTargetPos,ao=gi.dropAllowed,fa=gi.dragOverNodeKey;jn.includes(sr)||!ao||(ee.dragNodeProps.eventKey===sr&&Or===0?ee.state.dropPosition===null&&ee.state.dropLevelOffset===null&&ee.state.dropTargetKey===null&&ee.state.dropContainerKey===null&&ee.state.dropTargetPos===null&&ee.state.dropAllowed===!1&&ee.state.dragOverNodeKey===null||ee.resetDragState():hr===ee.state.dropPosition&&Or===ee.state.dropLevelOffset&&sr===ee.state.dropTargetKey&&Di===ee.state.dropContainerKey&&jr===ee.state.dropTargetPos&&ao===ee.state.dropAllowed&&fa===ee.state.dragOverNodeKey||ee.setState({dropPosition:hr,dropLevelOffset:Or,dropTargetKey:sr,dropContainerKey:Di,dropTargetPos:jr,dropAllowed:ao,dragOverNodeKey:fa}),ii==null||ii({event:en,node:(0,ge.F)(Mn)}))}}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDragLeave",function(en,Mn){ee.currentMouseOverDroppableNodeKey===Mn.eventKey&&!en.currentTarget.contains(en.relatedTarget)&&(ee.resetDragState(),ee.currentMouseOverDroppableNodeKey=null);var Ke=ee.props.onDragLeave;Ke==null||Ke({event:en,node:(0,ge.F)(Mn)})}),(0,ye.Z)((0,Jt.Z)(ee),"onWindowDragEnd",function(en){ee.onNodeDragEnd(en,null,!0),window.removeEventListener("dragend",ee.onWindowDragEnd)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDragEnd",function(en,Mn){var Ke=ee.props.onDragEnd;ee.setState({dragOverNodeKey:null}),ee.cleanDragState(),Ke==null||Ke({event:en,node:(0,ge.F)(Mn)}),ee.dragNodeProps=null,window.removeEventListener("dragend",ee.onWindowDragEnd)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDrop",function(en,Mn){var Ke,jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ni=ee.state,Oi=ni.dragChildrenKeys,$n=ni.dropPosition,Ai=ni.dropTargetKey,Ki=ni.dropTargetPos,ii=ni.dropAllowed;if(ii){var mi=ee.props.onDrop;if(ee.setState({dragOverNodeKey:null}),ee.cleanDragState(),Ai!==null){var di=(0,Be.Z)((0,Be.Z)({},(0,ge.H8)(Ai,ee.getTreeNodeRequiredProps())),{},{active:((Ke=ee.getActiveItem())===null||Ke===void 0?void 0:Ke.key)===Ai,data:(0,dn.Z)(ee.state.keyEntities,Ai).node}),gi=Oi.includes(Ai);(0,nt.ZP)(!gi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var hr=(0,fe.yx)(Ki),Or={event:en,node:(0,ge.F)(di),dragNode:ee.dragNodeProps?(0,ge.F)(ee.dragNodeProps):null,dragNodesKeys:[ee.dragNodeProps.eventKey].concat(Oi),dropToGap:$n!==0,dropPosition:$n+Number(hr[hr.length-1])};jn||mi==null||mi(Or),ee.dragNodeProps=null}}}),(0,ye.Z)((0,Jt.Z)(ee),"cleanDragState",function(){var en=ee.state.draggingNodeKey;en!==null&&ee.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ee.dragStartMousePosition=null,ee.currentMouseOverDroppableNodeKey=null}),(0,ye.Z)((0,Jt.Z)(ee),"triggerExpandActionExpand",function(en,Mn){var Ke=ee.state,jn=Ke.expandedKeys,ni=Ke.flattenNodes,Oi=Mn.expanded,$n=Mn.key,Ai=Mn.isLeaf;if(!(Ai||en.shiftKey||en.metaKey||en.ctrlKey)){var Ki=ni.filter(function(mi){return mi.key===$n})[0],ii=(0,ge.F)((0,Be.Z)((0,Be.Z)({},(0,ge.H8)($n,ee.getTreeNodeRequiredProps())),{},{data:Ki.data}));ee.setExpandedKeys(Oi?(0,fe._5)(jn,$n):(0,fe.L0)(jn,$n)),ee.onNodeExpand(en,ii)}}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeClick",function(en,Mn){var Ke=ee.props,jn=Ke.onClick,ni=Ke.expandAction;ni==="click"&&ee.triggerExpandActionExpand(en,Mn),jn==null||jn(en,Mn)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeDoubleClick",function(en,Mn){var Ke=ee.props,jn=Ke.onDoubleClick,ni=Ke.expandAction;ni==="doubleClick"&&ee.triggerExpandActionExpand(en,Mn),jn==null||jn(en,Mn)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeSelect",function(en,Mn){var Ke=ee.state.selectedKeys,jn=ee.state,ni=jn.keyEntities,Oi=jn.fieldNames,$n=ee.props,Ai=$n.onSelect,Ki=$n.multiple,ii=Mn.selected,mi=Mn[Oi.key],di=!ii;di?Ki?Ke=(0,fe.L0)(Ke,mi):Ke=[mi]:Ke=(0,fe._5)(Ke,mi);var gi=Ke.map(function(hr){var Or=(0,dn.Z)(ni,hr);return Or?Or.node:null}).filter(Boolean);ee.setUncontrolledState({selectedKeys:Ke}),Ai==null||Ai(Ke,{event:"select",selected:di,node:Mn,selectedNodes:gi,nativeEvent:en.nativeEvent})}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeCheck",function(en,Mn,Ke){var jn=ee.state,ni=jn.keyEntities,Oi=jn.checkedKeys,$n=jn.halfCheckedKeys,Ai=ee.props,Ki=Ai.checkStrictly,ii=Ai.onCheck,mi=Mn.key,di,gi={event:"check",node:Mn,checked:Ke,nativeEvent:en.nativeEvent};if(Ki){var hr=Ke?(0,fe.L0)(Oi,mi):(0,fe._5)(Oi,mi),Or=(0,fe._5)($n,mi);di={checked:hr,halfChecked:Or},gi.checkedNodes=hr.map(function(_o){return(0,dn.Z)(ni,_o)}).filter(Boolean).map(function(_o){return _o.node}),ee.setUncontrolledState({checkedKeys:hr})}else{var sr=(0,Re.S)([].concat((0,Ne.Z)(Oi),[mi]),!0,ni),Di=sr.checkedKeys,jr=sr.halfCheckedKeys;if(!Ke){var ao=new Set(Di);ao.delete(mi);var fa=(0,Re.S)(Array.from(ao),{checked:!1,halfCheckedKeys:jr},ni);Di=fa.checkedKeys,jr=fa.halfCheckedKeys}di=Di,gi.checkedNodes=[],gi.checkedNodesPositions=[],gi.halfCheckedKeys=jr,Di.forEach(function(_o){var ta=(0,dn.Z)(ni,_o);if(ta){var Ga=ta.node,zo=ta.pos;gi.checkedNodes.push(Ga),gi.checkedNodesPositions.push({node:Ga,pos:zo})}}),ee.setUncontrolledState({checkedKeys:Di},!1,{halfCheckedKeys:jr})}ii==null||ii(di,gi)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeLoad",function(en){var Mn,Ke=en.key,jn=ee.state.keyEntities,ni=(0,dn.Z)(jn,Ke);if(!(ni!=null&&(Mn=ni.children)!==null&&Mn!==void 0&&Mn.length)){var Oi=new Promise(function($n,Ai){ee.setState(function(Ki){var ii=Ki.loadedKeys,mi=ii===void 0?[]:ii,di=Ki.loadingKeys,gi=di===void 0?[]:di,hr=ee.props,Or=hr.loadData,sr=hr.onLoad;if(!Or||mi.includes(Ke)||gi.includes(Ke))return null;var Di=Or(en);return Di.then(function(){var jr=ee.state.loadedKeys,ao=(0,fe.L0)(jr,Ke);sr==null||sr(ao,{event:"load",node:en}),ee.setUncontrolledState({loadedKeys:ao}),ee.setState(function(fa){return{loadingKeys:(0,fe._5)(fa.loadingKeys,Ke)}}),$n()}).catch(function(jr){if(ee.setState(function(fa){return{loadingKeys:(0,fe._5)(fa.loadingKeys,Ke)}}),ee.loadingRetryTimes[Ke]=(ee.loadingRetryTimes[Ke]||0)+1,ee.loadingRetryTimes[Ke]>=Te){var ao=ee.state.loadedKeys;(0,nt.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ee.setUncontrolledState({loadedKeys:(0,fe.L0)(ao,Ke)}),$n()}Ai(jr)}),{loadingKeys:(0,fe.L0)(gi,Ke)}})});return Oi.catch(function(){}),Oi}}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeMouseEnter",function(en,Mn){var Ke=ee.props.onMouseEnter;Ke==null||Ke({event:en,node:Mn})}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeMouseLeave",function(en,Mn){var Ke=ee.props.onMouseLeave;Ke==null||Ke({event:en,node:Mn})}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeContextMenu",function(en,Mn){var Ke=ee.props.onRightClick;Ke&&(en.preventDefault(),Ke({event:en,node:Mn}))}),(0,ye.Z)((0,Jt.Z)(ee),"onFocus",function(){var en=ee.props.onFocus;ee.setState({focused:!0});for(var Mn=arguments.length,Ke=new Array(Mn),jn=0;jn<Mn;jn++)Ke[jn]=arguments[jn];en==null||en.apply(void 0,Ke)}),(0,ye.Z)((0,Jt.Z)(ee),"onBlur",function(){var en=ee.props.onBlur;ee.setState({focused:!1}),ee.onActiveChange(null);for(var Mn=arguments.length,Ke=new Array(Mn),jn=0;jn<Mn;jn++)Ke[jn]=arguments[jn];en==null||en.apply(void 0,Ke)}),(0,ye.Z)((0,Jt.Z)(ee),"getTreeNodeRequiredProps",function(){var en=ee.state,Mn=en.expandedKeys,Ke=en.selectedKeys,jn=en.loadedKeys,ni=en.loadingKeys,Oi=en.checkedKeys,$n=en.halfCheckedKeys,Ai=en.dragOverNodeKey,Ki=en.dropPosition,ii=en.keyEntities;return{expandedKeys:Mn||[],selectedKeys:Ke||[],loadedKeys:jn||[],loadingKeys:ni||[],checkedKeys:Oi||[],halfCheckedKeys:$n||[],dragOverNodeKey:Ai,dropPosition:Ki,keyEntities:ii}}),(0,ye.Z)((0,Jt.Z)(ee),"setExpandedKeys",function(en){var Mn=ee.state,Ke=Mn.treeData,jn=Mn.fieldNames,ni=(0,ge.oH)(Ke,en,jn);ee.setUncontrolledState({expandedKeys:en,flattenNodes:ni},!0)}),(0,ye.Z)((0,Jt.Z)(ee),"onNodeExpand",function(en,Mn){var Ke=ee.state.expandedKeys,jn=ee.state,ni=jn.listChanging,Oi=jn.fieldNames,$n=ee.props,Ai=$n.onExpand,Ki=$n.loadData,ii=Mn.expanded,mi=Mn[Oi.key];if(!ni){var di=Ke.includes(mi),gi=!ii;if((0,nt.ZP)(ii&&di||!ii&&!di,"Expand state not sync with index check"),Ke=gi?(0,fe.L0)(Ke,mi):(0,fe._5)(Ke,mi),ee.setExpandedKeys(Ke),Ai==null||Ai(Ke,{node:Mn,expanded:gi,nativeEvent:en.nativeEvent}),gi&&Ki){var hr=ee.onNodeLoad(Mn);hr&&hr.then(function(){var Or=(0,ge.oH)(ee.state.treeData,Ke,Oi);ee.setUncontrolledState({flattenNodes:Or})}).catch(function(){var Or=ee.state.expandedKeys,sr=(0,fe._5)(Or,mi);ee.setExpandedKeys(sr)})}}}),(0,ye.Z)((0,Jt.Z)(ee),"onListChangeStart",function(){ee.setUncontrolledState({listChanging:!0})}),(0,ye.Z)((0,Jt.Z)(ee),"onListChangeEnd",function(){setTimeout(function(){ee.setUncontrolledState({listChanging:!1})})}),(0,ye.Z)((0,Jt.Z)(ee),"onActiveChange",function(en){var Mn=ee.state.activeKey,Ke=ee.props,jn=Ke.onActiveChange,ni=Ke.itemScrollOffset,Oi=ni===void 0?0:ni;Mn!==en&&(ee.setState({activeKey:en}),en!==null&&ee.scrollTo({key:en,offset:Oi}),jn==null||jn(en))}),(0,ye.Z)((0,Jt.Z)(ee),"getActiveItem",function(){var en=ee.state,Mn=en.activeKey,Ke=en.flattenNodes;return Mn===null?null:Ke.find(function(jn){var ni=jn.key;return ni===Mn})||null}),(0,ye.Z)((0,Jt.Z)(ee),"offsetActiveKey",function(en){var Mn=ee.state,Ke=Mn.flattenNodes,jn=Mn.activeKey,ni=Ke.findIndex(function(Ai){var Ki=Ai.key;return Ki===jn});ni===-1&&en<0&&(ni=Ke.length),ni=(ni+en+Ke.length)%Ke.length;var Oi=Ke[ni];if(Oi){var $n=Oi.key;ee.onActiveChange($n)}else ee.onActiveChange(null)}),(0,ye.Z)((0,Jt.Z)(ee),"onKeyDown",function(en){var Mn=ee.state,Ke=Mn.activeKey,jn=Mn.expandedKeys,ni=Mn.checkedKeys,Oi=Mn.fieldNames,$n=ee.props,Ai=$n.onKeyDown,Ki=$n.checkable,ii=$n.selectable;switch(en.which){case It.Z.UP:{ee.offsetActiveKey(-1),en.preventDefault();break}case It.Z.DOWN:{ee.offsetActiveKey(1),en.preventDefault();break}}var mi=ee.getActiveItem();if(mi&&mi.data){var di=ee.getTreeNodeRequiredProps(),gi=mi.data.isLeaf===!1||!!(mi.data[Oi.children]||[]).length,hr=(0,ge.F)((0,Be.Z)((0,Be.Z)({},(0,ge.H8)(Ke,di)),{},{data:mi.data,active:!0}));switch(en.which){case It.Z.LEFT:{gi&&jn.includes(Ke)?ee.onNodeExpand({},hr):mi.parent&&ee.onActiveChange(mi.parent.key),en.preventDefault();break}case It.Z.RIGHT:{gi&&!jn.includes(Ke)?ee.onNodeExpand({},hr):mi.children&&mi.children.length&&ee.onActiveChange(mi.children[0].key),en.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{Ki&&!hr.disabled&&hr.checkable!==!1&&!hr.disableCheckbox?ee.onNodeCheck({},hr,!ni.includes(Ke)):!Ki&&ii&&!hr.disabled&&hr.selectable!==!1&&ee.onNodeSelect({},hr);break}}}Ai==null||Ai(en)}),(0,ye.Z)((0,Jt.Z)(ee),"setUncontrolledState",function(en){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ee.destroyed){var jn=!1,ni=!0,Oi={};Object.keys(en).forEach(function($n){if(ee.props.hasOwnProperty($n)){ni=!1;return}jn=!0,Oi[$n]=en[$n]}),jn&&(!Mn||ni)&&ee.setState((0,Be.Z)((0,Be.Z)({},Oi),Ke))}}),(0,ye.Z)((0,Jt.Z)(ee),"scrollTo",function(en){ee.listRef.current.scrollTo(en)}),ee}return(0,Dt.Z)(kt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var rn=this.props,on=rn.activeKey,Un=rn.itemScrollOffset,en=Un===void 0?0:Un;on!==void 0&&on!==this.state.activeKey&&(this.setState({activeKey:on}),on!==null&&this.scrollTo({key:on,offset:en}))}},{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 rn=this.state,on=rn.focused,Un=rn.flattenNodes,en=rn.keyEntities,Mn=rn.draggingNodeKey,Ke=rn.activeKey,jn=rn.dropLevelOffset,ni=rn.dropContainerKey,Oi=rn.dropTargetKey,$n=rn.dropPosition,Ai=rn.dragOverNodeKey,Ki=rn.indent,ii=this.props,mi=ii.prefixCls,di=ii.className,gi=ii.style,hr=ii.showLine,Or=ii.focusable,sr=ii.tabIndex,Di=sr===void 0?0:sr,jr=ii.selectable,ao=ii.showIcon,fa=ii.icon,_o=ii.switcherIcon,ta=ii.draggable,Ga=ii.checkable,zo=ii.checkStrictly,gr=ii.disabled,vn=ii.motion,wt=ii.loadData,Ve=ii.filterTreeNode,Ye=ii.height,xn=ii.itemHeight,fn=ii.scrollWidth,ln=ii.virtual,Yn=ii.titleRender,Li=ii.dropIndicatorRender,Ge=ii.onContextMenu,je=ii.onScroll,we=ii.direction,Ze=ii.rootClassName,ai=ii.rootStyle,ui=(0,Nt.Z)(this.props,{aria:!0,data:!0}),qn;ta&&((0,ie.Z)(ta)==="object"?qn=ta:typeof ta=="function"?qn={nodeDraggable:ta}:qn={});var ze={prefixCls:mi,selectable:jr,showIcon:ao,icon:fa,switcherIcon:_o,draggable:qn,draggingNodeKey:Mn,checkable:Ga,checkStrictly:zo,disabled:gr,keyEntities:en,dropLevelOffset:jn,dropContainerKey:ni,dropTargetKey:Oi,dropPosition:$n,dragOverNodeKey:Ai,indent:Ki,direction:we,dropIndicatorRender:Li,loadData:wt,filterTreeNode:Ve,titleRender:Yn,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:ze},et.createElement("div",{className:de()(mi,di,Ze,(0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(mi,"-show-line"),hr),"".concat(mi,"-focused"),on),"".concat(mi,"-active-focused"),Ke!==null)),style:ai},et.createElement(ke,(0,Lt.Z)({ref:this.listRef,prefixCls:mi,style:gi,data:Un,disabled:gr,selectable:jr,checkable:!!Ga,motion:vn,dragging:Mn!==null,height:Ye,itemHeight:xn,virtual:ln,focusable:Or,focused:on,tabIndex:Di,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ge,onScroll:je,scrollWidth:fn},this.getTreeNodeRequiredProps(),ui))))}}],[{key:"getDerivedStateFromProps",value:function(rn,on){var Un=on.prevProps,en={prevProps:rn};function Mn(Di){return!Un&&rn.hasOwnProperty(Di)||Un&&Un[Di]!==rn[Di]}var Ke,jn=on.fieldNames;if(Mn("fieldNames")&&(jn=(0,ge.w$)(rn.fieldNames),en.fieldNames=jn),Mn("treeData")?Ke=rn.treeData:Mn("children")&&((0,nt.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ke=(0,ge.zn)(rn.children)),Ke){en.treeData=Ke;var ni=(0,ge.I8)(Ke,{fieldNames:jn});en.keyEntities=(0,Be.Z)((0,ye.Z)({},jt,sn),ni.keyEntities)}var Oi=en.keyEntities||on.keyEntities;if(Mn("expandedKeys")||Un&&Mn("autoExpandParent"))en.expandedKeys=rn.autoExpandParent||!Un&&rn.defaultExpandParent?(0,fe.r7)(rn.expandedKeys,Oi):rn.expandedKeys;else if(!Un&&rn.defaultExpandAll){var $n=(0,Be.Z)({},Oi);delete $n[jt];var Ai=[];Object.keys($n).forEach(function(Di){var jr=$n[Di];jr.children&&jr.children.length&&Ai.push(jr.key)}),en.expandedKeys=Ai}else!Un&&rn.defaultExpandedKeys&&(en.expandedKeys=rn.autoExpandParent||rn.defaultExpandParent?(0,fe.r7)(rn.defaultExpandedKeys,Oi):rn.defaultExpandedKeys);if(en.expandedKeys||delete en.expandedKeys,Ke||en.expandedKeys){var Ki=(0,ge.oH)(Ke||on.treeData,en.expandedKeys||on.expandedKeys,jn);en.flattenNodes=Ki}if(rn.selectable&&(Mn("selectedKeys")?en.selectedKeys=(0,fe.BT)(rn.selectedKeys,rn):!Un&&rn.defaultSelectedKeys&&(en.selectedKeys=(0,fe.BT)(rn.defaultSelectedKeys,rn))),rn.checkable){var ii;if(Mn("checkedKeys")?ii=(0,fe.E6)(rn.checkedKeys)||{}:!Un&&rn.defaultCheckedKeys?ii=(0,fe.E6)(rn.defaultCheckedKeys)||{}:Ke&&(ii=(0,fe.E6)(rn.checkedKeys)||{checkedKeys:on.checkedKeys,halfCheckedKeys:on.halfCheckedKeys}),ii){var mi=ii,di=mi.checkedKeys,gi=di===void 0?[]:di,hr=mi.halfCheckedKeys,Or=hr===void 0?[]:hr;if(!rn.checkStrictly){var sr=(0,Re.S)(gi,!0,Oi);gi=sr.checkedKeys,Or=sr.halfCheckedKeys}en.checkedKeys=gi,en.halfCheckedKeys=Or}}return Mn("loadedKeys")&&(en.loadedKeys=rn.loadedKeys),en}}]),kt}(et.Component);(0,ye.Z)(Ht,"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,ye.Z)(Ht,"TreeNode",_t.Z);var At=Ht,Ct=At},10225:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{BT:function(){return et},E6:function(){return gt},L0:function(){return ye},OM:function(){return nt},_5:function(){return ce},r7:function(){return mt},wA:function(){return de},yx:function(){return Je}});var Lt=Ft(74902),ie=Ft(71002),Be=Ft(80334),Ne=Ft(67294),Ae=Ft(86128),Dt=Ft(35381),Jt=Ft(1089),ue=null;function ce(St,Mt){if(!St)return[];var zt=St.slice(),qt=zt.indexOf(Mt);return qt>=0&&zt.splice(qt,1),zt}function ye(St,Mt){var zt=(St||[]).slice();return zt.indexOf(Mt)===-1&&zt.push(Mt),zt}function Je(St){return St.split("-")}function de(St,Mt){var zt=[],qt=(0,Dt.Z)(Mt,St);function re(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_t.forEach(function(Zt){var Pe=Zt.key,ge=Zt.children;zt.push(Pe),re(ge)})}return re(qt.children),zt}function It(St){if(St.parent){var Mt=Je(St.pos);return Number(Mt[Mt.length-1])===St.parent.children.length-1}return!1}function Nt(St){var Mt=Je(St.pos);return Number(Mt[Mt.length-1])===0}function nt(St,Mt,zt,qt,re,_t,Zt,Pe,ge,Fe){var He,Ie=St.clientX,In=St.clientY,bn=St.target.getBoundingClientRect(),cn=bn.top,Xn=bn.height,$t=(Fe==="rtl"?-1:1)*(((re==null?void 0:re.x)||0)-Ie),jt=($t-12)/qt,Ee=ge.filter(function(Ct){var Tt;return(Tt=Pe[Ct])===null||Tt===void 0||(Tt=Tt.children)===null||Tt===void 0?void 0:Tt.length}),sn=(0,Dt.Z)(Pe,zt.eventKey);if(In<cn+Xn/2){var Tn=Zt.findIndex(function(Ct){return Ct.key===sn.key}),Le=Tn<=0?0:Tn-1,gn=Zt[Le].key;sn=(0,Dt.Z)(Pe,gn)}var $e=sn.key,Fn=sn,ke=sn.key,fe=0,Re=0;if(!Ee.includes($e))for(var dn=0;dn<jt&&It(sn);dn+=1)sn=sn.parent,Re+=1;var Te=Mt.data,Ht=sn.node,At=!0;return Nt(sn)&&sn.level===0&&In<cn+Xn/2&&_t({dragNode:Te,dropNode:Ht,dropPosition:-1})&&sn.key===zt.eventKey?fe=-1:(Fn.children||[]).length&&Ee.includes(ke)?_t({dragNode:Te,dropNode:Ht,dropPosition:0})?fe=0:At=!1:Re===0?jt>-1.5?_t({dragNode:Te,dropNode:Ht,dropPosition:1})?fe=1:At=!1:_t({dragNode:Te,dropNode:Ht,dropPosition:0})?fe=0:_t({dragNode:Te,dropNode:Ht,dropPosition:1})?fe=1:At=!1:_t({dragNode:Te,dropNode:Ht,dropPosition:1})?fe=1:At=!1,{dropPosition:fe,dropLevelOffset:Re,dropTargetKey:sn.key,dropTargetPos:sn.pos,dragOverNodeKey:ke,dropContainerKey:fe===0?null:((He=sn.parent)===null||He===void 0?void 0:He.key)||null,dropAllowed:At}}function et(St,Mt){if(St){var zt=Mt.multiple;return zt?St.slice():St.length?[St[0]]:St}}var ht=function(Mt){return Mt};function lt(St,Mt){if(!St)return[];var zt=Mt||{},qt=zt.processProps,re=qt===void 0?ht:qt,_t=Array.isArray(St)?St:[St];return _t.map(function(Zt){var Pe=Zt.children,ge=_objectWithoutProperties(Zt,ue),Fe=lt(Pe,Mt);return React.createElement(TreeNode,_extends({key:ge.key},re(ge)),Fe)})}function gt(St){if(!St)return null;var Mt;if(Array.isArray(St))Mt={checkedKeys:St,halfCheckedKeys:void 0};else if((0,ie.Z)(St)==="object")Mt={checkedKeys:St.checked||void 0,halfCheckedKeys:St.halfChecked||void 0};else return(0,Be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Mt}function mt(St,Mt){var zt=new Set;function qt(re){if(!zt.has(re)){var _t=(0,Dt.Z)(Mt,re);if(_t){zt.add(re);var Zt=_t.parent,Pe=_t.node;Pe.disabled||Zt&&qt(Zt.key)}}}return(St||[]).forEach(function(re){qt(re)}),(0,Lt.Z)(zt)}},17341:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{S:function(){return Jt}});var Lt=Ft(80334),ie=Ft(35381);function Be(ue,ce){var ye=new Set;return ue.forEach(function(Je){ce.has(Je)||ye.add(Je)}),ye}function Ne(ue){var ce=ue||{},ye=ce.disabled,Je=ce.disableCheckbox,de=ce.checkable;return!!(ye||Je)||de===!1}function Ae(ue,ce,ye,Je){for(var de=new Set(ue),It=new Set,Nt=0;Nt<=ye;Nt+=1){var nt=ce.get(Nt)||new Set;nt.forEach(function(gt){var mt=gt.key,St=gt.node,Mt=gt.children,zt=Mt===void 0?[]:Mt;de.has(mt)&&!Je(St)&&zt.filter(function(qt){return!Je(qt.node)}).forEach(function(qt){de.add(qt.key)})})}for(var et=new Set,ht=ye;ht>=0;ht-=1){var lt=ce.get(ht)||new Set;lt.forEach(function(gt){var mt=gt.parent,St=gt.node;if(!(Je(St)||!gt.parent||et.has(gt.parent.key))){if(Je(gt.parent.node)){et.add(mt.key);return}var Mt=!0,zt=!1;(mt.children||[]).filter(function(qt){return!Je(qt.node)}).forEach(function(qt){var re=qt.key,_t=de.has(re);Mt&&!_t&&(Mt=!1),!zt&&(_t||It.has(re))&&(zt=!0)}),Mt&&de.add(mt.key),zt&&It.add(mt.key),et.add(mt.key)}})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(Be(It,de))}}function Dt(ue,ce,ye,Je,de){for(var It=new Set(ue),Nt=new Set(ce),nt=0;nt<=Je;nt+=1){var et=ye.get(nt)||new Set;et.forEach(function(mt){var St=mt.key,Mt=mt.node,zt=mt.children,qt=zt===void 0?[]:zt;!It.has(St)&&!Nt.has(St)&&!de(Mt)&&qt.filter(function(re){return!de(re.node)}).forEach(function(re){It.delete(re.key)})})}Nt=new Set;for(var ht=new Set,lt=Je;lt>=0;lt-=1){var gt=ye.get(lt)||new Set;gt.forEach(function(mt){var St=mt.parent,Mt=mt.node;if(!(de(Mt)||!mt.parent||ht.has(mt.parent.key))){if(de(mt.parent.node)){ht.add(St.key);return}var zt=!0,qt=!1;(St.children||[]).filter(function(re){return!de(re.node)}).forEach(function(re){var _t=re.key,Zt=It.has(_t);zt&&!Zt&&(zt=!1),!qt&&(Zt||Nt.has(_t))&&(qt=!0)}),zt||It.delete(St.key),qt&&Nt.add(St.key),ht.add(St.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(Be(Nt,It))}}function Jt(ue,ce,ye,Je){var de=[],It;Je?It=Je:It=Ne;var Nt=new Set(ue.filter(function(lt){var gt=!!(0,ie.Z)(ye,lt);return gt||de.push(lt),gt})),nt=new Map,et=0;Object.keys(ye).forEach(function(lt){var gt=ye[lt],mt=gt.level,St=nt.get(mt);St||(St=new Set,nt.set(mt,St)),St.add(gt),et=Math.max(et,mt)}),(0,Lt.ZP)(!de.length,"Tree missing follow keys: ".concat(de.slice(0,100).map(function(lt){return"'".concat(lt,"'")}).join(", ")));var ht;return ce===!0?ht=Ae(Nt,nt,et,It):ht=Dt(Nt,ce.halfCheckedKeys,nt,et,It),ht}},35381:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return Lt}});function Lt(ie,Be){return ie[Be]}},1089:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{F:function(){return mt},H8:function(){return gt},I8:function(){return lt},km:function(){return de},oH:function(){return et},w$:function(){return It},zn:function(){return nt}});var Lt=Ft(71002),ie=Ft(74902),Be=Ft(1413),Ne=Ft(45987),Ae=Ft(50344),Dt=Ft(98423),Jt=Ft(80334),ue=Ft(35381),ce=["children"];function ye(St,Mt){return"".concat(St,"-").concat(Mt)}function Je(St){return St&&St.type&&St.type.isTreeNode}function de(St,Mt){return St!=null?St:Mt}function It(St){var Mt=St||{},zt=Mt.title,qt=Mt._title,re=Mt.key,_t=Mt.children,Zt=zt||"title";return{title:Zt,_title:qt||[Zt],key:re||"key",children:_t||"children"}}function Nt(St,Mt){var zt=new Map;function qt(re){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(re||[]).forEach(function(Zt){var Pe=Zt[Mt.key],ge=Zt[Mt.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(_t).concat(Pe,"]"));var Fe=String(Pe);warning(!zt.has(Fe)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(Fe)),zt.set(Fe,!0),qt(ge,"".concat(_t).concat(Fe," > "))})}qt(St)}function nt(St){function Mt(zt){var qt=(0,Ae.Z)(zt);return qt.map(function(re){if(!Je(re))return(0,Jt.ZP)(!re,"Tree/TreeNode can only accept TreeNode as children."),null;var _t=re.key,Zt=re.props,Pe=Zt.children,ge=(0,Ne.Z)(Zt,ce),Fe=(0,Be.Z)({key:_t},ge),He=Mt(Pe);return He.length&&(Fe.children=He),Fe}).filter(function(re){return re})}return Mt(St)}function et(St,Mt,zt){var qt=It(zt),re=qt._title,_t=qt.key,Zt=qt.children,Pe=new Set(Mt===!0?[]:Mt),ge=[];function Fe(He){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return He.map(function(In,bn){for(var cn=ye(Ie?Ie.pos:"0",bn),Xn=de(In[_t],cn),$t,jt=0;jt<re.length;jt+=1){var Ee=re[jt];if(In[Ee]!==void 0){$t=In[Ee];break}}var sn=Object.assign((0,Dt.Z)(In,[].concat((0,ie.Z)(re),[_t,Zt])),{title:$t,key:Xn,parent:Ie,pos:cn,children:null,data:In,isStart:[].concat((0,ie.Z)(Ie?Ie.isStart:[]),[bn===0]),isEnd:[].concat((0,ie.Z)(Ie?Ie.isEnd:[]),[bn===He.length-1])});return ge.push(sn),Mt===!0||Pe.has(Xn)?sn.children=Fe(In[Zt]||[],sn):sn.children=[],sn})}return Fe(St),ge}function ht(St,Mt,zt){var qt={};(0,Lt.Z)(zt)==="object"?qt=zt:qt={externalGetKey:zt},qt=qt||{};var re=qt,_t=re.childrenPropName,Zt=re.externalGetKey,Pe=re.fieldNames,ge=It(Pe),Fe=ge.key,He=ge.children,Ie=_t||He,In;Zt?typeof Zt=="string"?In=function(Xn){return Xn[Zt]}:typeof Zt=="function"&&(In=function(Xn){return Zt(Xn)}):In=function(Xn,$t){return de(Xn[Fe],$t)};function bn(cn,Xn,$t,jt){var Ee=cn?cn[Ie]:St,sn=cn?ye($t.pos,Xn):"0",Tn=cn?[].concat((0,ie.Z)(jt),[cn]):[];if(cn){var Le=In(cn,sn),gn={node:cn,index:Xn,pos:sn,key:Le,parentPos:$t.node?$t.pos:null,level:$t.level+1,nodes:Tn};Mt(gn)}Ee&&Ee.forEach(function($e,Fn){bn($e,Fn,{node:cn,pos:sn,level:$t?$t.level+1:-1},Tn)})}bn(null)}function lt(St){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=Mt.initWrapper,qt=Mt.processEntity,re=Mt.onProcessFinished,_t=Mt.externalGetKey,Zt=Mt.childrenPropName,Pe=Mt.fieldNames,ge=arguments.length>2?arguments[2]:void 0,Fe=_t||ge,He={},Ie={},In={posEntities:He,keyEntities:Ie};return zt&&(In=zt(In)||In),ht(St,function(bn){var cn=bn.node,Xn=bn.index,$t=bn.pos,jt=bn.key,Ee=bn.parentPos,sn=bn.level,Tn=bn.nodes,Le={node:cn,nodes:Tn,index:Xn,key:jt,pos:$t,level:sn},gn=de(jt,$t);He[$t]=Le,Ie[gn]=Le,Le.parent=He[Ee],Le.parent&&(Le.parent.children=Le.parent.children||[],Le.parent.children.push(Le)),qt&&qt(Le,In)},{externalGetKey:Fe,childrenPropName:Zt,fieldNames:Pe}),re&&re(In),In}function gt(St,Mt){var zt=Mt.expandedKeys,qt=Mt.selectedKeys,re=Mt.loadedKeys,_t=Mt.loadingKeys,Zt=Mt.checkedKeys,Pe=Mt.halfCheckedKeys,ge=Mt.dragOverNodeKey,Fe=Mt.dropPosition,He=Mt.keyEntities,Ie=(0,ue.Z)(He,St),In={eventKey:St,expanded:zt.indexOf(St)!==-1,selected:qt.indexOf(St)!==-1,loaded:re.indexOf(St)!==-1,loading:_t.indexOf(St)!==-1,checked:Zt.indexOf(St)!==-1,halfChecked:Pe.indexOf(St)!==-1,pos:String(Ie?Ie.pos:""),dragOver:ge===St&&Fe===0,dragOverGapTop:ge===St&&Fe===-1,dragOverGapBottom:ge===St&&Fe===1};return In}function mt(St){var Mt=St.data,zt=St.expanded,qt=St.selected,re=St.checked,_t=St.loaded,Zt=St.loading,Pe=St.halfChecked,ge=St.dragOver,Fe=St.dragOverGapTop,He=St.dragOverGapBottom,Ie=St.pos,In=St.active,bn=St.eventKey,cn=(0,Be.Z)((0,Be.Z)({},Mt),{},{expanded:zt,selected:qt,checked:re,loaded:_t,loading:Zt,halfChecked:Pe,dragOver:ge,dragOverGapTop:Fe,dragOverGapBottom:He,pos:Ie,active:In,key:bn});return"props"in cn||Object.defineProperty(cn,"props",{get:function(){return(0,Jt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),St}}),cn}},36356:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return bn}});var Lt=Ft(87462),ie=Ft(15671),Be=Ft(43144),Ne=Ft(97326),Ae=Ft(60136),Dt=Ft(29388),Jt=Ft(4942),ue=Ft(67294),ce=Ft(1413),ye=Ft(45987),Je=Ft(71002),de=Ft(74165),It=Ft(15861),Nt=Ft(74902),nt=Ft(94184),et=Ft.n(nt),ht=Ft(64217),lt=Ft(80334),gt=function(cn,Xn){if(cn&&Xn){var $t=Array.isArray(Xn)?Xn:Xn.split(","),jt=cn.name||"",Ee=cn.type||"",sn=Ee.replace(/\/.*$/,"");return $t.some(function(Tn){var Le=Tn.trim();if(/^\*(\/\*)?$/.test(Tn))return!0;if(Le.charAt(0)==="."){var gn=jt.toLowerCase(),$e=Le.toLowerCase(),Fn=[$e];return($e===".jpg"||$e===".jpeg")&&(Fn=[".jpg",".jpeg"]),Fn.some(function(ke){return gn.endsWith(ke)})}return/\/\*$/.test(Le)?sn===Le.replace(/\/.*$/,""):Ee===Le?!0:/^\w+$/.test(Le)?((0,lt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Le,"'.Skip for check.")),!0):!1})}return!0};function mt(cn,Xn){var $t="cannot ".concat(cn.method," ").concat(cn.action," ").concat(Xn.status,"'"),jt=new Error($t);return jt.status=Xn.status,jt.method=cn.method,jt.url=cn.action,jt}function St(cn){var Xn=cn.responseText||cn.response;if(!Xn)return Xn;try{return JSON.parse(Xn)}catch($t){return Xn}}function Mt(cn){var Xn=new XMLHttpRequest;cn.onProgress&&Xn.upload&&(Xn.upload.onprogress=function(sn){sn.total>0&&(sn.percent=sn.loaded/sn.total*100),cn.onProgress(sn)});var $t=new FormData;cn.data&&Object.keys(cn.data).forEach(function(Ee){var sn=cn.data[Ee];if(Array.isArray(sn)){sn.forEach(function(Tn){$t.append("".concat(Ee,"[]"),Tn)});return}$t.append(Ee,sn)}),cn.file instanceof Blob?$t.append(cn.filename,cn.file,cn.file.name):$t.append(cn.filename,cn.file),Xn.onerror=function(sn){cn.onError(sn)},Xn.onload=function(){return Xn.status<200||Xn.status>=300?cn.onError(mt(cn,Xn),St(Xn)):cn.onSuccess(St(Xn),Xn)},Xn.open(cn.method,cn.action,!0),cn.withCredentials&&"withCredentials"in Xn&&(Xn.withCredentials=!0);var jt=cn.headers||{};return jt["X-Requested-With"]!==null&&Xn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(jt).forEach(function(Ee){jt[Ee]!==null&&Xn.setRequestHeader(Ee,jt[Ee])}),Xn.send($t),{abort:function(){Xn.abort()}}}var zt=function(){var cn=(0,It.Z)((0,de.Z)().mark(function Xn($t,jt){var Ee,sn,Tn,Le,gn,$e,Fn,ke;return(0,de.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:$e=function(){return $e=(0,It.Z)((0,de.Z)().mark(function Te(Ht){return(0,de.Z)().wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:return Ct.abrupt("return",new Promise(function(Tt){Ht.file(function(Xt){jt(Xt)?(Ht.fullPath&&!Xt.webkitRelativePath&&(Object.defineProperties(Xt,{webkitRelativePath:{writable:!0}}),Xt.webkitRelativePath=Ht.fullPath.replace(/^\//,""),Object.defineProperties(Xt,{webkitRelativePath:{writable:!1}})),Tt(Xt)):Tt(null)})}));case 1:case"end":return Ct.stop()}},Te)})),$e.apply(this,arguments)},gn=function(Te){return $e.apply(this,arguments)},Le=function(){return Le=(0,It.Z)((0,de.Z)().mark(function Te(Ht){var At,Ct,Tt,Xt,kt;return(0,de.Z)().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:At=Ht.createReader(),Ct=[];case 2:return rn.next=5,new Promise(function(on){At.readEntries(on,function(){return on([])})});case 5:if(Tt=rn.sent,Xt=Tt.length,Xt){rn.next=9;break}return rn.abrupt("break",12);case 9:for(kt=0;kt<Xt;kt++)Ct.push(Tt[kt]);rn.next=2;break;case 12:return rn.abrupt("return",Ct);case 13:case"end":return rn.stop()}},Te)})),Le.apply(this,arguments)},Tn=function(Te){return Le.apply(this,arguments)},Ee=[],sn=[],$t.forEach(function(dn){return sn.push(dn.webkitGetAsEntry())}),Fn=function(){var dn=(0,It.Z)((0,de.Z)().mark(function Te(Ht,At){var Ct,Tt;return(0,de.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Ht){kt.next=2;break}return kt.abrupt("return");case 2:if(Ht.path=At||"",!Ht.isFile){kt.next=10;break}return kt.next=6,gn(Ht);case 6:Ct=kt.sent,Ct&&Ee.push(Ct),kt.next=15;break;case 10:if(!Ht.isDirectory){kt.next=15;break}return kt.next=13,Tn(Ht);case 13:Tt=kt.sent,sn.push.apply(sn,(0,Nt.Z)(Tt));case 15:case"end":return kt.stop()}},Te)}));return function(Ht,At){return dn.apply(this,arguments)}}(),ke=0;case 9:if(!(ke<sn.length)){Re.next=15;break}return Re.next=12,Fn(sn[ke]);case 12:ke++,Re.next=9;break;case 15:return Re.abrupt("return",Ee);case 16:case"end":return Re.stop()}},Xn)}));return function($t,jt){return cn.apply(this,arguments)}}(),qt=zt,re=+new Date,_t=0;function Zt(){return"rc-upload-".concat(re,"-").concat(++_t)}var Pe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ge=function(cn){(0,Ae.Z)($t,cn);var Xn=(0,Dt.Z)($t);function $t(){var jt;(0,ie.Z)(this,$t);for(var Ee=arguments.length,sn=new Array(Ee),Tn=0;Tn<Ee;Tn++)sn[Tn]=arguments[Tn];return jt=Xn.call.apply(Xn,[this].concat(sn)),(0,Jt.Z)((0,Ne.Z)(jt),"state",{uid:Zt()}),(0,Jt.Z)((0,Ne.Z)(jt),"reqs",{}),(0,Jt.Z)((0,Ne.Z)(jt),"fileInput",void 0),(0,Jt.Z)((0,Ne.Z)(jt),"_isMounted",void 0),(0,Jt.Z)((0,Ne.Z)(jt),"onChange",function(Le){var gn=jt.props,$e=gn.accept,Fn=gn.directory,ke=Le.target.files,fe=(0,Nt.Z)(ke).filter(function(Re){return!Fn||gt(Re,$e)});jt.uploadFiles(fe),jt.reset()}),(0,Jt.Z)((0,Ne.Z)(jt),"onClick",function(Le){var gn=jt.fileInput;if(gn){var $e=Le.target,Fn=jt.props.onClick;if($e&&$e.tagName==="BUTTON"){var ke=gn.parentNode;ke.focus(),$e.blur()}gn.click(),Fn&&Fn(Le)}}),(0,Jt.Z)((0,Ne.Z)(jt),"onKeyDown",function(Le){Le.key==="Enter"&&jt.onClick(Le)}),(0,Jt.Z)((0,Ne.Z)(jt),"onFileDrop",function(){var Le=(0,It.Z)((0,de.Z)().mark(function gn($e){var Fn,ke,fe;return(0,de.Z)().wrap(function(dn){for(;;)switch(dn.prev=dn.next){case 0:if(Fn=jt.props.multiple,$e.preventDefault(),$e.type!=="dragover"){dn.next=4;break}return dn.abrupt("return");case 4:if(!jt.props.directory){dn.next=11;break}return dn.next=7,qt(Array.prototype.slice.call($e.dataTransfer.items),function(Te){return gt(Te,jt.props.accept)});case 7:ke=dn.sent,jt.uploadFiles(ke),dn.next=14;break;case 11:fe=(0,Nt.Z)($e.dataTransfer.files).filter(function(Te){return gt(Te,jt.props.accept)}),Fn===!1&&(fe=fe.slice(0,1)),jt.uploadFiles(fe);case 14:case"end":return dn.stop()}},gn)}));return function(gn){return Le.apply(this,arguments)}}()),(0,Jt.Z)((0,Ne.Z)(jt),"uploadFiles",function(Le){var gn=(0,Nt.Z)(Le),$e=gn.map(function(Fn){return Fn.uid=Zt(),jt.processFile(Fn,gn)});Promise.all($e).then(function(Fn){var ke=jt.props.onBatchStart;ke==null||ke(Fn.map(function(fe){var Re=fe.origin,dn=fe.parsedFile;return{file:Re,parsedFile:dn}})),Fn.filter(function(fe){return fe.parsedFile!==null}).forEach(function(fe){jt.post(fe)})})}),(0,Jt.Z)((0,Ne.Z)(jt),"processFile",function(){var Le=(0,It.Z)((0,de.Z)().mark(function gn($e,Fn){var ke,fe,Re,dn,Te,Ht,At,Ct,Tt;return(0,de.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(ke=jt.props.beforeUpload,fe=$e,!ke){kt.next=14;break}return kt.prev=3,kt.next=6,ke($e,Fn);case 6:fe=kt.sent,kt.next=12;break;case 9:kt.prev=9,kt.t0=kt.catch(3),fe=!1;case 12:if(fe!==!1){kt.next=14;break}return kt.abrupt("return",{origin:$e,parsedFile:null,action:null,data:null});case 14:if(Re=jt.props.action,typeof Re!="function"){kt.next=21;break}return kt.next=18,Re($e);case 18:dn=kt.sent,kt.next=22;break;case 21:dn=Re;case 22:if(Te=jt.props.data,typeof Te!="function"){kt.next=29;break}return kt.next=26,Te($e);case 26:Ht=kt.sent,kt.next=30;break;case 29:Ht=Te;case 30:return At=((0,Je.Z)(fe)==="object"||typeof fe=="string")&&fe?fe:$e,At instanceof File?Ct=At:Ct=new File([At],$e.name,{type:$e.type}),Tt=Ct,Tt.uid=$e.uid,kt.abrupt("return",{origin:$e,data:Ht,parsedFile:Tt,action:dn});case 35:case"end":return kt.stop()}},gn,null,[[3,9]])}));return function(gn,$e){return Le.apply(this,arguments)}}()),(0,Jt.Z)((0,Ne.Z)(jt),"saveFileInput",function(Le){jt.fileInput=Le}),jt}return(0,Be.Z)($t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ee){var sn=this,Tn=Ee.data,Le=Ee.origin,gn=Ee.action,$e=Ee.parsedFile;if(this._isMounted){var Fn=this.props,ke=Fn.onStart,fe=Fn.customRequest,Re=Fn.name,dn=Fn.headers,Te=Fn.withCredentials,Ht=Fn.method,At=Le.uid,Ct=fe||Mt,Tt={action:gn,filename:Re,data:Tn,file:$e,headers:dn,withCredentials:Te,method:Ht||"post",onProgress:function(kt){var ee=sn.props.onProgress;ee==null||ee(kt,$e)},onSuccess:function(kt,ee){var rn=sn.props.onSuccess;rn==null||rn(kt,$e,ee),delete sn.reqs[At]},onError:function(kt,ee){var rn=sn.props.onError;rn==null||rn(kt,ee,$e),delete sn.reqs[At]}};ke(Le),this.reqs[At]=Ct(Tt)}}},{key:"reset",value:function(){this.setState({uid:Zt()})}},{key:"abort",value:function(Ee){var sn=this.reqs;if(Ee){var Tn=Ee.uid?Ee.uid:Ee;sn[Tn]&&sn[Tn].abort&&sn[Tn].abort(),delete sn[Tn]}else Object.keys(sn).forEach(function(Le){sn[Le]&&sn[Le].abort&&sn[Le].abort(),delete sn[Le]})}},{key:"render",value:function(){var Ee=this.props,sn=Ee.component,Tn=Ee.prefixCls,Le=Ee.className,gn=Ee.classNames,$e=gn===void 0?{}:gn,Fn=Ee.disabled,ke=Ee.id,fe=Ee.name,Re=Ee.style,dn=Ee.styles,Te=dn===void 0?{}:dn,Ht=Ee.multiple,At=Ee.accept,Ct=Ee.capture,Tt=Ee.children,Xt=Ee.directory,kt=Ee.openFileDialogOnClick,ee=Ee.onMouseEnter,rn=Ee.onMouseLeave,on=Ee.hasControlInside,Un=(0,ye.Z)(Ee,Pe),en=et()((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},Tn,!0),"".concat(Tn,"-disabled"),Fn),Le,Le)),Mn=Xt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ke=Fn?{}:{onClick:kt?this.onClick:function(){},onKeyDown:kt?this.onKeyDown:function(){},onMouseEnter:ee,onMouseLeave:rn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:on?void 0:"0"};return ue.createElement(sn,(0,Lt.Z)({},Ke,{className:en,role:on?void 0:"button",style:Re}),ue.createElement("input",(0,Lt.Z)({},(0,ht.Z)(Un,{aria:!0,data:!0}),{id:ke,name:fe,disabled:Fn,type:"file",ref:this.saveFileInput,onClick:function(ni){return ni.stopPropagation()},key:this.state.uid,style:(0,ce.Z)({display:"none"},Te.input),className:$e.input,accept:At},Mn,{multiple:Ht,onChange:this.onChange},Ct!=null?{capture:Ct}:{})),Tt)}}]),$t}(ue.Component),Fe=ge;function He(){}var Ie=function(cn){(0,Ae.Z)($t,cn);var Xn=(0,Dt.Z)($t);function $t(){var jt;(0,ie.Z)(this,$t);for(var Ee=arguments.length,sn=new Array(Ee),Tn=0;Tn<Ee;Tn++)sn[Tn]=arguments[Tn];return jt=Xn.call.apply(Xn,[this].concat(sn)),(0,Jt.Z)((0,Ne.Z)(jt),"uploader",void 0),(0,Jt.Z)((0,Ne.Z)(jt),"saveUploader",function(Le){jt.uploader=Le}),jt}return(0,Be.Z)($t,[{key:"abort",value:function(Ee){this.uploader.abort(Ee)}},{key:"render",value:function(){return ue.createElement(Fe,(0,Lt.Z)({},this.props,{ref:this.saveUploader}))}}]),$t}(ue.Component);(0,Jt.Z)(Ie,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:He,onError:He,onSuccess:He,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var In=Ie,bn=In},73299:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return gr}});var Lt=Ft(87462),ie=Ft(1413),Be=Ft(71002),Ne=Ft(97685),Ae=Ft(4942),Dt=Ft(45987),Jt=Ft(67294),ue=Ft(73935),ce=Ft(94184),ye=Ft.n(ce),Je=Ft(48555),de=Jt.forwardRef(function(vn,wt){var Ve=vn.height,Ye=vn.offsetY,xn=vn.offsetX,fn=vn.children,ln=vn.prefixCls,Yn=vn.onInnerResize,Li=vn.innerProps,Ge=vn.rtl,je=vn.extra,we={},Ze={display:"flex",flexDirection:"column"};if(Ye!==void 0){var ai;we={height:Ve,position:"relative",overflow:"hidden"},Ze=(0,ie.Z)((0,ie.Z)({},Ze),{},(ai={transform:"translateY(".concat(Ye,"px)")},(0,Ae.Z)(ai,Ge?"marginRight":"marginLeft",-xn),(0,Ae.Z)(ai,"position","absolute"),(0,Ae.Z)(ai,"left",0),(0,Ae.Z)(ai,"right",0),(0,Ae.Z)(ai,"top",0),ai))}return Jt.createElement("div",{style:we},Jt.createElement(Je.Z,{onResize:function(qn){var ze=qn.offsetHeight;ze&&Yn&&Yn()}},Jt.createElement("div",(0,Lt.Z)({style:Ze,className:ye()((0,Ae.Z)({},"".concat(ln,"-holder-inner"),ln)),ref:wt},Li),fn,je)))});de.displayName="Filler";var It=de,Nt=function(wt){return+setTimeout(wt,16)},nt=function(wt){return clearTimeout(wt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Nt=function(wt){return window.requestAnimationFrame(wt)},nt=function(wt){return window.cancelAnimationFrame(wt)});var et=0,ht=new Map;function lt(vn){ht.delete(vn)}var gt=function(wt){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;et+=1;var Ye=et;function xn(fn){if(fn===0)lt(Ye),wt();else{var ln=Nt(function(){xn(fn-1)});ht.set(Ye,ln)}}return xn(Ve),Ye};gt.cancel=function(vn){var wt=ht.get(vn);return lt(wt),nt(wt)};var mt=gt;function St(vn,wt){var Ve="touches"in vn?vn.touches[0]:vn;return Ve[wt?"pageX":"pageY"]}var Mt=Jt.forwardRef(function(vn,wt){var Ve,Ye=vn.prefixCls,xn=vn.rtl,fn=vn.scrollOffset,ln=vn.scrollRange,Yn=vn.onStartMove,Li=vn.onStopMove,Ge=vn.onScroll,je=vn.horizontal,we=vn.spinSize,Ze=vn.containerSize,ai=vn.style,ui=vn.thumbStyle,qn=Jt.useState(!1),ze=(0,Ne.Z)(qn,2),yn=ze[0],Ni=ze[1],Yi=Jt.useState(null),Dn=(0,Ne.Z)(Yi,2),De=Dn[0],xi=Dn[1],Ui=Jt.useState(null),Tr=(0,Ne.Z)(Ui,2),Cn=Tr[0],Ri=Tr[1],ro=!xn,Sa=Jt.useRef(),bo=Jt.useRef(),ki=Jt.useState(!1),Bi=(0,Ne.Z)(ki,2),Hi=Bi[0],to=Bi[1],Yr=Jt.useRef(),ti=function(){clearTimeout(Yr.current),to(!0),Yr.current=setTimeout(function(){to(!1)},3e3)},or=ln-Ze||0,pl=Ze-we||0,gs=or>0,qa=Jt.useMemo(function(){if(fn===0||or===0)return 0;var Hr=fn/or;return Hr*pl},[fn,or,pl]),We=function(ea){ea.stopPropagation(),ea.preventDefault()},mr=Jt.useRef({top:qa,dragging:yn,pageY:De,startTop:Cn});mr.current={top:qa,dragging:yn,pageY:De,startTop:Cn};var xo=function(ea){Ni(!0),xi(St(ea,je)),Ri(mr.current.top),Yn(),ea.stopPropagation(),ea.preventDefault()};Jt.useEffect(function(){var Hr=function(pn){pn.preventDefault()},ea=Sa.current,Ln=bo.current;return ea.addEventListener("touchstart",Hr),Ln.addEventListener("touchstart",xo),function(){ea.removeEventListener("touchstart",Hr),Ln.removeEventListener("touchstart",xo)}},[]);var ir=Jt.useRef();ir.current=or;var Ea=Jt.useRef();Ea.current=pl,Jt.useEffect(function(){if(yn){var Hr,ea=function(pn){var vo=mr.current,Fs=vo.dragging,Ia=vo.pageY,$s=vo.startTop;if(mt.cancel(Hr),Fs){var Ca=St(pn,je)-Ia,Fo=$s;!ro&&je?Fo-=Ca:Fo+=Ca;var Fa=ir.current,al=Ea.current,la=al?Fo/al:0,yi=Math.ceil(la*Fa);yi=Math.max(yi,0),yi=Math.min(yi,Fa),Hr=mt(function(){Ge(yi,je)})}},Ln=function(){Ni(!1),Li()};return window.addEventListener("mousemove",ea),window.addEventListener("touchmove",ea),window.addEventListener("mouseup",Ln),window.addEventListener("touchend",Ln),function(){window.removeEventListener("mousemove",ea),window.removeEventListener("touchmove",ea),window.removeEventListener("mouseup",Ln),window.removeEventListener("touchend",Ln),mt.cancel(Hr)}}},[yn]),Jt.useEffect(function(){ti()},[fn]),Jt.useImperativeHandle(wt,function(){return{delayHidden:ti}});var mo="".concat(Ye,"-scrollbar"),To={position:"absolute",visibility:Hi&&gs?null:"hidden"},so={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return je?(To.height=8,To.left=0,To.right=0,To.bottom=0,so.height="100%",so.width=we,ro?so.left=qa:so.right=qa):(To.width=8,To.top=0,To.bottom=0,ro?To.right=0:To.left=0,so.width="100%",so.height=we,so.top=qa),Jt.createElement("div",{ref:Sa,className:ye()(mo,(Ve={},(0,Ae.Z)(Ve,"".concat(mo,"-horizontal"),je),(0,Ae.Z)(Ve,"".concat(mo,"-vertical"),!je),(0,Ae.Z)(Ve,"".concat(mo,"-visible"),Hi),Ve)),style:(0,ie.Z)((0,ie.Z)({},To),ai),onMouseDown:We,onMouseMove:ti},Jt.createElement("div",{ref:bo,className:ye()("".concat(mo,"-thumb"),(0,Ae.Z)({},"".concat(mo,"-thumb-moving"),yn)),style:(0,ie.Z)((0,ie.Z)({},so),ui),onMouseDown:xo}))}),zt=Mt;function qt(vn){var wt=vn.children,Ve=vn.setRef,Ye=Jt.useCallback(function(xn){Ve(xn)},[]);return Jt.cloneElement(wt,{ref:Ye})}function re(vn,wt,Ve,Ye,xn,fn,ln){var Yn=ln.getKey;return vn.slice(wt,Ve+1).map(function(Li,Ge){var je=wt+Ge,we=fn(Li,je,{style:{width:Ye}}),Ze=Yn(Li);return Jt.createElement(qt,{key:Ze,setRef:function(ui){return xn(Li,ui)}},we)})}function _t(vn){return vn instanceof HTMLElement||vn instanceof SVGElement}function Zt(vn){return _t(vn)?vn:vn instanceof Jt.Component?ue.findDOMNode(vn):null}var Pe=Ft(15671),ge=Ft(43144),Fe=function(){function vn(){(0,Pe.Z)(this,vn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,ge.Z)(vn,[{key:"set",value:function(Ve,Ye){this.maps[Ve]=Ye,this.id+=1}},{key:"get",value:function(Ve){return this.maps[Ve]}}]),vn}(),He=Fe;function Ie(vn,wt,Ve){var Ye=Jt.useState(0),xn=(0,Ne.Z)(Ye,2),fn=xn[0],ln=xn[1],Yn=(0,Jt.useRef)(new Map),Li=(0,Jt.useRef)(new He),Ge=(0,Jt.useRef)();function je(){mt.cancel(Ge.current)}function we(){var ai=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;je();var ui=function(){Yn.current.forEach(function(ze,yn){if(ze&&ze.offsetParent){var Ni=Zt(ze),Yi=Ni.offsetHeight;Li.current.get(yn)!==Yi&&Li.current.set(yn,Ni.offsetHeight)}}),ln(function(ze){return ze+1})};ai?ui():Ge.current=mt(ui)}function Ze(ai,ui){var qn=vn(ai),ze=Yn.current.get(qn);ui?(Yn.current.set(qn,ui),we()):Yn.current.delete(qn),!ze!=!ui&&(ui?wt==null||wt(ai):Ve==null||Ve(ai))}return(0,Jt.useEffect)(function(){return je},[]),[Ze,we,Li.current,fn]}function In(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var bn=In()?Jt.useLayoutEffect:Jt.useEffect,cn=function(wt,Ve){var Ye=Jt.useRef(!0);bn(function(){return wt(Ye.current)},Ve),bn(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},Xn=function(wt,Ve){cn(function(Ye){if(!Ye)return wt()},Ve)},$t=cn;function jt(vn){var wt=Jt.useRef();wt.current=vn;var Ve=Jt.useCallback(function(){for(var Ye,xn=arguments.length,fn=new Array(xn),ln=0;ln<xn;ln++)fn[ln]=arguments[ln];return(Ye=wt.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[wt].concat(fn))},[]);return Ve}function Ee(vn){var wt=React.useRef(!1),Ve=React.useState(vn),Ye=_slicedToArray(Ve,2),xn=Ye[0],fn=Ye[1];React.useEffect(function(){return wt.current=!1,function(){wt.current=!0}},[]);function ln(Yn,Li){Li&&wt.current||fn(Yn)}return[xn,ln]}function sn(vn){return vn!==void 0}function Tn(vn,wt){var Ve=wt||{},Ye=Ve.defaultValue,xn=Ve.value,fn=Ve.onChange,ln=Ve.postState,Yn=useState(function(){return sn(xn)?xn:sn(Ye)?typeof Ye=="function"?Ye():Ye:typeof vn=="function"?vn():vn}),Li=_slicedToArray(Yn,2),Ge=Li[0],je=Li[1],we=xn!==void 0?xn:Ge,Ze=ln?ln(we):we,ai=useEvent(fn),ui=useState([we]),qn=_slicedToArray(ui,2),ze=qn[0],yn=qn[1];useLayoutUpdateEffect(function(){var Yi=ze[0];Ge!==Yi&&ai(Ge,Yi)},[ze]),useLayoutUpdateEffect(function(){sn(xn)||je(xn)},[xn]);var Ni=useEvent(function(Yi,Dn){je(Yi,Dn),yn([we],Dn)});return[Ze,Ni]}var Le=Ft(31461);function gn(vn,wt,Ve){var Ye=React.useRef({});return(!("value"in Ye.current)||Ve(Ye.current.condition,wt))&&(Ye.current.value=vn(),Ye.current.condition=wt),Ye.current.value}function $e(vn,wt){typeof vn=="function"?vn(wt):_typeof(vn)==="object"&&vn&&"current"in vn&&(vn.current=wt)}function Fn(){for(var vn=arguments.length,wt=new Array(vn),Ve=0;Ve<vn;Ve++)wt[Ve]=arguments[Ve];var Ye=wt.filter(function(xn){return xn});return Ye.length<=1?Ye[0]:function(xn){wt.forEach(function(fn){$e(fn,xn)})}}function ke(){for(var vn=arguments.length,wt=new Array(vn),Ve=0;Ve<vn;Ve++)wt[Ve]=arguments[Ve];return useMemo(function(){return Fn.apply(void 0,wt)},wt,function(Ye,xn){return Ye.length!==xn.length||Ye.every(function(fn,ln){return fn!==xn[ln]})})}function fe(vn){var wt,Ve,Ye=isMemo(vn)?vn.type.type:vn.type;return!(typeof Ye=="function"&&!((wt=Ye.prototype)!==null&&wt!==void 0&&wt.render)||typeof vn=="function"&&!((Ve=vn.prototype)!==null&&Ve!==void 0&&Ve.render))}function Re(vn){return!isValidElement(vn)||isFragment(vn)?!1:fe(vn)}function dn(vn,wt,Ve,Ye){if(!wt.length)return Ve;var xn=_toArray(wt),fn=xn[0],ln=xn.slice(1),Yn;return!vn&&typeof fn=="number"?Yn=[]:Array.isArray(vn)?Yn=_toConsumableArray(vn):Yn=_objectSpread({},vn),Ye&&Ve===void 0&&ln.length===1?delete Yn[fn][ln[0]]:Yn[fn]=dn(Yn[fn],ln,Ve,Ye),Yn}function Te(vn,wt,Ve){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return wt.length&&Ye&&Ve===void 0&&!get(vn,wt.slice(0,-1))?vn:dn(vn,wt,Ve,Ye)}function Ht(vn){return _typeof(vn)==="object"&&vn!==null&&Object.getPrototypeOf(vn)===Object.prototype}function At(vn){return Array.isArray(vn)?[]:{}}var Ct=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Tt(){for(var vn=arguments.length,wt=new Array(vn),Ve=0;Ve<vn;Ve++)wt[Ve]=arguments[Ve];var Ye=At(wt[0]);return wt.forEach(function(xn){function fn(ln,Yn){var Li=new Set(Yn),Ge=get(xn,ln),je=Array.isArray(Ge);if(je||Ht(Ge)){if(!Li.has(Ge)){Li.add(Ge);var we=get(Ye,ln);je?Ye=Te(Ye,ln,[]):(!we||_typeof(we)!=="object")&&(Ye=Te(Ye,ln,At(Ge))),Ct(Ge).forEach(function(Ze){fn([].concat(_toConsumableArray(ln),[Ze]),Li)})}}else Ye=Te(Ye,ln,Ge)}fn([])}),Ye}var Xt={},kt=[],ee=function(wt){kt.push(wt)};function rn(vn,wt){if(0)var Ve}function on(vn,wt){if(0)var Ve}function Un(){Xt={}}function en(vn,wt,Ve){!wt&&!Xt[Ve]&&(vn(!1,Ve),Xt[Ve]=!0)}function Mn(vn,wt){en(rn,vn,wt)}function Ke(vn,wt){en(on,vn,wt)}Mn.preMessage=ee,Mn.resetWarned=Un,Mn.noteOnce=Ke;var jn=null,ni=10;function Oi(vn,wt,Ve,Ye,xn,fn,ln,Yn){var Li=Jt.useRef(),Ge=Jt.useState(null),je=(0,Ne.Z)(Ge,2),we=je[0],Ze=je[1];return $t(function(){if(we&&we.times<ni){if(!vn.current){Ze(function(ti){return(0,ie.Z)({},ti)});return}fn();var ai=we.targetAlign,ui=we.originAlign,qn=we.index,ze=we.offset,yn=vn.current.clientHeight,Ni=!1,Yi=ai,Dn=null;if(yn){for(var De=ai||ui,xi=0,Ui=0,Tr=0,Cn=Math.min(wt.length-1,qn),Ri=0;Ri<=Cn;Ri+=1){var ro=xn(wt[Ri]);Ui=xi;var Sa=Ve.get(ro);Tr=Ui+(Sa===void 0?Ye:Sa),xi=Tr}for(var bo=De==="top"?ze:yn-ze,ki=Cn;ki>=0;ki-=1){var Bi=xn(wt[ki]),Hi=Ve.get(Bi);if(Hi===void 0){Ni=!0;break}if(bo-=Hi,bo<=0)break}switch(De){case"top":Dn=Ui-ze;break;case"bottom":Dn=Tr-yn+ze;break;default:{var to=vn.current.scrollTop,Yr=to+yn;Ui<to?Yi="top":Tr>Yr&&(Yi="bottom")}}Dn!==null&&ln(Dn),Dn!==we.lastTop&&(Ni=!0)}Ni&&Ze(function(ti){return(0,ie.Z)((0,ie.Z)({},ti),{},{times:ti.times+1,targetAlign:Yi,lastTop:Dn})})}},[we,vn.current]),function(ai){if(ai==null){Yn();return}if(mt.cancel(Li.current),typeof ai=="number")ln(ai);else if(ai&&(0,Be.Z)(ai)==="object"){var ui,qn=ai.align;"index"in ai?ui=ai.index:ui=wt.findIndex(function(Ni){return xn(Ni)===ai.key});var ze=ai.offset,yn=ze===void 0?0:ze;Ze({times:0,index:ui,offset:yn,originAlign:qn})}}}function $n(vn,wt,Ve,Ye){var xn=Ve-vn,fn=wt-Ve,ln=Math.min(xn,fn)*2;if(Ye<=ln){var Yn=Math.floor(Ye/2);return Ye%2?Ve+Yn+1:Ve-Yn}return xn>fn?Ve-(Ye-fn):Ve+(Ye-xn)}function Ai(vn,wt,Ve){var Ye=vn.length,xn=wt.length,fn,ln;if(Ye===0&&xn===0)return null;Ye<xn?(fn=vn,ln=wt):(fn=wt,ln=vn);var Yn={__EMPTY_ITEM__:!0};function Li(ui){return ui!==void 0?Ve(ui):Yn}for(var Ge=null,je=Math.abs(Ye-xn)!==1,we=0;we<ln.length;we+=1){var Ze=Li(fn[we]),ai=Li(ln[we]);if(Ze!==ai){Ge=we,je=je||Ze!==Li(ln[we+1]);break}}return Ge===null?null:{index:Ge,multiple:je}}function Ki(vn,wt,Ve){var Ye=Jt.useState(vn),xn=(0,Ne.Z)(Ye,2),fn=xn[0],ln=xn[1],Yn=Jt.useState(null),Li=(0,Ne.Z)(Yn,2),Ge=Li[0],je=Li[1];return Jt.useEffect(function(){var we=Ai(fn||[],vn||[],wt);(we==null?void 0:we.index)!==void 0&&(Ve==null||Ve(we.index),je(vn[we.index])),ln(vn)},[vn]),[Ge]}var ii=(typeof navigator=="undefined"?"undefined":(0,Be.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),mi=ii,di=function(vn,wt){var Ve=(0,Jt.useRef)(!1),Ye=(0,Jt.useRef)(null);function xn(){clearTimeout(Ye.current),Ve.current=!0,Ye.current=setTimeout(function(){Ve.current=!1},50)}var fn=(0,Jt.useRef)({top:vn,bottom:wt});return fn.current.top=vn,fn.current.bottom=wt,function(ln){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Li=ln<0&&fn.current.top||ln>0&&fn.current.bottom;return Yn&&Li?(clearTimeout(Ye.current),Ve.current=!1):(!Li||Ve.current)&&xn(),!Ve.current&&Li}};function gi(vn,wt,Ve,Ye,xn){var fn=(0,Jt.useRef)(0),ln=(0,Jt.useRef)(null),Yn=(0,Jt.useRef)(null),Li=(0,Jt.useRef)(!1),Ge=di(wt,Ve);function je(ze,yn){mt.cancel(ln.current),fn.current+=yn,Yn.current=yn,!Ge(yn)&&(mi||ze.preventDefault(),ln.current=mt(function(){var Ni=Li.current?10:1;xn(fn.current*Ni),fn.current=0}))}function we(ze,yn){xn(yn,!0),mi||ze.preventDefault()}var Ze=(0,Jt.useRef)(null),ai=(0,Jt.useRef)(null);function ui(ze){if(vn){mt.cancel(ai.current),ai.current=mt(function(){Ze.current=null},2);var yn=ze.deltaX,Ni=ze.deltaY,Yi=ze.shiftKey,Dn=yn,De=Ni;(Ze.current==="sx"||!Ze.current&&Yi&&Ni&&!yn)&&(Dn=Ni,De=0,Ze.current="sx");var xi=Math.abs(Dn),Ui=Math.abs(De);Ze.current===null&&(Ze.current=Ye&&xi>Ui?"x":"y"),Ze.current==="y"?je(ze,De):we(ze,Dn)}}function qn(ze){vn&&(Li.current=ze.detail===Yn.current)}return[ui,qn]}var hr=14/15;function Or(vn,wt,Ve){var Ye=(0,Jt.useRef)(!1),xn=(0,Jt.useRef)(0),fn=(0,Jt.useRef)(null),ln=(0,Jt.useRef)(null),Yn,Li=function(Ze){if(Ye.current){var ai=Math.ceil(Ze.touches[0].pageY),ui=xn.current-ai;xn.current=ai,Ve(ui)&&Ze.preventDefault(),clearInterval(ln.current),ln.current=setInterval(function(){ui*=hr,(!Ve(ui,!0)||Math.abs(ui)<=.1)&&clearInterval(ln.current)},16)}},Ge=function(){Ye.current=!1,Yn()},je=function(Ze){Yn(),Ze.touches.length===1&&!Ye.current&&(Ye.current=!0,xn.current=Math.ceil(Ze.touches[0].pageY),fn.current=Ze.target,fn.current.addEventListener("touchmove",Li),fn.current.addEventListener("touchend",Ge))};Yn=function(){fn.current&&(fn.current.removeEventListener("touchmove",Li),fn.current.removeEventListener("touchend",Ge))},$t(function(){return vn&&wt.current.addEventListener("touchstart",je),function(){var we;(we=wt.current)===null||we===void 0||we.removeEventListener("touchstart",je),Yn(),clearInterval(ln.current)}},[vn])}var sr=20;function Di(){var vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ve=vn/wt*100;return isNaN(Ve)&&(Ve=0),Ve=Math.max(Ve,sr),Ve=Math.min(Ve,vn/2),Math.floor(Ve)}function jr(vn,wt,Ve,Ye){var xn=Jt.useMemo(function(){return[new Map,[]]},[vn,Ve.id,Ye]),fn=(0,Ne.Z)(xn,2),ln=fn[0],Yn=fn[1],Li=function(je){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je,Ze=ln.get(je),ai=ln.get(we);if(Ze===void 0||ai===void 0)for(var ui=vn.length,qn=Yn.length;qn<ui;qn+=1){var ze,yn=vn[qn],Ni=wt(yn);ln.set(Ni,qn);var Yi=(ze=Ve.get(Ni))!==null&&ze!==void 0?ze:Ye;if(Yn[qn]=(Yn[qn-1]||0)+Yi,Ni===je&&(Ze=qn),Ni===we&&(ai=qn),Ze!==void 0&&ai!==void 0)break}return{top:Yn[Ze-1]||0,bottom:Yn[ai]}};return Li}var ao=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],fa=[],_o={overflowY:"auto",overflowAnchor:"none"};function ta(vn,wt){var Ve=vn.prefixCls,Ye=Ve===void 0?"rc-virtual-list":Ve,xn=vn.className,fn=vn.height,ln=vn.itemHeight,Yn=vn.fullHeight,Li=Yn===void 0?!0:Yn,Ge=vn.style,je=vn.data,we=vn.children,Ze=vn.itemKey,ai=vn.virtual,ui=vn.direction,qn=vn.scrollWidth,ze=vn.component,yn=ze===void 0?"div":ze,Ni=vn.onScroll,Yi=vn.onVirtualScroll,Dn=vn.onVisibleChange,De=vn.innerProps,xi=vn.extraRender,Ui=vn.styles,Tr=(0,Dt.Z)(vn,ao),Cn=!!(ai!==!1&&fn&&ln),Ri=Cn&&je&&(ln*je.length>fn||!!qn),ro=ui==="rtl",Sa=ye()(Ye,(0,Ae.Z)({},"".concat(Ye,"-rtl"),ro),xn),bo=je||fa,ki=(0,Jt.useRef)(),Bi=(0,Jt.useRef)(),Hi=(0,Jt.useState)(0),to=(0,Ne.Z)(Hi,2),Yr=to[0],ti=to[1],or=(0,Jt.useState)(0),pl=(0,Ne.Z)(or,2),gs=pl[0],qa=pl[1],We=(0,Jt.useState)(!1),mr=(0,Ne.Z)(We,2),xo=mr[0],ir=mr[1],Ea=function(){ir(!0)},mo=function(){ir(!1)},To=Jt.useCallback(function(eo){return typeof Ze=="function"?Ze(eo):eo==null?void 0:eo[Ze]},[Ze]),so={getKey:To};function Hr(eo){ti(function(Oo){var Wa;typeof eo=="function"?Wa=eo(Oo):Wa=eo;var ps=Rr(Wa);return ki.current.scrollTop=ps,ps})}var ea=(0,Jt.useRef)({start:0,end:bo.length}),Ln=(0,Jt.useRef)(),La=Ki(bo,To),pn=(0,Ne.Z)(La,1),vo=pn[0];Ln.current=vo;var Fs=Ie(To,null,null),Ia=(0,Ne.Z)(Fs,4),$s=Ia[0],Ca=Ia[1],Fo=Ia[2],Fa=Ia[3],al=Jt.useMemo(function(){if(!Cn)return{scrollHeight:void 0,start:0,end:bo.length-1,offset:void 0};if(!Ri){var eo;return{scrollHeight:((eo=Bi.current)===null||eo===void 0?void 0:eo.offsetHeight)||0,start:0,end:bo.length-1,offset:void 0}}for(var Oo=0,Wa,ps,$i,ad=bo.length,Qh=0;Qh<ad;Qh+=1){var Fl=bo[Qh],sd=To(Fl),_h=Fo.get(sd),wi=Oo+(_h===void 0?ln:_h);wi>=Yr&&Wa===void 0&&(Wa=Qh,ps=Oo),wi>Yr+fn&&$i===void 0&&($i=Qh),Oo=wi}return Wa===void 0&&(Wa=0,ps=0,$i=Math.ceil(fn/ln)),$i===void 0&&($i=bo.length-1),$i=Math.min($i+1,bo.length-1),{scrollHeight:Oo,start:Wa,end:$i,offset:ps}},[Ri,Cn,Yr,bo,Fa,fn]),la=al.scrollHeight,yi=al.start,Qt=al.end,os=al.offset;ea.current.start=yi,ea.current.end=Qt;var uu=Jt.useState({width:0,height:fn}),hu=(0,Ne.Z)(uu,2),Ys=hu[0],cu=hu[1],tl=function(Oo){cu({width:Oo.width||Oo.offsetWidth,height:Oo.height||Oo.offsetHeight})},Mh=(0,Jt.useRef)(),Cu=(0,Jt.useRef)(),Ma=Jt.useMemo(function(){return Di(Ys.width,qn)},[Ys.width,qn]),Ja=Jt.useMemo(function(){return Di(Ys.height,la)},[Ys.height,la]),cr=la-fn,Xi=(0,Jt.useRef)(cr);Xi.current=cr;function Rr(eo){var Oo=eo;return Number.isNaN(Xi.current)||(Oo=Math.min(Oo,Xi.current)),Oo=Math.max(Oo,0),Oo}var un=Yr<=0,vr=Yr>=cr,oo=di(un,vr),za=function(){return{x:ro?-gs:gs,y:Yr}},ka=(0,Jt.useRef)(za()),Na=jt(function(){if(Yi){var eo=za();(ka.current.x!==eo.x||ka.current.y!==eo.y)&&(Yi(eo),ka.current=eo)}});function Ws(eo,Oo){var Wa=eo;Oo?((0,ue.flushSync)(function(){qa(Wa)}),Na()):Hr(Wa)}function xl(eo){var Oo=eo.currentTarget.scrollTop;Oo!==Yr&&Hr(Oo),Ni==null||Ni(eo),Na()}var wl=function(Oo){var Wa=Oo,ps=qn-Ys.width;return Wa=Math.max(Wa,0),Wa=Math.min(Wa,ps),Wa},Xh=jt(function(eo,Oo){Oo?((0,ue.flushSync)(function(){qa(function(Wa){var ps=Wa+(ro?-eo:eo);return wl(ps)})}),Na()):Hr(function(Wa){var ps=Wa+eo;return ps})}),fh=gi(Cn,un,vr,!!qn,Xh),Xe=(0,Ne.Z)(fh,2),bl=Xe[0],Au=Xe[1];Or(Cn,ki,function(eo,Oo){return oo(eo,Oo)?!1:(bl({preventDefault:function(){},deltaY:eo}),!0)}),$t(function(){function eo(Wa){Cn&&Wa.preventDefault()}var Oo=ki.current;return Oo.addEventListener("wheel",bl),Oo.addEventListener("DOMMouseScroll",Au),Oo.addEventListener("MozMousePixelScroll",eo),function(){Oo.removeEventListener("wheel",bl),Oo.removeEventListener("DOMMouseScroll",Au),Oo.removeEventListener("MozMousePixelScroll",eo)}},[Cn]),$t(function(){qn&&qa(function(eo){return wl(eo)})},[Ys.width,qn]);var kh=function(){var Oo,Wa;(Oo=Mh.current)===null||Oo===void 0||Oo.delayHidden(),(Wa=Cu.current)===null||Wa===void 0||Wa.delayHidden()},as=Oi(ki,bo,Fo,ln,To,function(){return Ca(!0)},Hr,kh);Jt.useImperativeHandle(wt,function(){return{getScrollInfo:za,scrollTo:function(Oo){function Wa(ps){return ps&&(0,Be.Z)(ps)==="object"&&("left"in ps||"top"in ps)}Wa(Oo)?(Oo.left!==void 0&&qa(wl(Oo.left)),as(Oo.top)):as(Oo)}}}),$t(function(){if(Dn){var eo=bo.slice(yi,Qt+1);Dn(eo,bo)}},[yi,Qt,bo]);var bh=jr(bo,To,Fo,ln),Fh=xi==null?void 0:xi({start:yi,end:Qt,virtual:Ri,offsetX:gs,offsetY:os,rtl:ro,getSize:bh}),Jh=re(bo,yi,Qt,qn,$s,we,so),ja=null;fn&&(ja=(0,ie.Z)((0,Ae.Z)({},Li?"height":"maxHeight",fn),_o),Cn&&(ja.overflowY="hidden",qn&&(ja.overflowX="hidden"),xo&&(ja.pointerEvents="none")));var Ps={};return ro&&(Ps.dir="rtl"),Jt.createElement("div",(0,Lt.Z)({style:(0,ie.Z)((0,ie.Z)({},Ge),{},{position:"relative"}),className:Sa},Ps,Tr),Jt.createElement(Je.Z,{onResize:tl},Jt.createElement(yn,{className:"".concat(Ye,"-holder"),style:ja,ref:ki,onScroll:xl,onMouseEnter:kh},Jt.createElement(It,{prefixCls:Ye,height:la,offsetX:gs,offsetY:os,scrollWidth:qn,onInnerResize:Ca,ref:Bi,innerProps:De,rtl:ro,extra:Fh},Jh))),Ri&&la>fn&&Jt.createElement(zt,{ref:Mh,prefixCls:Ye,scrollOffset:Yr,scrollRange:la,rtl:ro,onScroll:Ws,onStartMove:Ea,onStopMove:mo,spinSize:Ja,containerSize:Ys.height,style:Ui==null?void 0:Ui.verticalScrollBar,thumbStyle:Ui==null?void 0:Ui.verticalScrollBarThumb}),Ri&&qn&&Jt.createElement(zt,{ref:Cu,prefixCls:Ye,scrollOffset:gs,scrollRange:qn,rtl:ro,onScroll:Ws,onStartMove:Ea,onStopMove:mo,spinSize:Ma,containerSize:Ys.width,horizontal:!0,style:Ui==null?void 0:Ui.horizontalScrollBar,thumbStyle:Ui==null?void 0:Ui.horizontalScrollBarThumb}))}var Ga=Jt.forwardRef(ta);Ga.displayName="List";var zo=Ga,gr=zo},66392:function(Pn,Hn){"use strict";var Ft;var Lt=Symbol.for("react.element"),ie=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),Ae=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),Jt=Symbol.for("react.context"),ue=Symbol.for("react.server_context"),ce=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),Nt=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 Lt:switch(ht=ht.type,ht){case Be:case Ae:case Ne:case ye:case Je:return ht;default:switch(ht=ht&&ht.$$typeof,ht){case ue:case Jt:case ce:case It:case de:case Dt:return ht;default:return lt}}case ie:return lt}}}Ft=Jt,Ft=Dt,Ft=Lt,Ft=ce,Ft=Be,Ft=It,Ft=de,Ft=ie,Ft=Ae,Ft=Ne,Ft=ye,Ft=Je,Ft=function(){return!1},Ft=function(){return!1},Ft=function(ht){return et(ht)===Jt},Ft=function(ht){return et(ht)===Dt},Ft=function(ht){return typeof ht=="object"&&ht!==null&&ht.$$typeof===Lt},Ft=function(ht){return et(ht)===ce},Ft=function(ht){return et(ht)===Be},Ft=function(ht){return et(ht)===It},Ft=function(ht){return et(ht)===de},Ft=function(ht){return et(ht)===ie},Ft=function(ht){return et(ht)===Ae},Ft=function(ht){return et(ht)===Ne},Ft=function(ht){return et(ht)===ye},Ft=function(ht){return et(ht)===Je},Ft=function(ht){return typeof ht=="string"||typeof ht=="function"||ht===Be||ht===Ae||ht===Ne||ht===ye||ht===Je||ht===Nt||typeof ht=="object"&&ht!==null&&(ht.$$typeof===It||ht.$$typeof===de||ht.$$typeof===Dt||ht.$$typeof===Jt||ht.$$typeof===ce||ht.$$typeof===nt||ht.getModuleId!==void 0)},Ft=et},31461:function(Pn,Hn,Ft){"use strict";Ft(66392)},25510:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAg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NyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpN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";Pn.exports=Ft.p+"static/AssistantCode3.a8740efb.jpeg"},4977:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ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GOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},17423:function(Pn,Hn,Ft){"use strict";Ft.d(Hn,{Z:function(){return ue}});const Lt=ce=>typeof ce=="object"&&ce!=null&&ce.nodeType===1,ie=(ce,ye)=>(!ye||ce!=="hidden")&&ce!=="visible"&&ce!=="clip",Be=(ce,ye)=>{if(ce.clientHeight<ce.scrollHeight||ce.clientWidth<ce.scrollWidth){const Je=getComputedStyle(ce,null);return ie(Je.overflowY,ye)||ie(Je.overflowX,ye)||(de=>{const It=(Nt=>{if(!Nt.ownerDocument||!Nt.ownerDocument.defaultView)return null;try{return Nt.ownerDocument.defaultView.frameElement}catch(nt){return null}})(de);return!!It&&(It.clientHeight<de.scrollHeight||It.clientWidth<de.scrollWidth)})(ce)}return!1},Ne=(ce,ye,Je,de,It,Nt,nt,et)=>Nt<ce&&nt>ye||Nt>ce&&nt<ye?0:Nt<=ce&&et<=Je||nt>=ye&&et>=Je?Nt-ce-de:nt>ye&&et<Je||Nt<ce&&et>Je?nt-ye+It:0,Ae=ce=>{const ye=ce.parentElement;return ye==null?ce.getRootNode().host||null:ye},Dt=(ce,ye)=>{var Je,de,It,Nt;if(typeof document=="undefined")return[];const{scrollMode:nt,block:et,inline:ht,boundary:lt,skipOverflowHiddenElements:gt}=ye,mt=typeof lt=="function"?lt:Tn=>Tn!==lt;if(!Lt(ce))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,Mt=[];let zt=ce;for(;Lt(zt)&&mt(zt);){if(zt=Ae(zt),zt===St){Mt.push(zt);break}zt!=null&&zt===document.body&&Be(zt)&&!Be(document.documentElement)||zt!=null&&Be(zt,gt)&&Mt.push(zt)}const qt=(de=(Je=window.visualViewport)==null?void 0:Je.width)!=null?de:innerWidth,re=(Nt=(It=window.visualViewport)==null?void 0:It.height)!=null?Nt:innerHeight,{scrollX:_t,scrollY:Zt}=window,{height:Pe,width:ge,top:Fe,right:He,bottom:Ie,left:In}=ce.getBoundingClientRect(),{top:bn,right:cn,bottom:Xn,left:$t}=(Tn=>{const Le=window.getComputedStyle(Tn);return{top:parseFloat(Le.scrollMarginTop)||0,right:parseFloat(Le.scrollMarginRight)||0,bottom:parseFloat(Le.scrollMarginBottom)||0,left:parseFloat(Le.scrollMarginLeft)||0}})(ce);let jt=et==="start"||et==="nearest"?Fe-bn:et==="end"?Ie+Xn:Fe+Pe/2-bn+Xn,Ee=ht==="center"?In+ge/2-$t+cn:ht==="end"?He+cn:In-$t;const sn=[];for(let Tn=0;Tn<Mt.length;Tn++){const Le=Mt[Tn],{height:gn,width:$e,top:Fn,right:ke,bottom:fe,left:Re}=Le.getBoundingClientRect();if(nt==="if-needed"&&Fe>=0&&In>=0&&Ie<=re&&He<=qt&&Fe>=Fn&&Ie<=fe&&In>=Re&&He<=ke)return sn;const dn=getComputedStyle(Le),Te=parseInt(dn.borderLeftWidth,10),Ht=parseInt(dn.borderTopWidth,10),At=parseInt(dn.borderRightWidth,10),Ct=parseInt(dn.borderBottomWidth,10);let Tt=0,Xt=0;const kt="offsetWidth"in Le?Le.offsetWidth-Le.clientWidth-Te-At:0,ee="offsetHeight"in Le?Le.offsetHeight-Le.clientHeight-Ht-Ct:0,rn="offsetWidth"in Le?Le.offsetWidth===0?0:$e/Le.offsetWidth:0,on="offsetHeight"in Le?Le.offsetHeight===0?0:gn/Le.offsetHeight:0;if(St===Le)Tt=et==="start"?jt:et==="end"?jt-re:et==="nearest"?Ne(Zt,Zt+re,re,Ht,Ct,Zt+jt,Zt+jt+Pe,Pe):jt-re/2,Xt=ht==="start"?Ee:ht==="center"?Ee-qt/2:ht==="end"?Ee-qt:Ne(_t,_t+qt,qt,Te,At,_t+Ee,_t+Ee+ge,ge),Tt=Math.max(0,Tt+Zt),Xt=Math.max(0,Xt+_t);else{Tt=et==="start"?jt-Fn-Ht:et==="end"?jt-fe+Ct+ee:et==="nearest"?Ne(Fn,fe,gn,Ht,Ct+ee,jt,jt+Pe,Pe):jt-(Fn+gn/2)+ee/2,Xt=ht==="start"?Ee-Re-Te:ht==="center"?Ee-(Re+$e/2)+kt/2:ht==="end"?Ee-ke+At+kt:Ne(Re,ke,$e,Te,At+kt,Ee,Ee+ge,ge);const{scrollLeft:Un,scrollTop:en}=Le;Tt=on===0?0:Math.max(0,Math.min(en+Tt/on,Le.scrollHeight-gn/on+ee)),Xt=rn===0?0:Math.max(0,Math.min(Un+Xt/rn,Le.scrollWidth-$e/rn+kt)),jt+=en-Tt,Ee+=Un-Xt}sn.push({el:Le,top:Tt,left:Xt})}return sn},Jt=ce=>ce===!1?{block:"end",inline:"nearest"}:(ye=>ye===Object(ye)&&Object.keys(ye).length!==0)(ce)?ce:{block:"start",inline:"nearest"};function ue(ce,ye){if(!ce.isConnected||!(It=>{let Nt=It;for(;Nt&&Nt.parentNode;){if(Nt.parentNode===document)return!0;Nt=Nt.parentNode instanceof ShadowRoot?Nt.parentNode.host:Nt.parentNode}return!1})(ce))return;const Je=(It=>{const Nt=window.getComputedStyle(It);return{top:parseFloat(Nt.scrollMarginTop)||0,right:parseFloat(Nt.scrollMarginRight)||0,bottom:parseFloat(Nt.scrollMarginBottom)||0,left:parseFloat(Nt.scrollMarginLeft)||0}})(ce);if((It=>typeof It=="object"&&typeof It.behavior=="function")(ye))return ye.behavior(Dt(ce,ye));const de=typeof ye=="boolean"||ye==null?void 0:ye.behavior;for(const{el:It,top:Nt,left:nt}of Dt(ce,Jt(ye))){const et=Nt-Je.top+Je.bottom,ht=nt-Je.left+Je.right;It.scroll({top:et,left:ht,behavior:de})}}}}]);
|