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.
1261 lines
2.5 MiB
1261 lines
2.5 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[5625],{53555:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return St}});var Jt=he(87462),xt=he(67294),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Vt=qt,Rt=he(17207),Dt=function(Nt,Pt){return xt.createElement(Rt.Z,(0,Jt.Z)({},Nt,{ref:Pt,icon:Vt}))},St=xt.forwardRef(Dt)},91034:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return St}});var Jt=he(87462),xt=he(67294),qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Vt=qt,Rt=he(17207),Dt=function(Nt,Pt){return xt.createElement(Rt.Z,(0,Jt.Z)({},Nt,{ref:Pt,icon:Vt}))},St=xt.forwardRef(Dt)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(An,jn){"use strict";jn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function An(vt,et,tt,st){tt===void 0&&(tt=0),st===void 0&&(st=1/0),this._name=vt,this._defaultValue=et,this._minimum=tt,this._maximum=st}Object.defineProperty(An.prototype,"name",{get:function(){return this._name},set:function(vt){if(typeof vt!="string"||vt==="")throw new Error("Shape name must be a valid string.");this._name=vt}}),Object.defineProperty(An.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("The default value must be a real number, not: "+vt);this._defaultValue=vt}}),Object.defineProperty(An.prototype,"minimum",{get:function(){return this._minimum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Minimum must be a real number, not: "+vt);this._minimum=vt}}),Object.defineProperty(An.prototype,"maximum",{get:function(){return this._maximum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Maximum must be a real number, not: "+vt);this._maximum=vt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(vt,et){var tt=go.Shape._FigureParameters[vt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(vt,et,tt){if(!(tt instanceof An))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var st=go.Shape._FigureParameters[vt];st||(st=[],go.Shape._FigureParameters[vt]=st),st[et]=tt};var jn=[];function he(vt,et){var tt=jn.pop();return tt===void 0?new go.Point(vt,et):(tt.x=vt,tt.y=et,tt)}function Jt(){var vt=jn.pop();return vt===void 0?new go.Point:vt}function xt(vt){jn.push(vt)}function qt(vt,et,tt,st,rt,ut,ct,gt,ft){ft||(ft=new go.Point);var kt=vt-tt,jt=rt-ct,Ht=NaN,Ot=NaN;if(kt===0)if(jt===0)vt===tt&&(Ht=vt,Ot=et);else{var te=(ut-gt)/jt,ne=ut-te*rt;Ht=vt,Ot=te*Ht+ne}else if(jt===0){var Xt=(et-st)/kt,ce=et-Xt*vt;Ht=rt,Ot=Xt*Ht+ce}else{var Xt=(et-st)/kt,te=(ut-gt)/jt,ce=et-Xt*vt,ne=ut-te*rt;Ht=(ne-ce)/(Xt-te),Ot=Xt*Ht+ce}return ft.x=Ht,ft.y=Ot,ft}function Vt(vt,et,tt,st,rt,ut,ct,gt,ft,kt,jt,Ht,Ot,te){var ne=1-ft,Xt=ft,ce=vt*ne+tt*Xt,me=et*ne+st*Xt,Pe=tt*ne+rt*Xt,De=st*ne+ut*Xt,Ve=rt*ne+ct*Xt,we=ut*ne+gt*Xt,Qe=ce*ne+Pe*Xt,ae=me*ne+De*Xt,_t=Pe*ne+Ve*Xt,$t=De*ne+we*Xt,re=Qe*ne+_t*Xt,pe=ae*ne+$t*Xt;kt.x=ce,kt.y=me,jt.x=Qe,jt.y=ae,Ht.x=re,Ht.y=pe,Ot.x=_t,Ot.y=$t,te.x=Ve,te.y=we}var Rt=new go.Spot(.156,.156),Dt=new go.Spot(.844,.844),St=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new An("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=5),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*St,ut=new go.Geometry().add(new go.PathFigure(st,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-st)).add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,st,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,st)).add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()));return rt>1&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=tt/2,st.endX=et,st.endY=tt/2,st}),go.Shape.defineFigureGenerator("LineV",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et/2,st.startY=0,st.endX=et/2,st.endY=tt,st}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(vt,et,tt){var st=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(st*et,(1-st)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(vt,et,tt){var st=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close()));return rt.spot1=Rt,rt.spot2=Dt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=0,st.endX=et,st.endY=tt,st}),go.Shape.defineFigureGenerator("Line2",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et,st.startY=0,st.endX=0,st.endY=tt,st}),go.Shape.defineFigureGenerator("Curve1",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,St*et,0,et,(1-St)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,St*tt,(1-St)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,St*tt,St*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-St)*et,0,0,(1-St)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new An("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=.1:st<-1?st=-1:st>1&&(st=1);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new An("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=10:st<-et?st=-et:st>et&&(st=et);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("Trapezoid1",0,new An("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=.2:st<.5?st=-.5:st>.5&&(st=.5);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new An("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=20:st<-et?st=-et/2:st>et&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("ManualOperation",0,new An("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=10:st<-et?st=-et/2:st>et&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}});var Et=[];function Nt(){var vt=Et.pop();return vt===void 0?[]:vt}function Pt(vt){vt.length=0,Et.push(vt)}function Ct(vt){for(var et=Nt(),tt=.5,st=.5,rt=Math.PI*1.5,ut=0,ct=0;ct<vt;ct++)ut=2*Math.PI/vt*ct+rt,et[ct]=new go.Point(st+tt*Math.cos(ut),st+tt*Math.sin(ut));return et.push(et[0]),et}function Lt(vt){var et=Ft(vt),tt=Nt();tt[0]=et[0];for(var st=1,rt=1;st<et.length;st+=2,rt+=3)tt[rt]=et[st],tt[rt+1]=et[st],tt[rt+2]=et[st+1];return Pt(et),tt}function Ft(vt){for(var et=Ct(vt),tt=Nt(),st=Math.floor(et.length/2),rt=et.length-1,ut=vt%2===0?2:1,ct=0;ct<rt;ct++){var gt=et[ct],ft=et[ct+1],kt=et[(st+ct-1)%rt],jt=et[(st+ct+ut)%rt];tt[ct*2]=gt,tt[ct*2+1]=qt(gt.x,gt.y,kt.x,kt.y,ft.x,ft.y,jt.x,jt.y,new go.Point)}return tt[tt.length]=tt[0],Pt(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(vt,et,tt){var st=Ct(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<5;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(vt,et,tt){var st=Ct(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<6;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(vt,et,tt){var st=Ct(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<7;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(vt,et,tt){var st=Ct(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<8;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(vt,et,tt){var st=Ct(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<9;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(vt,et,tt){var st=Ct(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(vt,et,tt){var st=Ct(12),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(vt,et,tt){var st=Ft(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(vt,et,tt){var st=Ft(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(vt,et,tt){var st=Ft(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<14;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(vt,et,tt){var st=Ft(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<16;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(vt,et,tt){var st=Ft(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<18;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(vt,et,tt){var st=Ft(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<20;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Pt(st),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(vt,et,tt){var st=Lt(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(vt,et,tt){var st=Lt(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(vt,et,tt){var st=Lt(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(vt,et,tt){var st=Lt(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(vt,et,tt){var st=Lt(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(vt,et,tt){var st=Lt(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Pt(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new An("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new An("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(vt,et,tt){var st=vt?vt.parameter1:NaN,rt=vt?vt.parameter2:NaN;isNaN(st)&&(st=8),isNaN(rt)&&(rt=8);var ut=new go.Geometry,ct=new go.PathFigure(0,0,!0);return ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st<et/2&&rt<tt/2&&(ct.add(new go.PathSegment(go.PathSegment.Move,st,rt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,rt).close())),ut.setSpots(0,0,1,1,st,rt,-st,-rt),ut}),go.Shape.setFigureParameter("Ring",0,new An("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=8);var rt=et/2,ut=new go.Geometry,ct=new go.PathFigure(et,et/2,!0);ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var gt=Math.max(rt-st,0);return gt>0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+gt,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,gt,gt).close())),ut.spot1=Rt,ut.spot2=Dt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(vt,et,tt){var st=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(st*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close())).setSpots(st/2,st/2,1-st/2,1-st/2)}),go.Shape.setFigureParameter("Pie",0,new An("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new An("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(vt,et,tt){var st=vt?vt.parameter1:NaN,rt=vt?vt.parameter2:NaN;isNaN(st)&&(st=0),isNaN(rt)&&(rt=315);var ut=st%360;ut<0&&(ut+=360);var ct=rt%360,gt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(gt,gt).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,gt,gt,gt,gt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(vt,et,tt){var st=St/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-st)*tt,(rt+st)*et,(ut+st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new An("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(vt,et,tt){var st=vt?vt.parameter1:NaN;if((isNaN(st)||st<0)&&(st=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ut=et/2,ct=tt/2,gt=Math.atan2(tt,et),ft=st-Math.min(Math.cos(gt)*st/2,ut),kt=st-Math.min(Math.sin(gt)*st/2,ct),rt=new go.Geometry,jt=new go.PathFigure(ft,0,!0);return rt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,et-ft,0)),jt.add(new go.PathSegment(go.PathSegment.Line,et,kt)),jt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,et,tt-kt)),jt.add(new go.PathSegment(go.PathSegment.Line,et-ft,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ft,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,tt-kt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,0,kt).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new An("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new An("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new An("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-st)*et,.25*tt,Math.abs(1-st)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,St*et,0,et,(.5-St/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+St/2)*tt,St*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,gt=0,ft=ut*St;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+gt)*tt,(.5-ut+ct)*et,(.5+ft+gt)*tt,(.5-ft+ct)*et,(.5+ut+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+gt)*tt,(.5+ft+ct)*et,(.5+ut+gt)*tt,(.5+ut+ct)*et,(.5+ft+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+gt)*tt,(1-.5+ut+ct)*et,(.5-ft+gt)*tt,(.5+ft+ct)*et,(.5-ut+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-ft+ct)*et,(.5-ut+gt)*tt,(.5-ut+ct+.05)*et,(.5-ft+gt-.02)*tt)),ut=.2,ct=0,gt=-.3,ft=ut*St,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+gt)*tt,(.5+ft+ct)*et,(.5+ut+gt)*tt,(.5+ut+ct)*et,(.5+ft+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+gt)*tt,(1-.5+ut+ct)*et,(.5-ft+gt)*tt,(.5+ft+ct)*et,(.5-ut+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+gt)*tt,(.5-ft+ct)*et,(.5-ut+gt)*tt,(.5-ut+ct)*et,(.5-ft+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ft+ct)*et,(.5+ut+gt)*tt,(.5-ut+ct)*et,(.5+ft+gt)*tt,(.5-ft+ct)*et,(.5+ut+gt)*tt)),ut=.2,ct=-.3,gt=0,ft=ut*St,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+gt)*tt,(1-.5+ut+ct-.05)*et,(.5-ft+gt-.02)*tt,(.5+ft+ct)*et,(.5-ut+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+gt)*tt,(.5-ft+ct)*et,(.5-ut+gt)*tt,(.5-ut+ct)*et,(.5-ft+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+gt)*tt,(.5-ut+ct)*et,(.5+ft+gt)*tt,(.5-ft+ct)*et,(.5+ut+gt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+ft+ct)*et,(.5+ut+gt)*tt,(.5+ut+ct)*et,(.5+ft+gt)*tt).close()),st.setSpots(.06,.33,.93,.68),st}),go.Shape.defineFigureGenerator("YinYang",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,gt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,gt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*gt,ut*et,ut*et).close()),rt=new go.PathFigure(et*.5,0,!1),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),gt=.75,rt=new go.PathFigure((ct+ut)*et,gt*tt,!0),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*gt,ut*et,ut*et).close()),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Peace",function(vt,et,tt){var st=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,st*et,st*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=.5,ct=.5,gt=.5,ft=new go.PathFigure(ct*et,(gt-ut)*tt);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),ut=.4,rt=St*.4;var kt=Jt(),jt=Jt(),Ht=Jt(),Ot=Jt();Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.42,kt,jt,Ht,Ot,Ot);var te=Jt(),ne=Jt(),Xt=Jt();Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.58,Ot,Ot,Xt,te,ne);var ce=Jt(),me=Jt(),Pe=Jt();Vt(ct,gt+ut,ct-rt,gt+ut,ct-ut,gt+rt,ct-ut,gt,.42,ce,me,Pe,Ot,Ot);var De=Jt(),Ve=Jt(),we=Jt();return Vt(ct,gt+ut,ct-rt,gt+ut,ct-ut,gt+rt,ct-ut,gt,.58,Ot,Ot,we,De,Ve),ft.add(new go.PathSegment(go.PathSegment.Move,we.x*et,we.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,De.x*et,De.y*tt,Ve.x*et,Ve.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*et,Ht.y*tt,kt.x*et,kt.y*tt,jt.x*et,jt.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,we.x*et,we.y*tt).close()),ft.add(new go.PathSegment(go.PathSegment.Move,Pe.x*et,Pe.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,Xt.x*et,Xt.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,te.x*et,te.y*tt,ne.x*et,ne.y*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*et,Pe.y*tt,ce.x*et,ce.y*tt,me.x*et,me.y*tt).close()),xt(kt),xt(jt),xt(Ht),xt(Ot),xt(te),xt(ne),xt(Xt),xt(ce),xt(me),xt(Pe),xt(De),xt(Ve),xt(we),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Fragile",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new An("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30),st>et&&(st=et);var rt=(et-st)/2,ut=rt+st;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(vt,et,tt){var st=new go.Geometry,rt=St*.4,ut=.4,ct=.5,gt=.5,ft=Jt(),kt=Jt(),jt=Jt(),Ht=Jt(),Ot=new go.PathFigure((ct-ut)*et,gt*tt,!1);st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt)),Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.44,jt,Ht,kt,ft,ft),Ot.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*tt,jt.x*et,jt.y*tt,Ht.x*et,Ht.y*tt));var te=he(kt.x,kt.y);Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.56,ft,ft,kt,jt,Ht);var ne=he(kt.x,kt.y);Ot.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.95*.9)*et,te.y*.1*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,te.y*.1*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,(ne.x*.1+.9)*et,.15*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,(ne.x*.1+.9)*et,(ne.y*.1+.05*.9)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,ne.x*et,ne.y*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,jt.x*et,jt.y*tt,Ht.x*et,Ht.y*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt)),ut=.35,rt=St*.35;var Xt=new go.PathFigure(ct*et,(gt-ut)*tt,!1);st.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt));var ce=new go.PathFigure((ct-ut)*et,gt*tt,!1);return st.add(ce),xt(ft),xt(kt),xt(jt),xt(Ht),xt(te),xt(ne),st.spot1=new go.Spot(.202,.257),st.spot2=new go.Spot(.792,.739),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("GenderFemale",function(vt,et,tt){var st=new go.Geometry,rt=.375,ut=0,ct=-.125,gt=rt*St,ft=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+gt+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+gt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-gt+ct)*tt,(.5+gt+ut)*et,(.5-rt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-gt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-gt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+gt+ct)*tt,(.5-gt+ut)*et,(.5+rt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,ct=-.125,gt=rt*St;var ft=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+gt+ct)*tt,(.5+gt+ut)*et,(.5+rt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-gt+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+gt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-gt+ct)*tt,(.5-gt+ut)*et,(.5-rt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+gt+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-gt+ct)*tt));var ft=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);return st.add(ft),st.spot1=new go.Spot(.232,.136),st.spot2=new go.Spot(.682,.611),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicImplies",function(vt,et,tt){var st=vt?vt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(vt,et,tt){var st=vt?vt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(vt,et,tt){var st=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicTruth",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(vt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(vt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new An("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new An("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-st)*et,ct=(.5-rt/2)*tt,gt=(.5+rt/2)*tt,ft=new go.Geometry,kt=new go.PathFigure(0,ct,!0);ft.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),kt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,gt)),kt.add(new go.PathSegment(go.PathSegment.Line,0,gt).close()),ft.spot1=new go.Spot(0,ct/tt);var jt=qt(0,gt/tt,1,gt/tt,ut/et,1,1,.5,Jt());return ft.spot2=new go.Spot(jt.x,jt.y),xt(jt),ft}),go.Shape.setFigureParameter("Arrow2",0,new An("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new An("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=30),st>et&&(st=et);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-st,ct=(tt-rt)/2,gt=ct+rt,ft=new go.Geometry,kt=new go.PathFigure(0,ct,!0);ft.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),kt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),kt.add(new go.PathSegment(go.PathSegment.Line,ut,gt)),kt.add(new go.PathSegment(go.PathSegment.Line,0,gt).close()),ft.spot1=new go.Spot(0,ct/tt);var jt=qt(0,gt/tt,1,gt/tt,ut/et,1,1,.5,Jt());return ft.spot2=new go.Spot(jt.x,jt.y),xt(jt),ft}),go.Shape.defineFigureGenerator("Chevron",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("DoubleArrow",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),st}),go.Shape.setFigureParameter("DoubleEndArrow",0,new An("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,gt=new go.PathFigure(et,.5*tt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var ft=qt(0,.5,.3,0,0,rt/tt,.1,rt/tt,Jt());return ct.spot1=new go.Spot(ft.x,ft.y),ft=qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ft),ct.spot2=new go.Spot(ft.x,ft.y),xt(ft),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new An("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new An("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,gt=(tt-rt)/2,ft=gt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,gt=0,ft=tt):(ut=0,ct=tt,gt=0,ft=tt));var kt=new go.Geometry,jt=new go.PathFigure(et,.5*tt,!0);kt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),jt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),jt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt).close());var Ht=qt(0,.5,.3,gt/tt,0,ut/tt,1,ut/tt,Jt());return kt.spot1=new go.Spot(Ht.x,Ht.y),Ht=qt(.7,ft/tt,1,.5,0,ct/tt,1,ct/tt,Ht),kt.spot2=new go.Spot(Ht.x,Ht.y),xt(Ht),kt}),go.Shape.setFigureParameter("IBeamArrow",0,new An("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,gt=new go.PathFigure(et,.5*tt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var ft=qt(.7,1,1,.5,0,ut/tt,1,ut/tt,Jt());return ct.spot2=new go.Spot(ft.x,ft.y),xt(ft),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new An("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new An("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,gt=(tt-rt)/2,ft=gt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,gt=0,ft=tt):(ut=0,ct=tt,gt=0,ft=tt));var kt=new go.Geometry,jt=new go.PathFigure(et,.5*tt,!0);kt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),jt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),jt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),jt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt).close()),kt.spot1=new go.Spot(0,ut/tt);var Ht=qt(.7,ft/tt,1,.5,0,ct/tt,1,ct/tt,Jt());return kt.spot2=new go.Spot(Ht.x,Ht.y),xt(Ht),kt}),go.Shape.setFigureParameter("Pointer",0,new An("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(st,.35);var ct=qt(.2,.65,1,.65,0,1,1,.5,Jt());return rt.spot2=new go.Spot(ct.x,ct.y),xt(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new An("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt.spot1=new go.Spot(st,.35);var ct=qt(0,.65,1,.65,0,1,1,.5,Jt());return rt.spot2=new go.Spot(ct.x,ct.y),xt(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new An("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.4);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,gt=new go.PathFigure(et,.5*tt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var ft=qt(.7,1,1,.5,0,ut/tt,1,ut/tt,Jt());return ct.spot2=new go.Spot(ft.x,ft.y),xt(ft),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new An("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=50);var rt=(tt-st)/2,ut=rt+st;st>tt&&(rt=0,ut=tt);var ct=new go.Geometry,gt=new go.PathFigure(et,.5*tt,!0);ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var ft=qt(.7,1,1,.5,0,ut/tt,1,ut/tt,Jt());return ct.spot2=new go.Spot(ft.x,ft.y),xt(ft),ct}),go.Shape.setFigureParameter("SquareArrow",0,new An("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(st,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=St*.1,ct=new go.PathFigure(0,.9*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.97),st}),go.Shape.defineFigureGenerator("Cone2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.82),st}),go.Shape.defineFigureGenerator("Cube1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.5,.85),st}),go.Shape.defineFigureGenerator("Cube2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.7,1),st}),go.Shape.defineFigureGenerator("Cylinder1",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=St*.5,ct=new go.PathFigure(0,st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,St*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,st,(.5+ut)*et,0,1*et,St*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-St*st,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,1*tt,0,tt-St*st)),ct.add(new go.PathSegment(go.PathSegment.Line,0,st));var gt=new go.PathFigure(et,st,!1);return rt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*st,1*et,2*st-St*st,(.5+ut)*et,2*st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,st,(.5-ut)*et,2*st,0,2*st-St*st)),rt.spot1=new go.Spot(0,0,0,2*st),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=St*.5,ct=new go.PathFigure(0,tt-st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,St*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,st,(.5+ut)*et,0,et,St*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-St*st,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,tt,0,tt-St*st));var gt=new go.PathFigure(0,tt-st,!1);return rt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*st,0,tt-st-St*st,(.5-ut)*et,tt-2*st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-st,(.5+ut)*et,tt-2*st,et,tt-st-St*st)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*st),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=St*.5,ct=new go.PathFigure(st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-St*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-St*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,St*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,St*st,0));var gt=new go.PathFigure(st,0,!1);return rt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,2*st,.5*tt,st+St*st,0,2*st,(.5-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,st,tt,2*st,(.5+ut)*tt,st+St*st,tt)),rt.spot1=new go.Spot(0,0,2*st,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=St*.5,ct=new go.PathFigure(et-st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-St*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-St*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,St*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,St*st,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0));var gt=new go.PathFigure(et-st,0,!1);return rt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*st,.5*tt,et-st-St*st,0,et-2*st,(.5-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et-2*st,(.5+ut)*tt,et-st-St*st,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*st,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.408,.172),st.spot2=new go.Spot(.833,.662),st}),go.Shape.defineFigureGenerator("Prism2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("Pyramid1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Pyramid2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Actor",function(vt,et,tt){var st=new go.Geometry,rt=.2,ut=.1,ct=St*rt,gt=St*ut,ft=.5,kt=.1,jt=new go.PathFigure(ft*et,(kt+ut)*tt,!0);st.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ft-rt)*et,kt*tt,(ft-ct)*et,(kt+ut)*tt,(ft-rt)*et,(kt+gt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-ut)*tt,(ft-rt)*et,(kt-gt)*tt,(ft-ct)*et,(kt-ut)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+rt)*et,kt*tt,(ft+ct)*et,(kt-ut)*tt,(ft+rt)*et,(kt-gt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt+ut)*tt,(ft+rt)*et,(kt+gt)*tt,(ft+ct)*et,(kt+ut)*tt));var Ht=.05,Ot=St*Ht;ft=.05,kt=.25;var te=new go.PathFigure(.5*et,.2*tt,!0);return st.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),ft=.95,kt=.25,te.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Ht)*et,kt*tt,(ft+Ot)*et,(kt-Ht)*tt,(ft+Ht)*et,(kt-Ot)*tt)),te.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Ht=.025,Ot=St*Ht,ft=.825,kt=.35,te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-Ht)*tt,(ft+Ht)*et,(kt-Ot)*tt,(ft+Ot)*et,(kt-Ht)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Ht)*et,kt*tt,(ft-Ot)*et,(kt-Ht)*tt,(ft-Ht)*et,(kt-Ot)*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),te.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),te.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Ht=.05,Ot=St*Ht,ft=.5,kt=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-Ht)*tt,(ft+Ht)*et,(kt-Ot)*tt,(ft+Ot)*et,(kt-Ht)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Ht)*et,kt*tt,(ft-Ot)*et,(kt-Ht)*tt,(ft-Ht)*et,(kt-Ot)*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),te.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),te.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Ht=.025,Ot=St*Ht,ft=.175,kt=.35,te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-Ht)*tt,(ft+Ht)*et,(kt-Ot)*tt,(ft+Ot)*et,(kt-Ht)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Ht)*et,kt*tt,(ft-Ot)*et,(kt-Ht)*tt,(ft-Ht)*et,(kt-Ot)*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),te.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ht=.05,Ot=St*Ht,ft=.05,kt=.25,te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-Ht)*tt,(ft-Ht)*et,(kt-Ot)*tt,(ft-Ot)*et,(kt-Ht)*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),st.spot1=new go.Spot(.2,.2),st.spot2=new go.Spot(.8,.65),st}),go.Shape.setFigureParameter("Card",0,new An("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=new go.Spot(0,st),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,.25),st}),go.Shape.defineFigureGenerator("CreateRequest",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("Database",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=St*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var gt=new go.PathFigure(et,.1*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),st.spot1=new go.Spot(0,.4),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("DataStorage",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),st.spot1=new go.Spot(.226,0),st.spot2=new go.Spot(.81,1),st}),go.Shape.defineFigureGenerator("DiskStorage",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=St*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var gt=new go.PathFigure(et,.1*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("Display",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("DividedEvent",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=St*.2,ct=new go.PathFigure(0,.2*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var gt=new go.PathFigure(0,rt*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("DividedProcess",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("Document",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("ExternalOrganization",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("ExternalProcess",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("File",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Interrupt",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("InternalStorage",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var gt=new go.PathFigure(rt*et,0,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),st}),go.Shape.defineFigureGenerator("Junction",function(vt,et,tt){var st=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=St*.5,gt=.5,ft=new go.PathFigure(et,gt*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,tt,et,(gt+ct)*tt,(gt+ct)*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*tt,(gt-ct)*et,tt,0,(gt+ct)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-ct)*tt,(gt-ct)*et,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*tt,(gt+ct)*et,0,et,(gt-ct)*tt));var kt=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),kt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),st}),go.Shape.defineFigureGenerator("LinedDocument",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),st.spot1=new go.Spot(.1,0),st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("LoopLimit",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MagneticTape",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.8),st}),go.Shape.defineFigureGenerator("ManualInput",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MessageFromUser",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("MicroformProcessing",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("MicroformRecording",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("MultiDocument",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.8,.77),st}),go.Shape.defineFigureGenerator("MultiProcess",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),st.spot1=new go.Spot(0,.2),st.spot2=new go.Spot(.8,1),st}),go.Shape.defineFigureGenerator("OfflineStorage",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var gt=new go.PathFigure(.5*rt*et,rt*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),st}),go.Shape.defineFigureGenerator("OffPageConnector",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("Or",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var gt=new go.PathFigure(et,.5*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st}),go.Shape.defineFigureGenerator("PaperTape",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=new go.Spot(0,.49),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Procedure",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-rt)*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st}),go.Shape.defineFigureGenerator("Process",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Sort",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.5),st}),go.Shape.defineFigureGenerator("Start",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),st.spot1=new go.Spot(rt,0),st.spot2=new go.Spot(1-rt,1),st}),go.Shape.defineFigureGenerator("Terminator",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),st.spot1=new go.Spot(.23,0),st.spot2=new go.Spot(.77,1),st}),go.Shape.defineFigureGenerator("TransmittalTape",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("AndGate",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.55,1),st}),go.Shape.defineFigureGenerator("Buffer",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Clock",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var gt=new go.PathFigure(et,ut*tt,!1);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var ft=new go.PathFigure(.8*et,.75*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),st}),go.Shape.defineFigureGenerator("Ground",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),st}),go.Shape.defineFigureGenerator("Inverter",function(vt,et,tt){var st=new go.Geometry,rt=St*.1,ut=.1,ct=.9,gt=.5,ft=new go.PathFigure(.8*et,.5*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var kt=new go.PathFigure((ct+ut)*et,gt*tt,!0);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,(ct+rt)*et,(gt-ut)*tt,(ct+ut)*et,(gt-rt)*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.4,.75),st}),go.Shape.defineFigureGenerator("NandGate",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=St*.4,ct=St*.1,gt=.1,ft=.9,kt=.5,jt=new go.PathFigure(.8*et,.5*tt,!0);st.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,0)),jt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var Ht=new go.PathFigure((ft+gt)*et,kt*tt,!0);return st.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt+gt)*tt,(ft+gt)*et,(kt+ct)*tt,(ft+ct)*et,(kt+gt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt)*et,kt*tt,(ft-ct)*et,(kt+gt)*tt,(ft-gt)*et,(kt+ct)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-gt)*tt,(ft-gt)*et,(kt-ct)*tt,(ft-ct)*et,(kt-gt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt)*et,kt*tt,(ft+ct)*et,(kt-gt)*tt,(ft+gt)*et,(kt-ct)*tt)),st.spot1=new go.Spot(0,.05),st.spot2=new go.Spot(.55,.95),st}),go.Shape.defineFigureGenerator("NorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*rt,ct=0,gt=.5,ft=new go.PathFigure(.8*et,.5*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(gt-rt)*tt,.7*et,(gt-ut)*tt)),rt=.1,ut=St*.1,ct=.9,gt=.5;var kt=new go.PathFigure((ct-rt)*et,gt*tt,!0);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt)),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.6,.75),st}),go.Shape.defineFigureGenerator("OrGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*rt,ct=0,gt=.5,ft=new go.PathFigure(0,0,!0);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(gt-rt)*tt,.8*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(gt+ut)*tt,(ct+ut+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("XnorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*rt,ct=.2,gt=.5,ft=new go.PathFigure(.1*et,0,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var kt=new go.PathFigure(.8*et,.5*tt,!0);st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(gt-rt)*tt,.7*et,(gt-ut)*tt)),rt=.1,ut=St*.1,ct=.9,gt=.5;var jt=new go.PathFigure((ct-rt)*et,gt*tt,!0);return st.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt)),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.65,.75),st}),go.Shape.defineFigureGenerator("XorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*rt,ct=.2,gt=.5,ft=new go.PathFigure(.1*et,0,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var kt=new go.PathFigure(.2*et,0,!0);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(gt-rt)*tt,.9*et,(gt-ut)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.8,.75),st}),go.Shape.defineFigureGenerator("Capacitor",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Resistor",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Inductor",function(vt,et,tt){var st=new go.Geometry,rt=St*.1,ut=.1,ct=.1,gt=.5,ft=new go.PathFigure((ct-rt*.5)*et,tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt*.5)*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),st}),go.Shape.defineFigureGenerator("ACvoltageSource",function(vt,et,tt){var st=new go.Geometry,rt=St*.5,ut=.5,ct=.5,gt=.5,ft=new go.PathFigure((ct-ut)*et,gt*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,(ct+rt)*et,(gt-ut)*tt,(ct+ut)*et,(gt-rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,gt*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,gt*tt,ct*et,(gt-ut)*tt,ct*et,(gt+ut)*tt)),st}),go.Shape.defineFigureGenerator("DCvoltageSource",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Diode",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Wifi",function(vt,et,tt){var st=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=St*.8,gt=.8,ft=0,kt=.5,jt=(rt-et)/2,Ht=(ut-tt)/2,Ot=new go.PathFigure(ft*et+jt,(kt+gt)*tt+Ht,!0);st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt)*et+jt,kt*tt+Ht,(ft-ct)*et+jt,(kt+gt)*tt+Ht,(ft-gt)*et+jt,(kt+ct)*tt+Ht)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt-gt)*tt+Ht,(ft-gt)*et+jt,(kt-ct)*tt+Ht,(ft-ct)*et+jt,(kt-gt)*tt+Ht)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt+ct*.5)*et+jt,kt*tt+Ht,ft*et+jt,(kt-gt)*tt+Ht,(ft-gt+ct*.5)*et+jt,(kt-ct)*tt+Ht)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt+gt)*tt+Ht,(ft-gt+ct*.5)*et+jt,(kt+ct)*tt+Ht,ft*et+jt,(kt+gt)*tt+Ht).close()),ct=St*.4,gt=.4,ft=.2,kt=.5;var te=new go.PathFigure(ft*et+jt,(kt+gt)*tt+Ht,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt)*et+jt,kt*tt+Ht,(ft-ct)*et+jt,(kt+gt)*tt+Ht,(ft-gt)*et+jt,(kt+ct)*tt+Ht)),te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt-gt)*tt+Ht,(ft-gt)*et+jt,(kt-ct)*tt+Ht,(ft-ct)*et+jt,(kt-gt)*tt+Ht)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt+ct*.5)*et+jt,kt*tt+Ht,ft*et+jt,(kt-gt)*tt+Ht,(ft-gt+ct*.5)*et+jt,(kt-ct)*tt+Ht)),te.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt+gt)*tt+Ht,(ft-gt+ct*.5)*et+jt,(kt+ct)*tt+Ht,ft*et+jt,(kt+gt)*tt+Ht).close()),ct=St*.2,gt=.2,ft=.5,kt=.5;var ne=new go.PathFigure((ft-gt)*et+jt,kt*tt+Ht,!0);st.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt-gt)*tt+Ht,(ft-gt)*et+jt,(kt-ct)*tt+Ht,(ft-ct)*et+jt,(kt-gt)*tt+Ht)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt)*et+jt,kt*tt+Ht,(ft+ct)*et+jt,(kt-gt)*tt+Ht,(ft+gt)*et+jt,(kt-ct)*tt+Ht)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt+gt)*tt+Ht,(ft+gt)*et+jt,(kt+ct)*tt+Ht,(ft+ct)*et+jt,(kt+gt)*tt+Ht)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ft-gt)*et+jt,kt*tt+Ht,(ft-ct)*et+jt,(kt+gt)*tt+Ht,(ft-gt)*et+jt,(kt+ct)*tt+Ht)),ct=St*.4,gt=.4,ft=.8,kt=.5;var Xt=new go.PathFigure(ft*et+jt,(kt-gt)*tt+Ht,!0);st.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt)*et+jt,kt*tt+Ht,(ft+ct)*et+jt,(kt-gt)*tt+Ht,(ft+gt)*et+jt,(kt-ct)*tt+Ht)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt+gt)*tt+Ht,(ft+gt)*et+jt,(kt+ct)*tt+Ht,(ft+ct)*et+jt,(kt+gt)*tt+Ht)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt-ct*.5)*et+jt,kt*tt+Ht,ft*et+jt,(kt+gt)*tt+Ht,(ft+gt-ct*.5)*et+jt,(kt+ct)*tt+Ht)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt-gt)*tt+Ht,(ft+gt-ct*.5)*et+jt,(kt-ct)*tt+Ht,ft*et+jt,(kt-gt)*tt+Ht).close()),ct=St*.8,gt=.8,ft=1,kt=.5;var ce=new go.PathFigure(ft*et+jt,(kt-gt)*tt+Ht,!0);return st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt)*et+jt,kt*tt+Ht,(ft+ct)*et+jt,(kt-gt)*tt+Ht,(ft+gt)*et+jt,(kt-ct)*tt+Ht)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt+gt)*tt+Ht,(ft+gt)*et+jt,(kt+ct)*tt+Ht,(ft+ct)*et+jt,(kt+gt)*tt+Ht)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ft+gt-ct*.5)*et+jt,kt*tt+Ht,ft*et+jt,(kt+gt)*tt+Ht,(ft+gt-ct*.5)*et+jt,(kt+ct)*tt+Ht)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ft*et+jt,(kt-gt)*tt+Ht,(ft+gt-ct*.5)*et+jt,(kt-ct)*tt+Ht,ft*et+jt,(kt-gt)*tt+Ht).close()),st}),go.Shape.defineFigureGenerator("Email",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Ethernet",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var gt=new go.PathFigure(0,.5*tt,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Power",function(vt,et,tt){var st=new go.Geometry,rt=St*.4,ut=.4,ct=.5,gt=.5,ft=Jt(),kt=Jt(),jt=Jt(),Ht=Jt();Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.5,ft,ft,kt,jt,Ht);var Ot=he(kt.x,kt.y),te=new go.PathFigure(kt.x*et,kt.y*tt,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,jt.x*et,jt.y*tt,Ht.x*et,Ht.y*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,(ct-rt)*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt)),Vt(ct-ut,gt,ct-ut,gt-rt,ct-rt,gt-ut,ct,gt-ut,.5,jt,Ht,kt,ft,ft),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*tt,jt.x*et,jt.y*tt,Ht.x*et,Ht.y*tt)),rt=St*.3,ut=.3,Vt(ct-ut,gt,ct-ut,gt-rt,ct-rt,gt-ut,ct,gt-ut,.5,jt,Ht,kt,ft,ft),te.add(new go.PathSegment(go.PathSegment.Line,kt.x*et,kt.y*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,gt*tt,Ht.x*et,Ht.y*tt,jt.x*et,jt.y*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+ut)*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,gt*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),Vt(ct,gt-ut,ct+rt,gt-ut,ct+ut,gt-rt,ct+ut,gt,.5,ft,ft,kt,jt,Ht),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*tt,Ht.x*et,Ht.y*tt,jt.x*et,jt.y*tt).close());var te=new go.PathFigure(.45*et,0,!0);return st.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),te.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),xt(ft),xt(kt),xt(jt),xt(Ht),xt(Ot),st.spot1=new go.Spot(.25,.45),st.spot2=new go.Spot(.75,.8),st}),go.Shape.defineFigureGenerator("Fallout",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,gt,ft){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+gt)*et,(.8+ft)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+gt)*et,(.5+ft)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+gt)*et,(.5+ft)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+gt)*et,(.8+ft)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),st}),go.Shape.defineFigureGenerator("IrritationHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),st.spot1=new go.Spot(.3,.3),st.spot2=new go.Spot(.7,.7),st}),go.Shape.defineFigureGenerator("ElectricalHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),st}),go.Shape.defineFigureGenerator("FireHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),st.spot1=new go.Spot(.07,.445),st.spot2=new go.Spot(.884,.958),st}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=0,ct=0,gt=rt*St,ft=.4*Math.SQRT2/2+.5,kt=.5-.5*Math.SQRT2/2,jt=1,Ht=.5,Ot=.5,te=0,ne=new go.PathFigure(ft*et,(1-kt)*tt,!1);return st.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,Ht*tt,jt*et,.7*tt,jt*et,Ht*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+ut)*et,(te+ut)*tt,(.5+rt+ut)*et,(.5-gt+ut)*tt,(.5+gt+ut)*et,(.5-rt+ut)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-gt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-gt+ct)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+gt+ct)*tt,(.5-gt+ut)*et,.9*tt)),ne.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),ne.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),ne.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),st}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,gt=.5,ft=ct,kt=Math.PI/4,jt=4*(1-Math.cos(kt))/(3*Math.sin(kt)),Ht=jt*.5,Ot=ct,te=ct,ne=jt*Ot,Xt=jt*te;ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ot)*et,ft*tt,(gt-(ne+Ot)/2)*et,(ft+(te+Xt)/2)*tt,(gt-Ot)*et,(ft+Xt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(ft-te)*tt,(gt-Ot)*et,(ft-Xt)*tt,(gt-ne)*et,(ft-te)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt+Ot)*et,ft*tt,(gt+ne)*et,(ft-te)*tt,(gt+Ot)*et,(ft-Xt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(gt+Ot)*et,(ft+Xt)*tt,(gt+(ne+Ot)/2)*et,(ft+(te+Xt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ce=new go.PathFigure(.2*et,tt,!1);st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var me=new go.PathFigure(.8*et,tt,!1);return st.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventError",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Caution",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),st}),go.Shape.defineFigureGenerator("Recycle",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*.5,ct=new go.PathFigure(et,rt*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var gt=new go.PathFigure(rt*et,0,!1);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Package",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),st.spot1=new go.Spot(0,.1),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Class",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Component",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),st}),go.Shape.defineFigureGenerator("Boat Shipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Customer/Supplier",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Workcell",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Supermarket",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),st}),go.Shape.defineFigureGenerator("TruckShipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,gt=St*.1,ft=.2,kt=.9,jt=new go.PathFigure((ft-ct)*et,kt*tt,!0);st.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-ct)*tt,(ft-ct)*et,(kt-gt)*tt,(ft-gt)*et,(kt-ct)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ft+ct)*et,kt*tt,(ft+gt)*et,(kt-ct)*tt,(ft+ct)*et,(kt-gt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt+ct)*tt,(ft+ct)*et,(kt+gt)*tt,(ft+gt)*et,(kt+ct)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ft-ct)*et,kt*tt,(ft-gt)*et,(kt+ct)*tt,(ft-ct)*et,(kt+gt)*tt).close()),ct=.1,gt=St*.1,ft=.8,kt=.9;var Ht=new go.PathFigure((ft-ct)*et,kt*tt,!0);return st.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt-ct)*tt,(ft-ct)*et,(kt-gt)*tt,(ft-gt)*et,(kt-ct)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ft+ct)*et,kt*tt,(ft+gt)*et,(kt-ct)*tt,(ft+ct)*et,(kt-gt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(kt+ct)*tt,(ft+ct)*et,(kt+gt)*tt,(ft+gt)*et,(kt+ct)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ft-ct)*et,kt*tt,(ft-gt)*et,(kt+ct)*tt,(ft-ct)*et,(kt+gt)*tt).close()),st}),go.Shape.defineFigureGenerator("KanbanPost",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),st}),go.Shape.defineFigureGenerator("Forklift",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var gt=new go.PathFigure(.5*et,.7*tt,!1);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var ft=.1,kt=St*.1,jt=.1,Ht=.9,Ot=new go.PathFigure((jt-ft)*et,Ht*tt,!0);st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Ht-ft)*tt,(jt-ft)*et,(Ht-kt)*tt,(jt-kt)*et,(Ht-ft)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(jt+ft)*et,Ht*tt,(jt+kt)*et,(Ht-ft)*tt,(jt+ft)*et,(Ht-kt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Ht+ft)*tt,(jt+ft)*et,(Ht+kt)*tt,(jt+kt)*et,(Ht+ft)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(jt-ft)*et,Ht*tt,(jt-kt)*et,(Ht+ft)*tt,(jt-ft)*et,(Ht+kt)*tt)),ft=.1,kt=St*.1,jt=.4,Ht=.9;var te=new go.PathFigure((jt-ft)*et,Ht*tt,!0);return st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Ht-ft)*tt,(jt-ft)*et,(Ht-kt)*tt,(jt-kt)*et,(Ht-ft)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(jt+ft)*et,Ht*tt,(jt+kt)*et,(Ht-ft)*tt,(jt+ft)*et,(Ht-kt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Ht+ft)*tt,(jt+ft)*et,(Ht+kt)*tt,(jt+kt)*et,(Ht+ft)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(jt-ft)*et,Ht*tt,(jt-kt)*et,(Ht+ft)*tt,(jt-ft)*et,(Ht+kt)*tt)),st}),go.Shape.defineFigureGenerator("RailShipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var jt=.05,Ht=St*.05,Ot=.175,te=.95,gt=new go.PathFigure((Ot-jt)*et,te*tt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te-jt)*tt,(Ot-jt)*et,(te-Ht)*tt,(Ot-Ht)*et,(te-jt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+jt)*et,te*tt,(Ot+Ht)*et,(te-jt)*tt,(Ot+jt)*et,(te-Ht)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te+jt)*tt,(Ot+jt)*et,(te+Ht)*tt,(Ot+Ht)*et,(te+jt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-jt)*et,te*tt,(Ot-Ht)*et,(te+jt)*tt,(Ot-jt)*et,(te+Ht)*tt));var jt=.05,Ht=St*.05,Ot=.375,te=.95,ft=new go.PathFigure((Ot-jt)*et,te*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te-jt)*tt,(Ot-jt)*et,(te-Ht)*tt,(Ot-Ht)*et,(te-jt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+jt)*et,te*tt,(Ot+Ht)*et,(te-jt)*tt,(Ot+jt)*et,(te-Ht)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te+jt)*tt,(Ot+jt)*et,(te+Ht)*tt,(Ot+Ht)*et,(te+jt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-jt)*et,te*tt,(Ot-Ht)*et,(te+jt)*tt,(Ot-jt)*et,(te+Ht)*tt));var jt=.05,Ht=St*.05,Ot=.625,te=.95,kt=new go.PathFigure((Ot-jt)*et,te*tt,!0);st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te-jt)*tt,(Ot-jt)*et,(te-Ht)*tt,(Ot-Ht)*et,(te-jt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+jt)*et,te*tt,(Ot+Ht)*et,(te-jt)*tt,(Ot+jt)*et,(te-Ht)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te+jt)*tt,(Ot+jt)*et,(te+Ht)*tt,(Ot+Ht)*et,(te+jt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-jt)*et,te*tt,(Ot-Ht)*et,(te+jt)*tt,(Ot-jt)*et,(te+Ht)*tt));var jt=.05,Ht=St*.05,Ot=.825,te=.95,ne=new go.PathFigure((Ot-jt)*et,te*tt,!0);st.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te-jt)*tt,(Ot-jt)*et,(te-Ht)*tt,(Ot-Ht)*et,(te-jt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+jt)*et,te*tt,(Ot+Ht)*et,(te-jt)*tt,(Ot+jt)*et,(te-Ht)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(te+jt)*tt,(Ot+jt)*et,(te+Ht)*tt,(Ot+Ht)*et,(te+jt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-jt)*et,te*tt,(Ot-Ht)*et,(te+jt)*tt,(Ot-jt)*et,(te+Ht)*tt).close());var Xt=new go.PathFigure(0,tt,!1);return st.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Warehouse",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var gt=.05,ft=St*.05,kt=.35,jt=.775,Ht=new go.PathFigure((kt-gt)*et,jt*tt,!0);return st.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(jt-gt)*tt,(kt-gt)*et,(jt-ft)*tt,(kt-ft)*et,(jt-gt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(kt+gt)*et,jt*tt,(kt+ft)*et,(jt-gt)*tt,(kt+gt)*et,(jt-ft)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(jt+gt)*tt,(kt+gt)*et,(jt+ft)*tt,(kt+ft)*et,(jt+gt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(kt-gt)*et,jt*tt,(kt-ft)*et,(jt+gt)*tt,(kt-gt)*et,(jt+ft)*tt).close()),st}),go.Shape.defineFigureGenerator("ControlCenter",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),st}),go.Shape.defineFigureGenerator("Bluetooth",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Globe",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),st}),go.Shape.defineFigureGenerator("Wave",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Operator",function(vt,et,tt){var st=new go.Geometry,rt=.3,ut=St*.3,ct=.5,gt=.7,ft=new go.PathFigure((ct-rt)*et,gt*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt));var kt=new go.PathFigure(0,.7*tt,!1);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),st}),go.Shape.defineFigureGenerator("TripleFanBlades",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),st}),go.Shape.defineFigureGenerator("CentrifugalPump",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),st}),go.Shape.defineFigureGenerator("Battery",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),st}),go.Shape.defineFigureGenerator("Delete",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*.5,ct=.5,gt=.5,ft=new go.PathFigure((ct-rt)*et,gt*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt));var kt=new go.PathFigure(.15*et,.5*tt,!1);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Flag",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),st}),go.Shape.defineFigureGenerator("Help",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=St*.5,ct=.5,gt=.5,ft=new go.PathFigure((ct-rt)*et,gt*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt).close()),rt=.05,ut=St*.05,ct=.5,gt=.8;var kt=new go.PathFigure((ct-rt)*et,gt*tt,!1);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt-rt)*tt,(ct-rt)*et,(gt-ut)*tt,(ct-ut)*et,(gt-rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,gt*tt,(ct+ut)*et,(gt-rt)*tt,(ct+rt)*et,(gt-ut)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(gt+rt)*tt,(ct+rt)*et,(gt+ut)*tt,(ct+ut)*et,(gt+rt)*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,gt*tt,(ct-ut)*et,(gt+rt)*tt,(ct-rt)*et,(gt+ut)*tt).close()),kt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),kt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),st}),go.Shape.defineFigureGenerator("Location",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),st}),go.Shape.defineFigureGenerator("Unlocked",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),st}),go.Shape.defineFigureGenerator("Gear",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),st}),go.Shape.defineFigureGenerator("Map",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),st}),go.Shape.defineFigureGenerator("Eject",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),st}),go.Shape.defineFigureGenerator("Pencil",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var gt=new go.PathFigure(.678*et,.85*tt,!1);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var ft=new go.PathFigure(.5*et,.1*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),st}),go.Shape.defineFigureGenerator("Staircase",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),st}),go.Shape.defineFigureGenerator("5Bars",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var gt=new go.PathFigure(et*.612,tt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var ft=new go.PathFigure(et*.816,tt,!0);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),st}),go.Shape.defineFigureGenerator("PC",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var gt=new go.PathFigure(et*.055,.18*tt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var ft=new go.PathFigure(et*1,0,!0);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),ft.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),st}),go.Shape.defineFigureGenerator("Plane",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),st}),go.Shape.defineFigureGenerator("Key",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),st}),go.Shape.defineFigureGenerator("FilmTape",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var gt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var ft=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),st}),go.Shape.defineFigureGenerator("FloppyDisk",function(vt,et,tt){var st=new go.Geometry,rt=8,ut=rt*St,ct=new go.PathFigure(rt,0,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var gt=new go.PathFigure(et*.83,0,!1);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var ft=new go.PathFigure(et*.83,tt*1,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var kt=new go.PathFigure(et*.78,tt*.05,!1);return st.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),st}),go.Shape.defineFigureGenerator("SpeechBubble",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=15),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*St,ut=tt*.8,ct=new go.Geometry,gt=new go.PathFigure(st,0,!0);return ct.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ut-st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,ut,et,ut-rt,et-rt,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),gt.add(new go.PathSegment(go.PathSegment.Line,st,ut)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-st,rt,ut,0,ut-rt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,st)),gt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()),rt>1?(ct.spot1=new go.Spot(0,0,rt,rt),ct.spot2=new go.Spot(1,.8,-rt,-rt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),st}),go.Shape.defineFigureGenerator("Windows",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),st}),go.Shape.defineFigureGenerator("Beaker",function(vt,et,tt){var st=new go.Geometry,rt=15,ut=rt*St,ct=new go.PathFigure(et*.62,tt*.475,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(st.spot1=new go.Spot(0,0,ut,ut),st.spot2=new go.Spot(1,1,-ut,-ut)):(st.spot1=go.Spot.TopLeft,st.spot2=go.Spot.BottomRight),st}),go.Shape.defineFigureGenerator("Download",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),st}),go.Shape.defineFigureGenerator("Bin",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),st}),go.Shape.defineFigureGenerator("Upload",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),st}),go.Shape.defineFigureGenerator("EmptyDrink",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),st}),go.Shape.defineFigureGenerator("Drink",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),st}),go.Shape.defineFigureGenerator("4Arrows",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),st}),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 An={},jn="5.0",he={},Jt=null,xt=!1,qt=!1,Vt=null,Rt=!1,Dt=null,St=null,Et=0;Et<arguments.length;Et++){var Nt=arguments[Et];if(Nt!==null)switch(typeof Nt){case"number":jn=Nt.toFixed(1);break;case"string":Nt.match(new RegExp("^[0-9]\\.[0-9]+$"))?jn=Nt:Vt=Nt;break;case"object":typeof Nt.is3D!="undefined"?Jt=Nt:he=Nt;break;case"boolean":xt=Nt,qt=!0;break}}Jt===null&&(Jt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},he.material_id!==void 0&&!qt&&(xt=!0)),Vt!==null&&he.id===void 0&&(he.id=Vt);var Pt="",Ct="",Lt=!1,Ft=null,vt=null,et=null,tt=!1,st=null,rt=null,ut=null,ct=null,gt=null;he.height!==void 0&&(he.height=Math.round(he.height)),he.width!==void 0&&(he.width=Math.round(he.width));var ft=function(le){return parseFloat(le)>4?parseFloat(le):5};An.setHTML5Codebase=function(le,Ue){St=le,$t(le,Ue)},An.setJavaCodebase=An.setJavaCodebaseVersion=An.isCompiledInstalled=An.setPreCompiledScriptPath=An.setPreCompiledResourcePath=function(){},An.setHTML5CodebaseVersion=function(le,Ue){var Ne=parseFloat(le);if(Ne!==NaN&&Ne<5){console.log("The GeoGebra HTML5 codebase version "+Ne+" is deprecated. Using version latest instead.");return}Dt=le,_t(le,Ue)},An.getHTML5CodebaseVersion=function(){return vt},An.getParameters=function(){return he},An.setFontsCSSURL=function(le){ct=le},An.setGiacJSURL=function(le){},An.setJNLPFile=function(le){Pt=le},An.setJNLPBaseDir=function(le){},An.inject=function(){function le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",Ne=he.id,Xe,Le=!1,xe=0;xe<arguments.length;xe++){var _e=arguments[xe];typeof _e=="string"?(_e=_e.toLowerCase(),_e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=_e:Ne=arguments[xe]):typeof _e=="boolean"?Le=_e:_e instanceof HTMLElement&&(Xe=_e)}Fe();function Fe(){if(!Rt){setTimeout(Fe,200);return}Ue=Qe(Ue);var Ae=Xe||document.getElementById(Ne);if(!Ae){console.log("possibly bug on ajax loading? ");return}if(An.removeExistingApplet(Ae,!1),he.width===void 0&&Ae.clientWidth&&(he.width=Ae.clientWidth),he.height===void 0&&Ae.clientHeight&&(he.height=Ae.clientHeight),!(he.width&&he.height)&&Ue==="html5"&&(delete he.width,delete he.height),Ft=Ue,Ue==="screenshot")me(Ae,he);else{var oe=!1;he.hasOwnProperty("playButton")&&he.playButton||he.hasOwnProperty("clickToLoad")&&he.clickToLoad?oe=!0:he.hasOwnProperty("playButtonAutoDecide")&&he.playButtonAutoDecide&&(oe=(!kt()||le())&&jt()),oe?(Ft="screenshot",De(Ae,he,Le,Ue)):ce(Ae,he,Le)}}};function kt(){try{return window.self!==window.top}catch(le){return!0}}function jt(){return he.hasOwnProperty("screenshotGenerator")&&he.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}An.getViews=function(){return Jt},An.isJavaInstalled=function(){return!1};var Ht=function(le){var Ue=function(xe){var _e=JSON.parse(xe),Fe=function(Mt){return Mt.type=="G"||Mt.type=="E"},Ae=_e.elements?_e.elements.filter(Fe)[0]:_e;if(!Ae||!Ae.url){Ne();return}he.fileName=Ae.url,Ot(Ae.settings||{}),Jt.is3D=!0;var oe="https://www.geogebra.org/images/";An.setPreviewImage(st||Ae.previewUrl,oe+"GeoGebra_loading.png",oe+"applet_play.png"),le()},Ne=function(){he.onError&&he.onError(),re("Error: Fetching material (id "+he.material_id+") failed.",he)},Xe=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Le="/materials/"+he.material_id+"?scope=basic";te("https://"+Xe+"/api/proxy.php?path="+encodeURIComponent(Le),Ue,Ne)};function Ot(le){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ne){le[Ne]=!!le[Ne]}),Ue.forEach(function(Ne){he[Ne]===void 0&&le[Ne]!==void 0&&(he[Ne]=le[Ne])}),he.showToolBarHelp===void 0&&(he.showToolBarHelp=he.showToolBar)}function te(le,Ue,Ne){var Xe=new XMLHttpRequest;Xe.open("GET",le),Xe.onload=function(){Ue(Xe.responseText)},Xe.onerror=Ne,Xe.send()}An.isHTML5Installed=function(){return!0},An.getLoadedAppletType=function(){return Ft},An.setPreviewImage=function(le,Ue,Ne){st=le,rt=Ue,ut=Ne},An.removeExistingApplet=function(le,Ue){var Ne;typeof le=="string"&&(le=document.getElementById(le)),Ft=null;var Xe=null;for(Ne=0;Ne<le.childNodes.length;Ne++){var Le=le.childNodes[Ne],xe=Le.className;xe==="applet_screenshot"?Ue?(Le.style.display="block",Ft="screenshot"):Le.style.display="none":xe!=="applet_scaler prerender"&&(le.removeChild(Le),Xe=xe&&xe.indexOf("appletParameters")!=-1?Le.id:null,Ne--)}var _e=he.id!==void 0?he.id:Xe,Fe=window[_e];Fe&&typeof Fe.getBase64=="function"&&(Fe.remove(),window[_e]=null)},An.refreshHitPoints=function(){if(ft(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var le=An.getAppletObject();return le&&typeof le.recalculateEnvironments=="function"?(le.recalculateEnvironments(),!0):!1},An.startAnimation=function(){var le=An.getAppletObject();return le&&typeof le.startAnimation=="function"?(le.startAnimation(),!0):!1},An.stopAnimation=function(){var le=An.getAppletObject();return le&&typeof le.stopAnimation=="function"?(le.stopAnimation(),!0):!1},An.getAppletObject=function(){var le=he.id!==void 0?he.id:"ggbApplet";return window[le]},An.resize=function(){};var ne=function(le,Ue,Ne){var Xe=document.createElement("param");Xe.setAttribute("name",Ue),Xe.setAttribute("value",Ne),le.appendChild(Xe)},Xt=function(le){return le&&le!=="false"},ce=function(le,Ue,Ne){ft(vt)<=4.2&&(Ne=!0);var Xe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==vt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Xe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Le=document.createElement("div");Le.classList.add("appletParameters","notranslate");var xe=Ue.width,_e=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(ft(vt)<=4.4)Xt(Ue.showToolBar)&&(Ue.height-=7),Xt(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Xt(Ue.showToolBar)&&(Ue.width=605,xe=605);else{var Fe=100;(Xt(Ue.showToolBar)||Xt(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Fe=Xt(Ue.showMenuBar)?245:155),xe<Fe&&(Ue.width=Fe,xe=Fe)}Le.style.border="none",Le.style.display="inline-block";for(var Ae in Ue)Ue.hasOwnProperty(Ae)&&Ae!=="appletOnLoad"&&Le.setAttribute("data-param-"+Ae,Ue[Ae]);ct&&Le.setAttribute("data-param-fontscssurl",ct),An.resize=function(){GGBAppletUtils.responsiveResize(le,Ue)},window.addEventListener("resize",function(fe){An.resize()});var oe=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!Ne&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||Le.setAttribute("data-param-showSplash","false");var Mt=le.querySelector(".applet_scaler.prerender"),At=Mt!==null;if(At)var Qt=Mt.querySelector(".ggb_preview");else{var Qt=we(xe,_e,Ue.borderColor,!1);Mt=document.createElement("div"),Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.style.width=xe+"px",Mt.style.height=_e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mt,"66%"),ft(vt)>=5?(Ue.appletOnLoad=function(fe){var ke=le.querySelector(".ggb_preview");ke&&ke.parentNode.removeChild(ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mt),window.GGBT_wsf_view&&$(window).trigger("resize"),oe(fe)},At||Mt.appendChild(Qt)):Le.appendChild(Qt),Mt.appendChild(Le),At||le.appendChild(Mt),setTimeout(function(){An.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Le),le.appendChild(se),Ue.appletOnLoad=function(fe){An.resize(),oe(fe)}}function Kt(fe,ke){ke&&typeof ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(fe,ke.appletOnLoad):renderGGBElement(fe),re("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ke)}function It(fe,ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:fe,params:ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(tn){Kt(tn.article,tn.params)}),html5AppletsToProcess=null)},ft(vt)<5&&(fe.className+=" geogebraweb")):Kt(fe,ke)}if(Xe){scriptLoadStarted=!0;for(var bt=0;bt<Le.childNodes.length;bt++){var Bt=Le.childNodes[bt].tagName;Bt==="TABLE"&&(Le.removeChild(Le.childNodes[bt]),bt--)}if(ggbHTML5LoadedScript!==null){var ie=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ie!=null&&ie.parentNode.removeChild(ie)}var Wt=document.createElement("script"),Zt=function(){It(Le,Ue)};Wt.src=Ct+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=vt,ggbHTML5LoadedScript=Wt.src,re("GeoGebra HTML5 codebase loaded: '"+Ct+"'.",Ue),!St&&(!Dt||Dt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Zt()):Ct.requirejs?__webpack_require__.e(12).then(function(){var fe=[__webpack_require__(12)];Zt.apply(null,fe)}.bind(this)).catch(__webpack_require__.oe):(Wt.onload=Zt,le.appendChild(Wt))}else It(Le,Ue);Ue.height=_e,Ue.width=xe},me=function(le,Ue,Ne){var Xe=we(Ue.width,Ue.height,Ue.borderColor,Ne),Le=document.createElement("div");Le.style.position="relative",Le.style.display="block",Le.style.width=Ue.width+"px",Le.style.height=Ue.height+"px",Le.className="applet_screenshot applet_scaler"+(Ne?" applet_screenshot_play":""),Le.appendChild(Xe);var xe=GGBAppletUtils.getScale(Ue,le,Ne);Ne?(le.appendChild(Ve()),window.GGBT_wsf_view||(le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Le,"66%"),le.appendChild(Le),xe!==1&&!isNaN(xe)&&(GGBAppletUtils.scaleElement(Le,xe),Le.style.width=Ue.width+"px",Le.style.height=Ue.height+"px",Le.parentNode.style.width=Ue.width*xe+"px",Le.parentNode.style.height=Ue.height*xe+"px"),An.resize=function(){Pe(le,Xe,Le,Ne)},window.addEventListener("resize",function(_e){An.resize()}),An.resize()};function Pe(le,Ue,Ne,Xe){if(le.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(le)}var Le=GGBAppletUtils.getScale(he,le,Xe);Ne.parentNode!==null&&(!isNaN(Le)&&Le!==1?(GGBAppletUtils.scaleElement(Ne,Le),Ne.parentNode.style.width=he.width*Le+"px",Ne.parentNode.style.height=he.height*Le+"px"):(GGBAppletUtils.scaleElement(Ne,1),Ne.parentNode.style.width=he.width+"px",Ne.parentNode.style.height=he.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()}}An.onExitFullscreen=function(le,Ue){Ue.appendChild(le)};var De=function(le,Ue,Ne,Xe){me(le,Ue,!0);for(var Le=function(){var Fe=[];for(_e=0;_e<le.childNodes.length;_e++)Fe.push(le.childNodes[_e]);if(window.GGBT_wsf_view){var Ae=window.GGBT_wsf_view.renderFullScreen(le,Ue.id),oe=document.getElementById("fullscreencontainer"),Mt=jQuery(le).find(".fullscreencontent");Mt.length>0?(Ae.remove(),Mt.attr("id","fullscreencontent").show(),jQuery(oe).append(Mt),window.dispatchEvent(new Event("resize"))):ce(Ae,Ue,!1),window.GGBT_wsf_view.launchFullScreen(oe)}else Ft=Xe,ce(le,Ue,!1);if(!window.GGBT_wsf_view)for(_e=0;_e<Fe.length;_e++)le.removeChild(Fe[_e])},xe=le.getElementsByClassName("ggb_preview_play"),_e=0;_e<xe.length;_e++)xe[_e].addEventListener("click",Le,!1),xe[_e].addEventListener("ontouchstart",Le,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(le),jt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ve=function(){var le=document.createElement("div");if(le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.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");}',Ne=document.createElement("style");Ne.styleSheet?Ne.styleSheet.cssText=Ue:Ne.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(Ne)}return le},we=function(le,Ue,Ne,Xe){var Le=document.createElement("div");Le.className="ggb_preview",Le.style.position="absolute",Le.style.zIndex="90",Le.style.width=le-2+"px",Le.style.height=Ue-2+"px",Le.style.top="0px",Le.style.left="0px",Le.style.overflow="hidden",Le.style.backgroundColor="white";var xe="lightgrey";Ne!==void 0&&(Ne==="none"?xe="transparent":xe=Ne),Le.style.border="1px solid "+xe;var _e=document.createElement("img");if(_e.style.position="relative",_e.style.zIndex="1000",_e.style.top="-1px",_e.style.left="-1px",st!==null&&_e.setAttribute("src",st),_e.style.opacity=.7,rt!==null){var Fe,Ae,oe;if(!Xe){Fe=document.createElement("img"),Fe.style.position="absolute",Fe.style.zIndex="1001",Fe.style.opacity=1,_e.style.opacity=.3,Ae=360,Ae>le/4*3&&(Ae=le/4*3),oe=Ae/5.8,Fe.setAttribute("src",rt),Fe.setAttribute("width",Ae),Fe.setAttribute("height",oe);var Mt=(le-Ae)/2,At=(Ue-oe)/2;Fe.style.left=Mt+"px",Fe.style.top=At+"px",Le.appendChild(Fe)}}return Le.appendChild(_e),Le},Qe=function(le){return le=le.toLowerCase(),le==="html5"||le==="screenshot"?le:"html5"},ae=["web","webSimple","web3d","tablet","tablet3d","phone"],_t=function(le,Ue){if(vt=le,Ue){$t(vt,!0);return}var Ne=!xt;if(Ne){var Xe=ft(vt);!isNaN(Xe)&&Xe<4.4&&(Ne=!1)}var Le,xe;window.location.protocol.substr(0,4)==="http"?Le=window.location.protocol:Le="http:";var _e=vt.indexOf("//");_e>0?xe=vt:_e===0?xe=Le+vt:xe="https://www.geogebra.org/apps/5.2.814.0/";for(var Fe in ae)if(vt.slice(ae[Fe].length*-1)===ae[Fe]||vt.slice((ae[Fe].length+1)*-1)===ae[Fe]+"/"){$t(xe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ne&&!Jt.is3D&&!Jt.AV&&!Jt.SV&&!Jt.CV&&!Jt.EV2&&!Jt.CP&&!Jt.PC&&!Jt.DA&&!Jt.FI&&!Jt.PV&&!Xt(he.showToolBar)&&!Xt(he.showMenuBar)&&!Xt(he.showAlgebraInput)&&!Xt(he.enableRightClick)&&(!he.appName||he.appName=="classic")?xe+="webSimple/":xe+="web3d/",$t(xe,!1)},$t=function(le,Ue){if(le.requirejs){Ct=le;return}le.slice(-1)!=="/"&&(le+="/"),Ct=le,Ue===null&&(Ue=le.indexOf("http")===-1),Lt=Ue,et="web.nocache.js",tt=!1;var Ne=Ct.split("/");Ne.length>1&&(!Ue&&Ne[Ne.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ae.indexOf(Ne[Ne.length-2])>=0&&(et=Ne[Ne.length-2]+".nocache.js")),Ne=le.split("/"),vt=Ne[Ne.length-3],vt.substr(0,4)==="test"?vt=vt.substr(4,1)+"."+vt.substr(5,1):(vt.substr(0,3)==="war"||vt.substr(0,4)==="beta")&&(vt="5.0");var Xe=parseFloat(vt);Xe!==NaN&&Xe<5&&le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead."),_t("5.0",Ue))},re=function(le,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(le)};he.material_id!==void 0?Ht(pe):pe();function pe(){var le=jn;Dt!==null?le=Dt:parseFloat(le)<5&&(le="5.0"),_t(le,!1),St!==null&&$t(St,Lt),Rt=!0}return An},GGBAppletUtils=function(){"use strict";function An(){return window.GGBT_wsf_edit!==void 0}function jn(Rt,Dt){Dt!=1?(Rt.style.transformOrigin="0% 0% 0px",Rt.style.webkitTransformOrigin="0% 0% 0px",Rt.style.transform="scale("+Dt+","+Dt+")",Rt.style.webkitTransform="scale("+Dt+","+Dt+")",Rt.style.maxWidth="initial",Rt.querySelector(".ggb_preview")!==null&&(Rt.querySelector(".ggb_preview").style.maxWidth="initial"),Rt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Rt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Rt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Rt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Rt.style.transform="none",Rt.style.webkitTransform="none")}function he(Rt,Dt,St,Et,Nt,Pt){var Ct=null;if(Pt!=null&&Pt!="")for(var Lt=Rt.parentNode;Lt!=null;)if((" "+Lt.className+" ").indexOf(" "+Pt+" ")>-1){Ct=Lt;break}else Lt=Lt.parentNode;var Ft=0,vt=0,et=0,tt=0,st=0,rt=0,ut=0;if(Ct)Ft=Ct.offsetWidth,vt=Math.max(Et?Ct.offsetWidth:0,Ct.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ft=Math.min(window.innerWidth,document.documentElement.clientWidth),vt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Ft):(Ft=window.innerWidth,vt=window.innerHeight,et=window.innerWidth),Rt){var ct=Rt.getBoundingClientRect();ct.left>0&&ct.left<=Ft&&(Nt===void 0||!Nt)&&(document.dir==="rtl"?(st=Ft-ct.width-ct.left,rt=et<=480?10:30):(rt=ct.left,st=et<=480?10:30),tt=rt+st)}if(Rt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var gt=Rt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Rt&&((St===void 0||!St)&&Dt>0&&Dt+tt<Ft?Ft=Dt:Ft-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St===void 0||!St)&&(vt-=ut)),{width:Ft,height:vt}}function Jt(Rt,Dt,St,Et,Nt){if(Rt.isScreenshoGenerator)return 1;var Pt=Et!==void 0&&Et,Ct=Rt.noScaleMargin!=null&&Rt.noScaleMargin,Lt=function(gt){return gt&>!=="false"},Ft=Lt(Rt.autoHeight),vt=he(Dt,Rt.width,St,Ft,Pt&&window.GGBT_wsf_view||Ct,Nt),et=parseInt(vt.width),tt=Rt.width,st=Rt.height;if(tt===void 0){var rt=Dt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,st=rt.offsetHeight)}var ut=et/tt,ct=Pt?1:vt.height/st;return St!==void 0&&!St&&(ut=Math.min(1,ut),ct=Math.min(1,ct)),Math.min(ut,ct)}function xt(Rt,Dt,St){var Et=1,Nt,Pt=!1;if(Rt.hasOwnProperty("allowUpscale")&&(Pt=Rt.allowUpscale),Rt.hasOwnProperty("scale")&&(Et=parseFloat(Rt.scale),(isNaN(Et)||Et===null||Et===0)&&(Et=1),Et>1&&(Pt=!0)),Dt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pt=!0),!(Rt.hasOwnProperty("disableAutoScale")&&Rt.disableAutoScale))Nt=Jt(Rt,Dt,Pt,St,Rt.scaleContainerClass);else return Et;return Pt&&(!Rt.hasOwnProperty("scale")||Et===1)?Nt:Math.min(Et,Nt)}function qt(Rt){var Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),St=Math.min(window.innerHeight,document.documentElement.clientHeight),Et=Rt.getBoundingClientRect(),Nt=(Dt-Et.width)/2,Pt=(St-Et.height)/2;Pt<0&&(Pt=0),Rt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Nt<40?Rt.style.left="40px":Rt.style.left=Nt+"px",Rt.style.top=Pt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pt<40?Rt.style.top="40px":Rt.style.top=Pt+"px",Rt.style.left=Nt+"px")}function Vt(Rt,Dt){var St=Rt.querySelector(".appletParameters");if(St){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Dt.id!==St.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Rt)}if(St.parentElement&&/fullscreen/.test(St.parentElement.className))return;var Et=xt(Dt,Rt);An()&&St.setAttribute("data-param-scale",Et);for(var Nt=null,Pt=0;Pt<Rt.childNodes.length;Pt++)if(Rt.childNodes[Pt].className!==void 0&&Rt.childNodes[Pt].className.match(/^applet_scaler/)){Nt=Rt.childNodes[Pt];break}if(Nt!==null&&Nt.querySelector(".noscale")!==null)return;var Ct=Dt.id!==void 0?Dt.id:"ggbApplet",Lt=window[Ct];(Lt==null||!Lt.recalculateEnvironments)&&Nt!==null&&!Nt.className.match(/fullscreen/)&&(Nt.parentNode.style.transform="",!isNaN(Et)&&Et!==1?(Nt.parentNode.style.width=Dt.width*Et+"px",Nt.parentNode.style.height=Dt.height*Et+"px",jn(Nt,Et)):(jn(Nt,1),Nt.parentNode.style.width=Dt.width+"px",Nt.parentNode.style.height=Dt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&qt(Rt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(St).parents(".content-added-content"))}}return{responsiveResize:Vt,isFlexibleWorksheetEditor:An,positionCenter:qt,getScale:xt,scaleElement:jn}}();__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 An=n.location.search;return An.indexOf(J)!=-1||An.indexOf(K)!=-1}function q(An,jn){}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(An){var jn=s[L].bindings;s[L].bindings=function(){for(var he=jn?jn():{},Jt=An[webModule.__softPermutationId],xt=O;xt<Jt.length;xt++){var qt=Jt[xt];he[qt[O]]=qt[P]}return he}};var t;function u(){return v(),t}function v(){if(!t){var An=o.createElement(Q);if(An.id=L,An.style.cssText=R+S,An.tabIndex=-1,o.body.appendChild(An),t=An.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var jn=document.compatMode==U?V:W;t.write(jn+X),t.close()}}}function w(An){function jn(Jt){function xt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var qt=xt();if(qt){Jt();return}function Vt(){if(!qt){if(!xt())return;qt=!0,Jt(),o.removeEventListener&&o.removeEventListener(Z,Vt,!1),Rt&&clearInterval(Rt)}}o.addEventListener&&o.addEventListener(Z,Vt,!1);var Rt=setInterval(function(){Vt()},$)}function he(Jt){var xt=u(),qt=xt.body,Vt=xt.createElement(_);Vt.language=ab,Vt.crossOrigin=W,Vt.src=Jt,webModule.__errFn&&(Vt.onerror=function(){webModule.__errFn(L,new Error(bb+Jt))}),qt.appendChild(Vt)}jn(function(){he(An)})}webModule.__startLoadingFragment=function(An){return C(An)},webModule.__installRunAsyncCode=function(An){var jn=u(),he=jn.body,Jt=jn.createElement(_);Jt.language=ab,Jt.text=An,he.appendChild(Jt),he.removeChild(Jt)};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(An){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(An){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(An){var jn=c[An];return jn==null?null:jn},r=d,webModule.__errFn=e}function B(){function An(Rt){var Dt=Rt.lastIndexOf(rb);Dt==-1&&(Dt=Rt.length);var St=Rt.indexOf(sb);St==-1&&(St=Rt.length);var Et=Rt.lastIndexOf(tb,Math.min(St,Dt));return Et>=O?Rt.substring(O,Et+P):W}function jn(Rt){if(!Rt.match(/^\w+:\/\//)){var Dt=o.createElement(ub);Dt.src=Rt+vb,Rt=An(Dt.src)}return Rt}function he(){var Rt=__gwt_getMetaProperty(wb);return Rt!=null?Rt:W}function Jt(){for(var Rt=o.getElementsByTagName(_),Dt=O;Dt<Rt.length;++Dt)if(Rt[Dt].src.indexOf(xb)!=-1)return An(Rt[Dt].src);return W}function xt(){var Rt=o.getElementsByTagName(yb);return Rt.length>O?Rt[Rt.length-P].href:W}function qt(){var Rt=o.location;return Rt.href==Rt.protocol+zb+Rt.host+Rt.pathname+Rt.search+Rt.hash}var Vt=he();return Vt==W&&(Vt=Jt()),Vt==W&&(Vt=xt()),Vt==W&&qt()&&(Vt=An(o.location.href)),Vt=jn(Vt),Vt}function C(An){return An.match(/^\//)||An.match(/^[a-zA-Z]+:\/\//)?An:webModule.__moduleBase+An}function D(){var An=[],jn=O,he=[],Jt=[];function xt(Rt){var Dt=Jt[Rt](),St=he[Rt];if(Dt in St)return Dt;var Et=[];for(var Nt in St)Et[St[Nt]]=Nt;throw r&&r(Rt,Et,Dt),null}if(__gwt_isKnownPropertyValue=function(Rt,Dt){return Dt in he[Rt]},webModule.__getPropMap=function(){var Rt={};for(var Dt in he)he.hasOwnProperty(Dt)&&(Rt[Dt]=xt(Dt));return Rt},webModule.__computePropValue=xt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var qt;try{qt=Cb;var Vt=qt.indexOf(Db);Vt!=-1&&(jn=parseInt(qt.substring(Vt+P),$),qt=qt.substring(O,Vt))}catch(Rt){}return webModule.__softPermutationId=jn,C(qt+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})()},11523:function(An,jn,he){"use strict";he.d(jn,{$Y:function(){return xe},A0:function(){return Ue},EP:function(){return Rt},F_:function(){return Et},Fk:function(){return Kt},G9:function(){return St},GB:function(){return $t},GR:function(){return rt},GW:function(){return Xe},Hh:function(){return It},Hp:function(){return Ft},Ir:function(){return xt},N$:function(){return re},NZ:function(){return Pe},Nv:function(){return se},OA:function(){return Mt},OJ:function(){return we},QF:function(){return ke},RS:function(){return kt},RY:function(){return Zt},Rj:function(){return De},SX:function(){return Ot},Tp:function(){return _e},Ui:function(){return le},V1:function(){return ae},Vn:function(){return Ht},dL:function(){return Qt},fo:function(){return ne},gG:function(){return Xt},gK:function(){return st},hK:function(){return vt},i3:function(){return Pt},ib:function(){return et},lS:function(){return tt},m5:function(){return Dt},n4:function(){return Jt},n_:function(){return Ct},oP:function(){return Fe},p2:function(){return Ne},pl:function(){return me},rM:function(){return gt},sM:function(){return Lt},t2:function(){return jt},tD:function(){return ut},u8:function(){return ct},um:function(){return fe},vm:function(){return At},wQ:function(){return Nt},wj:function(){return Qe},wt:function(){return ce},yS:function(){return ft},yi:function(){return qt},ym:function(){return Ve},z2:function(){return Vt}});const Jt="FETCH_TASK_START",xt="FETCH_TASK_FAILURE",qt="FETCH_TASK_SUCCESS",Vt="UPDATE_TASK_DATA",Rt="HIDE_EVALUATE_RESULT",Dt="SHOW_EVALUATE_RESULT",St="UPDATE_TIMESTRAP",Et="MOVE_X",Nt="MOVE_Y",Pt="TRIGGER_RIGHT_PANEL_MASK ",Ct="SET_ACTIVE_INDEX",Lt="GET_TASK_LIST",Ft="SHOW_TASK_LIST",vt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",st="TRIGGER_TAB_FIXED ",rt="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",gt="PLUS_DISCUSS",ft="SET_ACTION_TYPE",kt="SHOW_REWARD_DIALOG",jt="CANCEL_REWARD_DIALOG",Ht="SET_REWARD",Ot="ACTIVE_DISCUSS_INDEX",te="CREATE_DISCUSS",ne="DISABLE_DISCUSS",Xt="CHANGE_PAGE",ce="SHOW_ANSWER_LOADING",me="FETCH_ANSWER_INFO",Pe="HIGH_TIP_MODAL",De="SHOW_TIP_MODAL",Ve="SELECT_UNLOCK_ANSWER",we="SET_CHOOSE_ANSWERS",Qe="EVAL_CHOOSE_START",ae="EVAL_CHOOSE_END",_t="SHOW_REP_loading",$t="FETCH_REP_CONTENT",re="EDIT_REP_CONTENT",pe="SET_REP_PATH",le="SHOW_EVALUATE_LOADING",Ue="HIDE_EVALUATE_LOADING",Ne="SET_EVALUATE_MESSAGE",Xe="SET_SHOW_DIR",Le="SET_EDITOR_SETTING",xe="SET_EDITOR_THEME",_e="SET_EDITOR_FONTSIZE",Fe="SET_REPOS",Ae="SHOW_PATH_LIST",oe="HIDE_PATH_LIST",Mt="HIDE_PICTURE_VIEW",At="SHOW_PICTURE_VIEW",Qt="SHOW_NOTICE",se="HIDE_NOTICE",Kt="SHOW_CASE_NOTICE",It="HIDE_CASE_NOTICE",bt="SET_TAB_INDEX",Bt="SET_SSH_TABS",ie="SET_SSH_CONFIGDATA",Wt="SET_SSH_CONFIGDATAARR",Zt="SET_VNC_LOADING ",fe="ON_TAB_TO_SPACE ",ke="ON_AUTO_FORMAT "},15476:function(An,jn,he){"use strict";he.d(jn,{Ax:function(){return Vt},Ds:function(){return Rt},KI:function(){return St},SI:function(){return qt},f1:function(){return xt}});var Jt=he(11320);function xt(Et){let Nt=!0;if(Et.length>0){for(let Pt=0;Pt<Et.length;Pt++)if(Et[Pt].compile_success==0||!Et[Pt].compile_success){Nt=!1;break}}else Nt=!1;return Nt}function qt(Et,Nt=""){let Pt=[];for(let Ct=0;Ct<Et.length;Ct++){let Lt=Et[Ct],Ft=Nt?`${Nt}/${Lt.name}`:`${Lt.name}`;Pt.push({title:Lt.name,type:Lt.type,isLeaf:Lt.type!=="tree",key:Ft})}return Pt}function Vt(Et,Nt,Pt){for(let Ct=0;Ct<Et.length;Ct++){let Lt=Et[Ct];if(Lt.key===Nt){Lt.children=Pt;break}Lt.children&&Vt(Lt.children,Nt,Pt)}return Et}function Rt(Et,Nt,Pt){let Ct;return function(){let Lt=this,Ft=arguments,vt=function(){Ct=null,Pt||Et.apply(Lt,Ft)},et=Pt&&!Ct;clearTimeout(Ct),Ct=setTimeout(vt,Nt),et&&Et.apply(Lt,Ft)}}const Dt=!0,St=Jt.Z.API_SERVER},60580:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return vt}});var Jt=he(85804),xt=he(67294),qt=Object.defineProperty,Vt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Nt=(et,tt,st)=>tt in et?qt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,Pt=(et,tt)=>{for(var st in tt||(tt={}))St.call(tt,st)&&Nt(et,st,tt[st]);if(Dt)for(var st of Dt(tt))Et.call(tt,st)&&Nt(et,st,tt[st]);return et},Ct=(et,tt)=>Vt(et,Rt(tt)),Lt=(et,tt)=>{var st={};for(var rt in et)St.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&Dt)for(var rt of Dt(et))tt.indexOf(rt)<0&&Et.call(et,rt)&&(st[rt]=et[rt]);return st},Ft=(et,tt,st)=>new Promise((rt,ut)=>{var ct=kt=>{try{ft(st.next(kt))}catch(jt){ut(jt)}},gt=kt=>{try{ft(st.throw(kt))}catch(jt){ut(jt)}},ft=kt=>kt.done?rt(kt.value):Promise.resolve(kt.value).then(ct,gt);ft((st=st.apply(et,tt)).next())});const vt=et=>{var tt=et,{children:st}=tt,rt=Lt(tt,["children"]);const[ut,ct]=(0,xt.useState)(!1);return xt.createElement(Jt.ZP,Ct(Pt({},rt),{loading:ut,onClick:gt=>Ft(void 0,null,function*(){try{ct(!0),yield rt.onClick(gt),ct(!1)}catch(ft){console.error(ft),ct(!1)}})}),st)}},45172:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Pt}});var Jt=he(67294),xt=he(85804),qt=he(2453),Vt=he(35059),Rt=he(54262),Dt=he(16646),St=he(11320),Et={img:"img___BgL9D"},Pt=({value:Ct,onChange:Lt,getFileProgress:Ft})=>{const[vt,et]=(0,Jt.useState)(!1),tt=Jt.createElement(xt.ZP,{loading:vt,icon:Jt.createElement(Rt.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),st=()=>Jt.createElement("div",{className:Et.img},Jt.createElement("img",{src:St.Z.API_SERVER+"/api/attachments/"+Ct,alt:"avatar",style:{width:288}}),Jt.createElement("div",null,Jt.createElement(Dt.Z,{onClick:()=>Lt(""),style:{fontSize:"16px",color:"red"}}))),rt=ut=>{var ct,gt,ft,kt,jt,Ht;if(Ft&&Ft(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((gt=(ct=ut.file)==null?void 0:ct.response)==null?void 0:gt.status)===-1){qt.ZP.error((kt=(ft=ut.file)==null?void 0:ft.response)==null?void 0:kt.message);return}Lt((Ht=(jt=ut==null?void 0:ut.file)==null?void 0:jt.response)==null?void 0:Ht.id)}};return Jt.createElement(Jt.Fragment,null,Ct?st():Jt.createElement("div",null,Jt.createElement(Vt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${St.Z.API_SERVER}/api/attachments.json`,onChange:rt,accept:"image/*"},tt),Jt.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),Jt.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},63205:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Ct}});var Jt=he(67294),xt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},qt=he(94184),Vt=he.n(qt),Rt=he(74330),Dt=he(15979),St=he(33170),Et=he(28706),Nt=(Lt,Ft,vt)=>new Promise((et,tt)=>{var st=ct=>{try{ut(vt.next(ct))}catch(gt){tt(gt)}},rt=ct=>{try{ut(vt.throw(ct))}catch(gt){tt(gt)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(st,rt);ut((vt=vt.apply(Lt,Ft)).next())}),Ct=({data:Lt,className:Ft,fullWidth:vt,style:et={},onClose:tt,onOk:st,showFullTools:rt,noAssociationId:ut})=>{const ct=(0,Jt.useRef)(null),gt=(0,Jt.useRef)(null),ft=(0,Jt.useRef)(null),kt=(0,Jt.useRef)(null),[jt,Ht]=(0,Jt.useState)(!1),[Ot,te]=(0,Jt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Jt.useEffect)(()=>(ft.current||(ft.current=document.createElement("style"),document.head.appendChild(ft.current)),Lt!=null&&Lt.visible?(document.body.setAttribute("data-custom","y-hidden"),ft.current.innerHTML=" html { overflow-y: hidden; }",Lt!=null&&Lt.src&&ne()):(document.body.removeAttribute("data-custom"),ft.current&&(document.head.removeChild(ft.current),ft.current=null)),()=>{document.body.removeAttribute("data-custom"),ft.current&&(document.head.removeChild(ft.current),ft.current=null)}),[Lt==null?void 0:Lt.visible]);const ne=()=>Nt(void 0,null,function*(){Ht(!0),te("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pe=yield(0,Et.ZJ)(Lt==null?void 0:Lt.src);ct.current.src="",ct.current.src=Pe,ct.current.onload=function(){me()},Ht(!1),te("")}),Xt=Pe=>Nt(void 0,null,function*(){Ht(!0),te("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,St.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Lt.title,file:Pe.dataUrl}});De!=null&&De.id&&!ut?(yield(0,St.ZP)(`/api/attachments/${Lt.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(Pe.state)}})).status===0&&st():De!=null&&De.id&&st(De),Ht(!1),te("")}),ce=()=>{const Pe=document.querySelector('a[href="https://markerjs.com/"]');Pe&&Pe.parentNode&&(Pe.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(Ve=>{const we=document.querySelector(Ve.name);we&&we.setAttribute("title",Ve.title)})},me=()=>{gt.current=new Dt.hP(ct.current),gt.current.targetRoot=kt.current,gt.current.addEventListener("render",Xt),gt.current.addEventListener("beforeclose",tt),rt&&(gt.current.availableMarkerTypes=gt.current.ALL_MARKER_TYPES,gt.current.uiStyleSettings.redoButtonVisible=!0,gt.current.uiStyleSettings.notesButtonVisible=!0,gt.current.uiStyleSettings.zoomButtonVisible=!0,gt.current.uiStyleSettings.zoomOutButtonVisible=!0,gt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=gt.current.uiStyleSettings,gt.current.show(),Lt!=null&&Lt.snapshotData&>.current.restoreState(Lt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ce()},300)};return Jt.createElement(Jt.Fragment,null,(Lt==null?void 0:Lt.visible)&&Jt.createElement(Rt.Z,{spinning:jt,tip:Ot,style:{position:"absolute",width:"100vw"}},Jt.createElement("div",{ref:kt,className:Vt()(xt.imageDimensions,Ft,vt?xt.fullWidth:""),style:et},Jt.createElement("img",{className:xt.img,ref:ct}))))}},36527:function(An,jn,he){"use strict";var Jt=he(67294),xt=he(71230),qt=he(15746),Vt=he(55238),Rt=he(85804),Dt=he(65226),St=he(71736),Et=he(84279),Nt=he(67294);const Pt=(0,Jt.forwardRef)(({callback:Ct,showSaveButton:Lt,value:Ft=""},vt)=>{const et=(0,Jt.useRef)(),tt=[{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 "}]}]}],st=[{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}`}]}]}],rt=gt=>{et.current.setValue(et.current.getValue()+" "+gt.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Nt.createElement(xt.Z,{className:St.Z.lists,gutter:[10,10]},tt.map((gt,ft)=>Nt.createElement(qt.Z,{flex:"110px",className:St.Z.item},Nt.createElement("div",null,Nt.createElement(Dt.Z,{value:`$$${gt.value}$$`}),gt.name),Nt.createElement("div",{className:St.Z.children},gt.children.map((kt,jt)=>Nt.createElement("div",{key:jt},Nt.createElement("h1",null,kt.name),Nt.createElement(xt.Z,{gutter:[10,10]},kt.data.map((Ht,Ot)=>Nt.createElement(qt.Z,{key:Ot,onClick:()=>rt(Ht),className:St.Z.diamond},Nt.createElement(Dt.Z,{value:"`$$"+Ht.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Nt.createElement(xt.Z,{className:St.Z.lists,gutter:[10,10]},st.map((gt,ft)=>Nt.createElement(qt.Z,{flex:"110px",className:St.Z.item},Nt.createElement("div",null,Nt.createElement(Dt.Z,{value:"`$$"+gt.value+"$$`"}),gt.name),Nt.createElement("div",{className:St.Z.children},gt.children.map((kt,jt)=>Nt.createElement("div",{key:jt},kt.name&&Nt.createElement("h1",null,kt.name),Nt.createElement(xt.Z,{gutter:[10,10]},kt.data.map((Ht,Ot)=>Nt.createElement(qt.Z,{key:Ot,onClick:()=>rt(Ht),className:St.Z.diamond},Nt.createElement(Dt.Z,{value:"`$$"+Ht.value+"$$`"}))))))))))}],ct=()=>{var gt=document.createElement("div");gt.innerHTML=et.current.getValue();var ft=gt.innerText;return Ct&&Ct(ft),ft};return(0,Jt.useImperativeHandle)(vt,()=>({getData:ct})),Nt.createElement("div",{className:St.Z.mathWrap},Nt.createElement(Vt.default,{defaultActiveKey:"1",items:ut}),Nt.createElement("math-field",{locale:"zh_cn",className:St.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Ft||""),Lt&&Nt.createElement("div",{className:St.Z.button},Nt.createElement(Rt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jn.Z=Pt},65866:function(An,jn,he){"use strict";he.d(jn,{z:function(){return Qe},Z:function(){return ae}});var Jt=he(67294),xt=he(35059),qt=he(2453),Vt=he(62844),Rt=he(85804),Dt=he(11320),St=he(4440),Et=Object.defineProperty,Nt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Lt=(_t,$t,re)=>$t in _t?Et(_t,$t,{enumerable:!0,configurable:!0,writable:!0,value:re}):_t[$t]=re,Ft=(_t,$t)=>{for(var re in $t||($t={}))Pt.call($t,re)&&Lt(_t,re,$t[re]);if(Nt)for(var re of Nt($t))Ct.call($t,re)&&Lt(_t,re,$t[re]);return _t},vt=(_t,$t,re)=>new Promise((pe,le)=>{var Ue=Le=>{try{Xe(re.next(Le))}catch(xe){le(xe)}},Ne=Le=>{try{Xe(re.throw(Le))}catch(xe){le(xe)}},Xe=Le=>Le.done?pe(Le.value):Promise.resolve(Le.value).then(Ue,Ne);Xe((re=re.apply(_t,$t)).next())});const et="\u3000\u3000";function tt(_t){var $t=["Bytes","KB","MB","GB","TB"];if(_t==0)return"0 Byte";var re=parseInt(""+Math.floor(Math.log(_t)/Math.log(1024)),10);return(_t/Math.pow(1024,re)).toFixed(1)+" "+$t[re]}var st=({value:_t=[],action:$t,onChange:re,className:pe,maxSize:le=150,title:Ue="\u6587\u4EF6\u4E0A\u4F20",accept:Ne=null})=>{const Xe={multiple:!1,fileList:_t,accept:Ne,withCredentials:!0,beforeUpload:xe=>xe.size/1024/1024<le?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${le}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(xe){var _e,Fe,Ae,oe;let Mt=[...xe.fileList];if(Mt=Mt.map(At=>(At.name.indexOf(et)===-1&&(At.name=`${At.name}${et}${tt(At.size)}`),Ft({},At))),xe.file.status==="done"&&((Fe=(_e=xe.file)==null?void 0:_e.response)==null?void 0:Fe.status)===-1){message.error((oe=(Ae=xe.file)==null?void 0:Ae.response)==null?void 0:oe.message),re([]);return}re(Mt)},onRemove:xe=>vt(void 0,null,function*(){const _e=xe.size/1024/1024;return xe.status==="uploading"?!0:_e<le&&(xe.response?xe.response.id:xe.uid)?yield removeAttachment(xe.response?xe.response.id:xe.id):!0})};function Le(xe){xe.preventDefault(),xe.stopPropagation()}return React.createElement("div",{className:`single-upload ${pe||""}`},React.createElement(Upload,Ft({},Xe),React.createElement(Button,{type:"primary",title:_t.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:_t.length>0,ghost:!0},Ue),React.createElement("span",{onClick:Le,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",le,"M)"," ")))},rt=he(33859),ut=he(96486),ct=Object.defineProperty,gt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,jt=(_t,$t,re)=>$t in _t?ct(_t,$t,{enumerable:!0,configurable:!0,writable:!0,value:re}):_t[$t]=re,Ht=(_t,$t)=>{for(var re in $t||($t={}))ft.call($t,re)&&jt(_t,re,$t[re]);if(gt)for(var re of gt($t))kt.call($t,re)&&jt(_t,re,$t[re]);return _t};const Ot=_t=>React.createElement("svg",Ht({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},_t),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ne=Object.defineProperty,Xt=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Pe=(_t,$t,re)=>$t in _t?ne(_t,$t,{enumerable:!0,configurable:!0,writable:!0,value:re}):_t[$t]=re,De=(_t,$t)=>{for(var re in $t||($t={}))ce.call($t,re)&&Pe(_t,re,$t[re]);if(Xt)for(var re of Xt($t))me.call($t,re)&&Pe(_t,re,$t[re]);return _t},Ve=(_t,$t,re)=>new Promise((pe,le)=>{var Ue=Le=>{try{Xe(re.next(Le))}catch(xe){le(xe)}},Ne=Le=>{try{Xe(re.throw(Le))}catch(xe){le(xe)}},Xe=Le=>Le.done?pe(Le.value):Promise.resolve(Le.value).then(Ue,Ne);Xe((re=re.apply(_t,$t)).next())});const{Dragger:we}=xt.default;function Qe(_t){let $t=[];return _t&&_t.length>0&&($t=_t.map(re=>({uid:re.id,id:re.id,name:re.title+et+re.filesize,url:re.url,filesize:re.filesize,status:"done",response:{id:re.id}}))),$t}var ae=({value:_t,onChange:$t,action:re,data:pe,className:le,maxSize:Ue=150,title:Ne="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Xe=!1,accept:Le="",additionalText:xe,isDragger:_e,number:Fe=1e3,aloneClear:Ae=!1,realTimeRemove:oe=!0,uploadText:Mt,setFileProgress:At,showFileProgress:Qt})=>{const[se,Kt]=(0,Jt.useState)(!1);let[It,bt]=(0,Jt.useState)(_t||[]),[Bt,ie]=(0,Jt.useState)(1);(0,Jt.useEffect)(()=>{_t&&(Bt===1&&bt([..._t]),ie(2),Fe===(_t==null?void 0:_t.length)&&Kt(!0))},[_t]);const Wt=()=>{setTimeout(()=>{It.pop(),bt([...It])},500)};Qt&&At(It.some(ke=>ke.status==="uploading"));const Zt={multiple:!0,disabled:se,accept:Le,withCredentials:!0,fileList:It,beforeUpload:(ke,tn)=>{const dn=ke.size/1024/1024;return It.concat(tn).length>Fe?(It.pop(),bt([...It]),qt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Fe}\u4E2A\u6587\u4EF6`),Ae?Promise.reject():(Wt(),!1)):dn<Ue?!0:(qt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ue}MB).`),Ae?Promise.reject():(Wt(),!1))},data:pe,action:re||`${Dt.Z.API_SERVER}/api/attachments.json`,onChange(ke){var tn,dn,ln,Bn;if(ke.file.status==="removed"?It=ke.fileList:It=(0,ut.uniqBy)([...ke.fileList,...It],"uid"),ke.file.status==="done"&&((dn=(tn=ke.file)==null?void 0:tn.response)==null?void 0:dn.status)===-1){qt.ZP.error((Bn=(ln=ke.file)==null?void 0:ln.response)==null?void 0:Bn.message);return}It.length>=Fe?Kt(!0):Kt(!1),bt([...It]),It=It.map(Vn=>{var Tn,un;return(Tn=Vn==null?void 0:Vn.response)!=null&&Tn.id&&(Vn.url=(un=Vn==null?void 0:Vn.response)==null?void 0:un.url),Vn.name.indexOf(et)===-1&&(Vn.name=`${Vn.name}${et}${tt(Vn.size)}`),De({},Vn)}),console.log("info:",ke,It),$t(It)},onRemove:ke=>Ve(void 0,null,function*(){if(!oe)return!0;const tn=()=>Ve(void 0,null,function*(){if(ke.response?ke.response.id:ke.id){let ln=yield(0,St.JZ)(ke.response?ke.response.id:ke.uid);return Promise.resolve(ln)}else return!0});return Xe?new Promise((dn,ln)=>{Vt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Jt.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ve(void 0,null,function*(){const Bn=yield tn();qt.ZP.success("\u5220\u9664\u6210\u529F"),dn(!0)}),onCancel:()=>dn(!1)})}):yield tn()})};function fe(ke){ke.preventDefault(),ke.stopPropagation()}return Jt.createElement("div",{className:`multi-upload ${le||""}`},_e&&Jt.createElement(we,De({},Zt),Jt.createElement("p",{className:"ant-upload-drag-icon"},Jt.createElement(rt.Z,null)),Jt.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",Jt.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ue,"MB)"," "),xe),!_e&&Jt.createElement(xt.default,De({},Zt),Jt.createElement(Rt.ZP,{disabled:se,className:"upload_button"},Jt.createElement("img",{className:"aBtn_img",src:te}),Ne),Jt.createElement("span",{onClick:fe,className:"upload_text"},Mt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ue}MB)`)))}},26194:function(An,jn,he){"use strict";var Jt=he(67294),xt=he(4977),qt=he(85804),Vt=Object.defineProperty,Rt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Pt=(vt,et,tt)=>et in vt?Vt(vt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):vt[et]=tt,Ct=(vt,et)=>{for(var tt in et||(et={}))Et.call(et,tt)&&Pt(vt,tt,et[tt]);if(St)for(var tt of St(et))Nt.call(et,tt)&&Pt(vt,tt,et[tt]);return vt},Lt=(vt,et)=>Rt(vt,Dt(et));const Ft=({img:vt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:gt,imgStyles:ft,loading:kt=!1,className:jt=""})=>Jt.createElement("section",{className:`tc animated fadeIn ${jt}`,style:Ct({color:"#999",margin:"100px auto",visibility:kt?"hidden":"visible"},tt)},Jt.createElement("img",{src:vt||xt,style:Lt(Ct({},ft),{pointerEvents:"none",userSelect:"none"})}),Jt.createElement("p",{className:"mt20 font14"},st||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Jt.createElement(qt.ZP,Ct({className:ct,onClick:ut},et),rt),gt&>);jn.Z=Ft},20819:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return ct}});var Jt=he(67294),xt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},qt=he(85804),Vt=he(30153),Rt=he(36295),Dt=he(83062),St=he(28706),Et=he(15835),Nt=he(26194),Pt=he(11320),Ct=he(66540),Lt=he(67294),Ft=Object.defineProperty,vt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(gt,ft,kt)=>ft in gt?Ft(gt,ft,{enumerable:!0,configurable:!0,writable:!0,value:kt}):gt[ft]=kt,rt=(gt,ft)=>{for(var kt in ft||(ft={}))et.call(ft,kt)&&st(gt,kt,ft[kt]);if(vt)for(var kt of vt(ft))tt.call(ft,kt)&&st(gt,kt,ft[kt]);return gt},ut=(gt,ft,kt)=>new Promise((jt,Ht)=>{var Ot=Xt=>{try{ne(kt.next(Xt))}catch(ce){Ht(ce)}},te=Xt=>{try{ne(kt.throw(Xt))}catch(ce){Ht(ce)}},ne=Xt=>Xt.done?jt(Xt.value):Promise.resolve(Xt.value).then(Ot,te);ne((kt=kt.apply(gt,ft)).next())}),ct=({editOffice:gt="view",data:ft,issaver:kt,onSaver:jt,theme:Ht,type:Ot,filename:te,monacoEditor:ne,className:Xt,style:ce,close:me,onClose:Pe,hasMask:De,disabledDownload:Ve,onImgDimensions:we,showNodata:Qe,recordInfo:ae})=>{const[_t,$t]=(0,Jt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[re,pe]=(0,Jt.useState)(""),[le,Ue]=(0,Jt.useState)(),Ne=window.ENV==="build"?"/react/build":"",Xe=location.host.startsWith("localhost")?Pt.Z.PROXY_SERVER:Pt.Z.API_SERVER,xe=10*(1024*1024),_e=(0,Jt.useRef)();ft!=null&&ft.startsWith("/api")&&Ot!=="txt"&&(ft=Pt.Z.API_SERVER+ft);const Fe=Qt=>Qt.substring(Qt.lastIndexOf("/")+1).split(".").pop();te&&ne&&(ne.filename=te),(0,Jt.useEffect)(()=>{var Qt,se;const Kt=(se=(Qt=document.cookie)==null?void 0:Qt.replace(/\s/g,""))==null?void 0:se.split(";");Kt==null||Kt.map(It=>{let bt=It.split("=");bt[0]==="_educoder_session"&&pe(bt[1])})},[]),(0,Jt.useEffect)(()=>{Ot==="office"&&(ft.indexOf("bigfilescdn.")>-1||ft.indexOf("bigfiles1")>-1?Ue({url:ft,fileType:Fe(ft),model:ft.indexOf("model=edit")?"edit":"view"}):oe())},[Ot,ft]);function Ae(Qt){return ut(this,null,function*(){Qt.data.type==="pdfdata"&&(jt(Qt.data.data),window.removeEventListener("message",Ae,!1)),console.log("mess---:",Qt.data)})}const oe=()=>ut(void 0,null,function*(){console.log("data:",ft);let Qt=ft;ft.startsWith("http")||(Qt=location.origin+Qt);let se=new URL(Qt).pathname.split("/").pop();const Kt=yield(0,Et.gJ)({attachment_id:se});Kt.url=Xe+Kt.url,Ue(Kt)}),Mt=()=>{if(ft.startsWith("http")||ft.startsWith("blob:")){At();return}(0,St.Sv)(te||"educoder",ft,te)},At=()=>{ae&&(0,Ct.fc)({id:ae==null?void 0:ae.id,watch_type:1,course_id:ae==null?void 0:ae.course_id}),(0,St.Nd)(te||"educoder",decodeURIComponent(ft))};return Lt.createElement("div",{style:rt({},ce||{}),className:`${De&&xt.bgBlack} ${Ot?xt.wrp:"hide"}`},me&&Lt.createElement("div",{className:xt.close,ref:_e},!!we&&Lt.createElement(Dt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_e.current},Lt.createElement("span",{onClick:()=>{Pe(),we()}},Lt.createElement("i",{className:"icon-yulanpizhu"}))),!Ve&&Lt.createElement(Dt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_e.current},Lt.createElement("span",{onClick:At},Lt.createElement("i",{className:"icon-quxiaozhiding"}))),kt&&Lt.createElement(Dt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_e.current},Lt.createElement("span",{className:"",onClick:()=>{const Qt=document.getElementById("pdfiframe");window.addEventListener("message",Ae,!1),setTimeout(()=>{Qt.contentWindow.postMessage("getData","*")},300)}},Lt.createElement("i",{className:"icon-baocun"}))),Lt.createElement(Dt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_e.current},Lt.createElement("span",{className:"",onClick:()=>{Pe()}},Lt.createElement("i",{className:"icon-guanbi1"})))),Lt.createElement("div",{className:`${xt[Xt]} ${Xt} ${xt.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&Lt.createElement(Lt.Fragment,null,Lt.createElement(Rt.ZP,rt({},ne)))),Ot==="audio"&&Lt.createElement("audio",{src:`${(ft==null?void 0:ft.indexOf("http://"))>-1||(ft==null?void 0:ft.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ft}`,autoPlay:!0}),Ot==="video"&&Lt.createElement(Lt.Fragment,null,(ft==null?void 0:ft.indexOf("http"))>-1?Lt.createElement("video",{controls:!0,src:`${ft}`,autoPlay:!0}):Lt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ft}`,autoPlay:!0})),Ot==="office"&&le&&Lt.createElement("iframe",{src:`${Ne}/office.html?key=${le.key}&url=${btoa(le.url)}&callbackUrl=${Xe+(le.callbackUrl||"")}&fileType=${le.fileType}&title=${le.title||""}&model=${gt}&officeServer=${Pt.Z.ONLYOFFICE}&disabledDownload=${!!Ve}`}),Ot==="html"&&Lt.createElement("iframe",{src:ft+"&disposition=inline"}),Ot==="pdf"&&Lt.createElement("iframe",{id:"pdfiframe",src:`${Ne}/js/pdfview/index.html?filename=${te||"educoder.pdf"}&url=${encodeURIComponent(ft)}&disabledDownload=${!!Ve}&model=${gt}`}),Ot==="image"&&Lt.createElement("img",{src:`${(ft==null?void 0:ft.indexOf("http://"))>-1||(ft==null?void 0:ft.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ft}`}),(Ot==="other"||Ot==="download")&&Lt.createElement(Lt.Fragment,null,Qe?Lt.createElement(Nt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Lt.createElement(qt.ZP,{icon:Lt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Mt,disabled:Ve},"\u4E0B\u8F7D")}):Lt.createElement(qt.ZP,{type:"primary",size:"middle",onClick:Mt,disabled:Ve},Lt.createElement(Vt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},65226:function(An,jn,he){"use strict";he.d(jn,{z:function(){return Ot},Z:function(){return te}});var Jt=he(67294),xt=he(81897),qt=he(51161),Vt=he(11771),Rt=he(67631),Dt=he.n(Rt),St=he(11320),Et=he(28706),Nt=he(20527),Pt=he(25934),Ct=he(20819),Lt=he(67294),vt=({html:ne})=>{const Xt=(0,Jt.useRef)(null),ce=(0,Jt.useRef)(null),me=`.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,Jt.useEffect)(()=>{const Pe=Xt.current.attachShadow({mode:"open"});ce.current=document.createElement("div"),ce.current.className="markdown-body",ce.current.innerHTML=ne,Pe.appendChild(ce.current);const De=document.createElement("style");return De.textContent=me,Pe.appendChild(De),()=>{Pe.innerHTML=""}},[]),(0,Jt.useEffect)(()=>{ce.current&&(ce.current.innerHTML=ne)},[ne]),Lt.createElement("div",{ref:Xt})};function et(ne){const Xt=["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"],ce=new RegExp(`\\b(${Xt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ne.replace(ce,"").trim()}var tt=Object.defineProperty,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(ne,Xt,ce)=>Xt in ne?tt(ne,Xt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):ne[Xt]=ce,gt=(ne,Xt)=>{for(var ce in Xt||(Xt={}))rt.call(Xt,ce)&&ct(ne,ce,Xt[ce]);if(st)for(var ce of st(Xt))ut.call(Xt,ce)&&ct(ne,ce,Xt[ce]);return ne};const ft="@\u2581\u2581@",kt="@\u2581@",jt=/<pre[^>]*>/g;function Ht(ne){let Xt=document.createElement("div");return Xt.innerHTML=ne,Xt.childNodes.length===0?"":Xt.childNodes[0].nodeValue}const Ot=(ne,Xt)=>{ne=ne||"";const ce=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xt?ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ce,(Ve,we,Qe,ae,_t,$t,re)=>{const pe=we||ae||$t,le=Qe||_t||re||"?";return St.Z.API_SERVER+"/api/attachments/"+pe+le+"&t="+(0,Et.Jn)(pe,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ne=ne.replace(De,(Ve,we,Qe,ae,_t,$t,re)=>{const pe=we||ae||$t,le=Qe||_t||re||"?";return St.Z.API_SERVER+"/attachments/download/"+pe+le+"&t="+(0,Et.Jn)(pe,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(ce,(Ve,we,Qe,ae,_t,$t,re)=>{const pe=we||ae||$t,le=Qe||_t||re||"?";return St.Z.API_SERVER+"/api/attachments/"+pe+le+"&t="+(0,Et.Jn)(pe,Date.now())+(Ve.indexOf(")")>-1?")":"&")}).replace(me,(Ve,we,Qe,ae,_t)=>{const $t=we||ae,re=Qe||_t||"";return'"'+St.Z.API_SERVER+"/api/attachments/"+$t+re+$t+re+"&t="+(0,Et.Jn)($t,Date.now())}).replace(Pe,(Ve,we,Qe,ae,_t)=>{const $t=we||ae,re=Qe||_t||"";return"("+St.Z.API_SERVER+"/files/uploads/"+$t+re+$t+re+"&t="+(0,Et.Jn)($t,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,`
|
|
`),ne)};var te=({value:ne="",className:Xt,showTextOnly:ce,showLines:me,style:Pe={},stylesPrev:De={},highlightKeywords:Ve,showProgramFill:we,isProgramFill:Qe,disabledFill:ae=!1,programFillValue:_t,onFillChange:$t=le=>{},onFillBlur:re=()=>{},onFillFocus:pe=()=>{}})=>{let le=et(String(ne||""));const[Ue,Ne]=(0,Jt.useState)(""),[Xe,Le]=(0,Jt.useState)("office"),[xe,_e]=(0,Jt.useState)([]),Fe=(0,Jt.useRef)("a"+(0,Pt.Z)()),Ae={},oe=fe=>/<style[\s\S]*?>/i.test(fe||""),Mt=(fe,ke,tn)=>{const dn=document.createElement(fe===kt?"input":"textarea");dn.style.width="100%",dn.style.height=fe===kt?"40px":"151px",dn.rows=5,dn.spellcheck=!1,dn.name="edu-program-fill",dn.placeholder="\u8BF7\u8F93\u5165",dn.dataset.id=ke;const ln=Object.keys(Ae).length;return Ae[ln]=dn,`<span class="edu-program-fill-wrap ${fe===kt?"":"show"}" style="width:${fe===kt?"600px":"100%"}" title=${tn||""}><span>${dn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function At(fe){return fe=fe.replace(/!\[.*?\]\(.*?\)/g,""),fe=fe.replace(/\[.*?\]\(.*?\)/g,""),fe=fe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),fe=fe.replace(/<embed.*?>/g,""),fe=fe.replace(/<img.*?>/g,""),fe=fe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),fe=fe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),fe=fe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),fe=fe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),fe}const Qt=fe=>!ce&&oe(le)?fe:fe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ke,tn){let dn=tn.replace(/(\n|\r)/g,"").split("}"),ln=[];return dn.map(Bn=>{Bn!=""&&ln.push(`.${Fe.current} ${Bn}`)}),`<style>${ln.join("}")}</style>`}),se=(0,Jt.useMemo)(()=>{try{const dn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ln=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Bn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Vn=/\(\/attachments\/download\//g;le=le.replace(Vn,"("+St.Z.API_SERVER+"/attachments/download/").replace(dn,"("+St.Z.API_SERVER+"/api/attachments/").replace(ln,'"'+St.Z.API_SERVER+"/api/attachments/").replace(Bn,'"'+St.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(dn){}if(we){let dn=-1;return le=le.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ln,Bn,Vn){var Tn;return++dn,Mt(ln,dn,(Tn=_t==null?void 0:_t[dn])==null?void 0:Tn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Qt(le||"")}</pre>`}let fe=Qt(le);fe=(0,qt.ZP)(fe);const ke=(0,qt.ez)();le.match(/\[TOC\]/)&&(fe=fe.replace("<p>[TOC]</p>",(0,qt.Qv)()),(0,qt.Iy)()),fe=fe.replace(/(__special_katext_id_\d+__)/g,(dn,ln)=>{const{type:Bn,expression:Vn}=ke[ln];return(0,Nt.renderToString)(Ht(Vn)||"",{displayMode:Bn==="block",throwOnError:!1,output:"html"})}),fe=fe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,qt.AL)();const tn=document.createElement("div");if(tn.innerHTML=fe,ce)return tn.innerText;if(Ve){const dn=Ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Bt(tn,dn),tn.innerHTML}return setTimeout(()=>Zt(),500),tn.innerHTML},[le,Ve]);(0,Jt.useEffect)(()=>{ie.current&&ie.current.querySelectorAll(["input","textarea"]).forEach(ke=>{ke.oninput=Kt,ke.onblur=It,ke.onfocus=bt})},[xe]),(0,Jt.useEffect)(()=>{var fe,ke,tn,dn,ln;if(_t!=null&&_t.length)try{const Bn=ie.current.querySelectorAll(".edu-program-fill-score"),Vn=ie.current.querySelectorAll('[name="edu-program-fill"]');for(const[Tn,un]of Vn.entries())un.value=((fe=_t==null?void 0:_t[Tn])==null?void 0:fe.value)||"",((ke=_t==null?void 0:_t[Tn])==null?void 0:ke.type)==="warning"?un.className="program-fill-warning":((tn=_t==null?void 0:_t[Tn])==null?void 0:tn.type)==="success"?un.className="program-fill-success":un.className="";for(const[Tn,un]of Bn.entries())un.innerHTML=(dn=_t==null?void 0:_t[Tn])!=null&&dn.score?`${(ln=_t==null?void 0:_t[Tn])==null?void 0:ln.score}\u5206`:"";_e(_t)}catch(Bn){console.log(Bn,"error")}},[_t]);const Kt=fe=>{xe[fe.target.dataset.id]=xe[fe.target.dataset.id]||{},xe[fe.target.dataset.id].value=fe.target.value,_e([...xe]),$t(xe,fe.target.dataset.id)},It=fe=>{xe[fe.target.dataset.id]=xe[fe.target.dataset.id]||{},xe[fe.target.dataset.id].value=fe.target.value,_e([...xe]),re(xe,fe.target.dataset.id)},bt=fe=>{xe[fe.target.dataset.id]=xe[fe.target.dataset.id]||{},xe[fe.target.dataset.id].value=fe.target.value,_e([...xe]),pe(xe,fe.target.dataset.id)};function Bt(fe,ke){return fe.childNodes.forEach(tn=>{var dn;if(tn.childNodes.length>0)Bt(tn,ke);else if(tn.nodeName!=="IMG")if(tn.innerHTML)tn.innerHTML=(dn=tn.innerHTML)==null?void 0:dn.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ln=document.createElement("span");ln.innerHTML=tn.textContent.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),tn.replaceWith(ln)}})}const ie=(0,Jt.useRef)();qt.jb.WebkitLineClamp=me,me&&(Pe=gt(gt({},Pe),qt.jb));function Wt(fe){let ke=fe.target;if(ke.tagName.toUpperCase()==="A"){let tn=ke.getAttribute("href");if(tn.indexOf("office")>-1)fe.preventDefault(),Ne(tn),Le("office");else if(tn.indexOf("application/pdf")>-1)fe.preventDefault(),Ne(tn),Le("pdf");else if(tn.indexOf("text/html")>-1)fe.preventDefault(),Ne(tn),Le("html");else if(tn.startsWith("#")){fe.preventDefault();let dn=document.getElementById(tn.replace("#",""));dn&&dn.scrollIntoView(!0)}}}const Zt=()=>{var fe;const ke=(fe=ie.current)==null?void 0:fe.querySelectorAll("video");ke==null||ke.forEach(tn=>{if(tn.oncontextmenu=()=>!1,tn.src.indexOf(".m3u8")>-1&&!tn.canPlayType("application/vnd.apple.mpegurl")){if(Dt().isSupported()){var dn=new(Dt());dn.loadSource(tn.src),dn.attachMedia(tn)}}})};return(0,Jt.useEffect)(()=>{if(ie.current&&se&&se.match(jt)&&window.PR.prettyPrint(),ie.current)return ie.current.addEventListener("click",Wt),()=>{var fe;(fe=ie.current)==null||fe.removeEventListener("click",Wt),(0,qt.AL)(),(0,qt.Iy)()}},[se,ie.current,Wt]),(0,Jt.useEffect)(()=>{var fe;const ke=tn=>{tn.preventDefault(),tn.clipboardData.setData("text",window.getSelection().toString())};return(fe=ie.current)==null||fe.addEventListener("copy",ke),()=>{var tn;(tn=ie.current)==null||tn.removeEventListener("copy",ke)}},[ie.current]),Jt.createElement(Jt.Fragment,null,ce&&Jt.createElement("div",{ref:ie},se),!ce&&!oe(se)&&Jt.createElement("div",{ref:ie,style:gt({},Pe),className:`${Xt||""} ${ae?"disabled-fill":""} markdown-body ${Fe.current}`,dangerouslySetInnerHTML:{__html:se}}),!ce&&oe(se)&&Jt.createElement(vt,{html:se}),Jt.createElement(Ct.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?Xe:"",style:gt({},De),onClose:()=>Ne("")}))}},71865:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Vt}});var Jt=he(67294),xt=he(33054),qt=he(30264),Vt=()=>{const[Rt,Dt]=(0,Jt.useState)(""),[St,Et]=(0,Jt.useState)(0);let[Nt,Pt]=(0,Jt.useState)(),[Ct,Lt]=(0,Jt.useState)();const[Ft,vt]=(0,Jt.useState)(!1),et=(0,Jt.useRef)("");(0,Jt.useEffect)(()=>xt.Z.subscribe("preview-image",Ot=>{Dt(Ot),console.log(kt.current),document.body.style.overflow="hidden"}),[]),(0,Jt.useEffect)(()=>(document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}),[]),(0,Jt.useEffect)(()=>{et.current=Rt},[Rt]);function tt(Ht){Ht.keyCode==27&&et.current&&st()}function st(){document.body.style.overflow="auto",Pt(void 0),Lt(void 0),Et(0),Dt("")}function rt(){Et(St+90)}function ut(){Nt=kt.current.width*1.1,Ct=kt.current.height*1.1,Lt(Ct),Pt(Nt)}function ct(){Nt=kt.current.width/1.1,Ct=kt.current.height/1.1,Lt(Ct),Pt(Nt)}const gt=(0,Jt.useRef)(),ft=(0,Jt.useRef)(),kt=(0,Jt.useRef)(),jt=Ht=>{(Ht.nativeEvent.target===gt.current||Ht.nativeEvent.target===ft.current)&&st()};return Jt.createElement(Jt.Fragment,null,Rt?Jt.createElement("div",null,Jt.createElement("div",{className:"preview-wrp-group",ref:ft},Jt.createElement(qt.Z,{className:"image-preview",src:Rt,style:{display:"none"},preview:{visible:!0,src:Rt,onVisibleChange:Ht=>{Dt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(An,jn,he){"use strict";he.d(jn,{h:function(){return gt}});var Jt=he(67294),xt=he(88044),qt=he(91773),Vt=he(85804),Rt=he(4631),Dt=he.n(Rt),St=he(71749),Et=he(30483),Nt=Object.defineProperty,Pt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,et=(ft,kt,jt)=>kt in ft?Nt(ft,kt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):ft[kt]=jt,tt=(ft,kt)=>{for(var jt in kt||(kt={}))Ft.call(kt,jt)&&et(ft,jt,kt[jt]);if(Lt)for(var jt of Lt(kt))vt.call(kt,jt)&&et(ft,jt,kt[jt]);return ft},st=(ft,kt)=>Pt(ft,Ct(kt));const rt=xt.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};jn.Z=({callback:ft,onCancel:kt})=>{const[jt,Ht]=(0,Jt.useState)("python");function Ot(ne){Ht(ct[ne][1])}function te(ne){ft(ne)}return Jt.createElement(qt.default,st(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:te,style:{width:500}}),Jt.createElement(qt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Jt.createElement(xt.default,{getPopupContainer:ne=>ne.parentNode,onChange:Ot},Object.keys(ct).map(ne=>Jt.createElement(rt,{key:ne,value:ne},ct[ne][0])))),Jt.createElement(qt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Jt.createElement(gt,{mode:jt})),Jt.createElement("div",{className:"flex-container flex-end"},Jt.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Jt.createElement(Vt.ZP,{type:"ghost",onClick:kt},"\u53D6\u6D88")))};function gt({value:ft,onChange:kt,mode:jt,options:Ht={}}){const Ot=(0,Jt.useRef)(),[te,ne]=(0,Jt.useState)();return(0,Jt.useEffect)(()=>{if(te){let Xt=function(ce){const me=ce.getValue();kt&&kt(me)};return te.on("change",Xt),()=>{te.off("change",Xt)}}},[te,kt]),(0,Jt.useEffect)(()=>{te&&te.setOption("mode",jt)},[te,jt]),(0,Jt.useEffect)(()=>{te&&(ft!==te.getValue()||ft==="")&&setTimeout(()=>{te.setValue(ft||"")},300)},[te,ft]),(0,Jt.useEffect)(()=>{if(Ot.current&&!te){const Xt=Dt().fromTextArea(Ot.current,tt({mode:jt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ht));ne(Xt)}},[Ot.current,te]),Jt.createElement("div",{className:"my-codemirror-container"},Jt.createElement("textarea",{ref:Ot}))}},35567:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return gi}});var Jt=he(67294),xt=he(4631),qt=he.n(xt),Vt=he(91033),Rt=he(71749),Dt=he(57341),St=he(82801),Et=he(88386),Nt=he(49047),Pt=he(80785),Ct=he(65226),Lt=({value:nn="",className:en,showTextOnly:We,showLines:sn,style:Xn={}})=>{const Zn=(0,Jt.useMemo)(()=>"",[nn]);return Jt.createElement(Jt.Fragment,null,Jt.createElement("div",{dangerouslySetInnerHTML:{__html:Zn}}))},Ft=Object.defineProperty,vt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ut=(nn,en,We)=>en in nn?Ft(nn,en,{enumerable:!0,configurable:!0,writable:!0,value:We}):nn[en]=We,ct=(nn,en)=>{for(var We in en||(en={}))st.call(en,We)&&ut(nn,We,en[We]);if(tt)for(var We of tt(en))rt.call(en,We)&&ut(nn,We,en[We]);return nn},gt=(nn,en)=>vt(nn,et(en));let ft=[{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 kt({onActionCallback:nn,title:en,icon:We,actionName:sn,className:Xn="",children:Zn}){function zn(){nn(sn)}return Jt.createElement("a",{title:en,className:Xn,onClick:zn},Jt.createElement("i",{className:`${We}`}),Zn)}var jt=({watch:nn,showNullButton:en,showNullProgramButton:We,onActionCallback:sn,fullScreen:Xn,insertTemp:Zn,hidetoolBar:zn,extraUse:Ze})=>{const mn=[...ft,{title:`${nn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Jt.createElement("ul",{className:"markdown-toolbar-container"},!zn&&mn.map((ri,Si)=>Jt.createElement("li",{key:Si},ri.actionName?Jt.createElement(kt,gt(ct({},ri),{onActionCallback:sn})):Jt.createElement("span",{className:"v-line"}))),en?Jt.createElement("li",null,Jt.createElement(kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:sn},Jt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,We?Jt.createElement(Jt.Fragment,null,Jt.createElement("li",null,Jt.createElement(kt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:sn},Jt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Jt.createElement("li",null,Jt.createElement(kt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:sn},Jt.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Zn&&Jt.createElement("li",null,Jt.createElement(kt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zn}`,onActionCallback:sn},Jt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ze&&Jt.createElement("li",null,Ze),Jt.createElement("li",{className:"btn-full-screen"},Jt.createElement(kt,{icon:`${Xn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Xn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:sn})))},Ht=he(76621),Ot=he(91773),te=he(28802),ne=he(85804),Xt=Object.defineProperty,ce=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,we=(nn,en,We)=>en in nn?Xt(nn,en,{enumerable:!0,configurable:!0,writable:!0,value:We}):nn[en]=We,Qe=(nn,en)=>{for(var We in en||(en={}))De.call(en,We)&&we(nn,We,en[We]);if(Pe)for(var We of Pe(en))Ve.call(en,We)&&we(nn,We,en[We]);return nn},ae=(nn,en)=>ce(nn,me(en));const _t={labelCol:{span:4},wrapperCol:{span:20}};var $t=({callback:nn,onCancel:en})=>{function We(sn){nn(sn)}return Jt.createElement(Ot.default,ae(Qe({},_t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:We,style:{width:500}}),Jt.createElement(Ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Jt.createElement(te.default,null)),Jt.createElement(Ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Jt.createElement(te.default,null)),Jt.createElement("div",{className:"flex-container flex-end"},Jt.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Jt.createElement(ne.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},re=he(57444),pe=he(70859),le=he(62844),Ue=he(71230),Ne=he(63205),Xe=he(67294),Le=({callback:nn,onCancel:en})=>{const We=document.createElement("canvas"),sn=We.getContext("2d");We.width=1e3,We.height=800,sn.fillStyle="#ffffff",sn.fillRect(0,0,We.width,We.height);const Xn=We.toDataURL("image/png");return Xe.createElement(le.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(Ue.Z,{style:{height:"100vh"}},Xe.createElement(Ne.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Xn,visible:!0,title:String(Date.now())},onOk:Zn=>{nn({src:Zn.url})},onClose:en})))},xe=he(23495);function _e(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(_e,go.CommandHandler),_e.prototype.canAlignSelection=function(){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<2)},_e.prototype.alignLeft=function(){var nn=this.diagram;nn.startTransaction("aligning left");var en=1/0;nn.selection.each(function(We){We instanceof go.Link||(en=Math.min(We.position.x,en))}),nn.selection.each(function(We){We instanceof go.Link||We.move(new go.Point(en,We.position.y))}),nn.commitTransaction("aligning left")},_e.prototype.alignRight=function(){var nn=this.diagram;nn.startTransaction("aligning right");var en=-1/0;nn.selection.each(function(We){if(!(We instanceof go.Link)){var sn=We.actualBounds.x+We.actualBounds.width;en=Math.max(sn,en)}}),nn.selection.each(function(We){We instanceof go.Link||We.move(new go.Point(en-We.actualBounds.width,We.position.y))}),nn.commitTransaction("aligning right")},_e.prototype.alignTop=function(){var nn=this.diagram;nn.startTransaction("alignTop");var en=1/0;nn.selection.each(function(We){We instanceof go.Link||(en=Math.min(We.position.y,en))}),nn.selection.each(function(We){We instanceof go.Link||We.move(new go.Point(We.position.x,en))}),nn.commitTransaction("alignTop")},_e.prototype.alignBottom=function(){var nn=this.diagram;nn.startTransaction("aligning bottom");var en=-1/0;nn.selection.each(function(We){if(!(We instanceof go.Link)){var sn=We.actualBounds.y+We.actualBounds.height;en=Math.max(sn,en)}}),nn.selection.each(function(We){We instanceof go.Link||We.move(new go.Point(We.actualBounds.x,en-We.actualBounds.height))}),nn.commitTransaction("aligning bottom")},_e.prototype.alignCenterX=function(){var nn=this.diagram,en=nn.selection.first();if(en){nn.startTransaction("aligning Center X");var We=en.actualBounds.x+en.actualBounds.width/2;nn.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(We-sn.actualBounds.width/2,sn.actualBounds.y))}),nn.commitTransaction("aligning Center X")}},_e.prototype.alignCenterY=function(){var nn=this.diagram,en=nn.selection.first();if(en){nn.startTransaction("aligning Center Y");var We=en.actualBounds.y+en.actualBounds.height/2;nn.selection.each(function(sn){sn instanceof go.Link||sn.move(new go.Point(sn.actualBounds.x,We-sn.actualBounds.height/2))}),nn.commitTransaction("aligning Center Y")}},_e.prototype.alignColumn=function(nn){var en=this.diagram;en.startTransaction("align Column"),nn===void 0&&(nn=0),nn=parseFloat(nn);var We=new Array;en.selection.each(function(Ze){Ze instanceof go.Link||We.push(Ze)});for(var sn=0;sn<We.length-1;sn++){var Xn=We[sn],Zn=Xn.actualBounds.y+Xn.actualBounds.height+nn,zn=We[sn+1];zn.move(new go.Point(Xn.actualBounds.x,Zn))}en.commitTransaction("align Column")},_e.prototype.alignRow=function(nn){nn===void 0&&(nn=0),nn=parseFloat(nn);var en=this.diagram;en.startTransaction("align Row");var We=new Array;en.selection.each(function(Ze){Ze instanceof go.Link||We.push(Ze)});for(var sn=0;sn<We.length-1;sn++){var Xn=We[sn],Zn=Xn.actualBounds.x+Xn.actualBounds.width+nn,zn=We[sn+1];zn.move(new go.Point(Zn,Xn.actualBounds.y))}en.commitTransaction("align Row")},_e.prototype.canRotate=function(nn){var en=this.diagram;return!(en===null||en.isReadOnly||en.isModelReadOnly||en.selection.count<1)},_e.prototype.rotate=function(nn){nn===void 0&&(nn=90);var en=this.diagram;en.startTransaction("rotate "+nn.toString());var en=this.diagram;en.selection.each(function(We){We instanceof go.Link||We instanceof go.Group||(We.angle+=nn)}),en.commitTransaction("rotate "+nn.toString())},_e.prototype.pullToFront=function(){var nn=this.diagram;nn.startTransaction("pullToFront");var en=new go.Map;nn.selection.each(function(We){en.set(We.layer,0)}),en.iteratorKeys.each(function(We){var sn=0;We.parts.each(function(Xn){if(!Xn.isSelected){var Zn=Xn.zOrder;isNaN(Zn)?Xn.zOrder=0:sn=Math.max(sn,Zn)}}),en.set(We,sn)}),nn.selection.each(function(We){_e._assignZOrder(We,en.get(We.layer)+1)}),nn.commitTransaction("pullToFront")},_e.prototype.pushToBack=function(){var nn=this.diagram;nn.startTransaction("pushToBack");var en=new go.Map;nn.selection.each(function(We){en.set(We.layer,0)}),en.iteratorKeys.each(function(We){var sn=0;We.parts.each(function(Xn){if(!Xn.isSelected){var Zn=Xn.zOrder;isNaN(Zn)?Xn.zOrder=0:sn=Math.min(sn,Zn)}}),en.set(We,sn)}),nn.selection.each(function(We){_e._assignZOrder(We,en.get(We.layer)-1-_e._findGroupDepth(We))}),nn.commitTransaction("pushToBack")},_e._assignZOrder=function(nn,en,We){We===void 0&&(We=nn),nn.layer===We.layer&&(nn.zOrder=en),nn instanceof go.Group&&nn.memberParts.each(function(sn){_e._assignZOrder(sn,en+1,We)})},_e._findGroupDepth=function(nn){if(nn instanceof go.Group){var en=0;return nn.memberParts.each(function(We){en=Math.max(en,_e._findGroupDepth(We))}),en+1}else return 0},_e.prototype.doKeyDown=function(){var nn=this.diagram;if(nn!==null){var en=nn.lastInput;if(en.key==="Up"||en.key==="Down"||en.key==="Left"||en.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)}},_e.prototype._getAllParts=function(){var nn=new Array;return this.diagram.nodes.each(function(en){nn.push(en)}),this.diagram.parts.each(function(en){nn.push(en)}),nn},_e.prototype._arrowKeyMove=function(){var nn=this.diagram,en=nn.lastInput,We=0,sn=0;if(en.control||en.meta)We=1,sn=1;else if(nn.grid!==null){var Xn=nn.grid.gridCellSize;sn=Xn.width,We=Xn.height}nn.startTransaction("arrowKeyMove"),nn.selection.each(function(Zn){en.key==="Up"?Zn.move(new go.Point(Zn.actualBounds.x,Zn.actualBounds.y-We)):en.key==="Down"?Zn.move(new go.Point(Zn.actualBounds.x,Zn.actualBounds.y+We)):en.key==="Left"?Zn.move(new go.Point(Zn.actualBounds.x-sn,Zn.actualBounds.y)):en.key==="Right"&&Zn.move(new go.Point(Zn.actualBounds.x+sn,Zn.actualBounds.y))}),nn.commitTransaction("arrowKeyMove")},_e.prototype._arrowKeySelect=function(){var nn=this.diagram,en=nn.lastInput,We=null;en.key==="Up"?We=this._findNearestPartTowards(270):en.key==="Down"?We=this._findNearestPartTowards(90):en.key==="Left"?We=this._findNearestPartTowards(180):en.key==="Right"&&(We=this._findNearestPartTowards(0)),We!==null&&(en.shift?We.isSelected=!0:en.control||en.meta?We.isSelected=!We.isSelected:nn.select(We))},_e.prototype._findNearestPartTowards=function(nn){var en=this.diagram.selection.first();if(en===null)return null;for(var We=en.actualBounds.center,sn=this._getAllParts(),Xn=1/0,Zn=en,zn=0;zn<sn.length;zn++){var Ze=sn[zn];if(Ze!==en&&Ze.canSelect()){var mn=Ze.actualBounds.center,ri=We.directionPoint(mn),Si=this._angleCloseness(ri,nn);if(Si<=45){var En=We.distanceSquaredPoint(mn);En*=1+Math.sin(Si*Math.PI/180),En<Xn&&(Xn=En,Zn=Ze)}}}return Zn},_e.prototype._angleCloseness=function(nn,en){return Math.min(Math.abs(en-nn),Math.min(Math.abs(en+360-nn),Math.abs(en-360-nn)))},_e.prototype._arrowKeyTree=function(){var nn=this.diagram,en=nn.selection.first();if(en instanceof go.Node){var We=nn.lastInput;if(We.key==="Right"){if(!en.isTreeLeaf)if(!en.isTreeExpanded)nn.commandHandler.canExpandTree(en)&&nn.commandHandler.expandTree(en);else{var sn=this._sortTreeChildrenByY(en).first();sn!==null&&nn.select(sn)}}else if(We.key==="Left")if(!en.isTreeLeaf&&en.isTreeExpanded)nn.commandHandler.canCollapseTree(en)&&nn.commandHandler.collapseTree(en);else{var Xn=en.findTreeParentNode();Xn!==null&&nn.select(Xn)}else if(We.key==="Up"){var Xn=en.findTreeParentNode();if(Xn!==null){var Zn=this._sortTreeChildrenByY(Xn),zn=Zn.indexOf(en);if(zn>0){for(var Ze=Zn.elt(zn-1);Ze!==null&&Ze.isTreeExpanded&&!Ze.isTreeLeaf;){var mn=this._sortTreeChildrenByY(Ze);Ze=mn.last()}Ze!==null&&nn.select(Ze)}else nn.select(Xn)}}else if(We.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var sn=this._sortTreeChildrenByY(en).first();sn!==null&&nn.select(sn)}else for(;en!==null;){var Xn=en.findTreeParentNode();if(Xn===null)break;var Zn=this._sortTreeChildrenByY(Xn),zn=Zn.indexOf(en);if(zn<Zn.length-1){nn.select(Zn.elt(zn+1));break}else en=Xn}var ri=nn.selection.first();ri!==null&&nn.scrollToRect(ri.actualBounds)}},_e.prototype._sortTreeChildrenByY=function(nn){var en=new go.List().addAll(nn.findTreeChildrenNodes());return en.sort(function(We,sn){var Xn=We.location,Zn=sn.location;return Xn.y<Zn.y?-1:Xn.y>Zn.y?1:Xn.x<Zn.x?-1:Xn.x>Zn.x?1:0}),en},_e.prototype.copyToClipboard=function(nn){go.CommandHandler.prototype.copyToClipboard.call(this,nn),this._lastPasteOffset.set(this.pasteOffset)},_e.prototype.pasteFromClipboard=function(){var nn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(nn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),nn},Object.defineProperty(_e.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(nn){if(nn!=="move"&&nn!=="select"&&nn!=="scroll"&&nn!=="tree"&&nn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+nn);this._arrowKeyBehavior=nn}}),Object.defineProperty(_e.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(nn){if(!(nn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+nn);this._pasteOffset.set(nn)}});var Fe=_e,Ae=he(18023),oe=he(15746),Mt=he(33170),At={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qt=he(52262),se=he(67294),Kt=(nn,en,We)=>new Promise((sn,Xn)=>{var Zn=mn=>{try{Ze(We.next(mn))}catch(ri){Xn(ri)}},zn=mn=>{try{Ze(We.throw(mn))}catch(ri){Xn(ri)}},Ze=mn=>mn.done?sn(mn.value):Promise.resolve(mn.value).then(Zn,zn);Ze((We=We.apply(nn,en)).next())});function It({onCancel:nn,callback:en}){let We=(0,Jt.useRef)(),sn=(0,Jt.useRef)(),Xn=(0,Jt.useRef)(),Zn=(0,Jt.useRef)(!1);const zn=(0,Jt.useRef)(!1),[Ze,mn]=(0,Jt.useState)(0);function ri(){const En=xe.bx.make,Ye={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 xe.S0(sn.current,{padding:20,grid:En(xe.s_,"Grid",En(xe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),En(xe.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var Oi=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);Oi||qe.diagram.currentTool.doCancel()},commandHandler:En(Fe),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var Oi=qe.subject;Oi.location=Oi.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var Oi=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var Oi=qe.parameter.part;Oi.invalidateConnectedLinks();var ar=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?ar.toNode.invalidateConnectedLinks():ar.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),We.current.nodeTemplate=En(xe.NB,"Auto",{locationSpot:xe.z6.Center,locationObjectName:"SHAPE",desiredSize:new xe.$u(120,60),minSize:new xe.$u(40,40),resizable:!0,resizeCellSize:new xe.$u(10,10),rotatable:!0},new xe.KX("location","loc",xe.E9.parse).makeTwoWay(xe.E9.stringify),new xe.KX("desiredSize","size",xe.$u.parse).makeTwoWay(xe.$u.stringify),En(xe.bn,{name:"SHAPE",fill:Ye.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:xe.z6.AllSides,toSpot:xe.z6.AllSides},new xe.KX("figure"),new xe.KX("fill"),new xe.KX("stroke","borderColor"),new xe.KX("strokeWidth","thickness"),new xe.KX("strokeDashArray","dash")),En(xe.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),En(xe.al,{margin:1,textAlign:"center",overflow:xe.al.OverflowEllipsis,editable:!0},new xe.KX("text").makeTwoWay(),new xe.KX("stroke","color"))),We.current.nodeTemplate.toolTip=En("ToolTip",En(xe.s_,"Vertical",{maxSize:new xe.$u(200,NaN)},En(xe.al,{font:"bold 10pt sans-serif",textAlign:"center"},new xe.KX("text")),En(xe.al,{font:"10pt sans-serif",textAlign:"center"},new xe.KX("text","details"))));function ti(qe,Oi){var ar=(Pi,Gr)=>{Pi.handled=!0,Pi.diagram.model.commit(lr=>{var yr=Gr.part.adornedPart,cr=new xe.E9().setRectSpot(yr.actualBounds,qe);cr.subtract(yr.location),cr.scale(2,2),cr.x+=Math.sign(cr.x)*130,cr.y+=Math.sign(cr.y)*130,cr.add(yr.location),cr.snapToGridPoint(Pi.diagram.grid.gridOrigin,Pi.diagram.grid.gridCellSize);var er=lr.copyNodeData(yr.data);lr.setGroupKeyForNodeData(er,lr.getGroupKeyForNodeData(yr.data)),lr.addNodeData(er);var Er={from:yr.key,to:lr.getKeyForNodeData(er)};lr.addLinkData(Er);var Cn=Pi.diagram.findNodeForData(er);Cn.location=cr,Pi.diagram.select(Cn),setTimeout(()=>{Pi.diagram.commandHandler.editTextBlock()},20)})};return En(xe.bn,{figure:Oi,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(xe.z6.Top)||qe.equals(xe.z6.Bottom)?25:18,height:qe.equals(xe.z6.Top)||qe.equals(xe.z6.Bottom)?18:25,fill:"orange",stroke:Ye.white,strokeWidth:4,mouseEnter:(Pi,Gr)=>Gr.fill="dodgerblue",mouseLeave:(Pi,Gr)=>Gr.fill="orange",isActionable:!0,click:ar,contextClick:ar})}function xi(qe){return En(xe.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:(Oi,ar)=>ar.fill="dodgerblue",mouseLeave:(Oi,ar)=>ar.fill="orange",click:(Oi,ar)=>{Oi.diagram.commandHandler.showContextMenu(ar.part.adornedPart)}},qe||{})}We.current.nodeTemplate.selectionAdornmentTemplate=En(xe.uz,"Spot",En(xe.Vm,{padding:10}),ti(xe.z6.Top,"TriangleUp"),ti(xe.z6.Left,"TriangleLeft"),ti(xe.z6.Right,"TriangleRight"),ti(xe.z6.Bottom,"TriangleDown"),xi({alignment:new xe.z6(.75,0)}));function Ui(qe,Oi){return(ar,Pi)=>{ar.handled=!0,ar.diagram.model.commit(Gr=>{Gr.set(Pi.part.adornedPart.data,qe,Oi)})}}function yn(qe,Oi){return Oi||(Oi="color"),En(xe.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(ar,Pi)=>Pi.stroke="dodgerblue",mouseLeave:(ar,Pi)=>Pi.stroke="lightgray",click:Ui(Oi,qe),contextClick:Ui(Oi,qe)})}function hi(){return[En("ContextMenuButton",En(xe.s_,"Horizontal",yn(Ye.white,"fill"),yn(Ye.beige,"fill"),yn(Ye.extralightblue,"fill"),yn(Ye.extralightred,"fill"))),En("ContextMenuButton",En(xe.s_,"Horizontal",yn(Ye.lightgray,"fill"),yn(Ye.lightgreen,"fill"),yn(Ye.lightblue,"fill"),yn(Ye.lightred,"fill")))]}function tr(){return[En("ContextMenuButton",En(xe.s_,"Horizontal",yn(Ye.black),yn(Ye.green),yn(Ye.blue),yn(Ye.red))),En("ContextMenuButton",En(xe.s_,"Horizontal",yn(Ye.white),yn(Ye.magenta),yn(Ye.purple),yn(Ye.orange)))]}function zr(qe,Oi){return Oi||(Oi="thickness"),En(xe.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(ar,Pi)=>Pi.background="dodgerblue",mouseLeave:(ar,Pi)=>Pi.background="transparent",click:Ui(Oi,qe),contextClick:Ui(Oi,qe)})}function xr(qe,Oi){return Oi||(Oi="dash"),En(xe.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(ar,Pi)=>Pi.background="dodgerblue",mouseLeave:(ar,Pi)=>Pi.background="transparent",click:Ui(Oi,qe),contextClick:Ui(Oi,qe)})}function li(){return[En("ContextMenuButton",En(xe.s_,"Horizontal",zr(1),zr(2),zr(3),zr(4))),En("ContextMenuButton",En(xe.s_,"Horizontal",xr(null),xr([2,4]),xr([4,4])))]}function ai(qe,Oi){return Oi||(Oi="figure"),En(xe.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(ar,Pi)=>Pi.fill="dodgerblue",mouseLeave:(ar,Pi)=>Pi.fill="lightgray",click:Ui(Oi,qe),contextClick:Ui(Oi,qe)})}We.current.nodeTemplate.contextMenu=En("ContextMenu",En("ContextMenuButton",En(xe.s_,"Horizontal",ai("Rectangle"),ai("RoundedRectangle"),ai("Ellipse"),ai("Diamond"))),En("ContextMenuButton",En(xe.s_,"Horizontal",ai("Parallelogram2"),ai("ManualOperation"),ai("Procedure"),ai("Cylinder1"))),En("ContextMenuButton",En(xe.s_,"Horizontal",ai("Terminator"),ai("CreateRequest"),ai("Document"),ai("TriangleDown"))),hi(),tr(),li()),We.current.groupTemplate=En(xe.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:xe.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,Oi)=>{var ar=Oi.addMembers(Oi.diagram.selection,!0);ar||Oi.diagram.currentTool.doCancel()},avoidable:!1},new xe.KX("location","loc",xe.E9.parse).makeTwoWay(xe.E9.stringify),En(xe.s_,"Auto",{name:"BODY"},En(xe.bn,{parameter1:10,fill:Ye.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:xe.z6.AllSides,toSpot:xe.z6.AllSides},new xe.KX("fill"),new xe.KX("stroke","color"),new xe.KX("strokeWidth","thickness"),new xe.KX("strokeDashArray","dash")),En(xe.Vm,{background:"transparent",margin:20})),En(xe.al,{alignment:xe.z6.Top,alignmentFocus:xe.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new xe.KX("text"),new xe.KX("stroke","color"))),We.current.groupTemplate.selectionAdornmentTemplate=En(xe.uz,"Spot",En(xe.s_,"Auto",En(xe.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),En(xe.Vm,{margin:1.5})),xi({alignment:xe.z6.TopRight,alignmentFocus:xe.z6.BottomRight})),We.current.groupTemplate.contextMenu=En("ContextMenu",hi(),tr(),li()),We.current.linkTemplate=En(xe.rU,{layerName:"Foreground",routing:xe.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new xe.KX("fromSpot","fromSpot",xe.z6.parse),new xe.KX("toSpot","toSpot",xe.z6.parse),new xe.KX("fromShortLength","dir",qe=>qe>=1?10:0),new xe.KX("toShortLength","dir",qe=>qe>=1?10:0),new xe.KX("points").makeTwoWay(),En(xe.bn,{strokeWidth:2},new xe.KX("stroke","color"),new xe.KX("strokeWidth","thickness"),new xe.KX("strokeDashArray","dash")),En(xe.bn,{segmentIndex:0,segmentOffset:new xe.E9(15,0),segmentOrientation:xe.rU.OrientAlong,alignmentFocus:xe.z6.Right,figure:"circle",width:10,strokeWidth:0},new xe.KX("fill","color"),new xe.KX("visible","dir",qe=>qe===1)),En(xe.bn,{segmentIndex:-1,segmentOffset:new xe.E9(-10,6),segmentOrientation:xe.rU.OrientPlus90,alignmentFocus:xe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new xe.KX("fill","color"),new xe.KX("visible","dir",qe=>qe>=1),new xe.KX("width","thickness",qe=>7+3*qe),new xe.KX("height","thickness",qe=>7+3*qe),new xe.KX("segmentOffset","thickness",qe=>new xe.E9(-15,4+1.5*qe))),En(xe.bn,{segmentIndex:0,segmentOffset:new xe.E9(15,-6),segmentOrientation:xe.rU.OrientMinus90,alignmentFocus:xe.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new xe.KX("fill","color"),new xe.KX("visible","dir",qe=>qe===2),new xe.KX("width","thickness",qe=>7+3*qe),new xe.KX("height","thickness",qe=>7+3*qe),new xe.KX("segmentOffset","thickness",qe=>new xe.E9(-15,4+1.5*qe))),En(xe.al,{alignmentFocus:new xe.z6(0,1,-4,0),editable:!0},new xe.KX("text").makeTwoWay(),new xe.KX("stroke","color"))),We.current.linkTemplate.selectionAdornmentTemplate=En(xe.uz,En(xe.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:vi(2)},new xe.KX("pathPattern","thickness",vi)),xi({alignmentFocus:new xe.z6(0,0,-6,-4)}));function vi(qe){return En(xe.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function qi(qe){var Oi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?Oi="M0 0 M16 16 M0 8 L16 8":qe===2&&(Oi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),En(xe.bn,{geometryString:Oi,margin:2,background:"transparent",mouseEnter:(ar,Pi)=>Pi.background="dodgerblue",mouseLeave:(ar,Pi)=>Pi.background="transparent",click:Ui("dir",qe),contextClick:Ui("dir",qe)})}function Lr(qe){var Oi=(ar,Pi)=>{ar.handled=!0,ar.diagram.model.commit(Gr=>{var lr=Pi.part.adornedPart;Gr.set(lr.data,qe?"toSpot":"fromSpot",xe.z6.stringify(xe.z6.AllSides)),(qe?lr.toNode:lr.fromNode).invalidateConnectedLinks()})};return En(xe.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ar,Pi)=>Pi.background="dodgerblue",mouseLeave:(ar,Pi)=>Pi.background="transparent",click:Oi,contextClick:Oi})}function In(qe,Oi){var ar=0,Pi=xe.z6.RightSide;qe.equals(xe.z6.Top)?(ar=270,Pi=xe.z6.TopSide):qe.equals(xe.z6.Left)?(ar=180,Pi=xe.z6.LeftSide):qe.equals(xe.z6.Bottom)&&(ar=90,Pi=xe.z6.BottomSide),Oi||(ar-=180);var Gr=(lr,yr)=>{lr.handled=!0,lr.diagram.model.commit(cr=>{var er=yr.part.adornedPart;cr.set(er.data,Oi?"toSpot":"fromSpot",xe.z6.stringify(Pi)),(Oi?er.toNode:er.fromNode).invalidateConnectedLinks()})};return En(xe.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ar,background:"transparent",mouseEnter:(lr,yr)=>yr.background="dodgerblue",mouseLeave:(lr,yr)=>yr.background="transparent",click:Gr,contextClick:Gr})}We.current.linkTemplate.contextMenu=En("ContextMenu",tr(),li(),En("ContextMenuButton",En(xe.s_,"Horizontal",qi(0),qi(1),qi(2))),En("ContextMenuButton",En(xe.s_,"Horizontal",En(xe.s_,"Spot",Lr(!1),In(xe.z6.Top,!1),In(xe.z6.Left,!1),In(xe.z6.Right,!1),In(xe.z6.Bottom,!1)),En(xe.s_,"Spot",{margin:new xe.Zt(0,0,0,2)},Lr(!0),In(xe.z6.Top,!0),In(xe.z6.Left,!0),In(xe.z6.Right,!0),In(xe.z6.Bottom,!0)))));const Ai=`{ "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 $o=["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 xo(qe){return console.log("shapeName:",qe),$o.indexOf(qe)>=0}var to=new xe.YI(Xn.current,{maxSelectionCount:1,linkTemplate:En(xe.rU,{locationSpot:xe.z6.Center,selectionAdornmentTemplate:En(xe.uz,"Link",{locationSpot:xe.z6.Center},En(xe.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),En(xe.bn,{toArrow:"Standard",stroke:null}))},{routing:xe.rU.AvoidsNodes,curve:xe.rU.JumpOver,corner:5,toShortLength:4},new xe.KX("points"),En(xe.bn,{isPanelMain:!0,strokeWidth:2}),En(xe.bn,{toArrow:"Standard",stroke:null})),model:new xe.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...xe.bn.getFigureGenerators().toArray().map(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return We.current.addDiagramListener("TextEdited",function(qe){var Oi;const ar=qe.subject.part;var Pi=(Oi=document.activeElement)==null?void 0:Oi.value;typeof Pi=="string"&&Pi.trim()===""&&We.current.model.commit(function(Gr){Gr.set(ar.data,"text","\u672A\u547D\u540D"),We.current.commandHandler.stopCommand()},"increment")}),to.nodeTemplate=En(xe.NB,"Auto",{locationSpot:xe.z6.Center},new xe.KX("location","location",xe.E9.parse).makeTwoWay(xe.E9.stringify),En(xe.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 xe.KX("stroke").makeTwoWay(),new xe.KX("fill").makeTwoWay(),new xe.KX("figure")),En(xe.al,{margin:new xe.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new xe.$u(16,16),maxSize:new xe.$u(10,NaN),textAlign:"center",editable:!0},new xe.KX("key").makeTwoWay())),setTimeout(()=>{We.current.grid=En(xe.s_,"Grid",En(xe.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),En(xe.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 Si=()=>Kt(this,null,function*(){var En,Ye=We.current.makeImage();const ti=yield(0,Mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src,file_data:JSON.stringify({login:(En=(0,Qt.eY)())==null?void 0:En.login,data:JSON.parse(We.current.model.toJson())})}});en({src:ti.url})});return(0,Jt.useEffect)(()=>(setTimeout(()=>{ri()},500),mn(Ze+1),()=>{We.current=null}),[]),se.createElement("div",{ref:zn,className:"body-overflow-initial"},se.createElement(le.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ze,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:se.createElement(Ue.Z,null,se.createElement(oe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),se.createElement(oe.Z,{onClick:()=>{var En,Ye,ti=We.current.selection.first();if(Zn.current=!Zn.current,document.activeElement&&ti){let xi=(Ye=(En=document.activeElement)==null?void 0:En.value)==null?void 0:Ye.trim();typeof xi=="string"&&We.current.model.commit(function(Ui){Ui.set(ti.data,"text",xi||"\u672A\u547D\u540D"),We.current.commandHandler.stopCommand()},"increment")}mn(Ze+1)}},se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:nn},se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Zn.current?"none":"block"},className:At.flowChartWrp},se.createElement("div",{style:{display:"flex",height:"100%"}},se.createElement("div",{style:{width:"300px",height:"100%"}},se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),se.createElement("div",{style:{height:"calc(100% - 50px)"},className:At.myPaletteDiv,ref:Xn})),se.createElement("div",{style:{flex:1,position:"relative"}},se.createElement("div",{ref:sn,style:{height:"80vh"}}))),se.createElement("div",{className:"tr"},se.createElement(ne.ZP,{size:"large",onClick:Si,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var bt=It,Bt=he(98813),ie=he(37720);const Wt=Bt.ZP.Group,Zt={margin:"0 8px"};var fe=({callback:nn,onCancel:en})=>{function We(sn){nn(sn)}return Jt.createElement(Ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:We},Jt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Jt.createElement("span",{style:Zt},"\u5355\u5143\u683C\u6570\uFF1A"),Jt.createElement("span",{style:Zt},"\u884C\u6570"),Jt.createElement(Ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Jt.createElement(ie.Z,null)),Jt.createElement("span",{style:Zt},"\u5217\u6570"),Jt.createElement(Ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Jt.createElement(ie.Z,null))),Jt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Jt.createElement("span",{style:Zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Jt.createElement(Ot.default.Item,{name:"align"},Jt.createElement(Wt,null,Jt.createElement(Bt.ZP,{value:"default"},Jt.createElement("i",{className:"fa fa-align-justify"})),Jt.createElement(Bt.ZP,{value:"left"},Jt.createElement("i",{className:"fa fa-align-left"})),Jt.createElement(Bt.ZP,{value:"center"},Jt.createElement("i",{className:"fa fa-align-center"})),Jt.createElement(Bt.ZP,{value:"right"},Jt.createElement("i",{className:"fa fa-align-right"}))))),Jt.createElement("div",{className:"flex-container flex-end"},Jt.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Jt.createElement(ne.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ke=he(59637),tn=he(61016),dn=he.n(tn),Bn=(0,Jt.forwardRef)(({use3d:nn,width:en,height:We,callback:sn,showSaveButton:Xn},Zn)=>{const zn=(0,Jt.useRef)(),Ze=(0,Jt.useRef)(),[mn,ri]=(0,Jt.useState)(!1),Si=(0,Jt.useRef)({id:zn,appName:"graphing",width:en||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,Jt.useEffect)(()=>{Ze.current=new(dn())(Si.current,!0),window.onload=function(){Ze.current.inject("applet_container")}},[]);const En=()=>{var Ye=window.ggbApplet.getPNGBase64(1,!0,72);return sn&&sn(Ye),Ye};return(0,Jt.useEffect)(()=>{Si.current.appName=mn?"3D":"graphing",Ze.current.inject("applet_container")},[mn]),(0,Jt.useEffect)(()=>{ri(nn)},[nn]),(0,Jt.useImperativeHandle)(Zn,()=>({getImgData:En})),Jt.createElement(Jt.Fragment,null,Jt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zn}),Jt.createElement(Ue.Z,{align:"middle"},Jt.createElement(oe.Z,{flex:1},Jt.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:mn,onChange:Ye=>ri(Ye)})),Jt.createElement(oe.Z,null,Jt.createElement(ne.ZP,{size:"large",onClick:En,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Vn=he(36527),Tn=he(2453);const un="link",si="upload-image",ei="add-flowchart",fi="draw-image",bi="add-flowchart",Ni="code-block",qn="add-table",Ii="------------",pr={default:Ii,left:`:${Ii}`,center:`:${Ii}:`,right:`${Ii}:`};var Ar=he(99914);function Or(){}let wr=0;const Fi=1e4,Sr="\u2581",Ri="@\u2581\u2581@",vn="@\u2581@",Ut=`
|
|
**\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`,cn=["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 Pn(nn){return/^\d+$/.test(nn)?`${nn}px`:nn}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",On={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},Hn={[un]:"\u6DFB\u52A0\u94FE\u63A5",[Ni]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[si]:"\u6DFB\u52A0\u56FE\u7247",[fi]:"\u6DFB\u52A0\u753B\u56FE",[ei]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[qn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var gi=({defaultValue:nn="",onChange:en,width:We="100%",height:sn=400,miniToolbar:Xn=!1,isFocus:Zn=!1,watch:zn,insertTemp:Ze,mode:mn="markdown",id:ri="markdown-editor-id",showResizeBar:Si=!1,noStorage:En=!1,showNullButton:Ye=!1,showNullProgramButton:ti=!1,hidetoolBar:xi=!1,fullScreen:Ui=!1,onBlur:yn,onCMBeforeChange:hi,onFullScreen:tr,className:zr="",disablePaste:xr=!1,disabled:li=!1,disabledFill:ai=!1,placeholder:vi="",values:qi="",extraUse:Lr})=>{const[In,Ai]=(0,Jt.useState)(null),[$o,xo]=(0,Jt.useState)(nn),[to,qe]=(0,Jt.useState)(zn),[Oi,ar]=(0,Jt.useState)(Ui),[Pi,Gr]=(0,Jt.useState)(""),[lr,yr]=(0,Jt.useState)(0),[cr,er]=(0,Jt.useState)(sn),[Er,Cn]=(0,Jt.useState)(!1),[eo,Oe]=(0,Jt.useState)(0),[je,wn]=(0,Jt.useState)(0),Me=(0,Jt.useRef)(),Ie=(0,Jt.useRef)(),Ge=(0,Jt.useRef)(),rn=(0,Jt.useRef)();(0,Jt.useEffect)(()=>{const Qn=window.scrollY||window.pageYOffset;xo(qi),In==null||In.setValue(qi),window.scrollTo(0,Qn)},[qi]),(0,Jt.useEffect)(()=>{tr==null||tr(Oi)},[Oi]),(0,Jt.useEffect)(()=>{if(Me.current){let Qn=function(ni,on){var ui;if(xr){on.preventDefault();return}const di=on.clipboardData;if(di){const Zi=di.types.toString(),Qi=di.items;if(Zi==="Files"||di.types.indexOf("Files")>-1){if(on.preventDefault(),mn=="stex")return;try{let $i=Qi[1];((ui=Qi[0])==null?void 0:ui.kind)==="file"&&($i=Qi[0]);const mr=$i.getAsFile(),_r=mr.name.split(".").pop();(0,pe.I)(mr,Ir=>{var ao,Ao,Je;Ir.id?((ao=mr==null?void 0:mr.type)==null?void 0:ao.indexOf("image"))>-1?Rn.replaceSelection(`<img width="100%" src="/api/attachments/${Ir.id}?type=${Ir.content_type})" alt="" />`):((Ao=mr==null?void 0:mr.type)==null?void 0:Ao.indexOf("video"))>-1?Rn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ir.id}"></video>`):((Je=mr==null?void 0:mr.type)==null?void 0:Je.indexOf("pdf"))>-1?Rn.replaceSelection(`<a href="/api/attachments/${Ir.id}?type=${mr.type}&disposition=inline" target="_blank">${mr.name}</a>`):cn.includes(_r)?Rn.replaceSelection(`<a href="/api/attachments/${Ir.id}?type=office&disposition=inline" target="_blank">${mr.name}</a>`):Rn.replaceSelection(`[${mr.name}](/api/attachments/${Ir.id}?type=${Ir.content_type})`):(Ir==null?void 0:Ir.status)===401&&(document.location.href="/user/login")})}catch($i){Tn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Rn=qt().fromTextArea(Me.current,{mode:mn,lineNumbers:!Xn,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});return Rn.on("keyup",function(ni,on){on.keyCode===8&&(ni.getValue()==""?Rn.setOption("placeholder",vi):Rn.setOption("placeholder",null))}),Rn.on("keydown",function(ni,on){if(on.keyCode===8){var ui=Yn(ni);ui&&on.preventDefault()}}),Zn&&Rn.focus(),Rn.on("paste",Qn),li&&Rn.on("beforeChange",function(ni,on){(on.origin==="paste"||on.origin==="+input")&&on.cancel()}),Ai(Rn),()=>{Rn.off("paste",Qn)}}},[]);const Ln=(0,Jt.useCallback)(()=>{if(Ie.current)try{}catch(Qn){console.log(Qn,"---- to set md editor body height")}},[cr,Ie,Oi]);(0,Jt.useEffect)(()=>{function Qn(){let Rn=new Vt.Z(ni=>{for(let on of ni)(on.target.offsetHeight>0||on.target.offsetWidth>0)&&(Ln(),In.setSize("100%","100%"),In.refresh())});return Rn.observe(Me.current.parentElement),Rn}if(In){const Rn=Qn();return()=>{var ni,on;(ni=Me.current)!=null&&ni.parentElement&&Rn.unobserve((on=Me.current)==null?void 0:on.parentElement)}}},[In,Ln]),(0,Jt.useEffect)(()=>{if(In){let Qn=[];for(const[Rn,ni]of Object.entries(On)){let on={[Rn]:()=>{Wn(ni)}};Qn.push(on),In.addKeyMap(on)}return()=>{for(let Rn of Qn)In.removeKeyMap(Rn)}}},[In]),(0,Jt.useEffect)(()=>{Ui!==Oi&&ar(Ui)},[Ui]),(0,Ar.Z)(()=>{if(!En&&lr>0){let Qn=new Date().getTime(),Rn=window.sessionStorage.getItem(ri);Qn>=lr+Fi&&(!Rn||Rn!==$o)&&(window.sessionStorage.setItem(ri,$o),Cn(!0))}},Fi),(0,Jt.useEffect)(()=>{qe(zn)},[In,zn]),(0,Jt.useEffect)(()=>{In&&Zn&&In.focus()},[In,Zn]),(0,Jt.useEffect)(()=>{if(to&&In){let Qn=function(ni){let on=ni.target;if(rn.current){let ui=on.scrollTop/on.scrollHeight;rn.current.scrollTop=rn.current.scrollHeight*ui}};const Rn=In.getScrollerElement();return Rn.addEventListener("scroll",Qn),()=>{Rn.removeEventListener("scroll",Qn)}}},[In,to]),(0,Jt.useEffect)(()=>{if(In&&hi){let Qn=function(Rn,ni){hi(Rn,ni)};return In.on("beforeChange",Qn),()=>{In.off("beforeChange",Qn)}}},[In,hi]),(0,Jt.useEffect)(()=>{if(In&&yn){let Qn=function(){yn(In.getValue())};return In.on("blur",Qn),()=>{In.off("blur",Qn)}}},[In,yn]);function Yn(Qn,Rn){var ni=Qn.getDoc(),on=ni.getCursor(),ui=ni.getLine(on.line),di=ui.charAt(on.ch-1),Zi=ui.lastIndexOf("@\u2581@",on.ch),Qi=ui.lastIndexOf("@\u2581\u2581@",on.ch),$i=Zi>Qi?Zi:Qi,mr=Zi>Qi?3:4;if(Ri.indexOf(di)===-1)return null;if(console.log("change1:",Rn,Qn,ui,on,$i,Zi,Qi,di),$i>=0&&on.ch-$i<5){var _r=$i+mr;return ni.replaceRange("",{line:on.line,ch:$i},{line:on.line,ch:_r}),{line:on.line,ch:_r}}return null}(0,Jt.useEffect)(()=>{if(In){let Qn=function(Rn,ni){const on=Rn.getValue();xo(on),yr(new Date().getTime()),Rn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(ti?en(on,Vi(on)):en(on))};return In.on("change",Qn),()=>{In.off("change",Qn)}}},[In,en]),(0,Jt.useEffect)(()=>{if(In)if(nn==null)In.setValue(""),xo("");else{const Qn=window.scrollY||window.pageYOffset;nn!==In.getValue()&&(In.setValue(nn),xo(nn),In.setCursor(li?1:In.lineCount(),0),window.scrollTo(0,Qn))}},[In,nn]);const Wn=(0,Jt.useCallback)(Qn=>{const Rn=In.getCursor(),ni=In.getSelection();let on=ni.split(`
|
|
`);switch(Qn){case"bold":return In.replaceSelection("**"+ni+"**"),ni===""&&In.setCursor(Rn.line,Rn.ch+2),In.focus();case"italic":return In.replaceSelection("*"+ni+"*"),ni===""&&In.setCursor(Rn.line,Rn.ch+1),In.focus();case"code":return In.replaceSelection("`"+ni+"`"),ni===""&&In.setCursor(Rn.line,Rn.ch+1),In.focus();case"inline-latex":return Gr("inline-latex"),In.focus();case"latex":return In.replaceSelection("```latex\n"+ni+"\n```"),In.setCursor(Rn.line+1,ni.length+1),In.focus();case"line-break":return In.replaceSelection(`<br/>
|
|
`),In.focus();case"list-ul":return ni===""?In.replaceSelection("- "+ni):In.replaceSelection(on.map(ui=>ui===""?"":`- ${ui}`).join(`
|
|
`)),In.focus();case"list-ol":return ni===""?In.replaceSelection("1. "+ni):In.replaceSelection(on.map((ui,di)=>ui===""?"":`${di+1}. ${ui}`).join(`
|
|
`)),In.focus();case"add-null-ch":return ni===""&&In.setCursor(Rn.line,Rn.ch),In.replaceSelection(Sr),In.focus();case"add-signal":return ni===""&&In.setCursor(Rn.line,Rn.ch),In.replaceSelection(vn),In.focus();case"add-multiple":return ni===""&&In.setCursor(Rn.line,Rn.ch),In.replaceSelection(Ri),In.focus();case"inster-template-1":return ni===""&&In.setCursor(Rn.line,Rn.ch),In.replaceSelection(Ut),In.focus();case"eraser":return In.setValue(""),In.focus();case"trigger-watch":return qe(!to),In.focus();case"trigger-full-screen":return ar(!Oi),In.focus();case un:Gr(un);return;case Ni:Gr(Ni);return;case si:Gr(si);return;case fi:Gr(fi);return;case"maths-latex":Gr("maths-latex");return;case ei:Gr(ei);return;case qn:Gr(qn);return;default:throw new Error}},[In,to,Oi]),pn=(0,Jt.useCallback)((Qn,Rn)=>{var ni,on,ui,di,Zi,Qi;switch(Gr(""),Pi){case un:const{title:ao,link:Ao}=Qn;return In.replaceSelection(`[${ao}](${Ao})`),In.focus();case Ni:const{language:Je,content:Kr}=Qn;return In.replaceSelection(["```"+Je,Kr,"```"].join(`
|
|
`)),In.focus();case"maths-latex":for(var $i=atob(Qn),mr=new Uint8Array($i.length),_r=0;_r<$i.length;_r++)mr[_r]=$i.charCodeAt(_r);var Ir=new Blob([mr],{type:"image/png"});(0,pe.I)(Ir,Ti=>{Ti.id?In.replaceSelection(``):(Ti==null?void 0:Ti.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":In.replaceSelection("`$$"+Qn+"$$`");break;case si:case fi:case bi:const{src:Jr,alt:Mo}=Qn,dr=Rn,To=(ui=(on=(ni=dr==null?void 0:dr.name)==null?void 0:ni.split("."))==null?void 0:on.pop)==null?void 0:ui.call(on);return((di=dr==null?void 0:dr.type)==null?void 0:di.indexOf("image"))>-1||!(dr!=null&&dr.type)?dr!=null&&dr.align||dr!=null&&dr.width?In.replaceSelection(`<p style="text-align:${dr.align||"initial"}"><img width="${dr.width?dr.width+"%":"initial"}" src="${Jr}" alt="${Mo||""}" /></p>`):In.replaceSelection(`<img width="100%" src="${Jr}" alt="${Mo||""}" />`):((Zi=dr==null?void 0:dr.type)==null?void 0:Zi.indexOf("video"))>-1?In.replaceSelection(`<video width="100%" controls src="${Jr}"></video>`):((Qi=dr==null?void 0:dr.type)==null?void 0:Qi.indexOf("pdf"))>-1?In.replaceSelection(`<a href="${Jr}?type=${dr.type}&disposition=inline" target="_blank">${dr.name}</a>`):cn.includes(To)?In.replaceSelection(`<a href="${Jr}?type=office&disposition=inline" target="_blank">${dr.name}</a>`):In.replaceSelection(`[${dr.name}](${Jr})`),In.focus();case qn:const{row:oo,col:No,align:ur}=Qn;let Br=`
|
|
`;for(let Ti=0;Ti<oo;Ti++){let Yi=[],sr=[];for(let kr=0;kr<No;kr++)Ti===1&&sr.push(pr[ur]),Yi.push(" ");Ti===1&&(Br+=`| ${sr.join(" | ")} |
|
|
`),Br+=`| ${Yi.join(No===1?"":" | ")} |
|
|
`}return In.replaceSelection(Br+`
|
|
`),In.focus();default:throw new Error}},[In,Pi]),de=(0,Jt.useMemo)(()=>{switch(Pi){case un:return Jt.createElement($t,{callback:pn,onCancel:Mi});case Ni:return Jt.createElement(re.Z,{callback:pn,onCancel:Mi});case si:return Jt.createElement(pe.Z,{callback:pn,onCancel:Mi});case ei:return Jt.createElement(bt,{callback:pn,onCancel:Mi});case qn:return Jt.createElement(fe,{callback:pn,onCancel:Mi});case"maths-latex":return Jt.createElement(Bn,{showSaveButton:!0,callback:pn});case"inline-latex":return Jt.createElement(Vn.Z,{showSaveButton:!0,callback:pn});default:return null}},[Pi]);function Mi(){Gr("")}(0,Jt.useEffect)(()=>{if(Ge.current){let Qn=function(Zi){ui=!0,di=Zi.pageY},Rn=function(){ui=!1},ni=function(Zi){if(ui){let Qi=Zi.pageY-di;Qi<0&&(Qi=0),Qi>300&&(Qi=300);let $i=sn+Qi+"px";er($i)}},on=Ge.current,ui=!1,di=0;return on.addEventListener("mousedown",Qn),document.addEventListener("mousemove",ni),document.addEventListener("mouseup",Rn),()=>{on.removeEventListener("mousedown",Qn),document.removeEventListener("mousemove",ni),document.removeEventListener("mouseup",Rn)}}},[In,Ge]),(0,Jt.useEffect)(()=>{er(sn)},[sn]);const Wi=Pn(We),nr=Pn(cr),ir={width:Wi,height:nr},rr=(0,Jt.useMemo)(()=>{if(lr){let Qn=new Date(lr),Rn=Qn.getHours(),ni=Qn.getMinutes(),on=Qn.getSeconds();return Rn=Rn<10?"0"+Rn:Rn,ni=ni<10?"0"+ni:ni,on=on<10?"0"+on:on,`${Rn}:${ni}:${on}`}return 0},[lr]),Vi=Qn=>{const Rn=[];if(ti){let ni=-1;Qn=Qn.replace(/(@▁▁@|@▁@)/g,function(on,ui,di){Rn.push({multiLine:on!==vn})})}return Rn};function Dr(){window.sessionStorage.removeItem(ri),Cn(!1),yr(0)}function or(){Cn(!1),yr(0),In.setValue(window.sessionStorage.getItem(ri))}(0,Jt.useEffect)(()=>{Hn[Pi]&&Pi!==fi&&Pi!==ei&&setTimeout(()=>{const Qn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth/2-Qn.offsetWidth/2,ni=window.innerHeight/2-Qn.offsetHeight/2;Oe(Rn),wn(ni)},0)},[Pi]);const Di=Qn=>{Qn.preventDefault();const Rn=Qn.clientX-eo,ni=Qn.clientY-je;document.body.onmousemove=on=>{let ui=on.clientX-Rn,di=on.clientY-ni;const Zi=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth-Zi.offsetWidth,$i=window.innerHeight-Zi.offsetHeight;ui=Math.max(0,Math.min(ui,Qi)),di=Math.max(0,Math.min(di,$i)),wi(on.clientX,on.clientY,Rn,ni)&&(Oe(ui),wn(di))},document.body.onmouseup=function(){document.body.onmousemove=null}},wi=(Qn,Rn,ni,on)=>{const ui=document.body.clientHeight,di=document.body.clientWidth;return Qn<20&&ni>Qn||Qn>di-20&&ni<Qn||Rn<20&&on>Rn||Rn>ui-20&&on<Rn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Jt.createElement(Jt.Fragment,null,Jt.createElement("div",{className:"markdown-editor-wrapper",ref:Ie},Jt.createElement("div",{className:`markdown-editor-container ${zr} ${to?"on-preview":""} ${Xn?"mini":""} ${Oi?"full-screen":""}`,style:ir},Jt.createElement(jt,{insertTemp:Ze,watch:to,fullScreen:Oi,showNullButton:Ye,showNullProgramButton:ti,onActionCallback:Wn,hidetoolBar:xi,extraUse:Lr}),Jt.createElement("div",{className:"markdown-editor-body"},Jt.createElement("div",{className:"codemirror-container"},Jt.createElement("textarea",{ref:Me,placeholder:vi})),to?Jt.createElement("div",{ref:rn,className:"preview-container"},mn==="stex"&&Jt.createElement(Lt,{value:$o}),mn!=="stex"&&Jt.createElement(Ct.Z,{disabledFill:ai,showProgramFill:ti,value:$o})):null))),Si?Jt.createElement("a",{ref:Ge,className:"editor-resize"}):null,Pi===fi&&Jt.createElement(Le,{callback:pn,onCancel:Mi}),Pi===ei&&Jt.createElement(bt,{callback:pn,onCancel:Mi}),Jt.createElement(Ht.Z,null,Hn[Pi]&&Pi!==fi&&Pi!==ei?Jt.createElement(le.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:eo,top:je},title:Jt.createElement("div",{style:{cursor:"move"},onMouseDown:Di},Hn[Pi]),open:!0,onCancel:Mi,footer:null,destroyOnClose:!0,width:Pi===ei?"1200px":null,height:Pi===ei?"80vh":null,className:"markdown-popup-form"},de):null))}},70859:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return kt},I:function(){return Ht}});var Jt=he(91773),xt=he(2453),qt=he(28802),Vt=he(78957),Rt=he(37720),Dt=he(98813),St=he(85804),Et=he(15476),Nt=he(67294),Pt=he(67294),Ct=Object.defineProperty,Lt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(Ot,te,ne)=>te in Ot?Ct(Ot,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ot[te]=ne,rt=(Ot,te)=>{for(var ne in te||(te={}))et.call(te,ne)&&st(Ot,ne,te[ne]);if(vt)for(var ne of vt(te))tt.call(te,ne)&&st(Ot,ne,te[ne]);return Ot},ut=(Ot,te)=>Lt(Ot,Ft(te));const{useForm:ct}=Jt.default,gt={width:280,marginRight:10},ft={labelCol:{span:5},wrapperCol:{span:19}};var kt=({callback:Ot,onCancel:te})=>{const[ne]=ct();let Xt=(0,Nt.useRef)();function ce(De){Xt.current.width=ne.getFieldValue("width"),Xt.current.align=ne.getFieldValue("align"),Ot(De,Xt.current)}function me(De,Ve){if(De.status===-1){xt.ZP.error(De.message);return}ne.setFieldsValue({src:`/api/attachments/${De.id}`,type:Ve.type})}function Pe(De){let Ve=De.target.files[0];Xt.current=Ve,Ht(Ve,me)}return Pt.createElement(Jt.default,ut(rt({form:ne},ft),{className:"upload-image-panel",onFinish:ce,style:{width:470,overflow:"hidden"}}),Pt.createElement(Jt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Pt.createElement("div",{className:"flex-container"},Pt.createElement(Jt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Pt.createElement(qt.default,{style:gt})),Pt.createElement(jt,{onFileChange:Pe}))),Pt.createElement(Jt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Pt.createElement(qt.default,{style:{width:264}})),Pt.createElement(Jt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Pt.createElement(Vt.Z,null,Pt.createElement(Jt.default.Item,{name:"width",style:{margin:0}},Pt.createElement(Rt.Z,{style:{width:264}})),Pt.createElement("span",{className:"ml8"},"%"))),Pt.createElement(Jt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Pt.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"}]})),Pt.createElement("aside",null,Pt.createElement(Jt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Pt.createElement(St.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(St.ZP,{type:"default",onClick:te},"\u53D6\u6D88"))))};function jt({onFileChange:Ot}){return Pt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Pt.createElement("input",{type:"file",onChange:Ot}))}function Ht(Ot,te){if(!Ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let ne=new FormData;ne.append("editormd-image-file",Ot),ne.append("file_param_name","editormd-image-file"),ne.append("byxhr","true");var Xt=new window.XMLHttpRequest;Xt.withCredentials=!0,Xt.addEventListener("load",function(ce){te(JSON.parse(ce.target.responseText),Ot)},!1),Xt.addEventListener("error",function(ce){console.error(ce)},!1),Xt.open("POST",`${Et.KI}/api/attachments.json`),Xt.send(ne)}},76621:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return qt}});var Jt=he(67294),xt=he(73935);class qt extends Jt.Component{constructor(Rt){super(Rt);const Dt=window.document;this.node=Dt.createElement("div"),Dt.body.appendChild(this.node)}render(){const{children:Rt}=this.props;return(0,xt.createPortal)(Rt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(An,jn,he){"use strict";he.d(jn,{SV:function(){return xe},ZP:function(){return Le}});var Jt=he(67294),xt=he(91033);const qt={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"]},Vt={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"]},Rt={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(`
|
|
`)}]},St={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 Et=he(84204),Nt=he.n(Et),Pt=(_e,Fe,Ae)=>new Promise((oe,Mt)=>{var At=Kt=>{try{se(Ae.next(Kt))}catch(It){Mt(It)}},Qt=Kt=>{try{se(Ae.throw(Kt))}catch(It){Mt(It)}},se=Kt=>Kt.done?oe(Kt.value):Promise.resolve(Kt.value).then(At,Qt);se((Ae=Ae.apply(_e,Fe)).next())});const Ct={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"]}},Lt=(_e,Fe,Ae,oe)=>{const Mt=Fe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ae.lineNumber,endColumn:Ae.column});return Array.from(new Set(Mt.match(/\b\w{2,}\b/g)||[])).map(Qt=>({label:Qt,kind:_e.languages.CompletionItemKind.Text,insertText:Qt,range:oe}))},Ft=(_e,Fe,Ae,oe)=>{_e.languages.registerCompletionItemProvider(Fe,{provideCompletionItems(Mt,At){const Qt=Mt.getWordUntilPosition(At),se={startLineNumber:At.lineNumber,endLineNumber:At.lineNumber,startColumn:Qt.startColumn,endColumn:Qt.endColumn},Kt=Mt.getLineContent(At.lineNumber).substring(Qt.startColumn-2,Qt.endColumn);return{suggestions:[...Lt(_e,Mt,At,se),...Ae.map(bt=>({label:bt,kind:_e.languages.CompletionItemKind.Keyword,documentation:bt,insertText:bt,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...oe.map(bt=>({label:bt.label,kind:_e.languages.CompletionItemKind.Snippet,documentation:bt.content,insertText:Kt.startsWith("#")?bt.content.replace(/#/,""):bt.content,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var vt=_e=>{Ct.languages.forEach(Fe=>{_e.languages.registerDocumentFormattingEditProvider(Fe,{provideDocumentFormattingEdits(Ae){return Pt(this,null,function*(){const oe=Nt()(Ae.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:Ae.getFullModelRange(),text:oe}]})}})}),Ft(_e,"java",Vt.keywords,Vt.quickKey),Ft(_e,"cpp",Rt.keywords,Rt.quickKey),Ft(_e,"c",qt.keywords,[]),Ft(_e,"python",Dt.keywords,Dt.quickKey),Ft(_e,"scala",St.keywords,St.quickKey)};const et="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var tt=Object.defineProperty,st=(_e,Fe,Ae)=>Fe in _e?tt(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):_e[Fe]=Ae,rt=(_e,Fe,Ae)=>st(_e,typeof Fe!="symbol"?Fe+"":Fe,Ae);const ut=class mx{constructor(Fe,Ae,oe){this.placeholder=Fe,this.editor=Ae,this.monaco=oe,Ae.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.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)}};rt(ut,"ID","editor.widget.placeholderHint");var gt=ut,ft=he(84144),kt=he(2453),jt=he(83062),Ht=he(96486),Ot=he(33054),te=he(74855),ne=Object.defineProperty,Xt=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ve=(_e,Fe,Ae)=>Fe in _e?ne(_e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):_e[Fe]=Ae,we=(_e,Fe)=>{for(var Ae in Fe||(Fe={}))Pe.call(Fe,Ae)&&Ve(_e,Ae,Fe[Ae]);if(me)for(var Ae of me(Fe))De.call(Fe,Ae)&&Ve(_e,Ae,Fe[Ae]);return _e},Qe=(_e,Fe)=>Xt(_e,ce(Fe)),ae=(_e,Fe)=>{var Ae={};for(var oe in _e)Pe.call(_e,oe)&&Fe.indexOf(oe)<0&&(Ae[oe]=_e[oe]);if(_e!=null&&me)for(var oe of me(_e))Fe.indexOf(oe)<0&&De.call(_e,oe)&&(Ae[oe]=_e[oe]);return Ae},_t=(_e,Fe,Ae)=>new Promise((oe,Mt)=>{var At=Kt=>{try{se(Ae.next(Kt))}catch(It){Mt(It)}},Qt=Kt=>{try{se(Ae.throw(Kt))}catch(It){Mt(It)}},se=Kt=>Kt.done?oe(Kt.value):Promise.resolve(Kt.value).then(At,Qt);se((Ae=Ae.apply(_e,Fe)).next())});function $t(_e){return/^\d+$/.test(_e)?`${_e}px`:_e}function re(){}let pe=!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 Ue(_e=[]){let Fe=_e;if(Array.isArray(_e)){for(let Ae=0;Ae<_e.length;Ae++){let oe=le[_e[Ae]];if(oe)return oe}return Fe[0]}return le[Fe]||Fe}let Ne=null;const Xe=()=>_t(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_e)}});var Le=_e=>{var Fe=_e,{width:Ae="100%",height:oe="100%",value:Mt,language:At="javascript",style:Qt={},options:se={},overrideServices:Kt={},theme:It="vs-dark",onEditBlur:bt,isCopy:Bt=!1,onSave:ie,autoHeight:Wt=!1,forbidCopy:Zt=!1,onChange:fe=re,editorDidMount:ke=re,onFocus:tn=re,onBreakPoint:dn=re,breakPointValue:ln=[],filename:Bn="educoder.txt",errorLine:Vn,errorContent:Tn="",highlightLine:un,openBreakPoint:si=!1,placeholder:ei="",showMiniMap:fi=!0}=Fe,bi=ae(Fe,["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 Ni=(0,Jt.useRef)(),qn=(0,Jt.useRef)({}),Ii=(0,Jt.useRef)(),pr=(0,Jt.useRef)(),Ar=(0,Jt.useRef)([]),Or=(0,Jt.useRef)(!1),wr=(0,Jt.useRef)(),Fi=(0,Jt.useRef)(),Sr=(0,Jt.useRef)(!1),[Ri,vn]=(0,Jt.useState)(!1);function Ut(){let Ze;return Ni.current&&(Ze=new xt.Z(mn=>{for(let ri of mn)(ri.target.offsetHeight>0||ri.target.offsetWidth>0)&&qn.current.instance.layout()}),Ze.observe(Ni.current)),Ze}function cn(){kt.ZP.warning({content:decodeURIComponent(et),key:"monaco-editor-tip"})}const Pn=()=>{let Ze=qn.current.instance;if(Mt!=null&&Ze&&Ri){const mn=Ze.getModel();mn&&Mt!==mn.getValue()&&(pe=!0,mn.setValue(Mt),Ze.layout(),pe=!1)}};(0,Jt.useEffect)(()=>{const Ze=Ot.Z.subscribe("formatDocument",mn=>{var ri;let Si=qn.current.instance;(ri=Si==null?void 0:Si.getAction)==null||ri.call(Si,"editor.action.formatDocument").run()});return window.updateMonacoValue=mn=>{fe(mn)},Ze},[]),(0,Jt.useEffect)(()=>{var Ze;let mn=qn.current.instance;pr.current&&clearTimeout(pr.current),pr.current=setTimeout(()=>{Pn()},500),Mt&&(Mt!=null&&Mt.length)&&((Ze=mn==null?void 0:mn.updateOptions)==null||Ze.call(mn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Mt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Mt,Ri,qn.current]),(0,Jt.useEffect)(()=>{if(Vn&&qn.current&&qn.current.instance){let mn=qn.current.instance;mn.changeViewZones(function(ri){var Si=document.createElement("div");Si.style.padding="10px 20px",Si.style.width="calc(100% - 20px)",Si.className="my-error-line-wrp",Si.innerHTML=Tn,ri.addZone({afterLineNumber:Vn||11,heightInLines:3,domNode:Si})});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}};mn.addOverlayWidget(Ze),mn.revealPositionInCenter({lineNumber:20,column:1})}},[Vn,qn.current,Ri]);const kn=(Ze="",mn)=>{if(!Ze||Ze.trim()==="")return!0;const Si=qn.current.instance.getModel().getLineTokens(mn);let En=!1;for(let Ye=0;Ye<2;Ye++)Si.getStandardTokenType(Ye)===1&&(En=!0);return En};(0,Jt.useEffect)(()=>{var Ze;const mn=(Ze=qn.current)==null?void 0:Ze.instance;if(mn&&Ri&&Zt){const ri=mn.onDidBlurEditorWidget(()=>{Sr.current=!1}),Si=mn.onDidFocusEditorText(()=>{Sr.current=!0});return()=>{ri.dispose(),Si.dispose()}}},[qn.current,Ri,Zt]),(0,Jt.useEffect)(()=>{var Ze;if((Ze=qn.current)!=null&&Ze.instance&&Ri&&si){let mn=qn.current.instance,ri=mn.getModel();if(!ri)return;(()=>{var li;let ai=[],vi=[];const qi=ri.getAllDecorations();for(let In of qi)In.options.className==="highlighted-line"&&(ai.push((li=In==null?void 0:In.range)==null?void 0:li.startLineNumber),vi.push(In==null?void 0:In.id));if(un===ai[0])return;ri.deltaDecorations(vi,[]);const Lr=ri.getLineCount();un&&un<=Lr&&(mn.deltaDecorations([],[{range:new Ne.Range(un,1,un,ri.getLineMaxColumn(un)),options:{isWholeLine:!0,className:"highlighted-line"}}]),mn.revealLineInCenter(un))})();const En=(li=!1)=>{var ai;let vi=[],qi=[];const Lr=ri.getAllDecorations();for(let In of Lr)In.options.linesDecorationsClassName==="breakpoints-select"&&(vi.push((ai=In==null?void 0:In.range)==null?void 0:ai.startLineNumber),qi.push(In==null?void 0:In.id));if(li)return{lines:vi,ids:qi};dn(vi)},Ye=li=>_t(void 0,null,function*(){let ai={range:new Ne.Range(li,1,li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ri.deltaDecorations([],[ai]),En()}),ti=li=>_t(void 0,null,function*(){let ai=[];const vi=mn.getLineDecorations(li);for(let qi of vi)qi.options.linesDecorationsClassName==="breakpoints-select"&&ai.push(qi.id);yield ri.deltaDecorations(ai,[]),En()}),xi=li=>{let ai=mn.getLineDecorations(li);for(let vi of ai)if(vi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ht.isEqual)(ln,En(!0).lines)){ri.deltaDecorations(En(!0).ids,[]);const li=ln.map(ai=>({range:new Ne.Range(ai,1,ai,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ri.deltaDecorations([],li)}const Ui=mn.onDidChangeModelContent(li=>{let ai=mn.getPosition();if(ai){let vi=ai.lineNumber;clearTimeout(Fi.current),Fi.current=setTimeout(()=>{kn(ri.getLineContent(vi),vi)?ti(vi):xi(vi)?(ti(vi),Ye(vi)):En()},100)}}),yn=mn.onMouseDown(li=>{var ai,vi,qi;if(li.target.detail&&((qi=(vi=(ai=li.target)==null?void 0:ai.element)==null?void 0:vi.className)!=null&&qi.includes("line-numbers"))){let Lr=li.target.position.lineNumber;if(kn(ri.getLineContent(Lr),Lr))return;xi(Lr)?ti(Lr):Ye(Lr)}}),hi=li=>{let ai={range:new Ne.Range(li,1,li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ar.current=mn.deltaDecorations(Ar.current,[ai])},tr=()=>{Ar.current=mn.deltaDecorations(Ar.current,[])},zr=mn.onMouseMove(li=>{var ai,vi,qi;if(tr(),li.target.detail&&((qi=(vi=(ai=li.target)==null?void 0:ai.element)==null?void 0:vi.className)!=null&&qi.includes("line-numbers"))){let Lr=li.target.position.lineNumber;if(kn(ri.getLineContent(Lr),Lr))return;hi(Lr)}}),xr=mn.onMouseLeave(()=>{tr()});return()=>{Ui.dispose(),yn.dispose(),zr.dispose(),xr.dispose()}}},[qn.current,Ri,ln,un,si,At]),(0,Jt.useEffect)(()=>{var Ze;(Ze=qn.current)!=null&&Ze.instance&&si&&qn.current.instance.setPosition({lineNumber:0,column:0})},[un]);function Nn(){let Ze=qn.current.instance;if(Ze){const mn=Ze.getSelection(),ri=qn.current.pastePos||{},Si=new Ne.Range(ri.startLineNumber||mn.endLineNumber,ri.startColumn||mn.endColumn,ri.endLineNumber||mn.endLineNumber,ri.endColumn||mn.endColumn);setTimeout(()=>{Ze.executeEdits("",[{range:Si,text:""}])},300)}}function On(Ze){(window.navigator.platform.match("Mac")?Ze.metaKey:Ze.ctrlKey)&&Ze.keyCode==83&&(Ze.preventDefault(),ie())}const Hn=()=>{if(Wt&&qn.current.instance){const Ze=qn.current.instance.getContentHeight();Zn(Ze<oe?oe:Ze)}else Zn(oe)};function gi(Ze){var mn=document.createEvent("MouseEvents");mn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ze.dispatchEvent(mn)}const nn=Ze=>{if(!Sr.current)return;const{keyCode:mn,ctrlKey:ri,metaKey:Si,target:En,type:Ye}=Ze;return(Ye==="paste"||(mn===67||mn===86)&&(Si||ri))&&En.nodeName==="TEXTAREA"&&(cn(),Ze.preventDefault()),!1};function en(Ze,mn){var ri=window.URL||window.webkitURL||window,Si=new Blob([mn]),En=document.createElementNS("http://www.w3.org/1999/xhtml","a");En.href=ri.createObjectURL(Si),En.download=Ze,gi(En)}(0,Jt.useEffect)(()=>{Hn()},[Hn]),(0,Jt.useEffect)(()=>{Ni.current&&!Ri&&Promise.all([he.e(5552),he.e(9651)]).then(he.bind(he,55826)).then(Ze=>{try{Ne=Ze,qn.current.instance=Ne.editor.create(Ni.current,{value:Mt,language:Ue(At),theme:It,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:fi||!1}},Kt);const mn=qn.current.instance;let En=[...ft.BH._menuItems].find(Ui=>Ui[0]._debugName=="EditorContext")[1],Ye=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ti=(Ui,yn)=>{var hi,tr;let zr=Ui._first;do yn.includes((tr=(hi=zr.element)==null?void 0:hi.command)==null?void 0:tr.id)&&Ui._remove(zr);while(zr=zr.next)};if(ke(mn,Ne),setTimeout(()=>{Hn(),qn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{en(Bn||"educoder.txt",mn.getValue())}})},500),qn.current.subscription=mn.onDidChangeModelContent(Ui=>{Or.current?clearTimeout(wr.current):(Hn(),fe(mn.getValue(),Ui)),wr.current=setTimeout(()=>{Or.current=!1},500)}),window.Monaco||vt(Ne,Ue(At)),Zt&&(ti(En,Ye),Ni.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",nn),window.removeEventListener("paste",nn),window.addEventListener("keydown",nn),window.addEventListener("paste",nn)),window.Monaco=Ne,bt&&mn.onDidBlurEditorWidget(()=>{bt(mn.getValue())}),tn&&mn.onDidFocusEditorText(()=>{Zt&&Xe(),tn(mn.getValue())}),Zt){Xe();try{mn.onDidPaste(Ui=>{const yn=mn.getSelection(),hi=qn.current.pastePos||{},tr=new Ne.Range(hi.startLineNumber||yn.endLineNumber,hi.startColumn||yn.endColumn,hi.endLineNumber||yn.endLineNumber,hi.endColumn||yn.endColumn);mn.executeEdits("",[{range:Ui.range,text:""}])})}catch(Ui){}}let xi=Ut();return ei&&typeof ei=="string"&&new gt(ei,mn,Ne),vn(!0),()=>{const Ui=qn.current.instance;Ui.dispose();const yn=Ui.getModel();yn&&yn.dispose(),qn.current.subscription&&qn.current.subscription.dispose(),xi.unobserve(Ni.current)}}catch(mn){}})},[]),(0,Jt.useEffect)(()=>{if(qn.current.instance&&Ri)return document.addEventListener("keydown",On,!1),()=>{document.removeEventListener("keydown",On)}},[ie,Ri]),(0,Jt.useEffect)(()=>{let Ze=qn.current.instance;if(Ze&&Ri){let mn=Ue(At);Ne.editor.setModelLanguage(Ze.getModel(),mn)}},[At,Ri]),(0,Jt.useEffect)(()=>{qn.current.instance&&Ri&&Ne.editor.setTheme(It)},[It,Ri]),(0,Jt.useEffect)(()=>{let Ze=qn.current.instance;Ii.current=se,Ze&&Ri&&(Ze.updateOptions(we({},se)),setTimeout(()=>{Ze.getModel().updateOptions(we({},se))},200))},[JSON.stringify(se),Ri]),(0,Jt.useEffect)(()=>{let Ze=qn.current.instance;Ze&&Ri&&Ze.layout()},[Ae,oe,Ri]);const[We,sn]=(0,Jt.useState)($t(Ae)),[Xn,Zn]=(0,Jt.useState)($t(oe)),zn=Qe(we({},Qt),{width:We,height:Xn,position:"relative"});return Jt.createElement("div",{className:"my-monaco-editor",ref:Ni,style:zn},Bt&&Jt.createElement(te.CopyToClipboard,{text:Mt,onCopy:()=>kt.ZP.success("\u590D\u5236\u6210\u529F")},Jt.createElement(jt.Z,{title:"\u590D\u5236\u4EE3\u7801"},Jt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Jt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function xe({width:_e="100%",height:Fe="100%",original:Ae,modified:oe,language:Mt,options:At={}}){const Qt=(0,Jt.useRef)(),[se,Kt]=(0,Jt.useState)(null);function It(Wt){let Zt;return Qt.current&&(Zt=new xt.Z(fe=>{for(let ke of fe)(ke.target.offsetHeight>0||ke.target.offsetWidth>0)&&Wt.layout()}),Zt.observe(Qt.current)),Zt}(0,Jt.useEffect)(()=>(Qt.current&&Promise.all([he.e(5552),he.e(9404)]).then(he.bind(he,50048)).then(Wt=>{Ne=Wt;const Zt=Ne.editor.createDiffEditor(Qt.current,Qe(we({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},At),{wordWrap:!0}));Kt(Zt);let fe=It(Zt);return()=>{Zt.dispose();const ke=Zt.getModel();ke&&ke.dispose(),fe.unobserve(Qt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Jt.useEffect)(()=>{se&&se.setModel({original:Ne.editor.createModel(Ae,Mt),modified:Ne.editor.createModel(oe,Mt)})},[Ae,oe,Mt,se]);const bt=$t(_e),Bt=$t(Fe),ie={width:bt,height:Bt};return Jt.createElement("div",{className:"my-diff-editor",ref:Qt,style:ie})}},5476:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Ct}});var Jt={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"},xt=he(74330),qt=he(83062),Vt=he(94184),Rt=he.n(Vt),Dt=he(28706),St=he(26194),Et=he(52262),Nt=he(67294),Ct=({className:Lt,dataSource:Ft=[],col:vt=4,right:et,bottom:tt=23,precision:st=0,wrapWidth:rt=1200,trackEventItems:ut,loading:ct,onRemove:gt=()=>{},isCurrent:ft=!0,showAlias:kt=!1})=>{const jt=Math.floor((rt-(vt-1)*et)/vt),Ht=[{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 Nt.createElement(xt.Z,{spinning:ct},Nt.createElement("div",{className:Rt()(Jt.list,Lt)},!!(Ft!=null&&Ft.length)&&(Ft==null?void 0:Ft.map((Ot,te)=>{var ne;const{name:Xt,id:ce,identifier:me,featured:Pe,school_name:De,image_url:Ve,excellent:we,is_plan:Qe}=Ot;return Nt.createElement("div",{key:ce,className:Jt.wrap,style:{width:jt,marginRight:(1+te)%vt===0?0:et+st,marginBottom:tt}},Nt.createElement("a",{className:Jt.li,onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),ut&&(0,Dt.L9)([ut]),(0,Dt.xg)(`/paths/${me}`)}},Nt.createElement("div",{className:Jt.img},Nt.createElement("img",{className:Jt.cover,src:`${Ve}`}),ft&&(0,Et.bg)()&&(Ot==null?void 0:Ot.studying)&&Nt.createElement("div",{className:`${Jt.movebq} user-path-items`,onClick:ae=>{ae.stopPropagation(),gt(Ot)}},Nt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Nt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ne=Ot==null?void 0:Ot.subject_tags)==null?void 0:ne.map((ae,_t)=>{var $t,re;if(_t===0){const le=($t=Ht.find(Ue=>Ue.name==ae))==null?void 0:$t.swimg;return Nt.createElement("img",{className:Jt.sign,src:le,style:{left:"-4px"}})}const pe=(re=Ht.find(le=>le.name==ae))==null?void 0:re.ptimg;return Nt.createElement("img",{className:Jt.sign,src:pe,style:{left:`${48+52*(_t-1)+2*_t}px`}})}),Nt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ot==null?void 0:Ot.excellent)&&Nt.createElement("div",{className:Jt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Nt.createElement("div",{className:Jt.name},Nt.createElement(qt.Z,{title:kt&&(Ot!=null&&Ot.excellent_alias_name)?Nt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Xt}`,Nt.createElement("br",null),Nt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ot==null?void 0:Ot.excellent_alias_name}`)):Xt},Nt.createElement("span",{className:Jt.e},kt&&(Ot==null?void 0:Ot.excellent_alias_name)||Xt))),Nt.createElement(qt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${De}`},Nt.createElement("div",{className:Jt.unit},Nt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),De)),Nt.createElement("div",{className:Jt.tags},Nt.createElement("div",null,Nt.createElement(qt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Nt.createElement("span",null,Nt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Nt.createElement("span",null,Ot.stages_count))),Nt.createElement(qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Nt.createElement("span",null,Nt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Nt.createElement("span",null,Ot.members_count)))))))})),!Ft.length&&Nt.createElement(St.Z,null)))}},30001:function(An,jn,he){"use strict";he.d(jn,{jL:function(){return Rt},w9:function(){return $t},QD:function(){return Vn},cQ:function(){return Ve.Z},op:function(){return fe},O5:function(){return Pn},_b:function(){return bi},t7:function(){return rt},Gi:function(){return Xe},YG:function(){return Ue},qp:function(){return Ct},vr:function(){return si},qE:function(){return dn},Je:function(){return gt},wb:function(){return De},cq:function(){return oe},tp:function(){return vt}});var Jt=he(67294),xt={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"},qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lL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MixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Rt=({dataSource:kn=[],img:Nn,imgWidth:On=346,title:Hn,sunTitle:gi,bannerExtraContent:nn})=>Jt.createElement("div",{className:xt.banner},Jt.createElement("div",{className:xt.content},Jt.createElement("aside",null,Jt.createElement("p",null,Jt.createElement("b",null,Hn),Jt.createElement("span",null,gi)),kn.length>0&&Jt.createElement("div",{className:xt.btns},kn.map((en,We)=>Jt.createElement("div",{key:We,onClick:en.click},en.name,en.sign?Jt.createElement("img",{src:qt,width:39}):null))),nn),Nn&&Jt.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:On}))),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"},St=he(94184),Et=he.n(St),Nt=he(96486),Ct=({dataSource:kn=[],value:Nn,onChange:On,onTitleChange:Hn,className:gi,title:nn,titleWidth:en=41,style:We={},fontColor:sn="#6A7283",showCount:Xn})=>{const[Zn,zn]=(0,Jt.useState)(0),[Ze,mn]=(0,Jt.useState)(!1),ri=(0,Jt.useRef)(null),Si=(0,Jt.useRef)(null);return(0,Jt.useEffect)(()=>{var En;kn.length!==0&&(((En=ri==null?void 0:ri.current)==null?void 0:En.clientHeight)>97?zn(1):zn(0)),kn.length===0&&zn(0),mn(!1)},[kn]),Jt.createElement("div",{className:Et()(Dt.row,gi),style:We},Jt.createElement("div",{onClick:(0,Nt.throttle)(()=>Hn==null?void 0:Hn(),2e3),style:{width:en,marginTop:Ze?12:4},className:`${Dt.title} ${Hn?"current":""}`},nn),Jt.createElement("div",{className:Ze?`${Dt.tagsWrap} ${Dt.tagsBorderWrap}`:Dt.tagsWrap},Jt.createElement("div",{className:Dt.bar,ref:Si,style:Zn>0?{height:Zn===1?97:"auto",overflow:Zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Jt.createElement("div",{className:Dt.tag,ref:ri},kn==null?void 0:kn.map(En=>Jt.createElement("span",{onClick:()=>On(En.id),key:En.id,style:{color:sn},className:Nn===En.id?Dt.active:""},Jt.createElement("span",{title:En.name,className:Dt.name},En.name),!!Xn&&Jt.createElement("span",{className:Dt.num},En.count))))),!!Zn&&Jt.createElement(Jt.Fragment,null,Zn===1?Jt.createElement("div",{onClick:()=>{var En;zn(2),((En=ri==null?void 0:ri.current)==null?void 0:En.clientHeight)>245?mn(!0):mn(!1)},className:Dt.action},"\u5C55\u5F00",Jt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Jt.createElement("div",{onClick:()=>{Si.current.scrollTop=0,zn(1),mn(!1)},className:Dt.action},"\u6536\u8D77",Jt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Lt={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"},vt=({dataSource:kn=[],value:Nn,onChange:On,className:Hn,style:gi={}})=>Jt.createElement("div",{style:gi,className:Et()(Lt.tabs,Hn)},kn.map(nn=>Jt.createElement("span",{onClick:()=>On(nn.id),className:Nn===nn.id?Lt.active:"",key:nn.id},nn.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=he(28802),rt=({dataSource:kn=[],value:Nn="",onChange:On,onInputChange:Hn=()=>{},className:gi,style:nn={},placeholder:en,allowClear:We=!1})=>{var sn;const[Xn,Zn]=(0,Jt.useState)(""),[zn,Ze]=(0,Jt.useState)("");(0,Jt.useEffect)(()=>{var Si;let En=Nn;(Si=JSON.stringify(Nn))!=null&&Si.includes("{")&&(Zn(Nn.id),En=Nn.value||"");try{Ze(decodeURIComponent(En||""))}catch(Ye){Ze(decodeURIComponent(En||""))}},[Nn]);const mn=()=>{On(encodeURIComponent(zn),Xn||null)},ri=Si=>{Si!==Xn&&(Zn(Si),On(encodeURIComponent(zn),Si))};return Jt.createElement("div",{className:Et()(et.input,gi),style:nn},!!kn.length&&Jt.createElement("div",{className:et.dropdown},Jt.createElement("div",{className:et.text},(sn=kn.find(Si=>Si.id===Xn))==null?void 0:sn.name,Jt.createElement("i",{className:"iconfont icon-zhankai4"}),Jt.createElement("b",{className:et.b1}),Jt.createElement("b",{className:et.b2})),Jt.createElement("div",{className:et.menu},kn.map((Si,En)=>Jt.createElement("div",{key:En,onClick:()=>ri(Si.id)},Si.name)))),Jt.createElement(tt.default,{onPressEnter:mn,value:zn,onChange:Si=>{Ze(Si.target.value),Hn(encodeURIComponent(Si.target.value),Xn||null)},bordered:!1,placeholder:en}),Jt.createElement("i",{onClick:mn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},gt=({value:kn,onChange:Nn,className:On,total:Hn,pageSize:gi,style:nn={}})=>{const en=kn<2,We=kn>=Math.ceil(Hn/gi);return Hn<=gi?Jt.createElement(Jt.Fragment,null):Jt.createElement("div",{className:Et()(ut.quickPager,On),style:nn},Jt.createElement("div",{onClick:()=>{en||Nn(kn-1,"prev")},className:en?ut.disabled:""},"\u4E0A\u4E00\u9875"),Jt.createElement("div",{onClick:()=>{We||Nn(kn+1,"next")},className:We?ut.disabled:""},"\u4E0B\u4E00\u9875"))},ft={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"},kt=he(74330),jt=he(83062),Ht=he(57097),Ot=he(11320),te=he(28706),ne=he(96908),Xt=he(57177),ce=he(81378),me=he(26194),De=({className:kn,dataSource:Nn=[],col:On=4,right:Hn,bottom:gi=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:We,loading:sn})=>{const Xn=Math.floor((en-(On-1)*Hn)/On);return Jt.createElement(kt.Z,{spinning:sn},Jt.createElement("div",{className:Et()(ft.list,kn)},!!Nn.length&&Nn.map((Zn,zn)=>{const{name:Ze,id:mn,identifier:ri,power:Si,cover_image_id:En,pic:Ye}=Zn;return Jt.createElement("div",{className:ft.wrap,key:mn,style:{width:Xn,marginRight:(1+zn)%On===0?0:Hn+nn,marginBottom:gi}},Jt.createElement("a",{target:"_blank",href:`/shixuns/${ri}/challenges`,className:ft.li,onClick:ti=>{ti.preventDefault(),We&&(0,te.L9)([We]),Si&&(0,te.xg)(`/shixuns/${ri}/challenges`)}},Jt.createElement("div",{className:ft.img},Jt.createElement("img",{className:ft.cover,src:`${Ye}`}),Zn.is_jupyter&&Jt.createElement("img",{className:ft.sign,src:ne}),Zn.is_jupyter_lab&&Jt.createElement("img",{className:ft.sign,src:Xt}),Zn.is_unity_3d&&Jt.createElement("img",{className:ft.sign,src:ce})),Jt.createElement("div",{className:ft.name},Jt.createElement(jt.Z,{title:Ze||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Jt.createElement("span",{className:ft.e},Ze||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Jt.createElement("div",{className:ft.tags},Jt.createElement(jt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Jt.createElement("span",null,Jt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Jt.createElement("span",null,Zn.challenges_count))),!!Zn.myshixuns_count&&Jt.createElement(jt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Jt.createElement("span",null,Jt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Jt.createElement("span",null,Zn.myshixuns_count))),Jt.createElement(jt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Jt.createElement("span",null,Jt.createElement("span",null,Zn.level))),Jt.createElement("div",{className:ft.rate},Jt.createElement(Ht.Z,{allowHalf:!0,disabled:!0,defaultValue:Zn.score_info}),Jt.createElement("span",null,"\xA0",Zn.score_info?`${Zn.score_info}\u5206`:"5\u5206")))),!Si&&Jt.createElement("div",{className:ft.lockWrap},Jt.createElement("img",{src:`${Ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Jt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Nn.length&&Jt.createElement(me.Z,null)))},Ve=he(5476),we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkw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n,bottom:gi=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:We,loading:sn,handleVery:Xn=()=>!0})=>{const Zn=Math.floor((en-(On-1)*Hn)/On);return ae.createElement(kt.Z,{spinning:sn},ae.createElement("div",{className:Et()(we.list,kn)},!!Nn.length&&Nn.map((zn,Ze)=>{const{subject_identifier:mn,id:ri,identifier:Si,power:En}=zn,Ye=zn.is_public!=0&&zn.is_public;return ae.createElement("div",{className:we.wrap,key:ri,style:{width:Zn,marginRight:(1+Ze)%On===0?0:Hn+nn,marginBottom:gi}},ae.createElement("a",{className:we.li,onClick:ti=>{ti.preventDefault(),Xn(zn==null?void 0:zn.first_category_url)&&(We&&(0,te.L9)([We]),(0,te.xg)(zn.first_category_url))}},ae.createElement("div",{className:we.top},ae.createElement(jt.Z,{title:zn.name},ae.createElement("div",{className:we.name},zn.name)),ae.createElement("img",{className:we.img,src:Ot.Z.IMG_SERVER+"/images/"+zn.avatar_url}),ae.createElement("div",{className:we.text,title:zn.creator},zn.creator),mn&&ae.createElement("div",{className:we.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ye&&ae.createElement("div",{className:we.sign},"\u516C\u5F00")),ae.createElement("div",{className:we.bottom},zn.visits>0&&ae.createElement(jt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-liulanyan"}),ae.createElement("span",null,zn.visits))),zn.course_members_count>0&&ae.createElement(jt.Z,{title:"\u6210\u5458",placement:"bottom"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan"}),zn.course_members_count)),zn.tasks_count>0&&ae.createElement(jt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-zuoye"}),zn.tasks_count)),zn.is_end?ae.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!zn.is_accessible&&ae.createElement("div",{className:we.lockWrap},ae.createElement("img",{src:`${Ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Nn.length&&ae.createElement(me.Z,null)))},re={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"},pe=he(35973),Ue=({dataSource:kn=[],value:Nn,onChange:On,className:Hn,style:gi={},tabBarExtraContent:nn})=>Jt.createElement("div",{className:Et()(re.tabs,Hn),style:gi},Jt.createElement("div",{className:re.tabsWrap},kn.map((en,We)=>!(en!=null&&en.hide)&&Jt.createElement("aside",{className:re.tab,onClick:()=>{On(en.id),en.link&&pe.history.push(en.link)},key:We},Jt.createElement("div",{className:Nn===en.id?re.active:""},en.name),(en==null?void 0:en.resetCount)==null&&(en==null?void 0:en.total)!==void 0&&Jt.createElement("span",null,"\uFF08",en==null?void 0:en.total,"\uFF09"),(en==null?void 0:en.resetCount)!==void 0&&(en==null?void 0:en.total)!==void 0&&Jt.createElement(jt.Z,{title:(en==null?void 0:en.tip)!=null?en==null?void 0:en.tip:""},Jt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Jt.createElement("span",{style:{color:"#000"}},en==null?void 0:en.resetCount),"/",Jt.createElement("span",null,en==null?void 0:en.total),"\uFF09"))))),Jt.createElement("div",{className:re.tabBar},nn)),Xe=({className:kn,style:Nn={},children:On})=>Jt.createElement("div",{className:Et()(kn),style:Nn},On),Le={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},xe=he(85418),_e=he(50136);const Fe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var oe=({sortValue:kn,dropValue:Nn,className:On,onSort:Hn,onDrop:gi,dataSource:nn=Fe})=>{var en;return Jt.createElement("div",{className:Et()(Le.orderWrap,On)},Jt.createElement(xe.Z,{dropdownRender:()=>Jt.createElement(_e.default,null,nn.map((We,sn)=>Jt.createElement(_e.default.Item,{key:sn,onClick:()=>gi(We.id)},We.name)))},Jt.createElement("span",{className:Le.orderTextWrap},(en=nn.find(We=>Nn===We.id))==null?void 0:en.name)),Jt.createElement("span",{className:Le.orderIconWrap},Jt.createElement("span",{className:Le.orderAsc},Jt.createElement("i",{className:kn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Le.cursorPointer} ${Le.active}`:`iconfont icon-sanjiaoxing-up font12 ${Le.cursorPointer}`,onClick:()=>Hn(kn==="asc"?"desc":"asc")})),Jt.createElement("span",{className:Le.orderDesc},Jt.createElement("i",{className:kn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Le.cursorPointer} ${Le.active}`:`iconfont icon-sanjiaoxing-down font12 ${Le.cursorPointer}`,onClick:()=>Hn(kn==="asc"?"desc":"asc")}))))},Mt={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"},At=he(85804),Qt=Object.defineProperty,se=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,bt=(kn,Nn,On)=>Nn in kn?Qt(kn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):kn[Nn]=On,Bt=(kn,Nn)=>{for(var On in Nn||(Nn={}))Kt.call(Nn,On)&&bt(kn,On,Nn[On]);if(se)for(var On of se(Nn))It.call(Nn,On)&&bt(kn,On,Nn[On]);return kn},ie=(kn,Nn)=>{var On={};for(var Hn in kn)Kt.call(kn,Hn)&&Nn.indexOf(Hn)<0&&(On[Hn]=kn[Hn]);if(kn!=null&&se)for(var Hn of se(kn))Nn.indexOf(Hn)<0&&It.call(kn,Hn)&&(On[Hn]=kn[Hn]);return On},Wt=(kn,Nn,On)=>new Promise((Hn,gi)=>{var nn=sn=>{try{We(On.next(sn))}catch(Xn){gi(Xn)}},en=sn=>{try{We(On.throw(sn))}catch(Xn){gi(Xn)}},We=sn=>sn.done?Hn(sn.value):Promise.resolve(sn.value).then(nn,en);We((On=On.apply(kn,Nn)).next())}),fe=kn=>{var Nn=kn,{className:On,style:Hn,children:gi,loading:nn=!1,openLoading:en,onClick:We=()=>{},size:sn="middle",shape:Xn="round"}=Nn,Zn=ie(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[zn,Ze]=(0,Jt.useState)(!1);return Jt.createElement(At.ZP,Bt({onClick:(0,Nt.throttle)(mn=>Wt(void 0,null,function*(){en&&Ze(!0);try{yield We(mn)}catch(ri){console.log("error",ri)}en&&Ze(!1)}),2e3,{leading:!0,trailing:!1}),className:Et()(Mt.btn,Mt[`${sn}-${Xn}`],On),style:Hn,size:sn,shape:Xn,loading:zn||nn},Zn),gi)},ke={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"},dn=({className:kn,style:Nn,children:On=null,onClick:Hn,title:gi})=>Jt.createElement("div",{className:Et()(ke.head,kn),style:Nn},Jt.createElement("span",{className:"primary-hover",onClick:Hn},Jt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Jt.createElement("b",{title:gi},gi),Jt.createElement("div",{className:ke.node},On)),ln={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"},Vn=({confirmShow:kn=!0,confirmTitle:Nn,confirmClick:On,cancelShow:Hn=!0,cancelTitle:gi,cancelClick:nn,className:en,style:We,confirmLoading:sn=!1})=>Jt.createElement("div",{className:Et()(ln.btns,en),style:We},kn&&Jt.createElement(At.ZP,{loading:sn,onClick:On,type:"primary",className:ln.confirm},Nn),Hn&&Jt.createElement(At.ZP,{onClick:nn,className:ln.cancel},gi)),Tn={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"},si=({className:kn,style:Nn={},LeftContent:On,children:Hn,RightContent:gi})=>Jt.createElement("div",{className:Et()(Tn.fixedBottom,kn),style:Nn},Jt.createElement("div",{className:Tn.wrap},Jt.createElement("div",{className:Tn.left},On),Jt.createElement("div",{className:Tn.center},Hn),Jt.createElement("div",{className:Tn.right},gi))),ei={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"},bi=({className:kn,style:Nn={},dataSource:On=[]})=>Jt.createElement("div",{className:Et()(ei.crumbs,kn),style:Nn},On.map((Hn,gi)=>gi<On.length-1?Jt.createElement(Jt.Fragment,{key:gi},Hn.path||Hn.onClick?Jt.createElement("span",{className:ei.hover,onClick:Hn!=null&&Hn.onClick?Hn.onClick:()=>pe.history.push(Hn.path)},Hn.name):Jt.createElement("span",null,Hn.name),Jt.createElement("span",null,"\xA0",">","\xA0")):Jt.createElement("span",{key:gi,style:{color:"#5F6368"}},Hn.name))),Ni=he(55054),qn=Object.defineProperty,Ii=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Fi=(kn,Nn,On)=>Nn in kn?qn(kn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:On}):kn[Nn]=On,Sr=(kn,Nn)=>{for(var On in Nn||(Nn={}))Or.call(Nn,On)&&Fi(kn,On,Nn[On]);if(Ar)for(var On of Ar(Nn))wr.call(Nn,On)&&Fi(kn,On,Nn[On]);return kn},Ri=(kn,Nn)=>Ii(kn,pr(Nn)),vn=(kn,Nn)=>{var On={};for(var Hn in kn)Or.call(kn,Hn)&&Nn.indexOf(Hn)<0&&(On[Hn]=kn[Hn]);if(kn!=null&&Ar)for(var Hn of Ar(kn))Nn.indexOf(Hn)<0&&wr.call(kn,Hn)&&(On[Hn]=kn[Hn]);return On};const{Countdown:Ut}=Ni.default;var Pn=kn=>{var Nn=kn,{onChange:On}=Nn,Hn=vn(Nn,["onChange"]);const[gi,nn]=(0,Jt.useState)(null);(0,Jt.useEffect)(()=>{typeof gi=="number"&&gi>=0&&On(gi)},[gi]);const en=We=>{const sn=Math.floor(We/1e3);nn(sn)};return Jt.createElement(Ut,Ri(Sr({},Hn),{onChange:en}))}},99914:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return xt}});var Jt=he(67294);function xt(qt,Vt){const Rt=(0,Jt.useRef)();(0,Jt.useEffect)(()=>{Rt.current=qt}),(0,Jt.useEffect)(()=>{function Dt(){Rt.current()}if(Vt!==null){let St=setInterval(Dt,Vt);return()=>clearInterval(St)}},[Vt])}},4440:function(An,jn,he){"use strict";he.d(jn,{$J:function(){return qt},JZ:function(){return Rt},bN:function(){return St},jP:function(){return Dt},rO:function(){return Vt}});var Jt=he(33170),xt=(Et,Nt,Pt)=>new Promise((Ct,Lt)=>{var Ft=tt=>{try{et(Pt.next(tt))}catch(st){Lt(st)}},vt=tt=>{try{et(Pt.throw(tt))}catch(st){Lt(st)}},et=tt=>tt.done?Ct(tt.value):Promise.resolve(tt.value).then(Ft,vt);et((Pt=Pt.apply(Et,Nt)).next())});function qt(Et){return(0,Jt.U2)(`libraries/${Et}.json`)}function Vt(){return(0,Jt.U2)("library_tags.json")}function Rt(Et){return xt(this,null,function*(){return(yield(0,Jt.IV)(`attachments/${Et}.json`)).status===0})}function Dt(Et){return(0,Jt.v_)("libraries.json",Et)}function St(Et,Nt){return(0,Jt.gz)(`libraries/${Et}.json`,Nt)}},98915:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Ht}});var Jt=he(67294),xt=he(35973),qt=he(28802),Vt=he(91773),Rt=he(2453),Dt=he(62844),St=he(26410),Et=he(84567),Nt=he(66309),Pt={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},Ct=he(62263),Lt=he(45172),Ft=he(52262),vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ot,te,ne)=>te in Ot?vt(Ot,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ot[te]=ne,ut=(Ot,te)=>{for(var ne in te||(te={}))tt.call(te,ne)&&rt(Ot,ne,te[ne]);if(et)for(var ne of et(te))st.call(te,ne)&&rt(Ot,ne,te[ne]);return Ot},ct=(Ot,te,ne)=>new Promise((Xt,ce)=>{var me=Ve=>{try{De(ne.next(Ve))}catch(we){ce(we)}},Pe=Ve=>{try{De(ne.throw(Ve))}catch(we){ce(we)}},De=Ve=>Ve.done?Xt(Ve.value):Promise.resolve(Ve.value).then(me,Pe);De((ne=ne.apply(Ot,te)).next())});const{TextArea:gt}=qt.default,ft=1024,kt=(Ot,te)=>{var ne;const{uploadInfo:Xt={}}=te.payload||{};switch(te.type){case"addVideo":return{videoList:[...Ot.videoList,{name:Xt.file.name,size:Xt.file.size,type:Xt.file.type,fileHash:Xt.fileHash,state:Xt.state,videoId:Xt.videoId,loaded:Xt.loaded||0,title:""}]};case"removeVideo":return{videoList:Ot.videoList.filter(ce=>ce.name!==te.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Ot.videoList.map(ce=>ce.name===te.payload.uploadInfo.file.name?ut(ut({},ce),{loaded:te.payload.progressPercent,videoId:Xt.videoId,fileHash:Xt.fileHash}):ce)};case"updateTitle":return{videoList:(ne=Ot.videoList)==null?void 0:ne.map(ce=>ce.name===te.payload.item.name?ut(ut({},ce),{title:te.payload.title}):ce)};default:return{videoList:[]}}},jt=({user:Ot,globalSetting:te,loading:ne,dispatch:Xt,visible:ce,editData:me,onCancel:Pe=()=>{},onOk:De=()=>{},queryParams:Ve={}})=>{var we;const Qe=(0,xt.useParams)(),[ae]=Vt.default.useForm(),[_t,$t]=(0,Jt.useReducer)(kt,{videoList:[]}),[re,pe]=(0,Jt.useState)(!1),le=(0,Jt.useRef)(),[Ue,Ne]=(0,Jt.useState)(),[Xe,Le]=(0,Jt.useState)(!1),[xe,_e]=(0,Jt.useState)(!1),Fe=(0,Ft.Ny)()?3:1;(0,Jt.useEffect)(()=>{var Zt,fe,ke;ce&&me&&(Le(me.is_link),Ne(me.link),!me.is_link&&$t({type:"addVideo",payload:{uploadInfo:{file:{name:me.filename||""},videoId:me.video_id,loaded:100}}}),Bt(((Zt=me==null?void 0:me.tags)==null?void 0:Zt.map(tn=>tn==null?void 0:tn.name))||[]),ae.setFieldsValue({name:me.name,description:me.description,attachment_id:(fe=me==null?void 0:me.video)==null?void 0:fe.attachment_id,allow_skip:(ke=me==null?void 0:me.video_item)==null?void 0:ke.allow_skip}))},[me,ce]);const Ae=()=>{const Zt=document.getElementById("fileUpload");Zt.value=""},oe=Zt=>{var fe;Le(!1);const ke=Zt.target.files[0];if(!ke){Ae();return}const tn=ke.name.toLowerCase();if(tn&&tn.indexOf(".avi")==-1&&tn.indexOf(".flv")==-1&&tn.indexOf(".f4v")==-1&&tn.indexOf(".m4v")==-1&&tn.indexOf(".mov")==-1&&tn.indexOf(".mp4")==-1&&tn.indexOf(".rmvb")==-1&&tn.indexOf(".swf")==-1&&tn.indexOf(".webm")==-1&&tn.indexOf(".wmv")==-1){Rt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Ae();return}if(ke.size>ft*Fe*1024*1024){Rt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Fe}G`),Ae();return}if((fe=_t.videoList)!=null&&fe.find(dn=>dn.name===ke.name)){Rt.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Ae();return}At(ke)},Mt=(Zt,fe)=>{Dt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Jt.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",fe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Ae(),$t({type:"removeVideo",payload:{name:Zt}})}})},At=Zt=>{var fe,ke='{"Vod":{}}';if(pe(!0),le.current){le.current.addFile(Zt,null,null,null,ke);return}(0,Ct.o)((fe=Ot.userInfo)==null?void 0:fe.login,"",{create:!le,addFileSuccess:tn=>{$t({type:"addVideo",payload:{uploadInfo:tn}})},onUploadProgress:(tn,dn,ln)=>{const Bn=Math.ceil(ln*100);$t({type:"updateProgress",payload:{uploadInfo:tn,progressPercent:Bn}}),Ae()},onUploadFailed:tn=>{Rt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:tn=>{pe(!1)},onUploadSucceed:tn=>{pe(!1)},onUploadError:tn=>{pe(!1)},gotUploader:tn=>{tn.addFile(Zt,null,null,null,ke),le.current=tn}})},Qt=()=>ct(void 0,null,function*(){var Zt,fe;if(yield ae.validateFields(),!Xe&&!((Zt=_t.videoList)!=null&&Zt.length)||Xe&&!Ue){Rt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}_e(!0);const ke=Xe?{link:Ue}:{video_id:(fe=_t.videoList)==null?void 0:fe[0].videoId},tn=yield De(ut(ut(ut({},ke),Ve),{name:ae.getFieldValue("name"),attachment_id:ae.getFieldValue("attachment_id"),description:ae.getFieldValue("description"),tags:ae.getFieldValue("tag"),allow_skip:ae.getFieldValue("allow_skip")}));_e(!1),tn!=null&&tn.id&&se()}),se=()=>{ae.resetFields(),$t({type:"removeAll"}),Ne(null),Bt([]),Le(null)},Kt=()=>{Pe(),se()},It=()=>{var Zt,fe,ke,tn,dn,ln,Bn,Vn,Tn,un,si,ei,fi,bi,Ni,qn,Ii;return Jt.createElement(Jt.Fragment,null,!Xe&&!!((Zt=_t.videoList)!=null&&Zt.length)&&Jt.createElement("div",{className:Pt.fileProgress},((ke=(fe=_t.videoList)==null?void 0:fe[0])==null?void 0:ke.loaded)==100?Jt.createElement("div",{className:`${Pt.videoName} font14`},(dn=(tn=_t.videoList)==null?void 0:tn[0])!=null&&dn.videoId?(Bn=(ln=_t.videoList)==null?void 0:ln[0])==null?void 0:Bn.name:(Vn=me==null?void 0:me.video_item)!=null&&Vn.is_link?(Tn=me==null?void 0:me.video_item)==null?void 0:Tn.link:(un=me==null?void 0:me.video_item)==null?void 0:un.file_name):Jt.createElement(St.Z,{style:{width:"80%"},percent:(ei=(si=_t.videoList)==null?void 0:si[0])==null?void 0:ei.loaded,status:((bi=(fi=_t.videoList)==null?void 0:fi[0])==null?void 0:bi.loaded)==100?"normal":"active"}),Jt.createElement("div",{className:Pt.fileCancel,onClick:()=>{var pr,Ar,Or,wr;return Mt((Ar=(pr=_t.videoList)==null?void 0:pr[0])==null?void 0:Ar.name,((wr=(Or=_t.videoList)==null?void 0:Or[0])==null?void 0:wr.loaded)==100)}},((qn=(Ni=_t.videoList)==null?void 0:Ni[0])==null?void 0:qn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Ii=_t.videoList)!=null&&Ii.length)&&Jt.createElement("div",{className:Pt.uploadWrap},Jt.createElement("label",{htmlFor:"fileUpload",className:Pt.upload},Jt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),Jt.createElement("label",{className:`${Pt.upload} ${Pt.uploadLink}`,onClick:()=>Le(!0)},Jt.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Xe&&Jt.createElement(qt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Ue,onChange:pr=>Ne(pr.target.value)}))},[bt,Bt]=(0,Jt.useState)([]),ie=Zt=>{if(Zt.key=="Enter"){const fe=ae.getFieldValue("tag");if(ae.setFieldsValue({tag:""}),!fe){Rt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(bt.filter(ke=>ke===fe).length>0){Rt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}bt.push(fe),Bt([...bt])}},Wt=(Zt,fe)=>{Zt.preventDefault(),Bt([...bt.filter(ke=>ke!=fe)])};return Jt.createElement(Dt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:me?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:Pt.modal,open:ce,confirmLoading:xe,onOk:Qt,onCancel:Kt},Jt.createElement(Vt.default,{form:ae},Jt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:oe,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),Jt.createElement(Vt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},Jt.createElement(qt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),Jt.createElement(Vt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:Pt.contentItem},It()),Jt.createElement(Vt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},Jt.createElement(Lt.Z,{getFileProgress:Zt=>{if(Zt.file.status==="uploading"){_e(!0);return}Zt.file.status==="done"&&_e(!1)}})),Jt.createElement(Vt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},Jt.createElement(gt,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),Jt.createElement(Vt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},Jt.createElement(qt.default,{onKeyUp:ie})),Jt.createElement(Vt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},Jt.createElement(Et.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),Jt.createElement("div",{className:Pt["tagsList-content"]},bt.map((Zt,fe)=>Jt.createElement(Nt.default,{key:fe+Zt,closable:!0,onClose:ke=>{Wt(ke,Zt)}},Zt))),Jt.createElement("div",{className:"c-grey-999"},Jt.createElement("div",null,"\u6CE8\u610F\uFF1A"),Jt.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",Jt.createElement(xt.Link,{to:`/users/${(we=Ot.userInfo)==null?void 0:we.login}/videos/protocol`,target:"_blank",className:Pt.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),Jt.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Fe,"G\uFF1B"),Jt.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),Jt.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Ht=(0,xt.connect)(({user:Ot,loading:te,globalSetting:ne})=>({user:Ot,globalSetting:ne,loading:te}))(jt)},62263:function(An,jn,he){"use strict";he.d(jn,{o:function(){return Nt}});var Jt=he(33170),xt=he(69548),qt=he.n(xt);let Vt="",Rt,Dt="";function St(Pt){Et(Pt)}function Et(Pt){Rt=new(qt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(Ct){console.log("addFileSuccess: "+Ct.file.name),Pt.addFileSuccess&&Pt.addFileSuccess(Ct),Rt.startUpload()},onUploadstarted:function(Ct){const Lt=Ct.file.name;if(Ct.videoId){var vt=`/api/users/${Vt}/video_auths.json`;(0,Jt.ZP)(vt,{method:"put",body:{video_id:Ct.videoId,title:Lt,file_name:Lt,virtual_classroom_id:Dt}}).then(et=>{if(et.status==-1){Pt.onUploadError&&Pt.onUploadError(Ct);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;Rt.setUploadAuthAndAddress(Ct,st,rt)}).catch(et=>{Rt.deleteFile(Rt._curIndex),Rt.nextUpload(),console.log(et)})}else{var Ft=`/api/users/${Vt}/video_auths.json`;const et="";(0,Jt.ZP)(Ft,{method:"Post",body:{title:et+Lt,file_name:et+Lt,virtual_classroom_id:Dt}}).then(tt=>{if(tt){const ct=tt.data;var st=ct.UploadAuth,rt=ct.UploadAddress,ut=ct.VideoId;Rt.setUploadAuthAndAddress(Ct,st,rt,ut)}}).catch(tt=>{Rt.deleteFile(Rt._curIndex),Rt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(Ct){Pt.onUploadSucceed&&Pt.onUploadSucceed(Ct),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(Ct,Lt,Ft){Pt.onUploadFailed&&Pt.onUploadFailed(Ct),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(Ct,Lt,Ft){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(Ct,Lt,Ft){Pt.onUploadProgress&&Pt.onUploadProgress(Ct,Lt,Ft);var vt=Math.ceil(Ft*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(Ct){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var Lt=`/api/users/${Vt}/video_auths.json`;(0,Jt.ZP)(Lt,{method:"put",body:{video_id:Ct.videoId}}).then(Ft=>{var et=Ft.data.UploadAuth;Rt.resumeUploadWithAuth(et)}).catch(Ft=>{console.log(Ft)})},onUploadEnd:function(Ct){Pt.onUploadEnd&&Pt.onUploadEnd(Ct),console.log("onUploadEnd: uploaded all the files")}}),Pt.gotUploader&&Pt.gotUploader(Rt)}function Nt(Pt,Ct,Lt){Pt&&(Vt=Pt),Ct&&(Dt=Ct),St(Lt)}},51161:function(An,jn,he){"use strict";he.d(jn,{AL:function(){return gt},Iy:function(){return Ct},Qv:function(){return vt},ez:function(){return ct},jb:function(){return Lt}});var Jt=he(47084),xt=he.n(Jt),qt=he(90621),Vt=he.n(qt);let Rt=1;function Dt(Ot,te){const ne=Ot.match(/^(\s+)(?:```)/);if(ne===null)return te;const Xt=ne[1];return te.split(`
|
|
`).map(ce=>{const me=ce.match(/^\s+/);if(me===null)return ce;const[Pe]=me;return Pe.length>=Xt.length?ce.slice(Xt.length):ce}).join(`
|
|
`)}let St=[],Et=["<ul>"];const Nt=new(xt()).Renderer,Pt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ct(){St.length=0,Et=["<ul>"]}const Lt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ft(Ot,te,ne,Xt){if(te>=Ot.length||Ot[te].level<=ne)return te;var ce=Ot[te];Xt.push("<li><a href='#"+Rt+ce.anchor+"'>"+ce.text+"</a>"),te++;var me=[];return te=Ft(Ot,te,ce.level,me),me.length>0&&(Xt.push("<ul>"),me.forEach(function(Pe){Xt.push(Pe)}),Xt.push("</ul>")),Xt.push("</li>"),te=Ft(Ot,te,ne,Xt),te}function vt(){return Ft(St,0,0,Et),Et.push("</ul>"),Et.join("")}const et={heading(Ot){const te=Pt.exec(Ot);if(Rt+=1,te)return{type:"heading",raw:te[0],depth:te[1].length,text:te[2]}},fences(Ot){const te=this.rules.block.fences.exec(Ot);if(te){const ne=te[0];let Xt=Dt(ne,te[3]||"");const ce=te[2]?te[2].trim():te[2];if(["latex","katex","math"].indexOf(ce)>=0){const me=rt(),Pe=Xt;Xt=me,ut[me]={type:"block",expression:Pe}}return{type:"code",raw:ne,lang:ce,text:Xt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let st=0;const rt=()=>`__special_katext_id_${st++}__`;let ut={};function ct(){return ut}function gt(){st=0,ut={}}function ft(Ot){return Ot=Ot.replace(tt,(te,ne)=>{const Xt=rt();return ut[Xt]={type:"inline",expression:ne},Xt}),Ot}const kt=Nt.listitem;Nt.listitem=function(Ot){return kt(ft(Ot))};const jt=Nt.paragraph;Nt.paragraph=function(Ot){return jt(ft(Ot))};const Ht=Nt.tablecell;Nt.tablecell=function(Ot,te){return Ht(ft(Ot),te)},Nt.code=function(Ot,te,ne){const Xt=(te||"").match(/\S*/)[0];return Xt?["latex","katex","math"].indexOf(Xt)>=0?`<p class='editormd-tex'>${Ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${te}">${ne?Ot:(0,qt.escape)(Ot,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(ne?Ot:(0,qt.escape)(Ot,!0))+"</code></pre>"},Nt.heading=function(Ot,te,ne){let Xt=this.options.headerPrefix+ne.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return St.push({anchor:Xt,level:te,text:Ot}),"<h"+te+' id="'+Rt+Xt+'">'+Ot+"</h"+te+">"},xt().setOptions({silent:!0,gfm:!0,pedantic:!1}),xt().use({tokenizer:et,renderer:Nt}),jn.ZP=xt()},78207:function(An,jn,he){"use strict";he.d(jn,{rX:function(){return ft},pW:function(){return kt},gy:function(){return jt},xY:function(){return gt},O5:function(){return ct},hs:function(){return tt},tJ:function(){return vt},o1:function(){return et},Rd:function(){return ut}});var Jt=he(35973),xt=he(62844),qt=he(96074),Vt=he(2453),Rt=he(52262),Dt=he(28706),St=he(55304),Et=he(25510),Nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2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UPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Pt=he.p+"static/newqrcode.a8740efb.png",Ct=he(32637),Lt=he(67294),Ft=(Ht,Ot,te)=>new Promise((ne,Xt)=>{var ce=De=>{try{Pe(te.next(De))}catch(Ve){Xt(Ve)}},me=De=>{try{Pe(te.throw(De))}catch(Ve){Xt(Ve)}},Pe=De=>De.done?ne(De.value):Promise.resolve(De.value).then(ce,me);Pe((te=te.apply(Ht,Ot)).next())});const vt=(Ht,Ot=!1,te=!1,ne="",Xt=!1)=>!!(et(Ht)&&st(Ht,Ot,te,ne,Xt)),et=Ht=>(0,Rt.bg)()?!0:(Ht({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Ht=>{var Ot,te,ne;const{user:Xt}=(0,Jt.getDvaApp)()._store.getState();(0,Rt.bg)()&&!((te=(Ot=Xt==null?void 0:Xt.userInfo)==null?void 0:Ot.course)!=null&&te.course_public)&&!((ne=Xt==null?void 0:Xt.userInfo)!=null&&ne.profile_completed)&&Ht({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},st=(Ht,Ot=!1,te=!0,ne="",Xt=!1)=>{var ce;const{user:me}=(0,Jt.getDvaApp)()._store.getState();return(ce=me.userInfo)!=null&&ce.profile_completed?!0:(te?Ht({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:ne,isCurrentPage:Xt}}):xt.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"),rt()}}),!1)},rt=()=>{xt.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()}})},ut=()=>{xt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Lt.createElement("div",{style:{textAlign:"center"}},Lt.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"),Lt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Ct}),Lt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ct=()=>{var Ht;const{user:Ot}=(0,Jt.getDvaApp)()._store.getState();return(Ht=Ot.userInfo)!=null&&Ht.professional_certification?!0:(xt.default.confirm({title:"\u63D0\u793A",centered:!0,content:Lt.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)},gt=()=>(0,Rt.V9)()?!0:(xt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Lt.createElement("div",{className:"tc",style:{marginLeft:-38}},Lt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Lt.createElement("img",{src:Pt,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ft=(Ht,Ot)=>Ht?!0:(xt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Lt.createElement("div",null,Lt.createElement("p",null,Ot||"\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"),Lt.createElement("div",{style:{marginLeft:"110px"}},Lt.createElement("img",{src:Nt,width:200}),Lt.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),kt=Ht=>{xt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Lt.createElement("div",null,Lt.createElement("div",null,Lt.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"),Lt.createElement(qt.Z,null),Lt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Lt.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 ",Lt.createElement("a",null,Ht),"\u5929\u3002"),Lt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Lt.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")),Lt.createElement("div",{style:{textAlign:"center",marginTop:30}},Lt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Et,alt:"\u4E8C\u7EF4\u7801",width:160})))})},jt=(Ht,Ot="")=>{const{shixunsDetail:{detail:te}}=(0,Jt.getDvaApp)()._store.getState();if((te==null?void 0:te.public)===2||(te==null?void 0:te.public)===1||(te==null?void 0:te.shixun_status)===3){let ne="";return(te==null?void 0:te.public)===2&&(ne="\u5DF2\u516C\u5F00"),(te==null?void 0:te.public)===1&&(ne="\u5F85\u5BA1\u6838"),(te==null?void 0:te.shixun_status)===3&&(ne="\u5DF2\u5173\u95ED"),xt.default.info({centered:!0,icon:Lt.createElement(St.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Lt.createElement("div",{className:"tc",style:{marginLeft:-38}},Lt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Lt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",ne,"\uFF0C",Ot,"\u3002"),Lt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Lt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Et,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(te==null?void 0:te.shixun_status)===2?(xt.default.confirm({centered:!0,icon:Lt.createElement(St.Z,null),title:"\u63D0\u793A",content:Lt.createElement("div",null,Lt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ot,"\u3002"),Lt.createElement("br",null),Lt.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:()=>{xt.default.confirm({width:440,centered:!0,icon:Lt.createElement(St.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:()=>Ft(void 0,null,function*(){(yield Ht({type:"shixunsDetail/cancelRelease",payload:{id:te==null?void 0:te.identifier}})).status!==401&&(Vt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ht({type:"shixunsDetail/getShixunsDetail",payload:{id:te==null?void 0:te.identifier}}),Ht({type:"practiceSetting/getCommonData",payload:{id:te==null?void 0:te.identifier}}))})})}}),!0):!1}},69548:function(An,jn,he){(function(Jt){if(1)window.OSS=Jt(),An.exports=Jt();else var xt})(function(){var Jt;return function(){function xt(qt,Vt,Rt){function Dt(Nt,Pt){if(!Vt[Nt]){if(!qt[Nt]){var Ct=void 0;if(!Pt&&Ct)return require(Nt,!0);if(St)return St(Nt,!0);var Lt=new Error("Cannot find module '"+Nt+"'");throw Lt.code="MODULE_NOT_FOUND",Lt}var Ft=Vt[Nt]={exports:{}};qt[Nt][0].call(Ft.exports,function(vt){return Dt(qt[Nt][1][vt]||vt)},Ft,Ft.exports,xt,qt,Vt,Rt)}return Vt[Nt].exports}for(var St=void 0,Et=0;Et<Rt.length;Et++)Dt(Rt[Et]);return Dt}return xt}()({1:[function(xt,qt,Vt){"use strict";var Rt=xt("./browser/client");Rt.Buffer=xt("buffer").Buffer,Rt.co=xt("co"),Rt.urllib=xt("../shims/xhr"),Rt.version=xt("./browser/version").version,qt.exports=Rt},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(xt,qt,Vt){(function(Rt,Dt){"use strict";function St(_t){return _t&&_t.__esModule?_t:{default:_t}}function Et(_t,$t){return _t[$t]||_t[$t.toLowerCase()]}function Nt(_t,$t){var re=Ot.parse(_t);if(!re.protocol){var pe=$t?"https://":"http://";re=Ot.parse(pe+_t)}if(re.protocol!=="http:"&&re.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return re}function Pt(_t,$t,re){var pe=re?"https://":"http://",le=$t?"-internal.aliyuncs.com":".aliyuncs.com";return _t.substr(0,14)==="vpc100-oss-cn-"&&(le=".aliyuncs.com"),Ot.parse(pe+_t+le)}function Ct(){return document&&document.location&&document.location.protocol==="https:"}function Lt(_t,$t){if(!(this instanceof Lt))return new Lt(_t,$t);_t&&_t.inited?this.options=_t:this.options=Lt.initOptions(_t),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ce,this.agent=this.options.agent||Qe),this.ctx=$t,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var Ft=xt("babel-runtime/regenerator"),vt=St(Ft),et=xt("babel-runtime/core-js/object/keys"),tt=St(et),st=xt("debug")("ali-oss"),rt=xt("./../../shims/crypto/crypto.js"),ut=xt("path"),ct=xt("copy-to"),gt=xt("mime"),ft=xt("xml2js"),kt=xt("humanize-ms"),jt=xt("agentkeepalive"),Ht=xt("merge-descriptors"),Ot=xt("url"),te=xt("is-type-of"),ne=xt("platform"),Xt=xt("utility"),ce=xt("urllib"),me=xt("./version"),Pe=xt("dateformat"),De=xt("bowser"),Ve=xt("../common/signUtils"),we=xt("../common/utils"),Qe=new jt;qt.exports=Lt,Lt.initOptions=function(_t){if(!_t||!_t.accessKeyId||!_t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var $t=Ct(),re={region:"oss-cn-hangzhou",internal:!1,secure:$t,bucket:null,endpoint:null,cname:!1};if((0,tt.default)(_t).forEach(function(pe){_t[pe]!==void 0&&(re[pe]=_t[pe])}),re.accessKeyId=re.accessKeyId.trim(),re.accessKeySecret=re.accessKeySecret.trim(),re.timeout&&(re.timeout=kt(re.timeout)),re.endpoint)re.endpoint=Nt(re.endpoint,re.secure);else{if(!re.region)throw new Error("require options.endpoint or options.region");re.endpoint=Pt(re.region,re.internal,re.secure)}return re.inited=!0,re};var ae=Lt.prototype;Ht(ae,xt("./object")),Ht(ae,xt("./managed_upload")),Ht(ae,xt("../common/multipart")),Ht(ae,xt("../common/thunkpool.js")),Lt.Wrapper=xt("./wrapper"),ae.signature=function(_t){return st("authorization stringToSign: %s",_t),Ve.computeSignature(this.options.accessKeySecret,_t)},ae.authorization=function(_t,$t,re,pe){var le=Ve.buildCanonicalString(_t.toUpperCase(),$t,{headers:pe,parameters:re});return Ve.authorization(this.options.accessKeyId,this.options.accessKeySecret,le)},ae.createRequest=function(_t){var $t={"x-oss-date":Pe(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&($t["x-oss-security-token"]=this.options.stsToken),ct(_t.headers).to($t),Et($t,"Content-Type")||(_t.mime===gt.default_type&&(_t.mime=""),_t.mime&&_t.mime.indexOf("/")>0?$t["Content-Type"]=_t.mime:$t["Content-Type"]=gt.getType(_t.mime||ut.extname(_t.object||""))||"application/octet-stream"),_t.content&&($t["Content-Md5"]=rt.createHash("md5").update(new Dt(_t.content,"utf8")).digest("base64"),$t["Content-Length"]||($t["Content-Length"]=_t.content.length));var re=this._getResource(_t);$t.authorization=this.authorization(_t.method,re,_t.subres,$t);var pe=this._getReqUrl(_t);st("request %s %s, with headers %j, !!stream: %s",_t.method,pe,$t,!!_t.stream);var le=_t.timeout||this.options.timeout;return{url:pe,params:{agent:this.agent,method:_t.method,content:_t.content,stream:_t.stream,headers:$t,timeout:le,writeStream:_t.writeStream,customResponse:_t.customResponse,ctx:_t.ctx||this.ctx}}},ae.request=vt.default.mark(function _t($t){var re,pe,le,Ue;return vt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return re=this.createRequest($t),pe=void 0,le=void 0,Ne.prev=3,Ne.next=6,this.urllib.request(re.url,re.params);case 6:pe=Ne.sent,st("response %s %s, got %s, headers: %j",$t.method,re.url,pe.status,pe.headers),Ne.next=13;break;case 10:Ne.prev=10,Ne.t0=Ne.catch(3),le=Ne.t0;case 13:if(Ue=void 0,!pe||!$t.successStatuses||$t.successStatuses.indexOf(pe.status)!==-1){Ne.next=26;break}return Ne.next=17,this.requestError(pe);case 17:if(Ue=Ne.sent,Ue.code!=="RequestTimeTooSkewed"){Ne.next=23;break}return this.options.amendTimeSkewed=+new Date(Ue.serverTime)-new Date,Ne.next=22,this.request($t);case 22:return Ne.abrupt("return",Ne.sent);case 23:Ue.params=$t,Ne.next=30;break;case 26:if(!le){Ne.next=30;break}return Ne.next=29,this.requestError(le);case 29:Ue=Ne.sent;case 30:if(!Ue){Ne.next=32;break}throw Ue;case 32:if(!$t.xmlResponse){Ne.next=36;break}return Ne.next=35,this.parseXML(pe.data);case 35:pe.data=Ne.sent;case 36:return Ne.abrupt("return",pe);case 37:case"end":return Ne.stop()}},_t,this,[[3,10]])}),ae._getResource=function(_t){var $t="/";return _t.bucket&&($t+=_t.bucket+"/"),_t.object&&($t+=_t.object),$t},ae._isIP=function(_t){return we._isIP(_t)},ae._escape=function(_t){return Xt.encodeURIComponent(_t).replace(/%2F/g,"/")},ae._getReqUrl=function(_t){var $t={};ct(this.options.endpoint).to($t);var re=this._isIP($t.hostname),pe=this.options.cname;!_t.bucket||pe||re||($t.host=_t.bucket+"."+$t.host);var le="/";_t.bucket&&re&&(le+=_t.bucket+"/"),_t.object&&(le+=this._escape(_t.object).replace(/\+/g,"%2B")),$t.pathname=le;var Ue={};if(_t.query&&Ht(Ue,_t.query),_t.subres){var Ne={};te.string(_t.subres)?Ne[_t.subres]="":te.array(_t.subres)?_t.subres.forEach(function(Xe){Ne[Xe]=""}):Ne=_t.subres,Ht(Ue,Ne)}return $t.query=Ue,Ot.format($t)},ae._getUserAgent=function(){var _t=Rt&&Rt.browser?"js":"nodejs",$t="aliyun-sdk-"+_t+"/"+me.version,re=ne.description;return!re&&Rt&&(re="Node.js "+Rt.version.slice(1)+" on "+Rt.platform+" "+Rt.arch),this._checkUserAgent($t+" "+re)},ae._checkUserAgent=function(_t){return _t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},ae.checkBrowserAndVersion=function(_t,$t){return De.name===_t&&De.version.split(".")[0]===$t},ae.parseXML=function(_t){return function($t){Dt.isBuffer(_t)&&(_t=_t.toString()),ft.parseString(_t,{explicitRoot:!1,explicitArray:!1},$t)}},ae.requestError=vt.default.mark(function _t($t){var re,pe,le,Ue;return vt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(re=null,$t.data&&$t.data.length){Ne.next=5;break}$t.status===-1||$t.status===-2?(re=new Error($t.message),re.name=$t.name,re.status=$t.status,re.code=$t.name):($t.status===404?(re=new Error("Object not exists"),re.name="NoSuchKeyError",re.status=404,re.code="NoSuchKey"):$t.status===412?(re=new Error("Pre condition failed"),re.name="PreconditionFailedError",re.status=412,re.code="PreconditionFailed"):(re=new Error("Unknow error, status: "+$t.status),re.name="UnknowError",re.status=$t.status),re.requestId=$t.headers["x-oss-request-id"],re.host=""),Ne.next=30;break;case 5:return pe=String($t.data),st("request response error data: %s",pe),le=void 0,Ne.prev=8,Ne.next=11,this.parseXML(pe)||{};case 11:le=Ne.sent,Ne.next=21;break;case 14:return Ne.prev=14,Ne.t0=Ne.catch(8),st(pe),Ne.t0.message+=`
|
|
raw xml: `+pe,Ne.t0.status=$t.status,Ne.t0.requestId=$t.headers["x-oss-request-id"],Ne.abrupt("return",Ne.t0);case 21:Ue=le.Message||"unknow request error, status: "+$t.status,le.Condition&&(Ue+=" (condition: "+le.Condition+")"),re=new Error(Ue),re.name=le.Code?le.Code+"Error":"UnknowError",re.status=$t.status,re.code=le.Code,re.requestId=le.RequestId,re.hostId=le.HostId,re.serverTime=le.ServerTime;case 30:return st("generate error %j",re),Ne.abrupt("return",re);case 32:case"end":return Ne.stop()}},_t,this,[[8,14]])})}).call(this,xt("_process"),xt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(ct){return ct&&ct.__esModule?ct:{default:ct}}function St(ct,gt){if(!(this instanceof St))return new St(ct,gt);ut.call(this,gt),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Et=xt("babel-runtime/core-js/array/from"),Nt=Dt(Et),Pt=xt("babel-runtime/regenerator"),Ct=Dt(Pt),Lt=xt("is-type-of"),Ft=xt("util"),vt=xt("path"),et=xt("mime"),tt=xt("copy-to"),st=Vt;st.multipartUpload=Ct.default.mark(function ct(gt,ft,kt){var jt,Ht,Ot,te,ne,Xt,ce,me,Pe;return Ct.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(this.resetCancelFlag(),kt=kt||{},!kt.checkpoint||!kt.checkpoint.uploadId){De.next=6;break}return De.next=5,this._resumeMultipart(kt.checkpoint,kt);case 5:return De.abrupt("return",De.sent);case 6:return jt=102400,kt.mime||(Lt.file(ft)?kt.mime=et.getType(vt.extname(ft.name)):Lt.blob(ft)?kt.mime=ft.type:kt.mime=et.getType(vt.extname(ft))),kt.headers=kt.headers||{},this._convertMetaToHeaders(kt.meta,kt.headers),De.next=12,this._getFileSize(ft);case 12:if(!((Ht=De.sent)<jt)){De.next=25;break}return Ot=this._createStream(ft,0,Ht),kt.contentLength=Ht,De.next=18,this.putStream(gt,Ot,kt);case 18:if(te=De.sent,!kt||!kt.progress){De.next=22;break}return De.next=22,kt.progress(1);case 22:return ne={res:te.res,bucket:this.options.bucket,name:gt,etag:te.res.headers.etag},(kt.headers&&kt.headers["x-oss-callback"]||kt.callback)&&(ne.data=te.data),De.abrupt("return",ne);case 25:if(!(kt.partSize&&kt.partSize<jt)){De.next=27;break}throw new Error("partSize must not be smaller than "+jt);case 27:return De.next=29,this.initMultipartUpload(gt,kt);case 29:if(Xt=De.sent,ce=Xt.uploadId,me=this._getPartSize(Ht,kt.partSize),Pe={file:ft,name:gt,fileSize:Ht,partSize:me,uploadId:ce,doneParts:[]},!kt||!kt.progress){De.next=36;break}return De.next=36,kt.progress(0,Pe,Xt.res);case 36:return De.next=38,this._resumeMultipart(Pe,kt);case 38:return De.abrupt("return",De.sent);case 39:case"end":return De.stop()}},ct,this)}),st._resumeMultipart=Ct.default.mark(function ct(gt,ft){var kt,jt,Ht,Ot,te,ne,Xt,ce,me,Pe,De,Ve,we,Qe,ae,_t,$t,re,pe,le,Ue;return Ct.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!this.isCancel()){Ne.next=2;break}throw this._makeCancelEvent();case 2:if(kt=gt.file,jt=gt.fileSize,Ht=gt.partSize,Ot=gt.uploadId,te=gt.doneParts,ne=gt.name,Xt=[],te.length>0&&tt(te).to(Xt),ce=this._divideParts(jt,Ht),me=ce.length,Pe=!1,De=Ct.default.mark(function Xe(Le,xe){var _e,Fe,Ae;return Ct.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(Le.isCancel()){oe.next=21;break}return oe.prev=1,_e=ce[xe-1],Fe={stream:Le._createStream(kt,_e.start,_e.end),size:_e.end-_e.start},oe.next=6,Le._uploadPart(ne,Ot,xe,Fe);case 6:if(Ae=oe.sent,Le.isCancel()||Pe){oe.next=13;break}if(gt.doneParts.push({number:xe,etag:Ae.res.headers.etag}),Xt.push({number:xe,etag:Ae.res.headers.etag}),!ft||!ft.progress){oe.next=13;break}return oe.next=13,ft.progress(te.length/me,gt,Ae.res);case 13:oe.next=21;break;case 15:if(oe.prev=15,oe.t0=oe.catch(1),Le.isCancel()){oe.next=21;break}throw Le.cancel(),oe.t0.partNum=xe,oe.t0;case 21:case"end":return oe.stop()}},Xe,this,[[1,15]])}),Ve=(0,Nt.default)(new Array(me),function(Xe,Le){return Le+1}),we=Xt.map(function(Xe){return Xe.number}),Qe=Ve.filter(function(Xe){return we.indexOf(Xe)<0}),ae=5,_t=ft.parallel||ae,!this.checkBrowserAndVersion("Internet Explorer","10")&&_t!==1){Ne.next=26;break}$t=0;case 16:if(!($t<Qe.length)){Ne.next=24;break}if(!this.isCancel()){Ne.next=19;break}throw this._makeCancelEvent();case 19:return Ne.next=21,De(this,Qe[$t]);case 21:$t++,Ne.next=16;break;case 24:Ne.next=40;break;case 26:for(re=[],pe=0;pe<Qe.length;pe++)re.push(De(this,Qe[pe]));return Ne.next=30,this._thunkPool(re,_t);case 30:if(le=Ne.sent,Pe=!0,!(le&&le.length>0)){Ne.next=37;break}throw this.resetCancelFlag(),Ue=le[0],Ue.message="Failed to upload some parts with error: "+Ue.toString()+" part_num: "+Ue.partNum,Ue;case 37:if(!this.isCancel()){Ne.next=40;break}throw re=null,this._makeCancelEvent();case 40:return Ne.next=42,this.completeMultipartUpload(ne,Ot,Xt,ft);case 42:return Ne.abrupt("return",Ne.sent);case 43:case"end":return Ne.stop()}},ct,this)}),Lt.file=function(ct){return typeof File!="undefined"&&ct instanceof File},Lt.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},st._getFileSize=Ct.default.mark(function ct(gt){var ft;return Ct.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(!Lt.buffer(gt)){kt.next=4;break}return kt.abrupt("return",gt.length);case 4:if(!Lt.blob(gt)&&!Lt.file(gt)){kt.next=6;break}return kt.abrupt("return",gt.size);case 6:if(!Lt.string(gt)){kt.next=11;break}return kt.next=9,this._statFile(gt);case 9:return ft=kt.sent,kt.abrupt("return",ft.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return kt.stop()}},ct,this)});var rt=xt("stream"),ut=rt.Readable;Ft.inherits(St,ut),St.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var gt=!0;gt&&this.fileBuffer&&this.start<this.fileBuffer.length;){var ft=this.start,kt=ft+ct;kt=kt>this.fileBuffer.length?this.fileBuffer.length:kt,this.start=kt,gt=this.push(this.fileBuffer.slice(ft,kt))}},St.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var gt=this;this.reader.onload=function(ft){gt.fileBuffer=new Rt(new Uint8Array(ft.target.result)),gt.file=null,gt.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},st._createStream=function(ct,gt,ft){if(Lt.blob(ct)||Lt.file(ct))return new St(ct.slice(gt,ft));throw new Error("_createStream requires File/String.")},st._getPartSize=function(ct,gt){return gt?Math.max(Math.ceil(ct/1e4),gt):1048576},st._divideParts=function(ct,gt){for(var ft=Math.ceil(ct/gt),kt=[],jt=0;jt<ft;jt++){var Ht=gt*jt,Ot=Math.min(Ht+gt,ct);kt.push({start:Ht,end:Ot})}return kt},st._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,xt("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(xt,qt,Vt){"use strict";function Rt(gt){return gt&>.__esModule?gt:{default:gt}}var Dt=xt("babel-runtime/core-js/object/keys"),St=Rt(Dt),Et=xt("babel-runtime/regenerator"),Nt=Rt(Et),Pt=xt("debug")("ali-oss:object"),Ct=xt("utility"),Lt=xt("fs"),Ft=xt("is-type-of"),vt=xt("url"),et=xt("copy-to"),tt=xt("path"),st=xt("mime"),rt=xt("../common/callback"),ut=xt("../common/signUtils"),ct=Vt;ct.append=Nt.default.mark(function gt(ft,kt,jt){var Ht;return Nt.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return jt=jt||{},jt.position===void 0&&(jt.position="0"),jt.subres={append:"",position:jt.position},jt.method="POST",Ot.next=6,this.put(ft,kt,jt);case 6:return Ht=Ot.sent,Ht.nextAppendPosition=Ht.res.headers["x-oss-next-append-position"],Ot.abrupt("return",Ht);case 9:case"end":return Ot.stop()}},gt,this)}),ct.put=Nt.default.mark(function gt(ft,kt,jt){var Ht,Ot,te,ne,Xt,ce;return Nt.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(Ht=void 0,jt=jt||{},!Ft.buffer(kt)){me.next=6;break}Ht=kt,me.next=18;break;case 6:if(!Ft.blob(kt)&&!Ft.file(kt)){me.next=17;break}return jt.mime||(Ft.file(kt)?jt.mime=st.getType(tt.extname(kt.name)):jt.mime=kt.type),Ot=this._createStream(kt,0,kt.size),me.next=11,this._getFileSize(kt);case 11:return jt.contentLength=me.sent,me.next=14,this.putStream(ft,Ot,jt);case 14:return me.abrupt("return",me.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return jt.headers=jt.headers||{},this._convertMetaToHeaders(jt.meta,jt.headers),te=jt.method||"PUT",ne=this._objectRequestParams(te,ft,jt),rt.encodeCallback(ne,jt),ne.mime=jt.mime,ne.content=Ht,ne.successStatuses=[200],me.next=28,this.request(ne);case 28:return Xt=me.sent,ce={name:ft,url:this._objectUrl(ft),res:Xt.res},ne.headers&&ne.headers["x-oss-callback"]&&(ce.data=JSON.parse(Xt.data.toString())),me.abrupt("return",ce);case 32:case"end":return me.stop()}},gt,this)}),ct.putStream=Nt.default.mark(function gt(ft,kt,jt){var Ht,Ot,te,ne;return Nt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return jt=jt||{},jt.headers=jt.headers||{},jt.contentLength?jt.headers["Content-Length"]=jt.contentLength:jt.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(jt.meta,jt.headers),Ht=jt.method||"PUT",Ot=this._objectRequestParams(Ht,ft,jt),rt.encodeCallback(Ot,jt),Ot.mime=jt.mime,Ot.stream=kt,Ot.successStatuses=[200],Xt.next=12,this.request(Ot);case 12:return te=Xt.sent,ne={name:ft,url:this._objectUrl(ft),res:te.res},Ot.headers&&Ot.headers["x-oss-callback"]&&(ne.data=JSON.parse(te.data.toString())),Xt.abrupt("return",ne);case 16:case"end":return Xt.stop()}},gt,this)}),ct.head=Nt.default.mark(function gt(ft,kt){var jt,Ht,Ot;return Nt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return jt=this._objectRequestParams("HEAD",ft,kt),jt.successStatuses=[200,304],te.next=4,this.request(jt);case 4:return Ht=te.sent,Ot={meta:null,res:Ht.res,status:Ht.status},Ht.status===200&&(0,St.default)(Ht.headers).forEach(function(ne){ne.indexOf("x-oss-meta-")===0&&(Ot.meta||(Ot.meta={}),Ot.meta[ne.substring(11)]=Ht.headers[ne])}),te.abrupt("return",Ot);case 8:case"end":return te.stop()}},gt,this)}),ct.get=Nt.default.mark(function gt(ft,kt,jt){var Ht,Ot,te,ne;return Nt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Ht=null,Ot=!1,Ft.writableStream(kt)?Ht=kt:Ft.string(kt)?(Ht=Lt.createWriteStream(kt),Ot=!0):jt=kt,jt=jt||{},jt.process&&(jt.subres=jt.subres||{},jt.subres["x-oss-process"]=jt.process),te=void 0,Xt.prev=6,ne=this._objectRequestParams("GET",ft,jt),ne.writeStream=Ht,ne.successStatuses=[200,206,304],Xt.next=12,this.request(ne);case 12:te=Xt.sent,Ot&&Ht.destroy(),Xt.next=24;break;case 16:if(Xt.prev=16,Xt.t0=Xt.catch(6),!Ot){Xt.next=23;break}return Ht.destroy(),Pt("get error: %s, delete the exists file %s",Xt.t0,kt),Xt.next=23,this._deleteFileSafe(kt);case 23:throw Xt.t0;case 24:return Xt.abrupt("return",{res:te.res,content:te.data});case 25:case"end":return Xt.stop()}},gt,this,[[6,16]])}),ct.getStream=Nt.default.mark(function gt(ft,kt){var jt,Ht;return Nt.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return kt=kt||{},jt=this._objectRequestParams("GET",ft,kt),jt.customResponse=!0,jt.successStatuses=[200,206,304],Ot.next=6,this.request(jt);case 6:return Ht=Ot.sent,Ot.abrupt("return",{stream:Ht.res,res:{status:Ht.status,headers:Ht.headers}});case 8:case"end":return Ot.stop()}},gt,this)}),ct.delete=Nt.default.mark(function gt(ft,kt){var jt,Ht;return Nt.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return jt=this._objectRequestParams("DELETE",ft,kt),jt.successStatuses=[204],Ot.next=4,this.request(jt);case 4:return Ht=Ot.sent,Ot.abrupt("return",{res:Ht.res});case 6:case"end":return Ot.stop()}},gt,this)}),ct.deleteMulti=Nt.default.mark(function gt(ft,kt){var jt,Ht,Ot,te,ne,Xt;return Nt.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:for(kt=kt||{},jt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
<Delete>
|
|
`,kt.quiet?jt+=` <Quiet>true</Quiet>
|
|
`:jt+=` <Quiet>false</Quiet>
|
|
`,Ht=0;Ht<ft.length;Ht++)jt+=" <Object><Key>"+Ct.escape(this._objectName(ft[Ht]))+`</Key></Object>
|
|
`;return jt+="</Delete>",Pt("delete multi objects: %s",jt),kt.subres="delete",Ot=this._objectRequestParams("POST","",kt),Ot.mime="xml",Ot.content=jt,Ot.xmlResponse=!0,Ot.successStatuses=[200],ce.next=14,this.request(Ot);case 14:return te=ce.sent,ne=te.data,Xt=ne&&ne.Deleted||null,Xt&&(Array.isArray(Xt)||(Xt=[Xt]),Xt=Xt.map(function(me){return me.Key})),ce.abrupt("return",{res:te.res,deleted:Xt});case 19:case"end":return ce.stop()}},gt,this)}),ct.copy=Nt.default.mark(function gt(ft,kt,jt){var Ht,Ot,te;return Nt.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return jt=jt||{},jt.headers=jt.headers||{},(0,St.default)(jt.headers).forEach(function(Xt){jt.headers["x-oss-copy-source-"+Xt.toLowerCase()]=jt.headers[Xt]}),jt.meta&&(jt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(jt.meta,jt.headers),kt=kt[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(kt):"/"+encodeURIComponent(kt.slice(1)),jt.headers["x-oss-copy-source"]=kt,Ht=this._objectRequestParams("PUT",ft,jt),Ht.xmlResponse=!0,Ht.successStatuses=[200,304],ne.next=12,this.request(Ht);case 12:return Ot=ne.sent,te=Ot.data,te&&(te={etag:te.ETag,lastModified:te.LastModified}),ne.abrupt("return",{data:te,res:Ot.res});case 16:case"end":return ne.stop()}},gt,this)}),ct.putMeta=Nt.default.mark(function gt(ft,kt,jt){return Nt.default.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,this.copy(ft,ft,{meta:kt||{},timeout:jt&&jt.timeout,ctx:jt&&jt.ctx});case 2:return Ht.abrupt("return",Ht.sent);case 3:case"end":return Ht.stop()}},gt,this)}),ct.list=Nt.default.mark(function gt(ft,kt){var jt,Ht,Ot,te,ne;return Nt.default.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return jt=this._objectRequestParams("GET","",kt),jt.query=ft,jt.xmlResponse=!0,jt.successStatuses=[200],Xt.next=6,this.request(jt);case 6:return Ht=Xt.sent,Ot=Ht.data.Contents,te=this,Ot&&(Array.isArray(Ot)||(Ot=[Ot]),Ot=Ot.map(function(ce){return{name:ce.Key,url:te._objectUrl(ce.Key),lastModified:ce.LastModified,etag:ce.ETag,type:ce.Type,size:Number(ce.Size),storageClass:ce.StorageClass,owner:{id:ce.Owner.ID,displayName:ce.Owner.DisplayName}}})),ne=Ht.data.CommonPrefixes||null,ne&&(Array.isArray(ne)||(ne=[ne]),ne=ne.map(function(ce){return ce.Prefix})),Xt.abrupt("return",{res:Ht.res,objects:Ot,prefixes:ne,nextMarker:Ht.data.NextMarker||null,isTruncated:Ht.data.IsTruncated==="true"});case 13:case"end":return Xt.stop()}},gt,this)}),ct.putACL=Nt.default.mark(function gt(ft,kt,jt){var Ht,Ot;return Nt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return jt=jt||{},jt.subres="acl",jt.headers=jt.headers||{},jt.headers["x-oss-object-acl"]=kt,ft=this._objectName(ft),Ht=this._objectRequestParams("PUT",ft,jt),Ht.successStatuses=[200],te.next=9,this.request(Ht);case 9:return Ot=te.sent,te.abrupt("return",{res:Ot.res});case 11:case"end":return te.stop()}},gt,this)}),ct.getACL=Nt.default.mark(function gt(ft,kt){var jt,Ht;return Nt.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return kt=kt||{},kt.subres="acl",ft=this._objectName(ft),jt=this._objectRequestParams("GET",ft,kt),jt.successStatuses=[200],jt.xmlResponse=!0,Ot.next=8,this.request(jt);case 8:return Ht=Ot.sent,Ot.abrupt("return",{acl:Ht.data.AccessControlList.Grant,owner:{id:Ht.data.Owner.ID,displayName:Ht.data.Owner.DisplayName},res:Ht.res});case 10:case"end":return Ot.stop()}},gt,this)}),ct.restore=Nt.default.mark(function gt(ft,kt){var jt,Ht;return Nt.default.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return kt=kt||{},kt.subres="restore",jt=this._objectRequestParams("POST",ft,kt),jt.successStatuses=[202],Ot.next=6,this.request(jt);case 6:return Ht=Ot.sent,Ot.abrupt("return",{res:Ht.res});case 8:case"end":return Ot.stop()}},gt,this)}),ct.signatureUrl=function(gt,ft){ft=ft||{},gt=this._objectName(gt),ft.method=ft.method||"GET";var kt=Ct.timestamp()+(ft.expires||1800),jt={bucket:this.options.bucket,object:gt},Ht=this._getResource(jt);this.options.stsToken&&(ft["security-token"]=this.options.stsToken);var Ot=ut._signatureForURL(this.options.accessKeySecret,ft,Ht,kt),te=vt.parse(this._getReqUrl(jt));return te.query={OSSAccessKeyId:this.options.accessKeyId,Expires:kt,Signature:Ot.Signature},et(Ot.subResource).to(te.query),te.format()},ct.getObjectUrl=function(gt,ft){return ft?ft[ft.length-1]!=="/"&&(ft+="/"):ft=this.options.endpoint.format(),ft+this._escape(this._objectName(gt))},ct._objectUrl=function(gt){return this._getReqUrl({bucket:this.options.bucket,object:gt})},ct.generateObjectUrl=function(gt,ft){if(ft)ft[ft.length-1]!=="/"&&(ft+="/");else{ft=this.options.endpoint.format();var kt=vt.parse(ft),jt=this.options.bucket;kt.hostname=jt+"."+kt.hostname,kt.host=jt+"."+kt.host,ft=kt.format()}return ft+this._escape(this._objectName(gt))},ct._objectRequestParams=function(gt,ft,kt){if(!this.options.bucket)throw new Error("Please create a bucket first");kt=kt||{},ft=this._objectName(ft);var jt={object:ft,bucket:this.options.bucket,method:gt,subres:kt&&kt.subres,timeout:kt&&kt.timeout,ctx:kt&&kt.ctx};return kt.headers&&(jt.headers={},et(kt.headers).to(jt.headers)),jt},ct._objectName=function(gt){return gt.replace(/^\/+/,"")},ct._statFile=function(gt){return function(ft){Lt.stat(gt,ft)}},ct._convertMetaToHeaders=function(gt,ft){gt&&(0,St.default)(gt).forEach(function(kt){ft["x-oss-meta-"+kt]=gt[kt]})},ct._deleteFileSafe=function(gt){return function(ft){Lt.exists(gt,function(kt){kt?Lt.unlink(gt,function(jt){jt&&Pt("unlink %j error: %s",gt,jt),ft()}):ft()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(xt,qt,Vt){"use strict";Vt.version="5.3.1"},{}],6:[function(xt,qt,Vt){"use strict";function Rt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Dt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function St(tt){if(!tt)return!1;var st=tt.constructor;return!!st&&(st.name==="GeneratorFunction"||st.displayName==="GeneratorFunction"||Dt(st.prototype)||Dt(tt.prototype))}function Et(tt,st){var rt=new tt(st),ut=(0,Ft.default)(rt),ct=(0,Ft.default)((0,Ct.default)(rt));ut.concat(ct).forEach(function(gt){St(rt[gt])?this[gt]=vt.wrap(rt[gt]).bind(rt):this[gt]=rt[gt]},this)}function Nt(tt){if(!(this instanceof Nt))return new Nt(tt);Et.call(this,et,tt)}var Pt=xt("babel-runtime/core-js/object/get-prototype-of"),Ct=Rt(Pt),Lt=xt("babel-runtime/core-js/object/keys"),Ft=Rt(Lt),vt=xt("co"),et=xt("./client");qt.exports=Nt,Nt.STS=function tt(st){if(!(this instanceof tt))return new tt(st);Et.call(this,et.STS,st)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}var St=xt("babel-runtime/core-js/object/keys"),Et=Dt(St),Nt=xt("babel-runtime/core-js/json/stringify"),Pt=Dt(Nt);Vt.encodeCallback=function(Ct,Lt){if(Ct.headers=Ct.headers||{},!Object.prototype.hasOwnProperty.call(Ct.headers,"x-oss-callback")&&Lt.callback){var Ft={callbackUrl:encodeURI(Lt.callback.url),callbackBody:Lt.callback.body};Lt.callback.host&&(Ft.callbackHost=Lt.callback.host),Lt.callback.contentType&&(Ft.callbackBodyType=Lt.callback.contentType);var vt=new Rt((0,Pt.default)(Ft)).toString("base64");if(Ct.headers["x-oss-callback"]=vt,Lt.callback.customValue){var et={};(0,Et.default)(Lt.callback.customValue).forEach(function(tt){et["x:"+tt]=Lt.callback.customValue[tt]}),Ct.headers["x-oss-callback-var"]=new Rt((0,Pt.default)(et)).toString("base64")}}}}).call(this,xt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/regenerator"),Dt=function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}(Rt),St=xt("copy-to"),Et=xt("./callback"),Nt=Vt;Nt.listUploads=Dt.default.mark(function Pt(Ct,Lt){var Ft,vt,et,tt;return Dt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Lt=Lt||{},Ft={},St(Lt).to(Ft),Ft.subres="uploads",vt=this._objectRequestParams("GET","",Ft),vt.query=Ct,vt.xmlResponse=!0,vt.successStatuses=[200],st.next=10,this.request(vt);case 10:return et=st.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(rt){return{name:rt.Key,uploadId:rt.UploadId,initiated:rt.Initiated}}),st.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return st.stop()}},Pt,this)}),Nt.listParts=Dt.default.mark(function Pt(Ct,Lt,Ft,vt){var et,tt,st;return Dt.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return vt=vt||{},et={},St(vt).to(et),et.subres={uploadId:Lt},tt=this._objectRequestParams("GET",Ct,et),tt.query=Ft,tt.xmlResponse=!0,tt.successStatuses=[200],rt.next=10,this.request(tt);case 10:return st=rt.sent,rt.abrupt("return",{res:st.res,uploadId:st.data.UploadId,bucket:st.data.Bucket,name:st.data.Key,partNumberMarker:st.data.PartNumberMarker,nextPartNumberMarker:st.data.NextPartNumberMarker,maxParts:st.data.MaxParts,isTruncated:st.data.IsTruncated,parts:st.data.Part||[]});case 12:case"end":return rt.stop()}},Pt,this)}),Nt.abortMultipartUpload=Dt.default.mark(function Pt(Ct,Lt,Ft){var vt,et,tt;return Dt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return this.cancel(),Ft=Ft||{},vt={},St(Ft).to(vt),vt.subres={uploadId:Lt},et=this._objectRequestParams("DELETE",Ct,vt),et.successStatuses=[204],st.next=9,this.request(et);case 9:return tt=st.sent,st.abrupt("return",{res:tt.res});case 11:case"end":return st.stop()}},Pt,this)}),Nt.initMultipartUpload=Dt.default.mark(function Pt(Ct,Lt){var Ft,vt,et;return Dt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return Lt=Lt||{},Ft={},St(Lt).to(Ft),Ft.headers=Ft.headers||{},this._convertMetaToHeaders(Lt.meta,Ft.headers),Ft.subres="uploads",vt=this._objectRequestParams("POST",Ct,Ft),vt.mime=Lt.mime,vt.xmlResponse=!0,vt.successStatuses=[200],tt.next=12,this.request(vt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},Pt,this)}),Nt.uploadPart=Dt.default.mark(function Pt(Ct,Lt,Ft,vt,et,tt,st){var rt;return Dt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return rt={stream:this._createStream(vt,et,tt),size:tt-et},ut.next=3,this._uploadPart(Ct,Lt,Ft,rt,st);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},Pt,this)}),Nt.completeMultipartUpload=Dt.default.mark(function Pt(Ct,Lt,Ft,vt){var et,tt,st,rt,ut,ct,gt,ft;return Dt.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:for(et=Ft.concat().sort(function(jt,Ht){return jt.number-Ht.number}).filter(function(jt,Ht,Ot){return!Ht||jt.number!==Ot[Ht-1].number}),tt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
<CompleteMultipartUpload>
|
|
`,st=0;st<et.length;st++)rt=et[st],tt+=`<Part>
|
|
`,tt+="<PartNumber>"+rt.number+`</PartNumber>
|
|
`,tt+="<ETag>"+rt.etag+`</ETag>
|
|
`,tt+=`</Part>
|
|
`;return tt+="</CompleteMultipartUpload>",vt=vt||{},ut={},St(vt).to(ut),ut.subres={uploadId:Lt},ct=this._objectRequestParams("POST",Ct,ut),Et.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],kt.next=16,this.request(ct);case 16:return gt=kt.sent,ft={res:gt.res,bucket:ct.bucket,name:Ct,etag:gt.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(ft.data=JSON.parse(gt.data.toString())),kt.abrupt("return",ft);case 20:case"end":return kt.stop()}},Pt,this)}),Nt._uploadPart=Dt.default.mark(function Pt(Ct,Lt,Ft,vt,et){var tt,st,rt;return Dt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},St(et).to(tt),tt.headers={"Content-Length":vt.size},tt.subres={partNumber:Ft,uploadId:Lt},st=this._objectRequestParams("PUT",Ct,tt),st.mime=tt.mime,st.stream=vt.stream,st.successStatuses=[200],ut.next=11,this.request(st);case 11:return rt=ut.sent,vt.stream=null,st.stream=null,ut.abrupt("return",{name:Ct,etag:rt.res.headers.etag,res:rt.res});case 15:case"end":return ut.stop()}},Pt,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}var St=xt("babel-runtime/core-js/json/stringify"),Et=Dt(St),Nt=xt("babel-runtime/core-js/object/keys"),Pt=Dt(Nt),Ct=xt("./../../shims/crypto/crypto.js"),Lt=xt("is-type-of");Vt.buildCanonicalizedResource=function(Ft,vt){var et=""+Ft,tt="?";if(Lt.string(vt)&&vt.trim()!=="")et+=tt+vt;else if(Lt.array(vt))vt.sort(),et+=tt+vt.join("&");else if(vt){var st=function(ut,ct){return ut[0]>ct[0]?1:ut[0]<ct[0]?-1:0},rt=function(ut){et+=tt+ut,vt[ut]&&(et+="="+vt[ut]),tt="&"};(0,Pt.default)(vt).sort(st).forEach(rt)}return et},Vt.buildCanonicalString=function(Ft,vt,et,tt){et=et||{};var st=et.headers||{},rt=[],ut={},ct=[Ft.toUpperCase(),st["Content-Md5"]||"",st["Content-Type"]||st["Content-Type".toLowerCase()],tt||st["x-oss-date"]];return(0,Pt.default)(st).forEach(function(gt){var ft=gt.toLowerCase();ft.indexOf("x-oss-")===0&&(ut[ft]=String(st[gt]).trim())}),(0,Pt.default)(ut).sort().forEach(function(gt){rt.push(gt+":"+ut[gt])}),ct=ct.concat(rt),ct.push(this.buildCanonicalizedResource(vt,et.parameters)),ct.join(`
|
|
`)},Vt.computeSignature=function(Ft,vt){return Ct.createHmac("sha1",Ft).update(new Rt(vt,"utf8")).digest("base64")},Vt.authorization=function(Ft,vt,et){return"OSS "+Ft+":"+this.computeSignature(vt,et)},Vt._signatureForURL=function(Ft,vt,et,tt){var st={},rt={};if(vt.process&&(rt["x-oss-process"]=vt.process),vt.response&&(0,Pt.default)(vt.response).forEach(function(ft){var kt="response-"+ft.toLowerCase();rt[kt]=vt.response[ft]}),(0,Pt.default)(vt).forEach(function(ft){var kt=ft.toLowerCase(),jt=vt[ft];kt.indexOf("x-oss-")===0?st[kt]=jt:kt.indexOf("content-md5")===0||kt.indexOf("content-type")===0?st[ft]=jt:kt!=="expires"&&kt!=="response"&&kt!=="process"&&kt!=="method"&&(rt[kt]=jt)}),Object.prototype.hasOwnProperty.call(vt,"security-token")&&(rt["security-token"]=vt["security-token"]),Object.prototype.hasOwnProperty.call(vt,"callback")){var ut={callbackUrl:encodeURI(vt.callback.url),callbackBody:vt.callback.body};if(vt.callback.host&&(ut.callbackHost=vt.callback.host),vt.callback.contentType&&(ut.callbackBodyType=vt.callback.contentType),rt.callback=new Rt((0,Et.default)(ut)).toString("base64"),vt.callback.customValue){var ct={};(0,Pt.default)(vt.callback.customValue).forEach(function(ft){ct["x:"+ft]=vt.callback.customValue[ft]}),rt["callback-var"]=new Rt((0,Et.default)(ct)).toString("base64")}}var gt=this.buildCanonicalString(vt.method,et,{headers:st,parameters:rt},tt.toString());return{Signature:this.computeSignature(Ft,gt),subResource:rt}}}).call(this,xt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/regenerator"),Dt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(Rt),St=xt("co"),Et=xt("co-priority-queue"),Nt=xt("any-promise"),Pt=Vt;Pt._thunkPool=function(Ct,Lt){function Ft(rt,ut){++tt===rt.length&&ut(st)}function vt(rt,ut){function ct(){var Ot;return Dt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:Ot=void 0;case 1:if(et.isCancel()){te.next=9;break}return te.next=4,kt.next();case 4:return Ot=te.sent,te.next=7,Ot();case 7:te.next=1;break;case 9:jt+=1,jt===rt&&(kt.fns=[],kt.buffer=[],ut(st));case 11:case"end":return te.stop()}},ft,this)}function gt(Ot){console.error(Ot.stack)}for(var ft=Dt.default.mark(ct),kt=new Et,jt=0,Ht=0;Ht<rt;Ht++)St(ct).catch(gt);return function(Ot,te){return function(ne){kt.push(Dt.default.mark(function Xt(){return Dt.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.prev=0,ce.t0=ne,ce.next=4,Ot;case 4:ce.t1=ce.sent,(0,ce.t0)(null,ce.t1),ce.next=11;break;case 8:ce.prev=8,ce.t2=ce.catch(0),ne(ce.t2);case 11:case"end":return ce.stop()}},Xt,this,[[0,8]])}),te)}}}var et=this,tt=0,st=[];return new Nt(function(rt){function ut(jt){return Dt.default.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,ft(Ct[jt]);case 2:Ft(Ct,rt);case 3:case"end":return Ht.stop()}},gt,this)}function ct(jt){st.push(jt),Ft(Ct,rt)}for(var gt=Dt.default.mark(ut),ft=new vt(Lt,rt),kt=0;kt<Ct.length;kt++)St(ut(kt)).catch(ct)})},Pt.cancel=function(){this.options.cancelFlag=!0},Pt.isCancel=function(){return this.options.cancelFlag},Pt.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(xt,qt,Vt){"use strict";Vt._isIP=function(Rt){var Dt=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0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))|:)))(%.+)?\s*$/;return Dt.test(Rt)||St.test(Rt)}},{}],12:[function(xt,qt,Vt){function Rt(){}qt.exports=Rt,qt.exports.HttpsAgent=Rt},{}],13:[function(xt,qt,Vt){qt.exports=xt("./register")().Promise},{"./register":15}],14:[function(xt,qt,Vt){"use strict";var Rt=null;qt.exports=function(Dt,St){return function(Et,Nt){Et=Et||null,Nt=Nt||{};var Pt=Nt.global!==!1;if(Rt===null&&Pt&&(Rt=Dt["@@any-promise/REGISTRATION"]||null),Rt!==null&&Et!==null&&Rt.implementation!==Et)throw new Error('any-promise already defined as "'+Rt.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return Rt===null&&(Rt=Et!==null&&Nt.Promise!==void 0?{Promise:Nt.Promise,implementation:Et}:St(Et),Pt&&(Dt["@@any-promise/REGISTRATION"]=Rt)),Rt}}},{}],15:[function(xt,qt,Vt){"use strict";function Rt(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}qt.exports=xt("./loader")(window,Rt)},{"./loader":14}],16:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(xt,qt,Vt){qt.exports={default:xt("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(xt,qt,Vt){"use strict";Vt.__esModule=!0,Vt.default=function(Rt,Dt){if(!(Rt instanceof Dt))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(xt,qt,Vt){"use strict";Vt.__esModule=!0;var Rt=xt("../core-js/object/define-property"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);Vt.default=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),(0,Dt.default)(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}()},{"../core-js/object/define-property":20}],32:[function(xt,qt,Vt){"use strict";function Rt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}Vt.__esModule=!0;var Dt=xt("../core-js/symbol/iterator"),St=Rt(Dt),Et=xt("../core-js/symbol"),Nt=Rt(Et),Pt=typeof Nt.default=="function"&&typeof St.default=="symbol"?function(Ct){return typeof Ct}:function(Ct){return Ct&&typeof Nt.default=="function"&&Ct.constructor===Nt.default&&Ct!==Nt.default.prototype?"symbol":typeof Ct};Vt.default=typeof Nt.default=="function"&&Pt(St.default)==="symbol"?function(Ct){return Ct===void 0?"undefined":Pt(Ct)}:function(Ct){return Ct&&typeof Nt.default=="function"&&Ct.constructor===Nt.default&&Ct!==Nt.default.prototype?"symbol":Ct===void 0?"undefined":Pt(Ct)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(xt,qt,Vt){qt.exports=xt("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(xt,qt,Vt){"use strict";function Rt(rt){var ut=rt.length;if(ut%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=rt.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function Dt(rt){var ut=Rt(rt),ct=ut[0],gt=ut[1];return 3*(ct+gt)/4-gt}function St(rt,ut,ct){return 3*(ut+ct)/4-ct}function Et(rt){for(var ut,ct=Rt(rt),gt=ct[0],ft=ct[1],kt=new vt(St(rt,gt,ft)),jt=0,Ht=ft>0?gt-4:gt,Ot=0;Ot<Ht;Ot+=4)ut=Ft[rt.charCodeAt(Ot)]<<18|Ft[rt.charCodeAt(Ot+1)]<<12|Ft[rt.charCodeAt(Ot+2)]<<6|Ft[rt.charCodeAt(Ot+3)],kt[jt++]=ut>>16&255,kt[jt++]=ut>>8&255,kt[jt++]=255&ut;return ft===2&&(ut=Ft[rt.charCodeAt(Ot)]<<2|Ft[rt.charCodeAt(Ot+1)]>>4,kt[jt++]=255&ut),ft===1&&(ut=Ft[rt.charCodeAt(Ot)]<<10|Ft[rt.charCodeAt(Ot+1)]<<4|Ft[rt.charCodeAt(Ot+2)]>>2,kt[jt++]=ut>>8&255,kt[jt++]=255&ut),kt}function Nt(rt){return Lt[rt>>18&63]+Lt[rt>>12&63]+Lt[rt>>6&63]+Lt[63&rt]}function Pt(rt,ut,ct){for(var gt,ft=[],kt=ut;kt<ct;kt+=3)gt=(rt[kt]<<16&16711680)+(rt[kt+1]<<8&65280)+(255&rt[kt+2]),ft.push(Nt(gt));return ft.join("")}function Ct(rt){for(var ut,ct=rt.length,gt=ct%3,ft=[],kt=0,jt=ct-gt;kt<jt;kt+=16383)ft.push(Pt(rt,kt,kt+16383>jt?jt:kt+16383));return gt===1?(ut=rt[ct-1],ft.push(Lt[ut>>2]+Lt[ut<<4&63]+"==")):gt===2&&(ut=(rt[ct-2]<<8)+rt[ct-1],ft.push(Lt[ut>>10]+Lt[ut>>4&63]+Lt[ut<<2&63]+"=")),ft.join("")}Vt.byteLength=Dt,Vt.toByteArray=Et,Vt.fromByteArray=Ct;for(var Lt=[],Ft=[],vt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt<st;++tt)Lt[tt]=et[tt],Ft[et.charCodeAt(tt)]=tt;Ft[45]=62,Ft[95]=63},{}],35:[function(xt,qt,Vt){(function(Rt,Dt,St){qt!==void 0&&qt.exports?qt.exports=St():typeof Jt=="function"&&Jt.amd?Jt("bowser",St):Rt.bowser=St()})(this,0,function(){function Rt(Ft){function vt(_t){var $t=Ft.match(_t);return $t&&$t.length>1&&$t[1]||""}function et(_t){var $t=Ft.match(_t);return $t&&$t.length>1&&$t[2]||""}var tt,st=vt(/(ipod|iphone|ipad)/i).toLowerCase(),rt=/like android/i.test(Ft),ut=!rt&&/android/i.test(Ft),ct=/nexus\s*[0-6]\s*/i.test(Ft),gt=!ct&&/nexus\s*[0-9]+/i.test(Ft),ft=/CrOS/.test(Ft),kt=/silk/i.test(Ft),jt=/sailfish/i.test(Ft),Ht=/tizen/i.test(Ft),Ot=/(web|hpw)os/i.test(Ft),te=/windows phone/i.test(Ft),ne=(/SamsungBrowser/i.test(Ft),!te&&/windows/i.test(Ft)),Xt=!st&&!kt&&/macintosh/i.test(Ft),ce=!ut&&!jt&&!Ht&&!Ot&&/linux/i.test(Ft),me=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Pe=vt(/version\/(\d+(\.\d+)?)/i),De=/tablet/i.test(Ft)&&!/tablet pc/i.test(Ft),Ve=!De&&/[^-]mobi/i.test(Ft),we=/xbox/i.test(Ft);/opera/i.test(Ft)?tt={name:"Opera",opera:Ct,version:Pe||vt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(Ft)?tt={name:"Opera",opera:Ct,version:vt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Pe}:/SamsungBrowser/i.test(Ft)?tt={name:"Samsung Internet for Android",samsungBrowser:Ct,version:Pe||vt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(Ft)?tt={name:"Opera Coast",coast:Ct,version:Pe||vt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(Ft)?tt={name:"Yandex Browser",yandexbrowser:Ct,version:Pe||vt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(Ft)?tt={name:"UC Browser",ucbrowser:Ct,version:vt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(Ft)?tt={name:"Maxthon",maxthon:Ct,version:vt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(Ft)?tt={name:"Epiphany",epiphany:Ct,version:vt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(Ft)?tt={name:"Puffin",puffin:Ct,version:vt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(Ft)?tt={name:"Sleipnir",sleipnir:Ct,version:vt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(Ft)?tt={name:"K-Meleon",kMeleon:Ct,version:vt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:te?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:Ct},me?(tt.msedge=Ct,tt.version=me):(tt.msie=Ct,tt.version=vt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(Ft)?tt={name:"Internet Explorer",msie:Ct,version:vt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:ft?tt={name:"Chrome",osname:"Chrome OS",chromeos:Ct,chromeBook:Ct,chrome:Ct,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(Ft)?tt={name:"Microsoft Edge",msedge:Ct,version:me}:/vivaldi/i.test(Ft)?tt={name:"Vivaldi",vivaldi:Ct,version:vt(/vivaldi\/(\d+(\.\d+)?)/i)||Pe}:jt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:Ct,version:vt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(Ft)?tt={name:"SeaMonkey",seamonkey:Ct,version:vt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(Ft)?(tt={name:"Firefox",firefox:Ct,version:vt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(Ft)&&(tt.firefoxos=Ct,tt.osname="Firefox OS")):kt?tt={name:"Amazon Silk",silk:Ct,version:vt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(Ft)?tt={name:"PhantomJS",phantom:Ct,version:vt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(Ft)?tt={name:"SlimerJS",slimer:Ct,version:vt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(Ft)||/rim\stablet/i.test(Ft)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Ct,version:Pe||vt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ot?(tt={name:"WebOS",osname:"WebOS",webos:Ct,version:Pe||vt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(Ft)&&(tt.touchpad=Ct)):/bada/i.test(Ft)?tt={name:"Bada",osname:"Bada",bada:Ct,version:vt(/dolfin\/(\d+(\.\d+)?)/i)}:Ht?tt={name:"Tizen",osname:"Tizen",tizen:Ct,version:vt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Pe}:/qupzilla/i.test(Ft)?tt={name:"QupZilla",qupzilla:Ct,version:vt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Pe}:/chromium/i.test(Ft)?tt={name:"Chromium",chromium:Ct,version:vt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Pe}:/chrome|crios|crmo/i.test(Ft)?tt={name:"Chrome",chrome:Ct,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:Pe}:/safari|applewebkit/i.test(Ft)?(tt={name:"Safari",safari:Ct},Pe&&(tt.version=Pe)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},Pe&&(tt.version=Pe)):tt=/googlebot/i.test(Ft)?{name:"Googlebot",googlebot:Ct,version:vt(/googlebot\/(\d+(\.\d+))/i)||Pe}:{name:vt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(Ft)?(/(apple)?webkit\/537\.36/i.test(Ft)?(tt.name=tt.name||"Blink",tt.blink=Ct):(tt.name=tt.name||"Webkit",tt.webkit=Ct),!tt.version&&Pe&&(tt.version=Pe)):!tt.opera&&/gecko\//i.test(Ft)&&(tt.name=tt.name||"Gecko",tt.gecko=Ct,tt.version=tt.version||vt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&&st?(tt[st]=Ct,tt.ios=Ct,tt.osname="iOS"):Xt?(tt.mac=Ct,tt.osname="macOS"):we?(tt.xbox=Ct,tt.osname="Xbox"):ne?(tt.windows=Ct,tt.osname="Windows"):ce&&(tt.linux=Ct,tt.osname="Linux"):(tt.android=Ct,tt.osname="Android");var Qe="";tt.windows?Qe=function(_t){switch(_t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(vt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?Qe=vt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(Qe=vt(/Mac OS X (\d+([_\.\s]\d+)*)/i),Qe=Qe.replace(/[_\s]/g,".")):st?(Qe=vt(/os (\d+([_\s]\d+)*) like mac os x/i),Qe=Qe.replace(/[_\s]/g,".")):ut?Qe=vt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?Qe=vt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?Qe=vt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?Qe=vt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(Qe=vt(/tizen[\/\s](\d+(\.\d+)*)/i)),Qe&&(tt.osversion=Qe);var ae=!tt.windows&&Qe.split(".")[0];return De||gt||st=="ipad"||ut&&(ae==3||ae>=4&&!Ve)||tt.silk?tt.tablet=Ct:(Ve||st=="iphone"||st=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=Ct),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=Ct:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=Ct:tt.x=Ct,tt}function Dt(Ft){return Ft.split(".").length}function St(Ft,vt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(Ft,vt);for(et=0;et<Ft.length;et++)tt.push(vt(Ft[et]));return tt}function Et(Ft){for(var vt=Math.max(Dt(Ft[0]),Dt(Ft[1])),et=St(Ft,function(tt){var st=vt-Dt(tt);return tt+=new Array(st+1).join(".0"),St(tt.split("."),function(rt){return new Array(20-rt.length).join("0")+rt}).reverse()});--vt>=0;){if(et[0][vt]>et[1][vt])return 1;if(et[0][vt]!==et[1][vt])return-1;if(vt===0)return 0}}function Nt(Ft,vt,et){var tt=Lt;typeof vt=="string"&&(et=vt,vt=void 0),vt===void 0&&(vt=!1),et&&(tt=Rt(et));var st=""+tt.version;for(var rt in Ft)if(Ft.hasOwnProperty(rt)&&tt[rt]){if(typeof Ft[rt]!="string")throw new Error("Browser version in the minVersion map should be a string: "+rt+": "+String(Ft));return Et([st,Ft[rt]])<0}return vt}function Pt(Ft,vt,et){return!Nt(Ft,vt,et)}var Ct=!0,Lt=Rt(typeof navigator!="undefined"&&navigator.userAgent||"");return Lt.test=function(Ft){for(var vt=0;vt<Ft.length;++vt){var et=Ft[vt];if(typeof et=="string"&&et in Lt)return!0}return!1},Lt.isUnsupportedBrowser=Nt,Lt.compareVersions=Et,Lt.check=Pt,Lt._detect=Rt,Lt.detect=Rt,Lt})},{}],36:[function(xt,qt,Vt){},{}],37:[function(xt,qt,Vt){function Rt(Lt){if(Lt&&!Pt(Lt))throw new Error("Unknown encoding: "+Lt)}function Dt(Lt){return Lt.toString(this.encoding)}function St(Lt){this.charReceived=Lt.length%2,this.charLength=this.charReceived?2:0}function Et(Lt){this.charReceived=Lt.length%3,this.charLength=this.charReceived?3:0}var Nt=xt("buffer").Buffer,Pt=Nt.isEncoding||function(Lt){switch(Lt&&Lt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},Ct=Vt.StringDecoder=function(Lt){switch(this.encoding=(Lt||"utf8").toLowerCase().replace(/[-_]/,""),Rt(Lt),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=St;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Et;break;default:return void(this.write=Dt)}this.charBuffer=new Nt(6),this.charReceived=0,this.charLength=0};Ct.prototype.write=function(Lt){for(var Ft="";this.charLength;){var vt=Lt.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:Lt.length;if(Lt.copy(this.charBuffer,this.charReceived,0,vt),this.charReceived+=vt,this.charReceived<this.charLength)return"";Lt=Lt.slice(vt,Lt.length),Ft=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var tt=Ft.charCodeAt(Ft.length-1);if(!(tt>=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,Lt.length===0)return Ft;break}this.charLength+=this.surrogateSize,Ft=""}this.detectIncompleteChar(Lt);var et=Lt.length;this.charLength&&(Lt.copy(this.charBuffer,0,Lt.length-this.charReceived,et),et-=this.charReceived),Ft+=Lt.toString(this.encoding,0,et);var et=Ft.length-1,tt=Ft.charCodeAt(et);if(tt>=55296&&tt<=56319){var st=this.surrogateSize;return this.charLength+=st,this.charReceived+=st,this.charBuffer.copy(this.charBuffer,st,0,st),Lt.copy(this.charBuffer,0,0,st),Ft.substring(0,et)}return Ft},Ct.prototype.detectIncompleteChar=function(Lt){for(var Ft=Lt.length>=3?3:Lt.length;Ft>0;Ft--){var vt=Lt[Lt.length-Ft];if(Ft==1&&vt>>5==6){this.charLength=2;break}if(Ft<=2&&vt>>4==14){this.charLength=3;break}if(Ft<=3&&vt>>3==30){this.charLength=4;break}}this.charReceived=Ft},Ct.prototype.end=function(Lt){var Ft="";if(Lt&&Lt.length&&(Ft=this.write(Lt)),this.charReceived){var vt=this.charReceived,et=this.charBuffer,tt=this.encoding;Ft+=et.slice(0,vt).toString(tt)}return Ft}},{buffer:38}],38:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(){return Et.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function St(bt,Bt){if(Dt()<Bt)throw new RangeError("Invalid typed array length");return Et.TYPED_ARRAY_SUPPORT?(bt=new Uint8Array(Bt),bt.__proto__=Et.prototype):(bt===null&&(bt=new Et(Bt)),bt.length=Bt),bt}function Et(bt,Bt,ie){if(!(Et.TYPED_ARRAY_SUPPORT||this instanceof Et))return new Et(bt,Bt,ie);if(typeof bt=="number"){if(typeof Bt=="string")throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,bt)}return Nt(this,bt,Bt,ie)}function Nt(bt,Bt,ie,Wt){if(typeof Bt=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Bt instanceof ArrayBuffer?et(bt,Bt,ie,Wt):typeof Bt=="string"?Ft(bt,Bt,ie):tt(bt,Bt)}function Pt(bt){if(typeof bt!="number")throw new TypeError('"size" argument must be a number');if(bt<0)throw new RangeError('"size" argument must not be negative')}function Ct(bt,Bt,ie,Wt){return Pt(Bt),Bt<=0?St(bt,Bt):ie!==void 0?typeof Wt=="string"?St(bt,Bt).fill(ie,Wt):St(bt,Bt).fill(ie):St(bt,Bt)}function Lt(bt,Bt){if(Pt(Bt),bt=St(bt,Bt<0?0:0|st(Bt)),!Et.TYPED_ARRAY_SUPPORT)for(var ie=0;ie<Bt;++ie)bt[ie]=0;return bt}function Ft(bt,Bt,ie){if(typeof ie=="string"&&ie!==""||(ie="utf8"),!Et.isEncoding(ie))throw new TypeError('"encoding" must be a valid string encoding');var Wt=0|ut(Bt,ie);bt=St(bt,Wt);var Zt=bt.write(Bt,ie);return Zt!==Wt&&(bt=bt.slice(0,Zt)),bt}function vt(bt,Bt){var ie=Bt.length<0?0:0|st(Bt.length);bt=St(bt,ie);for(var Wt=0;Wt<ie;Wt+=1)bt[Wt]=255&Bt[Wt];return bt}function et(bt,Bt,ie,Wt){if(Bt.byteLength,ie<0||Bt.byteLength<ie)throw new RangeError("'offset' is out of bounds");if(Bt.byteLength<ie+(Wt||0))throw new RangeError("'length' is out of bounds");return Bt=ie===void 0&&Wt===void 0?new Uint8Array(Bt):Wt===void 0?new Uint8Array(Bt,ie):new Uint8Array(Bt,ie,Wt),Et.TYPED_ARRAY_SUPPORT?(bt=Bt,bt.__proto__=Et.prototype):bt=vt(bt,Bt),bt}function tt(bt,Bt){if(Et.isBuffer(Bt)){var ie=0|st(Bt.length);return bt=St(bt,ie),bt.length===0||Bt.copy(bt,0,0,ie),bt}if(Bt){if(typeof ArrayBuffer!="undefined"&&Bt.buffer instanceof ArrayBuffer||"length"in Bt)return typeof Bt.length!="number"||Mt(Bt.length)?St(bt,0):vt(bt,Bt);if(Bt.type==="Buffer"&&se(Bt.data))return vt(bt,Bt.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function st(bt){if(bt>=Dt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Dt().toString(16)+" bytes");return 0|bt}function rt(bt){return+bt!=bt&&(bt=0),Et.alloc(+bt)}function ut(bt,Bt){if(Et.isBuffer(bt))return bt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(bt)||bt instanceof ArrayBuffer))return bt.byteLength;typeof bt!="string"&&(bt=""+bt);var ie=bt.length;if(ie===0)return 0;for(var Wt=!1;;)switch(Bt){case"ascii":case"latin1":case"binary":return ie;case"utf8":case"utf-8":case void 0:return xe(bt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ie;case"hex":return ie>>>1;case"base64":return Ae(bt).length;default:if(Wt)return xe(bt).length;Bt=(""+Bt).toLowerCase(),Wt=!0}}function ct(bt,Bt,ie){var Wt=!1;if((Bt===void 0||Bt<0)&&(Bt=0),Bt>this.length||((ie===void 0||ie>this.length)&&(ie=this.length),ie<=0)||(ie>>>=0,Bt>>>=0,ie<=Bt))return"";for(bt||(bt="utf8");;)switch(bt){case"hex":return we(this,Bt,ie);case"utf8":case"utf-8":return me(this,Bt,ie);case"ascii":return De(this,Bt,ie);case"latin1":case"binary":return Ve(this,Bt,ie);case"base64":return ce(this,Bt,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,Bt,ie);default:if(Wt)throw new TypeError("Unknown encoding: "+bt);bt=(bt+"").toLowerCase(),Wt=!0}}function gt(bt,Bt,ie){var Wt=bt[Bt];bt[Bt]=bt[ie],bt[ie]=Wt}function ft(bt,Bt,ie,Wt,Zt){if(bt.length===0)return-1;if(typeof ie=="string"?(Wt=ie,ie=0):ie>2147483647?ie=2147483647:ie<-2147483648&&(ie=-2147483648),ie=+ie,isNaN(ie)&&(ie=Zt?0:bt.length-1),ie<0&&(ie=bt.length+ie),ie>=bt.length){if(Zt)return-1;ie=bt.length-1}else if(ie<0){if(!Zt)return-1;ie=0}if(typeof Bt=="string"&&(Bt=Et.from(Bt,Wt)),Et.isBuffer(Bt))return Bt.length===0?-1:kt(bt,Bt,ie,Wt,Zt);if(typeof Bt=="number")return Bt&=255,Et.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Zt?Uint8Array.prototype.indexOf.call(bt,Bt,ie):Uint8Array.prototype.lastIndexOf.call(bt,Bt,ie):kt(bt,[Bt],ie,Wt,Zt);throw new TypeError("val must be string, number or Buffer")}function kt(bt,Bt,ie,Wt,Zt){function fe(un,si){return ke===1?un[si]:un.readUInt16BE(si*ke)}var ke=1,tn=bt.length,dn=Bt.length;if(Wt!==void 0&&((Wt=String(Wt).toLowerCase())==="ucs2"||Wt==="ucs-2"||Wt==="utf16le"||Wt==="utf-16le")){if(bt.length<2||Bt.length<2)return-1;ke=2,tn/=2,dn/=2,ie/=2}var ln;if(Zt){var Bn=-1;for(ln=ie;ln<tn;ln++)if(fe(bt,ln)===fe(Bt,Bn===-1?0:ln-Bn)){if(Bn===-1&&(Bn=ln),ln-Bn+1===dn)return Bn*ke}else Bn!==-1&&(ln-=ln-Bn),Bn=-1}else for(ie+dn>tn&&(ie=tn-dn),ln=ie;ln>=0;ln--){for(var Vn=!0,Tn=0;Tn<dn;Tn++)if(fe(bt,ln+Tn)!==fe(Bt,Tn)){Vn=!1;break}if(Vn)return ln}return-1}function jt(bt,Bt,ie,Wt){ie=Number(ie)||0;var Zt=bt.length-ie;Wt?(Wt=Number(Wt))>Zt&&(Wt=Zt):Wt=Zt;var fe=Bt.length;if(fe%2!=0)throw new TypeError("Invalid hex string");Wt>fe/2&&(Wt=fe/2);for(var ke=0;ke<Wt;++ke){var tn=parseInt(Bt.substr(2*ke,2),16);if(isNaN(tn))return ke;bt[ie+ke]=tn}return ke}function Ht(bt,Bt,ie,Wt){return oe(xe(Bt,bt.length-ie),bt,ie,Wt)}function Ot(bt,Bt,ie,Wt){return oe(_e(Bt),bt,ie,Wt)}function te(bt,Bt,ie,Wt){return Ot(bt,Bt,ie,Wt)}function ne(bt,Bt,ie,Wt){return oe(Ae(Bt),bt,ie,Wt)}function Xt(bt,Bt,ie,Wt){return oe(Fe(Bt,bt.length-ie),bt,ie,Wt)}function ce(bt,Bt,ie){return Bt===0&&ie===bt.length?At.fromByteArray(bt):At.fromByteArray(bt.slice(Bt,ie))}function me(bt,Bt,ie){ie=Math.min(bt.length,ie);for(var Wt=[],Zt=Bt;Zt<ie;){var fe=bt[Zt],ke=null,tn=fe>239?4:fe>223?3:fe>191?2:1;if(Zt+tn<=ie){var dn,ln,Bn,Vn;switch(tn){case 1:fe<128&&(ke=fe);break;case 2:dn=bt[Zt+1],(192&dn)==128&&(Vn=(31&fe)<<6|63&dn)>127&&(ke=Vn);break;case 3:dn=bt[Zt+1],ln=bt[Zt+2],(192&dn)==128&&(192&ln)==128&&(Vn=(15&fe)<<12|(63&dn)<<6|63&ln)>2047&&(Vn<55296||Vn>57343)&&(ke=Vn);break;case 4:dn=bt[Zt+1],ln=bt[Zt+2],Bn=bt[Zt+3],(192&dn)==128&&(192&ln)==128&&(192&Bn)==128&&(Vn=(15&fe)<<18|(63&dn)<<12|(63&ln)<<6|63&Bn)>65535&&Vn<1114112&&(ke=Vn)}}ke===null?(ke=65533,tn=1):ke>65535&&(ke-=65536,Wt.push(ke>>>10&1023|55296),ke=56320|1023&ke),Wt.push(ke),Zt+=tn}return Pe(Wt)}function Pe(bt){var Bt=bt.length;if(Bt<=Kt)return String.fromCharCode.apply(String,bt);for(var ie="",Wt=0;Wt<Bt;)ie+=String.fromCharCode.apply(String,bt.slice(Wt,Wt+=Kt));return ie}function De(bt,Bt,ie){var Wt="";ie=Math.min(bt.length,ie);for(var Zt=Bt;Zt<ie;++Zt)Wt+=String.fromCharCode(127&bt[Zt]);return Wt}function Ve(bt,Bt,ie){var Wt="";ie=Math.min(bt.length,ie);for(var Zt=Bt;Zt<ie;++Zt)Wt+=String.fromCharCode(bt[Zt]);return Wt}function we(bt,Bt,ie){var Wt=bt.length;(!Bt||Bt<0)&&(Bt=0),(!ie||ie<0||ie>Wt)&&(ie=Wt);for(var Zt="",fe=Bt;fe<ie;++fe)Zt+=Le(bt[fe]);return Zt}function Qe(bt,Bt,ie){for(var Wt=bt.slice(Bt,ie),Zt="",fe=0;fe<Wt.length;fe+=2)Zt+=String.fromCharCode(Wt[fe]+256*Wt[fe+1]);return Zt}function ae(bt,Bt,ie){if(bt%1!=0||bt<0)throw new RangeError("offset is not uint");if(bt+Bt>ie)throw new RangeError("Trying to access beyond buffer length")}function _t(bt,Bt,ie,Wt,Zt,fe){if(!Et.isBuffer(bt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Bt>Zt||Bt<fe)throw new RangeError('"value" argument is out of bounds');if(ie+Wt>bt.length)throw new RangeError("Index out of range")}function $t(bt,Bt,ie,Wt){Bt<0&&(Bt=65535+Bt+1);for(var Zt=0,fe=Math.min(bt.length-ie,2);Zt<fe;++Zt)bt[ie+Zt]=(Bt&255<<8*(Wt?Zt:1-Zt))>>>8*(Wt?Zt:1-Zt)}function re(bt,Bt,ie,Wt){Bt<0&&(Bt=4294967295+Bt+1);for(var Zt=0,fe=Math.min(bt.length-ie,4);Zt<fe;++Zt)bt[ie+Zt]=Bt>>>8*(Wt?Zt:3-Zt)&255}function pe(bt,Bt,ie,Wt,Zt,fe){if(ie+Wt>bt.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("Index out of range")}function le(bt,Bt,ie,Wt,Zt){return Zt||pe(bt,Bt,ie,4,34028234663852886e22,-34028234663852886e22),Qt.write(bt,Bt,ie,Wt,23,4),ie+4}function Ue(bt,Bt,ie,Wt,Zt){return Zt||pe(bt,Bt,ie,8,17976931348623157e292,-17976931348623157e292),Qt.write(bt,Bt,ie,Wt,52,8),ie+8}function Ne(bt){if(bt=Xe(bt).replace(It,""),bt.length<2)return"";for(;bt.length%4!=0;)bt+="=";return bt}function Xe(bt){return bt.trim?bt.trim():bt.replace(/^\s+|\s+$/g,"")}function Le(bt){return bt<16?"0"+bt.toString(16):bt.toString(16)}function xe(bt,Bt){Bt=Bt||1/0;for(var ie,Wt=bt.length,Zt=null,fe=[],ke=0;ke<Wt;++ke){if((ie=bt.charCodeAt(ke))>55295&&ie<57344){if(!Zt){if(ie>56319){(Bt-=3)>-1&&fe.push(239,191,189);continue}if(ke+1===Wt){(Bt-=3)>-1&&fe.push(239,191,189);continue}Zt=ie;continue}if(ie<56320){(Bt-=3)>-1&&fe.push(239,191,189),Zt=ie;continue}ie=65536+(Zt-55296<<10|ie-56320)}else Zt&&(Bt-=3)>-1&&fe.push(239,191,189);if(Zt=null,ie<128){if((Bt-=1)<0)break;fe.push(ie)}else if(ie<2048){if((Bt-=2)<0)break;fe.push(ie>>6|192,63&ie|128)}else if(ie<65536){if((Bt-=3)<0)break;fe.push(ie>>12|224,ie>>6&63|128,63&ie|128)}else{if(!(ie<1114112))throw new Error("Invalid code point");if((Bt-=4)<0)break;fe.push(ie>>18|240,ie>>12&63|128,ie>>6&63|128,63&ie|128)}}return fe}function _e(bt){for(var Bt=[],ie=0;ie<bt.length;++ie)Bt.push(255&bt.charCodeAt(ie));return Bt}function Fe(bt,Bt){for(var ie,Wt,Zt,fe=[],ke=0;ke<bt.length&&!((Bt-=2)<0);++ke)ie=bt.charCodeAt(ke),Wt=ie>>8,Zt=ie%256,fe.push(Zt),fe.push(Wt);return fe}function Ae(bt){return At.toByteArray(Ne(bt))}function oe(bt,Bt,ie,Wt){for(var Zt=0;Zt<Wt&&!(Zt+ie>=Bt.length||Zt>=bt.length);++Zt)Bt[Zt+ie]=bt[Zt];return Zt}function Mt(bt){return bt!==bt}var At=xt("base64-js"),Qt=xt("ieee754"),se=xt("isarray");Vt.Buffer=Et,Vt.SlowBuffer=rt,Vt.INSPECT_MAX_BYTES=50,Et.TYPED_ARRAY_SUPPORT=Rt.TYPED_ARRAY_SUPPORT!==void 0?Rt.TYPED_ARRAY_SUPPORT:function(){try{var bt=new Uint8Array(1);return bt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},bt.foo()===42&&typeof bt.subarray=="function"&&bt.subarray(1,1).byteLength===0}catch(Bt){return!1}}(),Vt.kMaxLength=Dt(),Et.poolSize=8192,Et._augment=function(bt){return bt.__proto__=Et.prototype,bt},Et.from=function(bt,Bt,ie){return Nt(null,bt,Bt,ie)},Et.TYPED_ARRAY_SUPPORT&&(Et.prototype.__proto__=Uint8Array.prototype,Et.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Et[Symbol.species]===Et&&Object.defineProperty(Et,Symbol.species,{value:null,configurable:!0})),Et.alloc=function(bt,Bt,ie){return Ct(null,bt,Bt,ie)},Et.allocUnsafe=function(bt){return Lt(null,bt)},Et.allocUnsafeSlow=function(bt){return Lt(null,bt)},Et.isBuffer=function(bt){return!(bt==null||!bt._isBuffer)},Et.compare=function(bt,Bt){if(!Et.isBuffer(bt)||!Et.isBuffer(Bt))throw new TypeError("Arguments must be Buffers");if(bt===Bt)return 0;for(var ie=bt.length,Wt=Bt.length,Zt=0,fe=Math.min(ie,Wt);Zt<fe;++Zt)if(bt[Zt]!==Bt[Zt]){ie=bt[Zt],Wt=Bt[Zt];break}return ie<Wt?-1:Wt<ie?1:0},Et.isEncoding=function(bt){switch(String(bt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Et.concat=function(bt,Bt){if(!se(bt))throw new TypeError('"list" argument must be an Array of Buffers');if(bt.length===0)return Et.alloc(0);var ie;if(Bt===void 0)for(Bt=0,ie=0;ie<bt.length;++ie)Bt+=bt[ie].length;var Wt=Et.allocUnsafe(Bt),Zt=0;for(ie=0;ie<bt.length;++ie){var fe=bt[ie];if(!Et.isBuffer(fe))throw new TypeError('"list" argument must be an Array of Buffers');fe.copy(Wt,Zt),Zt+=fe.length}return Wt},Et.byteLength=ut,Et.prototype._isBuffer=!0,Et.prototype.swap16=function(){var bt=this.length;if(bt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Bt=0;Bt<bt;Bt+=2)gt(this,Bt,Bt+1);return this},Et.prototype.swap32=function(){var bt=this.length;if(bt%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Bt=0;Bt<bt;Bt+=4)gt(this,Bt,Bt+3),gt(this,Bt+1,Bt+2);return this},Et.prototype.swap64=function(){var bt=this.length;if(bt%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Bt=0;Bt<bt;Bt+=8)gt(this,Bt,Bt+7),gt(this,Bt+1,Bt+6),gt(this,Bt+2,Bt+5),gt(this,Bt+3,Bt+4);return this},Et.prototype.toString=function(){var bt=0|this.length;return bt===0?"":arguments.length===0?me(this,0,bt):ct.apply(this,arguments)},Et.prototype.equals=function(bt){if(!Et.isBuffer(bt))throw new TypeError("Argument must be a Buffer");return this===bt||Et.compare(this,bt)===0},Et.prototype.inspect=function(){var bt="",Bt=Vt.INSPECT_MAX_BYTES;return this.length>0&&(bt=this.toString("hex",0,Bt).match(/.{2}/g).join(" "),this.length>Bt&&(bt+=" ... ")),"<Buffer "+bt+">"},Et.prototype.compare=function(bt,Bt,ie,Wt,Zt){if(!Et.isBuffer(bt))throw new TypeError("Argument must be a Buffer");if(Bt===void 0&&(Bt=0),ie===void 0&&(ie=bt?bt.length:0),Wt===void 0&&(Wt=0),Zt===void 0&&(Zt=this.length),Bt<0||ie>bt.length||Wt<0||Zt>this.length)throw new RangeError("out of range index");if(Wt>=Zt&&Bt>=ie)return 0;if(Wt>=Zt)return-1;if(Bt>=ie)return 1;if(Bt>>>=0,ie>>>=0,Wt>>>=0,Zt>>>=0,this===bt)return 0;for(var fe=Zt-Wt,ke=ie-Bt,tn=Math.min(fe,ke),dn=this.slice(Wt,Zt),ln=bt.slice(Bt,ie),Bn=0;Bn<tn;++Bn)if(dn[Bn]!==ln[Bn]){fe=dn[Bn],ke=ln[Bn];break}return fe<ke?-1:ke<fe?1:0},Et.prototype.includes=function(bt,Bt,ie){return this.indexOf(bt,Bt,ie)!==-1},Et.prototype.indexOf=function(bt,Bt,ie){return ft(this,bt,Bt,ie,!0)},Et.prototype.lastIndexOf=function(bt,Bt,ie){return ft(this,bt,Bt,ie,!1)},Et.prototype.write=function(bt,Bt,ie,Wt){if(Bt===void 0)Wt="utf8",ie=this.length,Bt=0;else if(ie===void 0&&typeof Bt=="string")Wt=Bt,ie=this.length,Bt=0;else{if(!isFinite(Bt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Bt|=0,isFinite(ie)?(ie|=0,Wt===void 0&&(Wt="utf8")):(Wt=ie,ie=void 0)}var Zt=this.length-Bt;if((ie===void 0||ie>Zt)&&(ie=Zt),bt.length>0&&(ie<0||Bt<0)||Bt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");for(var fe=!1;;)switch(Wt){case"hex":return jt(this,bt,Bt,ie);case"utf8":case"utf-8":return Ht(this,bt,Bt,ie);case"ascii":return Ot(this,bt,Bt,ie);case"latin1":case"binary":return te(this,bt,Bt,ie);case"base64":return ne(this,bt,Bt,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,bt,Bt,ie);default:if(fe)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),fe=!0}},Et.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Kt=4096;Et.prototype.slice=function(bt,Bt){var ie=this.length;bt=~~bt,Bt=Bt===void 0?ie:~~Bt,bt<0?(bt+=ie)<0&&(bt=0):bt>ie&&(bt=ie),Bt<0?(Bt+=ie)<0&&(Bt=0):Bt>ie&&(Bt=ie),Bt<bt&&(Bt=bt);var Wt;if(Et.TYPED_ARRAY_SUPPORT)Wt=this.subarray(bt,Bt),Wt.__proto__=Et.prototype;else{var Zt=Bt-bt;Wt=new Et(Zt,void 0);for(var fe=0;fe<Zt;++fe)Wt[fe]=this[fe+bt]}return Wt},Et.prototype.readUIntLE=function(bt,Bt,ie){bt|=0,Bt|=0,ie||ae(bt,Bt,this.length);for(var Wt=this[bt],Zt=1,fe=0;++fe<Bt&&(Zt*=256);)Wt+=this[bt+fe]*Zt;return Wt},Et.prototype.readUIntBE=function(bt,Bt,ie){bt|=0,Bt|=0,ie||ae(bt,Bt,this.length);for(var Wt=this[bt+--Bt],Zt=1;Bt>0&&(Zt*=256);)Wt+=this[bt+--Bt]*Zt;return Wt},Et.prototype.readUInt8=function(bt,Bt){return Bt||ae(bt,1,this.length),this[bt]},Et.prototype.readUInt16LE=function(bt,Bt){return Bt||ae(bt,2,this.length),this[bt]|this[bt+1]<<8},Et.prototype.readUInt16BE=function(bt,Bt){return Bt||ae(bt,2,this.length),this[bt]<<8|this[bt+1]},Et.prototype.readUInt32LE=function(bt,Bt){return Bt||ae(bt,4,this.length),(this[bt]|this[bt+1]<<8|this[bt+2]<<16)+16777216*this[bt+3]},Et.prototype.readUInt32BE=function(bt,Bt){return Bt||ae(bt,4,this.length),16777216*this[bt]+(this[bt+1]<<16|this[bt+2]<<8|this[bt+3])},Et.prototype.readIntLE=function(bt,Bt,ie){bt|=0,Bt|=0,ie||ae(bt,Bt,this.length);for(var Wt=this[bt],Zt=1,fe=0;++fe<Bt&&(Zt*=256);)Wt+=this[bt+fe]*Zt;return Zt*=128,Wt>=Zt&&(Wt-=Math.pow(2,8*Bt)),Wt},Et.prototype.readIntBE=function(bt,Bt,ie){bt|=0,Bt|=0,ie||ae(bt,Bt,this.length);for(var Wt=Bt,Zt=1,fe=this[bt+--Wt];Wt>0&&(Zt*=256);)fe+=this[bt+--Wt]*Zt;return Zt*=128,fe>=Zt&&(fe-=Math.pow(2,8*Bt)),fe},Et.prototype.readInt8=function(bt,Bt){return Bt||ae(bt,1,this.length),128&this[bt]?-1*(255-this[bt]+1):this[bt]},Et.prototype.readInt16LE=function(bt,Bt){Bt||ae(bt,2,this.length);var ie=this[bt]|this[bt+1]<<8;return 32768&ie?4294901760|ie:ie},Et.prototype.readInt16BE=function(bt,Bt){Bt||ae(bt,2,this.length);var ie=this[bt+1]|this[bt]<<8;return 32768&ie?4294901760|ie:ie},Et.prototype.readInt32LE=function(bt,Bt){return Bt||ae(bt,4,this.length),this[bt]|this[bt+1]<<8|this[bt+2]<<16|this[bt+3]<<24},Et.prototype.readInt32BE=function(bt,Bt){return Bt||ae(bt,4,this.length),this[bt]<<24|this[bt+1]<<16|this[bt+2]<<8|this[bt+3]},Et.prototype.readFloatLE=function(bt,Bt){return Bt||ae(bt,4,this.length),Qt.read(this,bt,!0,23,4)},Et.prototype.readFloatBE=function(bt,Bt){return Bt||ae(bt,4,this.length),Qt.read(this,bt,!1,23,4)},Et.prototype.readDoubleLE=function(bt,Bt){return Bt||ae(bt,8,this.length),Qt.read(this,bt,!0,52,8)},Et.prototype.readDoubleBE=function(bt,Bt){return Bt||ae(bt,8,this.length),Qt.read(this,bt,!1,52,8)},Et.prototype.writeUIntLE=function(bt,Bt,ie,Wt){bt=+bt,Bt|=0,ie|=0,!Wt&&_t(this,bt,Bt,ie,Math.pow(2,8*ie)-1,0);var Zt=1,fe=0;for(this[Bt]=255&bt;++fe<ie&&(Zt*=256);)this[Bt+fe]=bt/Zt&255;return Bt+ie},Et.prototype.writeUIntBE=function(bt,Bt,ie,Wt){bt=+bt,Bt|=0,ie|=0,!Wt&&_t(this,bt,Bt,ie,Math.pow(2,8*ie)-1,0);var Zt=ie-1,fe=1;for(this[Bt+Zt]=255&bt;--Zt>=0&&(fe*=256);)this[Bt+Zt]=bt/fe&255;return Bt+ie},Et.prototype.writeUInt8=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,1,255,0),Et.TYPED_ARRAY_SUPPORT||(bt=Math.floor(bt)),this[Bt]=255&bt,Bt+1},Et.prototype.writeUInt16LE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,2,65535,0),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=255&bt,this[Bt+1]=bt>>>8):$t(this,bt,Bt,!0),Bt+2},Et.prototype.writeUInt16BE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,2,65535,0),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=bt>>>8,this[Bt+1]=255&bt):$t(this,bt,Bt,!1),Bt+2},Et.prototype.writeUInt32LE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,4,4294967295,0),Et.TYPED_ARRAY_SUPPORT?(this[Bt+3]=bt>>>24,this[Bt+2]=bt>>>16,this[Bt+1]=bt>>>8,this[Bt]=255&bt):re(this,bt,Bt,!0),Bt+4},Et.prototype.writeUInt32BE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,4,4294967295,0),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=bt>>>24,this[Bt+1]=bt>>>16,this[Bt+2]=bt>>>8,this[Bt+3]=255&bt):re(this,bt,Bt,!1),Bt+4},Et.prototype.writeIntLE=function(bt,Bt,ie,Wt){if(bt=+bt,Bt|=0,!Wt){var Zt=Math.pow(2,8*ie-1);_t(this,bt,Bt,ie,Zt-1,-Zt)}var fe=0,ke=1,tn=0;for(this[Bt]=255&bt;++fe<ie&&(ke*=256);)bt<0&&tn===0&&this[Bt+fe-1]!==0&&(tn=1),this[Bt+fe]=(bt/ke>>0)-tn&255;return Bt+ie},Et.prototype.writeIntBE=function(bt,Bt,ie,Wt){if(bt=+bt,Bt|=0,!Wt){var Zt=Math.pow(2,8*ie-1);_t(this,bt,Bt,ie,Zt-1,-Zt)}var fe=ie-1,ke=1,tn=0;for(this[Bt+fe]=255&bt;--fe>=0&&(ke*=256);)bt<0&&tn===0&&this[Bt+fe+1]!==0&&(tn=1),this[Bt+fe]=(bt/ke>>0)-tn&255;return Bt+ie},Et.prototype.writeInt8=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,1,127,-128),Et.TYPED_ARRAY_SUPPORT||(bt=Math.floor(bt)),bt<0&&(bt=255+bt+1),this[Bt]=255&bt,Bt+1},Et.prototype.writeInt16LE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,2,32767,-32768),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=255&bt,this[Bt+1]=bt>>>8):$t(this,bt,Bt,!0),Bt+2},Et.prototype.writeInt16BE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,2,32767,-32768),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=bt>>>8,this[Bt+1]=255&bt):$t(this,bt,Bt,!1),Bt+2},Et.prototype.writeInt32LE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,4,2147483647,-2147483648),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=255&bt,this[Bt+1]=bt>>>8,this[Bt+2]=bt>>>16,this[Bt+3]=bt>>>24):re(this,bt,Bt,!0),Bt+4},Et.prototype.writeInt32BE=function(bt,Bt,ie){return bt=+bt,Bt|=0,ie||_t(this,bt,Bt,4,2147483647,-2147483648),bt<0&&(bt=4294967295+bt+1),Et.TYPED_ARRAY_SUPPORT?(this[Bt]=bt>>>24,this[Bt+1]=bt>>>16,this[Bt+2]=bt>>>8,this[Bt+3]=255&bt):re(this,bt,Bt,!1),Bt+4},Et.prototype.writeFloatLE=function(bt,Bt,ie){return le(this,bt,Bt,!0,ie)},Et.prototype.writeFloatBE=function(bt,Bt,ie){return le(this,bt,Bt,!1,ie)},Et.prototype.writeDoubleLE=function(bt,Bt,ie){return Ue(this,bt,Bt,!0,ie)},Et.prototype.writeDoubleBE=function(bt,Bt,ie){return Ue(this,bt,Bt,!1,ie)},Et.prototype.copy=function(bt,Bt,ie,Wt){if(ie||(ie=0),Wt||Wt===0||(Wt=this.length),Bt>=bt.length&&(Bt=bt.length),Bt||(Bt=0),Wt>0&&Wt<ie&&(Wt=ie),Wt===ie||bt.length===0||this.length===0)return 0;if(Bt<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("sourceStart out of bounds");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),bt.length-Bt<Wt-ie&&(Wt=bt.length-Bt+ie);var Zt,fe=Wt-ie;if(this===bt&&ie<Bt&&Bt<Wt)for(Zt=fe-1;Zt>=0;--Zt)bt[Zt+Bt]=this[Zt+ie];else if(fe<1e3||!Et.TYPED_ARRAY_SUPPORT)for(Zt=0;Zt<fe;++Zt)bt[Zt+Bt]=this[Zt+ie];else Uint8Array.prototype.set.call(bt,this.subarray(ie,ie+fe),Bt);return fe},Et.prototype.fill=function(bt,Bt,ie,Wt){if(typeof bt=="string"){if(typeof Bt=="string"?(Wt=Bt,Bt=0,ie=this.length):typeof ie=="string"&&(Wt=ie,ie=this.length),bt.length===1){var Zt=bt.charCodeAt(0);Zt<256&&(bt=Zt)}if(Wt!==void 0&&typeof Wt!="string")throw new TypeError("encoding must be a string");if(typeof Wt=="string"&&!Et.isEncoding(Wt))throw new TypeError("Unknown encoding: "+Wt)}else typeof bt=="number"&&(bt&=255);if(Bt<0||this.length<Bt||this.length<ie)throw new RangeError("Out of range index");if(ie<=Bt)return this;Bt>>>=0,ie=ie===void 0?this.length:ie>>>0,bt||(bt=0);var fe;if(typeof bt=="number")for(fe=Bt;fe<ie;++fe)this[fe]=bt;else{var ke=Et.isBuffer(bt)?bt:xe(new Et(bt,Wt).toString()),tn=ke.length;for(fe=0;fe<ie-Bt;++fe)this[fe+Bt]=ke[fe%tn]}return this};var It=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(xt,qt,Vt){qt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(xt,qt,Vt){"use strict";var Rt=function(){this.buffer=[],this.fns=[]};Rt.prototype.push=function(St,Et){if(this.fns.length)return this.fns.shift()(null,St);var Nt={data:St,priority:Et},Pt=Dt(this.buffer,Nt,function(Ct){return Ct.priority});this.buffer.splice(Pt,0,Nt)},Rt.prototype.next=function(){var St=this;return function(Et){if(St.buffer.length)return Et(null,St.buffer.pop().data);St.fns.push(Et)}};var Dt=function(St,Et,Nt){Et=Nt(Et);for(var Pt=0,Ct=St?St.length:Pt;Pt<Ct;){var Lt=Pt+Ct>>>1;Nt(St[Lt])<Et?Pt=Lt+1:Ct=Lt}return Pt};qt.exports=Rt},{}],41:[function(xt,qt,Vt){function Rt(et){var tt=this,st=vt.call(arguments,1);return new Promise(function(rt,ut){function ct(kt){var jt;try{jt=et.next(kt)}catch(Ht){return ut(Ht)}ft(jt)}function gt(kt){var jt;try{jt=et.throw(kt)}catch(Ht){return ut(Ht)}ft(jt)}function ft(kt){if(kt.done)return rt(kt.value);var jt=Dt.call(tt,kt.value);return jt&&Pt(jt)?jt.then(ct,gt):gt(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(kt.value)+'"'))}if(typeof et=="function"&&(et=et.apply(tt,st)),!et||typeof et.next!="function")return rt(et);ct()})}function Dt(et){return et&&(Pt(et)?et:Lt(et)||Ct(et)?Rt.call(this,et):typeof et=="function"?St.call(this,et):Array.isArray(et)?Et.call(this,et):Ft(et)?Nt.call(this,et):et)}function St(et){var tt=this;return new Promise(function(st,rt){et.call(tt,function(ut,ct){if(ut)return rt(ut);arguments.length>2&&(ct=vt.call(arguments,1)),st(ct)})})}function Et(et){return Promise.all(et.map(Dt,this))}function Nt(et){for(var tt=new et.constructor,st=Object.keys(et),rt=[],ut=0;ut<st.length;ut++){var ct=st[ut],gt=Dt.call(this,et[ct]);gt&&Pt(gt)?function(ft,kt){tt[kt]=void 0,rt.push(ft.then(function(jt){tt[kt]=jt}))}(gt,ct):tt[ct]=et[ct]}return Promise.all(rt).then(function(){return tt})}function Pt(et){return typeof et.then=="function"}function Ct(et){return typeof et.next=="function"&&typeof et.throw=="function"}function Lt(et){var tt=et.constructor;return!!tt&&(tt.name==="GeneratorFunction"||tt.displayName==="GeneratorFunction"||Ct(tt.prototype))}function Ft(et){return Object==et.constructor}var vt=Array.prototype.slice;qt.exports=Rt.default=Rt.co=Rt,Rt.wrap=function(et){function tt(){return Rt.call(this,et.apply(this,arguments))}return tt.__generatorFunction__=et,tt}},{}],42:[function(xt,qt,Vt){qt.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(xt,qt,Vt){"use strict";function Rt(Et,Nt){if(!(this instanceof Rt))return new Rt(Et,Nt);this.src=Et,this._withAccess=Nt}function Dt(Et,Nt){return Et[Nt]===void 0&&Et.__lookupGetter__(Nt)===void 0&&Et.__lookupSetter__(Nt)===void 0}var St=Array.prototype.slice;qt.exports=Rt,Rt.prototype.withAccess=function(Et){return this._withAccess=Et!==!1,this},Rt.prototype.pick=function(Et){return Array.isArray(Et)||(Et=St.call(arguments)),Et.length&&(this.keys=Et),this},Rt.prototype.to=function(Et){if(Et=Et||{},!this.src)return Et;var Nt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Pt=0;Pt<Nt.length;Pt++)Ct=Nt[Pt],Et[Ct]===void 0&&(Et[Ct]=this.src[Ct]);return Et}for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];if(Dt(Et,Ct)){var Lt=this.src.__lookupGetter__(Ct),Ft=this.src.__lookupSetter__(Ct);Lt&&Et.__defineGetter__(Ct,Lt),Ft&&Et.__defineSetter__(Ct,Ft),Lt||Ft||(Et[Ct]=this.src[Ct])}}return Et},Rt.prototype.toCover=function(Et){for(var Nt=this.keys||Object.keys(this.src),Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];delete Et[Ct];var Lt=this.src.__lookupGetter__(Ct),Ft=this.src.__lookupSetter__(Ct);Lt&&Et.__defineGetter__(Ct,Lt),Ft&&Et.__defineSetter__(Ct,Ft),Lt||Ft||(Et[Ct]=this.src[Ct])}},Rt.prototype.override=Rt.prototype.toCover,Rt.prototype.and=function(Et){var Nt={};return this.to(Nt),this.src=Et,this.to(Nt),this.src=Nt,this}},{}],44:[function(xt,qt,Vt){xt("../../modules/es6.string.iterator"),xt("../../modules/es6.array.from"),qt.exports=xt("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(xt,qt,Vt){var Rt=xt("../../modules/_core"),Dt=Rt.JSON||(Rt.JSON={stringify:JSON.stringify});qt.exports=function(St){return Dt.stringify.apply(Dt,arguments)}},{"../../modules/_core":65}],46:[function(xt,qt,Vt){xt("../../modules/es6.object.assign"),qt.exports=xt("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(xt,qt,Vt){xt("../../modules/es6.object.create");var Rt=xt("../../modules/_core").Object;qt.exports=function(Dt,St){return Rt.create(Dt,St)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(xt,qt,Vt){xt("../../modules/es6.object.define-property");var Rt=xt("../../modules/_core").Object;qt.exports=function(Dt,St,Et){return Rt.defineProperty(Dt,St,Et)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(xt,qt,Vt){xt("../../modules/es6.object.get-own-property-names");var Rt=xt("../../modules/_core").Object;qt.exports=function(Dt){return Rt.getOwnPropertyNames(Dt)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(xt,qt,Vt){xt("../../modules/es6.object.get-prototype-of"),qt.exports=xt("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(xt,qt,Vt){xt("../../modules/es6.object.keys"),qt.exports=xt("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(xt,qt,Vt){xt("../modules/es6.object.to-string"),xt("../modules/es6.string.iterator"),xt("../modules/web.dom.iterable"),xt("../modules/es6.promise"),xt("../modules/es7.promise.finally"),xt("../modules/es7.promise.try"),qt.exports=xt("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(xt,qt,Vt){xt("../modules/web.immediate"),qt.exports=xt("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(xt,qt,Vt){xt("../../modules/es6.string.from-code-point"),qt.exports=xt("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(xt,qt,Vt){xt("../../modules/es6.function.has-instance"),qt.exports=xt("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(xt,qt,Vt){xt("../../modules/es6.symbol"),xt("../../modules/es6.object.to-string"),xt("../../modules/es7.symbol.async-iterator"),xt("../../modules/es7.symbol.observable"),qt.exports=xt("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(xt,qt,Vt){xt("../../modules/es6.string.iterator"),xt("../../modules/web.dom.iterable"),qt.exports=xt("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(xt,qt,Vt){qt.exports=function(Rt){if(typeof Rt!="function")throw TypeError(Rt+" is not a function!");return Rt}},{}],59:[function(xt,qt,Vt){qt.exports=function(){}},{}],60:[function(xt,qt,Vt){qt.exports=function(Rt,Dt,St,Et){if(!(Rt instanceof Dt)||Et!==void 0&&Et in Rt)throw TypeError(St+": incorrect invocation!");return Rt}},{}],61:[function(xt,qt,Vt){var Rt=xt("./_is-object");qt.exports=function(Dt){if(!Rt(Dt))throw TypeError(Dt+" is not an object!");return Dt}},{"./_is-object":85}],62:[function(xt,qt,Vt){var Rt=xt("./_to-iobject"),Dt=xt("./_to-length"),St=xt("./_to-absolute-index");qt.exports=function(Et){return function(Nt,Pt,Ct){var Lt,Ft=Rt(Nt),vt=Dt(Ft.length),et=St(Ct,vt);if(Et&&Pt!=Pt){for(;vt>et;)if((Lt=Ft[et++])!=Lt)return!0}else for(;vt>et;et++)if((Et||et in Ft)&&Ft[et]===Pt)return Et||et||0;return!Et&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(xt,qt,Vt){var Rt=xt("./_cof"),Dt=xt("./_wks")("toStringTag"),St=Rt(function(){return arguments}())=="Arguments",Et=function(Nt,Pt){try{return Nt[Pt]}catch(Ct){}};qt.exports=function(Nt){var Pt,Ct,Lt;return Nt===void 0?"Undefined":Nt===null?"Null":typeof(Ct=Et(Pt=Object(Nt),Dt))=="string"?Ct:St?Rt(Pt):(Lt=Rt(Pt))=="Object"&&typeof Pt.callee=="function"?"Arguments":Lt}},{"./_cof":64,"./_wks":131}],64:[function(xt,qt,Vt){var Rt={}.toString;qt.exports=function(Dt){return Rt.call(Dt).slice(8,-1)}},{}],65:[function(xt,qt,Vt){var Rt=qt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Rt)},{}],66:[function(xt,qt,Vt){"use strict";var Rt=xt("./_object-dp"),Dt=xt("./_property-desc");qt.exports=function(St,Et,Nt){Et in St?Rt.f(St,Et,Dt(0,Nt)):St[Et]=Nt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(xt,qt,Vt){var Rt=xt("./_a-function");qt.exports=function(Dt,St,Et){if(Rt(Dt),St===void 0)return Dt;switch(Et){case 1:return function(Nt){return Dt.call(St,Nt)};case 2:return function(Nt,Pt){return Dt.call(St,Nt,Pt)};case 3:return function(Nt,Pt,Ct){return Dt.call(St,Nt,Pt,Ct)}}return function(){return Dt.apply(St,arguments)}}},{"./_a-function":58}],68:[function(xt,qt,Vt){qt.exports=function(Rt){if(Rt==null)throw TypeError("Can't call method on "+Rt);return Rt}},{}],69:[function(xt,qt,Vt){qt.exports=!xt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(xt,qt,Vt){var Rt=xt("./_is-object"),Dt=xt("./_global").document,St=Rt(Dt)&&Rt(Dt.createElement);qt.exports=function(Et){return St?Dt.createElement(Et):{}}},{"./_global":76,"./_is-object":85}],71:[function(xt,qt,Vt){qt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(xt,qt,Vt){var Rt=xt("./_object-keys"),Dt=xt("./_object-gops"),St=xt("./_object-pie");qt.exports=function(Et){var Nt=Rt(Et),Pt=Dt.f;if(Pt)for(var Ct,Lt=Pt(Et),Ft=St.f,vt=0;Lt.length>vt;)Ft.call(Et,Ct=Lt[vt++])&&Nt.push(Ct);return Nt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(xt,qt,Vt){var Rt=xt("./_global"),Dt=xt("./_core"),St=xt("./_ctx"),Et=xt("./_hide"),Nt=xt("./_has"),Pt=function(Ct,Lt,Ft){var vt,et,tt,st=Ct&Pt.F,rt=Ct&Pt.G,ut=Ct&Pt.S,ct=Ct&Pt.P,gt=Ct&Pt.B,ft=Ct&Pt.W,kt=rt?Dt:Dt[Lt]||(Dt[Lt]={}),jt=kt.prototype,Ht=rt?Rt:ut?Rt[Lt]:(Rt[Lt]||{}).prototype;rt&&(Ft=Lt);for(vt in Ft)(et=!st&&Ht&&Ht[vt]!==void 0)&&Nt(kt,vt)||(tt=et?Ht[vt]:Ft[vt],kt[vt]=rt&&typeof Ht[vt]!="function"?Ft[vt]:gt&&et?St(tt,Rt):ft&&Ht[vt]==tt?function(Ot){var te=function(ne,Xt,ce){if(this instanceof Ot){switch(arguments.length){case 0:return new Ot;case 1:return new Ot(ne);case 2:return new Ot(ne,Xt)}return new Ot(ne,Xt,ce)}return Ot.apply(this,arguments)};return te.prototype=Ot.prototype,te}(tt):ct&&typeof tt=="function"?St(Function.call,tt):tt,ct&&((kt.virtual||(kt.virtual={}))[vt]=tt,Ct&Pt.R&&jt&&!jt[vt]&&Et(jt,vt,tt)))};Pt.F=1,Pt.G=2,Pt.S=4,Pt.P=8,Pt.B=16,Pt.W=32,Pt.U=64,Pt.R=128,qt.exports=Pt},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(xt,qt,Vt){qt.exports=function(Rt){try{return!!Rt()}catch(Dt){return!0}}},{}],75:[function(xt,qt,Ft){var Rt=xt("./_ctx"),Dt=xt("./_iter-call"),St=xt("./_is-array-iter"),Et=xt("./_an-object"),Nt=xt("./_to-length"),Pt=xt("./core.get-iterator-method"),Ct={},Lt={},Ft=qt.exports=function(vt,et,tt,st,rt){var ut,ct,gt,ft,kt=rt?function(){return vt}:Pt(vt),jt=Rt(tt,st,et?2:1),Ht=0;if(typeof kt!="function")throw TypeError(vt+" is not iterable!");if(St(kt)){for(ut=Nt(vt.length);ut>Ht;Ht++)if((ft=et?jt(Et(ct=vt[Ht])[0],ct[1]):jt(vt[Ht]))===Ct||ft===Lt)return ft}else for(gt=kt.call(vt);!(ct=gt.next()).done;)if((ft=Dt(gt,jt,ct.value,et))===Ct||ft===Lt)return ft};Ft.BREAK=Ct,Ft.RETURN=Lt},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(xt,qt,Vt){var Rt=qt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Rt)},{}],77:[function(xt,qt,Vt){var Rt={}.hasOwnProperty;qt.exports=function(Dt,St){return Rt.call(Dt,St)}},{}],78:[function(xt,qt,Vt){var Rt=xt("./_object-dp"),Dt=xt("./_property-desc");qt.exports=xt("./_descriptors")?function(St,Et,Nt){return Rt.f(St,Et,Dt(1,Nt))}:function(St,Et,Nt){return St[Et]=Nt,St}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(xt,qt,Vt){var Rt=xt("./_global").document;qt.exports=Rt&&Rt.documentElement},{"./_global":76}],80:[function(xt,qt,Vt){qt.exports=!xt("./_descriptors")&&!xt("./_fails")(function(){return Object.defineProperty(xt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(xt,qt,Vt){qt.exports=function(Rt,Dt,St){var Et=St===void 0;switch(Dt.length){case 0:return Et?Rt():Rt.call(St);case 1:return Et?Rt(Dt[0]):Rt.call(St,Dt[0]);case 2:return Et?Rt(Dt[0],Dt[1]):Rt.call(St,Dt[0],Dt[1]);case 3:return Et?Rt(Dt[0],Dt[1],Dt[2]):Rt.call(St,Dt[0],Dt[1],Dt[2]);case 4:return Et?Rt(Dt[0],Dt[1],Dt[2],Dt[3]):Rt.call(St,Dt[0],Dt[1],Dt[2],Dt[3])}return Rt.apply(St,Dt)}},{}],82:[function(xt,qt,Vt){var Rt=xt("./_cof");qt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Dt){return Rt(Dt)=="String"?Dt.split(""):Object(Dt)}},{"./_cof":64}],83:[function(xt,qt,Vt){var Rt=xt("./_iterators"),Dt=xt("./_wks")("iterator"),St=Array.prototype;qt.exports=function(Et){return Et!==void 0&&(Rt.Array===Et||St[Dt]===Et)}},{"./_iterators":91,"./_wks":131}],84:[function(xt,qt,Vt){var Rt=xt("./_cof");qt.exports=Array.isArray||function(Dt){return Rt(Dt)=="Array"}},{"./_cof":64}],85:[function(xt,qt,Vt){qt.exports=function(Rt){return typeof Rt=="object"?Rt!==null:typeof Rt=="function"}},{}],86:[function(xt,qt,Vt){var Rt=xt("./_an-object");qt.exports=function(Dt,St,Et,Nt){try{return Nt?St(Rt(Et)[0],Et[1]):St(Et)}catch(Ct){var Pt=Dt.return;throw Pt!==void 0&&Rt(Pt.call(Dt)),Ct}}},{"./_an-object":61}],87:[function(xt,qt,Vt){"use strict";var Rt=xt("./_object-create"),Dt=xt("./_property-desc"),St=xt("./_set-to-string-tag"),Et={};xt("./_hide")(Et,xt("./_wks")("iterator"),function(){return this}),qt.exports=function(Nt,Pt,Ct){Nt.prototype=Rt(Et,{next:Dt(1,Ct)}),St(Nt,Pt+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(xt,qt,Vt){"use strict";var Rt=xt("./_library"),Dt=xt("./_export"),St=xt("./_redefine"),Et=xt("./_hide"),Nt=xt("./_iterators"),Pt=xt("./_iter-create"),Ct=xt("./_set-to-string-tag"),Lt=xt("./_object-gpo"),Ft=xt("./_wks")("iterator"),vt=!([].keys&&"next"in[].keys()),et=function(){return this};qt.exports=function(tt,st,rt,ut,ct,gt,ft){Pt(rt,st,ut);var kt,jt,Ht,Ot=function(we){if(!vt&&we in ce)return ce[we];switch(we){case"keys":case"values":return function(){return new rt(this,we)}}return function(){return new rt(this,we)}},te=st+" Iterator",ne=ct=="values",Xt=!1,ce=tt.prototype,me=ce[Ft]||ce["@@iterator"]||ct&&ce[ct],Pe=me||Ot(ct),De=ct?ne?Ot("entries"):Pe:void 0,Ve=st=="Array"&&ce.entries||me;if(Ve&&(Ht=Lt(Ve.call(new tt)))!==Object.prototype&&Ht.next&&(Ct(Ht,te,!0),Rt||typeof Ht[Ft]=="function"||Et(Ht,Ft,et)),ne&&me&&me.name!=="values"&&(Xt=!0,Pe=function(){return me.call(this)}),Rt&&!ft||!vt&&!Xt&&ce[Ft]||Et(ce,Ft,Pe),Nt[st]=Pe,Nt[te]=et,ct)if(kt={values:ne?Pe:Ot("values"),keys:gt?Pe:Ot("keys"),entries:De},ft)for(jt in kt)jt in ce||St(ce,jt,kt[jt]);else Dt(Dt.P+Dt.F*(vt||Xt),st,kt);return kt}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(xt,qt,Vt){var Rt=xt("./_wks")("iterator"),Dt=!1;try{var St=[7][Rt]();St.return=function(){Dt=!0},Array.from(St,function(){throw 2})}catch(Et){}qt.exports=function(Et,Nt){if(!Nt&&!Dt)return!1;var Pt=!1;try{var Ct=[7],Lt=Ct[Rt]();Lt.next=function(){return{done:Pt=!0}},Ct[Rt]=function(){return Lt},Et(Ct)}catch(Ft){}return Pt}},{"./_wks":131}],90:[function(xt,qt,Vt){qt.exports=function(Rt,Dt){return{value:Dt,done:!!Rt}}},{}],91:[function(xt,qt,Vt){qt.exports={}},{}],92:[function(xt,qt,Vt){qt.exports=!0},{}],93:[function(xt,qt,Vt){var Rt=xt("./_uid")("meta"),Dt=xt("./_is-object"),St=xt("./_has"),Et=xt("./_object-dp").f,Nt=0,Pt=Object.isExtensible||function(){return!0},Ct=!xt("./_fails")(function(){return Pt(Object.preventExtensions({}))}),Lt=function(st){Et(st,Rt,{value:{i:"O"+ ++Nt,w:{}}})},Ft=function(st,rt){if(!Dt(st))return typeof st=="symbol"?st:(typeof st=="string"?"S":"P")+st;if(!St(st,Rt)){if(!Pt(st))return"F";if(!rt)return"E";Lt(st)}return st[Rt].i},vt=function(st,rt){if(!St(st,Rt)){if(!Pt(st))return!0;if(!rt)return!1;Lt(st)}return st[Rt].w},et=function(st){return Ct&&tt.NEED&&Pt(st)&&!St(st,Rt)&&Lt(st),st},tt=qt.exports={KEY:Rt,NEED:!1,fastKey:Ft,getWeak:vt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(xt,qt,Vt){var Rt=xt("./_global"),Dt=xt("./_task").set,St=Rt.MutationObserver||Rt.WebKitMutationObserver,Et=Rt.process,Nt=Rt.Promise,Pt=xt("./_cof")(Et)=="process";qt.exports=function(){var Ct,Lt,Ft,vt=function(){var rt,ut;for(Pt&&(rt=Et.domain)&&rt.exit();Ct;){ut=Ct.fn,Ct=Ct.next;try{ut()}catch(ct){throw Ct?Ft():Lt=void 0,ct}}Lt=void 0,rt&&rt.enter()};if(Pt)Ft=function(){Et.nextTick(vt)};else if(!St||Rt.navigator&&Rt.navigator.standalone)if(Nt&&Nt.resolve){var et=Nt.resolve(void 0);Ft=function(){et.then(vt)}}else Ft=function(){Dt.call(Rt,vt)};else{var tt=!0,st=document.createTextNode("");new St(vt).observe(st,{characterData:!0}),Ft=function(){st.data=tt=!tt}}return function(rt){var ut={fn:rt,next:void 0};Lt&&(Lt.next=ut),Ct||(Ct=ut,Ft()),Lt=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(xt,qt,Vt){"use strict";function Rt(St){var Et,Nt;this.promise=new St(function(Pt,Ct){if(Et!==void 0||Nt!==void 0)throw TypeError("Bad Promise constructor");Et=Pt,Nt=Ct}),this.resolve=Dt(Et),this.reject=Dt(Nt)}var Dt=xt("./_a-function");qt.exports.f=function(St){return new Rt(St)}},{"./_a-function":58}],96:[function(xt,qt,Vt){"use strict";var Rt=xt("./_object-keys"),Dt=xt("./_object-gops"),St=xt("./_object-pie"),Et=xt("./_to-object"),Nt=xt("./_iobject"),Pt=Object.assign;qt.exports=!Pt||xt("./_fails")(function(){var Ct={},Lt={},Ft=Symbol(),vt="abcdefghijklmnopqrst";return Ct[Ft]=7,vt.split("").forEach(function(et){Lt[et]=et}),Pt({},Ct)[Ft]!=7||Object.keys(Pt({},Lt)).join("")!=vt})?function(Ct,Lt){for(var Ft=Et(Ct),vt=arguments.length,et=1,tt=Dt.f,st=St.f;vt>et;)for(var rt,ut=Nt(arguments[et++]),ct=tt?Rt(ut).concat(tt(ut)):Rt(ut),gt=ct.length,ft=0;gt>ft;)st.call(ut,rt=ct[ft++])&&(Ft[rt]=ut[rt]);return Ft}:Pt},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(xt,qt,Vt){var Rt=xt("./_an-object"),Dt=xt("./_object-dps"),St=xt("./_enum-bug-keys"),Et=xt("./_shared-key")("IE_PROTO"),Nt=function(){},Pt=function(){var Ct,Lt=xt("./_dom-create")("iframe"),Ft=St.length;for(Lt.style.display="none",xt("./_html").appendChild(Lt),Lt.src="javascript:",Ct=Lt.contentWindow.document,Ct.open(),Ct.write("<script>document.F=Object<\/script>"),Ct.close(),Pt=Ct.F;Ft--;)delete Pt.prototype[St[Ft]];return Pt()};qt.exports=Object.create||function(Ct,Lt){var Ft;return Ct!==null?(Nt.prototype=Rt(Ct),Ft=new Nt,Nt.prototype=null,Ft[Et]=Ct):Ft=Pt(),Lt===void 0?Ft:Dt(Ft,Lt)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(xt,qt,Vt){var Rt=xt("./_an-object"),Dt=xt("./_ie8-dom-define"),St=xt("./_to-primitive"),Et=Object.defineProperty;Vt.f=xt("./_descriptors")?Object.defineProperty:function(Nt,Pt,Ct){if(Rt(Nt),Pt=St(Pt,!0),Rt(Ct),Dt)try{return Et(Nt,Pt,Ct)}catch(Lt){}if("get"in Ct||"set"in Ct)throw TypeError("Accessors not supported!");return"value"in Ct&&(Nt[Pt]=Ct.value),Nt}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(xt,qt,Vt){var Rt=xt("./_object-dp"),Dt=xt("./_an-object"),St=xt("./_object-keys");qt.exports=xt("./_descriptors")?Object.defineProperties:function(Et,Nt){Dt(Et);for(var Pt,Ct=St(Nt),Lt=Ct.length,Ft=0;Lt>Ft;)Rt.f(Et,Pt=Ct[Ft++],Nt[Pt]);return Et}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(xt,qt,Vt){var Rt=xt("./_object-pie"),Dt=xt("./_property-desc"),St=xt("./_to-iobject"),Et=xt("./_to-primitive"),Nt=xt("./_has"),Pt=xt("./_ie8-dom-define"),Ct=Object.getOwnPropertyDescriptor;Vt.f=xt("./_descriptors")?Ct:function(Lt,Ft){if(Lt=St(Lt),Ft=Et(Ft,!0),Pt)try{return Ct(Lt,Ft)}catch(vt){}if(Nt(Lt,Ft))return Dt(!Rt.f.call(Lt,Ft),Lt[Ft])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(xt,qt,Vt){var Rt=xt("./_to-iobject"),Dt=xt("./_object-gopn").f,St={}.toString,Et=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nt=function(Pt){try{return Dt(Pt)}catch(Ct){return Et.slice()}};qt.exports.f=function(Pt){return Et&&St.call(Pt)=="[object Window]"?Nt(Pt):Dt(Rt(Pt))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(xt,qt,Vt){var Rt=xt("./_object-keys-internal"),Dt=xt("./_enum-bug-keys").concat("length","prototype");Vt.f=Object.getOwnPropertyNames||function(St){return Rt(St,Dt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(xt,qt,Vt){Vt.f=Object.getOwnPropertySymbols},{}],104:[function(xt,qt,Vt){var Rt=xt("./_has"),Dt=xt("./_to-object"),St=xt("./_shared-key")("IE_PROTO"),Et=Object.prototype;qt.exports=Object.getPrototypeOf||function(Nt){return Nt=Dt(Nt),Rt(Nt,St)?Nt[St]:typeof Nt.constructor=="function"&&Nt instanceof Nt.constructor?Nt.constructor.prototype:Nt instanceof Object?Et:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(xt,qt,Vt){var Rt=xt("./_has"),Dt=xt("./_to-iobject"),St=xt("./_array-includes")(!1),Et=xt("./_shared-key")("IE_PROTO");qt.exports=function(Nt,Pt){var Ct,Lt=Dt(Nt),Ft=0,vt=[];for(Ct in Lt)Ct!=Et&&Rt(Lt,Ct)&&vt.push(Ct);for(;Pt.length>Ft;)Rt(Lt,Ct=Pt[Ft++])&&(~St(vt,Ct)||vt.push(Ct));return vt}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(xt,qt,Vt){var Rt=xt("./_object-keys-internal"),Dt=xt("./_enum-bug-keys");qt.exports=Object.keys||function(St){return Rt(St,Dt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(xt,qt,Vt){Vt.f={}.propertyIsEnumerable},{}],108:[function(xt,qt,Vt){var Rt=xt("./_export"),Dt=xt("./_core"),St=xt("./_fails");qt.exports=function(Et,Nt){var Pt=(Dt.Object||{})[Et]||Object[Et],Ct={};Ct[Et]=Nt(Pt),Rt(Rt.S+Rt.F*St(function(){Pt(1)}),"Object",Ct)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(xt,qt,Vt){qt.exports=function(Rt){try{return{e:!1,v:Rt()}}catch(Dt){return{e:!0,v:Dt}}}},{}],110:[function(xt,qt,Vt){var Rt=xt("./_an-object"),Dt=xt("./_is-object"),St=xt("./_new-promise-capability");qt.exports=function(Et,Nt){if(Rt(Et),Dt(Nt)&&Nt.constructor===Et)return Nt;var Pt=St.f(Et);return(0,Pt.resolve)(Nt),Pt.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(xt,qt,Vt){qt.exports=function(Rt,Dt){return{enumerable:!(1&Rt),configurable:!(2&Rt),writable:!(4&Rt),value:Dt}}},{}],112:[function(xt,qt,Vt){var Rt=xt("./_hide");qt.exports=function(Dt,St,Et){for(var Nt in St)Et&&Dt[Nt]?Dt[Nt]=St[Nt]:Rt(Dt,Nt,St[Nt]);return Dt}},{"./_hide":78}],113:[function(xt,qt,Vt){qt.exports=xt("./_hide")},{"./_hide":78}],114:[function(xt,qt,Vt){"use strict";var Rt=xt("./_global"),Dt=xt("./_core"),St=xt("./_object-dp"),Et=xt("./_descriptors"),Nt=xt("./_wks")("species");qt.exports=function(Pt){var Ct=typeof Dt[Pt]=="function"?Dt[Pt]:Rt[Pt];Et&&Ct&&!Ct[Nt]&&St.f(Ct,Nt,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(xt,qt,Vt){var Rt=xt("./_object-dp").f,Dt=xt("./_has"),St=xt("./_wks")("toStringTag");qt.exports=function(Et,Nt,Pt){Et&&!Dt(Et=Pt?Et:Et.prototype,St)&&Rt(Et,St,{configurable:!0,value:Nt})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(xt,qt,Vt){var Rt=xt("./_shared")("keys"),Dt=xt("./_uid");qt.exports=function(St){return Rt[St]||(Rt[St]=Dt(St))}},{"./_shared":117,"./_uid":127}],117:[function(xt,qt,Vt){var Rt=xt("./_core"),Dt=xt("./_global"),St=Dt["__core-js_shared__"]||(Dt["__core-js_shared__"]={});(qt.exports=function(Et,Nt){return St[Et]||(St[Et]=Nt!==void 0?Nt:{})})("versions",[]).push({version:Rt.version,mode:xt("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(xt,qt,Vt){var Rt=xt("./_an-object"),Dt=xt("./_a-function"),St=xt("./_wks")("species");qt.exports=function(Et,Nt){var Pt,Ct=Rt(Et).constructor;return Ct===void 0||(Pt=Rt(Ct)[St])==null?Nt:Dt(Pt)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(xt,qt,Vt){var Rt=xt("./_to-integer"),Dt=xt("./_defined");qt.exports=function(St){return function(Et,Nt){var Pt,Ct,Lt=String(Dt(Et)),Ft=Rt(Nt),vt=Lt.length;return Ft<0||Ft>=vt?St?"":void 0:(Pt=Lt.charCodeAt(Ft),Pt<55296||Pt>56319||Ft+1===vt||(Ct=Lt.charCodeAt(Ft+1))<56320||Ct>57343?St?Lt.charAt(Ft):Pt:St?Lt.slice(Ft,Ft+2):Ct-56320+(Pt-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(xt,qt,Vt){var Rt,Dt,St,Et=xt("./_ctx"),Nt=xt("./_invoke"),Pt=xt("./_html"),Ct=xt("./_dom-create"),Lt=xt("./_global"),Ft=Lt.process,vt=Lt.setImmediate,et=Lt.clearImmediate,tt=Lt.MessageChannel,st=Lt.Dispatch,rt=0,ut={},ct=function(){var ft=+this;if(ut.hasOwnProperty(ft)){var kt=ut[ft];delete ut[ft],kt()}},gt=function(ft){ct.call(ft.data)};vt&&et||(vt=function(ft){for(var kt=[],jt=1;arguments.length>jt;)kt.push(arguments[jt++]);return ut[++rt]=function(){Nt(typeof ft=="function"?ft:Function(ft),kt)},Rt(rt),rt},et=function(ft){delete ut[ft]},xt("./_cof")(Ft)=="process"?Rt=function(ft){Ft.nextTick(Et(ct,ft,1))}:st&&st.now?Rt=function(ft){st.now(Et(ct,ft,1))}:tt?(Dt=new tt,St=Dt.port2,Dt.port1.onmessage=gt,Rt=Et(St.postMessage,St,1)):Lt.addEventListener&&typeof postMessage=="function"&&!Lt.importScripts?(Rt=function(ft){Lt.postMessage(ft+"","*")},Lt.addEventListener("message",gt,!1)):Rt="onreadystatechange"in Ct("script")?function(ft){Pt.appendChild(Ct("script")).onreadystatechange=function(){Pt.removeChild(this),ct.call(ft)}}:function(ft){setTimeout(Et(ct,ft,1),0)}),qt.exports={set:vt,clear:et}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(xt,qt,Vt){var Rt=xt("./_to-integer"),Dt=Math.max,St=Math.min;qt.exports=function(Et,Nt){return Et=Rt(Et),Et<0?Dt(Et+Nt,0):St(Et,Nt)}},{"./_to-integer":122}],122:[function(xt,qt,Vt){var Rt=Math.ceil,Dt=Math.floor;qt.exports=function(St){return isNaN(St=+St)?0:(St>0?Dt:Rt)(St)}},{}],123:[function(xt,qt,Vt){var Rt=xt("./_iobject"),Dt=xt("./_defined");qt.exports=function(St){return Rt(Dt(St))}},{"./_defined":68,"./_iobject":82}],124:[function(xt,qt,Vt){var Rt=xt("./_to-integer"),Dt=Math.min;qt.exports=function(St){return St>0?Dt(Rt(St),9007199254740991):0}},{"./_to-integer":122}],125:[function(xt,qt,Vt){var Rt=xt("./_defined");qt.exports=function(Dt){return Object(Rt(Dt))}},{"./_defined":68}],126:[function(xt,qt,Vt){var Rt=xt("./_is-object");qt.exports=function(Dt,St){if(!Rt(Dt))return Dt;var Et,Nt;if(St&&typeof(Et=Dt.toString)=="function"&&!Rt(Nt=Et.call(Dt))||typeof(Et=Dt.valueOf)=="function"&&!Rt(Nt=Et.call(Dt))||!St&&typeof(Et=Dt.toString)=="function"&&!Rt(Nt=Et.call(Dt)))return Nt;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(xt,qt,Vt){var Rt=0,Dt=Math.random();qt.exports=function(St){return"Symbol(".concat(St===void 0?"":St,")_",(++Rt+Dt).toString(36))}},{}],128:[function(xt,qt,Vt){var Rt=xt("./_global"),Dt=Rt.navigator;qt.exports=Dt&&Dt.userAgent||""},{"./_global":76}],129:[function(xt,qt,Vt){var Rt=xt("./_global"),Dt=xt("./_core"),St=xt("./_library"),Et=xt("./_wks-ext"),Nt=xt("./_object-dp").f;qt.exports=function(Pt){var Ct=Dt.Symbol||(Dt.Symbol=St?{}:Rt.Symbol||{});Pt.charAt(0)=="_"||Pt in Ct||Nt(Ct,Pt,{value:Et.f(Pt)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(xt,qt,Vt){Vt.f=xt("./_wks")},{"./_wks":131}],131:[function(xt,qt,Vt){var Rt=xt("./_shared")("wks"),Dt=xt("./_uid"),St=xt("./_global").Symbol,Et=typeof St=="function";(qt.exports=function(Nt){return Rt[Nt]||(Rt[Nt]=Et&&St[Nt]||(Et?St:Dt)("Symbol."+Nt))}).store=Rt},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(xt,qt,Vt){var Rt=xt("./_classof"),Dt=xt("./_wks")("iterator"),St=xt("./_iterators");qt.exports=xt("./_core").getIteratorMethod=function(Et){if(Et!=null)return Et[Dt]||Et["@@iterator"]||St[Rt(Et)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(xt,qt,Vt){"use strict";var Rt=xt("./_ctx"),Dt=xt("./_export"),St=xt("./_to-object"),Et=xt("./_iter-call"),Nt=xt("./_is-array-iter"),Pt=xt("./_to-length"),Ct=xt("./_create-property"),Lt=xt("./core.get-iterator-method");Dt(Dt.S+Dt.F*!xt("./_iter-detect")(function(Ft){Array.from(Ft)}),"Array",{from:function(Ft){var vt,et,tt,st,rt=St(Ft),ut=typeof this=="function"?this:Array,ct=arguments.length,gt=ct>1?arguments[1]:void 0,ft=gt!==void 0,kt=0,jt=Lt(rt);if(ft&&(gt=Rt(gt,ct>2?arguments[2]:void 0,2)),jt==null||ut==Array&&Nt(jt))for(vt=Pt(rt.length),et=new ut(vt);vt>kt;kt++)Ct(et,kt,ft?gt(rt[kt],kt):rt[kt]);else for(st=jt.call(rt),et=new ut;!(tt=st.next()).done;kt++)Ct(et,kt,ft?Et(st,gt,[tt.value,kt],!0):tt.value);return et.length=kt,et}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(xt,qt,Vt){"use strict";var Rt=xt("./_add-to-unscopables"),Dt=xt("./_iter-step"),St=xt("./_iterators"),Et=xt("./_to-iobject");qt.exports=xt("./_iter-define")(Array,"Array",function(Nt,Pt){this._t=Et(Nt),this._i=0,this._k=Pt},function(){var Nt=this._t,Pt=this._k,Ct=this._i++;return!Nt||Ct>=Nt.length?(this._t=void 0,Dt(1)):Pt=="keys"?Dt(0,Ct):Pt=="values"?Dt(0,Nt[Ct]):Dt(0,[Ct,Nt[Ct]])},"values"),St.Arguments=St.Array,Rt("keys"),Rt("values"),Rt("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(xt,qt,Vt){"use strict";var Rt=xt("./_is-object"),Dt=xt("./_object-gpo"),St=xt("./_wks")("hasInstance"),Et=Function.prototype;St in Et||xt("./_object-dp").f(Et,St,{value:function(Nt){if(typeof this!="function"||!Rt(Nt))return!1;if(!Rt(this.prototype))return Nt instanceof this;for(;Nt=Dt(Nt);)if(this.prototype===Nt)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(xt,qt,Vt){var Rt=xt("./_export");Rt(Rt.S+Rt.F,"Object",{assign:xt("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(xt,qt,Vt){var Rt=xt("./_export");Rt(Rt.S,"Object",{create:xt("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(xt,qt,Vt){var Rt=xt("./_export");Rt(Rt.S+Rt.F*!xt("./_descriptors"),"Object",{defineProperty:xt("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(xt,qt,Vt){xt("./_object-sap")("getOwnPropertyNames",function(){return xt("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(xt,qt,Vt){var Rt=xt("./_to-object"),Dt=xt("./_object-gpo");xt("./_object-sap")("getPrototypeOf",function(){return function(St){return Dt(Rt(St))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(xt,qt,Vt){var Rt=xt("./_to-object"),Dt=xt("./_object-keys");xt("./_object-sap")("keys",function(){return function(St){return Dt(Rt(St))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(xt,qt,Vt){arguments[4][36][0].apply(Vt,arguments)},{dup:36}],143:[function(xt,qt,Vt){"use strict";var Rt,Dt,St,Et,Nt=xt("./_library"),Pt=xt("./_global"),Ct=xt("./_ctx"),Lt=xt("./_classof"),Ft=xt("./_export"),vt=xt("./_is-object"),et=xt("./_a-function"),tt=xt("./_an-instance"),st=xt("./_for-of"),rt=xt("./_species-constructor"),ut=xt("./_task").set,ct=xt("./_microtask")(),gt=xt("./_new-promise-capability"),ft=xt("./_perform"),kt=xt("./_user-agent"),jt=xt("./_promise-resolve"),Ht=Pt.TypeError,Ot=Pt.process,te=Ot&&Ot.versions,ne=te&&te.v8||"",Xt=Pt.Promise,ce=Lt(Ot)=="process",me=function(){},Pe=Dt=gt.f,De=!!function(){try{var pe=Xt.resolve(1),le=(pe.constructor={})[xt("./_wks")("species")]=function(Ue){Ue(me,me)};return(ce||typeof PromiseRejectionEvent=="function")&&pe.then(me)instanceof le&&ne.indexOf("6.6")!==0&&kt.indexOf("Chrome/66")===-1}catch(Ue){}}(),Ve=function(pe){var le;return!(!vt(pe)||typeof(le=pe.then)!="function")&&le},we=function(pe,le){if(!pe._n){pe._n=!0;var Ue=pe._c;ct(function(){for(var Ne=pe._v,Xe=pe._s==1,Le=0;Ue.length>Le;)(function(xe){var _e,Fe,Ae,oe=Xe?xe.ok:xe.fail,Mt=xe.resolve,At=xe.reject,Qt=xe.domain;try{oe?(Xe||(pe._h==2&&_t(pe),pe._h=1),oe===!0?_e=Ne:(Qt&&Qt.enter(),_e=oe(Ne),Qt&&(Qt.exit(),Ae=!0)),_e===xe.promise?At(Ht("Promise-chain cycle")):(Fe=Ve(_e))?Fe.call(_e,Mt,At):Mt(_e)):At(Ne)}catch(se){Qt&&!Ae&&Qt.exit(),At(se)}})(Ue[Le++]);pe._c=[],pe._n=!1,le&&!pe._h&&Qe(pe)})}},Qe=function(pe){ut.call(Pt,function(){var le,Ue,Ne,Xe=pe._v,Le=ae(pe);if(Le&&(le=ft(function(){ce?Ot.emit("unhandledRejection",Xe,pe):(Ue=Pt.onunhandledrejection)?Ue({promise:pe,reason:Xe}):(Ne=Pt.console)&&Ne.error&&Ne.error("Unhandled promise rejection",Xe)}),pe._h=ce||ae(pe)?2:1),pe._a=void 0,Le&&le.e)throw le.v})},ae=function(pe){return pe._h!==1&&(pe._a||pe._c).length===0},_t=function(pe){ut.call(Pt,function(){var le;ce?Ot.emit("rejectionHandled",pe):(le=Pt.onrejectionhandled)&&le({promise:pe,reason:pe._v})})},$t=function(pe){var le=this;le._d||(le._d=!0,le=le._w||le,le._v=pe,le._s=2,le._a||(le._a=le._c.slice()),we(le,!0))},re=function(pe){var le,Ue=this;if(!Ue._d){Ue._d=!0,Ue=Ue._w||Ue;try{if(Ue===pe)throw Ht("Promise can't be resolved itself");(le=Ve(pe))?ct(function(){var Ne={_w:Ue,_d:!1};try{le.call(pe,Ct(re,Ne,1),Ct($t,Ne,1))}catch(Xe){$t.call(Ne,Xe)}}):(Ue._v=pe,Ue._s=1,we(Ue,!1))}catch(Ne){$t.call({_w:Ue,_d:!1},Ne)}}};De||(Xt=function(pe){tt(this,Xt,"Promise","_h"),et(pe),Rt.call(this);try{pe(Ct(re,this,1),Ct($t,this,1))}catch(le){$t.call(this,le)}},Rt=function(pe){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Rt.prototype=xt("./_redefine-all")(Xt.prototype,{then:function(pe,le){var Ue=Pe(rt(this,Xt));return Ue.ok=typeof pe!="function"||pe,Ue.fail=typeof le=="function"&&le,Ue.domain=ce?Ot.domain:void 0,this._c.push(Ue),this._a&&this._a.push(Ue),this._s&&we(this,!1),Ue.promise},catch:function(pe){return this.then(void 0,pe)}}),St=function(){var pe=new Rt;this.promise=pe,this.resolve=Ct(re,pe,1),this.reject=Ct($t,pe,1)},gt.f=Pe=function(pe){return pe===Xt||pe===Et?new St(pe):Dt(pe)}),Ft(Ft.G+Ft.W+Ft.F*!De,{Promise:Xt}),xt("./_set-to-string-tag")(Xt,"Promise"),xt("./_set-species")("Promise"),Et=xt("./_core").Promise,Ft(Ft.S+Ft.F*!De,"Promise",{reject:function(pe){var le=Pe(this);return(0,le.reject)(pe),le.promise}}),Ft(Ft.S+Ft.F*(Nt||!De),"Promise",{resolve:function(pe){return jt(Nt&&this===Et?Xt:this,pe)}}),Ft(Ft.S+Ft.F*!(De&&xt("./_iter-detect")(function(pe){Xt.all(pe).catch(me)})),"Promise",{all:function(pe){var le=this,Ue=Pe(le),Ne=Ue.resolve,Xe=Ue.reject,Le=ft(function(){var xe=[],_e=0,Fe=1;st(pe,!1,function(Ae){var oe=_e++,Mt=!1;xe.push(void 0),Fe++,le.resolve(Ae).then(function(At){Mt||(Mt=!0,xe[oe]=At,--Fe||Ne(xe))},Xe)}),--Fe||Ne(xe)});return Le.e&&Xe(Le.v),Ue.promise},race:function(pe){var le=this,Ue=Pe(le),Ne=Ue.reject,Xe=ft(function(){st(pe,!1,function(Le){le.resolve(Le).then(Ue.resolve,Ne)})});return Xe.e&&Ne(Xe.v),Ue.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(xt,qt,Vt){var Rt=xt("./_export"),Dt=xt("./_to-absolute-index"),St=String.fromCharCode,Et=String.fromCodePoint;Rt(Rt.S+Rt.F*(!!Et&&Et.length!=1),"String",{fromCodePoint:function(Nt){for(var Pt,Ct=[],Lt=arguments.length,Ft=0;Lt>Ft;){if(Pt=+arguments[Ft++],Dt(Pt,1114111)!==Pt)throw RangeError(Pt+" is not a valid code point");Ct.push(Pt<65536?St(Pt):St(55296+((Pt-=65536)>>10),Pt%1024+56320))}return Ct.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(xt,qt,Vt){"use strict";var Rt=xt("./_string-at")(!0);xt("./_iter-define")(String,"String",function(Dt){this._t=String(Dt),this._i=0},function(){var Dt,St=this._t,Et=this._i;return Et>=St.length?{value:void 0,done:!0}:(Dt=Rt(St,Et),this._i+=Dt.length,{value:Dt,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(xt,qt,Vt){"use strict";var Rt=xt("./_global"),Dt=xt("./_has"),St=xt("./_descriptors"),Et=xt("./_export"),Nt=xt("./_redefine"),Pt=xt("./_meta").KEY,Ct=xt("./_fails"),Lt=xt("./_shared"),Ft=xt("./_set-to-string-tag"),vt=xt("./_uid"),et=xt("./_wks"),tt=xt("./_wks-ext"),st=xt("./_wks-define"),rt=xt("./_enum-keys"),ut=xt("./_is-array"),ct=xt("./_an-object"),gt=xt("./_is-object"),ft=xt("./_to-iobject"),kt=xt("./_to-primitive"),jt=xt("./_property-desc"),Ht=xt("./_object-create"),Ot=xt("./_object-gopn-ext"),te=xt("./_object-gopd"),ne=xt("./_object-dp"),Xt=xt("./_object-keys"),ce=te.f,me=ne.f,Pe=Ot.f,De=Rt.Symbol,Ve=Rt.JSON,we=Ve&&Ve.stringify,Qe=et("_hidden"),ae=et("toPrimitive"),_t={}.propertyIsEnumerable,$t=Lt("symbol-registry"),re=Lt("symbols"),pe=Lt("op-symbols"),le=Object.prototype,Ue=typeof De=="function",Ne=Rt.QObject,Xe=!Ne||!Ne.prototype||!Ne.prototype.findChild,Le=St&&Ct(function(){return Ht(me({},"a",{get:function(){return me(this,"a",{value:7}).a}})).a!=7})?function(ie,Wt,Zt){var fe=ce(le,Wt);fe&&delete le[Wt],me(ie,Wt,Zt),fe&&ie!==le&&me(le,Wt,fe)}:me,xe=function(ie){var Wt=re[ie]=Ht(De.prototype);return Wt._k=ie,Wt},_e=Ue&&typeof De.iterator=="symbol"?function(ie){return typeof ie=="symbol"}:function(ie){return ie instanceof De},Fe=function(ie,Wt,Zt){return ie===le&&Fe(pe,Wt,Zt),ct(ie),Wt=kt(Wt,!0),ct(Zt),Dt(re,Wt)?(Zt.enumerable?(Dt(ie,Qe)&&ie[Qe][Wt]&&(ie[Qe][Wt]=!1),Zt=Ht(Zt,{enumerable:jt(0,!1)})):(Dt(ie,Qe)||me(ie,Qe,jt(1,{})),ie[Qe][Wt]=!0),Le(ie,Wt,Zt)):me(ie,Wt,Zt)},Ae=function(ie,Wt){ct(ie);for(var Zt,fe=rt(Wt=ft(Wt)),ke=0,tn=fe.length;tn>ke;)Fe(ie,Zt=fe[ke++],Wt[Zt]);return ie},oe=function(ie,Wt){return Wt===void 0?Ht(ie):Ae(Ht(ie),Wt)},Mt=function(ie){var Wt=_t.call(this,ie=kt(ie,!0));return!(this===le&&Dt(re,ie)&&!Dt(pe,ie))&&(!(Wt||!Dt(this,ie)||!Dt(re,ie)||Dt(this,Qe)&&this[Qe][ie])||Wt)},At=function(ie,Wt){if(ie=ft(ie),Wt=kt(Wt,!0),ie!==le||!Dt(re,Wt)||Dt(pe,Wt)){var Zt=ce(ie,Wt);return!Zt||!Dt(re,Wt)||Dt(ie,Qe)&&ie[Qe][Wt]||(Zt.enumerable=!0),Zt}},Qt=function(ie){for(var Wt,Zt=Pe(ft(ie)),fe=[],ke=0;Zt.length>ke;)Dt(re,Wt=Zt[ke++])||Wt==Qe||Wt==Pt||fe.push(Wt);return fe},se=function(ie){for(var Wt,Zt=ie===le,fe=Pe(Zt?pe:ft(ie)),ke=[],tn=0;fe.length>tn;)!Dt(re,Wt=fe[tn++])||Zt&&!Dt(le,Wt)||ke.push(re[Wt]);return ke};Ue||(De=function(){if(this instanceof De)throw TypeError("Symbol is not a constructor!");var ie=vt(arguments.length>0?arguments[0]:void 0),Wt=function(Zt){this===le&&Wt.call(pe,Zt),Dt(this,Qe)&&Dt(this[Qe],ie)&&(this[Qe][ie]=!1),Le(this,ie,jt(1,Zt))};return St&&Xe&&Le(le,ie,{configurable:!0,set:Wt}),xe(ie)},Nt(De.prototype,"toString",function(){return this._k}),te.f=At,ne.f=Fe,xt("./_object-gopn").f=Ot.f=Qt,xt("./_object-pie").f=Mt,xt("./_object-gops").f=se,St&&!xt("./_library")&&Nt(le,"propertyIsEnumerable",Mt,!0),tt.f=function(ie){return xe(et(ie))}),Et(Et.G+Et.W+Et.F*!Ue,{Symbol:De});for(var Kt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),It=0;Kt.length>It;)et(Kt[It++]);for(var bt=Xt(et.store),Bt=0;bt.length>Bt;)st(bt[Bt++]);Et(Et.S+Et.F*!Ue,"Symbol",{for:function(ie){return Dt($t,ie+="")?$t[ie]:$t[ie]=De(ie)},keyFor:function(ie){if(!_e(ie))throw TypeError(ie+" is not a symbol!");for(var Wt in $t)if($t[Wt]===ie)return Wt},useSetter:function(){Xe=!0},useSimple:function(){Xe=!1}}),Et(Et.S+Et.F*!Ue,"Object",{create:oe,defineProperty:Fe,defineProperties:Ae,getOwnPropertyDescriptor:At,getOwnPropertyNames:Qt,getOwnPropertySymbols:se}),Ve&&Et(Et.S+Et.F*(!Ue||Ct(function(){var ie=De();return we([ie])!="[null]"||we({a:ie})!="{}"||we(Object(ie))!="{}"})),"JSON",{stringify:function(ie){for(var Wt,Zt,fe=[ie],ke=1;arguments.length>ke;)fe.push(arguments[ke++]);if(Zt=Wt=fe[1],(gt(Wt)||ie!==void 0)&&!_e(ie))return ut(Wt)||(Wt=function(tn,dn){if(typeof Zt=="function"&&(dn=Zt.call(this,tn,dn)),!_e(dn))return dn}),fe[1]=Wt,we.apply(Ve,fe)}}),De.prototype[ae]||xt("./_hide")(De.prototype,ae,De.prototype.valueOf),Ft(De,"Symbol"),Ft(Math,"Math",!0),Ft(Rt.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(xt,qt,Vt){"use strict";var Rt=xt("./_export"),Dt=xt("./_core"),St=xt("./_global"),Et=xt("./_species-constructor"),Nt=xt("./_promise-resolve");Rt(Rt.P+Rt.R,"Promise",{finally:function(Pt){var Ct=Et(this,Dt.Promise||St.Promise),Lt=typeof Pt=="function";return this.then(Lt?function(Ft){return Nt(Ct,Pt()).then(function(){return Ft})}:Pt,Lt?function(Ft){return Nt(Ct,Pt()).then(function(){throw Ft})}:Pt)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(xt,qt,Vt){"use strict";var Rt=xt("./_export"),Dt=xt("./_new-promise-capability"),St=xt("./_perform");Rt(Rt.S,"Promise",{try:function(Et){var Nt=Dt.f(this),Pt=St(Et);return(Pt.e?Nt.reject:Nt.resolve)(Pt.v),Nt.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(xt,qt,Vt){xt("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(xt,qt,Vt){xt("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(xt,qt,Vt){xt("./es6.array.iterator");for(var Rt=xt("./_global"),Dt=xt("./_hide"),St=xt("./_iterators"),Et=xt("./_wks")("toStringTag"),Nt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt],Lt=Rt[Ct],Ft=Lt&&Lt.prototype;Ft&&!Ft[Et]&&Dt(Ft,Et,Ct),St[Ct]=St.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(xt,qt,Vt){var Rt=xt("./_export"),Dt=xt("./_task");Rt(Rt.G+Rt.B,{setImmediate:Dt.set,clearImmediate:Dt.clear})},{"./_export":73,"./_task":120}],153:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(kt){return Array.isArray?Array.isArray(kt):ct(kt)==="[object Array]"}function St(kt){return typeof kt=="boolean"}function Et(kt){return kt===null}function Nt(kt){return kt==null}function Pt(kt){return typeof kt=="number"}function Ct(kt){return typeof kt=="string"}function Lt(kt){return(kt===void 0?"undefined":(0,ft.default)(kt))==="symbol"}function Ft(kt){return kt===void 0}function vt(kt){return ct(kt)==="[object RegExp]"}function et(kt){return(kt===void 0?"undefined":(0,ft.default)(kt))==="object"&&kt!==null}function tt(kt){return ct(kt)==="[object Date]"}function st(kt){return ct(kt)==="[object Error]"||kt instanceof Error}function rt(kt){return typeof kt=="function"}function ut(kt){return kt===null||typeof kt=="boolean"||typeof kt=="number"||typeof kt=="string"||(kt===void 0?"undefined":(0,ft.default)(kt))==="symbol"||kt===void 0}function ct(kt){return Object.prototype.toString.call(kt)}var gt=xt("babel-runtime/helpers/typeof"),ft=function(kt){return kt&&kt.__esModule?kt:{default:kt}}(gt);Vt.isArray=Dt,Vt.isBoolean=St,Vt.isNull=Et,Vt.isNullOrUndefined=Nt,Vt.isNumber=Pt,Vt.isString=Ct,Vt.isSymbol=Lt,Vt.isUndefined=Ft,Vt.isRegExp=vt,Vt.isObject=et,Vt.isDate=tt,Vt.isError=st,Vt.isFunction=rt,Vt.isPrimitive=ut,Vt.isBuffer=Rt.isBuffer}).call(this,{isBuffer:xt("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/helpers/typeof"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(St){function Et(Ft,vt){for(Ft=String(Ft),vt=vt||2;Ft.length<vt;)Ft="0"+Ft;return Ft}function Nt(Ft){var vt=new Date(Ft.getFullYear(),Ft.getMonth(),Ft.getDate());vt.setDate(vt.getDate()-(vt.getDay()+6)%7+3);var et=new Date(vt.getFullYear(),0,4);et.setDate(et.getDate()-(et.getDay()+6)%7+3);var tt=vt.getTimezoneOffset()-et.getTimezoneOffset();vt.setHours(vt.getHours()-tt);var st=(vt-et)/6048e5;return 1+Math.floor(st)}function Pt(Ft){var vt=Ft.getDay();return vt===0&&(vt=7),vt}function Ct(Ft){return Ft===null?"null":Ft===void 0?"undefined":(Ft===void 0?"undefined":(0,Dt.default)(Ft))!=="object"?Ft===void 0?"undefined":(0,Dt.default)(Ft):Array.isArray(Ft)?"array":{}.toString.call(Ft).slice(8,-1).toLowerCase()}var Lt=function(){var Ft=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,vt=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,et=/[^-+\dA-Z]/g;return function(tt,st,rt,ut){if(arguments.length!==1||Ct(tt)!=="string"||/\d/.test(tt)||(st=tt,tt=void 0),tt=tt||new Date,tt instanceof Date||(tt=new Date(tt)),isNaN(tt))throw TypeError("Invalid date");st=String(Lt.masks[st]||st||Lt.masks.default);var ct=st.slice(0,4);ct!=="UTC:"&&ct!=="GMT:"||(st=st.slice(4),rt=!0,ct==="GMT:"&&(ut=!0));var gt=rt?"getUTC":"get",ft=tt[gt+"Date"](),kt=tt[gt+"Day"](),jt=tt[gt+"Month"](),Ht=tt[gt+"FullYear"](),Ot=tt[gt+"Hours"](),te=tt[gt+"Minutes"](),ne=tt[gt+"Seconds"](),Xt=tt[gt+"Milliseconds"](),ce=rt?0:tt.getTimezoneOffset(),me=Nt(tt),Pe=Pt(tt),De={d:ft,dd:Et(ft),ddd:Lt.i18n.dayNames[kt],dddd:Lt.i18n.dayNames[kt+7],m:jt+1,mm:Et(jt+1),mmm:Lt.i18n.monthNames[jt],mmmm:Lt.i18n.monthNames[jt+12],yy:String(Ht).slice(2),yyyy:Ht,h:Ot%12||12,hh:Et(Ot%12||12),H:Ot,HH:Et(Ot),M:te,MM:Et(te),s:ne,ss:Et(ne),l:Et(Xt,3),L:Et(Math.round(Xt/10)),t:Ot<12?"a":"p",tt:Ot<12?"am":"pm",T:Ot<12?"A":"P",TT:Ot<12?"AM":"PM",Z:ut?"GMT":rt?"UTC":(String(tt).match(vt)||[""]).pop().replace(et,""),o:(ce>0?"-":"+")+Et(100*Math.floor(Math.abs(ce)/60)+Math.abs(ce)%60,4),S:["th","st","nd","rd"][ft%10>3?0:(ft%100-ft%10!=10)*ft%10],W:me,N:Pe};return st.replace(Ft,function(Ve){return Ve in De?De[Ve]:Ve.slice(1,Ve.length-1)})}}();Lt.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},Lt.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof Jt=="function"&&Jt.amd?Jt(function(){return Lt}):(Vt===void 0?"undefined":(0,Dt.default)(Vt))==="object"?qt.exports=Lt:St.dateFormat=Lt})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(xt,qt,Vt){(function(Rt){function Dt(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function St(Ct){var Lt=this.useColors;if(Ct[0]=(Lt?"%c":"")+this.namespace+(Lt?" %c":" ")+Ct[0]+(Lt?"%c ":" ")+"+"+Vt.humanize(this.diff),Lt){var Ft="color: "+this.color;Ct.splice(1,0,Ft,"color: inherit");var vt=0,et=0;Ct[0].replace(/%[a-zA-Z%]/g,function(tt){tt!=="%%"&&(vt++,tt==="%c"&&(et=vt))}),Ct.splice(et,0,Ft)}}function Et(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Nt(Ct){try{Ct==null?Vt.storage.removeItem("debug"):Vt.storage.debug=Ct}catch(Lt){}}function Pt(){var Ct;try{Ct=Vt.storage.debug}catch(Lt){}return!Ct&&Rt!==void 0&&"env"in Rt&&(Ct=Rt.env.DEBUG),Ct}Vt=qt.exports=xt("./debug"),Vt.log=Et,Vt.formatArgs=St,Vt.save=Nt,Vt.load=Pt,Vt.useColors=Dt,Vt.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(Ct){}}(),Vt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],Vt.formatters.j=function(Ct){try{return JSON.stringify(Ct)}catch(Lt){return"[UnexpectedJSONParseError]: "+Lt.message}},Vt.enable(Pt())}).call(this,xt("_process"))},{"./debug":156,_process:173}],156:[function(xt,qt,Vt){function Rt(Lt){var Ft,vt=0;for(Ft in Lt)vt=(vt<<5)-vt+Lt.charCodeAt(Ft),vt|=0;return Vt.colors[Math.abs(vt)%Vt.colors.length]}function Dt(Lt){function Ft(){if(Ft.enabled){var vt=Ft,et=+new Date,tt=et-(Ct||et);vt.diff=tt,vt.prev=Ct,vt.curr=et,Ct=et;for(var st=new Array(arguments.length),rt=0;rt<st.length;rt++)st[rt]=arguments[rt];st[0]=Vt.coerce(st[0]),typeof st[0]!="string"&&st.unshift("%O");var ut=0;st[0]=st[0].replace(/%([a-zA-Z%])/g,function(ct,gt){if(ct==="%%")return ct;ut++;var ft=Vt.formatters[gt];if(typeof ft=="function"){var kt=st[ut];ct=ft.call(vt,kt),st.splice(ut,1),ut--}return ct}),Vt.formatArgs.call(vt,st),(Ft.log||Vt.log||console.log.bind(console)).apply(vt,st)}}return Ft.namespace=Lt,Ft.enabled=Vt.enabled(Lt),Ft.useColors=Vt.useColors(),Ft.color=Rt(Lt),typeof Vt.init=="function"&&Vt.init(Ft),Ft}function St(Lt){Vt.save(Lt),Vt.names=[],Vt.skips=[];for(var Ft=(typeof Lt=="string"?Lt:"").split(/[\s,]+/),vt=Ft.length,et=0;et<vt;et++)Ft[et]&&(Lt=Ft[et].replace(/\*/g,".*?"),Lt[0]==="-"?Vt.skips.push(new RegExp("^"+Lt.substr(1)+"$")):Vt.names.push(new RegExp("^"+Lt+"$")))}function Et(){Vt.enable("")}function Nt(Lt){var Ft,vt;for(Ft=0,vt=Vt.skips.length;Ft<vt;Ft++)if(Vt.skips[Ft].test(Lt))return!1;for(Ft=0,vt=Vt.names.length;Ft<vt;Ft++)if(Vt.names[Ft].test(Lt))return!0;return!1}function Pt(Lt){return Lt instanceof Error?Lt.stack||Lt.message:Lt}Vt=qt.exports=Dt.debug=Dt.default=Dt,Vt.coerce=Pt,Vt.disable=Et,Vt.enable=St,Vt.enabled=Nt,Vt.humanize=xt("ms"),Vt.names=[],Vt.skips=[],Vt.formatters={};var Ct},{ms:169}],157:[function(xt,qt,Vt){"use strict";function Rt(St){var Et=""+St,Nt=Dt.exec(Et);if(!Nt)return Et;var Pt,Ct="",Lt=0,Ft=0;for(Lt=Nt.index;Lt<Et.length;Lt++){switch(Et.charCodeAt(Lt)){case 34:Pt=""";break;case 38:Pt="&";break;case 39:Pt="'";break;case 60:Pt="<";break;case 62:Pt=">";break;default:continue}Ft!==Lt&&(Ct+=Et.substring(Ft,Lt)),Ft=Lt+1,Ct+=Pt}return Ft!==Lt?Ct+Et.substring(Ft,Lt):Ct}var Dt=/["'&<>]/;qt.exports=Rt},{}],158:[function(xt,qt,Vt){function Rt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function Dt(Pt){return typeof Pt=="function"}function St(Pt){return typeof Pt=="number"}function Et(Pt){return typeof Pt=="object"&&Pt!==null}function Nt(Pt){return Pt===void 0}qt.exports=Rt,Rt.EventEmitter=Rt,Rt.prototype._events=void 0,Rt.prototype._maxListeners=void 0,Rt.defaultMaxListeners=10,Rt.prototype.setMaxListeners=function(Pt){if(!St(Pt)||Pt<0||isNaN(Pt))throw TypeError("n must be a positive number");return this._maxListeners=Pt,this},Rt.prototype.emit=function(Pt){var Ct,Lt,Ft,vt,et,tt;if(this._events||(this._events={}),Pt==="error"&&(!this._events.error||Et(this._events.error)&&!this._events.error.length)){if((Ct=arguments[1])instanceof Error)throw Ct;var st=new Error('Uncaught, unspecified "error" event. ('+Ct+")");throw st.context=Ct,st}if(Lt=this._events[Pt],Nt(Lt))return!1;if(Dt(Lt))switch(arguments.length){case 1:Lt.call(this);break;case 2:Lt.call(this,arguments[1]);break;case 3:Lt.call(this,arguments[1],arguments[2]);break;default:vt=Array.prototype.slice.call(arguments,1),Lt.apply(this,vt)}else if(Et(Lt))for(vt=Array.prototype.slice.call(arguments,1),tt=Lt.slice(),Ft=tt.length,et=0;et<Ft;et++)tt[et].apply(this,vt);return!0},Rt.prototype.addListener=function(Pt,Ct){var Lt;if(!Dt(Ct))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",Pt,Dt(Ct.listener)?Ct.listener:Ct),this._events[Pt]?Et(this._events[Pt])?this._events[Pt].push(Ct):this._events[Pt]=[this._events[Pt],Ct]:this._events[Pt]=Ct,Et(this._events[Pt])&&!this._events[Pt].warned&&(Lt=Nt(this._maxListeners)?Rt.defaultMaxListeners:this._maxListeners)&&Lt>0&&this._events[Pt].length>Lt&&(this._events[Pt].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[Pt].length),typeof console.trace=="function"&&console.trace()),this},Rt.prototype.on=Rt.prototype.addListener,Rt.prototype.once=function(Pt,Ct){function Lt(){this.removeListener(Pt,Lt),Ft||(Ft=!0,Ct.apply(this,arguments))}if(!Dt(Ct))throw TypeError("listener must be a function");var Ft=!1;return Lt.listener=Ct,this.on(Pt,Lt),this},Rt.prototype.removeListener=function(Pt,Ct){var Lt,Ft,vt,et;if(!Dt(Ct))throw TypeError("listener must be a function");if(!this._events||!this._events[Pt])return this;if(Lt=this._events[Pt],vt=Lt.length,Ft=-1,Lt===Ct||Dt(Lt.listener)&&Lt.listener===Ct)delete this._events[Pt],this._events.removeListener&&this.emit("removeListener",Pt,Ct);else if(Et(Lt)){for(et=vt;et-- >0;)if(Lt[et]===Ct||Lt[et].listener&&Lt[et].listener===Ct){Ft=et;break}if(Ft<0)return this;Lt.length===1?(Lt.length=0,delete this._events[Pt]):Lt.splice(Ft,1),this._events.removeListener&&this.emit("removeListener",Pt,Ct)}return this},Rt.prototype.removeAllListeners=function(Pt){var Ct,Lt;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[Pt]&&delete this._events[Pt],this;if(arguments.length===0){for(Ct in this._events)Ct!=="removeListener"&&this.removeAllListeners(Ct);return this.removeAllListeners("removeListener"),this._events={},this}if(Lt=this._events[Pt],Dt(Lt))this.removeListener(Pt,Lt);else if(Lt)for(;Lt.length;)this.removeListener(Pt,Lt[Lt.length-1]);return delete this._events[Pt],this},Rt.prototype.listeners=function(Pt){return this._events&&this._events[Pt]?Dt(this._events[Pt])?[this._events[Pt]]:this._events[Pt].slice():[]},Rt.prototype.listenerCount=function(Pt){if(this._events){var Ct=this._events[Pt];if(Dt(Ct))return 1;if(Ct)return Ct.length}return 0},Rt.listenerCount=function(Pt,Ct){return Pt.listenerCount(Ct)}},{}],159:[function(xt,qt,Vt){var Rt=xt("http"),Dt=qt.exports;for(var St in Rt)Rt.hasOwnProperty(St)&&(Dt[St]=Rt[St]);Dt.request=function(Et,Nt){return Et||(Et={}),Et.scheme="https",Et.protocol="https:",Rt.request.call(this,Et,Nt)}},{http:196}],160:[function(xt,qt,Vt){"use strict";var Rt=xt("util"),Dt=xt("ms");qt.exports=function(St){if(typeof St=="number")return St;var Et=Dt(St);if(Et===void 0){var Nt=new Error(Rt.format("humanize-ms(%j) result undefined",St));console.warn(Nt.stack)}return Et}},{ms:169,util:207}],161:[function(xt,qt,Vt){Vt.read=function(Rt,Dt,St,Et,Nt){var Pt,Ct,Lt=8*Nt-Et-1,Ft=(1<<Lt)-1,vt=Ft>>1,et=-7,tt=St?Nt-1:0,st=St?-1:1,rt=Rt[Dt+tt];for(tt+=st,Pt=rt&(1<<-et)-1,rt>>=-et,et+=Lt;et>0;Pt=256*Pt+Rt[Dt+tt],tt+=st,et-=8);for(Ct=Pt&(1<<-et)-1,Pt>>=-et,et+=Et;et>0;Ct=256*Ct+Rt[Dt+tt],tt+=st,et-=8);if(Pt===0)Pt=1-vt;else{if(Pt===Ft)return Ct?NaN:1/0*(rt?-1:1);Ct+=Math.pow(2,Et),Pt-=vt}return(rt?-1:1)*Ct*Math.pow(2,Pt-Et)},Vt.write=function(Rt,Dt,St,Et,Nt,Pt){var Ct,Lt,Ft,vt=8*Pt-Nt-1,et=(1<<vt)-1,tt=et>>1,st=Nt===23?Math.pow(2,-24)-Math.pow(2,-77):0,rt=Et?0:Pt-1,ut=Et?1:-1,ct=Dt<0||Dt===0&&1/Dt<0?1:0;for(Dt=Math.abs(Dt),isNaN(Dt)||Dt===1/0?(Lt=isNaN(Dt)?1:0,Ct=et):(Ct=Math.floor(Math.log(Dt)/Math.LN2),Dt*(Ft=Math.pow(2,-Ct))<1&&(Ct--,Ft*=2),Dt+=Ct+tt>=1?st/Ft:st*Math.pow(2,1-tt),Dt*Ft>=2&&(Ct++,Ft/=2),Ct+tt>=et?(Lt=0,Ct=et):Ct+tt>=1?(Lt=(Dt*Ft-1)*Math.pow(2,Nt),Ct+=tt):(Lt=Dt*Math.pow(2,tt-1)*Math.pow(2,Nt),Ct=0));Nt>=8;Rt[St+rt]=255&Lt,rt+=ut,Lt/=256,Nt-=8);for(Ct=Ct<<Nt|Lt,vt+=Nt;vt>0;Rt[St+rt]=255&Ct,rt+=ut,Ct/=256,vt-=8);Rt[St+rt-ut]|=128*ct}},{}],162:[function(xt,qt,Vt){typeof Object.create=="function"?qt.exports=function(Rt,Dt){Rt.super_=Dt,Rt.prototype=Object.create(Dt.prototype,{constructor:{value:Rt,enumerable:!1,writable:!0,configurable:!0}})}:qt.exports=function(Rt,Dt){Rt.super_=Dt;var St=function(){};St.prototype=Dt.prototype,Rt.prototype=new St,Rt.prototype.constructor=Rt}},{}],163:[function(xt,qt,Vt){function Rt(St){return!!St.constructor&&typeof St.constructor.isBuffer=="function"&&St.constructor.isBuffer(St)}function Dt(St){return typeof St.readFloatLE=="function"&&typeof St.slice=="function"&&Rt(St.slice(0,0))}qt.exports=function(St){return St!=null&&(Rt(St)||Dt(St)||!!St._isBuffer)}},{}],164:[function(xt,qt,Vt){(function(Rt){function Dt(Nt){return Et.call(Nt).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function St(Nt){return typeof Nt=="function"&&(/^class(\s|\{\}$)/.test(Et.call(Nt))||/^.*classCallCheck\(/.test(Dt(Nt)))}var Et=Function.prototype.toString;Vt!==void 0?(qt!==void 0&&qt.exports&&(Vt=qt.exports=St),Vt.isClass=St):typeof Jt=="function"&&Jt.amd?Jt([],function(){return St}):Rt.isClass=St})(this)},{}],165:[function(xt,qt,Vt){"use strict";function Rt(Pt){var Ct=Pt.slice(2);return Ct=Ct[0].toLowerCase()+Ct.slice(1)}var Dt=xt("core-util-is"),St=xt("isstream"),Et=xt("is-class");Object.keys(Dt).map(function(Pt){Vt[Rt(Pt)]=Dt[Pt]}),Vt.stream=St,Vt.readableStream=St.isReadable,Vt.writableStream=St.isWritable,Vt.duplexStream=St.isDuplex,Vt.class=Et,Vt.finite=function(Pt){return Number.isFinite(Pt)},Vt.NaN=function(Pt){return Number.isNaN(Pt)},Vt.generator=function(Pt){return Pt&&typeof Pt.next=="function"&&typeof Pt.throw=="function"},Vt.generatorFunction=function(Pt){return Pt&&Pt.constructor&&Pt.constructor.name==="GeneratorFunction"},Vt.asyncFunction=function(Pt){return Pt&&Pt.constructor&&Pt.constructor.name==="AsyncFunction"},Vt.promise=function(Pt){return Pt&&typeof Pt.then=="function"};var Nt=Math.pow(2,31);Vt.int=function(Pt){return Dt.isNumber(Pt)&&Pt%1==0},Vt.int32=function(Pt){return Vt.int(Pt)&&Pt<Nt&&Pt>=-Nt},Vt.long=function(Pt){return Vt.int(Pt)&&(Pt>=Nt||Pt<-Nt)},Vt.Long=function(Pt){return Vt.object(Pt)&&Vt.number(Pt.high)&&Vt.number(Pt.low)},Vt.double=function(Pt){return Dt.isNumber(Pt)&&!isNaN(Pt)&&Pt%1!=0},Vt.date=function(Pt){return Pt instanceof Date},Vt.regExp=function(Pt){return Pt instanceof RegExp},Vt.regexp=Vt.regExp,Vt.error=function(Pt){return Pt instanceof Error},Vt.array=function(Pt){return Array.isArray(Pt)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(xt,qt,Vt){var Rt={}.toString;qt.exports=Array.isArray||function(Dt){return Rt.call(Dt)=="[object Array]"}},{}],167:[function(xt,qt,Vt){function Rt(Pt){return Pt instanceof Nt.Stream}function Dt(Pt){return Rt(Pt)&&typeof Pt._read=="function"&&typeof Pt._readableState=="object"}function St(Pt){return Rt(Pt)&&typeof Pt._write=="function"&&typeof Pt._writableState=="object"}function Et(Pt){return Dt(Pt)&&St(Pt)}var Nt=xt("stream");qt.exports=Rt,qt.exports.isReadable=Dt,qt.exports.isWritable=St,qt.exports.isDuplex=Et},{stream:195}],168:[function(xt,qt,Vt){"use strict";function Rt(St,Et,Nt){if(!St)throw new TypeError("argument dest is required");if(!Et)throw new TypeError("argument src is required");return Nt===void 0&&(Nt=!0),Object.getOwnPropertyNames(Et).forEach(function(Pt){if(Nt||!Dt.call(St,Pt)){var Ct=Object.getOwnPropertyDescriptor(Et,Pt);Object.defineProperty(St,Pt,Ct)}}),St}qt.exports=Rt;var Dt=Object.prototype.hasOwnProperty},{}],169:[function(xt,qt,Vt){function Rt(vt){if(vt=String(vt),!(vt.length>100)){var et=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(vt);if(et){var tt=parseFloat(et[1]);switch((et[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return tt*Ft;case"days":case"day":case"d":return tt*Lt;case"hours":case"hour":case"hrs":case"hr":case"h":return tt*Ct;case"minutes":case"minute":case"mins":case"min":case"m":return tt*Pt;case"seconds":case"second":case"secs":case"sec":case"s":return tt*Nt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return tt;default:return}}}}function Dt(vt){return vt>=Lt?Math.round(vt/Lt)+"d":vt>=Ct?Math.round(vt/Ct)+"h":vt>=Pt?Math.round(vt/Pt)+"m":vt>=Nt?Math.round(vt/Nt)+"s":vt+"ms"}function St(vt){return Et(vt,Lt,"day")||Et(vt,Ct,"hour")||Et(vt,Pt,"minute")||Et(vt,Nt,"second")||vt+" ms"}function Et(vt,et,tt){if(!(vt<et))return vt<1.5*et?Math.floor(vt/et)+" "+tt:Math.ceil(vt/et)+" "+tt+"s"}var Nt=1e3,Pt=60*Nt,Ct=60*Pt,Lt=24*Ct,Ft=365.25*Lt;qt.exports=function(vt,et){et=et||{};var tt=typeof vt;if(tt==="string"&&vt.length>0)return Rt(vt);if(tt==="number"&&isNaN(vt)===!1)return et.long?St(vt):Dt(vt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(vt))}},{}],170:[function(xt,qt,Vt){(function(Rt){function Dt(Pt,Ct){for(var Lt=0,Ft=Pt.length-1;Ft>=0;Ft--){var vt=Pt[Ft];vt==="."?Pt.splice(Ft,1):vt===".."?(Pt.splice(Ft,1),Lt++):Lt&&(Pt.splice(Ft,1),Lt--)}if(Ct)for(;Lt--;Lt)Pt.unshift("..");return Pt}function St(Pt){typeof Pt!="string"&&(Pt+="");var Ct,Lt=0,Ft=-1,vt=!0;for(Ct=Pt.length-1;Ct>=0;--Ct)if(Pt.charCodeAt(Ct)===47){if(!vt){Lt=Ct+1;break}}else Ft===-1&&(vt=!1,Ft=Ct+1);return Ft===-1?"":Pt.slice(Lt,Ft)}function Et(Pt,Ct){if(Pt.filter)return Pt.filter(Ct);for(var Lt=[],Ft=0;Ft<Pt.length;Ft++)Ct(Pt[Ft],Ft,Pt)&&Lt.push(Pt[Ft]);return Lt}Vt.resolve=function(){for(var Pt="",Ct=!1,Lt=arguments.length-1;Lt>=-1&&!Ct;Lt--){var Ft=Lt>=0?arguments[Lt]:Rt.cwd();if(typeof Ft!="string")throw new TypeError("Arguments to path.resolve must be strings");Ft&&(Pt=Ft+"/"+Pt,Ct=Ft.charAt(0)==="/")}return Pt=Dt(Et(Pt.split("/"),function(vt){return!!vt}),!Ct).join("/"),(Ct?"/":"")+Pt||"."},Vt.normalize=function(Pt){var Ct=Vt.isAbsolute(Pt),Lt=Nt(Pt,-1)==="/";return Pt=Dt(Et(Pt.split("/"),function(Ft){return!!Ft}),!Ct).join("/"),Pt||Ct||(Pt="."),Pt&&Lt&&(Pt+="/"),(Ct?"/":"")+Pt},Vt.isAbsolute=function(Pt){return Pt.charAt(0)==="/"},Vt.join=function(){var Pt=Array.prototype.slice.call(arguments,0);return Vt.normalize(Et(Pt,function(Ct,Lt){if(typeof Ct!="string")throw new TypeError("Arguments to path.join must be strings");return Ct}).join("/"))},Vt.relative=function(Pt,Ct){function Lt(ut){for(var ct=0;ct<ut.length&&ut[ct]==="";ct++);for(var gt=ut.length-1;gt>=0&&ut[gt]==="";gt--);return ct>gt?[]:ut.slice(ct,gt-ct+1)}Pt=Vt.resolve(Pt).substr(1),Ct=Vt.resolve(Ct).substr(1);for(var Ft=Lt(Pt.split("/")),vt=Lt(Ct.split("/")),et=Math.min(Ft.length,vt.length),tt=et,st=0;st<et;st++)if(Ft[st]!==vt[st]){tt=st;break}for(var rt=[],st=tt;st<Ft.length;st++)rt.push("..");return rt=rt.concat(vt.slice(tt)),rt.join("/")},Vt.sep="/",Vt.delimiter=":",Vt.dirname=function(Pt){if(typeof Pt!="string"&&(Pt+=""),Pt.length===0)return".";for(var Ct=Pt.charCodeAt(0),Lt=Ct===47,Ft=-1,vt=!0,et=Pt.length-1;et>=1;--et)if((Ct=Pt.charCodeAt(et))===47){if(!vt){Ft=et;break}}else vt=!1;return Ft===-1?Lt?"/":".":Lt&&Ft===1?"/":Pt.slice(0,Ft)},Vt.basename=function(Pt,Ct){var Lt=St(Pt);return Ct&&Lt.substr(-1*Ct.length)===Ct&&(Lt=Lt.substr(0,Lt.length-Ct.length)),Lt},Vt.extname=function(Pt){typeof Pt!="string"&&(Pt+="");for(var Ct=-1,Lt=0,Ft=-1,vt=!0,et=0,tt=Pt.length-1;tt>=0;--tt){var st=Pt.charCodeAt(tt);if(st!==47)Ft===-1&&(vt=!1,Ft=tt+1),st===46?Ct===-1?Ct=tt:et!==1&&(et=1):Ct!==-1&&(et=-1);else if(!vt){Lt=tt+1;break}}return Ct===-1||Ft===-1||et===0||et===1&&Ct===Ft-1&&Ct===Lt+1?"":Pt.slice(Ct,Ft)};var Nt=function(Pt,Ct,Lt){return Pt.substr(Ct,Lt)}}).call(this,xt("_process"))},{_process:173}],171:[function(xt,qt,Vt){(function(Rt){(function(){"use strict";function Dt(ne){return ne=String(ne),ne.charAt(0).toUpperCase()+ne.slice(1)}function St(ne,Xt,ce){var me={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Xt&&ce&&/^Win/i.test(ne)&&!/^Windows Phone /i.test(ne)&&(me=me[/[\d.]+$/.exec(ne)])&&(ne="Windows "+me),ne=String(ne),Xt&&ce&&(ne=ne.replace(RegExp(Xt,"i"),ce)),ne=Nt(ne.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function Et(ne,Xt){var ce=-1,me=ne?ne.length:0;if(typeof me=="number"&&me>-1&&me<=ft)for(;++ce<me;)Xt(ne[ce],ce,ne);else Pt(ne,Xt)}function Nt(ne){return ne=et(ne),/^(?:webOS|i(?:OS|P))/.test(ne)?ne:Dt(ne)}function Pt(ne,Xt){for(var ce in ne)Ht.call(ne,ce)&&Xt(ne[ce],ce,ne)}function Ct(ne){return ne==null?Dt(ne):Ot.call(ne).slice(8,-1)}function Lt(ne,Xt){var ce=ne!=null?typeof ne[Xt]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(ce)||ce=="object"&&!ne[Xt])}function Ft(ne){return String(ne).replace(/([ -])(?!$)/g,"$1?")}function vt(ne,Xt){var ce=null;return Et(ne,function(me,Pe){ce=Xt(ce,me,Pe,ne)}),ce}function et(ne){return String(ne).replace(/^ +| +$/g,"")}function tt(ne){function Xt(ie){return vt(ie,function(Wt,Zt){var fe=Zt.pattern||Ft(Zt);return!Wt&&(Wt=RegExp("\\b"+fe+" *\\d+[.\\w_]*","i").exec(ne)||RegExp("\\b"+fe+" *\\w+-[\\w]*","i").exec(ne)||RegExp("\\b"+fe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ne))&&((Wt=String(Zt.label&&!RegExp(fe,"i").test(Zt.label)?Zt.label:Wt).split("/"))[1]&&!/[\d.]+/.test(Wt[0])&&(Wt[0]+=" "+Wt[1]),Zt=Zt.label||Zt,Wt=Nt(Wt[0].replace(RegExp(fe,"i"),Zt).replace(RegExp("; *(?:"+Zt+"[_-])?","i")," ").replace(RegExp("("+Zt+")[-_.]?(\\w)","i"),"$1 $2"))),Wt})}function ce(){return this.description||""}var me=rt,Pe=ne&&typeof ne=="object"&&Ct(ne)!="String";Pe&&(me=ne,ne=null);var De=me.navigator||{},Ve=De.userAgent||"";ne||(ne=Ve);var we,Qe,ae=Pe?!!De.likeChrome:/\bChrome\b/.test(ne)&&!/internal|\n/i.test(Ot.toString()),_t=Pe?"Object":"ScriptBridgingProxyObject",$t=Pe?"Object":"Environment",re=Pe&&me.java?"JavaPackage":Ct(me.java),pe=Pe?"Object":"RuntimeObject",le=/\bJava/.test(re)&&me.java,Ue=le&&Ct(me.environment)==$t,Ne=le?"a":"\u4F2A",Xe=le?"b":"\u5C3E",Le=me.document||{},xe=me.operamini||me.opera,_e=kt.test(_e=Pe&&xe?xe["[[Class]]"]:Ct(xe))?_e:xe=null,Fe=ne,Ae=[],oe=null,Mt=ne==Ve,At=Mt&&xe&&typeof xe.version=="function"&&xe.version(),Qt=function(ie){return vt(ie,function(Wt,Zt){return Wt||RegExp("\\b"+(Zt.pattern||Ft(Zt))+"\\b","i").exec(ne)&&(Zt.label||Zt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),se=function(ie){return vt(ie,function(Wt,Zt){return Wt||RegExp("\\b"+(Zt.pattern||Ft(Zt))+"\\b","i").exec(ne)&&(Zt.label||Zt)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Kt=Xt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),It=function(ie){return vt(ie,function(Wt,Zt,fe){return Wt||(Zt[Kt]||Zt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Kt)]||RegExp("\\b"+Ft(fe)+"(?:\\b|\\w*\\d)","i").exec(ne))&&fe})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),bt=function(ie){return vt(ie,function(Wt,Zt){var fe=Zt.pattern||Ft(Zt);return!Wt&&(Wt=RegExp("\\b"+fe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ne))&&(Wt=St(Wt,fe,Zt.label||Zt)),Wt})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Qt&&(Qt=[Qt]),It&&!Kt&&(Kt=Xt([It])),(we=/\bGoogle TV\b/.exec(Kt))&&(Kt=we[0]),/\bSimulator\b/i.test(ne)&&(Kt=(Kt?Kt+" ":"")+"Simulator"),se=="Opera Mini"&&/\bOPiOS\b/.test(ne)&&Ae.push("running in Turbo/Uncompressed mode"),se=="IE"&&/\blike iPhone OS\b/.test(ne)?(we=tt(ne.replace(/like iPhone OS/,"")),It=we.manufacturer,Kt=we.product):/^iP/.test(Kt)?(se||(se="Safari"),bt="iOS"+((we=/ OS ([\d_]+)/i.exec(ne))?" "+we[1].replace(/_/g,"."):"")):se!="Konqueror"||/buntu/i.test(bt)?It&&It!="Google"&&(/Chrome/.test(se)&&!/\bMobile Safari\b/i.test(ne)||/\bVita\b/.test(Kt))||/\bAndroid\b/.test(bt)&&/^Chrome/.test(se)&&/\bVersion\//i.test(ne)?(se="Android Browser",bt=/\bAndroid\b/.test(bt)?bt:"Android"):se=="Silk"?(/\bMobi/i.test(ne)||(bt="Android",Ae.unshift("desktop mode")),/Accelerated *= *true/i.test(ne)&&Ae.unshift("accelerated")):se=="PaleMoon"&&(we=/\bFirefox\/([\d.]+)\b/.exec(ne))?Ae.push("identifying as Firefox "+we[1]):se=="Firefox"&&(we=/\b(Mobile|Tablet|TV)\b/i.exec(ne))?(bt||(bt="Firefox OS"),Kt||(Kt=we[1])):!se||(we=!/\bMinefield\b/i.test(ne)&&/\b(?:Firefox|Safari)\b/.exec(se))?(se&&!Kt&&/[\/,]|^[^(]+?\)/.test(ne.slice(ne.indexOf(we+"/")+8))&&(se=null),(we=Kt||It||bt)&&(Kt||It||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(bt))&&(se=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(bt)?bt:we)+" Browser")):se=="Electron"&&(we=(/\bChrome\/([\d.]+)\b/.exec(ne)||0)[1])&&Ae.push("Chromium "+we):bt="Kubuntu",At||(At=function(ie){return vt(ie,function(Wt,Zt){return Wt||(RegExp(Zt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ne)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",Ft(se),"(?:Firefox|Minefield|NetFront)"])),(we=Qt=="iCab"&&parseFloat(At)>3&&"WebKit"||/\bOpera\b/.test(se)&&(/\bOPR\b/.test(ne)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ne)&&!/^(?:Trident|EdgeHTML)$/.test(Qt)&&"WebKit"||!Qt&&/\bMSIE\b/i.test(ne)&&(bt=="Mac OS"?"Tasman":"Trident")||Qt=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(se)&&"NetFront")&&(Qt=[we]),se=="IE"&&(we=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ne)||0)[1])?(se+=" Mobile",bt="Windows Phone "+(/\+$/.test(we)?we:we+".x"),Ae.unshift("desktop mode")):/\bWPDesktop\b/i.test(ne)?(se="IE Mobile",bt="Windows Phone 8.x",Ae.unshift("desktop mode"),At||(At=(/\brv:([\d.]+)/.exec(ne)||0)[1])):se!="IE"&&Qt=="Trident"&&(we=/\brv:([\d.]+)/.exec(ne))&&(se&&Ae.push("identifying as "+se+(At?" "+At:"")),se="IE",At=we[1]),Mt){if(Lt(me,"global"))if(le&&(we=le.lang.System,Fe=we.getProperty("os.arch"),bt=bt||we.getProperty("os.name")+" "+we.getProperty("os.version")),Ue){try{At=me.require("ringo/engine").version.join("."),se="RingoJS"}catch(ie){(we=me.system)&&we.global.system==me.system&&(se="Narwhal",bt||(bt=we[0].os||null))}se||(se="Rhino")}else typeof me.process=="object"&&!me.process.browser&&(we=me.process)&&(typeof we.versions=="object"&&(typeof we.versions.electron=="string"?(Ae.push("Node "+we.versions.node),se="Electron",At=we.versions.electron):typeof we.versions.nw=="string"&&(Ae.push("Chromium "+At,"Node "+we.versions.node),se="NW.js",At=we.versions.nw)),se||(se="Node.js",Fe=we.arch,bt=we.platform,At=/[\d.]+/.exec(we.version),At=At?At[0]:null));else Ct(we=me.runtime)==_t?(se="Adobe AIR",bt=we.flash.system.Capabilities.os):Ct(we=me.phantom)==pe?(se="PhantomJS",At=(we=we.version||null)&&we.major+"."+we.minor+"."+we.patch):typeof Le.documentMode=="number"&&(we=/\bTrident\/(\d+)/i.exec(ne))?(At=[At,Le.documentMode],(we=+we[1]+4)!=At[1]&&(Ae.push("IE "+At[1]+" mode"),Qt&&(Qt[1]=""),At[1]=we),At=se=="IE"?String(At[1].toFixed(1)):At[0]):typeof Le.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(se)&&(Ae.push("masking as "+se+" "+At),se="IE",At="11.0",Qt=["Trident"],bt="Windows");bt=bt&&Nt(bt)}if(At&&(we=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(At)||/(?:alpha|beta)(?: ?\d)?/i.exec(ne+";"+(Mt&&De.appMinorVersion))||/\bMinefield\b/i.test(ne)&&"a")&&(oe=/b/i.test(we)?"beta":"alpha",At=At.replace(RegExp(we+"\\+?$"),"")+(oe=="beta"?Xe:Ne)+(/\d+\+?/.exec(we)||"")),se=="Fennec"||se=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(bt))se="Firefox Mobile";else if(se=="Maxthon"&&At)At=At.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Kt))Kt=="Xbox 360"&&(bt=null),Kt=="Xbox 360"&&/\bIEMobile\b/.test(ne)&&Ae.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(se)&&(!se||Kt||/Browser|Mobi/.test(se))||bt!="Windows CE"&&!/Mobi/i.test(ne))if(se=="IE"&&Mt)try{me.external===null&&Ae.unshift("platform preview")}catch(ie){Ae.unshift("embedded")}else(/\bBlackBerry\b/.test(Kt)||/\bBB10\b/.test(ne))&&(we=(RegExp(Kt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ne)||0)[1]||At)?(we=[we,/BB10/.test(ne)],bt=(we[1]?(Kt=null,It="BlackBerry"):"Device Software")+" "+we[0],At=null):this!=Pt&&Kt!="Wii"&&(Mt&&xe||/Opera/.test(se)&&/\b(?:MSIE|Firefox)\b/i.test(ne)||se=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(bt)||se=="IE"&&(bt&&!/^Win/.test(bt)&&At>5.5||/\bWindows XP\b/.test(bt)&&At>8||At==8&&!/\bTrident\b/.test(ne)))&&!kt.test(we=tt.call(Pt,ne.replace(kt,"")+";"))&&we.name&&(we="ing as "+we.name+((we=we.version)?" "+we:""),kt.test(se)?(/\bIE\b/.test(we)&&bt=="Mac OS"&&(bt=null),we="identify"+we):(we="mask"+we,se=_e?Nt(_e.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(we)&&(bt=null),Mt||(At=null)),Qt=["Presto"],Ae.push(we));else se+=" Mobile";(we=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ne)||0)[1])&&(we=[parseFloat(we.replace(/\.(\d)$/,".0$1")),we],se=="Safari"&&we[1].slice(-1)=="+"?(se="WebKit Nightly",oe="alpha",At=we[1].slice(0,-1)):At!=we[1]&&At!=(we[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ne)||0)[1])||(At=null),we[1]=(/\bChrome\/([\d.]+)/i.exec(ne)||0)[1],we[0]==537.36&&we[2]==537.36&&parseFloat(we[1])>=28&&Qt=="WebKit"&&(Qt=["Blink"]),Mt&&(ae||we[1])?(Qt&&(Qt[1]="like Chrome"),we=we[1]||(we=we[0],we<530?1:we<532?2:we<532.05?3:we<533?4:we<534.03?5:we<534.07?6:we<534.1?7:we<534.13?8:we<534.16?9:we<534.24?10:we<534.3?11:we<535.01?12:we<535.02?"13+":we<535.07?15:we<535.11?16:we<535.19?17:we<536.05?18:we<536.1?19:we<537.01?20:we<537.11?"21+":we<537.13?23:we<537.18?24:we<537.24?25:we<537.36?26:Qt!="Blink"?"27":"28")):(Qt&&(Qt[1]="like Safari"),we=we[0],we=we<400?1:we<500?2:we<526?3:we<533?4:we<534?"4+":we<535?5:we<537?6:we<538?7:we<601?8:"8"),Qt&&(Qt[1]+=" "+(we+=typeof we=="number"?".x":/[.+]/.test(we)?"":"+")),se=="Safari"&&(!At||parseInt(At)>45)&&(At=we)),se=="Opera"&&(we=/\bzbov|zvav$/.exec(bt))?(se+=" ",Ae.unshift("desktop mode"),we=="zvav"?(se+="Mini",At=null):se+="Mobile",bt=bt.replace(RegExp(" *"+we+"$"),"")):se=="Safari"&&/\bChrome\b/.exec(Qt&&Qt[1])&&(Ae.unshift("desktop mode"),se="Chrome Mobile",At=null,/\bOS X\b/.test(bt)?(It="Apple",bt="iOS 4.3+"):bt=null),At&&At.indexOf(we=/[\d.]+$/.exec(bt))==0&&ne.indexOf("/"+we+"-")>-1&&(bt=et(bt.replace(we,""))),Qt&&!/\b(?:Avant|Nook)\b/.test(se)&&(/Browser|Lunascape|Maxthon/.test(se)||se!="Safari"&&/^iOS/.test(bt)&&/\bSafari\b/.test(Qt[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(se)&&Qt[1])&&(we=Qt[Qt.length-1])&&Ae.push(we),Ae.length&&(Ae=["("+Ae.join("; ")+")"]),It&&Kt&&Kt.indexOf(It)<0&&Ae.push("on "+It),Kt&&Ae.push((/^on /.test(Ae[Ae.length-1])?"":"on ")+Kt),bt&&(we=/ ([\d.+]+)$/.exec(bt),Qe=we&&bt.charAt(bt.length-we[0].length-1)=="/",bt={architecture:32,family:we&&!Qe?bt.replace(we[0],""):bt,version:we?we[1]:null,toString:function(){var ie=this.version;return this.family+(ie&&!Qe?" "+ie:"")+(this.architecture==64?" 64-bit":"")}}),(we=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Fe))&&!/\bi686\b/i.test(Fe)?(bt&&(bt.architecture=64,bt.family=bt.family.replace(RegExp(" *"+we),"")),se&&(/\bWOW64\b/i.test(ne)||Mt&&/\w(?:86|32)$/.test(De.cpuClass||De.platform)&&!/\bWin64; x64\b/i.test(ne))&&Ae.unshift("32-bit")):bt&&/^OS X/.test(bt.family)&&se=="Chrome"&&parseFloat(At)>=39&&(bt.architecture=64),ne||(ne=null);var Bt={};return Bt.description=ne,Bt.layout=Qt&&Qt[0],Bt.manufacturer=It,Bt.name=se,Bt.prerelease=oe,Bt.product=Kt,Bt.ua=ne,Bt.version=se&&At,Bt.os=bt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Bt.parse=tt,Bt.toString=ce,Bt.version&&Ae.unshift(At),Bt.name&&Ae.unshift(se),bt&&se&&(bt!=String(bt).split(" ")[0]||bt!=se.split(" ")[0]&&!Kt)&&Ae.push(Kt?"("+bt+")":"on "+bt),Ae.length&&(Bt.description=Ae.join(" ")),Bt}var st={function:!0,object:!0},rt=st[typeof window]&&window||this,ut=st[typeof Vt]&&Vt,ct=st[typeof qt]&&qt&&!qt.nodeType&&qt,gt=ut&&ct&&typeof Rt=="object"&&Rt;!gt||gt.global!==gt&>.window!==gt&>.self!==gt||(rt=gt);var ft=Math.pow(2,53)-1,kt=/\bOpera/,jt=Object.prototype,Ht=jt.hasOwnProperty,Ot=jt.toString,te=tt();typeof Jt=="function"&&typeof Jt.amd=="object"&&Jt.amd?(rt.platform=te,Jt(function(){return te})):ut&&ct?Pt(te,function(ne,Xt){ut[Xt]=ne}):rt.platform=te}).call(this)}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(St,Et,Nt,Pt){if(typeof St!="function")throw new TypeError('"callback" argument must be a function');var Ct,Lt,Ft=arguments.length;switch(Ft){case 0:case 1:return Rt.nextTick(St);case 2:return Rt.nextTick(function(){St.call(null,Et)});case 3:return Rt.nextTick(function(){St.call(null,Et,Nt)});case 4:return Rt.nextTick(function(){St.call(null,Et,Nt,Pt)});default:for(Ct=new Array(Ft-1),Lt=0;Lt<Ct.length;)Ct[Lt++]=arguments[Lt];return Rt.nextTick(function(){St.apply(null,Ct)})}}!Rt.version||Rt.version.indexOf("v0.")===0||Rt.version.indexOf("v1.")===0&&Rt.version.indexOf("v1.8.")!==0?qt.exports={nextTick:Dt}:qt.exports=Rt}).call(this,xt("_process"))},{_process:173}],173:[function(xt,qt,Vt){function Rt(){throw new Error("setTimeout has not been defined")}function Dt(){throw new Error("clearTimeout has not been defined")}function St(ct){if(Ft===setTimeout)return setTimeout(ct,0);if((Ft===Rt||!Ft)&&setTimeout)return Ft=setTimeout,setTimeout(ct,0);try{return Ft(ct,0)}catch(gt){try{return Ft.call(null,ct,0)}catch(ft){return Ft.call(this,ct,0)}}}function Et(ct){if(vt===clearTimeout)return clearTimeout(ct);if((vt===Dt||!vt)&&clearTimeout)return vt=clearTimeout,clearTimeout(ct);try{return vt(ct)}catch(gt){try{return vt.call(null,ct)}catch(ft){return vt.call(this,ct)}}}function Nt(){rt&&tt&&(rt=!1,tt.length?st=tt.concat(st):ut=-1,st.length&&Pt())}function Pt(){if(!rt){var ct=St(Nt);rt=!0;for(var gt=st.length;gt;){for(tt=st,st=[];++ut<gt;)tt&&tt[ut].run();ut=-1,gt=st.length}tt=null,rt=!1,Et(ct)}}function Ct(ct,gt){this.fun=ct,this.array=gt}function Lt(){}var Ft,vt,et=qt.exports={};(function(){try{Ft=typeof setTimeout=="function"?setTimeout:Rt}catch(ct){Ft=Rt}try{vt=typeof clearTimeout=="function"?clearTimeout:Dt}catch(ct){vt=Dt}})();var tt,st=[],rt=!1,ut=-1;et.nextTick=function(ct){var gt=new Array(arguments.length-1);if(arguments.length>1)for(var ft=1;ft<arguments.length;ft++)gt[ft-1]=arguments[ft];st.push(new Ct(ct,gt)),st.length!==1||rt||St(Pt)},Ct.prototype.run=function(){this.fun.apply(null,this.array)},et.title="browser",et.browser=!0,et.env={},et.argv=[],et.version="",et.versions={},et.on=Lt,et.addListener=Lt,et.once=Lt,et.off=Lt,et.removeListener=Lt,et.removeAllListeners=Lt,et.emit=Lt,et.prependListener=Lt,et.prependOnceListener=Lt,et.listeners=function(ct){return[]},et.binding=function(ct){throw new Error("process.binding is not supported")},et.cwd=function(){return"/"},et.chdir=function(ct){throw new Error("process.chdir is not supported")},et.umask=function(){return 0}},{}],174:[function(xt,qt,Vt){(function(Rt){(function(Dt){function St(re){throw new RangeError(Qe[re])}function Et(re,pe){for(var le=re.length,Ue=[];le--;)Ue[le]=pe(re[le]);return Ue}function Nt(re,pe){var le=re.split("@"),Ue="";return le.length>1&&(Ue=le[0]+"@",re=le[1]),re=re.replace(we,"."),Ue+Et(re.split("."),pe).join(".")}function Pt(re){for(var pe,le,Ue=[],Ne=0,Xe=re.length;Ne<Xe;)pe=re.charCodeAt(Ne++),pe>=55296&&pe<=56319&&Ne<Xe?(le=re.charCodeAt(Ne++),(64512&le)==56320?Ue.push(((1023&pe)<<10)+(1023&le)+65536):(Ue.push(pe),Ne--)):Ue.push(pe);return Ue}function Ct(re){return Et(re,function(pe){var le="";return pe>65535&&(pe-=65536,le+=$t(pe>>>10&1023|55296),pe=56320|1023&pe),le+=$t(pe)}).join("")}function Lt(re){return re-48<10?re-22:re-65<26?re-65:re-97<26?re-97:Ht}function Ft(re,pe){return re+22+75*(re<26)-((pe!=0)<<5)}function vt(re,pe,le){var Ue=0;for(re=le?_t(re/Xt):re>>1,re+=_t(re/pe);re>ae*te>>1;Ue+=Ht)re=_t(re/ae);return _t(Ue+(ae+1)*re/(re+ne))}function et(re){var pe,le,Ue,Ne,Xe,Le,xe,_e,Fe,Ae,oe=[],Mt=re.length,At=0,Qt=me,se=ce;for(le=re.lastIndexOf(Pe),le<0&&(le=0),Ue=0;Ue<le;++Ue)re.charCodeAt(Ue)>=128&&St("not-basic"),oe.push(re.charCodeAt(Ue));for(Ne=le>0?le+1:0;Ne<Mt;){for(Xe=At,Le=1,xe=Ht;Ne>=Mt&&St("invalid-input"),_e=Lt(re.charCodeAt(Ne++)),(_e>=Ht||_e>_t((jt-At)/Le))&&St("overflow"),At+=_e*Le,Fe=xe<=se?Ot:xe>=se+te?te:xe-se,!(_e<Fe);xe+=Ht)Ae=Ht-Fe,Le>_t(jt/Ae)&&St("overflow"),Le*=Ae;pe=oe.length+1,se=vt(At-Xe,pe,Xe==0),_t(At/pe)>jt-Qt&&St("overflow"),Qt+=_t(At/pe),At%=pe,oe.splice(At++,0,Qt)}return Ct(oe)}function tt(re){var pe,le,Ue,Ne,Xe,Le,xe,_e,Fe,Ae,oe,Mt,At,Qt,se,Kt=[];for(re=Pt(re),Mt=re.length,pe=me,le=0,Xe=ce,Le=0;Le<Mt;++Le)(oe=re[Le])<128&&Kt.push($t(oe));for(Ue=Ne=Kt.length,Ne&&Kt.push(Pe);Ue<Mt;){for(xe=jt,Le=0;Le<Mt;++Le)(oe=re[Le])>=pe&&oe<xe&&(xe=oe);for(At=Ue+1,xe-pe>_t((jt-le)/At)&&St("overflow"),le+=(xe-pe)*At,pe=xe,Le=0;Le<Mt;++Le)if(oe=re[Le],oe<pe&&++le>jt&&St("overflow"),oe==pe){for(_e=le,Fe=Ht;Ae=Fe<=Xe?Ot:Fe>=Xe+te?te:Fe-Xe,!(_e<Ae);Fe+=Ht)se=_e-Ae,Qt=Ht-Ae,Kt.push($t(Ft(Ae+se%Qt,0))),_e=_t(se/Qt);Kt.push($t(Ft(_e,0))),Xe=vt(le,At,Ue==Ne),le=0,++Ue}++le,++pe}return Kt.join("")}function st(re){return Nt(re,function(pe){return De.test(pe)?et(pe.slice(4).toLowerCase()):pe})}function rt(re){return Nt(re,function(pe){return Ve.test(pe)?"xn--"+tt(pe):pe})}var ut=typeof Vt=="object"&&Vt&&!Vt.nodeType&&Vt,ct=typeof qt=="object"&&qt&&!qt.nodeType&&qt,gt=typeof Rt=="object"&&Rt;gt.global!==gt&>.window!==gt&>.self!==gt||(Dt=gt);var ft,kt,jt=2147483647,Ht=36,Ot=1,te=26,ne=38,Xt=700,ce=72,me=128,Pe="-",De=/^xn--/,Ve=/[^\x20-\x7E]/,we=/[\x2E\u3002\uFF0E\uFF61]/g,Qe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ae=Ht-Ot,_t=Math.floor,$t=String.fromCharCode;if(ft={version:"1.4.1",ucs2:{decode:Pt,encode:Ct},decode:et,encode:tt,toASCII:rt,toUnicode:st},typeof Jt=="function"&&typeof Jt.amd=="object"&&Jt.amd)Jt("punycode",function(){return ft});else if(ut&&ct)if(qt.exports==ut)ct.exports=ft;else for(kt in ft)ft.hasOwnProperty(kt)&&(ut[kt]=ft[kt]);else Dt.punycode=ft})(this)}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(xt,qt,Vt){"use strict";function Rt(St,Et){return Object.prototype.hasOwnProperty.call(St,Et)}qt.exports=function(St,Et,Nt,Pt){Et=Et||"&",Nt=Nt||"=";var Ct={};if(typeof St!="string"||St.length===0)return Ct;var Lt=/\+/g;St=St.split(Et);var Ft=1e3;Pt&&typeof Pt.maxKeys=="number"&&(Ft=Pt.maxKeys);var vt=St.length;Ft>0&&vt>Ft&&(vt=Ft);for(var et=0;et<vt;++et){var tt,st,rt,ut,ct=St[et].replace(Lt,"%20"),gt=ct.indexOf(Nt);gt>=0?(tt=ct.substr(0,gt),st=ct.substr(gt+1)):(tt=ct,st=""),rt=decodeURIComponent(tt),ut=decodeURIComponent(st),Rt(Ct,rt)?Dt(Ct[rt])?Ct[rt].push(ut):Ct[rt]=[Ct[rt],ut]:Ct[rt]=ut}return Ct};var Dt=Array.isArray||function(St){return Object.prototype.toString.call(St)==="[object Array]"}},{}],176:[function(xt,qt,Vt){"use strict";function Rt(Nt,Pt){if(Nt.map)return Nt.map(Pt);for(var Ct=[],Lt=0;Lt<Nt.length;Lt++)Ct.push(Pt(Nt[Lt],Lt));return Ct}var Dt=function(Nt){switch(typeof Nt){case"string":return Nt;case"boolean":return Nt?"true":"false";case"number":return isFinite(Nt)?Nt:"";default:return""}};qt.exports=function(Nt,Pt,Ct,Lt){return Pt=Pt||"&",Ct=Ct||"=",Nt===null&&(Nt=void 0),typeof Nt=="object"?Rt(Et(Nt),function(Ft){var vt=encodeURIComponent(Dt(Ft))+Ct;return St(Nt[Ft])?Rt(Nt[Ft],function(et){return vt+encodeURIComponent(Dt(et))}).join(Pt):vt+encodeURIComponent(Dt(Nt[Ft]))}).join(Pt):Lt?encodeURIComponent(Dt(Lt))+Ct+encodeURIComponent(Dt(Nt)):""};var St=Array.isArray||function(Nt){return Object.prototype.toString.call(Nt)==="[object Array]"},Et=Object.keys||function(Nt){var Pt=[];for(var Ct in Nt)Object.prototype.hasOwnProperty.call(Nt,Ct)&&Pt.push(Ct);return Pt}},{}],177:[function(xt,qt,Vt){"use strict";Vt.decode=Vt.parse=xt("./decode"),Vt.encode=Vt.stringify=xt("./encode")},{"./decode":175,"./encode":176}],178:[function(xt,qt,Vt){qt.exports=xt("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(xt,qt,Vt){"use strict";function Rt(rt){if(!(this instanceof Rt))return new Rt(rt);Ft.call(this,rt),vt.call(this,rt),rt&&rt.readable===!1&&(this.readable=!1),rt&&rt.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,rt&&rt.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Dt)}function Dt(){this.allowHalfOpen||this._writableState.ended||Pt.nextTick(St,this)}function St(rt){rt.end()}var Et=xt("babel-runtime/core-js/object/keys"),Nt=function(rt){return rt&&rt.__esModule?rt:{default:rt}}(Et),Pt=xt("process-nextick-args"),Ct=Nt.default||function(rt){var ut=[];for(var ct in rt)ut.push(ct);return ut};qt.exports=Rt;var Lt=xt("core-util-is");Lt.inherits=xt("inherits");var Ft=xt("./_stream_readable"),vt=xt("./_stream_writable");Lt.inherits(Rt,Ft);for(var et=Ct(vt.prototype),tt=0;tt<et.length;tt++){var st=et[tt];Rt.prototype[st]||(Rt.prototype[st]=vt.prototype[st])}Object.defineProperty(Rt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Rt.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(rt){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=rt,this._writableState.destroyed=rt)}}),Rt.prototype._destroy=function(rt,ut){this.push(null),this.end(),Pt.nextTick(ut,rt)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(xt,qt,Vt){"use strict";function Rt(Et){if(!(this instanceof Rt))return new Rt(Et);Dt.call(this,Et)}qt.exports=Rt;var Dt=xt("./_stream_transform"),St=xt("core-util-is");St.inherits=xt("inherits"),St.inherits(Rt,Dt),Rt.prototype._transform=function(Et,Nt,Pt){Pt(null,Et)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(xt,qt,Vt){(function(Rt,Dt){"use strict";function St(Mt){return le.from(Mt)}function Et(Mt){return le.isBuffer(Mt)||Mt instanceof Ue}function Nt(Mt,At,Qt){if(typeof Mt.prependListener=="function")return Mt.prependListener(At,Qt);Mt._events&&Mt._events[At]?$t(Mt._events[At])?Mt._events[At].unshift(Qt):Mt._events[At]=[Qt,Mt._events[At]]:Mt.on(At,Qt)}function Pt(Mt,At){_t=_t||xt("./_stream_duplex"),Mt=Mt||{};var Qt=At instanceof _t;this.objectMode=!!Mt.objectMode,Qt&&(this.objectMode=this.objectMode||!!Mt.readableObjectMode);var se=Mt.highWaterMark,Kt=Mt.readableHighWaterMark,It=this.objectMode?16:16384;this.highWaterMark=se||se===0?se:Qt&&(Kt||Kt===0)?Kt:It,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _e,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Mt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Mt.encoding&&(xe||(xe=xt("string_decoder/").StringDecoder),this.decoder=new xe(Mt.encoding),this.encoding=Mt.encoding)}function Ct(Mt){if(_t=_t||xt("./_stream_duplex"),!(this instanceof Ct))return new Ct(Mt);this._readableState=new Pt(Mt,this),this.readable=!0,Mt&&(typeof Mt.read=="function"&&(this._read=Mt.read),typeof Mt.destroy=="function"&&(this._destroy=Mt.destroy)),pe.call(this)}function Lt(Mt,At,Qt,se,Kt){var It=Mt._readableState;if(At===null)It.reading=!1,rt(Mt,It);else{var bt;Kt||(bt=vt(It,At)),bt?Mt.emit("error",bt):It.objectMode||At&&At.length>0?(typeof At=="string"||It.objectMode||(0,Qe.default)(At)===le.prototype||(At=St(At)),se?It.endEmitted?Mt.emit("error",new Error("stream.unshift() after end event")):Ft(Mt,It,At,!0):It.ended?Mt.emit("error",new Error("stream.push() after EOF")):(It.reading=!1,It.decoder&&!Qt?(At=It.decoder.write(At),It.objectMode||At.length!==0?Ft(Mt,It,At,!1):gt(Mt,It)):Ft(Mt,It,At,!1))):se||(It.reading=!1)}return et(It)}function Ft(Mt,At,Qt,se){At.flowing&&At.length===0&&!At.sync?(Mt.emit("data",Qt),Mt.read(0)):(At.length+=At.objectMode?1:Qt.length,se?At.buffer.unshift(Qt):At.buffer.push(Qt),At.needReadable&&ut(Mt)),gt(Mt,At)}function vt(Mt,At){var Qt;return Et(At)||typeof At=="string"||At===void 0||Mt.objectMode||(Qt=new TypeError("Invalid non-string/buffer chunk")),Qt}function et(Mt){return!Mt.ended&&(Mt.needReadable||Mt.length<Mt.highWaterMark||Mt.length===0)}function tt(Mt){return Mt>=oe?Mt=oe:(Mt--,Mt|=Mt>>>1,Mt|=Mt>>>2,Mt|=Mt>>>4,Mt|=Mt>>>8,Mt|=Mt>>>16,Mt++),Mt}function st(Mt,At){return Mt<=0||At.length===0&&At.ended?0:At.objectMode?1:Mt!==Mt?At.flowing&&At.length?At.buffer.head.data.length:At.length:(Mt>At.highWaterMark&&(At.highWaterMark=tt(Mt)),Mt<=At.length?Mt:At.ended?At.length:(At.needReadable=!0,0))}function rt(Mt,At){if(!At.ended){if(At.decoder){var Qt=At.decoder.end();Qt&&Qt.length&&(At.buffer.push(Qt),At.length+=At.objectMode?1:Qt.length)}At.ended=!0,ut(Mt)}}function ut(Mt){var At=Mt._readableState;At.needReadable=!1,At.emittedReadable||(Le("emitReadable",At.flowing),At.emittedReadable=!0,At.sync?ae.nextTick(ct,Mt):ct(Mt))}function ct(Mt){Le("emit readable"),Mt.emit("readable"),te(Mt)}function gt(Mt,At){At.readingMore||(At.readingMore=!0,ae.nextTick(ft,Mt,At))}function ft(Mt,At){for(var Qt=At.length;!At.reading&&!At.flowing&&!At.ended&&At.length<At.highWaterMark&&(Le("maybeReadMore read 0"),Mt.read(0),Qt!==At.length);)Qt=At.length;At.readingMore=!1}function kt(Mt){return function(){var At=Mt._readableState;Le("pipeOnDrain",At.awaitDrain),At.awaitDrain&&At.awaitDrain--,At.awaitDrain===0&&re(Mt,"data")&&(At.flowing=!0,te(Mt))}}function jt(Mt){Le("readable nexttick read 0"),Mt.read(0)}function Ht(Mt,At){At.resumeScheduled||(At.resumeScheduled=!0,ae.nextTick(Ot,Mt,At))}function Ot(Mt,At){At.reading||(Le("resume read 0"),Mt.read(0)),At.resumeScheduled=!1,At.awaitDrain=0,Mt.emit("resume"),te(Mt),At.flowing&&!At.reading&&Mt.read(0)}function te(Mt){var At=Mt._readableState;for(Le("flow",At.flowing);At.flowing&&Mt.read()!==null;);}function ne(Mt,At){if(At.length===0)return null;var Qt;return At.objectMode?Qt=At.buffer.shift():!Mt||Mt>=At.length?(Qt=At.decoder?At.buffer.join(""):At.buffer.length===1?At.buffer.head.data:At.buffer.concat(At.length),At.buffer.clear()):Qt=Xt(Mt,At.buffer,At.decoder),Qt}function Xt(Mt,At,Qt){var se;return Mt<At.head.data.length?(se=At.head.data.slice(0,Mt),At.head.data=At.head.data.slice(Mt)):se=Mt===At.head.data.length?At.shift():Qt?ce(Mt,At):me(Mt,At),se}function ce(Mt,At){var Qt=At.head,se=1,Kt=Qt.data;for(Mt-=Kt.length;Qt=Qt.next;){var It=Qt.data,bt=Mt>It.length?It.length:Mt;if(bt===It.length?Kt+=It:Kt+=It.slice(0,Mt),(Mt-=bt)===0){bt===It.length?(++se,Qt.next?At.head=Qt.next:At.head=At.tail=null):(At.head=Qt,Qt.data=It.slice(bt));break}++se}return At.length-=se,Kt}function me(Mt,At){var Qt=le.allocUnsafe(Mt),se=At.head,Kt=1;for(se.data.copy(Qt),Mt-=se.data.length;se=se.next;){var It=se.data,bt=Mt>It.length?It.length:Mt;if(It.copy(Qt,Qt.length-Mt,0,bt),(Mt-=bt)===0){bt===It.length?(++Kt,se.next?At.head=se.next:At.head=At.tail=null):(At.head=se,se.data=It.slice(bt));break}++Kt}return At.length-=Kt,Qt}function Pe(Mt){var At=Mt._readableState;if(At.length>0)throw new Error('"endReadable()" called on non-empty stream');At.endEmitted||(At.ended=!0,ae.nextTick(De,At,Mt))}function De(Mt,At){Mt.endEmitted||Mt.length!==0||(Mt.endEmitted=!0,At.readable=!1,At.emit("end"))}function Ve(Mt,At){for(var Qt=0,se=Mt.length;Qt<se;Qt++)if(Mt[Qt]===At)return Qt;return-1}var we=xt("babel-runtime/core-js/object/get-prototype-of"),Qe=function(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}(we),ae=xt("process-nextick-args");qt.exports=Ct;var _t,$t=xt("isarray");Ct.ReadableState=Pt;var re=(xt("events").EventEmitter,function(Mt,At){return Mt.listeners(At).length}),pe=xt("./internal/streams/stream"),le=xt("safe-buffer").Buffer,Ue=Dt.Uint8Array||function(){},Ne=xt("core-util-is");Ne.inherits=xt("inherits");var Xe=xt("util"),Le=void 0;Le=Xe&&Xe.debuglog?Xe.debuglog("stream"):function(){};var xe,_e=xt("./internal/streams/BufferList"),Fe=xt("./internal/streams/destroy");Ne.inherits(Ct,pe);var Ae=["error","close","destroy","pause","resume"];Object.defineProperty(Ct.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Mt){this._readableState&&(this._readableState.destroyed=Mt)}}),Ct.prototype.destroy=Fe.destroy,Ct.prototype._undestroy=Fe.undestroy,Ct.prototype._destroy=function(Mt,At){this.push(null),At(Mt)},Ct.prototype.push=function(Mt,At){var Qt,se=this._readableState;return se.objectMode?Qt=!0:typeof Mt=="string"&&(At=At||se.defaultEncoding,At!==se.encoding&&(Mt=le.from(Mt,At),At=""),Qt=!0),Lt(this,Mt,At,!1,Qt)},Ct.prototype.unshift=function(Mt){return Lt(this,Mt,null,!0,!1)},Ct.prototype.isPaused=function(){return this._readableState.flowing===!1},Ct.prototype.setEncoding=function(Mt){return xe||(xe=xt("string_decoder/").StringDecoder),this._readableState.decoder=new xe(Mt),this._readableState.encoding=Mt,this};var oe=8388608;Ct.prototype.read=function(Mt){Le("read",Mt),Mt=parseInt(Mt,10);var At=this._readableState,Qt=Mt;if(Mt!==0&&(At.emittedReadable=!1),Mt===0&&At.needReadable&&(At.length>=At.highWaterMark||At.ended))return Le("read: emitReadable",At.length,At.ended),At.length===0&&At.ended?Pe(this):ut(this),null;if((Mt=st(Mt,At))===0&&At.ended)return At.length===0&&Pe(this),null;var se=At.needReadable;Le("need readable",se),(At.length===0||At.length-Mt<At.highWaterMark)&&(se=!0,Le("length less than watermark",se)),At.ended||At.reading?(se=!1,Le("reading or ended",se)):se&&(Le("do read"),At.reading=!0,At.sync=!0,At.length===0&&(At.needReadable=!0),this._read(At.highWaterMark),At.sync=!1,At.reading||(Mt=st(Qt,At)));var Kt;return Kt=Mt>0?ne(Mt,At):null,Kt===null?(At.needReadable=!0,Mt=0):At.length-=Mt,At.length===0&&(At.ended||(At.needReadable=!0),Qt!==Mt&&At.ended&&Pe(this)),Kt!==null&&this.emit("data",Kt),Kt},Ct.prototype._read=function(Mt){this.emit("error",new Error("_read() is not implemented"))},Ct.prototype.pipe=function(Mt,At){function Qt(Vn,Tn){Le("onunpipe"),Vn===Zt&&Tn&&Tn.hasUnpiped===!1&&(Tn.hasUnpiped=!0,Kt())}function se(){Le("onend"),Mt.end()}function Kt(){Le("cleanup"),Mt.removeListener("close",Bt),Mt.removeListener("finish",ie),Mt.removeListener("drain",dn),Mt.removeListener("error",bt),Mt.removeListener("unpipe",Qt),Zt.removeListener("end",se),Zt.removeListener("end",Wt),Zt.removeListener("data",It),ln=!0,!fe.awaitDrain||Mt._writableState&&!Mt._writableState.needDrain||dn()}function It(Vn){Le("ondata"),Bn=!1,Mt.write(Vn)!==!1||Bn||((fe.pipesCount===1&&fe.pipes===Mt||fe.pipesCount>1&&Ve(fe.pipes,Mt)!==-1)&&!ln&&(Le("false write response, pause",Zt._readableState.awaitDrain),Zt._readableState.awaitDrain++,Bn=!0),Zt.pause())}function bt(Vn){Le("onerror",Vn),Wt(),Mt.removeListener("error",bt),re(Mt,"error")===0&&Mt.emit("error",Vn)}function Bt(){Mt.removeListener("finish",ie),Wt()}function ie(){Le("onfinish"),Mt.removeListener("close",Bt),Wt()}function Wt(){Le("unpipe"),Zt.unpipe(Mt)}var Zt=this,fe=this._readableState;switch(fe.pipesCount){case 0:fe.pipes=Mt;break;case 1:fe.pipes=[fe.pipes,Mt];break;default:fe.pipes.push(Mt)}fe.pipesCount+=1,Le("pipe count=%d opts=%j",fe.pipesCount,At);var ke=(!At||At.end!==!1)&&Mt!==Rt.stdout&&Mt!==Rt.stderr,tn=ke?se:Wt;fe.endEmitted?ae.nextTick(tn):Zt.once("end",tn),Mt.on("unpipe",Qt);var dn=kt(Zt);Mt.on("drain",dn);var ln=!1,Bn=!1;return Zt.on("data",It),Nt(Mt,"error",bt),Mt.once("close",Bt),Mt.once("finish",ie),Mt.emit("pipe",Zt),fe.flowing||(Le("pipe resume"),Zt.resume()),Mt},Ct.prototype.unpipe=function(Mt){var At=this._readableState,Qt={hasUnpiped:!1};if(At.pipesCount===0)return this;if(At.pipesCount===1)return Mt&&Mt!==At.pipes?this:(Mt||(Mt=At.pipes),At.pipes=null,At.pipesCount=0,At.flowing=!1,Mt&&Mt.emit("unpipe",this,Qt),this);if(!Mt){var se=At.pipes,Kt=At.pipesCount;At.pipes=null,At.pipesCount=0,At.flowing=!1;for(var It=0;It<Kt;It++)se[It].emit("unpipe",this,Qt);return this}var bt=Ve(At.pipes,Mt);return bt===-1?this:(At.pipes.splice(bt,1),At.pipesCount-=1,At.pipesCount===1&&(At.pipes=At.pipes[0]),Mt.emit("unpipe",this,Qt),this)},Ct.prototype.on=function(Mt,At){var Qt=pe.prototype.on.call(this,Mt,At);if(Mt==="data")this._readableState.flowing!==!1&&this.resume();else if(Mt==="readable"){var se=this._readableState;se.endEmitted||se.readableListening||(se.readableListening=se.needReadable=!0,se.emittedReadable=!1,se.reading?se.length&&ut(this):ae.nextTick(jt,this))}return Qt},Ct.prototype.addListener=Ct.prototype.on,Ct.prototype.resume=function(){var Mt=this._readableState;return Mt.flowing||(Le("resume"),Mt.flowing=!0,Ht(this,Mt)),this},Ct.prototype.pause=function(){return Le("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Le("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ct.prototype.wrap=function(Mt){var At=this,Qt=this._readableState,se=!1;Mt.on("end",function(){if(Le("wrapped end"),Qt.decoder&&!Qt.ended){var bt=Qt.decoder.end();bt&&bt.length&&At.push(bt)}At.push(null)}),Mt.on("data",function(bt){Le("wrapped data"),Qt.decoder&&(bt=Qt.decoder.write(bt)),(!Qt.objectMode||bt!=null)&&(Qt.objectMode||bt&&bt.length)&&(At.push(bt)||(se=!0,Mt.pause()))});for(var Kt in Mt)this[Kt]===void 0&&typeof Mt[Kt]=="function"&&(this[Kt]=function(bt){return function(){return Mt[bt].apply(Mt,arguments)}}(Kt));for(var It=0;It<Ae.length;It++)Mt.on(Ae[It],this.emit.bind(this,Ae[It]));return this._read=function(bt){Le("wrapped _read",bt),se&&(se=!1,Mt.resume())},this},Object.defineProperty(Ct.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ct._fromList=ne}).call(this,xt("_process"),typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(xt,qt,Vt){"use strict";function Rt(Ct,Lt){var Ft=this._transformState;Ft.transforming=!1;var vt=Ft.writecb;if(!vt)return this.emit("error",new Error("write callback called multiple times"));Ft.writechunk=null,Ft.writecb=null,Lt!=null&&this.push(Lt),vt(Ct);var et=this._readableState;et.reading=!1,(et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}function Dt(Ct){if(!(this instanceof Dt))return new Dt(Ct);Nt.call(this,Ct),this._transformState={afterTransform:Rt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Ct&&(typeof Ct.transform=="function"&&(this._transform=Ct.transform),typeof Ct.flush=="function"&&(this._flush=Ct.flush)),this.on("prefinish",St)}function St(){var Ct=this;typeof this._flush=="function"?this._flush(function(Lt,Ft){Et(Ct,Lt,Ft)}):Et(this,null,null)}function Et(Ct,Lt,Ft){if(Lt)return Ct.emit("error",Lt);if(Ft!=null&&Ct.push(Ft),Ct._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(Ct._transformState.transforming)throw new Error("Calling transform done when still transforming");return Ct.push(null)}qt.exports=Dt;var Nt=xt("./_stream_duplex"),Pt=xt("core-util-is");Pt.inherits=xt("inherits"),Pt.inherits(Dt,Nt),Dt.prototype.push=function(Ct,Lt){return this._transformState.needTransform=!1,Nt.prototype.push.call(this,Ct,Lt)},Dt.prototype._transform=function(Ct,Lt,Ft){throw new Error("_transform() is not implemented")},Dt.prototype._write=function(Ct,Lt,Ft){var vt=this._transformState;if(vt.writecb=Ft,vt.writechunk=Ct,vt.writeencoding=Lt,!vt.transforming){var et=this._readableState;(vt.needTransform||et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}},Dt.prototype._read=function(Ct){var Lt=this._transformState;Lt.writechunk!==null&&Lt.writecb&&!Lt.transforming?(Lt.transforming=!0,this._transform(Lt.writechunk,Lt.writeencoding,Lt.afterTransform)):Lt.needTransform=!0},Dt.prototype._destroy=function(Ct,Lt){var Ft=this;Nt.prototype._destroy.call(this,Ct,function(vt){Lt(vt),Ft.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(xt,qt,Vt){(function(Rt,Dt){"use strict";function St(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function Et(Fe){var Ae=this;this.next=null,this.entry=null,this.finish=function(){ce(Ae,Fe)}}function Nt(Fe){return Xe.from(Fe)}function Pt(Fe){return Xe.isBuffer(Fe)||Fe instanceof Le}function Ct(){}function Lt(Fe,Ae){re=re||xt("./_stream_duplex"),Fe=Fe||{};var oe=Ae instanceof re;this.objectMode=!!Fe.objectMode,oe&&(this.objectMode=this.objectMode||!!Fe.writableObjectMode);var Mt=Fe.highWaterMark,At=Fe.writableHighWaterMark,Qt=this.objectMode?16:16384;this.highWaterMark=Mt||Mt===0?Mt:oe&&(At||At===0)?At:Qt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var se=Fe.decodeStrings===!1;this.decodeStrings=!se,this.defaultEncoding=Fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Kt){gt(Ae,Kt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Et(this)}function Ft(Fe){if(re=re||xt("./_stream_duplex"),!(_e.call(Ft,this)||this instanceof re))return new Ft(Fe);this._writableState=new Lt(Fe,this),this.writable=!0,Fe&&(typeof Fe.write=="function"&&(this._write=Fe.write),typeof Fe.writev=="function"&&(this._writev=Fe.writev),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy),typeof Fe.final=="function"&&(this._final=Fe.final)),Ne.call(this)}function vt(Fe,Ae){var oe=new Error("write after end");Fe.emit("error",oe),$t.nextTick(Ae,oe)}function et(Fe,Ae,oe,Mt){var At=!0,Qt=!1;return oe===null?Qt=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||Ae.objectMode||(Qt=new TypeError("Invalid non-string/buffer chunk")),Qt&&(Fe.emit("error",Qt),$t.nextTick(Mt,Qt),At=!1),At}function tt(Fe,Ae,oe){return Fe.objectMode||Fe.decodeStrings===!1||typeof Ae!="string"||(Ae=Xe.from(Ae,oe)),Ae}function st(Fe,Ae,oe,Mt,At,Qt){if(!oe){var se=tt(Ae,Mt,At);Mt!==se&&(oe=!0,At="buffer",Mt=se)}var Kt=Ae.objectMode?1:Mt.length;Ae.length+=Kt;var It=Ae.length<Ae.highWaterMark;if(It||(Ae.needDrain=!0),Ae.writing||Ae.corked){var bt=Ae.lastBufferedRequest;Ae.lastBufferedRequest={chunk:Mt,encoding:At,isBuf:oe,callback:Qt,next:null},bt?bt.next=Ae.lastBufferedRequest:Ae.bufferedRequest=Ae.lastBufferedRequest,Ae.bufferedRequestCount+=1}else rt(Fe,Ae,!1,Kt,Mt,At,Qt);return It}function rt(Fe,Ae,oe,Mt,At,Qt,se){Ae.writelen=Mt,Ae.writecb=se,Ae.writing=!0,Ae.sync=!0,oe?Fe._writev(At,Ae.onwrite):Fe._write(At,Qt,Ae.onwrite),Ae.sync=!1}function ut(Fe,Ae,oe,Mt,At){--Ae.pendingcb,oe?($t.nextTick(At,Mt),$t.nextTick(ne,Fe,Ae),Fe._writableState.errorEmitted=!0,Fe.emit("error",Mt)):(At(Mt),Fe._writableState.errorEmitted=!0,Fe.emit("error",Mt),ne(Fe,Ae))}function ct(Fe){Fe.writing=!1,Fe.writecb=null,Fe.length-=Fe.writelen,Fe.writelen=0}function gt(Fe,Ae){var oe=Fe._writableState,Mt=oe.sync,At=oe.writecb;if(ct(oe),Ae)ut(Fe,oe,Mt,Ae,At);else{var Qt=Ht(oe);Qt||oe.corked||oe.bufferProcessing||!oe.bufferedRequest||jt(Fe,oe),Mt?pe(ft,Fe,oe,Qt,At):ft(Fe,oe,Qt,At)}}function ft(Fe,Ae,oe,Mt){oe||kt(Fe,Ae),Ae.pendingcb--,Mt(),ne(Fe,Ae)}function kt(Fe,Ae){Ae.length===0&&Ae.needDrain&&(Ae.needDrain=!1,Fe.emit("drain"))}function jt(Fe,Ae){Ae.bufferProcessing=!0;var oe=Ae.bufferedRequest;if(Fe._writev&&oe&&oe.next){var Mt=Ae.bufferedRequestCount,At=new Array(Mt),Qt=Ae.corkedRequestsFree;Qt.entry=oe;for(var se=0,Kt=!0;oe;)At[se]=oe,oe.isBuf||(Kt=!1),oe=oe.next,se+=1;At.allBuffers=Kt,rt(Fe,Ae,!0,Ae.length,At,"",Qt.finish),Ae.pendingcb++,Ae.lastBufferedRequest=null,Qt.next?(Ae.corkedRequestsFree=Qt.next,Qt.next=null):Ae.corkedRequestsFree=new Et(Ae),Ae.bufferedRequestCount=0}else{for(;oe;){var It=oe.chunk,bt=oe.encoding,Bt=oe.callback;if(rt(Fe,Ae,!1,Ae.objectMode?1:It.length,It,bt,Bt),oe=oe.next,Ae.bufferedRequestCount--,Ae.writing)break}oe===null&&(Ae.lastBufferedRequest=null)}Ae.bufferedRequest=oe,Ae.bufferProcessing=!1}function Ht(Fe){return Fe.ending&&Fe.length===0&&Fe.bufferedRequest===null&&!Fe.finished&&!Fe.writing}function Ot(Fe,Ae){Fe._final(function(oe){Ae.pendingcb--,oe&&Fe.emit("error",oe),Ae.prefinished=!0,Fe.emit("prefinish"),ne(Fe,Ae)})}function te(Fe,Ae){Ae.prefinished||Ae.finalCalled||(typeof Fe._final=="function"?(Ae.pendingcb++,Ae.finalCalled=!0,$t.nextTick(Ot,Fe,Ae)):(Ae.prefinished=!0,Fe.emit("prefinish")))}function ne(Fe,Ae){var oe=Ht(Ae);return oe&&(te(Fe,Ae),Ae.pendingcb===0&&(Ae.finished=!0,Fe.emit("finish"))),oe}function Xt(Fe,Ae,oe){Ae.ending=!0,ne(Fe,Ae),oe&&(Ae.finished?$t.nextTick(oe):Fe.once("finish",oe)),Ae.ended=!0,Fe.writable=!1}function ce(Fe,Ae,oe){var Mt=Fe.entry;for(Fe.entry=null;Mt;){var At=Mt.callback;Ae.pendingcb--,At(oe),Mt=Mt.next}Ae.corkedRequestsFree?Ae.corkedRequestsFree.next=Fe:Ae.corkedRequestsFree=Fe}var me=xt("babel-runtime/core-js/object/define-property"),Pe=St(me),De=xt("babel-runtime/core-js/symbol/has-instance"),Ve=St(De),we=xt("babel-runtime/core-js/symbol"),Qe=St(we),ae=xt("babel-runtime/core-js/set-immediate"),_t=St(ae),$t=xt("process-nextick-args");qt.exports=Ft;var re,pe=!Rt.browser&&["v0.10","v0.9."].indexOf(Rt.version.slice(0,5))>-1?_t.default:$t.nextTick;Ft.WritableState=Lt;var le=xt("core-util-is");le.inherits=xt("inherits");var Ue={deprecate:xt("util-deprecate")},Ne=xt("./internal/streams/stream"),Xe=xt("safe-buffer").Buffer,Le=Dt.Uint8Array||function(){},xe=xt("./internal/streams/destroy");le.inherits(Ft,Ne),Lt.prototype.getBuffer=function(){for(var Fe=this.bufferedRequest,Ae=[];Fe;)Ae.push(Fe),Fe=Fe.next;return Ae},function(){try{Object.defineProperty(Lt.prototype,"buffer",{get:Ue.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Fe){}}();var _e;typeof Qe.default=="function"&&Ve.default&&typeof Function.prototype[Ve.default]=="function"?(_e=Function.prototype[Ve.default],(0,Pe.default)(Ft,Ve.default,{value:function(Fe){return!!_e.call(this,Fe)||this===Ft&&Fe&&Fe._writableState instanceof Lt}})):_e=function(Fe){return Fe instanceof this},Ft.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Ft.prototype.write=function(Fe,Ae,oe){var Mt=this._writableState,At=!1,Qt=!Mt.objectMode&&Pt(Fe);return Qt&&!Xe.isBuffer(Fe)&&(Fe=Nt(Fe)),typeof Ae=="function"&&(oe=Ae,Ae=null),Qt?Ae="buffer":Ae||(Ae=Mt.defaultEncoding),typeof oe!="function"&&(oe=Ct),Mt.ended?vt(this,oe):(Qt||et(this,Mt,Fe,oe))&&(Mt.pendingcb++,At=st(this,Mt,Qt,Fe,Ae,oe)),At},Ft.prototype.cork=function(){this._writableState.corked++},Ft.prototype.uncork=function(){var Fe=this._writableState;Fe.corked&&(Fe.corked--,Fe.writing||Fe.corked||Fe.finished||Fe.bufferProcessing||!Fe.bufferedRequest||jt(this,Fe))},Ft.prototype.setDefaultEncoding=function(Fe){if(typeof Fe=="string"&&(Fe=Fe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Fe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Fe);return this._writableState.defaultEncoding=Fe,this},Object.defineProperty(Ft.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ft.prototype._write=function(Fe,Ae,oe){oe(new Error("_write() is not implemented"))},Ft.prototype._writev=null,Ft.prototype.end=function(Fe,Ae,oe){var Mt=this._writableState;typeof Fe=="function"?(oe=Fe,Fe=null,Ae=null):typeof Ae=="function"&&(oe=Ae,Ae=null),Fe!=null&&this.write(Fe,Ae),Mt.corked&&(Mt.corked=1,this.uncork()),Mt.ending||Mt.finished||Xt(this,Mt,oe)},Object.defineProperty(Ft.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Fe){this._writableState&&(this._writableState.destroyed=Fe)}}),Ft.prototype.destroy=xe.destroy,Ft.prototype._undestroy=xe.undestroy,Ft.prototype._destroy=function(Fe,Ae){this.end(),Ae(Fe)}}).call(this,xt("_process"),typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(xt,qt,Vt){"use strict";function Rt(Nt,Pt){if(!(Nt instanceof Pt))throw new TypeError("Cannot call a class as a function")}function Dt(Nt,Pt,Ct){Nt.copy(Pt,Ct)}var St=xt("safe-buffer").Buffer,Et=xt("util");qt.exports=function(){function Nt(){Rt(this,Nt),this.head=null,this.tail=null,this.length=0}return Nt.prototype.push=function(Pt){var Ct={data:Pt,next:null};this.length>0?this.tail.next=Ct:this.head=Ct,this.tail=Ct,++this.length},Nt.prototype.unshift=function(Pt){var Ct={data:Pt,next:this.head};this.length===0&&(this.tail=Ct),this.head=Ct,++this.length},Nt.prototype.shift=function(){if(this.length!==0){var Pt=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Pt}},Nt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Nt.prototype.join=function(Pt){if(this.length===0)return"";for(var Ct=this.head,Lt=""+Ct.data;Ct=Ct.next;)Lt+=Pt+Ct.data;return Lt},Nt.prototype.concat=function(Pt){if(this.length===0)return St.alloc(0);if(this.length===1)return this.head.data;for(var Ct=St.allocUnsafe(Pt>>>0),Lt=this.head,Ft=0;Lt;)Dt(Lt.data,Ct,Ft),Ft+=Lt.data.length,Lt=Lt.next;return Ct},Nt}(),Et&&Et.inspect&&Et.inspect.custom&&(qt.exports.prototype[Et.inspect.custom]=function(){var Nt=Et.inspect({length:this.length});return this.constructor.name+" "+Nt})},{"safe-buffer":193,util:36}],185:[function(xt,qt,Vt){"use strict";function Rt(Nt,Pt){var Ct=this,Lt=this._readableState&&this._readableState.destroyed,Ft=this._writableState&&this._writableState.destroyed;return Lt||Ft?(Pt?Pt(Nt):!Nt||this._writableState&&this._writableState.errorEmitted||Et.nextTick(St,this,Nt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Nt||null,function(vt){!Pt&&vt?(Et.nextTick(St,Ct,vt),Ct._writableState&&(Ct._writableState.errorEmitted=!0)):Pt&&Pt(vt)}),this)}function Dt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function St(Nt,Pt){Nt.emit("error",Pt)}var Et=xt("process-nextick-args");qt.exports={destroy:Rt,undestroy:Dt}},{"process-nextick-args":172}],186:[function(xt,qt,Vt){"use strict";qt.exports=xt("events").EventEmitter},{events:158}],187:[function(xt,qt,Vt){qt.exports=xt("./readable").PassThrough},{"./readable":188}],188:[function(xt,qt,Vt){Vt=qt.exports=xt("./lib/_stream_readable.js"),Vt.Stream=Vt,Vt.Readable=Vt,Vt.Writable=xt("./lib/_stream_writable.js"),Vt.Duplex=xt("./lib/_stream_duplex.js"),Vt.Transform=xt("./lib/_stream_transform.js"),Vt.PassThrough=xt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(xt,qt,Vt){qt.exports=xt("./readable").Transform},{"./readable":188}],190:[function(xt,qt,Vt){qt.exports=xt("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(xt,qt,Vt){var Rt=function(){return this}()||Function("return this")(),Dt=Rt.regeneratorRuntime&&Object.getOwnPropertyNames(Rt).indexOf("regeneratorRuntime")>=0,St=Dt&&Rt.regeneratorRuntime;if(Rt.regeneratorRuntime=void 0,qt.exports=xt("./runtime"),Dt)Rt.regeneratorRuntime=St;else try{delete Rt.regeneratorRuntime}catch(Et){Rt.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(_t,$t,re,pe){var le=$t&&$t.prototype instanceof Et?$t:Et,Ue=Object.create(le.prototype),Ne=new st(pe||[]);return Ue._invoke=Ft(_t,re,Ne),Ue}function St(_t,$t,re){try{return{type:"normal",arg:_t.call($t,re)}}catch(pe){return{type:"throw",arg:pe}}}function Et(){}function Nt(){}function Pt(){}function Ct(_t){["next","throw","return"].forEach(function($t){_t[$t]=function(re){return this._invoke($t,re)}})}function Lt(_t){function $t(le,Ue,Ne,Xe){var Le=St(_t[le],_t,Ue);if(Le.type!=="throw"){var xe=Le.arg,_e=xe.value;return _e&&typeof _e=="object"&&ft.call(_e,"__await")?Promise.resolve(_e.__await).then(function(Fe){$t("next",Fe,Ne,Xe)},function(Fe){$t("throw",Fe,Ne,Xe)}):Promise.resolve(_e).then(function(Fe){xe.value=Fe,Ne(xe)},Xe)}Xe(Le.arg)}function re(le,Ue){function Ne(){return new Promise(function(Xe,Le){$t(le,Ue,Xe,Le)})}return pe=pe?pe.then(Ne,Ne):Ne()}var pe;this._invoke=re}function Ft(_t,$t,re){var pe=Xt;return function(le,Ue){if(pe===me)throw new Error("Generator is already running");if(pe===Pe){if(le==="throw")throw Ue;return ut()}for(re.method=le,re.arg=Ue;;){var Ne=re.delegate;if(Ne){var Xe=vt(Ne,re);if(Xe){if(Xe===De)continue;return Xe}}if(re.method==="next")re.sent=re._sent=re.arg;else if(re.method==="throw"){if(pe===Xt)throw pe=Pe,re.arg;re.dispatchException(re.arg)}else re.method==="return"&&re.abrupt("return",re.arg);pe=me;var Le=St(_t,$t,re);if(Le.type==="normal"){if(pe=re.done?Pe:ce,Le.arg===De)continue;return{value:Le.arg,done:re.done}}Le.type==="throw"&&(pe=Pe,re.method="throw",re.arg=Le.arg)}}}function vt(_t,$t){var re=_t.iterator[$t.method];if(re===ct){if($t.delegate=null,$t.method==="throw"){if(_t.iterator.return&&($t.method="return",$t.arg=ct,vt(_t,$t),$t.method==="throw"))return De;$t.method="throw",$t.arg=new TypeError("The iterator does not provide a 'throw' method")}return De}var pe=St(re,_t.iterator,$t.arg);if(pe.type==="throw")return $t.method="throw",$t.arg=pe.arg,$t.delegate=null,De;var le=pe.arg;return le?le.done?($t[_t.resultName]=le.value,$t.next=_t.nextLoc,$t.method!=="return"&&($t.method="next",$t.arg=ct),$t.delegate=null,De):le:($t.method="throw",$t.arg=new TypeError("iterator result is not an object"),$t.delegate=null,De)}function et(_t){var $t={tryLoc:_t[0]};1 in _t&&($t.catchLoc=_t[1]),2 in _t&&($t.finallyLoc=_t[2],$t.afterLoc=_t[3]),this.tryEntries.push($t)}function tt(_t){var $t=_t.completion||{};$t.type="normal",delete $t.arg,_t.completion=$t}function st(_t){this.tryEntries=[{tryLoc:"root"}],_t.forEach(et,this),this.reset(!0)}function rt(_t){if(_t){var $t=_t[jt];if($t)return $t.call(_t);if(typeof _t.next=="function")return _t;if(!isNaN(_t.length)){var re=-1,pe=function le(){for(;++re<_t.length;)if(ft.call(_t,re))return le.value=_t[re],le.done=!1,le;return le.value=ct,le.done=!0,le};return pe.next=pe}}return{next:ut}}function ut(){return{value:ct,done:!0}}var ct,gt=Object.prototype,ft=gt.hasOwnProperty,kt=typeof Symbol=="function"?Symbol:{},jt=kt.iterator||"@@iterator",Ht=kt.asyncIterator||"@@asyncIterator",Ot=kt.toStringTag||"@@toStringTag",te=typeof qt=="object",ne=Rt.regeneratorRuntime;if(ne)return void(te&&(qt.exports=ne));ne=Rt.regeneratorRuntime=te?qt.exports:{},ne.wrap=Dt;var Xt="suspendedStart",ce="suspendedYield",me="executing",Pe="completed",De={},Ve={};Ve[jt]=function(){return this};var we=Object.getPrototypeOf,Qe=we&&we(we(rt([])));Qe&&Qe!==gt&&ft.call(Qe,jt)&&(Ve=Qe);var ae=Pt.prototype=Et.prototype=Object.create(Ve);Nt.prototype=ae.constructor=Pt,Pt.constructor=Nt,Pt[Ot]=Nt.displayName="GeneratorFunction",ne.isGeneratorFunction=function(_t){var $t=typeof _t=="function"&&_t.constructor;return!!$t&&($t===Nt||($t.displayName||$t.name)==="GeneratorFunction")},ne.mark=function(_t){return Object.setPrototypeOf?Object.setPrototypeOf(_t,Pt):(_t.__proto__=Pt,Ot in _t||(_t[Ot]="GeneratorFunction")),_t.prototype=Object.create(ae),_t},ne.awrap=function(_t){return{__await:_t}},Ct(Lt.prototype),Lt.prototype[Ht]=function(){return this},ne.AsyncIterator=Lt,ne.async=function(_t,$t,re,pe){var le=new Lt(Dt(_t,$t,re,pe));return ne.isGeneratorFunction($t)?le:le.next().then(function(Ue){return Ue.done?Ue.value:le.next()})},Ct(ae),ae[Ot]="Generator",ae[jt]=function(){return this},ae.toString=function(){return"[object Generator]"},ne.keys=function(_t){var $t=[];for(var re in _t)$t.push(re);return $t.reverse(),function pe(){for(;$t.length;){var le=$t.pop();if(le in _t)return pe.value=le,pe.done=!1,pe}return pe.done=!0,pe}},ne.values=rt,st.prototype={constructor:st,reset:function(_t){if(this.prev=0,this.next=0,this.sent=this._sent=ct,this.done=!1,this.delegate=null,this.method="next",this.arg=ct,this.tryEntries.forEach(tt),!_t)for(var $t in this)$t.charAt(0)==="t"&&ft.call(this,$t)&&!isNaN(+$t.slice(1))&&(this[$t]=ct)},stop:function(){this.done=!0;var _t=this.tryEntries[0],$t=_t.completion;if($t.type==="throw")throw $t.arg;return this.rval},dispatchException:function(_t){function $t(Le,xe){return Ue.type="throw",Ue.arg=_t,re.next=Le,xe&&(re.method="next",re.arg=ct),!!xe}if(this.done)throw _t;for(var re=this,pe=this.tryEntries.length-1;pe>=0;--pe){var le=this.tryEntries[pe],Ue=le.completion;if(le.tryLoc==="root")return $t("end");if(le.tryLoc<=this.prev){var Ne=ft.call(le,"catchLoc"),Xe=ft.call(le,"finallyLoc");if(Ne&&Xe){if(this.prev<le.catchLoc)return $t(le.catchLoc,!0);if(this.prev<le.finallyLoc)return $t(le.finallyLoc)}else if(Ne){if(this.prev<le.catchLoc)return $t(le.catchLoc,!0)}else{if(!Xe)throw new Error("try statement without catch or finally");if(this.prev<le.finallyLoc)return $t(le.finallyLoc)}}}},abrupt:function(_t,$t){for(var re=this.tryEntries.length-1;re>=0;--re){var pe=this.tryEntries[re];if(pe.tryLoc<=this.prev&&ft.call(pe,"finallyLoc")&&this.prev<pe.finallyLoc){var le=pe;break}}le&&(_t==="break"||_t==="continue")&&le.tryLoc<=$t&&$t<=le.finallyLoc&&(le=null);var Ue=le?le.completion:{};return Ue.type=_t,Ue.arg=$t,le?(this.method="next",this.next=le.finallyLoc,De):this.complete(Ue)},complete:function(_t,$t){if(_t.type==="throw")throw _t.arg;return _t.type==="break"||_t.type==="continue"?this.next=_t.arg:_t.type==="return"?(this.rval=this.arg=_t.arg,this.method="return",this.next="end"):_t.type==="normal"&&$t&&(this.next=$t),De},finish:function(_t){for(var $t=this.tryEntries.length-1;$t>=0;--$t){var re=this.tryEntries[$t];if(re.finallyLoc===_t)return this.complete(re.completion,re.afterLoc),tt(re),De}},catch:function(_t){for(var $t=this.tryEntries.length-1;$t>=0;--$t){var re=this.tryEntries[$t];if(re.tryLoc===_t){var pe=re.completion;if(pe.type==="throw"){var le=pe.arg;tt(re)}return le}}throw new Error("illegal catch attempt")},delegateYield:function(_t,$t,re){return this.delegate={iterator:rt(_t),resultName:$t,nextLoc:re},this.method==="next"&&(this.arg=ct),De}}})(function(){return this}()||Function("return this")())},{}],193:[function(xt,qt,Vt){function Rt(Nt,Pt){for(var Ct in Nt)Pt[Ct]=Nt[Ct]}function Dt(Nt,Pt,Ct){return Et(Nt,Pt,Ct)}var St=xt("buffer"),Et=St.Buffer;Et.from&&Et.alloc&&Et.allocUnsafe&&Et.allocUnsafeSlow?qt.exports=St:(Rt(St,Vt),Vt.Buffer=Dt),Rt(Et,Dt),Dt.from=function(Nt,Pt,Ct){if(typeof Nt=="number")throw new TypeError("Argument must not be a number");return Et(Nt,Pt,Ct)},Dt.alloc=function(Nt,Pt,Ct){if(typeof Nt!="number")throw new TypeError("Argument must be a number");var Lt=Et(Nt);return Pt!==void 0?typeof Ct=="string"?Lt.fill(Pt,Ct):Lt.fill(Pt):Lt.fill(0),Lt},Dt.allocUnsafe=function(Nt){if(typeof Nt!="number")throw new TypeError("Argument must be a number");return Et(Nt)},Dt.allocUnsafeSlow=function(Nt){if(typeof Nt!="number")throw new TypeError("Argument must be a number");return St.SlowBuffer(Nt)}},{buffer:38}],194:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(ut){return ut&&ut.__esModule?ut:{default:ut}}var St=xt("babel-runtime/core-js/string/from-code-point"),Et=Dt(St),Nt=xt("babel-runtime/core-js/json/stringify"),Pt=Dt(Nt),Ct=xt("babel-runtime/helpers/typeof"),Lt=Dt(Ct),Ft=xt("babel-runtime/core-js/object/define-property"),vt=Dt(Ft),et=xt("babel-runtime/core-js/object/keys"),tt=Dt(et),st=xt("babel-runtime/core-js/object/create"),rt=Dt(st);(function(ut){function ct(Wt,Zt){if(!(this instanceof ct))return new ct(Wt,Zt);var fe=this;ft(fe),fe.q=fe.c="",fe.bufferCheckPosition=ut.MAX_BUFFER_LENGTH,fe.opt=Zt||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Wt,fe.noscript=!(!Wt&&!fe.opt.noscript),fe.state=Bt.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,rt.default)(ut.XML_ENTITIES):(0,rt.default)(ut.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,rt.default)(Qt)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),me(fe,"onready")}function gt(Wt){for(var Zt=Math.max(ut.MAX_BUFFER_LENGTH,10),fe=0,ke=0,tn=xe.length;ke<tn;ke++){var dn=Wt[xe[ke]].length;if(dn>Zt)switch(xe[ke]){case"textNode":De(Wt);break;case"cdata":Pe(Wt,"oncdata",Wt.cdata),Wt.cdata="";break;case"script":Pe(Wt,"onscript",Wt.script),Wt.script="";break;default:we(Wt,"Max buffer length exceeded: "+xe[ke])}fe=Math.max(fe,dn)}var ln=ut.MAX_BUFFER_LENGTH-fe;Wt.bufferCheckPosition=ln+Wt.position}function ft(Wt){for(var Zt=0,fe=xe.length;Zt<fe;Zt++)Wt[xe[Zt]]=""}function kt(Wt){De(Wt),Wt.cdata!==""&&(Pe(Wt,"oncdata",Wt.cdata),Wt.cdata=""),Wt.script!==""&&(Pe(Wt,"onscript",Wt.script),Wt.script="")}function jt(Wt,Zt){return new Ht(Wt,Zt)}function Ht(Wt,Zt){if(!(this instanceof Ht))return new Ht(Wt,Zt);_e.apply(this),this._parser=new ct(Wt,Zt),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(ke){fe.emit("error",ke),fe._parser.error=null},this._decoder=null,Fe.forEach(function(ke){(0,vt.default)(fe,"on"+ke,{get:function(){return fe._parser["on"+ke]},set:function(tn){if(!tn)return fe.removeAllListeners(ke),fe._parser["on"+ke]=tn,tn;fe.on(ke,tn)},enumerable:!0,configurable:!1})})}function Ot(Wt){return Wt===" "||Wt===`
|
|
`||Wt==="\r"||Wt===" "}function te(Wt){return Wt==='"'||Wt==="'"}function ne(Wt){return Wt===">"||Ot(Wt)}function Xt(Wt,Zt){return Wt.test(Zt)}function ce(Wt,Zt){return!Xt(Wt,Zt)}function me(Wt,Zt,fe){Wt[Zt]&&Wt[Zt](fe)}function Pe(Wt,Zt,fe){Wt.textNode&&De(Wt),me(Wt,Zt,fe)}function De(Wt){Wt.textNode=Ve(Wt.opt,Wt.textNode),Wt.textNode&&me(Wt,"ontext",Wt.textNode),Wt.textNode=""}function Ve(Wt,Zt){return Wt.trim&&(Zt=Zt.trim()),Wt.normalize&&(Zt=Zt.replace(/\s+/g," ")),Zt}function we(Wt,Zt){return De(Wt),Wt.trackPosition&&(Zt+=`
|
|
Line: `+Wt.line+`
|
|
Column: `+Wt.column+`
|
|
Char: `+Wt.c),Zt=new Error(Zt),Wt.error=Zt,me(Wt,"onerror",Zt),Wt}function Qe(Wt){return Wt.sawRoot&&!Wt.closedRoot&&ae(Wt,"Unclosed root tag"),Wt.state!==Bt.BEGIN&&Wt.state!==Bt.BEGIN_WHITESPACE&&Wt.state!==Bt.TEXT&&we(Wt,"Unexpected end"),De(Wt),Wt.c="",Wt.closed=!0,me(Wt,"onend"),ct.call(Wt,Wt.strict,Wt.opt),Wt}function ae(Wt,Zt){if((Wt===void 0?"undefined":(0,Lt.default)(Wt))!=="object"||!(Wt instanceof ct))throw new Error("bad call to strictFail");Wt.strict&&we(Wt,Zt)}function _t(Wt){Wt.strict||(Wt.tagName=Wt.tagName[Wt.looseCase]());var Zt=Wt.tags[Wt.tags.length-1]||Wt,fe=Wt.tag={name:Wt.tagName,attributes:{}};Wt.opt.xmlns&&(fe.ns=Zt.ns),Wt.attribList.length=0,Pe(Wt,"onopentagstart",fe)}function $t(Wt,Zt){var fe=Wt.indexOf(":"),ke=fe<0?["",Wt]:Wt.split(":"),tn=ke[0],dn=ke[1];return Zt&&Wt==="xmlns"&&(tn="xmlns",dn=""),{prefix:tn,local:dn}}function re(Wt){if(Wt.strict||(Wt.attribName=Wt.attribName[Wt.looseCase]()),Wt.attribList.indexOf(Wt.attribName)!==-1||Wt.tag.attributes.hasOwnProperty(Wt.attribName))return void(Wt.attribName=Wt.attribValue="");if(Wt.opt.xmlns){var Zt=$t(Wt.attribName,!0),fe=Zt.prefix,ke=Zt.local;if(fe==="xmlns")if(ke==="xml"&&Wt.attribValue!==Mt)ae(Wt,"xml: prefix must be bound to "+Mt+`
|
|
Actual: `+Wt.attribValue);else if(ke==="xmlns"&&Wt.attribValue!==At)ae(Wt,"xmlns: prefix must be bound to "+At+`
|
|
Actual: `+Wt.attribValue);else{var tn=Wt.tag,dn=Wt.tags[Wt.tags.length-1]||Wt;tn.ns===dn.ns&&(tn.ns=(0,rt.default)(dn.ns)),tn.ns[ke]=Wt.attribValue}Wt.attribList.push([Wt.attribName,Wt.attribValue])}else Wt.tag.attributes[Wt.attribName]=Wt.attribValue,Pe(Wt,"onattribute",{name:Wt.attribName,value:Wt.attribValue});Wt.attribName=Wt.attribValue=""}function pe(Wt,Zt){if(Wt.opt.xmlns){var fe=Wt.tag,ke=$t(Wt.tagName);fe.prefix=ke.prefix,fe.local=ke.local,fe.uri=fe.ns[ke.prefix]||"",fe.prefix&&!fe.uri&&(ae(Wt,"Unbound namespace prefix: "+(0,Pt.default)(Wt.tagName)),fe.uri=ke.prefix);var tn=Wt.tags[Wt.tags.length-1]||Wt;fe.ns&&tn.ns!==fe.ns&&(0,tt.default)(fe.ns).forEach(function(Ni){Pe(Wt,"onopennamespace",{prefix:Ni,uri:fe.ns[Ni]})});for(var dn=0,ln=Wt.attribList.length;dn<ln;dn++){var Bn=Wt.attribList[dn],Vn=Bn[0],Tn=Bn[1],un=$t(Vn,!0),si=un.prefix,ei=un.local,fi=si===""?"":fe.ns[si]||"",bi={name:Vn,value:Tn,prefix:si,local:ei,uri:fi};si&&si!=="xmlns"&&!fi&&(ae(Wt,"Unbound namespace prefix: "+(0,Pt.default)(si)),bi.uri=si),Wt.tag.attributes[Vn]=bi,Pe(Wt,"onattribute",bi)}Wt.attribList.length=0}Wt.tag.isSelfClosing=!!Zt,Wt.sawRoot=!0,Wt.tags.push(Wt.tag),Pe(Wt,"onopentag",Wt.tag),Zt||(Wt.noscript||Wt.tagName.toLowerCase()!=="script"?Wt.state=Bt.TEXT:Wt.state=Bt.SCRIPT,Wt.tag=null,Wt.tagName=""),Wt.attribName=Wt.attribValue="",Wt.attribList.length=0}function le(Wt){if(!Wt.tagName)return ae(Wt,"Weird empty close tag."),Wt.textNode+="</>",void(Wt.state=Bt.TEXT);if(Wt.script){if(Wt.tagName!=="script")return Wt.script+="</"+Wt.tagName+">",Wt.tagName="",void(Wt.state=Bt.SCRIPT);Pe(Wt,"onscript",Wt.script),Wt.script=""}var Zt=Wt.tags.length,fe=Wt.tagName;Wt.strict||(fe=fe[Wt.looseCase]());for(var ke=fe;Zt--&&Wt.tags[Zt].name!==ke;)ae(Wt,"Unexpected close tag");if(Zt<0)return ae(Wt,"Unmatched closing tag: "+Wt.tagName),Wt.textNode+="</"+Wt.tagName+">",void(Wt.state=Bt.TEXT);Wt.tagName=fe;for(var tn=Wt.tags.length;tn-- >Zt;){var dn=Wt.tag=Wt.tags.pop();Wt.tagName=Wt.tag.name,Pe(Wt,"onclosetag",Wt.tagName);var ln={};for(var Bn in dn.ns)ln[Bn]=dn.ns[Bn];var Vn=Wt.tags[Wt.tags.length-1]||Wt;Wt.opt.xmlns&&dn.ns!==Vn.ns&&(0,tt.default)(dn.ns).forEach(function(Tn){var un=dn.ns[Tn];Pe(Wt,"onclosenamespace",{prefix:Tn,uri:un})})}Zt===0&&(Wt.closedRoot=!0),Wt.tagName=Wt.attribValue=Wt.attribName="",Wt.attribList.length=0,Wt.state=Bt.TEXT}function Ue(Wt){var Zt,fe=Wt.entity,ke=fe.toLowerCase(),tn="";return Wt.ENTITIES[fe]?Wt.ENTITIES[fe]:Wt.ENTITIES[ke]?Wt.ENTITIES[ke]:(fe=ke,fe.charAt(0)==="#"&&(fe.charAt(1)==="x"?(fe=fe.slice(2),Zt=parseInt(fe,16),tn=Zt.toString(16)):(fe=fe.slice(1),Zt=parseInt(fe,10),tn=Zt.toString(10))),fe=fe.replace(/^0+/,""),isNaN(Zt)||tn.toLowerCase()!==fe?(ae(Wt,"Invalid character entity"),"&"+Wt.entity+";"):(0,Et.default)(Zt))}function Ne(Wt,Zt){Zt==="<"?(Wt.state=Bt.OPEN_WAKA,Wt.startTagPosition=Wt.position):Ot(Zt)||(ae(Wt,"Non-whitespace before first tag."),Wt.textNode=Zt,Wt.state=Bt.TEXT)}function Xe(Wt,Zt){var fe="";return Zt<Wt.length&&(fe=Wt.charAt(Zt)),fe}function Le(Wt){var Zt=this;if(this.error)throw this.error;if(Zt.closed)return we(Zt,"Cannot write after close. Assign an onready handler.");if(Wt===null)return Qe(Zt);(Wt===void 0?"undefined":(0,Lt.default)(Wt))==="object"&&(Wt=Wt.toString());for(var fe=0,ke="";ke=Xe(Wt,fe++),Zt.c=ke,!!ke;)switch(Zt.trackPosition&&(Zt.position++,ke===`
|
|
`?(Zt.line++,Zt.column=0):Zt.column++),Zt.state){case Bt.BEGIN:if(Zt.state=Bt.BEGIN_WHITESPACE,ke==="\uFEFF")continue;Ne(Zt,ke);continue;case Bt.BEGIN_WHITESPACE:Ne(Zt,ke);continue;case Bt.TEXT:if(Zt.sawRoot&&!Zt.closedRoot){for(var tn=fe-1;ke&&ke!=="<"&&ke!=="&";)(ke=Xe(Wt,fe++))&&Zt.trackPosition&&(Zt.position++,ke===`
|
|
`?(Zt.line++,Zt.column=0):Zt.column++);Zt.textNode+=Wt.substring(tn,fe-1)}ke!=="<"||Zt.sawRoot&&Zt.closedRoot&&!Zt.strict?(Ot(ke)||Zt.sawRoot&&!Zt.closedRoot||ae(Zt,"Text data outside of root node."),ke==="&"?Zt.state=Bt.TEXT_ENTITY:Zt.textNode+=ke):(Zt.state=Bt.OPEN_WAKA,Zt.startTagPosition=Zt.position);continue;case Bt.SCRIPT:ke==="<"?Zt.state=Bt.SCRIPT_ENDING:Zt.script+=ke;continue;case Bt.SCRIPT_ENDING:ke==="/"?Zt.state=Bt.CLOSE_TAG:(Zt.script+="<"+ke,Zt.state=Bt.SCRIPT);continue;case Bt.OPEN_WAKA:if(ke==="!")Zt.state=Bt.SGML_DECL,Zt.sgmlDecl="";else if(!Ot(ke))if(Xt(se,ke))Zt.state=Bt.OPEN_TAG,Zt.tagName=ke;else if(ke==="/")Zt.state=Bt.CLOSE_TAG,Zt.tagName="";else if(ke==="?")Zt.state=Bt.PROC_INST,Zt.procInstName=Zt.procInstBody="";else{if(ae(Zt,"Unencoded <"),Zt.startTagPosition+1<Zt.position){var dn=Zt.position-Zt.startTagPosition;ke=new Array(dn).join(" ")+ke}Zt.textNode+="<"+ke,Zt.state=Bt.TEXT}continue;case Bt.SGML_DECL:(Zt.sgmlDecl+ke).toUpperCase()===Ae?(Pe(Zt,"onopencdata"),Zt.state=Bt.CDATA,Zt.sgmlDecl="",Zt.cdata=""):Zt.sgmlDecl+ke==="--"?(Zt.state=Bt.COMMENT,Zt.comment="",Zt.sgmlDecl=""):(Zt.sgmlDecl+ke).toUpperCase()===oe?(Zt.state=Bt.DOCTYPE,(Zt.doctype||Zt.sawRoot)&&ae(Zt,"Inappropriately located doctype declaration"),Zt.doctype="",Zt.sgmlDecl=""):ke===">"?(Pe(Zt,"onsgmldeclaration",Zt.sgmlDecl),Zt.sgmlDecl="",Zt.state=Bt.TEXT):(te(ke)&&(Zt.state=Bt.SGML_DECL_QUOTED),Zt.sgmlDecl+=ke);continue;case Bt.SGML_DECL_QUOTED:ke===Zt.q&&(Zt.state=Bt.SGML_DECL,Zt.q=""),Zt.sgmlDecl+=ke;continue;case Bt.DOCTYPE:ke===">"?(Zt.state=Bt.TEXT,Pe(Zt,"ondoctype",Zt.doctype),Zt.doctype=!0):(Zt.doctype+=ke,ke==="["?Zt.state=Bt.DOCTYPE_DTD:te(ke)&&(Zt.state=Bt.DOCTYPE_QUOTED,Zt.q=ke));continue;case Bt.DOCTYPE_QUOTED:Zt.doctype+=ke,ke===Zt.q&&(Zt.q="",Zt.state=Bt.DOCTYPE);continue;case Bt.DOCTYPE_DTD:Zt.doctype+=ke,ke==="]"?Zt.state=Bt.DOCTYPE:te(ke)&&(Zt.state=Bt.DOCTYPE_DTD_QUOTED,Zt.q=ke);continue;case Bt.DOCTYPE_DTD_QUOTED:Zt.doctype+=ke,ke===Zt.q&&(Zt.state=Bt.DOCTYPE_DTD,Zt.q="");continue;case Bt.COMMENT:ke==="-"?Zt.state=Bt.COMMENT_ENDING:Zt.comment+=ke;continue;case Bt.COMMENT_ENDING:ke==="-"?(Zt.state=Bt.COMMENT_ENDED,Zt.comment=Ve(Zt.opt,Zt.comment),Zt.comment&&Pe(Zt,"oncomment",Zt.comment),Zt.comment=""):(Zt.comment+="-"+ke,Zt.state=Bt.COMMENT);continue;case Bt.COMMENT_ENDED:ke!==">"?(ae(Zt,"Malformed comment"),Zt.comment+="--"+ke,Zt.state=Bt.COMMENT):Zt.state=Bt.TEXT;continue;case Bt.CDATA:ke==="]"?Zt.state=Bt.CDATA_ENDING:Zt.cdata+=ke;continue;case Bt.CDATA_ENDING:ke==="]"?Zt.state=Bt.CDATA_ENDING_2:(Zt.cdata+="]"+ke,Zt.state=Bt.CDATA);continue;case Bt.CDATA_ENDING_2:ke===">"?(Zt.cdata&&Pe(Zt,"oncdata",Zt.cdata),Pe(Zt,"onclosecdata"),Zt.cdata="",Zt.state=Bt.TEXT):ke==="]"?Zt.cdata+="]":(Zt.cdata+="]]"+ke,Zt.state=Bt.CDATA);continue;case Bt.PROC_INST:ke==="?"?Zt.state=Bt.PROC_INST_ENDING:Ot(ke)?Zt.state=Bt.PROC_INST_BODY:Zt.procInstName+=ke;continue;case Bt.PROC_INST_BODY:if(!Zt.procInstBody&&Ot(ke))continue;ke==="?"?Zt.state=Bt.PROC_INST_ENDING:Zt.procInstBody+=ke;continue;case Bt.PROC_INST_ENDING:ke===">"?(Pe(Zt,"onprocessinginstruction",{name:Zt.procInstName,body:Zt.procInstBody}),Zt.procInstName=Zt.procInstBody="",Zt.state=Bt.TEXT):(Zt.procInstBody+="?"+ke,Zt.state=Bt.PROC_INST_BODY);continue;case Bt.OPEN_TAG:Xt(Kt,ke)?Zt.tagName+=ke:(_t(Zt),ke===">"?pe(Zt):ke==="/"?Zt.state=Bt.OPEN_TAG_SLASH:(Ot(ke)||ae(Zt,"Invalid character in tag name"),Zt.state=Bt.ATTRIB));continue;case Bt.OPEN_TAG_SLASH:ke===">"?(pe(Zt,!0),le(Zt)):(ae(Zt,"Forward-slash in opening tag not followed by >"),Zt.state=Bt.ATTRIB);continue;case Bt.ATTRIB:if(Ot(ke))continue;ke===">"?pe(Zt):ke==="/"?Zt.state=Bt.OPEN_TAG_SLASH:Xt(se,ke)?(Zt.attribName=ke,Zt.attribValue="",Zt.state=Bt.ATTRIB_NAME):ae(Zt,"Invalid attribute name");continue;case Bt.ATTRIB_NAME:ke==="="?Zt.state=Bt.ATTRIB_VALUE:ke===">"?(ae(Zt,"Attribute without value"),Zt.attribValue=Zt.attribName,re(Zt),pe(Zt)):Ot(ke)?Zt.state=Bt.ATTRIB_NAME_SAW_WHITE:Xt(Kt,ke)?Zt.attribName+=ke:ae(Zt,"Invalid attribute name");continue;case Bt.ATTRIB_NAME_SAW_WHITE:if(ke==="=")Zt.state=Bt.ATTRIB_VALUE;else{if(Ot(ke))continue;ae(Zt,"Attribute without value"),Zt.tag.attributes[Zt.attribName]="",Zt.attribValue="",Pe(Zt,"onattribute",{name:Zt.attribName,value:""}),Zt.attribName="",ke===">"?pe(Zt):Xt(se,ke)?(Zt.attribName=ke,Zt.state=Bt.ATTRIB_NAME):(ae(Zt,"Invalid attribute name"),Zt.state=Bt.ATTRIB)}continue;case Bt.ATTRIB_VALUE:if(Ot(ke))continue;te(ke)?(Zt.q=ke,Zt.state=Bt.ATTRIB_VALUE_QUOTED):(ae(Zt,"Unquoted attribute value"),Zt.state=Bt.ATTRIB_VALUE_UNQUOTED,Zt.attribValue=ke);continue;case Bt.ATTRIB_VALUE_QUOTED:if(ke!==Zt.q){ke==="&"?Zt.state=Bt.ATTRIB_VALUE_ENTITY_Q:Zt.attribValue+=ke;continue}re(Zt),Zt.q="",Zt.state=Bt.ATTRIB_VALUE_CLOSED;continue;case Bt.ATTRIB_VALUE_CLOSED:Ot(ke)?Zt.state=Bt.ATTRIB:ke===">"?pe(Zt):ke==="/"?Zt.state=Bt.OPEN_TAG_SLASH:Xt(se,ke)?(ae(Zt,"No whitespace between attributes"),Zt.attribName=ke,Zt.attribValue="",Zt.state=Bt.ATTRIB_NAME):ae(Zt,"Invalid attribute name");continue;case Bt.ATTRIB_VALUE_UNQUOTED:if(!ne(ke)){ke==="&"?Zt.state=Bt.ATTRIB_VALUE_ENTITY_U:Zt.attribValue+=ke;continue}re(Zt),ke===">"?pe(Zt):Zt.state=Bt.ATTRIB;continue;case Bt.CLOSE_TAG:if(Zt.tagName)ke===">"?le(Zt):Xt(Kt,ke)?Zt.tagName+=ke:Zt.script?(Zt.script+="</"+Zt.tagName,Zt.tagName="",Zt.state=Bt.SCRIPT):(Ot(ke)||ae(Zt,"Invalid tagname in closing tag"),Zt.state=Bt.CLOSE_TAG_SAW_WHITE);else{if(Ot(ke))continue;ce(se,ke)?Zt.script?(Zt.script+="</"+ke,Zt.state=Bt.SCRIPT):ae(Zt,"Invalid tagname in closing tag."):Zt.tagName=ke}continue;case Bt.CLOSE_TAG_SAW_WHITE:if(Ot(ke))continue;ke===">"?le(Zt):ae(Zt,"Invalid characters in closing tag");continue;case Bt.TEXT_ENTITY:case Bt.ATTRIB_VALUE_ENTITY_Q:case Bt.ATTRIB_VALUE_ENTITY_U:var ln,Bn;switch(Zt.state){case Bt.TEXT_ENTITY:ln=Bt.TEXT,Bn="textNode";break;case Bt.ATTRIB_VALUE_ENTITY_Q:ln=Bt.ATTRIB_VALUE_QUOTED,Bn="attribValue";break;case Bt.ATTRIB_VALUE_ENTITY_U:ln=Bt.ATTRIB_VALUE_UNQUOTED,Bn="attribValue"}ke===";"?(Zt[Bn]+=Ue(Zt),Zt.entity="",Zt.state=ln):Xt(Zt.entity.length?bt:It,ke)?Zt.entity+=ke:(ae(Zt,"Invalid character in entity name"),Zt[Bn]+="&"+Zt.entity+ke,Zt.entity="",Zt.state=ln);continue;default:throw new Error(Zt,"Unknown state: "+Zt.state)}return Zt.position>=Zt.bufferCheckPosition&>(Zt),Zt}ut.parser=function(Wt,Zt){return new ct(Wt,Zt)},ut.SAXParser=ct,ut.SAXStream=Ht,ut.createStream=jt,ut.MAX_BUFFER_LENGTH=65536;var xe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ut.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],rt.default||(Object.create=function(Wt){function Zt(){}return Zt.prototype=Wt,new Zt}),tt.default||(Object.keys=function(Wt){var Zt=[];for(var fe in Wt)Wt.hasOwnProperty(fe)&&Zt.push(fe);return Zt}),ct.prototype={end:function(){Qe(this)},write:Le,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){kt(this)}};var _e;try{_e=xt("stream").Stream}catch(Wt){_e=function(){}}var Fe=ut.EVENTS.filter(function(Wt){return Wt!=="error"&&Wt!=="end"});Ht.prototype=(0,rt.default)(_e.prototype,{constructor:{value:Ht}}),Ht.prototype.write=function(Wt){if(typeof Rt=="function"&&typeof Rt.isBuffer=="function"&&Rt.isBuffer(Wt)){if(!this._decoder){var Zt=xt("string_decoder").StringDecoder;this._decoder=new Zt("utf8")}Wt=this._decoder.write(Wt)}return this._parser.write(Wt.toString()),this.emit("data",Wt),!0},Ht.prototype.end=function(Wt){return Wt&&Wt.length&&this.write(Wt),this._parser.end(),!0},Ht.prototype.on=function(Wt,Zt){var fe=this;return fe._parser["on"+Wt]||Fe.indexOf(Wt)===-1||(fe._parser["on"+Wt]=function(){var ke=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ke.splice(0,0,Wt),fe.emit.apply(fe,ke)}),_e.prototype.on.call(fe,Wt,Zt)};var Ae="[CDATA[",oe="DOCTYPE",Mt="http://www.w3.org/XML/1998/namespace",At="http://www.w3.org/2000/xmlns/",Qt={xml:Mt,xmlns:At},se=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Kt=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,It=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,bt=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Bt=0;ut.STATE={BEGIN:Bt++,BEGIN_WHITESPACE:Bt++,TEXT:Bt++,TEXT_ENTITY:Bt++,OPEN_WAKA:Bt++,SGML_DECL:Bt++,SGML_DECL_QUOTED:Bt++,DOCTYPE:Bt++,DOCTYPE_QUOTED:Bt++,DOCTYPE_DTD:Bt++,DOCTYPE_DTD_QUOTED:Bt++,COMMENT_STARTING:Bt++,COMMENT:Bt++,COMMENT_ENDING:Bt++,COMMENT_ENDED:Bt++,CDATA:Bt++,CDATA_ENDING:Bt++,CDATA_ENDING_2:Bt++,PROC_INST:Bt++,PROC_INST_BODY:Bt++,PROC_INST_ENDING:Bt++,OPEN_TAG:Bt++,OPEN_TAG_SLASH:Bt++,ATTRIB:Bt++,ATTRIB_NAME:Bt++,ATTRIB_NAME_SAW_WHITE:Bt++,ATTRIB_VALUE:Bt++,ATTRIB_VALUE_QUOTED:Bt++,ATTRIB_VALUE_CLOSED:Bt++,ATTRIB_VALUE_UNQUOTED:Bt++,ATTRIB_VALUE_ENTITY_Q:Bt++,ATTRIB_VALUE_ENTITY_U:Bt++,CLOSE_TAG:Bt++,CLOSE_TAG_SAW_WHITE:Bt++,SCRIPT:Bt++,SCRIPT_ENDING:Bt++},ut.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ut.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,tt.default)(ut.ENTITIES).forEach(function(Wt){var Zt=ut.ENTITIES[Wt],fe=typeof Zt=="number"?String.fromCharCode(Zt):Zt;ut.ENTITIES[Wt]=fe});for(var ie in ut.STATE)ut.STATE[ut.STATE[ie]]=ie;Bt=ut.STATE,Et.default||function(){var Wt=String.fromCharCode,Zt=Math.floor,fe=function(){var ke,tn,dn=[],ln=-1,Bn=arguments.length;if(!Bn)return"";for(var Vn="";++ln<Bn;){var Tn=Number(arguments[ln]);if(!isFinite(Tn)||Tn<0||Tn>1114111||Zt(Tn)!==Tn)throw RangeError("Invalid code point: "+Tn);Tn<=65535?dn.push(Tn):(Tn-=65536,ke=55296+(Tn>>10),tn=Tn%1024+56320,dn.push(ke,tn)),(ln+1===Bn||dn.length>16384)&&(Vn+=Wt.apply(null,dn),dn.length=0)}return Vn};vt.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(Vt===void 0?(void 0).sax={}:Vt)}).call(this,xt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(xt,qt,Vt){function Rt(){Dt.call(this)}qt.exports=Rt;var Dt=xt("events").EventEmitter;xt("inherits")(Rt,Dt),Rt.Readable=xt("readable-stream/readable.js"),Rt.Writable=xt("readable-stream/writable.js"),Rt.Duplex=xt("readable-stream/duplex.js"),Rt.Transform=xt("readable-stream/transform.js"),Rt.PassThrough=xt("readable-stream/passthrough.js"),Rt.Stream=Rt,Rt.prototype.pipe=function(St,Et){function Nt(st){St.writable&&St.write(st)===!1&&et.pause&&et.pause()}function Pt(){et.readable&&et.resume&&et.resume()}function Ct(){tt||(tt=!0,St.end())}function Lt(){tt||(tt=!0,typeof St.destroy=="function"&&St.destroy())}function Ft(st){if(vt(),Dt.listenerCount(this,"error")===0)throw st}function vt(){et.removeListener("data",Nt),St.removeListener("drain",Pt),et.removeListener("end",Ct),et.removeListener("close",Lt),et.removeListener("error",Ft),St.removeListener("error",Ft),et.removeListener("end",vt),et.removeListener("close",vt),St.removeListener("close",vt)}var et=this;et.on("data",Nt),St.on("drain",Pt),St._isStdio||Et&&Et.end===!1||(et.on("end",Ct),et.on("close",Lt));var tt=!1;return et.on("error",Ft),St.on("error",Ft),et.on("end",vt),et.on("close",vt),St.on("close",vt),St.emit("pipe",et),St}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(xt,qt,Vt){(function(Rt){var Dt=xt("./lib/request"),St=xt("./lib/response"),Et=xt("xtend"),Nt=xt("builtin-status-codes"),Pt=xt("url"),Ct=Vt;Ct.request=function(Lt,Ft){Lt=typeof Lt=="string"?Pt.parse(Lt):Et(Lt);var vt=Rt.location.protocol.search(/^https?:$/)===-1?"http:":"",et=Lt.protocol||vt,tt=Lt.hostname||Lt.host,st=Lt.port,rt=Lt.path||"/";tt&&tt.indexOf(":")!==-1&&(tt="["+tt+"]"),Lt.url=(tt?et+"//"+tt:"")+(st?":"+st:"")+rt,Lt.method=(Lt.method||"GET").toUpperCase(),Lt.headers=Lt.headers||{};var ut=new Dt(Lt);return Ft&&ut.on("response",Ft),ut},Ct.get=function(Lt,Ft){var vt=Ct.request(Lt,Ft);return vt.end(),vt},Ct.ClientRequest=Dt,Ct.IncomingMessage=St.IncomingMessage,Ct.Agent=function(){},Ct.Agent.defaultMaxSockets=4,Ct.globalAgent=new Ct.Agent,Ct.STATUS_CODES=Nt,Ct.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(){if(Nt!==void 0)return Nt;if(Rt.XMLHttpRequest){Nt=new Rt.XMLHttpRequest;try{Nt.open("GET",Rt.XDomainRequest?"/":"https://example.com")}catch(Lt){Nt=null}}else Nt=null;return Nt}function St(Lt){var Ft=Dt();if(!Ft)return!1;try{return Ft.responseType=Lt,Ft.responseType===Lt}catch(vt){}return!1}function Et(Lt){return typeof Lt=="function"}Vt.fetch=Et(Rt.fetch)&&Et(Rt.ReadableStream),Vt.writableStream=Et(Rt.WritableStream),Vt.abortController=Et(Rt.AbortController),Vt.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Vt.blobConstructor=!0}catch(Lt){}var Nt,Pt=Rt.ArrayBuffer!==void 0,Ct=Pt&&Et(Rt.ArrayBuffer.prototype.slice);Vt.arraybuffer=Vt.fetch||Pt&&St("arraybuffer"),Vt.msstream=!Vt.fetch&&Ct&&St("ms-stream"),Vt.mozchunkedarraybuffer=!Vt.fetch&&Pt&&St("moz-chunked-arraybuffer"),Vt.overrideMimeType=Vt.fetch||!!Dt()&&Et(Dt().overrideMimeType),Vt.vbArray=Et(Rt.VBArray),Nt=null}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(xt,qt,Vt){(function(Rt,Dt,St){"use strict";function Et(gt,ft){return Lt.fetch&&ft?"fetch":Lt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Lt.msstream?"ms-stream":Lt.arraybuffer&>?"arraybuffer":Lt.vbArray&>?"text:vbarray":"text"}function Nt(gt){try{var ft=gt.status;return ft!==null&&ft!==0}catch(kt){return!1}}var Pt=xt("babel-runtime/core-js/object/keys"),Ct=function(gt){return gt&>.__esModule?gt:{default:gt}}(Pt),Lt=xt("./capability"),Ft=xt("inherits"),vt=xt("./response"),et=xt("readable-stream"),tt=xt("to-arraybuffer"),st=vt.IncomingMessage,rt=vt.readyStates,ut=qt.exports=function(gt){var ft=this;et.Writable.call(ft),ft._opts=gt,ft._body=[],ft._headers={},gt.auth&&ft.setHeader("Authorization","Basic "+new St(gt.auth).toString("base64")),(0,Ct.default)(gt.headers).forEach(function(Ht){ft.setHeader(Ht,gt.headers[Ht])});var kt,jt=!0;if(gt.mode==="disable-fetch"||"requestTimeout"in gt&&!Lt.abortController)jt=!1,kt=!0;else if(gt.mode==="prefer-streaming")kt=!1;else if(gt.mode==="allow-wrong-content-type")kt=!Lt.overrideMimeType;else{if(gt.mode&>.mode!=="default"&>.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");kt=!0}ft._mode=Et(kt,jt),ft._fetchTimer=null,ft.on("finish",function(){ft._onFinish()})};Ft(ut,et.Writable),ut.prototype.setHeader=function(gt,ft){var kt=this,jt=gt.toLowerCase();ct.indexOf(jt)===-1&&(kt._headers[jt]={name:gt,value:ft})},ut.prototype.getHeader=function(gt){var ft=this._headers[gt.toLowerCase()];return ft?ft.value:null},ut.prototype.removeHeader=function(gt){delete this._headers[gt.toLowerCase()]},ut.prototype._onFinish=function(){var gt=this;if(!gt._destroyed){var ft=gt._opts,kt=gt._headers,jt=null;ft.method!=="GET"&&ft.method!=="HEAD"&&(jt=Lt.arraybuffer?tt(St.concat(gt._body)):Lt.blobConstructor?new Dt.Blob(gt._body.map(function(Xt){return tt(Xt)}),{type:(kt["content-type"]||{}).value||""}):St.concat(gt._body).toString());var Ht=[];if((0,Ct.default)(kt).forEach(function(Xt){var ce=kt[Xt].name,me=kt[Xt].value;Array.isArray(me)?me.forEach(function(Pe){Ht.push([ce,Pe])}):Ht.push([ce,me])}),gt._mode==="fetch"){var Ot=null;if(Lt.abortController){var te=new AbortController;Ot=te.signal,gt._fetchAbortController=te,"requestTimeout"in ft&&ft.requestTimeout!==0&&(gt._fetchTimer=Dt.setTimeout(function(){gt.emit("requestTimeout"),gt._fetchAbortController&>._fetchAbortController.abort()},ft.requestTimeout))}Dt.fetch(gt._opts.url,{method:gt._opts.method,headers:Ht,body:jt||void 0,mode:"cors",credentials:ft.withCredentials?"include":"same-origin",signal:Ot}).then(function(Xt){gt._fetchResponse=Xt,gt._connect()},function(Xt){Dt.clearTimeout(gt._fetchTimer),gt._destroyed||gt.emit("error",Xt)})}else{var ne=gt._xhr=new Dt.XMLHttpRequest;try{ne.open(gt._opts.method,gt._opts.url,!0)}catch(Xt){return void Rt.nextTick(function(){gt.emit("error",Xt)})}"responseType"in ne&&(ne.responseType=gt._mode.split(":")[0]),"withCredentials"in ne&&(ne.withCredentials=!!ft.withCredentials),gt._mode==="text"&&"overrideMimeType"in ne&&ne.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ft&&(ne.timeout=ft.requestTimeout,ne.ontimeout=function(){gt.emit("requestTimeout")}),Ht.forEach(function(Xt){ne.setRequestHeader(Xt[0],Xt[1])}),gt._response=null,ne.onreadystatechange=function(){switch(ne.readyState){case rt.LOADING:case rt.DONE:gt._onXHRProgress()}},gt._mode==="moz-chunked-arraybuffer"&&(ne.onprogress=function(){gt._onXHRProgress()}),ne.onerror=function(){gt._destroyed||gt.emit("error",new Error("XHR error"))};try{ne.send(jt)}catch(Xt){return void Rt.nextTick(function(){gt.emit("error",Xt)})}}}},ut.prototype._onXHRProgress=function(){var gt=this;Nt(gt._xhr)&&!gt._destroyed&&(gt._response||gt._connect(),gt._response._onXHRProgress())},ut.prototype._connect=function(){var gt=this;gt._destroyed||(gt._response=new st(gt._xhr,gt._fetchResponse,gt._mode,gt._fetchTimer),gt._response.on("error",function(ft){gt.emit("error",ft)}),gt.emit("response",gt._response))},ut.prototype._write=function(gt,ft,kt){this._body.push(gt),kt()},ut.prototype.abort=ut.prototype.destroy=function(){var gt=this;gt._destroyed=!0,Dt.clearTimeout(gt._fetchTimer),gt._response&&(gt._response._destroyed=!0),gt._xhr?gt._xhr.abort():gt._fetchAbortController&>._fetchAbortController.abort()},ut.prototype.end=function(gt,ft,kt){var jt=this;typeof gt=="function"&&(kt=gt,gt=void 0),et.Writable.prototype.end.call(jt,gt,ft,kt)},ut.prototype.flushHeaders=function(){},ut.prototype.setTimeout=function(){},ut.prototype.setNoDelay=function(){},ut.prototype.setSocketKeepAlive=function(){};var ct=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,xt("_process"),typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},xt("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(xt,qt,Vt){(function(Rt,Dt,St){"use strict";var Et=xt("babel-runtime/core-js/promise"),Nt=function(et){return et&&et.__esModule?et:{default:et}}(Et),Pt=xt("./capability"),Ct=xt("inherits"),Lt=xt("readable-stream"),Ft=Vt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},vt=Vt.IncomingMessage=function(et,tt,st,rt){var ut=this;if(Lt.Readable.call(ut),ut._mode=st,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){Rt.nextTick(function(){ut.emit("close")})}),st==="fetch"){if(ut._fetchResponse=tt,ut.url=tt.url,ut.statusCode=tt.status,ut.statusMessage=tt.statusText,tt.headers.forEach(function(jt,Ht){ut.headers[Ht.toLowerCase()]=jt,ut.rawHeaders.push(Ht,jt)}),Pt.writableStream){var ct=new WritableStream({write:function(jt){return new Nt.default(function(Ht,Ot){ut._destroyed?Ot():ut.push(new St(jt))?Ht():ut._resumeFetch=Ht})},close:function(){Dt.clearTimeout(rt),ut._destroyed||ut.push(null)},abort:function(jt){ut._destroyed||ut.emit("error",jt)}});try{return void tt.body.pipeTo(ct).catch(function(jt){Dt.clearTimeout(rt),ut._destroyed||ut.emit("error",jt)})}catch(jt){}}var gt=tt.body.getReader();(function jt(){gt.read().then(function(Ht){if(!ut._destroyed){if(Ht.done)return Dt.clearTimeout(rt),void ut.push(null);ut.push(new St(Ht.value)),jt()}}).catch(function(Ht){Dt.clearTimeout(rt),ut._destroyed||ut.emit("error",Ht)})})()}else if(ut._xhr=et,ut._pos=0,ut.url=et.responseURL,ut.statusCode=et.status,ut.statusMessage=et.statusText,et.getAllResponseHeaders().split(/\r?\n/).forEach(function(jt){var Ht=jt.match(/^([^:]+):\s*(.*)/);if(Ht){var Ot=Ht[1].toLowerCase();Ot==="set-cookie"?(ut.headers[Ot]===void 0&&(ut.headers[Ot]=[]),ut.headers[Ot].push(Ht[2])):ut.headers[Ot]!==void 0?ut.headers[Ot]+=", "+Ht[2]:ut.headers[Ot]=Ht[2],ut.rawHeaders.push(Ht[1],Ht[2])}}),ut._charset="x-user-defined",!Pt.overrideMimeType){var ft=ut.rawHeaders["mime-type"];if(ft){var kt=ft.match(/;\s*charset=([^;])(;|$)/);kt&&(ut._charset=kt[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};Ct(vt,Lt.Readable),vt.prototype._read=function(){var et=this,tt=et._resumeFetch;tt&&(et._resumeFetch=null,tt())},vt.prototype._onXHRProgress=function(){var et=this,tt=et._xhr,st=null;switch(et._mode){case"text:vbarray":if(tt.readyState!==Ft.DONE)break;try{st=new Dt.VBArray(tt.responseBody).toArray()}catch(ft){}if(st!==null){et.push(new St(st));break}case"text":try{st=tt.responseText}catch(ft){et._mode="text:vbarray";break}if(st.length>et._pos){var rt=st.substr(et._pos);if(et._charset==="x-user-defined"){for(var ut=new St(rt.length),ct=0;ct<rt.length;ct++)ut[ct]=255&rt.charCodeAt(ct);et.push(ut)}else et.push(rt,et._charset);et._pos=st.length}break;case"arraybuffer":if(tt.readyState!==Ft.DONE||!tt.response)break;st=tt.response,et.push(new St(new Uint8Array(st)));break;case"moz-chunked-arraybuffer":if(st=tt.response,tt.readyState!==Ft.LOADING||!st)break;et.push(new St(new Uint8Array(st)));break;case"ms-stream":if(st=tt.response,tt.readyState!==Ft.LOADING)break;var gt=new Dt.MSStreamReader;gt.onprogress=function(){gt.result.byteLength>et._pos&&(et.push(new St(new Uint8Array(gt.result.slice(et._pos)))),et._pos=gt.result.byteLength)},gt.onload=function(){et.push(null)},gt.readAsArrayBuffer(st)}et._xhr.readyState===Ft.DONE&&et._mode!=="ms-stream"&&et.push(null)}}).call(this,xt("_process"),typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},xt("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(xt,qt,Vt){"use strict";function Rt(ft){if(!ft)return"utf8";for(var kt;;)switch(ft){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return ft;default:if(kt)return;ft=(""+ft).toLowerCase(),kt=!0}}function Dt(ft){var kt=Rt(ft);if(typeof kt!="string"&&(ct.isEncoding===gt||!gt(ft)))throw new Error("Unknown encoding: "+ft);return kt||ft}function St(ft){this.encoding=Dt(ft);var kt;switch(this.encoding){case"utf16le":this.text=vt,this.end=et,kt=4;break;case"utf8":this.fillLast=Ct,kt=4;break;case"base64":this.text=tt,this.end=st,kt=3;break;default:return this.write=rt,void(this.end=ut)}this.lastNeed=0,this.lastTotal=0,this.lastChar=ct.allocUnsafe(kt)}function Et(ft){return ft<=127?0:ft>>5==6?2:ft>>4==14?3:ft>>3==30?4:ft>>6==2?-1:-2}function Nt(ft,kt,jt){var Ht=kt.length-1;if(Ht<jt)return 0;var Ot=Et(kt[Ht]);return Ot>=0?(Ot>0&&(ft.lastNeed=Ot-1),Ot):--Ht<jt||Ot===-2?0:(Ot=Et(kt[Ht]))>=0?(Ot>0&&(ft.lastNeed=Ot-2),Ot):--Ht<jt||Ot===-2?0:(Ot=Et(kt[Ht]),Ot>=0?(Ot>0&&(Ot===2?Ot=0:ft.lastNeed=Ot-3),Ot):0)}function Pt(ft,kt,jt){if((192&kt[0])!=128)return ft.lastNeed=0,"\u951F\uFFFD";if(ft.lastNeed>1&&kt.length>1){if((192&kt[1])!=128)return ft.lastNeed=1,"\u951F\uFFFD";if(ft.lastNeed>2&&kt.length>2&&(192&kt[2])!=128)return ft.lastNeed=2,"\u951F\uFFFD"}}function Ct(ft){var kt=this.lastTotal-this.lastNeed,jt=Pt(this,ft,kt);return jt!==void 0?jt:this.lastNeed<=ft.length?(ft.copy(this.lastChar,kt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(ft.copy(this.lastChar,kt,0,ft.length),void(this.lastNeed-=ft.length))}function Lt(ft,kt){var jt=Nt(this,ft,kt);if(!this.lastNeed)return ft.toString("utf8",kt);this.lastTotal=jt;var Ht=ft.length-(jt-this.lastNeed);return ft.copy(this.lastChar,0,Ht),ft.toString("utf8",kt,Ht)}function Ft(ft){var kt=ft&&ft.length?this.write(ft):"";return this.lastNeed?kt+"\u951F\uFFFD":kt}function vt(ft,kt){if((ft.length-kt)%2==0){var jt=ft.toString("utf16le",kt);if(jt){var Ht=jt.charCodeAt(jt.length-1);if(Ht>=55296&&Ht<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1],jt.slice(0,-1)}return jt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ft[ft.length-1],ft.toString("utf16le",kt,ft.length-1)}function et(ft){var kt=ft&&ft.length?this.write(ft):"";if(this.lastNeed){var jt=this.lastTotal-this.lastNeed;return kt+this.lastChar.toString("utf16le",0,jt)}return kt}function tt(ft,kt){var jt=(ft.length-kt)%3;return jt===0?ft.toString("base64",kt):(this.lastNeed=3-jt,this.lastTotal=3,jt===1?this.lastChar[0]=ft[ft.length-1]:(this.lastChar[0]=ft[ft.length-2],this.lastChar[1]=ft[ft.length-1]),ft.toString("base64",kt,ft.length-jt))}function st(ft){var kt=ft&&ft.length?this.write(ft):"";return this.lastNeed?kt+this.lastChar.toString("base64",0,3-this.lastNeed):kt}function rt(ft){return ft.toString(this.encoding)}function ut(ft){return ft&&ft.length?this.write(ft):""}var ct=xt("safe-buffer").Buffer,gt=ct.isEncoding||function(ft){switch((ft=""+ft)&&ft.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};Vt.StringDecoder=St,St.prototype.write=function(ft){if(ft.length===0)return"";var kt,jt;if(this.lastNeed){if((kt=this.fillLast(ft))===void 0)return"";jt=this.lastNeed,this.lastNeed=0}else jt=0;return jt<ft.length?kt?kt+this.text(ft,jt):this.text(ft,jt):kt||""},St.prototype.end=Ft,St.prototype.text=Lt,St.prototype.fillLast=function(ft){if(this.lastNeed<=ft.length)return ft.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ft.copy(this.lastChar,this.lastTotal-this.lastNeed,0,ft.length),this.lastNeed-=ft.length}},{"safe-buffer":193}],201:[function(xt,qt,Vt){(function(Rt,Dt){function St(Ft,vt){this._id=Ft,this._clearFn=vt}var Et=xt("process/browser.js").nextTick,Nt=Function.prototype.apply,Pt=Array.prototype.slice,Ct={},Lt=0;Vt.setTimeout=function(){return new St(Nt.call(setTimeout,window,arguments),clearTimeout)},Vt.setInterval=function(){return new St(Nt.call(setInterval,window,arguments),clearInterval)},Vt.clearTimeout=Vt.clearInterval=function(Ft){Ft.close()},St.prototype.unref=St.prototype.ref=function(){},St.prototype.close=function(){this._clearFn.call(window,this._id)},Vt.enroll=function(Ft,vt){clearTimeout(Ft._idleTimeoutId),Ft._idleTimeout=vt},Vt.unenroll=function(Ft){clearTimeout(Ft._idleTimeoutId),Ft._idleTimeout=-1},Vt._unrefActive=Vt.active=function(Ft){clearTimeout(Ft._idleTimeoutId);var vt=Ft._idleTimeout;vt>=0&&(Ft._idleTimeoutId=setTimeout(function(){Ft._onTimeout&&Ft._onTimeout()},vt))},Vt.setImmediate=typeof Rt=="function"?Rt:function(Ft){var vt=Lt++,et=!(arguments.length<2)&&Pt.call(arguments,1);return Ct[vt]=!0,Et(function(){Ct[vt]&&(et?Ft.apply(null,et):Ft.call(null),Vt.clearImmediate(vt))}),vt},Vt.clearImmediate=typeof Dt=="function"?Dt:function(Ft){delete Ct[Ft]}}).call(this,xt("timers").setImmediate,xt("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(xt,qt,Vt){var Rt=xt("buffer").Buffer;qt.exports=function(Dt){if(Dt instanceof Uint8Array){if(Dt.byteOffset===0&&Dt.byteLength===Dt.buffer.byteLength)return Dt.buffer;if(typeof Dt.buffer.slice=="function")return Dt.buffer.slice(Dt.byteOffset,Dt.byteOffset+Dt.byteLength)}if(Rt.isBuffer(Dt)){for(var St=new Uint8Array(Dt.length),Et=Dt.length,Nt=0;Nt<Et;Nt++)St[Nt]=Dt[Nt];return St.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(xt,qt,Vt){"use strict";function Rt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Dt(Ot,te,ne){if(Ot&&Ct.isObject(Ot)&&Ot instanceof Rt)return Ot;var Xt=new Rt;return Xt.parse(Ot,te,ne),Xt}function St(Ot){return Ct.isString(Ot)&&(Ot=Dt(Ot)),Ot instanceof Rt?Ot.format():Rt.prototype.format.call(Ot)}function Et(Ot,te){return Dt(Ot,!1,!0).resolve(te)}function Nt(Ot,te){return Ot?Dt(Ot,!1,!0).resolveObject(te):te}var Pt=xt("punycode"),Ct=xt("./util");Vt.parse=Dt,Vt.resolve=Et,Vt.resolveObject=Nt,Vt.format=St,Vt.Url=Rt;var Lt=/^([a-z0-9.+-]+:)/i,Ft=/:[0-9]*$/,vt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,et=["<",">",'"',"`"," ","\r",`
|
|
`," "],tt=["{","}","|","\\","^","`"].concat(et),st=["'"].concat(tt),rt=["%","/","?",";","#"].concat(st),ut=["/","?","#"],ct=/^[+a-z0-9A-Z_-]{0,63}$/,gt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ft={javascript:!0,"javascript:":!0},kt={javascript:!0,"javascript:":!0},jt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ht=xt("querystring");Rt.prototype.parse=function(Ot,te,ne){if(!Ct.isString(Ot))throw new TypeError("Parameter 'url' must be a string, not "+typeof Ot);var Xt=Ot.indexOf("?"),ce=Xt!==-1&&Xt<Ot.indexOf("#")?"?":"#",me=Ot.split(ce),Pe=/\\/g;me[0]=me[0].replace(Pe,"/"),Ot=me.join(ce);var De=Ot;if(De=De.trim(),!ne&&Ot.split("#").length===1){var Ve=vt.exec(De);if(Ve)return this.path=De,this.href=De,this.pathname=Ve[1],Ve[2]?(this.search=Ve[2],this.query=te?Ht.parse(this.search.substr(1)):this.search.substr(1)):te&&(this.search="",this.query={}),this}var we=Lt.exec(De);if(we){we=we[0];var Qe=we.toLowerCase();this.protocol=Qe,De=De.substr(we.length)}if(ne||we||De.match(/^\/\/[^@\/]+@[^@\/]+/)){var ae=De.substr(0,2)==="//";!ae||we&&kt[we]||(De=De.substr(2),this.slashes=!0)}if(!kt[we]&&(ae||we&&!jt[we])){for(var _t=-1,$t=0;$t<ut.length;$t++){var re=De.indexOf(ut[$t]);re!==-1&&(_t===-1||re<_t)&&(_t=re)}var pe,le;le=_t===-1?De.lastIndexOf("@"):De.lastIndexOf("@",_t),le!==-1&&(pe=De.slice(0,le),De=De.slice(le+1),this.auth=decodeURIComponent(pe)),_t=-1;for(var $t=0;$t<rt.length;$t++){var re=De.indexOf(rt[$t]);re!==-1&&(_t===-1||re<_t)&&(_t=re)}_t===-1&&(_t=De.length),this.host=De.slice(0,_t),De=De.slice(_t),this.parseHost(),this.hostname=this.hostname||"";var Ue=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ue)for(var Ne=this.hostname.split(/\./),$t=0,Xe=Ne.length;$t<Xe;$t++){var Le=Ne[$t];if(Le&&!Le.match(ct)){for(var xe="",_e=0,Fe=Le.length;_e<Fe;_e++)Le.charCodeAt(_e)>127?xe+="x":xe+=Le[_e];if(!xe.match(ct)){var Ae=Ne.slice(0,$t),oe=Ne.slice($t+1),Mt=Le.match(gt);Mt&&(Ae.push(Mt[1]),oe.unshift(Mt[2])),oe.length&&(De="/"+oe.join(".")+De),this.hostname=Ae.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ue||(this.hostname=Pt.toASCII(this.hostname));var At=this.port?":"+this.port:"",Qt=this.hostname||"";this.host=Qt+At,this.href+=this.host,Ue&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),De[0]!=="/"&&(De="/"+De))}if(!ft[Qe])for(var $t=0,Xe=st.length;$t<Xe;$t++){var se=st[$t];if(De.indexOf(se)!==-1){var Kt=encodeURIComponent(se);Kt===se&&(Kt=escape(se)),De=De.split(se).join(Kt)}}var It=De.indexOf("#");It!==-1&&(this.hash=De.substr(It),De=De.slice(0,It));var bt=De.indexOf("?");if(bt!==-1?(this.search=De.substr(bt),this.query=De.substr(bt+1),te&&(this.query=Ht.parse(this.query)),De=De.slice(0,bt)):te&&(this.search="",this.query={}),De&&(this.pathname=De),jt[Qe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var At=this.pathname||"",Bt=this.search||"";this.path=At+Bt}return this.href=this.format(),this},Rt.prototype.format=function(){var Ot=this.auth||"";Ot&&(Ot=encodeURIComponent(Ot),Ot=Ot.replace(/%3A/i,":"),Ot+="@");var te=this.protocol||"",ne=this.pathname||"",Xt=this.hash||"",ce=!1,me="";this.host?ce=Ot+this.host:this.hostname&&(ce=Ot+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ce+=":"+this.port)),this.query&&Ct.isObject(this.query)&&Object.keys(this.query).length&&(me=Ht.stringify(this.query));var Pe=this.search||me&&"?"+me||"";return te&&te.substr(-1)!==":"&&(te+=":"),this.slashes||(!te||jt[te])&&ce!==!1?(ce="//"+(ce||""),ne&&ne.charAt(0)!=="/"&&(ne="/"+ne)):ce||(ce=""),Xt&&Xt.charAt(0)!=="#"&&(Xt="#"+Xt),Pe&&Pe.charAt(0)!=="?"&&(Pe="?"+Pe),ne=ne.replace(/[?#]/g,function(De){return encodeURIComponent(De)}),Pe=Pe.replace("#","%23"),te+ce+ne+Pe+Xt},Rt.prototype.resolve=function(Ot){return this.resolveObject(Dt(Ot,!1,!0)).format()},Rt.prototype.resolveObject=function(Ot){if(Ct.isString(Ot)){var te=new Rt;te.parse(Ot,!1,!0),Ot=te}for(var ne=new Rt,Xt=Object.keys(this),ce=0;ce<Xt.length;ce++){var me=Xt[ce];ne[me]=this[me]}if(ne.hash=Ot.hash,Ot.href==="")return ne.href=ne.format(),ne;if(Ot.slashes&&!Ot.protocol){for(var Pe=Object.keys(Ot),De=0;De<Pe.length;De++){var Ve=Pe[De];Ve!=="protocol"&&(ne[Ve]=Ot[Ve])}return jt[ne.protocol]&&ne.hostname&&!ne.pathname&&(ne.path=ne.pathname="/"),ne.href=ne.format(),ne}if(Ot.protocol&&Ot.protocol!==ne.protocol){if(!jt[Ot.protocol]){for(var we=Object.keys(Ot),Qe=0;Qe<we.length;Qe++){var ae=we[Qe];ne[ae]=Ot[ae]}return ne.href=ne.format(),ne}if(ne.protocol=Ot.protocol,Ot.host||kt[Ot.protocol])ne.pathname=Ot.pathname;else{for(var Xe=(Ot.pathname||"").split("/");Xe.length&&!(Ot.host=Xe.shift()););Ot.host||(Ot.host=""),Ot.hostname||(Ot.hostname=""),Xe[0]!==""&&Xe.unshift(""),Xe.length<2&&Xe.unshift(""),ne.pathname=Xe.join("/")}if(ne.search=Ot.search,ne.query=Ot.query,ne.host=Ot.host||"",ne.auth=Ot.auth,ne.hostname=Ot.hostname||Ot.host,ne.port=Ot.port,ne.pathname||ne.search){var _t=ne.pathname||"",$t=ne.search||"";ne.path=_t+$t}return ne.slashes=ne.slashes||Ot.slashes,ne.href=ne.format(),ne}var re=ne.pathname&&ne.pathname.charAt(0)==="/",pe=Ot.host||Ot.pathname&&Ot.pathname.charAt(0)==="/",le=pe||re||ne.host&&Ot.pathname,Ue=le,Ne=ne.pathname&&ne.pathname.split("/")||[],Xe=Ot.pathname&&Ot.pathname.split("/")||[],Le=ne.protocol&&!jt[ne.protocol];if(Le&&(ne.hostname="",ne.port=null,ne.host&&(Ne[0]===""?Ne[0]=ne.host:Ne.unshift(ne.host)),ne.host="",Ot.protocol&&(Ot.hostname=null,Ot.port=null,Ot.host&&(Xe[0]===""?Xe[0]=Ot.host:Xe.unshift(Ot.host)),Ot.host=null),le=le&&(Xe[0]===""||Ne[0]==="")),pe)ne.host=Ot.host||Ot.host===""?Ot.host:ne.host,ne.hostname=Ot.hostname||Ot.hostname===""?Ot.hostname:ne.hostname,ne.search=Ot.search,ne.query=Ot.query,Ne=Xe;else if(Xe.length)Ne||(Ne=[]),Ne.pop(),Ne=Ne.concat(Xe),ne.search=Ot.search,ne.query=Ot.query;else if(!Ct.isNullOrUndefined(Ot.search)){if(Le){ne.hostname=ne.host=Ne.shift();var xe=!!(ne.host&&ne.host.indexOf("@")>0)&&ne.host.split("@");xe&&(ne.auth=xe.shift(),ne.host=ne.hostname=xe.shift())}return ne.search=Ot.search,ne.query=Ot.query,Ct.isNull(ne.pathname)&&Ct.isNull(ne.search)||(ne.path=(ne.pathname?ne.pathname:"")+(ne.search?ne.search:"")),ne.href=ne.format(),ne}if(!Ne.length)return ne.pathname=null,ne.search?ne.path="/"+ne.search:ne.path=null,ne.href=ne.format(),ne;for(var _e=Ne.slice(-1)[0],Fe=(ne.host||Ot.host||Ne.length>1)&&(_e==="."||_e==="..")||_e==="",Ae=0,oe=Ne.length;oe>=0;oe--)_e=Ne[oe],_e==="."?Ne.splice(oe,1):_e===".."?(Ne.splice(oe,1),Ae++):Ae&&(Ne.splice(oe,1),Ae--);if(!le&&!Ue)for(;Ae--;Ae)Ne.unshift("..");!le||Ne[0]===""||Ne[0]&&Ne[0].charAt(0)==="/"||Ne.unshift(""),Fe&&Ne.join("/").substr(-1)!=="/"&&Ne.push("");var Mt=Ne[0]===""||Ne[0]&&Ne[0].charAt(0)==="/";if(Le){ne.hostname=ne.host=Mt?"":Ne.length?Ne.shift():"";var xe=!!(ne.host&&ne.host.indexOf("@")>0)&&ne.host.split("@");xe&&(ne.auth=xe.shift(),ne.host=ne.hostname=xe.shift())}return le=le||ne.host&&Ne.length,le&&!Mt&&Ne.unshift(""),Ne.length?ne.pathname=Ne.join("/"):(ne.pathname=null,ne.path=null),Ct.isNull(ne.pathname)&&Ct.isNull(ne.search)||(ne.path=(ne.pathname?ne.pathname:"")+(ne.search?ne.search:"")),ne.auth=Ot.auth||ne.auth,ne.slashes=ne.slashes||Ot.slashes,ne.href=ne.format(),ne},Rt.prototype.parseHost=function(){var Ot=this.host,te=Ft.exec(Ot);te&&(te=te[0],te!==":"&&(this.port=te.substr(1)),Ot=Ot.substr(0,Ot.length-te.length)),Ot&&(this.hostname=Ot)}},{"./util":204,punycode:174,querystring:177}],204:[function(xt,qt,Vt){"use strict";qt.exports={isString:function(Rt){return typeof Rt=="string"},isObject:function(Rt){return typeof Rt=="object"&&Rt!==null},isNull:function(Rt){return Rt===null},isNullOrUndefined:function(Rt){return Rt==null}}},{}],205:[function(xt,qt,Vt){(function(Rt){function Dt(Et,Nt){function Pt(){if(!Ct){if(St("throwDeprecation"))throw new Error(Nt);St("traceDeprecation")?console.trace(Nt):console.warn(Nt),Ct=!0}return Et.apply(this,arguments)}if(St("noDeprecation"))return Et;var Ct=!1;return Pt}function St(Et){try{if(!Rt.localStorage)return!1}catch(Pt){return!1}var Nt=Rt.localStorage[Et];return Nt!=null&&String(Nt).toLowerCase()==="true"}qt.exports=Dt}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(xt,qt,Vt){qt.exports=function(Rt){return Rt&&typeof Rt=="object"&&typeof Rt.copy=="function"&&typeof Rt.fill=="function"&&typeof Rt.readUInt8=="function"}},{}],207:[function(xt,qt,Vt){(function(Rt,Dt){function St($t,re){var pe={seen:[],stylize:Nt};return arguments.length>=3&&(pe.depth=arguments[2]),arguments.length>=4&&(pe.colors=arguments[3]),rt(re)?pe.showHidden=re:re&&Vt._extend(pe,re),jt(pe.showHidden)&&(pe.showHidden=!1),jt(pe.depth)&&(pe.depth=2),jt(pe.colors)&&(pe.colors=!1),jt(pe.customInspect)&&(pe.customInspect=!0),pe.colors&&(pe.stylize=Et),Ct(pe,$t,pe.depth)}function Et($t,re){var pe=St.styles[re];return pe?"\x1B["+St.colors[pe][0]+"m"+$t+"\x1B["+St.colors[pe][1]+"m":$t}function Nt($t,re){return $t}function Pt($t){var re={};return $t.forEach(function(pe,le){re[pe]=!0}),re}function Ct($t,re,pe){if($t.customInspect&&re&&Xt(re.inspect)&&re.inspect!==Vt.inspect&&(!re.constructor||re.constructor.prototype!==re)){var le=re.inspect(pe,$t);return ft(le)||(le=Ct($t,le,pe)),le}var Ue=Lt($t,re);if(Ue)return Ue;var Ne=Object.keys(re),Xe=Pt(Ne);if($t.showHidden&&(Ne=Object.getOwnPropertyNames(re)),ne(re)&&(Ne.indexOf("message")>=0||Ne.indexOf("description")>=0))return Ft(re);if(Ne.length===0){if(Xt(re)){var Le=re.name?": "+re.name:"";return $t.stylize("[Function"+Le+"]","special")}if(Ht(re))return $t.stylize(RegExp.prototype.toString.call(re),"regexp");if(te(re))return $t.stylize(Date.prototype.toString.call(re),"date");if(ne(re))return Ft(re)}var xe="",_e=!1,Fe=["{","}"];if(st(re)&&(_e=!0,Fe=["[","]"]),Xt(re)&&(xe=" [Function"+(re.name?": "+re.name:"")+"]"),Ht(re)&&(xe=" "+RegExp.prototype.toString.call(re)),te(re)&&(xe=" "+Date.prototype.toUTCString.call(re)),ne(re)&&(xe=" "+Ft(re)),Ne.length===0&&(!_e||re.length==0))return Fe[0]+xe+Fe[1];if(pe<0)return Ht(re)?$t.stylize(RegExp.prototype.toString.call(re),"regexp"):$t.stylize("[Object]","special");$t.seen.push(re);var Ae;return Ae=_e?vt($t,re,pe,Xe,Ne):Ne.map(function(oe){return et($t,re,pe,Xe,oe,_e)}),$t.seen.pop(),tt(Ae,xe,Fe)}function Lt($t,re){if(jt(re))return $t.stylize("undefined","undefined");if(ft(re)){var pe="'"+JSON.stringify(re).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $t.stylize(pe,"string")}return gt(re)?$t.stylize(""+re,"number"):rt(re)?$t.stylize(""+re,"boolean"):ut(re)?$t.stylize("null","null"):void 0}function Ft($t){return"["+Error.prototype.toString.call($t)+"]"}function vt($t,re,pe,le,Ue){for(var Ne=[],Xe=0,Le=re.length;Xe<Le;++Xe)Ve(re,String(Xe))?Ne.push(et($t,re,pe,le,String(Xe),!0)):Ne.push("");return Ue.forEach(function(xe){xe.match(/^\d+$/)||Ne.push(et($t,re,pe,le,xe,!0))}),Ne}function et($t,re,pe,le,Ue,Ne){var Xe,Le,xe;if(xe=Object.getOwnPropertyDescriptor(re,Ue)||{value:re[Ue]},xe.get?Le=xe.set?$t.stylize("[Getter/Setter]","special"):$t.stylize("[Getter]","special"):xe.set&&(Le=$t.stylize("[Setter]","special")),Ve(le,Ue)||(Xe="["+Ue+"]"),Le||($t.seen.indexOf(xe.value)<0?(Le=ut(pe)?Ct($t,xe.value,null):Ct($t,xe.value,pe-1),Le.indexOf(`
|
|
`)>-1&&(Le=Ne?Le.split(`
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
`).substr(2):`
|
|
`+Le.split(`
|
|
`).map(function(_e){return" "+_e}).join(`
|
|
`))):Le=$t.stylize("[Circular]","special")),jt(Xe)){if(Ne&&Ue.match(/^\d+$/))return Le;Xe=JSON.stringify(""+Ue),Xe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Xe=Xe.substr(1,Xe.length-2),Xe=$t.stylize(Xe,"name")):(Xe=Xe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Xe=$t.stylize(Xe,"string"))}return Xe+": "+Le}function tt($t,re,pe){var le=0;return $t.reduce(function(Ue,Ne){return le++,Ne.indexOf(`
|
|
`)>=0&&le++,Ue+Ne.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?pe[0]+(re===""?"":re+`
|
|
`)+" "+$t.join(`,
|
|
`)+" "+pe[1]:pe[0]+re+" "+$t.join(", ")+" "+pe[1]}function st($t){return Array.isArray($t)}function rt($t){return typeof $t=="boolean"}function ut($t){return $t===null}function ct($t){return $t==null}function gt($t){return typeof $t=="number"}function ft($t){return typeof $t=="string"}function kt($t){return typeof $t=="symbol"}function jt($t){return $t===void 0}function Ht($t){return Ot($t)&&me($t)==="[object RegExp]"}function Ot($t){return typeof $t=="object"&&$t!==null}function te($t){return Ot($t)&&me($t)==="[object Date]"}function ne($t){return Ot($t)&&(me($t)==="[object Error]"||$t instanceof Error)}function Xt($t){return typeof $t=="function"}function ce($t){return $t===null||typeof $t=="boolean"||typeof $t=="number"||typeof $t=="string"||typeof $t=="symbol"||$t===void 0}function me($t){return Object.prototype.toString.call($t)}function Pe($t){return $t<10?"0"+$t.toString(10):$t.toString(10)}function De(){var $t=new Date,re=[Pe($t.getHours()),Pe($t.getMinutes()),Pe($t.getSeconds())].join(":");return[$t.getDate(),_t[$t.getMonth()],re].join(" ")}function Ve($t,re){return Object.prototype.hasOwnProperty.call($t,re)}var we=/%[sdj%]/g;Vt.format=function($t){if(!ft($t)){for(var re=[],pe=0;pe<arguments.length;pe++)re.push(St(arguments[pe]));return re.join(" ")}for(var pe=1,le=arguments,Ue=le.length,Ne=String($t).replace(we,function(xe){if(xe==="%%")return"%";if(pe>=Ue)return xe;switch(xe){case"%s":return String(le[pe++]);case"%d":return Number(le[pe++]);case"%j":try{return JSON.stringify(le[pe++])}catch(_e){return"[Circular]"}default:return xe}}),Xe=le[pe];pe<Ue;Xe=le[++pe])ut(Xe)||!Ot(Xe)?Ne+=" "+Xe:Ne+=" "+St(Xe);return Ne},Vt.deprecate=function($t,re){function pe(){if(!le){if(Rt.throwDeprecation)throw new Error(re);Rt.traceDeprecation?console.trace(re):console.error(re),le=!0}return $t.apply(this,arguments)}if(jt(Dt.process))return function(){return Vt.deprecate($t,re).apply(this,arguments)};if(Rt.noDeprecation===!0)return $t;var le=!1;return pe};var Qe,ae={};Vt.debuglog=function($t){if(jt(Qe)&&(Qe=Rt.env.NODE_DEBUG||""),$t=$t.toUpperCase(),!ae[$t])if(new RegExp("\\b"+$t+"\\b","i").test(Qe)){var re=Rt.pid;ae[$t]=function(){var pe=Vt.format.apply(Vt,arguments);console.error("%s %d: %s",$t,re,pe)}}else ae[$t]=function(){};return ae[$t]},Vt.inspect=St,St.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},St.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Vt.isArray=st,Vt.isBoolean=rt,Vt.isNull=ut,Vt.isNullOrUndefined=ct,Vt.isNumber=gt,Vt.isString=ft,Vt.isSymbol=kt,Vt.isUndefined=jt,Vt.isRegExp=Ht,Vt.isObject=Ot,Vt.isDate=te,Vt.isError=ne,Vt.isFunction=Xt,Vt.isPrimitive=ce,Vt.isBuffer=xt("./support/isBuffer");var _t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Vt.log=function(){console.log("%s - %s",De(),Vt.format.apply(Vt,arguments))},Vt.inherits=xt("inherits"),Vt._extend=function($t,re){if(!re||!Ot(re))return $t;for(var pe=Object.keys(re),le=pe.length;le--;)$t[pe[le]]=re[pe[le]];return $t}}).call(this,xt("_process"),typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(xt,qt,Vt){"use strict";(function(){Vt.stripBOM=function(Rt){return Rt[0]==="\uFEFF"?Rt.substring(1):Rt}}).call(void 0)},{}],209:[function(xt,qt,Vt){"use strict";function Rt(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}var Dt=xt("babel-runtime/helpers/typeof"),St=Rt(Dt),Et=xt("babel-runtime/core-js/object/keys"),Nt=Rt(Et);(function(){var Pt,Ct,Lt,Ft,vt,et={}.hasOwnProperty;Pt=xt("xmlbuilder"),Ct=xt("./defaults").defaults,Ft=function(tt){return typeof tt=="string"&&(tt.indexOf("&")>=0||tt.indexOf(">")>=0||tt.indexOf("<")>=0)},vt=function(tt){return"<![CDATA["+Lt(tt)+"]]>"},Lt=function(tt){return tt.replace("]]>","]]]]><![CDATA[>")},Vt.Builder=function(){function tt(st){var rt,ut,ct;this.options={},ut=Ct[.2];for(rt in ut)et.call(ut,rt)&&(ct=ut[rt],this.options[rt]=ct);for(rt in st)et.call(st,rt)&&(ct=st[rt],this.options[rt]=ct)}return tt.prototype.buildObject=function(st){var rt,ut,ct,gt,ft;return rt=this.options.attrkey,ut=this.options.charkey,(0,Nt.default)(st).length===1&&this.options.rootName===Ct[.2].rootName?(ft=(0,Nt.default)(st)[0],st=st[ft]):ft=this.options.rootName,ct=function(kt){return function(jt,Ht){var Ot,te,ne,Xt,ce,me;if((Ht===void 0?"undefined":(0,St.default)(Ht))!=="object")kt.options.cdata&&Ft(Ht)?jt.raw(vt(Ht)):jt.txt(Ht);else if(Array.isArray(Ht)){for(Xt in Ht)if(et.call(Ht,Xt)){te=Ht[Xt];for(ce in te)ne=te[ce],jt=ct(jt.ele(ce),ne).up()}}else for(ce in Ht)if(et.call(Ht,ce))if(te=Ht[ce],ce===rt){if((te===void 0?"undefined":(0,St.default)(te))==="object")for(Ot in te)me=te[Ot],jt=jt.att(Ot,me)}else if(ce===ut)jt=kt.options.cdata&&Ft(te)?jt.raw(vt(te)):jt.txt(te);else if(Array.isArray(te))for(Xt in te)et.call(te,Xt)&&(ne=te[Xt],jt=typeof ne=="string"?kt.options.cdata&&Ft(ne)?jt.ele(ce).raw(vt(ne)).up():jt.ele(ce,ne).up():ct(jt.ele(ce),ne).up());else(te===void 0?"undefined":(0,St.default)(te))==="object"?jt=ct(jt.ele(ce),te).up():typeof te=="string"&&kt.options.cdata&&Ft(te)?jt=jt.ele(ce).raw(vt(te)).up():(te==null&&(te=""),jt=jt.ele(ce,te.toString()).up());return jt}}(this),gt=Pt.create(ft,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ct(gt,st).end(this.options.renderOpts)},tt}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(xt,qt,Vt){"use strict";(function(){Vt.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(xt,qt,Vt){"use strict";function Rt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}var Dt=xt("babel-runtime/core-js/object/get-own-property-names"),St=Rt(Dt),Et=xt("babel-runtime/core-js/object/keys"),Nt=Rt(Et),Pt=xt("babel-runtime/helpers/typeof"),Ct=Rt(Pt);(function(){var Lt,Ft,vt,et,tt,st,rt,ut,ct=function(kt,jt){return function(){return kt.apply(jt,arguments)}},gt=function(kt,jt){function Ht(){this.constructor=kt}for(var Ot in jt)ft.call(jt,Ot)&&(kt[Ot]=jt[Ot]);return Ht.prototype=jt.prototype,kt.prototype=new Ht,kt.__super__=jt.prototype,kt},ft={}.hasOwnProperty;rt=xt("sax"),vt=xt("events"),Lt=xt("./bom"),st=xt("./processors"),ut=xt("timers").setImmediate,Ft=xt("./defaults").defaults,et=function(kt){return(kt===void 0?"undefined":(0,Ct.default)(kt))==="object"&&kt!=null&&(0,Nt.default)(kt).length===0},tt=function(kt,jt,Ht){var Ot,te,ne;for(Ot=0,te=kt.length;Ot<te;Ot++)ne=kt[Ot],jt=ne(jt,Ht);return jt},Vt.Parser=function(kt){function jt(Ht){this.parseString=ct(this.parseString,this),this.reset=ct(this.reset,this),this.assignOrPush=ct(this.assignOrPush,this),this.processAsync=ct(this.processAsync,this);var Ot,te,ne;if(!(this instanceof Vt.Parser))return new Vt.Parser(Ht);this.options={},te=Ft[.2];for(Ot in te)ft.call(te,Ot)&&(ne=te[Ot],this.options[Ot]=ne);for(Ot in Ht)ft.call(Ht,Ot)&&(ne=Ht[Ot],this.options[Ot]=ne);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(st.normalize)),this.reset()}return gt(jt,kt),jt.prototype.processAsync=function(){var Ht,Ot;try{return this.remaining.length<=this.options.chunkSize?(Ht=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ht),this.saxParser.close()):(Ht=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ht),ut(this.processAsync))}catch(te){if(Ot=te,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Ot)}},jt.prototype.assignOrPush=function(Ht,Ot,te){return Ot in Ht?(Ht[Ot]instanceof Array||(Ht[Ot]=[Ht[Ot]]),Ht[Ot].push(te)):this.options.explicitArray?Ht[Ot]=[te]:Ht[Ot]=te},jt.prototype.reset=function(){var Ht,Ot,te,ne;return this.removeAllListeners(),this.saxParser=rt.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Xt){return function(ce){if(Xt.saxParser.resume(),!Xt.saxParser.errThrown)return Xt.saxParser.errThrown=!0,Xt.emit("error",ce)}}(this),this.saxParser.onend=function(Xt){return function(){if(!Xt.saxParser.ended)return Xt.saxParser.ended=!0,Xt.emit("end",Xt.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,ne=[],Ht=this.options.attrkey,Ot=this.options.charkey,this.saxParser.onopentag=function(Xt){return function(ce){var me,Pe,De,Ve,we;if(De={},De[Ot]="",!Xt.options.ignoreAttrs){we=ce.attributes;for(me in we)ft.call(we,me)&&(Ht in De||Xt.options.mergeAttrs||(De[Ht]={}),Pe=Xt.options.attrValueProcessors?tt(Xt.options.attrValueProcessors,ce.attributes[me],me):ce.attributes[me],Ve=Xt.options.attrNameProcessors?tt(Xt.options.attrNameProcessors,me):me,Xt.options.mergeAttrs?Xt.assignOrPush(De,Ve,Pe):De[Ht][Ve]=Pe)}return De["#name"]=Xt.options.tagNameProcessors?tt(Xt.options.tagNameProcessors,ce.name):ce.name,Xt.options.xmlns&&(De[Xt.options.xmlnskey]={uri:ce.uri,local:ce.local}),ne.push(De)}}(this),this.saxParser.onclosetag=function(Xt){return function(){var ce,me,Pe,De,Ve,we,Qe,ae,_t,$t;if(we=ne.pop(),Ve=we["#name"],Xt.options.explicitChildren&&Xt.options.preserveChildrenOrder||delete we["#name"],we.cdata===!0&&(ce=we.cdata,delete we.cdata),_t=ne[ne.length-1],we[Ot].match(/^\s*$/)&&!ce?(me=we[Ot],delete we[Ot]):(Xt.options.trim&&(we[Ot]=we[Ot].trim()),Xt.options.normalize&&(we[Ot]=we[Ot].replace(/\s{2,}/g," ").trim()),we[Ot]=Xt.options.valueProcessors?tt(Xt.options.valueProcessors,we[Ot],Ve):we[Ot],(0,Nt.default)(we).length===1&&Ot in we&&!Xt.EXPLICIT_CHARKEY&&(we=we[Ot])),et(we)&&(we=Xt.options.emptyTag!==""?Xt.options.emptyTag:me),Xt.options.validator!=null&&($t="/"+function(){var re,pe,le;for(le=[],re=0,pe=ne.length;re<pe;re++)De=ne[re],le.push(De["#name"]);return le}().concat(Ve).join("/"),function(){var re;try{we=Xt.options.validator($t,_t&&_t[Ve],we)}catch(pe){return re=pe,Xt.emit("error",re)}}()),Xt.options.explicitChildren&&!Xt.options.mergeAttrs&&(we===void 0?"undefined":(0,Ct.default)(we))==="object")if(Xt.options.preserveChildrenOrder){if(_t){_t[Xt.options.childkey]=_t[Xt.options.childkey]||[],Qe={};for(Pe in we)ft.call(we,Pe)&&(Qe[Pe]=we[Pe]);_t[Xt.options.childkey].push(Qe),delete we["#name"],(0,Nt.default)(we).length===1&&Ot in we&&!Xt.EXPLICIT_CHARKEY&&(we=we[Ot])}}else De={},Xt.options.attrkey in we&&(De[Xt.options.attrkey]=we[Xt.options.attrkey],delete we[Xt.options.attrkey]),!Xt.options.charsAsChildren&&Xt.options.charkey in we&&(De[Xt.options.charkey]=we[Xt.options.charkey],delete we[Xt.options.charkey]),(0,St.default)(we).length>0&&(De[Xt.options.childkey]=we),we=De;return ne.length>0?Xt.assignOrPush(_t,Ve,we):(Xt.options.explicitRoot&&(ae=we,we={},we[Ve]=ae),Xt.resultObject=we,Xt.saxParser.ended=!0,Xt.emit("end",Xt.resultObject))}}(this),te=function(Xt){return function(ce){var me,Pe;if(Pe=ne[ne.length-1])return Pe[Ot]+=ce,Xt.options.explicitChildren&&Xt.options.preserveChildrenOrder&&Xt.options.charsAsChildren&&(Xt.options.includeWhiteChars||ce.replace(/\\n/g,"").trim()!=="")&&(Pe[Xt.options.childkey]=Pe[Xt.options.childkey]||[],me={"#name":"__text__"},me[Ot]=ce,Xt.options.normalize&&(me[Ot]=me[Ot].replace(/\s{2,}/g," ").trim()),Pe[Xt.options.childkey].push(me)),Pe}}(this),this.saxParser.ontext=te,this.saxParser.oncdata=function(Xt){return function(ce){var me;if(me=te(ce))return me.cdata=!0}}()},jt.prototype.parseString=function(Ht,Ot){var te;Ot!=null&&typeof Ot=="function"&&(this.on("end",function(ne){return this.reset(),Ot(null,ne)}),this.on("error",function(ne){return this.reset(),Ot(ne)}));try{return Ht=Ht.toString(),Ht.trim()===""?(this.emit("end",null),!0):(Ht=Lt.stripBOM(Ht),this.options.async?(this.remaining=Ht,ut(this.processAsync),this.saxParser):this.saxParser.write(Ht).close())}catch(ne){if(te=ne,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",te),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw te}},jt}(vt.EventEmitter),Vt.parseString=function(kt,jt,Ht){var Ot,te,ne;return Ht!=null?(typeof Ht=="function"&&(Ot=Ht),(jt===void 0?"undefined":(0,Ct.default)(jt))==="object"&&(te=jt)):(typeof jt=="function"&&(Ot=jt),te={}),ne=new Vt.Parser(te),ne.parseString(kt,Ot)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(xt,qt,Vt){"use strict";(function(){var Rt;Rt=new RegExp(/(?!xmlns)^.*:/),Vt.normalize=function(Dt){return Dt.toLowerCase()},Vt.firstCharLowerCase=function(Dt){return Dt.charAt(0).toLowerCase()+Dt.slice(1)},Vt.stripPrefix=function(Dt){return Dt.replace(Rt,"")},Vt.parseNumbers=function(Dt){return isNaN(Dt)||(Dt=Dt%1==0?parseInt(Dt,10):parseFloat(Dt)),Dt},Vt.parseBooleans=function(Dt){return/^(?:true|false)$/i.test(Dt)&&(Dt=Dt.toLowerCase()==="true"),Dt}}).call(void 0)},{}],213:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt=function(Ct,Lt){function Ft(){this.constructor=Ct}for(var vt in Lt)Pt.call(Lt,vt)&&(Ct[vt]=Lt[vt]);return Ft.prototype=Lt.prototype,Ct.prototype=new Ft,Ct.__super__=Lt.prototype,Ct},Pt={}.hasOwnProperty;Dt=xt("./defaults"),Rt=xt("./builder"),St=xt("./parser"),Et=xt("./processors"),Vt.defaults=Dt.defaults,Vt.processors=Et,Vt.ValidationError=function(Ct){function Lt(Ft){this.message=Ft}return Nt(Lt,Ct),Lt}(Error),Vt.Builder=Rt.Builder,Vt.Parser=St.Parser,Vt.parseString=St.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(xt,qt,Vt){"use strict";function Rt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}var Dt=xt("babel-runtime/core-js/object/get-prototype-of"),St=Rt(Dt),Et=xt("babel-runtime/helpers/typeof"),Nt=Rt(Et),Pt=xt("babel-runtime/core-js/object/assign"),Ct=Rt(Pt);(function(){var Lt,Ft,vt,et,tt,st,rt=[].slice,ut={}.hasOwnProperty;Lt=function(){var ct,gt,ft,kt,jt,Ht;if(Ht=arguments[0],jt=2<=arguments.length?rt.call(arguments,1):[],et(Ct.default))Ct.default.apply(null,arguments);else for(ct=0,ft=jt.length;ct<ft;ct++)if((kt=jt[ct])!=null)for(gt in kt)ut.call(kt,gt)&&(Ht[gt]=kt[gt]);return Ht},et=function(ct){return!!ct&&Object.prototype.toString.call(ct)==="[object Function]"},tt=function(ct){var gt;return!!ct&&((gt=ct===void 0?"undefined":(0,Nt.default)(ct))==="function"||gt==="object")},Ft=function(ct){return et(Array.isArray)?Array.isArray(ct):Object.prototype.toString.call(ct)==="[object Array]"},vt=function(ct){var gt;if(Ft(ct))return!ct.length;for(gt in ct)if(ut.call(ct,gt))return!1;return!0},st=function(ct){var gt,ft;return tt(ct)&&(ft=(0,St.default)(ct))&&(gt=ft.constructor)&&typeof gt=="function"&> instanceof gt&&Function.prototype.toString.call(gt)===Function.prototype.toString.call(Object)},qt.exports.assign=Lt,qt.exports.isFunction=et,qt.exports.isObject=tt,qt.exports.isArray=Ft,qt.exports.isEmpty=vt,qt.exports.isPlainObject=st}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){qt.exports=function(){function St(Et,Nt,Pt){if(this.options=Et.options,this.stringify=Et.stringify,Nt==null)throw new Error("Missing attribute name of element "+Et.name);if(Pt==null)throw new Error("Missing attribute value for attribute "+Nt+" of element "+Et.name);this.name=this.stringify.attName(Nt),this.value=this.stringify.attValue(Pt)}return St.prototype.clone=function(){return(0,Dt.default)(this)},St.prototype.toString=function(Et){return this.options.writer.set(Et).attribute(this)},St}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et=function(Pt,Ct){function Lt(){this.constructor=Pt}for(var Ft in Ct)Nt.call(Ct,Ft)&&(Pt[Ft]=Ct[Ft]);return Lt.prototype=Ct.prototype,Pt.prototype=new Lt,Pt.__super__=Ct.prototype,Pt},Nt={}.hasOwnProperty;St=xt("./XMLNode"),qt.exports=function(Pt){function Ct(Lt,Ft){if(Ct.__super__.constructor.call(this,Lt),Ft==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(Ft)}return Et(Ct,Pt),Ct.prototype.clone=function(){return(0,Dt.default)(this)},Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).cdata(this)},Ct}(St)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et=function(Pt,Ct){function Lt(){this.constructor=Pt}for(var Ft in Ct)Nt.call(Ct,Ft)&&(Pt[Ft]=Ct[Ft]);return Lt.prototype=Ct.prototype,Pt.prototype=new Lt,Pt.__super__=Ct.prototype,Pt},Nt={}.hasOwnProperty;St=xt("./XMLNode"),qt.exports=function(Pt){function Ct(Lt,Ft){if(Ct.__super__.constructor.call(this,Lt),Ft==null)throw new Error("Missing comment text");this.text=this.stringify.comment(Ft)}return Et(Ct,Pt),Ct.prototype.clone=function(){return(0,Dt.default)(this)},Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).comment(this)},Ct}(St)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt=function(Et,Nt){function Pt(){this.constructor=Et}for(var Ct in Nt)St.call(Nt,Ct)&&(Et[Ct]=Nt[Ct]);return Pt.prototype=Nt.prototype,Et.prototype=new Pt,Et.__super__=Nt.prototype,Et},St={}.hasOwnProperty;Rt=xt("./XMLNode"),qt.exports=function(Et){function Nt(Pt,Ct,Lt,Ft,vt,et){if(Nt.__super__.constructor.call(this,Pt),Ct==null)throw new Error("Missing DTD element name");if(Lt==null)throw new Error("Missing DTD attribute name");if(!Ft)throw new Error("Missing DTD attribute type");if(!vt)throw new Error("Missing DTD attribute default");if(vt.indexOf("#")!==0&&(vt="#"+vt),!vt.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(et&&!vt.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(Ct),this.attributeName=this.stringify.attName(Lt),this.attributeType=this.stringify.dtdAttType(Ft),this.defaultValue=this.stringify.dtdAttDefault(et),this.defaultValueType=vt}return Dt(Nt,Et),Nt.prototype.toString=function(Pt){return this.options.writer.set(Pt).dtdAttList(this)},Nt}(Rt)}).call(void 0)},{"./XMLNode":227}],219:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt=function(Et,Nt){function Pt(){this.constructor=Et}for(var Ct in Nt)St.call(Nt,Ct)&&(Et[Ct]=Nt[Ct]);return Pt.prototype=Nt.prototype,Et.prototype=new Pt,Et.__super__=Nt.prototype,Et},St={}.hasOwnProperty;Rt=xt("./XMLNode"),qt.exports=function(Et){function Nt(Pt,Ct,Lt){if(Nt.__super__.constructor.call(this,Pt),Ct==null)throw new Error("Missing DTD element name");Lt||(Lt="(#PCDATA)"),Array.isArray(Lt)&&(Lt="("+Lt.join(",")+")"),this.name=this.stringify.eleName(Ct),this.value=this.stringify.dtdElementValue(Lt)}return Dt(Nt,Et),Nt.prototype.toString=function(Pt){return this.options.writer.set(Pt).dtdElement(this)},Nt}(Rt)}).call(void 0)},{"./XMLNode":227}],220:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St=function(Nt,Pt){function Ct(){this.constructor=Nt}for(var Lt in Pt)Et.call(Pt,Lt)&&(Nt[Lt]=Pt[Lt]);return Ct.prototype=Pt.prototype,Nt.prototype=new Ct,Nt.__super__=Pt.prototype,Nt},Et={}.hasOwnProperty;Dt=xt("./Utility").isObject,Rt=xt("./XMLNode"),qt.exports=function(Nt){function Pt(Ct,Lt,Ft,vt){if(Pt.__super__.constructor.call(this,Ct),Ft==null)throw new Error("Missing entity name");if(vt==null)throw new Error("Missing entity value");if(this.pe=!!Lt,this.name=this.stringify.eleName(Ft),Dt(vt)){if(!vt.pubID&&!vt.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(vt.pubID&&!vt.sysID)throw new Error("System identifier is required for a public external entity");if(vt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vt.pubID)),vt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vt.sysID)),vt.nData!=null&&(this.nData=this.stringify.dtdNData(vt.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(vt)}return St(Pt,Nt),Pt.prototype.toString=function(Ct){return this.options.writer.set(Ct).dtdEntity(this)},Pt}(Rt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt=function(Et,Nt){function Pt(){this.constructor=Et}for(var Ct in Nt)St.call(Nt,Ct)&&(Et[Ct]=Nt[Ct]);return Pt.prototype=Nt.prototype,Et.prototype=new Pt,Et.__super__=Nt.prototype,Et},St={}.hasOwnProperty;Rt=xt("./XMLNode"),qt.exports=function(Et){function Nt(Pt,Ct,Lt){if(Nt.__super__.constructor.call(this,Pt),Ct==null)throw new Error("Missing notation name");if(!Lt.pubID&&!Lt.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(Ct),Lt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(Lt.pubID)),Lt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(Lt.sysID))}return Dt(Nt,Et),Nt.prototype.toString=function(Pt){return this.options.writer.set(Pt).dtdNotation(this)},Nt}(Rt)}).call(void 0)},{"./XMLNode":227}],222:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St=function(Nt,Pt){function Ct(){this.constructor=Nt}for(var Lt in Pt)Et.call(Pt,Lt)&&(Nt[Lt]=Pt[Lt]);return Ct.prototype=Pt.prototype,Nt.prototype=new Ct,Nt.__super__=Pt.prototype,Nt},Et={}.hasOwnProperty;Dt=xt("./Utility").isObject,Rt=xt("./XMLNode"),qt.exports=function(Nt){function Pt(Ct,Lt,Ft,vt){var et;Pt.__super__.constructor.call(this,Ct),Dt(Lt)&&(et=Lt,Lt=et.version,Ft=et.encoding,vt=et.standalone),Lt||(Lt="1.0"),this.version=this.stringify.xmlVersion(Lt),Ft!=null&&(this.encoding=this.stringify.xmlEncoding(Ft)),vt!=null&&(this.standalone=this.stringify.xmlStandalone(vt))}return St(Pt,Nt),Pt.prototype.toString=function(Ct){return this.options.writer.set(Ct).declaration(this)},Pt}(Rt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct=function(Ft,vt){function et(){this.constructor=Ft}for(var tt in vt)Lt.call(vt,tt)&&(Ft[tt]=vt[tt]);return et.prototype=vt.prototype,Ft.prototype=new et,Ft.__super__=vt.prototype,Ft},Lt={}.hasOwnProperty;Pt=xt("./Utility").isObject,Nt=xt("./XMLNode"),Rt=xt("./XMLDTDAttList"),St=xt("./XMLDTDEntity"),Dt=xt("./XMLDTDElement"),Et=xt("./XMLDTDNotation"),qt.exports=function(Ft){function vt(et,tt,st){var rt,ut;vt.__super__.constructor.call(this,et),this.documentObject=et,Pt(tt)&&(rt=tt,tt=rt.pubID,st=rt.sysID),st==null&&(ut=[tt,st],st=ut[0],tt=ut[1]),tt!=null&&(this.pubID=this.stringify.dtdPubID(tt)),st!=null&&(this.sysID=this.stringify.dtdSysID(st))}return Ct(vt,Ft),vt.prototype.element=function(et,tt){var st;return st=new Dt(this,et,tt),this.children.push(st),this},vt.prototype.attList=function(et,tt,st,rt,ut){var ct;return ct=new Rt(this,et,tt,st,rt,ut),this.children.push(ct),this},vt.prototype.entity=function(et,tt){var st;return st=new St(this,!1,et,tt),this.children.push(st),this},vt.prototype.pEntity=function(et,tt){var st;return st=new St(this,!0,et,tt),this.children.push(st),this},vt.prototype.notation=function(et,tt){var st;return st=new Et(this,et,tt),this.children.push(st),this},vt.prototype.toString=function(et){return this.options.writer.set(et).docType(this)},vt.prototype.ele=function(et,tt){return this.element(et,tt)},vt.prototype.att=function(et,tt,st,rt,ut){return this.attList(et,tt,st,rt,ut)},vt.prototype.ent=function(et,tt){return this.entity(et,tt)},vt.prototype.pent=function(et,tt){return this.pEntity(et,tt)},vt.prototype.not=function(et,tt){return this.notation(et,tt)},vt.prototype.up=function(){return this.root()||this.documentObject},vt}(Nt)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt=function(Ct,Lt){function Ft(){this.constructor=Ct}for(var vt in Lt)Pt.call(Lt,vt)&&(Ct[vt]=Lt[vt]);return Ft.prototype=Lt.prototype,Ct.prototype=new Ft,Ct.__super__=Lt.prototype,Ct},Pt={}.hasOwnProperty;Et=xt("./Utility").isPlainObject,Rt=xt("./XMLNode"),St=xt("./XMLStringifier"),Dt=xt("./XMLStringWriter"),qt.exports=function(Ct){function Lt(Ft){Lt.__super__.constructor.call(this,null),Ft||(Ft={}),Ft.writer||(Ft.writer=new Dt),this.options=Ft,this.stringify=new St(Ft),this.isDocument=!0}return Nt(Lt,Ct),Lt.prototype.end=function(Ft){var vt;return Ft?Et(Ft)&&(vt=Ft,Ft=this.options.writer.set(vt)):Ft=this.options.writer,Ft.document(this)},Lt.prototype.toString=function(Ft){return this.options.writer.set(Ft).document(this)},Lt}(Rt)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct,Lt,Ft,vt,et,tt,st,rt,ut,ct,gt,ft,kt,jt={}.hasOwnProperty;kt=xt("./Utility"),gt=kt.isObject,ct=kt.isFunction,ft=kt.isPlainObject,vt=xt("./XMLElement"),Dt=xt("./XMLCData"),St=xt("./XMLComment"),tt=xt("./XMLRaw"),ut=xt("./XMLText"),et=xt("./XMLProcessingInstruction"),Lt=xt("./XMLDeclaration"),Ft=xt("./XMLDocType"),Et=xt("./XMLDTDAttList"),Pt=xt("./XMLDTDEntity"),Nt=xt("./XMLDTDElement"),Ct=xt("./XMLDTDNotation"),Rt=xt("./XMLAttribute"),rt=xt("./XMLStringifier"),st=xt("./XMLStringWriter"),qt.exports=function(){function Ht(Ot,te,ne){var Xt;Ot||(Ot={}),Ot.writer?ft(Ot.writer)&&(Xt=Ot.writer,Ot.writer=new st(Xt)):Ot.writer=new st(Ot),this.options=Ot,this.writer=Ot.writer,this.stringify=new rt(Ot),this.onDataCallback=te||function(){},this.onEndCallback=ne||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ht.prototype.node=function(Ot,te,ne){var Xt;if(Ot==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),Ot=Ot.valueOf(),te==null&&(te={}),te=te.valueOf(),gt(te)||(Xt=[te,ne],ne=Xt[0],te=Xt[1]),this.currentNode=new vt(this,Ot,te),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,ne!=null&&this.text(ne),this},Ht.prototype.element=function(Ot,te,ne){return this.currentNode&&this.currentNode instanceof Ft?this.dtdElement.apply(this,arguments):this.node(Ot,te,ne)},Ht.prototype.attribute=function(Ot,te){var ne,Xt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(Ot!=null&&(Ot=Ot.valueOf()),gt(Ot))for(ne in Ot)jt.call(Ot,ne)&&(Xt=Ot[ne],this.attribute(ne,Xt));else ct(te)&&(te=te.apply()),this.options.skipNullAttributes&&te==null||(this.currentNode.attributes[Ot]=new Rt(this,Ot,te));return this},Ht.prototype.text=function(Ot){var te;return this.openCurrent(),te=new ut(this,Ot),this.onData(this.writer.text(te,this.currentLevel+1)),this},Ht.prototype.cdata=function(Ot){var te;return this.openCurrent(),te=new Dt(this,Ot),this.onData(this.writer.cdata(te,this.currentLevel+1)),this},Ht.prototype.comment=function(Ot){var te;return this.openCurrent(),te=new St(this,Ot),this.onData(this.writer.comment(te,this.currentLevel+1)),this},Ht.prototype.raw=function(Ot){var te;return this.openCurrent(),te=new tt(this,Ot),this.onData(this.writer.raw(te,this.currentLevel+1)),this},Ht.prototype.instruction=function(Ot,te){var ne,Xt,ce,me,Pe;if(this.openCurrent(),Ot!=null&&(Ot=Ot.valueOf()),te!=null&&(te=te.valueOf()),Array.isArray(Ot))for(ne=0,me=Ot.length;ne<me;ne++)Xt=Ot[ne],this.instruction(Xt);else if(gt(Ot))for(Xt in Ot)jt.call(Ot,Xt)&&(ce=Ot[Xt],this.instruction(Xt,ce));else ct(te)&&(te=te.apply()),Pe=new et(this,Ot,te),this.onData(this.writer.processingInstruction(Pe,this.currentLevel+1));return this},Ht.prototype.declaration=function(Ot,te,ne){var Xt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return Xt=new Lt(this,Ot,te,ne),this.onData(this.writer.declaration(Xt,this.currentLevel+1)),this},Ht.prototype.doctype=function(Ot,te,ne){if(this.openCurrent(),Ot==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new Ft(this,te,ne),this.currentNode.rootNodeName=Ot,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ht.prototype.dtdElement=function(Ot,te){var ne;return this.openCurrent(),ne=new Nt(this,Ot,te),this.onData(this.writer.dtdElement(ne,this.currentLevel+1)),this},Ht.prototype.attList=function(Ot,te,ne,Xt,ce){var me;return this.openCurrent(),me=new Et(this,Ot,te,ne,Xt,ce),this.onData(this.writer.dtdAttList(me,this.currentLevel+1)),this},Ht.prototype.entity=function(Ot,te){var ne;return this.openCurrent(),ne=new Pt(this,!1,Ot,te),this.onData(this.writer.dtdEntity(ne,this.currentLevel+1)),this},Ht.prototype.pEntity=function(Ot,te){var ne;return this.openCurrent(),ne=new Pt(this,!0,Ot,te),this.onData(this.writer.dtdEntity(ne,this.currentLevel+1)),this},Ht.prototype.notation=function(Ot,te){var ne;return this.openCurrent(),ne=new Ct(this,Ot,te),this.onData(this.writer.dtdNotation(ne,this.currentLevel+1)),this},Ht.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ht.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ht.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ht.prototype.openNode=function(Ot){if(!Ot.isOpen)return!this.root&&this.currentLevel===0&&Ot instanceof vt&&(this.root=Ot),this.onData(this.writer.openNode(Ot,this.currentLevel)),Ot.isOpen=!0},Ht.prototype.closeNode=function(Ot){if(!Ot.isClosed)return this.onData(this.writer.closeNode(Ot,this.currentLevel)),Ot.isClosed=!0},Ht.prototype.onData=function(Ot){return this.documentStarted=!0,this.onDataCallback(Ot)},Ht.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ht.prototype.ele=function(){return this.element.apply(this,arguments)},Ht.prototype.nod=function(Ot,te,ne){return this.node(Ot,te,ne)},Ht.prototype.txt=function(Ot){return this.text(Ot)},Ht.prototype.dat=function(Ot){return this.cdata(Ot)},Ht.prototype.com=function(Ot){return this.comment(Ot)},Ht.prototype.ins=function(Ot,te){return this.instruction(Ot,te)},Ht.prototype.dec=function(Ot,te,ne){return this.declaration(Ot,te,ne)},Ht.prototype.dtd=function(Ot,te,ne){return this.doctype(Ot,te,ne)},Ht.prototype.e=function(Ot,te,ne){return this.element(Ot,te,ne)},Ht.prototype.n=function(Ot,te,ne){return this.node(Ot,te,ne)},Ht.prototype.t=function(Ot){return this.text(Ot)},Ht.prototype.d=function(Ot){return this.cdata(Ot)},Ht.prototype.c=function(Ot){return this.comment(Ot)},Ht.prototype.r=function(Ot){return this.raw(Ot)},Ht.prototype.i=function(Ot,te){return this.instruction(Ot,te)},Ht.prototype.att=function(){return this.currentNode&&this.currentNode instanceof Ft?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ht.prototype.a=function(){return this.currentNode&&this.currentNode instanceof Ft?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ht.prototype.ent=function(Ot,te){return this.entity(Ot,te)},Ht.prototype.pent=function(Ot,te){return this.pEntity(Ot,te)},Ht.prototype.not=function(Ot,te){return this.notation(Ot,te)},Ht}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et,Nt,Pt,Ct,Lt=function(vt,et){function tt(){this.constructor=vt}for(var st in et)Ft.call(et,st)&&(vt[st]=et[st]);return tt.prototype=et.prototype,vt.prototype=new tt,vt.__super__=et.prototype,vt},Ft={}.hasOwnProperty;Ct=xt("./Utility"),Pt=Ct.isObject,Nt=Ct.isFunction,Et=xt("./XMLNode"),St=xt("./XMLAttribute"),qt.exports=function(vt){function et(tt,st,rt){if(et.__super__.constructor.call(this,tt),st==null)throw new Error("Missing element name");this.name=this.stringify.eleName(st),this.attributes={},rt!=null&&this.attribute(rt),tt.isDocument&&(this.isRoot=!0,this.documentObject=tt,tt.rootObject=this)}return Lt(et,vt),et.prototype.clone=function(){var tt,st,rt,ut;rt=(0,Dt.default)(this),rt.isRoot&&(rt.documentObject=null),rt.attributes={},ut=this.attributes;for(st in ut)Ft.call(ut,st)&&(tt=ut[st],rt.attributes[st]=tt.clone());return rt.children=[],this.children.forEach(function(ct){var gt;return gt=ct.clone(),gt.parent=rt,rt.children.push(gt)}),rt},et.prototype.attribute=function(tt,st){var rt,ut;if(tt!=null&&(tt=tt.valueOf()),Pt(tt))for(rt in tt)Ft.call(tt,rt)&&(ut=tt[rt],this.attribute(rt,ut));else Nt(st)&&(st=st.apply()),this.options.skipNullAttributes&&st==null||(this.attributes[tt]=new St(this,tt,st));return this},et.prototype.removeAttribute=function(tt){var st,rt,ut;if(tt==null)throw new Error("Missing attribute name");if(tt=tt.valueOf(),Array.isArray(tt))for(rt=0,ut=tt.length;rt<ut;rt++)st=tt[rt],delete this.attributes[st];else delete this.attributes[tt];return this},et.prototype.toString=function(tt){return this.options.writer.set(tt).element(this)},et.prototype.att=function(tt,st){return this.attribute(tt,st)},et.prototype.a=function(tt,st){return this.attribute(tt,st)},et}(Et)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct,Lt,Ft,vt,et,tt,st={}.hasOwnProperty;tt=xt("./Utility"),et=tt.isObject,vt=tt.isFunction,Ft=tt.isEmpty,Nt=null,Rt=null,Dt=null,St=null,Et=null,Ct=null,Lt=null,Pt=null,qt.exports=function(){function rt(ut){this.parent=ut,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],Nt||(Nt=xt("./XMLElement"),Rt=xt("./XMLCData"),Dt=xt("./XMLComment"),St=xt("./XMLDeclaration"),Et=xt("./XMLDocType"),Ct=xt("./XMLRaw"),Lt=xt("./XMLText"),Pt=xt("./XMLProcessingInstruction"))}return rt.prototype.element=function(ut,ct,gt){var ft,kt,jt,Ht,Ot,te,ne,Xt,ce,me;if(te=null,ct==null&&(ct={}),ct=ct.valueOf(),et(ct)||(ce=[ct,gt],gt=ce[0],ct=ce[1]),ut!=null&&(ut=ut.valueOf()),Array.isArray(ut))for(jt=0,ne=ut.length;jt<ne;jt++)kt=ut[jt],te=this.element(kt);else if(vt(ut))te=this.element(ut.apply());else if(et(ut)){for(Ot in ut)if(st.call(ut,Ot))if(me=ut[Ot],vt(me)&&(me=me.apply()),et(me)&&Ft(me)&&(me=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ot.indexOf(this.stringify.convertAttKey)===0)te=this.attribute(Ot.substr(this.stringify.convertAttKey.length),me);else if(!this.options.separateArrayItems&&Array.isArray(me))for(Ht=0,Xt=me.length;Ht<Xt;Ht++)kt=me[Ht],ft={},ft[Ot]=kt,te=this.element(ft);else et(me)?(te=this.element(Ot),te.element(me)):te=this.element(Ot,me)}else te=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?this.text(gt):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ut.indexOf(this.stringify.convertCDataKey)===0?this.cdata(gt):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ut.indexOf(this.stringify.convertCommentKey)===0?this.comment(gt):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ut.indexOf(this.stringify.convertRawKey)===0?this.raw(gt):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ut.indexOf(this.stringify.convertPIKey)===0?this.instruction(ut.substr(this.stringify.convertPIKey.length),gt):this.node(ut,ct,gt);if(te==null)throw new Error("Could not create any elements with: "+ut);return te},rt.prototype.insertBefore=function(ut,ct,gt){var ft,kt,jt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return kt=this.parent.children.indexOf(this),jt=this.parent.children.splice(kt),ft=this.parent.element(ut,ct,gt),Array.prototype.push.apply(this.parent.children,jt),ft},rt.prototype.insertAfter=function(ut,ct,gt){var ft,kt,jt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return kt=this.parent.children.indexOf(this),jt=this.parent.children.splice(kt+1),ft=this.parent.element(ut,ct,gt),Array.prototype.push.apply(this.parent.children,jt),ft},rt.prototype.remove=function(){var ut;if(this.isRoot)throw new Error("Cannot remove the root element");return ut=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ut,ut-ut+1].concat([])),this.parent},rt.prototype.node=function(ut,ct,gt){var ft,kt;return ut!=null&&(ut=ut.valueOf()),ct||(ct={}),ct=ct.valueOf(),et(ct)||(kt=[ct,gt],gt=kt[0],ct=kt[1]),ft=new Nt(this,ut,ct),gt!=null&&ft.text(gt),this.children.push(ft),ft},rt.prototype.text=function(ut){var ct;return ct=new Lt(this,ut),this.children.push(ct),this},rt.prototype.cdata=function(ut){var ct;return ct=new Rt(this,ut),this.children.push(ct),this},rt.prototype.comment=function(ut){var ct;return ct=new Dt(this,ut),this.children.push(ct),this},rt.prototype.commentBefore=function(ut){var ct,gt;return ct=this.parent.children.indexOf(this),gt=this.parent.children.splice(ct),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,gt),this},rt.prototype.commentAfter=function(ut){var ct,gt;return ct=this.parent.children.indexOf(this),gt=this.parent.children.splice(ct+1),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,gt),this},rt.prototype.raw=function(ut){var ct;return ct=new Ct(this,ut),this.children.push(ct),this},rt.prototype.instruction=function(ut,ct){var gt,ft,kt,jt,Ht;if(ut!=null&&(ut=ut.valueOf()),ct!=null&&(ct=ct.valueOf()),Array.isArray(ut))for(jt=0,Ht=ut.length;jt<Ht;jt++)gt=ut[jt],this.instruction(gt);else if(et(ut))for(gt in ut)st.call(ut,gt)&&(ft=ut[gt],this.instruction(gt,ft));else vt(ct)&&(ct=ct.apply()),kt=new Pt(this,ut,ct),this.children.push(kt);return this},rt.prototype.instructionBefore=function(ut,ct){var gt,ft;return gt=this.parent.children.indexOf(this),ft=this.parent.children.splice(gt),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,ft),this},rt.prototype.instructionAfter=function(ut,ct){var gt,ft;return gt=this.parent.children.indexOf(this),ft=this.parent.children.splice(gt+1),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,ft),this},rt.prototype.declaration=function(ut,ct,gt){var ft,kt;return ft=this.document(),kt=new St(ft,ut,ct,gt),ft.children[0]instanceof St?ft.children[0]=kt:ft.children.unshift(kt),ft.root()||ft},rt.prototype.doctype=function(ut,ct){var gt,ft,kt,jt,Ht,Ot,te,ne,Xt,ce;for(ft=this.document(),kt=new Et(ft,ut,ct),Xt=ft.children,jt=Ht=0,te=Xt.length;Ht<te;jt=++Ht)if((gt=Xt[jt])instanceof Et)return ft.children[jt]=kt,kt;for(ce=ft.children,jt=Ot=0,ne=ce.length;Ot<ne;jt=++Ot)if(gt=ce[jt],gt.isRoot)return ft.children.splice(jt,0,kt),kt;return ft.children.push(kt),kt},rt.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},rt.prototype.root=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut.rootObject;if(ut.isRoot)return ut;ut=ut.parent}},rt.prototype.document=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut;ut=ut.parent}},rt.prototype.end=function(ut){return this.document().end(ut)},rt.prototype.prev=function(){var ut;if((ut=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[ut-1]},rt.prototype.next=function(){var ut;if((ut=this.parent.children.indexOf(this))===-1||ut===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[ut+1]},rt.prototype.importDocument=function(ut){var ct;return ct=ut.root().clone(),ct.parent=this,ct.isRoot=!1,this.children.push(ct),this},rt.prototype.ele=function(ut,ct,gt){return this.element(ut,ct,gt)},rt.prototype.nod=function(ut,ct,gt){return this.node(ut,ct,gt)},rt.prototype.txt=function(ut){return this.text(ut)},rt.prototype.dat=function(ut){return this.cdata(ut)},rt.prototype.com=function(ut){return this.comment(ut)},rt.prototype.ins=function(ut,ct){return this.instruction(ut,ct)},rt.prototype.doc=function(){return this.document()},rt.prototype.dec=function(ut,ct,gt){return this.declaration(ut,ct,gt)},rt.prototype.dtd=function(ut,ct){return this.doctype(ut,ct)},rt.prototype.e=function(ut,ct,gt){return this.element(ut,ct,gt)},rt.prototype.n=function(ut,ct,gt){return this.node(ut,ct,gt)},rt.prototype.t=function(ut){return this.text(ut)},rt.prototype.d=function(ut){return this.cdata(ut)},rt.prototype.c=function(ut){return this.comment(ut)},rt.prototype.r=function(ut){return this.raw(ut)},rt.prototype.i=function(ut,ct){return this.instruction(ut,ct)},rt.prototype.u=function(){return this.up()},rt.prototype.importXMLBuilder=function(ut){return this.importDocument(ut)},rt}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et=function(Pt,Ct){function Lt(){this.constructor=Pt}for(var Ft in Ct)Nt.call(Ct,Ft)&&(Pt[Ft]=Ct[Ft]);return Lt.prototype=Ct.prototype,Pt.prototype=new Lt,Pt.__super__=Ct.prototype,Pt},Nt={}.hasOwnProperty;St=xt("./XMLNode"),qt.exports=function(Pt){function Ct(Lt,Ft,vt){if(Ct.__super__.constructor.call(this,Lt),Ft==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(Ft),vt&&(this.value=this.stringify.insValue(vt))}return Et(Ct,Pt),Ct.prototype.clone=function(){return(0,Dt.default)(this)},Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).processingInstruction(this)},Ct}(St)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et=function(Pt,Ct){function Lt(){this.constructor=Pt}for(var Ft in Ct)Nt.call(Ct,Ft)&&(Pt[Ft]=Ct[Ft]);return Lt.prototype=Ct.prototype,Pt.prototype=new Lt,Pt.__super__=Ct.prototype,Pt},Nt={}.hasOwnProperty;St=xt("./XMLNode"),qt.exports=function(Pt){function Ct(Lt,Ft){if(Ct.__super__.constructor.call(this,Lt),Ft==null)throw new Error("Missing raw text");this.value=this.stringify.raw(Ft)}return Et(Ct,Pt),Ct.prototype.clone=function(){return(0,Dt.default)(this)},Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).raw(this)},Ct}(St)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct,Lt,Ft,vt,et,tt,st,rt=function(ct,gt){function ft(){this.constructor=ct}for(var kt in gt)ut.call(gt,kt)&&(ct[kt]=gt[kt]);return ft.prototype=gt.prototype,ct.prototype=new ft,ct.__super__=gt.prototype,ct},ut={}.hasOwnProperty;Ct=xt("./XMLDeclaration"),Lt=xt("./XMLDocType"),Rt=xt("./XMLCData"),Dt=xt("./XMLComment"),Ft=xt("./XMLElement"),et=xt("./XMLRaw"),tt=xt("./XMLText"),vt=xt("./XMLProcessingInstruction"),St=xt("./XMLDTDAttList"),Et=xt("./XMLDTDElement"),Nt=xt("./XMLDTDEntity"),Pt=xt("./XMLDTDNotation"),st=xt("./XMLWriterBase"),qt.exports=function(ct){function gt(ft,kt){gt.__super__.constructor.call(this,kt),this.stream=ft}return rt(gt,ct),gt.prototype.document=function(ft){var kt,jt,Ht,Ot,te,ne,Xt,ce;for(ne=ft.children,jt=0,Ot=ne.length;jt<Ot;jt++)kt=ne[jt],kt.isLastRootNode=!1;for(ft.children[ft.children.length-1].isLastRootNode=!0,Xt=ft.children,ce=[],Ht=0,te=Xt.length;Ht<te;Ht++)switch(kt=Xt[Ht],!1){case!(kt instanceof Ct):ce.push(this.declaration(kt));break;case!(kt instanceof Lt):ce.push(this.docType(kt));break;case!(kt instanceof Dt):ce.push(this.comment(kt));break;case!(kt instanceof vt):ce.push(this.processingInstruction(kt));break;default:ce.push(this.element(kt))}return ce},gt.prototype.attribute=function(ft){return this.stream.write(" "+ft.name+'="'+ft.value+'"')},gt.prototype.cdata=function(ft,kt){return this.stream.write(this.space(kt)+"<![CDATA["+ft.text+"]]>"+this.endline(ft))},gt.prototype.comment=function(ft,kt){return this.stream.write(this.space(kt)+"<!-- "+ft.text+" -->"+this.endline(ft))},gt.prototype.declaration=function(ft,kt){return this.stream.write(this.space(kt)),this.stream.write('<?xml version="'+ft.version+'"'),ft.encoding!=null&&this.stream.write(' encoding="'+ft.encoding+'"'),ft.standalone!=null&&this.stream.write(' standalone="'+ft.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(ft))},gt.prototype.docType=function(ft,kt){var jt,Ht,Ot,te;if(kt||(kt=0),this.stream.write(this.space(kt)),this.stream.write("<!DOCTYPE "+ft.root().name),ft.pubID&&ft.sysID?this.stream.write(' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"'):ft.sysID&&this.stream.write(' SYSTEM "'+ft.sysID+'"'),ft.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ft)),te=ft.children,Ht=0,Ot=te.length;Ht<Ot;Ht++)switch(jt=te[Ht],!1){case!(jt instanceof St):this.dtdAttList(jt,kt+1);break;case!(jt instanceof Et):this.dtdElement(jt,kt+1);break;case!(jt instanceof Nt):this.dtdEntity(jt,kt+1);break;case!(jt instanceof Pt):this.dtdNotation(jt,kt+1);break;case!(jt instanceof Rt):this.cdata(jt,kt+1);break;case!(jt instanceof Dt):this.comment(jt,kt+1);break;case!(jt instanceof vt):this.processingInstruction(jt,kt+1);break;default:throw new Error("Unknown DTD node type: "+jt.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(ft))},gt.prototype.element=function(ft,kt){var jt,Ht,Ot,te,ne,Xt,ce,me;kt||(kt=0),me=this.space(kt),this.stream.write(me+"<"+ft.name),Xt=ft.attributes;for(ne in Xt)ut.call(Xt,ne)&&(jt=Xt[ne],this.attribute(jt));if(ft.children.length===0||ft.children.every(function(Pe){return Pe.value===""}))this.allowEmpty?this.stream.write("></"+ft.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&ft.children.length===1&&ft.children[0].value!=null)this.stream.write(">"),this.stream.write(ft.children[0].value),this.stream.write("</"+ft.name+">");else{for(this.stream.write(">"+this.newline),ce=ft.children,Ot=0,te=ce.length;Ot<te;Ot++)switch(Ht=ce[Ot],!1){case!(Ht instanceof Rt):this.cdata(Ht,kt+1);break;case!(Ht instanceof Dt):this.comment(Ht,kt+1);break;case!(Ht instanceof Ft):this.element(Ht,kt+1);break;case!(Ht instanceof et):this.raw(Ht,kt+1);break;case!(Ht instanceof tt):this.text(Ht,kt+1);break;case!(Ht instanceof vt):this.processingInstruction(Ht,kt+1);break;default:throw new Error("Unknown XML node type: "+Ht.constructor.name)}this.stream.write(me+"</"+ft.name+">")}return this.stream.write(this.endline(ft))},gt.prototype.processingInstruction=function(ft,kt){return this.stream.write(this.space(kt)+"<?"+ft.target),ft.value&&this.stream.write(" "+ft.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(ft))},gt.prototype.raw=function(ft,kt){return this.stream.write(this.space(kt)+ft.value+this.endline(ft))},gt.prototype.text=function(ft,kt){return this.stream.write(this.space(kt)+ft.value+this.endline(ft))},gt.prototype.dtdAttList=function(ft,kt){return this.stream.write(this.space(kt)+"<!ATTLIST "+ft.elementName+" "+ft.attributeName+" "+ft.attributeType),ft.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+ft.defaultValueType),ft.defaultValue&&this.stream.write(' "'+ft.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(ft))},gt.prototype.dtdElement=function(ft,kt){return this.stream.write(this.space(kt)+"<!ELEMENT "+ft.name+" "+ft.value),this.stream.write(this.spacebeforeslash+">"+this.endline(ft))},gt.prototype.dtdEntity=function(ft,kt){return this.stream.write(this.space(kt)+"<!ENTITY"),ft.pe&&this.stream.write(" %"),this.stream.write(" "+ft.name),ft.value?this.stream.write(' "'+ft.value+'"'):(ft.pubID&&ft.sysID?this.stream.write(' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"'):ft.sysID&&this.stream.write(' SYSTEM "'+ft.sysID+'"'),ft.nData&&this.stream.write(" NDATA "+ft.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(ft))},gt.prototype.dtdNotation=function(ft,kt){return this.stream.write(this.space(kt)+"<!NOTATION "+ft.name),ft.pubID&&ft.sysID?this.stream.write(' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"'):ft.pubID?this.stream.write(' PUBLIC "'+ft.pubID+'"'):ft.sysID&&this.stream.write(' SYSTEM "'+ft.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(ft))},gt.prototype.endline=function(ft){return ft.isLastRootNode?"":this.newline},gt}(st)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct,Lt,Ft,vt,et,tt,st,rt=function(ct,gt){function ft(){this.constructor=ct}for(var kt in gt)ut.call(gt,kt)&&(ct[kt]=gt[kt]);return ft.prototype=gt.prototype,ct.prototype=new ft,ct.__super__=gt.prototype,ct},ut={}.hasOwnProperty;Ct=xt("./XMLDeclaration"),Lt=xt("./XMLDocType"),Rt=xt("./XMLCData"),Dt=xt("./XMLComment"),Ft=xt("./XMLElement"),et=xt("./XMLRaw"),tt=xt("./XMLText"),vt=xt("./XMLProcessingInstruction"),St=xt("./XMLDTDAttList"),Et=xt("./XMLDTDElement"),Nt=xt("./XMLDTDEntity"),Pt=xt("./XMLDTDNotation"),st=xt("./XMLWriterBase"),qt.exports=function(ct){function gt(ft){gt.__super__.constructor.call(this,ft)}return rt(gt,ct),gt.prototype.document=function(ft){var kt,jt,Ht,Ot,te;for(this.textispresent=!1,Ot="",te=ft.children,jt=0,Ht=te.length;jt<Ht;jt++)kt=te[jt],Ot+=function(){switch(!1){case!(kt instanceof Ct):return this.declaration(kt);case!(kt instanceof Lt):return this.docType(kt);case!(kt instanceof Dt):return this.comment(kt);case!(kt instanceof vt):return this.processingInstruction(kt);default:return this.element(kt,0)}}.call(this);return this.pretty&&Ot.slice(-this.newline.length)===this.newline&&(Ot=Ot.slice(0,-this.newline.length)),Ot},gt.prototype.attribute=function(ft){return" "+ft.name+'="'+ft.value+'"'},gt.prototype.cdata=function(ft,kt){return this.space(kt)+"<![CDATA["+ft.text+"]]>"+this.newline},gt.prototype.comment=function(ft,kt){return this.space(kt)+"<!-- "+ft.text+" -->"+this.newline},gt.prototype.declaration=function(ft,kt){var jt;return jt=this.space(kt),jt+='<?xml version="'+ft.version+'"',ft.encoding!=null&&(jt+=' encoding="'+ft.encoding+'"'),ft.standalone!=null&&(jt+=' standalone="'+ft.standalone+'"'),jt+=this.spacebeforeslash+"?>",jt+=this.newline},gt.prototype.docType=function(ft,kt){var jt,Ht,Ot,te,ne;if(kt||(kt=0),te=this.space(kt),te+="<!DOCTYPE "+ft.root().name,ft.pubID&&ft.sysID?te+=' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"':ft.sysID&&(te+=' SYSTEM "'+ft.sysID+'"'),ft.children.length>0){for(te+=" [",te+=this.newline,ne=ft.children,Ht=0,Ot=ne.length;Ht<Ot;Ht++)jt=ne[Ht],te+=function(){switch(!1){case!(jt instanceof St):return this.dtdAttList(jt,kt+1);case!(jt instanceof Et):return this.dtdElement(jt,kt+1);case!(jt instanceof Nt):return this.dtdEntity(jt,kt+1);case!(jt instanceof Pt):return this.dtdNotation(jt,kt+1);case!(jt instanceof Rt):return this.cdata(jt,kt+1);case!(jt instanceof Dt):return this.comment(jt,kt+1);case!(jt instanceof vt):return this.processingInstruction(jt,kt+1);default:throw new Error("Unknown DTD node type: "+jt.constructor.name)}}.call(this);te+="]"}return te+=this.spacebeforeslash+">",te+=this.newline},gt.prototype.element=function(ft,kt){var jt,Ht,Ot,te,ne,Xt,ce,me,Pe,De,Ve,we,Qe;kt||(kt=0),Qe=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),we=this.space(kt),me="",me+=we+"<"+ft.name,Pe=ft.attributes;for(ce in Pe)ut.call(Pe,ce)&&(jt=Pe[ce],me+=this.attribute(jt));if(ft.children.length===0||ft.children.every(function(ae){return ae.value===""}))this.allowEmpty?me+="></"+ft.name+">"+this.newline:me+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&ft.children.length===1&&ft.children[0].value!=null)me+=">",me+=ft.children[0].value,me+="</"+ft.name+">"+this.newline;else{if(this.dontprettytextnodes){for(De=ft.children,Ot=0,ne=De.length;Ot<ne;Ot++)if(Ht=De[Ot],Ht.value!=null){this.textispresent++,Qe=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,we=this.space(kt)),me+=">"+this.newline,Ve=ft.children,te=0,Xt=Ve.length;te<Xt;te++)Ht=Ve[te],me+=function(){switch(!1){case!(Ht instanceof Rt):return this.cdata(Ht,kt+1);case!(Ht instanceof Dt):return this.comment(Ht,kt+1);case!(Ht instanceof Ft):return this.element(Ht,kt+1);case!(Ht instanceof et):return this.raw(Ht,kt+1);case!(Ht instanceof tt):return this.text(Ht,kt+1);case!(Ht instanceof vt):return this.processingInstruction(Ht,kt+1);default:throw new Error("Unknown XML node type: "+Ht.constructor.name)}}.call(this);Qe&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),me+=we+"</"+ft.name+">"+this.newline}return me},gt.prototype.processingInstruction=function(ft,kt){var jt;return jt=this.space(kt)+"<?"+ft.target,ft.value&&(jt+=" "+ft.value),jt+=this.spacebeforeslash+"?>"+this.newline},gt.prototype.raw=function(ft,kt){return this.space(kt)+ft.value+this.newline},gt.prototype.text=function(ft,kt){return this.space(kt)+ft.value+this.newline},gt.prototype.dtdAttList=function(ft,kt){var jt;return jt=this.space(kt)+"<!ATTLIST "+ft.elementName+" "+ft.attributeName+" "+ft.attributeType,ft.defaultValueType!=="#DEFAULT"&&(jt+=" "+ft.defaultValueType),ft.defaultValue&&(jt+=' "'+ft.defaultValue+'"'),jt+=this.spacebeforeslash+">"+this.newline},gt.prototype.dtdElement=function(ft,kt){return this.space(kt)+"<!ELEMENT "+ft.name+" "+ft.value+this.spacebeforeslash+">"+this.newline},gt.prototype.dtdEntity=function(ft,kt){var jt;return jt=this.space(kt)+"<!ENTITY",ft.pe&&(jt+=" %"),jt+=" "+ft.name,ft.value?jt+=' "'+ft.value+'"':(ft.pubID&&ft.sysID?jt+=' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"':ft.sysID&&(jt+=' SYSTEM "'+ft.sysID+'"'),ft.nData&&(jt+=" NDATA "+ft.nData)),jt+=this.spacebeforeslash+">"+this.newline},gt.prototype.dtdNotation=function(ft,kt){var jt;return jt=this.space(kt)+"<!NOTATION "+ft.name,ft.pubID&&ft.sysID?jt+=' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"':ft.pubID?jt+=' PUBLIC "'+ft.pubID+'"':ft.sysID&&(jt+=' SYSTEM "'+ft.sysID+'"'),jt+=this.spacebeforeslash+">"+this.newline},gt.prototype.openNode=function(ft,kt){var jt,Ht,Ot,te;if(kt||(kt=0),ft instanceof Ft){Ot=this.space(kt)+"<"+ft.name,te=ft.attributes;for(Ht in te)ut.call(te,Ht)&&(jt=te[Ht],Ot+=this.attribute(jt));return Ot+=(ft.children?">":"/>")+this.newline}return Ot=this.space(kt)+"<!DOCTYPE "+ft.rootNodeName,ft.pubID&&ft.sysID?Ot+=' PUBLIC "'+ft.pubID+'" "'+ft.sysID+'"':ft.sysID&&(Ot+=' SYSTEM "'+ft.sysID+'"'),Ot+=(ft.children?" [":">")+this.newline},gt.prototype.closeNode=function(ft,kt){switch(kt||(kt=0),!1){case!(ft instanceof Ft):return this.space(kt)+"</"+ft.name+">"+this.newline;case!(ft instanceof Lt):return this.space(kt)+"]>"+this.newline}},gt}(st)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(xt,qt,Vt){"use strict";(function(){var Rt=function(St,Et){return function(){return St.apply(Et,arguments)}},Dt={}.hasOwnProperty;qt.exports=function(){function St(Et){this.assertLegalChar=Rt(this.assertLegalChar,this);var Nt,Pt,Ct;Et||(Et={}),this.noDoubleEncoding=Et.noDoubleEncoding,Pt=Et.stringify||{};for(Nt in Pt)Dt.call(Pt,Nt)&&(Ct=Pt[Nt],this[Nt]=Ct)}return St.prototype.eleName=function(Et){return Et=""+Et||"",this.assertLegalChar(Et)},St.prototype.eleText=function(Et){return Et=""+Et||"",this.assertLegalChar(this.elEscape(Et))},St.prototype.cdata=function(Et){return Et=""+Et||"",Et=Et.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Et)},St.prototype.comment=function(Et){if(Et=""+Et||"",Et.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Et);return this.assertLegalChar(Et)},St.prototype.raw=function(Et){return""+Et||""},St.prototype.attName=function(Et){return Et=""+Et||""},St.prototype.attValue=function(Et){return Et=""+Et||"",this.attEscape(Et)},St.prototype.insTarget=function(Et){return""+Et||""},St.prototype.insValue=function(Et){if(Et=""+Et||"",Et.match(/\?>/))throw new Error("Invalid processing instruction value: "+Et);return Et},St.prototype.xmlVersion=function(Et){if(Et=""+Et||"",!Et.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Et);return Et},St.prototype.xmlEncoding=function(Et){if(Et=""+Et||"",!Et.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Et);return Et},St.prototype.xmlStandalone=function(Et){return Et?"yes":"no"},St.prototype.dtdPubID=function(Et){return""+Et||""},St.prototype.dtdSysID=function(Et){return""+Et||""},St.prototype.dtdElementValue=function(Et){return""+Et||""},St.prototype.dtdAttType=function(Et){return""+Et||""},St.prototype.dtdAttDefault=function(Et){return Et!=null?""+Et||"":Et},St.prototype.dtdEntityValue=function(Et){return""+Et||""},St.prototype.dtdNData=function(Et){return""+Et||""},St.prototype.convertAttKey="@",St.prototype.convertPIKey="?",St.prototype.convertTextKey="#text",St.prototype.convertCDataKey="#cdata",St.prototype.convertCommentKey="#comment",St.prototype.convertRawKey="#raw",St.prototype.assertLegalChar=function(Et){var Nt;if(Nt=Et.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+Et+" at index "+Nt.index);return Et},St.prototype.elEscape=function(Et){var Nt;return Nt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Et.replace(Nt,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},St.prototype.attEscape=function(Et){var Nt;return Nt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Et.replace(Nt,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},St}()}).call(void 0)},{}],233:[function(xt,qt,Vt){"use strict";var Rt=xt("babel-runtime/core-js/object/create"),Dt=function(St){return St&&St.__esModule?St:{default:St}}(Rt);(function(){var St,Et=function(Pt,Ct){function Lt(){this.constructor=Pt}for(var Ft in Ct)Nt.call(Ct,Ft)&&(Pt[Ft]=Ct[Ft]);return Lt.prototype=Ct.prototype,Pt.prototype=new Lt,Pt.__super__=Ct.prototype,Pt},Nt={}.hasOwnProperty;St=xt("./XMLNode"),qt.exports=function(Pt){function Ct(Lt,Ft){if(Ct.__super__.constructor.call(this,Lt),Ft==null)throw new Error("Missing element text");this.value=this.stringify.eleText(Ft)}return Et(Ct,Pt),Ct.prototype.clone=function(){return(0,Dt.default)(this)},Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).text(this)},Ct}(St)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(xt,qt,Vt){"use strict";(function(){var Rt={}.hasOwnProperty;qt.exports=function(){function Dt(St){var Et,Nt,Pt,Ct,Lt,Ft,vt,et,tt;St||(St={}),this.pretty=St.pretty||!1,this.allowEmpty=(Nt=St.allowEmpty)!=null&&Nt,this.pretty?(this.indent=(Pt=St.indent)!=null?Pt:" ",this.newline=(Ct=St.newline)!=null?Ct:`
|
|
`,this.offset=(Lt=St.offset)!=null?Lt:0,this.dontprettytextnodes=(Ft=St.dontprettytextnodes)!=null?Ft:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(vt=St.spacebeforeslash)!=null?vt:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,et=St.writer||{};for(Et in et)Rt.call(et,Et)&&(tt=et[Et],this[Et]=tt)}return Dt.prototype.set=function(St){var Et,Nt,Pt;St||(St={}),"pretty"in St&&(this.pretty=St.pretty),"allowEmpty"in St&&(this.allowEmpty=St.allowEmpty),this.pretty?(this.indent="indent"in St?St.indent:" ",this.newline="newline"in St?St.newline:`
|
|
`,this.offset="offset"in St?St.offset:0,this.dontprettytextnodes="dontprettytextnodes"in St?St.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in St?St.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,Nt=St.writer||{};for(Et in Nt)Rt.call(Nt,Et)&&(Pt=Nt[Et],this[Et]=Pt);return this},Dt.prototype.space=function(St){var Et;return this.pretty?(Et=(St||0)+this.offset+1,Et>0?new Array(Et).join(this.indent):""):""},Dt}()}).call(void 0)},{}],235:[function(xt,qt,Vt){"use strict";(function(){var Rt,Dt,St,Et,Nt,Pt,Ct;Ct=xt("./Utility"),Nt=Ct.assign,Pt=Ct.isFunction,Rt=xt("./XMLDocument"),Dt=xt("./XMLDocumentCB"),Et=xt("./XMLStringWriter"),St=xt("./XMLStreamWriter"),qt.exports.create=function(Lt,Ft,vt,et){var tt,st;if(Lt==null)throw new Error("Root element needs a name");return et=Nt({},Ft,vt,et),tt=new Rt(et),st=tt.element(Lt),et.headless||(tt.declaration(et),et.pubID==null&&et.sysID==null||tt.doctype(et)),st},qt.exports.begin=function(Lt,Ft,vt){var et;return Pt(Lt)&&(et=[Lt,Ft],Ft=et[0],vt=et[1],Lt={}),Ft?new Dt(Lt,Ft,vt):new Rt(Lt)},qt.exports.stringWriter=function(Lt){return new Et(Lt)},qt.exports.streamWriter=function(Lt,Ft){return new St(Lt,Ft)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(xt,qt,Vt){function Rt(){for(var St={},Et=0;Et<arguments.length;Et++){var Nt=arguments[Et];for(var Pt in Nt)Dt.call(Nt,Pt)&&(St[Pt]=Nt[Pt])}return St}qt.exports=Rt;var Dt=Object.prototype.hasOwnProperty},{}],237:[function(xt,qt,Vt){"use strict";function Rt(et,tt,st){Et.isBuffer(tt)||(tt=new Et(tt)),Et.isBuffer(st)||(st=new Et(st)),tt.length>Ft?tt=et(tt):tt.length<Ft&&(tt=Et.concat([tt,vt],Ft));for(var rt=new Et(Ft),ut=new Et(Ft),ct=0;ct<Ft;ct++)rt[ct]=54^tt[ct],ut[ct]=92^tt[ct];var gt=et(Et.concat([rt,st]));return et(Et.concat([ut,gt]))}function Dt(et,tt){et=et||"sha1";var st=Lt[et],rt=[],ut=0;return st||St("algorithm:",et,"is not yet supported"),{update:function(ct){return Et.isBuffer(ct)||(ct=new Et(ct)),rt.push(ct),ut+=ct.length,this},digest:function(ct){var gt=Et.concat(rt),ft=tt?Rt(st,tt,gt):st(gt);return rt=null,ct?ft.toString(ct):ft}}}function St(){var et=[].slice.call(arguments).join(" ");throw new Error([et,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
`))}var Et=xt("buffer").Buffer,Nt=xt("./sha"),Pt=xt("./sha256"),Ct=xt("./md5"),Lt={sha1:Nt,sha256:Pt,md5:Ct},Ft=64,vt=new Et(Ft);vt.fill(0),Vt.createHash=function(et){return Dt(et)},Vt.createHmac=function(et,tt){return Dt(et,tt)},function(et,tt){for(var st in et)tt(et[st],st)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(et){Vt[et]=function(){St("sorry,",et,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(xt,qt,Vt){"use strict";function Rt(Lt,Ft){if(Lt.length%Nt!=0){var vt=Lt.length+(Nt-Lt.length%Nt);Lt=Et.concat([Lt,Pt],vt)}for(var et=[],tt=Ft?Lt.readInt32BE:Lt.readInt32LE,st=0;st<Lt.length;st+=Nt)et.push(tt.call(Lt,st));return et}function Dt(Lt,Ft,vt){for(var et=new Et(Ft),tt=vt?et.writeInt32BE:et.writeInt32LE,st=0;st<Lt.length;st++)tt.call(et,Lt[st],4*st,!0);return et}function St(Lt,Ft,vt,et){return Et.isBuffer(Lt)||(Lt=new Et(Lt)),Dt(Ft(Rt(Lt,et),Lt.length*Ct),vt,et)}var Et=xt("buffer").Buffer,Nt=4,Pt=new Et(Nt);Pt.fill(0);var Ct=8;qt.exports={hash:St}},{buffer:38}],239:[function(xt,qt,Vt){"use strict";function Rt(vt,et){vt[et>>5]|=128<<et%32,vt[14+(et+64>>>9<<4)]=et;for(var tt=1732584193,st=-271733879,rt=-1732584194,ut=271733878,ct=0;ct<vt.length;ct+=16){var gt=tt,ft=st,kt=rt,jt=ut;tt=St(tt,st,rt,ut,vt[ct+0],7,-680876936),ut=St(ut,tt,st,rt,vt[ct+1],12,-389564586),rt=St(rt,ut,tt,st,vt[ct+2],17,606105819),st=St(st,rt,ut,tt,vt[ct+3],22,-1044525330),tt=St(tt,st,rt,ut,vt[ct+4],7,-176418897),ut=St(ut,tt,st,rt,vt[ct+5],12,1200080426),rt=St(rt,ut,tt,st,vt[ct+6],17,-1473231341),st=St(st,rt,ut,tt,vt[ct+7],22,-45705983),tt=St(tt,st,rt,ut,vt[ct+8],7,1770035416),ut=St(ut,tt,st,rt,vt[ct+9],12,-1958414417),rt=St(rt,ut,tt,st,vt[ct+10],17,-42063),st=St(st,rt,ut,tt,vt[ct+11],22,-1990404162),tt=St(tt,st,rt,ut,vt[ct+12],7,1804603682),ut=St(ut,tt,st,rt,vt[ct+13],12,-40341101),rt=St(rt,ut,tt,st,vt[ct+14],17,-1502002290),st=St(st,rt,ut,tt,vt[ct+15],22,1236535329),tt=Et(tt,st,rt,ut,vt[ct+1],5,-165796510),ut=Et(ut,tt,st,rt,vt[ct+6],9,-1069501632),rt=Et(rt,ut,tt,st,vt[ct+11],14,643717713),st=Et(st,rt,ut,tt,vt[ct+0],20,-373897302),tt=Et(tt,st,rt,ut,vt[ct+5],5,-701558691),ut=Et(ut,tt,st,rt,vt[ct+10],9,38016083),rt=Et(rt,ut,tt,st,vt[ct+15],14,-660478335),st=Et(st,rt,ut,tt,vt[ct+4],20,-405537848),tt=Et(tt,st,rt,ut,vt[ct+9],5,568446438),ut=Et(ut,tt,st,rt,vt[ct+14],9,-1019803690),rt=Et(rt,ut,tt,st,vt[ct+3],14,-187363961),st=Et(st,rt,ut,tt,vt[ct+8],20,1163531501),tt=Et(tt,st,rt,ut,vt[ct+13],5,-1444681467),ut=Et(ut,tt,st,rt,vt[ct+2],9,-51403784),rt=Et(rt,ut,tt,st,vt[ct+7],14,1735328473),st=Et(st,rt,ut,tt,vt[ct+12],20,-1926607734),tt=Nt(tt,st,rt,ut,vt[ct+5],4,-378558),ut=Nt(ut,tt,st,rt,vt[ct+8],11,-2022574463),rt=Nt(rt,ut,tt,st,vt[ct+11],16,1839030562),st=Nt(st,rt,ut,tt,vt[ct+14],23,-35309556),tt=Nt(tt,st,rt,ut,vt[ct+1],4,-1530992060),ut=Nt(ut,tt,st,rt,vt[ct+4],11,1272893353),rt=Nt(rt,ut,tt,st,vt[ct+7],16,-155497632),st=Nt(st,rt,ut,tt,vt[ct+10],23,-1094730640),tt=Nt(tt,st,rt,ut,vt[ct+13],4,681279174),ut=Nt(ut,tt,st,rt,vt[ct+0],11,-358537222),rt=Nt(rt,ut,tt,st,vt[ct+3],16,-722521979),st=Nt(st,rt,ut,tt,vt[ct+6],23,76029189),tt=Nt(tt,st,rt,ut,vt[ct+9],4,-640364487),ut=Nt(ut,tt,st,rt,vt[ct+12],11,-421815835),rt=Nt(rt,ut,tt,st,vt[ct+15],16,530742520),st=Nt(st,rt,ut,tt,vt[ct+2],23,-995338651),tt=Pt(tt,st,rt,ut,vt[ct+0],6,-198630844),ut=Pt(ut,tt,st,rt,vt[ct+7],10,1126891415),rt=Pt(rt,ut,tt,st,vt[ct+14],15,-1416354905),st=Pt(st,rt,ut,tt,vt[ct+5],21,-57434055),tt=Pt(tt,st,rt,ut,vt[ct+12],6,1700485571),ut=Pt(ut,tt,st,rt,vt[ct+3],10,-1894986606),rt=Pt(rt,ut,tt,st,vt[ct+10],15,-1051523),st=Pt(st,rt,ut,tt,vt[ct+1],21,-2054922799),tt=Pt(tt,st,rt,ut,vt[ct+8],6,1873313359),ut=Pt(ut,tt,st,rt,vt[ct+15],10,-30611744),rt=Pt(rt,ut,tt,st,vt[ct+6],15,-1560198380),st=Pt(st,rt,ut,tt,vt[ct+13],21,1309151649),tt=Pt(tt,st,rt,ut,vt[ct+4],6,-145523070),ut=Pt(ut,tt,st,rt,vt[ct+11],10,-1120210379),rt=Pt(rt,ut,tt,st,vt[ct+2],15,718787259),st=Pt(st,rt,ut,tt,vt[ct+9],21,-343485551),tt=Ct(tt,gt),st=Ct(st,ft),rt=Ct(rt,kt),ut=Ct(ut,jt)}return Array(tt,st,rt,ut)}function Dt(vt,et,tt,st,rt,ut){return Ct(Lt(Ct(Ct(et,vt),Ct(st,ut)),rt),tt)}function St(vt,et,tt,st,rt,ut,ct){return Dt(et&tt|~et&st,vt,et,rt,ut,ct)}function Et(vt,et,tt,st,rt,ut,ct){return Dt(et&st|tt&~st,vt,et,rt,ut,ct)}function Nt(vt,et,tt,st,rt,ut,ct){return Dt(et^tt^st,vt,et,rt,ut,ct)}function Pt(vt,et,tt,st,rt,ut,ct){return Dt(tt^(et|~st),vt,et,rt,ut,ct)}function Ct(vt,et){var tt=(65535&vt)+(65535&et);return(vt>>16)+(et>>16)+(tt>>16)<<16|65535&tt}function Lt(vt,et){return vt<<et|vt>>>32-et}var Ft=xt("./helpers");qt.exports=function(vt){return Ft.hash(vt,Rt,16)}},{"./helpers":238}],240:[function(xt,qt,Vt){"use strict";function Rt(Ct,Lt){Ct[Lt>>5]|=128<<24-Lt%32,Ct[15+(Lt+64>>9<<4)]=Lt;for(var Ft=Array(80),vt=1732584193,et=-271733879,tt=-1732584194,st=271733878,rt=-1009589776,ut=0;ut<Ct.length;ut+=16){for(var ct=vt,gt=et,ft=tt,kt=st,jt=rt,Ht=0;Ht<80;Ht++){Ft[Ht]=Ht<16?Ct[ut+Ht]:Nt(Ft[Ht-3]^Ft[Ht-8]^Ft[Ht-14]^Ft[Ht-16],1);var Ot=Et(Et(Nt(vt,5),Dt(Ht,et,tt,st)),Et(Et(rt,Ft[Ht]),St(Ht)));rt=st,st=tt,tt=Nt(et,30),et=vt,vt=Ot}vt=Et(vt,ct),et=Et(et,gt),tt=Et(tt,ft),st=Et(st,kt),rt=Et(rt,jt)}return Array(vt,et,tt,st,rt)}function Dt(Ct,Lt,Ft,vt){return Ct<20?Lt&Ft|~Lt&vt:Ct<40?Lt^Ft^vt:Ct<60?Lt&Ft|Lt&vt|Ft&vt:Lt^Ft^vt}function St(Ct){return Ct<20?1518500249:Ct<40?1859775393:Ct<60?-1894007588:-899497514}function Et(Ct,Lt){var Ft=(65535&Ct)+(65535&Lt);return(Ct>>16)+(Lt>>16)+(Ft>>16)<<16|65535&Ft}function Nt(Ct,Lt){return Ct<<Lt|Ct>>>32-Lt}var Pt=xt("./helpers");qt.exports=function(Ct){return Pt.hash(Ct,Rt,20,!0)}},{"./helpers":238}],241:[function(xt,qt,Vt){"use strict";var Rt=xt("./helpers"),Dt=function(tt,st){var rt=(65535&tt)+(65535&st);return(tt>>16)+(st>>16)+(rt>>16)<<16|65535&rt},St=function(tt,st){return tt>>>st|tt<<32-st},Et=function(tt,st){return tt>>>st},Nt=function(tt,st,rt){return tt&st^~tt&rt},Pt=function(tt,st,rt){return tt&st^tt&rt^st&rt},Ct=function(tt){return St(tt,2)^St(tt,13)^St(tt,22)},Lt=function(tt){return St(tt,6)^St(tt,11)^St(tt,25)},Ft=function(tt){return St(tt,7)^St(tt,18)^Et(tt,3)},vt=function(tt){return St(tt,17)^St(tt,19)^Et(tt,10)},et=function(tt,st){var rt,ut,ct,gt,ft,kt,jt,Ht,Ot,te,ne,Xt,ce=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),me=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),Pe=new Array(64);tt[st>>5]|=128<<24-st%32,tt[15+(st+64>>9<<4)]=st;for(var Ot=0;Ot<tt.length;Ot+=16){rt=me[0],ut=me[1],ct=me[2],gt=me[3],ft=me[4],kt=me[5],jt=me[6],Ht=me[7];for(var te=0;te<64;te++)Pe[te]=te<16?tt[te+Ot]:Dt(Dt(Dt(vt(Pe[te-2]),Pe[te-7]),Ft(Pe[te-15])),Pe[te-16]),ne=Dt(Dt(Dt(Dt(Ht,Lt(ft)),Nt(ft,kt,jt)),ce[te]),Pe[te]),Xt=Dt(Ct(rt),Pt(rt,ut,ct)),Ht=jt,jt=kt,kt=ft,ft=Dt(gt,ne),gt=ct,ct=ut,ut=rt,rt=Dt(ne,Xt);me[0]=Dt(rt,me[0]),me[1]=Dt(ut,me[1]),me[2]=Dt(ct,me[2]),me[3]=Dt(gt,me[3]),me[4]=Dt(ft,me[4]),me[5]=Dt(kt,me[5]),me[6]=Dt(jt,me[6]),me[7]=Dt(Ht,me[7])}return me};qt.exports=function(tt){return Rt.hash(tt,et,32,!0)}},{"./helpers":238}],242:[function(xt,qt,Vt){(function(Rt){"use strict";function Dt(et){return et&&et.__esModule?et:{default:et}}var St=xt("babel-runtime/core-js/object/create"),Et=Dt(St),Nt=xt("babel-runtime/helpers/classCallCheck"),Pt=Dt(Nt),Ct=xt("babel-runtime/helpers/createClass"),Lt=Dt(Ct),Ft=xt("babel-runtime/helpers/typeof"),vt=Dt(Ft);(function(et){if((Vt===void 0?"undefined":(0,vt.default)(Vt))==="object"&&qt!==void 0)qt.exports=et();else if(typeof Jt=="function"&&Jt.amd)Jt([],et);else{var tt;tt=typeof window!="undefined"?window:Rt!==void 0?Rt:typeof self!="undefined"?self:this,tt.mime=et()}})(function(){return function et(tt,st,rt){function ut(ft,kt){if(!st[ft]){if(!tt[ft]){var jt=typeof xt=="function"&&xt;if(!kt&&jt)return jt(ft,!0);if(ct)return ct(ft,!0);var Ht=new Error("Cannot find module '"+ft+"'");throw Ht.code="MODULE_NOT_FOUND",Ht}var Ot=st[ft]={exports:{}};tt[ft][0].call(Ot.exports,function(te){var ne=tt[ft][1][te];return ut(ne||te)},Ot,Ot.exports,et,tt,st,rt)}return st[ft].exports}for(var ct=typeof xt=="function"&&xt,gt=0;gt<rt.length;gt++)ut(rt[gt]);return ut}({1:[function(et,tt,st){var rt=function(){function ut(){(0,Pt.default)(this,ut),this._types=(0,Et.default)(null),this._extensions=(0,Et.default)(null);for(var ct=0;ct<arguments.length;ct++)this.define(arguments[ct])}return(0,Lt.default)(ut,[{key:"define",value:function(ct,gt){for(var ft in ct){for(var kt=ct[ft],jt=0;jt<kt.length;jt++){var Ht=kt[jt];if(!gt&&Ht in this._types)throw new Error('Attempt to change mapping for "'+Ht+'" extension from "'+this._types[Ht]+'" to "'+ft+'". Pass `force=true` to allow this, otherwise remove "'+Ht+'" from the list of extensions for "'+ft+'".');this._types[Ht]=ft}!gt&&this._extensions[ft]||(this._extensions[ft]=kt[0])}}},{key:"getType",value:function(ct){ct=String(ct);var gt=ct.replace(/^.*[\/\\]/,"").toLowerCase(),ft=gt.replace(/^.*\./,"").toLowerCase(),kt=gt.length<ct.length;return(ft.length<gt.length-1||!kt)&&this._types[ft]||null}},{key:"getExtension",value:function(ct){return(ct=/^\s*([^;\s]*)/.test(ct)&&RegExp.$1)&&this._extensions[ct.toLowerCase()]||null}}]),ut}();tt.exports=rt},{}],2:[function(et,tt,st){var rt=et("./Mime");tt.exports=new rt(et("./types/standard"),et("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(et,tt,st){tt.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(et,tt,st){tt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof he.g!="undefined"?he.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(xt,qt,Vt){"use strict";Vt.encodeURIComponent=function(Rt){try{return encodeURIComponent(Rt)}catch(Dt){return Rt}},Vt.escape=xt("escape-html"),Vt.timestamp=function(Rt){if(Rt){var Dt=Rt;return typeof Dt=="string"&&(Dt=Number(Dt)),String(Rt).length===10&&(Dt*=1e3),new Date(Dt)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(xt,qt,Vt){(function(Rt,Dt){"use strict";function St(Ht){return Ht&&Ht.__esModule?Ht:{default:Ht}}function Et(Ht,Ot){return Ht===void 0?Ot:Ht}function Nt(Ht,Ot){return function(te,ne,Xt){if(te)return Ot(te);Ht({data:ne,status:Xt.statusCode,headers:Xt.headers,res:Xt})}}var Pt,Ct=xt("babel-runtime/core-js/json/stringify"),Lt=St(Ct),Ft=xt("babel-runtime/helpers/typeof"),vt=St(Ft),et=xt("util"),tt=xt("url"),st=xt("http"),rt=xt("https"),ut=xt("debug")("urllib"),ct=xt("humanize-ms"),gt=0,ft=Math.pow(2,31)-10,kt=/^https?:\/\//i;Vt.TIMEOUTS=[ct("300s"),ct("300s")];var jt=["json","text"];Vt.request=function(Ht,Ot,te){return arguments.length===2&&typeof Ot=="function"&&(te=Ot,Ot=null),typeof te=="function"?Vt.requestWithCallback(Ht,Ot,te):(Pt||(Pt=xt("any-promise")),new Pt(function(ne,Xt){Vt.requestWithCallback(Ht,Ot,Nt(ne,Xt))}))},Vt.requestWithCallback=function(Ht,Ot,te){function ne(){Kt&&(clearTimeout(Kt),Kt=null)}function Xt(){It&&(clearTimeout(It),It=null)}function ce(un,si,ei){if(Xt(),!te)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),ae,Rt.pid,Le.method,Ht),void(un&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
stack: %s`,Date(),ae,Rt.pid,un.name,un.message,un.stack));var fi=te;te=null;var bi={};if(ei&&(Zt=ei.statusCode,bi=ei.headers),Zt===401&&bi["www-authenticate"]&&(!Ot.headers||!Ot.headers.Authorization)&&Ot.digestAuth){var Ni=bi["www-authenticate"];if(Ni.indexOf("Digest ")>=0)return ut("Request#%d %s: got digest auth header WWW-Authenticate: %s",ae,Ht,Ni),Ot.headers=Ot.headers||{},Ot.headers.Authorization=digestAuthHeader(Le.method,Le.path,Ni,Ot.digestAuth),ut("Request#%d %s: auth with digest header: %s",ae,Ht,Ot.headers.Authorization),ei.headers["set-cookie"]&&(Ot.headers.Cookie=ei.headers["set-cookie"].join(";")),Vt.requestWithCallback(Ht,Ot,fi)}var qn=Date.now()-re;dn&&(dn.contentDownload=qn),ut("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",qn,Wt,Zt,Le.method,Le.host,Le.path,ie,dn);var Ii={status:Zt,statusCode:Zt,headers:bi,size:Wt,aborted:fe,rt:qn,keepAliveSocket:ie,data:si,requestUrls:Ot.requestUrls,timing:dn,remoteAddress:ke,remotePort:tn};if(un){var pr="";Ne&&typeof Ne.getCurrentStatus=="function"&&(pr=", agent status: "+(0,Lt.default)(Ne.getCurrentStatus())),un.message+=", "+Le.method+" "+Ht+" "+Zt+" (connected: "+Bt+", keepalive socket: "+ie+pr+`)
|
|
headers: `+(0,Lt.default)(bi),un.data=si,un.path=Le.path,un.status=Zt,un.headers=bi,un.res=Ii}fi(un,si,Ot.streaming?ei:Ii),Ot.emitter&&(_t.url=Ht,_t.socket=Tn&&Tn.connection,_t.options=Le,_t.size=Qt,Ot.emitter.emit("response",{requestId:ae,error:un,ctx:Ot.ctx,req:_t,res:Ii}))}function me(un){var si=null;if(Ot.followRedirect&&statuses.redirect[un.statusCode]){Ot._followRedirectCount=(Ot._followRedirectCount||0)+1;var ei=un.headers.location;if(ei){if(!(Ot._followRedirectCount>Ot.maxRedirects)){var fi=Ot.formatRedirectUrl?Ot.formatRedirectUrl(Ht,ei):tt.resolve(Ht,ei);ut("Request#%d %s: `redirected` from %s to %s",ae,Le.path,Ht,fi),Xt(),Ot.headers&&Ot.headers.Host&&kt.test(ei)&&(Ot.headers.Host=null);var bi=te;return te=null,Vt.requestWithCallback(fi,Ot,bi),{redirect:!0,error:null}}si=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ht),si.name="MaxRedirectError"}else si=new Error("Got statusCode "+un.statusCode+" but cannot resolve next location from headers"),si.name="FollowRedirectError"}return{redirect:!1,error:si}}function Pe(un,si,ei){return ei(null,si,un.headers["content-encoding"])}function De(un){if(dn&&(dn.waiting=Date.now()-re),ut("Request#%d %s `req response` event emit: status %d, headers: %j",ae,Ht,un.statusCode,un.headers),Ot.streaming){var si=me(un);return si.redirect?void un.resume():si.error?(un.resume(),ce(si.error,null,un)):ce(null,null,un)}if(un.on("close",function(){ut("Request#%d %s: `res close` event emit, total size %d",ae,Ht,Wt)}),un.on("error",function(){ut("Request#%d %s: `res error` event emit, total size %d",ae,Ht,Wt)}),un.on("aborted",function(){fe=!0,ut("Request#%d %s: `res aborted` event emit, total size %d",ae,Ht,Wt)}),ln){var si=me(un);return si.redirect?void un.resume():si.error?(un.resume(),ln.end(),ce(si.error,null,un)):(Ot.consumeWriteStream===!1?un.on("end",ce.bind(null,null,null,un)):isNode010||isNode012?first([[ln,"close"],[un,"aborted"]],function(bi,Ni,qn){ut("Request#%d %s: writeStream or res %s event emitted",ae,Ht,qn),ce(bt||null,null,un)}):ln.on("close",function(){ut("Request#%d %s: writeStream close event emitted",ae,Ht),ce(bt||null,null,un)}),un.pipe(ln))}var ei=[];un.on("data",function(fi){ut("Request#%d %s: `res data` event emit, size %d",ae,Ht,fi.length),Wt+=fi.length,ei.push(fi)}),un.on("end",function(){var fi=Dt.concat(ei,Wt);if(ut("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",ae,Ht,Wt,un._dumped),bt)return ce(bt,fi,un);var bi=me(un);if(bi.error)return ce(bi.error,fi,un);bi.redirect||Pe(un,fi,function(Ni,qn,Ii){if(Ni)return ce(Ni,fi,un);if(!Ii&&jt.indexOf(Ot.dataType)>=0){try{qn=decodeBodyByCharset(qn,un)}catch(Ar){return ut("decodeBodyByCharset error: %s",Ar),ce(null,qn,un)}if(Ot.dataType==="json")if(Wt===0)qn=null;else{var pr=parseJSON(qn,Xe);pr.error?Ni=pr.error:qn=pr.data}}fe&&ut("Request#%d %s: Remote socket was terminated before `response.end()` was called",ae,Ht),ce(Ni,qn,un)})})}function Ve(){ut("Response timer ticking, timeout: %d",Vn),It=setTimeout(function(){It=null;var un="Response timeout for "+Vn+"ms";bt=new Error(un),bt.name="ResponseTimeoutError",bt.requestId=ae,ut("ResponseTimeout: Request#%d %s %s: %s, connected: %s",ae,Ht,bt.name,un,Bt),we()},Vn)}function we(){ut("Request#%d %s abort, connected: %s",ae,Ht,Bt),Tn.socket||(bt.noSocket=!0,ce(bt)),Tn.abort()}if(!Ht||typeof Ht!="string"&&(Ht===void 0?"undefined":(0,vt.default)(Ht))!=="object"){var Qe=et.format("expect request url to be a string or a http request options, but got %j",Ht);throw new Error(Qe)}arguments.length===2&&typeof Ot=="function"&&(te=Ot,Ot=null),Ot=Ot||{},gt>=ft&&(gt=0);var ae=++gt;Ot.requestUrls=Ot.requestUrls||[];var _t={requestId:ae,url:Ht,args:Ot,ctx:Ot.ctx};Ot.emitter&&Ot.emitter.emit("request",_t),Ot.timeout=Ot.timeout||Vt.TIMEOUTS,Ot.maxRedirects=Ot.maxRedirects||10,Ot.streaming=Ot.streaming||Ot.customResponse;var $t,re=Date.now();typeof Ht=="string"?(kt.test(Ht)||(Ht="http://"+Ht),$t=tt.parse(Ht)):$t=Ht;var pe=(Ot.type||Ot.method||$t.method||"GET").toUpperCase(),le=$t.port||80,Ue=st,Ne=Et(Ot.agent,Vt.agent),Xe=Ot.fixJSONCtlChars;$t.protocol==="https:"&&(Ue=rt,Ne=Et(Ot.httpsAgent,Vt.httpsAgent),$t.port||(le=443));var Le={host:$t.hostname||$t.host||"localhost",path:$t.path||"/",method:pe,port:le,agent:Ne,headers:Ot.headers||{},lookup:Ot.lookup};Array.isArray(Ot.timeout)?Le.requestTimeout=Ot.timeout[Ot.timeout.length-1]:Ot.timeout!==void 0&&(Le.requestTimeout=Ot.timeout);for(var xe=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],_e=0;_e<xe.length;_e++){var Fe=xe[_e];Ot.hasOwnProperty(Fe)&&(Le[Fe]=Ot[Fe])}Le.rejectUnauthorized!==!1||Le.hasOwnProperty("secureOptions")||(Le.secureOptions=xt("constants").SSL_OP_NO_TLSv1_2);var Ae=Ot.auth||$t.auth;Ae&&(Le.auth=Ae);var oe=Ot.content||Ot.data,Mt=pe==="GET"||pe==="HEAD"||Ot.dataAsQueryString;if(!Ot.content&&oe&&typeof oe!="string"&&!Dt.isBuffer(oe))if(Mt)oe=Ot.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe);else{var At=Le.headers["Content-Type"]||Le.headers["content-type"];At||(At=Ot.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Le.headers["Content-Type"]=At),oe=parseContentType(At).type==="application/json"?(0,Lt.default)(oe):Ot.nestedQuerystring?qs.stringify(oe):querystring.stringify(oe)}Mt&&oe&&(Le.path+=($t.query?"&":"?")+oe,oe=null);var Qt=0;if(oe){var se=oe.length;Dt.isBuffer(oe)||(se=Dt.byteLength(oe)),Qt=Le.headers["Content-Length"]=se}Ot.dataType==="json"&&(Le.headers.Accept="application/json"),typeof Ot.beforeRequest=="function"&&Ot.beforeRequest(Le);var Kt=null,It=null,bt=null,Bt=!1,ie=!1,Wt=0,Zt=-1,fe=!1,ke="",tn="",dn=null;Ot.timing&&(dn={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),Le.headers["User-Agent"]||Le.headers["user-agent"]||(Le.headers["User-Agent"]=navigator.userAgent),Ot.gzip&&(Le.headers["Accept-Encoding"]||Le.headers["accept-encoding"]||(Le.headers["Accept-Encoding"]="gzip"));var ln=Ot.writeStream;ut("Request#%d %s %s with headers %j, options.path: %s",ae,pe,Ht,Le.headers,Le.path),Ot.requestUrls.push(Ht);var Bn,Vn;Array.isArray(Ot.timeout)?(Bn=ct(Ot.timeout[0]),Vn=ct(Ot.timeout[1])):Bn=Vn=ct(Ot.timeout),ut("ConnectTimeout: %d, ResponseTimeout: %d",Bn,Vn);var Tn;try{Tn=Ue.request(Le,De)}catch(un){return ce(un)}return typeof window=="undefined"?function(){ut("Connect timer ticking, timeout: %d",Bn),Kt=setTimeout(function(){Kt=null,Zt===-1&&(Zt=-2);var un="Connect timeout for "+Bn+"ms",si="ConnectionTimeoutError";Tn.socket||(si="SocketAssignTimeoutError",un+=", working sockets is full"),bt=new Error(un),bt.name=si,bt.requestId=ae,ut("ConnectTimeout: Request#%d %s %s: %s, connected: %s",ae,Ht,bt.name,un,Bt),we()},Bn)}():Tn.on("requestTimeout",function(){Zt===-1&&(Zt=-2);var un="Connect timeout for "+Bn+"ms";bt=new Error(un),bt.name="ConnectionTimeoutError",bt.requestId=ae,we()}),dn&&Tn.on("finish",function(){dn.requestSent=Date.now()-re}),Tn.once("socket",function(un){dn&&(dn.queuing=Date.now()-re),isNode010&&un.socket&&(un=un.socket);var si=un.readyState;if(si==="opening")return un.once("lookup",function(ei,fi,bi){ut("Request#%d %s lookup: %s, %s, %s",ae,Ht,ei,fi,bi),dn&&(dn.dnslookup=Date.now()-re),fi&&(ke=fi)}),void un.once("connect",function(){dn&&(dn.connected=Date.now()-re),ne(),Ve(),ut("Request#%d %s new socket connected",ae,Ht),Bt=!0,ke||(ke=un.remoteAddress),tn=un.remotePort});ut("Request#%d %s reuse socket connected, readyState: %s",ae,Ht,si),Bt=!0,ie=!0,ke||(ke=un.remoteAddress),tn=un.remotePort,ne(),Ve()}),Tn.on("error",function(un){un.name!=="Error"&&un.name!=="TypeError"||(un.name=Bt?"ResponseError":"RequestError"),un.message+=' (req "error")',ut("Request#%d %s `req error` event emit, %s: %s",ae,Ht,un.name,un.message),ce(bt||un)}),ln&&ln.once("error",function(un){un.message+=' (writeStream "error")',bt=un,ut("Request#%d %s `writeStream error` event emit, %s: %s",ae,Ht,un.name,un.message),we()}),Ot.stream?(Ot.stream.pipe(Tn),Ot.stream.once("error",function(un){un.message+=' (stream "error")',bt=un,ut("Request#%d %s `readStream error` event emit, %s: %s",ae,Ht,un.name,un.message),we()})):Tn.end(oe),Tn.requestId=ae,Tn}}).call(this,xt("_process"),xt("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),function(Jt){function xt(Vt){if(qt[Vt])return qt[Vt].exports;var Rt=qt[Vt]={i:Vt,l:!1,exports:{}};return Jt[Vt].call(Rt.exports,Rt,Rt.exports,xt),Rt.l=!0,Rt.exports}var qt={};xt.m=Jt,xt.c=qt,xt.d=function(Vt,Rt,Dt){xt.o(Vt,Rt)||Object.defineProperty(Vt,Rt,{configurable:!1,enumerable:!0,get:Dt})},xt.n=function(Vt){var Rt=Vt&&Vt.__esModule?function(){return Vt.default}:function(){return Vt};return xt.d(Rt,"a",Rt),Rt},xt.o=function(Vt,Rt){return Object.prototype.hasOwnProperty.call(Vt,Rt)},xt.p="",xt(xt.s=12)}([function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt()})(0,function(){var Vt=Vt||function(Rt,Dt){var St=Object.create||function(){function rt(){}return function(ut){var ct;return rt.prototype=ut,ct=new rt,rt.prototype=null,ct}}(),Et={},Nt=Et.lib={},Pt=Nt.Base=function(){return{extend:function(rt){var ut=St(this);return rt&&ut.mixIn(rt),ut.hasOwnProperty("init")&&this.init!==ut.init||(ut.init=function(){ut.$super.init.apply(this,arguments)}),ut.init.prototype=ut,ut.$super=this,ut},create:function(){var rt=this.extend();return rt.init.apply(rt,arguments),rt},init:function(){},mixIn:function(rt){for(var ut in rt)rt.hasOwnProperty(ut)&&(this[ut]=rt[ut]);rt.hasOwnProperty("toString")&&(this.toString=rt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Ct=Nt.WordArray=Pt.extend({init:function(rt,ut){rt=this.words=rt||[],this.sigBytes=ut!=null?ut:4*rt.length},toString:function(rt){return(rt||Ft).stringify(this)},concat:function(rt){var ut=this.words,ct=rt.words,gt=this.sigBytes,ft=rt.sigBytes;if(this.clamp(),gt%4)for(var kt=0;kt<ft;kt++){var jt=ct[kt>>>2]>>>24-kt%4*8&255;ut[gt+kt>>>2]|=jt<<24-(gt+kt)%4*8}else for(var kt=0;kt<ft;kt+=4)ut[gt+kt>>>2]=ct[kt>>>2];return this.sigBytes+=ft,this},clamp:function(){var rt=this.words,ut=this.sigBytes;rt[ut>>>2]&=4294967295<<32-ut%4*8,rt.length=Rt.ceil(ut/4)},clone:function(){var rt=Pt.clone.call(this);return rt.words=this.words.slice(0),rt},random:function(rt){for(var ut,ct=[],gt=0;gt<rt;gt+=4){var ft=function(jt){var jt=jt,Ht=987654321,Ot=4294967295;return function(){Ht=36969*(65535&Ht)+(Ht>>16)&Ot,jt=18e3*(65535&jt)+(jt>>16)&Ot;var te=(Ht<<16)+jt&Ot;return te/=4294967296,(te+=.5)*(Rt.random()>.5?1:-1)}}(4294967296*(ut||Rt.random()));ut=987654071*ft(),ct.push(4294967296*ft()|0)}return new Ct.init(ct,rt)}}),Lt=Et.enc={},Ft=Lt.Hex={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,gt=[],ft=0;ft<ct;ft++){var kt=ut[ft>>>2]>>>24-ft%4*8&255;gt.push((kt>>>4).toString(16)),gt.push((15&kt).toString(16))}return gt.join("")},parse:function(rt){for(var ut=rt.length,ct=[],gt=0;gt<ut;gt+=2)ct[gt>>>3]|=parseInt(rt.substr(gt,2),16)<<24-gt%8*4;return new Ct.init(ct,ut/2)}},vt=Lt.Latin1={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,gt=[],ft=0;ft<ct;ft++){var kt=ut[ft>>>2]>>>24-ft%4*8&255;gt.push(String.fromCharCode(kt))}return gt.join("")},parse:function(rt){for(var ut=rt.length,ct=[],gt=0;gt<ut;gt++)ct[gt>>>2]|=(255&rt.charCodeAt(gt))<<24-gt%4*8;return new Ct.init(ct,ut)}},et=Lt.Utf8={stringify:function(rt){try{return decodeURIComponent(escape(vt.stringify(rt)))}catch(ut){throw new Error("Malformed UTF-8 data")}},parse:function(rt){return vt.parse(unescape(encodeURIComponent(rt)))}},tt=Nt.BufferedBlockAlgorithm=Pt.extend({reset:function(){this._data=new Ct.init,this._nDataBytes=0},_append:function(rt){typeof rt=="string"&&(rt=et.parse(rt)),this._data.concat(rt),this._nDataBytes+=rt.sigBytes},_process:function(rt){var ut=this._data,ct=ut.words,gt=ut.sigBytes,ft=this.blockSize,kt=4*ft,jt=gt/kt;jt=rt?Rt.ceil(jt):Rt.max((0|jt)-this._minBufferSize,0);var Ht=jt*ft,Ot=Rt.min(4*Ht,gt);if(Ht){for(var te=0;te<Ht;te+=ft)this._doProcessBlock(ct,te);var ne=ct.splice(0,Ht);ut.sigBytes-=Ot}return new Ct.init(ne,Ot)},clone:function(){var rt=Pt.clone.call(this);return rt._data=this._data.clone(),rt},_minBufferSize:0}),st=(Nt.Hasher=tt.extend({cfg:Pt.extend(),init:function(rt){this.cfg=this.cfg.extend(rt),this.reset()},reset:function(){tt.reset.call(this),this._doReset()},update:function(rt){return this._append(rt),this._process(),this},finalize:function(rt){return rt&&this._append(rt),this._doFinalize()},blockSize:16,_createHelper:function(rt){return function(ut,ct){return new rt.init(ct).finalize(ut)}},_createHmacHelper:function(rt){return function(ut,ct){return new st.HMAC.init(rt,ct).finalize(ut)}}}),Et.algo={});return Et}(Math);return Vt})},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"detectIEVersion",value:function(){for(var Et=4,Nt=document.createElement("div"),Pt=Nt.getElementsByTagName("i");Nt.innerHTML="<!--[if gt IE "+Et+"]><i></i><![endif]-->",Pt[0];)Et++;return Et>4&&Et}},{key:"extend",value:function(Et,Nt){for(var Pt in Nt)Object.prototype.hasOwnProperty.call(Nt,Pt)&&Nt[Pt]&&(Et[Pt]=Nt[Pt])}},{key:"isArray",value:function(Et){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(Et){return Et=Et.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(Et)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(Et)?"audio":/.bmp|.jpg|.jpeg|.png/.test(Et)?"img":"other"}},{key:"isImage",value:function(Et){return Et=Et.toLowerCase(),!!/.jpg|.jpeg|.png/.test(Et)}},{key:"ISODateString",value:function(Et){function Nt(Pt){return Pt<10?"0"+Pt:Pt}return Et.getUTCFullYear()+"-"+Nt(Et.getUTCMonth()+1)+"-"+Nt(Et.getUTCDate())+"T"+Nt(Et.getUTCHours())+":"+Nt(Et.getUTCMinutes())+":"+Nt(Et.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(Et){return!!/^\d+$/.test(Et)}}]),St}();xt.default=Dt},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return function(Rt){function Dt(st,rt,ut,ct,gt,ft,kt){var jt=st+(rt&ut|~rt&ct)+gt+kt;return(jt<<ft|jt>>>32-ft)+rt}function St(st,rt,ut,ct,gt,ft,kt){var jt=st+(rt&ct|ut&~ct)+gt+kt;return(jt<<ft|jt>>>32-ft)+rt}function Et(st,rt,ut,ct,gt,ft,kt){var jt=st+(rt^ut^ct)+gt+kt;return(jt<<ft|jt>>>32-ft)+rt}function Nt(st,rt,ut,ct,gt,ft,kt){var jt=st+(ut^(rt|~ct))+gt+kt;return(jt<<ft|jt>>>32-ft)+rt}var Pt=Vt,Ct=Pt.lib,Lt=Ct.WordArray,Ft=Ct.Hasher,vt=Pt.algo,et=[];(function(){for(var st=0;st<64;st++)et[st]=4294967296*Rt.abs(Rt.sin(st+1))|0})();var tt=vt.MD5=Ft.extend({_doReset:function(){this._hash=new Lt.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(st,rt){for(var ut=0;ut<16;ut++){var ct=rt+ut,gt=st[ct];st[ct]=16711935&(gt<<8|gt>>>24)|4278255360&(gt<<24|gt>>>8)}var ft=this._hash.words,kt=st[rt+0],jt=st[rt+1],Ht=st[rt+2],Ot=st[rt+3],te=st[rt+4],ne=st[rt+5],Xt=st[rt+6],ce=st[rt+7],me=st[rt+8],Pe=st[rt+9],De=st[rt+10],Ve=st[rt+11],we=st[rt+12],Qe=st[rt+13],ae=st[rt+14],_t=st[rt+15],$t=ft[0],re=ft[1],pe=ft[2],le=ft[3];$t=Dt($t,re,pe,le,kt,7,et[0]),le=Dt(le,$t,re,pe,jt,12,et[1]),pe=Dt(pe,le,$t,re,Ht,17,et[2]),re=Dt(re,pe,le,$t,Ot,22,et[3]),$t=Dt($t,re,pe,le,te,7,et[4]),le=Dt(le,$t,re,pe,ne,12,et[5]),pe=Dt(pe,le,$t,re,Xt,17,et[6]),re=Dt(re,pe,le,$t,ce,22,et[7]),$t=Dt($t,re,pe,le,me,7,et[8]),le=Dt(le,$t,re,pe,Pe,12,et[9]),pe=Dt(pe,le,$t,re,De,17,et[10]),re=Dt(re,pe,le,$t,Ve,22,et[11]),$t=Dt($t,re,pe,le,we,7,et[12]),le=Dt(le,$t,re,pe,Qe,12,et[13]),pe=Dt(pe,le,$t,re,ae,17,et[14]),re=Dt(re,pe,le,$t,_t,22,et[15]),$t=St($t,re,pe,le,jt,5,et[16]),le=St(le,$t,re,pe,Xt,9,et[17]),pe=St(pe,le,$t,re,Ve,14,et[18]),re=St(re,pe,le,$t,kt,20,et[19]),$t=St($t,re,pe,le,ne,5,et[20]),le=St(le,$t,re,pe,De,9,et[21]),pe=St(pe,le,$t,re,_t,14,et[22]),re=St(re,pe,le,$t,te,20,et[23]),$t=St($t,re,pe,le,Pe,5,et[24]),le=St(le,$t,re,pe,ae,9,et[25]),pe=St(pe,le,$t,re,Ot,14,et[26]),re=St(re,pe,le,$t,me,20,et[27]),$t=St($t,re,pe,le,Qe,5,et[28]),le=St(le,$t,re,pe,Ht,9,et[29]),pe=St(pe,le,$t,re,ce,14,et[30]),re=St(re,pe,le,$t,we,20,et[31]),$t=Et($t,re,pe,le,ne,4,et[32]),le=Et(le,$t,re,pe,me,11,et[33]),pe=Et(pe,le,$t,re,Ve,16,et[34]),re=Et(re,pe,le,$t,ae,23,et[35]),$t=Et($t,re,pe,le,jt,4,et[36]),le=Et(le,$t,re,pe,te,11,et[37]),pe=Et(pe,le,$t,re,ce,16,et[38]),re=Et(re,pe,le,$t,De,23,et[39]),$t=Et($t,re,pe,le,Qe,4,et[40]),le=Et(le,$t,re,pe,kt,11,et[41]),pe=Et(pe,le,$t,re,Ot,16,et[42]),re=Et(re,pe,le,$t,Xt,23,et[43]),$t=Et($t,re,pe,le,Pe,4,et[44]),le=Et(le,$t,re,pe,we,11,et[45]),pe=Et(pe,le,$t,re,_t,16,et[46]),re=Et(re,pe,le,$t,Ht,23,et[47]),$t=Nt($t,re,pe,le,kt,6,et[48]),le=Nt(le,$t,re,pe,ce,10,et[49]),pe=Nt(pe,le,$t,re,ae,15,et[50]),re=Nt(re,pe,le,$t,ne,21,et[51]),$t=Nt($t,re,pe,le,we,6,et[52]),le=Nt(le,$t,re,pe,Ot,10,et[53]),pe=Nt(pe,le,$t,re,De,15,et[54]),re=Nt(re,pe,le,$t,jt,21,et[55]),$t=Nt($t,re,pe,le,me,6,et[56]),le=Nt(le,$t,re,pe,_t,10,et[57]),pe=Nt(pe,le,$t,re,Xt,15,et[58]),re=Nt(re,pe,le,$t,Qe,21,et[59]),$t=Nt($t,re,pe,le,te,6,et[60]),le=Nt(le,$t,re,pe,Ve,10,et[61]),pe=Nt(pe,le,$t,re,Ht,15,et[62]),re=Nt(re,pe,le,$t,Pe,21,et[63]),ft[0]=ft[0]+$t|0,ft[1]=ft[1]+re|0,ft[2]=ft[2]+pe|0,ft[3]=ft[3]+le|0},_doFinalize:function(){var st=this._data,rt=st.words,ut=8*this._nDataBytes,ct=8*st.sigBytes;rt[ct>>>5]|=128<<24-ct%32;var gt=Rt.floor(ut/4294967296),ft=ut;rt[15+(ct+64>>>9<<4)]=16711935&(gt<<8|gt>>>24)|4278255360&(gt<<24|gt>>>8),rt[14+(ct+64>>>9<<4)]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),st.sigBytes=4*(rt.length+1),this._process();for(var kt=this._hash,jt=kt.words,Ht=0;Ht<4;Ht++){var Ot=jt[Ht];jt[Ht]=16711935&(Ot<<8|Ot>>>24)|4278255360&(Ot<<24|Ot>>>8)}return kt},clone:function(){var st=Ft.clone.call(this);return st._hash=this._hash.clone(),st}});Pt.MD5=Ft._createHelper(tt),Pt.HmacMD5=Ft._createHmacHelper(tt)}(Math),Vt.MD5})},function(Jt,xt,qt){"use strict";Object.defineProperty(xt,"__esModule",{value:!0}),xt.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},xt.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},xt.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(Jt,xt,qt){"use strict";function Vt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Rt(tt,st){if(!(tt instanceof st))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function tt(st,rt){for(var ut=0;ut<rt.length;ut++){var ct=rt[ut];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(st,ct.key,ct)}}return function(st,rt,ut){return rt&&tt(st.prototype,rt),ut&&tt(st,ut),st}}(),St=qt(5),Et=Vt(St),Nt=qt(25),Pt=Vt(Nt),Ct=qt(6),Lt=Vt(Ct),Ft=qt(7),vt=Vt(Ft),et=function(){function tt(st){Rt(this,tt);var rt=vt.default.os.name,ut=vt.default.os.version||"",ct=vt.default.browser.name,gt=vt.default.browser.version||"",ft=window.location.href,kt="";ft&&(kt=vt.default.getHost(ft));var jt="pc";vt.default.os.ipad?jt="pad":(vt.default.os.iphone||vt.default.os.android)&&(jt="phone"),this._ri=Et.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:Lt.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:tt.getUuid(),os:rt,ov:ut,et:ct,ev:gt,uat:navigator.userAgent,app_n:kt,tt:jt,dm:"h5",ut:""}}return Dt(tt,[{key:"log",value:function(st,rt){rt&&rt.ri?(this._ri=rt.ri,delete rt.ri):this._ri=Et.default.create(),rt&&rt.ut&&(this.initParam.ut=rt.ut,delete rt.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=st=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=st;var ut=[];if(rt)for(var ct in rt)ut.push(ct+"="+rt[ct]);var gt=ut.join("&");this.initParam.args=encodeURIComponent(gt==""?"0":gt);var ft=[];for(var ct in this.initParam)ft.push(ct+"="+this.initParam[ct]);var kt=ft.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(kt):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+kt}}],[{key:"getUuid",value:function(){var st=Pt.default.get("p_h5_upload_u");return st||(st=Et.default.create(),Pt.default.set("p_h5_upload_u",st,730)),st}},{key:"getClientId",value:function(){return Pt.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(st){return st||(st=Et.default.create()),Pt.default.set("p_h5_upload_clientId",st,730),st}}]),tt}();xt.default=et},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"create",value:function(Et,Nt){var Pt,Ct="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Lt=[];if(Nt=Nt||Ct.length,Et)for(Pt=0;Pt<Et;Pt++)Lt[Pt]=Ct[0|Math.random()*Nt];else{var Ft;for(Lt[8]=Lt[13]=Lt[18]=Lt[23]="-",Lt[14]="4",Pt=0;Pt<36;Pt++)Lt[Pt]||(Ft=0|16*Math.random(),Lt[Pt]=Ct[Pt==19?3&Ft|8:Ft])}return Lt.join("")}}]),St}();xt.default=Dt},function(Jt,xt,qt){"use strict";Object.defineProperty(xt,"__esModule",{value:!0});var Vt={version:"1.5.0"};xt.default=Vt},function(Jt,xt,qt){"use strict";function Vt(Ct,Lt){if(!(Ct instanceof Lt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function Ct(Lt,Ft){for(var vt=0;vt<Ft.length;vt++){var et=Ft[vt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(Lt,et.key,et)}}return function(Lt,Ft,vt){return Ft&&Ct(Lt.prototype,Ft),vt&&Ct(Lt,vt),Lt}}(),Dt=function(Ct){var Lt=navigator.userAgent,Ft="other";if(Ct.ios)return"iOS";if(Ct.android)return"android";if(Lt.indexOf("Baiduspider")>-1)return"Baiduspider";if(Lt.indexOf("PlayStation")>-1)return"PS4";var vt=navigator.platform=="Win32"||navigator.platform=="Windows"||Lt.indexOf("Windows")>-1,et=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return et&&(Ft="macOS"),navigator.platform=="X11"&&!vt&&!et&&(Ft="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(Ft="Linux"),vt?"windows":Ft},St=function(){var Ct=navigator.userAgent,Lt="";return(Ct.indexOf("Windows NT 5.0")>-1||Ct.indexOf("Windows 2000")>-1)&&(Lt="2000"),(Ct.indexOf("Windows NT 5.1")>-1||Ct.indexOf("Windows XP")>-1)&&(Lt="XP"),(Ct.indexOf("Windows NT 5.2")>-1||Ct.indexOf("Windows 2003")>-1)&&(Lt="2003"),(Ct.indexOf("Windows NT 6.0")>-1||Ct.indexOf("Windows Vista")>-1)&&(Lt="Vista"),(Ct.indexOf("Windows NT 6.1")>-1||Ct.indexOf("Windows 7")>-1)&&(Lt="7"),(Ct.indexOf("Windows NT 6.2")>-1||Ct.indexOf("Windows 8")>-1)&&(Lt="8"),(Ct.indexOf("Windows NT 6.3")>-1||Ct.indexOf("Windows 8.1")>-1)&&(Lt="8.1"),(Ct.indexOf("Windows NT 10")>-1||Ct.indexOf("Windows 10")>-1)&&(Lt="10"),Lt},Et=function(Ct){var Lt=navigator.userAgent.toLowerCase();return Ct.chrome?"Chrome":Ct.firefox?"Firefox":Ct.safari?"Safari":Ct.webview?"webview":Ct.ie?/edge/.test(Lt)?"Edge":"IE":/baiduspider/.test(Lt)?"Baiduspider":/ucweb/.test(Lt)||/UCBrowser/.test(Lt)?"UC":/opera/.test(Lt)?"Opera":/ucweb/.test(Lt)?"UC":/360se/.test(Lt)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(Lt)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(Lt)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(Lt)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(Lt)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(Lt)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(Lt)?"PS4\u6D4F\u89C8\u5668":void 0},Nt=function(){var Ct={},Lt={},Ft=navigator.userAgent,vt=navigator.platform,et=Ft.match(/Web[kK]it[\/]{0,1}([\d.]+)/),tt=Ft.match(/(Android);?[\s\/]+([\d.]+)?/),st=!!Ft.match(/\(Macintosh\; Intel /),rt=Ft.match(/(iPad).*OS\s([\d_]+)/),ut=Ft.match(/(iPod)(.*OS\s([\d_]+))?/),ct=!rt&&Ft.match(/(iPhone\sOS)\s([\d_]+)/),gt=Ft.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),ft=/Win\d{2}|Windows/.test(vt),kt=Ft.match(/Windows Phone ([\d.]+)/),jt=gt&&Ft.match(/TouchPad/),Ht=Ft.match(/Kindle\/([\d.]+)/),Ot=Ft.match(/Silk\/([\d._]+)/),te=Ft.match(/(BlackBerry).*Version\/([\d.]+)/),ne=Ft.match(/(BB10).*Version\/([\d.]+)/),Xt=Ft.match(/(RIM\sTablet\sOS)\s([\d.]+)/),ce=Ft.match(/PlayBook/),me=Ft.match(/Chrome\/([\d.]+)/)||Ft.match(/CriOS\/([\d.]+)/),Pe=Ft.match(/Firefox\/([\d.]+)/),De=Ft.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Ve=Ft.match(/MSIE\s([\d.]+)/)||Ft.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),we=!me&&Ft.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),Qe=we||Ft.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((Lt.webkit=!!et)&&(Lt.version=et[1]),tt&&(Ct.android=!0,Ct.version=tt[2]),ct&&!ut&&(Ct.ios=Ct.iphone=!0,Ct.version=ct[2].replace(/_/g,".")),rt&&(Ct.ios=Ct.ipad=!0,Ct.version=rt[2].replace(/_/g,".")),ut&&(Ct.ios=Ct.ipod=!0,Ct.version=ut[3]?ut[3].replace(/_/g,"."):null),kt&&(Ct.wp=!0,Ct.version=kt[1]),gt&&(Ct.webos=!0,Ct.version=gt[2]),jt&&(Ct.touchpad=!0),te&&(Ct.blackberry=!0,Ct.version=te[2]),ne&&(Ct.bb10=!0,Ct.version=ne[2]),Xt&&(Ct.rimtabletos=!0,Ct.version=Xt[2]),ce&&(Lt.playbook=!0),Ht&&(Ct.kindle=!0,Ct.version=Ht[1]),Ot&&(Lt.silk=!0,Lt.version=Ot[1]),!Ot&&Ct.android&&Ft.match(/Kindle Fire/)&&(Lt.silk=!0),me&&(Lt.chrome=!0,Lt.version=me[1]),Pe&&(Lt.firefox=!0,Lt.version=Pe[1]),De&&(Ct.firefoxos=!0,Ct.version=De[1]),Ve&&(Lt.ie=!0,Lt.version=Ve[1]),Qe&&(st||Ct.ios||ft||tt)&&(Lt.safari=!0,Ct.ios||(Lt.version=Qe[1])),we&&(Lt.webview=!0),st){var ae=Ft.match(/[\d]*_[\d]*_[\d]*/);ae&&ae.length>0&&ae[0]&&(Ct.version=ae[0].replace(/_/g,"."))}return Ct.tablet=!!(rt||ce||tt&&!Ft.match(/Mobile/)||Pe&&Ft.match(/Tablet/)||Ve&&!Ft.match(/Phone/)&&Ft.match(/Touch/)),Ct.phone=!(Ct.tablet||Ct.ipod||!(tt||ct||gt||te||ne||me&&Ft.match(/Android/)||me&&Ft.match(/CriOS\/([\d.]+)/)||Pe&&Ft.match(/Mobile/)||Ve&&Ft.match(/Touch/))),Ct.pc=!Ct.tablet&&!Ct.phone,st?Ct.name="macOS":ft?(Ct.name="windows",Ct.version=St()):Ct.name=Dt(Ct),Lt.name=Et(Lt),{os:Ct,browser:Lt}}(),Pt=function(){function Ct(){Vt(this,Ct)}return Rt(Ct,null,[{key:"getHost",value:function(Lt){var et="";if(Lt===void 0||Lt==null||Lt=="")return"";var Ft=Lt.indexOf("//"),vt=Lt;Ft>-1&&(vt=Lt.substring(Ft+2));var et=vt,tt=vt.split("/");return tt&&tt.length>0&&(et=tt[0]),tt=et.split(":"),tt&&tt.length>0&&(et=tt[0]),et}},{key:"os",get:function(){return Nt.os}},{key:"browser",get:function(){var Lt=Nt.browser;return Lt.name||(Lt.name=Et()),Lt}}]),Ct}();xt.default=Pt},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"get",value:function(Et,Nt,Pt,Ct,Lt){var Ft;Pt=Pt||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(vt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(vt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(vt){}throw new Error("This browser does not support XMLHttpRequest.")}),Ft=new XMLHttpRequest,Ft.onreadystatechange=function(){Ft.readyState===4&&(Ft.status===200?Nt(Ft.responseText):Pt(Ft.responseText))};try{Ct===void 0&&(Ct=!0),Ft.open("GET",Et,Ct),Lt&&(Ft.withCredentials=!0)}catch(vt){return void Pt(vt)}try{Ft.send()}catch(vt){Pt(vt)}}}]),St}();xt.default=Dt},function(Jt,xt,qt){"use strict";function Vt(Nt,Pt){if(!(Nt instanceof Pt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function Nt(Pt,Ct){for(var Lt=0;Lt<Ct.length;Lt++){var Ft=Ct[Lt];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Pt,Ft.key,Ft)}}return function(Pt,Ct,Lt){return Ct&&Nt(Pt.prototype,Ct),Lt&&Nt(Pt,Lt),Pt}}(),Dt=qt(27),St=qt(30),Et=(qt(10),function(){function Nt(){Vt(this,Nt)}return Rt(Nt,null,[{key:"randomUUID",value:function(){for(var Pt=[],Ct="0123456789abcdef",Lt=0;Lt<36;Lt++)Pt[Lt]=Ct.substr(Math.floor(16*Math.random()),1);return Pt[14]="4",Pt[19]=Ct.substr(3&Pt[19]|8,1),Pt[8]=Pt[13]=Pt[18]=Pt[23]="-",Pt.join("")}},{key:"aliyunEncodeURI",value:function(Pt){var Ct=encodeURIComponent(Pt);return Ct=Ct.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(Pt,Ct,Lt){if(!Pt)throw new Error("PrismPlayer Error: vid should not be null!");var Ft=[];for(var vt in Pt)Ft.push(vt);for(var et=Ft.sort(),tt="",st=et.length,vt=0;vt<st;vt++){var rt=Nt.aliyunEncodeURI(et[vt]),ut=Nt.aliyunEncodeURI(Pt[et[vt]]);tt==""?tt=rt+Ct+ut:tt+=Lt+rt+Ct+ut}return tt}},{key:"makeChangeSiga",value:function(Pt,Ct){if(!Pt)throw new Error("PrismPlayer Error: vid should not be null!");return St.stringify(Dt("GET&"+Nt.aliyunEncodeURI("/")+"&"+Nt.aliyunEncodeURI(Nt.makeUTF8sort(Pt,"=","&")),Ct+"&"))}}]),Nt}());xt.default=Et},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return Vt.enc.Utf8})},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return Vt.enc.Hex})},function(Jt,xt,qt){Jt.exports=qt(13)},function(Jt,xt,qt){"use strict";var Vt,Rt,Dt=qt(14),St=function(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}(Dt),Et={Vod:St.default};Vt=[],(Rt=function(){return Et}.apply(xt,Vt))!==void 0&&(Jt.exports=Rt),window.AliyunUpload=Et,An.exports=AliyunUpload},function(Jt,xt,qt){"use strict";function Vt(ne){return ne&&ne.__esModule?ne:{default:ne}}function Rt(ne,Xt){if(!(ne instanceof Xt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function ne(Xt,ce){for(var me=0;me<ce.length;me++){var Pe=ce[me];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(Xt,Pe.key,Pe)}}return function(Xt,ce,me){return ce&&ne(Xt.prototype,ce),me&&ne(Xt,me),Xt}}(),St=qt(15),Et=qt(3),Nt=qt(16),Pt=Vt(Nt),Ct=qt(18),Lt=Vt(Ct),Ft=qt(24),vt=Vt(Ft),et=qt(4),tt=Vt(et),st=qt(1),rt=Vt(st),ut=qt(5),ct=Vt(ut),gt=qt(26),ft=Vt(gt),kt=qt(31),jt=Vt(kt),Ht=qt(32),Ot=Vt(Ht),te=(qt(2),function(){function ne(Xt){Rt(this,ne),this.options=Xt,this.options.partSize=this.options.partSize||Et.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||Et.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=St.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new tt.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=St.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return Dt(ne,[{key:"init",value:function(Xt,ce,me,Pe){return this._retryCount=0,!(me&&!Pe||!me&&Pe)&&!(Xt&&!ce||!Xt&&ce)&&(this._ossCreditor.accessKeyId=Xt,this._ossCreditor.accessKeySecret=ce,this._ossCreditor.securityToken=me,this._ossCreditor.expireTime=Pe,!0)}},{key:"addFile",value:function(Xt,ce,me,Pe,De,Ve){if(!Xt)return!1;if(Xt.size==0)try{this.options.onUploadFailed({file:Xt},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(_t){console.log(_t)}for(var we=(this.options,0);we<this._uploadList.length;we++)if(this._uploadList[we].file==Xt)return!1;var Qe=new Object;if(Qe.file=Xt,Qe._endpoint=ce,Qe._bucket=me,Qe._object=Pe,Qe.state=St.UPLOADSTATE.INIT,Qe.isImage=rt.default.isImage(Xt.name),!Qe.isImage&&this.options.enableUploadProgress){var ae=this;Ot.default.getMd5(Xt,function(_t){Qe.fileHash=_t;var $t=ae._getCheckoutpoint(Qe);ae.options.localCheckpoint||$t||ae._getCheckoutpointFromCloud(Qe,function(re){if(re.UploadPoint){var pe=JSON.parse(re.UploadPoint);pe.loaded!=1&&(Qe.checkpoint=pe.checkpoint,Qe.loaded=pe.loaded,Qe.videoId=re.VideoId,ae._saveCheckoutpoint(Qe,pe.checkpoint))}},function(re){try{if((re=JSON.parse(re))&&re.Code=="InvalidParameter"&&re.Message.indexOf("UserId")>0){ae._invalidUserId=!0;var pe=re.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(pe)}}catch(le){console.log(le)}})})}De&&(Qe.videoInfo=De?JSON.parse(De).Vod:{},Qe.userData=Lt.default.encode(De)),Qe.ri=ct.default.create(),this._uploadList.push(Qe),this._reportLog("20001",Qe,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(Qe)}catch(_t){console.log(_t)}return!0}},{key:"deleteFile",value:function(Xt){return!!this.cancelFile(Xt)&&(this._uploadList.splice(Xt,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(Xt){if(this.options,Xt<0||Xt>=this._uploadList.length)return!1;var ce=this._uploadList[Xt];if(Xt==this._curIndex&&ce.state==St.UPLOADSTATE.UPLOADING){ce.state=St.UPLOADSTATE.CANCELED;var me=this._getCheckoutpoint(ce);me&&me.checkpoint&&(me=me.checkpoint),me&&this._ossUpload.abort(ce),this._removeCheckoutpoint(ce),this.nextUpload()}else ce.state!=St.UPLOADSTATE.SUCCESS&&(ce.state=St.UPLOADSTATE.CANCELED);return this._reportLog("20008",ce),!0}},{key:"resumeFile",value:function(Xt){if(this.options,Xt<0||Xt>=this._uploadList.length)return!1;var ce=this._uploadList[Xt];return ce.state==St.UPLOADSTATE.CANCELED&&(ce.state=St.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(Xt){return this._getCheckoutpoint({file:Xt})}},{key:"startUpload",value:function(Xt){if(this._retryCount=0,this.options,this._state==St.VODSTATE.START||this._state==St.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=St.VODSTATE.END);var ce=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ce),this._state=St.VODSTATE.START}},{key:"nextUpload",value:function(){var Xt=this.options;if(this._state==St.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var ce=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ce)}else{this._state=St.VODSTATE.END;try{Xt.onUploadEnd&&Xt.onUploadEnd(ce)}catch(me){console.log(me)}}}},{key:"clear",value:function(Xt){for(var ce=this.options,me=0,Pe=0;Pe<this._uploadList.length;Pe++)ce.uploadList[Pe].state==St.UPLOADSTATE.SUCCESS&&me++,this._uploadList[Pe].state==Xt&&(ce.uploadList.splice(Pe,1),Pe--);ce.onClear&&ce.onClear(ce.uploadList.length,me)}},{key:"stopUpload",value:function(){if((this._state==St.VODSTATE.START||this._state==St.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var Xt=this._uploadList[this._curIndex];this._state=St.VODSTATE.STOP,Xt.state=St.UPLOADSTATE.STOPED,this._changeState(Xt,St.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(Xt){var ce=this;if(!Xt)return!1;var me=JSON.parse(Lt.default.decode(Xt));return!!(me.AccessKeyId&&me.AccessKeySecret&&me.SecurityToken&&me.Expiration)&&ce.resumeUploadWithToken(me.AccessKeyId,me.AccessKeySecret,me.SecurityToken,me.Expiration)}},{key:"resumeUploadWithToken",value:function(Xt,ce,me,Pe){if(this.options,!(Xt&&ce&&me&&Pe)||this._state!=St.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var De="";return this._uploadList.length>this._curIndex&&(De=this._uploadList[this._curIndex]),De&&(this.init(Xt,ce,me,Pe),this._state=St.VODSTATE.START,this._ossUpload=null,this._uploadCore(De,De.retry),De.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(Xt,ce,me){if(this._curIndex==-1||this._state!=St.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var Pe=this._uploadList[this._curIndex];Pe.object?this._refreshSTSTokenUpload(Pe,Xt,ce,me):this.setSTSToken(Pe,Xt,ce,me)}}},{key:"setSTSTokenDirectlyUpload",value:function(Xt,ce,me,Pe,De){if(!(ce&&me&&Pe&&De))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Ve=Xt;this.init(ce,me,Pe,De),Ve.endpoint=Ve._endpoint,Ve.bucket=Ve._bucket,Ve.object=Ve._object,this._ossUpload=null,this._uploadCore(Ve,Xt.retry),Xt.retry=!1}},{key:"setSTSToken",value:function(Xt,ce,me,Pe){if(!ce||!me||!Pe)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var De=Xt.videoInfo,Ve={accessKeyId:ce,securityToken:Pe,accessKeySecret:me,fileName:Xt.file.name,title:De.Title,requestId:Xt.ri,region:this.options.region};De.ImageType&&(Ve.imageType=De.ImageType),De.ImageExt&&(Ve.imageExt=De.ImageExt),De.FileSize&&(Ve.fileSize=De.FileSize),De.Description&&(Ve.description=De.Description),De.CateId&&(Ve.cateId=De.CateId),De.Tags&&(Ve.tags=De.Tags),De.TemplateGroupId&&(Ve.templateGroupId=De.TemplateGroupId),De.StorageLocation&&(Ve.storageLocation=De.StorageLocation),De.CoverURL&&(Ve.coverUrl=De.CoverURL),De.TransCodeMode&&(Ve.transCodeMode=De.TransCodeMode),De.UserData&&(Ve.userData=De.UserData);var we=this,Qe="getUploadAuth";Xt.videoId?(Ve.videoId=Xt.videoId,Qe="refreshUploadAuth"):Xt.isImage&&(Qe="getImageUploadAuth"),ft.default[Qe](Ve,function(ae){Xt.videoId=ae.VideoId?ae.VideoId:Xt.videoId,we.setUploadAuthAndAddress(Xt,ae.UploadAuth,ae.UploadAddress),we._state=St.VODSTATE.START},function(ae){we._error(Xt,{name:ae.Code,code:ae.Code,message:ae.Message,requestId:ae.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(Xt,ce,me,Pe){if(!Xt||!ce||!me)return!1;var De=JSON.parse(Lt.default.decode(ce));if(!(De.AccessKeyId&&De.AccessKeySecret&&De.SecurityToken&&De.Expiration))return console.error("uploadauth is invalid"),!1;var Ve={},we=Xt;if(me){if(Ve=JSON.parse(Lt.default.decode(me)),!Ve.Endpoint||!Ve.Bucket||!Ve.FileName)return console.error("uploadAddress is invalid"),!1}else Ve.Endpoint=we.endpoint,Ve.Bucket=we.bucket,Ve.FileName=we.object;this._ut="vod",this._uploadWay="vod",this.options.region=De.Region||this.options.region,this.init(De.AccessKeyId,De.AccessKeySecret,De.SecurityToken,De.Expiration),we.endpoint=we._endpoint?we._endpoint:Ve.Endpoint,we.bucket=we._bucket?we._bucket:Ve.Bucket,we.object=we._object?we._object:Ve.FileName,we.region=this.options.region,Pe&&(we.videoId=Pe),this._ossUpload=null,this._uploadCore(we,Xt.retry),Xt.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(Xt,ce,me,Pe){if(!ce||!me||!Pe)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var De={accessKeyId:ce,securityToken:Pe,accessKeySecret:me,videoId:Xt.object,requestId:Xt.ri,region:this.options.region},Ve=this,we="refreshUploadAuth";Xt.isImage&&(we="getImageUploadAuth"),ft.default[we](De,function(Qe){Ve.setUploadAuthAndAddress(Xt,Qe.UploadAuth,UploadAddress),Ve._state=St.VODSTATE.START},function(Qe){Ve._error(Xt,{name:Qe.Code,code:Qe.Code,message:Qe.Message,requestId:Qe.RequestId})})}},{key:"_upload",value:function(Xt){var ce=arguments.length>1&&arguments[1]!==void 0&&arguments[1],me=this.options;if(Xt.retry=ce,me.onUploadstarted&&!ce)try{var Pe=this._getCheckoutpoint(Xt);Pe&&Pe.state!=St.UPLOADSTATE.UPLOADING&&(Xt.checkpoint=Pe,Xt.videoId=Pe.videoId),me.onUploadstarted(Xt)}catch(De){console.log(De)}}},{key:"_uploadCore",value:function(Xt){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(Xt.state=St.UPLOADSTATE.UPLOADING,!this._ossUpload){Xt.endpoint=Xt.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var ce=this;this._ossUpload=new Pt.default({bucket:Xt.bucket,endpoint:Xt.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(ae,_t){ce._error.call(ce,ae,_t)},oncomplete:function(ae,_t){ce._complete.call(ce,ae,_t)},onprogress:function(ae,_t,$t){ce._progress.call(ce,ae,_t,$t)}})}var me=rt.default.getFileType(Xt.file.name),Pe=this._getCheckoutpoint(Xt),De="",Ve="";Pe&&Pe.checkpoint&&(Ve=Pe.state,De=Pe.videoId,Pe=Pe.checkpoint),Pe&&De==Xt.videoId&&Ve!=St.UPLOADSTATE.UPLOADING&&(Pe.file=Xt.file,Xt.checkpoint=Pe,Pe.uploadId);var we=this._adjustPartSize(Xt);this._reportLog("20002",Xt,{ft:me,fs:Xt.file.size,bu:Xt.bucket,ok:Xt.object,vid:Xt.videoId||"",fn:Xt.file.name,fw:null,fh:null,ps:we});var Qe={headers:{"x-oss-notification":Xt.userData?Xt.userData:""},partSize:we,parallel:this.options.parallel};this._ossUpload.upload(Xt,Qe)}},{key:"_findUploadIndex",value:function(){for(var Xt=-1,ce=0;ce<this._uploadList.length;ce++)if(this._uploadList[ce].state==St.UPLOADSTATE.INIT){Xt=ce;break}return Xt}},{key:"_error",value:function(Xt,ce){if(ce.name=="cancel")try{this.options.onUploadCanceled(Xt,ce)}catch(Pe){console.log(Pe)}else{if(ce.message.indexOf("InvalidAccessKeyIdError")>0||ce.name=="SignatureDoesNotMatchError"||ce.code=="SecurityTokenExpired"||ce.code=="InvalidSecurityToken.Expired"||ce.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=St.VODSTATE.EXPIRE,Xt.state=St.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(Xt,ce)}catch(Pe){console.log(Pe)}}return}if((ce.name=="RequestTimeoutError"||ce.name=="ConnectionTimeout"||ce.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var me=this;return setTimeout(function(){me._uploadCore(Xt,!0)},1e3*me._retryDuration),void this._retryCount++}ce.name=="NoSuchUploadError"&&this._removeCheckoutpoint(Xt),this._handleError(Xt,ce)}}},{key:"_handleError",value:function(Xt,ce){var me=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],Pe=St.UPLOADSTATE.FAIlURE;if(Xt.state!=St.UPLOADSTATE.CANCELED&&(Xt.state=St.UPLOADSTATE.FAIlURE,this._state=St.VODSTATE.FAILURE,this.options.onUploadFailed&&ce&&ce.code&&ce.message))try{this.options.onUploadFailed(Xt,ce.code,ce.message)}catch(Ve){console.log(Ve)}if(me&&this._changeState(Xt,Pe),this._reportLog("20006",Xt,{code:ce.name,message:ce.message,requestId:ce.requestId,fs:Xt.file.size,bu:Xt.bucket,ok:Xt.object,fn:Xt.file.name}),this._reportLog("20004",Xt,{requestId:ce.requestId,fs:Xt.file.size,bu:Xt.bucket,ok:Xt.object,fn:Xt.file.name}),Xt.ri=ct.default.create(),this._findUploadIndex()!=-1){var De=this;this._state=St.VODSTATE.START,setTimeout(function(){De.nextUpload()},100)}}},{key:"_complete",value:function(Xt,ce){if(Xt.state=St.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(Xt)}catch(De){console.log(De)}var me=0;ce&&ce.res&&ce.res.headers&&(me=ce.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(Xt);var Pe=this;setTimeout(function(){Pe.nextUpload()},100),this._retryCount=0,this._reportLog("20003",Xt,{requestId:me})}},{key:"_progress",value:function(Xt,ce,me){if(this.options.onUploadProgress)try{Xt.loaded=ce.loaded,this.options.onUploadProgress(Xt,ce.total,ce.loaded)}catch(_t){console.log(_t)}var Pe=ce.checkpoint,De=0;Pe&&(Xt.checkpoint=Pe,this._saveCheckoutpoint(Xt,Pe,St.UPLOADSTATE.UPLOADING),De=Pe.uploadId),this._retryCount=0;var Ve=this._getPortNumber(Pe),we=0;if(me&&me.headers&&(we=me.headers["x-oss-request-id"]),ce.loaded!=0&&this._reportLog("20007",Xt,{pn:Ve,requestId:we}),ce.loaded!=1&&this._reportLog("20005",Xt,{UploadId:De,pn:Ve+1,pr:Xt.retry?1:0,fs:Xt.file.size,bu:Xt.bucket,ok:Xt.object,fn:Xt.file.name}),!this._invalidUserId&&!Xt.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var Qe={file:Xt.file,checkpoint:ce,userId:this.options.userId,videoId:Xt.videoId,region:this.options.region,fileHash:Xt.fileHash};try{var ae=this;jt.default.upload(Qe,function(){},function(_t){if((_t=JSON.parse(_t))&&_t.Code=="InvalidParameter"&&_t.Message.indexOf("UserId")>0){ae._invalidUserId=!0;var $t=_t.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log($t)}})}catch(_t){console.log(_t)}}}},{key:"_getPortNumber",value:function(Xt){if(Xt){var ce=Xt.doneParts;if(ce&&ce.length>0)return ce[ce.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(Xt){var ce=this._getCheckoutpointKey(Xt);vt.default.remove(ce)}},{key:"_getCheckoutpoint",value:function(Xt){var ce=this._getCheckoutpointKey(Xt),me=vt.default.get(ce);if(me)try{return JSON.parse(me)}catch(Pe){}return""}},{key:"_saveCheckoutpoint",value:function(Xt,ce,me){if(ce){var Pe=this._getCheckoutpointKey(Xt),De=Xt.file,Ve={fileName:De.name,lastModified:De.lastModified,size:De.size,object:Xt.object,videoId:Xt.videoId,bucket:Xt.bucket,endpoint:Xt.endpoint,checkpoint:ce,loaded:Xt.loaded,state:me};vt.default.set(Pe,JSON.stringify(Ve))}}},{key:"_changeState",value:function(Xt,ce){var me=this._getCheckoutpoint(Xt);me&&((this._onbeforeunload=!0)&&(ce=St.UPLOADSTATE.STOPED),this._saveCheckoutpoint(Xt,me.checkpoint,ce))}},{key:"_getCheckoutpointKey",value:function(Xt){return"upload_"+Xt.file.lastModified+"_"+Xt.file.name+"_"+Xt.file.size}},{key:"_getCheckoutpointFromCloud",value:function(Xt,ce,me){var Pe={userId:this.options.userId,uploadInfoList:[{FileName:Xt.file.name,FileSize:Xt.file.size,FileCreateTime:Xt.file.lastModified,FileHash:Xt.fileHash}],region:this.options.region};jt.default.get(Pe,function(De){ce(De)},me)}},{key:"_reportLog",value:function(Xt,ce,me){me||(me={}),me.ri=ce.ri,this._ut&&(me.ut=this._ut),this._log.log(Xt,me)}},{key:"_initEvent",value:function(){var Xt=this;window&&(window.onbeforeunload=function(ce){if(Xt._onbeforeunload=!0,Xt._curIndex!=-1&&Xt._uploadList.length>Xt._curIndex){var me=Xt._uploadList[Xt._curIndex];Xt._changeState(me,St.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var Xt=0;Xt<this._uploadList.length;Xt++){var ce=this._uploadList[Xt];ce.state!=St.UPLOADSTATE.FAIlURE&&ce.state!=St.UPLOADSTATE.STOPED||(ce.state=St.UPLOADSTATE.INIT)}this._state=St.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(Xt){return Xt.file.size/this.options.partSize>1e4?Xt.file.size/9999:this.options.partSize}}]),ne}());xt.default=te},function(Jt,xt,qt){"use strict";Object.defineProperty(xt,"__esModule",{value:!0}),xt.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},xt.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(Jt,xt,qt){"use strict";function Vt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function Rt(Ct,Lt){if(!(Ct instanceof Lt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function Ct(Lt,Ft){for(var vt=0;vt<Ft.length;vt++){var et=Ft[vt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(Lt,et.key,et)}}return function(Lt,Ft,vt){return Ft&&Ct(Lt.prototype,Ft),vt&&Ct(Lt,vt),Lt}}(),St=qt(3),Et=qt(17),Nt=(Vt(Et),qt(1)),Pt=(Vt(Nt),function(){function Ct(Lt,Ft){if(Rt(this,Ct),Lt){this._config=Lt,this.create(this._config),this._uploadInfo=null,this._callback={};var vt=function(){};this._callback.onerror=Ft.onerror||vt,this._callback.oncomplete=Ft.oncomplete||vt,this._callback.onprogress=Ft.onprogress||vt}}return Dt(Ct,[{key:"create",value:function(Lt){if(Lt.endpoint=Lt.endpoint||this._config.endpoint,Lt.bucket=Lt.bucket||this._config.bucket,!(Lt.AccessKeyId&&Lt.AccessKeySecret&&Lt.endpoint&&Lt.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var Ft={accessKeyId:Lt.AccessKeyId,accessKeySecret:Lt.AccessKeySecret,stsToken:Lt.SecurityToken,endpoint:Lt.endpoint||this._config.endpoint,bucket:Lt.bucket||this._config.bucket,secure:!0,cname:Lt.cname};Lt.timeout&&(Ft.timeout=Lt.timeout),this.oss=new OSS.Wrapper(Ft)}},{key:"abort",value:function(Lt){if(Lt.checkpoint){var Ft=Lt.checkpoint.uploadId;this.oss.abortMultipartUpload(Lt.object,Ft)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(Lt,Ft){this._uploadInfo=Lt;var vt=this,et=function(st,rt,ut){return function(ct){vt._progress(st,rt,ut),ct()}},tt={parallel:Ft.parallel||this._config.parallel||St.UPLOADDEFAULT.PARALLEL,partSize:Ft.partSize||this._config.partSize||St.UPLOADDEFAULT.PARTSIZE,progress:et};Ft.headers&&(tt.headers=Ft.headers),Lt.checkpoint&&(tt.checkpoint=Lt.checkpoint),Lt.bucket||(this.oss.options.bucket=Lt.bucket),Lt.endpoint||(this.oss.options.endpoint=Lt.endpoint),this.oss.multipartUpload(Lt.object,Lt.file,tt).then(function(st,rt){vt._complete(st)}).catch(function(st){vt.oss.cancel&&(vt.oss&&vt.oss.isCancel()?console.log("oss is cancel as error"):vt.oss.cancel()),vt._error(st)})}},{key:"header",value:function(Lt,Ft,vt){this.oss.get(Lt.object).then(function(et){Ft(et)}).catch(function(et){vt(et)})}},{key:"_progress",value:function(Lt,Ft,vt){this._callback.onprogress(this._uploadInfo,{loaded:Lt,total:this._uploadInfo.file.size,checkpoint:Ft},vt)}},{key:"_error",value:function(Lt){this._callback.onerror(this._uploadInfo,Lt)}},{key:"_complete",value:function(Lt){this._callback.oncomplete(this._uploadInfo,Lt)}}]),Ct}());xt.default=Pt},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"format",value:function(Et){if(arguments.length<2)return null;for(var Nt=arguments[1],Pt=1;Pt<arguments.length;Pt++){var Ct=new RegExp("\\{"+(Pt-1)+"\\}","gm");Nt=Nt.replace(Ct,arguments[Pt+1])}return{code:Et,message:Nt}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),St}();xt.default=Dt},function(Jt,xt,qt){"use strict";(function(Vt){function Rt(Et,Nt){if(!(Et instanceof Nt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function Et(Nt,Pt){for(var Ct=0;Ct<Pt.length;Ct++){var Lt=Pt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Nt,Lt.key,Lt)}}return function(Nt,Pt,Ct){return Pt&&Et(Nt.prototype,Pt),Ct&&Et(Nt,Ct),Nt}}(),St=function(){function Et(){Rt(this,Et)}return Dt(Et,null,[{key:"encode",value:function(Nt){return new Vt(Nt).toString("base64")}},{key:"decode",value:function(Nt){return new Vt(Nt,"base64").toString()}}]),Et}();xt.default=St}).call(xt,qt(19).Buffer)},function(Jt,xt,qt){"use strict";(function(Vt){function Rt(){return St.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Dt(It,bt){if(Rt()<bt)throw new RangeError("Invalid typed array length");return St.TYPED_ARRAY_SUPPORT?(It=new Uint8Array(bt),It.__proto__=St.prototype):(It===null&&(It=new St(bt)),It.length=bt),It}function St(It,bt,Bt){if(!(St.TYPED_ARRAY_SUPPORT||this instanceof St))return new St(It,bt,Bt);if(typeof It=="number"){if(typeof bt=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ct(this,It)}return Et(this,It,bt,Bt)}function Et(It,bt,Bt,ie){if(typeof bt=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&bt instanceof ArrayBuffer?vt(It,bt,Bt,ie):typeof bt=="string"?Lt(It,bt,Bt):et(It,bt)}function Nt(It){if(typeof It!="number")throw new TypeError('"size" argument must be a number');if(It<0)throw new RangeError('"size" argument must not be negative')}function Pt(It,bt,Bt,ie){return Nt(bt),bt<=0?Dt(It,bt):Bt!==void 0?typeof ie=="string"?Dt(It,bt).fill(Bt,ie):Dt(It,bt).fill(Bt):Dt(It,bt)}function Ct(It,bt){if(Nt(bt),It=Dt(It,bt<0?0:0|tt(bt)),!St.TYPED_ARRAY_SUPPORT)for(var Bt=0;Bt<bt;++Bt)It[Bt]=0;return It}function Lt(It,bt,Bt){if(typeof Bt=="string"&&Bt!==""||(Bt="utf8"),!St.isEncoding(Bt))throw new TypeError('"encoding" must be a valid string encoding');var ie=0|rt(bt,Bt);It=Dt(It,ie);var Wt=It.write(bt,Bt);return Wt!==ie&&(It=It.slice(0,Wt)),It}function Ft(It,bt){var Bt=bt.length<0?0:0|tt(bt.length);It=Dt(It,Bt);for(var ie=0;ie<Bt;ie+=1)It[ie]=255&bt[ie];return It}function vt(It,bt,Bt,ie){if(bt.byteLength,Bt<0||bt.byteLength<Bt)throw new RangeError("'offset' is out of bounds");if(bt.byteLength<Bt+(ie||0))throw new RangeError("'length' is out of bounds");return bt=Bt===void 0&&ie===void 0?new Uint8Array(bt):ie===void 0?new Uint8Array(bt,Bt):new Uint8Array(bt,Bt,ie),St.TYPED_ARRAY_SUPPORT?(It=bt,It.__proto__=St.prototype):It=Ft(It,bt),It}function et(It,bt){if(St.isBuffer(bt)){var Bt=0|tt(bt.length);return It=Dt(It,Bt),It.length===0||bt.copy(It,0,0,Bt),It}if(bt){if(typeof ArrayBuffer!="undefined"&&bt.buffer instanceof ArrayBuffer||"length"in bt)return typeof bt.length!="number"||oe(bt.length)?Dt(It,0):Ft(It,bt);if(bt.type==="Buffer"&&Qt(bt.data))return Ft(It,bt.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function tt(It){if(It>=Rt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rt().toString(16)+" bytes");return 0|It}function st(It){return+It!=It&&(It=0),St.alloc(+It)}function rt(It,bt){if(St.isBuffer(It))return It.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(It)||It instanceof ArrayBuffer))return It.byteLength;typeof It!="string"&&(It=""+It);var Bt=It.length;if(Bt===0)return 0;for(var ie=!1;;)switch(bt){case"ascii":case"latin1":case"binary":return Bt;case"utf8":case"utf-8":case void 0:return Le(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Bt;case"hex":return Bt>>>1;case"base64":return Fe(It).length;default:if(ie)return Le(It).length;bt=(""+bt).toLowerCase(),ie=!0}}function ut(It,bt,Bt){var ie=!1;if((bt===void 0||bt<0)&&(bt=0),bt>this.length||((Bt===void 0||Bt>this.length)&&(Bt=this.length),Bt<=0)||(Bt>>>=0,bt>>>=0,Bt<=bt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ve(this,bt,Bt);case"utf8":case"utf-8":return ce(this,bt,Bt);case"ascii":return Pe(this,bt,Bt);case"latin1":case"binary":return De(this,bt,Bt);case"base64":return Xt(this,bt,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,bt,Bt);default:if(ie)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),ie=!0}}function ct(It,bt,Bt){var ie=It[bt];It[bt]=It[Bt],It[Bt]=ie}function gt(It,bt,Bt,ie,Wt){if(It.length===0)return-1;if(typeof Bt=="string"?(ie=Bt,Bt=0):Bt>2147483647?Bt=2147483647:Bt<-2147483648&&(Bt=-2147483648),Bt=+Bt,isNaN(Bt)&&(Bt=Wt?0:It.length-1),Bt<0&&(Bt=It.length+Bt),Bt>=It.length){if(Wt)return-1;Bt=It.length-1}else if(Bt<0){if(!Wt)return-1;Bt=0}if(typeof bt=="string"&&(bt=St.from(bt,ie)),St.isBuffer(bt))return bt.length===0?-1:ft(It,bt,Bt,ie,Wt);if(typeof bt=="number")return bt&=255,St.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(It,bt,Bt):Uint8Array.prototype.lastIndexOf.call(It,bt,Bt):ft(It,[bt],Bt,ie,Wt);throw new TypeError("val must be string, number or Buffer")}function ft(It,bt,Bt,ie,Wt){function Zt(Tn,un){return fe===1?Tn[un]:Tn.readUInt16BE(un*fe)}var fe=1,ke=It.length,tn=bt.length;if(ie!==void 0&&((ie=String(ie).toLowerCase())==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(It.length<2||bt.length<2)return-1;fe=2,ke/=2,tn/=2,Bt/=2}var dn;if(Wt){var ln=-1;for(dn=Bt;dn<ke;dn++)if(Zt(It,dn)===Zt(bt,ln===-1?0:dn-ln)){if(ln===-1&&(ln=dn),dn-ln+1===tn)return ln*fe}else ln!==-1&&(dn-=dn-ln),ln=-1}else for(Bt+tn>ke&&(Bt=ke-tn),dn=Bt;dn>=0;dn--){for(var Bn=!0,Vn=0;Vn<tn;Vn++)if(Zt(It,dn+Vn)!==Zt(bt,Vn)){Bn=!1;break}if(Bn)return dn}return-1}function kt(It,bt,Bt,ie){Bt=Number(Bt)||0;var Wt=It.length-Bt;ie?(ie=Number(ie))>Wt&&(ie=Wt):ie=Wt;var Zt=bt.length;if(Zt%2!=0)throw new TypeError("Invalid hex string");ie>Zt/2&&(ie=Zt/2);for(var fe=0;fe<ie;++fe){var ke=parseInt(bt.substr(2*fe,2),16);if(isNaN(ke))return fe;It[Bt+fe]=ke}return fe}function jt(It,bt,Bt,ie){return Ae(Le(bt,It.length-Bt),It,Bt,ie)}function Ht(It,bt,Bt,ie){return Ae(xe(bt),It,Bt,ie)}function Ot(It,bt,Bt,ie){return Ht(It,bt,Bt,ie)}function te(It,bt,Bt,ie){return Ae(Fe(bt),It,Bt,ie)}function ne(It,bt,Bt,ie){return Ae(_e(bt,It.length-Bt),It,Bt,ie)}function Xt(It,bt,Bt){return bt===0&&Bt===It.length?Mt.fromByteArray(It):Mt.fromByteArray(It.slice(bt,Bt))}function ce(It,bt,Bt){Bt=Math.min(It.length,Bt);for(var ie=[],Wt=bt;Wt<Bt;){var Zt=It[Wt],fe=null,ke=Zt>239?4:Zt>223?3:Zt>191?2:1;if(Wt+ke<=Bt){var tn,dn,ln,Bn;switch(ke){case 1:Zt<128&&(fe=Zt);break;case 2:tn=It[Wt+1],(192&tn)==128&&(Bn=(31&Zt)<<6|63&tn)>127&&(fe=Bn);break;case 3:tn=It[Wt+1],dn=It[Wt+2],(192&tn)==128&&(192&dn)==128&&(Bn=(15&Zt)<<12|(63&tn)<<6|63&dn)>2047&&(Bn<55296||Bn>57343)&&(fe=Bn);break;case 4:tn=It[Wt+1],dn=It[Wt+2],ln=It[Wt+3],(192&tn)==128&&(192&dn)==128&&(192&ln)==128&&(Bn=(15&Zt)<<18|(63&tn)<<12|(63&dn)<<6|63&ln)>65535&&Bn<1114112&&(fe=Bn)}}fe===null?(fe=65533,ke=1):fe>65535&&(fe-=65536,ie.push(fe>>>10&1023|55296),fe=56320|1023&fe),ie.push(fe),Wt+=ke}return me(ie)}function me(It){var bt=It.length;if(bt<=se)return String.fromCharCode.apply(String,It);for(var Bt="",ie=0;ie<bt;)Bt+=String.fromCharCode.apply(String,It.slice(ie,ie+=se));return Bt}function Pe(It,bt,Bt){var ie="";Bt=Math.min(It.length,Bt);for(var Wt=bt;Wt<Bt;++Wt)ie+=String.fromCharCode(127&It[Wt]);return ie}function De(It,bt,Bt){var ie="";Bt=Math.min(It.length,Bt);for(var Wt=bt;Wt<Bt;++Wt)ie+=String.fromCharCode(It[Wt]);return ie}function Ve(It,bt,Bt){var ie=It.length;(!bt||bt<0)&&(bt=0),(!Bt||Bt<0||Bt>ie)&&(Bt=ie);for(var Wt="",Zt=bt;Zt<Bt;++Zt)Wt+=Xe(It[Zt]);return Wt}function we(It,bt,Bt){for(var ie=It.slice(bt,Bt),Wt="",Zt=0;Zt<ie.length;Zt+=2)Wt+=String.fromCharCode(ie[Zt]+256*ie[Zt+1]);return Wt}function Qe(It,bt,Bt){if(It%1!=0||It<0)throw new RangeError("offset is not uint");if(It+bt>Bt)throw new RangeError("Trying to access beyond buffer length")}function ae(It,bt,Bt,ie,Wt,Zt){if(!St.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(bt>Wt||bt<Zt)throw new RangeError('"value" argument is out of bounds');if(Bt+ie>It.length)throw new RangeError("Index out of range")}function _t(It,bt,Bt,ie){bt<0&&(bt=65535+bt+1);for(var Wt=0,Zt=Math.min(It.length-Bt,2);Wt<Zt;++Wt)It[Bt+Wt]=(bt&255<<8*(ie?Wt:1-Wt))>>>8*(ie?Wt:1-Wt)}function $t(It,bt,Bt,ie){bt<0&&(bt=4294967295+bt+1);for(var Wt=0,Zt=Math.min(It.length-Bt,4);Wt<Zt;++Wt)It[Bt+Wt]=bt>>>8*(ie?Wt:3-Wt)&255}function re(It,bt,Bt,ie,Wt,Zt){if(Bt+ie>It.length)throw new RangeError("Index out of range");if(Bt<0)throw new RangeError("Index out of range")}function pe(It,bt,Bt,ie,Wt){return Wt||re(It,bt,Bt,4,34028234663852886e22,-34028234663852886e22),At.write(It,bt,Bt,ie,23,4),Bt+4}function le(It,bt,Bt,ie,Wt){return Wt||re(It,bt,Bt,8,17976931348623157e292,-17976931348623157e292),At.write(It,bt,Bt,ie,52,8),Bt+8}function Ue(It){if(It=Ne(It).replace(Kt,""),It.length<2)return"";for(;It.length%4!=0;)It+="=";return It}function Ne(It){return It.trim?It.trim():It.replace(/^\s+|\s+$/g,"")}function Xe(It){return It<16?"0"+It.toString(16):It.toString(16)}function Le(It,bt){bt=bt||1/0;for(var Bt,ie=It.length,Wt=null,Zt=[],fe=0;fe<ie;++fe){if((Bt=It.charCodeAt(fe))>55295&&Bt<57344){if(!Wt){if(Bt>56319){(bt-=3)>-1&&Zt.push(239,191,189);continue}if(fe+1===ie){(bt-=3)>-1&&Zt.push(239,191,189);continue}Wt=Bt;continue}if(Bt<56320){(bt-=3)>-1&&Zt.push(239,191,189),Wt=Bt;continue}Bt=65536+(Wt-55296<<10|Bt-56320)}else Wt&&(bt-=3)>-1&&Zt.push(239,191,189);if(Wt=null,Bt<128){if((bt-=1)<0)break;Zt.push(Bt)}else if(Bt<2048){if((bt-=2)<0)break;Zt.push(Bt>>6|192,63&Bt|128)}else if(Bt<65536){if((bt-=3)<0)break;Zt.push(Bt>>12|224,Bt>>6&63|128,63&Bt|128)}else{if(!(Bt<1114112))throw new Error("Invalid code point");if((bt-=4)<0)break;Zt.push(Bt>>18|240,Bt>>12&63|128,Bt>>6&63|128,63&Bt|128)}}return Zt}function xe(It){for(var bt=[],Bt=0;Bt<It.length;++Bt)bt.push(255&It.charCodeAt(Bt));return bt}function _e(It,bt){for(var Bt,ie,Wt,Zt=[],fe=0;fe<It.length&&!((bt-=2)<0);++fe)Bt=It.charCodeAt(fe),ie=Bt>>8,Wt=Bt%256,Zt.push(Wt),Zt.push(ie);return Zt}function Fe(It){return Mt.toByteArray(Ue(It))}function Ae(It,bt,Bt,ie){for(var Wt=0;Wt<ie&&!(Wt+Bt>=bt.length||Wt>=It.length);++Wt)bt[Wt+Bt]=It[Wt];return Wt}function oe(It){return It!==It}var Mt=qt(21),At=qt(22),Qt=qt(23);xt.Buffer=St,xt.SlowBuffer=st,xt.INSPECT_MAX_BYTES=50,St.TYPED_ARRAY_SUPPORT=Vt.TYPED_ARRAY_SUPPORT!==void 0?Vt.TYPED_ARRAY_SUPPORT:function(){try{var It=new Uint8Array(1);return It.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},It.foo()===42&&typeof It.subarray=="function"&&It.subarray(1,1).byteLength===0}catch(bt){return!1}}(),xt.kMaxLength=Rt(),St.poolSize=8192,St._augment=function(It){return It.__proto__=St.prototype,It},St.from=function(It,bt,Bt){return Et(null,It,bt,Bt)},St.TYPED_ARRAY_SUPPORT&&(St.prototype.__proto__=Uint8Array.prototype,St.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&St[Symbol.species]===St&&Object.defineProperty(St,Symbol.species,{value:null,configurable:!0})),St.alloc=function(It,bt,Bt){return Pt(null,It,bt,Bt)},St.allocUnsafe=function(It){return Ct(null,It)},St.allocUnsafeSlow=function(It){return Ct(null,It)},St.isBuffer=function(It){return!(It==null||!It._isBuffer)},St.compare=function(It,bt){if(!St.isBuffer(It)||!St.isBuffer(bt))throw new TypeError("Arguments must be Buffers");if(It===bt)return 0;for(var Bt=It.length,ie=bt.length,Wt=0,Zt=Math.min(Bt,ie);Wt<Zt;++Wt)if(It[Wt]!==bt[Wt]){Bt=It[Wt],ie=bt[Wt];break}return Bt<ie?-1:ie<Bt?1:0},St.isEncoding=function(It){switch(String(It).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},St.concat=function(It,bt){if(!Qt(It))throw new TypeError('"list" argument must be an Array of Buffers');if(It.length===0)return St.alloc(0);var Bt;if(bt===void 0)for(bt=0,Bt=0;Bt<It.length;++Bt)bt+=It[Bt].length;var ie=St.allocUnsafe(bt),Wt=0;for(Bt=0;Bt<It.length;++Bt){var Zt=It[Bt];if(!St.isBuffer(Zt))throw new TypeError('"list" argument must be an Array of Buffers');Zt.copy(ie,Wt),Wt+=Zt.length}return ie},St.byteLength=rt,St.prototype._isBuffer=!0,St.prototype.swap16=function(){var It=this.length;if(It%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var bt=0;bt<It;bt+=2)ct(this,bt,bt+1);return this},St.prototype.swap32=function(){var It=this.length;if(It%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var bt=0;bt<It;bt+=4)ct(this,bt,bt+3),ct(this,bt+1,bt+2);return this},St.prototype.swap64=function(){var It=this.length;if(It%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var bt=0;bt<It;bt+=8)ct(this,bt,bt+7),ct(this,bt+1,bt+6),ct(this,bt+2,bt+5),ct(this,bt+3,bt+4);return this},St.prototype.toString=function(){var It=0|this.length;return It===0?"":arguments.length===0?ce(this,0,It):ut.apply(this,arguments)},St.prototype.equals=function(It){if(!St.isBuffer(It))throw new TypeError("Argument must be a Buffer");return this===It||St.compare(this,It)===0},St.prototype.inspect=function(){var It="",bt=xt.INSPECT_MAX_BYTES;return this.length>0&&(It=this.toString("hex",0,bt).match(/.{2}/g).join(" "),this.length>bt&&(It+=" ... ")),"<Buffer "+It+">"},St.prototype.compare=function(It,bt,Bt,ie,Wt){if(!St.isBuffer(It))throw new TypeError("Argument must be a Buffer");if(bt===void 0&&(bt=0),Bt===void 0&&(Bt=It?It.length:0),ie===void 0&&(ie=0),Wt===void 0&&(Wt=this.length),bt<0||Bt>It.length||ie<0||Wt>this.length)throw new RangeError("out of range index");if(ie>=Wt&&bt>=Bt)return 0;if(ie>=Wt)return-1;if(bt>=Bt)return 1;if(bt>>>=0,Bt>>>=0,ie>>>=0,Wt>>>=0,this===It)return 0;for(var Zt=Wt-ie,fe=Bt-bt,ke=Math.min(Zt,fe),tn=this.slice(ie,Wt),dn=It.slice(bt,Bt),ln=0;ln<ke;++ln)if(tn[ln]!==dn[ln]){Zt=tn[ln],fe=dn[ln];break}return Zt<fe?-1:fe<Zt?1:0},St.prototype.includes=function(It,bt,Bt){return this.indexOf(It,bt,Bt)!==-1},St.prototype.indexOf=function(It,bt,Bt){return gt(this,It,bt,Bt,!0)},St.prototype.lastIndexOf=function(It,bt,Bt){return gt(this,It,bt,Bt,!1)},St.prototype.write=function(It,bt,Bt,ie){if(bt===void 0)ie="utf8",Bt=this.length,bt=0;else if(Bt===void 0&&typeof bt=="string")ie=bt,Bt=this.length,bt=0;else{if(!isFinite(bt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");bt|=0,isFinite(Bt)?(Bt|=0,ie===void 0&&(ie="utf8")):(ie=Bt,Bt=void 0)}var Wt=this.length-bt;if((Bt===void 0||Bt>Wt)&&(Bt=Wt),It.length>0&&(Bt<0||bt<0)||bt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");for(var Zt=!1;;)switch(ie){case"hex":return kt(this,It,bt,Bt);case"utf8":case"utf-8":return jt(this,It,bt,Bt);case"ascii":return Ht(this,It,bt,Bt);case"latin1":case"binary":return Ot(this,It,bt,Bt);case"base64":return te(this,It,bt,Bt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,It,bt,Bt);default:if(Zt)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),Zt=!0}},St.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var se=4096;St.prototype.slice=function(It,bt){var Bt=this.length;It=~~It,bt=bt===void 0?Bt:~~bt,It<0?(It+=Bt)<0&&(It=0):It>Bt&&(It=Bt),bt<0?(bt+=Bt)<0&&(bt=0):bt>Bt&&(bt=Bt),bt<It&&(bt=It);var ie;if(St.TYPED_ARRAY_SUPPORT)ie=this.subarray(It,bt),ie.__proto__=St.prototype;else{var Wt=bt-It;ie=new St(Wt,void 0);for(var Zt=0;Zt<Wt;++Zt)ie[Zt]=this[Zt+It]}return ie},St.prototype.readUIntLE=function(It,bt,Bt){It|=0,bt|=0,Bt||Qe(It,bt,this.length);for(var ie=this[It],Wt=1,Zt=0;++Zt<bt&&(Wt*=256);)ie+=this[It+Zt]*Wt;return ie},St.prototype.readUIntBE=function(It,bt,Bt){It|=0,bt|=0,Bt||Qe(It,bt,this.length);for(var ie=this[It+--bt],Wt=1;bt>0&&(Wt*=256);)ie+=this[It+--bt]*Wt;return ie},St.prototype.readUInt8=function(It,bt){return bt||Qe(It,1,this.length),this[It]},St.prototype.readUInt16LE=function(It,bt){return bt||Qe(It,2,this.length),this[It]|this[It+1]<<8},St.prototype.readUInt16BE=function(It,bt){return bt||Qe(It,2,this.length),this[It]<<8|this[It+1]},St.prototype.readUInt32LE=function(It,bt){return bt||Qe(It,4,this.length),(this[It]|this[It+1]<<8|this[It+2]<<16)+16777216*this[It+3]},St.prototype.readUInt32BE=function(It,bt){return bt||Qe(It,4,this.length),16777216*this[It]+(this[It+1]<<16|this[It+2]<<8|this[It+3])},St.prototype.readIntLE=function(It,bt,Bt){It|=0,bt|=0,Bt||Qe(It,bt,this.length);for(var ie=this[It],Wt=1,Zt=0;++Zt<bt&&(Wt*=256);)ie+=this[It+Zt]*Wt;return Wt*=128,ie>=Wt&&(ie-=Math.pow(2,8*bt)),ie},St.prototype.readIntBE=function(It,bt,Bt){It|=0,bt|=0,Bt||Qe(It,bt,this.length);for(var ie=bt,Wt=1,Zt=this[It+--ie];ie>0&&(Wt*=256);)Zt+=this[It+--ie]*Wt;return Wt*=128,Zt>=Wt&&(Zt-=Math.pow(2,8*bt)),Zt},St.prototype.readInt8=function(It,bt){return bt||Qe(It,1,this.length),128&this[It]?-1*(255-this[It]+1):this[It]},St.prototype.readInt16LE=function(It,bt){bt||Qe(It,2,this.length);var Bt=this[It]|this[It+1]<<8;return 32768&Bt?4294901760|Bt:Bt},St.prototype.readInt16BE=function(It,bt){bt||Qe(It,2,this.length);var Bt=this[It+1]|this[It]<<8;return 32768&Bt?4294901760|Bt:Bt},St.prototype.readInt32LE=function(It,bt){return bt||Qe(It,4,this.length),this[It]|this[It+1]<<8|this[It+2]<<16|this[It+3]<<24},St.prototype.readInt32BE=function(It,bt){return bt||Qe(It,4,this.length),this[It]<<24|this[It+1]<<16|this[It+2]<<8|this[It+3]},St.prototype.readFloatLE=function(It,bt){return bt||Qe(It,4,this.length),At.read(this,It,!0,23,4)},St.prototype.readFloatBE=function(It,bt){return bt||Qe(It,4,this.length),At.read(this,It,!1,23,4)},St.prototype.readDoubleLE=function(It,bt){return bt||Qe(It,8,this.length),At.read(this,It,!0,52,8)},St.prototype.readDoubleBE=function(It,bt){return bt||Qe(It,8,this.length),At.read(this,It,!1,52,8)},St.prototype.writeUIntLE=function(It,bt,Bt,ie){It=+It,bt|=0,Bt|=0,!ie&&ae(this,It,bt,Bt,Math.pow(2,8*Bt)-1,0);var Wt=1,Zt=0;for(this[bt]=255&It;++Zt<Bt&&(Wt*=256);)this[bt+Zt]=It/Wt&255;return bt+Bt},St.prototype.writeUIntBE=function(It,bt,Bt,ie){It=+It,bt|=0,Bt|=0,!ie&&ae(this,It,bt,Bt,Math.pow(2,8*Bt)-1,0);var Wt=Bt-1,Zt=1;for(this[bt+Wt]=255&It;--Wt>=0&&(Zt*=256);)this[bt+Wt]=It/Zt&255;return bt+Bt},St.prototype.writeUInt8=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,1,255,0),St.TYPED_ARRAY_SUPPORT||(It=Math.floor(It)),this[bt]=255&It,bt+1},St.prototype.writeUInt16LE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,2,65535,0),St.TYPED_ARRAY_SUPPORT?(this[bt]=255&It,this[bt+1]=It>>>8):_t(this,It,bt,!0),bt+2},St.prototype.writeUInt16BE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,2,65535,0),St.TYPED_ARRAY_SUPPORT?(this[bt]=It>>>8,this[bt+1]=255&It):_t(this,It,bt,!1),bt+2},St.prototype.writeUInt32LE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,4,4294967295,0),St.TYPED_ARRAY_SUPPORT?(this[bt+3]=It>>>24,this[bt+2]=It>>>16,this[bt+1]=It>>>8,this[bt]=255&It):$t(this,It,bt,!0),bt+4},St.prototype.writeUInt32BE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,4,4294967295,0),St.TYPED_ARRAY_SUPPORT?(this[bt]=It>>>24,this[bt+1]=It>>>16,this[bt+2]=It>>>8,this[bt+3]=255&It):$t(this,It,bt,!1),bt+4},St.prototype.writeIntLE=function(It,bt,Bt,ie){if(It=+It,bt|=0,!ie){var Wt=Math.pow(2,8*Bt-1);ae(this,It,bt,Bt,Wt-1,-Wt)}var Zt=0,fe=1,ke=0;for(this[bt]=255&It;++Zt<Bt&&(fe*=256);)It<0&&ke===0&&this[bt+Zt-1]!==0&&(ke=1),this[bt+Zt]=(It/fe>>0)-ke&255;return bt+Bt},St.prototype.writeIntBE=function(It,bt,Bt,ie){if(It=+It,bt|=0,!ie){var Wt=Math.pow(2,8*Bt-1);ae(this,It,bt,Bt,Wt-1,-Wt)}var Zt=Bt-1,fe=1,ke=0;for(this[bt+Zt]=255&It;--Zt>=0&&(fe*=256);)It<0&&ke===0&&this[bt+Zt+1]!==0&&(ke=1),this[bt+Zt]=(It/fe>>0)-ke&255;return bt+Bt},St.prototype.writeInt8=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,1,127,-128),St.TYPED_ARRAY_SUPPORT||(It=Math.floor(It)),It<0&&(It=255+It+1),this[bt]=255&It,bt+1},St.prototype.writeInt16LE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,2,32767,-32768),St.TYPED_ARRAY_SUPPORT?(this[bt]=255&It,this[bt+1]=It>>>8):_t(this,It,bt,!0),bt+2},St.prototype.writeInt16BE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,2,32767,-32768),St.TYPED_ARRAY_SUPPORT?(this[bt]=It>>>8,this[bt+1]=255&It):_t(this,It,bt,!1),bt+2},St.prototype.writeInt32LE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,4,2147483647,-2147483648),St.TYPED_ARRAY_SUPPORT?(this[bt]=255&It,this[bt+1]=It>>>8,this[bt+2]=It>>>16,this[bt+3]=It>>>24):$t(this,It,bt,!0),bt+4},St.prototype.writeInt32BE=function(It,bt,Bt){return It=+It,bt|=0,Bt||ae(this,It,bt,4,2147483647,-2147483648),It<0&&(It=4294967295+It+1),St.TYPED_ARRAY_SUPPORT?(this[bt]=It>>>24,this[bt+1]=It>>>16,this[bt+2]=It>>>8,this[bt+3]=255&It):$t(this,It,bt,!1),bt+4},St.prototype.writeFloatLE=function(It,bt,Bt){return pe(this,It,bt,!0,Bt)},St.prototype.writeFloatBE=function(It,bt,Bt){return pe(this,It,bt,!1,Bt)},St.prototype.writeDoubleLE=function(It,bt,Bt){return le(this,It,bt,!0,Bt)},St.prototype.writeDoubleBE=function(It,bt,Bt){return le(this,It,bt,!1,Bt)},St.prototype.copy=function(It,bt,Bt,ie){if(Bt||(Bt=0),ie||ie===0||(ie=this.length),bt>=It.length&&(bt=It.length),bt||(bt=0),ie>0&&ie<Bt&&(ie=Bt),ie===Bt||It.length===0||this.length===0)return 0;if(bt<0)throw new RangeError("targetStart out of bounds");if(Bt<0||Bt>=this.length)throw new RangeError("sourceStart out of bounds");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),It.length-bt<ie-Bt&&(ie=It.length-bt+Bt);var Wt,Zt=ie-Bt;if(this===It&&Bt<bt&&bt<ie)for(Wt=Zt-1;Wt>=0;--Wt)It[Wt+bt]=this[Wt+Bt];else if(Zt<1e3||!St.TYPED_ARRAY_SUPPORT)for(Wt=0;Wt<Zt;++Wt)It[Wt+bt]=this[Wt+Bt];else Uint8Array.prototype.set.call(It,this.subarray(Bt,Bt+Zt),bt);return Zt},St.prototype.fill=function(It,bt,Bt,ie){if(typeof It=="string"){if(typeof bt=="string"?(ie=bt,bt=0,Bt=this.length):typeof Bt=="string"&&(ie=Bt,Bt=this.length),It.length===1){var Wt=It.charCodeAt(0);Wt<256&&(It=Wt)}if(ie!==void 0&&typeof ie!="string")throw new TypeError("encoding must be a string");if(typeof ie=="string"&&!St.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie)}else typeof It=="number"&&(It&=255);if(bt<0||this.length<bt||this.length<Bt)throw new RangeError("Out of range index");if(Bt<=bt)return this;bt>>>=0,Bt=Bt===void 0?this.length:Bt>>>0,It||(It=0);var Zt;if(typeof It=="number")for(Zt=bt;Zt<Bt;++Zt)this[Zt]=It;else{var fe=St.isBuffer(It)?It:Le(new St(It,ie).toString()),ke=fe.length;for(Zt=0;Zt<Bt-bt;++Zt)this[Zt+bt]=fe[Zt%ke]}return this};var Kt=/[^+\/0-9A-Za-z-_]/g}).call(xt,qt(20))},function(Jt,xt){var qt;qt=function(){return this}();try{qt=qt||Function("return this")()||(0,eval)("this")}catch(Vt){typeof window=="object"&&(qt=window)}Jt.exports=qt},function(Jt,xt,qt){"use strict";function Vt(tt){var st=tt.length;if(st%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return tt[st-2]==="="?2:tt[st-1]==="="?1:0}function Rt(tt){return 3*tt.length/4-Vt(tt)}function Dt(tt){var st,rt,ut,ct,gt,ft=tt.length;ct=Vt(tt),gt=new Lt(3*ft/4-ct),rt=ct>0?ft-4:ft;var kt=0;for(st=0;st<rt;st+=4)ut=Ct[tt.charCodeAt(st)]<<18|Ct[tt.charCodeAt(st+1)]<<12|Ct[tt.charCodeAt(st+2)]<<6|Ct[tt.charCodeAt(st+3)],gt[kt++]=ut>>16&255,gt[kt++]=ut>>8&255,gt[kt++]=255&ut;return ct===2?(ut=Ct[tt.charCodeAt(st)]<<2|Ct[tt.charCodeAt(st+1)]>>4,gt[kt++]=255&ut):ct===1&&(ut=Ct[tt.charCodeAt(st)]<<10|Ct[tt.charCodeAt(st+1)]<<4|Ct[tt.charCodeAt(st+2)]>>2,gt[kt++]=ut>>8&255,gt[kt++]=255&ut),gt}function St(tt){return Pt[tt>>18&63]+Pt[tt>>12&63]+Pt[tt>>6&63]+Pt[63&tt]}function Et(tt,st,rt){for(var ut,ct=[],gt=st;gt<rt;gt+=3)ut=(tt[gt]<<16)+(tt[gt+1]<<8)+tt[gt+2],ct.push(St(ut));return ct.join("")}function Nt(tt){for(var st,rt=tt.length,ut=rt%3,ct="",gt=[],ft=0,kt=rt-ut;ft<kt;ft+=16383)gt.push(Et(tt,ft,ft+16383>kt?kt:ft+16383));return ut===1?(st=tt[rt-1],ct+=Pt[st>>2],ct+=Pt[st<<4&63],ct+="=="):ut===2&&(st=(tt[rt-2]<<8)+tt[rt-1],ct+=Pt[st>>10],ct+=Pt[st>>4&63],ct+=Pt[st<<2&63],ct+="="),gt.push(ct),gt.join("")}xt.byteLength=Rt,xt.toByteArray=Dt,xt.fromByteArray=Nt;for(var Pt=[],Ct=[],Lt=typeof Uint8Array!="undefined"?Uint8Array:Array,Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vt=0,et=Ft.length;vt<et;++vt)Pt[vt]=Ft[vt],Ct[Ft.charCodeAt(vt)]=vt;Ct[45]=62,Ct[95]=63},function(Jt,xt){xt.read=function(qt,Vt,Rt,Dt,St){var Et,Nt,Pt=8*St-Dt-1,Ct=(1<<Pt)-1,Lt=Ct>>1,Ft=-7,vt=Rt?St-1:0,et=Rt?-1:1,tt=qt[Vt+vt];for(vt+=et,Et=tt&(1<<-Ft)-1,tt>>=-Ft,Ft+=Pt;Ft>0;Et=256*Et+qt[Vt+vt],vt+=et,Ft-=8);for(Nt=Et&(1<<-Ft)-1,Et>>=-Ft,Ft+=Dt;Ft>0;Nt=256*Nt+qt[Vt+vt],vt+=et,Ft-=8);if(Et===0)Et=1-Lt;else{if(Et===Ct)return Nt?NaN:1/0*(tt?-1:1);Nt+=Math.pow(2,Dt),Et-=Lt}return(tt?-1:1)*Nt*Math.pow(2,Et-Dt)},xt.write=function(qt,Vt,Rt,Dt,St,Et){var Nt,Pt,Ct,Lt=8*Et-St-1,Ft=(1<<Lt)-1,vt=Ft>>1,et=St===23?Math.pow(2,-24)-Math.pow(2,-77):0,tt=Dt?0:Et-1,st=Dt?1:-1,rt=Vt<0||Vt===0&&1/Vt<0?1:0;for(Vt=Math.abs(Vt),isNaN(Vt)||Vt===1/0?(Pt=isNaN(Vt)?1:0,Nt=Ft):(Nt=Math.floor(Math.log(Vt)/Math.LN2),Vt*(Ct=Math.pow(2,-Nt))<1&&(Nt--,Ct*=2),Vt+=Nt+vt>=1?et/Ct:et*Math.pow(2,1-vt),Vt*Ct>=2&&(Nt++,Ct/=2),Nt+vt>=Ft?(Pt=0,Nt=Ft):Nt+vt>=1?(Pt=(Vt*Ct-1)*Math.pow(2,St),Nt+=vt):(Pt=Vt*Math.pow(2,vt-1)*Math.pow(2,St),Nt=0));St>=8;qt[Rt+tt]=255&Pt,tt+=st,Pt/=256,St-=8);for(Nt=Nt<<St|Pt,Lt+=St;Lt>0;qt[Rt+tt]=255&Nt,tt+=st,Nt/=256,Lt-=8);qt[Rt+tt-st]|=128*rt}},function(Jt,xt){var qt={}.toString;Jt.exports=Array.isArray||function(Vt){return qt.call(Vt)=="[object Array]"}},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"set",value:function(Et,Nt){try{window.localStorage&&localStorage.setItem(Et,Nt)}catch(Pt){window[Et+"_localStorage"]=Nt}}},{key:"get",value:function(Et){try{if(window.localStorage)return localStorage.getItem(Et)}catch(Nt){return window[Et+"_localStorage"]}return""}},{key:"remove",value:function(Et){try{window.localStorage&&localStorage.removeItem(Et)}catch(Nt){delete window[Et+"_localStorage"]}}}]),St}();xt.default=Dt},function(Jt,xt,qt){"use strict";function Vt(St,Et){if(!(St instanceof Et))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function St(Et,Nt){for(var Pt=0;Pt<Nt.length;Pt++){var Ct=Nt[Pt];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Et,Ct.key,Ct)}}return function(Et,Nt,Pt){return Nt&&St(Et.prototype,Nt),Pt&&St(Et,Pt),Et}}(),Dt=function(){function St(){Vt(this,St)}return Rt(St,null,[{key:"get",value:function(Et){for(var Nt=Et+"",Pt=document.cookie.split(";"),Ct=0;Ct<Pt.length;Ct++){var Lt=Pt[Ct].trim();if(Lt.indexOf(Nt)==0)return unescape(Lt.substring(Nt.length+1,Lt.length))}return""}},{key:"set",value:function(Et,Nt,Pt){var Ct=new Date;Ct.setTime(Ct.getTime()+24*Pt*60*60*1e3);var Lt="expires="+Ct.toGMTString();document.cookie=Et+"="+escape(Nt)+"; "+Lt}}]),St}();xt.default=Dt},function(Jt,xt,qt){"use strict";function Vt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function Rt(Lt,Ft){if(!(Lt instanceof Ft))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function Lt(Ft,vt){for(var et=0;et<vt.length;et++){var tt=vt[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(Ft,tt.key,tt)}}return function(Ft,vt,et){return vt&&Lt(Ft.prototype,vt),et&&Lt(Ft,et),Ft}}(),St=qt(8),Et=Vt(St),Nt=qt(9),Pt=Vt(Nt),Ct=function(){function Lt(){Rt(this,Lt)}return Dt(Lt,null,[{key:"refreshUploadAuth",value:function(Ft,vt,et){var tt=(Pt.default.randomUUID(),Pt.default.randomUUID()),st={AccessKeyId:Ft.accessKeyId,SecurityToken:Ft.securityToken,Action:"RefreshUploadVideo",VideoId:Ft.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Ft.requestId},rt=Pt.default.makeUTF8sort(st,"=","&")+"&Signature="+Pt.default.aliyunEncodeURI(Pt.default.makeChangeSiga(st,Ft.accessKeySecret)),ut="https://vod."+Ft.region+".aliyuncs.com/?"+rt;Et.default.get(ut,function(gt){var gt=JSON.parse(gt);vt&&vt(gt)},function(ct){if(et){var gt=JSON.parse(ct);et(gt)}})}},{key:"getUploadAuth",value:function(Ft,vt,et){var tt=(Pt.default.randomUUID(),Pt.default.randomUUID()),st={AccessKeyId:Ft.accessKeyId,SecurityToken:Ft.securityToken,Action:"CreateUploadVideo",Title:Ft.title,FileName:Ft.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Ft.requestId};Ft.fileSize&&(st.FileSize=Ft.fileSize),Ft.description&&(st.Description=Ft.description),Ft.cateId&&(st.CateId=Ft.cateId),Ft.tags&&(st.Tags=Ft.tags),Ft.templateGroupId&&(st.TemplateGroupId=Ft.templateGroupId),Ft.storageLocation&&(st.StorageLocation=Ft.storageLocation),Ft.coverUrl&&(st.CoverURL=Ft.coverUrl),Ft.transCodeMode&&(st.TransCodeMode=Ft.transCodeMode),Ft.userData&&(st.UserData=JSON.stringify(Ft.userData));var rt=Pt.default.makeUTF8sort(st,"=","&")+"&Signature="+Pt.default.aliyunEncodeURI(Pt.default.makeChangeSiga(st,Ft.accessKeySecret)),ut="https://vod."+Ft.region+".aliyuncs.com/?"+rt;Et.default.get(ut,function(ct){try{ct=JSON.parse(ct)}catch(gt){if(et)return void et({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}vt&&vt(ct)},function(ct){if(et){var gt={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{gt=JSON.parse(ct)}catch(ft){}et(gt)}})}},{key:"getImageUploadAuth",value:function(Ft,vt,et){var tt=(Pt.default.randomUUID(),Pt.default.randomUUID()),st={AccessKeyId:Ft.accessKeyId,SecurityToken:Ft.securityToken,Action:"CreateUploadImage",ImageType:Ft.imageType?Ft.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:Ft.requestId};Ft.title&&(st.Title=Ft.title),Ft.imageExt&&(st.ImageExt=Ft.imageExt),Ft.tags&&(st.Tags=Ft.tags),Ft.storageLocation&&(st.StorageLocation=Ft.storageLocation);var rt=Pt.default.makeUTF8sort(st,"=","&")+"&Signature="+Pt.default.aliyunEncodeURI(Pt.default.makeChangeSiga(st,Ft.accessKeySecret)),ut="https://vod."+Ft.region+".aliyuncs.com/?"+rt;Et.default.get(ut,function(ct){ct=JSON.parse(ct),vt&&vt(ct)},function(ct){if(et){var gt=JSON.parse(ct);et(gt)}})}}]),Lt}();xt.default=Ct},function(Jt,xt,qt){(function(Vt,Rt,Dt){Jt.exports=xt=Rt(qt(0),qt(28),qt(29))})(0,function(Vt){return Vt.HmacSHA1})},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return function(){var Rt=Vt,Dt=Rt.lib,St=Dt.WordArray,Et=Dt.Hasher,Nt=Rt.algo,Pt=[],Ct=Nt.SHA1=Et.extend({_doReset:function(){this._hash=new St.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Lt,Ft){for(var vt=this._hash.words,et=vt[0],tt=vt[1],st=vt[2],rt=vt[3],ut=vt[4],ct=0;ct<80;ct++){if(ct<16)Pt[ct]=0|Lt[Ft+ct];else{var gt=Pt[ct-3]^Pt[ct-8]^Pt[ct-14]^Pt[ct-16];Pt[ct]=gt<<1|gt>>>31}var ft=(et<<5|et>>>27)+ut+Pt[ct];ft+=ct<20?1518500249+(tt&st|~tt&rt):ct<40?1859775393+(tt^st^rt):ct<60?(tt&st|tt&rt|st&rt)-1894007588:(tt^st^rt)-899497514,ut=rt,rt=st,st=tt<<30|tt>>>2,tt=et,et=ft}vt[0]=vt[0]+et|0,vt[1]=vt[1]+tt|0,vt[2]=vt[2]+st|0,vt[3]=vt[3]+rt|0,vt[4]=vt[4]+ut|0},_doFinalize:function(){var Lt=this._data,Ft=Lt.words,vt=8*this._nDataBytes,et=8*Lt.sigBytes;return Ft[et>>>5]|=128<<24-et%32,Ft[14+(et+64>>>9<<4)]=Math.floor(vt/4294967296),Ft[15+(et+64>>>9<<4)]=vt,Lt.sigBytes=4*Ft.length,this._process(),this._hash},clone:function(){var Lt=Et.clone.call(this);return Lt._hash=this._hash.clone(),Lt}});Rt.SHA1=Et._createHelper(Ct),Rt.HmacSHA1=Et._createHmacHelper(Ct)}(),Vt.SHA1})},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){(function(){var Rt=Vt,Dt=Rt.lib,St=Dt.Base,Et=Rt.enc,Nt=Et.Utf8,Pt=Rt.algo;Pt.HMAC=St.extend({init:function(Ct,Lt){Ct=this._hasher=new Ct.init,typeof Lt=="string"&&(Lt=Nt.parse(Lt));var Ft=Ct.blockSize,vt=4*Ft;Lt.sigBytes>vt&&(Lt=Ct.finalize(Lt)),Lt.clamp();for(var et=this._oKey=Lt.clone(),tt=this._iKey=Lt.clone(),st=et.words,rt=tt.words,ut=0;ut<Ft;ut++)st[ut]^=1549556828,rt[ut]^=909522486;et.sigBytes=tt.sigBytes=vt,this.reset()},reset:function(){var Ct=this._hasher;Ct.reset(),Ct.update(this._iKey)},update:function(Ct){return this._hasher.update(Ct),this},finalize:function(Ct){var Lt=this._hasher,Ft=Lt.finalize(Ct);return Lt.reset(),Lt.finalize(this._oKey.clone().concat(Ft))}})})()})},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return function(){function Rt(Pt,Ct,Lt){for(var Ft=[],vt=0,et=0;et<Ct;et++)if(et%4){var tt=Lt[Pt.charCodeAt(et-1)]<<et%4*2,st=Lt[Pt.charCodeAt(et)]>>>6-et%4*2;Ft[vt>>>2]|=(tt|st)<<24-vt%4*8,vt++}return Et.create(Ft,vt)}var Dt=Vt,St=Dt.lib,Et=St.WordArray,Nt=Dt.enc;Nt.Base64={stringify:function(Pt){var Ct=Pt.words,Lt=Pt.sigBytes,Ft=this._map;Pt.clamp();for(var vt=[],et=0;et<Lt;et+=3)for(var tt=Ct[et>>>2]>>>24-et%4*8&255,st=Ct[et+1>>>2]>>>24-(et+1)%4*8&255,rt=Ct[et+2>>>2]>>>24-(et+2)%4*8&255,ut=tt<<16|st<<8|rt,ct=0;ct<4&&et+.75*ct<Lt;ct++)vt.push(Ft.charAt(ut>>>6*(3-ct)&63));var gt=Ft.charAt(64);if(gt)for(;vt.length%4;)vt.push(gt);return vt.join("")},parse:function(Pt){var Ct=Pt.length,Lt=this._map,Ft=this._reverseMap;if(!Ft){Ft=this._reverseMap=[];for(var vt=0;vt<Lt.length;vt++)Ft[Lt.charCodeAt(vt)]=vt}var et=Lt.charAt(64);if(et){var tt=Pt.indexOf(et);tt!==-1&&(Ct=tt)}return Rt(Pt,Ct,Ft)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),Vt.enc.Base64})},function(Jt,xt,qt){"use strict";function Vt(kt){return kt&&kt.__esModule?kt:{default:kt}}function Rt(kt,jt){if(!(kt instanceof jt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Dt=function(){function kt(jt,Ht){for(var Ot=0;Ot<Ht.length;Ot++){var te=Ht[Ot];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(jt,te.key,te)}}return function(jt,Ht,Ot){return Ht&&kt(jt.prototype,Ht),Ot&&kt(jt,Ot),jt}}(),St=qt(8),Et=Vt(St),Nt=qt(7),Pt=Vt(Nt),Ct=qt(4),Lt=Vt(Ct),Ft=qt(6),vt=Vt(Ft),et=qt(1),tt=Vt(et),st=qt(9),rt=Vt(st),ut=qt(2),ct=qt(11),gt=qt(10),ft=function(){function kt(){Rt(this,kt)}return Dt(kt,null,[{key:"getAuthInfo",value:function(jt,Ht,Ot){var te=jt+"|f#Ylm&^1TppeRhLg|"+Ot;return Ht&&(te=jt+"|"+Ht+"|f#Ylm&^1TppeRhLg|"+Ot),ut(gt.parse(te)).toString(ct)}},{key:"upload",value:function(jt,Ht,Ot){var te=tt.default.ISODateString(new Date),ne=Math.floor(new Date().valueOf()/1e3),Xt=Lt.default.getClientId();Xt=Lt.default.setClientId(Xt);var ce=kt.getAuthInfo(jt.userId,Xt,ne),me=rt.default.randomUUID(),Pe={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:Pt.default.browser.name+(Pt.default.browser.version||""),AppVersion:vt.default.version,AuthTimestamp:ne,Timestamp:te,AuthInfo:ce,FileName:jt.file.name,FileSize:jt.file.size,FileCreateTime:jt.file.lastModified,FileHash:jt.fileHash,UploadId:jt.checkpoint.checkpoint.uploadId,PartSize:jt.checkpoint.checkpoint.partSize,DonePartsCount:jt.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(jt.checkpoint),UploadRatio:jt.checkpoint.loaded,UserId:jt.userId,VideoId:jt.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:me};Xt&&(Pe.ClientId=Xt);var De=rt.default.makeUTF8sort(Pe,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(Pe,jt.accessKeySecret)),Ve="https://vod."+jt.region+".aliyuncs.com/?"+De;Et.default.get(Ve,function(we){Ht&&Ht()},function(we){we&&(Ot(we),console.log(we))})}},{key:"get",value:function(jt,Ht,Ot){var te=tt.default.ISODateString(new Date),ne=Math.floor(new Date().valueOf()/1e3),Xt=Lt.default.getClientId(),ce=kt.getAuthInfo(jt.userId,Xt,ne),me=rt.default.randomUUID(),Pe={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:Pt.default.browser.name+(Pt.default.browser.version||""),AppVersion:vt.default.version,AuthTimestamp:ne,Timestamp:te,AuthInfo:ce,UserId:jt.userId,UploadInfoList:JSON.stringify(jt.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:me};Xt&&(Pe.ClientId=Xt);var De=rt.default.makeUTF8sort(Pe,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(Pe,jt.accessKeySecret)),Ve="https://vod."+jt.region+".aliyuncs.com/?"+De;Et.default.get(Ve,function(we){var Qe={},ae=Xt;we=we?JSON.parse(we):{},we.UploadProgress&&we.UploadProgress.UploadProgressList&&we.UploadProgress.UploadProgressList.length>0&&(Qe=we.UploadProgress.UploadProgressList[0],ae=Qe.ClientId),Lt.default.setClientId(ae),Ht&&Ht(Qe)},function(we){we&&(Ot(we),console.log(we))})}}]),kt}();xt.default=ft},function(Jt,xt,qt){"use strict";function Vt(Nt,Pt){if(!(Nt instanceof Pt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(xt,"__esModule",{value:!0});var Rt=function(){function Nt(Pt,Ct){for(var Lt=0;Lt<Ct.length;Lt++){var Ft=Ct[Lt];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Pt,Ft.key,Ft)}}return function(Pt,Ct,Lt){return Ct&&Nt(Pt.prototype,Ct),Lt&&Nt(Pt,Lt),Pt}}(),Dt=qt(2),St=qt(33),Et=(qt(11),function(){function Nt(){Vt(this,Nt)}return Rt(Nt,null,[{key:"getMd5",value:function(Pt,Ct,Lt){var Ft=new FileReader;Ft.onload=function(tt){try{if(tt&&tt.target){var st=Dt(St.parse(tt.target.result)),rt=st.toString();Ct(rt)}}catch(ut){console.log(ut)}},Ft.onerror=function(tt){console.log(tt),errorCallback(tt)};var vt=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,et=vt.call(Pt,0,1024);Ft.readAsBinaryString(et)}}]),Nt}());xt.default=Et},function(Jt,xt,qt){(function(Vt,Rt){Jt.exports=xt=Rt(qt(0))})(0,function(Vt){return Vt.enc.Latin1})}])},88386:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){Jt.defineOption("placeholder","",function(Et,Nt,Pt){var Ct=Pt&&Pt!=Jt.Init;if(Nt&&!Ct)Et.on("blur",Rt),Et.on("change",Dt),Et.on("swapDoc",Dt),Jt.on(Et.getInputField(),"compositionupdate",Et.state.placeholderCompose=function(){Vt(Et)}),Dt(Et);else if(!Nt&&Ct){Et.off("blur",Rt),Et.off("change",Dt),Et.off("swapDoc",Dt),Jt.off(Et.getInputField(),"compositionupdate",Et.state.placeholderCompose),xt(Et);var Lt=Et.getWrapperElement();Lt.className=Lt.className.replace(" CodeMirror-empty","")}Nt&&!Et.hasFocus()&&Rt(Et)});function xt(Et){Et.state.placeholder&&(Et.state.placeholder.parentNode.removeChild(Et.state.placeholder),Et.state.placeholder=null)}function qt(Et){xt(Et);var Nt=Et.state.placeholder=document.createElement("pre");Nt.style.cssText="height: 0; overflow: visible",Nt.style.direction=Et.getOption("direction"),Nt.className="CodeMirror-placeholder CodeMirror-line-like";var Pt=Et.getOption("placeholder");typeof Pt=="string"&&(Pt=document.createTextNode(Pt)),Nt.appendChild(Pt),Et.display.lineSpace.insertBefore(Nt,Et.display.lineSpace.firstChild)}function Vt(Et){setTimeout(function(){var Nt=!1,Pt=Et.getInputField();Pt.nodeName=="TEXTAREA"?Nt=!Pt.value:Et.lineCount()==1&&(Nt=!/[^\u200b]/.test(Pt.querySelector(".CodeMirror-line").textContent)),Nt?qt(Et):xt(Et)},20)}function Rt(Et){St(Et)&&qt(Et)}function Dt(Et){var Nt=Et.getWrapperElement(),Pt=St(Et);Nt.className=Nt.className.replace(" CodeMirror-empty","")+(Pt?" CodeMirror-empty":""),Pt?qt(Et):xt(Et)}function St(Et){return Et.lineCount()===1&&Et.getLine(0)===""}})},82801:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){var xt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},qt=Jt.Pos;Jt.defineOption("autoCloseBrackets",!1,function(et,tt,st){st&&st!=Jt.Init&&(et.removeKeyMap(Rt),et.state.closeBrackets=null),tt&&(Dt(Vt(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(Rt))});function Vt(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:xt[tt]}var Rt={Backspace:Nt,Enter:Pt};function Dt(et){for(var tt=0;tt<et.length;tt++){var st=et.charAt(tt),rt="'"+st+"'";Rt[rt]||(Rt[rt]=St(st))}}Dt(xt.pairs+"`");function St(et){return function(tt){return Lt(tt,et)}}function Et(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var st=et.getModeAt(et.getCursor());return st.closeBrackets||tt}function Nt(et){var tt=Et(et);if(!tt||et.getOption("disableInput"))return Jt.Pass;for(var st=Vt(tt,"pairs"),rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Jt.Pass;var ct=Ft(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return Jt.Pass}for(var ut=rt.length-1;ut>=0;ut--){var gt=rt[ut].head;et.replaceRange("",qt(gt.line,gt.ch-1),qt(gt.line,gt.ch+1),"+delete")}}function Pt(et){var tt=Et(et),st=tt&&Vt(tt,"explode");if(!st||et.getOption("disableInput"))return Jt.Pass;for(var rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Jt.Pass;var ct=Ft(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return Jt.Pass}et.operation(function(){var gt=et.lineSeparator()||`
|
|
`;et.replaceSelection(gt+gt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var ft=0;ft<rt.length;ft++){var kt=rt[ft].head.line;et.indentLine(kt,null,!0),et.indentLine(kt+1,null,!0)}})}function Ct(et){var tt=Jt.cmpPos(et.anchor,et.head)>0;return{anchor:new qt(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new qt(et.head.line,et.head.ch+(tt?1:-1))}}function Lt(et,tt){var st=Et(et);if(!st||et.getOption("disableInput"))return Jt.Pass;var rt=Vt(st,"pairs"),ut=rt.indexOf(tt);if(ut==-1)return Jt.Pass;for(var ct=Vt(st,"closeBefore"),gt=Vt(st,"triples"),ft=rt.charAt(ut+1)==tt,kt=et.listSelections(),jt=ut%2==0,Ht,Ot=0;Ot<kt.length;Ot++){var te=kt[Ot],ne=te.head,Xt,ce=et.getRange(ne,qt(ne.line,ne.ch+1));if(jt&&!te.empty())Xt="surround";else if((ft||!jt)&&ce==tt)ft&&vt(et,ne)?Xt="both":gt.indexOf(tt)>=0&&et.getRange(ne,qt(ne.line,ne.ch+3))==tt+tt+tt?Xt="skipThree":Xt="skip";else if(ft&&ne.ch>1&>.indexOf(tt)>=0&&et.getRange(qt(ne.line,ne.ch-2),ne)==tt+tt){if(ne.ch>2&&/\bstring/.test(et.getTokenTypeAt(qt(ne.line,ne.ch-2))))return Jt.Pass;Xt="addFour"}else if(ft){var me=ne.ch==0?" ":et.getRange(qt(ne.line,ne.ch-1),ne);if(!Jt.isWordChar(ce)&&me!=tt&&!Jt.isWordChar(me))Xt="both";else return Jt.Pass}else if(jt&&(ce.length===0||/\s/.test(ce)||ct.indexOf(ce)>-1))Xt="both";else return Jt.Pass;if(!Ht)Ht=Xt;else if(Ht!=Xt)return Jt.Pass}var Pe=ut%2?rt.charAt(ut-1):tt,De=ut%2?tt:rt.charAt(ut+1);et.operation(function(){if(Ht=="skip")et.execCommand("goCharRight");else if(Ht=="skipThree")for(var Ve=0;Ve<3;Ve++)et.execCommand("goCharRight");else if(Ht=="surround"){for(var we=et.getSelections(),Ve=0;Ve<we.length;Ve++)we[Ve]=Pe+we[Ve]+De;et.replaceSelections(we,"around"),we=et.listSelections().slice();for(var Ve=0;Ve<we.length;Ve++)we[Ve]=Ct(we[Ve]);et.setSelections(we)}else Ht=="both"?(et.replaceSelection(Pe+De,null),et.triggerElectric(Pe+De),et.execCommand("goCharLeft")):Ht=="addFour"&&(et.replaceSelection(Pe+Pe+Pe+Pe,"before"),et.execCommand("goCharRight"))})}function Ft(et,tt){var st=et.getRange(qt(tt.line,tt.ch-1),qt(tt.line,tt.ch+1));return st.length==2?st:null}function vt(et,tt){var st=et.getTokenAt(qt(tt.line,tt.ch+1));return/\bstring/.test(st.type)&&st.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},57341:function(An,jn,he){(function(Jt){Jt(he(4631),he(4786))})(function(Jt){Jt.defineOption("autoCloseTags",!1,function(Nt,Pt,Ct){if(Ct!=Jt.Init&&Ct&&Nt.removeKeyMap("autoCloseTags"),!!Pt){var Lt={name:"autoCloseTags"};(typeof Pt!="object"||Pt.whenClosing!==!1)&&(Lt["'/'"]=function(Ft){return Dt(Ft)}),(typeof Pt!="object"||Pt.whenOpening!==!1)&&(Lt["'>'"]=function(Ft){return Vt(Ft)}),Nt.addKeyMap(Lt)}});var xt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],qt=["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 Vt(Nt){if(Nt.getOption("disableInput"))return Jt.Pass;for(var Pt=Nt.listSelections(),Ct=[],Lt=Nt.getOption("autoCloseTags"),Ft=0;Ft<Pt.length;Ft++){if(!Pt[Ft].empty())return Jt.Pass;var vt=Pt[Ft].head,et=Nt.getTokenAt(vt),tt=Jt.innerMode(Nt.getMode(),et.state),st=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(st),ut=rt&&rt.name;if(!ut)return Jt.Pass;var ct=tt.mode.configuration=="html",gt=typeof Lt=="object"&&Lt.dontCloseTags||ct&&xt,ft=typeof Lt=="object"&&Lt.indentTags||ct&&qt;et.end>vt.ch&&(ut=ut.slice(0,ut.length-et.end+vt.ch));var kt=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=vt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==vt.ch-et.start-1||gt&&St(gt,kt)>-1||Et(Nt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(st)||[],ut,vt,!0))return Jt.Pass;var jt=typeof Lt=="object"&&Lt.emptyTags;if(jt&&St(jt,ut)>-1){Ct[Ft]={text:"/>",newPos:Jt.Pos(vt.line,vt.ch+2)};continue}var Ht=ft&&St(ft,kt)>-1;Ct[Ft]={indent:Ht,text:">"+(Ht?`
|
|
|
|
`:"")+"</"+ut+">",newPos:Ht?Jt.Pos(vt.line+1,0):Jt.Pos(vt.line,vt.ch+1)}}for(var Ot=typeof Lt=="object"&&Lt.dontIndentOnAutoClose,Ft=Pt.length-1;Ft>=0;Ft--){var te=Ct[Ft];Nt.replaceRange(te.text,Pt[Ft].head,Pt[Ft].anchor,"+insert");var ne=Nt.listSelections().slice(0);ne[Ft]={head:te.newPos,anchor:te.newPos},Nt.setSelections(ne),!Ot&&te.indent&&(Nt.indentLine(te.newPos.line,null,!0),Nt.indentLine(te.newPos.line+1,null,!0))}}function Rt(Nt,Pt){for(var Ct=Nt.listSelections(),Lt=[],Ft=Pt?"/":"</",vt=Nt.getOption("autoCloseTags"),et=typeof vt=="object"&&vt.dontIndentOnSlash,tt=0;tt<Ct.length;tt++){if(!Ct[tt].empty())return Jt.Pass;var st=Ct[tt].head,rt=Nt.getTokenAt(st),ut=Jt.innerMode(Nt.getMode(),rt.state),ct=ut.state;if(Pt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=st.ch-1))return Jt.Pass;var gt,ft=ut.mode.name!="xml"&&Nt.getMode().name=="htmlmixed";if(ft&&ut.mode.name=="javascript")gt=Ft+"script";else if(ft&&ut.mode.name=="css")gt=Ft+"style";else{var kt=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(ct);if(!kt||kt.length&&Et(Nt,kt,kt[kt.length-1],st))return Jt.Pass;gt=Ft+kt[kt.length-1]}Nt.getLine(st.line).charAt(rt.end)!=">"&&(gt+=">"),Lt[tt]=gt}if(Nt.replaceSelections(Lt),Ct=Nt.listSelections(),!et)for(var tt=0;tt<Ct.length;tt++)(tt==Ct.length-1||Ct[tt].head.line<Ct[tt+1].head.line)&&Nt.indentLine(Ct[tt].head.line)}function Dt(Nt){return Nt.getOption("disableInput")?Jt.Pass:Rt(Nt,!0)}Jt.commands.closeTag=function(Nt){return Rt(Nt)};function St(Nt,Pt){if(Nt.indexOf)return Nt.indexOf(Pt);for(var Ct=0,Lt=Nt.length;Ct<Lt;++Ct)if(Nt[Ct]==Pt)return Ct;return-1}function Et(Nt,Pt,Ct,Lt,Ft){if(!Jt.scanForClosingTag)return!1;var vt=Math.min(Nt.lastLine()+1,Lt.line+500),et=Jt.scanForClosingTag(Nt,Lt,null,vt);if(!et||et.tag!=Ct)return!1;for(var tt=Ft?1:0,st=Pt.length-1;st>=0&&Pt[st]==Ct;st--)++tt;Lt=et.to;for(var st=1;st<tt;st++){var rt=Jt.scanForClosingTag(Nt,Lt,null,vt);if(!rt||rt.tag!=Ct)return!1;Lt=rt.to}return!0}})},4786:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){"use strict";var xt=Jt.Pos;function qt(st,rt){return st.line-rt.line||st.ch-rt.ch}var Vt="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",Rt=Vt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Dt=new RegExp("<(/?)(["+Vt+"]["+Rt+"]*)","g");function St(st,rt,ut,ct){this.line=rt,this.ch=ut,this.cm=st,this.text=st.getLine(rt),this.min=ct?Math.max(ct.from,st.firstLine()):st.firstLine(),this.max=ct?Math.min(ct.to-1,st.lastLine()):st.lastLine()}function Et(st,rt){var ut=st.cm.getTokenTypeAt(xt(st.line,rt));return ut&&/\btag\b/.test(ut)}function Nt(st){if(!(st.line>=st.max))return st.ch=0,st.text=st.cm.getLine(++st.line),!0}function Pt(st){if(!(st.line<=st.min))return st.text=st.cm.getLine(--st.line),st.ch=st.text.length,!0}function Ct(st){for(;;){var rt=st.text.indexOf(">",st.ch);if(rt==-1){if(Nt(st))continue;return}if(!Et(st,rt+1)){st.ch=rt+1;continue}var ut=st.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(st.text.slice(ut+1,rt));return st.ch=rt+1,ct?"selfClose":"regular"}}function Lt(st){for(;;){var rt=st.ch?st.text.lastIndexOf("<",st.ch-1):-1;if(rt==-1){if(Pt(st))continue;return}if(!Et(st,rt+1)){st.ch=rt;continue}Dt.lastIndex=rt,st.ch=rt;var ut=Dt.exec(st.text);if(ut&&ut.index==rt)return ut}}function Ft(st){for(;;){Dt.lastIndex=st.ch;var rt=Dt.exec(st.text);if(!rt){if(Nt(st))continue;return}if(!Et(st,rt.index+1)){st.ch=rt.index+1;continue}return st.ch=rt.index+rt[0].length,rt}}function vt(st){for(;;){var rt=st.ch?st.text.lastIndexOf(">",st.ch-1):-1;if(rt==-1){if(Pt(st))continue;return}if(!Et(st,rt+1)){st.ch=rt;continue}var ut=st.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(st.text.slice(ut+1,rt));return st.ch=rt+1,ct?"selfClose":"regular"}}function et(st,rt){for(var ut=[];;){var ct=Ft(st),gt,ft=st.line,kt=st.ch-(ct?ct[0].length:0);if(!ct||!(gt=Ct(st)))return;if(gt!="selfClose")if(ct[1]){for(var jt=ut.length-1;jt>=0;--jt)if(ut[jt]==ct[2]){ut.length=jt;break}if(jt<0&&(!rt||rt==ct[2]))return{tag:ct[2],from:xt(ft,kt),to:xt(st.line,st.ch)}}else ut.push(ct[2])}}function tt(st,rt){for(var ut=[];;){var ct=vt(st);if(!ct)return;if(ct=="selfClose"){Lt(st);continue}var gt=st.line,ft=st.ch,kt=Lt(st);if(!kt)return;if(kt[1])ut.push(kt[2]);else{for(var jt=ut.length-1;jt>=0;--jt)if(ut[jt]==kt[2]){ut.length=jt;break}if(jt<0&&(!rt||rt==kt[2]))return{tag:kt[2],from:xt(st.line,st.ch),to:xt(gt,ft)}}}}Jt.registerHelper("fold","xml",function(st,rt){for(var ut=new St(st,rt.line,0);;){var ct=Ft(ut);if(!ct||ut.line!=rt.line)return;var gt=Ct(ut);if(!gt)return;if(!ct[1]&>!="selfClose"){var ft=xt(ut.line,ut.ch),kt=et(ut,ct[2]);return kt&&qt(kt.from,ft)>0?{from:ft,to:kt.from}:null}}}),Jt.findMatchingTag=function(st,rt,ut){var ct=new St(st,rt.line,rt.ch,ut);if(!(ct.text.indexOf(">")==-1&&ct.text.indexOf("<")==-1)){var gt=Ct(ct),ft=gt&&xt(ct.line,ct.ch),kt=gt&&Lt(ct);if(!(!gt||!kt||qt(ct,rt)>0)){var jt={from:xt(ct.line,ct.ch),to:ft,tag:kt[2]};return gt=="selfClose"?{open:jt,close:null,at:"open"}:kt[1]?{open:tt(ct,kt[2]),close:jt,at:"close"}:(ct=new St(st,ft.line,ft.ch,ut),{open:jt,close:et(ct,kt[2]),at:"open"})}}},Jt.findEnclosingTag=function(st,rt,ut,ct){for(var gt=new St(st,rt.line,rt.ch,ut);;){var ft=tt(gt,ct);if(!ft)break;var kt=new St(st,rt.line,rt.ch,ut),jt=et(kt,ft.tag);if(jt)return{open:ft,close:jt}}},Jt.scanForClosingTag=function(st,rt,ut,ct){var gt=new St(st,rt.line,rt.ch,ct?{from:0,to:ct}:null);return et(gt,ut)}})},4631:function(An){(function(jn,he){An.exports=he()})(this,function(){"use strict";var jn=navigator.userAgent,he=navigator.platform,Jt=/gecko\/\d/i.test(jn),xt=/MSIE \d/.test(jn),qt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jn),Vt=/Edge\/(\d+)/.exec(jn),Rt=xt||qt||Vt,Dt=Rt&&(xt?document.documentMode||6:+(Vt||qt)[1]),St=!Vt&&/WebKit\//.test(jn),Et=St&&/Qt\/\d+\.\d+/.test(jn),Nt=!Vt&&/Chrome\//.test(jn),Pt=/Opera\//.test(jn),Ct=/Apple Computer/.test(navigator.vendor),Lt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(jn),Ft=/PhantomJS/.test(jn),vt=!Vt&&/AppleWebKit/.test(jn)&&/Mobile\/\w+/.test(jn),et=/Android/.test(jn),tt=vt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(jn),st=vt||/Mac/.test(he),rt=/\bCrOS\b/.test(jn),ut=/win/i.test(he),ct=Pt&&jn.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(Pt=!1,St=!0);var gt=st&&(Et||Pt&&(ct==null||ct<12.11)),ft=Jt||Rt&&Dt>=9;function kt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var jt=function(it,lt){var mt=it.className,pt=kt(lt).exec(mt);if(pt){var wt=mt.slice(pt.index+pt[0].length);it.className=mt.slice(0,pt.index)+(wt?pt[1]+wt:"")}};function Ht(it){for(var lt=it.childNodes.length;lt>0;--lt)it.removeChild(it.firstChild);return it}function Ot(it,lt){return Ht(it).appendChild(lt)}function te(it,lt,mt,pt){var wt=document.createElement(it);if(mt&&(wt.className=mt),pt&&(wt.style.cssText=pt),typeof lt=="string")wt.appendChild(document.createTextNode(lt));else if(lt)for(var Yt=0;Yt<lt.length;++Yt)wt.appendChild(lt[Yt]);return wt}function ne(it,lt,mt,pt){var wt=te(it,lt,mt,pt);return wt.setAttribute("role","presentation"),wt}var Xt;document.createRange?Xt=function(it,lt,mt,pt){var wt=document.createRange();return wt.setEnd(pt||it,mt),wt.setStart(it,lt),wt}:Xt=function(it,lt,mt){var pt=document.body.createTextRange();try{pt.moveToElementText(it.parentNode)}catch(wt){return pt}return pt.collapse(!0),pt.moveEnd("character",mt),pt.moveStart("character",lt),pt};function ce(it,lt){if(lt.nodeType==3&&(lt=lt.parentNode),it.contains)return it.contains(lt);do if(lt.nodeType==11&&(lt=lt.host),lt==it)return!0;while(lt=lt.parentNode)}function me(){var it;try{it=document.activeElement}catch(lt){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function Pe(it,lt){var mt=it.className;kt(lt).test(mt)||(it.className+=(mt?" ":"")+lt)}function De(it,lt){for(var mt=it.split(" "),pt=0;pt<mt.length;pt++)mt[pt]&&!kt(mt[pt]).test(lt)&&(lt+=" "+mt[pt]);return lt}var Ve=function(it){it.select()};vt?Ve=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Rt&&(Ve=function(it){try{it.select()}catch(lt){}});function we(it){var lt=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,lt)}}function Qe(it,lt,mt){lt||(lt={});for(var pt in it)it.hasOwnProperty(pt)&&(mt!==!1||!lt.hasOwnProperty(pt))&&(lt[pt]=it[pt]);return lt}function ae(it,lt,mt,pt,wt){lt==null&&(lt=it.search(/[^\s\u00a0]/),lt==-1&&(lt=it.length));for(var Yt=pt||0,ue=wt||0;;){var Se=it.indexOf(" ",Yt);if(Se<0||Se>=lt)return ue+(lt-Yt);ue+=Se-Yt,ue+=mt-ue%mt,Yt=Se+1}}var _t=function(){this.id=null,this.f=null,this.time=0,this.handler=we(this.onTimeout,this)};_t.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},_t.prototype.set=function(it,lt){this.f=lt;var mt=+new Date+it;(!this.id||mt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=mt)};function $t(it,lt){for(var mt=0;mt<it.length;++mt)if(it[mt]==lt)return mt;return-1}var re=50,pe={toString:function(){return"CodeMirror.Pass"}},le={scroll:!1},Ue={origin:"*mouse"},Ne={origin:"+move"};function Xe(it,lt,mt){for(var pt=0,wt=0;;){var Yt=it.indexOf(" ",pt);Yt==-1&&(Yt=it.length);var ue=Yt-pt;if(Yt==it.length||wt+ue>=lt)return pt+Math.min(ue,lt-wt);if(wt+=Yt-pt,wt+=mt-wt%mt,pt=Yt+1,wt>=lt)return pt}}var Le=[""];function xe(it){for(;Le.length<=it;)Le.push(_e(Le)+" ");return Le[it]}function _e(it){return it[it.length-1]}function Fe(it,lt){for(var mt=[],pt=0;pt<it.length;pt++)mt[pt]=lt(it[pt],pt);return mt}function Ae(it,lt,mt){for(var pt=0,wt=mt(lt);pt<it.length&&mt(it[pt])<=wt;)pt++;it.splice(pt,0,lt)}function oe(){}function Mt(it,lt){var mt;return Object.create?mt=Object.create(it):(oe.prototype=it,mt=new oe),lt&&Qe(lt,mt),mt}var At=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Qt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||At.test(it))}function se(it,lt){return lt?lt.source.indexOf("\\w")>-1&&Qt(it)?!0:lt.test(it):Qt(it)}function Kt(it){for(var lt in it)if(it.hasOwnProperty(lt)&&it[lt])return!1;return!0}var It=/[\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 bt(it){return it.charCodeAt(0)>=768&&It.test(it)}function Bt(it,lt,mt){for(;(mt<0?lt>0:lt<it.length)&&bt(it.charAt(lt));)lt+=mt;return lt}function ie(it,lt,mt){for(var pt=lt>mt?-1:1;;){if(lt==mt)return lt;var wt=(lt+mt)/2,Yt=pt<0?Math.ceil(wt):Math.floor(wt);if(Yt==lt)return it(Yt)?lt:mt;it(Yt)?mt=Yt:lt=Yt+pt}}function Wt(it,lt,mt,pt){if(!it)return pt(lt,mt,"ltr",0);for(var wt=!1,Yt=0;Yt<it.length;++Yt){var ue=it[Yt];(ue.from<mt&&ue.to>lt||lt==mt&&ue.to==lt)&&(pt(Math.max(ue.from,lt),Math.min(ue.to,mt),ue.level==1?"rtl":"ltr",Yt),wt=!0)}wt||pt(lt,mt,"ltr")}var Zt=null;function fe(it,lt,mt){var pt;Zt=null;for(var wt=0;wt<it.length;++wt){var Yt=it[wt];if(Yt.from<lt&&Yt.to>lt)return wt;Yt.to==lt&&(Yt.from!=Yt.to&&mt=="before"?pt=wt:Zt=wt),Yt.from==lt&&(Yt.from!=Yt.to&&mt!="before"?pt=wt:Zt=wt)}return pt!=null?pt:Zt}var ke=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",lt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function mt(Te){return Te<=247?it.charAt(Te):1424<=Te&&Te<=1524?"R":1536<=Te&&Te<=1785?lt.charAt(Te-1536):1774<=Te&&Te<=2220?"r":8192<=Te&&Te<=8203?"w":Te==8204?"b":"L"}var pt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,wt=/[stwN]/,Yt=/[LRr]/,ue=/[Lb1n]/,Se=/[1n]/;function ve(Te,$e,Re){this.level=Te,this.from=$e,this.to=Re}return function(Te,$e){var Re=$e=="ltr"?"L":"R";if(Te.length==0||$e=="ltr"&&!pt.test(Te))return!1;for(var fn=Te.length,hn=[],Gn=0;Gn<fn;++Gn)hn.push(mt(Te.charCodeAt(Gn)));for(var Jn=0,oi=Re;Jn<fn;++Jn){var yi=hn[Jn];yi=="m"?hn[Jn]=oi:oi=yi}for(var ji=0,Ei=Re;ji<fn;++ji){var _i=hn[ji];_i=="1"&&Ei=="r"?hn[ji]="n":Yt.test(_i)&&(Ei=_i,_i=="r"&&(hn[ji]="R"))}for(var vr=1,Li=hn[0];vr<fn-1;++vr){var Fr=hn[vr];Fr=="+"&&Li=="1"&&hn[vr+1]=="1"?hn[vr]="1":Fr==","&&Li==hn[vr+1]&&(Li=="1"||Li=="n")&&(hn[vr]=Li),Li=Fr}for(var Do=0;Do<fn;++Do){var vs=hn[Do];if(vs==",")hn[Do]="N";else if(vs=="%"){var Ho=void 0;for(Ho=Do+1;Ho<fn&&hn[Ho]=="%";++Ho);for(var Sa=Do&&hn[Do-1]=="!"||Ho<fn&&hn[Ho]=="1"?"1":"N",Ys=Do;Ys<Ho;++Ys)hn[Ys]=Sa;Do=Ho-1}}for(var hs=0,Ma=Re;hs<fn;++hs){var Us=hn[hs];Ma=="L"&&Us=="1"?hn[hs]="L":Yt.test(Us)&&(Ma=Us)}for(var cs=0;cs<fn;++cs)if(wt.test(hn[cs])){var $r=void 0;for($r=cs+1;$r<fn&&wt.test(hn[$r]);++$r);for(var Xo=(cs?hn[cs-1]:Re)=="L",Es=($r<fn?hn[$r]:Re)=="L",_s=Xo==Es?Xo?"L":"R":Re,pl=cs;pl<$r;++pl)hn[pl]=_s;cs=$r-1}for(var Ko=[],il,qo=0;qo<fn;)if(ue.test(hn[qo])){var ad=qo;for(++qo;qo<fn&&ue.test(hn[qo]);++qo);Ko.push(new ve(0,ad,qo))}else{var Ga=qo,Ta=Ko.length,xa=$e=="rtl"?1:0;for(++qo;qo<fn&&hn[qo]!="L";++qo);for(var Po=Ga;Po<qo;)if(Se.test(hn[Po])){Ga<Po&&(Ko.splice(Ta,0,new ve(1,Ga,Po)),Ta+=xa);var ks=Po;for(++Po;Po<qo&&Se.test(hn[Po]);++Po);Ko.splice(Ta,0,new ve(2,ks,Po)),Ta+=xa,Ga=Po}else++Po;Ga<qo&&Ko.splice(Ta,0,new ve(1,Ga,qo))}return $e=="ltr"&&(Ko[0].level==1&&(il=Te.match(/^\s+/))&&(Ko[0].from=il[0].length,Ko.unshift(new ve(0,0,il[0].length))),_e(Ko).level==1&&(il=Te.match(/\s+$/))&&(_e(Ko).to-=il[0].length,Ko.push(new ve(0,fn-il[0].length,fn)))),$e=="rtl"?Ko.reverse():Ko}}();function tn(it,lt){var mt=it.order;return mt==null&&(mt=it.order=ke(it.text,lt)),mt}var dn=[],ln=function(it,lt,mt){if(it.addEventListener)it.addEventListener(lt,mt,!1);else if(it.attachEvent)it.attachEvent("on"+lt,mt);else{var pt=it._handlers||(it._handlers={});pt[lt]=(pt[lt]||dn).concat(mt)}};function Bn(it,lt){return it._handlers&&it._handlers[lt]||dn}function Vn(it,lt,mt){if(it.removeEventListener)it.removeEventListener(lt,mt,!1);else if(it.detachEvent)it.detachEvent("on"+lt,mt);else{var pt=it._handlers,wt=pt&&pt[lt];if(wt){var Yt=$t(wt,mt);Yt>-1&&(pt[lt]=wt.slice(0,Yt).concat(wt.slice(Yt+1)))}}}function Tn(it,lt){var mt=Bn(it,lt);if(mt.length)for(var pt=Array.prototype.slice.call(arguments,2),wt=0;wt<mt.length;++wt)mt[wt].apply(null,pt)}function un(it,lt,mt){return typeof lt=="string"&&(lt={type:lt,preventDefault:function(){this.defaultPrevented=!0}}),Tn(it,mt||lt.type,it,lt),qn(lt)||lt.codemirrorIgnore}function si(it){var lt=it._handlers&&it._handlers.cursorActivity;if(lt)for(var mt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),pt=0;pt<lt.length;++pt)$t(mt,lt[pt])==-1&&mt.push(lt[pt])}function ei(it,lt){return Bn(it,lt).length>0}function fi(it){it.prototype.on=function(lt,mt){ln(this,lt,mt)},it.prototype.off=function(lt,mt){Vn(this,lt,mt)}}function bi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Ni(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function qn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Ii(it){bi(it),Ni(it)}function pr(it){return it.target||it.srcElement}function Ar(it){var lt=it.which;return lt==null&&(it.button&1?lt=1:it.button&2?lt=3:it.button&4&&(lt=2)),st&&it.ctrlKey&<==1&&(lt=3),lt}var Or=function(){if(Rt&&Dt<9)return!1;var it=te("div");return"draggable"in it||"dragDrop"in it}(),wr;function Fi(it){if(wr==null){var lt=te("span","\u200B");Ot(it,te("span",[lt,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(wr=lt.offsetWidth<=1&<.offsetHeight>2&&!(Rt&&Dt<8))}var mt=wr?te("span","\u200B"):te("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return mt.setAttribute("cm-text",""),mt}var Sr;function Ri(it){if(Sr!=null)return Sr;var lt=Ot(it,document.createTextNode("A\u062EA")),mt=Xt(lt,0,1).getBoundingClientRect(),pt=Xt(lt,1,2).getBoundingClientRect();return Ht(it),!mt||mt.left==mt.right?!1:Sr=pt.right-mt.right<3}var vn=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var lt=0,mt=[],pt=it.length;lt<=pt;){var wt=it.indexOf(`
|
|
`,lt);wt==-1&&(wt=it.length);var Yt=it.slice(lt,it.charAt(wt-1)=="\r"?wt-1:wt),ue=Yt.indexOf("\r");ue!=-1?(mt.push(Yt.slice(0,ue)),lt+=ue+1):(mt.push(Yt),lt=wt+1)}return mt}:function(it){return it.split(/\r\n?|\n/)},Ut=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(lt){return!1}}:function(it){var lt;try{lt=it.ownerDocument.selection.createRange()}catch(mt){}return!lt||lt.parentElement()!=it?!1:lt.compareEndPoints("StartToEnd",lt)!=0},cn=function(){var it=te("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Pn=null;function kn(it){if(Pn!=null)return Pn;var lt=Ot(it,te("span","x")),mt=lt.getBoundingClientRect(),pt=Xt(lt,0,1).getBoundingClientRect();return Pn=Math.abs(mt.left-pt.left)>1}var Nn={},On={};function Hn(it,lt){arguments.length>2&&(lt.dependencies=Array.prototype.slice.call(arguments,2)),Nn[it]=lt}function gi(it,lt){On[it]=lt}function nn(it){if(typeof it=="string"&&On.hasOwnProperty(it))it=On[it];else if(it&&typeof it.name=="string"&&On.hasOwnProperty(it.name)){var lt=On[it.name];typeof lt=="string"&&(lt={name:lt}),it=Mt(lt,it),it.name=lt.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return nn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return nn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function en(it,lt){lt=nn(lt);var mt=Nn[lt.name];if(!mt)return en(it,"text/plain");var pt=mt(it,lt);if(We.hasOwnProperty(lt.name)){var wt=We[lt.name];for(var Yt in wt)wt.hasOwnProperty(Yt)&&(pt.hasOwnProperty(Yt)&&(pt["_"+Yt]=pt[Yt]),pt[Yt]=wt[Yt])}if(pt.name=lt.name,lt.helperType&&(pt.helperType=lt.helperType),lt.modeProps)for(var ue in lt.modeProps)pt[ue]=lt.modeProps[ue];return pt}var We={};function sn(it,lt){var mt=We.hasOwnProperty(it)?We[it]:We[it]={};Qe(lt,mt)}function Xn(it,lt){if(lt===!0)return lt;if(it.copyState)return it.copyState(lt);var mt={};for(var pt in lt){var wt=lt[pt];wt instanceof Array&&(wt=wt.concat([])),mt[pt]=wt}return mt}function Zn(it,lt){for(var mt;it.innerMode&&(mt=it.innerMode(lt),!(!mt||mt.mode==it));)lt=mt.state,it=mt.mode;return mt||{mode:it,state:lt}}function zn(it,lt,mt){return it.startState?it.startState(lt,mt):!0}var Ze=function(it,lt,mt){this.pos=this.start=0,this.string=it,this.tabSize=lt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=mt};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 lt=this.string.charAt(this.pos),mt;if(typeof it=="string"?mt=lt==it:mt=lt&&(it.test?it.test(lt):it(lt)),mt)return++this.pos,lt},Ze.prototype.eatWhile=function(it){for(var lt=this.pos;this.eat(it););return this.pos>lt},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 lt=this.string.indexOf(it,this.pos);if(lt>-1)return this.pos=lt,!0},Ze.prototype.backUp=function(it){this.pos-=it},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ae(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ae(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return ae(this.string,null,this.tabSize)-(this.lineStart?ae(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(it,lt,mt){if(typeof it=="string"){var pt=function(ue){return mt?ue.toLowerCase():ue},wt=this.string.substr(this.pos,it.length);if(pt(wt)==pt(it))return lt!==!1&&(this.pos+=it.length),!0}else{var Yt=this.string.slice(this.pos).match(it);return Yt&&Yt.index>0?null:(Yt&<!==!1&&(this.pos+=Yt[0].length),Yt)}},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(it,lt){this.lineStart+=it;try{return lt()}finally{this.lineStart-=it}},Ze.prototype.lookAhead=function(it){var lt=this.lineOracle;return lt&<.lookAhead(it)},Ze.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function mn(it,lt){if(lt-=it.first,lt<0||lt>=it.size)throw new Error("There is no line "+(lt+it.first)+" in the document.");for(var mt=it;!mt.lines;)for(var pt=0;;++pt){var wt=mt.children[pt],Yt=wt.chunkSize();if(lt<Yt){mt=wt;break}lt-=Yt}return mt.lines[lt]}function ri(it,lt,mt){var pt=[],wt=lt.line;return it.iter(lt.line,mt.line+1,function(Yt){var ue=Yt.text;wt==mt.line&&(ue=ue.slice(0,mt.ch)),wt==lt.line&&(ue=ue.slice(lt.ch)),pt.push(ue),++wt}),pt}function Si(it,lt,mt){var pt=[];return it.iter(lt,mt,function(wt){pt.push(wt.text)}),pt}function En(it,lt){var mt=lt-it.height;if(mt)for(var pt=it;pt;pt=pt.parent)pt.height+=mt}function Ye(it){if(it.parent==null)return null;for(var lt=it.parent,mt=$t(lt.lines,it),pt=lt.parent;pt;lt=pt,pt=pt.parent)for(var wt=0;pt.children[wt]!=lt;++wt)mt+=pt.children[wt].chunkSize();return mt+lt.first}function ti(it,lt){var mt=it.first;t:do{for(var pt=0;pt<it.children.length;++pt){var wt=it.children[pt],Yt=wt.height;if(lt<Yt){it=wt;continue t}lt-=Yt,mt+=wt.chunkSize()}return mt}while(!it.lines);for(var ue=0;ue<it.lines.length;++ue){var Se=it.lines[ue],ve=Se.height;if(lt<ve)break;lt-=ve}return mt+ue}function xi(it,lt){return lt>=it.first&<<it.first+it.size}function Ui(it,lt){return String(it.lineNumberFormatter(lt+it.firstLineNumber))}function yn(it,lt,mt){if(mt===void 0&&(mt=null),!(this instanceof yn))return new yn(it,lt,mt);this.line=it,this.ch=lt,this.sticky=mt}function hi(it,lt){return it.line-lt.line||it.ch-lt.ch}function tr(it,lt){return it.sticky==lt.sticky&&hi(it,lt)==0}function zr(it){return yn(it.line,it.ch)}function xr(it,lt){return hi(it,lt)<0?lt:it}function li(it,lt){return hi(it,lt)<0?it:lt}function ai(it,lt){return Math.max(it.first,Math.min(lt,it.first+it.size-1))}function vi(it,lt){if(lt.line<it.first)return yn(it.first,0);var mt=it.first+it.size-1;return lt.line>mt?yn(mt,mn(it,mt).text.length):qi(lt,mn(it,lt.line).text.length)}function qi(it,lt){var mt=it.ch;return mt==null||mt>lt?yn(it.line,lt):mt<0?yn(it.line,0):it}function Lr(it,lt){for(var mt=[],pt=0;pt<lt.length;pt++)mt[pt]=vi(it,lt[pt]);return mt}var In=function(it,lt){this.state=it,this.lookAhead=lt},Ai=function(it,lt,mt,pt){this.state=lt,this.doc=it,this.line=mt,this.maxLookAhead=pt||0,this.baseTokens=null,this.baseTokenPos=1};Ai.prototype.lookAhead=function(it){var lt=this.doc.getLine(this.line+it);return lt!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),lt},Ai.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var lt=this.baseTokens[this.baseTokenPos+1];return{type:lt&<.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Ai.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ai.fromSaved=function(it,lt,mt){return lt instanceof In?new Ai(it,Xn(it.mode,lt.state),mt,lt.lookAhead):new Ai(it,Xn(it.mode,lt),mt)},Ai.prototype.save=function(it){var lt=it!==!1?Xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new In(lt,this.maxLookAhead):lt};function $o(it,lt,mt,pt){var wt=[it.state.modeGen],Yt={};yr(it,lt.text,it.doc.mode,mt,function(Te,$e){return wt.push(Te,$e)},Yt,pt);for(var ue=mt.state,Se=function(Te){mt.baseTokens=wt;var $e=it.state.overlays[Te],Re=1,fn=0;mt.state=!0,yr(it,lt.text,$e.mode,mt,function(hn,Gn){for(var Jn=Re;fn<hn;){var oi=wt[Re];oi>hn&&wt.splice(Re,1,hn,wt[Re+1],oi),Re+=2,fn=Math.min(hn,oi)}if(Gn)if($e.opaque)wt.splice(Jn,Re-Jn,hn,"overlay "+Gn),Re=Jn+2;else for(;Jn<Re;Jn+=2){var yi=wt[Jn+1];wt[Jn+1]=(yi?yi+" ":"")+"overlay "+Gn}},Yt),mt.state=ue,mt.baseTokens=null,mt.baseTokenPos=1},ve=0;ve<it.state.overlays.length;++ve)Se(ve);return{styles:wt,classes:Yt.bgClass||Yt.textClass?Yt:null}}function xo(it,lt,mt){if(!lt.styles||lt.styles[0]!=it.state.modeGen){var pt=to(it,Ye(lt)),wt=lt.text.length>it.options.maxHighlightLength&&Xn(it.doc.mode,pt.state),Yt=$o(it,lt,pt);wt&&(pt.state=wt),lt.stateAfter=pt.save(!wt),lt.styles=Yt.styles,Yt.classes?lt.styleClasses=Yt.classes:lt.styleClasses&&(lt.styleClasses=null),mt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return lt.styles}function to(it,lt,mt){var pt=it.doc,wt=it.display;if(!pt.mode.startState)return new Ai(pt,!0,lt);var Yt=cr(it,lt,mt),ue=Yt>pt.first&&mn(pt,Yt-1).stateAfter,Se=ue?Ai.fromSaved(pt,ue,Yt):new Ai(pt,zn(pt.mode),Yt);return pt.iter(Yt,lt,function(ve){qe(it,ve.text,Se);var Te=Se.line;ve.stateAfter=Te==lt-1||Te%5==0||Te>=wt.viewFrom&&Te<wt.viewTo?Se.save():null,Se.nextLine()}),mt&&(pt.modeFrontier=Se.line),Se}function qe(it,lt,mt,pt){var wt=it.doc.mode,Yt=new Ze(lt,it.options.tabSize,mt);for(Yt.start=Yt.pos=pt||0,lt==""&&Oi(wt,mt.state);!Yt.eol();)ar(wt,Yt,mt.state),Yt.start=Yt.pos}function Oi(it,lt){if(it.blankLine)return it.blankLine(lt);if(it.innerMode){var mt=Zn(it,lt);if(mt.mode.blankLine)return mt.mode.blankLine(mt.state)}}function ar(it,lt,mt,pt){for(var wt=0;wt<10;wt++){pt&&(pt[0]=Zn(it,mt).mode);var Yt=it.token(lt,mt);if(lt.pos>lt.start)return Yt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Pi=function(it,lt,mt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=lt||null,this.state=mt};function Gr(it,lt,mt,pt){var wt=it.doc,Yt=wt.mode,ue;lt=vi(wt,lt);var Se=mn(wt,lt.line),ve=to(it,lt.line,mt),Te=new Ze(Se.text,it.options.tabSize,ve),$e;for(pt&&($e=[]);(pt||Te.pos<lt.ch)&&!Te.eol();)Te.start=Te.pos,ue=ar(Yt,Te,ve.state),pt&&$e.push(new Pi(Te,ue,Xn(wt.mode,ve.state)));return pt?$e:new Pi(Te,ue,ve.state)}function lr(it,lt){if(it)for(;;){var mt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!mt)break;it=it.slice(0,mt.index)+it.slice(mt.index+mt[0].length);var pt=mt[1]?"bgClass":"textClass";lt[pt]==null?lt[pt]=mt[2]:new RegExp("(?:^|\\s)"+mt[2]+"(?:$|\\s)").test(lt[pt])||(lt[pt]+=" "+mt[2])}return it}function yr(it,lt,mt,pt,wt,Yt,ue){var Se=mt.flattenSpans;Se==null&&(Se=it.options.flattenSpans);var ve=0,Te=null,$e=new Ze(lt,it.options.tabSize,pt),Re,fn=it.options.addModeClass&&[null];for(lt==""&&lr(Oi(mt,pt.state),Yt);!$e.eol();){if($e.pos>it.options.maxHighlightLength?(Se=!1,ue&&qe(it,lt,pt,$e.pos),$e.pos=lt.length,Re=null):Re=lr(ar(mt,$e,pt.state,fn),Yt),fn){var hn=fn[0].name;hn&&(Re="m-"+(Re?hn+" "+Re:hn))}if(!Se||Te!=Re){for(;ve<$e.start;)ve=Math.min($e.start,ve+5e3),wt(ve,Te);Te=Re}$e.start=$e.pos}for(;ve<$e.pos;){var Gn=Math.min($e.pos,ve+5e3);wt(Gn,Te),ve=Gn}}function cr(it,lt,mt){for(var pt,wt,Yt=it.doc,ue=mt?-1:lt-(it.doc.mode.innerMode?1e3:100),Se=lt;Se>ue;--Se){if(Se<=Yt.first)return Yt.first;var ve=mn(Yt,Se-1),Te=ve.stateAfter;if(Te&&(!mt||Se+(Te instanceof In?Te.lookAhead:0)<=Yt.modeFrontier))return Se;var $e=ae(ve.text,null,it.options.tabSize);(wt==null||pt>$e)&&(wt=Se-1,pt=$e)}return wt}function er(it,lt){if(it.modeFrontier=Math.min(it.modeFrontier,lt),!(it.highlightFrontier<lt-10)){for(var mt=it.first,pt=lt-1;pt>mt;pt--){var wt=mn(it,pt).stateAfter;if(wt&&(!(wt instanceof In)||pt+wt.lookAhead<lt)){mt=pt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,mt)}}var Er=!1,Cn=!1;function eo(){Er=!0}function Oe(){Cn=!0}function je(it,lt,mt){this.marker=it,this.from=lt,this.to=mt}function wn(it,lt){if(it)for(var mt=0;mt<it.length;++mt){var pt=it[mt];if(pt.marker==lt)return pt}}function Me(it,lt){for(var mt,pt=0;pt<it.length;++pt)it[pt]!=lt&&(mt||(mt=[])).push(it[pt]);return mt}function Ie(it,lt){it.markedSpans=it.markedSpans?it.markedSpans.concat([lt]):[lt],lt.marker.attachLine(it)}function Ge(it,lt,mt){var pt;if(it)for(var wt=0;wt<it.length;++wt){var Yt=it[wt],ue=Yt.marker,Se=Yt.from==null||(ue.inclusiveLeft?Yt.from<=lt:Yt.from<lt);if(Se||Yt.from==lt&&ue.type=="bookmark"&&(!mt||!Yt.marker.insertLeft)){var ve=Yt.to==null||(ue.inclusiveRight?Yt.to>=lt:Yt.to>lt);(pt||(pt=[])).push(new je(ue,Yt.from,ve?null:Yt.to))}}return pt}function rn(it,lt,mt){var pt;if(it)for(var wt=0;wt<it.length;++wt){var Yt=it[wt],ue=Yt.marker,Se=Yt.to==null||(ue.inclusiveRight?Yt.to>=lt:Yt.to>lt);if(Se||Yt.from==lt&&ue.type=="bookmark"&&(!mt||Yt.marker.insertLeft)){var ve=Yt.from==null||(ue.inclusiveLeft?Yt.from<=lt:Yt.from<lt);(pt||(pt=[])).push(new je(ue,ve?null:Yt.from-lt,Yt.to==null?null:Yt.to-lt))}}return pt}function Ln(it,lt){if(lt.full)return null;var mt=xi(it,lt.from.line)&&mn(it,lt.from.line).markedSpans,pt=xi(it,lt.to.line)&&mn(it,lt.to.line).markedSpans;if(!mt&&!pt)return null;var wt=lt.from.ch,Yt=lt.to.ch,ue=hi(lt.from,lt.to)==0,Se=Ge(mt,wt,ue),ve=rn(pt,Yt,ue),Te=lt.text.length==1,$e=_e(lt.text).length+(Te?wt:0);if(Se)for(var Re=0;Re<Se.length;++Re){var fn=Se[Re];if(fn.to==null){var hn=wn(ve,fn.marker);hn?Te&&(fn.to=hn.to==null?null:hn.to+$e):fn.to=wt}}if(ve)for(var Gn=0;Gn<ve.length;++Gn){var Jn=ve[Gn];if(Jn.to!=null&&(Jn.to+=$e),Jn.from==null){var oi=wn(Se,Jn.marker);oi||(Jn.from=$e,Te&&(Se||(Se=[])).push(Jn))}else Jn.from+=$e,Te&&(Se||(Se=[])).push(Jn)}Se&&(Se=Yn(Se)),ve&&ve!=Se&&(ve=Yn(ve));var yi=[Se];if(!Te){var ji=lt.text.length-2,Ei;if(ji>0&&Se)for(var _i=0;_i<Se.length;++_i)Se[_i].to==null&&(Ei||(Ei=[])).push(new je(Se[_i].marker,null,null));for(var vr=0;vr<ji;++vr)yi.push(Ei);yi.push(ve)}return yi}function Yn(it){for(var lt=0;lt<it.length;++lt){var mt=it[lt];mt.from!=null&&mt.from==mt.to&&mt.marker.clearWhenEmpty!==!1&&it.splice(lt--,1)}return it.length?it:null}function Wn(it,lt,mt){var pt=null;if(it.iter(lt.line,mt.line+1,function(hn){if(hn.markedSpans)for(var Gn=0;Gn<hn.markedSpans.length;++Gn){var Jn=hn.markedSpans[Gn].marker;Jn.readOnly&&(!pt||$t(pt,Jn)==-1)&&(pt||(pt=[])).push(Jn)}}),!pt)return null;for(var wt=[{from:lt,to:mt}],Yt=0;Yt<pt.length;++Yt)for(var ue=pt[Yt],Se=ue.find(0),ve=0;ve<wt.length;++ve){var Te=wt[ve];if(!(hi(Te.to,Se.from)<0||hi(Te.from,Se.to)>0)){var $e=[ve,1],Re=hi(Te.from,Se.from),fn=hi(Te.to,Se.to);(Re<0||!ue.inclusiveLeft&&!Re)&&$e.push({from:Te.from,to:Se.from}),(fn>0||!ue.inclusiveRight&&!fn)&&$e.push({from:Se.to,to:Te.to}),wt.splice.apply(wt,$e),ve+=$e.length-3}}return wt}function pn(it){var lt=it.markedSpans;if(lt){for(var mt=0;mt<lt.length;++mt)lt[mt].marker.detachLine(it);it.markedSpans=null}}function de(it,lt){if(lt){for(var mt=0;mt<lt.length;++mt)lt[mt].marker.attachLine(it);it.markedSpans=lt}}function Mi(it){return it.inclusiveLeft?-1:0}function Wi(it){return it.inclusiveRight?1:0}function nr(it,lt){var mt=it.lines.length-lt.lines.length;if(mt!=0)return mt;var pt=it.find(),wt=lt.find(),Yt=hi(pt.from,wt.from)||Mi(it)-Mi(lt);if(Yt)return-Yt;var ue=hi(pt.to,wt.to)||Wi(it)-Wi(lt);return ue||lt.id-it.id}function ir(it,lt){var mt=Cn&&it.markedSpans,pt;if(mt)for(var wt=void 0,Yt=0;Yt<mt.length;++Yt)wt=mt[Yt],wt.marker.collapsed&&(lt?wt.from:wt.to)==null&&(!pt||nr(pt,wt.marker)<0)&&(pt=wt.marker);return pt}function rr(it){return ir(it,!0)}function Vi(it){return ir(it,!1)}function Dr(it,lt){var mt=Cn&&it.markedSpans,pt;if(mt)for(var wt=0;wt<mt.length;++wt){var Yt=mt[wt];Yt.marker.collapsed&&(Yt.from==null||Yt.from<lt)&&(Yt.to==null||Yt.to>lt)&&(!pt||nr(pt,Yt.marker)<0)&&(pt=Yt.marker)}return pt}function or(it,lt,mt,pt,wt){var Yt=mn(it,lt),ue=Cn&&Yt.markedSpans;if(ue)for(var Se=0;Se<ue.length;++Se){var ve=ue[Se];if(ve.marker.collapsed){var Te=ve.marker.find(0),$e=hi(Te.from,mt)||Mi(ve.marker)-Mi(wt),Re=hi(Te.to,pt)||Wi(ve.marker)-Wi(wt);if(!($e>=0&&Re<=0||$e<=0&&Re>=0)&&($e<=0&&(ve.marker.inclusiveRight&&wt.inclusiveLeft?hi(Te.to,mt)>=0:hi(Te.to,mt)>0)||$e>=0&&(ve.marker.inclusiveRight&&wt.inclusiveLeft?hi(Te.from,pt)<=0:hi(Te.from,pt)<0)))return!0}}}function Di(it){for(var lt;lt=rr(it);)it=lt.find(-1,!0).line;return it}function wi(it){for(var lt;lt=Vi(it);)it=lt.find(1,!0).line;return it}function Qn(it){for(var lt,mt;lt=Vi(it);)it=lt.find(1,!0).line,(mt||(mt=[])).push(it);return mt}function Rn(it,lt){var mt=mn(it,lt),pt=Di(mt);return mt==pt?lt:Ye(pt)}function ni(it,lt){if(lt>it.lastLine())return lt;var mt=mn(it,lt),pt;if(!on(it,mt))return lt;for(;pt=Vi(mt);)mt=pt.find(1,!0).line;return Ye(mt)+1}function on(it,lt){var mt=Cn&<.markedSpans;if(mt){for(var pt=void 0,wt=0;wt<mt.length;++wt)if(pt=mt[wt],!!pt.marker.collapsed){if(pt.from==null)return!0;if(!pt.marker.widgetNode&&pt.from==0&&pt.marker.inclusiveLeft&&ui(it,lt,pt))return!0}}}function ui(it,lt,mt){if(mt.to==null){var pt=mt.marker.find(1,!0);return ui(it,pt.line,wn(pt.line.markedSpans,mt.marker))}if(mt.marker.inclusiveRight&&mt.to==lt.text.length)return!0;for(var wt=void 0,Yt=0;Yt<lt.markedSpans.length;++Yt)if(wt=lt.markedSpans[Yt],wt.marker.collapsed&&!wt.marker.widgetNode&&wt.from==mt.to&&(wt.to==null||wt.to!=mt.from)&&(wt.marker.inclusiveLeft||mt.marker.inclusiveRight)&&ui(it,lt,wt))return!0}function di(it){it=Di(it);for(var lt=0,mt=it.parent,pt=0;pt<mt.lines.length;++pt){var wt=mt.lines[pt];if(wt==it)break;lt+=wt.height}for(var Yt=mt.parent;Yt;mt=Yt,Yt=mt.parent)for(var ue=0;ue<Yt.children.length;++ue){var Se=Yt.children[ue];if(Se==mt)break;lt+=Se.height}return lt}function Zi(it){if(it.height==0)return 0;for(var lt=it.text.length,mt,pt=it;mt=rr(pt);){var wt=mt.find(0,!0);pt=wt.from.line,lt+=wt.from.ch-wt.to.ch}for(pt=it;mt=Vi(pt);){var Yt=mt.find(0,!0);lt-=pt.text.length-Yt.from.ch,pt=Yt.to.line,lt+=pt.text.length-Yt.to.ch}return lt}function Qi(it){var lt=it.display,mt=it.doc;lt.maxLine=mn(mt,mt.first),lt.maxLineLength=Zi(lt.maxLine),lt.maxLineChanged=!0,mt.iter(function(pt){var wt=Zi(pt);wt>lt.maxLineLength&&(lt.maxLineLength=wt,lt.maxLine=pt)})}var $i=function(it,lt,mt){this.text=it,de(this,lt),this.height=mt?mt(this):1};$i.prototype.lineNo=function(){return Ye(this)},fi($i);function mr(it,lt,mt,pt){it.text=lt,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),pn(it),de(it,mt);var wt=pt?pt(it):1;wt!=it.height&&En(it,wt)}function _r(it){it.parent=null,pn(it)}var Ir={},ao={};function Ao(it,lt){if(!it||/^\s*$/.test(it))return null;var mt=lt.addModeClass?ao:Ir;return mt[it]||(mt[it]=it.replace(/\S+/g,"cm-$&"))}function Je(it,lt){var mt=ne("span",null,null,St?"padding-right: .1px":null),pt={pre:ne("pre",[mt],"CodeMirror-line"),content:mt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};lt.measure={};for(var wt=0;wt<=(lt.rest?lt.rest.length:0);wt++){var Yt=wt?lt.rest[wt-1]:lt.line,ue=void 0;pt.pos=0,pt.addToken=Jr,Ri(it.display.measure)&&(ue=tn(Yt,it.doc.direction))&&(pt.addToken=dr(pt.addToken,ue)),pt.map=[];var Se=lt!=it.display.externalMeasured&&Ye(Yt);oo(Yt,pt,xo(it,Yt,Se)),Yt.styleClasses&&(Yt.styleClasses.bgClass&&(pt.bgClass=De(Yt.styleClasses.bgClass,pt.bgClass||"")),Yt.styleClasses.textClass&&(pt.textClass=De(Yt.styleClasses.textClass,pt.textClass||""))),pt.map.length==0&&pt.map.push(0,0,pt.content.appendChild(Fi(it.display.measure))),wt==0?(lt.measure.map=pt.map,lt.measure.cache={}):((lt.measure.maps||(lt.measure.maps=[])).push(pt.map),(lt.measure.caches||(lt.measure.caches=[])).push({}))}if(St){var ve=pt.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(pt.content.className="cm-tab-wrap-hack")}return Tn(it,"renderLine",it,lt.line,pt.pre),pt.pre.className&&(pt.textClass=De(pt.pre.className,pt.textClass||"")),pt}function Kr(it){var lt=te("span","\u2022","cm-invalidchar");return lt.title="\\u"+it.charCodeAt(0).toString(16),lt.setAttribute("aria-label",lt.title),lt}function Jr(it,lt,mt,pt,wt,Yt,ue){if(lt){var Se=it.splitSpaces?Mo(lt,it.trailingSpace):lt,ve=it.cm.state.specialChars,Te=!1,$e;if(!ve.test(lt))it.col+=lt.length,$e=document.createTextNode(Se),it.map.push(it.pos,it.pos+lt.length,$e),Rt&&Dt<9&&(Te=!0),it.pos+=lt.length;else{$e=document.createDocumentFragment();for(var Re=0;;){ve.lastIndex=Re;var fn=ve.exec(lt),hn=fn?fn.index-Re:lt.length-Re;if(hn){var Gn=document.createTextNode(Se.slice(Re,Re+hn));Rt&&Dt<9?$e.appendChild(te("span",[Gn])):$e.appendChild(Gn),it.map.push(it.pos,it.pos+hn,Gn),it.col+=hn,it.pos+=hn}if(!fn)break;Re+=hn+1;var Jn=void 0;if(fn[0]==" "){var oi=it.cm.options.tabSize,yi=oi-it.col%oi;Jn=$e.appendChild(te("span",xe(yi),"cm-tab")),Jn.setAttribute("role","presentation"),Jn.setAttribute("cm-text"," "),it.col+=yi}else fn[0]=="\r"||fn[0]==`
|
|
`?(Jn=$e.appendChild(te("span",fn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Jn.setAttribute("cm-text",fn[0]),it.col+=1):(Jn=it.cm.options.specialCharPlaceholder(fn[0]),Jn.setAttribute("cm-text",fn[0]),Rt&&Dt<9?$e.appendChild(te("span",[Jn])):$e.appendChild(Jn),it.col+=1);it.map.push(it.pos,it.pos+1,Jn),it.pos++}}if(it.trailingSpace=Se.charCodeAt(lt.length-1)==32,mt||pt||wt||Te||Yt||ue){var ji=mt||"";pt&&(ji+=pt),wt&&(ji+=wt);var Ei=te("span",[$e],ji,Yt);if(ue)for(var _i in ue)ue.hasOwnProperty(_i)&&_i!="style"&&_i!="class"&&Ei.setAttribute(_i,ue[_i]);return it.content.appendChild(Ei)}it.content.appendChild($e)}}function Mo(it,lt){if(it.length>1&&!/ /.test(it))return it;for(var mt=lt,pt="",wt=0;wt<it.length;wt++){var Yt=it.charAt(wt);Yt==" "&&mt&&(wt==it.length-1||it.charCodeAt(wt+1)==32)&&(Yt="\xA0"),pt+=Yt,mt=Yt==" "}return pt}function dr(it,lt){return function(mt,pt,wt,Yt,ue,Se,ve){wt=wt?wt+" cm-force-border":"cm-force-border";for(var Te=mt.pos,$e=Te+pt.length;;){for(var Re=void 0,fn=0;fn<lt.length&&(Re=lt[fn],!(Re.to>Te&&Re.from<=Te));fn++);if(Re.to>=$e)return it(mt,pt,wt,Yt,ue,Se,ve);it(mt,pt.slice(0,Re.to-Te),wt,Yt,null,Se,ve),Yt=null,pt=pt.slice(Re.to-Te),Te=Re.to}}}function To(it,lt,mt,pt){var wt=!pt&&mt.widgetNode;wt&&it.map.push(it.pos,it.pos+lt,wt),!pt&&it.cm.display.input.needsContentAttribute&&(wt||(wt=it.content.appendChild(document.createElement("span"))),wt.setAttribute("cm-marker",mt.id)),wt&&(it.cm.display.input.setUneditable(wt),it.content.appendChild(wt)),it.pos+=lt,it.trailingSpace=!1}function oo(it,lt,mt){var pt=it.markedSpans,wt=it.text,Yt=0;if(!pt){for(var ue=1;ue<mt.length;ue+=2)lt.addToken(lt,wt.slice(Yt,Yt=mt[ue]),Ao(mt[ue+1],lt.cm.options));return}for(var Se=wt.length,ve=0,Te=1,$e="",Re,fn,hn=0,Gn,Jn,oi,yi,ji;;){if(hn==ve){Gn=Jn=oi=fn="",ji=null,yi=null,hn=1/0;for(var Ei=[],_i=void 0,vr=0;vr<pt.length;++vr){var Li=pt[vr],Fr=Li.marker;if(Fr.type=="bookmark"&&Li.from==ve&&Fr.widgetNode)Ei.push(Fr);else if(Li.from<=ve&&(Li.to==null||Li.to>ve||Fr.collapsed&&Li.to==ve&&Li.from==ve)){if(Li.to!=null&&Li.to!=ve&&hn>Li.to&&(hn=Li.to,Jn=""),Fr.className&&(Gn+=" "+Fr.className),Fr.css&&(fn=(fn?fn+";":"")+Fr.css),Fr.startStyle&&Li.from==ve&&(oi+=" "+Fr.startStyle),Fr.endStyle&&Li.to==hn&&(_i||(_i=[])).push(Fr.endStyle,Li.to),Fr.title&&((ji||(ji={})).title=Fr.title),Fr.attributes)for(var Do in Fr.attributes)(ji||(ji={}))[Do]=Fr.attributes[Do];Fr.collapsed&&(!yi||nr(yi.marker,Fr)<0)&&(yi=Li)}else Li.from>ve&&hn>Li.from&&(hn=Li.from)}if(_i)for(var vs=0;vs<_i.length;vs+=2)_i[vs+1]==hn&&(Jn+=" "+_i[vs]);if(!yi||yi.from==ve)for(var Ho=0;Ho<Ei.length;++Ho)To(lt,0,Ei[Ho]);if(yi&&(yi.from||0)==ve){if(To(lt,(yi.to==null?Se+1:yi.to)-ve,yi.marker,yi.from==null),yi.to==null)return;yi.to==ve&&(yi=!1)}}if(ve>=Se)break;for(var Sa=Math.min(Se,hn);;){if($e){var Ys=ve+$e.length;if(!yi){var hs=Ys>Sa?$e.slice(0,Sa-ve):$e;lt.addToken(lt,hs,Re?Re+Gn:Gn,oi,ve+hs.length==hn?Jn:"",fn,ji)}if(Ys>=Sa){$e=$e.slice(Sa-ve),ve=Sa;break}ve=Ys,oi=""}$e=wt.slice(Yt,Yt=mt[Te++]),Re=Ao(mt[Te++],lt.cm.options)}}}function No(it,lt,mt){this.line=lt,this.rest=Qn(lt),this.size=this.rest?Ye(_e(this.rest))-mt+1:1,this.node=this.text=null,this.hidden=on(it,lt)}function ur(it,lt,mt){for(var pt=[],wt,Yt=lt;Yt<mt;Yt=wt){var ue=new No(it.doc,mn(it.doc,Yt),Yt);wt=Yt+ue.size,pt.push(ue)}return pt}var Br=null;function Ti(it){Br?Br.ops.push(it):it.ownsGroup=Br={ops:[it],delayedCallbacks:[]}}function Yi(it){var lt=it.delayedCallbacks,mt=0;do{for(;mt<lt.length;mt++)lt[mt].call(null);for(var pt=0;pt<it.ops.length;pt++){var wt=it.ops[pt];if(wt.cursorActivityHandlers)for(;wt.cursorActivityCalled<wt.cursorActivityHandlers.length;)wt.cursorActivityHandlers[wt.cursorActivityCalled++].call(null,wt.cm)}}while(mt<lt.length)}function sr(it,lt){var mt=it.ownsGroup;if(mt)try{Yi(mt)}finally{Br=null,lt(mt)}}var kr=null;function ii(it,lt){var mt=Bn(it,lt);if(mt.length){var pt=Array.prototype.slice.call(arguments,2),wt;Br?wt=Br.delayedCallbacks:kr?wt=kr:(wt=kr=[],setTimeout(so,0));for(var Yt=function(Se){wt.push(function(){return mt[Se].apply(null,pt)})},ue=0;ue<mt.length;++ue)Yt(ue)}}function so(){var it=kr;kr=null;for(var lt=0;lt<it.length;++lt)it[lt]()}function Zr(it,lt,mt,pt){for(var wt=0;wt<lt.changes.length;wt++){var Yt=lt.changes[wt];Yt=="text"?_n(it,lt):Yt=="gutter"?ho(it,lt,mt,pt):Yt=="class"?no(it,lt):Yt=="widget"&&es(it,lt,pt)}lt.changes=null}function uo(it){return it.node==it.text&&(it.node=te("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Rt&&Dt<8&&(it.node.style.zIndex=2)),it.node}function _o(it,lt){var mt=lt.bgClass?lt.bgClass+" "+(lt.line.bgClass||""):lt.line.bgClass;if(mt&&(mt+=" CodeMirror-linebackground"),lt.background)mt?lt.background.className=mt:(lt.background.parentNode.removeChild(lt.background),lt.background=null);else if(mt){var pt=uo(lt);lt.background=pt.insertBefore(te("div",null,mt),pt.firstChild),it.display.input.setUneditable(lt.background)}}function ts(it,lt){var mt=it.display.externalMeasured;return mt&&mt.line==lt.line?(it.display.externalMeasured=null,lt.measure=mt.measure,mt.built):Je(it,lt)}function _n(it,lt){var mt=lt.text.className,pt=ts(it,lt);lt.text==lt.node&&(lt.node=pt.pre),lt.text.parentNode.replaceChild(pt.pre,lt.text),lt.text=pt.pre,pt.bgClass!=lt.bgClass||pt.textClass!=lt.textClass?(lt.bgClass=pt.bgClass,lt.textClass=pt.textClass,no(it,lt)):mt&&(lt.text.className=mt)}function no(it,lt){_o(it,lt),lt.line.wrapClass?uo(lt).className=lt.line.wrapClass:lt.node!=lt.text&&(lt.node.className="");var mt=lt.textClass?lt.textClass+" "+(lt.line.textClass||""):lt.line.textClass;lt.text.className=mt||""}function ho(it,lt,mt,pt){if(lt.gutter&&(lt.node.removeChild(lt.gutter),lt.gutter=null),lt.gutterBackground&&(lt.node.removeChild(lt.gutterBackground),lt.gutterBackground=null),lt.line.gutterClass){var wt=uo(lt);lt.gutterBackground=te("div",null,"CodeMirror-gutter-background "+lt.line.gutterClass,"left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px; width: "+pt.gutterTotalWidth+"px"),it.display.input.setUneditable(lt.gutterBackground),wt.insertBefore(lt.gutterBackground,lt.text)}var Yt=lt.line.gutterMarkers;if(it.options.lineNumbers||Yt){var ue=uo(lt),Se=lt.gutter=te("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Se),ue.insertBefore(Se,lt.text),lt.line.gutterClass&&(Se.className+=" "+lt.line.gutterClass),it.options.lineNumbers&&(!Yt||!Yt["CodeMirror-linenumbers"])&&(lt.lineNumber=Se.appendChild(te("div",Ui(it.options,mt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Yt)for(var ve=0;ve<it.display.gutterSpecs.length;++ve){var Te=it.display.gutterSpecs[ve].className,$e=Yt.hasOwnProperty(Te)&&Yt[Te];$e&&Se.appendChild(te("div",[$e],"CodeMirror-gutter-elt","left: "+pt.gutterLeft[Te]+"px; width: "+pt.gutterWidth[Te]+"px"))}}}function es(it,lt,mt){lt.alignable&&(lt.alignable=null);for(var pt=kt("CodeMirror-linewidget"),wt=lt.node.firstChild,Yt=void 0;wt;wt=Yt)Yt=wt.nextSibling,pt.test(wt.className)&<.node.removeChild(wt);Qo(it,lt,mt)}function qr(it,lt,mt,pt){var wt=ts(it,lt);return lt.text=lt.node=wt.pre,wt.bgClass&&(lt.bgClass=wt.bgClass),wt.textClass&&(lt.textClass=wt.textClass),no(it,lt),ho(it,lt,mt,pt),Qo(it,lt,pt),lt.node}function Qo(it,lt,mt){if(Gi(it,lt.line,lt,mt,!0),lt.rest)for(var pt=0;pt<lt.rest.length;pt++)Gi(it,lt.rest[pt],lt,mt,!1)}function Gi(it,lt,mt,pt,wt){if(lt.widgets)for(var Yt=uo(mt),ue=0,Se=lt.widgets;ue<Se.length;++ue){var ve=Se[ue],Te=te("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||Te.setAttribute("cm-ignore-events","true"),ga(ve,Te,mt,pt),it.display.input.setUneditable(Te),wt&&ve.above?Yt.insertBefore(Te,mt.gutter||mt.text):Yt.appendChild(Te),ii(ve,"redraw")}}function ga(it,lt,mt,pt){if(it.noHScroll){(mt.alignable||(mt.alignable=[])).push(lt);var wt=pt.wrapperWidth;lt.style.left=pt.fixedPos+"px",it.coverGutter||(wt-=pt.gutterTotalWidth,lt.style.paddingLeft=pt.gutterTotalWidth+"px"),lt.style.width=wt+"px"}it.coverGutter&&(lt.style.zIndex=5,lt.style.position="relative",it.noHScroll||(lt.style.marginLeft=-pt.gutterTotalWidth+"px"))}function Vo(it){if(it.height!=null)return it.height;var lt=it.doc.cm;if(!lt)return 0;if(!ce(document.body,it.node)){var mt="position: relative;";it.coverGutter&&(mt+="margin-left: -"+lt.display.gutters.offsetWidth+"px;"),it.noHScroll&&(mt+="width: "+lt.display.wrapper.clientWidth+"px;"),Ot(lt.display.measure,te("div",[it.node],null,mt))}return it.height=it.node.parentNode.offsetHeight}function Ro(it,lt){for(var mt=pr(lt);mt!=it.wrapper;mt=mt.parentNode)if(!mt||mt.nodeType==1&&mt.getAttribute("cm-ignore-events")=="true"||mt.parentNode==it.sizer&&mt!=it.mover)return!0}function ws(it){return it.lineSpace.offsetTop}function Qa(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function dl(it){if(it.cachedPaddingH)return it.cachedPaddingH;var lt=Ot(it.measure,te("pre","x","CodeMirror-line-like")),mt=window.getComputedStyle?window.getComputedStyle(lt):lt.currentStyle,pt={left:parseInt(mt.paddingLeft),right:parseInt(mt.paddingRight)};return!isNaN(pt.left)&&!isNaN(pt.right)&&(it.cachedPaddingH=pt),pt}function ta(it){return re-it.display.nativeBarWidth}function pa(it){return it.display.scroller.clientWidth-ta(it)-it.display.barWidth}function lh(it){return it.display.scroller.clientHeight-ta(it)-it.display.barHeight}function Bc(it,lt,mt){var pt=it.options.lineWrapping,wt=pt&&pa(it);if(!lt.measure.heights||pt&<.measure.width!=wt){var Yt=lt.measure.heights=[];if(pt){lt.measure.width=wt;for(var ue=lt.text.firstChild.getClientRects(),Se=0;Se<ue.length-1;Se++){var ve=ue[Se],Te=ue[Se+1];Math.abs(ve.bottom-Te.bottom)>2&&Yt.push((ve.bottom+Te.top)/2-mt.top)}}Yt.push(mt.bottom-mt.top)}}function uh(it,lt,mt){if(it.line==lt)return{map:it.measure.map,cache:it.measure.cache};for(var pt=0;pt<it.rest.length;pt++)if(it.rest[pt]==lt)return{map:it.measure.maps[pt],cache:it.measure.caches[pt]};for(var wt=0;wt<it.rest.length;wt++)if(Ye(it.rest[wt])>mt)return{map:it.measure.maps[wt],cache:it.measure.caches[wt],before:!0}}function Qh(it,lt){lt=Di(lt);var mt=Ye(lt),pt=it.display.externalMeasured=new No(it.doc,lt,mt);pt.lineN=mt;var wt=pt.built=Je(it,pt);return pt.text=wt.pre,Ot(it.display.lineMeasure,wt.pre),pt}function ea(it,lt,mt,pt){return fl(it,qa(it,lt),mt,pt)}function ja(it,lt){if(lt>=it.display.viewFrom&<<it.display.viewTo)return it.display.view[za(it,lt)];var mt=it.display.externalMeasured;if(mt&<>=mt.lineN&<<mt.lineN+mt.size)return mt}function qa(it,lt){var mt=Ye(lt),pt=ja(it,mt);pt&&!pt.text?pt=null:pt&&pt.changes&&(Zr(it,pt,mt,Id(it)),it.curOp.forceUpdate=!0),pt||(pt=Qh(it,lt));var wt=uh(pt,lt,mt);return{line:lt,view:pt,rect:null,map:wt.map,cache:wt.cache,before:wt.before,hasHeights:!1}}function fl(it,lt,mt,pt,wt){lt.before&&(mt=-1);var Yt=mt+(pt||""),ue;return lt.cache.hasOwnProperty(Yt)?ue=lt.cache[Yt]:(lt.rect||(lt.rect=lt.view.text.getBoundingClientRect()),lt.hasHeights||(Bc(it,lt.view,lt.rect),lt.hasHeights=!0),ue=ns(it,lt,mt,pt),ue.bogus||(lt.cache[Yt]=ue)),{left:ue.left,right:ue.right,top:wt?ue.rtop:ue.top,bottom:wt?ue.rbottom:ue.bottom}}var Td={left:0,right:0,top:0,bottom:0};function Nd(it,lt,mt){for(var pt,wt,Yt,ue,Se,ve,Te=0;Te<it.length;Te+=3)if(Se=it[Te],ve=it[Te+1],lt<Se?(wt=0,Yt=1,ue="left"):lt<ve?(wt=lt-Se,Yt=wt+1):(Te==it.length-3||lt==ve&&it[Te+3]>lt)&&(Yt=ve-Se,wt=Yt-1,lt>=ve&&(ue="right")),wt!=null){if(pt=it[Te+2],Se==ve&&mt==(pt.insertLeft?"left":"right")&&(ue=mt),mt=="left"&&wt==0)for(;Te&&it[Te-2]==it[Te-3]&&it[Te-1].insertLeft;)pt=it[(Te-=3)+2],ue="left";if(mt=="right"&&wt==ve-Se)for(;Te<it.length-3&&it[Te+3]==it[Te+4]&&!it[Te+5].insertLeft;)pt=it[(Te+=3)+2],ue="right";break}return{node:pt,start:wt,end:Yt,collapse:ue,coverStart:Se,coverEnd:ve}}function Zf(it,lt){var mt=Td;if(lt=="left")for(var pt=0;pt<it.length&&(mt=it[pt]).left==mt.right;pt++);else for(var wt=it.length-1;wt>=0&&(mt=it[wt]).left==mt.right;wt--);return mt}function ns(it,lt,mt,pt){var wt=Nd(lt.map,mt,pt),Yt=wt.node,ue=wt.start,Se=wt.end,ve=wt.collapse,Te;if(Yt.nodeType==3){for(var $e=0;$e<4;$e++){for(;ue&&bt(lt.line.text.charAt(wt.coverStart+ue));)--ue;for(;wt.coverStart+Se<wt.coverEnd&&bt(lt.line.text.charAt(wt.coverStart+Se));)++Se;if(Rt&&Dt<9&&ue==0&&Se==wt.coverEnd-wt.coverStart?Te=Yt.parentNode.getBoundingClientRect():Te=Zf(Xt(Yt,ue,Se).getClientRects(),pt),Te.left||Te.right||ue==0)break;Se=ue,ue=ue-1,ve="right"}Rt&&Dt<11&&(Te=Fp(it.display.measure,Te))}else{ue>0&&(ve=pt="right");var Re;it.options.lineWrapping&&(Re=Yt.getClientRects()).length>1?Te=Re[pt=="right"?Re.length-1:0]:Te=Yt.getBoundingClientRect()}if(Rt&&Dt<9&&!ue&&(!Te||!Te.left&&!Te.right)){var fn=Yt.parentNode.getClientRects()[0];fn?Te={left:fn.left,right:fn.left+hh(it.display),top:fn.top,bottom:fn.bottom}:Te=Td}for(var hn=Te.top-lt.rect.top,Gn=Te.bottom-lt.rect.top,Jn=(hn+Gn)/2,oi=lt.view.measure.heights,yi=0;yi<oi.length-1&&!(Jn<oi[yi]);yi++);var ji=yi?oi[yi-1]:0,Ei=oi[yi],_i={left:(ve=="right"?Te.right:Te.left)-lt.rect.left,right:(ve=="left"?Te.left:Te.right)-lt.rect.left,top:ji,bottom:Ei};return!Te.left&&!Te.right&&(_i.bogus=!0),it.options.singleCursorHeightPerLine||(_i.rtop=hn,_i.rbottom=Gn),_i}function Fp(it,lt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kn(it))return lt;var mt=screen.logicalXDPI/screen.deviceXDPI,pt=screen.logicalYDPI/screen.deviceYDPI;return{left:lt.left*mt,right:lt.right*mt,top:lt.top*pt,bottom:lt.bottom*pt}}function Jf(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var lt=0;lt<it.rest.length;lt++)it.measure.caches[lt]={}}function Ic(it){it.display.externalMeasure=null,Ht(it.display.lineMeasure);for(var lt=0;lt<it.display.view.length;lt++)Jf(it.display.view[lt])}function qh(it){Ic(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function na(){return Nt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ia(){return Nt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fs(it){var lt=0;if(it.widgets)for(var mt=0;mt<it.widgets.length;++mt)it.widgets[mt].above&&(lt+=Vo(it.widgets[mt]));return lt}function js(it,lt,mt,pt,wt){if(!wt){var Yt=fs(lt);mt.top+=Yt,mt.bottom+=Yt}if(pt=="line")return mt;pt||(pt="local");var ue=di(lt);if(pt=="local"?ue+=ws(it.display):ue-=it.display.viewOffset,pt=="page"||pt=="window"){var Se=it.display.lineSpace.getBoundingClientRect();ue+=Se.top+(pt=="window"?0:ia());var ve=Se.left+(pt=="window"?0:na());mt.left+=ve,mt.right+=ve}return mt.top+=ue,mt.bottom+=ue,mt}function Fd(it,lt,mt){if(mt=="div")return lt;var pt=lt.left,wt=lt.top;if(mt=="page")pt-=na(),wt-=ia();else if(mt=="local"||!mt){var Yt=it.display.sizer.getBoundingClientRect();pt+=Yt.left,wt+=Yt.top}var ue=it.display.lineSpace.getBoundingClientRect();return{left:pt-ue.left,top:wt-ue.top}}function Rc(it,lt,mt,pt,wt){return pt||(pt=mn(it.doc,lt.line)),js(it,pt,ea(it,pt,lt.ch,wt),mt)}function Wo(it,lt,mt,pt,wt,Yt){pt=pt||mn(it.doc,lt.line),wt||(wt=qa(it,pt));function ue(Gn,Jn){var oi=fl(it,wt,Gn,Jn?"right":"left",Yt);return Jn?oi.left=oi.right:oi.right=oi.left,js(it,pt,oi,mt)}var Se=tn(pt,it.doc.direction),ve=lt.ch,Te=lt.sticky;if(ve>=pt.text.length?(ve=pt.text.length,Te="before"):ve<=0&&(ve=0,Te="after"),!Se)return ue(Te=="before"?ve-1:ve,Te=="before");function $e(Gn,Jn,oi){var yi=Se[Jn],ji=yi.level==1;return ue(oi?Gn-1:Gn,ji!=oi)}var Re=fe(Se,ve,Te),fn=Zt,hn=$e(ve,Re,Te=="before");return fn!=null&&(hn.other=$e(ve,fn,Te!="before")),hn}function Od(it,lt){var mt=0;lt=vi(it.doc,lt),it.options.lineWrapping||(mt=hh(it.display)*lt.ch);var pt=mn(it.doc,lt.line),wt=di(pt)+ws(it.display);return{left:mt,right:mt,top:wt,bottom:wt+pt.height}}function Dd(it,lt,mt,pt,wt){var Yt=yn(it,lt,mt);return Yt.xRel=wt,pt&&(Yt.outside=pt),Yt}function Bd(it,lt,mt){var pt=it.doc;if(mt+=it.display.viewOffset,mt<0)return Dd(pt.first,0,null,-1,-1);var wt=ti(pt,mt),Yt=pt.first+pt.size-1;if(wt>Yt)return Dd(pt.first+pt.size-1,mn(pt,Yt).text.length,null,1,1);lt<0&&(lt=0);for(var ue=mn(pt,wt);;){var Se=bn(it,ue,wt,lt,mt),ve=Dr(ue,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!ve)return Se;var Te=ve.find(1);if(Te.line==wt)return Te;ue=mn(pt,wt=Te.line)}}function ki(it,lt,mt,pt){pt-=fs(lt);var wt=lt.text.length,Yt=ie(function(ue){return fl(it,mt,ue-1).bottom<=pt},wt,0);return wt=ie(function(ue){return fl(it,mt,ue).top>pt},Yt,wt),{begin:Yt,end:wt}}function Qf(it,lt,mt,pt){mt||(mt=qa(it,lt));var wt=js(it,lt,fl(it,mt,pt),"line").top;return ki(it,lt,mt,wt)}function ze(it,lt,mt,pt){return it.bottom<=mt?!1:it.top>mt?!0:(pt?it.left:it.right)>lt}function bn(it,lt,mt,pt,wt){wt-=di(lt);var Yt=qa(it,lt),ue=fs(lt),Se=0,ve=lt.text.length,Te=!0,$e=tn(lt,it.doc.direction);if($e){var Re=(it.options.lineWrapping?Dp:Op)(it,lt,mt,Yt,$e,pt,wt);Te=Re.level!=1,Se=Te?Re.from:Re.to-1,ve=Te?Re.to:Re.from-1}var fn=null,hn=null,Gn=ie(function(vr){var Li=fl(it,Yt,vr);return Li.top+=ue,Li.bottom+=ue,ze(Li,pt,wt,!1)?(Li.top<=wt&&Li.left<=pt&&(fn=vr,hn=Li),!0):!1},Se,ve),Jn,oi,yi=!1;if(hn){var ji=pt-hn.left<hn.right-pt,Ei=ji==Te;Gn=fn+(Ei?0:1),oi=Ei?"after":"before",Jn=ji?hn.left:hn.right}else{!Te&&(Gn==ve||Gn==Se)&&Gn++,oi=Gn==0?"after":Gn==lt.text.length?"before":fl(it,Yt,Gn-(Te?1:0)).bottom+ue<=wt==Te?"after":"before";var _i=Wo(it,yn(mt,Gn,oi),"line",lt,Yt);Jn=_i.left,yi=wt<_i.top?-1:wt>=_i.bottom?1:0}return Gn=Bt(lt.text,Gn,1),Dd(mt,Gn,oi,yi,pt-Jn)}function Op(it,lt,mt,pt,wt,Yt,ue){var Se=ie(function(Re){var fn=wt[Re],hn=fn.level!=1;return ze(Wo(it,yn(mt,hn?fn.to:fn.from,hn?"before":"after"),"line",lt,pt),Yt,ue,!0)},0,wt.length-1),ve=wt[Se];if(Se>0){var Te=ve.level!=1,$e=Wo(it,yn(mt,Te?ve.from:ve.to,Te?"after":"before"),"line",lt,pt);ze($e,Yt,ue,!0)&&$e.top>ue&&(ve=wt[Se-1])}return ve}function Dp(it,lt,mt,pt,wt,Yt,ue){var Se=ki(it,lt,pt,ue),ve=Se.begin,Te=Se.end;/\s/.test(lt.text.charAt(Te-1))&&Te--;for(var $e=null,Re=null,fn=0;fn<wt.length;fn++){var hn=wt[fn];if(!(hn.from>=Te||hn.to<=ve)){var Gn=hn.level!=1,Jn=fl(it,pt,Gn?Math.min(Te,hn.to)-1:Math.max(ve,hn.from)).right,oi=Jn<Yt?Yt-Jn+1e9:Jn-Yt;(!$e||Re>oi)&&($e=hn,Re=oi)}}return $e||($e=wt[wt.length-1]),$e.from<ve&&($e={from:ve,to:$e.to,level:$e.level}),$e.to>Te&&($e={from:$e.from,to:Te,level:$e.level}),$e}var nu;function iu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(nu==null){nu=te("pre",null,"CodeMirror-line-like");for(var lt=0;lt<49;++lt)nu.appendChild(document.createTextNode("x")),nu.appendChild(te("br"));nu.appendChild(document.createTextNode("x"))}Ot(it.measure,nu);var mt=nu.offsetHeight/50;return mt>3&&(it.cachedTextHeight=mt),Ht(it.measure),mt||1}function hh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var lt=te("span","xxxxxxxxxx"),mt=te("pre",[lt],"CodeMirror-line-like");Ot(it.measure,mt);var pt=lt.getBoundingClientRect(),wt=(pt.right-pt.left)/10;return wt>2&&(it.cachedCharWidth=wt),wt||10}function Id(it){for(var lt=it.display,mt={},pt={},wt=lt.gutters.clientLeft,Yt=lt.gutters.firstChild,ue=0;Yt;Yt=Yt.nextSibling,++ue){var Se=it.display.gutterSpecs[ue].className;mt[Se]=Yt.offsetLeft+Yt.clientLeft+wt,pt[Se]=Yt.clientWidth}return{fixedPos:jc(lt),gutterTotalWidth:lt.gutters.offsetWidth,gutterLeft:mt,gutterWidth:pt,wrapperWidth:lt.wrapper.clientWidth}}function jc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Fo(it){var lt=iu(it.display),mt=it.options.lineWrapping,pt=mt&&Math.max(5,it.display.scroller.clientWidth/hh(it.display)-3);return function(wt){if(on(it.doc,wt))return 0;var Yt=0;if(wt.widgets)for(var ue=0;ue<wt.widgets.length;ue++)wt.widgets[ue].height&&(Yt+=wt.widgets[ue].height);return mt?Yt+(Math.ceil(wt.text.length/pt)||1)*lt:Yt+lt}}function Xi(it){var lt=it.doc,mt=Fo(it);lt.iter(function(pt){var wt=mt(pt);wt!=pt.height&&En(pt,wt)})}function ra(it,lt,mt,pt){var wt=it.display;if(!mt&&pr(lt).getAttribute("cm-not-content")=="true")return null;var Yt,ue,Se=wt.lineSpace.getBoundingClientRect();try{Yt=lt.clientX-Se.left,ue=lt.clientY-Se.top}catch(Re){return null}var ve=Bd(it,Yt,ue),Te;if(pt&&ve.xRel>0&&(Te=mn(it.doc,ve.line).text).length==ve.ch){var $e=ae(Te,Te.length,it.options.tabSize)-Te.length;ve=yn(ve.line,Math.max(0,Math.round((Yt-dl(it.display).left)/hh(it.display))-$e))}return ve}function za(it,lt){if(lt>=it.display.viewTo||(lt-=it.display.viewFrom,lt<0))return null;for(var mt=it.display.view,pt=0;pt<mt.length;pt++)if(lt-=mt[pt].size,lt<0)return pt}function Oo(it,lt,mt,pt){lt==null&&(lt=it.doc.first),mt==null&&(mt=it.doc.first+it.doc.size),pt||(pt=0);var wt=it.display;if(pt&&mt<wt.viewTo&&(wt.updateLineNumbers==null||wt.updateLineNumbers>lt)&&(wt.updateLineNumbers=lt),it.curOp.viewChanged=!0,lt>=wt.viewTo)Cn&&Rn(it.doc,lt)<wt.viewTo&&is(it);else if(mt<=wt.viewFrom)Cn&&ni(it.doc,mt+pt)>wt.viewFrom?is(it):(wt.viewFrom+=pt,wt.viewTo+=pt);else if(lt<=wt.viewFrom&&mt>=wt.viewTo)is(it);else if(lt<=wt.viewFrom){var Yt=ma(it,mt,mt+pt,1);Yt?(wt.view=wt.view.slice(Yt.index),wt.viewFrom=Yt.lineN,wt.viewTo+=pt):is(it)}else if(mt>=wt.viewTo){var ue=ma(it,lt,lt,-1);ue?(wt.view=wt.view.slice(0,ue.index),wt.viewTo=ue.lineN):is(it)}else{var Se=ma(it,lt,lt,-1),ve=ma(it,mt,mt+pt,1);Se&&ve?(wt.view=wt.view.slice(0,Se.index).concat(ur(it,Se.lineN,ve.lineN)).concat(wt.view.slice(ve.index)),wt.viewTo+=pt):is(it)}var Te=wt.externalMeasured;Te&&(mt<Te.lineN?Te.lineN+=pt:lt<Te.lineN+Te.size&&(wt.externalMeasured=null))}function Tr(it,lt,mt){it.curOp.viewChanged=!0;var pt=it.display,wt=it.display.externalMeasured;if(wt&<>=wt.lineN&<<wt.lineN+wt.size&&(pt.externalMeasured=null),!(lt<pt.viewFrom||lt>=pt.viewTo)){var Yt=pt.view[za(it,lt)];if(Yt.node!=null){var ue=Yt.changes||(Yt.changes=[]);$t(ue,mt)==-1&&ue.push(mt)}}}function is(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function ma(it,lt,mt,pt){var wt=za(it,lt),Yt,ue=it.display.view;if(!Cn||mt==it.doc.first+it.doc.size)return{index:wt,lineN:mt};for(var Se=it.display.viewFrom,ve=0;ve<wt;ve++)Se+=ue[ve].size;if(Se!=lt){if(pt>0){if(wt==ue.length-1)return null;Yt=Se+ue[wt].size-lt,wt++}else Yt=Se-lt;lt+=Yt,mt+=Yt}for(;Rn(it.doc,mt)!=mt;){if(wt==(pt<0?0:ue.length-1))return null;mt+=pt*ue[wt-(pt<0?1:0)].size,wt+=pt}return{index:wt,lineN:mt}}function So(it,lt,mt){var pt=it.display,wt=pt.view;wt.length==0||lt>=pt.viewTo||mt<=pt.viewFrom?(pt.view=ur(it,lt,mt),pt.viewFrom=lt):(pt.viewFrom>lt?pt.view=ur(it,lt,pt.viewFrom).concat(pt.view):pt.viewFrom<lt&&(pt.view=pt.view.slice(za(it,lt))),pt.viewFrom=lt,pt.viewTo<mt?pt.view=pt.view.concat(ur(it,pt.viewTo,mt)):pt.viewTo>mt&&(pt.view=pt.view.slice(0,za(it,mt)))),pt.viewTo=mt}function Aa(it){for(var lt=it.display.view,mt=0,pt=0;pt<lt.length;pt++){var wt=lt[pt];!wt.hidden&&(!wt.node||wt.changes)&&++mt}return mt}function gs(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Cu(it,lt){lt===void 0&&(lt=!0);for(var mt=it.doc,pt={},wt=pt.cursors=document.createDocumentFragment(),Yt=pt.selection=document.createDocumentFragment(),ue=0;ue<mt.sel.ranges.length;ue++)if(!(!lt&&ue==mt.sel.primIndex)){var Se=mt.sel.ranges[ue];if(!(Se.from().line>=it.display.viewTo||Se.to().line<it.display.viewFrom)){var ve=Se.empty();(ve||it.options.showCursorWhenSelecting)&&Hr(it,Se.head,wt),ve||Wr(it,Se,Yt)}}return pt}function Hr(it,lt,mt){var pt=Wo(it,lt,"div",null,null,!it.options.singleCursorHeightPerLine),wt=mt.appendChild(te("div","\xA0","CodeMirror-cursor"));if(wt.style.left=pt.left+"px",wt.style.top=pt.top+"px",wt.style.height=Math.max(0,pt.bottom-pt.top)*it.options.cursorHeight+"px",pt.other){var Yt=mt.appendChild(te("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Yt.style.display="",Yt.style.left=pt.other.left+"px",Yt.style.top=pt.other.top+"px",Yt.style.height=(pt.other.bottom-pt.other.top)*.85+"px"}}function oa(it,lt){return it.top-lt.top||it.left-lt.left}function Wr(it,lt,mt){var pt=it.display,wt=it.doc,Yt=document.createDocumentFragment(),ue=dl(it.display),Se=ue.left,ve=Math.max(pt.sizerWidth,pa(it)-pt.sizer.offsetLeft)-ue.right,Te=wt.direction=="ltr";function $e(Ei,_i,vr,Li){_i<0&&(_i=0),_i=Math.round(_i),Li=Math.round(Li),Yt.appendChild(te("div",null,"CodeMirror-selected","position: absolute; left: "+Ei+`px;
|
|
top: `+_i+"px; width: "+(vr==null?ve-Ei:vr)+`px;
|
|
height: `+(Li-_i)+"px"))}function Re(Ei,_i,vr){var Li=mn(wt,Ei),Fr=Li.text.length,Do,vs;function Ho(hs,Ma){return Rc(it,yn(Ei,hs),"div",Li,Ma)}function Sa(hs,Ma,Us){var cs=Qf(it,Li,null,hs),$r=Ma=="ltr"==(Us=="after")?"left":"right",Xo=Us=="after"?cs.begin:cs.end-(/\s/.test(Li.text.charAt(cs.end-1))?2:1);return Ho(Xo,$r)[$r]}var Ys=tn(Li,wt.direction);return Wt(Ys,_i||0,vr==null?Fr:vr,function(hs,Ma,Us,cs){var $r=Us=="ltr",Xo=Ho(hs,$r?"left":"right"),Es=Ho(Ma-1,$r?"right":"left"),_s=_i==null&&hs==0,pl=vr==null&&Ma==Fr,Ko=cs==0,il=!Ys||cs==Ys.length-1;if(Es.top-Xo.top<=3){var qo=(Te?_s:pl)&&Ko,ad=(Te?pl:_s)&&il,Ga=qo?Se:($r?Xo:Es).left,Ta=ad?ve:($r?Es:Xo).right;$e(Ga,Xo.top,Ta-Ga,Xo.bottom)}else{var xa,Po,ks,Wl;$r?(xa=Te&&_s&&Ko?Se:Xo.left,Po=Te?ve:Sa(hs,Us,"before"),ks=Te?Se:Sa(Ma,Us,"after"),Wl=Te&&pl&&il?ve:Es.right):(xa=Te?Sa(hs,Us,"before"):Se,Po=!Te&&_s&&Ko?ve:Xo.right,ks=!Te&&pl&&il?Se:Es.left,Wl=Te?Sa(Ma,Us,"after"):ve),$e(xa,Xo.top,Po-xa,Xo.bottom),Xo.bottom<Es.top&&$e(Se,Xo.bottom,null,Es.top),$e(ks,Es.top,Wl-ks,Es.bottom)}(!Do||oa(Xo,Do)<0)&&(Do=Xo),oa(Es,Do)<0&&(Do=Es),(!vs||oa(Xo,vs)<0)&&(vs=Xo),oa(Es,vs)<0&&(vs=Es)}),{start:Do,end:vs}}var fn=lt.from(),hn=lt.to();if(fn.line==hn.line)Re(fn.line,fn.ch,hn.ch);else{var Gn=mn(wt,fn.line),Jn=mn(wt,hn.line),oi=Di(Gn)==Di(Jn),yi=Re(fn.line,fn.ch,oi?Gn.text.length+1:null).end,ji=Re(hn.line,oi?0:null,hn.ch).start;oi&&(yi.top<ji.top-2?($e(yi.right,yi.top,null,yi.bottom),$e(Se,ji.top,ji.left,ji.bottom)):$e(yi.right,yi.top,ji.left-yi.right,yi.bottom)),yi.bottom<ji.top&&$e(Se,yi.bottom,null,ji.top)}mt.appendChild(Yt)}function co(it){if(it.state.focused){var lt=it.display;clearInterval(lt.blinker);var mt=!0;lt.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?lt.blinker=setInterval(function(){it.hasFocus()||ch(it),lt.cursorDiv.style.visibility=(mt=!mt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(lt.cursorDiv.style.visibility="hidden")}}function Lo(it){it.state.focused||(it.display.input.focus(),Vr(it))}function jo(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,ch(it))},100)}function Vr(it,lt){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Tn(it,"focus",it,lt),it.state.focused=!0,Pe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),St&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),co(it))}function ch(it,lt){it.state.delayingBlurEvent||(it.state.focused&&(Tn(it,"blur",it,lt),it.state.focused=!1,jt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Hi(it){for(var lt=it.display,mt=lt.lineDiv.offsetTop,pt=0;pt<lt.view.length;pt++){var wt=lt.view[pt],Yt=it.options.lineWrapping,ue=void 0,Se=0;if(!wt.hidden){if(Rt&&Dt<8){var ve=wt.node.offsetTop+wt.node.offsetHeight;ue=ve-mt,mt=ve}else{var Te=wt.node.getBoundingClientRect();ue=Te.bottom-Te.top,!Yt&&wt.text.firstChild&&(Se=wt.text.firstChild.getBoundingClientRect().right-Te.left-1)}var $e=wt.line.height-ue;if(($e>.005||$e<-.005)&&(En(wt.line,ue),Bp(wt.line),wt.rest))for(var Re=0;Re<wt.rest.length;Re++)Bp(wt.rest[Re]);if(Se>it.display.sizerWidth){var fn=Math.ceil(Se/hh(it.display));fn>it.display.maxLineLength&&(it.display.maxLineLength=fn,it.display.maxLine=wt.line,it.display.maxLineChanged=!0)}}}}function Bp(it){if(it.widgets)for(var lt=0;lt<it.widgets.length;++lt){var mt=it.widgets[lt],pt=mt.node.parentNode;pt&&(mt.height=pt.offsetHeight)}}function Ur(it,lt,mt){var pt=mt&&mt.top!=null?Math.max(0,mt.top):it.scroller.scrollTop;pt=Math.floor(pt-ws(it));var wt=mt&&mt.bottom!=null?mt.bottom:pt+it.wrapper.clientHeight,Yt=ti(lt,pt),ue=ti(lt,wt);if(mt&&mt.ensure){var Se=mt.ensure.from.line,ve=mt.ensure.to.line;Se<Yt?(Yt=Se,ue=ti(lt,di(mn(lt,Se))+it.wrapper.clientHeight)):Math.min(ve,lt.lastLine())>=ue&&(Yt=ti(lt,di(mn(lt,ve))-it.wrapper.clientHeight),ue=ve)}return{from:Yt,to:Math.max(ue,Yt+1)}}function Ip(it,lt){if(!un(it,"scrollCursorIntoView")){var mt=it.display,pt=mt.sizer.getBoundingClientRect(),wt=null;if(lt.top+pt.top<0?wt=!0:lt.bottom+pt.top>(window.innerHeight||document.documentElement.clientHeight)&&(wt=!1),wt!=null&&!Ft){var Yt=te("div","\u200B",null,`position: absolute;
|
|
top: `+(lt.top-mt.viewOffset-ws(it.display))+`px;
|
|
height: `+(lt.bottom-lt.top+ta(it)+mt.barHeight)+`px;
|
|
left: `+lt.left+"px; width: "+Math.max(2,lt.right-lt.left)+"px;");it.display.lineSpace.appendChild(Yt),Yt.scrollIntoView(wt),it.display.lineSpace.removeChild(Yt)}}}function $h(it,lt,mt,pt){pt==null&&(pt=0);var wt;!it.options.lineWrapping&<==mt&&(lt=lt.ch?yn(lt.line,lt.sticky=="before"?lt.ch-1:lt.ch,"after"):lt,mt=lt.sticky=="before"?yn(lt.line,lt.ch+1,"before"):lt);for(var Yt=0;Yt<5;Yt++){var ue=!1,Se=Wo(it,lt),ve=!mt||mt==lt?Se:Wo(it,mt);wt={left:Math.min(Se.left,ve.left),top:Math.min(Se.top,ve.top)-pt,right:Math.max(Se.left,ve.left),bottom:Math.max(Se.bottom,ve.bottom)+pt};var Te=qf(it,wt),$e=it.doc.scrollTop,Re=it.doc.scrollLeft;if(Te.scrollTop!=null&&(fh(it,Te.scrollTop),Math.abs(it.doc.scrollTop-$e)>1&&(ue=!0)),Te.scrollLeft!=null&&(ou(it,Te.scrollLeft),Math.abs(it.doc.scrollLeft-Re)>1&&(ue=!0)),!ue)break}return wt}function zc(it,lt){var mt=qf(it,lt);mt.scrollTop!=null&&fh(it,mt.scrollTop),mt.scrollLeft!=null&&ou(it,mt.scrollLeft)}function qf(it,lt){var mt=it.display,pt=iu(it.display);lt.top<0&&(lt.top=0);var wt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:mt.scroller.scrollTop,Yt=lh(it),ue={};lt.bottom-lt.top>Yt&&(lt.bottom=lt.top+Yt);var Se=it.doc.height+Qa(mt),ve=lt.top<pt,Te=lt.bottom>Se-pt;if(lt.top<wt)ue.scrollTop=ve?0:lt.top;else if(lt.bottom>wt+Yt){var $e=Math.min(lt.top,(Te?Se:lt.bottom)-Yt);$e!=wt&&(ue.scrollTop=$e)}var Re=it.options.fixedGutter?0:mt.gutters.offsetWidth,fn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:mt.scroller.scrollLeft-Re,hn=pa(it)-mt.gutters.offsetWidth,Gn=lt.right-lt.left>hn;return Gn&&(lt.right=lt.left+hn),lt.left<10?ue.scrollLeft=0:lt.left<fn?ue.scrollLeft=Math.max(0,lt.left+Re-(Gn?0:10)):lt.right>hn+fn-3&&(ue.scrollLeft=lt.right+(Gn?0:10)-hn),ue}function Rd(it,lt){lt!=null&&(Rl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+lt)}function ru(it){Rl(it);var lt=it.getCursor();it.curOp.scrollToPos={from:lt,to:lt,margin:it.options.cursorScrollMargin}}function dh(it,lt,mt){(lt!=null||mt!=null)&&Rl(it),lt!=null&&(it.curOp.scrollLeft=lt),mt!=null&&(it.curOp.scrollTop=mt)}function Yr(it,lt){Rl(it),it.curOp.scrollToPos=lt}function Rl(it){var lt=it.curOp.scrollToPos;if(lt){it.curOp.scrollToPos=null;var mt=Od(it,lt.from),pt=Od(it,lt.to);jd(it,mt,pt,lt.margin)}}function jd(it,lt,mt,pt){var wt=qf(it,{left:Math.min(lt.left,mt.left),top:Math.min(lt.top,mt.top)-pt,right:Math.max(lt.right,mt.right),bottom:Math.max(lt.bottom,mt.bottom)+pt});dh(it,wt.scrollLeft,wt.scrollTop)}function fh(it,lt){Math.abs(it.doc.scrollTop-lt)<2||(Jt||Mu(it,{top:lt}),$f(it,lt,!0),Jt&&Mu(it),tc(it,100))}function $f(it,lt,mt){lt=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,lt)),!(it.display.scroller.scrollTop==lt&&!mt)&&(it.doc.scrollTop=lt,it.display.scrollbars.setScrollTop(lt),it.display.scroller.scrollTop!=lt&&(it.display.scroller.scrollTop=lt))}function ou(it,lt,mt,pt){lt=Math.max(0,Math.min(lt,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((mt?lt==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-lt)<2)&&!pt)&&(it.doc.scrollLeft=lt,_d(it),it.display.scroller.scrollLeft!=lt&&(it.display.scroller.scrollLeft=lt),it.display.scrollbars.setScrollLeft(lt))}function $a(it){var lt=it.display,mt=lt.gutters.offsetWidth,pt=Math.round(it.doc.height+Qa(it.display));return{clientHeight:lt.scroller.clientHeight,viewHeight:lt.wrapper.clientHeight,scrollWidth:lt.scroller.scrollWidth,clientWidth:lt.scroller.clientWidth,viewWidth:lt.wrapper.clientWidth,barLeft:it.options.fixedGutter?mt:0,docHeight:pt,scrollHeight:pt+ta(it)+lt.barHeight,nativeBarWidth:lt.nativeBarWidth,gutterWidth:mt}}var bu=function(it,lt,mt){this.cm=mt;var pt=this.vert=te("div",[te("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),wt=this.horiz=te("div",[te("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pt.tabIndex=wt.tabIndex=-1,it(pt),it(wt),ln(pt,"scroll",function(){pt.clientHeight&<(pt.scrollTop,"vertical")}),ln(wt,"scroll",function(){wt.clientWidth&<(wt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Rt&&Dt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bu.prototype.update=function(it){var lt=it.scrollWidth>it.clientWidth+1,mt=it.scrollHeight>it.clientHeight+1,pt=it.nativeBarWidth;if(mt){this.vert.style.display="block",this.vert.style.bottom=lt?pt+"px":"0";var wt=it.viewHeight-(lt?pt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+wt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(lt){this.horiz.style.display="block",this.horiz.style.right=mt?pt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Yt=it.viewWidth-it.barLeft-(mt?pt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Yt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(pt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:mt?pt:0,bottom:lt?pt:0}},bu.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bu.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bu.prototype.zeroWidthHack=function(){var it=st&&!Lt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _t,this.disableVert=new _t},bu.prototype.enableZeroWidthBar=function(it,lt,mt){it.style.pointerEvents="auto";function pt(){var wt=it.getBoundingClientRect(),Yt=mt=="vert"?document.elementFromPoint(wt.right-1,(wt.top+wt.bottom)/2):document.elementFromPoint((wt.right+wt.left)/2,wt.bottom-1);Yt!=it?it.style.pointerEvents="none":lt.set(1e3,pt)}lt.set(1e3,pt)},bu.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Al=function(){};Al.prototype.update=function(){return{bottom:0,right:0}},Al.prototype.setScrollLeft=function(){},Al.prototype.setScrollTop=function(){},Al.prototype.clear=function(){};function Au(it,lt){lt||(lt=$a(it));var mt=it.display.barWidth,pt=it.display.barHeight;zd(it,lt);for(var wt=0;wt<4&&mt!=it.display.barWidth||pt!=it.display.barHeight;wt++)mt!=it.display.barWidth&&it.options.lineWrapping&&Hi(it),zd(it,$a(it)),mt=it.display.barWidth,pt=it.display.barHeight}function zd(it,lt){var mt=it.display,pt=mt.scrollbars.update(lt);mt.sizer.style.paddingRight=(mt.barWidth=pt.right)+"px",mt.sizer.style.paddingBottom=(mt.barHeight=pt.bottom)+"px",mt.heightForcer.style.borderBottom=pt.bottom+"px solid transparent",pt.right&&pt.bottom?(mt.scrollbarFiller.style.display="block",mt.scrollbarFiller.style.height=pt.bottom+"px",mt.scrollbarFiller.style.width=pt.right+"px"):mt.scrollbarFiller.style.display="",pt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(mt.gutterFiller.style.display="block",mt.gutterFiller.style.height=pt.bottom+"px",mt.gutterFiller.style.width=lt.gutterWidth+"px"):mt.gutterFiller.style.display=""}var tg={native:bu,null:Al};function eg(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&jt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new tg[it.options.scrollbarStyle](function(lt){it.display.wrapper.insertBefore(lt,it.display.scrollbarFiller),ln(lt,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),lt.setAttribute("cm-not-content","true")},function(lt,mt){mt=="horizontal"?ou(it,lt):fh(it,lt)},it),it.display.scrollbars.addClass&&Pe(it.display.wrapper,it.display.scrollbars.addClass)}var Rp=0;function Lu(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:++Rp},Ti(it.curOp)}function Eu(it){var lt=it.curOp;lt&&sr(lt,function(mt){for(var pt=0;pt<mt.ops.length;pt++)mt.ops[pt].cm.curOp=null;Q0(mt)})}function Q0(it){for(var lt=it.ops,mt=0;mt<lt.length;mt++)q0(lt[mt]);for(var pt=0;pt<lt.length;pt++)$0(lt[pt]);for(var wt=0;wt<lt.length;wt++)jp(lt[wt]);for(var Yt=0;Yt<lt.length;Yt++)Yo(lt[Yt]);for(var ue=0;ue<lt.length;ue++)ku(lt[ue])}function q0(it){var lt=it.cm,mt=lt.display;zp(lt),it.updateMaxLine&&Qi(lt),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<mt.viewFrom||it.scrollToPos.to.line>=mt.viewTo)||mt.maxLineChanged&<.options.lineWrapping,it.update=it.mustUpdate&&new gh(lt,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function $0(it){it.updatedDisplay=it.mustUpdate&&Ud(it.cm,it.update)}function jp(it){var lt=it.cm,mt=lt.display;it.updatedDisplay&&Hi(lt),it.barMeasure=$a(lt),mt.maxLineChanged&&!lt.options.lineWrapping&&(it.adjustWidthTo=ea(lt,mt.maxLine,mt.maxLine.text.length).left+3,lt.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(mt.scroller.clientWidth,mt.sizer.offsetLeft+it.adjustWidthTo+ta(lt)+lt.display.barWidth),it.maxScrollLeft=Math.max(0,mt.sizer.offsetLeft+it.adjustWidthTo-pa(lt))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=mt.input.prepareSelection())}function Yo(it){var lt=it.cm;it.adjustWidthTo!=null&&(lt.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<lt.doc.scrollLeft&&ou(lt,Math.min(lt.display.scroller.scrollLeft,it.maxScrollLeft),!0),lt.display.maxLineChanged=!1);var mt=it.focus&&it.focus==me();it.preparedSelection&<.display.input.showSelection(it.preparedSelection,mt),(it.updatedDisplay||it.startHeight!=lt.doc.height)&&Au(lt,it.barMeasure),it.updatedDisplay&&Nu(lt,it.barMeasure),it.selectionChanged&&co(lt),lt.state.focused&&it.updateInput&<.display.input.reset(it.typing),mt&&Lo(it.cm)}function ku(it){var lt=it.cm,mt=lt.display,pt=lt.doc;if(it.updatedDisplay&&fo(lt,it.update),mt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(mt.wheelStartX=mt.wheelStartY=null),it.scrollTop!=null&&$f(lt,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&ou(lt,it.scrollLeft,!0,!0),it.scrollToPos){var wt=$h(lt,vi(pt,it.scrollToPos.from),vi(pt,it.scrollToPos.to),it.scrollToPos.margin);Ip(lt,wt)}var Yt=it.maybeHiddenMarkers,ue=it.maybeUnhiddenMarkers;if(Yt)for(var Se=0;Se<Yt.length;++Se)Yt[Se].lines.length||Tn(Yt[Se],"hide");if(ue)for(var ve=0;ve<ue.length;++ve)ue[ve].lines.length&&Tn(ue[ve],"unhide");mt.wrapper.offsetHeight&&(pt.scrollTop=lt.display.scroller.scrollTop),it.changeObjs&&Tn(lt,"changes",lt,it.changeObjs),it.update&&it.update.finish()}function io(it,lt){if(it.curOp)return lt();Lu(it);try{return lt()}finally{Eu(it)}}function ps(it,lt){return function(){if(it.curOp)return lt.apply(it,arguments);Lu(it);try{return lt.apply(it,arguments)}finally{Eu(it)}}}function Ps(it){return function(){if(this.curOp)return it.apply(this,arguments);Lu(this);try{return it.apply(this,arguments)}finally{Eu(this)}}}function Cs(it){return function(){var lt=this.cm;if(!lt||lt.curOp)return it.apply(this,arguments);Lu(lt);try{return it.apply(this,arguments)}finally{Eu(lt)}}}function tc(it,lt){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(lt,we(bs,it))}function bs(it){var lt=it.doc;if(!(lt.highlightFrontier>=it.display.viewTo)){var mt=+new Date+it.options.workTime,pt=to(it,lt.highlightFrontier),wt=[];lt.iter(pt.line,Math.min(lt.first+lt.size,it.display.viewTo+500),function(Yt){if(pt.line>=it.display.viewFrom){var ue=Yt.styles,Se=Yt.text.length>it.options.maxHighlightLength?Xn(lt.mode,pt.state):null,ve=$o(it,Yt,pt,!0);Se&&(pt.state=Se),Yt.styles=ve.styles;var Te=Yt.styleClasses,$e=ve.classes;$e?Yt.styleClasses=$e:Te&&(Yt.styleClasses=null);for(var Re=!ue||ue.length!=Yt.styles.length||Te!=$e&&(!Te||!$e||Te.bgClass!=$e.bgClass||Te.textClass!=$e.textClass),fn=0;!Re&&fn<ue.length;++fn)Re=ue[fn]!=Yt.styles[fn];Re&&wt.push(pt.line),Yt.stateAfter=pt.save(),pt.nextLine()}else Yt.text.length<=it.options.maxHighlightLength&&qe(it,Yt.text,pt),Yt.stateAfter=pt.line%5==0?pt.save():null,pt.nextLine();if(+new Date>mt)return tc(it,it.options.workDelay),!0}),lt.highlightFrontier=pt.line,lt.modeFrontier=Math.max(lt.modeFrontier,pt.line),wt.length&&io(it,function(){for(var Yt=0;Yt<wt.length;Yt++)Tr(it,wt[Yt],"text")})}}var gh=function(it,lt,mt){var pt=it.display;this.viewport=lt,this.visible=Ur(pt,it.doc,lt),this.editorIsHidden=!pt.wrapper.offsetWidth,this.wrapperHeight=pt.wrapper.clientHeight,this.wrapperWidth=pt.wrapper.clientWidth,this.oldDisplayWidth=pa(it),this.force=mt,this.dims=Id(it),this.events=[]};gh.prototype.signal=function(it,lt){ei(it,lt)&&this.events.push(arguments)},gh.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Tn.apply(null,this.events[it])};function zp(it){var lt=it.display;!lt.scrollbarsClipped&<.scroller.offsetWidth&&(lt.nativeBarWidth=lt.scroller.offsetWidth-lt.scroller.clientWidth,lt.heightForcer.style.height=ta(it)+"px",lt.sizer.style.marginBottom=-lt.nativeBarWidth+"px",lt.sizer.style.borderRightWidth=ta(it)+"px",lt.scrollbarsClipped=!0)}function Up(it){if(it.hasFocus())return null;var lt=me();if(!lt||!ce(it.display.lineDiv,lt))return null;var mt={activeElt:lt};if(window.getSelection){var pt=window.getSelection();pt.anchorNode&&pt.extend&&ce(it.display.lineDiv,pt.anchorNode)&&(mt.anchorNode=pt.anchorNode,mt.anchorOffset=pt.anchorOffset,mt.focusNode=pt.focusNode,mt.focusOffset=pt.focusOffset)}return mt}function va(it){if(!(!it||!it.activeElt||it.activeElt==me())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ce(document.body,it.anchorNode)&&ce(document.body,it.focusNode))){var lt=window.getSelection(),mt=document.createRange();mt.setEnd(it.anchorNode,it.anchorOffset),mt.collapse(!1),lt.removeAllRanges(),lt.addRange(mt),lt.extend(it.focusNode,it.focusOffset)}}function Ud(it,lt){var mt=it.display,pt=it.doc;if(lt.editorIsHidden)return is(it),!1;if(!lt.force&<.visible.from>=mt.viewFrom&<.visible.to<=mt.viewTo&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo)&&mt.renderedView==mt.view&&Aa(it)==0)return!1;ls(it)&&(is(it),lt.dims=Id(it));var wt=pt.first+pt.size,Yt=Math.max(lt.visible.from-it.options.viewportMargin,pt.first),ue=Math.min(wt,lt.visible.to+it.options.viewportMargin);mt.viewFrom<Yt&&Yt-mt.viewFrom<20&&(Yt=Math.max(pt.first,mt.viewFrom)),mt.viewTo>ue&&mt.viewTo-ue<20&&(ue=Math.min(wt,mt.viewTo)),Cn&&(Yt=Rn(it.doc,Yt),ue=ni(it.doc,ue));var Se=Yt!=mt.viewFrom||ue!=mt.viewTo||mt.lastWrapHeight!=lt.wrapperHeight||mt.lastWrapWidth!=lt.wrapperWidth;So(it,Yt,ue),mt.viewOffset=di(mn(it.doc,mt.viewFrom)),it.display.mover.style.top=mt.viewOffset+"px";var ve=Aa(it);if(!Se&&ve==0&&!lt.force&&mt.renderedView==mt.view&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo))return!1;var Te=Up(it);return ve>4&&(mt.lineDiv.style.display="none"),ng(it,mt.updateLineNumbers,lt.dims),ve>4&&(mt.lineDiv.style.display=""),mt.renderedView=mt.view,va(Te),Ht(mt.cursorDiv),Ht(mt.selectionDiv),mt.gutters.style.height=mt.sizer.style.minHeight=0,Se&&(mt.lastWrapHeight=lt.wrapperHeight,mt.lastWrapWidth=lt.wrapperWidth,tc(it,400)),mt.updateLineNumbers=null,!0}function fo(it,lt){for(var mt=lt.viewport,pt=!0;;pt=!1){if(!pt||!it.options.lineWrapping||lt.oldDisplayWidth==pa(it)){if(mt&&mt.top!=null&&(mt={top:Math.min(it.doc.height+Qa(it.display)-lh(it),mt.top)}),lt.visible=Ur(it.display,it.doc,mt),lt.visible.from>=it.display.viewFrom&<.visible.to<=it.display.viewTo)break}else pt&&(lt.visible=Ur(it.display,it.doc,mt));if(!Ud(it,lt))break;Hi(it);var wt=$a(it);gs(it),Au(it,wt),Nu(it,wt),lt.force=!1}lt.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(lt.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Mu(it,lt){var mt=new gh(it,lt);if(Ud(it,mt)){Hi(it),fo(it,mt);var pt=$a(it);gs(it),Au(it,pt),Nu(it,pt),mt.finish()}}function ng(it,lt,mt){var pt=it.display,wt=it.options.lineNumbers,Yt=pt.lineDiv,ue=Yt.firstChild;function Se(Gn){var Jn=Gn.nextSibling;return St&&st&&it.display.currentWheelTarget==Gn?Gn.style.display="none":Gn.parentNode.removeChild(Gn),Jn}for(var ve=pt.view,Te=pt.viewFrom,$e=0;$e<ve.length;$e++){var Re=ve[$e];if(!Re.hidden)if(!Re.node||Re.node.parentNode!=Yt){var fn=qr(it,Re,Te,mt);Yt.insertBefore(fn,ue)}else{for(;ue!=Re.node;)ue=Se(ue);var hn=wt&<!=null&<<=Te&&Re.lineNumber;Re.changes&&($t(Re.changes,"gutter")>-1&&(hn=!1),Zr(it,Re,Te,mt)),hn&&(Ht(Re.lineNumber),Re.lineNumber.appendChild(document.createTextNode(Ui(it.options,Te)))),ue=Re.node.nextSibling}Te+=Re.size}for(;ue;)ue=Se(ue)}function Tu(it){var lt=it.gutters.offsetWidth;it.sizer.style.marginLeft=lt+"px"}function Nu(it,lt){it.display.sizer.style.minHeight=lt.docHeight+"px",it.display.heightForcer.style.top=lt.docHeight+"px",it.display.gutters.style.height=lt.docHeight+it.display.barHeight+ta(it)+"px"}function _d(it){var lt=it.display,mt=lt.view;if(!(!lt.alignWidgets&&(!lt.gutters.firstChild||!it.options.fixedGutter))){for(var pt=jc(lt)-lt.scroller.scrollLeft+it.doc.scrollLeft,wt=lt.gutters.offsetWidth,Yt=pt+"px",ue=0;ue<mt.length;ue++)if(!mt[ue].hidden){it.options.fixedGutter&&(mt[ue].gutter&&(mt[ue].gutter.style.left=Yt),mt[ue].gutterBackground&&(mt[ue].gutterBackground.style.left=Yt));var Se=mt[ue].alignable;if(Se)for(var ve=0;ve<Se.length;ve++)Se[ve].style.left=Yt}it.options.fixedGutter&&(lt.gutters.style.left=pt+wt+"px")}}function ls(it){if(!it.options.lineNumbers)return!1;var lt=it.doc,mt=Ui(it.options,lt.first+lt.size-1),pt=it.display;if(mt.length!=pt.lineNumChars){var wt=pt.measure.appendChild(te("div",[te("div",mt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Yt=wt.firstChild.offsetWidth,ue=wt.offsetWidth-Yt;return pt.lineGutter.style.width="",pt.lineNumInnerWidth=Math.max(Yt,pt.lineGutter.offsetWidth-ue)+1,pt.lineNumWidth=pt.lineNumInnerWidth+ue,pt.lineNumChars=pt.lineNumInnerWidth?mt.length:-1,pt.lineGutter.style.width=pt.lineNumWidth+"px",Tu(it.display),!0}return!1}function As(it,lt){for(var mt=[],pt=!1,wt=0;wt<it.length;wt++){var Yt=it[wt],ue=null;if(typeof Yt!="string"&&(ue=Yt.style,Yt=Yt.className),Yt=="CodeMirror-linenumbers")if(lt)pt=!0;else continue;mt.push({className:Yt,style:ue})}return lt&&!pt&&mt.push({className:"CodeMirror-linenumbers",style:null}),mt}function ph(it){var lt=it.gutters,mt=it.gutterSpecs;Ht(lt),it.lineGutter=null;for(var pt=0;pt<mt.length;++pt){var wt=mt[pt],Yt=wt.className,ue=wt.style,Se=lt.appendChild(te("div",null,"CodeMirror-gutter "+Yt));ue&&(Se.style.cssText=ue),Yt=="CodeMirror-linenumbers"&&(it.lineGutter=Se,Se.style.width=(it.lineNumWidth||1)+"px")}lt.style.display=mt.length?"":"none",Tu(it)}function Ua(it){ph(it.display),Oo(it),_d(it)}function Fu(it,lt,mt,pt){var wt=this;this.input=mt,wt.scrollbarFiller=te("div",null,"CodeMirror-scrollbar-filler"),wt.scrollbarFiller.setAttribute("cm-not-content","true"),wt.gutterFiller=te("div",null,"CodeMirror-gutter-filler"),wt.gutterFiller.setAttribute("cm-not-content","true"),wt.lineDiv=ne("div",null,"CodeMirror-code"),wt.selectionDiv=te("div",null,null,"position: relative; z-index: 1"),wt.cursorDiv=te("div",null,"CodeMirror-cursors"),wt.measure=te("div",null,"CodeMirror-measure"),wt.lineMeasure=te("div",null,"CodeMirror-measure"),wt.lineSpace=ne("div",[wt.measure,wt.lineMeasure,wt.selectionDiv,wt.cursorDiv,wt.lineDiv],null,"position: relative; outline: none");var Yt=ne("div",[wt.lineSpace],"CodeMirror-lines");wt.mover=te("div",[Yt],null,"position: relative"),wt.sizer=te("div",[wt.mover],"CodeMirror-sizer"),wt.sizerWidth=null,wt.heightForcer=te("div",null,null,"position: absolute; height: "+re+"px; width: 1px;"),wt.gutters=te("div",null,"CodeMirror-gutters"),wt.lineGutter=null,wt.scroller=te("div",[wt.sizer,wt.heightForcer,wt.gutters],"CodeMirror-scroll"),wt.scroller.setAttribute("tabIndex","-1"),wt.wrapper=te("div",[wt.scrollbarFiller,wt.gutterFiller,wt.scroller],"CodeMirror"),Rt&&Dt<8&&(wt.gutters.style.zIndex=-1,wt.scroller.style.paddingRight=0),!St&&!(Jt&&tt)&&(wt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(wt.wrapper):it(wt.wrapper)),wt.viewFrom=wt.viewTo=lt.first,wt.reportedViewFrom=wt.reportedViewTo=lt.first,wt.view=[],wt.renderedView=null,wt.externalMeasured=null,wt.viewOffset=0,wt.lastWrapHeight=wt.lastWrapWidth=0,wt.updateLineNumbers=null,wt.nativeBarWidth=wt.barHeight=wt.barWidth=0,wt.scrollbarsClipped=!1,wt.lineNumWidth=wt.lineNumInnerWidth=wt.lineNumChars=null,wt.alignWidgets=!1,wt.cachedCharWidth=wt.cachedTextHeight=wt.cachedPaddingH=null,wt.maxLine=null,wt.maxLineLength=0,wt.maxLineChanged=!1,wt.wheelDX=wt.wheelDY=wt.wheelStartX=wt.wheelStartY=null,wt.shift=!1,wt.selForContextMenu=null,wt.activeTouch=null,wt.gutterSpecs=As(pt.gutters,pt.lineNumbers),ph(wt),mt.init(wt)}var La=0,rs=null;Rt?rs=-.53:Jt?rs=15:Nt?rs=-.7:Ct&&(rs=-1/3);function Ll(it){var lt=it.wheelDeltaX,mt=it.wheelDeltaY;return lt==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(lt=it.detail),mt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?mt=it.detail:mt==null&&(mt=it.wheelDelta),{x:lt,y:mt}}function _a(it){var lt=Ll(it);return lt.x*=rs,lt.y*=rs,lt}function Ls(it,lt){var mt=Ll(lt),pt=mt.x,wt=mt.y,Yt=it.display,ue=Yt.scroller,Se=ue.scrollWidth>ue.clientWidth,ve=ue.scrollHeight>ue.clientHeight;if(pt&&Se||wt&&ve){if(wt&&st&&St){t:for(var Te=lt.target,$e=Yt.view;Te!=ue;Te=Te.parentNode)for(var Re=0;Re<$e.length;Re++)if($e[Re].node==Te){it.display.currentWheelTarget=Te;break t}}if(pt&&!Jt&&!Pt&&rs!=null){wt&&ve&&fh(it,Math.max(0,ue.scrollTop+wt*rs)),ou(it,Math.max(0,ue.scrollLeft+pt*rs)),(!wt||wt&&ve)&&bi(lt),Yt.wheelStartX=null;return}if(wt&&rs!=null){var fn=wt*rs,hn=it.doc.scrollTop,Gn=hn+Yt.wrapper.clientHeight;fn<0?hn=Math.max(0,hn+fn-50):Gn=Math.min(it.doc.height,Gn+fn+50),Mu(it,{top:hn,bottom:Gn})}La<20&&(Yt.wheelStartX==null?(Yt.wheelStartX=ue.scrollLeft,Yt.wheelStartY=ue.scrollTop,Yt.wheelDX=pt,Yt.wheelDY=wt,setTimeout(function(){if(Yt.wheelStartX!=null){var Jn=ue.scrollLeft-Yt.wheelStartX,oi=ue.scrollTop-Yt.wheelStartY,yi=oi&&Yt.wheelDY&&oi/Yt.wheelDY||Jn&&Yt.wheelDX&&Jn/Yt.wheelDX;Yt.wheelStartX=Yt.wheelStartY=null,yi&&(rs=(rs*La+yi)/(La+1),++La)}},200)):(Yt.wheelDX+=pt,Yt.wheelDY+=wt))}}var tl=function(it,lt){this.ranges=it,this.primIndex=lt};tl.prototype.primary=function(){return this.ranges[this.primIndex]},tl.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var lt=0;lt<this.ranges.length;lt++){var mt=this.ranges[lt],pt=it.ranges[lt];if(!tr(mt.anchor,pt.anchor)||!tr(mt.head,pt.head))return!1}return!0},tl.prototype.deepCopy=function(){for(var it=[],lt=0;lt<this.ranges.length;lt++)it[lt]=new po(zr(this.ranges[lt].anchor),zr(this.ranges[lt].head));return new tl(it,this.primIndex)},tl.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},tl.prototype.contains=function(it,lt){lt||(lt=it);for(var mt=0;mt<this.ranges.length;mt++){var pt=this.ranges[mt];if(hi(lt,pt.from())>=0&&hi(it,pt.to())<=0)return mt}return-1};var po=function(it,lt){this.anchor=it,this.head=lt};po.prototype.from=function(){return li(this.anchor,this.head)},po.prototype.to=function(){return xr(this.anchor,this.head)},po.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gl(it,lt,mt){var pt=it&&it.options.selectionsMayTouch,wt=lt[mt];lt.sort(function(fn,hn){return hi(fn.from(),hn.from())}),mt=$t(lt,wt);for(var Yt=1;Yt<lt.length;Yt++){var ue=lt[Yt],Se=lt[Yt-1],ve=hi(Se.to(),ue.from());if(pt&&!ue.empty()?ve>0:ve>=0){var Te=li(Se.from(),ue.from()),$e=xr(Se.to(),ue.to()),Re=Se.empty()?ue.from()==ue.head:Se.from()==Se.head;Yt<=mt&&--mt,lt.splice(--Yt,2,new po(Re?$e:Te,Re?Te:$e))}}return new tl(lt,mt)}function su(it,lt){return new tl([new po(it,lt||it)],0)}function Ou(it){return it.text?yn(it.from.line+it.text.length-1,_e(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function mh(it,lt){if(hi(it,lt.from)<0)return it;if(hi(it,lt.to)<=0)return Ou(lt);var mt=it.line+lt.text.length-(lt.to.line-lt.from.line)-1,pt=it.ch;return it.line==lt.to.line&&(pt+=Ou(lt).ch-lt.to.ch),yn(mt,pt)}function Uc(it,lt){for(var mt=[],pt=0;pt<it.sel.ranges.length;pt++){var wt=it.sel.ranges[pt];mt.push(new po(mh(wt.anchor,lt),mh(wt.head,lt)))}return gl(it.cm,mt,it.sel.primIndex)}function ec(it,lt,mt){return it.line==lt.line?yn(mt.line,it.ch-lt.ch+mt.ch):yn(mt.line+(it.line-lt.line),it.ch)}function _c(it,lt,mt){for(var pt=[],wt=yn(it.first,0),Yt=wt,ue=0;ue<lt.length;ue++){var Se=lt[ue],ve=ec(Se.from,wt,Yt),Te=ec(Ou(Se),wt,Yt);if(wt=Se.to,Yt=Te,mt=="around"){var $e=it.sel.ranges[ue],Re=hi($e.head,$e.anchor)<0;pt[ue]=new po(Re?Te:ve,Re?ve:Te)}else pt[ue]=new po(ve,ve)}return new tl(pt,it.sel.primIndex)}function Nr(it){it.doc.mode=en(it.options,it.doc.modeOption),Wc(it)}function Wc(it){it.doc.iter(function(lt){lt.stateAfter&&(lt.stateAfter=null),lt.styles&&(lt.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,tc(it,100),it.state.modeGen++,it.curOp&&Oo(it)}function ig(it,lt){return lt.from.ch==0&<.to.ch==0&&_e(lt.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Wd(it,lt,mt,pt){function wt(ji){return mt?mt[ji]:null}function Yt(ji,Ei,_i){mr(ji,Ei,_i,pt),ii(ji,"change",ji,lt)}function ue(ji,Ei){for(var _i=[],vr=ji;vr<Ei;++vr)_i.push(new $i(Te[vr],wt(vr),pt));return _i}var Se=lt.from,ve=lt.to,Te=lt.text,$e=mn(it,Se.line),Re=mn(it,ve.line),fn=_e(Te),hn=wt(Te.length-1),Gn=ve.line-Se.line;if(lt.full)it.insert(0,ue(0,Te.length)),it.remove(Te.length,it.size-Te.length);else if(ig(it,lt)){var Jn=ue(0,Te.length-1);Yt(Re,Re.text,hn),Gn&&it.remove(Se.line,Gn),Jn.length&&it.insert(Se.line,Jn)}else if($e==Re)if(Te.length==1)Yt($e,$e.text.slice(0,Se.ch)+fn+$e.text.slice(ve.ch),hn);else{var oi=ue(1,Te.length-1);oi.push(new $i(fn+$e.text.slice(ve.ch),hn,pt)),Yt($e,$e.text.slice(0,Se.ch)+Te[0],wt(0)),it.insert(Se.line+1,oi)}else if(Te.length==1)Yt($e,$e.text.slice(0,Se.ch)+Te[0]+Re.text.slice(ve.ch),wt(0)),it.remove(Se.line+1,Gn);else{Yt($e,$e.text.slice(0,Se.ch)+Te[0],wt(0)),Yt(Re,fn+Re.text.slice(ve.ch),hn);var yi=ue(1,Te.length-1);Gn>1&&it.remove(Se.line+1,Gn-1),it.insert(Se.line+1,yi)}ii(it,"change",it,lt)}function El(it,lt,mt){function pt(wt,Yt,ue){if(wt.linked)for(var Se=0;Se<wt.linked.length;++Se){var ve=wt.linked[Se];if(ve.doc!=Yt){var Te=ue&&ve.sharedHist;mt&&!Te||(lt(ve.doc,Te),pt(ve.doc,wt,Te))}}}pt(it,null,!0)}function Gd(it,lt){if(lt.cm)throw new Error("This document is already in use.");it.doc=lt,lt.cm=it,Xi(it),Nr(it),Gc(it),it.options.lineWrapping||Qi(it),it.options.mode=lt.modeOption,Oo(it)}function Gc(it){(it.doc.direction=="rtl"?Pe:jt)(it.display.lineDiv,"CodeMirror-rtl")}function tv(it){io(it,function(){Gc(it),Oo(it)})}function nc(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 Hd(it,lt){var mt={from:zr(lt.from),to:Ou(lt),text:ri(it,lt.from,lt.to)};return Du(it,mt,lt.from.line,lt.to.line+1),El(it,function(pt){return Du(pt,mt,lt.from.line,lt.to.line+1)},!0),mt}function ic(it){for(;it.length;){var lt=_e(it);if(lt.ranges)it.pop();else break}}function Hc(it,lt){if(lt)return ic(it.done),_e(it.done);if(it.done.length&&!_e(it.done).ranges)return _e(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),_e(it.done)}function Kc(it,lt,mt,pt){var wt=it.history;wt.undone.length=0;var Yt=+new Date,ue,Se;if((wt.lastOp==pt||wt.lastOrigin==lt.origin&<.origin&&(lt.origin.charAt(0)=="+"&&wt.lastModTime>Yt-(it.cm?it.cm.options.historyEventDelay:500)||lt.origin.charAt(0)=="*"))&&(ue=Hc(wt,wt.lastOp==pt)))Se=_e(ue.changes),hi(lt.from,lt.to)==0&&hi(lt.from,Se.to)==0?Se.to=Ou(lt):ue.changes.push(Hd(it,lt));else{var ve=_e(wt.done);for((!ve||!ve.ranges)&&rc(it.sel,wt.done),ue={changes:[Hd(it,lt)],generation:wt.generation},wt.done.push(ue);wt.done.length>wt.undoDepth;)wt.done.shift(),wt.done[0].ranges||wt.done.shift()}wt.done.push(mt),wt.generation=++wt.maxGeneration,wt.lastModTime=wt.lastSelTime=Yt,wt.lastOp=wt.lastSelOp=pt,wt.lastOrigin=wt.lastSelOrigin=lt.origin,Se||Tn(it,"historyAdded")}function rg(it,lt,mt,pt){var wt=lt.charAt(0);return wt=="*"||wt=="+"&&mt.ranges.length==pt.ranges.length&&mt.somethingSelected()==pt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Vc(it,lt,mt,pt){var wt=it.history,Yt=pt&&pt.origin;mt==wt.lastSelOp||Yt&&wt.lastSelOrigin==Yt&&(wt.lastModTime==wt.lastSelTime&&wt.lastOrigin==Yt||rg(it,Yt,_e(wt.done),lt))?wt.done[wt.done.length-1]=lt:rc(lt,wt.done),wt.lastSelTime=+new Date,wt.lastSelOrigin=Yt,wt.lastSelOp=mt,pt&&pt.clearRedo!==!1&&ic(wt.undone)}function rc(it,lt){var mt=_e(lt);mt&&mt.ranges&&mt.equals(it)||lt.push(it)}function Du(it,lt,mt,pt){var wt=lt["spans_"+it.id],Yt=0;it.iter(Math.max(it.first,mt),Math.min(it.first+it.size,pt),function(ue){ue.markedSpans&&((wt||(wt=lt["spans_"+it.id]={}))[Yt]=ue.markedSpans),++Yt})}function sa(it){if(!it)return null;for(var lt,mt=0;mt<it.length;++mt)it[mt].marker.explicitlyCleared?lt||(lt=it.slice(0,mt)):lt&<.push(it[mt]);return lt?lt.length?lt:null:it}function jl(it,lt){var mt=lt["spans_"+it.id];if(!mt)return null;for(var pt=[],wt=0;wt<lt.text.length;++wt)pt.push(sa(mt[wt]));return pt}function Kd(it,lt){var mt=jl(it,lt),pt=Ln(it,lt);if(!mt)return pt;if(!pt)return mt;for(var wt=0;wt<mt.length;++wt){var Yt=mt[wt],ue=pt[wt];if(Yt&&ue)t:for(var Se=0;Se<ue.length;++Se){for(var ve=ue[Se],Te=0;Te<Yt.length;++Te)if(Yt[Te].marker==ve.marker)continue t;Yt.push(ve)}else ue&&(mt[wt]=ue)}return mt}function au(it,lt,mt){for(var pt=[],wt=0;wt<it.length;++wt){var Yt=it[wt];if(Yt.ranges){pt.push(mt?tl.prototype.deepCopy.call(Yt):Yt);continue}var ue=Yt.changes,Se=[];pt.push({changes:Se});for(var ve=0;ve<ue.length;++ve){var Te=ue[ve],$e=void 0;if(Se.push({from:Te.from,to:Te.to,text:Te.text}),lt)for(var Re in Te)($e=Re.match(/^spans_(\d+)$/))&&$t(lt,Number($e[1]))>-1&&(_e(Se)[Re]=Te[Re],delete Te[Re])}}return pt}function Vd(it,lt,mt,pt){if(pt){var wt=it.anchor;if(mt){var Yt=hi(lt,wt)<0;Yt!=hi(mt,wt)<0?(wt=lt,lt=mt):Yt!=hi(lt,mt)<0&&(lt=mt)}return new po(wt,lt)}else return new po(mt||lt,lt)}function Yd(it,lt,mt,pt,wt){wt==null&&(wt=it.cm&&(it.cm.display.shift||it.extend)),Vs(it,new tl([Vd(it.sel.primary(),lt,mt,wt)],0),pt)}function _p(it,lt,mt){for(var pt=[],wt=it.cm&&(it.cm.display.shift||it.extend),Yt=0;Yt<it.sel.ranges.length;Yt++)pt[Yt]=Vd(it.sel.ranges[Yt],lt[Yt],null,wt);var ue=gl(it.cm,pt,it.sel.primIndex);Vs(it,ue,mt)}function Bu(it,lt,mt,pt){var wt=it.sel.ranges.slice(0);wt[lt]=mt,Vs(it,gl(it.cm,wt,it.sel.primIndex),pt)}function vh(it,lt,mt,pt){Vs(it,su(lt,mt),pt)}function Wp(it,lt,mt){var pt={ranges:lt.ranges,update:function(wt){this.ranges=[];for(var Yt=0;Yt<wt.length;Yt++)this.ranges[Yt]=new po(vi(it,wt[Yt].anchor),vi(it,wt[Yt].head))},origin:mt&&mt.origin};return Tn(it,"beforeSelectionChange",it,pt),it.cm&&Tn(it.cm,"beforeSelectionChange",it.cm,pt),pt.ranges!=lt.ranges?gl(it.cm,pt.ranges,pt.ranges.length-1):lt}function Xd(it,lt,mt){var pt=it.history.done,wt=_e(pt);wt&&wt.ranges?(pt[pt.length-1]=lt,yh(it,lt,mt)):Vs(it,lt,mt)}function Vs(it,lt,mt){yh(it,lt,mt),Vc(it,it.sel,it.cm?it.cm.curOp.id:NaN,mt)}function yh(it,lt,mt){(ei(it,"beforeSelectionChange")||it.cm&&ei(it.cm,"beforeSelectionChange"))&&(lt=Wp(it,lt,mt));var pt=mt&&mt.bias||(hi(lt.primary().head,it.sel.primary().head)<0?-1:1);og(it,Xc(it,lt,pt,!0)),!(mt&&mt.scroll===!1)&&it.cm&&ru(it.cm)}function og(it,lt){lt.equals(it.sel)||(it.sel=lt,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,si(it.cm)),ii(it,"cursorActivity",it))}function Yc(it){og(it,Xc(it,it.sel,null,!1))}function Xc(it,lt,mt,pt){for(var wt,Yt=0;Yt<lt.ranges.length;Yt++){var ue=lt.ranges[Yt],Se=lt.ranges.length==it.sel.ranges.length&&it.sel.ranges[Yt],ve=Zc(it,ue.anchor,Se&&Se.anchor,mt,pt),Te=Zc(it,ue.head,Se&&Se.head,mt,pt);(wt||ve!=ue.anchor||Te!=ue.head)&&(wt||(wt=lt.ranges.slice(0,Yt)),wt[Yt]=new po(ve,Te))}return wt?gl(it.cm,wt,lt.primIndex):lt}function lu(it,lt,mt,pt,wt){var Yt=mn(it,lt.line);if(Yt.markedSpans)for(var ue=0;ue<Yt.markedSpans.length;++ue){var Se=Yt.markedSpans[ue],ve=Se.marker,Te="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,$e="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((Se.from==null||(Te?Se.from<=lt.ch:Se.from<lt.ch))&&(Se.to==null||($e?Se.to>=lt.ch:Se.to>lt.ch))){if(wt&&(Tn(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(Yt.markedSpans){--ue;continue}else break;if(!ve.atomic)continue;if(mt){var Re=ve.find(pt<0?1:-1),fn=void 0;if((pt<0?$e:Te)&&(Re=sg(it,Re,-pt,Re&&Re.line==lt.line?Yt:null)),Re&&Re.line==lt.line&&(fn=hi(Re,mt))&&(pt<0?fn<0:fn>0))return lu(it,Re,lt,pt,wt)}var hn=ve.find(pt<0?-1:1);return(pt<0?Te:$e)&&(hn=sg(it,hn,pt,hn.line==lt.line?Yt:null)),hn?lu(it,hn,lt,pt,wt):null}}return lt}function Zc(it,lt,mt,pt,wt){var Yt=pt||1,ue=lu(it,lt,mt,Yt,wt)||!wt&&lu(it,lt,mt,Yt,!0)||lu(it,lt,mt,-Yt,wt)||!wt&&lu(it,lt,mt,-Yt,!0);return ue||(it.cantEdit=!0,yn(it.first,0))}function sg(it,lt,mt,pt){return mt<0&<.ch==0?lt.line>it.first?vi(it,yn(lt.line-1)):null:mt>0&<.ch==(pt||mn(it,lt.line)).text.length?lt.line<it.first+it.size-1?yn(lt.line+1,0):null:new yn(lt.line,lt.ch+mt)}function os(it){it.setSelection(yn(it.firstLine(),0),yn(it.lastLine()),le)}function Jc(it,lt,mt){var pt={canceled:!1,from:lt.from,to:lt.to,text:lt.text,origin:lt.origin,cancel:function(){return pt.canceled=!0}};return mt&&(pt.update=function(wt,Yt,ue,Se){wt&&(pt.from=vi(it,wt)),Yt&&(pt.to=vi(it,Yt)),ue&&(pt.text=ue),Se!==void 0&&(pt.origin=Se)}),Tn(it,"beforeChange",it,pt),it.cm&&Tn(it.cm,"beforeChange",it.cm,pt),pt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:pt.from,to:pt.to,text:pt.text,origin:pt.origin}}function Iu(it,lt,mt){if(it.cm){if(!it.cm.curOp)return ps(it.cm,Iu)(it,lt,mt);if(it.cm.state.suppressEdits)return}if(!((ei(it,"beforeChange")||it.cm&&ei(it.cm,"beforeChange"))&&(lt=Jc(it,lt,!0),!lt))){var pt=Er&&!mt&&Wn(it,lt.from,lt.to);if(pt)for(var wt=pt.length-1;wt>=0;--wt)Sh(it,{from:pt[wt].from,to:pt[wt].to,text:wt?[""]:lt.text,origin:lt.origin});else Sh(it,lt)}}function Sh(it,lt){if(!(lt.text.length==1&<.text[0]==""&&hi(lt.from,lt.to)==0)){var mt=Uc(it,lt);Kc(it,lt,mt,it.cm?it.cm.curOp.id:NaN),oc(it,lt,mt,Ln(it,lt));var pt=[];El(it,function(wt,Yt){!Yt&&$t(pt,wt.history)==-1&&(lg(wt.history,lt),pt.push(wt.history)),oc(wt,lt,null,Ln(wt,lt))})}}function Qc(it,lt,mt){var pt=it.cm&&it.cm.state.suppressEdits;if(!(pt&&!mt)){for(var wt=it.history,Yt,ue=it.sel,Se=lt=="undo"?wt.done:wt.undone,ve=lt=="undo"?wt.undone:wt.done,Te=0;Te<Se.length&&(Yt=Se[Te],!(mt?Yt.ranges&&!Yt.equals(it.sel):!Yt.ranges));Te++);if(Te!=Se.length){for(wt.lastOrigin=wt.lastSelOrigin=null;;)if(Yt=Se.pop(),Yt.ranges){if(rc(Yt,ve),mt&&!Yt.equals(it.sel)){Vs(it,Yt,{clearRedo:!1});return}ue=Yt}else if(pt){Se.push(Yt);return}else break;var $e=[];rc(ue,ve),ve.push({changes:$e,generation:wt.generation}),wt.generation=Yt.generation||++wt.maxGeneration;for(var Re=ei(it,"beforeChange")||it.cm&&ei(it.cm,"beforeChange"),fn=function(Jn){var oi=Yt.changes[Jn];if(oi.origin=lt,Re&&!Jc(it,oi,!1))return Se.length=0,{};$e.push(Hd(it,oi));var yi=Jn?Uc(it,oi):_e(Se);oc(it,oi,yi,Kd(it,oi)),!Jn&&it.cm&&it.cm.scrollIntoView({from:oi.from,to:Ou(oi)});var ji=[];El(it,function(Ei,_i){!_i&&$t(ji,Ei.history)==-1&&(lg(Ei.history,oi),ji.push(Ei.history)),oc(Ei,oi,null,Kd(Ei,oi))})},hn=Yt.changes.length-1;hn>=0;--hn){var Gn=fn(hn);if(Gn)return Gn.v}}}}function ag(it,lt){if(lt!=0&&(it.first+=lt,it.sel=new tl(Fe(it.sel.ranges,function(wt){return new po(yn(wt.anchor.line+lt,wt.anchor.ch),yn(wt.head.line+lt,wt.head.ch))}),it.sel.primIndex),it.cm)){Oo(it.cm,it.first,it.first-lt,lt);for(var mt=it.cm.display,pt=mt.viewFrom;pt<mt.viewTo;pt++)Tr(it.cm,pt,"gutter")}}function oc(it,lt,mt,pt){if(it.cm&&!it.cm.curOp)return ps(it.cm,oc)(it,lt,mt,pt);if(lt.to.line<it.first){ag(it,lt.text.length-1-(lt.to.line-lt.from.line));return}if(!(lt.from.line>it.lastLine())){if(lt.from.line<it.first){var wt=lt.text.length-1-(it.first-lt.from.line);ag(it,wt),lt={from:yn(it.first,0),to:yn(lt.to.line+wt,lt.to.ch),text:[_e(lt.text)],origin:lt.origin}}var Yt=it.lastLine();lt.to.line>Yt&&(lt={from:lt.from,to:yn(Yt,mn(it,Yt).text.length),text:[lt.text[0]],origin:lt.origin}),lt.removed=ri(it,lt.from,lt.to),mt||(mt=Uc(it,lt)),it.cm?Gp(it.cm,lt,pt):Wd(it,lt,pt),yh(it,mt,le),it.cantEdit&&Zc(it,yn(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gp(it,lt,mt){var pt=it.doc,wt=it.display,Yt=lt.from,ue=lt.to,Se=!1,ve=Yt.line;it.options.lineWrapping||(ve=Ye(Di(mn(pt,Yt.line))),pt.iter(ve,ue.line+1,function(hn){if(hn==wt.maxLine)return Se=!0,!0})),pt.sel.contains(lt.from,lt.to)>-1&&si(it),Wd(pt,lt,mt,Fo(it)),it.options.lineWrapping||(pt.iter(ve,Yt.line+lt.text.length,function(hn){var Gn=Zi(hn);Gn>wt.maxLineLength&&(wt.maxLine=hn,wt.maxLineLength=Gn,wt.maxLineChanged=!0,Se=!1)}),Se&&(it.curOp.updateMaxLine=!0)),er(pt,Yt.line),tc(it,400);var Te=lt.text.length-(ue.line-Yt.line)-1;lt.full?Oo(it):Yt.line==ue.line&<.text.length==1&&!ig(it.doc,lt)?Tr(it,Yt.line,"text"):Oo(it,Yt.line,ue.line+1,Te);var $e=ei(it,"changes"),Re=ei(it,"change");if(Re||$e){var fn={from:Yt,to:ue,text:lt.text,removed:lt.removed,origin:lt.origin};Re&&ii(it,"change",it,fn),$e&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(fn)}it.display.selForContextMenu=null}function xh(it,lt,mt,pt,wt){var Yt;pt||(pt=mt),hi(pt,mt)<0&&(Yt=[pt,mt],mt=Yt[0],pt=Yt[1]),typeof lt=="string"&&(lt=it.splitLines(lt)),Iu(it,{from:mt,to:pt,text:lt,origin:wt})}function el(it,lt,mt,pt){mt<it.line?it.line+=pt:lt<it.line&&(it.line=lt,it.ch=0)}function Hp(it,lt,mt,pt){for(var wt=0;wt<it.length;++wt){var Yt=it[wt],ue=!0;if(Yt.ranges){Yt.copied||(Yt=it[wt]=Yt.deepCopy(),Yt.copied=!0);for(var Se=0;Se<Yt.ranges.length;Se++)el(Yt.ranges[Se].anchor,lt,mt,pt),el(Yt.ranges[Se].head,lt,mt,pt);continue}for(var ve=0;ve<Yt.changes.length;++ve){var Te=Yt.changes[ve];if(mt<Te.from.line)Te.from=yn(Te.from.line+pt,Te.from.ch),Te.to=yn(Te.to.line+pt,Te.to.ch);else if(lt<=Te.to.line){ue=!1;break}}ue||(it.splice(0,wt+1),wt=0)}}function lg(it,lt){var mt=lt.from.line,pt=lt.to.line,wt=lt.text.length-(pt-mt)-1;Hp(it.done,mt,pt,wt),Hp(it.undone,mt,pt,wt)}function wh(it,lt,mt,pt){var wt=lt,Yt=lt;return typeof lt=="number"?Yt=mn(it,ai(it,lt)):wt=Ye(lt),wt==null?null:(pt(Yt,wt)&&it.cm&&Tr(it.cm,wt,mt),Yt)}function sc(it){this.lines=it,this.parent=null;for(var lt=0,mt=0;mt<it.length;++mt)it[mt].parent=this,lt+=it[mt].height;this.height=lt}sc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,lt){for(var mt=it,pt=it+lt;mt<pt;++mt){var wt=this.lines[mt];this.height-=wt.height,_r(wt),ii(wt,"delete")}this.lines.splice(it,lt)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,lt,mt){this.height+=mt,this.lines=this.lines.slice(0,it).concat(lt).concat(this.lines.slice(it));for(var pt=0;pt<lt.length;++pt)lt[pt].parent=this},iterN:function(it,lt,mt){for(var pt=it+lt;it<pt;++it)if(mt(this.lines[it]))return!0}};function Go(it){this.children=it;for(var lt=0,mt=0,pt=0;pt<it.length;++pt){var wt=it[pt];lt+=wt.chunkSize(),mt+=wt.height,wt.parent=this}this.size=lt,this.height=mt,this.parent=null}Go.prototype={chunkSize:function(){return this.size},removeInner:function(it,lt){this.size-=lt;for(var mt=0;mt<this.children.length;++mt){var pt=this.children[mt],wt=pt.chunkSize();if(it<wt){var Yt=Math.min(lt,wt-it),ue=pt.height;if(pt.removeInner(it,Yt),this.height-=ue-pt.height,wt==Yt&&(this.children.splice(mt--,1),pt.parent=null),(lt-=Yt)==0)break;it=0}else it-=wt}if(this.size-lt<25&&(this.children.length>1||!(this.children[0]instanceof sc))){var Se=[];this.collapse(Se),this.children=[new sc(Se)],this.children[0].parent=this}},collapse:function(it){for(var lt=0;lt<this.children.length;++lt)this.children[lt].collapse(it)},insertInner:function(it,lt,mt){this.size+=lt.length,this.height+=mt;for(var pt=0;pt<this.children.length;++pt){var wt=this.children[pt],Yt=wt.chunkSize();if(it<=Yt){if(wt.insertInner(it,lt,mt),wt.lines&&wt.lines.length>50){for(var ue=wt.lines.length%25+25,Se=ue;Se<wt.lines.length;){var ve=new sc(wt.lines.slice(Se,Se+=25));wt.height-=ve.height,this.children.splice(++pt,0,ve),ve.parent=this}wt.lines=wt.lines.slice(0,ue),this.maybeSpill()}break}it-=Yt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var lt=it.children.splice(it.children.length-5,5),mt=new Go(lt);if(it.parent){it.size-=mt.size,it.height-=mt.height;var wt=$t(it.parent.children,it);it.parent.children.splice(wt+1,0,mt)}else{var pt=new Go(it.children);pt.parent=it,it.children=[pt,mt],it=pt}mt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,lt,mt){for(var pt=0;pt<this.children.length;++pt){var wt=this.children[pt],Yt=wt.chunkSize();if(it<Yt){var ue=Math.min(lt,Yt-it);if(wt.iterN(it,ue,mt))return!0;if((lt-=ue)==0)break;it=0}else it-=Yt}}};var uu=function(it,lt,mt){if(mt)for(var pt in mt)mt.hasOwnProperty(pt)&&(this[pt]=mt[pt]);this.doc=it,this.node=lt};uu.prototype.clear=function(){var it=this.doc.cm,lt=this.line.widgets,mt=this.line,pt=Ye(mt);if(!(pt==null||!lt)){for(var wt=0;wt<lt.length;++wt)lt[wt]==this&<.splice(wt--,1);lt.length||(mt.widgets=null);var Yt=Vo(this);En(mt,Math.max(0,mt.height-Yt)),it&&(io(it,function(){Kp(it,mt,-Yt),Tr(it,pt,"widget")}),ii(it,"lineWidgetCleared",it,this,pt))}},uu.prototype.changed=function(){var it=this,lt=this.height,mt=this.doc.cm,pt=this.line;this.height=null;var wt=Vo(this)-lt;wt&&(on(this.doc,pt)||En(pt,pt.height+wt),mt&&io(mt,function(){mt.curOp.forceUpdate=!0,Kp(mt,pt,wt),ii(mt,"lineWidgetChanged",mt,it,Ye(pt))}))},fi(uu);function Kp(it,lt,mt){di(lt)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Rd(it,mt)}function Zd(it,lt,mt,pt){var wt=new uu(it,mt,pt),Yt=it.cm;return Yt&&wt.noHScroll&&(Yt.display.alignWidgets=!0),wh(it,lt,"widget",function(ue){var Se=ue.widgets||(ue.widgets=[]);if(wt.insertAt==null?Se.push(wt):Se.splice(Math.min(Se.length-1,Math.max(0,wt.insertAt)),0,wt),wt.line=ue,Yt&&!on(it,ue)){var ve=di(ue)<it.scrollTop;En(ue,ue.height+Vo(wt)),ve&&Rd(Yt,wt.height),Yt.curOp.forceUpdate=!0}return!0}),Yt&&ii(Yt,"lineWidgetAdded",Yt,wt,typeof lt=="number"?lt:Ye(lt)),wt}var Vp=0,Ke=function(it,lt){this.lines=[],this.type=lt,this.doc=it,this.id=++Vp};Ke.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,lt=it&&!it.curOp;if(lt&&Lu(it),ei(this,"clear")){var mt=this.find();mt&&ii(this,"clear",mt.from,mt.to)}for(var pt=null,wt=null,Yt=0;Yt<this.lines.length;++Yt){var ue=this.lines[Yt],Se=wn(ue.markedSpans,this);it&&!this.collapsed?Tr(it,Ye(ue),"text"):it&&(Se.to!=null&&(wt=Ye(ue)),Se.from!=null&&(pt=Ye(ue))),ue.markedSpans=Me(ue.markedSpans,Se),Se.from==null&&this.collapsed&&!on(this.doc,ue)&&it&&En(ue,iu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var Te=Di(this.lines[ve]),$e=Zi(Te);$e>it.display.maxLineLength&&(it.display.maxLine=Te,it.display.maxLineLength=$e,it.display.maxLineChanged=!0)}pt!=null&&it&&this.collapsed&&Oo(it,pt,wt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Yc(it.doc)),it&&ii(it,"markerCleared",it,this,pt,wt),lt&&Eu(it),this.parent&&this.parent.clear()}},Ke.prototype.find=function(it,lt){it==null&&this.type=="bookmark"&&(it=1);for(var mt,pt,wt=0;wt<this.lines.length;++wt){var Yt=this.lines[wt],ue=wn(Yt.markedSpans,this);if(ue.from!=null&&(mt=yn(lt?Yt:Ye(Yt),ue.from),it==-1))return mt;if(ue.to!=null&&(pt=yn(lt?Yt:Ye(Yt),ue.to),it==1))return pt}return mt&&{from:mt,to:pt}},Ke.prototype.changed=function(){var it=this,lt=this.find(-1,!0),mt=this,pt=this.doc.cm;!lt||!pt||io(pt,function(){var wt=lt.line,Yt=Ye(lt.line),ue=ja(pt,Yt);if(ue&&(Jf(ue),pt.curOp.selectionChanged=pt.curOp.forceUpdate=!0),pt.curOp.updateMaxLine=!0,!on(mt.doc,wt)&&mt.height!=null){var Se=mt.height;mt.height=null;var ve=Vo(mt)-Se;ve&&En(wt,wt.height+ve)}ii(pt,"markerChanged",pt,it)})},Ke.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(!lt.maybeHiddenMarkers||$t(lt.maybeHiddenMarkers,this)==-1)&&(lt.maybeUnhiddenMarkers||(lt.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Ke.prototype.detachLine=function(it){if(this.lines.splice($t(this.lines,it),1),!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(lt.maybeHiddenMarkers||(lt.maybeHiddenMarkers=[])).push(this)}},fi(Ke);function Ph(it,lt,mt,pt,wt){if(pt&&pt.shared)return Yp(it,lt,mt,pt,wt);if(it.cm&&!it.cm.curOp)return ps(it.cm,Ph)(it,lt,mt,pt,wt);var Yt=new Ke(it,wt),ue=hi(lt,mt);if(pt&&Qe(pt,Yt,!1),ue>0||ue==0&&Yt.clearWhenEmpty!==!1)return Yt;if(Yt.replacedWith&&(Yt.collapsed=!0,Yt.widgetNode=ne("span",[Yt.replacedWith],"CodeMirror-widget"),pt.handleMouseEvents||Yt.widgetNode.setAttribute("cm-ignore-events","true"),pt.insertLeft&&(Yt.widgetNode.insertLeft=!0)),Yt.collapsed){if(or(it,lt.line,lt,mt,Yt)||lt.line!=mt.line&&or(it,mt.line,lt,mt,Yt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oe()}Yt.addToHistory&&Kc(it,{from:lt,to:mt,origin:"markText"},it.sel,NaN);var Se=lt.line,ve=it.cm,Te;if(it.iter(Se,mt.line+1,function(Re){ve&&Yt.collapsed&&!ve.options.lineWrapping&&Di(Re)==ve.display.maxLine&&(Te=!0),Yt.collapsed&&Se!=lt.line&&En(Re,0),Ie(Re,new je(Yt,Se==lt.line?lt.ch:null,Se==mt.line?mt.ch:null)),++Se}),Yt.collapsed&&it.iter(lt.line,mt.line+1,function(Re){on(it,Re)&&En(Re,0)}),Yt.clearOnEnter&&ln(Yt,"beforeCursorEnter",function(){return Yt.clear()}),Yt.readOnly&&(eo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Yt.collapsed&&(Yt.id=++Vp,Yt.atomic=!0),ve){if(Te&&(ve.curOp.updateMaxLine=!0),Yt.collapsed)Oo(ve,lt.line,mt.line+1);else if(Yt.className||Yt.startStyle||Yt.endStyle||Yt.css||Yt.attributes||Yt.title)for(var $e=lt.line;$e<=mt.line;$e++)Tr(ve,$e,"text");Yt.atomic&&Yc(ve.doc),ii(ve,"markerAdded",ve,Yt)}return Yt}var zl=function(it,lt){this.markers=it,this.primary=lt;for(var mt=0;mt<it.length;++mt)it[mt].parent=this};zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();ii(this,"clear")}},zl.prototype.find=function(it,lt){return this.primary.find(it,lt)},fi(zl);function Yp(it,lt,mt,pt,wt){pt=Qe(pt),pt.shared=!1;var Yt=[Ph(it,lt,mt,pt,wt)],ue=Yt[0],Se=pt.widgetNode;return El(it,function(ve){Se&&(pt.widgetNode=Se.cloneNode(!0)),Yt.push(Ph(ve,vi(ve,lt),vi(ve,mt),pt,wt));for(var Te=0;Te<ve.linked.length;++Te)if(ve.linked[Te].isParent)return;ue=_e(Yt)}),new zl(Yt,ue)}function ug(it){return it.findMarks(yn(it.first,0),it.clipPos(yn(it.lastLine())),function(lt){return lt.parent})}function Xp(it,lt){for(var mt=0;mt<lt.length;mt++){var pt=lt[mt],wt=pt.find(),Yt=it.clipPos(wt.from),ue=it.clipPos(wt.to);if(hi(Yt,ue)){var Se=Ph(it,Yt,ue,pt.primary,pt.primary.type);pt.markers.push(Se),Se.parent=pt}}}function hg(it){for(var lt=function(pt){var wt=it[pt],Yt=[wt.primary.doc];El(wt.primary.doc,function(ve){return Yt.push(ve)});for(var ue=0;ue<wt.markers.length;ue++){var Se=wt.markers[ue];$t(Yt,Se.doc)==-1&&(Se.parent=null,wt.markers.splice(ue--,1))}},mt=0;mt<it.length;mt++)lt(mt)}var ev=0,zs=function(it,lt,mt,pt,wt){if(!(this instanceof zs))return new zs(it,lt,mt,pt,wt);mt==null&&(mt=0),Go.call(this,[new sc([new $i("",null)])]),this.first=mt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=mt;var Yt=yn(mt,0);this.sel=su(Yt),this.history=new nc(null),this.id=++ev,this.modeOption=lt,this.lineSep=pt,this.direction=wt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Wd(this,{from:Yt,to:Yt,text:it}),Vs(this,su(Yt),le)};zs.prototype=Mt(Go.prototype,{constructor:zs,iter:function(it,lt,mt){mt?this.iterN(it-this.first,lt-it,mt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,lt){for(var mt=0,pt=0;pt<lt.length;++pt)mt+=lt[pt].height;this.insertInner(it-this.first,lt,mt)},remove:function(it,lt){this.removeInner(it-this.first,lt)},getValue:function(it){var lt=Si(this,this.first,this.first+this.size);return it===!1?lt:lt.join(it||this.lineSeparator())},setValue:Cs(function(it){var lt=yn(this.first,0),mt=this.first+this.size-1;Iu(this,{from:lt,to:yn(mt,mn(this,mt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&dh(this.cm,0,0),Vs(this,su(lt),le)}),replaceRange:function(it,lt,mt,pt){lt=vi(this,lt),mt=mt?vi(this,mt):lt,xh(this,it,lt,mt,pt)},getRange:function(it,lt,mt){var pt=ri(this,vi(this,it),vi(this,lt));return mt===!1?pt:pt.join(mt||this.lineSeparator())},getLine:function(it){var lt=this.getLineHandle(it);return lt&<.text},getLineHandle:function(it){if(xi(this,it))return mn(this,it)},getLineNumber:function(it){return Ye(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=mn(this,it)),Di(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return vi(this,it)},getCursor:function(it){var lt=this.sel.primary(),mt;return it==null||it=="head"?mt=lt.head:it=="anchor"?mt=lt.anchor:it=="end"||it=="to"||it===!1?mt=lt.to():mt=lt.from(),mt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Cs(function(it,lt,mt){vh(this,vi(this,typeof it=="number"?yn(it,lt||0):it),null,mt)}),setSelection:Cs(function(it,lt,mt){vh(this,vi(this,it),vi(this,lt||it),mt)}),extendSelection:Cs(function(it,lt,mt){Yd(this,vi(this,it),lt&&vi(this,lt),mt)}),extendSelections:Cs(function(it,lt){_p(this,Lr(this,it),lt)}),extendSelectionsBy:Cs(function(it,lt){var mt=Fe(this.sel.ranges,it);_p(this,Lr(this,mt),lt)}),setSelections:Cs(function(it,lt,mt){if(it.length){for(var pt=[],wt=0;wt<it.length;wt++)pt[wt]=new po(vi(this,it[wt].anchor),vi(this,it[wt].head));lt==null&&(lt=Math.min(it.length-1,this.sel.primIndex)),Vs(this,gl(this.cm,pt,lt),mt)}}),addSelection:Cs(function(it,lt,mt){var pt=this.sel.ranges.slice(0);pt.push(new po(vi(this,it),vi(this,lt||it))),Vs(this,gl(this.cm,pt,pt.length-1),mt)}),getSelection:function(it){for(var lt=this.sel.ranges,mt,pt=0;pt<lt.length;pt++){var wt=ri(this,lt[pt].from(),lt[pt].to());mt=mt?mt.concat(wt):wt}return it===!1?mt:mt.join(it||this.lineSeparator())},getSelections:function(it){for(var lt=[],mt=this.sel.ranges,pt=0;pt<mt.length;pt++){var wt=ri(this,mt[pt].from(),mt[pt].to());it!==!1&&(wt=wt.join(it||this.lineSeparator())),lt[pt]=wt}return lt},replaceSelection:function(it,lt,mt){for(var pt=[],wt=0;wt<this.sel.ranges.length;wt++)pt[wt]=it;this.replaceSelections(pt,lt,mt||"+input")},replaceSelections:Cs(function(it,lt,mt){for(var pt=[],wt=this.sel,Yt=0;Yt<wt.ranges.length;Yt++){var ue=wt.ranges[Yt];pt[Yt]={from:ue.from(),to:ue.to(),text:this.splitLines(it[Yt]),origin:mt}}for(var Se=lt&<!="end"&&_c(this,pt,lt),ve=pt.length-1;ve>=0;ve--)Iu(this,pt[ve]);Se?Xd(this,Se):this.cm&&ru(this.cm)}),undo:Cs(function(){Qc(this,"undo")}),redo:Cs(function(){Qc(this,"redo")}),undoSelection:Cs(function(){Qc(this,"undo",!0)}),redoSelection:Cs(function(){Qc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,lt=0,mt=0,pt=0;pt<it.done.length;pt++)it.done[pt].ranges||++lt;for(var wt=0;wt<it.undone.length;wt++)it.undone[wt].ranges||++mt;return{undo:lt,redo:mt}},clearHistory:function(){var it=this;this.history=new nc(this.history.maxGeneration),El(this,function(lt){return lt.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:au(this.history.done),undone:au(this.history.undone)}},setHistory:function(it){var lt=this.history=new nc(this.history.maxGeneration);lt.done=au(it.done.slice(0),null,!0),lt.undone=au(it.undone.slice(0),null,!0)},setGutterMarker:Cs(function(it,lt,mt){return wh(this,it,"gutter",function(pt){var wt=pt.gutterMarkers||(pt.gutterMarkers={});return wt[lt]=mt,!mt&&Kt(wt)&&(pt.gutterMarkers=null),!0})}),clearGutter:Cs(function(it){var lt=this;this.iter(function(mt){mt.gutterMarkers&&mt.gutterMarkers[it]&&wh(lt,mt,"gutter",function(){return mt.gutterMarkers[it]=null,Kt(mt.gutterMarkers)&&(mt.gutterMarkers=null),!0})})}),lineInfo:function(it){var lt;if(typeof it=="number"){if(!xi(this,it)||(lt=it,it=mn(this,it),!it))return null}else if(lt=Ye(it),lt==null)return null;return{line:lt,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:Cs(function(it,lt,mt){return wh(this,it,lt=="gutter"?"gutter":"class",function(pt){var wt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass";if(!pt[wt])pt[wt]=mt;else{if(kt(mt).test(pt[wt]))return!1;pt[wt]+=" "+mt}return!0})}),removeLineClass:Cs(function(it,lt,mt){return wh(this,it,lt=="gutter"?"gutter":"class",function(pt){var wt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass",Yt=pt[wt];if(Yt)if(mt==null)pt[wt]=null;else{var ue=Yt.match(kt(mt));if(!ue)return!1;var Se=ue.index+ue[0].length;pt[wt]=Yt.slice(0,ue.index)+(!ue.index||Se==Yt.length?"":" ")+Yt.slice(Se)||null}else return!1;return!0})}),addLineWidget:Cs(function(it,lt,mt){return Zd(this,it,lt,mt)}),removeLineWidget:function(it){it.clear()},markText:function(it,lt,mt){return Ph(this,vi(this,it),vi(this,lt),mt,mt&&mt.type||"range")},setBookmark:function(it,lt){var mt={replacedWith:lt&&(lt.nodeType==null?lt.widget:lt),insertLeft:lt&<.insertLeft,clearWhenEmpty:!1,shared:lt&<.shared,handleMouseEvents:lt&<.handleMouseEvents};return it=vi(this,it),Ph(this,it,it,mt,"bookmark")},findMarksAt:function(it){it=vi(this,it);var lt=[],mt=mn(this,it.line).markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt){var wt=mt[pt];(wt.from==null||wt.from<=it.ch)&&(wt.to==null||wt.to>=it.ch)&<.push(wt.marker.parent||wt.marker)}return lt},findMarks:function(it,lt,mt){it=vi(this,it),lt=vi(this,lt);var pt=[],wt=it.line;return this.iter(it.line,lt.line+1,function(Yt){var ue=Yt.markedSpans;if(ue)for(var Se=0;Se<ue.length;Se++){var ve=ue[Se];!(ve.to!=null&&wt==it.line&&it.ch>=ve.to||ve.from==null&&wt!=it.line||ve.from!=null&&wt==lt.line&&ve.from>=lt.ch)&&(!mt||mt(ve.marker))&&pt.push(ve.marker.parent||ve.marker)}++wt}),pt},getAllMarks:function(){var it=[];return this.iter(function(lt){var mt=lt.markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt)mt[pt].from!=null&&it.push(mt[pt].marker)}),it},posFromIndex:function(it){var lt,mt=this.first,pt=this.lineSeparator().length;return this.iter(function(wt){var Yt=wt.text.length+pt;if(Yt>it)return lt=it,!0;it-=Yt,++mt}),vi(this,yn(mt,lt))},indexFromPos:function(it){it=vi(this,it);var lt=it.ch;if(it.line<this.first||it.ch<0)return 0;var mt=this.lineSeparator().length;return this.iter(this.first,it.line,function(pt){lt+=pt.text.length+mt}),lt},copy:function(it){var lt=new zs(Si(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return lt.scrollTop=this.scrollTop,lt.scrollLeft=this.scrollLeft,lt.sel=this.sel,lt.extend=!1,it&&(lt.history.undoDepth=this.history.undoDepth,lt.setHistory(this.getHistory())),lt},linkedDoc:function(it){it||(it={});var lt=this.first,mt=this.first+this.size;it.from!=null&&it.from>lt&&(lt=it.from),it.to!=null&&it.to<mt&&(mt=it.to);var pt=new zs(Si(this,lt,mt),it.mode||this.modeOption,lt,this.lineSep,this.direction);return it.sharedHist&&(pt.history=this.history),(this.linked||(this.linked=[])).push({doc:pt,sharedHist:it.sharedHist}),pt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Xp(pt,ug(this)),pt},unlinkDoc:function(it){if(it instanceof Qr&&(it=it.doc),this.linked)for(var lt=0;lt<this.linked.length;++lt){var mt=this.linked[lt];if(mt.doc==it){this.linked.splice(lt,1),it.unlinkDoc(this),hg(ug(this));break}}if(it.history==this.history){var pt=[it.id];El(it,function(wt){return pt.push(wt.id)},!0),it.history=new nc(null),it.history.done=au(this.history.done,pt),it.history.undone=au(this.history.undone,pt)}},iterLinkedDocs:function(it){El(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:Cs(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(lt){return lt.order=null}),this.cm&&tv(this.cm))})}),zs.prototype.eachLine=zs.prototype.iter;var qc=0;function cg(it){var lt=this;if(Qp(lt),!(un(lt,it)||Ro(lt.display,it))){bi(it),Rt&&(qc=+new Date);var mt=ra(lt,it,!0),pt=it.dataTransfer.files;if(!(!mt||lt.isReadOnly()))if(pt&&pt.length&&window.FileReader&&window.File)for(var wt=pt.length,Yt=Array(wt),ue=0,Se=function(){++ue==wt&&ps(lt,function(){mt=vi(lt.doc,mt);var hn={from:mt,to:mt,text:lt.doc.splitLines(Yt.filter(function(Gn){return Gn!=null}).join(lt.doc.lineSeparator())),origin:"paste"};Iu(lt.doc,hn),Xd(lt.doc,su(vi(lt.doc,mt),vi(lt.doc,Ou(hn))))})()},ve=function(hn,Gn){if(lt.options.allowDropFileTypes&&$t(lt.options.allowDropFileTypes,hn.type)==-1){Se();return}var Jn=new FileReader;Jn.onerror=function(){return Se()},Jn.onload=function(){var oi=Jn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(oi)){Se();return}Yt[Gn]=oi,Se()},Jn.readAsText(hn)},Te=0;Te<pt.length;Te++)ve(pt[Te],Te);else{if(lt.state.draggingText&<.doc.sel.contains(mt)>-1){lt.state.draggingText(it),setTimeout(function(){return lt.display.input.focus()},20);return}try{var $e=it.dataTransfer.getData("Text");if($e){var Re;if(lt.state.draggingText&&!lt.state.draggingText.copy&&(Re=lt.listSelections()),yh(lt.doc,su(mt,mt)),Re)for(var fn=0;fn<Re.length;++fn)xh(lt.doc,"",Re[fn].anchor,Re[fn].head,"drag");lt.replaceSelection($e,"around","paste"),lt.display.input.focus()}}catch(hn){}}}}function Zp(it,lt){if(Rt&&(!it.state.draggingText||+new Date-qc<100)){Ii(lt);return}if(!(un(it,lt)||Ro(it.display,lt))&&(lt.dataTransfer.setData("Text",it.getSelection()),lt.dataTransfer.effectAllowed="copyMove",lt.dataTransfer.setDragImage&&!Ct)){var mt=te("img",null,null,"position: fixed; left: 0; top: 0;");mt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pt&&(mt.width=mt.height=1,it.display.wrapper.appendChild(mt),mt._top=mt.offsetTop),lt.dataTransfer.setDragImage(mt,0,0),Pt&&mt.parentNode.removeChild(mt)}}function Jp(it,lt){var mt=ra(it,lt);if(mt){var pt=document.createDocumentFragment();Hr(it,mt,pt),it.display.dragCursor||(it.display.dragCursor=te("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Ot(it.display.dragCursor,pt)}}function Qp(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function qp(it){if(document.getElementsByClassName){for(var lt=document.getElementsByClassName("CodeMirror"),mt=[],pt=0;pt<lt.length;pt++){var wt=lt[pt].CodeMirror;wt&&mt.push(wt)}mt.length&&mt[0].operation(function(){for(var Yt=0;Yt<mt.length;Yt++)it(mt[Yt])})}}var dg=!1;function Wa(){dg||(ac(),dg=!0)}function ac(){var it;ln(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(fg)},100))}),ln(window,"blur",function(){return qp(ch)})}function fg(it){var lt=it.display;lt.cachedCharWidth=lt.cachedTextHeight=lt.cachedPaddingH=null,lt.scrollbarsClipped=!1,it.setSize()}for(var Ul={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"},$c=0;$c<10;$c++)Ul[$c+48]=Ul[$c+96]=String($c);for(var Jd=65;Jd<=90;Jd++)Ul[Jd]=String.fromCharCode(Jd);for(var td=1;td<=12;td++)Ul[td+111]=Ul[td+63235]="F"+td;var Ea={};Ea.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"},Ea.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"},Ea.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"},Ea.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"]},Ea.default=st?Ea.macDefault:Ea.pcDefault;function gg(it){var lt=it.split(/-(?!$)/);it=lt[lt.length-1];for(var mt,pt,wt,Yt,ue=0;ue<lt.length-1;ue++){var Se=lt[ue];if(/^(cmd|meta|m)$/i.test(Se))Yt=!0;else if(/^a(lt)?$/i.test(Se))mt=!0;else if(/^(c|ctrl|control)$/i.test(Se))pt=!0;else if(/^s(hift)?$/i.test(Se))wt=!0;else throw new Error("Unrecognized modifier name: "+Se)}return mt&&(it="Alt-"+it),pt&&(it="Ctrl-"+it),Yt&&(it="Cmd-"+it),wt&&(it="Shift-"+it),it}function pg(it){var lt={};for(var mt in it)if(it.hasOwnProperty(mt)){var pt=it[mt];if(/^(name|fallthrough|(de|at)tach)$/.test(mt))continue;if(pt=="..."){delete it[mt];continue}for(var wt=Fe(mt.split(" "),gg),Yt=0;Yt<wt.length;Yt++){var ue=void 0,Se=void 0;Yt==wt.length-1?(Se=wt.join(" "),ue=pt):(Se=wt.slice(0,Yt+1).join(" "),ue="...");var ve=lt[Se];if(!ve)lt[Se]=ue;else if(ve!=ue)throw new Error("Inconsistent bindings for "+Se)}delete it[mt]}for(var Te in lt)it[Te]=lt[Te];return it}function nl(it,lt,mt,pt){lt=Ch(lt);var wt=lt.call?lt.call(it,pt):lt[it];if(wt===!1)return"nothing";if(wt==="...")return"multi";if(wt!=null&&mt(wt))return"handled";if(lt.fallthrough){if(Object.prototype.toString.call(lt.fallthrough)!="[object Array]")return nl(it,lt.fallthrough,mt,pt);for(var Yt=0;Yt<lt.fallthrough.length;Yt++){var ue=nl(it,lt.fallthrough[Yt],mt,pt);if(ue)return ue}}}function lc(it){var lt=typeof it=="string"?it:Ul[it.keyCode];return lt=="Ctrl"||lt=="Alt"||lt=="Shift"||lt=="Mod"}function mg(it,lt,mt){var pt=it;return lt.altKey&&pt!="Alt"&&(it="Alt-"+it),(gt?lt.metaKey:lt.ctrlKey)&&pt!="Ctrl"&&(it="Ctrl-"+it),(gt?lt.ctrlKey:lt.metaKey)&&pt!="Mod"&&(it="Cmd-"+it),!mt&<.shiftKey&&pt!="Shift"&&(it="Shift-"+it),it}function $p(it,lt){if(Pt&&it.keyCode==34&&it.char)return!1;var mt=Ul[it.keyCode];return mt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(mt=it.code),mg(mt,it,lt))}function Ch(it){return typeof it=="string"?Ea[it]:it}function ka(it,lt){for(var mt=it.doc.sel.ranges,pt=[],wt=0;wt<mt.length;wt++){for(var Yt=lt(mt[wt]);pt.length&&hi(Yt.from,_e(pt).to)<=0;){var ue=pt.pop();if(hi(ue.from,Yt.from)<0){Yt.from=ue.from;break}}pt.push(Yt)}io(it,function(){for(var Se=pt.length-1;Se>=0;Se--)xh(it.doc,"",pt[Se].from,pt[Se].to,"+delete");ru(it)})}function vg(it,lt,mt){var pt=Bt(it.text,lt+mt,mt);return pt<0||pt>it.text.length?null:pt}function ss(it,lt,mt){var pt=vg(it,lt.ch,mt);return pt==null?null:new yn(lt.line,pt,mt<0?"after":"before")}function ed(it,lt,mt,pt,wt){if(it){lt.doc.direction=="rtl"&&(wt=-wt);var Yt=tn(mt,lt.doc.direction);if(Yt){var ue=wt<0?_e(Yt):Yt[0],Se=wt<0==(ue.level==1),ve=Se?"after":"before",Te;if(ue.level>0||lt.doc.direction=="rtl"){var $e=qa(lt,mt);Te=wt<0?mt.text.length-1:0;var Re=fl(lt,$e,Te).top;Te=ie(function(fn){return fl(lt,$e,fn).top==Re},wt<0==(ue.level==1)?ue.from:ue.to-1,Te),ve=="before"&&(Te=vg(mt,Te,1))}else Te=wt<0?ue.to:ue.from;return new yn(pt,Te,ve)}}return new yn(pt,wt<0?mt.text.length:0,wt<0?"before":"after")}function Qd(it,lt,mt,pt){var wt=tn(lt,it.doc.direction);if(!wt)return ss(lt,mt,pt);mt.ch>=lt.text.length?(mt.ch=lt.text.length,mt.sticky="before"):mt.ch<=0&&(mt.ch=0,mt.sticky="after");var Yt=fe(wt,mt.ch,mt.sticky),ue=wt[Yt];if(it.doc.direction=="ltr"&&ue.level%2==0&&(pt>0?ue.to>mt.ch:ue.from<mt.ch))return ss(lt,mt,pt);var Se=function(yi,ji){return vg(lt,yi instanceof yn?yi.ch:yi,ji)},ve,Te=function(yi){return it.options.lineWrapping?(ve=ve||qa(it,lt),Qf(it,lt,ve,yi)):{begin:0,end:lt.text.length}},$e=Te(mt.sticky=="before"?Se(mt,-1):mt.ch);if(it.doc.direction=="rtl"||ue.level==1){var Re=ue.level==1==pt<0,fn=Se(mt,Re?1:-1);if(fn!=null&&(Re?fn<=ue.to&&fn<=$e.end:fn>=ue.from&&fn>=$e.begin)){var hn=Re?"before":"after";return new yn(mt.line,fn,hn)}}var Gn=function(yi,ji,Ei){for(var _i=function(Do,vs){return vs?new yn(mt.line,Se(Do,1),"before"):new yn(mt.line,Do,"after")};yi>=0&&yi<wt.length;yi+=ji){var vr=wt[yi],Li=ji>0==(vr.level!=1),Fr=Li?Ei.begin:Se(Ei.end,-1);if(vr.from<=Fr&&Fr<vr.to||(Fr=Li?vr.from:Se(vr.to,-1),Ei.begin<=Fr&&Fr<Ei.end))return _i(Fr,Li)}},Jn=Gn(Yt+pt,pt,$e);if(Jn)return Jn;var oi=pt>0?$e.end:Se($e.begin,-1);return oi!=null&&!(pt>0&&oi==lt.text.length)&&(Jn=Gn(pt>0?0:wt.length-1,pt,Te(oi)),Jn)?Jn:null}var Ru={selectAll:os,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),le)},killLine:function(it){return ka(it,function(lt){if(lt.empty()){var mt=mn(it.doc,lt.head.line).text.length;return lt.head.ch==mt&<.head.line<it.lastLine()?{from:lt.head,to:yn(lt.head.line+1,0)}:{from:lt.head,to:yn(lt.head.line,mt)}}else return{from:lt.from(),to:lt.to()}})},deleteLine:function(it){return ka(it,function(lt){return{from:yn(lt.from().line,0),to:vi(it.doc,yn(lt.to().line+1,0))}})},delLineLeft:function(it){return ka(it,function(lt){return{from:yn(lt.from().line,0),to:lt.from()}})},delWrappedLineLeft:function(it){return ka(it,function(lt){var mt=it.charCoords(lt.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return{from:pt,to:lt.from()}})},delWrappedLineRight:function(it){return ka(it,function(lt){var mt=it.charCoords(lt.head,"div").top+5,pt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div");return{from:lt.from(),to:pt}})},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(yn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(yn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(lt){return uc(it,lt.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(lt){return yg(it,lt.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(lt){return hc(it,lt.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(lt){var mt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div")},Ne)},goLineLeft:function(it){return it.extendSelectionsBy(function(lt){var mt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:0,top:mt},"div")},Ne)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(lt){var mt=it.cursorCoords(lt.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return pt.ch<it.getLine(pt.line).search(/\S/)?yg(it,lt.head):pt},Ne)},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 lt=[],mt=it.listSelections(),pt=it.options.tabSize,wt=0;wt<mt.length;wt++){var Yt=mt[wt].from(),ue=ae(it.getLine(Yt.line),Yt.ch,pt);lt.push(xe(pt-ue%pt))}it.replaceSelections(lt)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return io(it,function(){for(var lt=it.listSelections(),mt=[],pt=0;pt<lt.length;pt++)if(lt[pt].empty()){var wt=lt[pt].head,Yt=mn(it.doc,wt.line).text;if(Yt){if(wt.ch==Yt.length&&(wt=new yn(wt.line,wt.ch-1)),wt.ch>0)wt=new yn(wt.line,wt.ch+1),it.replaceRange(Yt.charAt(wt.ch-1)+Yt.charAt(wt.ch-2),yn(wt.line,wt.ch-2),wt,"+transpose");else if(wt.line>it.doc.first){var ue=mn(it.doc,wt.line-1).text;ue&&(wt=new yn(wt.line,1),it.replaceRange(Yt.charAt(0)+it.doc.lineSeparator()+ue.charAt(ue.length-1),yn(wt.line-1,ue.length-1),wt,"+transpose"))}}mt.push(new po(wt,wt))}it.setSelections(mt)})},newlineAndIndent:function(it){return io(it,function(){for(var lt=it.listSelections(),mt=lt.length-1;mt>=0;mt--)it.replaceRange(it.doc.lineSeparator(),lt[mt].anchor,lt[mt].head,"+input");lt=it.listSelections();for(var pt=0;pt<lt.length;pt++)it.indentLine(lt[pt].from().line,null,!0);ru(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function uc(it,lt){var mt=mn(it.doc,lt),pt=Di(mt);return pt!=mt&&(lt=Ye(pt)),ed(!0,it,pt,lt,1)}function hc(it,lt){var mt=mn(it.doc,lt),pt=wi(mt);return pt!=mt&&(lt=Ye(pt)),ed(!0,it,mt,lt,-1)}function yg(it,lt){var mt=uc(it,lt.line),pt=mn(it.doc,mt.line),wt=tn(pt,it.doc.direction);if(!wt||wt[0].level==0){var Yt=Math.max(mt.ch,pt.text.search(/\S/)),ue=lt.line==mt.line&<.ch<=Yt&<.ch;return yn(mt.line,ue?0:Yt,mt.sticky)}return mt}function cc(it,lt,mt){if(typeof lt=="string"&&(lt=Ru[lt],!lt))return!1;it.display.input.ensurePolled();var pt=it.display.shift,wt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),mt&&(it.display.shift=!1),wt=lt(it)!=pe}finally{it.display.shift=pt,it.state.suppressEdits=!1}return wt}function Sg(it,lt,mt){for(var pt=0;pt<it.state.keyMaps.length;pt++){var wt=nl(lt,it.state.keyMaps[pt],mt,it);if(wt)return wt}return it.options.extraKeys&&nl(lt,it.options.extraKeys,mt,it)||nl(lt,it.options.keyMap,mt,it)}var _l=new _t;function bh(it,lt,mt,pt){var wt=it.state.keySeq;if(wt){if(lc(lt))return"handled";if(/\'$/.test(lt)?it.state.keySeq=null:_l.set(50,function(){it.state.keySeq==wt&&(it.state.keySeq=null,it.display.input.reset())}),qd(it,wt+" "+lt,mt,pt))return!0}return qd(it,lt,mt,pt)}function qd(it,lt,mt,pt){var wt=Sg(it,lt,pt);return wt=="multi"&&(it.state.keySeq=lt),wt=="handled"&&ii(it,"keyHandled",it,lt,mt),(wt=="handled"||wt=="multi")&&(bi(mt),co(it)),!!wt}function $d(it,lt){var mt=$p(lt,!0);return mt?lt.shiftKey&&!it.state.keySeq?bh(it,"Shift-"+mt,lt,function(pt){return cc(it,pt,!0)})||bh(it,mt,lt,function(pt){if(typeof pt=="string"?/^go[A-Z]/.test(pt):pt.motion)return cc(it,pt)}):bh(it,mt,lt,function(pt){return cc(it,pt)}):!1}function tf(it,lt,mt){return bh(it,"'"+mt+"'",lt,function(pt){return cc(it,pt,!0)})}var Ah=null;function xg(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&(lt.curOp.focus=me(),!un(lt,it))){Rt&&Dt<11&&it.keyCode==27&&(it.returnValue=!1);var mt=it.keyCode;lt.display.shift=mt==16||it.shiftKey;var pt=$d(lt,it);Pt&&(Ah=pt?mt:null,!pt&&mt==88&&!cn&&(st?it.metaKey:it.ctrlKey)&<.replaceSelection("",null,"cut")),Jt&&!st&&!pt&&mt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),mt==18&&!/\bCodeMirror-crosshair\b/.test(lt.display.lineDiv.className)&&wg(lt)}}function wg(it){var lt=it.display.lineDiv;Pe(lt,"CodeMirror-crosshair");function mt(pt){(pt.keyCode==18||!pt.altKey)&&(jt(lt,"CodeMirror-crosshair"),Vn(document,"keyup",mt),Vn(document,"mouseover",mt))}ln(document,"keyup",mt),ln(document,"mouseover",mt)}function Pg(it){it.keyCode==16&&(this.doc.sel.shift=!1),un(this,it)}function kl(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&!(Ro(lt.display,it)||un(lt,it)||it.ctrlKey&&!it.altKey||st&&it.metaKey)){var mt=it.keyCode,pt=it.charCode;if(Pt&&mt==Ah){Ah=null,bi(it);return}if(!(Pt&&(!it.which||it.which<10)&&$d(lt,it))){var wt=String.fromCharCode(pt==null?mt:pt);wt!="\b"&&(tf(lt,it,wt)||lt.display.input.onKeyPress(it))}}}var tm=400,Cg=function(it,lt,mt){this.time=it,this.pos=lt,this.button=mt};Cg.prototype.compare=function(it,lt,mt){return this.time+tm>it&&hi(lt,this.pos)==0&&mt==this.button};var dc,Lh;function bg(it,lt){var mt=+new Date;return Lh&&Lh.compare(mt,it,lt)?(dc=Lh=null,"triple"):dc&&dc.compare(mt,it,lt)?(Lh=new Cg(mt,it,lt),dc=null,"double"):(dc=new Cg(mt,it,lt),Lh=null,"single")}function Ml(it){var lt=this,mt=lt.display;if(!(un(lt,it)||mt.activeTouch&&mt.input.supportsTouch())){if(mt.input.ensurePolled(),mt.shift=it.shiftKey,Ro(mt,it)){St||(mt.scroller.draggable=!1,setTimeout(function(){return mt.scroller.draggable=!0},100));return}if(!rf(lt,it)){var pt=ra(lt,it),wt=Ar(it),Yt=pt?bg(pt,wt):"single";window.focus(),wt==1&<.state.selectingText&<.state.selectingText(it),!(pt&&Ag(lt,wt,pt,Yt,it))&&(wt==1?pt?em(lt,pt,Yt,it):pr(it)==mt.scroller&&bi(it):wt==2?(pt&&Yd(lt.doc,pt),setTimeout(function(){return mt.input.focus()},20)):wt==3&&(ft?lt.display.input.onContextMenu(it):jo(lt)))}}}function Ag(it,lt,mt,pt,wt){var Yt="Click";return pt=="double"?Yt="Double"+Yt:pt=="triple"&&(Yt="Triple"+Yt),Yt=(lt==1?"Left":lt==2?"Middle":"Right")+Yt,bh(it,mg(Yt,wt),wt,function(ue){if(typeof ue=="string"&&(ue=Ru[ue]),!ue)return!1;var Se=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Se=ue(it,mt)!=pe}finally{it.state.suppressEdits=!1}return Se})}function ef(it,lt,mt){var pt=it.getOption("configureMouse"),wt=pt?pt(it,lt,mt):{};if(wt.unit==null){var Yt=rt?mt.shiftKey&&mt.metaKey:mt.altKey;wt.unit=Yt?"rectangle":lt=="single"?"char":lt=="double"?"word":"line"}return(wt.extend==null||it.doc.extend)&&(wt.extend=it.doc.extend||mt.shiftKey),wt.addNew==null&&(wt.addNew=st?mt.metaKey:mt.ctrlKey),wt.moveOnDrag==null&&(wt.moveOnDrag=!(st?mt.altKey:mt.ctrlKey)),wt}function em(it,lt,mt,pt){Rt?setTimeout(we(Lo,it),0):it.curOp.focus=me();var wt=ef(it,mt,pt),Yt=it.doc.sel,ue;it.options.dragDrop&&Or&&!it.isReadOnly()&&mt=="single"&&(ue=Yt.contains(lt))>-1&&(hi((ue=Yt.ranges[ue]).from(),lt)<0||lt.xRel>0)&&(hi(ue.to(),lt)>0||lt.xRel<0)?Lg(it,pt,lt,wt):nv(it,pt,lt,wt)}function Lg(it,lt,mt,pt){var wt=it.display,Yt=!1,ue=ps(it,function(Te){St&&(wt.scroller.draggable=!1),it.state.draggingText=!1,Vn(wt.wrapper.ownerDocument,"mouseup",ue),Vn(wt.wrapper.ownerDocument,"mousemove",Se),Vn(wt.scroller,"dragstart",ve),Vn(wt.scroller,"drop",ue),Yt||(bi(Te),pt.addNew||Yd(it.doc,mt,null,null,pt.extend),St&&!Ct||Rt&&Dt==9?setTimeout(function(){wt.wrapper.ownerDocument.body.focus({preventScroll:!0}),wt.input.focus()},20):wt.input.focus())}),Se=function(Te){Yt=Yt||Math.abs(lt.clientX-Te.clientX)+Math.abs(lt.clientY-Te.clientY)>=10},ve=function(){return Yt=!0};St&&(wt.scroller.draggable=!0),it.state.draggingText=ue,ue.copy=!pt.moveOnDrag,wt.scroller.dragDrop&&wt.scroller.dragDrop(),ln(wt.wrapper.ownerDocument,"mouseup",ue),ln(wt.wrapper.ownerDocument,"mousemove",Se),ln(wt.scroller,"dragstart",ve),ln(wt.scroller,"drop",ue),jo(it),setTimeout(function(){return wt.input.focus()},20)}function Eg(it,lt,mt){if(mt=="char")return new po(lt,lt);if(mt=="word")return it.findWordAt(lt);if(mt=="line")return new po(yn(lt.line,0),vi(it.doc,yn(lt.line+1,0)));var pt=mt(it,lt);return new po(pt.from,pt.to)}function nv(it,lt,mt,pt){var wt=it.display,Yt=it.doc;bi(lt);var ue,Se,ve=Yt.sel,Te=ve.ranges;if(pt.addNew&&!pt.extend?(Se=Yt.sel.contains(mt),Se>-1?ue=Te[Se]:ue=new po(mt,mt)):(ue=Yt.sel.primary(),Se=Yt.sel.primIndex),pt.unit=="rectangle")pt.addNew||(ue=new po(mt,mt)),mt=ra(it,lt,!0,!0),Se=-1;else{var $e=Eg(it,mt,pt.unit);pt.extend?ue=Vd(ue,$e.anchor,$e.head,pt.extend):ue=$e}pt.addNew?Se==-1?(Se=Te.length,Vs(Yt,gl(it,Te.concat([ue]),Se),{scroll:!1,origin:"*mouse"})):Te.length>1&&Te[Se].empty()&&pt.unit=="char"&&!pt.extend?(Vs(Yt,gl(it,Te.slice(0,Se).concat(Te.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),ve=Yt.sel):Bu(Yt,Se,ue,Ue):(Se=0,Vs(Yt,new tl([ue],0),Ue),ve=Yt.sel);var Re=mt;function fn(Ei){if(hi(Re,Ei)!=0)if(Re=Ei,pt.unit=="rectangle"){for(var _i=[],vr=it.options.tabSize,Li=ae(mn(Yt,mt.line).text,mt.ch,vr),Fr=ae(mn(Yt,Ei.line).text,Ei.ch,vr),Do=Math.min(Li,Fr),vs=Math.max(Li,Fr),Ho=Math.min(mt.line,Ei.line),Sa=Math.min(it.lastLine(),Math.max(mt.line,Ei.line));Ho<=Sa;Ho++){var Ys=mn(Yt,Ho).text,hs=Xe(Ys,Do,vr);Do==vs?_i.push(new po(yn(Ho,hs),yn(Ho,hs))):Ys.length>hs&&_i.push(new po(yn(Ho,hs),yn(Ho,Xe(Ys,vs,vr))))}_i.length||_i.push(new po(mt,mt)),Vs(Yt,gl(it,ve.ranges.slice(0,Se).concat(_i),Se),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Ei)}else{var Ma=ue,Us=Eg(it,Ei,pt.unit),cs=Ma.anchor,$r;hi(Us.anchor,cs)>0?($r=Us.head,cs=li(Ma.from(),Us.anchor)):($r=Us.anchor,cs=xr(Ma.to(),Us.head));var Xo=ve.ranges.slice(0);Xo[Se]=nm(it,new po(vi(Yt,cs),$r)),Vs(Yt,gl(it,Xo,Se),Ue)}}var hn=wt.wrapper.getBoundingClientRect(),Gn=0;function Jn(Ei){var _i=++Gn,vr=ra(it,Ei,!0,pt.unit=="rectangle");if(vr)if(hi(vr,Re)!=0){it.curOp.focus=me(),fn(vr);var Li=Ur(wt,Yt);(vr.line>=Li.to||vr.line<Li.from)&&setTimeout(ps(it,function(){Gn==_i&&Jn(Ei)}),150)}else{var Fr=Ei.clientY<hn.top?-20:Ei.clientY>hn.bottom?20:0;Fr&&setTimeout(ps(it,function(){Gn==_i&&(wt.scroller.scrollTop+=Fr,Jn(Ei))}),50)}}function oi(Ei){it.state.selectingText=!1,Gn=1/0,Ei&&(bi(Ei),wt.input.focus()),Vn(wt.wrapper.ownerDocument,"mousemove",yi),Vn(wt.wrapper.ownerDocument,"mouseup",ji),Yt.history.lastSelOrigin=null}var yi=ps(it,function(Ei){Ei.buttons===0||!Ar(Ei)?oi(Ei):Jn(Ei)}),ji=ps(it,oi);it.state.selectingText=ji,ln(wt.wrapper.ownerDocument,"mousemove",yi),ln(wt.wrapper.ownerDocument,"mouseup",ji)}function nm(it,lt){var mt=lt.anchor,pt=lt.head,wt=mn(it.doc,mt.line);if(hi(mt,pt)==0&&mt.sticky==pt.sticky)return lt;var Yt=tn(wt);if(!Yt)return lt;var ue=fe(Yt,mt.ch,mt.sticky),Se=Yt[ue];if(Se.from!=mt.ch&&Se.to!=mt.ch)return lt;var ve=ue+(Se.from==mt.ch==(Se.level!=1)?0:1);if(ve==0||ve==Yt.length)return lt;var Te;if(pt.line!=mt.line)Te=(pt.line-mt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var $e=fe(Yt,pt.ch,pt.sticky),Re=$e-ue||(pt.ch-mt.ch)*(Se.level==1?-1:1);$e==ve-1||$e==ve?Te=Re<0:Te=Re>0}var fn=Yt[ve+(Te?-1:0)],hn=Te==(fn.level==1),Gn=hn?fn.from:fn.to,Jn=hn?"after":"before";return mt.ch==Gn&&mt.sticky==Jn?lt:new po(new yn(mt.line,Gn,Jn),pt)}function nf(it,lt,mt,pt){var wt,Yt;if(lt.touches)wt=lt.touches[0].clientX,Yt=lt.touches[0].clientY;else try{wt=lt.clientX,Yt=lt.clientY}catch(fn){return!1}if(wt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;pt&&bi(lt);var ue=it.display,Se=ue.lineDiv.getBoundingClientRect();if(Yt>Se.bottom||!ei(it,mt))return qn(lt);Yt-=Se.top-ue.viewOffset;for(var ve=0;ve<it.display.gutterSpecs.length;++ve){var Te=ue.gutters.childNodes[ve];if(Te&&Te.getBoundingClientRect().right>=wt){var $e=ti(it.doc,Yt),Re=it.display.gutterSpecs[ve];return Tn(it,mt,it,$e,Re.className,lt),qn(lt)}}}function rf(it,lt){return nf(it,lt,"gutterClick",!0)}function of(it,lt){Ro(it.display,lt)||im(it,lt)||un(it,lt,"contextmenu")||ft||it.display.input.onContextMenu(lt)}function im(it,lt){return ei(it,"gutterContextMenu")?nf(it,lt,"gutterContextMenu",!1):!1}function sf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qh(it)}var ju={toString:function(){return"CodeMirror.Init"}},kg={},nd={};function rm(it){var lt=it.optionHandlers;function mt(pt,wt,Yt,ue){it.defaults[pt]=wt,Yt&&(lt[pt]=ue?function(Se,ve,Te){Te!=ju&&Yt(Se,ve,Te)}:Yt)}it.defineOption=mt,it.Init=ju,mt("value","",function(pt,wt){return pt.setValue(wt)},!0),mt("mode",null,function(pt,wt){pt.doc.modeOption=wt,Nr(pt)},!0),mt("indentUnit",2,Nr,!0),mt("indentWithTabs",!1),mt("smartIndent",!0),mt("tabSize",4,function(pt){Wc(pt),qh(pt),Oo(pt)},!0),mt("lineSeparator",null,function(pt,wt){if(pt.doc.lineSep=wt,!!wt){var Yt=[],ue=pt.doc.first;pt.doc.iter(function(ve){for(var Te=0;;){var $e=ve.text.indexOf(wt,Te);if($e==-1)break;Te=$e+wt.length,Yt.push(yn(ue,$e))}ue++});for(var Se=Yt.length-1;Se>=0;Se--)xh(pt.doc,wt,Yt[Se],yn(Yt[Se].line,Yt[Se].ch+wt.length))}}),mt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pt,wt,Yt){pt.state.specialChars=new RegExp(wt.source+(wt.test(" ")?"":"| "),"g"),Yt!=ju&&pt.refresh()}),mt("specialCharPlaceholder",Kr,function(pt){return pt.refresh()},!0),mt("electricChars",!0),mt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),mt("spellcheck",!1,function(pt,wt){return pt.getInputField().spellcheck=wt},!0),mt("autocorrect",!1,function(pt,wt){return pt.getInputField().autocorrect=wt},!0),mt("autocapitalize",!1,function(pt,wt){return pt.getInputField().autocapitalize=wt},!0),mt("rtlMoveVisually",!ut),mt("wholeLineUpdateBefore",!0),mt("theme","default",function(pt){sf(pt),Ua(pt)},!0),mt("keyMap","default",function(pt,wt,Yt){var ue=Ch(wt),Se=Yt!=ju&&Ch(Yt);Se&&Se.detach&&Se.detach(pt,ue),ue.attach&&ue.attach(pt,Se||null)}),mt("extraKeys",null),mt("configureMouse",null),mt("lineWrapping",!1,om,!0),mt("gutters",[],function(pt,wt){pt.display.gutterSpecs=As(wt,pt.options.lineNumbers),Ua(pt)},!0),mt("fixedGutter",!0,function(pt,wt){pt.display.gutters.style.left=wt?jc(pt.display)+"px":"0",pt.refresh()},!0),mt("coverGutterNextToScrollbar",!1,function(pt){return Au(pt)},!0),mt("scrollbarStyle","native",function(pt){eg(pt),Au(pt),pt.display.scrollbars.setScrollTop(pt.doc.scrollTop),pt.display.scrollbars.setScrollLeft(pt.doc.scrollLeft)},!0),mt("lineNumbers",!1,function(pt,wt){pt.display.gutterSpecs=As(pt.options.gutters,wt),Ua(pt)},!0),mt("firstLineNumber",1,Ua,!0),mt("lineNumberFormatter",function(pt){return pt},Ua,!0),mt("showCursorWhenSelecting",!1,gs,!0),mt("resetSelectionOnContextMenu",!0),mt("lineWiseCopyCut",!0),mt("pasteLinesPerSelection",!0),mt("selectionsMayTouch",!1),mt("readOnly",!1,function(pt,wt){wt=="nocursor"&&(ch(pt),pt.display.input.blur()),pt.display.input.readOnlyChanged(wt)}),mt("screenReaderLabel",null,function(pt,wt){wt=wt===""?null:wt,pt.display.input.screenReaderLabelChanged(wt)}),mt("disableInput",!1,function(pt,wt){wt||pt.display.input.reset()},!0),mt("dragDrop",!0,af),mt("allowDropFileTypes",null),mt("cursorBlinkRate",530),mt("cursorScrollMargin",0),mt("cursorHeight",1,gs,!0),mt("singleCursorHeightPerLine",!0,gs,!0),mt("workTime",100),mt("workDelay",100),mt("flattenSpans",!0,Wc,!0),mt("addModeClass",!1,Wc,!0),mt("pollInterval",100),mt("undoDepth",200,function(pt,wt){return pt.doc.history.undoDepth=wt}),mt("historyEventDelay",1250),mt("viewportMargin",10,function(pt){return pt.refresh()},!0),mt("maxHighlightLength",1e4,Wc,!0),mt("moveInputWithCursor",!0,function(pt,wt){wt||pt.display.input.resetPosition()}),mt("tabindex",null,function(pt,wt){return pt.display.input.getField().tabIndex=wt||""}),mt("autofocus",null),mt("direction","ltr",function(pt,wt){return pt.doc.setDirection(wt)},!0),mt("phrases",null)}function af(it,lt,mt){var pt=mt&&mt!=ju;if(!lt!=!pt){var wt=it.display.dragFunctions,Yt=lt?ln:Vn;Yt(it.display.scroller,"dragstart",wt.start),Yt(it.display.scroller,"dragenter",wt.enter),Yt(it.display.scroller,"dragover",wt.over),Yt(it.display.scroller,"dragleave",wt.leave),Yt(it.display.scroller,"drop",wt.drop)}}function om(it){it.options.lineWrapping?(Pe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(jt(it.display.wrapper,"CodeMirror-wrap"),Qi(it)),Xi(it),Oo(it),qh(it),setTimeout(function(){return Au(it)},100)}function Qr(it,lt){var mt=this;if(!(this instanceof Qr))return new Qr(it,lt);this.options=lt=lt?Qe(lt):{},Qe(kg,lt,!1);var pt=lt.value;typeof pt=="string"?pt=new zs(pt,lt.mode,null,lt.lineSeparator,lt.direction):lt.mode&&(pt.modeOption=lt.mode),this.doc=pt;var wt=new Qr.inputStyles[lt.inputStyle](this),Yt=this.display=new Fu(it,pt,wt,lt);Yt.wrapper.CodeMirror=this,sf(this),lt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),eg(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 _t,keySeq:null,specialChars:null},lt.autofocus&&!tt&&Yt.input.focus(),Rt&&Dt<11&&setTimeout(function(){return mt.display.input.reset(!0)},20),fc(this),Wa(),Lu(this),this.curOp.forceUpdate=!0,Gd(this,pt),lt.autofocus&&!tt||this.hasFocus()?setTimeout(function(){mt.hasFocus()&&!mt.state.focused&&Vr(mt)},20):ch(this);for(var ue in nd)nd.hasOwnProperty(ue)&&nd[ue](this,lt[ue],ju);ls(this),lt.finishInit&<.finishInit(this);for(var Se=0;Se<Eh.length;++Se)Eh[Se](this);Eu(this),St&<.lineWrapping&&getComputedStyle(Yt.lineDiv).textRendering=="optimizelegibility"&&(Yt.lineDiv.style.textRendering="auto")}Qr.defaults=kg,Qr.optionHandlers=nd;function fc(it){var lt=it.display;ln(lt.scroller,"mousedown",ps(it,Ml)),Rt&&Dt<11?ln(lt.scroller,"dblclick",ps(it,function(ve){if(!un(it,ve)){var Te=ra(it,ve);if(!(!Te||rf(it,ve)||Ro(it.display,ve))){bi(ve);var $e=it.findWordAt(Te);Yd(it.doc,$e.anchor,$e.head)}}})):ln(lt.scroller,"dblclick",function(ve){return un(it,ve)||bi(ve)}),ln(lt.scroller,"contextmenu",function(ve){return of(it,ve)}),ln(lt.input.getField(),"contextmenu",function(ve){lt.scroller.contains(ve.target)||of(it,ve)});var mt,pt={end:0};function wt(){lt.activeTouch&&(mt=setTimeout(function(){return lt.activeTouch=null},1e3),pt=lt.activeTouch,pt.end=+new Date)}function Yt(ve){if(ve.touches.length!=1)return!1;var Te=ve.touches[0];return Te.radiusX<=1&&Te.radiusY<=1}function ue(ve,Te){if(Te.left==null)return!0;var $e=Te.left-ve.left,Re=Te.top-ve.top;return $e*$e+Re*Re>20*20}ln(lt.scroller,"touchstart",function(ve){if(!un(it,ve)&&!Yt(ve)&&!rf(it,ve)){lt.input.ensurePolled(),clearTimeout(mt);var Te=+new Date;lt.activeTouch={start:Te,moved:!1,prev:Te-pt.end<=300?pt:null},ve.touches.length==1&&(lt.activeTouch.left=ve.touches[0].pageX,lt.activeTouch.top=ve.touches[0].pageY)}}),ln(lt.scroller,"touchmove",function(){lt.activeTouch&&(lt.activeTouch.moved=!0)}),ln(lt.scroller,"touchend",function(ve){var Te=lt.activeTouch;if(Te&&!Ro(lt,ve)&&Te.left!=null&&!Te.moved&&new Date-Te.start<300){var $e=it.coordsChar(lt.activeTouch,"page"),Re;!Te.prev||ue(Te,Te.prev)?Re=new po($e,$e):!Te.prev.prev||ue(Te,Te.prev.prev)?Re=it.findWordAt($e):Re=new po(yn($e.line,0),vi(it.doc,yn($e.line+1,0))),it.setSelection(Re.anchor,Re.head),it.focus(),bi(ve)}wt()}),ln(lt.scroller,"touchcancel",wt),ln(lt.scroller,"scroll",function(){lt.scroller.clientHeight&&(fh(it,lt.scroller.scrollTop),ou(it,lt.scroller.scrollLeft,!0),Tn(it,"scroll",it))}),ln(lt.scroller,"mousewheel",function(ve){return Ls(it,ve)}),ln(lt.scroller,"DOMMouseScroll",function(ve){return Ls(it,ve)}),ln(lt.wrapper,"scroll",function(){return lt.wrapper.scrollTop=lt.wrapper.scrollLeft=0}),lt.dragFunctions={enter:function(ve){un(it,ve)||Ii(ve)},over:function(ve){un(it,ve)||(Jp(it,ve),Ii(ve))},start:function(ve){return Zp(it,ve)},drop:ps(it,cg),leave:function(ve){un(it,ve)||Qp(it)}};var Se=lt.input.getField();ln(Se,"keyup",function(ve){return Pg.call(it,ve)}),ln(Se,"keydown",ps(it,xg)),ln(Se,"keypress",ps(it,kl)),ln(Se,"focus",function(ve){return Vr(it,ve)}),ln(Se,"blur",function(ve){return ch(it,ve)})}var Eh=[];Qr.defineInitHook=function(it){return Eh.push(it)};function ms(it,lt,mt,pt){var wt=it.doc,Yt;mt==null&&(mt="add"),mt=="smart"&&(wt.mode.indent?Yt=to(it,lt).state:mt="prev");var ue=it.options.tabSize,Se=mn(wt,lt),ve=ae(Se.text,null,ue);Se.stateAfter&&(Se.stateAfter=null);var Te=Se.text.match(/^\s*/)[0],$e;if(!pt&&!/\S/.test(Se.text))$e=0,mt="not";else if(mt=="smart"&&($e=wt.mode.indent(Yt,Se.text.slice(Te.length),Se.text),$e==pe||$e>150)){if(!pt)return;mt="prev"}mt=="prev"?lt>wt.first?$e=ae(mn(wt,lt-1).text,null,ue):$e=0:mt=="add"?$e=ve+it.options.indentUnit:mt=="subtract"?$e=ve-it.options.indentUnit:typeof mt=="number"&&($e=ve+mt),$e=Math.max(0,$e);var Re="",fn=0;if(it.options.indentWithTabs)for(var hn=Math.floor($e/ue);hn;--hn)fn+=ue,Re+=" ";if(fn<$e&&(Re+=xe($e-fn)),Re!=Te)return xh(wt,Re,yn(lt,0),yn(lt,Te.length),"+input"),Se.stateAfter=null,!0;for(var Gn=0;Gn<wt.sel.ranges.length;Gn++){var Jn=wt.sel.ranges[Gn];if(Jn.head.line==lt&&Jn.head.ch<Te.length){var oi=yn(lt,Te.length);Bu(wt,Gn,new po(oi,oi));break}}}var ya=null;function kh(it){ya=it}function id(it,lt,mt,pt,wt){var Yt=it.doc;it.display.shift=!1,pt||(pt=Yt.sel);var ue=+new Date-200,Se=wt=="paste"||it.state.pasteIncoming>ue,ve=vn(lt),Te=null;if(Se&&pt.ranges.length>1)if(ya&&ya.text.join(`
|
|
`)==lt){if(pt.ranges.length%ya.text.length==0){Te=[];for(var $e=0;$e<ya.text.length;$e++)Te.push(Yt.splitLines(ya.text[$e]))}}else ve.length==pt.ranges.length&&it.options.pasteLinesPerSelection&&(Te=Fe(ve,function(yi){return[yi]}));for(var Re=it.curOp.updateInput,fn=pt.ranges.length-1;fn>=0;fn--){var hn=pt.ranges[fn],Gn=hn.from(),Jn=hn.to();hn.empty()&&(mt&&mt>0?Gn=yn(Gn.line,Gn.ch-mt):it.state.overwrite&&!Se?Jn=yn(Jn.line,Math.min(mn(Yt,Jn.line).text.length,Jn.ch+_e(ve).length)):Se&&ya&&ya.lineWise&&ya.text.join(`
|
|
`)==ve.join(`
|
|
`)&&(Gn=Jn=yn(Gn.line,0)));var oi={from:Gn,to:Jn,text:Te?Te[fn%Te.length]:ve,origin:wt||(Se?"paste":it.state.cutIncoming>ue?"cut":"+input")};Iu(it.doc,oi),ii(it,"inputRead",it,oi)}lt&&!Se&&Tg(it,lt),ru(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Re),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Mg(it,lt){var mt=it.clipboardData&&it.clipboardData.getData("Text");if(mt)return it.preventDefault(),!lt.isReadOnly()&&!lt.options.disableInput&&io(lt,function(){return id(lt,mt,0,null,"paste")}),!0}function Tg(it,lt){if(!(!it.options.electricChars||!it.options.smartIndent))for(var mt=it.doc.sel,pt=mt.ranges.length-1;pt>=0;pt--){var wt=mt.ranges[pt];if(!(wt.head.ch>100||pt&&mt.ranges[pt-1].head.line==wt.head.line)){var Yt=it.getModeAt(wt.head),ue=!1;if(Yt.electricChars){for(var Se=0;Se<Yt.electricChars.length;Se++)if(lt.indexOf(Yt.electricChars.charAt(Se))>-1){ue=ms(it,wt.head.line,"smart");break}}else Yt.electricInput&&Yt.electricInput.test(mn(it.doc,wt.head.line).text.slice(0,wt.head.ch))&&(ue=ms(it,wt.head.line,"smart"));ue&&ii(it,"electricInput",it,wt.head.line)}}}function Ng(it){for(var lt=[],mt=[],pt=0;pt<it.doc.sel.ranges.length;pt++){var wt=it.doc.sel.ranges[pt].head.line,Yt={anchor:yn(wt,0),head:yn(wt+1,0)};mt.push(Yt),lt.push(it.getRange(Yt.anchor,Yt.head))}return{text:lt,ranges:mt}}function Fg(it,lt,mt,pt){it.setAttribute("autocorrect",mt?"":"off"),it.setAttribute("autocapitalize",pt?"":"off"),it.setAttribute("spellcheck",!!lt)}function Og(){var it=te("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),lt=te("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return St?it.style.width="1000px":it.setAttribute("wrap","off"),vt&&(it.style.border="1px solid black"),Fg(it),lt}function zu(it){var lt=it.optionHandlers,mt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pt,wt){var Yt=this.options,ue=Yt[pt];Yt[pt]==wt&&pt!="mode"||(Yt[pt]=wt,lt.hasOwnProperty(pt)&&ps(this,lt[pt])(this,wt,ue),Tn(this,"optionChange",this,pt))},getOption:function(pt){return this.options[pt]},getDoc:function(){return this.doc},addKeyMap:function(pt,wt){this.state.keyMaps[wt?"push":"unshift"](Ch(pt))},removeKeyMap:function(pt){for(var wt=this.state.keyMaps,Yt=0;Yt<wt.length;++Yt)if(wt[Yt]==pt||wt[Yt].name==pt)return wt.splice(Yt,1),!0},addOverlay:Ps(function(pt,wt){var Yt=pt.token?pt:it.getMode(this.options,pt);if(Yt.startState)throw new Error("Overlays may not be stateful.");Ae(this.state.overlays,{mode:Yt,modeSpec:pt,opaque:wt&&wt.opaque,priority:wt&&wt.priority||0},function(ue){return ue.priority}),this.state.modeGen++,Oo(this)}),removeOverlay:Ps(function(pt){for(var wt=this.state.overlays,Yt=0;Yt<wt.length;++Yt){var ue=wt[Yt].modeSpec;if(ue==pt||typeof pt=="string"&&ue.name==pt){wt.splice(Yt,1),this.state.modeGen++,Oo(this);return}}}),indentLine:Ps(function(pt,wt,Yt){typeof wt!="string"&&typeof wt!="number"&&(wt==null?wt=this.options.smartIndent?"smart":"prev":wt=wt?"add":"subtract"),xi(this.doc,pt)&&ms(this,pt,wt,Yt)}),indentSelection:Ps(function(pt){for(var wt=this.doc.sel.ranges,Yt=-1,ue=0;ue<wt.length;ue++){var Se=wt[ue];if(Se.empty())Se.head.line>Yt&&(ms(this,Se.head.line,pt,!0),Yt=Se.head.line,ue==this.doc.sel.primIndex&&ru(this));else{var ve=Se.from(),Te=Se.to(),$e=Math.max(Yt,ve.line);Yt=Math.min(this.lastLine(),Te.line-(Te.ch?0:1))+1;for(var Re=$e;Re<Yt;++Re)ms(this,Re,pt);var fn=this.doc.sel.ranges;ve.ch==0&&wt.length==fn.length&&fn[ue].from().ch>0&&Bu(this.doc,ue,new po(ve,fn[ue].to()),le)}}}),getTokenAt:function(pt,wt){return Gr(this,pt,wt)},getLineTokens:function(pt,wt){return Gr(this,yn(pt),wt,!0)},getTokenTypeAt:function(pt){pt=vi(this.doc,pt);var wt=xo(this,mn(this.doc,pt.line)),Yt=0,ue=(wt.length-1)/2,Se=pt.ch,ve;if(Se==0)ve=wt[2];else for(;;){var Te=Yt+ue>>1;if((Te?wt[Te*2-1]:0)>=Se)ue=Te;else if(wt[Te*2+1]<Se)Yt=Te+1;else{ve=wt[Te*2+2];break}}var $e=ve?ve.indexOf("overlay "):-1;return $e<0?ve:$e==0?null:ve.slice(0,$e-1)},getModeAt:function(pt){var wt=this.doc.mode;return wt.innerMode?it.innerMode(wt,this.getTokenAt(pt).state).mode:wt},getHelper:function(pt,wt){return this.getHelpers(pt,wt)[0]},getHelpers:function(pt,wt){var Yt=[];if(!mt.hasOwnProperty(wt))return Yt;var ue=mt[wt],Se=this.getModeAt(pt);if(typeof Se[wt]=="string")ue[Se[wt]]&&Yt.push(ue[Se[wt]]);else if(Se[wt])for(var ve=0;ve<Se[wt].length;ve++){var Te=ue[Se[wt][ve]];Te&&Yt.push(Te)}else Se.helperType&&ue[Se.helperType]?Yt.push(ue[Se.helperType]):ue[Se.name]&&Yt.push(ue[Se.name]);for(var $e=0;$e<ue._global.length;$e++){var Re=ue._global[$e];Re.pred(Se,this)&&$t(Yt,Re.val)==-1&&Yt.push(Re.val)}return Yt},getStateAfter:function(pt,wt){var Yt=this.doc;return pt=ai(Yt,pt==null?Yt.first+Yt.size-1:pt),to(this,pt+1,wt).state},cursorCoords:function(pt,wt){var Yt,ue=this.doc.sel.primary();return pt==null?Yt=ue.head:typeof pt=="object"?Yt=vi(this.doc,pt):Yt=pt?ue.from():ue.to(),Wo(this,Yt,wt||"page")},charCoords:function(pt,wt){return Rc(this,vi(this.doc,pt),wt||"page")},coordsChar:function(pt,wt){return pt=Fd(this,pt,wt||"page"),Bd(this,pt.left,pt.top)},lineAtHeight:function(pt,wt){return pt=Fd(this,{top:pt,left:0},wt||"page").top,ti(this.doc,pt+this.display.viewOffset)},heightAtLine:function(pt,wt,Yt){var ue=!1,Se;if(typeof pt=="number"){var ve=this.doc.first+this.doc.size-1;pt<this.doc.first?pt=this.doc.first:pt>ve&&(pt=ve,ue=!0),Se=mn(this.doc,pt)}else Se=pt;return js(this,Se,{top:0,left:0},wt||"page",Yt||ue).top+(ue?this.doc.height-di(Se):0)},defaultTextHeight:function(){return iu(this.display)},defaultCharWidth:function(){return hh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pt,wt,Yt,ue,Se){var ve=this.display;pt=Wo(this,vi(this.doc,pt));var Te=pt.bottom,$e=pt.left;if(wt.style.position="absolute",wt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(wt),ve.sizer.appendChild(wt),ue=="over")Te=pt.top;else if(ue=="above"||ue=="near"){var Re=Math.max(ve.wrapper.clientHeight,this.doc.height),fn=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(ue=="above"||pt.bottom+wt.offsetHeight>Re)&&pt.top>wt.offsetHeight?Te=pt.top-wt.offsetHeight:pt.bottom+wt.offsetHeight<=Re&&(Te=pt.bottom),$e+wt.offsetWidth>fn&&($e=fn-wt.offsetWidth)}wt.style.top=Te+"px",wt.style.left=wt.style.right="",Se=="right"?($e=ve.sizer.clientWidth-wt.offsetWidth,wt.style.right="0px"):(Se=="left"?$e=0:Se=="middle"&&($e=(ve.sizer.clientWidth-wt.offsetWidth)/2),wt.style.left=$e+"px"),Yt&&zc(this,{left:$e,top:Te,right:$e+wt.offsetWidth,bottom:Te+wt.offsetHeight})},triggerOnKeyDown:Ps(xg),triggerOnKeyPress:Ps(kl),triggerOnKeyUp:Pg,triggerOnMouseDown:Ps(Ml),execCommand:function(pt){if(Ru.hasOwnProperty(pt))return Ru[pt].call(null,this)},triggerElectric:Ps(function(pt){Tg(this,pt)}),findPosH:function(pt,wt,Yt,ue){var Se=1;wt<0&&(Se=-1,wt=-wt);for(var ve=vi(this.doc,pt),Te=0;Te<wt&&(ve=rd(this.doc,ve,Se,Yt,ue),!ve.hitSide);++Te);return ve},moveH:Ps(function(pt,wt){var Yt=this;this.extendSelectionsBy(function(ue){return Yt.display.shift||Yt.doc.extend||ue.empty()?rd(Yt.doc,ue.head,pt,wt,Yt.options.rtlMoveVisually):pt<0?ue.from():ue.to()},Ne)}),deleteH:Ps(function(pt,wt){var Yt=this.doc.sel,ue=this.doc;Yt.somethingSelected()?ue.replaceSelection("",null,"+delete"):ka(this,function(Se){var ve=rd(ue,Se.head,pt,wt,!1);return pt<0?{from:ve,to:Se.head}:{from:Se.head,to:ve}})}),findPosV:function(pt,wt,Yt,ue){var Se=1,ve=ue;wt<0&&(Se=-1,wt=-wt);for(var Te=vi(this.doc,pt),$e=0;$e<wt;++$e){var Re=Wo(this,Te,"div");if(ve==null?ve=Re.left:Re.left=ve,Te=Uu(this,Re,Se,Yt),Te.hitSide)break}return Te},moveV:Ps(function(pt,wt){var Yt=this,ue=this.doc,Se=[],ve=!this.display.shift&&!ue.extend&&ue.sel.somethingSelected();if(ue.extendSelectionsBy(function($e){if(ve)return pt<0?$e.from():$e.to();var Re=Wo(Yt,$e.head,"div");$e.goalColumn!=null&&(Re.left=$e.goalColumn),Se.push(Re.left);var fn=Uu(Yt,Re,pt,wt);return wt=="page"&&$e==ue.sel.primary()&&Rd(Yt,Rc(Yt,fn,"div").top-Re.top),fn},Ne),Se.length)for(var Te=0;Te<ue.sel.ranges.length;Te++)ue.sel.ranges[Te].goalColumn=Se[Te]}),findWordAt:function(pt){var wt=this.doc,Yt=mn(wt,pt.line).text,ue=pt.ch,Se=pt.ch;if(Yt){var ve=this.getHelper(pt,"wordChars");(pt.sticky=="before"||Se==Yt.length)&&ue?--ue:++Se;for(var Te=Yt.charAt(ue),$e=se(Te,ve)?function(Re){return se(Re,ve)}:/\s/.test(Te)?function(Re){return/\s/.test(Re)}:function(Re){return!/\s/.test(Re)&&!se(Re)};ue>0&&$e(Yt.charAt(ue-1));)--ue;for(;Se<Yt.length&&$e(Yt.charAt(Se));)++Se}return new po(yn(pt.line,ue),yn(pt.line,Se))},toggleOverwrite:function(pt){pt!=null&&pt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):jt(this.display.cursorDiv,"CodeMirror-overwrite"),Tn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ps(function(pt,wt){dh(this,pt,wt)}),getScrollInfo:function(){var pt=this.display.scroller;return{left:pt.scrollLeft,top:pt.scrollTop,height:pt.scrollHeight-ta(this)-this.display.barHeight,width:pt.scrollWidth-ta(this)-this.display.barWidth,clientHeight:lh(this),clientWidth:pa(this)}},scrollIntoView:Ps(function(pt,wt){pt==null?(pt={from:this.doc.sel.primary().head,to:null},wt==null&&(wt=this.options.cursorScrollMargin)):typeof pt=="number"?pt={from:yn(pt,0),to:null}:pt.from==null&&(pt={from:pt,to:null}),pt.to||(pt.to=pt.from),pt.margin=wt||0,pt.from.line!=null?Yr(this,pt):jd(this,pt.from,pt.to,pt.margin)}),setSize:Ps(function(pt,wt){var Yt=this,ue=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};pt!=null&&(this.display.wrapper.style.width=ue(pt)),wt!=null&&(this.display.wrapper.style.height=ue(wt)),this.options.lineWrapping&&Ic(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(ve){if(ve.widgets){for(var Te=0;Te<ve.widgets.length;Te++)if(ve.widgets[Te].noHScroll){Tr(Yt,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,Tn(this,"refresh",this)}),operation:function(pt){return io(this,pt)},startOperation:function(){return Lu(this)},endOperation:function(){return Eu(this)},refresh:Ps(function(){var pt=this.display.cachedTextHeight;Oo(this),this.curOp.forceUpdate=!0,qh(this),dh(this,this.doc.scrollLeft,this.doc.scrollTop),Tu(this.display),(pt==null||Math.abs(pt-iu(this.display))>.5||this.options.lineWrapping)&&Xi(this),Tn(this,"refresh",this)}),swapDoc:Ps(function(pt){var wt=this.doc;return wt.cm=null,this.state.selectingText&&this.state.selectingText(),Gd(this,pt),qh(this),this.display.input.reset(),dh(this,pt.scrollLeft,pt.scrollTop),this.curOp.forceScroll=!0,ii(this,"swapDoc",this,wt),wt}),phrase:function(pt){var wt=this.options.phrases;return wt&&Object.prototype.hasOwnProperty.call(wt,pt)?wt[pt]:pt},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}},fi(it),it.registerHelper=function(pt,wt,Yt){mt.hasOwnProperty(pt)||(mt[pt]=it[pt]={_global:[]}),mt[pt][wt]=Yt},it.registerGlobalHelper=function(pt,wt,Yt,ue){it.registerHelper(pt,wt,ue),mt[pt]._global.push({pred:Yt,val:ue})}}function rd(it,lt,mt,pt,wt){var Yt=lt,ue=mt,Se=mn(it,lt.line),ve=wt&&it.direction=="rtl"?-mt:mt;function Te(){var ji=lt.line+ve;return ji<it.first||ji>=it.first+it.size?!1:(lt=new yn(ji,lt.ch,lt.sticky),Se=mn(it,ji))}function $e(ji){var Ei;if(pt=="codepoint"){var _i=Se.text.charCodeAt(lt.ch+(pt>0?0:-1));isNaN(_i)?Ei=null:Ei=new yn(lt.line,Math.max(0,Math.min(Se.text.length,lt.ch+mt*(_i>=55296&&_i<56320?2:1))),-mt)}else wt?Ei=Qd(it.cm,Se,lt,mt):Ei=ss(Se,lt,mt);if(Ei==null)if(!ji&&Te())lt=ed(wt,it.cm,Se,lt.line,ve);else return!1;else lt=Ei;return!0}if(pt=="char"||pt=="codepoint")$e();else if(pt=="column")$e(!0);else if(pt=="word"||pt=="group")for(var Re=null,fn=pt=="group",hn=it.cm&&it.cm.getHelper(lt,"wordChars"),Gn=!0;!(mt<0&&!$e(!Gn));Gn=!1){var Jn=Se.text.charAt(lt.ch)||`
|
|
`,oi=se(Jn,hn)?"w":fn&&Jn==`
|
|
`?"n":!fn||/\s/.test(Jn)?null:"p";if(fn&&!Gn&&!oi&&(oi="s"),Re&&Re!=oi){mt<0&&(mt=1,$e(),lt.sticky="after");break}if(oi&&(Re=oi),mt>0&&!$e(!Gn))break}var yi=Zc(it,lt,Yt,ue,!0);return tr(Yt,yi)&&(yi.hitSide=!0),yi}function Uu(it,lt,mt,pt){var wt=it.doc,Yt=lt.left,ue;if(pt=="page"){var Se=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(Se-.5*iu(it.display),3);ue=(mt>0?lt.bottom:lt.top)+mt*ve}else pt=="line"&&(ue=mt>0?lt.bottom+3:lt.top-3);for(var Te;Te=Bd(it,Yt,ue),!!Te.outside;){if(mt<0?ue<=0:ue>=wt.height){Te.hitSide=!0;break}ue+=mt*5}return Te}var wo=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _t,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wo.prototype.init=function(it){var lt=this,mt=this,pt=mt.cm,wt=mt.div=it.lineDiv;Fg(wt,pt.options.spellcheck,pt.options.autocorrect,pt.options.autocapitalize);function Yt(Se){for(var ve=Se.target;ve;ve=ve.parentNode){if(ve==wt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}ln(wt,"paste",function(Se){!Yt(Se)||un(pt,Se)||Mg(Se,pt)||Dt<=11&&setTimeout(ps(pt,function(){return lt.updateFromDOM()}),20)}),ln(wt,"compositionstart",function(Se){lt.composing={data:Se.data,done:!1}}),ln(wt,"compositionupdate",function(Se){lt.composing||(lt.composing={data:Se.data,done:!1})}),ln(wt,"compositionend",function(Se){lt.composing&&(Se.data!=lt.composing.data&<.readFromDOMSoon(),lt.composing.done=!0)}),ln(wt,"touchstart",function(){return mt.forceCompositionEnd()}),ln(wt,"input",function(){lt.composing||lt.readFromDOMSoon()});function ue(Se){if(!(!Yt(Se)||un(pt,Se))){if(pt.somethingSelected())kh({lineWise:!1,text:pt.getSelections()}),Se.type=="cut"&&pt.replaceSelection("",null,"cut");else if(pt.options.lineWiseCopyCut){var ve=Ng(pt);kh({lineWise:!0,text:ve.text}),Se.type=="cut"&&pt.operation(function(){pt.setSelections(ve.ranges,0,le),pt.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Te=ya.text.join(`
|
|
`);if(Se.clipboardData.setData("Text",Te),Se.clipboardData.getData("Text")==Te){Se.preventDefault();return}}var $e=Og(),Re=$e.firstChild;pt.display.lineSpace.insertBefore($e,pt.display.lineSpace.firstChild),Re.value=ya.text.join(`
|
|
`);var fn=document.activeElement;Ve(Re),setTimeout(function(){pt.display.lineSpace.removeChild($e),fn.focus(),fn==wt&&mt.showPrimarySelection()},50)}}ln(wt,"copy",ue),ln(wt,"cut",ue)},wo.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},wo.prototype.prepareSelection=function(){var it=Cu(this.cm,!1);return it.focus=document.activeElement==this.div,it},wo.prototype.showSelection=function(it,lt){!it||!this.cm.display.view.length||((it.focus||lt)&&this.showPrimarySelection(),this.showMultipleSelections(it))},wo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wo.prototype.showPrimarySelection=function(){var it=this.getSelection(),lt=this.cm,mt=lt.doc.sel.primary(),pt=mt.from(),wt=mt.to();if(lt.display.viewTo==lt.display.viewFrom||pt.line>=lt.display.viewTo||wt.line<lt.display.viewFrom){it.removeAllRanges();return}var Yt=od(lt,it.anchorNode,it.anchorOffset),ue=od(lt,it.focusNode,it.focusOffset);if(!(Yt&&!Yt.bad&&ue&&!ue.bad&&hi(li(Yt,ue),pt)==0&&hi(xr(Yt,ue),wt)==0)){var Se=lt.display.view,ve=pt.line>=lt.display.viewFrom&&lf(lt,pt)||{node:Se[0].measure.map[2],offset:0},Te=wt.line<lt.display.viewTo&&lf(lt,wt);if(!Te){var $e=Se[Se.length-1].measure,Re=$e.maps?$e.maps[$e.maps.length-1]:$e.map;Te={node:Re[Re.length-1],offset:Re[Re.length-2]-Re[Re.length-3]}}if(!ve||!Te){it.removeAllRanges();return}var fn=it.rangeCount&&it.getRangeAt(0),hn;try{hn=Xt(ve.node,ve.offset,Te.offset,Te.node)}catch(Gn){}hn&&(!Jt&<.state.focused?(it.collapse(ve.node,ve.offset),hn.collapsed||(it.removeAllRanges(),it.addRange(hn))):(it.removeAllRanges(),it.addRange(hn)),fn&&it.anchorNode==null?it.addRange(fn):Jt&&this.startGracePeriod()),this.rememberSelection()}},wo.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)},wo.prototype.showMultipleSelections=function(it){Ot(this.cm.display.cursorDiv,it.cursors),Ot(this.cm.display.selectionDiv,it.selection)},wo.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},wo.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var lt=it.getRangeAt(0).commonAncestorContainer;return ce(this.div,lt)},wo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wo.prototype.blur=function(){this.div.blur()},wo.prototype.getField=function(){return this.div},wo.prototype.supportsTouch=function(){return!0},wo.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():io(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function lt(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,lt))}this.polling.set(this.cm.options.pollInterval,lt)},wo.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},wo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),lt=this.cm;if(et&&Nt&&this.cm.display.gutterSpecs.length&&Dg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var mt=od(lt,it.anchorNode,it.anchorOffset),pt=od(lt,it.focusNode,it.focusOffset);mt&&pt&&io(lt,function(){Vs(lt.doc,su(mt,pt),le),(mt.bad||pt.bad)&&(lt.curOp.selectionChanged=!0)})}}},wo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,lt=it.display,mt=it.doc.sel.primary(),pt=mt.from(),wt=mt.to();if(pt.ch==0&&pt.line>it.firstLine()&&(pt=yn(pt.line-1,mn(it.doc,pt.line-1).length)),wt.ch==mn(it.doc,wt.line).text.length&&wt.line<it.lastLine()&&(wt=yn(wt.line+1,0)),pt.line<lt.viewFrom||wt.line>lt.viewTo-1)return!1;var Yt,ue,Se;pt.line==lt.viewFrom||(Yt=za(it,pt.line))==0?(ue=Ye(lt.view[0].line),Se=lt.view[0].node):(ue=Ye(lt.view[Yt].line),Se=lt.view[Yt-1].node.nextSibling);var ve=za(it,wt.line),Te,$e;if(ve==lt.view.length-1?(Te=lt.viewTo-1,$e=lt.lineDiv.lastChild):(Te=Ye(lt.view[ve+1].line)-1,$e=lt.view[ve+1].node.previousSibling),!Se)return!1;for(var Re=it.doc.splitLines(pc(it,Se,$e,ue,Te)),fn=ri(it.doc,yn(ue,0),yn(Te,mn(it.doc,Te).text.length));Re.length>1&&fn.length>1;)if(_e(Re)==_e(fn))Re.pop(),fn.pop(),Te--;else if(Re[0]==fn[0])Re.shift(),fn.shift(),ue++;else break;for(var hn=0,Gn=0,Jn=Re[0],oi=fn[0],yi=Math.min(Jn.length,oi.length);hn<yi&&Jn.charCodeAt(hn)==oi.charCodeAt(hn);)++hn;for(var ji=_e(Re),Ei=_e(fn),_i=Math.min(ji.length-(Re.length==1?hn:0),Ei.length-(fn.length==1?hn:0));Gn<_i&&ji.charCodeAt(ji.length-Gn-1)==Ei.charCodeAt(Ei.length-Gn-1);)++Gn;if(Re.length==1&&fn.length==1&&ue==pt.line)for(;hn&&hn>pt.ch&&ji.charCodeAt(ji.length-Gn-1)==Ei.charCodeAt(Ei.length-Gn-1);)hn--,Gn++;Re[Re.length-1]=ji.slice(0,ji.length-Gn).replace(/^\u200b+/,""),Re[0]=Re[0].slice(hn).replace(/\u200b+$/,"");var vr=yn(ue,hn),Li=yn(Te,fn.length?_e(fn).length-Gn:0);if(Re.length>1||Re[0]||hi(vr,Li))return xh(it.doc,Re,vr,Li,"+input"),!0},wo.prototype.ensurePolled=function(){this.forceCompositionEnd()},wo.prototype.reset=function(){this.forceCompositionEnd()},wo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},wo.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))},wo.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&io(this.cm,function(){return Oo(it.cm)})},wo.prototype.setUneditable=function(it){it.contentEditable="false"},wo.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||ps(this.cm,id)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},wo.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},wo.prototype.onContextMenu=function(){},wo.prototype.resetPosition=function(){},wo.prototype.needsContentAttribute=!0;function lf(it,lt){var mt=ja(it,lt.line);if(!mt||mt.hidden)return null;var pt=mn(it.doc,lt.line),wt=uh(mt,pt,lt.line),Yt=tn(pt,it.doc.direction),ue="left";if(Yt){var Se=fe(Yt,lt.ch);ue=Se%2?"right":"left"}var ve=Nd(wt.map,lt.ch,ue);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function Dg(it){for(var lt=it;lt;lt=lt.parentNode)if(/CodeMirror-gutter-wrapper/.test(lt.className))return!0;return!1}function gc(it,lt){return lt&&(it.bad=!0),it}function pc(it,lt,mt,pt,wt){var Yt="",ue=!1,Se=it.doc.lineSeparator(),ve=!1;function Te(hn){return function(Gn){return Gn.id==hn}}function $e(){ue&&(Yt+=Se,ve&&(Yt+=Se),ue=ve=!1)}function Re(hn){hn&&($e(),Yt+=hn)}function fn(hn){if(hn.nodeType==1){var Gn=hn.getAttribute("cm-text");if(Gn){Re(Gn);return}var Jn=hn.getAttribute("cm-marker"),oi;if(Jn){var yi=it.findMarks(yn(pt,0),yn(wt+1,0),Te(+Jn));yi.length&&(oi=yi[0].find(0))&&Re(ri(it.doc,oi.from,oi.to).join(Se));return}if(hn.getAttribute("contenteditable")=="false")return;var ji=/^(pre|div|p|li|table|br)$/i.test(hn.nodeName);if(!/^br$/i.test(hn.nodeName)&&hn.textContent.length==0)return;ji&&$e();for(var Ei=0;Ei<hn.childNodes.length;Ei++)fn(hn.childNodes[Ei]);/^(pre|p)$/i.test(hn.nodeName)&&(ve=!0),ji&&(ue=!0)}else hn.nodeType==3&&Re(hn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;fn(lt),lt!=mt;)lt=lt.nextSibling,ve=!1;return Yt}function od(it,lt,mt){var pt;if(lt==it.display.lineDiv){if(pt=it.display.lineDiv.childNodes[mt],!pt)return gc(it.clipPos(yn(it.display.viewTo-1)),!0);lt=null,mt=0}else for(pt=lt;;pt=pt.parentNode){if(!pt||pt==it.display.lineDiv)return null;if(pt.parentNode&&pt.parentNode==it.display.lineDiv)break}for(var wt=0;wt<it.display.view.length;wt++){var Yt=it.display.view[wt];if(Yt.node==pt)return sm(Yt,lt,mt)}}function sm(it,lt,mt){var pt=it.text.firstChild,wt=!1;if(!lt||!ce(pt,lt))return gc(yn(Ye(it.line),0),!0);if(lt==pt&&(wt=!0,lt=pt.childNodes[mt],mt=0,!lt)){var Yt=it.rest?_e(it.rest):it.line;return gc(yn(Ye(Yt),Yt.text.length),wt)}var ue=lt.nodeType==3?lt:null,Se=lt;for(!ue&<.childNodes.length==1&<.firstChild.nodeType==3&&(ue=lt.firstChild,mt&&(mt=ue.nodeValue.length));Se.parentNode!=pt;)Se=Se.parentNode;var ve=it.measure,Te=ve.maps;function $e(oi,yi,ji){for(var Ei=-1;Ei<(Te?Te.length:0);Ei++)for(var _i=Ei<0?ve.map:Te[Ei],vr=0;vr<_i.length;vr+=3){var Li=_i[vr+2];if(Li==oi||Li==yi){var Fr=Ye(Ei<0?it.line:it.rest[Ei]),Do=_i[vr]+ji;return(ji<0||Li!=oi)&&(Do=_i[vr+(ji?1:0)]),yn(Fr,Do)}}}var Re=$e(ue,Se,mt);if(Re)return gc(Re,wt);for(var fn=Se.nextSibling,hn=ue?ue.nodeValue.length-mt:0;fn;fn=fn.nextSibling){if(Re=$e(fn,fn.firstChild,0),Re)return gc(yn(Re.line,Re.ch-hn),wt);hn+=fn.textContent.length}for(var Gn=Se.previousSibling,Jn=mt;Gn;Gn=Gn.previousSibling){if(Re=$e(Gn,Gn.firstChild,-1),Re)return gc(yn(Re.line,Re.ch+Jn),wt);Jn+=Gn.textContent.length}}var us=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new _t,this.hasSelection=!1,this.composing=null};us.prototype.init=function(it){var lt=this,mt=this,pt=this.cm;this.createField(it);var wt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),vt&&(wt.style.width="0px"),ln(wt,"input",function(){Rt&&Dt>=9&<.hasSelection&&(lt.hasSelection=null),mt.poll()}),ln(wt,"paste",function(ue){un(pt,ue)||Mg(ue,pt)||(pt.state.pasteIncoming=+new Date,mt.fastPoll())});function Yt(ue){if(!un(pt,ue)){if(pt.somethingSelected())kh({lineWise:!1,text:pt.getSelections()});else if(pt.options.lineWiseCopyCut){var Se=Ng(pt);kh({lineWise:!0,text:Se.text}),ue.type=="cut"?pt.setSelections(Se.ranges,null,le):(mt.prevInput="",wt.value=Se.text.join(`
|
|
`),Ve(wt))}else return;ue.type=="cut"&&(pt.state.cutIncoming=+new Date)}}ln(wt,"cut",Yt),ln(wt,"copy",Yt),ln(it.scroller,"paste",function(ue){if(!(Ro(it,ue)||un(pt,ue))){if(!wt.dispatchEvent){pt.state.pasteIncoming=+new Date,mt.focus();return}var Se=new Event("paste");Se.clipboardData=ue.clipboardData,wt.dispatchEvent(Se)}}),ln(it.lineSpace,"selectstart",function(ue){Ro(it,ue)||bi(ue)}),ln(wt,"compositionstart",function(){var ue=pt.getCursor("from");mt.composing&&mt.composing.range.clear(),mt.composing={start:ue,range:pt.markText(ue,pt.getCursor("to"),{className:"CodeMirror-composing"})}}),ln(wt,"compositionend",function(){mt.composing&&(mt.poll(),mt.composing.range.clear(),mt.composing=null)})},us.prototype.createField=function(it){this.wrapper=Og(),this.textarea=this.wrapper.firstChild},us.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},us.prototype.prepareSelection=function(){var it=this.cm,lt=it.display,mt=it.doc,pt=Cu(it);if(it.options.moveInputWithCursor){var wt=Wo(it,mt.sel.primary().head,"div"),Yt=lt.wrapper.getBoundingClientRect(),ue=lt.lineDiv.getBoundingClientRect();pt.teTop=Math.max(0,Math.min(lt.wrapper.clientHeight-10,wt.top+ue.top-Yt.top)),pt.teLeft=Math.max(0,Math.min(lt.wrapper.clientWidth-10,wt.left+ue.left-Yt.left))}return pt},us.prototype.showSelection=function(it){var lt=this.cm,mt=lt.display;Ot(mt.cursorDiv,it.cursors),Ot(mt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},us.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var lt=this.cm;if(lt.somethingSelected()){this.prevInput="";var mt=lt.getSelection();this.textarea.value=mt,lt.state.focused&&Ve(this.textarea),Rt&&Dt>=9&&(this.hasSelection=mt)}else it||(this.prevInput=this.textarea.value="",Rt&&Dt>=9&&(this.hasSelection=null))}},us.prototype.getField=function(){return this.textarea},us.prototype.supportsTouch=function(){return!1},us.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||me()!=this.textarea))try{this.textarea.focus()}catch(it){}},us.prototype.blur=function(){this.textarea.blur()},us.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},us.prototype.receivedFocus=function(){this.slowPoll()},us.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},us.prototype.fastPoll=function(){var it=!1,lt=this;lt.pollingFast=!0;function mt(){var pt=lt.poll();!pt&&!it?(it=!0,lt.polling.set(60,mt)):(lt.pollingFast=!1,lt.slowPoll())}lt.polling.set(20,mt)},us.prototype.poll=function(){var it=this,lt=this.cm,mt=this.textarea,pt=this.prevInput;if(this.contextMenuPending||!lt.state.focused||Ut(mt)&&!pt&&!this.composing||lt.isReadOnly()||lt.options.disableInput||lt.state.keySeq)return!1;var wt=mt.value;if(wt==pt&&!lt.somethingSelected())return!1;if(Rt&&Dt>=9&&this.hasSelection===wt||st&&/[\uf700-\uf7ff]/.test(wt))return lt.display.input.reset(),!1;if(lt.doc.sel==lt.display.selForContextMenu){var Yt=wt.charCodeAt(0);if(Yt==8203&&!pt&&(pt="\u200B"),Yt==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,Se=Math.min(pt.length,wt.length);ue<Se&&pt.charCodeAt(ue)==wt.charCodeAt(ue);)++ue;return io(lt,function(){id(lt,wt.slice(ue),pt.length-ue,null,it.composing?"*compose":null),wt.length>1e3||wt.indexOf(`
|
|
`)>-1?mt.value=it.prevInput="":it.prevInput=wt,it.composing&&(it.composing.range.clear(),it.composing.range=lt.markText(it.composing.start,lt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},us.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},us.prototype.onKeyPress=function(){Rt&&Dt>=9&&(this.hasSelection=null),this.fastPoll()},us.prototype.onContextMenu=function(it){var lt=this,mt=lt.cm,pt=mt.display,wt=lt.textarea;lt.contextMenuPending&<.contextMenuPending();var Yt=ra(mt,it),ue=pt.scroller.scrollTop;if(!Yt||Pt)return;var Se=mt.options.resetSelectionOnContextMenu;Se&&mt.doc.sel.contains(Yt)==-1&&ps(mt,Vs)(mt.doc,su(Yt),le);var ve=wt.style.cssText,Te=lt.wrapper.style.cssText,$e=lt.wrapper.offsetParent.getBoundingClientRect();lt.wrapper.style.cssText="position: static",wt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-$e.top-5)+"px; left: "+(it.clientX-$e.left-5)+`px;
|
|
z-index: 1000; background: `+(Rt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Re;St&&(Re=window.scrollY),pt.input.focus(),St&&window.scrollTo(null,Re),pt.input.reset(),mt.somethingSelected()||(wt.value=lt.prevInput=" "),lt.contextMenuPending=hn,pt.selForContextMenu=mt.doc.sel,clearTimeout(pt.detectingSelectAll);function fn(){if(wt.selectionStart!=null){var Jn=mt.somethingSelected(),oi="\u200B"+(Jn?wt.value:"");wt.value="\u21DA",wt.value=oi,lt.prevInput=Jn?"":"\u200B",wt.selectionStart=1,wt.selectionEnd=oi.length,pt.selForContextMenu=mt.doc.sel}}function hn(){if(lt.contextMenuPending==hn&&(lt.contextMenuPending=!1,lt.wrapper.style.cssText=Te,wt.style.cssText=ve,Rt&&Dt<9&&pt.scrollbars.setScrollTop(pt.scroller.scrollTop=ue),wt.selectionStart!=null)){(!Rt||Rt&&Dt<9)&&fn();var Jn=0,oi=function(){pt.selForContextMenu==mt.doc.sel&&wt.selectionStart==0&&wt.selectionEnd>0&<.prevInput=="\u200B"?ps(mt,os)(mt):Jn++<10?pt.detectingSelectAll=setTimeout(oi,500):(pt.selForContextMenu=null,pt.input.reset())};pt.detectingSelectAll=setTimeout(oi,200)}}if(Rt&&Dt>=9&&fn(),ft){Ii(it);var Gn=function(){Vn(window,"mouseup",Gn),setTimeout(hn,20)};ln(window,"mouseup",Gn)}else setTimeout(hn,50)},us.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},us.prototype.setUneditable=function(){},us.prototype.needsContentAttribute=!1;function am(it,lt){if(lt=lt?Qe(lt):{},lt.value=it.value,!lt.tabindex&&it.tabIndex&&(lt.tabindex=it.tabIndex),!lt.placeholder&&it.placeholder&&(lt.placeholder=it.placeholder),lt.autofocus==null){var mt=me();lt.autofocus=mt==it||it.getAttribute("autofocus")!=null&&mt==document.body}function pt(){it.value=Se.getValue()}var wt;if(it.form&&(ln(it.form,"submit",pt),!lt.leaveSubmitMethodAlone)){var Yt=it.form;wt=Yt.submit;try{var ue=Yt.submit=function(){pt(),Yt.submit=wt,Yt.submit(),Yt.submit=ue}}catch(ve){}}lt.finishInit=function(ve){ve.save=pt,ve.getTextArea=function(){return it},ve.toTextArea=function(){ve.toTextArea=isNaN,pt(),it.parentNode.removeChild(ve.getWrapperElement()),it.style.display="",it.form&&(Vn(it.form,"submit",pt),!lt.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=wt))}},it.style.display="none";var Se=Qr(function(ve){return it.parentNode.insertBefore(ve,it.nextSibling)},lt);return Se}function mc(it){it.off=Vn,it.on=ln,it.wheelEventPixels=_a,it.Doc=zs,it.splitLines=vn,it.countColumn=ae,it.findColumn=Xe,it.isWordChar=Qt,it.Pass=pe,it.signal=Tn,it.Line=$i,it.changeEnd=Ou,it.scrollbarModel=tg,it.Pos=yn,it.cmpPos=hi,it.modes=Nn,it.mimeModes=On,it.resolveMode=nn,it.getMode=en,it.modeExtensions=We,it.extendMode=sn,it.copyState=Xn,it.startState=zn,it.innerMode=Zn,it.commands=Ru,it.keyMap=Ea,it.keyName=$p,it.isModifierKey=lc,it.lookupKey=nl,it.normalizeKeyMap=pg,it.StringStream=Ze,it.SharedTextMarker=zl,it.TextMarker=Ke,it.LineWidget=uu,it.e_preventDefault=bi,it.e_stopPropagation=Ni,it.e_stop=Ii,it.addClass=Pe,it.contains=ce,it.rmClass=jt,it.keyNames=Ul}rm(Qr),zu(Qr);var hu="iter insert remove copy getEditor constructor".split(" ");for(var sd in zs.prototype)zs.prototype.hasOwnProperty(sd)&&$t(hu,sd)<0&&(Qr.prototype[sd]=function(it){return function(){return it.apply(this.doc,arguments)}}(zs.prototype[sd]));return fi(zs),Qr.inputStyles={textarea:us,contenteditable:wo},Qr.defineMode=function(it){!Qr.defaults.mode&&it!="null"&&(Qr.defaults.mode=it),Hn.apply(this,arguments)},Qr.defineMIME=gi,Qr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(it,lt){Qr.prototype[it]=lt},Qr.defineDocExtension=function(it,lt){zs.prototype[it]=lt},Qr.fromTextArea=am,mc(Qr),Qr.version="5.58.2",Qr})},49047:function(An,jn,he){(function(Jt){Jt(he(4631),he(29589),he(52539))})(function(Jt){"use strict";Jt.defineMode("markdown",function(xt,qt){var Vt=Jt.getMode(xt,"text/html"),Rt=Vt.name=="null";function Dt(ae){if(Jt.findModeByName){var _t=Jt.findModeByName(ae);_t&&(ae=_t.mime||_t.mimes[0])}var $t=Jt.getMode(xt,ae);return $t.name=="null"?null:$t}qt.highlightFormatting===void 0&&(qt.highlightFormatting=!1),qt.maxBlockquoteDepth===void 0&&(qt.maxBlockquoteDepth=0),qt.taskLists===void 0&&(qt.taskLists=!1),qt.strikethrough===void 0&&(qt.strikethrough=!1),qt.emoji===void 0&&(qt.emoji=!1),qt.fencedCodeBlockHighlighting===void 0&&(qt.fencedCodeBlockHighlighting=!0),qt.fencedCodeBlockDefaultMode===void 0&&(qt.fencedCodeBlockDefaultMode="text/plain"),qt.xml===void 0&&(qt.xml=!0),qt.tokenTypeOverrides===void 0&&(qt.tokenTypeOverrides={});var St={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 Et in St)St.hasOwnProperty(Et)&&qt.tokenTypeOverrides[Et]&&(St[Et]=qt.tokenTypeOverrides[Et]);var Nt=/^([*\-_])(?:\s*\1){2,}\s*$/,Pt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ct=/^\[(x| )\](?=\s)/i,Lt=qt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ft=/^ {0,3}(?:\={1,}|-{2,})\s*$/,vt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,st=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function ut(ae,_t,$t){return _t.f=_t.inline=$t,$t(ae,_t)}function ct(ae,_t,$t){return _t.f=_t.block=$t,$t(ae,_t)}function gt(ae){return!ae||!/\S/.test(ae.string)}function ft(ae){if(ae.linkTitle=!1,ae.linkHref=!1,ae.linkText=!1,ae.em=!1,ae.strong=!1,ae.strikethrough=!1,ae.quote=0,ae.indentedCode=!1,ae.f==jt){var _t=Rt;if(!_t){var $t=Jt.innerMode(Vt,ae.htmlState);_t=$t.mode.name=="xml"&&$t.state.tagStart===null&&!$t.state.context&&$t.state.tokenize.isInText}_t&&(ae.f=ne,ae.block=kt,ae.htmlState=null)}return ae.trailingSpace=0,ae.trailingSpaceNewLine=!1,ae.prevLine=ae.thisLine,ae.thisLine={stream:null},null}function kt(ae,_t){var $t=ae.column()===_t.indentation,re=gt(_t.prevLine.stream),pe=_t.indentedCode,le=_t.prevLine.hr,Ue=_t.list!==!1,Ne=(_t.listStack[_t.listStack.length-1]||0)+3;_t.indentedCode=!1;var Xe=_t.indentation;if(_t.indentationDiff===null&&(_t.indentationDiff=_t.indentation,Ue)){for(_t.list=null;Xe<_t.listStack[_t.listStack.length-1];)_t.listStack.pop(),_t.listStack.length?_t.indentation=_t.listStack[_t.listStack.length-1]:_t.list=!1;_t.list!==!1&&(_t.indentationDiff=Xe-_t.listStack[_t.listStack.length-1])}var Le=!re&&!le&&!_t.prevLine.header&&(!Ue||!pe)&&!_t.prevLine.fencedCodeEnd,xe=(_t.list===!1||le||re)&&_t.indentation<=Ne&&ae.match(Nt),_e=null;if(_t.indentationDiff>=4&&(pe||_t.prevLine.fencedCodeEnd||_t.prevLine.header||re))return ae.skipToEnd(),_t.indentedCode=!0,St.code;if(ae.eatSpace())return null;if($t&&_t.indentation<=Ne&&(_e=ae.match(Lt))&&_e[1].length<=6)return _t.quote=0,_t.header=_e[1].length,_t.thisLine.header=!0,qt.highlightFormatting&&(_t.formatting="header"),_t.f=_t.inline,Ot(_t);if(_t.indentation<=Ne&&ae.eat(">"))return _t.quote=$t?1:_t.quote+1,qt.highlightFormatting&&(_t.formatting="quote"),ae.eatSpace(),Ot(_t);if(!xe&&!_t.setext&&$t&&_t.indentation<=Ne&&(_e=ae.match(Pt))){var Fe=_e[1]?"ol":"ul";return _t.indentation=Xe+ae.current().length,_t.list=!0,_t.quote=0,_t.listStack.push(_t.indentation),_t.em=!1,_t.strong=!1,_t.code=!1,_t.strikethrough=!1,qt.taskLists&&ae.match(Ct,!1)&&(_t.taskList=!0),_t.f=_t.inline,qt.highlightFormatting&&(_t.formatting=["list","list-"+Fe]),Ot(_t)}else{if($t&&_t.indentation<=Ne&&(_e=ae.match(et,!0)))return _t.quote=0,_t.fencedEndRE=new RegExp(_e[1]+"+ *$"),_t.localMode=qt.fencedCodeBlockHighlighting&&Dt(_e[2]||qt.fencedCodeBlockDefaultMode),_t.localMode&&(_t.localState=Jt.startState(_t.localMode)),_t.f=_t.block=Ht,qt.highlightFormatting&&(_t.formatting="code-block"),_t.code=-1,Ot(_t);if(_t.setext||(!Le||!Ue)&&!_t.quote&&_t.list===!1&&!_t.code&&!xe&&!tt.test(ae.string)&&(_e=ae.lookAhead(1))&&(_e=_e.match(Ft)))return _t.setext?(_t.header=_t.setext,_t.setext=0,ae.skipToEnd(),qt.highlightFormatting&&(_t.formatting="header")):(_t.header=_e[0].charAt(0)=="="?1:2,_t.setext=_t.header),_t.thisLine.header=!0,_t.f=_t.inline,Ot(_t);if(xe)return ae.skipToEnd(),_t.hr=!0,_t.thisLine.hr=!0,St.hr;if(ae.peek()==="[")return ut(ae,_t,De)}return ut(ae,_t,_t.inline)}function jt(ae,_t){var $t=Vt.token(ae,_t.htmlState);if(!Rt){var re=Jt.innerMode(Vt,_t.htmlState);(re.mode.name=="xml"&&re.state.tagStart===null&&!re.state.context&&re.state.tokenize.isInText||_t.md_inside&&ae.current().indexOf(">")>-1)&&(_t.f=ne,_t.block=kt,_t.htmlState=null)}return $t}function Ht(ae,_t){var $t=_t.listStack[_t.listStack.length-1]||0,re=_t.indentation<$t,pe=$t+3;if(_t.fencedEndRE&&_t.indentation<=pe&&(re||ae.match(_t.fencedEndRE))){qt.highlightFormatting&&(_t.formatting="code-block");var le;return re||(le=Ot(_t)),_t.localMode=_t.localState=null,_t.block=kt,_t.f=ne,_t.fencedEndRE=null,_t.code=0,_t.thisLine.fencedCodeEnd=!0,re?ct(ae,_t,_t.block):le}else return _t.localMode?_t.localMode.token(ae,_t.localState):(ae.skipToEnd(),St.code)}function Ot(ae){var _t=[];if(ae.formatting){_t.push(St.formatting),typeof ae.formatting=="string"&&(ae.formatting=[ae.formatting]);for(var $t=0;$t<ae.formatting.length;$t++)_t.push(St.formatting+"-"+ae.formatting[$t]),ae.formatting[$t]==="header"&&_t.push(St.formatting+"-"+ae.formatting[$t]+"-"+ae.header),ae.formatting[$t]==="quote"&&(!qt.maxBlockquoteDepth||qt.maxBlockquoteDepth>=ae.quote?_t.push(St.formatting+"-"+ae.formatting[$t]+"-"+ae.quote):_t.push("error"))}if(ae.taskOpen)return _t.push("meta"),_t.length?_t.join(" "):null;if(ae.taskClosed)return _t.push("property"),_t.length?_t.join(" "):null;if(ae.linkHref?_t.push(St.linkHref,"url"):(ae.strong&&_t.push(St.strong),ae.em&&_t.push(St.em),ae.strikethrough&&_t.push(St.strikethrough),ae.emoji&&_t.push(St.emoji),ae.linkText&&_t.push(St.linkText),ae.code&&_t.push(St.code),ae.image&&_t.push(St.image),ae.imageAltText&&_t.push(St.imageAltText,"link"),ae.imageMarker&&_t.push(St.imageMarker)),ae.header&&_t.push(St.header,St.header+"-"+ae.header),ae.quote&&(_t.push(St.quote),!qt.maxBlockquoteDepth||qt.maxBlockquoteDepth>=ae.quote?_t.push(St.quote+"-"+ae.quote):_t.push(St.quote+"-"+qt.maxBlockquoteDepth)),ae.list!==!1){var re=(ae.listStack.length-1)%3;re?re===1?_t.push(St.list2):_t.push(St.list3):_t.push(St.list1)}return ae.trailingSpaceNewLine?_t.push("trailing-space-new-line"):ae.trailingSpace&&_t.push("trailing-space-"+(ae.trailingSpace%2?"a":"b")),_t.length?_t.join(" "):null}function te(ae,_t){if(ae.match(vt,!0))return Ot(_t)}function ne(ae,_t){var $t=_t.text(ae,_t);if(typeof $t!="undefined")return $t;if(_t.list)return _t.list=null,Ot(_t);if(_t.taskList){var re=ae.match(Ct,!0)[1]===" ";return re?_t.taskOpen=!0:_t.taskClosed=!0,qt.highlightFormatting&&(_t.formatting="task"),_t.taskList=!1,Ot(_t)}if(_t.taskOpen=!1,_t.taskClosed=!1,_t.header&&ae.match(/^#+$/,!0))return qt.highlightFormatting&&(_t.formatting="header"),Ot(_t);var pe=ae.next();if(_t.linkTitle){_t.linkTitle=!1;var le=pe;pe==="("&&(le=")"),le=(le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+le+"\\\\]+|\\\\\\\\|\\\\.)"+le;if(ae.match(new RegExp(Ue),!0))return St.linkHref}if(pe==="`"){var Ne=_t.formatting;qt.highlightFormatting&&(_t.formatting="code"),ae.eatWhile("`");var Xe=ae.current().length;if(_t.code==0&&(!_t.quote||Xe==1))return _t.code=Xe,Ot(_t);if(Xe==_t.code){var Le=Ot(_t);return _t.code=0,Le}else return _t.formatting=Ne,Ot(_t)}else if(_t.code)return Ot(_t);if(pe==="\\"&&(ae.next(),qt.highlightFormatting)){var xe=Ot(_t),_e=St.formatting+"-escape";return xe?xe+" "+_e:_e}if(pe==="!"&&ae.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return _t.imageMarker=!0,_t.image=!0,qt.highlightFormatting&&(_t.formatting="image"),Ot(_t);if(pe==="["&&_t.imageMarker&&ae.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return _t.imageMarker=!1,_t.imageAltText=!0,qt.highlightFormatting&&(_t.formatting="image"),Ot(_t);if(pe==="]"&&_t.imageAltText){qt.highlightFormatting&&(_t.formatting="image");var xe=Ot(_t);return _t.imageAltText=!1,_t.image=!1,_t.inline=_t.f=ce,xe}if(pe==="["&&!_t.image)return _t.linkText&&ae.match(/^.*?\]/)||(_t.linkText=!0,qt.highlightFormatting&&(_t.formatting="link")),Ot(_t);if(pe==="]"&&_t.linkText){qt.highlightFormatting&&(_t.formatting="link");var xe=Ot(_t);return _t.linkText=!1,_t.inline=_t.f=ae.match(/\(.*?\)| ?\[.*?\]/,!1)?ce:ne,xe}if(pe==="<"&&ae.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){_t.f=_t.inline=Xt,qt.highlightFormatting&&(_t.formatting="link");var xe=Ot(_t);return xe?xe+=" ":xe="",xe+St.linkInline}if(pe==="<"&&ae.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){_t.f=_t.inline=Xt,qt.highlightFormatting&&(_t.formatting="link");var xe=Ot(_t);return xe?xe+=" ":xe="",xe+St.linkEmail}if(qt.xml&&pe==="<"&&ae.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Fe=ae.string.indexOf(">",ae.pos);if(Fe!=-1){var Ae=ae.string.substring(ae.start,Fe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ae)&&(_t.md_inside=!0)}return ae.backUp(1),_t.htmlState=Jt.startState(Vt),ct(ae,_t,jt)}if(qt.xml&&pe==="<"&&ae.match(/^\/\w*?>/))return _t.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var oe=1,Mt=ae.pos==1?" ":ae.string.charAt(ae.pos-2);oe<3&&ae.eat(pe);)oe++;var At=ae.peek()||" ",Qt=!/\s/.test(At)&&(!st.test(At)||/\s/.test(Mt)||st.test(Mt)),se=!/\s/.test(Mt)&&(!st.test(Mt)||/\s/.test(At)||st.test(At)),Kt=null,It=null;if(oe%2&&(!_t.em&&Qt&&(pe==="*"||!se||st.test(Mt))?Kt=!0:_t.em==pe&&se&&(pe==="*"||!Qt||st.test(At))&&(Kt=!1)),oe>1&&(!_t.strong&&Qt&&(pe==="*"||!se||st.test(Mt))?It=!0:_t.strong==pe&&se&&(pe==="*"||!Qt||st.test(At))&&(It=!1)),It!=null||Kt!=null){qt.highlightFormatting&&(_t.formatting=Kt==null?"strong":It==null?"em":"strong em"),Kt===!0&&(_t.em=pe),It===!0&&(_t.strong=pe);var Le=Ot(_t);return Kt===!1&&(_t.em=!1),It===!1&&(_t.strong=!1),Le}}else if(pe===" "&&(ae.eat("*")||ae.eat("_"))){if(ae.peek()===" ")return Ot(_t);ae.backUp(1)}if(qt.strikethrough){if(pe==="~"&&ae.eatWhile(pe)){if(_t.strikethrough){qt.highlightFormatting&&(_t.formatting="strikethrough");var Le=Ot(_t);return _t.strikethrough=!1,Le}else if(ae.match(/^[^\s]/,!1))return _t.strikethrough=!0,qt.highlightFormatting&&(_t.formatting="strikethrough"),Ot(_t)}else if(pe===" "&&ae.match(/^~~/,!0)){if(ae.peek()===" ")return Ot(_t);ae.backUp(2)}}if(qt.emoji&&pe===":"&&ae.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){_t.emoji=!0,qt.highlightFormatting&&(_t.formatting="emoji");var bt=Ot(_t);return _t.emoji=!1,bt}return pe===" "&&(ae.match(/^ +$/,!1)?_t.trailingSpace++:_t.trailingSpace&&(_t.trailingSpaceNewLine=!0)),Ot(_t)}function Xt(ae,_t){var $t=ae.next();if($t===">"){_t.f=_t.inline=ne,qt.highlightFormatting&&(_t.formatting="link");var re=Ot(_t);return re?re+=" ":re="",re+St.linkInline}return ae.match(/^[^>]+/,!0),St.linkInline}function ce(ae,_t){if(ae.eatSpace())return null;var $t=ae.next();return $t==="("||$t==="["?(_t.f=_t.inline=Pe($t==="("?")":"]"),qt.highlightFormatting&&(_t.formatting="link-string"),_t.linkHref=!0,Ot(_t)):"error"}var me={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pe(ae){return function(_t,$t){var re=_t.next();if(re===ae){$t.f=$t.inline=ne,qt.highlightFormatting&&($t.formatting="link-string");var pe=Ot($t);return $t.linkHref=!1,pe}return _t.match(me[ae]),$t.linkHref=!0,Ot($t)}}function De(ae,_t){return ae.match(/^([^\]\\]|\\.)*\]:/,!1)?(_t.f=Ve,ae.next(),qt.highlightFormatting&&(_t.formatting="link"),_t.linkText=!0,Ot(_t)):ut(ae,_t,ne)}function Ve(ae,_t){if(ae.match(/^\]:/,!0)){_t.f=_t.inline=we,qt.highlightFormatting&&(_t.formatting="link");var $t=Ot(_t);return _t.linkText=!1,$t}return ae.match(/^([^\]\\]|\\.)+/,!0),St.linkText}function we(ae,_t){return ae.eatSpace()?null:(ae.match(/^[^\s]+/,!0),ae.peek()===void 0?_t.linkTitle=!0:ae.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),_t.f=_t.inline=ne,St.linkHref+" url")}var Qe={startState:function(){return{f:kt,prevLine:{stream:null},thisLine:{stream:null},block:kt,htmlState:null,indentation:0,inline:ne,text:te,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(ae){return{f:ae.f,prevLine:ae.prevLine,thisLine:ae.thisLine,block:ae.block,htmlState:ae.htmlState&&Jt.copyState(Vt,ae.htmlState),indentation:ae.indentation,localMode:ae.localMode,localState:ae.localMode?Jt.copyState(ae.localMode,ae.localState):null,inline:ae.inline,text:ae.text,formatting:!1,linkText:ae.linkText,linkTitle:ae.linkTitle,linkHref:ae.linkHref,code:ae.code,em:ae.em,strong:ae.strong,strikethrough:ae.strikethrough,emoji:ae.emoji,header:ae.header,setext:ae.setext,hr:ae.hr,taskList:ae.taskList,list:ae.list,listStack:ae.listStack.slice(0),quote:ae.quote,indentedCode:ae.indentedCode,trailingSpace:ae.trailingSpace,trailingSpaceNewLine:ae.trailingSpaceNewLine,md_inside:ae.md_inside,fencedEndRE:ae.fencedEndRE}},token:function(ae,_t){if(_t.formatting=!1,ae!=_t.thisLine.stream){if(_t.header=0,_t.hr=!1,ae.match(/^\s*$/,!0))return ft(_t),null;if(_t.prevLine=_t.thisLine,_t.thisLine={stream:ae},_t.taskList=!1,_t.trailingSpace=0,_t.trailingSpaceNewLine=!1,!_t.localState&&(_t.f=_t.block,_t.f!=jt)){var $t=ae.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(_t.indentation=$t,_t.indentationDiff=null,$t>0)return null}}return _t.f(ae,_t)},innerMode:function(ae){return ae.block==jt?{state:ae.htmlState,mode:Vt}:ae.localState?{state:ae.localState,mode:ae.localMode}:{state:ae,mode:Qe}},indent:function(ae,_t,$t){return ae.block==jt&&Vt.indent?Vt.indent(ae.htmlState,_t,$t):ae.localState&&ae.localMode.indent?ae.localMode.indent(ae.localState,_t,$t):Jt.Pass},blankLine:ft,getType:Ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Qe},"xml"),Jt.defineMIME("text/markdown","markdown"),Jt.defineMIME("text/x-markdown","markdown")})},52539:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){"use strict";Jt.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 xt=0;xt<Jt.modeInfo.length;xt++){var qt=Jt.modeInfo[xt];qt.mimes&&(qt.mime=qt.mimes[0])}Jt.findModeByMIME=function(Vt){Vt=Vt.toLowerCase();for(var Rt=0;Rt<Jt.modeInfo.length;Rt++){var Dt=Jt.modeInfo[Rt];if(Dt.mime==Vt)return Dt;if(Dt.mimes){for(var St=0;St<Dt.mimes.length;St++)if(Dt.mimes[St]==Vt)return Dt}}if(/\+xml$/.test(Vt))return Jt.findModeByMIME("application/xml");if(/\+json$/.test(Vt))return Jt.findModeByMIME("application/json")},Jt.findModeByExtension=function(Vt){Vt=Vt.toLowerCase();for(var Rt=0;Rt<Jt.modeInfo.length;Rt++){var Dt=Jt.modeInfo[Rt];if(Dt.ext){for(var St=0;St<Dt.ext.length;St++)if(Dt.ext[St]==Vt)return Dt}}},Jt.findModeByFileName=function(Vt){for(var Rt=0;Rt<Jt.modeInfo.length;Rt++){var Dt=Jt.modeInfo[Rt];if(Dt.file&&Dt.file.test(Vt))return Dt}var St=Vt.lastIndexOf("."),Et=St>-1&&Vt.substring(St+1,Vt.length);if(Et)return Jt.findModeByExtension(Et)},Jt.findModeByName=function(Vt){Vt=Vt.toLowerCase();for(var Rt=0;Rt<Jt.modeInfo.length;Rt++){var Dt=Jt.modeInfo[Rt];if(Dt.name.toLowerCase()==Vt)return Dt;if(Dt.alias){for(var St=0;St<Dt.alias.length;St++)if(Dt.alias[St].toLowerCase()==Vt)return Dt}}}})},80785:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){"use strict";Jt.defineMode("stex",function(xt,qt){"use strict";function Vt(vt,et){vt.cmdState.push(et)}function Rt(vt){return vt.cmdState.length>0?vt.cmdState[vt.cmdState.length-1]:null}function Dt(vt){var et=vt.cmdState.pop();et&&et.closeBracket()}function St(vt){for(var et=vt.cmdState,tt=et.length-1;tt>=0;tt--){var st=et[tt];if(st.name!="DEFAULT")return st}return{styleIdentifier:function(){return null}}}function Et(vt,et,tt){return function(){this.name=vt,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Nt={};Nt.importmodule=Et("importmodule","tag",["string","builtin"]),Nt.documentclass=Et("documentclass","tag",["","atom"]),Nt.usepackage=Et("usepackage","tag",["atom"]),Nt.begin=Et("begin","tag",["atom"]),Nt.end=Et("end","tag",["atom"]),Nt.label=Et("label","tag",["atom"]),Nt.ref=Et("ref","tag",["atom"]),Nt.eqref=Et("eqref","tag",["atom"]),Nt.cite=Et("cite","tag",["atom"]),Nt.bibitem=Et("bibitem","tag",["atom"]),Nt.Bibitem=Et("Bibitem","tag",["atom"]),Nt.RBibitem=Et("RBibitem","tag",["atom"]),Nt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pt(vt,et){vt.f=et}function Ct(vt,et){var tt;if(vt.match(/^\\[a-zA-Z@]+/)){var st=vt.current().slice(1);return tt=Nt.hasOwnProperty(st)?Nt[st]:Nt.DEFAULT,tt=new tt,Vt(et,tt),Pt(et,Ft),tt.style}if(vt.match(/^\\[$&%#{}_]/)||vt.match(/^\\[,;!\/\\]/))return"tag";if(vt.match("\\["))return Pt(et,function(ut,ct){return Lt(ut,ct,"\\]")}),"keyword";if(vt.match("\\("))return Pt(et,function(ut,ct){return Lt(ut,ct,"\\)")}),"keyword";if(vt.match("$$"))return Pt(et,function(ut,ct){return Lt(ut,ct,"$$")}),"keyword";if(vt.match("$"))return Pt(et,function(ut,ct){return Lt(ut,ct,"$")}),"keyword";var rt=vt.next();if(rt=="%")return vt.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=Rt(et),tt)tt.closeBracket(rt),Pt(et,Ft);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=Nt.DEFAULT,tt=new tt,Vt(et,tt),"bracket"):/\d/.test(rt)?(vt.eatWhile(/[\w.%]/),"atom"):(vt.eatWhile(/[\w\-_]/),tt=St(et),tt.name=="begin"&&(tt.argument=vt.current()),tt.styleIdentifier())}function Lt(vt,et,tt){if(vt.eatSpace())return null;if(tt&&vt.match(tt))return Pt(et,Ct),"keyword";if(vt.match(/^\\[a-zA-Z@]+/))return"tag";if(vt.match(/^[a-zA-Z]+/))return"variable-2";if(vt.match(/^\\[$&%#{}_]/)||vt.match(/^\\[,;!\/]/)||vt.match(/^[\^_&]/))return"tag";if(vt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(vt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var st=vt.next();return st=="{"||st=="}"||st=="["||st=="]"||st=="("||st==")"?"bracket":st=="%"?(vt.skipToEnd(),"comment"):"error"}function Ft(vt,et){var tt=vt.peek(),st;return tt=="{"||tt=="["?(st=Rt(et),st.openBracket(tt),vt.eat(tt),Pt(et,Ct),"bracket"):/[ \t\r]/.test(tt)?(vt.eat(tt),null):(Pt(et,Ct),Dt(et),Ct(vt,et))}return{startState:function(){var vt=qt.inMathMode?function(et,tt){return Lt(et,tt)}:Ct;return{cmdState:[],f:vt}},copyState:function(vt){return{cmdState:vt.cmdState.slice(),f:vt.f}},token:function(vt,et){return et.f(vt,et)},blankLine:function(vt){vt.f=Ct,vt.cmdState.length=0},lineComment:"%"}}),Jt.defineMIME("text/x-stex","stex"),Jt.defineMIME("text/x-latex","stex")})},29589:function(An,jn,he){(function(Jt){Jt(he(4631))})(function(Jt){"use strict";var xt={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},qt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Jt.defineMode("xml",function(Vt,Rt){var Dt=Vt.indentUnit,St={},Et=Rt.htmlMode?xt:qt;for(var Nt in Et)St[Nt]=Et[Nt];for(var Nt in Rt)St[Nt]=Rt[Nt];var Pt,Ct;function Lt(Xt,ce){function me(Ve){return ce.tokenize=Ve,Ve(Xt,ce)}var Pe=Xt.next();if(Pe=="<")return Xt.eat("!")?Xt.eat("[")?Xt.match("CDATA[")?me(et("atom","]]>")):null:Xt.match("--")?me(et("comment","-->")):Xt.match("DOCTYPE",!0,!0)?(Xt.eatWhile(/[\w\._\-]/),me(tt(1))):null:Xt.eat("?")?(Xt.eatWhile(/[\w\._\-]/),ce.tokenize=et("meta","?>"),"meta"):(Pt=Xt.eat("/")?"closeTag":"openTag",ce.tokenize=Ft,"tag bracket");if(Pe=="&"){var De;return Xt.eat("#")?Xt.eat("x")?De=Xt.eatWhile(/[a-fA-F\d]/)&&Xt.eat(";"):De=Xt.eatWhile(/[\d]/)&&Xt.eat(";"):De=Xt.eatWhile(/[\w\.\-:]/)&&Xt.eat(";"),De?"atom":"error"}else return Xt.eatWhile(/[^&<]/),null}Lt.isInText=!0;function Ft(Xt,ce){var me=Xt.next();if(me==">"||me=="/"&&Xt.eat(">"))return ce.tokenize=Lt,Pt=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return Pt="equals",null;if(me=="<"){ce.tokenize=Lt,ce.state=ct,ce.tagName=ce.tagStart=null;var Pe=ce.tokenize(Xt,ce);return Pe?Pe+" tag error":"tag error"}else return/[\'\"]/.test(me)?(ce.tokenize=vt(me),ce.stringStartCol=Xt.column(),ce.tokenize(Xt,ce)):(Xt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function vt(Xt){var ce=function(me,Pe){for(;!me.eol();)if(me.next()==Xt){Pe.tokenize=Ft;break}return"string"};return ce.isInAttribute=!0,ce}function et(Xt,ce){return function(me,Pe){for(;!me.eol();){if(me.match(ce)){Pe.tokenize=Lt;break}me.next()}return Xt}}function tt(Xt){return function(ce,me){for(var Pe;(Pe=ce.next())!=null;){if(Pe=="<")return me.tokenize=tt(Xt+1),me.tokenize(ce,me);if(Pe==">")if(Xt==1){me.tokenize=Lt;break}else return me.tokenize=tt(Xt-1),me.tokenize(ce,me)}return"meta"}}function st(Xt,ce,me){this.prev=Xt.context,this.tagName=ce,this.indent=Xt.indented,this.startOfLine=me,(St.doNotIndent.hasOwnProperty(ce)||Xt.context&&Xt.context.noIndent)&&(this.noIndent=!0)}function rt(Xt){Xt.context&&(Xt.context=Xt.context.prev)}function ut(Xt,ce){for(var me;;){if(!Xt.context||(me=Xt.context.tagName,!St.contextGrabbers.hasOwnProperty(me)||!St.contextGrabbers[me].hasOwnProperty(ce)))return;rt(Xt)}}function ct(Xt,ce,me){return Xt=="openTag"?(me.tagStart=ce.column(),gt):Xt=="closeTag"?ft:ct}function gt(Xt,ce,me){return Xt=="word"?(me.tagName=ce.current(),Ct="tag",Ht):St.allowMissingTagName&&Xt=="endTag"?(Ct="tag bracket",Ht(Xt,ce,me)):(Ct="error",gt)}function ft(Xt,ce,me){if(Xt=="word"){var Pe=ce.current();return me.context&&me.context.tagName!=Pe&&St.implicitlyClosed.hasOwnProperty(me.context.tagName)&&rt(me),me.context&&me.context.tagName==Pe||St.matchClosing===!1?(Ct="tag",kt):(Ct="tag error",jt)}else return St.allowMissingTagName&&Xt=="endTag"?(Ct="tag bracket",kt(Xt,ce,me)):(Ct="error",jt)}function kt(Xt,ce,me){return Xt!="endTag"?(Ct="error",kt):(rt(me),ct)}function jt(Xt,ce,me){return Ct="error",kt(Xt,ce,me)}function Ht(Xt,ce,me){if(Xt=="word")return Ct="attribute",Ot;if(Xt=="endTag"||Xt=="selfcloseTag"){var Pe=me.tagName,De=me.tagStart;return me.tagName=me.tagStart=null,Xt=="selfcloseTag"||St.autoSelfClosers.hasOwnProperty(Pe)?ut(me,Pe):(ut(me,Pe),me.context=new st(me,Pe,De==me.indented)),ct}return Ct="error",Ht}function Ot(Xt,ce,me){return Xt=="equals"?te:(St.allowMissing||(Ct="error"),Ht(Xt,ce,me))}function te(Xt,ce,me){return Xt=="string"?ne:Xt=="word"&&St.allowUnquoted?(Ct="string",Ht):(Ct="error",Ht(Xt,ce,me))}function ne(Xt,ce,me){return Xt=="string"?ne:Ht(Xt,ce,me)}return{startState:function(Xt){var ce={tokenize:Lt,state:ct,indented:Xt||0,tagName:null,tagStart:null,context:null};return Xt!=null&&(ce.baseIndent=Xt),ce},token:function(Xt,ce){if(!ce.tagName&&Xt.sol()&&(ce.indented=Xt.indentation()),Xt.eatSpace())return null;Pt=null;var me=ce.tokenize(Xt,ce);return(me||Pt)&&me!="comment"&&(Ct=null,ce.state=ce.state(Pt||me,Xt,ce),Ct&&(me=Ct=="error"?me+" error":Ct)),me},indent:function(Xt,ce,me){var Pe=Xt.context;if(Xt.tokenize.isInAttribute)return Xt.tagStart==Xt.indented?Xt.stringStartCol+1:Xt.indented+Dt;if(Pe&&Pe.noIndent)return Jt.Pass;if(Xt.tokenize!=Ft&&Xt.tokenize!=Lt)return me?me.match(/^(\s*)/)[0].length:0;if(Xt.tagName)return St.multilineTagIndentPastTag!==!1?Xt.tagStart+Xt.tagName.length+2:Xt.tagStart+Dt*(St.multilineTagIndentFactor||1);if(St.alignCDATA&&/<!\[CDATA\[/.test(ce))return 0;var De=ce&&/^<(\/)?([\w_:\.-]*)/.exec(ce);if(De&&De[1])for(;Pe;)if(Pe.tagName==De[2]){Pe=Pe.prev;break}else if(St.implicitlyClosed.hasOwnProperty(Pe.tagName))Pe=Pe.prev;else break;else if(De)for(;Pe;){var Ve=St.contextGrabbers[Pe.tagName];if(Ve&&Ve.hasOwnProperty(De[2]))Pe=Pe.prev;else break}for(;Pe&&Pe.prev&&!Pe.startOfLine;)Pe=Pe.prev;return Pe?Pe.indent+Dt:Xt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:St.htmlMode?"html":"xml",helperType:St.htmlMode?"html":"xml",skipAttribute:function(Xt){Xt.state==te&&(Xt.state=Ht)},xmlCurrentTag:function(Xt){return Xt.tagName?{name:Xt.tagName,close:Xt.type=="closeTag"}:null},xmlCurrentContext:function(Xt){for(var ce=[],me=Xt.context;me;me=me.prev)me.tagName&&ce.push(me.tagName);return ce.reverse()}}}),Jt.defineMIME("text/xml","xml"),Jt.defineMIME("application/xml","xml"),Jt.mimeModes.hasOwnProperty("text/html")||Jt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},23495:function(An,jn,he){"use strict";he.d(jn,{$u:function(){return Nt},BD:function(){return oe},E9:function(){return Et},FF:function(){return wr},FJ:function(){return ct},Hn:function(){return ut},KX:function(){return ft},NB:function(){return Wt},S0:function(){return _e},UL:function(){return Pt},Vk:function(){return rt},Vm:function(){return fe},YI:function(){return Fe},ZA:function(){return qt},Zt:function(){return Ct},al:function(){return Kt},bn:function(){return se},bx:function(){return Mt},g2:function(){return Ae},h1:function(){return te},hD:function(){return fi},l4:function(){return Dt},rU:function(){return Zt},s_:function(){return At},uz:function(){return ie},z6:function(){return Lt}}),An=he.hmd(An),function(){var Ut;function cn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Pn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:cn(a)}}function kn(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Nn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},On;if(typeof Object.setPrototypeOf=="function")On=Object.setPrototypeOf;else{var Hn;t:{var gi={a:!0},nn={};try{nn.__proto__=gi,Hn=nn.a;break t}catch(a){}Hn=!1}On=Hn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var en=On;function We(a,y){if(a.prototype=Nn(y.prototype),a.prototype.constructor=a,en)en(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var sn=typeof he.g!="undefined"&&he.g!=null?he.g:self,Xn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Zn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function zn(a,y){if(y){var x=sn;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Zn(x,a,{writable:!0,value:y})}}zn("Object.assign",function(a){return a||Xn}),zn("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Ze=typeof globalThis=="object"&&globalThis||typeof he.g=="object"&&he.g.global===he.g&&he.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 mn(){}function ri(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ze.clearTimeout(x),x=Si(function(){x=-1,a.apply(b,E)},y)}}function Si(a,y){return Ze.setTimeout(a,y)}function En(a){return Ze.document.createElement(a)}function Ye(a){throw Error(a)}function ti(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ye(a)}function xi(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Ye(x+" is not in the range "+y+": "+a)}function Ui(a){Ze.console&&Ze.console.log(a)}function yn(a){return typeof a=="object"&&a!==null}function hi(a){return Array.isArray(a)||Ze.NodeList&&a instanceof Ze.NodeList||Ze.HTMLCollection&&a instanceof Ze.HTMLCollection}function tr(a){return Array.prototype.slice.call(a)}function zr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ye("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function xr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ye("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function li(){var a=to.pop();return a===void 0?[]:a}function ai(a){a.length=0,to.push(a)}function vi(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(yn(a)&&a.constructor)return vi(a.constructor);return typeof a}function qi(a){var y=a;return yn(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 Lr(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 In(a,y,x){Object.defineProperty(Ur.prototype,a,{get:y,set:x})}function Ai(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var $o=Ze.navigator!==void 0&&0<Ze.navigator.userAgent.indexOf("Trident/7"),xo=Ze.navigator!==void 0&&Ze.navigator.platform!==void 0&&Ze.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,to=[];Object.freeze([]),mn.className="Util",mn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",mn.adym="gojs.net",mn.vfo="28e645fdb266",mn.className="Util";function qe(a,y,x){je(this),this.j=a,this.xa=y,this.o=x}qe.prototype.toString=function(){return"EnumValue."+this.xa};function Oi(a,y){return y==null||y===""?null:a[y]}sn.Object.defineProperties(qe.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),qe.className="EnumValue";function ar(){this.ew=[]}ar.prototype.toString=function(){return this.ew.join("")},ar.prototype.add=function(a){a!==""&&this.ew.push(a)},ar.className="StringBuilder";function Pi(){}Pi.className="PropertyCollection";var Gr={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,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function lr(){}lr.prototype.reset=function(){},lr.prototype.next=function(){return!1},lr.prototype.Ad=function(){return!1},lr.prototype.first=function(){return null},lr.prototype.any=function(){return!1},lr.prototype.all=function(){return!0},lr.prototype.each=function(){return this},lr.prototype.map=function(){return this},lr.prototype.filter=function(){return this},lr.prototype.de=function(){},lr.prototype.toString=function(){return"EmptyIterator"},sn.Object.defineProperties(lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),lr.prototype.first=lr.prototype.first,lr.prototype.hasNext=lr.prototype.Ad,lr.prototype.next=lr.prototype.next,lr.prototype.reset=lr.prototype.reset;var yr=null;lr.className="EmptyIterator",yr=new lr;function cr(a){this.key=-1,this.value=a}cr.prototype.reset=function(){this.key=-1},cr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},cr.prototype.Ad=function(){return this.next()},cr.prototype.first=function(){return this.key=0,this.value},cr.prototype.any=function(a){return this.key=-1,a(this.value)},cr.prototype.all=function(a){return this.key=-1,a(this.value)},cr.prototype.each=function(a){return this.key=-1,a(this.value),this},cr.prototype.map=function(a){return new cr(a(this.value))},cr.prototype.filter=function(a){return a(this.value)?new cr(this.value):yr},cr.prototype.de=function(){this.value=null},cr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},sn.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset,cr.className="SingletonIterator";function er(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}er.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},er.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},er.prototype.Ad=function(){return this.next()},er.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},er.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},er.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},er.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},er.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new Cn,a.s=x,a.xb(),a.iterator},er.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new Cn,a.s=x,a.xb(),a.iterator},er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},er.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},sn.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="ListIterator";function Er(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Er.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Er.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)},Er.prototype.Ad=function(){return this.next()},Er.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},Er.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},Er.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},Er.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},Er.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Cn,a.s=x,a.xb(),a.iterator},Er.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Cn,a.s=x,a.xb(),a.iterator},Er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Er.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},sn.Object.defineProperties(Er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Er.prototype.first=Er.prototype.first,Er.prototype.hasNext=Er.prototype.Ad,Er.prototype.next=Er.prototype.next,Er.prototype.reset=Er.prototype.reset,Er.className="ListIteratorBackwards";function Cn(a){je(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ye("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ut=Cn.prototype,Ut.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return this._isFrozen=!1,this},Ut.toString=function(){return"List()#"+Me(this)},Ut.add=function(a){return a===null?this:(this._isFrozen&&ti(this,a),this.s.push(a),this.xb(),this)},Ut.push=function(a){this.add(a)},Ut.addAll=function(a){if(a===null)return this;this._isFrozen&&ti(this);var y=this.s;if(hi(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ut.clear=function(){this._isFrozen&&ti(this),this.s.length=0,this.xb()},Ut.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ut.has=function(a){return this.contains(a)},Ut.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ut.M=function(a){var y=this.s;return(0>a||a>=y.length)&&xi(a,"0 <= i < length",Cn,"elt:i"),y[a]},Ut.get=function(a){return this.M(a)},Ut.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&xi(a,"0 <= i < length",Cn,"setElt:i"),this._isFrozen&&ti(this,a),x[a]=y},Ut.set=function(a,y){this.cd(a,y)},Ut.first=function(){var a=this.s;return a.length===0?null:a[0]},Ut.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ut.pop=function(){this._isFrozen&&ti(this);var a=this.s;return 0<a.length?a.pop():null},Cn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Cn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Cn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Cn.prototype.map=function(a){for(var y=new Cn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Cn.prototype.filter=function(a){for(var y=new Cn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},Ut=Cn.prototype,Ut.Gb=function(a,y){0>a&&xi(a,">= 0",Cn,"insertAt:i"),this._isFrozen&&ti(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ut.remove=function(a){if(a===null)return!1;this._isFrozen&&ti(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)},Ut.delete=function(a){return this.remove(a)},Ut.mb=function(a){var y=this.s;(0>a||a>=y.length)&&xi(a,"0 <= i < length",Cn,"removeAt:i"),this._isFrozen&&ti(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ut.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&ti(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Cn.prototype.copy=function(){var a=new Cn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ut=Cn.prototype,Ut.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ut.Iv=function(){for(var a=new Oe,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ut.sort=function(a){return this._isFrozen&&ti(this),this.s.sort(a),this.xb(),this},Ut.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&ti(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&xi(y,"0 <= from < length",Cn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Ut.reverse=function(){return this._isFrozen&&ti(this),this.s.reverse(),this.xb(),this},sn.Object.defineProperties(Cn.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 yr;var a=this.Sa;return a!==null?(a.reset(),a):new er(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return yr;var a=this.Hg;return a!==null?(a.reset(),a):new Er(this)}}}),Cn.prototype.reverse=Cn.prototype.reverse,Cn.prototype.sortRange=Cn.prototype.zi,Cn.prototype.sort=Cn.prototype.sort,Cn.prototype.toSet=Cn.prototype.Iv,Cn.prototype.toArray=Cn.prototype.Fa,Cn.prototype.removeRange=Cn.prototype.removeRange,Cn.prototype.removeAt=Cn.prototype.mb,Cn.prototype.delete=Cn.prototype.delete,Cn.prototype.remove=Cn.prototype.remove,Cn.prototype.insertAt=Cn.prototype.Gb,Cn.prototype.pop=Cn.prototype.pop,Cn.prototype.last=Cn.prototype.jc,Cn.prototype.first=Cn.prototype.first,Cn.prototype.set=Cn.prototype.set,Cn.prototype.setElt=Cn.prototype.cd,Cn.prototype.get=Cn.prototype.get,Cn.prototype.elt=Cn.prototype.M,Cn.prototype.indexOf=Cn.prototype.indexOf,Cn.prototype.has=Cn.prototype.has,Cn.prototype.contains=Cn.prototype.contains,Cn.prototype.clear=Cn.prototype.clear,Cn.prototype.addAll=Cn.prototype.addAll,Cn.prototype.push=Cn.prototype.push,Cn.prototype.add=Cn.prototype.add,Cn.prototype.thaw=Cn.prototype.ka,Cn.prototype.freeze=Cn.prototype.freeze,Cn.className="List";function eo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}eo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},eo.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)},eo.prototype.Ad=function(){return this.next()},eo.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},eo.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},eo.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},eo.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},eo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},eo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},eo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},eo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},sn.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="SetIterator";function Oe(a){je(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ye("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ut=Oe.prototype,Ut.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return this._isFrozen=!1,this},Ut.toString=function(){return"Set()#"+Me(this)},Ut.add=function(a){if(a===null)return this;this._isFrozen&&ti(this,a);var y=a;return yn(a)&&(y=wn(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Yn(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},Ut.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ti(this),hi(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},Ut.contains=function(a){if(a===null)return!1;var y=a;return yn(a)&&(y=Me(a),y===void 0)?!1:this.Tb[y]!==void 0},Ut.has=function(a){return this.contains(a)},Ut.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ut.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ut.first=function(){var a=this.ea;return a===null?null:a.value},Oe.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Oe.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Oe.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Oe.prototype.map=function(a){for(var y=new Oe,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Oe.prototype.filter=function(a){for(var y=new Oe,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Ut=Oe.prototype,Ut.remove=function(a){if(a===null)return!1;this._isFrozen&&ti(this,a);var y=a;if(yn(a)&&(y=Me(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ut.delete=function(a){return this.remove(a)},Ut.hp=function(a){if(a===null)return this;if(this._isFrozen&&ti(this),hi(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},Ut.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ti(this);var y=new Oe;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Ut.clear=function(){this._isFrozen&&ti(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Oe.prototype.copy=function(){var a=new Oe,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Oe.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Oe.prototype.Hv=function(){var a=new Cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function je(a){a.__gohashid=Ie++}function wn(a){var y=a.__gohashid;return y===void 0&&(y=Ie++,a.__gohashid=y),y}function Me(a){return a.__gohashid}sn.Object.defineProperties(Oe.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return yr;var a=this.Sa;return a!==null?(a.reset(),a):new eo(this)}}}),Oe.prototype.toList=Oe.prototype.Hv,Oe.prototype.toArray=Oe.prototype.Fa,Oe.prototype.clear=Oe.prototype.clear,Oe.prototype.retainAll=Oe.prototype.pA,Oe.prototype.removeAll=Oe.prototype.hp,Oe.prototype.delete=Oe.prototype.delete,Oe.prototype.remove=Oe.prototype.remove,Oe.prototype.first=Oe.prototype.first,Oe.prototype.containsAny=Oe.prototype.Ty,Oe.prototype.containsAll=Oe.prototype.Sy,Oe.prototype.has=Oe.prototype.has,Oe.prototype.contains=Oe.prototype.contains,Oe.prototype.addAll=Oe.prototype.addAll,Oe.prototype.add=Oe.prototype.add,Oe.prototype.thaw=Oe.prototype.ka,Oe.prototype.freeze=Oe.prototype.freeze;var Ie=1;Oe.className="Set",Oe.uniqueHash=je,Oe.hashIdUnique=wn,Oe.hashId=Me;function Ge(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ge.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ge.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)},Ge.prototype.Ad=function(){return this.next()},Ge.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},Ge.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},Ge.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},Ge.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},Ge.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ge.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Ge.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ge.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},sn.Object.defineProperties(Ge.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ge.prototype.first=Ge.prototype.first,Ge.prototype.hasNext=Ge.prototype.Ad,Ge.prototype.next=Ge.prototype.next,Ge.prototype.reset=Ge.prototype.reset,Ge.className="MapKeySetIterator";function rn(a){Oe.call(this),je(this),this._isFrozen=!0,this.ma=a}We(rn,Oe),Ut=rn.prototype,Ut.freeze=function(){return this},Ut.ka=function(){return this},Ut.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ut.add=function(){Ye("This Set is read-only: "+this.toString())},Ut.contains=function(a){return this.ma.contains(a)},Ut.has=function(a){return this.contains(a)},Ut.remove=function(){Ye("This Set is read-only: "+this.toString())},Ut.delete=function(a){return this.remove(a)},Ut.clear=function(){Ye("This Set is read-only: "+this.toString())},Ut.first=function(){var a=this.ma.ea;return a!==null?a.key:null},rn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},rn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},rn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},rn.prototype.map=function(a){for(var y=new Oe,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},rn.prototype.filter=function(a){for(var y=new Oe,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},rn.prototype.copy=function(){return new rn(this.ma)},rn.prototype.Iv=function(){var a=new Oe,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},rn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},rn.prototype.Hv=function(){var a=new Cn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},sn.Object.defineProperties(rn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?yr:new Ge(this.ma)}}}),rn.prototype.toList=rn.prototype.Hv,rn.prototype.toArray=rn.prototype.Fa,rn.prototype.toSet=rn.prototype.Iv,rn.prototype.first=rn.prototype.first,rn.prototype.clear=rn.prototype.clear,rn.prototype.delete=rn.prototype.delete,rn.prototype.remove=rn.prototype.remove,rn.prototype.has=rn.prototype.has,rn.prototype.contains=rn.prototype.contains,rn.prototype.add=rn.prototype.add,rn.prototype.thaw=rn.prototype.ka,rn.prototype.freeze=rn.prototype.freeze,rn.className="MapKeySet";function Ln(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ln.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ln.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)},Ln.prototype.Ad=function(){return this.next()},Ln.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},Ln.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},Ln.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},Ln.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},Ln.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ln.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ln.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ln.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},sn.Object.defineProperties(Ln.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ln.prototype.first=Ln.prototype.first,Ln.prototype.hasNext=Ln.prototype.Ad,Ln.prototype.next=Ln.prototype.next,Ln.prototype.reset=Ln.prototype.reset,Ln.className="MapValueSetIterator";function Yn(a,y){this.key=a,this.value=y,this.ll=this.va=null}Yn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Yn.className="KeyValuePair";function Wn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Wn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Wn.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)},Wn.prototype.Ad=function(){return this.next()},Wn.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},Wn.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},Wn.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},Wn.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},Wn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Wn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Wn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Wn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},sn.Object.defineProperties(Wn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Wn.prototype.first=Wn.prototype.first,Wn.prototype.hasNext=Wn.prototype.Ad,Wn.prototype.next=Wn.prototype.next,Wn.prototype.reset=Wn.prototype.reset,Wn.className="MapIterator";function pn(a){je(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"&&Ye("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ut=pn.prototype,Ut.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return this._isFrozen=!1,this},Ut.toString=function(){return"Map()#"+Me(this)},Ut.add=function(a,y){this._isFrozen&&ti(this,a);var x=a;yn(a)&&(x=wn(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Yn(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Ut.set=function(a,y){return this.add(a,y)},Ut.addAll=function(a){if(a===null)return this;if(hi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof pn)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},Ut.first=function(){return this.ea},pn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},pn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},pn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},pn.prototype.map=function(a){for(var y=new pn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},pn.prototype.filter=function(a){for(var y=new pn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ut=pn.prototype,Ut.contains=function(a){var y=a;return yn(a)&&(y=Me(a),y===void 0)?!1:this.Tb[y]!==void 0},Ut.has=function(a){return this.contains(a)},Ut.I=function(a){var y=a;return yn(a)&&(y=Me(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ut.get=function(a){return this.I(a)},Ut.remove=function(a){if(a===null)return!1;this._isFrozen&&ti(this,a);var y=a;if(yn(a)&&(y=Me(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ut.delete=function(a){return this.remove(a)},Ut.clear=function(){this._isFrozen&&ti(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()},pn.prototype.copy=function(){var a=new pn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},pn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Yn(E.key,E.value),x++}return y},pn.prototype.Lf=function(){return new rn(this)},sn.Object.defineProperties(pn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return yr;var a=this.Sa;return a!==null?(a.reset(),a):new Wn(this)}},iteratorKeys:{get:function(){return 0>=this.count?yr:new Ge(this)}},iteratorValues:{get:function(){if(0>=this.count)return yr;var a=this.jf;return a!==null?(a.reset(),a):new Ln(this)}}}),pn.prototype.toKeySet=pn.prototype.Lf,pn.prototype.toArray=pn.prototype.Fa,pn.prototype.clear=pn.prototype.clear,pn.prototype.delete=pn.prototype.delete,pn.prototype.remove=pn.prototype.remove,pn.prototype.get=pn.prototype.get,pn.prototype.getValue=pn.prototype.I,pn.prototype.has=pn.prototype.has,pn.prototype.contains=pn.prototype.contains,pn.prototype.first=pn.prototype.first,pn.prototype.addAll=pn.prototype.addAll,pn.prototype.set=pn.prototype.set,pn.prototype.add=pn.prototype.add,pn.prototype.thaw=pn.prototype.ka,pn.prototype.freeze=pn.prototype.freeze,pn.className="Map";function de(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ye("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Mi,Wi,nr,ir,rr;de.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},de.prototype.h=function(a,y){return this.x=a,this.y=y,this},de.prototype.sg=function(a,y){return this.x=a,this.y=y,this},de.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},de.prototype.copy=function(){var a=new de;return a.x=this.x,a.y=this.y,a},Ut=de.prototype,Ut.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ut.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vi(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new de(x,E)}return new de}function Dr(a){return a.x.toString()+" "+a.y.toString()}Ut.toString=function(){return"Point("+this.x+","+this.y+")"},Ut.D=function(a){return a instanceof de?this.x===a.x&&this.y===a.y:!1},Ut.hi=function(a,y){return this.x===a&&this.y===y},Ut.Xa=function(a){return ze.B(this.x,a.x)&&ze.B(this.y,a.y)},Ut.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ut.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ut.offset=function(a,y){return this.x+=a,this.y+=y,this},de.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Ut=de.prototype,Ut.scale=function(a,y){return this.x*=a,this.y*=y,this},Ut.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ut.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ut.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},Ut.ab=function(a){return or(a.x-this.x,a.y-this.y)},Ut.direction=function(a,y){return or(a-this.x,y-this.y)};function or(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}Ut.Ry=function(a,y){return ze.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ut.fA=function(a,y,x,b){return ze.qh(a,y,x,b,this.x,this.y,this),this},Ut.gA=function(a,y){return ze.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ut.uA=function(a,y,x,b){return ze.No(this.x,this.y,a,y,x,b,this),this},Ut.vA=function(a,y){return ze.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ut.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},Ut.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Ut.transform=function(a){return a.Ga(this),this};function Di(a,y){return y.Cd(a),a}function wi(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ht=-x*nt-b*ot;return 0>=ht||ht>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function Qn(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Rn(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Ut.w=function(){return isFinite(this.x)&&isFinite(this.y)},de.alloc=function(){var a=ni.pop();return a===void 0?new de:a},de.allocAt=function(a,y){var x=ni.pop();return x===void 0?new de(a,y):(x.x=a,x.y=y,x)},de.free=function(a){ni.push(a)},de.prototype.isReal=de.prototype.w,de.prototype.setSpot=de.prototype.yi,de.prototype.setRectSpot=de.prototype.xi,de.prototype.snapToGridPoint=de.prototype.vA,de.prototype.snapToGrid=de.prototype.uA,de.prototype.projectOntoLineSegmentPoint=de.prototype.gA,de.prototype.projectOntoLineSegment=de.prototype.fA,de.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return ze.Rl(a,y,x,b,E,z,nt,ot)},de.prototype.compareWithLineSegmentPoint=de.prototype.Ry,de.compareWithLineSegment=function(a,y,x,b,E,z){return ze.Fl(a,y,x,b,E,z)},de.prototype.direction=de.prototype.direction,de.prototype.directionPoint=de.prototype.ab,de.prototype.normalize=de.prototype.normalize,de.prototype.distanceSquared=de.prototype.zd,de.prototype.distanceSquaredPoint=de.prototype.Bf,de.prototype.scale=de.prototype.scale,de.prototype.rotate=de.prototype.rotate,de.prototype.offset=de.prototype.offset,de.prototype.subtract=de.prototype.re,de.prototype.add=de.prototype.add,de.prototype.equalsApprox=de.prototype.Xa,de.prototype.equalTo=de.prototype.hi,de.prototype.equals=de.prototype.D,de.prototype.set=de.prototype.set,de.prototype.setTo=de.prototype.sg;var ni=[];de.className="Point",de.parse=Vi,de.stringify=Dr,de.distanceLineSegmentSquared=wi,de.distanceSquared=Qn,de.direction=Rn,de.Origin=Mi=new de(0,0).ja(),de.InfiniteTopLeft=Wi=new de(-1/0,-1/0).ja(),de.InfiniteBottomRight=nr=new de(1/0,1/0).ja(),de.SixPoint=ir=new de(6,6).ja(),de.NoPoint=rr=new de(NaN,NaN).ja(),de.parse=Vi,de.stringify=Dr,de.distanceLineSegmentSquared=wi,de.distanceSquared=Qn,de.direction=Rn;function on(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):Ye("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ui,di,Zi,Qi,$i,mr,_r;on.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},on.prototype.h=function(a,y){return this.width=a,this.height=y,this},on.prototype.sg=function(a,y){return this.width=a,this.height=y,this},on.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},on.prototype.copy=function(){var a=new on;return a.width=this.width,a.height=this.height,a},Ut=on.prototype,Ut.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ut.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ir(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new on(x,E)}return new on}function ao(a){return a.width.toString()+" "+a.height.toString()}Ut.toString=function(){return"Size("+this.width+","+this.height+")"},Ut.D=function(a){return a instanceof on?this.width===a.width&&this.height===a.height:!1},Ut.hi=function(a,y){return this.width===a&&this.height===y},Ut.Xa=function(a){return ze.B(this.width,a.width)&&ze.B(this.height,a.height)},Ut.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},Ut.w=function(){return isFinite(this.width)&&isFinite(this.height)},on.alloc=function(){var a=Ao.pop();return a===void 0?new on:a},on.free=function(a){Ao.push(a)},on.prototype.isReal=on.prototype.w,on.prototype.inflate=on.prototype.Bc,on.prototype.equalsApprox=on.prototype.Xa,on.prototype.equalTo=on.prototype.hi,on.prototype.equals=on.prototype.D,on.prototype.set=on.prototype.set,on.prototype.setTo=on.prototype.sg;var Ao=[];on.className="Size",on.parse=Ir,on.stringify=ao,on.ZeroSize=ui=new on(0,0).ja(),on.OneSize=di=new on(1,1).ja(),on.SixSize=Zi=new on(6,6).ja(),on.EightSize=Qi=new on(8,8).ja(),on.TenSize=$i=new on(10,10).ja(),on.InfiniteSize=mr=new on(1/0,1/0).ja(),on.NoSize=_r=new on(NaN,NaN).ja(),on.parse=Ir,on.stringify=ao;function Je(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof de?(x=a.x,a=a.y,y instanceof de?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof on?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ye("Incorrect second argument supplied to Rect constructor "+y)):Ye("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ut=Je.prototype,Ut.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ut.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Kr(a,y,x){a.width=y,a.height=x}Ut.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ut.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ut.dd=function(a){return this.x=a.x,this.y=a.y,this},Ut.tA=function(a){return this.width=a.width,this.height=a.height,this},Je.prototype.copy=function(){var a=new Je;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ut=Je.prototype,Ut.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ut.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new Je(x,E,z,nt)}return new Je}function Mo(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ut.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ut.D=function(a){return a instanceof Je?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ut.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ut.Xa=function(a){return ze.B(this.x,a.x)&&ze.B(this.y,a.y)&&ze.B(this.width,a.width)&&ze.B(this.height,a.height)};function dr(a,y){return ze.$(a.x,y.x)&&ze.$(a.y,y.y)&&ze.$(a.width,y.width)&&ze.$(a.height,y.height)}Ut.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ut.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},Ut.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Ut.offset=function(a,y){return this.x+=a,this.y+=y,this},Ut.Bc=function(a,y){return To(this,y,a,y,a)},Ut.Co=function(a){return To(this,a.top,a.right,a.bottom,a.left)},Ut.Fv=function(a){return To(this,-a.top,-a.right,-a.bottom,-a.left)},Ut.Hz=function(a,y,x,b){return To(this,a,y,x,b)};function To(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Ut.Ex=function(a){return oo(this,a.x,a.y,a.width,a.height)},Ut.Uu=function(a,y,x,b){return oo(this,a,y,x,b)};function oo(a,y,x,b,E){var z=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}Ut.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ut.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function No(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Ut.Ye=function(a){return ur(this,a.x,a.y,0,0)},Ut.ed=function(a){return ur(this,a.x,a.y,a.width,a.height)},Ut.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),ur(this,a,y,x,b)};function ur(a,y,x,b,E){var z=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=y-z,a.height=x-nt,a}Ut.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 Br(a,y,x,b,E,z,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=E&&E+nt<=a+x&&y<=z&&z+ot<=y+b}function Ti(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Ut.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ut.Mz=function(){return this.width===0&&this.height===0},Je.alloc=function(){var a=kr.pop();return a===void 0?new Je:a},Je.allocAt=function(a,y,x,b){var E=kr.pop();return E===void 0?new Je(a,y,x,b):E.h(a,y,x,b)},Je.free=function(a){kr.push(a)},sn.Object.defineProperties(Je.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 de(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new on(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new de(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}}}),Je.prototype.isEmpty=Je.prototype.Mz,Je.prototype.isReal=Je.prototype.w,Je.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return ze.Fx(a,y,x,b,E,z,nt,ot)},Je.prototype.setSpot=Je.prototype.yi,Je.prototype.union=Je.prototype.Kv,Je.prototype.unionRect=Je.prototype.ed,Je.prototype.unionPoint=Je.prototype.Ye,Je.prototype.intersects=Je.prototype.Vu,Je.prototype.intersectsRect=Je.prototype.Yc,Je.prototype.intersect=Je.prototype.Uu,Je.prototype.intersectRect=Je.prototype.Ex,Je.prototype.grow=Je.prototype.Hz,Je.prototype.subtractMargin=Je.prototype.Fv,Je.prototype.addMargin=Je.prototype.Co,Je.prototype.inflate=Je.prototype.Bc,Je.prototype.offset=Je.prototype.offset,Je.prototype.contains=Je.prototype.contains,Je.prototype.containsRect=Je.prototype.Re,Je.prototype.containsPoint=Je.prototype.ca,Je.prototype.equalsApprox=Je.prototype.Xa,Je.prototype.equalTo=Je.prototype.hi,Je.prototype.equals=Je.prototype.D,Je.prototype.setSize=Je.prototype.tA,Je.prototype.setPoint=Je.prototype.dd,Je.prototype.set=Je.prototype.set,Je.prototype.setTo=Je.prototype.sg;var Yi=null,sr=null,kr=[];Je.className="Rect",Je.parse=Jr,Je.stringify=Mo,Je.contains=Br,Je.intersects=Ti,Je.ZeroRect=Yi=new Je(0,0,0,0).ja(),Je.NoRect=sr=new Je(NaN,NaN,NaN,NaN).ja(),Je.parse=Jr,Je.stringify=Mo,Je.contains=Br,Je.intersects=Ti;function ii(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):Ye("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ii.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},ii.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.copy=function(){var a=new ii;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ut=ii.prototype,Ut.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ut.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this};function so(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new ii;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new ii(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new ii(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new ii(x,E):new ii(x,E,z,nt)}return new ii}function Zr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ut.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ut.D=function(a){return a instanceof ii?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ut.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ut.Xa=function(a){return ze.B(this.top,a.top)&&ze.B(this.right,a.right)&&ze.B(this.bottom,a.bottom)&&ze.B(this.left,a.left)},Ut.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},ii.alloc=function(){var a=ts.pop();return a===void 0?new ii:a},ii.free=function(a){ts.push(a)},ii.prototype.isReal=ii.prototype.w,ii.prototype.equalsApprox=ii.prototype.Xa,ii.prototype.equalTo=ii.prototype.hi,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var uo=null,_o=null,ts=[];ii.className="Margin",ii.parse=so,ii.stringify=Zr,ii.ZeroMargin=uo=new ii(0,0,0,0).ja(),ii.TwoMargin=_o=new ii(2,2,2,2).ja(),ii.parse=so,ii.stringify=Zr;function _n(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var no,ho,es,qr,Qo,Gi,ga,Vo,Ro,ws,Qa,dl,ta,pa,lh,Bc,uh,Qh,ea,ja,qa,fl,Td,Nd,Zf,ns,Fp,Jf,Ic,qh,na,ia,fs,js,Fd,Rc;_n.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_n.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},_n.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_n.prototype.copy=function(){var a=new _n;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ut=_n.prototype,Ut.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ut.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Od(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return no;if(a==="TopLeft")return ho;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return es;if(a==="TopRight")return qr;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Qo;if(a==="Center")return Gi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ga;if(a==="BottomLeft")return Vo;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ro;if(a==="BottomRight")return ws;if(a==="TopSide")return Qa;if(a==="LeftSide")return dl;if(a==="RightSide")return ta;if(a==="BottomSide")return pa;if(a==="TopBottomSides")return lh;if(a==="LeftRightSides")return Bc;if(a==="TopLeftSides")return uh;if(a==="TopRightSides")return Qh;if(a==="BottomLeftSides")return ea;if(a==="BottomRightSides")return ja;if(a==="NotTopSide")return qa;if(a==="NotLeftSide")return fl;if(a==="NotRightSide")return Td;if(a==="NotBottomSide")return Nd;if(a==="AllSides")return Zf;if(a==="Default")return ns;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new _n(x,E,z,nt)}return new _n}function Dd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ut.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(no)?"None":this.D(ho)?"TopLeft":this.D(es)?"Top":this.D(qr)?"TopRight":this.D(Qo)?"Left":this.D(Gi)?"Center":this.D(ga)?"Right":this.D(Vo)?"BottomLeft":this.D(Ro)?"Bottom":this.D(ws)?"BottomRight":this.D(Qa)?"TopSide":this.D(dl)?"LeftSide":this.D(ta)?"RightSide":this.D(pa)?"BottomSide":this.D(lh)?"TopBottomSides":this.D(Bc)?"LeftRightSides":this.D(uh)?"TopLeftSides":this.D(Qh)?"TopRightSides":this.D(ea)?"BottomLeftSides":this.D(ja)?"BottomRightSides":this.D(qa)?"NotTopSide":this.D(fl)?"NotLeftSide":this.D(Td)?"NotRightSide":this.D(Nd)?"NotBottomSide":this.D(Zf)?"AllSides":this.D(ns)?"Default":"None"},Ut.D=function(a){return a instanceof _n?(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},Ut.gv=function(){return new _n(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ut.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Fp))a=dl;else if(a.D(Jf))a=ta;else if(a.D(Ic))a=Qa;else if(a.D(qh))a=pa;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ut.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ut.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ut.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ut.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ut.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},_n.alloc=function(){var a=Bd.pop();return a===void 0?new _n:a},_n.free=function(a){Bd.push(a)},_n.prototype.isDefault=_n.prototype.Xb,_n.prototype.isNone=_n.prototype.ys,_n.prototype.isSide=_n.prototype.$c,_n.prototype.isNoSpot=_n.prototype.Mc,_n.prototype.isSpot=_n.prototype.sb,_n.prototype.includesSide=_n.prototype.Hf,_n.prototype.opposite=_n.prototype.gv,_n.prototype.equals=_n.prototype.D,_n.prototype.set=_n.prototype.set,_n.prototype.setTo=_n.prototype.sg;var Bd=[];_n.className="Spot",_n.parse=Od,_n.stringify=Dd,_n.None=no=Wo(new _n(0,0,0,0),0).ja(),_n.Default=ns=Wo(new _n(0,0,-1,0),-1).ja(),_n.TopLeft=ho=new _n(0,0,0,0).ja(),_n.TopCenter=es=new _n(.5,0,0,0).ja(),_n.TopRight=qr=new _n(1,0,0,0).ja(),_n.LeftCenter=Qo=new _n(0,.5,0,0).ja(),_n.Center=Gi=new _n(.5,.5,0,0).ja(),_n.RightCenter=ga=new _n(1,.5,0,0).ja(),_n.BottomLeft=Vo=new _n(0,1,0,0).ja(),_n.BottomCenter=Ro=new _n(.5,1,0,0).ja(),_n.BottomRight=ws=new _n(1,1,0,0).ja(),_n.MiddleTop=na=es,_n.MiddleLeft=ia=Qo,_n.MiddleRight=fs=ga,_n.MiddleBottom=js=Ro,_n.Top=Ic=es,_n.Left=Fp=Qo,_n.Right=Jf=ga,_n.Bottom=qh=Ro,_n.TopSide=Qa=Wo(new _n(0,0,1,1),1).ja(),_n.LeftSide=dl=Wo(new _n(0,0,1,2),1).ja(),_n.RightSide=ta=Wo(new _n(0,0,1,4),1).ja(),_n.BottomSide=pa=Wo(new _n(0,0,1,8),1).ja(),_n.TopBottomSides=lh=Wo(new _n(0,0,1,9),1).ja(),_n.LeftRightSides=Bc=Wo(new _n(0,0,1,6),1).ja(),_n.TopLeftSides=uh=Wo(new _n(0,0,1,3),1).ja(),_n.TopRightSides=Qh=Wo(new _n(0,0,1,5),1).ja(),_n.BottomLeftSides=ea=Wo(new _n(0,0,1,10),1).ja(),_n.BottomRightSides=ja=Wo(new _n(0,0,1,12),1).ja(),_n.NotTopSide=qa=Wo(new _n(0,0,1,14),1).ja(),_n.NotLeftSide=fl=Wo(new _n(0,0,1,13),1).ja(),_n.NotRightSide=Td=Wo(new _n(0,0,1,11),1).ja(),_n.NotBottomSide=Nd=Wo(new _n(0,0,1,7),1).ja(),_n.AllSides=Zf=Wo(new _n(0,0,1,15),1).ja(),Fd=new _n(.156,.156).ja(),Rc=new _n(.844,.844).ja(),_n.parse=Od,_n.stringify=Dd;function ki(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}ki.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},ki.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},ki.prototype.copy=function(){var a=new ki;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},ki.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},ki.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},ki.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},ki.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},ki.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},ki.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,nt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},ki.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},ki.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},Ut=ki.prototype,Ut.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ut.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ut.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)},Ut.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ut.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ut.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ht=this.dx,dt=this.dy,yt=y*z+x*ot+ht,Tt=y*nt+x*at+dt,zt=b*z+x*ot+ht,Gt=b*nt+x*at+dt;return x=y*z+E*ot+ht,y=y*nt+E*at+dt,z=b*z+E*ot+ht,b=b*nt+E*at+dt,E=Math.min(yt,zt),yt=Math.max(yt,zt),zt=Math.min(Tt,Gt),Tt=Math.max(Tt,Gt),E=Math.min(E,x),yt=Math.max(yt,x),zt=Math.min(zt,y),Tt=Math.max(Tt,y),E=Math.min(E,z),yt=Math.max(yt,z),zt=Math.min(zt,b),Tt=Math.max(Tt,b),a.h(E,zt,yt-E,Tt-zt),a},ki.alloc=function(){var a=Qf.pop();return a===void 0?new ki:a},ki.free=function(a){Qf.push(a)},ki.prototype.transformRect=ki.prototype.pp,ki.prototype.transformPoint=ki.prototype.Ga,ki.prototype.scale=ki.prototype.scale,ki.prototype.translate=ki.prototype.translate,ki.prototype.rotate=ki.prototype.rotate,ki.prototype.invert=ki.prototype.Vj,ki.prototype.multiplyInverted=ki.prototype.bv,ki.prototype.multiply=ki.prototype.multiply,ki.prototype.reset=ki.prototype.reset,ki.prototype.isIdentity=ki.prototype.ws,ki.prototype.equals=ki.prototype.D,ki.prototype.setTransform=ki.prototype.setTransform,ki.prototype.set=ki.prototype.set;var Qf=[];ki.className="Transform",ki.xF="54a702f3e53909c447824c6706603faf4c";var ze={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=ze.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);ze.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ht=y,dt=b;else ht=b,dt=y;if(a===x)return ht<=nt&&nt<=dt&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(dt+=E,ht-=E,ht<=nt&&nt<=dt))if(at-ot>dt-ht)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ht,dt,yt){if(ze.Yb(a,y,nt,ot,yt,x,b)&&ze.Yb(a,y,nt,ot,yt,E,z))return ze.Yb(a,y,nt,ot,yt,ht,dt);var Tt=(a+x)/2,zt=(y+b)/2,Gt=(x+E)/2,ee=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Tt+Gt)/2,x=(zt+ee)/2,Gt=(Gt+E)/2,ee=(ee+z)/2;var ye=(b+Gt)/2,ge=(x+ee)/2;return ze.cs(a,y,Tt,zt,b,x,ye,ge,at,ht,dt,yt)||ze.cs(ye,ge,Gt,ee,E,z,nt,ot,at,ht,dt,yt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ht=(x+E)/2,dt=(b+z)/2;return at.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+dt)/2+(dt+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ht=(b+z)/2;return Rn(((a+x)/2+at)/2,((y+b)/2+ht)/2,(at+(E+nt)/2)/2,(ht+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ht){if(ze.Yb(a,y,nt,ot,at,x,b)&&ze.Yb(a,y,nt,ot,at,E,z))ur(ht,a,y,0,0),ur(ht,nt,ot,0,0);else{var dt=(a+x)/2,yt=(y+b)/2,Tt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Tt)/2,x=(yt+zt)/2,Tt=(Tt+E)/2,zt=(zt+z)/2;var Gt=(b+Tt)/2,ee=(x+zt)/2;ze.Dl(a,y,dt,yt,b,x,Gt,ee,at,ht),ze.Dl(Gt,ee,Tt,zt,E,z,nt,ot,at,ht)}return ht},Qe:function(a,y,x,b,E,z,nt,ot,at,ht){if(ze.Yb(a,y,nt,ot,at,x,b)&&ze.Yb(a,y,nt,ot,at,E,z))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(nt),ht.push(ot);else{var dt=(a+x)/2,yt=(y+b)/2,Tt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Tt)/2,x=(yt+zt)/2,Tt=(Tt+E)/2,zt=(zt+z)/2;var Gt=(b+Tt)/2,ee=(x+zt)/2;ze.Qe(a,y,dt,yt,b,x,Gt,ee,at,ht),ze.Qe(Gt,ee,Tt,zt,E,z,nt,ot,at,ht)}return ht},jv:function(a,y,x,b,E,z,nt,ot,at,ht){if(ze.Yb(a,y,E,z,ht,x,b))return ze.Yb(a,y,E,z,ht,ot,at);var dt=(a+x)/2,yt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Tt=(dt+x)/2,zt=(yt+b)/2;return ze.jv(a,y,dt,yt,Tt,zt,nt,ot,at,ht)||ze.jv(Tt,zt,x,b,E,z,nt,ot,at,ht)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(ze.Yb(a,y,E,z,nt,x,b))ur(ot,a,y,0,0),ur(ot,E,z,0,0);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+x)/2,yt=(ht+b)/2;ze.iv(a,y,at,ht,dt,yt,nt,ot),ze.iv(dt,yt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(ze.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+x)/2,yt=(ht+b)/2;ze.ep(a,y,at,ht,dt,yt,nt,ot),ze.ep(dt,yt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ht,dt,yt,Tt,zt){if(ze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Tt?zt++:0>Tt&&zt--}else{Gt=(a+x)/2,ee=(y+b)/2;var ye=(x+E)/2,ge=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Gt+ye)/2,x=(ee+ge)/2,ye=(ye+E)/2,ge=(ge+z)/2;var Ce=(b+ye)/2,be=(x+ge)/2;zt+=ze.Fo(a,y,Gt,ee,b,x,Ce,be,at,ht,dt,yt,Tt),zt+=ze.Fo(Ce,be,ye,ge,E,z,nt,ot,at,ht,dt,yt,Tt)}return zt},qh:function(a,y,x,b,E,z,nt){return ze.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(nt.h(a,x),!1):z>y?(nt.h(a,y),!1):(nt.h(a,z),!0)):ze.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(nt.h(b,y),!1):E>a?(nt.h(a,y),!1):(nt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(nt.h(a,y),!1):1.000005<E?(nt.h(x,b),!1):(nt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,nt,ot,at){return ze.B(a,x)&&ze.B(y,b)?(at.h(a,y),!1):ze.$(E,nt)?ze.$(a,x)?(ze.qh(a,y,x,b,E,z,at),!1):ze.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),ze.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),ze.$(ot,nt)?(ze.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),ze.$(nt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):ze.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return ze.Ve(x.x,x.y,b.x,b.y,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ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ht&&(ht=a,dt=at.x,yt=at.y)),at.h(dt,yt),1e21>ht},us:function(a,y,x){return ze.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,ot){var at=a+x,ht=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ht&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ht&&ot<=at&&E>=a):!!(Br(a,y,x,b,E,z)||Br(a,y,x,b,nt,ot)||ze.Rl(a,y,at,y,E,z,nt,ot)||ze.Rl(at,y,at,ht,E,z,nt,ot)||ze.Rl(at,ht,a,ht,E,z,nt,ot)||ze.Rl(a,ht,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=ze.Fl(a,y,x,b,E,z)*ze.Fl(a,y,x,b,nt,ot)&&0>=ze.Fl(E,z,nt,ot,a,y)*ze.Fl(E,z,nt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ht=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ht+ot*Math.min(b,at),ot=a+x*Math.cos(ht),ht=y+x*Math.sin(ht),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ht+y)/2,z.push([ot,ht,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ht+ot*Math.min(b,at),z.push(ze.Vy(x,ht,E,a,y)),b-=Math.abs(E-ht),ht=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ht=nt*nt+at*at,dt=ht+nt*nt+at*ot;return ht=4/3*(Math.sqrt(2*ht*dt)-dt)/(nt*ot-at*nt),ot=nt-ht*at,nt=at+ht*nt,at=-nt,ht=z+y,z=Math.cos(ht),ht=Math.sin(ht),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ht,E+ot*ht+nt*z,b+ot*z-at*ht,E+ot*ht+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ht=nt===0?x:b;return(nt===0?E:z)&&(ht=-ht),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),ze.az(at,nt===0?a:y,ht,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ht=0;9999999999>ht&&(y=.5*(ot+at),!(y===ot||y===at));++ht){var dt=a/(y+E),yt=nt/(y+z);if(dt=dt*dt+yt*yt-1,0<dt)ot=y;else if(0>dt)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Pi,um:new Pi,Mf:new Pi,Nf:0,vm:100};ze.za=ze.AA;function bn(a){je(this),this.l=2,a===void 0&&(a=bn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===bn.o?this.ee=new Cn:(bn.V===null&&(bn.V=new Cn().freeze()),this.ee=bn.V),this.aq=this.ee.Ja,this.Ip=new Je().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ho,this.gg=ws,this.Rk=this.Sk=NaN,this.Uf=fn}bn.prototype.copy=function(){var a=new bn;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===bn.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},bn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},bn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==bn.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},bn.prototype.ka=function(){if(Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==bn.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},bn.prototype.Xa=function(a){if(!(a instanceof bn))return!1;if(this.type!==a.type)return this.type===bn.j&&a.type===bn.o?Op(this,a):a.type===bn.j&&this.type===bn.o?Op(a,this):!1;if(this.type===bn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return ze.B(this.startX,a.startX)&&ze.B(this.startY,a.startY)&&ze.B(this.endX,a.endX)&&ze.B(this.endY,a.endY)};function Op(a,y){return a.type!==bn.j||y.type!==bn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&ze.B(a.startX,y.startX)&&ze.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Tr&&ze.B(a.endX,y.endX)&&ze.B(a.endY,y.endY))))}bn.ia=function(a){return a.toString()},bn.prototype.qb=function(a){a.classType===bn&&(this.type=a)},bn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case bn.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 bn.u:var y=new Je(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 bn.F:if(y=new Je(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 bn.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},bn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},bn.parse=function(a,y){function x(){return ee>=Ee-1?!0:ht[ee+1].match(Be)!==null}function b(){return ee++,ht[ee]}function E(pi){var ci=parseFloat(b()),Ji=parseFloat(b());ye===ye.toLowerCase()&&(ci=be.x+ci,Ji=be.y+Ji),pi.h(ci,Ji)}function z(){return E(be),be}function nt(){return E(Ce),Ce}function ot(){var pi=ge.toLowerCase();return pi!=="c"&&pi!=="s"&&pi!=="q"&&pi!=="t"?be:new de(2*be.x-Ce.x,2*be.y-Ce.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 ht=a.split(" ");for(a=0;a<ht.length;a++){var dt=ht[a];if(dt.match(/(\.[0-9]*)(\.)/gm)!==null){at=li();for(var yt="",Tt=!1,zt=0;zt<dt.length;zt++){var Gt=dt[zt];Gt!=="."||Tt?Gt==="."?(at.push(yt),yt="."):yt+=Gt:(Tt=!0,yt+=Gt)}for(at.push(yt),ht.splice(a,1),dt=0;dt<at.length;dt++)ht.splice(a+dt,0,at[dt]);a+=at.length-1,ai(at)}}var ee=-1,ye="",ge="";at=new de(0,0);var Ce=new de(0,0),be=new de(0,0),Ee=ht.length;a=N1(null),Tt=yt=dt=!1,zt=!0,Gt=null;for(var Be=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ee>=Ee-1);)if(ge=ye,ye=b(),ye!=="")switch(ye.toUpperCase()){case"X":zt=!0,yt=dt=!1;break;case"M":for(Gt=z(),a.mc===null||zt===!0?(Pf(a,Gt.x,Gt.y,dt,!yt,Tt),zt=!1):a.moveTo(Gt.x,Gt.y),at.assign(be);!x();)Gt=z(),a.lineTo(Gt.x,Gt.y);break;case"L":for(;!x();)Gt=z(),a.lineTo(Gt.x,Gt.y);break;case"H":for(;!x();)be=new de((ye===ye.toLowerCase()?be.x:0)+parseFloat(b()),be.y),a.lineTo(be.x,be.y);break;case"V":for(;!x();)be=new de(be.x,(ye===ye.toLowerCase()?be.y:0)+parseFloat(b())),a.lineTo(be.x,be.y);break;case"C":for(;!x();){Gt=new de,E(Gt);var He=nt(),Mn=z();Hu(a,Gt.x,Gt.y,He.x,He.y,Mn.x,Mn.y)}break;case"S":for(;!x();)Gt=ot(),He=nt(),Mn=z(),Hu(a,Gt.x,Gt.y,He.x,He.y,Mn.x,Mn.y);break;case"Q":for(;!x();)Gt=nt(),He=z(),Rm(a,Gt.x,Gt.y,He.x,He.y);break;case"T":for(;!x();)Ce=Gt=ot(),He=z(),Rm(a,Gt.x,Gt.y,He.x,He.y);break;case"B":for(;!x();){Gt=parseFloat(b()),He=parseFloat(b()),Mn=parseFloat(b());var Un=parseFloat(b()),Dn=parseFloat(b()),Sn=Dn,an=!1;x()||(Sn=parseFloat(b()),x()||(an=parseFloat(b())!==0)),ye===ye.toLowerCase()&&(Mn+=be.x,Un+=be.y),a.arcTo(Gt,He,Mn,Un,Dn,Sn,an)}break;case"A":for(;!x();)Gt=Math.abs(parseFloat(b())),He=Math.abs(parseFloat(b())),Mn=parseFloat(b()),Dn=Un=!1,an=Sn=0,Sn=b(),Sn.length===1?(Un=!!parseFloat(Sn),Dn=!!parseFloat(b()),Sn=parseFloat(b())):Sn.length===2?(Un=!!parseFloat(Sn[0]),Dn=!!parseFloat(Sn[1]),Sn=parseFloat(b())):(Un=!!parseFloat(Sn[0]),Dn=!!parseFloat(Sn[1]),Sn=parseFloat(Sn.slice(2))),an=parseFloat(b()),ye===ye.toLowerCase()&&(Sn=be.x+Sn,an=be.y+an),be.h(Sn,an),Cx(a,Gt,He,Mn,Un,Dn,Sn,an);break;case"Z":Px(a),be.assign(at);break;case"F":for(Gt="",He=1;ht[ee+He];)if(ht[ee+He]==="0")Tt=!0,He++;else if(ht[ee+He].match(/[Uu]/)!==null)He++;else if(ht[ee+He].match(Be)===null)He++;else{Gt=ht[ee+He];break}Gt.match(/[Mm]/)?dt=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Gt="",He=1;ht[ee+He];)if(ht[ee+He].match(/[Ff]/)!==null)He++;else if(ht[ee+He].match(Be)===null)He++;else{Gt=ht[ee+He];break}Gt.match(/[Mm]/)?yt=!0:a.mc.isShadowed=!1}if(at=a.os,jm=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},bn.Ha=function(a,y){for(var x=a.length,b=de.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}de.free(b)},bn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===bn.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},bn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===bn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.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),Dp(this,a,!1),ur(a,0,0,0,0),a.freeze()},bn.prototype.ix=function(){var a=new Je;return Dp(this,a,!0),a};function Dp(a,y,x){switch(a.type){case bn.j:case bn.u:case bn.F:x?y.h(a.od,a.pd,0,0):ur(y,a.od,a.pd,0,0),ur(y,a.Dc,a.Ec,0,0);break;case bn.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):ur(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ht=z.startY,dt=0;dt<ot;dt++){var yt=nt[dt];switch(yt.type){case Tr:case Oo:at=yt.endX,ht=yt.endY,ur(y,at,ht,0,0);break;case is:ze.Dl(at,ht,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,y),at=yt.endX,ht=yt.endY;break;case ma:ze.iv(at,ht,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,y),at=yt.endX,ht=yt.endY;break;case So:case Aa:var Tt=yt.type===So?ra(yt,z):za(yt,z,at,ht),zt=Tt.length;if(zt===0){at=yt.type===So?yt.centerX:yt.endX,ht=yt.type===So?yt.centerY:yt.endY,ur(y,at,ht,0,0);break}yt=null;for(var Gt=0;Gt<zt;Gt++)yt=Tt[Gt],ze.Dl(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,y);yt!==null&&(at=yt[6],ht=yt[7]);break;default:Ye("Unknown Segment type: "+yt.type)}}}break;default:Ye("Unknown Geometry type: "+a.type)}}bn.prototype.normalize=function(){this._isFrozen&&ti(this);var a=this.ix();return this.offset(-a.x,-a.y),new de(-a.x,-a.y)},bn.prototype.offset=function(a,y){return this._isFrozen&&ti(this),this.transform(1,0,0,1,a,y),this},bn.prototype.scale=function(a,y){return this._isFrozen&&ti(this),this.transform(a,0,0,y,0,0),this},bn.prototype.rotate=function(a,y,x){this._isFrozen&&ti(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=ki.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),ki.free(b),this},Ut=bn.prototype,Ut.transform=function(a,y,x,b,E,z){switch(this.type){case bn.j:case bn.u:case bn.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+E,this.pd=nt*y+ot*b+z,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+E,this.Ec=nt*y+ot*b+z;break;case bn.o:for(var at=this.figures.s,ht=at.length,dt=0;dt<ht;dt++){var yt=at[dt];nt=yt.startX,ot=yt.startY,yt.startX=nt*a+ot*x+E,yt.startY=nt*y+ot*b+z,yt=yt.segments.s;for(var Tt=yt.length,zt=0;zt<Tt;zt++){var Gt=yt[zt];switch(Gt.type){case Tr:case Oo:nt=Gt.endX,ot=Gt.endY,Gt.endX=nt*a+ot*x+E,Gt.endY=nt*y+ot*b+z;break;case is:nt=Gt.point1X,ot=Gt.point1Y,Gt.point1X=nt*a+ot*x+E,Gt.point1Y=nt*y+ot*b+z,nt=Gt.point2X,ot=Gt.point2Y,Gt.point2X=nt*a+ot*x+E,Gt.point2Y=nt*y+ot*b+z,nt=Gt.endX,ot=Gt.endY,Gt.endX=nt*a+ot*x+E,Gt.endY=nt*y+ot*b+z;break;case ma:nt=Gt.point1X,ot=Gt.point1Y,Gt.point1X=nt*a+ot*x+E,Gt.point1Y=nt*y+ot*b+z,nt=Gt.endX,ot=Gt.endY,Gt.endX=nt*a+ot*x+E,Gt.endY=nt*y+ot*b+z;break;case So:nt=Gt.centerX,ot=Gt.centerY,Gt.centerX=nt*a+ot*x+E,Gt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Gt.startAngle+=nt),0>a&&(Gt.startAngle=180-Gt.startAngle,Gt.sweepAngle=-Gt.sweepAngle),0>b&&(Gt.startAngle=-Gt.startAngle,Gt.sweepAngle=-Gt.sweepAngle),Gt.radiusX*=Math.sqrt(a*a+x*x),Gt.radiusY!==void 0&&(Gt.radiusY*=Math.sqrt(y*y+b*b));break;case Aa:if(nt=Gt.endX,ot=Gt.endY,Gt.endX=nt*a+ot*x+E,Gt.endY=nt*y+ot*b+z,Gt.radiusX===0||Gt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Gt.xAxisRotation+=nt),0>a&&(Gt.xAxisRotation=180-Gt.xAxisRotation,Gt.isClockwiseArc=!Gt.isClockwiseArc),0>b&&(Gt.xAxisRotation=-Gt.xAxisRotation,Gt.isClockwiseArc=!Gt.isClockwiseArc),Gt.radiusX*=Math.sqrt(a*a+x*x),Gt.radiusY*=Math.sqrt(y*y+b*b);break;default:Ye("Unknown Segment type: "+Gt.type)}}}}return this._isInvalidBounds=!0,this},Ut.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case bn.j:return ze.Yb(x,b,E,z,y,a.x,a.y);case bn.u:var nt=Je.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=nt.ca(a),Je.free(nt),a;case bn.F:nt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ot=a.y-(ot+y),1>=nt*nt/(x*x)+ot*ot/(y*y));case bn.o:return nu(this,a,y,!0,!1);default:return!1}};function nu(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ht,dt,yt,Tt=a.figures.s,zt=Tt.length,Gt=0;Gt<zt;Gt++){var ee=Tt[Gt],ye=!ee.isEvenOdd;if(ee.isFilled){if(b&&ee.ca(z,y,x))return!0;var ge=ee.segments;at=ee.startX,ht=ee.startY;for(var Ce=at,be=ht,Ee=ge.s,Be=0;Be<=ge.length;Be++){var He=void 0;if(Be!==ge.length){He=Ee[Be];var Mn=He.type;a=He.endX,yt=He.endY}else Mn=Tr,a=Ce,yt=be;switch(Mn){case Oo:if(Ce=iu(z,y,nt,y,at,ht,Ce,be),isNaN(Ce))return!0;ot+=Ce,Ce=a,be=yt;break;case Tr:if(at=iu(z,y,nt,y,at,ht,a,yt),isNaN(at))return!0;ot+=at;break;case is:dt=ze.Fo(at,ht,He.point1X,He.point1Y,He.point2X,He.point2Y,a,yt,nt,y,z,y,.5),ot+=dt;break;case ma:dt=ze.Fo(at,ht,(at+2*He.point1X)/3,(ht+2*He.point1Y)/3,(2*He.point1X+a)/3,(2*He.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=dt;break;case So:case Aa:Mn=He.type===So?ra(He,ee):za(He,ee,at,ht);var Un=Mn.length;if(Un===0){if(at=iu(z,y,nt,y,at,ht,He.type===So?He.centerX:He.endX,He.type===So?He.centerY:He.endY),isNaN(at))return!0;ot+=at;break}He=null;for(var Dn=0;Dn<Un;Dn++){if(He=Mn[Dn],Dn===0){if(dt=iu(z,y,nt,y,at,ht,He[0],He[1]),isNaN(dt))return!0;ot+=dt}dt=ze.Fo(He[0],He[1],He[2],He[3],He[4],He[5],He[6],He[7],nt,y,z,y,.5),ot+=dt}He!==null&&(a=He[6],yt=He[7]);break;default:Ye("Unknown Segment type: "+He.type)}at=a,ht=yt}if(ye){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(ee.ca(z,y,E?x:x+2))return!0}return!1}function iu(a,y,x,b,E,z,nt,ot){if(ze.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ht=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ht>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ht<E||ht>nt)return 0}else if(ht<nt||ht>E)return 0;return 0<at?1:-1}function hh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Ut.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new de),this.type===bn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=dt}}return y},Ut.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===bn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ht=ot[a];if(z+ht>=E)return E=y[nt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ht}}return NaN},Ut.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===bn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,dt=x[ot],x=dt[2*a],ot=dt[2*a+1],E=dt[2*a+2],a=dt[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=dt}}return y},Ut.xx=function(a){if(this.type===bn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var ot=de.alloc();return ze.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,de.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===bn.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ht=Math.min(nt,at,ot,E);if(ht===ot)return b/z;if(ht===at)return(y+a)/z;if(ht===E)return(2*y+x-b)/z;if(ht===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=de.alloc(),E=1/0,ot=nt=0,at=y.length;for(var dt=ht=0,yt=0;yt<at;yt++)for(var Tt=y[yt],zt=x[yt],Gt=Tt.length,ee=0;ee<Gt;ee+=2){var ye=Tt[ee],ge=Tt[ee+1];if(ee!==0){ze.qh(ht,dt,ye,ge,a.x,a.y,b);var Ce=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ce<E&&(E=Ce,nt=ot,nt+=Math.sqrt((b.x-ht)*(b.x-ht)+(b.y-dt)*(b.y-dt))),ot+=zt[(ee-2)/2]}ht=ye,dt=ge}return de.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function Id(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===bn.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===bn.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===bn.F){var z=new Fo;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new Xi(So);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=ra(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var at=a[ot];ze.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(jc(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ht=E.segments.s,dt=ht.length,yt=0;yt<dt;yt++){var Tt=ht[yt];switch(Tt.type){case Oo:4<=b.length&&(y.push(b),x.push(jc(b))),b=[],b.push(Tt.endX),b.push(Tt.endY),nt=Tt.endX,z=Tt.endY,ot=nt,at=z;break;case Tr:b.push(Tt.endX),b.push(Tt.endY),nt=Tt.endX,z=Tt.endY;break;case is:ze.Qe(nt,z,Tt.point1X,Tt.point1Y,Tt.point2X,Tt.point2Y,Tt.endX,Tt.endY,.5,b),nt=Tt.endX,z=Tt.endY;break;case ma:ze.ep(nt,z,Tt.point1X,Tt.point1Y,Tt.endX,Tt.endY,.5,b),nt=Tt.endX,z=Tt.endY;break;case So:var zt=ra(Tt,E),Gt=zt.length;if(Gt===0){b.push(Tt.centerX),b.push(Tt.centerY),nt=Tt.centerX,z=Tt.centerY;break}for(var ee=0;ee<Gt;ee++){var ye=zt[ee];ze.Qe(nt,z,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,b),nt=ye[6],z=ye[7]}break;case Aa:if(zt=za(Tt,E,nt,z),Gt=zt.length,ee=Tt.endX,ye=Tt.endY,Gt===0){b.push(ee),b.push(ye),nt=ee,z=ye;break}for(ee=0;ee<Gt;ee++)ye=zt[ee],ze.Qe(nt,z,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,b),nt=ye[6],z=ye[7];break;default:Ye("Segment not of valid type: "+Tt.type)}Tt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(jc(b)))}}}function jc(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(Qn(x,b,nt,ot))),x=nt,b=ot}return y}Ut.add=function(a){return this.ee.add(a),this},Ut.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&ti(this),this.fg=new _n(a,y,E,z).freeze(),this.gg=new _n(x,b,nt,ot).freeze(),this},sn.Object.defineProperties(bn.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 Id(this),this.tk}},flattenedLengths:{get:function(){return Id(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===bn.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===bn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&ti(this,a),this.na=a,a===bn.o?this.ee=new Cn:(bn.V===null&&(bn.V=new Cn().freeze()),this.ee=bn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ti(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ti(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ti(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ti(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ti(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ti(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ti(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ti(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),bn.prototype.setSpots=bn.prototype.pm,bn.prototype.add=bn.prototype.add,bn.prototype.getFractionForPoint=bn.prototype.xx,bn.prototype.getPointAndAngleAlongPath=bn.prototype.Qu,bn.prototype.getAngleAlongPath=bn.prototype.wx,bn.prototype.getPointAlongPath=bn.prototype.Pu,bn.prototype.containsPoint=bn.prototype.ca,bn.prototype.transform=bn.prototype.transform,bn.prototype.rotate=bn.prototype.rotate,bn.prototype.scale=bn.prototype.scale,bn.prototype.offset=bn.prototype.offset,bn.prototype.normalize=bn.prototype.normalize,bn.prototype.computeBoundsWithoutOrigin=bn.prototype.ix,bn.prototype.equalsApprox=bn.prototype.Xa,bn.className="Geometry",bn.j=new qe(bn,"Line",0),bn.u=new qe(bn,"Rectangle",1),bn.F=new qe(bn,"Ellipse",2),bn.o=new qe(bn,"Path",3),bn.V=null,bn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",bn.className="Geometry",bn.stringify=bn.ia,bn.fillPath=bn.nb,bn.parse=bn.parse,bn.Line=bn.j,bn.Rectangle=bn.u,bn.Ellipse=bn.F,bn.Path=bn.o;function Fo(a,y,x,b,E){je(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Cn,this.sr=this.pl.Ja,this.fw=null}Fo.prototype.copy=function(){var a=new Fo;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ut=Fo.prototype,Ut.Xa=function(a){if(!(a instanceof Fo&&ze.B(this.startX,a.startX)&&ze.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Ut.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Ut.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},Ut.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},Ut.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},Ut.add=function(a){return this.pl.add(a),this},Ut.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ht=0;ht<at;ht++){var dt=ot[ht];switch(dt.type){case Oo:z=dt.endX,nt=dt.endY,b=dt.endX,E=dt.endY;break;case Tr:if(ze.Yb(b,E,dt.endX,dt.endY,x,a,y))return!0;b=dt.endX,E=dt.endY;break;case is:if(ze.cs(b,E,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case ma:if(ze.jv(b,E,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case So:case Aa:var yt=dt.type===So?ra(dt,this):za(dt,this,b,E),Tt=yt.length,zt=dt.type===So?dt.centerX:dt.endX,Gt=dt.type===So?dt.centerY:dt.endY;if(Tt===0){if(ze.Yb(b,E,zt,Gt,x,a,y))return!0;b=zt,E=Gt;break}for(zt=null,Gt=0;Gt<Tt;Gt++)if(zt=yt[Gt],Gt===0&&ze.Yb(b,E,zt[0],zt[1],x,a,y)||ze.cs(zt[0],zt[1],zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,a,y,x))return!0;zt!==null&&(b=zt[6],E=zt[7]);break;default:Ye("Unknown Segment type: "+dt.type)}if(dt.isClosed&&(b!==z||E!==nt)&&ze.Yb(b,E,z,nt,x,a,y))return!0}return!1},sn.Object.defineProperties(Fo.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&&ti(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ti(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ti(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ti(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ti(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ti(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Fo.prototype.add=Fo.prototype.add,Fo.prototype.equalsApprox=Fo.prototype.Xa,Fo.className="PathFigure";function Xi(a,y,x,b,E,z,nt,ot){je(this),a===void 0&&(a=Tr),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),nt===void 0&&(nt=0),a===Aa?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===So&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===So&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}Xi.prototype.copy=function(){var a=new Xi;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},Ut=Xi.prototype,Ut.Xa=function(a){if(!(a instanceof Xi)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Oo:case Tr:return ze.B(this.endX,a.endX)&&ze.B(this.endY,a.endY);case is:return ze.B(this.endX,a.endX)&&ze.B(this.endY,a.endY)&&ze.B(this.point1X,a.point1X)&&ze.B(this.point1Y,a.point1Y)&&ze.B(this.point2X,a.point2X)&&ze.B(this.point2Y,a.point2Y);case ma:return ze.B(this.endX,a.endX)&&ze.B(this.endY,a.endY)&&ze.B(this.point1X,a.point1X)&&ze.B(this.point1Y,a.point1Y);case So:return ze.B(this.startAngle,a.startAngle)&&ze.B(this.sweepAngle,a.sweepAngle)&&ze.B(this.centerX,a.centerX)&&ze.B(this.centerY,a.centerY)&&ze.B(this.radiusX,a.radiusX)&&ze.B(this.radiusY,a.radiusY);case Aa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&ze.B(this.xAxisRotation,a.xAxisRotation)&&ze.B(this.endX,a.endX)&&ze.B(this.endY,a.endY)&&ze.B(this.radiusX,a.radiusX)&&ze.B(this.radiusY,a.radiusY);default:return!1}},Ut.qb=function(a){a.classType===Xi&&(this.type=a)},Ut.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Oo:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Tr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case is: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 ma: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 So: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 Aa: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":"")},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return this._isFrozen=!1,this},Ut.close=function(){return this.isClosed=!0,this};function ra(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=ze.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=ki.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),bn.Ha(z,nt),ki.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function za(a,y,x,b){function E(ee,ye,ge,Ce){return(ee*Ce<ye*ge?-1:1)*Math.acos((ee*ge+ye*Ce)/(Math.sqrt(ee*ee+ye*ye)*Math.sqrt(ge*ge+Ce*Ce)))}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 nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ht=a.Dc,dt=a.Ec,yt=Math.cos(nt),Tt=Math.sin(nt),zt=yt*(x-ht)/2+Tt*(b-dt)/2;nt=-Tt*(x-ht)/2+yt*(b-dt)/2;var Gt=zt*zt/(y*y)+nt*nt/(z*z);return 1<Gt&&(y*=Math.sqrt(Gt),z*=Math.sqrt(Gt)),Gt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*zt*zt)/(y*y*nt*nt+z*z*zt*zt)),isNaN(Gt)&&(Gt=0),ot=Gt*y*nt/z,Gt=Gt*-z*zt/y,isNaN(ot)&&(ot=0),isNaN(Gt)&&(Gt=0),x=(x+ht)/2+yt*ot-Tt*Gt,b=(b+dt)/2+Tt*ot+yt*Gt,dt=E(1,0,(zt-ot)/y,(nt-Gt)/z),yt=(zt-ot)/y,ht=(nt-Gt)/z,zt=(-zt-ot)/y,ot=(-nt-Gt)/z,nt=E(yt,ht,zt,ot),zt=(yt*zt+ht*ot)/(Math.sqrt(yt*yt+ht*ht)*Math.sqrt(zt*zt+ot*ot)),-1>=zt?nt=Math.PI:1<=zt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,zt=y>z?z/y:1,y=ze.jx(0,0,y>z?y:z,dt,dt+nt,!0),z=ki.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,zt),bn.Ha(y,z),ki.free(z),a.ae=y,a.ae}sn.Object.defineProperties(Xi.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&&ti(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ti(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ti(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ti(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ti(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ti(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ti(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ti(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ti(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&xi(a,">= zero",Xi,"radiusX"),this._isFrozen&&ti(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&xi(a,">= zero",Xi,"radiusY"),this._isFrozen&&ti(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ti(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&&ti(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&&ti(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&&ti(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&&ti(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Xi.prototype.equalsApprox=Xi.prototype.Xa;var Oo=new qe(Xi,"Move",0),Tr=new qe(Xi,"Line",1),is=new qe(Xi,"Bezier",2),ma=new qe(Xi,"QuadraticBezier",3),So=new qe(Xi,"Arc",4),Aa=new qe(Xi,"SvgArc",4);Xi.className="PathSegment",Xi.Move=Oo,Xi.Line=Tr,Xi.Bezier=is,Xi.QuadraticBezier=ma,Xi.Arc=So,Xi.SvgArc=Aa;function gs(){this.H=null,this.xu=new de(0,0).freeze(),this.mt=new de(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}gs.prototype.copy=function(){var a=new gs;return this.clone(a)},gs.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},gs.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},gs.prototype.So=function(a,y){var x=this.diagram;return x===null||mg(x,a,y),y},gs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mg(x,a,y),y.assign(x.Ps(y))),y},sn.Object.defineProperties(gs.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}}}),gs.prototype.getMultiTouchDocumentPoint=gs.prototype.Bz,gs.prototype.getMultiTouchViewPoint=gs.prototype.So,gs.className="InputEvent";function Cu(){this.H=null,this.xa="",this.ar=this.Lr=null}Cu.prototype.copy=function(){var a=new Cu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Cu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},sn.Object.defineProperties(Cu.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}}}),Cu.className="DiagramEvent";function Hr(){this.Fm=Wr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Hr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Hr.prototype.copy=function(){var a=new Hr;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=yn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=yn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=yn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=yn(y)&&typeof y.J=="function"?y.J():y,a},Hr.prototype.qb=function(a){a.classType===Hr&&(this.change=a)},Hr.prototype.toString=function(){var a="";return a=this.change===oa?a+"* ":this.change===Wr?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===oa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=qi(this.object)),this.oldValue!==null&&(a+=" old: "+qi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+qi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Hr.prototype.I=function(a){return a?this.oldValue:this.newValue},Hr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Hr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Hr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Hr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Hr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},sn.Object.defineProperties(Hr.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===oa&&(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}}}),Hr.prototype.redo=Hr.prototype.redo,Hr.prototype.canRedo=Hr.prototype.canRedo,Hr.prototype.undo=Hr.prototype.undo,Hr.prototype.canUndo=Hr.prototype.canUndo,Hr.prototype.getParam=Hr.prototype.Dz,Hr.prototype.getValue=Hr.prototype.I,Hr.prototype.clear=Hr.prototype.clear;var oa=new qe(Hr,"Transaction",-1),Wr=new qe(Hr,"Property",0),co=new qe(Hr,"Insert",1),Lo=new qe(Hr,"Remove",2);Hr.className="ChangedEvent",Hr.Transaction=oa,Hr.Property=Wr,Hr.Insert=co,Hr.Remove=Lo;function jo(){this.o=new Cn().freeze(),this.xa="",this.j=!1}jo.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
|
|
`+b.toString())}}return y},jo.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()},jo.prototype.canUndo=function(){return this.isComplete},jo.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()}},jo.prototype.canRedo=function(){return this.isComplete},jo.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()}},jo.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new pn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Wr&&b.object){var E=y.get(b.object);E||(E=new pn,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},sn.Object.defineProperties(jo.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}}}),jo.prototype.optimize=jo.prototype.ak,jo.prototype.redo=jo.prototype.redo,jo.prototype.canRedo=jo.prototype.canRedo,jo.prototype.undo=jo.prototype.undo,jo.prototype.canUndo=jo.prototype.canUndo,jo.prototype.clear=jo.prototype.clear,jo.className="Transaction";function Vr(){this.Pt=new Oe,this.Jd=!1,this.u=new Cn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Cn().freeze(),this.hl=new Cn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Vr.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
|
|
`+this.history.M(b).toString(a-1);return y},Vr.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},Vr.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ut=Vr.prototype,Ut.Xw=function(a){this.Pt.add(a)},Ut.Rx=function(a){this.Pt.remove(a)},Ut.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},Ut.eb=function(a){return a===void 0&&(a=""),ch(this,!0,a)},Ut.Kf=function(){return ch(this,!1,"")};function ch(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Ui("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Ut.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()}},Vr.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Vr.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){Ui("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Vr.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Vr.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){Ui("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Vr.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Hr;for(b.change=oa,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Vr.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new jo);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||Ui("Change not within a transaction: "+x.toString()))}},Vr.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},sn.Object.defineProperties(Vr.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}}}),Vr.prototype.handleChanged=Vr.prototype.Tu,Vr.prototype.redo=Vr.prototype.redo,Vr.prototype.undo=Vr.prototype.undo,Vr.prototype.canUndo=Vr.prototype.canUndo,Vr.prototype.discardHistoryAfterIndex=Vr.prototype.lx,Vr.prototype.rollbackTransaction=Vr.prototype.Kf,Vr.prototype.commitTransaction=Vr.prototype.eb,Vr.prototype.startTransaction=Vr.prototype.Ea,Vr.prototype.removeModel=Vr.prototype.Rx,Vr.prototype.addModel=Vr.prototype.Xw,Vr.prototype.clear=Vr.prototype.clear,Vr.className="UndoManager";function Hi(){je(this),this.H=zl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new gs,this.Zr=-1}Hi.prototype.toString=function(){return this.name!==""?this.name+" Tool":vi(this.constructor)},Hi.prototype.updateAdornments=function(){},Hi.prototype.canStart=function(){return this.isEnabled},Hi.prototype.doStart=function(){},Hi.prototype.doActivate=function(){this.isActive=!0},Hi.prototype.doDeactivate=function(){this.isActive=!1},Hi.prototype.doStop=function(){},Hi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Hi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Hi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Hi.prototype.doMouseMove=function(){},Hi.prototype.doMouseUp=function(){this.stopTool()},Hi.prototype.doMouseWheel=function(){},Hi.prototype.canStartMultiTouch=function(){return!0},Hi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,de.allocAt(NaN,NaN)),b=y.So(1,de.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}de.free(x),de.free(b)},Hi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,de.allocAt(NaN,NaN)),b=y.So(1,de.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new de((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}de.free(x),de.free(b)},Hi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Hi.prototype.doKeyUp=function(){},Hi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Hi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Hi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(xo?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||(xo?y.meta:y.control)||y.shift||a.clearSelection()}},Hi.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Bp(a,b,x),b.handled};function Bp(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Hi.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Hi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Hi.prototype.doCurrentObjectChanged=function(){},Hi.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===zc&&!y.shift||E===$h&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===zc&&y.shift||E===$h&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var ot="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Hi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Hi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Si(function(){x.doWaitAfter(b)},a)},Hi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ze.clearTimeout(this.Zr),this.Zr=-1},Hi.prototype.doWaitAfter=function(){},Hi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ki);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Hi.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},sn.Object.defineProperties(Hi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ke&&(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}}}),Hi.prototype.startTransaction=Hi.prototype.Ea,Hi.className="Tool";function Ur(){Hi.call(this),this.name="ToolManager",this.hb=new Cn,this.ob=new Cn,this.Hb=new Cn,this.F=this.V=850,this.o=new on(2,2).ja(),this.Ha=5e3,this.ia=$h,this.u=Rd,this.Mp=this.j=null,this.zj=-1}We(Ur,Hi),Ur.prototype.initializeStandardTools=function(){},Ur.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ki&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ur.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===ru&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===dh){y.bubbles=!0;return}if(this.gestureBehavior===ru)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===$h?this.mouseWheelBehavior=zc:this.mouseWheelBehavior===zc&&(this.mouseWheelBehavior=$h)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ur.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===dh){y.bubbles=!0;return}if(this.gestureBehavior===ru)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Ip(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ip(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ur.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ki&&(y===a||y.rg(a))||this.hideToolTip()},Ur.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()))},Ur.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)},Ur.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 Ki)||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()},Ur.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Ll&&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 E=this;this.zj=Si(function(){E.hideToolTip()},a)}},Ur.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},Ur.prototype.hideToolTip=function(){this.zj!==-1&&(Ze.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ki?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ll&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ur.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Ur.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ur.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ur.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ur.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},Ur.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},Ur.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)},sn.Object.defineProperties(Ur.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 Ki?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}}}),Ur.prototype.replaceStandardTool=Ur.prototype.gb;var $h=new qe(Ur,"WheelScroll",0),zc=new qe(Ur,"WheelZoom",1),qf=new qe(Ur,"WheelNone",2),Rd=new qe(Ur,"GestureZoom",3),ru=new qe(Ur,"GestureCancel",4),dh=new qe(Ur,"GestureNone",5);Ur.className="ToolManager",Ur.WheelScroll=$h,Ur.WheelZoom=zc,Ur.WheelNone=qf,Ur.GestureZoom=Rd,Ur.GestureCancel=ru,Ur.GestureNone=dh;function Yr(){Hi.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 de(NaN,NaN),this.Fr=new de,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Oe().freeze(),this.ia=new lt,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Rl;We(Yr,Hi),Yr.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},Yr.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},Yr.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,(xo?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Yr.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),Yo=null,this.isActive=!0,this.tl.set(a.position),jd(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&&zs(a),tf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Yo=this,ku=this.diagram,this.doSimulatedDragOut()))};function jd(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof xn?(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 va,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Yr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Yr.prototype.Pd=function(a){return a===void 0?new hu(Mi):this.isGridSnapEnabled?new hu(new de(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new hu(a.copy())},Yr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),fh(this),Ah(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Rl.count){for(var y=Rl,x=y.length,b=0;b<x;b++){var E=y.M(b);bu(E),$a(E),fh(E),E.diagram.ug()}y.clear()}bu(this),this.tl.h(NaN,NaN),ku!==null&&(ku.currentCursor=""),Yo=ku=null,$a(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),qc(a,!0)},Yr.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function fh(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,tg(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function $f(){var a=Yo;$a(a),Au(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Yr.prototype.doCancel=function(){$a(this),Au(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Yr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Yr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function ou(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Au(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 pn,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof xn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,jd(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function $a(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 xn&&(x.value.point=new de(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function bu(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 Al(a,y,x){var b=a.diagram,E=a.startPoint,z=de.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),de.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(zs(b),b.hk())}Yr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&bh(b,a,y,this.dragOptions,x)};function Au(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof xn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Yu(b,-E.x,-E.y)}y.bd()}}function zd(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Lu(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=tg(a,E,b),!a.isActive&&Yo===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof mi)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&Yo===null||(a.doDragOver(y,b),!a.isActive&&Yo===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Yr.prototype.findDragOverObject=function(a){var y=this;return Ul(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ki||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Yr.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 tg(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var nt=0;nt<E;nt++){var ot=a.Cg[nt],at=ot.mouseDragLeave;if(at!==null&&(at(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Yo===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=eg(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,z),b=!0,!y.handled));x++);return b}function eg(a){var y=a.panel;return y!==null?y:a instanceof $n&&!(a instanceof mi)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Rp(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ht){return b.findValidLinkablePort(ht,x)});a=de.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var at=ot.ga(Gi,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return de.free(a),nt}function Lu(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,nt=null;x.fromNode===null&&(z=Rp(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Rp(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Ud(E,nt,z,at,ot):Ud(E,null,null,null,null)}}}}Yr.prototype.doDragOver=function(){};function Eu(a,y){var x=a.diagram;a.dragsLink&&Lu(a,!0),fh(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;Q0(a,E,z),z=eg(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Yo!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Fn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Yo!==null){for(a=Je.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Fn&&q0(x,b,a);Je.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof mi||(x=a.mouseDrop,x!==null&&x(y))}function q0(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof xn},!0,function(E){return E instanceof xn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Yr.prototype.doDropOnto=function(){},Yr.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()?(ou(this,!1),tf(a,this.copiedParts),Al(this,this.copiedParts,!1),Ah(a,this.copiedParts)):this.mayMove()?($a(this),Al(this,this.draggedParts,!0)):this.mayDragOut()?(ou(this,!1),Al(this,this.copiedParts,!1)):$a(this),zd(this,a.lastInput.documentPoint))}},Yr.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?($a(this),ou(this,!0),tf(a,this.copiedParts),Al(this,this.copiedParts,!1),Ah(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,$a(this),this.mayMove()&&(Al(this,this.draggedParts,!0),zd(this,a.lastInput.documentPoint))),this.Ym=!0,Eu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Ah(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Yr.prototype.simulatedMouseMove=function(a,y,x){if(Yo===null)return!1;var b=Yo.diagram;x instanceof Ke||(x=null);var E=ku;return x!==E&&(E!==null&&E!==b&&(E.ug(),Yo.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),ku=x,x!==null&&x!==b&&($f(),E=x.toolManager.findTool("Dragging"),E!==null&&(Rl.contains(E)||Rl.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Yr.prototype.simulatedMouseUp=function(a,y,x){if(Yo===null)return!1;var b=ku,E=Yo.diagram;if(x===null)return Yo.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Yo.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;ku=x,b=x.toolManager.findTool("Dragging"),b!==null&&($f(),Rl.contains(b)||Rl.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new de),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=Yo,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function $0(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Fn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Yr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(xo?!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())},Yr.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())},Yr.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())},Yr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Yr.prototype.Az=function(){return Yo},Yr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Yo;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Yr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ka(a),a.animationManager.Cc(),a=Yo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Yr.prototype.doSimulatedDragLeave=function(){var a=Yo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Yr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Yo;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;jp(this,y.draggedParts.Lf(),!1,a.firstInput),Al(this,this.copiedParts,!1),zd(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Yr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Yo;if(y!==null){var x=y.diagram;if(y.Ym=!0,$a(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),jp(this,y.draggedParts.Lf(),!0,a.lastInput),Al(this,this.copiedParts,!1);var b=new Oe;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Eu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function jp(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=Je.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ht=at.value;if(ht.isVisible()){var dt=ht.location;ht=dt.x,dt=dt.y,isNaN(ht)||isNaN(dt)||(ht<b&&(b=ht),dt<E&&(E=dt),ht>nt&&(nt=ht),dt>ot&&(ot=dt))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,Je.free(z),z=a.Fr,nt=new pn,ot=de.alloc(),at=y.iterator;at.next();)ht=at.value,ht instanceof xn&&ht.canCopy()&&(dt=x.I(ht),dt!==null&&(dt.points=ht.points,Yu(dt,z.x-b,z.y-E),dt.suspendsRouting=!0,nt.add(dt,a.Pd())));for(y=y.iterator;y.next();)ht=y.value,ht.Zc()&&ht.canCopy()&&(at=x.I(ht),at!==null&&(ht=ht.location,ot.h(z.x-(b-ht.x),z.y-(E-ht.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));de.free(ot),a.copiedParts=nt,jd(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Yu(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Yr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Yr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new de},sn.Object.defineProperties(Yr.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}}}),Yr.prototype.getDraggingSource=Yr.prototype.Az;var Yo=null,ku=null;Yr.className="DraggingTool",Rl=new Cn,In("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ur.prototype.doCancel=function(){Yo!==null&&Yo.doCancel(),Hi.prototype.doCancel.call(this)};function io(){Hi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new xn,y=new Ci;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Ci,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Fn,y=new Ci,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=di,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Fn,y=new Ci,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=di,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new pn,this.Of=this.gj=this.Pf=null}We(io,Hi),io.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},io.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=on.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,on.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Gi,z=de.alloc(),x.location=y.ga(Gi,z),de.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},io.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=di,y.fromSpot=no,y.toSpot=no),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},io.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},io.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Fn){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},io.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Fn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Fn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},io.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(yt){return E.findValidLinkablePort(yt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof Fn){var at=nt.ga(Gi,de.alloc()),ht=x.x-at.x,dt=x.y-at.y;de.free(at),at=ht*ht+dt*dt,at<b&&(ht=this.validPortsCache.I(nt),ht!==null?ht&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof Fn&&(x.layer===null||x.layer.allowLink))?y:null},io.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},io.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},io.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},io.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Fn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Fn))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},io.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},io.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Oe;return b.add(a),ps(this,x,y,b)};function ps(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ps(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ps(a,y.labeledLink,x,b))))}io.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==id){if(b===Fg){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Ps(this,a,y,x,!0)}if(b===Og){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Ps(this,a,y,x,!0)}if(b===Mg)return a===y?a=!0:(b=new Oe,b.add(y),a=Cs(this,b,a,y,x)),!a;if(b===Tg)return!Ps(this,a,y,x,!1);if(b===Ng)return a===y?a=!0:(b=new Oe,b.add(y),a=tc(this,b,a,y,x)),!a}return!0};function Ps(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&Ps(a,nt,x,b,E)))return!0}return!1}function Cs(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&Cs(a,y,nt,b,E)))return!0}return!1}function tc(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&tc(a,y,ot,b,E))return!0}}return!1}sn.Object.defineProperties(io.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}}}),io.className="LinkingBaseTool";function bs(){io.call(this),this.name="Linking",this.V={},this.F=null,this.K=gh,this.Xd=null}We(bs,io),bs.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},bs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Fn)))return null;var x=this.direction;if(x===gh||x===zp){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===gh||x===Up)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},bs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Fn&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Fn&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},bs.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()},bs.prototype.doStop=function(){io.prototype.doStop.call(this),this.startObject=null},bs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof Fn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(nt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},bs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof xn)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)},bs.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},bs.prototype.doNoLink=function(){},sn.Object.defineProperties(bs.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 gh=new qe(bs,"Either",0),zp=new qe(bs,"ForwardsOnly",0),Up=new qe(bs,"BackwardsOnly",0);bs.className="LinkingTool",bs.Either=gh,bs.ForwardsOnly=zp,bs.BackwardsOnly=Up;function va(){io.call(this),this.name="Relinking";var a=new Ci;a.figure="Diamond",a.desiredSize=Qi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Ci,a.figure="Diamond",a.desiredSize=Qi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Je}We(va,io),va.prototype.updateAdornments=function(a){if(a!==null&&a instanceof xn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},va.prototype.makeAdornment=function(a,y){var x=new Ki;return x.type=gn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},va.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},va.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 Ki&&x.adornedPart instanceof xn))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=ui),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ui),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},va.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Af||x===Xu)&&(x=Ns),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}},va.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},va.prototype.doStop=function(){io.prototype.doStop.call(this),this.handle=null},va.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof Fn&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},va.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},va.prototype.doNoRelink=function(){};function Ud(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}sn.Object.defineProperties(va.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 Ki))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),va.className="RelinkingTool",In("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),In("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function fo(){Hi.call(this),this.name="LinkReshaping";var a=new Ci;a.figure="Rectangle",a.desiredSize=Zi,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Ci,a.figure="Diamond",a.desiredSize=Qi,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new de,this.Yq=new Cn}We(fo,Hi),fo.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ng},fo.prototype.om=function(a,y){a.reshapingBehavior=y},fo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof xn){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)}},fo.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ki,E.type=gn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Pa)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ht=y.i(x+1);ze.B(at.x,ht.x)&&ze.B(at.y,ht.y)&&(ht=y.i(x-1)),ze.B(at.x,ht.x)?(this.om(ot,Nu),ot.cursor="n-resize"):ze.B(at.y,ht.y)&&(this.om(ot,Tu),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ht=y.i(z),ze.B(at.x,ht.x)&&ze.B(at.y,ht.y)&&(at=y.i(z+1)),ze.B(at.x,ht.x)?(this.om(ot,Nu),ot.cursor="n-resize"):ze.B(at.y,ht.y)&&(this.om(ot,Tu),ot.cursor="w-resize")):nt!==z&&(this.om(ot,_d),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},fo.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},fo.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},fo.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},fo.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 xn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},fo.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},fo.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},fo.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},fo.prototype.getResegmentingPoint=function(){return this.handle.ga(Gi)},fo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},fo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Mu(this,nt,b,E,z,!0)||Mu(this,nt,b,E,z,!1))){var ot=y.points.copy();Mu(this,nt,b,E,z,!0)?(ot.cd(x-2,new de(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new de(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new de((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new de((z.x+nt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Mu(this,b,E,z,nt,!0)||Mu(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Mu(this,b,E,z,nt,!0)?(ot.cd(x-1,new de(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new de(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new de((b.x+nt.x)/2,b.y)),ot.cd(x+2,new de((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=de.alloc(),ze.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),de.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Mu(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}fo.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===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(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Gi,de.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,de.alloc()),y.L(0,b.x,b.y),de.free(z),de.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Gi,de.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,de.alloc()),y.L(y.pointsCount-1,a.x,a.y),de.free(x),de.free(a));y.zf()},fo.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case _d:return a;case Nu:return new de(y.i(x).x,a.y);case Tu:return new de(a.x,y.i(x).y);default:case ng:return y.i(x)}},sn.Object.defineProperties(fo.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 Ki))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}}}),fo.prototype.setReshapingBehavior=fo.prototype.om,fo.prototype.getReshapingBehavior=fo.prototype.Ru;var ng=new qe(fo,"None",0),Tu=new qe(fo,"Horizontal",1),Nu=new qe(fo,"Vertical",2),_d=new qe(fo,"All",3);fo.className="LinkReshapingTool",fo.None=ng,fo.Horizontal=Tu,fo.Vertical=Nu,fo.All=_d,In("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ls(){Hi.call(this),this.name="Resizing",this.o=new on(1,1).freeze(),this.j=new on(9999,9999).freeze(),this.yg=new on(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Ci;a.alignmentFocus=Gi,a.figure="Rectangle",a.desiredSize=Zi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new de,this.Dw=new on,this.Tn=new de,this.rt=new on(0,0),this.qt=new on(1/0,1/0),this.pt=new on(1,1)}We(ls,Hi),ls.prototype.updateAdornments=function(a){if(!(a===null||a instanceof xn)){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(),Nh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ls.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ki,y.type=gn.Spot,y.locationSpot=Gi;var x=new Ts;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,qr)),y.add(this.makeHandle(a,ws)),y.add(this.makeHandle(a,Vo)),y.add(this.makeHandle(a,na)),y.add(this.makeHandle(a,fs)),y.add(this.makeHandle(a,js)),y.add(this.makeHandle(a,ia))}else if(Ka(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ls.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ls.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=Gi),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 gn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ls.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},ls.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))},ls.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ls.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ls.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ls.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,de.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),de.free(E)}},ls.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,de.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),de.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ls.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 mi){var b=new Cn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new lt;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ls.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Gi);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width,dt=nt.y+nt.height,yt=1;if(!z){yt=nt.width;var Tt=nt.height;0>=yt&&(yt=1),0>=Tt&&(Tt=1),yt=Tt/yt}return Tt=de.alloc(),ze.No(a.x,a.y,ot,at,E.width,E.height,Tt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ht-a.width,a.y=dt-a.height)):1<=y.y?(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ht-a.width)):(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=ht-a.x,z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(dt-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.y=dt-a.height)):1<=y.y?(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width))):(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(dt-at-a.height))):0>=y.y?(a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=dt-a.y,z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ht-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ht-ot-a.width))),de.free(Tt),a},ls.prototype.computeReshape=function(){var a=hn;return this.adornedObject instanceof Ci&&(a=Av(this.adornedObject)),!(a===Gn||this.diagram.lastInput.shift)},ls.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},ls.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},ls.prototype.computeCellSize=function(){var a=new on(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},sn.Object.defineProperties(ls.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 Ki))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 Ki)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}}}),ls.className="ResizingTool",In("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function As(){Hi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new de,this.ue=null;var a=new Ci;a.figure="Ellipse",a.desiredSize=Qi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new de(NaN,NaN),this.u=0,this.F=50}We(As,Hi),As.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)}},As.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ki,y.type=gn.Position,y.locationSpot=Gi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Ka(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},As.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},As.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)},As.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(Gi)},As.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},As.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new de(NaN,NaN),this.isActive=a.isMouseCaptured=!1},As.prototype.stopTransaction=function(){var a=this.diagram,y=Hi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},As.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},As.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},As.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()},As.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},As.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},sn.Object.defineProperties(As.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 Ki))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 Ki)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}}}),As.className="RotatingTool",In("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function ph(){Hi.call(this),this.name="ClickSelecting"}We(ph,Hi),ph.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},ph.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},ph.className="ClickSelectingTool";function Ua(){Hi.call(this),this.name="Action",this.pk=null}We(Ua,Hi),Ua.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ua.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()},Ua.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))}},Ua.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()},Ua.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())},Ua.prototype.doStop=function(){this.pk=null},Ua.className="ActionTool";function Fu(){Hi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new de(0,0)}We(Fu,Hi),Fu.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)},Fu.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Fu.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof $n)x.Zc()&&(Ka(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);yn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=de.allocAt(a.x,a.y);this.isGridSnapEnabled&&$d(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),de.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},sn.Object.defineProperties(Fu.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}}}),Fu.className="ClickCreatingTool";function La(){Hi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new $n;a.layerName="Tool",a.selectable=!1;var y=new Ci;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}We(La,Hi),La.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))},La.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},La.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},La.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=on.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),on.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},La.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()},La.prototype.computeBoxBounds=function(){var a=this.diagram;return new Je(a.firstInput.documentPoint,a.lastInput.documentPoint)},La.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),xo?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 Cn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},sn.Object.defineProperties(La.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}}}),La.className="DragSelectingTool";function rs(){Hi.call(this),this.name="Panning",this.Xt=new de,this.xy=new de,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(rs,Hi),rs.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())},rs.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},rs.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},rs.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},rs.prototype.doMouseMove=function(){this.move()},rs.prototype.doMouseUp=function(){this.move(),this.stopTool()},rs.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},sn.Object.defineProperties(rs.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),rs.className="PanningTool",In("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),In("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),In("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),In("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),In("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Ll(){this.F=this.u=this.j=this.o=null}sn.Object.defineProperties(Ll.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}}}),Ll.className="HTMLInfo";function _a(a,y,x){this.text=a,this.hx=y,this.visible=x}_a.className="ContextMenuButtonInfo";function Ls(){Hi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new de,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}We(Ls,Hi);function tl(a){var y=new Ll;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},mh=y,a.tu=function(){a.stopTool()},y=En("div");var x=En("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=En("style");Ze.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",po,!1),b.addEventListener(y,"selectstart",po,!1),b.addEventListener(x,"contextmenu",po,!1)),y.className="goCXforeground",x.className="goCXbackground",Ze.document.body&&(Ze.document.body.appendChild(y),Ze.document.body.appendChild(x)),_c=y,ec=x,Uc=!0}function po(a){return a.preventDefault(),!1}Ls.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)},Ls.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ls.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ls.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Ke||(a instanceof Re?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Ls.prototype.doActivate=function(){},Ls.prototype.doMouseDown=function(){if(Hi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&gl(this)},Ls.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ki){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}gl(this)};function gl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Ll||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(su(a,!0),a.isActive||a.stopTool())}Ls.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function su(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=mh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Re?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ki&&!a.currentContextMenu.visible&&a.stopTool()}}Ls.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ls.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ki){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Ll&&a.show(y,x,this);this.currentContextMenu=a},Ls.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Ls.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ki?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Ll&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ou(a){var y=new Cn;return y.add(new _a("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new _a("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new _a("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new _a("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new _a("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new _a("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new _a("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new _a("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new _a("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new _a("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new _a("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new _a("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new _a("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ls.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Ou(this)),_c.innerHTML="",ec.addEventListener("pointerdown",this.tu,!1);var y=this,x=En("ul");x.className="goCXul",_c.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=En("li"),z.className="goCXli";var nt=En("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}_c.style.display="block",ec.style.display="block"},Ls.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===mh){_c.style.display="none",ec.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ec,"pointerdown",this.tu,!1),this.currentContextMenu=null}},sn.Object.defineProperties(Ls.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ki?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Uc===!1&&mh===null&&Qr&&tl(this),mh},set:function(a){a===null&&(Uc=!0),mh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var mh=null,Uc=!1,ec=null,_c=null;Ls.className="ContextMenuTool",In("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Nr(){Hi.call(this),this.name="TextEditing",this.Zh=new Cr,this.ia=null,this.V=nc,this.vj=null,this.qa=ic,this.u=1,this.F=!0,this.o=null,this.j=new Ll,this.kt=null,Wc(this,this.j)}We(Nr,Hi);function Wc(a,y){if(Qr){var x=En("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Gc)):E==="Tab"?(a.acceptText(Gd),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==ic){var b=a.kt;a.qa===Hc&&(a.qa=Kc),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==ic){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Cr&&z instanceof Nr)if(z.state===Vc)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Gi),ot=E.position,at=E.scale,ht=b.Df()*at;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var dt=b.naturalBounds.width*ht+6,yt=b.naturalBounds.height*ht+2,Tt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,yt=ot.y*yt-ot.y*at+ot.offsetY-(.5*yt-.5*at)-at/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ht+"%",x.style.lineHeight="normal",x.style.width=dt+"px",x.style.left=(Tt-dt/2|0)-1+"px",x.style.top=(nt+yt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ht,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Nr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Du&&Du!==this&&(Du.acceptText(El),Du&&Du!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Cr&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===nc&&!y.isSelected||this.starting===Hd&&2>a.lastInput.clickCount)):!1},Nr.prototype.doStart=function(){Du=this,this.textBlock!==null&&this.doActivate()},Nr.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 Cr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Hc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Je(this.textBlock.ga(ho),this.textBlock.ga(ws));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Nr.prototype.doCancel=function(){this.stopTool()},Nr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Nr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(El)},Nr.prototype.acceptText=function(a){switch(a){case El:this.qa===rc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Hc||this.qa===Vc||this.qa===Kc)&&(this.qa=rg,ig(this));break;case Wd:case Gc:case Gd:(Gc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Hc||this.qa===Vc||this.qa===Kc)&&(this.qa=rg,ig(this))}};function ig(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=rc,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Vc,a.doError(E,z))}}Nr.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)},Nr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Nr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ic,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Nr.prototype.doStop=function(){Du=null},Nr.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},Nr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},sn.Object.defineProperties(Nr.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)}}}),Nr.prototype.measureTemporaryTextBlock=Nr.prototype.Lx;var Wd=new qe(Nr,"LostFocus",0),El=new qe(Nr,"MouseDown",1),Gd=new qe(Nr,"Tab",2),Gc=new qe(Nr,"Enter",3),tv=new qe(Nr,"SingleClick",0),nc=new qe(Nr,"SingleClickSelected",1),Hd=new qe(Nr,"DoubleClick",2),ic=new qe(Nr,"StateNone",0),Hc=new qe(Nr,"StateActive",1),Kc=new qe(Nr,"StateEditing",2),rg=new qe(Nr,"StateValidating",3),Vc=new qe(Nr,"StateInvalid",4),rc=new qe(Nr,"StateValidated",5),Du=null;Nr.className="TextEditingTool",Nr.LostFocus=Wd,Nr.MouseDown=El,Nr.Tab=Gd,Nr.Enter=Gc,Nr.SingleClick=tv,Nr.SingleClickSelected=nc,Nr.DoubleClick=Hd,Nr.StateNone=ic,Nr.StateActive=Hc,Nr.StateEditing=Kc,Nr.StateValidating=rg,Nr.StateInvalid=Vc,Nr.StateValidated=rc,In("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function sa(a){Xc||(og(),Xc=!0),this.H=zl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=lu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Oe,this.ce=new os,this.ce.Yd=this,this.Ei=new Oe,this.pu=new Oe,this.Sr=new Oe,this.pr=new Oe,a&&Object.assign(this,a)}sa.prototype.Xe=function(a){this.H=a},sa.prototype.canStart=function(){return!0};function jl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ss(a.H),a.zb=!0)}function Kd(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===lu?(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===sg&&y.vc.clear(),a.Qw=!!(a.Pk===Zc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Jc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ms&&b!==null&&(delete b.start.scale,delete b.end.scale),Ze.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&zs(x),cg(x),a.zb=!1,y.start(),y.bc&&(Bu(a),x.Ya(),ag(y,0),ka(x,!0),vh(a),x.R("AnimationStarting",a)))}))}}function au(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Vd(a,y,x,b){a.isTicking||au(a)||y instanceof xn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ut=sa.prototype,Ut.fv=function(a){return this.ce.fv(a)},Ut.Xu=function(a){return this.ce.Xu(a)};function Yd(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof Re&&at.diagram!==null||at instanceof Ke){ot=!0;break t}}ot=!1}ot?Qc(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Bu(E),ka(E.H),vh(E)),Ze.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ze.requestAnimationFrame(function(){x()}))}function _p(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Bu(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 vh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ut.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(),Jc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Jc(y,this.H)},Ut.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))},Ut.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Vs(this,a))},Ut.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Iu(this.ce,y,"position",y.position,y.position),Vs(this,a))};function Wp(a,y,x){!a.zb||y.D(x)||au(a)||(a.H.pi||(y=x.copy()),Iu(a.ce,a.H,"position",y,x))}function Xd(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Vs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function yh(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ht=y[1],dt=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ht):(dt===0||dt===100)&&(at=z,ht=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ht-nt,b),ot=E(x,ot,dt-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function og(){function a(x,b,E,z,nt,ot){x.position=new de(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new pn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new de(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!0):x.location=new de(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new de(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ht=E.actualBounds;E=ht.x+ht.width/2-at.width/2,at=ht.y+ht.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new de(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,nt,ot){x.desiredSize=new Je(z(nt,b.width,E.width-b.width,ot),z(nt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,nt,ot){x.width=z(nt,b,E-b,ot)}),y.add("height",function(x,b,E,z,nt,ot){x.height=z(nt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,nt,ot){x.fill=yh(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=yh(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=yh(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=yh(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),Yc=y}sn.Object.defineProperties(sa.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&&xi(a,">= 1",sa,"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}}}),sa.prototype.stopAnimation=sa.prototype.Cc;var Yc=null,Xc=!1,lu=new qe(sa,"Default",1),Zc=new qe(sa,"AnimateLocations",2),sg=new qe(sa,"None",3);sa.className="AnimationManager",sa.defineAnimationEffect=function(a,y){Xc||(og(),Xc=!0),Yc.add(a,y)},sa.Default=lu,sa.AnimateLocations=Zc,sa.None=sg;function os(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=oc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Mi,this.vc=new pn,this.Tt=new pn,this.yl=new Oe,this.Ut=new Oe,this.dw=zu,a&&Object.assign(this,a)}os.prototype.suspend=function(){this.Xk=!0},os.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Qc(this,!0),Bu(this.Yd),ka(this.H),vh(this.Yd),this.H.redraw()};function Jc(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}Ut=os.prototype,Ut.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 Ke?a=x:x instanceof Re&&(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===lu&&this===y.defaultAnimation&&(this.Lp=Gp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=rd),Bu(y),this.yl.each(function(b){b.data=null,a.add(b)}),vh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Yd(y,this),this)},Ut.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ut.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Ke?this.H=a:a instanceof Re&&a.diagram!==null&&(this.H=a.diagram)),a instanceof $n){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Iu(this,a,y,x,b,E),this};function Iu(a,y,x,b,E,z){var nt=a.vc;if(y instanceof Ke&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(du(b),av(),b=[wa.j,wa.u,wa.o,wa.F],du(E),av(),E=[wa.j,wa.u,wa.o,wa.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ht=ot.end;at[x]===void 0&&(at[x]=Sh(b)),ht[x]=Sh(E)}else at={},ht={},at[x]=Sh(b),ht[x]=Sh(E),ot=at.position,y instanceof Re&&ot instanceof de&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ht.position),ot=new xh(at,ht,z),nt.add(y,ot);nt=at[x],nt instanceof de&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof $n?ot.Ku.location=Sh(y.location):z&&(ot.Ku[x]=Sh(b))}function Sh(a){return a instanceof de||a instanceof on?a.copy():a}Ut.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ut.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Qc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Bu(x),ag(a,E),ka(a.H,!0),vh(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function ag(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Re&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=Yc,ht;for(ht in nt)ht==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ht)===null||at.get(ht)(z,ot[ht],nt[ht],a.Lp,y,x,a)}}}Ut.stop=function(){return this.bc?(this.Ml(!0),this):this},Ut.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,Bu(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=Yc;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ht=E?ot.start:ot.end,dt=ot.Ku,yt;for(yt in ht)if(z.get(yt)!==null){var Tt=yt;!ot.Hu||Tt!=="position:nodeCollapse"&&Tt!=="position:placeholder"||(Tt="position"),z.get(Tt)(nt,at[yt],dt[yt]!==void 0?dt[yt]:ot.Hu?at[yt]:ht[yt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&dt.location!==void 0&&nt instanceof $n&&(nt.location=dt.location),ot.nv&&nt instanceof $n&&nt.Zb(!1)}if(y.As.clear(),qc(y,!1),y.Ya(),y.N(),ka(y,!0),x.defaultAnimation===this){for(yt=x.pr.iterator;yt.next();)E=yt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}ka(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),vh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Jc(this,null),x.Ml(this),y.$b())}},Ut.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof mi&&(b=y.placeholder),b!==null?(x=b.ga(ho),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new de(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof mi)for(a=a.memberParts;a.next();)b=a.value,b instanceof Fn&&this.Cj(b,y)},Ut.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof mi&&(x=y.placeholder),x!==null){var b=x.ga(ho);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof mi)for(a=a.memberParts;a.next();)b=a.value,b instanceof Fn&&this.Aj(b,y)}},Ut.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},sn.Object.defineProperties(os.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&xi(a,">= 1",os,"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:Ye("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}}}),os.prototype.getTemporaryState=os.prototype.Ez,os.prototype.stop=os.prototype.stop,os.prototype.add=os.prototype.add,os.prototype.addTemporaryPart=os.prototype.Iy;function oc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gp(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}os.className="Animation",os.EaseLinear=function(a,y,x,b){return x*a/b+y},os.EaseInOutQuad=oc,os.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},os.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},os.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},os.EaseOutExpo=Gp;function xh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}xh.className="AnimationState";function el(a,y,x){this.xd=null,this.rf=a,this.so=x||lg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=wh))}el.prototype.copy=function(){var a=new el(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 Hp(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))}sn.Object.defineProperties(el.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 lg=new qe(el,"Default",1),wh=new qe(el,"Immediate",2),sc=new qe(el,"Bundled",3);el.className="AnimationTrigger",el.Default=lg,el.Immediate=wh,el.Bundled=sc;function Go(a){je(this),this.H=null,this.Pa=new Cn,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)}Ut=Go.prototype,Ut.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,cs(x)}a.clear(),this.Zq.length=0},Ut.Xe=function(a){this.H=a},Ut.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof mi?E++:at instanceof Fn?b++:at instanceof xn?z++:at instanceof Ki?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<nt&&(ot+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
|
|
`+x.toString(),b=x.data,b!==null&&Me(b)&&(ot+=" #"+Me(b)),x instanceof Fn?ot+=" "+qi(b):x instanceof xn&&(ot+=" "+qi(x.fromNode)+" "+qi(x.toNode));return y+" "+this.Pa.count+": "+ot},Ut.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=de.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||Nh(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Di(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return de.free(E),ot}return de.free(E),null},Ut.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Cn||b instanceof Oe||(b=new Oe),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=de.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||Nh(at)!==!1)&&at.isVisible()){z.assign(a),Di(z,at.oe);var ht=at;at.ji(z,y,x,b)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||b.add(ht))}}return de.free(z),b},Ut.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Cn||E instanceof Oe||(E=new Oe),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||Nh(at)!==!1)&&at.isVisible()){var ht=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||E.add(ht))}}return E},Ut.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ht=ot[at];if((nt!==!0||Nh(ht)!==!1)&&z(ht)&&ht.isVisible()){var dt=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt))}}return E},Ut.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Cn||E instanceof Oe)&&(z=E),E=!0),z instanceof Cn||z instanceof Oe||(z=new Oe),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=de.alloc(),at=de.alloc(),ht=this.Pa.s,dt=ht.length;dt--;){var yt=ht[dt];if((nt!==!0||Nh(yt)!==!1)&&yt.isVisible()){ot.assign(a),Di(ot,yt.oe),at.h(a.x+y,a.y),Di(at,yt.oe);var Tt=yt;yt.og(ot,at,x,b,E,z)&&(x!==null&&(Tt=x(Tt)),Tt===null||b!==null&&!b(Tt)||z.add(Tt))}}return de.free(ot),de.free(at),z},Ut.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=li();for(var E=li(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof xn){if(nt.fd===!1)continue}else if(nt instanceof Ki&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&No(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],Iv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Iv(E[y]);ai(a),ai(E)}}};function uu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ut.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=uu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=Je.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(Je.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Kp(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=uu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ht=Je.alloc(),dt=0;dt<z;dt++){var yt=E[dt];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ht,!1)}Je.free(ht),y.globalAlpha=nt}}}Ut.Oj=function(a,y,x,b,E,z,nt){if(nt&&!Nh(y))a.Hs(y);else{if(b!==null&&y instanceof xn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof aa?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&($r(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&($r(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),$r(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Ut.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Wr,a,this,y,x,b,E)},Ut.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&cs(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Zd(this,a,y),a},Ut.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,cs(y),a};function Zd(a,y,x){if(y=Vp(a,y,x),x instanceof mi&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Zd(a,-1,y)}x.svg!==null&&x.svg.remove()}function Vp(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var ot=y+1,at=NaN;ot<E&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===E||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<E&&(at=a.M(ot).zOrder,isNaN(at)););}return y}sn.Object.defineProperties(Go.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===""&&Ye("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ye("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)&&xi(a,"0 <= value <= 1",Go,"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))}}}),Go.prototype.findObjectsNear=Go.prototype.og,Go.prototype.findObjectsIn=Go.prototype.Cf,Go.prototype.findObjectsAt=Go.prototype.ji,Go.prototype.findObjectAt=Go.prototype.ic,Go.className="Layer";function Ke(a,y){if(sm||(us(),sm=!0),je(this),zl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Qr){var x=this,b=function(){x.removeEventListener(Ze.document,"DOMContentLoaded",b,!1),x.setRTL()};Ze.document.body!==null?this.setRTL():x.addEventListener(Ze.document,"DOMContentLoaded",b,!1)}this.ol=null,af.add("Model",fr);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Wr&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Yp(this),this.model=cy(),this.Wg=!0,Zp(this),this.layout=new jr,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new am,a!==void 0&&(typeof a=="string"||Ze.Element&&a instanceof Element?hg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Ph,zl;function Yp(a){a.Yd=new sa,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Cn,a.pj=new pn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new de(NaN,NaN).freeze(),a.du=new de(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new de(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new ki,a.zu=new de(NaN,NaN).freeze(),a.ut=new Je(NaN,NaN,NaN,NaN).freeze(),a.rj=new ii(0,0,0,0).freeze(),a.sj=zu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ms,a.zk=ns,a.Fg=ms,a.pq=ns,a.yt=ho,a.Bt=ho,a.Fc=!0,a.pn=!1,a.De=new Oe,a.Eh=new pn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new ii(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new gs,a.bq.diagram=a,a.Qg=new gs,a.Qg.diagram=a,a.cj=new gs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new Oe,a.Ht=!0,a.uu=Uu,a.pw=!1,a.wu=id,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 pn,a.Xn=new Cn,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 ii(5).freeze(),a.Hw=new Oe().freeze(),a.Nt=999999999,a.nw=new Oe().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 Oe,a.ow=new Oe,a.Xh=null,a.aw=new on(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new de,bounds:new Je,Py:new on,bA:new on,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Je(NaN,NaN,NaN,NaN).freeze(),a.wo=new on(NaN,NaN).freeze(),a.Sp=new Je(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new pn;var y=new Fn,x=new Cr;x.bind(new mo("text","",qi)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Fn,x=new Cr,x.stroke="brown",x.bind(new mo("text","",qi)),y.add(x),a.Lg.add("Comment",y),y=new Fn,y.selectable=!1,y.avoidable=!1,x=new Ci,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new on(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new pn,y=new mi,y.selectionObjectName="GROUPPANEL",y.type=gn.Vertical,x=new Cr,x.font="bold 12pt sans-serif",x.bind(new mo("text","",qi)),y.add(x),x=new gn(gn.Auto),x.name="GROUPPANEL";var b=new Ci;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Ts,b.padding=new ii(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new pn,y=new xn,x=new Ci,x.isPanelMain=!0,y.add(x),x=new Ci,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new xn,x=new Ci,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ki,y.type=gn.Auto,x=new Ci,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ts,x.margin=new ii(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ki,y.type=gn.Link,x=new Ci,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 fr,a.toolManager=new Ur,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new lt,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Xp(),a.eq=null,a.fq=rr,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 de,a.zy=500,a.wp=new de,a.wq=!1}Ke.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),fc=null,Eh="",ug(this,!1),this.Xn.clear(),xf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function ug(a,y){a.animationManager.Cc(!0),a.Hw=new Oe().freeze(),a.nw=new Oe().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;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(),xf(),a.Og.clear(),to=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Xp(){return null}Ke.prototype.reset=function(){this.clear(),this.vb=!0,Yp(this),Ml(this),this.Wg=!0,Zp(this),this.layout=new jr,this.Wg=!1,this.model=cy(),this.model.undoManager=new Vr,this.vb=this.rn=!1,this.N()},Ke.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ze.document.body);var y=En("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},Ke.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ze.document.body);var y=0;if(Qr){var x=om;y=Ph,x===null&&(x=om=En("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Ph=En("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||xo||(y=11)}this.Db=y,this.Gw=!0},Ke.prototype.qb=function(a){a.classType===Ke&&(this.autoScale=a)},Ke.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 hg(a,y){if(Qr){if(y!=null||Ye("Diagram setup requires an argument DIV."),a.Ka!==null&&Ye("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ze.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ye("No DIV or DIV id supplied: "+y),a.Ka===null&&Ye("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ye("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ze.ResizeObserver){var x=ri(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 b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ze.go;var E=new Ha(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ze.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yg(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Ha(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Qr){E=En("div");var z=En("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Qp,E.addEventListener("pointerdown",qp),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=ri(function(){a.Yh=null,a.N()},300),a.Ov=ri(function(){cg(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=Ea(a,nt,!0);ot.bubbles=!0;var at=0,ht=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ht=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ht):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ht=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ht):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),nl(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,Ea(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ht=at;at=pg(a,nt,!0,!1,!0,ht),lc(a,nt,at),at.targetDiagram=gg(nt,nt.target),at.targetObject=null,ht||at.clone(a.bq),ht=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ht.x-nt.screenX)>ot||Math.abs(ht.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():nl(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=pg(a,nt,!1,!1,!1,ot[1]!==null);var at=Ze.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ht=a,dt=nt;at&&at.H&&(dt=nt,ht=at.H),ot.targetDiagram=ht,lc(a,dt,ot),ot.targetObject=null,a.doMouseMove(),nl(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=pg(a,nt,!1,!0,!0,!1);var ht=Ze.document.elementFromPoint(nt.clientX,nt.clientY)||null;ht!==null&&ht.shadowRoot!==void 0&&ht.shadowRoot!==null&&(ht=ht.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ht!==null&&ht.H instanceof Ke&&ht.H!==a&&lc(ht.H,nt,at),ht===null&&(ht=nt.target),lc(a,nt,at),at.clickCount=a.yq,at.targetDiagram=gg(nt,ht),at.targetObject=null,a.doMouseUp(),nl(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+sd[1]+sd[2]+"wI"+pc.slice(1,5)]["b"+Ox.slice(1,y)](b.Z,od,y,y),b.Vc(!0),ev(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ke.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ke.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ev(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 zs(a){30<a.Sq&&(a.Yh=1)}function qc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Gr&&Gr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ke.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ze.devicePixelRatio||1},Ke.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ke.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ke.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ke.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ke.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ke.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ke.prototype.doFocus=function(){this.focus()},Ke.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)}},Ke.prototype.Oy=function(){this.H.R("GainedFocus")},Ke.prototype.Ny=function(){this.H.R("LostFocus")};function cg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ms&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Zp(a){var y=new Go;y.name="Background",a.Al(y),y=new Go,y.name="",a.Al(y),y=new Go,y.name="Foreground",a.Al(y),y=new Go,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Go,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Go,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new gn(gn.Grid);y.name="GRID";var x=new Ci;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ci,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ci,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ci,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ci,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ci,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new $n,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):cc(this.H)}function qp(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):cc(this.H)}Ke.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ht=b.height+z.top+z.bottom,dt=b.right+z.right;z=b.bottom+z.bottom;var yt=E.x;b=E.y;var Tt=E.width,zt=E.height,Gt=E.right,ee=E.bottom;E=this.scale;var ye=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ye=ye+a.scrollWidth-a.clientWidth;break;case"reverse":ye=a.scrollWidth-ye-a.clientWidth}var ge=ye;Tt<at||zt<ht?(ye=de.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ge&&(ye.x=ge/E+nt,this.ju=ge),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ye.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=ye,de.free(ye),this.Ee=this.qr=!1):(ye=de.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=ye.h(ge+nt,this.position.y)),dt>Gt&&(this.position=ye.h(-(y.scrollWidth-this.Aa)+ge-this.Aa/E+dt,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=ye.h(this.position.x,a.scrollTop+ot)),z>ee&&(this.position=ye.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),de.free(ye),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,dt=b.right,Gt=E.right,z=b.bottom,ee=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,Tt>=at&&nt>=yt&&dt<=Gt&&(x.style.width="1px"),zt>=ht&&ot>=b&&z<=ee&&(x.style.height="1px"))}},Ke.prototype.computeBounds=function(a){return a===void 0&&(a=new Je),ss(this),dg(this,a)};function dg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ht=nt[at];ht.isInDocumentBounds&&ht.isVisible()&&(ht=ht.actualBounds,ht.w()&&(x?(x=!1,y.assign(ht)):y.ed(ht)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Ke.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(hi(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof xn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof xn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Je(NaN,NaN,0,0):x};function Wa(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=de.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Je.allocAt(0,0,b.width,b.height);var E=de.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Je.free(b),de.free(E),de.free(x)}x=a.yh,y&&a.Fg!==ms&&(x=a.Fg);var z=x!==ms?ac(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?Gi:at),fg(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,ze.B(z.x,x)&&ze.B(z.y,b)&&ze.B(z.width,E)&&ze.B(z.height,nt)||a.onViewportBoundsChanged(new Je(x,b,E,nt),z,y,!1)}}function ac(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ot=z/E,at=nt/b;return y===ya?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===kh?(y=at>ot?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Ke.prototype.zoomToFit=function(){var a=this.sj;this.sj=zu,this.scale=ac(this,ya),a!==zu&&(Wa(this,!1),fg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ut=Ke.prototype,Ut.BA=function(a,y){y===void 0&&(y=ya);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ya||y===kh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===kh?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new de(a.x,a.y)}},Ut.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new de(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Ut.zz=function(a){if(a instanceof Re){this.eq=a;var y=de.alloc();this.fq=this.op(a.ga(ho,y)),de.free(y)}else this.eq=null,this.fq=rr};function fg(a,y,x,b,E,z){var nt=de.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ht=de.alloc();ht=a.eq.ga(ho,ht),ot=ht.x-a.fq.x/a.scale,at=ht.y-a.fq.y/a.scale,E=no,de.free(ht)}(z||a.scrollMode===zu)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),Wp(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Ml(a),de.free(nt)}Ut.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ul(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof $n)return a}else if(a=Ul(this,a,function(x){return x.part}),a instanceof $n)return a;return null},Ut.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ss(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Ul(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),ss(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Ut.lz=function(a,y,x){return y===void 0&&(y=!0),$c(this,a,function(b){return b.part},y?function(b){return b instanceof $n&&b.canSelect()}:null,x)};function $c(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Cn||E instanceof Oe||(E=new Oe),ss(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Ut.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Cn||b instanceof Oe||(b=new Oe),ss(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Ut.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Jd(this,a,function(E){return E instanceof $n&&(!x||E.canSelect())},y,b)},Ut.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Cn||E instanceof Oe||(E=new Oe),ss(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Ut.Nu=function(a,y,x,b,E,z){var nt=new Oe;ss(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function Jd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Cn||E instanceof Oe||(E=new Oe),ss(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Ut.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),td(this,a,y,function(z){return z instanceof $n&&(!b||z.canSelect())},x,E)},Ut.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Cn||E instanceof Oe)&&(z=E),E=!0),z instanceof Cn||z instanceof Oe||(z=new Oe),ss(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function td(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Cn||E instanceof Oe)&&(z=E),E=!0),z instanceof Cn||z instanceof Oe||(z=new Oe),ss(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,E,z)}return z}Ke.prototype.acceptEvent=function(a){return Ea(this,a,a instanceof MouseEvent)};function Ea(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?lc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),xo&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=gg(y,y.target),b.targetObject=null,b}function gg(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 pg(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,xo&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function nl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ke.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Ea(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(),nl(x,a)},Ke.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ea(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(),nl(x,a)},Ke.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ea(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),nl(x,a)},Ke.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ea(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),nl(x,a)},Ke.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new de(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?Di(new de(y,a),this.Ab):new de(y,a)};function lc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=de.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),de.free(y)):x.documentPoint.h(nt,ot)}function mg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Ke.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function $p(a){a.ld||ss(a),a.Va()}Ke.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ut=Ke.prototype,Ut.Pz=function(){return this.kg},Ut.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ka(this),this.hf=!1,this.du=new de(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Si(function(){b.ld=!1,jl(y,"Model"),a(b)},1)},Ut.$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()})}},Ut.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ka(this))};function Ch(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||cc(a)||(y&&ss(a),x&&Wa(a,!1))}function ka(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];Po(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||cg(a),Ch(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(kl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ss(a),z=!1,(!a.hf||a.xh)&&(a.hf?Lg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Lg(a,!1)),z=!0),a.Jk=!1,ss(a),a.ou||$p(a),Ch(a,!0,!1),nt=!1,z?(x=Je.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,vg(a)),a.R("LayoutCompleted"),Ch(a,!0,!1),Je.free(x)):x.Ok&&x.Qw&&(a.Fg!==ms?a.scale=ac(a,a.Fg):a.yh!==ms?a.scale=ac(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Wa(a,!0)),z&&nt&&a.eb("Initial Layout"),ss(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function vg(a){if(a.Fg!==ms)a.scale=ac(a,a.Fg);else if(a.yh!==ms)a.scale=ac(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Wa(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),kl(a)}function ss(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Oe,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof mi&&b.U&65536&&(b.U=b.U^65536)})}}Ut.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof mi||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof mi&&x.isVisible()&&ed(this,x);for(a.reset();a.next();)x=a.value,x instanceof xn&&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 Ki&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ed(a,y){for(var x=li(),b=li(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof mi?(xa(z)||ks(z)||Th(z))&&ed(a,z):z instanceof xn?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(ai(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();ai(b)}Ut.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ut.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ye("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){hc(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,Zy(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ru(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?mc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(ki.prototype.Cd=ki.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,hc(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ht=Math.round(ot.x*at)/at,dt=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ht,-dt),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ru(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?mc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(ki.prototype.Cd=ki.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Gr&&Gr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Qd(a,y,x,b,E,z,nt,ot,at,ht){if(a.Ka!==null){a.ta===null&&Ye("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ht===void 0&&(ht=!1),hc(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var dt=a.Ca;a.Ca=E;var yt=a.Wa.s,Tt=yt.length;try{var zt=new Je(z.x,z.y,b.width/E,b.height/E),Gt=zt.copy();Gt.Co(x),kl(a,Gt),ss(a),a.Fd(yt,Tt,a,zt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var ee=a.Mb;y.scale(ee,ee);var ye=ki.alloc();ye.reset(),ye.translate(x.left,x.top),ye.scale(E),z.x===0&&z.y===0||ye.translate(-z.x,-z.y),y.setTransform(ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),y.yc(),y instanceof aa&&Zy(y,ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),ki.free(ye),Ru(a,y),y.globalAlpha=a.pb;var ge=a.Qj("Grid");if(nt){var Ce=new Oe,be=nt.iterator;for(be.reset();be.next();){var Ee=be.value;Ee instanceof $n&&(ht||Ee.layer!==ge)&&(Ee.Gj(),Ce.add(Ee))}for(ht=0;ht<Tt;ht++)Kp(yt[ht],y,a,Ce,at);Ce.each(function(He){return He.Gj()})}else for(Ce=0;Ce<Tt;Ce++){var Be=yt[Ce];Be===ge?ht&&Be.gc(y,a,!0):Be.gc(y,a,at)}a.$i=!1,a.Yf&&mc(a.Yf,a)&&a.Vp()}finally{a.Ca=dt,a.ib.Vc(!0),a.vd=!0,a.Fd(yt,Tt,a,a.viewportBounds),kl(a),a.ib instanceof aa&&(a.ib.Nj.PA(),a.redraw())}}}Ut.Gf=function(a){return this.Rg[a]},Ut.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ut.Tx=function(){this.Rg=new Pi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(xo||$o),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ru(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ut.Ql=function(a){return this.on[a]},Ut.sA=function(a,y){this.on[a]=y},Ut.Sx=function(){this.on=new Pi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ut.set=function(a){return Object.assign(this,a),this},Ut.Du=function(a){return this.nm(a)},Ut.nm=function(a){return uc(this,a),this};function uc(a,y){var x=a instanceof gn,b=a instanceof Ke,E;for(E in y){E===""&&Ye("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),yn(z)?nt=E.substr(ot+1):Ye("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!Lr(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&Lr(a.toolManager,nt))z=a.toolManager;else if(b&&nm(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Kn&&nt==="Changed"){a.Pe(y[nt]);continue}else Ye('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof Re&&z.Vw(nt)}}Ut.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new pn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ut.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")},Ke.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!==rd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=Je.alloc(),Ag(this,this.computeBounds(b)),Je.free(b)),b=this.ta,b===null||b instanceof Tl)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ht=70*nt,dt=Math.max(z,0),yt=Math.max(y,0),Tt=Math.floor(E-dt),zt=Math.floor(ot-yt);a.drawImage(b.Oa,dt,yt,Tt,zt,0,0,Tt,zt),mc(this.Yf,this)&&a.clearRect(0,0,at,ht),b=li(),a=li(),zt=Math.abs(z),Tt=Math.abs(y);var Gt=dt===0?0:E-zt;dt=de.allocAt(Gt,0),zt=de.allocAt(zt+Gt,ot),a.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y)));var ee=this.Ab;if(ee.reset(),ee.scale(nt,nt),this.Ca!==1&&ee.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ee.translate(-nt.x,-nt.y),Di(dt,ee),Di(zt,ee),b.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y))),Gt=yt===0?0:ot-Tt,dt.h(0,Gt),zt.h(E,Tt+Gt),a.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y))),Di(dt,ee),Di(zt,ee),b.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y))),mc(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,dt.h(E,ot),zt.h(at+E,ht+ot),a.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y))),Di(dt,ee),Di(zt,ee),b.push(new Je(Math.min(dt.x,zt.x),Math.min(dt.y,zt.y),Math.abs(dt.x-zt.x),Math.abs(dt.y-zt.y)))),de.free(dt),de.free(zt),Ch(this,!1,!0),this.Ka===null&&Ye("No div specified"),this.ta===null&&Ye("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(hc(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ht=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ht),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ru(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ht=uu(nt,E),yt=nt.Zq,yt.length=0,dt=this.scale,Tt=Je.alloc(),zt=nt.Pa.s,ee=zt.length,Gt=at.length;for(var ye=0;ye<ee;ye++){var ge=zt[ye],Ce=Cc(ge,ge.actualBounds);t:{for(var be=2/dt,Ee=4/dt,Be=0;Be<Gt;Be++){var He=at[Be];if(He.width!==0&&He.height!==0&&Ce.Vu(He.x-be,He.y-be,He.width+Ee,He.height+Ee)){Ce=!0;break t}}Ce=!1}Ce&&nt.Oj(E,ge,this,yt,dt,Tt,!0)}Je.free(Tt),E.globalAlpha=ht}E.restore(),E.Vc(!0),this.Yf&&mc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}ai(b),ai(a),this.ld=!1}}else this.bd();x&&(zs(this),this.bd(),qc(this,!0))}else x?(zs(this),this.bd(),qc(this,!0)):this.bd()}};function hc(a){a.pn!==!1&&(a.pn=!1,yg(a,a.Aa,a.ya))}function yg(a,y,x){Ml(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function cc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ht=E.clientHeight||b+ot,dt=a.viewportBounds;E=dt.x;var yt=dt.y,Tt=dt.width,zt=dt.height;if((at!==x+nt||ht!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ht,z=a.pn=!0,Ml(a)),!a.hf||!a.viewportBounds.w())return!0;var Gt=a.ku,ee=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ye=a.documentBounds,ge=0,Ce=0,be=0,Ee=0,Be=dt.width,He=dt.height,Mn=a.rj;a.contentAlignment.sb()?(ye.width>Be&&(ge=Mn.left,Ce=Mn.right),ye.height>He&&(be=Mn.top,Ee=Mn.bottom)):(ge=Mn.left,Ce=Mn.right,be=Mn.top,Ee=Mn.bottom);var Un=ye.width+ge+Ce,Dn=ye.height+be+Ee;Mn=a.scale;var Sn=Un>at/Mn,an=Dn>ht/Mn;if(!(z||a.gf||a.Be||Sn||an))return!0;ge=ye.x-ge,at=dt.x,Ce=ye.right+Ce,ht=dt.right+nt,be=ye.y-be;var pi=dt.y;ye=ye.bottom+Ee,dt=dt.bottom+ot;var ci="1px";if(Ee="1px",a.scrollMode===zu&&(Sn||an)&&(Sn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Sn=1,ge+1<at&&(Sn=Math.max((at-ge)*Mn+a.Aa,Sn)),Ce>ht+1&&(Sn=Math.max((Ce-ht)*Mn+a.Aa,Sn)),Be+nt+1<Un&&(Sn=Math.max((Un-Be)*Mn+a.Aa,Sn)),ci=Sn.toString()+"px"),an&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Sn=1,be+1<pi&&(Sn=Math.max((pi-be)*Mn+a.ya,Sn)),ye>dt+1&&(Sn=Math.max((ye-dt)*Mn+a.ya,Sn)),He+ot+1<Dn&&(Sn=Math.max((Dn-He)*Mn+a.ya,Sn)),Ee=Sn.toString()+"px")),Sn=ci!=="1px",an=Ee!=="1px",Sn&&an||!Sn&&!an||(an&&(ht-=a.Db),Sn&&(dt-=a.Db),Un<Be+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,ge+1<at&&(nt=Math.max((at-ge)*Mn+a.Aa,nt)),Ce>ht+1&&(nt=Math.max((Ce-ht)*Mn+a.Aa,nt)),Be+1<Un&&(nt=Math.max((Un-Be)*Mn+a.Aa,nt)),ci=nt.toString()+"px"),Sn=ci!=="1px",nt=a.ya,Sn!==a.Be&&(nt=Sn?a.ya-a.Db:a.ya+a.Db),Dn<He+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,be+1<pi&&(ot=Math.max((pi-be)*Mn+nt,ot)),ye>dt+1&&(ot=Math.max((ye-dt)*Mn+nt,ot)),He+1<Dn&&(ot=Math.max((Dn-He)*Mn+nt,ot)),Ee=ot.toString()+"px"),an=Ee!=="1px"),a.qr&&Sn===a.Be&&an===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Sn!==a.Be&&(ci==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Sn,ee.style.width=ci,an!==a.gf&&(Ee==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=de.alloc(),an?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),de.free(ot))),z&&Ml(a),a.gf=an,ee.style.height=Ee,a.gu=!0,z&&(a.pn=!0),y=Gt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Be+1<Un?y=(a.position.x-ge)*Mn:ge+1<at?y=Gt.scrollWidth-Gt.clientWidth:Ce>ht+1&&(y=a.position.x*Mn)),a.tn)switch(a.bu){case"negative":y=-(Gt.scrollWidth-y-Gt.clientWidth);break;case"reverse":y=Gt.scrollWidth-y-Gt.clientWidth}return Gt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(He+1<Dn?Gt.scrollTop=(a.position.y-be)*Mn:be+1<pi?Gt.scrollTop=Gt.scrollHeight-Gt.clientHeight:ye>dt+1&&(Gt.scrollTop=a.position.y*Mn)),at=a.Aa,ht=a.ya,Gt.style.width=at+(a.gf?a.Db:0)+"px",Gt.style.height=ht+(a.Be?a.Db:0)+"px",x!==at||b!==ht||a.animationManager.zb?(x=Je.allocAt(E,yt,Tt,zt),a.onViewportBoundsChanged(x,a.viewportBounds,Mn,z),Je.free(x),!1):!0}Ut=Ke.prototype,Ut.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ye("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&&Ye('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(co,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ut.oi=function(a){this.partManager.oi(a);var y=this;xc(a,function(x){dc(y,x)}),(a instanceof Ki||a instanceof mi&&a.placeholder!==null)&&a.v(),a.data!==null&&xc(a,function(x){ly(y.partManager,x)}),ks(a)!==!0&&Th(a)!==!0||this.De.add(a),j1(a,!0,this),U1(a)?(a.actualBounds.w()&&this.N(Cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Cc(a,a.actualBounds)),this.$b()},Ut.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&xc(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),U1(a)?(a.actualBounds.w()&&this.N(Cc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Cc(a,a.actualBounds)),this.$b()},Ut.remove=function(a){Sg(this,a,!0)};function Sg(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Lo,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ut.Is=function(a,y){if(y===void 0&&(y=!1),hi(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Oe,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ut.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Ke.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=qd(this)),this.toolManager!==null){var E=new pn;if(a!==null)if(hi(a))for(var z=0;z<a.length;z++)_l(this,E,a[z],x,b);else for(a=a.iterator;a.next();)_l(this,E,a.value,x,b);else{for(a=this.parts;a.next();)_l(this,E,a.value,x,b);for(a=this.nodes;a.next();)_l(this,E,a.value,x,b);for(a=this.links;a.next();)_l(this,E,a.value,x,b)}bh(this,E,y,b,x)}};function _l(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=qd(a)),x instanceof Fn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof mi&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)_l(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&_l(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)_l(a,y,x.value,b,E)}else if(x instanceof xn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)_l(a,y,x.value,b,E);else x instanceof Ki||y.add(x,a.Pd(E,x,x.location))}function bh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=de.alloc(),nt=de.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||tf(a,y);for(var ot=li(),at=li(),ht=y.iterator,dt=de.alloc();ht.next();){var yt=ht.key,Tt=ht.value;if(yt.Zc()){var zt=xg(a,yt,y);zt!==null?ot.push(new it(yt,Tt,zt)):(!E||yt.canMove())&&(zt=Tt.point,z.assign(zt),a.computeMove(yt,z.add(nt),b,dt),yt.location=dt,Tt.shifted===void 0&&(Tt.shifted=new de),Tt.shifted.assign(dt.re(zt)))}else ht.key instanceof xn&&at.push(ht.sa)}for(de.free(dt),E=ot.length,ht=0;ht<E;ht++)yt=ot[ht],z.assign(yt.info.point),yt.Su.shifted===void 0&&(yt.Su.shifted=new de),yt.node.location=z.add(yt.Su.shifted);for(E=de.alloc(),ht=de.alloc(),yt=at.length,Tt=0;Tt<yt;Tt++){var Gt=at[Tt];if(zt=Gt.key,zt instanceof xn)if(zt.suspendsRouting){zt.Tg=null,dt=zt.fromNode;var ee=zt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ee=Gt.value.point,zt.dragComputation===null)y.add(zt,a.Pd(b,zt,nt)),Yu(zt,nt.x-ee.x,nt.y-ee.y);else{Gt=de.allocAt(0,0),(dt=zt.i(0))&&dt.w()&&Gt.assign(dt);var ye=dt=de.alloc().assign(Gt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ye=de.alloc(),$d(a,zt,dt,ye,b)),dt.assign(zt.dragComputation(zt,dt,ye)).re(Gt),y.add(zt,a.Pd(b,zt,dt)),Yu(zt,dt.x-ee.x,dt.y-ee.y),de.free(Gt),de.free(dt),ye!==dt&&de.free(ye)}else dt!==null&&(E.assign(dt.location),ye=y.I(dt),ye!==null&&E.re(ye.point)),ee!==null&&(ht.assign(ee.location),ye=y.I(ee),ye!==null&&ht.re(ye.point)),dt!==null&&ee!==null?E.Xa(ht)?(dt=Gt.value.point,ee=z,ee.assign(E),ee.re(dt),y.add(zt,a.Pd(b,zt,E)),Yu(zt,ee.x,ee.y)):(zt.suspendsRouting=!1,zt.bb()):(Gt=Gt.value.point,dt=dt!==null?E:ee!==null?ht:nt,y.add(zt,a.Pd(b,zt,dt)),Yu(zt,dt.x-Gt.x,dt.y-Gt.y))}else(zt.fromNode===null||zt.toNode===null)&&(dt=Gt.value.point,y.add(zt,a.Pd(b,zt,nt)),Yu(zt,nt.x-dt.x,nt.y-dt.y))}de.free(z),de.free(nt),de.free(E),de.free(ht),ai(ot),ai(at),x||(ss(a),Ah(a,y))}}Ke.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new de),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=de.alloc(),$d(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ht=at.x;return isNaN(ht)&&(ht=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ht)),Math.max(nt,Math.min(x.y,at))),E!==y&&de.free(E),b};function qd(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function $d(a,y,x,b,E){if(E===void 0&&(E=qd(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=de.allocAt(0,0),z.yi(0,0,a,y,E),ze.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),de.free(z)}}function tf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof xn&&(y.suspendsRouting=!0)}function Ah(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof xn&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function xg(a,y,x){return y=y.containingGroup,y!==null&&(a=xg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ut=Ke.prototype,Ut.Pd=function(a,y,x){if(x===void 0)return new hu(Mi);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new hu(new de(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new hu(x.copy())};function wg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ye("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ye("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ye("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ye("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&Ye("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ut.Al=function(a){wg(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(co,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ut.Ww=function(a,y){wg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Lo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(co,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ut.Cy=function(a,y){wg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Lo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(co,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ut.kA=function(a){if(a.diagram!==this&&Ye("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Lo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ut.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ut.Yw=function(a){return this.pf===null&&(this.pf=new Cn),this.pf.add(a),this.model.Pe(a),this},Ut.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ut.Pe=function(a){return this.zg===null&&(this.zg=new Cn),this.zg.add(a),this},Ut.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ut.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==oa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ut.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Hr;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=nt,this.ds(ot)},Ut.g=function(a,y,x,b,E){this.cb(Wr,a,this,y,x,b,E)},Ke.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Wr){var E=a.object;if(Rr(E,a.propertyName,a.I(y)),E instanceof Re){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===co){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof gn)if(typeof ot=="number"&&at instanceof Re){y?nt.pc(ot):nt.Gb(ot,at);var ht=nt.part;ht!==null&&ht.Wb()}else typeof ot=="number"&&at instanceof Co&&(at.isRow?c1(nt,ot,y?void 0:at):d1(nt,ot,y?void 0:at));else if(nt instanceof Go){var dt=a.oldParam===!0;typeof ot=="number"&&at instanceof $n&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(dt?ot:-1,at,dt)):nt.oi(ot,at,dt))}else nt instanceof Ke?typeof ot=="number"&&at instanceof Go&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):Ye("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Lo){var yt=a.object,Tt=a.oldParam,zt=a.oldValue;if(yt instanceof gn)typeof Tt=="number"&&zt instanceof Re?y?yt.Gb(Tt,zt):yt.pc(Tt):typeof Tt=="number"&&zt instanceof Co&&(zt.isRow?c1(yt,Tt,y?zt:void 0):d1(yt,Tt,y?zt:void 0));else if(yt instanceof Go){var Gt=a.newParam===!0;typeof Tt=="number"&&zt instanceof $n&&(y?0>yt.Pa.indexOf(zt)&&yt.oi(Tt,zt,Gt):(zt.isSelected=!1,zt.isHighlighted=!1,zt.Wb(),yt.pc(Gt?Tt:-1,zt,Gt)))}else yt instanceof Ke?typeof Tt=="number"&&zt instanceof Go&&(y?(zt.Xe(this),this.Wa.Gb(Tt,zt)):this.Wa.mb(Tt)):Ye("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==oa&&Ye("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ke.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ke.prototype.eb=function(a){return this.undoManager.eb(a)},Ke.prototype.Kf=function(){return this.undoManager.Kf()},Ke.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ke.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ke.prototype.rp=function(){this.partManager.rp()};function Pg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ml(a),a.N(),a.Ee=!0,b.zb&&(au(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ml(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ht=a.contentAlignment;isNaN(ot)&&(ht.$c()?ht.Hf(dl)?ot=0:ht.Hf(ta)&&(ot=z-1):ot=ht.sb()?ht.x*(z-1):z/2),isNaN(at)&&(ht.$c()?ht.Hf(Qa)?at=0:ht.Hf(pa)&&(at=nt-1):at=ht.sb()?ht.y*(nt-1):nt/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=de.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,de.free(z),a.Ca=x,Ml(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Wa(a,!1),b.zb&&(au(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ke.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==ms||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Ur&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(E,this)),this.vb||this.invalidateViewport(a,y),kl(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function kl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=on.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at],dt=Math.abs(ht.interval);2>dt||(mv(ht.figure)?z=z*dt/ze.vx(z,dt):E=E*dt/ze.vx(E,dt))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=Je.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Je.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,Je.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=de.alloc(),ze.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),on.free(b),x.part.location=y,de.free(y)}}Ke.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Ke.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))},Ke.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),hi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof $n||Ye("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof $n||Ye("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ke.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ut=Ke.prototype,Ut.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ut.Jz=function(a){a=new Oe().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 $n||Ye("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ut.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=de.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),de.free(z);return}Ye("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):Ye("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),de.free(z)},Ut.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)},Ut.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ut.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)},Ut.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ht=y.m22,dt=y.dx,yt=y.dy,Tt=x*nt+b*at+dt;y=x*ot+b*ht+yt;var zt=E*nt+b*at+dt;return a=E*ot+b*ht+yt,b=x*nt+z*at+dt,x=x*ot+z*ht+yt,nt=E*nt+z*at+dt,E=E*ot+z*ht+yt,z=Math.min(Tt,zt),Tt=Math.max(Tt,zt),zt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Tt=Math.max(Tt,b),zt=Math.min(zt,x),y=Math.max(y,x),z=Math.min(z,nt),Tt=Math.max(Tt,nt),zt=Math.min(zt,E),y=Math.max(y,E),new Je(z,zt,Tt-z,y-zt)},Ut.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),Di(a.copy(),this.Ab)};function tm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cg(a){return a=af.get(a),a!==null?new a:new fr}Ke.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===oa&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===oa){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ss(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Kd(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var nt=a.isTransactionFinished;if(nt&&(tm(this),this.As.clear(),_p(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Si(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function dc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Lh(a,y[b])}function Lh(a,y){if(y instanceof Gs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Oe&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function bg(a,y){if(y instanceof Gs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Oe&&x.Bg.remove(a),xf(b));break}}}}}Ke.prototype.Wd=function(){this.partManager.Wd()},Ke.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ke.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ke.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ke.prototype.Vb=function(a){return this.partManager.Vb(a)},Ke.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ut=Ke.prototype,Ut.Lc=function(a){return this.partManager.Lc(a)},Ut.ii=function(a){return this.partManager.ii(a)},Ut.Kc=function(a){return this.partManager.Kc(a)},Ut.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:kn(Pn(y)))},Ut.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:kn(Pn(y)))};function Ml(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 Ag(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Wa(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ut.Va=function(){if(this.Zi){var a=Je.alloc();Ag(this,this.computeBounds(a)),Je.free(a)}},Ut.rz=function(){for(var a=new Oe,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},Ut.qz=function(){return this.ai.iterator},Ut.Uz=function(a){ss(this),a&&ef(this,!0),this.ld?Lg(this,!1):(this.Jk=!0,ka(this))};function ef(a,y){for(var x=a.ai.iterator;x.next();)em(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function em(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)em(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Lg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||jl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Eg(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),ss(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||Kd(z),a.aa=x}}}function Eg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Eg(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),ed(a,y),E.isValidLayout=!0):a.xh=!0)}}Ut.yz=function(){for(var a=new Cn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var z=E.toLowerCase(),nt=new Cn;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new pn,b=new pn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function nf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ye("Unknown DiagramEvent name: "+y)}Ut.Bj=function(a,y){return a=nf(this,a),a!==null&&a.add(y),this},Ut.am=function(a,y){a=nf(this,a),a!==null&&a.remove(y)},Ut.R=function(a,y,x){var b=nf(this,a),E=new Cu;if(E.diagram=this,a=nm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function rf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ut.Yj=function(a,y){return of(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ke.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?dg(this,a):a.assign(this.documentBounds)};function of(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new np(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=im(a,x)),x===null){y=Je.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&sf(a,nt,b,y)}Je.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Je.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof Fn&&sf(a,nt,b,y);Je.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function im(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?im(a,y.containingGroup):null}function sf(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Lf(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Zu,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=Zu}else if(y instanceof mi)for(y=y.memberParts;y.next();)E=y.value,E instanceof Fn&&sf(a,E,x,b)}}function ju(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ke.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():kg(this)};function kg(a){a.vk===-1&&(a.vk=Si(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=Je.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Ag(a,y),Je.free(y),a.Fc=!0,a.bd(),kg(a))}},a.vp))}Ke.prototype.ug=function(){this.vk!==-1&&(Ze.clearTimeout(this.vk),this.vk=-1)},Ke.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=Je.allocAt(0,0,b.width*E,b.height*E);var z=de.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(Mi)||(y=new de(y.x+z.x/E,y.y+z.y/E)),Je.free(b),de.free(z),y},Ut=Ke.prototype,Ut.Cs=function(){return null},Ut.av=function(){return null},Ut.bs=function(a,y){this.pj.add(a,y)},Ut.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof mi&&(y.$p=null)})};function nd(a,y,x){function b(){var dt=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||dt-ht>at?y(x,E,ot):Ze.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ht=+new Date;return Ze.requestAnimationFrame(function(){b()}),null}Ut.Wz=function(a){return Qr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ut.Jx=function(a){return a===void 0&&(a={}),nd(this,this.Xz,a)},Ut.Xz=function(a,y,x){var b=rm(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case pc+"data":E=b.getImageData(0,0,x.width,x.height);break;case pc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Ye('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function rm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ye("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new on(1/0,1/0):new on(2e3,2e3));var ot=y.position||null,at=y.parts||null,ht=y.padding===void 0?1:y.padding,dt=y.background||null,yt=y.omitTemporary;yt===void 0&&(yt=!0);var Tt=y.document||document,zt=y.elementFinished||null,Gt=y.showTemporary;Gt===void 0&&(Gt=!yt),y=y.showGrid,y===void 0&&(y=Gt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new ii(ht):ht instanceof ii||Ye("MakeImage padding must be a Margin or a number."),ht.left=Math.max(ht.left,0),ht.right=Math.max(ht.right,0),ht.top=Math.max(ht.top,0),ht.bottom=Math.max(ht.bottom,0),a.ib.Vc(!0),yt=new Ha(null,Tt,void 0,!0);var ee=yt.context;if(!(E||z||at||ot))return yt.width=a.Aa+Math.ceil(ht.left+ht.right),yt.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=Tt,b.hs=zt,Qd(a,b.context,ht,new on(yt.width,yt.height),a.Ca,a.pa,at,dt,Gt,y),b.context):(a.Xm=!1,Qd(a,ee,ht,new on(yt.width,yt.height),a.Ca,a.pa,at,dt,Gt,y),a.Xm=!0,yt.context);var ye=a.Pp,ge=a.documentBounds.copy();if(ge.Fv(a.yb),Gt)for(var Ce=a.Wa.s,be=Ce.length,Ee=0;Ee<be;Ee++){var Be=Ce[Ee];if(Be.visible&&Be.isTemporary){Be=Be.Pa.s;for(var He=Be.length,Mn=0;Mn<He;Mn++){var Un=Be[Mn];Un.isInDocumentBounds&&Un.isVisible()&&(Un=Un.actualBounds,Un.w()&&ge.ed(Un))}}}if(Ce=new de(ge.x,ge.y),at!==null){for(be=new Je(0,0,0,0),Ee=!0,Be=at.iterator,Be.reset();Be.next();)He=Be.value,He instanceof $n&&(Mn=He.layer,Mn!==null&&!Mn.visible||Mn!==null&&!Gt&&Mn.isTemporary||!He.isVisible()||(He=He.actualBounds,He.w()&&(Ee?(Ee=!1,be.assign(He)):be.ed(He))));ge.width=be.width,ge.height=be.height,Ce.x=be.x,Ce.y=be.y}return ot!==null&&ot.w()&&(Ce=ot,z||(z=ye)),be=ot=0,ht!==null&&(ot=ht.left+ht.right,be=ht.top+ht.bottom),Ee=Be=0,E!==null&&(Be=E.width,Ee=E.height,isFinite(Be)&&(Be=Math.max(0,Be-ot)),isFinite(Ee)&&(Ee=Math.max(0,Ee-be))),E!==null&&z!==null?(z==="NaN"&&(z=ye),E.w()?(E=Be,ge=Ee):isNaN(Ee)?(E=Be,ge=ge.height*z):(E=ge.width*z,ge=Ee)):E!==null?E.w()?(z=Math.min(Be/ge.width,Ee/ge.height),E=Be,ge=Ee):isNaN(Ee)?(z=Be/ge.width,E=Be,ge=ge.height*z):(z=Ee/ge.height,E=ge.width*z,ge=Ee):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/ge.width,(nt.height-be)/ge.height),z>ye?(z=ye,E=ge.width,ge=ge.height):(E=nt.width,ge=nt.height)):(E=ge.width*z,ge=ge.height*z):(z=ye,E=ge.width,ge=ge.height),ht!==null?(E+=ot,ge+=be):ht=new ii(0),nt!==null&&(ye=nt.width,nt=nt.height,isNaN(ye)&&(ye=2e3),isNaN(nt)&&(nt=2e3),isFinite(ye)&&(E=Math.min(E,ye)),isFinite(nt)&&(ge=Math.min(ge,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(ge),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=Tt,b.hs=zt,Qd(a,b.context,ht,new on(Math.ceil(E),Math.ceil(ge)),z,Ce,at,dt,Gt,y),b.context):(a.Xm=!1,Qd(a,ee,ht,new on(Math.ceil(E),Math.ceil(ge)),z,Ce,at,dt,Gt,y),a.Xm=!0,yt.context)}sn.Object.defineProperties(Ke.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof wt||(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 Tl(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 Tl(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),zl===this&&(zl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hg(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)&&xi(a,"0 <= value <= 1",Ke,"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),Wa(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),Wa(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),Wa(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),Wa(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&xi(a,">= 0",Ke,"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&&xi(a,">= 0",Ke,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else xi(a,">= 0",Ke,"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||tm(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&&Ye("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=ug(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,jl(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=Cg(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(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=de.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Wp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ml(this):(this.vb=!0,a=this.scale,fg(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)}de.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==gn.Grid&&Ye("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),kl(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),Ml(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||Ye("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 ii(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===zu&&Wa(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,Wa(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,Pg(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&&Pg(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!==ms&&Wa(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()||Ye("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()||Ye("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)):xi(a,"> 0",Ke,"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)):xi(a,"> 0",Ke,"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),Wa(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 ii(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&&Ye("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();)Vg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Uu&&a!==wo&&a!==lf&&Ye("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 on(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 ii(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),sn.Object.defineProperties(Ke,{licenseKey:{get:function(){return Dg.jc()},set:function(a){Dg.add(a.replace(/\s/g,""))}},version:{get:function(){return gc}}}),Ke.prototype.makeImageData=Ke.prototype.Jx,Ke.prototype.makeImage=Ke.prototype.Wz,Ke.prototype.cacheGroupExternalLinks=Ke.prototype.Fu,Ke.prototype.addRenderer=Ke.prototype.bs,Ke.prototype.makeSVG=Ke.prototype.av,Ke.prototype.makeSvg=Ke.prototype.Cs,Ke.prototype.stopAutoScroll=Ke.prototype.ug,Ke.prototype.doAutoScroll=Ke.prototype.gs,Ke.prototype.isUnoccupied=Ke.prototype.Yj,Ke.prototype.raiseDiagramEvent=Ke.prototype.R,Ke.prototype.removeDiagramListener=Ke.prototype.am,Ke.prototype.addDiagramListener=Ke.prototype.Bj,Ke.prototype.findTreeRoots=Ke.prototype.yz,Ke.prototype.layoutDiagram=Ke.prototype.Uz,Ke.prototype.findTopLevelGroups=Ke.prototype.qz,Ke.prototype.findTopLevelNodesAndLinks=Ke.prototype.rz,Ke.prototype.ensureBounds=Ke.prototype.Va,Ke.prototype.findLinksByExample=Ke.prototype.ls,Ke.prototype.findNodesByExample=Ke.prototype.ms,Ke.prototype.findLinkForData=Ke.prototype.Kc,Ke.prototype.findNodeForData=Ke.prototype.ii,Ke.prototype.findPartForData=Ke.prototype.Lc,Ke.prototype.findLinkForKey=Ke.prototype.findLinkForKey,Ke.prototype.findNodeForKey=Ke.prototype.Vb,Ke.prototype.findPartForKey=Ke.prototype.findPartForKey,Ke.prototype.rebuildParts=Ke.prototype.Wd,Ke.prototype.transformViewToDoc=Ke.prototype.Ps,Ke.prototype.transformRectDocToView=Ke.prototype.zA,Ke.prototype.transformDocToView=Ke.prototype.op,Ke.prototype.centerRect=Ke.prototype.es,Ke.prototype.scrollToRect=Ke.prototype.tv,Ke.prototype.scroll=Ke.prototype.scroll,Ke.prototype.highlightCollection=Ke.prototype.Jz,Ke.prototype.highlight=Ke.prototype.Iz,Ke.prototype.selectCollection=Ke.prototype.rA,Ke.prototype.select=Ke.prototype.select,Ke.prototype.updateAllRelationshipsFromData=Ke.prototype.rp,Ke.prototype.updateAllTargetBindings=Ke.prototype.updateAllTargetBindings,Ke.prototype.commit=Ke.prototype.commit,Ke.prototype.rollbackTransaction=Ke.prototype.Kf,Ke.prototype.commitTransaction=Ke.prototype.eb,Ke.prototype.startTransaction=Ke.prototype.Ea,Ke.prototype.raiseChanged=Ke.prototype.g,Ke.prototype.raiseChangedEvent=Ke.prototype.cb,Ke.prototype.removeChangedListener=Ke.prototype.ik,Ke.prototype.addChangedListener=Ke.prototype.Pe,Ke.prototype.removeModelChangedListener=Ke.prototype.mA,Ke.prototype.addModelChangedListener=Ke.prototype.Yw,Ke.prototype.findLayer=Ke.prototype.Qj,Ke.prototype.removeLayer=Ke.prototype.kA,Ke.prototype.addLayerAfter=Ke.prototype.Cy,Ke.prototype.addLayerBefore=Ke.prototype.Ww,Ke.prototype.addLayer=Ke.prototype.Al,Ke.prototype.moveParts=Ke.prototype.moveParts,Ke.prototype.copyParts=Ke.prototype.Kj,Ke.prototype.removeParts=Ke.prototype.Is,Ke.prototype.remove=Ke.prototype.remove,Ke.prototype.add=Ke.prototype.add,Ke.prototype.clearDelayedGeometries=Ke.prototype.bx,Ke.prototype.setProperties=Ke.prototype.nm,Ke.prototype.attach=Ke.prototype.Du,Ke.prototype.set=Ke.prototype.set,Ke.prototype.resetInputOptions=Ke.prototype.Sx,Ke.prototype.setInputOption=Ke.prototype.sA,Ke.prototype.getInputOption=Ke.prototype.Ql,Ke.prototype.resetRenderingHints=Ke.prototype.Tx,Ke.prototype.setRenderingHint=Ke.prototype.Xx,Ke.prototype.getRenderingHint=Ke.prototype.Gf,Ke.prototype.maybeUpdate=Ke.prototype.bd,Ke.prototype.requestUpdate=Ke.prototype.$b,Ke.prototype.delayInitialization=Ke.prototype.Xy,Ke.prototype.isUpdateRequested=Ke.prototype.Pz,Ke.prototype.invalidateDocumentBounds=Ke.prototype.Ya,Ke.prototype.findObjectsNear=Ke.prototype.og,Ke.prototype.findPartsNear=Ke.prototype.mz,Ke.prototype.findObjectsIn=Ke.prototype.Cf,Ke.prototype.findPartsIn=Ke.prototype.ux,Ke.prototype.findObjectsAt=Ke.prototype.ji,Ke.prototype.findPartsAt=Ke.prototype.lz,Ke.prototype.findObjectAt=Ke.prototype.ic,Ke.prototype.findPartAt=Ke.prototype.Ol,Ke.prototype.focusObject=Ke.prototype.zz,Ke.prototype.alignDocument=Ke.prototype.Jy,Ke.prototype.zoomToRect=Ke.prototype.BA,Ke.prototype.zoomToFit=Ke.prototype.zoomToFit,Ke.prototype.diagramScroll=Ke.prototype.kx,Ke.prototype.focus=Ke.prototype.focus;var af=new pn,om=null,Qr=Ze.document!==void 0,fc=null,Eh="",ms=new qe(Ke,"None",0),ya=new qe(Ke,"Uniform",1),kh=new qe(Ke,"UniformToFill",2),id=new qe(Ke,"CycleAll",10),Mg=new qe(Ke,"CycleNotDirected",11),Tg=new qe(Ke,"CycleNotDirectedFast",12),Ng=new qe(Ke,"CycleNotUndirected",13),Fg=new qe(Ke,"CycleDestinationTree",14),Og=new qe(Ke,"CycleSourceTree",15),zu=new qe(Ke,"DocumentScroll",1),rd=new qe(Ke,"InfiniteScroll",2),Uu=new qe(Ke,"TreeParentCollapsed",21),wo=new qe(Ke,"AllParentsCollapsed",22),lf=new qe(Ke,"AnyParentsCollapsed",23),Dg=new Cn,gc="2.3.10",pc="image",od=null,sm=!1;function us(){if(Qr){var a=Ze.document.createElement("canvas"),y=a.getContext("2d"),x=Ai("7ca11abfd022028846");y[x]=Ai("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",mn.Dx+"4ae6247590da4bb21c324ba3a84e385776",ki.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",ze.za],E=1;5>E;E++)y[Ai("7ca11abfd7330390")](Ai(b[E-1]),10,15*E);for(y[x]=Ai("39f046ebb36e4b"),x=1;5>x;x++)y[Ai("7ca11abfd7330390")](Ai(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(ki.prototype.Cd=ki.prototype.Eu),od=a}}Ke.className="Diagram",Ke.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ze.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ke?y.H:null},Ke.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},Ke.useDOM=function(a){Qr=a?Ze.document!==void 0:!1},Ke.isUsingDOM=function(){return Qr},Ke.None=ms,Ke.Uniform=ya,Ke.UniformToFill=kh,Ke.CycleAll=id,Ke.CycleNotDirected=Mg,Ke.CycleNotDirectedFast=Tg,Ke.CycleNotUndirected=Ng,Ke.CycleDestinationTree=Fg,Ke.CycleSourceTree=Og,Ke.DocumentScroll=zu,Ke.InfiniteScroll=rd,Ke.TreeParentCollapsed=Uu,Ke.AllParentsCollapsed=wo,Ke.AnyParentsCollapsed=lf;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function mc(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[Ai("76a715b2f73f148a")][Ai("72ba13b5")]||"";if(a.Rc=!0,Qr){var b=Ke[Ai("76a115b6ed251eaf4692")];if(b)for(var E=Dg.iterator;E.next()&&(b=E.value,b=Ai(b).split(Ai("39e9")),!(6>b.length));){var z=Ai(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=Ai(mn[Ai("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ze[Ai("74a900bae4370f8b51")][Ai("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[Ai("73a612b6fb191d")](Ai("3aad1ab6e022098b4dc4")),z=Ai(b[2]),-1<nt&&(ot=ot[Ai("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[Ai("76ad18b4f73e")],ot=x[Ai("73a612b6fb191d")](Ai("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[Ai("73a612b6fb191d")](z),0>nt&&z!==Ai("7da71ca0ad381e90")&&(nt=y[Ai("73a612b6fb191d")](Ai("76a715b2ef3e149757"))),0>nt&&(nt=y[Ai("73a612b6fb191d")](Ai("76a715b2ef3e149757"))),0>nt&&(nt=y[Ai("73a612b6fb191d")](Ai("2bfa41fdb3784bca12"))),0>nt&&(nt=x[Ai("73a612b6fb191d")](Ai("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[Ai("73a612b6fb191d")](Ai("35"))||y[Ai("73a612b6fb191d")](Ai("35"))===-1),!a.Rc||x[Ai("73a612b6fb191d")](Ai("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ai("73a612b6fb191d")](z)),!a.Rc)||(nt=Ze[Ai("76a715b2f73f148a")][Ai("69ad17a1e03e")],ot=nt[Ai("73a612b6fb191d")](Ai("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[Ai("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ze.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(ot=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],nt[Ai("79a417a0f0181a8946")]=b,Ze.document[Ai("78a712aa")]){Ze.document[Ai("78a712aa")][Ai("7bb806b6ed32388c4a875b")](nt),at=Ze.getComputedStyle(nt).getPropertyValue(Ai("78a704b7e62456904c9b12701b6532a8"));var ht=Ze.getComputedStyle(nt).getPropertyValue(Ai("75b817b0ea2202"));if(Ze.document[Ai("78a712aa")][Ai("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ze[Ai("77a902b0eb1b1e804a8a")],ht==="0."+parseInt(ot,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(nt&&nt(Ai("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var dt in nt)if(b===nt[dt].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(dt=x[Ai("76ad18b4f73e")],E=x[Ai("73a612b6fb191d")](Ai("35e7"))+2;E<dt;E++)y+=x[E];x=y[Ai("73a612b6fb191d")](Ai("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ai("73a612b6fb191d")](Ai("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function hu(a){this.j=a===void 0?new de:a,this.o=new de}sn.Object.defineProperties(hu.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 sd="DraggingInfo";hu.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function lt(){this.reset()}lt.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new on(NaN,NaN).freeze(),this.gridSnapCellSpot=ho,this.gridSnapOrigin=new de(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},lt.className="DraggingOptions";function mt(a,y){if(typeof a=="string"||Ze.Element&&a instanceof Element)var x=Ke.call(this,a)||this;else x=Ke.call(this)||this,y=a;return pt(x),y&&x.nm(y),x}We(mt,Ke);function pt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=es,a.layout=new Zo}mt.prototype.reset=function(){Ke.prototype.reset.call(this),pt(this)},mt.className="Palette";function wt(a,y){if(typeof a=="string"||Ze.Element&&a instanceof Element)var x=Ke.call(this,a)||this;else x=Ke.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new $n;var E=new Ci;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new ii(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Se,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new de(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),ue(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&ue(b)},x.autoScale=ya,x.vb=!1,y&&Object.assign(x,y),x}We(wt,Ke),wt.prototype.computePixelRatio=function(){return 1},wt.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(hc(this),this.ql===null){var x=new Ha(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),Yt(this)}finally{this.ta=a,this.ib=y}}}Ke.prototype.redraw.call(this)},wt.prototype.gc=function(){if(this.Ka===null&&Ye("No div specified"),this.ta===null&&Ye("No canvas specified"),!(this.ta instanceof Tl)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){hc(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?Yt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Yt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=Je.alloc().assign(a.viewportBounds).ed(y.viewportBounds),kl(y,E),Je.free(E),ss(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ht=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ht.layer===ot&&(ot=uu(ot,E),ht.gc(E,at),E.globalAlpha=ot);else{for(var dt=uu(ot,E),yt=at.scale,Tt=Je.alloc(),zt=ot.Pa.s,Gt=zt.length,ee=0;ee<Gt;ee++){var ye=zt[ee];(b||ye!==ht)&&ot.Oj(E,ye,at,null,yt,Tt,!1)}Je.free(Tt),E.globalAlpha=dt}}}}}function ue(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=on.alloc();E.h(x.width,x.height),b.desiredSize=E,on.free(E),a=2/a.scale,b instanceof Ci&&(b.strokeWidth=a),y.location=new de(x.x-a/2,x.y-a/2),y.isSelected=!0}}}wt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Yi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},wt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},wt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ue(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},sn.Object.defineProperties(wt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof wt&&Ye("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),ue(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),ue(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)}}}),wt.className="Overview";function Se(){Yr.call(this),this.j=null}We(Se,Yr),Se.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 de(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new de(a.x-this.j.x,a.y-this.j.y)),!0)},Se.prototype.doActivate=function(){this.j=null,Yr.prototype.doActivate.call(this)},Se.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Se.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new de(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new de(a.x-this.j.x,a.y-this.j.y)}}},Se.className="OverviewDraggingTool";function ve(){je(this),this.H=zl,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=Yi,this.hb=!0,this.cg=null,this.ob=200}ve.prototype.toString=function(){return"CommandHandler"},ve.prototype.Xe=function(a){this.H=a},ve.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=xo?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ve.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ve.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ur&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ve.prototype.canStopCommand=function(){return!0},ve.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ve.prototype.canSelectAll=function(){return this.diagram.allowSelect},ve.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 Oe,x=a.selection.iterator;x.next();)Fh(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ve.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ve.prototype.copySelection=function(){var a=this.diagram,y=new Oe;for(a=a.selection.iterator;a.next();)Fh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ve.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ve.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ve.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ve.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)fc=null,Eh="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Cn,x.addAll(z),fc=x,Eh=y.model.dataFormat}}y.R("ClipboardChanged",x)},ve.prototype.pasteFromClipboard=function(){var a=new Oe,y=fc;if(y===null)return a;var x=this.diagram;if(Eh!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},ve.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);bh(y,z,new de(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ve.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||fc===null||fc.count===0||Eh!==a.model.dataFormat)},ve.prototype.undo=function(){this.diagram.undoManager.undo()},ve.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ve.prototype.redo=function(){this.diagram.undoManager.redo()},ve.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ve.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ve.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ve.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ms&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ve.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ms?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ve.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ve.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ve.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;jl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=Yi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Kd(y)},ve.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ve.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;jl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Te(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof Fn&&at.isTreeExpanded&&(!(at instanceof mi)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof $n&&y.tv(at.actualBounds),at instanceof Fn&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof mi&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof $n&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Si(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function Te(a,y,x){if(y.isVisible())return x;if(y instanceof Ki)Te(a,y.adornedPart,x);else if(y instanceof xn){var b=y.fromNode;b!==null&&Te(a,b,x),y=y.toNode,y!==null&&Te(a,y,x)}else y instanceof Fn&&(b=y.labeledLink,b!==null&&Te(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Te(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Te(a,y,x));return x}ve.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof $n)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ve.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),jl(y.animationManager,"Collapse Tree");var x=new Cn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Fn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ve.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ve.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),jl(y.animationManager,"Expand Tree");var x=new Cn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Fn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ve.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Fn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ve.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Cn,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Cn,at=E.iterator;at.next();){var ht=at.value;z=!1;for(var dt=E.iterator;dt.next();)if(ht.Td(dt.value)){z=!0;break}z||ot.add(ht)}if(0<ot.count){var yt=ot.first().containingGroup;if(yt!==null)for(;yt!==null;){E=!1;for(var Tt=ot.iterator;Tt.next();)if(!Tt.value.Td(yt)){E=!0;break}if(E)yt=yt.containingGroup;else break}if(x instanceof mi)Ka(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var zt=y.copyNodeData(x);yn(zt)&&(y.xf(zt),b=a.ii(zt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var Gt=ot.iterator;Gt.next();){var ee=Gt.value;this.isValidMember(b,ee)&&(ee.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ve.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 $e(a){var y=li();for(a=a.iterator;a.next();){var x=a.value;x instanceof xn||y.push(x)}a=new Oe,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return ai(y),a}ve.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof xn)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},ve.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Cn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof mi&&z.canUngroup()&&b.add(z)}var nt=new Cn;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ht=at.containingGroup,dt=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(at.memberParts);for(var yt=nt.iterator;yt.next();){var Tt=yt.value;if(Tt.isSelected=!0,!(Tt instanceof xn)){var zt=Tt.data;zt!==null?x.mp(zt,dt):Tt.containingGroup=ht}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ve.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 mi))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof mi&&y.canUngroup())return!0;return!1},ve.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=$e(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ve.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),jl(y.animationManager,"Collapse SubGraph");var x=new Cn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof mi&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ve.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof mi&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof mi&&y.isSubGraphExpanded)return!0;return!1},ve.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),jl(y.animationManager,"Expand SubGraph");var x=new Cn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof mi&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ve.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof mi&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof mi&&!y.isSubGraphExpanded)return!0;return!1},ve.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Cr&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ve.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 Cr))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 Cr&&x.editable}),a!==null))return!0;return!1},ve.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Re?E=a.ga(Gi):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new de(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,su(x,!1,a)}},ve.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)},ve.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new pn,a===null)return b;for(var z=a.iterator;z.next();)_l(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof xn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},sn.Object.defineProperties(ve.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||Ye("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}}}),ve.className="CommandHandler",Xp=function(){return new ve};function Re(){je(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new de(NaN,NaN).freeze(),this.jd=_r,this.Ab=new ki,this.wh=new ki,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=uo,this.uc=new Je(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Je(NaN,NaN,NaN,NaN).freeze(),this.dc=new Je(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=ns,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 fn,hn,Gn,Jn,oi,yi,ji,Ei,_i,vr;Re.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=tr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Re.prototype.Vw=function(a){var y=this.Dh;if(hi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Re.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Re.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},Re.prototype.copy=function(){return this.clone()},Ut=Re.prototype,Ut.qb=function(a){a.classType===xn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ye("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Re&&(this.stretch=a)},Ut.toString=function(){return vi(this.constructor)+"#"+Me(this)},Ut.th=function(){this.A!==null&&(this.A.nc=!0)};function Li(a){a.A===null?a.A=new ld:a.A.nc&&(a.A=a.A.copy())}Ut.Xc=function(){if(this.ba===null){var a=new Bg;a.Xi=no,a.yj=no,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ut.cb=function(a,y,x,b,E,z,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,nt),x===this&&a===Wr&&qo(this)&&Fr(this,ot,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 pn),nt=z.undoManager.transactionLevel===0,a.startCondition===wh?nt=!0:a.startCondition===sc&&(nt=!1),nt?(z=new os,Hp(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(jl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof gn&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof gn&&xc(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function Fr(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=ES(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}Ut.ks=function(a){return this.bindingId===a?this:null},Ut.g=function(a,y,x){this.cb(Wr,a,this,y,x)},Ut.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new ki);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Do(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ut.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?wi(a.x,a.y,0,0,0,b.height)<=y||wi(a.x,a.y,0,b.height,b.width,b.height)<=y||wi(a.x,a.y,b.width,b.height,b.width,0)<=y||wi(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Ut.se=function(){return!0},Ut.ca=function(a){var y=de.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return de.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<E&&ot.height*b<E)return a=Br(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),de.free(y),a}return E=!1,(this instanceof Ki||this instanceof Ci?Br(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),de.free(y),E},Ut.gh=function(a){var y=this.naturalBounds;return Br(0,0,y.width,y.height,a.x,a.y)},Ut.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Je.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=de.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),de.free(E),Je.free(y),b},Ut.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=de.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),de.free(E),b},Ut.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=de.allocAt(0,0),E=de.allocAt(0,x.height),z=de.allocAt(x.width,x.height),nt=de.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))ot=!0;else{x=Je.allocAt(0,0,x.width,x.height);var at=de.allocAt(a.x,a.y);x.ca(y.Cd(at))?ot=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(ot=!0)))),de.free(at),Je.free(x),!ot&&(ze.us(a,b,E)||ze.us(a,E,z)||ze.us(a,z,nt)||ze.us(a,nt,b))&&(ot=!0)}return de.free(b),de.free(E),de.free(z),de.free(nt),ot},Ut.ga=function(a,y){if(y===void 0&&(y=new de),a instanceof _n){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},Ut.mi=function(a){a===void 0&&(a=new Je);var y=this.naturalBounds,x=this.oe,b=de.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),ur(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),ur(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),ur(a,b.x,b.y,0,0),de.free(b),a},Ut.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},Ut.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ut.qs=function(a,y){return y===void 0&&(y=new de),y.assign(a),this.oe.Cd(y),y},Ut.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ut.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),Tt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,ze.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ht+yt,a=a*at+y*dt+Tt,y=x*ot+b*ht+yt,x=x*at+b*dt+Tt,E.h(0,0),b=this.naturalBounds,x=ze.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},Re.prototype.measure=function(a,y,x,b){if(xa(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var ot=this instanceof gn;switch(_s(this,!0)){case hn:nt=E=0,ot&&(y=a=1/0);break;case fn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Jn:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case oi:isFinite(y)&&y>b&&(nt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;E>ot.width&&at.width<ot.width&&(E=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(E,at.width),b=Math.max(nt,at.height),ot.width<x&&(x=Math.min(at.width,x)),ot.height<b&&(b=Math.min(at.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||Ye("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Po(this,!1)}},Re.prototype.Wl=function(){},Re.prototype.Dd=function(){return!1},Re.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Je.alloc();z.assign(this.Ib),this.Ib.ka(),ks(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Gu(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Cr&&(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()||Ye("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Wl(this,!1),Je.free(z)},Ut=Re.prototype,Ut.eh=function(){};function vs(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=_s(a,!0),x===b&&z===E&&(y=hn),y){case hn:(x>b||z>E)&&(Po(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case fn:Po(a,!0),a.measure(b,E,0,0);break;case Jn:Po(a,!0),a.measure(b,z,0,0);break;case oi:Po(a,!0),a.measure(x,E,0,0)}}}Ut.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(),dr(a,y)||(x.oh(),this.Pn(x)))},Ut.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Fn&&H1(a,this))},Ut.gc=function(a,y){if(!Ma(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof gn&&Gu(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ht=this.areaBackground,dt=this.Ma;ht===null&&dt===null||a.yc(),ht!==null&&($r(this,a,ht,!0,!0,at,ot),ht instanceof hr&&ht.type===Fa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ht)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),dt!==null&&($r(this,a,dt,!0,!1,at,ot),dt instanceof hr&&dt.type===Fa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(dt)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&Xo(this),ht=this.part,at=!1;var yt=0;ht&&y.Gf("drawShadows")&&(at=ht.isShadowed)&&(dt=ht.shadowOffset,yt=Math.max(dt.y,dt.x)*y.scale*y.Mb),dt=this.Dd();var Tt;if(!(Tt=y.$i||!dt)){var zt=this.naturalBounds;Tt=this.wh;var Gt=Tt.m11,ee=Tt.m21,ye=Tt.dx,ge=Tt.m12,Ce=Tt.m22,be=Tt.dy,Ee,Be=Ee=0;Tt=Ee*Gt+Be*ee+ye;var He=Ee*ge+Be*Ce+be;Ee=zt.width+yt,Be=0;var Mn=Ee*Gt+Be*ee+ye;Ee=Ee*ge+Be*Ce+be,Be=Math.min(Tt,Mn);var Un=Math.min(He,Ee),Dn=Math.max(Tt+0,Mn)-Be,Sn=Math.max(He+0,Ee)-Un;Tt=Be,He=Un,Ee=zt.width+yt,Be=zt.height+yt,Mn=Ee*Gt+Be*ee+ye,Ee=Ee*ge+Be*Ce+be,Be=Math.min(Tt,Mn),Un=Math.min(He,Ee),Dn=Math.max(Tt+Dn,Mn)-Be,Sn=Math.max(He+Sn,Ee)-Un,Tt=Be,He=Un,Ee=0,Be=zt.height+yt,Mn=Ee*Gt+Be*ee+ye,Ee=Ee*ge+Be*Ce+be,Be=Math.min(Tt,Mn),Un=Math.min(He,Ee),Dn=Math.max(Tt+Dn,Mn)-Be,Sn=Math.max(He+Sn,Ee)-Un,Tt=Be,He=Un,yt=y.viewportBounds,zt=yt.x,Gt=yt.y,Tt=!(Tt>yt.width+zt||zt>Dn+Tt||He>yt.height+Gt||Gt>Sn+He)}if(Tt){if(Tt=(this.l&256)!==0,a.clipInsteadOfFill&&(Tt=!1),this instanceof Cr&&(a.font=this.font),Tt){if(He=ot.se()?ot.naturalBounds:ot.actualBounds,Dn=Math.max(nt.x,He.x),Sn=Math.max(nt.y,He.y),yt=Math.min(nt.right,He.right)-Dn,zt=Math.min(nt.bottom,He.bottom)-Sn,Gt=this.tb,Gt!==null&&(Dn=Gt.x,Sn=Gt.y,yt=Gt.width,zt=Gt.height),Dn>nt.width+nt.x||nt.x>He.width+He.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Dn,Sn,yt,zt),a.clip()}if(dt){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(He=ht.shadowOffset,a.Ev(He.x*y.scale*this.scale*y.Mb,He.y*y.scale*this.scale*y.Mb,ht.shadowBlur),cu(a),a.shadowColor=ht.shadowColor)}at&&this.shadowVisible===!0?cu(a):at&&this.shadowVisible===!1&&Gl(a),ht=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Sa(this,a,ht,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&Ho(this,ot)&&this.shadowVisible===null&&Gl(a),this.Ma!==null&&(a.yc(),Ys(this,a,ht,nt)),at&&(this.Ma!==null||this.areaBackground!==null||Ho(this,ot))?(il(this,!0),this.shadowVisible===null&&Gl(a)):il(this,!1),this.hh(a,y),at&&this.l&512&&cu(a),dt&&at&&Gl(a),Tt&&(a.restore(),a.Vc(this instanceof gn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function Ho(a,y){return y===null?!1:(Gu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===gn.Auto||y.type===gn.Spot)&&y.Pb()!==a)}Ut.Dv=function(){};function Sa(a,y,x,b){$r(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof hr&&a.areaBackground.type===Fa?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Ys(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;$r(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof hr&&a.Ma.type===Fa?(y.beginPath(),y.rect(z-E/2,nt-E/2,ot,at),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,ot,at)}function hs(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;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===gn.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 Ma(a,y,x){if(!(y instanceof aa))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&hs(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),cu(y),y.shadowColor=a.shadowColor}a instanceof Cr&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof gn;var ot=a instanceof gn?Gu(a):!1;a.l&4096&&Xo(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ig(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ig(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ig(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ht=nt.copy().Vj();y.rb.ha=[ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy],Sa(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Ys(a,y,E,at),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Ys(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&cu(y),ot&&a.shadowVisible===!0?cu(y):ot&&a.shadowVisible===!1&&Gl(y),E=a.panel,ot&&Ho(a,E)&&a.shadowVisible===null&&Gl(y),y.Il&&(ht=x.computePixelRatio(),ht="drop-shadow("+y.shadowOffsetX/ht+"px "+y.shadowOffsetY/ht+"px "+y.shadowBlur/ht/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ht),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ht)),ot&&(a.Ma!==null||a.areaBackground!==null||Ho(a,E))?(il(a,!0),a.shadowVisible===null&&Gl(y)):il(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ht=a.svg,!z&&ht!==null&&ot!==ht&&ht.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),Us(y,ht),!0):(a.svg=ot,nt!==null&&ot===null&&(um(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&cu(y),a.Dd()&&Gl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&hs(a,b,ot),nt!==null&&nt(a,ot)),!0)}Ut.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var nt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+Ie++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof gn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Us(a,b)};function Us(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function cs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Pn(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Ut.hh=function(){},Ut.lv=function(){this.Uc=!0},Ut.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof gn?Gu(this):!1;if(!(this instanceof gn&&E))if(this instanceof Gs){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof gn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Ci){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Sa(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&hm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(hm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof gn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ys(this,a,this.naturalBounds,this.actualBounds),y.Ma?(hm(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&&hm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ut.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 $r(a,y,x,b,E,z,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Wu)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ht=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ht,at+=ht),(z=y instanceof Sc)&&x.xe&&(x.type===pf||x.yk===ot&&x.ft===at))var dt=x.xe;else{var yt=0,Tt=0,zt=0,Gt=0,ee=0,ye=0;if(ye=ee=0,E?(ee=nt.x,ye=nt.y):b||(ee-=ht/2,ye-=ht/2),yt=x.start.x*ot+x.start.offsetX,Tt=x.start.y*at+x.start.offsetY,zt=x.end.x*ot+x.end.offsetX,Gt=x.end.y*at+x.end.offsetY,yt+=ee,zt+=ee,Tt+=ye,Gt+=ye,x.type===fu)dt=y.createLinearGradient(yt,Tt,zt,Gt);else if(x.type===Fa)ye=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(ee=0,ye=Math.max(ot,at)/2):ee=x.startRadius,dt=y.createRadialGradient(yt,Tt,ee,zt,Gt,ye);else if(x.type===pf)try{dt=y.createPattern(x.pattern,"repeat")}catch(Ce){dt=null}if(x.type!==pf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)dt.addColorStop(E.key,E.value);if(z&&(x.xe=dt,dt!==null&&(x.yk=ot,x.ft=at),dt===null&&x.type===pf&&x.yk!==-1)){x.yk=-1;var ge=a.diagram;ge!==null&&x.yk===-1&&Si(function(){ge.redraw()},600)}}b?y.fillStyle=dt:y.strokeStyle=dt}}}Ut.rg=function(a){if(a instanceof gn)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},Ut.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ut.If=function(){for(var a=this instanceof gn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xo(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ga(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)}Ga(a,!1),Ta(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ta(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,Ta(a,!1)))}Ut.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=de.alloc();z.yi(y,x,b,E,Gi),a.rotate(this.Kb,z.x,z.y),de.free(z)}},Ut.v=function(a){if(!xa(this)){a===void 0&&(a=!1),Po(this,!0),Wl(this,!0);var y=this.panel;y===null||a||y.v()}},Ut.Uj=function(){xa(this)||(Po(this,!0),Wl(this,!0))};function Es(a){if(!ks(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Fn&&a.Bd(),y.$b())),Wl(a,!0)}}Ut.Uk=function(){!(this.l&2048)&&(Ga(this,!0),Ta(this,!0))},Ut.Wu=function(){Ta(this,!0)},Ut.N=function(){var a=this.part;a!==null&&a.N()};function _s(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===gn.Table?pl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===gn.Auto&&b.Pb()===a?Ko(a,fn,y):x===yi?b!==null?b.type===gn.Spot&&b.Pb()===a?Ko(a,fn,y):(x=b.defaultStretch,x===yi?Ko(a,hn,y):Ko(a,x,y)):Ko(a,hn,y):Ko(a,x,y)}function pl(a,y,x,b){var E=a.stretch;if(E!==yi)return Ko(a,E,b);var z=E=null;switch(y.stretch){case oi:z=!0;break;case fn:z=!0}switch(x.stretch){case Jn:E=!0;break;case fn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Jn||y===fn),z===null&&(z=y===oi||y===fn),E===!0&&z===!0?Ko(a,fn,b):E===!0?Ko(a,Jn,b):z===!0?Ko(a,oi,b):Ko(a,hn,b)}function Ko(a,y,x){if(x)return y;if(y===hn||(x=a.desiredSize,x.w()))return hn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Jn)return hn;if(y===fn)return oi}else{if(y===oi)return hn;if(y===fn)return Jn}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===oi)return hn;if(y===fn)return Jn}else{if(y===Jn)return hn;if(y===fn)return oi}return y}function il(a,y){a.l=y?a.l|512:a.l&-513}function qo(a){return(a.l&1024)!==0}function ad(a,y){a.l=y?a.l|1024:a.l&-1025}function Ga(a,y){a.l=y?a.l|2048:a.l&-2049}function Ta(a,y){a.l=y?a.l|4096:a.l&-4097}function xa(a){return(a.l&8192)!==0}function Po(a,y){a.l=y?a.l|8192:a.l&-8193}function ks(a){return(a.l&16384)!==0}function Wl(a,y){a.l=y?a.l|16384:a.l&-16385}Ut.Gj=function(){this.svg=null},Ut.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ut.Av=function(){},Ut.zv=function(a){return this.pa=a,Es(this),!0},Ut.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ut.kq=function(){return 0};function vc(a){var y=a.part;if(y instanceof Fn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||H1(y,a)}}function Xy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof gn?a instanceof Fn?a.Bd():a.qm(a,function(x){vc(x)}):vc(a))}Ut.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new mo(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Ye("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Cn),this.localBindings.add(E),this},Ut.set=function(a){return Object.assign(this,a),this},Ut.Du=function(a){return iv(this,a),this},Ut.apply=function(a){return a(this),this},Ut.nm=function(a){return uc(this,a),this},Ut.pz=function(){return this.ih()},Ut.ih=function(){for(var a=this instanceof gn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ut.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new pn),this.animationTriggers.add(a.propertyName,a),this};function Na(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=uf.I(a);typeof z=="function"?(x=tr(arguments),b=z(x),yn(b)||Ye('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ze.go[a]}if(b===null&&(E!=null&&E.constructor||Ye("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof Ke&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(hg(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Ye("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):iv(b,z);return b}function iv(a,y){if(typeof y=="string")if(a instanceof Cr)a.text=y;else if(a instanceof Ci)a.figure=y;else if(a instanceof Gs)a.source=y;else if(a instanceof gn)y=rl.I(y),y!==null&&(a.type=y);else if(a instanceof hr){var x=Oi(hr,y);x!==null?a.type=x:Ye("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof bn?(y=Oi(bn,y),y!==null&&(a.type=y)):a instanceof Xi&&(y=Oi(Xi,y),y!==null&&(a.type=y));else if(y instanceof Re)a instanceof gn||Ye("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Co){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Co?Lm(b,y):Ye("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof qe)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Eo)a.type=y;else if(y instanceof mo)a instanceof Re||a instanceof Co?a.bind(y):Ye("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof el)a instanceof Re?a.Jv(y):Ye("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Fo)a instanceof bn&&a.type===bn.o?a.figures.add(y):Ye("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Xi)a instanceof Fo?a.segments.add(y):Ye("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof jr)a instanceof Ke||a instanceof mi?a.layout=y:Ye("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++)iv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof hr){x=new Pi;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);uc(a,x)}else if(a instanceof Co){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Ye("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&Ye("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Pi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);uc(a,E)}else uc(a,y);else Ye('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function _u(a,y){uf.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}sn.Object.defineProperties(Re.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new ld),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 ld),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 ld),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Li(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&&(Li(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ns},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Mh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ns&&(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 Mh),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 Mh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Mi},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Mh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:yi},set:function(a){var y=this.stretch;y!==a&&(Li(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&&(Li(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)&&xi(a,"0 <= value <= 1",Re,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Cc(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(Cc(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Xy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&hd(a,"GraphObject.areaBackground"),a instanceof hr&&a.freeze(),Li(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&&hd(a,"GraphObject.background"),a instanceof hr&&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 $n)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new de(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ye("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Xy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Ci&&this.qc(),this.g("desiredSize",b,a),qo(this)&&(a=this.part,a!==null&&(Fr(this,a,"width"),Fr(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 on(a,this.jd.height).freeze(),this.v(),this instanceof Ci&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&Fr(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 on(this.jd.width,a).freeze(),this.v(),this instanceof Ci&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&Fr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ui},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(),Li(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:mr},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(),Li(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 ii(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&&Xo(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xo(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Li(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:hn},set:function(a){this.reshapingBehavior!==a&&(Li(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()&&Ye("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Es(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&&xi(a,">= 0",Re,"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&&xi(a,">= 1",Re,"columnSpan"),Li(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&&xi(a,">= 0",Re,"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&&xi(a,">= 1",Re,"rowSpan"),Li(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&&(Li(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Fn||Ye("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Y1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:no},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),vc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&xi(a,">= 0",Re,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),vc(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),vc(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&&xi(a,">= 0",Re,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:no},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),vc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&xi(a,">= 0",Re,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),vc(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),vc(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&&xi(a,">= 0",Re,"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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(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&&(Li(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Re.prototype.trigger=Re.prototype.Jv,Re.prototype.findBindingPanel=Re.prototype.ih,Re.prototype.findTemplateBinder=Re.prototype.pz,Re.prototype.setProperties=Re.prototype.nm,Re.prototype.apply=Re.prototype.apply,Re.prototype.attach=Re.prototype.Du,Re.prototype.set=Re.prototype.set,Re.prototype.isEnabledObject=Re.prototype.If,Re.prototype.isVisibleObject=Re.prototype.Ed,Re.prototype.isContainedBy=Re.prototype.rg,Re.prototype.getNearestIntersectionPoint=Re.prototype.rs,Re.prototype.getLocalPoint=Re.prototype.qs,Re.prototype.getDocumentScale=Re.prototype.Df,Re.prototype.getDocumentAngle=Re.prototype.li,Re.prototype.getDocumentBounds=Re.prototype.mi,Re.prototype.getDocumentPoint=Re.prototype.ga,Re.prototype.intersectsRect=Re.prototype.Yc,Re.prototype.containedInRect=Re.prototype.fh,Re.prototype.containsRect=Re.prototype.Re,Re.prototype.containsPoint=Re.prototype.ca,Re.prototype.raiseChanged=Re.prototype.g,Re.prototype.raiseChangedEvent=Re.prototype.cb,Re.prototype.addCopyProperty=Re.prototype.Vw;var uf=null;Re.className="GraphObject",uf=new pn,_u("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Na(gn,gn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof gn){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Na(Ci,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new _n(0,0,2.76142374915397,2.761423749153969),spot2:new _n(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof gn&&(x=b.fb("ButtonBorder"),x instanceof Ci)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof gn&&(x=b.fb("ButtonBorder"),x instanceof Ci&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ci){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ci){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof gn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Ci){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof gn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Ci))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),_u("TreeExpanderButton",function(){var a=Na("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Na(Ci,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qi},new mo("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new mo("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ki&&(x=x.adornedPart),x instanceof Fn){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),_u("SubGraphExpanderButton",function(){var a=Na("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Na(Ci,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qi},new mo("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 Ki&&(x=x.adornedPart),x instanceof mi){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),_u("ToolTip",function(){return Na(Ki,gn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new de(0,3),shadowBlur:5},Na(Ci,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new _n(0,0,4,6),spot2:new _n(1,1,-4,-4)}))}),_u("ContextMenu",function(){return Na(Ki,gn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new de(0,3),shadowBlur:5},new mo("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),_u("ContextMenuButton",function(){var a=Na("Button");a.stretch=Jn;var y=a.fb("ButtonBorder");return y instanceof Ci&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new _n(0,0,2,3),y.spot2=new _n(1,1,-2,-2)),a}),_u("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=Na("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},Na(Ci,{name:"ButtonIcon",strokeWidth:2},new mo("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Ci&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),_u("CheckBoxButton",function(a){var y=lm(a);return a=Na("Button",{desiredSize:new on(14,14)},Na(Ci,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:fn,geometryStretch:Gn,visible:!1},y!==""?new mo("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof gn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),_u("CheckBox",function(a){a=lm(a),a=Na("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new ii(0,1,0,0)});var y=Na(gn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ii(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}),Re.None=hn=new qe(Re,"None",0),Re.Default=yi=new qe(Re,"Default",0),Re.Vertical=oi=new qe(Re,"Vertical",4),Re.Horizontal=Jn=new qe(Re,"Horizontal",5),Re.Fill=fn=new qe(Re,"Fill",3),Re.Uniform=Gn=new qe(Re,"Uniform",1),Re.UniformToFill=ji=new qe(Re,"UniformToFill",2),Re.FlipVertical=Ei=new qe(Re,"FlipVertical",1),Re.FlipHorizontal=_i=new qe(Re,"FlipHorizontal",2),Re.FlipBoth=vr=new qe(Re,"FlipBoth",3),Re.make=Na,Re.getBuilders=function(){var a=new pn,y;for(y in uf)if(y!==y.toLowerCase()){var x=uf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Re.defineBuilder=_u,Re.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=uf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Re))return y&&b.set(y),b;Ye('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Re.takeBuilderArgument=lm;function ld(){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=ui,this.o=mr,this.hg=yi,this.ob=this.Bi=1,this.Pf=hn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}ld.prototype.copy=function(){var a=new ld;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 Mh(){this.u=-1/0,this.o=0,this.F=Mi,this.rr=Ns,this.j=this.V="None"}Mh.prototype.copy=function(){var a=new Mh;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},Mh.className="LinkElementSettings";function Bg(){this.yj=this.Xi=ns,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Bg.prototype.copy=function(){var a=new Bg;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},Bg.className="LinkSettings";function yc(){this.ha=[1,0,0,1,0,0]}yc.prototype.copy=function(){var a=new yc;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},yc.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},yc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},yc.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=nt,this.translate(-y,-x)}},yc.className="STransform";function ud(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}ud.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},ud.className="SGradient";function Tl(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 aa(this,x)}Tl.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Tl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),yn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Tl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Tl.prototype.focus=function(){this.Oa.focus()},Tl.prototype.mx=function(){this.ownerDocument=null},sn.Object.defineProperties(Tl.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}}}),Tl.className="SVGSurface";function aa(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 yc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Ie++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Zy(a,y,x,b,E,z,nt){a.Nj===void 0?Ig(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Ut=aa.prototype,Ut.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ht=at-1e-6,dt=x*Math.cos(b),yt=x*Math.sin(b),Tt=a+dt,zt=y+yt,Gt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Tt)||1e-6<Math.abs(ot-zt))&&this.path.push(["L",Tt,+zt]),0>b&&(b=b%at+at),b>ht?(this.path.push(["A",x,x,0,1,Gt,a-dt,y-yt]),this.path.push(["A",x,x,0,1,Gt,Tt,zt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Gt,a+x*Math.cos(E),y+x*Math.sin(E)])},Ut.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ut.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ut.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ut.clearRect=function(){},Ut.clip=function(){this.Yl.clipPath=!0},Ut.closePath=function(){this.path.push(["z"])},Ut.createLinearGradient=function(a,y,x,b){var E=new ud("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Ut.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+Ie++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(pc,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ut.createRadialGradient=function(a,y,x,b,E,z){var nt=new ud("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Jy(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ut.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ht="";a instanceof HTMLCanvasElement&&(ht=a.toDataURL()),a instanceof HTMLImageElement&&(ht=a.getAttribute("src"));var dt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=dt,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Jy(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:dt||b,height:a||E,href:ht},ze.$(b,ot)&&ze.$(E,at)?ht.toLowerCase().indexOf(".svg")===-1&&ht.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==dt||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),hf(this,pc,z,this.rb),this.addElement(pc,z)},Ut.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},Ut.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ut.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},hf(this,"fill",a,this.rb),this.addElement("rect",a)},Ut.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},hf(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},Ut.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},hf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ut.lineTo=function(a,y){this.path.push(["L",a,y])},Ut.moveTo=function(a,y){this.path.push(["M",a,y])},Ut.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ut.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Ut.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},Ut.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())},Ut.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ig(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ut.scale=function(a,y){this.rb.scale(a,y)},Ut.translate=function(a,y){this.rb.translate(a,y)},Ut.transform=function(){},Ut.yc=function(){},Ut.stroke=function(){$y(this,this.Yl)},Ut.jk=function(){this.clipInsteadOfFill||this.stroke()},Ut.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ut.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 hf(a,y,x,b){y==="fill"?rv(a,x):y==="stroke"&&$y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function rv(a,y){a.fillStyle instanceof ud?y.fill=ov(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof ud?y.setAttributeNS(null,"fill",ov(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function $y(a,y){if(a.strokeStyle instanceof ud)y.stroke=ov(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 ov(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+Ie++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.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),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ht,dt){return ht.offset>dt.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ut.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=tr(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,hf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Ig(a,y,x,b,E,z,nt){var ot=new yc;ot.ha=[y,x,b,E,z,nt],y={},hf(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ut.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Gl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function cu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ut.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ut.fs=function(){this.Ct=!1},Ut.Vc=function(){},Ut.Wx=function(){},aa.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},aa.prototype.getImageData=function(){return null},aa.prototype.measureText=function(){return null};function hm(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()))}aa.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},aa.className="SVGContext",Ke.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Tl(this,Ze.document));var y=new Tl(this,Ze.document,!0);a===void 0&&(a=new Pi);var x=this;return nd(this,function(b,E){return b=rm(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Ke.prototype.makeSvg=Ke.prototype.Cs,Ke.prototype.av=function(a){return this.Cs(a)},Ke.prototype.makeSVG=Ke.prototype.av;function Ha(a,y,x,b){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 Sc(y,x,b),y.H=a}Ha.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Ha.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Ha.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ha.prototype.focus=function(){this.Oa.focus()},Ha.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},sn.Object.defineProperties(Ha.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}}}),Ha.className="CanvasSurface";function Sc(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ye("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 ki,this.isTemporary=!!x}Ut=Sc.prototype,Ut.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ut.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ut.beginPath=function(){this.Z.beginPath()},Ut.Se=function(){},Ut.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ut.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ut.clip=function(){this.Z.clip()},Ut.closePath=function(){this.Z.closePath()},Ut.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ut.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ut.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ut.drawImage=function(a,y,x,b,E,z,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,ot,at)},Ut.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ut.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ut.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ut.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ut.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ut.lineTo=function(a,y){this.Z.lineTo(a,y)},Ut.measureText=function(a){return this.Z.measureText(a)},Ut.moveTo=function(a,y){this.Z.moveTo(a,y)},Ut.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ut.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ut.restore=function(){this.Z.restore()},Ut.save=function(){this.yc(),this.Z.save()},Sc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ut=Sc.prototype,Ut.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ut.scale=function(a,y){this.El.scale(a,y)},Ut.translate=function(a,y){this.El.translate(a,y)},Ut.stroke=function(){this.Z.stroke()},Ut.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,ot=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},Ut.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ut.ng=function(a,y){if(a instanceof hr&&a.type===Fa){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)},Ut.jk=function(){this.Hm||this.stroke()},Ut.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ut.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ut.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},Ut.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ut.Hs=function(){},sn.Object.defineProperties(Sc.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 vx=Object.freeze([]);Sc.className="CanvasSurfaceContext";function Rg(){this.F=this.o=this.u=this.j=0}Rg.className="ColorNumbers";function hr(a,y){gf||(cv(),gf=!0),je(this),this._isFrozen=!1,a===void 0?(this.na=Wu,this.xk="black"):typeof a=="string"?(this.na=Wu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===fu?(this.Qd=es,this.Lk=Ro):this.Lk=a===Fa?this.Qd=Gi:this.Qd=no,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}hr.prototype.copy=function(){var a=new hr;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},Ut=hr.prototype,Ut.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ut.ka=function(){return Object.isFrozen(this)&&Ye("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ut.qb=function(a){a.classType===hr&&(this.type=a)},Ut.toString=function(){var a="Brush(";if(this.type===Wu)a+=this.color;else if(a=this.type===fu?a+"Linear ":this.type===Fa?a+"Radial ":this.type===pf?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+")"},Ut.addColorStop=function(a,y){return this._isFrozen&&ti(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&xi(a,"0 <= loc <= 1",hr,"addColorStop:loc"),this.we===null&&(this.we=new pn),this.we.add(a,y),this.na===Wu&&(this.type=fu),this.xe=null,this},Ut.Vz=function(a,y){if(this._isFrozen&&ti(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?mf:y,this.type===Wu)du(this.color),this.color=df(a,y);else if((this.type===fu||this.type===Fa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)du(x.value),this.addColorStop(x.key,df(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?mf:x,du(a),df(y,x)}Ut.Wy=function(a,y){if(this._isFrozen&&ti(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?mf:y,this.type===Wu)du(this.color),this.color=df(-a,y);else if((this.type===fu||this.type===Fa)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)du(x.value),this.addColorStop(x.key,df(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?mf:x,du(a),df(-y,x)}function sv(a,y,x){du(a),a=Mr.j;var b=Mr.u,E=Mr.o,z=Mr.F;return du(y),x===void 0&&(x=.5),"rgba("+Math.round((Mr.j-a)*x+a)+", "+Math.round((Mr.u-b)*x+b)+", "+Math.round((Mr.o-E)*x+E)+", "+Math.round((Mr.F-z)*x+z)+")"}Ut.Gx=function(){if(this.type===Wu)return cf(this.color);if((this.type===fu||this.type===Fa)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Fa)return cf(a.first().value);if(a.get(.5)!==null)return cf(a.get(.5));if(a.count===2)return a=a.Fa(),cf(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,cf(sv(a.get(x),a.get(b),1-z/E))}return!1};function cf(a){return a?a instanceof hr?a.Gx():(du(a),128>(299*Mr.j+587*Mr.u+114*Mr.o)/1e3):!1}function df(a,y){switch(y){case mf:y=100*lv(Mr.j);var x=100*lv(Mr.u),b=100*lv(Mr.o);return Ms.j=.4124564*y+.3575761*x+.1804375*b,Ms.u=.2126729*y+.7151522*x+.072175*b,Ms.o=.0193339*y+.119192*x+.9503041*b,Ms.F=Mr.F,y=hv(Ms.j/ff[0]),x=hv(Ms.u/ff[1]),b=hv(Ms.o/ff[2]),Hl.j=116*x-16,Hl.u=500*(y-x),Hl.o=200*(x-b),Hl.F=Ms.F,Hl.j=Math.min(100,Math.max(0,Hl.j+100*a)),a=(Hl.j+16)/116,y=a-Hl.o/200,Ms.j=ff[0]*n1(Hl.u/500+a),Ms.u=ff[1]*(Hl.j>cm*dv?Math.pow(a,3):Hl.j/cm),Ms.o=ff[2]*n1(y),Ms.F=Hl.F,a=-.969266*Ms.j+1.8760108*Ms.u+.041556*Ms.o,y=.0556434*Ms.j+-.2040259*Ms.u+1.0572252*Ms.o,Mr.j=255*uv((3.2404542*Ms.j+-1.5371385*Ms.u+-.4985314*Ms.o)/100),Mr.u=255*uv(a/100),Mr.o=255*uv(y/100),Mr.F=Ms.F,Mr.j=Math.round(Mr.j),255<Mr.j?Mr.j=255:0>Mr.j&&(Mr.j=0),Mr.u=Math.round(Mr.u),255<Mr.u?Mr.u=255:0>Mr.u&&(Mr.u=0),Mr.o=Math.round(Mr.o),255<Mr.o?Mr.o=255:0>Mr.o&&(Mr.o=0),"rgba("+Mr.j+", "+Mr.u+", "+Mr.o+", "+Mr.F+")";case i1:return av(),wa.o=Math.min(100,Math.max(0,wa.o+100*a)),"hsla("+wa.j+", "+wa.u+"%, "+wa.o+"%, "+wa.F+")";default:Ye("Unknown color space: "+y)}}function du(a){gf||(cv(),gf=!0);var y=fv;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,Mr.j=a[0],Mr.u=a[1],Mr.o=a[2],Mr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Mr.j=0,Mr.u=0,Mr.o=0,Mr.F=1)}}function av(){var a=Mr.j/255,y=Mr.u/255,x=Mr.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}wa.j=Math.round(nt),wa.u=Math.round(100*a),wa.o=Math.round(100*E),wa.F=Mr.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>dv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/cm}function hd(a,y){typeof a!="string"&&(a instanceof hr||Ye("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){fv=Qr?new Ha(null,void 0,{willReadFrequently:!0}).context:null}sn.Object.defineProperties(hr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ti(this,a),this.na=a,this.start.Mc()&&(a===fu?this.start=es:a===Fa&&(this.start=Gi)),this.end.Mc()&&(a===fu?this.end=Ro:a===Fa&&(this.end=Gi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ti(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ti(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ti(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ti(this,a),0>a&&xi(a,">= zero",hr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ti(this,a),0>a&&xi(a,">= zero",hr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ti(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ti(this,a),this.cr=a,this.xe=null}}}),hr.prototype.isDark=hr.prototype.Gx,hr.prototype.darkenBy=hr.prototype.Wy,hr.prototype.lightenBy=hr.prototype.Vz,hr.prototype.addColorStop=hr.prototype.addColorStop;var dv=216/24389,cm=24389/27,ff=[95.047,100,108.883],fv=null,Mr=new Rg,wa=new Rg,Ms=new Rg,Hl=new Rg,gf=!1;hr.className="Brush";var Wu;hr.Solid=Wu=new qe(hr,"Solid",0);var fu;hr.Linear=fu=new qe(hr,"Linear",1);var Fa;hr.Radial=Fa=new qe(hr,"Radial",2);var pf;hr.Pattern=pf=new qe(hr,"Pattern",4);var mf;hr.Lab=mf=new qe(hr,"Lab",5);var i1;hr.HSL=i1=new qe(hr,"HSL",6),hr.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},hr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;gf||(cv(),gf=!0);var y=fv;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)},hr.lighten=function(a){return t1(a)},hr.lightenBy=t1,hr.darken=function(a){return e1(a)},hr.darkenBy=e1,hr.mix=sv,hr.isDark=cf;function Eo(){this.xa="Base"}Eo.prototype.measure=function(){},Eo.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Eo.prototype.arrange=function(){},Eo.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Eo.prototype.iA=function(a){a.Uj()},Eo.prototype.gc=function(){},sn.Object.defineProperties(Eo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return gn}}}),Eo.prototype.remeasureObject=Eo.prototype.iA,Eo.prototype.arrangeElement=Eo.prototype.Ly,Eo.prototype.measureElement=Eo.prototype.Yz,Eo.className="PanelLayout";function dm(){this.xa="Base"}We(dm,Eo),dm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=gu(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===a){var dt=ht.margin,yt=dt.right+dt.left;dt=dt.top+dt.bottom,ht.measure(y,x,z,nt);var Tt=ht.measuredBounds;yt=Math.max(Tt.width+yt,0),dt=Math.max(Tt.height+dt,0),Tt=ht.position.x;var zt=ht.position.y;isFinite(Tt)||(Tt=0),isFinite(zt)||(zt=0),ht instanceof Ci&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,Tt-=ht,zt-=ht),ur(E,Tt,zt,yt,dt)}}},dm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ht=z.position.y;if(at=isNaN(at)?-a:at-a,ht=isNaN(ht)?-x:ht-x,z instanceof Ci&&z.isGeometryPositioned){var dt=z.strokeWidth/2;at-=dt,ht-=dt}z.visible&&z.arrange(at+ot.left,ht+ot.top,nt.width,nt.height)}};function fm(){this.xa="Base"}We(fm,Eo),fm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=li(),z=gu(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===z){var dt=_s(ht,!1);if(dt!==hn&&dt!==Jn)y.push(ht);else{ht.measure(1/0,x,0,nt),dt=ht.margin,ht=ht.measuredBounds;var yt=Math.max(ht.height+dt.top+dt.bottom,0);E.width+=Math.max(ht.width+dt.right+dt.left,0),E.height=Math.max(E.height,yt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)at=y[a],(at.visible||at===z)&&(dt=at.margin,ot=dt.right+dt.left,dt=dt.top+dt.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,dt=Math.max(at.height+dt,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,dt));ai(y)},fm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ht=z,dt=y[at];if(dt.visible){var yt=dt.measuredBounds,Tt=dt.margin,zt=Tt.top+Tt.bottom,Gt=z+E.bottom,ee=yt.height,ye=_s(dt,!1);(isNaN(dt.desiredSize.height)&&ye===fn||ye===oi)&&(ee=Math.max(x.height-zt-Gt,0)),zt=ee+zt+Gt,Gt=dt.alignment,Gt.Xb()&&(Gt=a.defaultAlignment),Gt.sb()||(Gt=Gi),nt&&(ot-=yt.width+Tt.left+Tt.right),dt.arrange(ot+Gt.offsetX+Tt.left,ht+Gt.offsetY+Tt.top+(x.height*Gt.y-zt*Gt.y),yt.width,ee),nt||(ot+=yt.width+Tt.left+Tt.right)}}};function gm(){this.xa="Base"}We(gm,Eo),gm.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=li();for(var ot=gu(a),at=0;at<nt;at++){var ht=b[at];if(ht.visible||ht===ot){var dt=_s(ht,!1);if(dt!==hn&&dt!==oi)x.push(ht);else{var yt=ht.margin;dt=yt.right+yt.left,yt=yt.top+yt.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,Kr(E,Math.max(E.width,Math.max(ht.width+dt,0)),E.height+Math.max(ht.height+yt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)at=x[a],(at.visible||at===ot)&&(ht=at.margin,nt=ht.right+ht.left,ht=ht.top+ht.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ht=Math.max(at.height+ht,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ht);ai(x)}},gm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ht=z,dt=y[at];if(dt.visible){var yt=dt.measuredBounds,Tt=dt.margin,zt=Tt.left+Tt.right,Gt=z+E.right,ee=yt.width,ye=_s(dt,!1);(isNaN(dt.desiredSize.width)&&ye===fn||ye===Jn)&&(ee=Math.max(x.width-zt-Gt,0)),zt=ee+zt+Gt,Gt=dt.alignment,Gt.Xb()&&(Gt=a.defaultAlignment),Gt.sb()||(Gt=Gi),nt&&(ot-=yt.height+Tt.bottom+Tt.top),dt.arrange(ht+Gt.offsetX+Tt.left+(x.width*Gt.x-zt*Gt.x),ot+Gt.offsetY+Tt.top,ee,yt.height),nt||(ot+=yt.height+Tt.bottom+Tt.top)}}};function pm(){this.xa="Base"}We(pm,Eo),pm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=ht.right+ht.left,yt=ht.top+ht.bottom;at.measure(y,x,z,nt);var Tt=at.measuredBounds;z=Tt.width,nt=Tt.height;var zt=Math.max(z+dt,0),Gt=Math.max(nt+yt,0),ee=a.isClipping,ye=Je.allocAt(-ht.left,-ht.top,zt,Gt),ge=Je.allocAt(0,0,z,nt);gv(at,ge,!0),z=ge.width,nt=ge.height;for(var Ce=!0,be=gu(a),Ee=0;Ee<ot;Ee++){var Be=b[Ee];Tt=y;var He=x;if(Be!==at&&(Be.visible||Be===be)){ht=Be.margin;var Mn=ht.left,Un=ht.top;switch(zt=ht.right+ht.left,Gt=ht.top+ht.bottom,ht=_s(Be,!1),ht){case fn:Tt=z,He=nt,Un=Mn=Gt=zt=0;break;case Jn:Tt=z,Mn=zt=0;break;case oi:He=nt,Un=Gt=0}Be.measure(Tt,He,0,0),Tt=Be.measuredBounds,zt=Math.max(Tt.width+zt,0),Gt=Math.max(Tt.height+Gt,0),ht=Be.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=Gi);var Dn=Be.alignmentFocus;if(Dn.Xb()&&(Dn=Gi),He=null,Be instanceof gn&&Be.$e!==""&&(He=Be.fb(Be.$e),He===Be&&(He=null)),Mn=ge.x-Mn,Un=ge.y-Un,He!==null){for(Be.arrange(0,0,Tt.width,Tt.height),Tt=He.actualBounds,Tt=de.allocAt(Tt.x+(Dn.x*Tt.width-Dn.offsetX),Tt.y+(Dn.y*Tt.height-Dn.offsetY)),He=He.panel;He!==Be;)He.transform.Ga(Tt),He=He.panel;Mn+=ht.x*z+ht.offsetX-Tt.x,Un+=ht.y*nt+ht.offsetY-Tt.y,de.free(Tt)}else Mn+=ht.x*z+ht.offsetX-(Dn.x*Tt.width+Dn.offsetX),Un+=ht.y*nt+ht.offsetY-(Dn.y*Tt.height+Dn.offsetY);Ce?(Ce=!1,E.h(Mn,Un,zt,Gt)):ur(E,Mn,Un,zt,Gt)}}switch(Ce?E.assign(ye):ee?E.Uu(ge.x,ge.y,ge.width,ge.height):ur(E,ye.x,ye.y,ye.width,ye.height),Je.free(ye),Je.free(ge),ht=at.stretch,ht===yi&&(ht=_s(at,!1)),ht){case hn:return;case fn:if(!isFinite(y)&&!isFinite(x))return;break;case Jn:if(!isFinite(y))return;break;case oi:if(!isFinite(x))return}for(Tt=at.measuredBounds,z=Tt.width,nt=Tt.height,zt=Math.max(z+dt,0),Gt=Math.max(nt+yt,0),ht=at.margin,ge=Je.allocAt(-ht.left,-ht.top,zt,Gt),gv(at,ge,!0),z=ge.width,nt=ge.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==be||(ht=x.margin,zt=ht.right+ht.left,Gt=ht.top+ht.bottom,Tt=x.measuredBounds,zt=Math.max(Tt.width+zt,0),Gt=Math.max(Tt.height+Gt,0),dt=x.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Gi),x=x.alignmentFocus,x.Xb()&&(x=Gi),Ce?(Ce=!1,E.h(dt.x*z+dt.offsetX-(x.x*Tt.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Tt.height+x.offsetY)-ht.top,zt,Gt)):ur(E,dt.x*z+dt.offsetX-(x.x*Tt.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Tt.height+x.offsetY)-ht.top,zt,Gt));Ce?E.assign(ye):ee?E.Uu(ge.x,ge.y,ge.width,ge.height):ur(E,ye.x,ye.y,ye.width,ye.height),Je.free(ge)},pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ht=z-x.x,dt=at-x.y;for(E.arrange(ht,dt,nt,ot),nt=Je.allocAt(0,0,nt,ot),gv(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ht=yt.measuredBounds;var Tt=ht.width,zt=ht.height;dt=yt.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Gi);var Gt=yt.alignmentFocus;if(Gt.Xb()&&(Gt=Gi),ht=null,yt instanceof gn&&yt.$e!==""&&(ht=yt.fb(yt.$e),ht===yt&&(ht=null)),ht!==null){var ee=ht.actualBounds;for(Gt=de.allocAt(ee.x+(Gt.x*ee.width-Gt.offsetX),ee.y+(Gt.y*ee.height-Gt.offsetY)),ht=ht.panel;ht!==yt;)ht.transform.Ga(Gt),ht=ht.panel;ht=dt.x*nt.width+dt.offsetX-Gt.x,dt=dt.y*nt.height+dt.offsetY-Gt.y,de.free(Gt)}else ht=dt.x*nt.width+dt.offsetX-(Gt.x*Tt+Gt.offsetX),dt=dt.y*nt.height+dt.offsetY-(Gt.y*zt+Gt.offsetY);ht+=nt.x-x.x,dt+=nt.y-x.y,yt.visible&&yt.arrange(z+ht,at+dt,Tt,zt)}}Je.free(nt)};function gv(a,y,x){var b=null;if(a instanceof gn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function mm(){this.xa="Base"}We(mm,Eo),mm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=y,yt=x,Tt=ht.right+ht.left,zt=ht.top+ht.bottom;at.measure(y,x,z,nt),ht=at.measuredBounds;var Gt=0,ee=null;at instanceof Ci&&(ee=at,Gt=ee.strokeWidth*ee.scale);var ye=Math.max(ht.width+Tt,0);ht=Math.max(ht.height+zt,0);var ge=yv(at),Ce=ge.x*ye+ge.offsetX;ge=ge.y*ht+ge.offsetY;var be=Sv(at),Ee=be.x*ye+be.offsetX;for(be=be.y*ht+be.offsetY,isFinite(y)&&(dt=Math.max(Math.abs(Ce-Ee)-Gt,0)),isFinite(x)&&(yt=Math.max(Math.abs(ge-be)-Gt,0)),Gt=on.alloc(),Gt.h(0,0),a=gu(a),be=0;be<ot;be++)ge=b[be],ge===at||!ge.visible&&ge!==a||(ht=ge.margin,ye=ht.right+ht.left,Ce=ht.top+ht.bottom,ge.measure(dt,yt,0,0),ht=ge.measuredBounds,ye=Math.max(ht.width+ye,0),ht=Math.max(ht.height+Ce,0),Gt.h(Math.max(ye,Gt.width),Math.max(ht,Gt.height)));if(ot===1)E.width=ye,E.height=ht,on.free(Gt);else{switch(ge=yv(at),be=Sv(at),ot=b=0,be.x!==ge.x&&be.y!==ge.y&&(b=Gt.width/Math.abs(be.x-ge.x),ot=Gt.height/Math.abs(be.y-ge.y)),on.free(Gt),Gt=0,ee!==null&&(Gt=ee.strokeWidth*ee.scale,Av(ee)===Gn&&(b=ot=Math.max(b,ot))),b+=Math.abs(ge.offsetX)+Math.abs(be.offsetX)+Gt,ot+=Math.abs(ge.offsetY)+Math.abs(be.offsetY)+Gt,ee=at.stretch,ee===yi&&(ee=_s(at,!1)),ee){case hn:nt=z=0;break;case fn:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Jn:isFinite(y)&&(b=y),nt=0;break;case oi:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+Tt,E.height=at.measuredBounds.height+zt}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Je.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ht=at.left;at=at.top,b.arrange(ht+ot,at+nt,E.width,E.height);var dt=yv(b),yt=Sv(b),Tt=dt.y*E.height+dt.offsetY,zt=yt.x*E.width+yt.offsetX;for(yt=yt.y*E.height+yt.offsetY,z.x=dt.x*E.width+dt.offsetX,z.y=Tt,ur(z,zt,yt,0,0),z.x+=ot+ht,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ht=ot.measuredBounds,nt=ot.margin,at=Math.max(ht.width+nt.right+nt.left,0),dt=Math.max(ht.height+nt.top+nt.bottom,0),Tt=ot.alignment,Tt.Xb()&&(Tt=a.defaultAlignment),Tt.sb()||(Tt=Gi),at=z.width*Tt.x+Tt.offsetX-at*Tt.x+nt.left+z.x,nt=z.height*Tt.y+Tt.offsetY-dt*Tt.y+nt.top+z.y,ot.visible&&(Br(z.x,z.y,z.width,z.height,at,nt,ht.width,ht.height)?ot.arrange(at,nt,ht.width,ht.height):ot.arrange(at,nt,ht.width,ht.height,new Je(z.x,z.y,z.width,z.height))));Je.free(z)};function vm(){this.xa="Base",this.name="Table"}We(vm,Eo),vm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=li(),ot=li(),at=0;at<z;at++){var ht=b[at],dt=ht instanceof gn?ht:null;if(dt!==null&&Gu(dt)&&ht.visible){ot.push(dt);for(var yt=dt.O.s,Tt=yt.length,zt=0;zt<Tt;zt++){var Gt=yt[zt];dt.type===gn.TableRow?Gt.row=ht.row:dt.type===gn.TableColumn&&(Gt.column=ht.column),nt.push(Gt)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ee=[],ye=0;ye<z;ye++){var ge=nt[ye];ge.visible&&(Po(ge,!0),Wl(ge,!0),ee[ge.row]||(ee[ge.row]=[]),ee[ge.row][ge.column]||(ee[ge.row][ge.column]=[]),ee[ge.row][ge.column].push(ge))}ai(nt);var Ce=li(),be=li(),Ee=li(),Be={count:0},He={count:0},Mn=y,Un=x,Dn=a.rowDefs,Sn=a.colDefs,an=null;z=Dn.length;for(var pi=0;pi<z;pi++)an=Dn[pi],an!==void 0&&(an.actual=0);z=Sn.length;for(var ci=0;ci<z;ci++)an=Sn[ci],an!==void 0&&(an.actual=0);for(var Ji=ee.length,Pr=0,Bo=0;Bo<Ji;Bo++)ee[Bo]&&(Pr=Math.max(Pr,ee[Bo].length));var Uo=Math.min(a.topIndex,Ji-1),ys=Math.min(a.leftIndex,Pr-1),Io=0;Ji=ee.length;for(var $u=gu(a),vo=0;vo<Ji;vo++)if(ee[vo]){Pr=ee[vo].length;var xl=a.Fb(vo);xl.actual=0;for(var Ss=xl.oc=0;Ss<Pr;Ss++)if(ee[vo][Ss]){var th=a.Eb(Ss);Ce[Ss]===void 0&&(th.actual=0,th.oc=0,Ce[Ss]=!0);for(var ba=ee[vo][Ss],Xa=ba.length,ha=0;ha<Xa;ha++){var Zs=ba[ha];if(Zs.visible||Zs===$u){var Gh=1<Zs.rowSpan||1<Zs.columnSpan;Gh&&(vo<Uo||Ss<ys||be.push(Zs));var wl=Zs.margin,zf=wl.right+wl.left,ca=wl.top+wl.bottom,xs=pl(Zs,xl,th,!1),bp=Zs.desiredSize,Pd=!isNaN(bp.height),Ol=!isNaN(bp.width)&&Pd;if(Gh||xs===hn||Ol||vo<Uo||Ss<ys||(Be[Ss]!==void 0||xs!==fn&&xs!==Jn||(Be[Ss]=-1,Be.count++),He[vo]!==void 0||xs!==fn&&xs!==oi||(He[vo]=-1,He.count++),Ee.push(Zs)),Zs.measure(1/0,1/0,0,0),!(vo<Uo||Ss<ys)){var Js=Zs.measuredBounds,kc=Math.max(Js.width+zf,0),da=Math.max(Js.height+ca,0);if(Zs.rowSpan===1&&(xs===hn||xs===Jn)){an=a.Fb(vo);var Hh=an.Wc();Io=Math.max(da-an.actual,0),Io+Hh>Un&&(Io=Math.max(Un-Hh,0));var U0=an.oa===0;an.oc=an.oc+Io,an.actual=an.oa+Io,Un=Math.max(Un-(Io+(U0?Hh:0)),0)}if(Zs.columnSpan===1&&(xs===hn||xs===oi)){an=a.Eb(Ss);var Ap=an.Wc();Io=Math.max(kc-an.actual,0),Io+Ap>Mn&&(Io=Math.max(Mn-Ap,0));var _y=an.oa===0;an.oc=an.oc+Io,an.actual=an.oa+Io,Mn=Math.max(Mn-(Io+(_y?Ap:0)),0)}Gh&&Zs.Uj()}}}}}ai(Ce);var $l=0,vu=0;z=a.columnCount;for(var Cd=0;Cd<z;Cd++){var Kh=Sn[Cd];Kh!==void 0&&($l+=isNaN(Kh.Hc)?Kh.oc:Kh.Hc,Kh.oc!==0&&($l+=Kh.Wc()))}z=a.rowCount;for(var Uf=0;Uf<z;Uf++){var Vh=Dn[Uf];Vh!==void 0&&(vu+=isNaN(Vh.Hc)?Vh.oc:Vh.Hc,Vh.oc!==0&&(vu+=Vh.Wc()))}Mn=Math.max(y-$l,0);var tu=Un=Math.max(x-vu,0),eh=Mn;z=Ee.length;for(var Qs=0;Qs<z;Qs++){var Dl=Ee[Qs],_0=a.Fb(Dl.row),yu=a.Eb(Dl.column),_f=Dl.measuredBounds,Pl=Dl.margin,Mc=Pl.right+Pl.left,Bl=Pl.top+Pl.bottom;Be[Dl.column]=yu.oc===0&&Be[Dl.column]!==void 0?Math.max(_f.width+Mc,Be[Dl.column]):null,He[Dl.row]=_0.oc===0&&He[Dl.row]!==void 0?Math.max(_f.height+Bl,He[Dl.row]):null}var bd=0,Wf=0,hl;for(hl in He)hl!=="count"&&(bd+=He[hl]);for(hl in Be)hl!=="count"&&(Wf+=Be[hl]);for(var Jo=on.alloc(),Lp=0;Lp<z;Lp++){var Is=Ee[Lp];if(Is.visible||Is===$u){var yo=a.Fb(Is.row),Rs=a.Eb(Is.column),Su=0;isFinite(Rs.width)?Su=Rs.width:(isFinite(Mn)&&Be[Is.column]!==null?Wf===0?Su=Rs.actual+Mn:Su=Be[Is.column]/Wf*eh:Be[Is.column]!==null?Su=Mn:Su=Rs.actual||Mn,Su=Math.max(0,Su-Rs.Wc()));var nh=0;switch(isFinite(yo.height)?nh=yo.height:(isFinite(Un)&&He[Is.row]!==null?bd===0?nh=yo.actual+Un:nh=He[Is.row]/bd*tu:He[Is.row]!==null?nh=Un:nh=yo.actual||Un,nh=Math.max(0,nh-yo.Wc())),Jo.h(Math.max(Rs.minimum,Math.min(Su,Rs.maximum)),Math.max(yo.minimum,Math.min(nh,yo.maximum))),xs=pl(Is,yo,Rs,!1),xs){case Jn:Jo.height=Math.max(Jo.height,yo.actual+Un);break;case oi:Jo.width=Math.max(Jo.width,Rs.actual+Mn)}var Tc=Is.margin,Wy=Tc.right+Tc.left,W0=Tc.top+Tc.bottom;Is.Uj(),Is.measure(Jo.width,Jo.height,Rs.minimum,yo.minimum);var Gf=Is.measuredBounds,Nc=Math.max(Gf.width+Wy,0),Ad=Math.max(Gf.height+W0,0);isFinite(Mn)&&(Nc=Math.min(Nc,Jo.width)),isFinite(Un)&&(Ad=Math.min(Ad,Jo.height));var $s=0;$s=yo.actual,yo.actual=Math.max(yo.actual,Ad),yo.oc=Math.max(yo.oc,Ad),Io=yo.actual-$s,Un=Math.max(Un-Io,0),He[Is.row]===null&&(tu=Math.max(tu-Io,0)),$s=Rs.actual,Rs.actual=Math.max(Rs.actual,Nc),Rs.oc=Math.max(Rs.oc,Nc),Io=Rs.actual-$s,Mn=Math.max(Mn-Io,0),Be[Is.column]===null&&(eh=Math.max(eh-Io,0))}}ai(Ee);var xu=on.alloc(),Cl=li(),Ra=li();if(z=be.length,z!==0){for(var Yh=0;Yh<Ji;Yh++)if(ee[Yh]){Pr=ee[Yh].length;var Hf=a.Fb(Yh);Cl[Yh]=Hf.actual;for(var Xh=0;Xh<Pr;Xh++)if(ee[Yh][Xh]){var G0=a.Eb(Xh);Ra[Xh]=G0.actual}}}for(var Kf=0;Kf<z;Kf++){var ro=be[Kf];if(ro.visible||ro===$u){var cl=a.Fb(ro.row),Za=a.Eb(ro.column);switch(Jo.h(Math.max(Za.minimum,Math.min(y,Za.maximum)),Math.max(cl.minimum,Math.min(x,cl.maximum))),xs=pl(ro,cl,Za,!1),xs){case fn:Ra[Za.index]!==0&&(Jo.width=Math.min(Jo.width,Ra[Za.index])),Cl[cl.index]!==0&&(Jo.height=Math.min(Jo.height,Cl[cl.index]));break;case Jn:Ra[Za.index]!==0&&(Jo.width=Math.min(Jo.width,Ra[Za.index]));break;case oi:Cl[cl.index]!==0&&(Jo.height=Math.min(Jo.height,Cl[cl.index]))}isFinite(Za.width)&&(Jo.width=Za.width),isFinite(cl.height)&&(Jo.height=cl.height),xu.h(0,0);for(var H0=Za.minimum,fa=cl.minimum,ih=1;ih<ro.rowSpan&&!(ro.row+ih>=a.rowCount);ih++)an=a.Fb(ro.row+ih),Io=0,Io=xs===fn||xs===oi?Math.max(an.minimum,Cl[ro.row+ih]===0?an.maximum:Math.min(Cl[ro.row+ih],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),xu.height+=Io,fa+=an.minimum;for(var Ja=1;Ja<ro.columnSpan&&!(ro.column+Ja>=a.columnCount);Ja++)an=a.Eb(ro.column+Ja),Io=0,Io=xs===fn||xs===Jn?Math.max(an.minimum,Ra[ro.column+Ja]===0?an.maximum:Math.min(Ra[ro.column+Ja],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),xu.width+=Io,H0+=an.minimum;Jo.width+=xu.width,Jo.height+=xu.height;var Vf=ro.margin,Zh=Vf.right+Vf.left,Ep=Vf.top+Vf.bottom;ro.measure(Jo.width,Jo.height,H0,fa);for(var Yf=ro.measuredBounds,Il=Math.max(Yf.width+Zh,0),Fc=Math.max(Yf.height+Ep,0),Jh=0,Xf=0;Xf<ro.rowSpan&&!(ro.row+Xf>=a.rowCount);Xf++)an=a.Fb(ro.row+Xf),Jh+=an.total||0;if(Jh<Fc){var rh=Fc-Jh,eu=Fc-Jh;if(ro.spanAllocation!==null)for(var oh=ro.spanAllocation,wu=0;wu<ro.rowSpan&&!(0>=rh)&&!(ro.row+wu>=a.rowCount);wu++){an=a.Fb(ro.row+wu);var sh=an.oa||0,Oc=oh(ro,an,eu);an.actual=Math.min(an.maximum,sh+Oc),an.oa!==sh&&(rh-=an.oa-sh)}for(;0<rh;){var bl=an.oa||0;if(isNaN(an.height)&&an.maximum>bl&&(an.actual=Math.min(an.maximum,bl+rh),an.oa!==bl&&(rh-=an.oa-bl)),an.index===0)break;an=a.Fb(an.index-1)}}for(var Ld=0,ah=0;ah<ro.columnSpan&&!(ro.column+ah>=a.columnCount);ah++)an=a.Eb(ro.column+ah),Ld+=an.total||0;if(Ld<Il){var Ed=Il-Ld,Gy=Il-Ld;if(ro.spanAllocation!==null)for(var Pu=ro.spanAllocation,Dc=0;Dc<ro.columnSpan&&!(0>=Ed)&&!(ro.column+Dc>=a.columnCount);Dc++){an=a.Eb(ro.column+Dc);var kp=an.oa||0,Hy=Pu(ro,an,Gy);an.actual=Math.min(an.maximum,kp+Hy),an.oa!==kp&&(Ed-=an.oa-kp)}for(;0<Ed;){var K0=an.oa||0;if(isNaN(an.width)&&an.maximum>K0&&(an.actual=Math.min(an.maximum,K0+Ed),an.oa!==K0&&(Ed-=an.oa-K0)),an.index===0)break;an=a.Eb(an.index-1)}}}}ai(be),on.free(xu),on.free(Jo),Cl!==void 0&&ai(Cl),Ra!==void 0&&ai(Ra);var kd=0,Md=0,V0=a.desiredSize,px=a.maxSize;xs=_s(a,!0);var Mp=vu=$l=0,Tp=0;z=a.columnCount;for(var Y0=0;Y0<z;Y0++)Sn[Y0]!==void 0&&(an=a.Eb(Y0),isFinite(an.width)?(Mp+=an.width,Mp+=an.Wc()):Em(an)===_g?(Mp+=an.oa,Mp+=an.Wc()):an.oa!==0&&($l+=an.oa,$l+=an.Wc()));isFinite(V0.width)?kd=Math.min(V0.width,px.width):kd=xs!==hn&&isFinite(y)?y:$l,kd=Math.max(kd,a.minSize.width),kd=Math.max(kd-Mp,0);for(var qx=$l===0?1:Math.max(kd/$l,1),X0=0;X0<z;X0++)Sn[X0]!==void 0&&(an=a.Eb(X0),isFinite(an.width)||Em(an)===_g||(an.actual=an.oa*qx),an.position=E.width,an.oa!==0&&(E.width+=an.oa,E.width+=an.Wc()));z=a.rowCount;for(var Z0=0;Z0<z;Z0++)Dn[Z0]!==void 0&&(an=a.Fb(Z0),isFinite(an.height)?(Tp+=an.height,Tp+=an.Wc()):Em(an)===_g?(Tp+=an.oa,Tp+=an.Wc()):an.oa!==0&&(vu+=an.oa,vu+=an.Wc()));isFinite(V0.height)?Md=Math.min(V0.height,px.height):Md=xs!==hn&&isFinite(x)?x:vu,Md=Math.max(Md,a.minSize.height),Md=Math.max(Md-Tp,0);for(var $x=vu===0?1:Math.max(Md/vu,1),J0=0;J0<z;J0++)Dn[J0]!==void 0&&(an=a.Fb(J0),isFinite(an.height)||Em(an)===_g||(an.actual=an.oa*$x),an.position=E.height,an.oa!==0&&(E.height+=an.oa,E.height+=an.Wc()));z=ot.length;for(var Ky=0;Ky<z;Ky++){var Np=ot[Ky],Vy=0,Yy=0;Np.type===gn.TableRow?(Vy=E.width,an=a.Fb(Np.row),Yy=an.actual):(an=a.Eb(Np.column),Vy=an.actual,Yy=E.height),Np.measuredBounds.h(0,0,Vy,Yy),Po(Np,!1)}ai(ot),a.inRowsCols=ee},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ht=nt.length,dt=0,yt=0;yt<ht;yt++)nt[yt]&&(dt=Math.max(dt,nt[yt].length));at=a.rowDefs,ot=a.colDefs;var Tt=yt=0,zt=Math.min(a.topIndex,ht-1);if(0<at.length){for(;zt!==ht&&(at[zt]===void 0||at[zt].oa===0);)zt++;zt=Math.max(Math.min(zt,ht-1),0),yt=-at[zt].position}var Gt=Math.min(a.leftIndex,dt-1);if(0<ot.length){for(;Gt!==dt&&(ot[Gt]===void 0||ot[Gt].oa===0);)Gt++;Gt=Math.max(Math.min(Gt,dt-1),0),Tt=-ot[Gt].position}for(var ee=0,ye=0;ee!==ht&&at[ee]===void 0;)ee++;for(;ye!==ht&&ot[ye]===void 0;)ye++;dt=a.part,a.Fb(ee),a.Eb(ye);for(var ge=0;ge<y.length;ge++){var Ce=y[ge];if(Ce instanceof gn&&Ce.visible&&Gu(Ce)){if(Ce.type===gn.TableRow){ot=a.Fb(Ce.row);var be=a.Eb(ye)}else ot=a.Fb(ee),be=a.Eb(Ce.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(ee,zt))),ot=be.position+Tt+z,be.oa!==0&&(ot+=be.Io(Math.max(ye,Gt))),be=Ce.measuredBounds,Ce.Uk(),Ce.actualBounds.ka();var Ee=Ce.actualBounds,Be=Je.allocAt(Ee.x,Ee.y,Ee.width,Ee.height);Ee.x=Ce.type===gn.TableRow?z:ot,Ee.y=Ce.type===gn.TableColumn?E:at,Ee.width=be.width,Ee.height=be.height,Ce.actualBounds.freeze(),Wl(Ce,!1),dr(Be,Ee)||dt===null||(dt.oh(),Ce.Pn(dt)),Je.free(Be)}}for(ge=on.alloc(),Ce=0;Ce<ht;Ce++)if(nt[Ce]){for(dt=nt[Ce].length,be=a.Fb(Ce),at=be.position+yt+E,be.oa!==0&&(at+=be.Io(Math.max(ee,zt))),Ee=0;Ee<dt;Ee++)if(nt[Ce][Ee]){Be=a.Eb(Ee),ot=Be.position+Tt+z,Be.oa!==0&&(ot+=Be.Io(Math.max(ye,Gt)));for(var He=nt[Ce][Ee],Mn=He.length,Un=0;Un<Mn;Un++){var Dn=He[Un],Sn=Dn.measuredBounds;ge.h(0,0);for(var an=1;an<Dn.rowSpan&&!(Ce+an>=a.rowCount);an++){var pi=a.Fb(Ce+an);pi.oa!==0&&(ge.height+=pi.total)}for(an=1;an<Dn.columnSpan&&!(Ee+an>=a.columnCount);an++)pi=a.Eb(Ee+an),pi.oa!==0&&(ge.width+=pi.total);var ci=Be.oa+ge.width,Ji=be.oa+ge.height;an=ot,pi=at;var Pr=ci,Bo=Ji,Uo=ot,ys=at,Io=ci,$u=Ji;ot+ci>x.width&&(Io=Math.max(x.width-ot,0)),at+Ji>x.height&&($u=Math.max(x.height-at,0));var vo=Dn.alignment;if(vo.Xb()){vo=a.defaultAlignment,vo.sb()||(vo=Gi);var xl=vo.x,Ss=vo.y,th=vo.offsetX;vo=vo.offsetY;var ba=Be.alignment,Xa=be.alignment;ba.sb()&&(xl=ba.x,th=ba.offsetX),Xa.sb()&&(Ss=Xa.y,vo=Xa.offsetY)}else xl=vo.x,Ss=vo.y,th=vo.offsetX,vo=vo.offsetY;(isNaN(xl)||isNaN(Ss))&&(Ss=xl=.5,vo=th=0),ba=Sn.width,Xa=Sn.height;var ha=Dn.margin,Zs=ha.left+ha.right,Gh=ha.top+ha.bottom,wl=pl(Dn,be,Be,!1);!isNaN(Dn.desiredSize.width)||wl!==fn&&wl!==Jn||(ba=Math.max(ci-Zs,0)),!isNaN(Dn.desiredSize.height)||wl!==fn&&wl!==oi||(Xa=Math.max(Ji-Gh,0)),ci=Dn.maxSize,Ji=Dn.minSize,ba=Math.min(ci.width,ba),Xa=Math.min(ci.height,Xa),ba=Math.max(Ji.width,ba),Xa=Math.max(Ji.height,Xa),ci=Xa+Gh,an+=Pr*xl-(ba+Zs)*xl+th+ha.left,pi+=Bo*Ss-ci*Ss+vo+ha.top,Dn.visible&&(Br(Uo,ys,Io,$u,an,pi,Sn.width,Sn.height)?Dn.arrange(an,pi,ba,Xa):Dn.arrange(an,pi,ba,Xa,new Je(Uo,ys,Io,$u)))}}}for(on.free(ge),a=0;a<b;a++)x=y[a],z=x instanceof gn?x:null,z!==null&&Gu(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}We(ym,Eo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}We(Sm,Eo),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}We(xm,Eo),xm.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&Ye("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ht=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var dt=b.scale,yt=ot.width;ot=ot.height;var Tt=Math.max(y-ht,0),zt=Math.max(x-at,0),Gt=1;a.viewboxStretch===Gn?yt!==0&&ot!==0&&(Gt=Math.min(Tt/yt,zt/ot)):yt!==0&&ot!==0&&(Gt=Math.max(Tt/yt,zt/ot)),Gt===0&&(Gt=1e-4),b.Ca*=Gt,dt!==b.scale&&(Po(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ht,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},xm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Gi),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function jg(){this.xa="Base"}We(jg,Eo),jg.prototype.measure=function(){},jg.prototype.arrange=function(){},jg.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,nt=a.actualBounds,ot=z.width,at=z.height,ht=Math.ceil(ot/E),dt=Math.ceil(at/b),yt=a.gridOrigin,Tt=yt.x;yt=yt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var zt=[],Gt=a.O.s,ee=Gt.length,ye=0;ye<ee;ye++){var ge=Gt[ye],Ce=[];if(zt.push(Ce),ge.visible){var be=ge.interval;if(!(0>be)){ge=mv(ge.figure);for(var Ee=0;Ee<ee;Ee++)if(Ee!==ye){var Be=Gt[Ee];Be.visible&&mv(Be.figure)===ge&&(Be=Be.interval,Be>be&&Ce.push(Be))}}}}for(Gt=a.O.s,ee=Gt.length,ye=0;ye<ee;ye++){var He=Gt[ye];if(He.visible&&(Ce=He.interval||1,ge=Math.abs(Ce),!(2>E*ge*x))){if(be=He.segmentIndex,(!isFinite(be)||isNaN(be))&&(be=0),0>be&&(be=ge-Math.min(-be,ge)),be=Math.round(be%ge),ge=He.opacity,Ee=1,ge!==1){if(ge===0)continue;Ee=y.globalAlpha,y.globalAlpha=Ee*ge}Be=zt[ye];var Mn=!1,Un=He.strokeDashArray;if(Un!==null&&(Mn=!0,y.js(Un,He.strokeDashOffset)),He.figure==="LineV"&&He.stroke!==null&&0<He.strokeWidth){for(y.lineWidth=He.strokeWidth,$r(a,y,He.stroke,!1,!1,z,nt),y.beginPath(),Un=He=Math.floor((Tt-E)/E);Un<=He+ht;Un++){var Dn=Un*E+Tt;0<=Dn&&Dn<=ot&&wm(Un,Ce,be,Be)&&(y.moveTo(Dn,0),y.lineTo(Dn,at))}y.stroke(),y.Se()}else if(He.figure==="LineH"&&He.stroke!==null&&0<He.strokeWidth){for(y.lineWidth=He.strokeWidth,$r(a,y,He.stroke,!1,!1,z,nt),y.beginPath(),Un=He=Math.floor((yt-b)/b);Un<=He+dt;Un++)Dn=Un*b+yt,0<=Dn&&Dn<=at&&wm(Un,Ce,be,Be)&&(y.moveTo(0,Dn),y.lineTo(ot,Dn));y.stroke(),y.Se()}else if(He.figure==="BarV"&&He.fill!==null)for($r(a,y,He.fill,!0,!1,z,nt),He=He.width,isNaN(He)&&(He=E),Dn=Un=Math.floor((Tt-E)/E);Dn<=Un+ht;Dn++){var Sn=Dn*E+Tt;0<=Sn+He&&Sn<=ot&&wm(Dn,Ce,be,Be)&&y.fillRect(Sn,0,He,at)}else if(He.figure==="BarH"&&He.fill!==null)for($r(a,y,He.fill,!0,!1,z,nt),He=He.height,isNaN(He)&&(He=b),Dn=Un=Math.floor((yt-b)/b);Dn<=Un+dt;Dn++)Sn=Dn*b+yt,0<=Sn+He&&Sn<=at&&wm(Dn,Ce,be,Be)&&y.fillRect(0,Sn,ot,He);Mn&&y.fs(),ge!==1&&(y.globalAlpha=Ee)}}y.restore(),y.Vc(!1)};function wm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Pm(){this.xa="Base"}We(Pm,Eo),Pm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ki||a instanceof xn){var nt=null,ot=null;if(a instanceof xn&&(nt=a),a instanceof Ki&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof xn){var at=nt;if(z===0)Kr(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof Ki?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var dt=at.points,yt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var Tt=y.height,zt=a.j;if(zt.length=0,ht!==null){r1(a,ot,Tt,ht);var Gt=ht.measuredBounds;x.ed(Gt),zt.push(Gt)}Gt=ki.alloc();for(var ee=de.alloc(),ye=de.alloc(),ge=0;ge<z;ge++){var Ce=b[ge];if(Ce!==ht)if(Ce.isPanelMain&&Ce instanceof Ci){r1(a,ot,Tt,Ce);var be=Ce.measuredBounds;x.ed(be),zt.push(be)}else if(2>yt)Ce.measure(1/0,1/0,0,0),be=Ce.measuredBounds,x.ed(be),zt.push(be);else{var Ee=Ce.segmentIndex,Be=Ce.segmentFraction,He=Ce.alignmentFocus;He.Mc()&&(He=Gi);var Mn=Ce.segmentOrientation,Un=Ce.segmentOffset;if(isNaN(Ee)){var Dn=at.ua;be=li(),Dn.Qu(Be,be);var Sn=de.allocAt(be[0],be[1]);if(Sn.add(at.i(0)),Dn.type===bn.j?Sn.offset(-Dn.startX,-Dn.startY):(Dn=Dn.figures.first(),Dn!==null&&Sn.offset(-Dn.startX,-Dn.startY)),Dn=be[2],Mn!==Ns){var an=at.computeAngle(Ce,Mn,Dn);Ce.Kb=an}an=Sn.x-y.x;var pi=Sn.y-y.y;de.free(Sn),ai(be)}else if(Ee<-yt||Ee>=yt)be=de.alloc(),at.vg(),at.computeMidPoint(be),Dn=at.midAngle,Mn!==Ns&&(an=at.computeAngle(Ce,Mn,Dn),Ce.Kb=an),an=be.x-y.x,pi=be.y-y.y,de.free(be);else{if(an=0,0<=Ee?(pi=dt.M(Ee),be=Ee<yt-1?dt.M(Ee+1):pi):(an=yt+Ee,pi=dt.M(an),be=0<an?dt.M(an-1):pi),pi.Xa(be)){0<=Ee?(Dn=0<Ee?dt.M(Ee-1):pi,an=Ee<yt-2?dt.M(Ee+2):be):(Dn=an<yt-1?dt.M(an+1):pi,an=1<an?dt.M(an-2):be),Sn=Dn.Bf(pi);var ci=be.Bf(an);Dn=Sn>ci+10?0<=Ee?Dn.ab(pi):pi.ab(Dn):ci>Sn+10?0<=Ee?be.ab(an):an.ab(be):0<=Ee?Dn.ab(an):an.ab(Dn)}else Dn=0<=Ee?pi.ab(be):be.ab(pi);Mn!==Ns&&(an=at.computeAngle(Ce,Mn,Dn),Ce.Kb=an),an=pi.x+(be.x-pi.x)*Be-y.x,pi=pi.y+(be.y-pi.y)*Be-y.y}Ce.measure(1/0,1/0,0,0),be=Ce.measuredBounds,Sn=Ce.naturalBounds;var Ji=0;Ce instanceof Ci&&(Ji=Ce.strokeWidth),ci=Sn.width+Ji;var Pr=Sn.height+Ji;Gt.reset(),Gt.translate(-be.x,-be.y),Gt.scale(Ce.scale,Ce.scale),Gt.rotate(Mn===Ns?Ce.angle:Dn,ci/2,Pr/2),Mn!==Qg&&Mn!==$g||Gt.rotate(90,ci/2,Pr/2),Mn!==qg&&Mn!==tp||Gt.rotate(-90,ci/2,Pr/2),Mn===qm&&(45<Dn&&135>Dn||225<Dn&&315>Dn)&&Gt.rotate(-Dn,ci/2,Pr/2),Sn=new Je(0,0,ci,Pr),ee.xi(Sn,He),Gt.Ga(ee),He=-ee.x+Ji/2*Ce.scale,Ce=-ee.y+Ji/2*Ce.scale,ye.assign(Un),Ji=isNaN(Un.x);var Bo=isNaN(Un.y);if(Ji||Bo){ci=ci/2+3,Pr=Pr/2+3;var Uo=45<=Dn&&135>=Dn,ys=225<=Dn&&315>=Dn;Mn===Ns&&(Uo||ys)?(ye.x=Bo?ci:Un.y,ye.y=Ji?Pr:Un.x,Uo?0<=Ee||isNaN(Ee)&&.5>Be||!Ji||(ye.y=-Pr):ys&&((0<=Ee||isNaN(Ee)&&.5>Be)&&Ji&&(ye.y=-Pr),Bo&&(ye.x=-ci))):(Ji&&(ye.x=0<=Ee||isNaN(Ee)&&.5>Be?ci:-ci),Bo&&(ye.y=-Pr),ye.rotate(Dn))}else ye.rotate(Dn);an+=ye.x,pi+=ye.y,Sn.set(be),Sn.h(an+He,pi+Ce,be.width,be.height),zt.push(Sn),x.ed(Sn)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Kr(E,x.width||0,x.height||0),ki.free(Gt),de.free(ee),de.free(ye)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ki||a instanceof xn){var b=a,E=null;a instanceof Ki&&(E=a,b=E.adornedPart);var z=a instanceof Ki?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ht=y[at];if(ht!==z&&ot<nt.length){var dt=nt[ot];ot++,ht.arrange(dt.x-a.jg.x,dt.y-a.jg.y,dt.width,dt.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof xn)for(z=a.labelNodes;z.next();){var yt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var Tt=nt.alignmentFocus;if(ht=nt.segmentOrientation,dt=nt.segmentOffset,isNaN(ot)){var zt=yt.ua,Gt=li();zt.Qu(at,Gt);var ee=de.allocAt(Gt[0],Gt[1]);ee.add(yt.i(0)),zt.type===bn.j||(zt=zt.figures.first()),ee.offset(-zt.startX,-zt.startY),zt=Gt[2],ht!==Ns&&(yt=yt.computeAngle(nt,ht,zt),nt.angle=yt),yt=ee.x;var ye=ee.y;de.free(ee),ai(Gt)}else if(ot<-x||ot>=x)Gt=de.alloc(),zt=yt,ye=Gt,zt.vg(),zt.computeMidPoint(ye),zt=yt.midAngle,ht!==Ns&&(yt=yt.computeAngle(nt,ht,zt),nt.angle=yt),yt=Gt.x,ye=Gt.y,de.free(Gt);else{if(ee=0,0<=ot?(Gt=y.s[ot],ye=ot<x-1?y.s[ot+1]:Gt):(ee=x+ot,Gt=y.s[ee],ye=0<ee?y.s[ee-1]:Gt),Gt.Xa(ye)){0<=ot?(zt=0<ot?y.s[ot-1]:Gt,ee=ot<x-2?y.s[ot+2]:ye):(zt=ee<x-1?y.s[ee+1]:Gt,ee=1<ee?y.s[ee-2]:ye);var ge=zt.Bf(Gt),Ce=ye.Bf(ee);zt=ge>Ce+10?0<=ot?zt.ab(Gt):Gt.ab(zt):Ce>ge+10?0<=ot?ye.ab(ee):ee.ab(ye):0<=ot?zt.ab(ee):ee.ab(zt)}else zt=0<=ot?Gt.ab(ye):ye.ab(Gt);ht!==Ns&&(yt=yt.computeAngle(nt,ht,zt),nt.angle=yt),yt=Gt.x+(ye.x-Gt.x)*at,ye=Gt.y+(ye.y-Gt.y)*at}if(Tt.ys())nt.location=new de(yt,ye);else{Tt.Mc()&&(Tt=Gi),Gt=ki.alloc(),Gt.reset(),Gt.scale(nt.scale,nt.scale),Gt.rotate(nt.angle,0,0);var be=nt.naturalBounds;ee=Je.allocAt(0,0,be.width,be.height),ge=de.alloc(),ge.xi(ee,Tt),Gt.Ga(ge),Tt=-ge.x,Ce=-ge.y;var Ee=be.width,Be=be.height;be=de.alloc(),be.assign(dt);var He=isNaN(dt.x),Mn=isNaN(dt.y);if(He||Mn){Ee=Ee/2+3,Be=Be/2+3;var Un=45<=zt&&135>=zt,Dn=225<=zt&&315>=zt;ht===Ns&&(Un||Dn)?(be.x=Mn?Ee:dt.y,be.y=He?Be:dt.x,Un?0<=ot||isNaN(ot)&&.5>at||!He||(be.y=-Be):Dn&&((0<=ot||isNaN(ot)&&.5>at)&&He&&(be.y=-Be),Mn&&(be.x=-Ee))):(He&&(be.x=0<=ot||isNaN(ot)&&.5>at?Ee:-Ee),Mn&&(be.y=-Be),be.rotate(zt))}else be.rotate(zt);yt+=be.x,ye+=be.y,Gt.pp(ee),Tt+=ee.x,Ce+=ee.y,ot=de.allocAt(yt+Tt,ye+Ce),nt.move(ot),de.free(ot),de.free(be),de.free(ge),Je.free(ee),ki.free(Gt)}}E!==null?E.Ul(!1):b.Ul(!1),b=O1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),de.free(b)}};function r1(a,y,x,b){if(xa(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ki&&a.type===gn.Link&&a.adornedObject instanceof Ci&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof xn&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Ki&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Po(b,!1)}}function zg(){this.xa="Base"}We(zg,Eo),zg.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ht=at.right+at.left,dt=at.top+at.bottom;ot.measure(y,x,z,nt);var yt=ot.measuredBounds,Tt=new Je(-at.left,-at.top,Math.max(yt.width+ht,0),Math.max(yt.height+dt,0));a.graduatedBounds.push(Tt),E.assign(Tt);for(var zt=ot.geometry,Gt=ot.strokeWidth,ee=zt.flattenedSegments,ye=zt.flattenedLengths,ge=zt.flattenedTotalLength,Ce=ee.length,be=0,Ee=0,Be=li(),He=0;He<Ce;He++){var Mn=ee[He],Un=[];Ee=be=0;for(var Dn=Mn.length,Sn=0;Sn<Dn;Sn+=2){var an=Mn[Sn],pi=Mn[Sn+1];if(Sn!==0){var ci=180*Math.atan2(pi-Ee,an-be)/Math.PI;0>ci&&(ci+=360),Un.push(ci)}be=an,Ee=pi}Be.push(Un)}if(a.graduatedIntervals===null){for(var Ji=[],Pr=a.O.s,Bo=Pr.length,Uo=0;Uo<Bo;Uo++){var ys=Pr[Uo],Io=[];if(Ji.push(Io),ys.visible){var $u=ys.interval;if(!(0>$u)){for(var vo=0;vo<Bo;vo++)if(vo!==Uo){var xl=Pr[vo];if(xl.visible&&ys.constructor===xl.constructor){var Ss=xl.interval;Ss>$u&&Io.push(Ss)}}}}}a.graduatedIntervals=Ji}var th=a.graduatedIntervals,ba=a.O.s,Xa=ba.length,ha=0,Zs=0,Gh=ge;a.graduatedMarks=[];for(var wl,zf=0;zf<Xa;zf++){var ca=ba[zf];if(wl=[],ca.visible&&ca!==ot){var xs=Math.abs(ca.interval),bp=a.graduatedTickUnit;if(!(2>bp*xs*ge/a.graduatedRange&&ca.graduatedSkip===null)){var Pd=ye[0][0],Ol=0,Js=0;Zs=ge*ca.graduatedStart-1e-4,Gh=ge*ca.graduatedEnd+1e-4;var kc=bp*xs,da=a.graduatedTickBase;if(da<a.graduatedMin){var Hh=(a.graduatedMin-da)/kc;Hh=Hh%1===0?Hh:Math.floor(Hh+1),da+=Hh*kc}else da>a.graduatedMin+kc&&(da-=Math.floor((da-a.graduatedMin)/kc)*kc);for(var U0=th[zf],Ap=da,_y=1e-6*a.graduatedMax,$l=1;da<=a.graduatedMax+_y;$l++){t:{for(var vu=U0.length,Cd=0;Cd<vu;Cd++){var Kh=(da-a.graduatedTickBase)%(U0[Cd]*a.graduatedTickUnit),Uf=1e-6*a.graduatedTickUnit;if(Kh<Uf&&Kh>-Uf){var Vh=!1;break t}}Vh=!0}if(Vh&&(da>a.graduatedMax&&(da=a.graduatedMax),ca.graduatedSkip===null||ca instanceof Cr&&!ca.graduatedSkip(da,ca)||ca instanceof Ci&&!ca.graduatedSkip(da,ca))&&(ha=(da-a.graduatedMin)*ge/a.graduatedRange,ha>ge&&(ha=ge),Zs<=ha&&ha<=Gh)){for(var tu=Be[Ol][Js],eh=ye[Ol][Js];Ol<ye.length;){for(;ha>Pd&&Js<ye[Ol].length-1;)Js++,tu=Be[Ol][Js],eh=ye[Ol][Js],Pd+=eh;if(ha<=Pd)break;Ol++,Js=0,tu=Be[Ol][Js],eh=ye[Ol][Js],Pd+=eh}var Qs=ee[Ol],Dl=Qs[2*Js],_0=Qs[2*Js+1],yu=(ha-(Pd-eh))/eh,_f=new de(Dl+(Qs[2*Js+2]-Dl)*yu+Gt/2-zt.bounds.x,_0+(Qs[2*Js+3]-_0)*yu+Gt/2-zt.bounds.y);_f.scale(ot.scale,ot.scale);t:{var Pl=tu,Mc=Be[Ol];if(!(.5005>yu&&.4995<yu)){var Bl=Pl;if(.5>yu?0<Js?Bl=Mc[Js-1]:ze.$(Qs[0],Qs[Qs.length-2])&&ze.$(Qs[1],Qs[Qs.length-1])&&(Bl=Mc[Mc.length-1]):.5<yu&&(Js+1<Mc.length?Bl=Mc[Js+1]:ze.$(Qs[0],Qs[Qs.length-2])&&ze.$(Qs[1],Qs[Qs.length-1])&&(Bl=Mc[0])),Pl!==Bl){var bd=Math.abs(Pl-Bl);if(180<bd&&(Pl<Bl?Pl+=360:Bl+=360,bd=Math.abs(Pl-Bl)),5e-4>yu||.9995<yu){tu=(Pl+Bl)/2%360;break t}if(10>bd){var Wf=1-Math.abs(.5-yu);tu=(Pl*Wf+Bl*(1-Wf))%360;break t}}}tu=Pl}if(ca instanceof Cr){var hl="";ca.graduatedFunction!==null?(hl=ca.graduatedFunction(da,ca),hl=hl!=null?hl.toString():""):hl=(+da.toFixed(2)).toString(),hl!==""&&wl.push({$l:_f,angle:tu,text:hl})}else wl.push({$l:_f,angle:tu})}da=Ap+$l*kc}}}a.graduatedMarks.push(wl)}ai(Be);var Jo=a.graduatedMarks;if(Jo!==null)for(var Lp=b.length,Is=0;Is<Lp;Is++){var yo=b[Is],Rs=Jo[Is];if(yo.visible&&yo!==ot&&Rs.length!==0){if(yo instanceof Ci){var Su=a,nh=E,Tc=yo.alignmentFocus;Tc.Mc()&&(Tc=es);var Wy=yo.angle;yo.Kb=0,yo.measure(1/0,1/0,0,0),yo.Kb=Wy;var W0=yo.measuredBounds,Gf=W0.width,Nc=W0.height,Ad=Je.allocAt(0,0,Gf,Nc),$s=de.alloc();$s.xi(Ad,Tc),Je.free(Ad);for(var xu=-$s.x,Cl=-$s.y,Ra=new Je,Yh=Rs.length,Hf=0;Hf<Yh;Hf++)for(var Xh=Rs[Hf],G0=Xh.$l.x,Kf=Xh.$l.y,ro=Xh.angle,cl=0;4>cl;cl++){switch(cl){case 0:$s.h(xu,Cl);break;case 1:$s.h(xu+Gf,Cl);break;case 2:$s.h(xu,Cl+Nc);break;case 3:$s.h(xu+Gf,Cl+Nc)}$s.rotate(ro+yo.angle),$s.offset(G0,Kf),Hf===0&&cl===0?Ra.h($s.x,$s.y,0,0):Ra.Ye($s),$s.offset(-G0,-Kf),$s.rotate(-ro-yo.angle)}de.free($s),Su.graduatedBounds!==null&&Su.graduatedBounds.push(Ra),ur(nh,Ra.x,Ra.y,Ra.width,Ra.height)}else if(yo instanceof Cr){var Za=a,H0=E;Za.temporaryTextBlock===null&&(Za.temporaryTextBlock=new Cr);var fa=Za.temporaryTextBlock;S1(fa,yo);var ih=yo.alignmentFocus;ih.Mc()&&(ih=es);for(var Ja=yo.segmentOrientation,Vf=yo.segmentOffset,Zh=new Je,Ep=0,Yf=0,Il=0,Fc=0,Jh=0,Xf=Rs.length,rh=0;rh<Xf;rh++){var eu=Rs[rh];Ep=eu.$l.x,Yf=eu.$l.y,Il=eu.angle,Jh=Fc=yo.angle,Ja!==Ns&&(Jh=Ja===Jg||Ja===Qm?Il+yo.angle:Il,Fc=xn.computeAngle(Ja,Jh)),fa.Kb=Fc,fa.text=eu.text||"",fa.measure(1/0,1/0,0,0);var oh=fa.measuredBounds,wu=fa.naturalBounds,sh=wu.width,Oc=wu.height,bl=ki.alloc();bl.reset(),bl.translate(-oh.x,-oh.y),bl.scale(fa.scale,fa.scale),bl.rotate(Jh,sh/2,Oc/2),Ja!==Qg&&Ja!==$g||bl.rotate(90,sh/2,Oc/2),Ja!==qg&&Ja!==tp||bl.rotate(-90,sh/2,Oc/2),Ja===qm&&(45<Il&&135>Il||225<Il&&315>Il)&&bl.rotate(-Il,sh/2,Oc/2);var Ld=Je.allocAt(0,0,sh,Oc),ah=de.alloc();ah.xi(Ld,ih),bl.Ga(ah);var Ed=-ah.x,Gy=-ah.y,Pu=de.alloc();Pu.assign(Vf),isNaN(Pu.x)&&(Pu.x=sh/2+3),isNaN(Pu.y)&&(Pu.y=-(Oc/2+3)),Pu.rotate(Il),Ep+=Pu.x+Ed,Yf+=Pu.y+Gy;var Dc=new Je(Ep,Yf,oh.width,oh.height),kp=new Je(oh.x,oh.y,oh.width,oh.height),Hy=new Je(wu.x,wu.y,wu.width,wu.height);eu.Sz=Fc,eu.lineCount=fa.lineCount,eu.lines=[fa.Cb,fa.Ih,fa.df,fa.Le,fa.Qc,fa.Qb,fa.ze],eu.actualBounds=Dc,eu.measuredBounds=kp,eu.naturalBounds=Hy,rh===0?Zh.assign(Dc):Zh.ed(Dc),de.free(Pu),de.free(ah),Je.free(Ld),ki.free(bl)}Za.graduatedBounds!==null&&Za.graduatedBounds.push(Zh),ur(H0,Zh.x,Zh.y,Zh.width,Zh.height)}Po(yo,!1)}}},zg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ht=0;ht<at;ht++){var dt=y[ht];ot=E[ht],dt.visible&&dt!==b&&ot.length!==0&&(ot=z[nt],nt++,dt.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},zg.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof aa,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ht=a.graduatedMarks,dt=at.length,yt=0;yt<dt;yt++){var Tt=at[yt],zt=ht[yt],Gt=zt.length;if(Tt.visible&&Tt!==z&&zt.length!==0){if(Tt instanceof Ci){if(!(2>a.graduatedTickUnit*Tt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Tt.graduatedSkip===null)){var ee=Tt.measuredBounds,ye=Tt.strokeWidth*Tt.scale,ge=Tt.alignmentFocus;ge.Mc()&&(ge=es);for(var Ce=0;Ce<Gt;Ce++){var be=zt[Ce].$l,Ee=zt[Ce].angle,Be=ge,He=Tt.Ab;He.reset(),He.translate(be.x+ot.x,be.y+ot.y),He.rotate(Ee+Tt.angle,0,0),He.translate(-ee.width*Be.x+Be.offsetX+ye/2,-ee.height*Be.y+Be.offsetY+ye/2),He.scale(Tt.scale,Tt.scale),Ga(Tt,!1),Tt.wh.set(Tt.Ab),Tt.Kk=Tt.scale,Ta(Tt,!1),Tt.gc(y,x),E&&(a.svg.appendChild(Tt.svg),Tt.svg=null),Tt.Ab.reset()}}}else if(Tt instanceof Cr)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Cr),ee=a.temporaryTextBlock,S1(ee,Tt),ye=0;ye<Gt;ye++)ge=zt[ye],ge.actualBounds&&ge.measuredBounds&&ge.naturalBounds&&(ee.ec=ge.text||"",ee.Kb=ge.Sz||0,ee.Gc=ge.lineCount||0,Ce=ge.lines,Ce!==void 0&&(ee.Cb=Ce[0],ee.Ih=Ce[1],ee.df=Ce[2],ee.Le=Ce[3],ee.Qc=Ce[4],ee.Qb=Ce[5],ee.ze=Ce[6]),ge.naturalBounds&&(ee.dc=ge.naturalBounds),ge.actualBounds&&(Ce=ge.actualBounds,ee.arrange(Ce.x,Ce.y,Ce.width,Ce.height)),Ce=ge.actualBounds,ee.arrange(Ce.x,Ce.y,Ce.width,Ce.height),be=ge.measuredBounds,ge=ge.naturalBounds,Ee=ee.Ab,Ee.reset(),Ee.translate(Ce.x+ot.x,Ce.y+ot.y),Ee.translate(-be.x,-be.y),ee.no(Ee,ge.x,ge.y,ge.width,ge.height),Ga(ee,!1),ee.wh.set(ee.Ab),ee.Kk=ee.scale,Ta(ee,!1),ee.Ng=Tt.part,ee.Me=Tt.panel,ee.gc(y,x),ee.Me=null,ee.Ng=null,E&&(a.svg.appendChild(ee.svg),ee.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function gn(a,y){if(Re.call(this),this.na=null,a===void 0)this.na=gn.Position;else if(typeof a=="string"){var x=rl.I(a);x!==null&&(this.na=x)}else a instanceof Eo?this.na=a:a&&(this.na=gn.Position,y=a);this.na===null&&Ye("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===gn.Grid?1048576:0),this.O=new Cn,this.yb=uo,this.Tm=ns,this.Uf=yi,this.$g=null,this.$e="",this.jg=new Je(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Gn,this.jn=$i,this.kn=Mi,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}We(gn,Re),gn.prototype.cloneProtected=function(a){Re.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},gn.prototype.Af=function(a){Re.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},gn.prototype.copy=function(){var a=Re.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Fn&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(co,"elements",a,null,E,null,nt)}}return a}return null},Ut=gn.prototype,Ut.toString=function(){return"Panel("+this.type.name+")#"+Me(this)},Ut.Pn=function(a){Re.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ut.hh=function(a,y){if(this.na===gn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===gn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===gn.Table)if(a.yc(),a instanceof aa){var x=a.yd;a.yd=um(a,"gojs-ts"),pv(this,a),a.nh.pop(),a.yd=x}else pv(this,a);(x=this.isClipping&&this.na===gn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function pv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Cm(a,y,!0,x,!0),b!==null&&Cm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Cm(a,y,!0,x,!1),b!==null&&Cm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ht=b[at];if(ht!==void 0&&ht.actual!==0)if(ot)ot=!1;else{if(x){if(ht.position>nt.height)continue}else if(ht.position>nt.width)continue;var dt=ht.separatorStrokeWidth;isNaN(dt)&&(dt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var yt=ht.separatorStroke;if(yt===null&&(yt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),dt!==0&&yt!==null){$r(a,y,yt,!1,!1,nt,z),yt=!1;var Tt=ht.separatorDashArray;Tt===null&&(Tt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Tt!==null&&(yt=!0,y.js(Tt,0)),y.beginPath(),Tt=ht.position+dt,x?Tt>nt.height&&(dt-=Tt-nt.height):Tt>nt.width&&(dt-=Tt-nt.width),ht=ht.position+dt/2,y.lineWidth=dt,dt=a.yb,x?(ht+=dt.top,Tt=nt.width-dt.right,y.moveTo(dt.left,ht),y.lineTo(Tt,ht)):(ht+=dt.left,Tt=nt.height-dt.bottom,y.moveTo(ht,dt.top),y.lineTo(ht,Tt)),y.stroke(),y.Se(),yt&&y.fs()}}}}function Cm(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=s1(a,!0),ht=s1(a,!1),dt=0;dt<z;dt++){var yt=b[dt];if(yt!==void 0&&yt.background!==null&&yt.coversSeparators!==E&&yt.actual!==0){var Tt=x?nt.height:nt.width;if(!(yt.position>Tt)){var zt=yt.Wc(),Gt=yt.separatorStrokeWidth;isNaN(Gt)&&(Gt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ee=yt.separatorStroke;ee===null&&(ee=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ee===null||yt.index===(x?at:ht))&&(Gt=0),zt-=Gt,Gt=yt.position+Gt,zt+=yt.actual,Gt+zt>Tt&&(zt=Tt-Gt),0>=zt||(Tt=a.yb,$r(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(Tt.left,Gt+Tt.top,nt.width-(Tt.left+Tt.right),zt):y.fillRect(Gt+Tt.left,Tt.top,zt,nt.height-(Tt.top+Tt.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}Ut.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ut.kk=function(a,y,x){if(!Re.prototype.kk.call(this,a,y,x))return!1;if(this.type===gn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,pv(this,a),a.yd=null;else if(this.na===gn.Grid||this.na===gn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Ut.nk=function(){return!0},Ut.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Re.prototype.$o.call(this,a,y,x,b)},Ut.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ht=-nt.m12*ot,dt=-nt.m21*ot,yt=nt.m11*ot,Tt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),zt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,ze.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*dt+Tt,ot=a*ht+y*yt+zt,a=x*at+b*dt+Tt,at=x*ht+b*yt+zt,E.h(0,0),x=this.naturalBounds,z=ze.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,dt=ht=0,yt=1,zt=Tt=0),ot=a*at+y*dt+Tt,a=a*ht+y*yt+zt,at=x*at+b*dt+Tt,x=x*ht+b*yt+zt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ht=!1,yt=this.O.s,zt=yt.length,dt=de.alloc(),Tt=null,y=1/0;var Gt=null,ee=this.isClipping&&this.na===gn.Spot;ee&&(Gt=de.alloc(),Tt=this.Pb(),(ht=Tt.Sj(ot,a,at,x,Gt))&&(y=(ot-Gt.x)*(ot-Gt.x)+(a-Gt.y)*(a-Gt.y)));for(var ye=0;ye<zt;ye++){var ge=yt[ye];ge.visible&&ge!==Tt&&ge.Sj(ot,a,at,x,dt)&&(ht=!0,ge=(ot-dt.x)*(ot-dt.x)+(a-dt.y)*(a-dt.y),ge<b&&(b=ge,E.set(dt)))}return ee&&(y>b&&E.set(Gt),de.free(Gt)),de.free(dt),z&&E.transform(nt),ht},Ut.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Re.prototype.Gj.call(this)},Ut.v=function(a){if(!xa(this)){Re.prototype.v.call(this,a),a=null,(this.na===gn.Auto||this.na===gn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=_s(E,!1);(E instanceof Ts||E instanceof gn||E instanceof Cr||z!==hn)&&E.v(!0)}}}},Ut.Uj=function(){if(!xa(this)){Po(this,!0),Wl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ut.Uk=function(){if(!(this.l&2048)){Ga(this,!0),Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ut.Wu=function(){Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ut.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ht=this.O.s;ht.length!==0&&this.na.measure(this,a,y,ht,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),Kr(E,a,at),Kr(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Ut.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function gu(a){return a.part!==null?a.part.locationObject:null}Ut.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=_s(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=hn),a){case hn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case fn:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Jn:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case oi:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Ut.gh=function(a){var y=this.naturalBounds,x=gu(this);if(Br(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=de.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Di(E.set(a),z.transform),z.ca(E)))return de.free(E),!0}return de.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ut.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Ut.qm=function(a,y){if(y(this,a),a instanceof gn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function xc(a,y){a1(a,a,y)}function a1(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof gn&&a1(a,z,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}Ut.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=u1(a,y[E],x);if(z!==null)return z}}return null}Ut.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Ug(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof gn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function h1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof gn?x=Math.max(x,h1(E)):E instanceof Ci&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ut.se=function(){return!(this.type===gn.TableRow||this.type===gn.TableColumn)};function Gu(a){return a.type===gn.TableRow||a.type===gn.TableColumn}Ut.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ks(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Di(de.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ht=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ht=at/2),Br(-(ht*E),-(ht*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var dt=E.length;if(ot=de.alloc(),ht=(at=this.isClipping&&this.na===gn.Spot)?this.Pb():null,at&&(ht.se()?Di(ot.set(a),ht.transform):ot.set(a),!ht.ca(ot)))return de.free(ot),z||de.free(nt),null;for(var yt=gu(this);dt--;){var Tt=E[dt];if((Tt.visible||Tt===yt)&&(Tt.se()?Di(ot.set(a),Tt.transform):ot.set(a),!at||Tt!==ht)){var zt=null;if(Tt instanceof gn?zt=Tt.ic(ot,y,x):Tt.pickable===!0&&Tt.ca(ot)&&(zt=Tt),zt!==null&&(y!==null&&(zt=y(zt)),zt!==null&&(x===null||x(zt))))return de.free(ot),z||de.free(nt),zt}}de.free(ot)}return this.background===null&&this.areaBackground===null?(z||de.free(nt),null):(a=Br(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||de.free(nt),a)}return z||de.free(nt),null},Ut.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),nt=z?a:Di(de.allocAt(a.x,a.y),this.transform);if(E=Br(0,0,E.width,E.height,nt.x,nt.y),Gu(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ht=de.alloc(),dt=gu(this);at--;){var yt=ot[at];if(yt.visible||yt===dt){yt.se()?Di(ht.set(a),yt.transform):ht.set(a);var Tt=yt;yt=yt instanceof gn?yt:null,(yt!==null?yt.ji(ht,y,x,b):Tt.ca(ht))&&Tt.pickable!==!1&&(y!==null&&(Tt=y(Tt)),Tt===null||x!==null&&!x(Tt)||b.add(Tt))}}de.free(ht)}return z||de.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||de.free(nt),!1},Ut.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=ki.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&ki.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=gu(this),at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===ot){var yt=dt.actualBounds,Tt=this.naturalBounds;yt.x>Tt.width||yt.y>Tt.height||0>yt.x+yt.width||0>yt.y+yt.height||(yt=dt,dt=dt instanceof gn?dt:null,Tt=ki.alloc(),Tt.set(nt),(dt!==null?dt.Cf(a,y,x,b,E,Tt):Do(yt,a,b,Tt))&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||E.add(yt)),ki.free(Tt))}}return z===void 0&&ki.free(nt),b}return z===void 0&&ki.free(nt),!1};function vv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof gn&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Ut.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ot=this.se(),at=ot?a:Di(de.allocAt(a.x,a.y),this.transform),ht=ot?y:Di(de.allocAt(y.x,y.y),this.transform),dt=at.Bf(ht),yt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||wi(at.x,at.y,0,0,0,nt.height)<=dt||wi(at.x,at.y,0,nt.height,nt.width,nt.height)<=dt||wi(at.x,at.y,nt.width,nt.height,nt.width,0)<=dt||wi(at.x,at.y,nt.width,0,0,0)<=dt;if(nt=at.zd(0,0)<=dt&&at.zd(0,nt.height)<=dt&&at.zd(nt.width,0)<=dt&&at.zd(nt.width,nt.height)<=dt,ot||(de.free(at),de.free(ht)),yt){if(!this.isAtomic){at=de.alloc(),ht=de.alloc(),dt=gu(this);for(var Tt=this.O.s,zt=Tt.length;zt--;){var Gt=Tt[zt];if(Gt.visible||Gt===dt){var ee=Gt.actualBounds,ye=this.naturalBounds;(!ot||!(ee.x>ye.width||ee.y>ye.height||0>ee.x+ee.width||0>ee.y+ee.height))&&(Gt.se()?(ee=Gt.transform,Di(at.set(a),ee),Di(ht.set(y),ee)):(at.set(a),ht.set(y)),ee=Gt,Gt=Gt instanceof gn?Gt:null,(Gt!==null?Gt.og(at,ht,x,b,E,z):ee.tx(at,ht,E))&&(x!==null&&(ee=x(ee)),ee===null||b!==null&&!b(ee)||z.add(ee)))}}de.free(at),de.free(ht)}return E?yt:nt}return!1};function yv(a){var y=null;return a instanceof Ci&&(y=a.spot1,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ho),y}function Sv(a){var y=null;return a instanceof Ci&&(y=a.spot2,y===ns&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ws),y}Ut.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},Ut.M=function(a){return this.O.M(a)},Ut.Gb=function(a,y){y instanceof $n&&Ye("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ye("Cannot make a Panel contain itself: "+this.toString()),Ye("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ye("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!==gn.Grid||y instanceof Ci||Ye("Can only add Shapes to a Grid Panel, not: "+y),this.na!==gn.Graduated||y instanceof Ci||y instanceof Cr||Ye("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new pn),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Ye("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),xa(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof gn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Am(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Fn&&(x.Te=!0),x.Te&&x instanceof Fn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Lo,"elements",this,y,null,b,null),x.cb(co,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ut.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Ut.mb=function(a){0<=a&&this.pc(a,!0)},Ut.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Po(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Fn&&(b instanceof gn?b.qm(b,function(nt,ot){Gv(z,ot,y)}):Gv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Lo,"elements",this,b,null,a,null))},Ut.Fb=function(a){0>a&&xi(a,">= 0",gn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Co;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(co,"rowdefs",this,null,x,null,a)}return y[a]},Ut.oA=function(a){if(0>a&&xi(a,">= 0",gn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Lo,"rowdefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Co?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ut.Eb=function(a){0>a&&xi(a,">= 0",gn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Co;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(co,"coldefs",this,null,x,null,a)}return y[a]},Ut.jA=function(a){if(0>a&&xi(a,">= 0",gn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Lo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Co?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ut.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lm(y,a),this},Ut.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new Co(y)),this},Ut.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new Co(y)),this},Ut.nz=function(a){if(0>a||this.type!==gn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ut.fz=function(a){if(0>a||this.type!==gn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ut.Fz=function(a,y){if(y===void 0&&(y=new de(NaN,NaN)),this.type!==gn.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)},Ut.Gz=function(a){if(this.type!==gn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Ka(a){var y=a.allBindings;if(y===null)a.data!==null&&Ye("Template cannot have .data be non-null: "+a),a.allBindings=y=new Cn;else if(y._isFrozen)return;var x=new Cn;xv(a,!1),a.qm(a,function(ht,dt){dt.th();var yt=dt.localBindings;if(yt!==null)for(ad(dt,!1),yt=yt.iterator;yt.next();){var Tt=yt.value;Tt.mode===lp&&ad(dt,!0);var zt=Tt.sourceName;zt!==null&&(zt==="/"&&xv(ht,!0),zt=ES(Tt,ht,dt),zt!==null&&(x.add(zt),zt.srcBindings===null&&(zt.srcBindings=new Cn),zt.srcBindings.add(Tt))),y.add(Tt)}if(dt instanceof gn&&dt.type===gn.Table){if(0<dt.rowCount){for(ht=dt.rowDefs,yt=ht.length,Tt=0;Tt<yt;Tt++)if(zt=ht[Tt],zt!==void 0&&zt.be!==null)for(var Gt=zt.be.iterator;Gt.next();){var ee=Gt.value;ee.xd=zt,ee.to=2,ee.wl=zt.index,y.add(ee)}}if(0<dt.columnCount){for(dt=dt.colDefs,ht=dt.length,yt=0;yt<ht;yt++)if(Tt=dt[yt],Tt!==void 0&&Tt.be!==null)for(zt=Tt.be.iterator;zt.next();)Gt=zt.value,Gt.xd=Tt,Gt.to=1,Gt.wl=Tt.index,y.add(Gt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){ad(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Cn),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,at=ot.indexOf(".");0<at&&z instanceof gn&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):Ui('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Co?(nt=Me(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof Re?(nt=Me(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):Ye("Unknown type of binding target: "+z)}y.freeze(),a instanceof $n&&a.Zc()&&a.Va()}Ut.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof gn&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Ka(y),y},Ut.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof gn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ut.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof gn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof gn)||z.data!==y[nt])return!0;E++,nt++}return!1}function Ug(a){if(a.type===gn.Spot||a.type===gn.Auto)return Math.min(a.O.length,1);if(a.type===gn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Ci&&b.isPanelMain))break}return x}return a.type===gn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof gn&&Gu(a))?1:0}Ut.mv=function(){for(var a=Ug(this);this.O.length>a;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Ug(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)bm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof gn){if(nt.data!==z){var ot=Pv(a,nt.data),at=Pv(a,z),ht=at!==ot;ht||(ot=Cv(a,ot),ht=Cv(a,at)!==ot),ht?(a.pc(b,!1),bm(a,z,E,!1)):nt.data=z}}else bm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),xa(a)||a.v(),a.graduatedIntervals=null,a.If()||Am(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Fn&&(y.Te=!0),y.Te&&y instanceof Fn&&(y.wc=null))}}function bm(a,y,x,b){if(!(y==null||0>x)){var E=Pv(a,y);if(E=Cv(a,E),E!==null){if(Ka(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&xv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new pn),a.ge.add(y,E)),z=x+Ug(a),a.Gb(z,E),b&&(E.ub=y,wv(a,z,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof gn){var E=y,z=x;b.type===gn.TableRow?b.row=E:b.type===gn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Pv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=lo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ye("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Cv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(p1||(p1=!0,Ui('No item template Panel found for category "'+y+'" on '+a),Ui(" Using default item template."),a=new gn,y=new Cr,y.bind(new mo("text","",qi)),a.add(y),m1=a),b=m1)),b}function Am(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof gn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof gn&&!z.isEnabled||Am(a,z,x)}}}function Nl(a,y){y.name=a,rl.add(a,y)}sn.Object.defineProperties(gn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===gn.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&&xi(a,">= 0",gn,"padding"),a=new ii(a)):(0>a.left&&xi(a.left,">= 0",gn,"padding:value.left"),0>a.right&&xi(a.right,">= 0",gn,"padding:value.right"),0>a.top&&xi(a.top,">= 0",gn,"padding:value.top"),0>a.bottom&&xi(a.bottom,">= 0",gn,"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:uo},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Oa),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new Oa),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 Oa),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ye("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Oa),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new Oa),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 Oa),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ye("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Oa),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 Oa),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||Ye("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&kl(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()||Ye("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&kl(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 pu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),qo(this)&&(a=this.part,a!==null&&Fr(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 pu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),qo(this)&&(a=this.part,a!==null&&Fr(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 pu),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 pu),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 pu,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 pu,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 pu,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 pu,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 Oa),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Oa),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:km},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Oa),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:km},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Oa),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)&&Ye("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Oa),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)&&Ye("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Oa),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 $n&&!(this instanceof Ki);Ka(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof xn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof $n&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new ld),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(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 pn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof $n||a.isPanelMain)&&Ye("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(););Li(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&&(Li(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 mi&&(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&&Am(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))}}}),sn.Object.defineProperties(gn,{Position:{get:function(){return rl.I("Position")}},Horizontal:{get:function(){return rl.I("Horizontal")}},Vertical:{get:function(){return rl.I("Vertical")}},Spot:{get:function(){return rl.I("Spot")}},Auto:{get:function(){return rl.I("Auto")}},Table:{get:function(){return rl.I("Table")}},Viewbox:{get:function(){return rl.I("Viewbox")}},TableRow:{get:function(){return rl.I("TableRow")}},TableColumn:{get:function(){return rl.I("TableColumn")}},Link:{get:function(){return rl.I("Link")}},Grid:{get:function(){return rl.I("Grid")}},Graduated:{get:function(){return rl.I("Graduated")}}}),gn.prototype.rebuildItemElements=gn.prototype.mv,gn.prototype.findItemPanelForData=gn.prototype.sx,gn.prototype.updateTargetBindings=gn.prototype.La,gn.prototype.copyTemplate=gn.prototype.Uy,gn.prototype.graduatedValueForPoint=gn.prototype.Gz,gn.prototype.graduatedPointForValue=gn.prototype.Fz,gn.prototype.findColumnForLocalX=gn.prototype.fz,gn.prototype.findRowForLocalY=gn.prototype.nz,gn.prototype.addColumnDefinition=gn.prototype.By,gn.prototype.addRowDefinition=gn.prototype.Hy,gn.prototype.addRowColumnDefinition=gn.prototype.Gy,gn.prototype.removeColumnDefinition=gn.prototype.jA,gn.prototype.getColumnDefinition=gn.prototype.Eb,gn.prototype.removeRowDefinition=gn.prototype.oA,gn.prototype.getRowDefinition=gn.prototype.Fb,gn.prototype.removeAt=gn.prototype.mb,gn.prototype.remove=gn.prototype.remove,gn.prototype.insertAt=gn.prototype.Gb,gn.prototype.elt=gn.prototype.M,gn.prototype.add=gn.prototype.add,gn.prototype.findObject=gn.prototype.fb,gn.prototype.findInVisualTree=gn.prototype.Nl,gn.prototype.walkVisualTreeFrom=gn.prototype.qm,gn.prototype.findMainElement=gn.prototype.Pb;var p1=!1,m1=null,rl=new pn;gn.className="Panel",gn.definePanelLayout=Nl,Nl("Position",new dm),Nl("Vertical",new gm),Nl("Auto",new mm),Nl("Link",new Pm);function pu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}pu.prototype.copy=function(){var a=new pu;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},pu.className="GradPanelSettings";function Oa(){this.Pc=[],this.Oc=[],this.j=this.ob=km,this.hb=this.Hb=0,this.Qp=uo,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Oa.prototype.copy=function(a){for(var y=new Oa,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);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},Oa.className="TablePanelSettings";function Co(a){je(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=ns,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=yi,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))}Co.prototype.copy=function(){var a=new Co;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=tr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Lm(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=tr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ut=Co.prototype,Ut.qb=function(a){a.classType===Co&&(this.sizing=a)},Ut.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Me(this)},Ut.wi=function(a){this.Me=a},Ut.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)},Ut.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===gn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Ut.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Wr,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Em(a){if(a.sizing===bv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ut.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new mo(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Ye("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Cn),this.be.add(E),this},sn.Object.defineProperties(Co.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&&xi(a,">= 0",Co,"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&&xi(a,">= 0",Co,"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))&&xi(a,">= 0",Co,"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&&xi(a,">= 0",Co,"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 ii(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&&hd(a,"RowColumnDefinition.separatorStroke"),a instanceof hr&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||Ye("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&hd(a,"RowColumnDefinition.background"),a instanceof hr&&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}}}),Co.prototype.computeEffectiveSpacing=Co.prototype.Wc,Co.prototype.computeEffectiveSpacingTop=Co.prototype.Io;var bv=new qe(Co,"Default",0),_g=new qe(Co,"None",1),km=new qe(Co,"ProportionalExtra",2);Co.className="RowColumnDefinition",Co.Default=bv,Co.None=_g,Co.ProportionalExtra=km;function Ci(a,y){Re.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(Ci,Re),Ci.prototype.cloneProtected=function(a){Re.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=tr(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 wc(a){a.Na===null?a.Na=new Ev:a.Na.nc&&(a.Na=a.Na.copy())}Ut=Ci.prototype,Ut.th=function(){Re.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ut.qb=function(a){a===hn||a===Gn||a===ji||a===yi?this.geometryStretch=a:Re.prototype.qb.call(this,a)},Ut.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Me(this)};function vf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ht,dt,yt,Tt,zt,Gt,ee=0,ye=li(),ge=2;ge<E;ge+=2)ht=x[ge],dt=x[ge+1],yt=ht-ot,ot=dt-at,yt===0&&(yt=.001),Tt=ot/yt,zt=Math.atan2(ot,yt),Gt=Math.sqrt(yt*yt+ot*ot),ye.push([yt,zt,Tt,Gt]),ee+=Gt,ot=ht,at=dt;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof Ci&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ht=nt/2,dt=ht!==0,ge=0,Gt=ye[ge],yt=Gt[0],zt=Gt[1],Tt=Gt[2],Gt=Gt[3];for(var Ce=0;.1<=ee;){if(Ce===0&&(dt?(E=x,E-=ht,ee-=ht,dt=!1):E=x,E===0&&(E=1)),E>ee){ai(ye);return}E>Gt?(Ce=E-Gt,E=Gt):Ce=0;var be=Math.sqrt(E*E/(1+Tt*Tt));if(0>yt&&(be=-be),ot+=be,at+=Tt*be,a.translate(ot,at),a.rotate(zt),a.translate(-(nt/2),-(z/2)),Ce===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-zt),a.translate(-ot,-at),ee-=E,Gt-=E,Ce!==0){if(ge++,ge===ye.length){ai(ye);return}Gt=ye[ge],yt=Gt[0],zt=Gt[1],Tt=Gt[2],Gt=Gt[3],E=Ce}}ai(ye)}}Ut.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,nt=this.naturalBounds;b!==null&&$r(this,a,b,!0,!1,nt,z);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===gn.Link&&ot instanceof Ki&&ot.category==="Selection"&&ot.adornedObject instanceof Ci&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&($r(this,a,x,!1,!1,nt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),nt=!1,at=this.strokeDashArray,at!==null&&(nt=!0,a.js(at,this.strokeDashOffset)),E.type===bn.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===bn.u){var ht=E.startX;at=E.startY;var dt=E.endX,yt=E.endY;E=Math.min(ht,dt);var Tt=Math.min(at,yt);ht=Math.abs(dt-ht),at=Math.abs(yt-at),a.beginPath(),a.rect(E,Tt,ht,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&Gl(a),a.jk(),ot&&z&&cu(a)),a.Se()}else if(E.type===bn.F)ht=E.startX,at=E.startY,dt=E.endX,yt=E.endY,E=Math.abs(dt-ht)/2,Tt=Math.abs(yt-at)/2,ht=Math.min(ht,dt)+E,at=Math.min(at,yt)+Tt,a.beginPath(),a.moveTo(ht,at-Tt),a.bezierCurveTo(ht+ze.wg*E,at-Tt,ht+E,at-ze.wg*Tt,ht+E,at),a.bezierCurveTo(ht+E,at+ze.wg*Tt,ht+ze.wg*E,at+Tt,ht,at+Tt),a.bezierCurveTo(ht-ze.wg*E,at+Tt,ht-E,at+ze.wg*Tt,ht-E,at),a.bezierCurveTo(ht-E,at-ze.wg*Tt,ht-ze.wg*E,at-Tt,ht,at-Tt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&Gl(a),a.jk(),ot&&z&&cu(a)),a.Se();else if(E.type===bn.o)for(E=E.figures,at=E.length,Tt=0;Tt<at;Tt++){ht=E.s[Tt],a.beginPath(),a.moveTo(ht.startX,ht.startY),dt=ht.segments.s,yt=dt.length;for(var zt=null,Gt=0;Gt<yt;Gt++){var ee=dt[Gt];switch(ee.type){case Oo:a.moveTo(ee.endX,ee.endY);break;case Tr:a.lineTo(ee.endX,ee.endY);break;case is:a.bezierCurveTo(ee.point1X,ee.point1Y,ee.point2X,ee.point2Y,ee.endX,ee.endY);break;case ma:a.quadraticCurveTo(ee.point1X,ee.point1Y,ee.endX,ee.endY);break;case So:if(ee.radiusX===ee.radiusY){var ye=Math.PI/180;a.arc(ee.point1X,ee.point1Y,ee.radiusX,ee.startAngle*ye,(ee.startAngle+ee.sweepAngle)*ye,0>ee.sweepAngle,zt!==null?zt.endX:ht.startX,zt!==null?zt.endY:ht.startY)}else if(zt=ra(ee,ht),ye=zt.length,ye===0)a.lineTo(ee.centerX,ee.centerY);else for(var ge=0;ge<ye;ge++){var Ce=zt[ge];ge===0&&a.lineTo(Ce[0],Ce[1]),a.bezierCurveTo(Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7])}break;case Aa:if(ge=ye=0,zt!==null&&zt.type===So){if(zt=ra(zt,ht),Ce=zt.length,Ce===0){a.lineTo(ee.endX,ee.endY);break}zt=zt[Ce-1]||null,zt!==null&&(ye=zt[6],ge=zt[7])}else ye=zt!==null?zt.endX:ht.startX,ge=zt!==null?zt.endY:ht.startY;if(zt=za(ee,ht,ye,ge),ye=zt.length,ye===0){a.lineTo(ee.endX,ee.endY);break}for(ge=0;ge<ye;ge++)Ce=zt[ge],a.bezierCurveTo(Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7]);break;default:Ye("Segment not of valid type: "+ee.type)}ee.isClosed&&a.closePath(),zt=ee}dt=ht.isFilled,z?ht.isShadowed?(dt===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(dt&&ot&&Gl(a),a.jk(),dt&&ot&&cu(a))):(Gl(a),dt&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),cu(a)):(dt&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(Tt)}if(nt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=li(),z.type===bn.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),vf(a,y,b,x);else if(z.type===bn.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,E=ot.startY,at=nt,Tt=E,ht=ot.segments.s,dt=ht.length,yt=0;yt<dt;yt++){switch(Gt=ht[yt],Gt.type){case Oo:vf(a,y,b,x),b.length=0,b.push(Gt.endX),b.push(Gt.endY),nt=Gt.endX,E=Gt.endY,at=nt,Tt=E;break;case Tr:b.push(Gt.endX),b.push(Gt.endY),nt=Gt.endX,E=Gt.endY;break;case is:ze.Qe(nt,E,Gt.point1X,Gt.point1Y,Gt.point2X,Gt.point2Y,Gt.endX,Gt.endY,.5,b),nt=Gt.endX,E=Gt.endY;break;case ma:ze.ep(nt,E,Gt.point1X,Gt.point1Y,Gt.endX,Gt.endY,.5,b),nt=Gt.endX,E=Gt.endY;break;case So:if(ee=ra(Gt,ot),zt=ee.length,zt===0){b.push(Gt.centerX),b.push(Gt.centerY),nt=Gt.centerX,E=Gt.centerY;break}for(ye=0;ye<zt;ye++)ge=ee[ye],ze.Qe(nt,E,ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,b),nt=ge[6],E=ge[7];break;case Aa:if(ee=za(Gt,ot,nt,E),zt=ee.length,zt===0){b.push(Gt.endX),b.push(Gt.endY),nt=Gt.endX,E=Gt.endY;break}for(ye=0;ye<zt;ye++)ge=ee[ye],ze.Qe(nt,E,ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,b),nt=ge[6],E=ge[7];break;default:Ye("Segment not of valid type: "+Gt.type)}Gt.isClosed&&(b.push(at),b.push(Tt),vf(a,y,b,x))}vf(a,y,b,x)}else if(z.type===bn.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),vf(a,y,b,x);else if(z.type===bn.F){if(E=new Fo,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new Xi(So),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=ra(nt,E),ot=z.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,at=0;at<ot;at++)Tt=z[at],ze.Qe(nt,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),nt=Tt[6],E=Tt[7];vf(a,y,b,x)}ai(b),a.restore(),a.Vc(!1)}}}},Ut.kk=function(a,y,x){return!Re.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)},Ut.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Re.prototype.nk.call(this,a)},Ut.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)}},Ut.ga=function(a,y){if(y===void 0&&(y=new de),a instanceof _n){a.Mc()&&Ye("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ut.mi=function(a){a===void 0&&(a=new Je);var y=this.naturalBounds,x=this.oe;y=Je.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=de.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),ur(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),ur(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),ur(a,b.x,b.y,0,0),Je.free(y),de.free(b),a},Ut.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==bn.j||y||(E+=2);var z=Je.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Je.free(z),!1;if(b=E+1e-4,x.type===bn.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(Je.free(z),ze.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===bn.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(nt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return Je.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Je.free(z),a}if(x.type===bn.F){nt=x.startX,E=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(E,at),nt=Math.abs(ot-nt)/2,E=Math.abs(at-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return Je.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),Je.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===bn.o)return Je.free(z),this.fill===null?hh(x,a.x,a.y,E):nu(x,a,E,1<this.strokeWidth,y);Ye("Unknown Geometry type: "+x.type)},Ut.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ot=this.figure,at=Lv[ot];if(at===void 0){var ht=ze.Ze[ot];typeof ht=="string"&&(ht=ze.Ze[ht]),typeof ht=="function"?(at=ht(null,100,100),Lv[ot]=at):Ye("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ht=nt.width;var dt=nt.height;switch(_s(this,!0)){case hn:b=x=0;break;case fn:ht=Math.max(a-z,0),dt=Math.max(y-z,0);break;case Jn:ht=Math.max(a-z,0),b=0;break;case oi:x=0,dt=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(dt=E.height);var yt=this.maxSize,Tt=this.minSize;switch(x=Math.max(x-z,Tt.width),b=Math.max(b-z,Tt.height),ht=Math.min(yt.width,ht),dt=Math.min(yt.height,dt),ht=isFinite(ht)?Math.max(x,ht):Math.max(ot,x),dt=isFinite(dt)?Math.max(b,dt):Math.max(at,b),x=Av(this),x){case hn:break;case fn:ot=ht,at=dt;break;case Gn:x=Math.min(ht/ot,dt/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:Ye(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ot/nt.width,nt=at/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&ze.$(this.ua.Sk,a-z)&&ze.$(this.ua.Rk,y-z)||(this.ua=Ci.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ht+z,dt+z),E.w()?(ht=E.width,dt=E.height,ht=Math.min(yt.width,ht),dt=Math.min(yt.height,dt),ht=Math.max(Tt.width,ht),dt=Math.max(Tt.height,dt),this.dc.h(0,0,ht,dt)):this.dc.assign(nt)};function Av(a){var y=a.geometryStretch;return a.Rd!==null?y===yi?fn:y:y===yi?Lv[a.figure].defaultStretch:y}Ut.eh=function(a,y,x,b){vs(this,a,y,x,b)},Ut.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ut.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),Tt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ht+yt,nt=a*at+y*dt+Tt,ot=x*ot+b*ht+yt,at=x*at+b*dt+Tt,yt=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var zt=ht.bounds;if(dt=!1,ht.type===bn.j)if(1.5>=this.strokeWidth)dt=ze.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,ot,at,E);else{if(ht.startX===ht.endX?(b=yt,dt=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),dt=yt/Math.sqrt(1+y*y),b=dt*y),y=li(),a=new de,ze.Ve(ht.startX+b,ht.startY+dt,ht.endX+b,ht.endY+dt,z,nt,ot,at,a)&&y.push(a),a=new de,ze.Ve(ht.startX-b,ht.startY-dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),a=new de,ze.Ve(ht.startX+b,ht.startY+dt,ht.startX-b,ht.startY-dt,z,nt,ot,at,a)&&y.push(a),a=new de,ze.Ve(ht.endX+b,ht.endY+dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return ai(y),!1;for(dt=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);ai(y)}else if(ht.type===bn.u)dt=ze.Ff(zt.x-yt,zt.y-yt,zt.x+zt.width+yt,zt.y+zt.height+yt,z,nt,ot,at,E);else if(ht.type===bn.F){y=Je.allocAt(zt.x,zt.y,zt.width,zt.height).Bc(yt,yt);t:if(y.width===0)dt=ze.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)dt=ze.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ht=y.height/2,b=y.x+a,dt=y.y+ht,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-dt-x*(z-b),0>a*a*x*x+ht*ht-at*at){E.x=NaN,E.y=NaN,dt=!1;break t}yt=Math.sqrt(a*a*x*x+ht*ht-at*at),ot=(-(a*a*x*at)+a*ht*yt)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*at)-a*ht*yt)/(ht*ht+a*a*x*x)+b,ht=x*(ot-b)+at+dt,at=x*(a-b)+at+dt,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ht)*(nt-ht))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ht):(E.x=a,E.y=at)}else{if(ot=ht*ht,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,dt=!1;break t}at=Math.sqrt(ot),ot=dt+at,at=dt-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}dt=!0}Je.free(y)}else if(ht.type===bn.o){Tt=de.alloc();var Gt=ot-z,ee=at-nt,ye=Gt*Gt+ee*ee,ge=z,Ce=nt;if(0<ye&&zt.contains(ge,Ce)&&(Tt.x=ge,Tt.y=Ce,this.ca(Tt)))for(Gt!==0&&.5>Math.abs(Gt)?(ee*=.5/Gt,Gt=.5):ee!==0&&.5>Math.abs(ee)&&(Gt*=.5/ee,ee=.5),ge-=Gt,Ce-=ee;zt.contains(ge,Ce);)ge-=Gt,Ce-=ee;for(E.x=ot,E.y=at,ee=0;ee<ht.figures.count;ee++){var be=ht.figures.s[ee],Ee=be.isFilled?ge:z,Be=be.isFilled?Ce:nt,He=be.segments;zt=be.startX,Gt=be.startY;for(var Mn=zt,Un=Gt,Dn=0;Dn<He.count;Dn++){var Sn=He.s[Dn],an=Sn.type,pi=Sn.endX,ci=Sn.endY,Ji=!1;switch(an){case Oo:Mn=pi,Un=ci;break;case Tr:Ji=Tm(zt,Gt,pi,ci,Ee,Be,ot,at,Tt);break;case is:Ji=ze.Eo(zt,Gt,Sn.point1X,Sn.point1Y,Sn.point2X,Sn.point2Y,pi,ci,Ee,Be,ot,at,.6,Tt);break;case ma:Ji=ze.Eo(zt,Gt,zt+2/3*(Sn.point1X-zt),Gt+2/3*(Sn.point1Y-Gt),pi+2/3*(Sn.point1X-pi),ci+2/3*(Sn.point1Y-ci),pi,ci,Ee,Be,ot,at,.6,Tt);break;case So:case Aa:an=Sn.type===So?ra(Sn,be):za(Sn,be,zt,Gt);var Pr=an.length;if(Pr===0){Ji=Tm(zt,Gt,Sn.type===So?Sn.centerX:Sn.endX,Sn.type===So?Sn.centerY:Sn.endY,Ee,Be,ot,at,Tt);break}for(ci=null,pi=0;pi<Pr;pi++){if(ci=an[pi],pi===0&&Tm(zt,Gt,ci[0],ci[1],Ee,Be,ot,at,Tt)){var Bo=Mm(Ee,Be,Tt,ye,E);Bo<ye&&(ye=Bo,dt=!0)}ze.Eo(ci[0],ci[1],ci[2],ci[3],ci[4],ci[5],ci[6],ci[7],Ee,Be,ot,at,.6,Tt)&&(Bo=Mm(Ee,Be,Tt,ye,E),Bo<ye&&(ye=Bo,dt=!0))}pi=ci[6],ci=ci[7];break;default:Ye("Unknown Segment type: "+an)}zt=pi,Gt=ci,Ji&&(Ji=Mm(Ee,Be,Tt,ye,E),Ji<ye&&(ye=Ji,dt=!0)),Sn.isClosed&&(pi=Mn,ci=Un,Tm(zt,Gt,pi,ci,Ee,Be,ot,at,Tt)&&(Sn=Mm(Ee,Be,Tt,ye,E),Sn<ye&&(ye=Sn,dt=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*yt,E.y-=nt*yt,de.free(Tt)}else Ye("Unknown Geometry type: "+ht.type);return dt?(this.transform.Ga(E),!0):!1};function Mm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Tm(a,y,x,b,E,z,nt,ot,at){if(ze.$(a,x)&&ze.$(y,b)||ze.$(E,nt)&&ze.$(z,ot))return!1;var ht=!1,dt=(E-nt)*(y-b)-(z-ot)*(a-x);return dt===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/dt,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/dt,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||ze.$(at.y,a))&&(at.y<y||ze.$(at.y,y))&&(ht=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||ze.$(at.x,y))&&(at.x<a||ze.$(at.x,a))&&(ht=!0)),ht)}Ut.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=de.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),de.free(z),E},Ut.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=ki.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=de.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return de.free(nt),!0;var ot=de.alloc(),at=de.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,Pc(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),Pc(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),Pc(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),Pc(this,nt,ot,at)&&(y=!0)))),de.free(nt),ki.free(x),de.free(ot),de.free(at),y};function Pc(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Ut.tx=function(a,y,x){function b(ye,ge){for(var Ce=ye.length,be=0;be<Ce;be+=2)if(ge.zd(ye[be],ye[be+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var nt=y.bounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width;if(nt=nt.y+nt.height,Qn(a.x,a.y,ot,at)<=E&&Qn(a.x,a.y,ht,at)<=E&&Qn(a.x,a.y,ot,nt)<=E&&Qn(a.x,a.y,ht,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ht=y.endX,nt=y.endY,y.type===bn.j){if(x=(ot-ht)*(a.x-ht)+(at-nt)*(a.y-nt),wi(a.x,a.y,ot,at,ht,nt)<=(0<=(ht-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===bn.u)return y=!1,x&&(y=wi(a.x,a.y,ot,at,ot,nt)<=E||wi(a.x,a.y,ot,at,ht,at)<=E||wi(a.x,a.y,ht,at,ht,nt)<=E||wi(a.x,a.y,ot,nt,ht,nt)<=E),y;if(y.type===bn.F){y=a.x-(ot+ht)/2,z=a.y-(at+nt)/2;var dt=Math.abs(ht-ot)/2,yt=Math.abs(nt-at)/2;if(dt===0||yt===0)return wi(a.x,a.y,ot,at,ht,nt)<=E;if(x){if(a=ze.$y(dt,yt,y,z),a*a<=E)return!0}else return!(Qn(y,z,-dt,0)>=E||Qn(y,z,0,-yt)>=E||Qn(y,z,0,yt)>=E||Qn(y,z,dt,0)>=E)}else if(y.type===bn.o){if(ht=y.bounds,z=ht.x,ot=ht.y,at=ht.x+ht.width,ht=ht.y+ht.height,a.x>at&&a.x<z&&a.y>ht&&a.y<ot&&wi(a.x,a.y,z,ot,z,ht)>E&&wi(a.x,a.y,z,ot,at,ot)>E&&wi(a.x,a.y,at,ht,z,ht)>E&&wi(a.x,a.y,at,ht,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?hh(y,a.x,a.y,z):nu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,dt=z.startY,a.zd(nt,dt)>E)return!1;for(ot=z.segments.s,at=ot.length,ht=0;ht<at;ht++)switch(yt=ot[ht],yt.type){case Oo:case Tr:if(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E)return!1;break;case is:var Tt=li();if(ze.Qe(nt,dt,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,Tt),nt=b(Tt,a),ai(Tt),nt||(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E))return!1;break;case ma:if(Tt=li(),ze.ep(nt,dt,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,Tt),nt=b(Tt,a),ai(Tt),nt||(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E))return!1;break;case So:case Aa:Tt=yt.type===So?ra(yt,z):za(yt,z,nt,dt);var zt=Tt.length;if(zt===0){if(nt=yt.type===So?yt.centerX:yt.endX,dt=yt.type===So?yt.centerY:yt.endY,a.zd(nt,dt)>E)return!1;break}yt=null;for(var Gt=li(),ee=0;ee<zt;ee++)if(yt=Tt[ee],Gt.length=0,ze.Qe(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.8,Gt),b(Gt,a))return ai(Gt),!1;ai(Gt),yt!==null&&(nt=yt[6],dt=yt[7]);break;default:Ye("Unknown Segment type: "+yt.type)}}return!0}}}return!1},Ut.qc=function(){this.ua=null},Ut.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Jg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=fs):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new _n(1-fs.x,fs.y)))}Ci.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Kl[a.toArrow];else a.fromArrow!=="None"?b=Kl[a.fromArrow]:(b=ze.Ze[a.figure],typeof b=="string"&&(b=ze.Ze[b]),b===void 0&&Ye("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=ze.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Kl[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Kl[x],y===void 0){var b=null,E;for(E in ze.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=bn.parse(ze.um[b],!1),Kl[b]=a,x!==b&&(Kl[x]=b),b}}return typeof y=="string"?y:y instanceof bn?a:null}sn.Object.defineProperties(Ci.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),qo(this)&&(a=this.part,a!==null&&Fr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=bn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=de.allocAt(-y.x,-y.y),de.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&&hd(a,"Shape.fill"),a instanceof hr&&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&&hd(a,"Shape.stroke"),a instanceof hr&&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 xi(a,"value >= 0",Ci,"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"?xi(a,'"butt", "round", or "square"',Ci,"strokeCap"):(wc(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"?xi(a,'"miter", "bevel", or "round"',Ci,"strokeJoin"):(wc(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){wc(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||Ye("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(wc(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=ze.Ze[a];typeof x=="function"?x=a:(x=ze.Ze[a.toLowerCase()])||Ye("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=y1(a);x===null?Ye("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Mh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(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=y1(a);x===null?Ye("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Mh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:ns},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),wc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:ns},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),wc(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&&(wc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:yi},set:function(a){var y=this.geometryStretch;y!==a&&(wc(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 Vl),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&kl(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 Vl),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 Vl),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 Vl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Ci.prototype.intersectsRect=Ci.prototype.Yc,Ci.prototype.containedInRect=Ci.prototype.fh,Ci.prototype.getNearestIntersectionPoint=Ci.prototype.rs,Ci.prototype.getDocumentBounds=Ci.prototype.mi,Ci.prototype.getDocumentPoint=Ci.prototype.ga;var Kl=new Pi,Lv=new Pi;Ci.className="Shape",Ci.getFigureGenerators=function(){var a=new pn,y;for(y in ze.Ze)y!==y.toLowerCase()&&a.add(y,ze.Ze[y]);return a.freeze(),a},Ci.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=ze.Ze;b[a]=y,b[x]=a},Ci.getArrowheadGeometries=function(){var a=new pn;for(b in ze.um)if(Kl[b]===void 0){var y=bn.parse(ze.um[b],!1);Kl[b]=y,y=b.toLowerCase(),y!==b&&(Kl[y]=b)}for(var x in Kl)if(x!==x.toLowerCase()){var b=Kl[x];b instanceof bn&&a.add(x,b)}return a.freeze(),a},Ci.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=bn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ye("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Kl;b[a]=x,b[y]=a};function Ev(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=yi,this.gg=this.fg=ns}Ev.prototype.copy=function(){var a=new Ev;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Cr(a,y){return Re.call(this),Bm||(Ws=Qr?new Ha(null).context:null,Bm=!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(Cr,Re),Cr.prototype.cloneProtected=function(a){Re.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 Fl(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}Ut=Cr.prototype,Ut.th=function(){Re.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(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}Ut.qb=function(a){a.classType===Cr?this.wrap=a:Re.prototype.qb.call(this,a)},Ut.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ut.v=function(){Re.prototype.v.call(this)},Ut.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,nt=Gg(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ht=this.isStrikethrough;$r(this,a,this.xc,!0,!1,x,b),(at||ht)&&$r(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var dt=this.oe,yt=dt.dx-(nt*dt.m21+dt.dx);dt=dt.dy-(nt*dt.m22+dt.dy);var Tt=y.scale;switch(8>(yt*yt+dt*dt)*Tt*Tt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof aa&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,yt=this.spacingBelow,this.flip){case _i:a.translate(E,0),a.scale(-1,1);break;case Ei:a.translate(0,z),a.scale(1,-1);break;case vr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),dt=this.Gc,Tt=(y+nt+yt)*dt,z>Tt&&(b=this.verticalAlignment,b=b.y*z-b.y*Tt+b.offsetY),dt===1&&this.ze!==null)yt=this.Cb,yt>E&&(yt=E),this.Oj(this.ze,a,0,b+y,E,nt,yt,x,ot,at,ht);else if(this.Qc!==null&&this.Qb!==null)for(Tt=0;Tt<dt;Tt++){var zt=this.Qc[Tt];zt>E&&(zt=E),b+=y,this.Oj(this.Qb[Tt],a,0,b,E,nt,zt,x,ot,at,ht),b+=nt+yt}switch(this.flip){case _i:a.scale(-1,1),a.translate(-E,0);break;case Ei:a.scale(1,-1),a.translate(0,-z);break;case vr:a.scale(-1,-1),a.translate(-E,-z)}}},Ut.Oj=function(a,y,x,b,E,z,nt,ot,at,ht,dt){var yt=0;if(ot)at==="left"?yt=0:at==="right"?yt=E-nt:at==="center"&&(yt=(E-nt)/2),y.fillRect(x+yt,b+.25*z,nt,1);else{if(at==="left"?yt=0:at==="right"?yt=E:at==="center"&&(yt=E/2),E=Nm!==null?Nm(this,z):.75*z,y.fillText(a,x+yt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?yt-=nt:at==="center"&&(yt-=nt/2),ht){ot=Fm!==null?Fm(this,z):.8*z,at=x+yt,ht=b+ot,E=x+yt+nt,ot=b+ot;var Tt=a;y.beginPath(),y.lineWidth=Tt,y.moveTo(at,ht),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof aa&&y.ad.classList.add("gojs-td")}dt&&(dt=b+z-z/2.2|0,a%2!==0&&(dt+=.5),b=x+yt,z=dt,x=x+yt+nt,nt=dt,yt=a,y.beginPath(),y.lineWidth=yt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof aa&&y.ad.classList.add("gojs-td"))}},Ut.kk=function(a,y,x){if(!Re.prototype.kk.call(this,a,y,x))return!1;if($r(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,qy(a,y,!0);return!0},Ut.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Re.prototype.nk.call(this,a)},Ut.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)}},Ut.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Ws!==null&&L1!==z&&(L1=Ws.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;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 ot=nt=0,at=!1;!at;){var ht=z.indexOf(`
|
|
`,ot);ht===-1&&(ht=z.length,at=!0),ot=z.substr(ot,ht-ot),this.formatting===Hg&&(ot=ot.trim()),nt=Math.max(nt,ol(ot)),ot=ht+1}z=nt}else nt=z.indexOf(`
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=ol(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)),nt=w1(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Om&&(y=this.Ae,y=this.overflow===Om?x1(y):0,ht=this.spacingAbove+this.spacingBelow,ht=Math.max(0,Gg(this)+ht),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ht+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ht=this.Qb[at],y=Math.max(1,a-y);ol(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=Kg,y=ol(ht),this.Qb[at]=ht,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===P1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Kr(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ut.eh=function(a,y,x,b){vs(this,a,y,x,b)};function Wg(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 kv(a,y,x,b){var E=a.formatting===Hg;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Gg(a)+ot);var at=a.overflow===Om?x1(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Mv){a.Le=1;var ht=ol(y);if(at===0||ht<=x)a.Cb=Math.max(a.Cb,ht),Wg(a,y,a.Cb),b!==null&&b.h(ht,ot);else{for(z=yf(a,nt),nt=nt.substr(z.length),y=yf(a,nt),ht=ol(z+y);0<y.length&&ht<=x;)z+=y,nt=nt.substr(y.length),y=yf(a,nt),ht=z+y,E&&(ht=ht.trim()),ht=ol(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);ol(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Kg;var dt=ol(z);a.Cb=dt,Wg(a,z,dt),b!==null&&b.h(dt,ot)}}else{for(at=0,nt.length===0&&(at=1,Wg(a,nt,0));0<nt.length;){for(y=yf(a,nt),nt=nt.substr(y.length);ol(y)>x;){var yt=1;for(ht=ol(y.substr(0,yt)),dt=0;ht<=x;)yt++,dt=ht,ht=ol(y.substr(0,yt));if(yt===1){var Tt=ht;z=Math.max(z,ht)}else Tt=dt,z=Math.max(z,dt);if(yt--,1>yt&&(yt=1),Wg(a,y.substr(0,yt),Tt),at++,y=y.substr(yt),a.Gc+at>a.maxLines)break}for(dt=yf(a,nt),ht=ol(y+dt);0<dt.length&&ht<=x;)y+=dt,nt=nt.substr(dt.length),dt=yf(a,nt),ht=y+dt,E&&(ht=ht.trim()),ht=ol(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),dt.length===0?(yt=ht,z=Math.max(z,ht)):(yt=dt=ol(y),z=Math.max(z,dt)),Wg(a,y,yt),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function yf(a,y){if(a.wrap===C1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===b1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function ol(a){return Ws===null?8*a.length:Ws.measureText(a).width}function Gg(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ws===null){var x=16;return a.df=x}return Fv[y]!==void 0&&5e3>A1?x=Fv[y]:(x=1.3*Ws.measureText("M").width,Fv[y]=x,A1++),a.df=x}function x1(a){if(Ws===null)return 6;if(Dm[a]!==void 0&&5e3>Ov)var y=Dm[a];else y=Ws.measureText(Kg).width,Dm[a]=y,Ov++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Gg(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
|
|
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
|
|
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Mv){a.Le=0;var at=on.alloc();kv(a,z,y,at),E+=at.height,on.free(at),a.Gc+=a.Le}else kv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}sn.Object.defineProperties(Cr.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"||(Fl(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:hn},set:function(a){var y=this.flip;y!==a&&(Fl(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ic},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Fl(this),this.da.Yr=a,Es(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=on.alloc();kv(this,this.ec,999999,a);var y=a.width;on.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Kr(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:Tv},set:function(a){var y=this.wrap;y!==a&&(Fl(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(Fl(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&&hd(a,"TextBlock.stroke"),a instanceof hr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Gg(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&&(Fl(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&&(Fl(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 Vl),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 Vl),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 Vl),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 Vl),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 Vl),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&&(Fl(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&&(Fl(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&&(Fl(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&&(Fl(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Hg},set:function(a){var y=this.formatting;y!==a&&(Fl(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&&xi(a,"> 0",Cr,"maxLines"),Fl(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Nm=null,Fm=null,Mv=new qe(Cr,"None",0),P1=new qe(Cr,"WrapFit",1),Tv=new qe(Cr,"WrapDesiredSize",2),C1=new qe(Cr,"WrapBreakAll",3),Nv=new qe(Cr,"OverflowClip",0),Om=new qe(Cr,"OverflowEllipsis",1),Hg=new qe(Cr,"FormatTrim",0),b1=new qe(Cr,"FormatNone",0),xx=/[ \u200b\u00ad]/,Fv=new Pi,A1=0,Dm=new Pi,Ov=0,Kg="...",L1="",Ws=null,Bm=!1;Cr.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=hn,this.gq=Hg,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ic,this.$r=Tv}Dv.prototype.copy=function(){var a=new Dv;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},Cr.getEllipsis=function(){return Kg},Cr.setEllipsis=function(a){Kg=a,Dm=new Pi,Ov=0},Cr.getBaseline=function(){return Nm},Cr.setBaseline=function(a){Nm=a},Cr.getUnderline=function(){return Fm},Cr.setUnderline=function(a){Fm=a},Cr.isValidFont=function(a){if(Bm||(Ws=Qr?new Ha(null).context:null,Bm=!0),Ws===null)return!0;var y=Ws.font;if(a===y||a==="10px sans-serif")return!0;Ws.font="10px sans-serif",Ws.font=a;var x=Ws.font;if(x!=="10px sans-serif")return Ws.font=y,!0;Ws.font="19px serif";var b=Ws.font;return Ws.font=a,x=Ws.font,Ws.font=y,x!==b},Cr.FormatNone=b1,Cr.FormatTrim=Hg,Cr.None=Mv,Cr.OverflowClip=Nv,Cr.OverflowEllipsis=Om,Cr.WrapBreakAll=C1,Cr.WrapDesiredSize=Tv,Cr.WrapFit=P1;function Vl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Vl.prototype.copy=function(){var a=new Vl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Vl.className="GradElementSettings";function Gs(a,y){Re.call(this),this.Eg=null,this.qo="",this.Xg=sr,this.Nk=fn,this.Zg=this.Hd=null,this.Mk=Gi,this.Xf=hn,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 Sf;We(Gs,Re),Gs.prototype.cloneProtected=function(a){Re.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},Gs.prototype.qb=function(a){a===hn||a===Gn||a===ji?this.imageStretch=a:Re.prototype.qb.call(this,a)},Gs.prototype.toString=function(){return"Picture("+this.source+")#"+Me(this)};function xf(a){a===void 0&&(a=""),a!==""?Sf[a]&&(delete Sf[a],Im--):(Sf=new Pi,Im=0)}function E1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Po(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=li();for(var ot=0;ot<E;ot++)z.push(nt[ot]);if(y.hn)for(ot=0;ot<E;ot++)nt=z[ot],nt.Hd!==null&&nt.Hd(nt,x);ai(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Gs.prototype.hA=function(){if(this.source!==""){xf(this.source);var a=this.source;this.source="",this.source=a}},Gs.prototype.redraw=function(){this.N(),this.Uc=!0},Gs.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Sc)){var E=a instanceof aa;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ht=at,dt=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var yt=at,Tt=ot,zt=this.Nk,Gt=this.Mk;switch(zt){case hn:if(this.sourceRect.w())break;yt>=b.width&&(z=z+Gt.offsetX+(yt*Gt.x-b.width*Gt.x)),Tt>=b.height&&(nt=nt+Gt.offsetY+(Tt*Gt.y-b.height*Gt.y)),at=Math.min(b.width,yt),ot=Math.min(b.height,Tt);break;case fn:yt=b.width,Tt=b.height;break;case Gn:case ji:zt===Gn?(zt=Math.min(b.height/Tt,b.width/yt),yt*=zt,Tt*=zt):zt===ji&&(zt=Math.max(b.height/Tt,b.width/yt),yt*=zt,Tt*=zt,yt>=b.width&&(z=(z+Gt.offsetX+(yt*Gt.x-b.width*Gt.x)/yt)*at),Tt>=b.height&&(nt=(nt+Gt.offsetY+(Tt*Gt.y-b.height*Gt.y)/Tt)*ot),at*=1/(yt/b.width),ot*=1/(Tt/b.height),yt=b.width,Tt=b.height)}zt=this.Df()*y.scale;var ee=yt*zt*Tt*zt,ye=at*ot/ee,ge=x.__goCache;zt=null;var Ce=wx;if(!E){if(x.sq&&ge!==void 0&&4<ee&&ye>Ce*Ce)for(ge.gi===null&&(M1(ge,4,ht,dt,x),M1(ge,16,ht,dt,x)),E=ge.gi,ht=E.length,dt=0;dt<ht&&E[dt].ratio*E[dt].ratio<ye;dt++)zt=E[dt];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Ha(null).context;try{E.drawImage(this.Eg,0,0)}catch(be){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(be){this.vl=!0}}if(this.vl)return}}switch(E=yt<b.width?Gt.offsetX+(b.width*Gt.x-yt*Gt.x):0,Gt=Tt<b.height?Gt.offsetY+(b.height*Gt.y-Tt*Gt.y):0,this.flip){case _i:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case Ei:a.translate(0,Math.min(b.height,Tt)),a.scale(1,-1);break;case vr:a.translate(Math.min(b.width,yt),Math.min(b.height,Tt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ge!==void 0&&zt!==null&&zt.ratio!==1){a.save(),y=zt.ratio;try{a.drawImage(zt.source,z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Gt,Math.min(b.width,yt),Math.min(b.height,Tt)),a instanceof aa&&(this.bt=[z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Gt,Math.min(b.width,yt),Math.min(b.height,Tt)])}catch(be){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Gt,Math.min(b.width,yt),Math.min(b.height,Tt)),a instanceof aa&&(this.bt=[z,nt,at,ot,E,Gt,Math.min(b.width,yt),Math.min(b.height,Tt)])}catch(be){this.en=!1}switch(this.flip){case _i:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case Ei:a.scale(1,-1),a.translate(0,-Math.min(b.height,Tt));break;case vr:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,Tt))}}}}},Gs.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=_s(this,!0),nt=this.Eg,ot=this.qn,at=0,ht=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ht=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===fn||z===Jn?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=at)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===fn||z===oi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ht)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ht),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Kr(this.dc,a,y),this.Ge(0,0,a,y)},Gs.prototype.eh=function(a,y,x,b){vs(this,a,y,x,b)},sn.Object.defineProperties(Gs.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||Ye("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&bg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Oe),b!==null&&x&&Lh(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Po(this,!1),this.v())):x&&E1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Sf;if(Qr){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Im&&(xf(),x=Sf),b=En("img"),b.hn=!0,E1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Im++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new k1),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}}}),Gs.prototype.redraw=Gs.prototype.redraw,Gs.prototype.reloadSource=Gs.prototype.hA;var Im=0,wx=4;Gs.className="Picture",Sf=new Pi,Gs.clearCache=xf;function k1(){this.gi=null}function M1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Ha(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new T1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}k1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function wf(){this.os=new bn,this.mc=null}wf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new bn,this.mc=null};function Pf(a,y,x,b,E,z){a.mc=new Fo,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Px(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}wf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Xi(Oo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},wf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Xi(Tr);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Hu(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new Xi(is);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function Rm(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new Xi(ma);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}wf.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new Xi(So);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,nt&&ot.close(),this.mc.segments.add(ot)};function Cx(a,y,x,b,E,z,nt,ot){var at;at===void 0&&(at=!1),y=new Xi(Aa,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function N1(a){var y=jm;return y!==null?(jm=null,y.reset(a),y):(y=new wf,y.reset(a),y)}var jm=null;wf.className="StreamGeometryContext";function ds(a,y){var x=a.toLowerCase(),b=ze.Ze;b[a]=y,b[x]=a}ds("Rectangle",function(a,y,x){a="r"+y+","+x;var b=ze.Mf[a];return b!==void 0||(b=new bn(bn.u),b.endX=y,b.endY=x,ze.Nf<ze.vm&&(ze.Mf[a]=b,ze.Nf++)),b}),ds("Square",function(a,y,x){a="s"+y+","+x;var b=ze.Mf[a];return b!==void 0||(b=new bn(bn.u),b.endX=y,b.endY=x,b.defaultStretch=Gn,ze.Nf<ze.vm&&(ze.Mf[a]=b,ze.Nf++)),b}),ds("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=ze.Mf[b];if(E!==void 0)return E;var z=a*ze.wg;return E=new bn().add(new Fo(a,0,!0).add(new Xi(Tr,y-a,0)).add(new Xi(is,y,a,y-z,0,y,z)).add(new Xi(Tr,y,x-a)).add(new Xi(is,y-a,x,y,x-z,y-z,x)).add(new Xi(Tr,a,x)).add(new Xi(is,0,x-a,z,x,0,x-z)).add(new Xi(Tr,0,a)).add(new Xi(is,a,0,0,z,z,0).close())),1<z&&(E.spot1=new _n(0,0,z,z),E.spot2=new _n(1,1,-z,-z)),ze.Nf<ze.vm&&(ze.Mf[b]=E,ze.Nf++),E}),ds("Border","RoundedRectangle"),ds("Ellipse",function(a,y,x){a="e"+y+","+x;var b=ze.Mf[a];return b!==void 0||(b=new bn(bn.F),b.endX=y,b.endY=x,b.spot1=Fd,b.spot2=Rc,ze.Nf<ze.vm&&(ze.Mf[a]=b,ze.Nf++)),b}),ds("Circle",function(a,y,x){a="c"+y+","+x;var b=ze.Mf[a];return b!==void 0||(b=new bn(bn.F),b.endX=y,b.endY=x,b.spot1=Fd,b.spot2=Rc,b.defaultStretch=Gn,ze.Nf<ze.vm&&(ze.Mf[a]=b,ze.Nf++)),b}),ds("TriangleRight",function(a,y,x){return new bn().add(new Fo(0,0).add(new Xi(Tr,y,.5*x)).add(new Xi(Tr,0,x).close())).pm(0,.25,.5,.75)}),ds("TriangleDown",function(a,y,x){return new bn().add(new Fo(0,0).add(new Xi(Tr,y,0)).add(new Xi(Tr,.5*y,x).close())).pm(.25,0,.75,.5)}),ds("TriangleLeft",function(a,y,x){return new bn().add(new Fo(y,x).add(new Xi(Tr,0,.5*x)).add(new Xi(Tr,y,0).close())).pm(.5,.25,1,.75)}),ds("TriangleUp",function(a,y,x){return new bn().add(new Fo(y,x).add(new Xi(Tr,0,x)).add(new Xi(Tr,.5*y,0).close())).pm(.25,.5,.75,1)}),ds("Triangle","TriangleUp"),ds("Diamond",function(a,y,x){return new bn().add(new Fo(.5*y,0).add(new Xi(Tr,0,.5*x)).add(new Xi(Tr,.5*y,x)).add(new Xi(Tr,y,.5*x).close())).pm(.25,.25,.75,.75)}),ds("LineH",function(a,y,x){return a=new bn(bn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),ds("LineV",function(a,y,x){return a=new bn(bn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),ds("None","Rectangle"),ds("BarH","Rectangle"),ds("BarV","Rectangle"),ds("MinusLine","LineH"),ds("PlusLine",function(a,y,x){return new bn().add(new Fo(0,x/2,!1).add(new Xi(Tr,y,x/2)).add(new Xi(Oo,y/2,0)).add(new Xi(Tr,y/2,x)))}),ds("XLine",function(a,y,x){return new bn().add(new Fo(0,x,!1).add(new Xi(Tr,y,0)).add(new Xi(Oo,0,0)).add(new Xi(Tr,y,x)))}),ds("LineRight",function(a,y,x){return new bn().add(new Fo(.25*y,0,!1).add(new Xi(Tr,.75*y,.5*x)).add(new Xi(Tr,.25*y,x)))}),ds("LineDown",function(a,y,x){return new bn().add(new Fo(0,.25*x,!1).add(new Xi(Tr,.5*y,.75*x)).add(new Xi(Tr,y,.25*x)))}),ds("LineLeft",function(a,y,x){return new bn().add(new Fo(.75*y,0,!1).add(new Xi(Tr,.25*y,.5*x)).add(new Xi(Tr,.75*y,x)))}),ds("LineUp",function(a,y,x){return new bn().add(new Fo(0,.75*x,!1).add(new Xi(Tr,.5*y,.25*x)).add(new Xi(Tr,y,.75*x)))}),ze.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=_r,this.ir=null,this.jr="",this.lr=ns,this.Gq="",this.Hq=ho,this.Pq=Wi,this.Kq=nr,this.Up=null,this.Cq=127,this.zr=ir,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function $n(a,y){a===void 0||a instanceof Eo||typeof a=="string"?gn.call(this,a):(gn.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 de(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Je,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}We($n,gn),$n.prototype.cloneProtected=function(a){gn.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},Ut=$n.prototype,Ut.Af=function(a){gn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ut.toString=function(){var a=vi(this.constructor)+"#"+Me(this);return this.data!==null&&(a+="("+qi(this.data)+")"),a};function Hs(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Ut.th=function(){gn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ut.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===co&&y==="elements"?E instanceof gn?xc(E,function(at){ly(ot.partManager,at),dc(ot,at)}):Lh(ot,E):a===Lo&&y==="elements"&&(E instanceof gn?xc(E,function(at){uy(ot.partManager,at,ot)}):bg(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Ut.La=function(a){if(gn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof gn&&xc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},$n.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},$n.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},$n.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new pn),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},$n.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},$n.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=li();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);ai(y)}},$n.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 mi?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ki))break t;Ka(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=gn.Link),x.adornedObject=y)}if(x!==null){x.type===gn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(bx(this,a),y=this.adornments;y.next();)y.value.La()}},$n.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Iv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function bx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function zm(a){if(Th(a)===!1){jv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function F1(a){if(a.G|=2097152,Th(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||B1(a,y,x),x=a.Ib;var b=Je.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Je.free(b),jv(a,!1)}}$n.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new ki);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},$n.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Gi;this.locationSpot.sb()&&(z=this.locationSpot);var nt=de.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),de.free(nt)}},$n.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},$n.prototype.moveTo=function(a,y,x){a=de.allocAt(a,y),this.move(a,x),de.free(a)},$n.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())},$n.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())},$n.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new pn),y.I(a)!==null)return y.I(a);var x=gn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ku(a,y,x,b){b===void 0&&(b=new de),x=x.Mc()?Gi:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}$n.prototype.mi=function(a){return a===void 0&&(a=new Je),a.assign(this.actualBounds)},$n.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=de.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Ci?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Cc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=h1(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}$n.prototype.arrange=function(){if(ks(this)===!1)F1(this);else{Wl(this,!1);var a=this.Ib,y=Je.alloc();y.assign(a);var x=Nh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;B1(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||ze.B(y.width,a.width)&&ze.B(y.height,a.height)||0<=this.vw&&this.C(16),Je.free(y),jv(this,!1)}},Ut=$n.prototype,Ut.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Je.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),Je.free(E)}!(this.G&65536)&&a.D(y)||j1(this,b,x),x.N(),!a.w()&&!y.w()||dr(a,y)||(this instanceof Fn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ut.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&D1(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new de(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Th(this)===!1&&ks(this)===!1&&(zm(this),F1(this)),!0};function D1(a,y,x,b,E){y===null||a instanceof Ki||(y=y.animationManager,y.zb&&Vd(y,a,new de(b,E),x))}Ut.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Th(this)||ks(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}zm(this)},Ut.Av=function(){this.G&=-2097153,zm(this)};function B1(a,y,x){var b=O1(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?I1(a,y,x,E,b):R1(a,y,x,E,b):z?I1(a,y,x,E,b):nt&&R1(a,y,x,E,b),a.G|=2097152,de.free(b),a.Uk()}function I1(a,y,x,b,E){var z=y.x,nt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ki||Vd(x,a,new de(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new de(z,nt),y.copy()))}function R1(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function j1(a,y,x){zv(a,!1),a instanceof Fn&&ju(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Nh(a)?(No(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ut.si=function(){return!0},Ut.Zc=function(){return!0},Ut.ph=function(){return!1},Ut.Dd=function(){return!0};function Rv(a,y,x,b){y.constructor===a.constructor||_1||(_1=!0,Ui('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Ui(" Old class: "+vi(a.constructor)+", new class: "+vi(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ht=!1;a instanceof Fn&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ht=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof Fn&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ht?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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},$n.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 Th(a){return(a.G&32768)!==0}function jv(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 Nh(a){return(a.G&131072)!==0}Ut=$n.prototype,Ut.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Um(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ut.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ut.N=function(){var a=this.diagram;a!==null&&!ks(this)&&!Th(this)&&this.isVisible()&&this.Ib.w()&&a.N(Cc(this,this.Ib))},Ut.v=function(){gn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Fn&&this.labeledLink!==null&&Es(this.labeledLink),a.$b(!0))},Ut.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Ut.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Ut.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ut.oz=function(){return Uv(this,this)};function Uv(a,y){var x=y.containingGroup;return x!==null?1+Uv(a,x):y instanceof Fn&&(y=y.labeledLink,y!==null)?Uv(a,y):0}Ut.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof Fn&&(x=y.labeledLink,x!==null)?z1(a,x):y}Ut.Td=function(a){return a instanceof mi?_v(this,this,a):!1};function _v(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!_v(a,b,x)?y instanceof Fn&&(y=y.labeledLink,y!==null)?_v(a,y,x):!1:!0}Ut.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof mi&&Um(y,!0),y instanceof Fn){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof mi&&Um(y,!1),y instanceof Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},$n.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Fn&&this.isLinkLabel)},$n.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Fn&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function U1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Fh(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ki)){if(a.add(y),y instanceof Fn){if(x&&y instanceof mi)for(var nt=y.memberParts;nt.next();)Fh(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ht=ot.toNode;at=at===null||a.contains(at),ht=ht===null||a.contains(ht),(E?at&&ht:at||ht)&&Fh(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Fh(a,y.value,x,b-1,E,z)}else if(y instanceof xn)for(y=y.labelNodes;y.next();)Fh(a,y.value,x,b,E,z)}}sn.Object.defineProperties($n.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?yr:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Lo,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(co,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Hs(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Zd(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 Ki?this.type!==gn.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:Wi},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:nr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Hs(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:ho},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,ks(this)===!1&&(zm(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),D1(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Ki)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ki?this instanceof Ki&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Ka(x),x=x.copy(),x!==null&&Rv(this,x,y,a))):(z!==null&&z.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Ka(x),x=x.copy(),x===null||x instanceof xn||(b=this.location.copy(),Rv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){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 b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Hs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Hs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Hs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof xn?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Hs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Hs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Hs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:_r},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Hs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Hs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Hs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:ns},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Ye("Cannot make a Group a member of itself: "+this.toString()),Ye("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof mi&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof mi&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof mi){for(x=new Oe,Fh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Fn)for(b=b.linksConnected;b.next();)Cf(b.value)}if(this instanceof Fn){for(x=this.linksConnected;x.next();)Cf(x.value);x=this.labeledLink,x!==null&&Cf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Zd(y,-1,a))}}else Ye("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Hs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Fn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Hs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Hs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ir},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Hs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Hs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Hs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),$n.prototype.invalidateLayout=$n.prototype.C,$n.prototype.findCommonContainingGroup=$n.prototype.px,$n.prototype.isMemberOf=$n.prototype.Td,$n.prototype.findTopLevelPart=$n.prototype.sz,$n.prototype.findSubGraphLevel=$n.prototype.oz,$n.prototype.ensureBounds=$n.prototype.Va,$n.prototype.getDocumentBounds=$n.prototype.mi,$n.prototype.findObject=$n.prototype.fb,$n.prototype.moveTo=$n.prototype.moveTo,$n.prototype.invalidateAdornments=$n.prototype.Wb,$n.prototype.clearAdornments=$n.prototype.Ej,$n.prototype.removeAdornment=$n.prototype.Jf,$n.prototype.addAdornment=$n.prototype.bh,$n.prototype.findAdornment=$n.prototype.Pj,$n.prototype.updateTargetBindings=$n.prototype.La;var _1=!1;$n.className="Part",$n.LayoutNone=0,$n.LayoutAdded=1,$n.LayoutRemoved=2,$n.LayoutShown=4,$n.LayoutHidden=8,$n.LayoutNodeSized=16,$n.LayoutGroupLayout=32,$n.LayoutNodeReplaced=64,$n.LayoutStandard=127,$n.LayoutAll=16777215;function Ki(a,y){a===void 0||a instanceof Eo||typeof a=="string"?$n.call(this,a):($n.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(Ki,$n),Ki.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ki.prototype.updateRelationshipsFromData=function(){},Ki.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof xn&&y instanceof Ci){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof Ci&&(E.ua=a)}}},Ki.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ks(a))},Ki.prototype.Zc=function(){return!1},Ki.prototype.gk=function(a,y,x,b,E,z,nt){if(a===co&&y==="elements"){if(E instanceof Ts)this.$a===null&&(this.$a=E);else if(E instanceof gn){var ot=E.Nl(function(at){return at instanceof Ts});ot instanceof Ts&&this.$a===null&&(this.$a=ot)}}else a===Lo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof gn&&this.$a.rg(b)&&(this.$a=null));$n.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ki.prototype.updateAdornments=function(){},Ki.prototype.Lj=function(){},sn.Object.defineProperties(Ki.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}}}),Ki.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=_o,this.er=Gm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Fn(a,y){a===void 0||a instanceof Eo||typeof a=="string"?$n.call(this,a):($n.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Cn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}We(Fn,$n),Fn.prototype.cloneProtected=function(a){$n.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ut=Fn.prototype,Ut.Af=function(a){$n.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Vu(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ut.th=function(){$n.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function W1(a,y){y!==null&&(a.af===null&&(a.af=new Oe),a.af.add(y))}function G1(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Ut.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},Ut.gk=function(a,y,x,b,E,z,nt){a===co&&y==="elements"?this.wc=null:a===Lo&&y==="elements"&&(this.wc=null),$n.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ut.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(la(x.fromPort),la(x.toPort),x.bb())}};function H1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(la(x.fromPort),la(x.toPort),x.bb())}}function la(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||la(y.port)}}Ut.si=function(){return!0},Fn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Fn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Fn.prototype.isVisible=function(){if(!$n.prototype.isVisible.call(this))return!1;var a=!0,y=Uu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Uu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===wo){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===lf&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Fn.prototype.Zb=function(a){$n.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Fn.prototype.qx=function(){var a=new Oe,y=new Oe;return K1(this,this,a,y),y.iterator};function K1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&K1(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}Fn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new er(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ut=Fn.prototype,Ut.Mo=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ut.Sd=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ut.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Oe,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Oe,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new cr(x):yr},Ut.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Oe,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new cr(x):yr},Ut.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Oe,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new cr(x):yr},Ut.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new er(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Ut.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new er(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function _m(a,y,x){la(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Wm(a,y,x){la(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Vg(y)))}function Vg(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Fn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ut=Fn.prototype,Ut.Vo=function(a){$n.prototype.Vo.call(this,a),a||(Vg(this),a=this.Yk,a!==null&&tS(a,this))},Ut.Wo=function(a){$n.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ut.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,$n.prototype.Lj.call(this)},Ut.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new pn:a.wc.clear(),a.qm(a,function(y,x){Y1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Y1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Gv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=li()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);ai(x)}}}Ut.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ut.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ut.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Um(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;)Um(y,!1),y=y.pg();return x},Ut.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},Ut.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Fn)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ut.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Oe;return a(this,y),y},Ut.uz=function(){return X1(this,this)};function X1(a,y){return y=y.pg(),y===null?0:1+X1(a,y)}Ut.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new er(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Ut.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Cn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Cn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new cr(x):yr},Ut.wz=function(a){a===void 0&&(a=1/0);var y=new Oe;return Fh(y,this,!1,a,!0),y},Fn.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Oe;x.add(this),Z1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function Z1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),Z1(at,y,x,b-1,E,z,nt)))}else J1(a,y,x,E,z,nt)}function J1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ht=ot.value;if(ht.isTreeLink&&(ht=ht.To(a),ht!==null&&ht!==a)){var dt=y.contains(ht);if(dt||y.add(ht),nt){var yt=x?ht.Oo():ht.Po();at.uv=a,yt.all(function(Tt){return function(zt){return zt===Tt.uv||!zt.isTreeExpanded}}(at))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,dt||J1(ht,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}Fn.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Oe;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Uu),y.Ue=!1}};function Q1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ht={};at.next();){var dt=at.value;if(dt.isTreeLink&&(ot||dt.fd||dt.bb(),dt=dt.To(a),dt!==null&&dt!==a&&!y.contains(dt))){if(y.add(dt),!ot){dt.Zb(!0),dt.oh();var yt=x?dt.Oo():dt.Po();ht.vv=a,yt.all(function(Tt){return function(zt){return zt===Tt.vv||!zt.isTreeExpanded}}(ht))&&E.Cj(dt,z)}(2<b||dt.wasTreeExpanded)&&(dt.wasTreeExpanded=!1,Q1(dt,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}sn.Object.defineProperties(Fn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Gm},set:function(a){var y=this.portSpreading;y!==a&&(Vu(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&&ju(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:_o},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Vu(this),this.Ba.yp=a;var x=this.diagram;x!==null&&ju(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&&(Vu(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&&(Vu(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&&(Vu(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(tS(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Es(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Vu(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Fn.prototype.expandTree=Fn.prototype.expandTree,Fn.prototype.collapseTree=Fn.prototype.collapseTree,Fn.prototype.findTreeParts=Fn.prototype.wz,Fn.prototype.findTreeChildrenNodes=Fn.prototype.Ou,Fn.prototype.findTreeChildrenLinks=Fn.prototype.Qo,Fn.prototype.findTreeLevel=Fn.prototype.uz,Fn.prototype.findTreeParentChain=Fn.prototype.vz,Fn.prototype.findTreeParentNode=Fn.prototype.pg,Fn.prototype.findTreeParentLink=Fn.prototype.kh,Fn.prototype.findCommonTreeParent=Fn.prototype.gz,Fn.prototype.findTreeRoot=Fn.prototype.xz,Fn.prototype.isInTreeOf=Fn.prototype.Nz,Fn.prototype.findPort=Fn.prototype.ns,Fn.prototype.findLinksTo=Fn.prototype.kz,Fn.prototype.findLinksBetween=Fn.prototype.jz,Fn.prototype.findNodesInto=Fn.prototype.Oo,Fn.prototype.findNodesOutOf=Fn.prototype.Po,Fn.prototype.findNodesConnected=Fn.prototype.Mu,Fn.prototype.findLinksInto=Fn.prototype.Sd,Fn.prototype.findLinksOutOf=Fn.prototype.Mo,Fn.prototype.findExternalTreeLinksConnected=Fn.prototype.qx,Fn.prototype.invalidateConnectedLinks=Fn.prototype.Bd,Fn.prototype.invalidateLinkBundle=Fn.prototype.Lz;var Ax=new qe(Fn,"SpreadingNone",10),Gm=new qe(Fn,"SpreadingEvenly",11),Hv=new qe(Fn,"SpreadingPacked",12);Fn.className="Node",Fn.SpreadingNone=Ax,Fn.SpreadingEvenly=Gm,Fn.SpreadingPacked=Hv;function mi(a,y){a===void 0||a instanceof Eo||typeof a=="string"?Fn.call(this,a):(Fn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Oe,this.$a=null,this.Sc=new jr,this.Sc.group=this,this.gl=new Oe,this.tb=this.$p=null,y&&Object.assign(this,y)}We(mi,Fn),mi.prototype.cloneProtected=function(a){Fn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ts});y instanceof Ts?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())},Ut=mi.prototype,Ut.Af=function(a){Fn.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Fn)x.Bd(y);else if(x instanceof xn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ut.gk=function(a,y,x,b,E,z,nt){if(a===co&&y==="elements"){if(E instanceof Ts)this.$a===null?this.$a=E:this.$a!==E&&Ye("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof gn){var ot=E.Nl(function(at){return at instanceof Ts});ot instanceof Ts&&(this.$a===null?this.$a=ot:this.$a!==ot&&Ye("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Lo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof gn&&this.$a.rg(b)&&(this.$a=null));Fn.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ut.Xl=function(a,y){Fn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==gn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof gn&&(a=a.Pb()),this.tb===null&&(this.tb=new Je),a.mi(this.tb),a instanceof Ci&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ut.eh=function(a,y,x,b){this.nf=this.$a,Fn.prototype.eh.call(this,a,y,x,b)},Ut.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof xn||y.Va()}),Fn.prototype.Va.call(this)},Ut.si=function(){if(!Fn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Fn){if(y.isVisible()&&ks(y))return!1}else if(y instanceof xn&&y.isVisible()&&ks(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof mi&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof xn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof mi&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof xn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ut.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Fn.prototype.Lj.call(this)},mi.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=$e(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},mi.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=$e(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},mi.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))},Ut=mi.prototype,Ut.Bd=function(a){var y=(this.U&65536)!==0;if(Fn.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(la(x.fromPort),la(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(la(x.fromPort),la(x.toPort),x.bb()))}}},Ut.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 Oe,b=y.iterator;b.next();){var E=b.value;if(E instanceof Fn)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ut.iz=function(){var a=this.Rj();a.add(this);for(var y=new Oe,x=a.iterator;x.next();){var b=x.value;if(b instanceof Fn)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Ut.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Oe;return a(this,y),y},Ut.Rj=function(){var a=new Oe;return Fh(a,this,!0,0,!0),a.remove(this),a},Ut.Zb=function(a){Fn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},mi.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof mi&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof Fn)z.Bd(y),x.Aj(z,b);else if(z instanceof xn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}mi.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$1(this,y,a,this),a.Ue=!1}};function $1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof mi&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,$1(z,y,x,b)),z instanceof Fn)z.Bd(y),x.Cj(z,b);else if(z instanceof xn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}mi.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=de.alloc(),Fn.prototype.move.call(this,a,y),a=new Oe,y=this.Rj().iterator;y.next();)E=y.value,E instanceof xn&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Fn&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof xn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Xv(E)&&E.bb());de.free(z)}},sn.Object.defineProperties(mi.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&&Ye("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&&(Vu(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&&(Vu(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&&(Vu(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Vu(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)}}}),mi.prototype.expandSubGraph=mi.prototype.expandSubGraph,mi.prototype.collapseSubGraph=mi.prototype.collapseSubGraph,mi.prototype.findSubGraphParts=mi.prototype.Rj,mi.prototype.findContainingGroupChain=mi.prototype.hz,mi.prototype.findExternalNodesConnected=mi.prototype.iz,mi.prototype.findExternalLinksConnected=mi.prototype.Lu,mi.prototype.ensureBounds=mi.prototype.Va,mi.className="Group";function Ts(a){Re.call(this),this.yb=uo,this.ko=new Je(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}We(Ts,Re),Ts.prototype.cloneProtected=function(a){Re.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ts.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Br(0,0,y.width,y.height,a.x,a.y)},Ts.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof mi||a instanceof Ki)||Ye("Placeholder is not inside a Group or Adornment."),a instanceof mi){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Kr(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=de.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),de.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var nt=0;z instanceof Ci&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ht=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==gn.Link&&(ot=z.ga(a.category==="Selection"?ho:a.locationSpot,de.alloc()),a.location=ot,de.free(ot)),isNaN(ht)||isNaN(nt)?(a=z.ga(ho,de.alloc()),ht=Je.allocAt(a.x,a.y,0,0),ht.Ye(z.ga(ws,a)),ht.Ye(z.ga(qr,a)),ht.Ye(z.ga(Vo,a)),Kr(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),de.free(a),Je.free(ht)):(Kr(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ts.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Ts.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof mi&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=Je.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof mi&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),Je.free(x),b&&y instanceof mi&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ts.prototype.computeMemberBounds=function(a){if(!(this.part instanceof mi))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof xn&&(!y.computesBoundsIncludingLinks||xa(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},sn.Object.defineProperties(Ts.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ts.className="Placeholder";function xn(a){$n.call(this,gn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ns,this.Om=0,this.Qm=Ns,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new Cn().freeze(),this.Tg=this.Mg=null,this.ml=new Je,this.ua=new bn,this.u=this.o=this.Sf=this.Wf=null,this.su=new de,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}We(xn,$n),xn.prototype.cloneProtected=function(a){$n.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())},Ut=xn.prototype,Ut.Af=function(a){$n.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&&la(y),a=a.toPort,a!==null&&la(a)},Ut.qb=function(a){a.classType===xn?(a.value&2)===2?this.routing=a:a===Pa||a===Xu||a===Af?this.curve=a:a===Zg||a===Zm||a===Jm?this.adjusting=a:a!==Qv&&a!==Ns&&Ye("Unknown Link enum value for a Link property: "+a):$n.prototype.qb.call(this,a)},Ut.Xc=function(){this.ba===null&&(this.ba=new Bg)},Ut.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ks(a)||Th(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ks(a)||Th(a)))},Ut.zv=function(){return!1},Ut.Av=function(){},Ut.Zc=function(){return!1},xn.prototype.computeAngle=function(a,y,x){return xn.computeAngle(y,x)},xn.computeAngle=function(a,y){switch(a){default:case Ns:a=0;break;case Jg:a=y;break;case Qg:a=y+90;break;case qg:a=y-90;break;case qv:a=y+180;break;case Qm:a=ze.bp(y),90<a&&270>a&&(a-=180);break;case $g:a=ze.bp(y+90),90<a&&270>a&&(a-=180);break;case tp:a=ze.bp(y-90),90<a&&270>a&&(a-=180);break;case qm:if(a=ze.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return ze.bp(a)};function Cf(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Ut=xn.prototype,Ut.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&$n.prototype.oh.call(this)},Ut.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ut.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new Oe),a.wd.add(y),a.v()}Ut.Vo=function(a){if($n.prototype.Vo.call(this,a),bc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,_m(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||_m(x,this,b)}Yg(this)}},Ut.Wo=function(a){if($n.prototype.Wo.call(this,a),bc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Wm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Wm(x,this,b)}Xg(this)}},Ut.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))},xn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},xn.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?$n.prototype.move.call(this,a,!1):(a=de.allocAt(x.x+b,x.y+E),$n.prototype.move.call(this,a,!1),de.free(a)),Yu(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},xn.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},xn.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},xn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(rr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Pa))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()===Pa){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return ze.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),ze.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},xn.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()===Pa))return this.ua.wx(.5);if(this.computeCurve()===Pa&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),ze.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Ut=xn.prototype,Ut.i=function(a){return this.Nb.s[a]},Ut.dd=function(a,y){this.Nb.cd(a,y)},Ut.L=function(a,y,x){this.Nb.cd(a,new de(y,x))},Ut.Kz=function(a,y){this.Nb.Gb(a,y)},Ut.m=function(a,y,x){this.Nb.Gb(a,new de(y,x))},Ut.ne=function(a){this.Nb.add(a)},Ut.yf=function(a,y){this.Nb.add(new de(a,y))},Ut.pv=function(a){this.Nb.mb(a)},Ut.Fj=function(){this.Nb.clear()};function Yu(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Cn,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new de(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.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),Es(a)),b?Hm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Xd(nt.animationManager,a,E),a.g("points",z,E)}}Ut.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ut.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ht=at.length,dt=0;dt<ht;dt++){var yt=at[dt];nt=Math.min(yt.x,nt),ot=Math.min(yt.y,ot),yt.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(dt=E[z],yt=at[z],dt.x-x!==yt.x-nt||dt.y-b!==yt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Xd(x.animationManager,this,y),Hm(this),this.g("points",a,y)}},Ut.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Hm(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),Xm(a,!1))}Ut.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())}},Ut.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()}}},xn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(fd||(fd=new Fn,fd.desiredSize=ui,fd.Va()),this.defaultFromPoint&&(fd.location=this.defaultFromPoint,fd.Va(),y=a=fd)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(gd||(gd=new Fn,gd.desiredSize=ui,gd.Va()),this.defaultToPoint&&(gd.location=this.defaultToPoint,gd.Va(),E=b=gd)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=bf(nt),at=bf(x),ht=y===E&&y!==null,dt=this.isOrthogonal,yt=this.curve===Pa;this.Wf=ht&&!dt?yt=!0:!1;var Tt=this.computeAdjusting()===Ns||ht;if(!dt&&!ht&&ot&&at){if(ot=!1,!Tt&&3<=z&&(Tt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,Tt,z-1,at))&&(Tt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Tt,z-1,at)),!ot)if(this.Fj(),yt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Tt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=Tt.x-z.x,at=Tt.y-z.y,ht=this.computeCurviness(),yt=dt=0;var zt=z.x+ot/3,Gt=z.y+at/3,ee=zt,ye=Gt;ze.B(at,0)?ye=0<ot?ye-ht:ye+ht:(dt=-ot/at,yt=Math.sqrt(ht*ht/(dt*dt+1)),0>ht&&(yt=-yt),ee=(0>at?-1:1)*yt+zt,ye=dt*(ee-zt)+Gt),zt=z.x+2*ot/3,Gt=z.y+2*at/3;var ge=zt,Ce=Gt;ze.B(at,0)?Ce=0<ot?Ce-ht:Ce+ht:(ge=(0>at?-1:1)*yt+zt,Ce=dt*(ge-zt)+Gt),this.Fj(),this.ne(z),this.yf(ee,ye),this.yf(ge,Ce),this.ne(Tt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Tt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Tt),E=this.getLinkPoint(z,Tt,x,!1,!1,a,y),this.hasCurviness()?(Tt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Tt/2,y=b.y+x/2,z=a,ot=y,ze.B(x,0)?ot=0<Tt?ot-nt:ot+nt:(Tt=-Tt/x,z=Math.sqrt(nt*nt/(Tt*Tt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=Tt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=Je.alloc(),y.mi(ot),at=ot.ca(E),Tt.mi(ot),ht=ot.ca(b),(at||ht)&&(nt=y.ga(Vm(nt),new de),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Tt.ga(Vm(x),new de),this.dd(1,this.getLinkPointFromPoint(z,Tt,x,b,!1,x))),Je.free(ot))}else{yt=this.isAvoiding,Tt&&(dt&&yt||ht)&&this.Fj();var be=ht?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,dt,b,E),zt=ee=Gt=0,(dt||!ot||ht)&&(ye=this.computeEndSegmentLength(a,y,nt,!0),zt=this.getLinkDirection(a,y,yt,nt,!0,dt,b,E),ht&&(ot||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(zt-=dt?90:30,0>be&&(zt-=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ht&&(ye+=Math.abs(be)*(dt?1:2)),zt===0?Gt=ye:zt===90?ee=ye:zt===180?Gt=-ye:zt===270?ee=-ye:(Gt=ye*Math.cos(zt*Math.PI/180),ee=ye*Math.sin(zt*Math.PI/180)),nt.Mc()&&ht&&(ye=y.ga(Gi,de.alloc()),ge=de.allocAt(ye.x+1e3*Gt,ye.y+1e3*ee),this.getLinkPointFromPoint(a,y,ye,ge,!0,yt),de.free(ye),de.free(ge))),ye=this.getLinkPoint(b,E,x,!1,dt,a,y);var Ee=Ce=ge=0;if(dt||!at||ht){var Be=this.computeEndSegmentLength(b,E,x,!1);Ee=this.getLinkDirection(b,E,ye,x,!1,dt,a,y),ht&&(at||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Ee+=dt?0:30,0>be&&(Ee+=180)),0>Ee?Ee+=360:360<=Ee&&(Ee-=360),ht&&(Be+=Math.abs(be)*(dt?1:2)),Ee===0?ge=Be:Ee===90?Ce=Be:Ee===180?ge=-Be:Ee===270?Ce=-Be:(ge=Be*Math.cos(Ee*Math.PI/180),Ce=Be*Math.sin(Ee*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(Gi,de.alloc()),nt=de.allocAt(x.x+1e3*ge,x.y+1e3*Ce),this.getLinkPointFromPoint(b,E,x,nt,!1,ye),de.free(x),de.free(nt))}x=yt,(dt||!ot||ht)&&(x=new de(yt.x+Gt,yt.y+ee)),nt=ye,(dt||!at||ht)&&(nt=new de(ye.x+ge,ye.y+Ce)),!Tt&&!dt&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,ye):!Tt&&!dt&&at&&3<z&&this.adjustPoints(1,x,z-1,ye)?this.dd(0,yt):!Tt&&(dt?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,yt),this.dd(z-1,ye)):(this.Fj(),this.ne(yt),(dt||!ot||ht)&&this.ne(x),dt&&this.addOrthoPoints(x,zt,nt,Ee,a,b),(dt||!at||ht)&&this.ne(nt),this.ne(ye))}return!0};function Yv(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}xn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new de),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ht=a.m11*E,dt=E*(a.m21*a.dy-a.m22*a.dx),yt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+dt,b=b.x*ot+b.y*ht+yt,nt=x.x*nt+x.y*at+dt,x=x.x*ot+x.y*ht+yt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function Km(a,y){var x=y.Zn;return x===null&&(x=new pd,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}xn.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new de),x.sb()&&!bf(x))return y.ga(x,ot),ot;if(x.$c()){var at=Km(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===nS){var ht=Km(this,nt);if(ht!==null&&at.Gl<ht.Gl){at=de.alloc(),ht=de.alloc();var dt=new Je(y.ga(ho,at),y.ga(ws,ht)),yt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,yt,!b,E,a,y,ht),(x.Hf(dl)||x.Hf(ta))&&a.y>=dt.y&&a.y<=dt.y+dt.height?ot.y=a.y:(x.Hf(Qa)||x.Hf(pa))&&a.x>=dt.x&&a.x<=dt.x+dt.width&&(ot.x=a.x),de.free(at),de.free(ht)}}return ot}}return x=y.ga(Vm(x),de.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Yv(x,nt.copy()))):(at=this.computeSpot(!b,nt),z=de.alloc(),nt=nt.ga(Vm(at),z),E&&(nt=Yv(x,nt)),de.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),de.free(x),ot},xn.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(at=Km(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(Gi,de.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Yv(at,ot.copy()):x):(x=de.alloc(),ot=ot.ga(Gi,x),de.free(x)),x=Math.abs(ot.x-at.x)>Math.abs(ot.y-at.y)?ot.x>=at.x?0:180:ot.y>=at.y?90:270,de.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),bf(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},xn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Km(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},xn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Gi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===ns?no:y)):(a=y||this.toPort,a===null?a=Gi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===ns?no:y)),a};function bf(a){return a===no||a.x===.5&&a.y===.5}function Vm(a){return a.x===.5&&a.y===.5?a:Gi}xn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ns&&4<this.pointsCount?this.computeMidPoint(new de):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(Gi))},xn.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},xn.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=ki.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&ki.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===this.locationObject){var yt=dt.actualBounds,Tt=this.naturalBounds;if(!(yt.x>Tt.width||yt.y>Tt.height||0>yt.x+yt.width||0>yt.y+yt.height)){if(yt=ki.alloc(),yt.set(nt),dt instanceof gn)ot=dt.Cf(a,y,x,b,E,yt);else if(this.path===dt){if(dt instanceof Ci)if(ot=a,Tt=b,dt.pickable===!1)ot=!1;else if(yt.multiply(dt.transform),Tt)t:{var zt=ot,Gt=yt;if(dt.fh(zt,Gt))ot=!0;else{if(Gt===void 0&&(Gt=dt.transform,zt.Re(dt.actualBounds))){ot=!0;break t}ot=zt.left,Tt=zt.right;var ee=zt.top;zt=zt.bottom;var ye=de.alloc(),ge=de.alloc(),Ce=de.alloc(),be=ki.alloc();be.set(Gt),be.bv(dt.transform),be.Vj(),ge.x=Tt,ge.y=ee,ge.transform(be),ye.x=ot,ye.y=ee,ye.transform(be),Gt=!1,Pc(dt,ye,ge,Ce)?Gt=!0:(ye.x=Tt,ye.y=zt,ye.transform(be),Pc(dt,ye,ge,Ce)?Gt=!0:(ge.x=ot,ge.y=zt,ge.transform(be),Pc(dt,ye,ge,Ce)?Gt=!0:(ye.x=ot,ye.y=ee,ye.transform(be),Pc(dt,ye,ge,Ce)&&(Gt=!0)))),ki.free(be),de.free(ye),de.free(ge),de.free(Ce),ot=Gt}}else ot=dt.fh(ot,yt)}else ot=Do(dt,a,b,yt);ot&&(Tt=dt,y!==null&&(Tt=y(dt)),Tt&&(x===null||x(Tt))&&E.add(Tt)),ki.free(yt)}}}return z===void 0&&ki.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&ki.free(nt),!1},xn.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?Pa:this.curve},xn.prototype.computeCorner=function(){if(this.curve===Pa)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},xn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},xn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=rS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===Jg||b===Qm||b===qv?a=Math.max(a,E):b===qg||b===tp||b===Qg||b===$g?a=Math.max(a,nt):(y=y.ga(Gi).ab(x.ga(Gi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Pa&&(a*=1.333)}}return a},xn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ns&&x.bb()}},xn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=iS;var y=this.Sf;if(y!==null){for(var x=li(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),ai(x)}}return a},xn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},xn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},xn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===Zm)return!1;E===Jm&&(E=Zg)}switch(E){case Zm:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ht=Math.sqrt(ot*ot+at*at);if(!ze.$(ht,0)){if(ze.$(ot,0))var dt=0>at?-Math.PI/2:Math.PI/2;else dt=Math.atan(at/Math.abs(ot)),0>ot&&(dt=Math.PI-dt);nt=y.x;var yt=y.y;ot=b.x-nt;var Tt=b.y-yt;for(at=Math.sqrt(ot*ot+Tt*Tt),ze.$(ot,0)?Tt=0>Tt?-Math.PI/2:Math.PI/2:(Tt=Math.atan(Tt/Math.abs(ot)),0>ot&&(Tt=Math.PI-Tt)),ht=at/ht,dt=Tt-dt,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),ze.$(y,0)||(ze.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+dt,y*=ht,this.L(a,nt+y*Math.cos(ot),yt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case Jm:if(z=this.i(a),yt=this.i(x),!z.Xa(y)||!yt.Xa(b)){E=z.x,z=z.y,nt=yt.x,yt=yt.y,ht=(nt-E)*(nt-E)+(yt-z)*(yt-z),ot=y.x,dt=y.y,at=b.x,Tt=b.y;var zt=1;if(at-ot!==0){var Gt=(Tt-dt)/(at-ot);zt=Math.sqrt(1+1/(Gt*Gt))}else Gt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ee=y.x,ye=y.y,ge=.5;ht!==0&&(ge=((E-ee)*(E-nt)+(z-ye)*(z-yt))/ht);var Ce=E+ge*(nt-E),be=z+ge*(yt-z);y=Math.sqrt((ee-Ce)*(ee-Ce)+(ye-be)*(ye-be)),ye<Gt*(ee-Ce)+be&&(y=-y),0<Gt&&(y=-y),ee=ot+ge*(at-ot),ge=dt+ge*(Tt-dt),Gt!==0?(y=ee+y/zt,this.L(a,y,ge-(y-ee)/Gt)):this.L(a,ee,ge+y)}this.dd(x,b)}return!0;case Zg:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,dt=z.y,yt=ot,ht=dt,ze.B(E.y,z.y)?ze.B(z.x,nt.x)?dt=y.y:ze.B(z.y,nt.y)&&(ot=y.x):ze.B(E.x,z.x)&&(ze.B(z.y,nt.y)?ot=y.x:ze.B(z.x,nt.x)&&(dt=y.y)),this.L(a+1,ot,dt),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,dt=z.y,at=ot,Tt=dt,ze.B(E.y,z.y)?ze.B(z.x,nt.x)?dt=b.y:ze.B(z.y,nt.y)&&(ot=b.x):ze.B(E.x,z.x)&&(ze.B(z.y,nt.y)?ot=b.x:ze.B(z.x,nt.x)&&(dt=b.y)),this.L(x-1,ot,dt),Xv(this))){this.L(a+1,yt,ht),this.L(x-1,at,Tt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},xn.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(ep,ep),at.Bc(ep,ep),ot.Ye(a),at.Ye(x);var ht=de.alloc(),dt=de.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,dt.x=ht.x,dt.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ht.h(Math.max((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),dt.x=x.x,dt.y=ht.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,dt.x=ht.x,dt.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ht.h(Math.min((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),dt.x=x.x,dt.y=ht.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ht.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,dt.x=x.x,dt.y=ht.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ht.h(a.x,Math.max((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),dt.x=ht.x,dt.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ht.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,dt.x=x.x,dt.y=ht.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ht.h(a.x,Math.min((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),dt.x=ht.x,dt.y=x.y)));var yt=x;if(this.isAvoiding){var Tt=this.diagram;if(Tt===null||E===z||this.layer.isTemporary||!rf(Tt)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var zt=of(Tt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&zt.Yj(Math.min(a.x,ht.x),Math.min(a.y,ht.y),Math.abs(a.x-ht.x),Math.abs(a.y-ht.y))&&zt.Yj(Math.min(ht.x,dt.x),Math.min(ht.y,dt.y),Math.abs(ht.x-dt.x),Math.abs(ht.y-dt.y))&&zt.Yj(Math.min(dt.x,yt.x),Math.min(dt.y,yt.y),Math.abs(dt.x-yt.x),Math.abs(dt.y-yt.y)))y=!1;else{E=a,z=yt;var Gt=x=null;if(Tt.isVirtualized){Tt=zt.bounds.copy(),Tt.Bc(-zt.Ho,-zt.Go);var ee=de.alloc();Lf(zt,a.x,a.y)||(ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,a.x,a.y,ht.x,ht.y,ee)?(x=a=ee.copy(),y=ee.ab(ht)):ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,ht.x,ht.y,dt.x,dt.y,ee)?(x=a=ee.copy(),y=ee.ab(dt)):ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,dt.x,dt.y,yt.x,yt.y,ee)&&(x=a=ee.copy(),y=ee.ab(yt))),Lf(zt,yt.x,yt.y)||(ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,yt.x,yt.y,dt.x,dt.y,ee)?(Gt=yt=ee.copy(),b=dt.ab(ee)):ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,dt.x,dt.y,ht.x,ht.y,ee)?(Gt=yt=ee.copy(),b=ht.ab(ee)):ze.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,ht.x,ht.y,a.x,a.y,ee)&&(Gt=yt=ee.copy(),b=a.ab(ee))),de.free(ee)}ot=ot.copy().ed(at),ot.Bc(zt.Ho*zt.Os,zt.Go*zt.Os),sS(zt,a,y,yt,b,ot,!0),at=Yl(zt,yt.x,yt.y),!zt.abort&&at>=Ef&&(oS(zt),ot.Bc(zt.Ho*zt.Hx,zt.Go*zt.Ix),sS(zt,a,y,yt,b,ot,!1),at=Yl(zt,yt.x,yt.y)),!zt.abort&&at<Ef&&Yl(zt,yt.x,yt.y)!==Zu?(Zv(this,zt,yt.x,yt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=yt.y):(ot.x=yt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(nt=this.i(3),y===0||y===180?ze.B(ot.x,nt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,nt.y)):ze.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=zt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(ze.B(ot.y,nt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,nt.x,ot)):ze.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=zt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Gt!==null&&(b===0||b===180?this.yf(z.x,Gt.y):this.yf(Gt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(dt.copy())),de.free(ht),de.free(dt)}},xn.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Xv(a){if(a.diagram===null||!a.isAvoiding||!rf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=of(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Zv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ht=Yl(y,x,b),dt=x,yt=b;for(E===0?dt+=ot:E===90?yt+=at:E===180?dt-=ot:yt-=at,E!==nt&&ht>Ac&&Yl(y,dt,yt)!==ht-1&&(Yl(y,x-ot,b)===ht-1?(E=180,dt=x-ot,yt=b):Yl(y,x+ot,b)===ht-1?(E=0,dt=x+ot,yt=b):Yl(y,x,b-at)===ht-1?(E=270,dt=x,yt=b-at):Yl(y,x,b+at)===ht-1&&(E=90,dt=x,yt=b+at));ht>Ac&&Yl(y,dt,yt)===ht-1;)x=dt,b=yt,E===0?dt+=ot:E===90?yt+=at:E===180?dt-=ot:yt-=at,--ht;z?ht>Ac&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ht>Ac&&(z=E,nt=x,dt=b,E===0?(z=90,dt+=at):E===90?(z=180,nt-=ot):E===180?(z=270,dt-=at):E===270&&(z=0,nt+=ot),Yl(y,nt,dt)===ht-1?Zv(a,y,nt,dt,z,!1,z):(nt=x,dt=b,E===0?(z=270,dt-=at):E===90?(z=0,nt+=ot):E===180?(z=90,dt+=at):E===270&&(z=180,nt-=ot),Yl(y,nt,dt)===ht-1&&Zv(a,y,nt,dt,z,!1,z))),a.yf(x,b)}xn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=wi(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=wi(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},xn.prototype.qc=function(){this.lk=!1,this.v()},xn.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof Ci&&(E.ua=this.ua)}}},xn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&bc(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===Pa&&3<=y&&!ze.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||bc(this)){if(a.type=bn.o,ot=N1(a),this.computeShortLength(!0)!==0&&(E=cd(this,E,!0,z)),Pf(ot,E.x,E.y,!1),nt===Pa&&3<=y&&!ze.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=cd(this,E,!1,z)),Hu(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=de.allocAt(b,at),x=de.alloc(),x.assign(this.i(1)),z=de.allocAt(b,at),E=de.allocAt(b,at),nt=this.i(0);for(var ht,dt=this.smoothness/3,yt=1;yt<this.pointsCount-1;yt++){ht=this.i(yt);var Tt=nt,zt=ht,Gt=this.i(Jv(this,ht,yt,!1));if((!ze.$(Tt.x,zt.x)||!ze.$(zt.x,Gt.x))&&(!ze.$(Tt.y,zt.y)||!ze.$(zt.y,Gt.y))){var ee=dt;isNaN(ee)&&(ee=this.smoothness/3);var ye=Tt.x;Tt=Tt.y;var ge=zt.x;zt=zt.y;var Ce=Gt.x;Gt=Gt.y;var be=ee*Ym(ye,Tt,ge,zt);ee*=Ym(ge,zt,Ce,Gt),ze.$(Tt,zt)&&ze.$(ge,Ce)&&(ge>ye?Gt>zt?(z.x=ge-be,z.y=zt-be,E.x=ge+ee,E.y=zt+ee):(z.x=ge-be,z.y=zt+be,E.x=ge+ee,E.y=zt-ee):Gt>zt?(z.x=ge+be,z.y=zt-be,E.x=ge-ee,E.y=zt+ee):(z.x=ge+be,z.y=zt+be,E.x=ge-ee,E.y=zt-ee)),ze.$(ye,ge)&&ze.$(zt,Gt)&&(zt>Tt?(Ce>ge?(z.x=ge-be,z.y=zt-be,E.x=ge+ee):(z.x=ge+be,z.y=zt-be,E.x=ge-ee),E.y=zt+ee):(Ce>ge?(z.x=ge-be,z.y=zt+be,E.x=ge+ee):(z.x=ge+be,z.y=zt+be,E.x=ge-ee),E.y=zt-ee)),(ze.$(ye,ge)&&ze.$(ge,Ce)||ze.$(Tt,zt)&&ze.$(zt,Gt))&&(ye=.5*(ye+Ce),Tt=.5*(Tt+Gt),z.x=ye,z.y=Tt,E.x=ye,E.y=Tt),(yt===1||yt===2&&ze.$(nt.x,this.i(0).x)&&ze.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ht.x),x.y=.5*(nt.y+ht.y)),Hu(ot,x.x-b,x.y-at,z.x-b,z.y-at,ht.x-b,ht.y-at),y.set(z),x.set(E),nt=ht}}ht=nt.x,nt=nt.y,dt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(dt=cd(this,dt.copy(),!1,Mi)),ht=.5*(ht+dt.x),nt=.5*(nt+dt.y),Hu(ot,E.x-b,E.y-at,ht-b,nt-at,dt.x-b,dt.y-at),de.free(y),de.free(x),de.free(z),de.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=cd(this,nt.copy(),!1,Mi)),Hu(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=de.alloc(),z.assign(this.i(0)),E=de.alloc(),E.assign(z),nt=this.computeCorner(),yt=1,ht=0;yt<y;){if(yt=Jv(this,z,yt,1<yt),dt=this.i(yt),yt>=y-1){if(!z.D(dt))this.computeShortLength(!1)!==0&&(dt=cd(this,dt.copy(),!1,Mi)),dd(this,ot,-b,-at,z,dt,x);else if(ht===0)for(yt=1;yt<y;)E.assign(z),dt=this.i(yt++),dd(this,ot,-b,-at,z,dt,x),z.assign(dt);break}if(ht=Jv(this,dt,yt+1,yt<y-3),yt=-b,ye=-at,Tt=dt,ge=this.i(ht),ee=x,ze.B(z.y,Tt.y)&&ze.B(Tt.x,ge.x))if(Gt=Math.min(nt,Math.abs(Tt.x-E.x)/2),Gt=be=Math.min(Gt,Math.abs(ge.y-Tt.y)/2),ze.B(Gt,0))dd(this,ot,yt,ye,z,Tt,ee),z.assign(Tt);else{var Ee=Tt.x,Be=Tt.y;zt=Ee,Ce=Be,Tt.x>z.x?Ee=Tt.x-Gt:Ee=Tt.x+Gt,ge.y>Tt.y?Ce=Tt.y+be:Ce=Tt.y-be,ge=de.allocAt(Ee,Be),dd(this,ot,yt,ye,z,ge,ee),de.free(ge),Rm(ot,Tt.x+yt,Tt.y+ye,zt+yt,Ce+ye),z.h(zt,Ce)}else ze.B(z.x,Tt.x)&&ze.B(Tt.y,ge.y)?(Gt=Math.min(nt,Math.abs(Tt.y-E.y)/2),Gt=be=Math.min(Gt,Math.abs(ge.x-Tt.x)/2),ze.B(be,0)?(dd(this,ot,yt,ye,z,Tt,ee),z.assign(Tt)):(Ee=Tt.x,Be=Tt.y,zt=Ee,Ce=Be,Tt.y>z.y?Be=Tt.y-Gt:Be=Tt.y+Gt,ge.x>Tt.x?zt=Tt.x+be:zt=Tt.x-be,ge=de.allocAt(Ee,Be),dd(this,ot,yt,ye,z,ge,ee),de.free(ge),Rm(ot,Tt.x+yt,Tt.y+ye,zt+yt,Ce+ye),z.h(zt,Ce))):(dd(this,ot,yt,ye,z,Tt,ee),z.assign(Tt));E.assign(dt),yt=ht}de.free(z)}jm=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=cd(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=cd(this,ot,!1,z)),a.type=bn.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Ym(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),ze.$(a,0)?y:ze.$(y,0)?a:Math.sqrt(a*a+y*y)))}function cd(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=Ym(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=Ym(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;ze.$(y.x,z.x)&&ze.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!ze.$(y.x,z.x)&&!ze.$(y.y,z.y))return x-1;for(var nt=z;ze.$(y.x,z.x)&&ze.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||ze.$(y.y,z.y)&&ze.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}xn.prototype.computeJumpLength=function(){return 10};function dd(a,y,x,b,E,z,nt){if(!nt&&bc(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ht=0;if(a.isVisible()&&(ht=Lx(a,E,z,at)),0<ht){if(ze.B(E.y,z.y))if(E.x<z.x)for(var dt=0;dt<ht;){var yt=Math.max(E.x,Math.min(at[dt++]-ot,z.x-nt));y.lineTo(yt+x,z.y+b);for(var Tt=yt+x,zt=Math.min(yt+nt,z.x);dt<ht&&(yt=at[dt],yt<zt+nt);)dt++,zt=Math.min(yt+ot,z.x);yt=z.y-nt+b,zt+=x;var Gt=z.y+b;a.curve===Xu?Pf(y,zt,Gt,!1):Hu(y,Tt,yt,zt,yt,zt,Gt)}else for(--ht;0<=ht;){for(dt=Math.min(E.x,Math.max(at[ht--]+ot,z.x+nt)),y.lineTo(dt+x,z.y+b),Tt=dt+x,yt=Math.max(dt-nt,z.x);0<=ht&&(dt=at[ht],dt>yt-nt);)ht--,yt=Math.max(dt-ot,z.x);dt=z.y-nt+b,yt+=x,zt=z.y+b,a.curve===Xu?Pf(y,yt,zt,!1):Hu(y,Tt,dt,yt,dt,yt,zt)}else if(ze.B(E.x,z.x))if(E.y<z.y)for(dt=0;dt<ht;){for(yt=Math.max(E.y,Math.min(at[dt++]-ot,z.y-nt)),y.lineTo(z.x+x,yt+b),Tt=yt+b,yt=Math.min(yt+nt,z.y);dt<ht&&(zt=at[dt],zt<yt+nt);)dt++,yt=Math.min(zt+ot,z.y);zt=z.x-nt+x,Gt=z.x+x,yt+=b,a.curve===Xu?Pf(y,Gt,yt,!1):Hu(y,zt,Tt,zt,yt,Gt,yt)}else for(--ht;0<=ht;){for(dt=Math.min(E.y,Math.max(at[ht--]+ot,z.y+nt)),y.lineTo(z.x+x,dt+b),Tt=dt+b,dt=Math.max(dt-nt,z.y);0<=ht&&(yt=at[ht],yt>dt-nt);)ht--,dt=Math.max(yt-ot,z.y);yt=z.x-nt+x,zt=z.x+x,dt+=b,a.curve===Xu?Pf(y,zt,dt,!1):Hu(y,yt,Tt,yt,dt,zt,dt)}}}y.lineTo(z.x+x,z.y+b)}function Lx(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof xn){if(at===a)return 0<b.length&&b.sort(function(dt,yt){return dt-yt}),b.length;if(at.isVisible()&&bc(at)){var ht=at.routeBounds;ht.w()&&a.routeBounds.Yc(ht)&&!a.usesSamePort(at)&&(ht=at.path,ht!==null&&ht.Ed()&&Ex(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(dt,yt){return dt-yt}),b.length}function Ex(a,y,x,b){for(var E=ze.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=de.alloc(),at=1;at<z;at++){var ht=b.i(at);if(at<z-1){var dt=b.i(at+1);if(nt.y===ht.y&&ht.y===dt.y){if(ht.x>nt.x&&dt.x>=ht.x||ht.x<nt.x&&dt.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===dt.x&&(ht.y>nt.y&&dt.y>=ht.y||ht.y<nt.y&&dt.y<=ht.y))continue}t:{dt=a.x;var yt=a.y,Tt=y.x,zt=y.y,Gt=nt.x;nt=nt.y;var ee=ht.x,ye=ht.y;if(ze.B(dt,Tt)){if(!ze.B(yt,zt)&&ze.B(nt,ye)&&Math.min(yt,zt)<nt&&Math.max(yt,zt)>nt&&Math.min(Gt,ee)<dt&&Math.max(Gt,ee)>dt&&!ze.B(Gt,ee)){ot.x=dt,ot.y=nt,dt=!0;break t}}else if(ze.B(yt,zt)&&ze.B(Gt,ee)&&Math.min(dt,Tt)<Gt&&Math.max(dt,Tt)>Gt&&Math.min(nt,ye)<yt&&Math.max(nt,ye)>yt&&!ze.B(nt,ye)){ot.x=Gt,ot.y=yt,dt=!0;break t}ot.x=0,ot.y=0,dt=!1}dt&&(E?x.push(ot.x):x.push(ot.y)),nt=ht}de.free(ot)}function bc(a){return a=a.curve,a===Af||a===Xu}function Xm(a,y){(y||bc(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()))}xn.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];at instanceof xn&&(at===this?z=!0:z&&eS(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)ot=z[nt],ot instanceof xn&&eS(this,ot,a)}}}}};function eS(a,y,x){if(y!==null&&y.lk&&y.fd&&bc(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}xn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},xn.prototype.isVisible=function(){if(!$n.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},xn.prototype.Zb=function(a){if($n.prototype.Zb.call(this,a),a&&Xm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},xn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Zg:this.qk};function Yg(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at];(ht.ef===y&&ht.ff===b&&ht.uf===x&&ht.vf===E||ht.ef===x&&ht.ff===E&&ht.uf===y&&ht.vf===b)&&(z===null?z=ht:(a===null&&(a=[],a.push(z)),a.push(ht)))}if(a!==null){for(z=G1(y,x,b,E),z===null&&(z=new $m(y,b,x,E),W1(y,z),W1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Xg(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(xr(y.links,a),y.Sl()))}xn.prototype.ph=function(){return!0},sn.Object.defineProperties(xn.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&&Wm(y,this,x),Xg(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&_m(a,this,E),Yg(this),this.C(1)),this.g("fromNode",y,a),Cf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&la(x),Xg(this),this.ff=a;var b=this.fromPort;b!==null&&la(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Yg(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&&Wm(y,this,x),Xg(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&_m(a,this,E),Yg(this),this.C(1)),this.g("toNode",y,a),Cf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&la(x),Xg(this),this.vf=a;var b=this.toPort;b!==null&&la(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Yg(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:ns},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&&la(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&&xi(a,">= 0",xn,"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:ns},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&&la(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&&xi(a,">= 0",xn,"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?yr: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&&Vg(this.fromNode),this.toNode!==null&&Vg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Ci?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Pa&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),ze.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var nt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),at=this.i(z);ze.Dl(E.x,E.y,nt.x,nt.y,ot.x,ot.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new de)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Hm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);ze.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):ze.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Cn,b=0;b<a.length/2;b++)E=new de(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!yn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Cn,b=0;b<a.length;b++)E=a[b],x.add(new de(E.x,E.y).freeze())}}else if(a instanceof Cn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ye("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Hm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Xd(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||!bf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!bf(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(),Xm(this,y===Xu||y===Af||a===Xu||a===Af),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(),Xm(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)}}}),xn.prototype.invalidateOtherJumpOvers=xn.prototype.Xo,xn.prototype.findClosestSegment=xn.prototype.ez,xn.prototype.updateRoute=xn.prototype.vg,xn.prototype.invalidateRoute=xn.prototype.bb,xn.prototype.rollbackRoute=xn.prototype.rv,xn.prototype.commitRoute=xn.prototype.zf,xn.prototype.startRoute=xn.prototype.uh,xn.prototype.clearPoints=xn.prototype.Fj,xn.prototype.removePoint=xn.prototype.pv,xn.prototype.addPointAt=xn.prototype.yf,xn.prototype.addPoint=xn.prototype.ne,xn.prototype.insertPointAt=xn.prototype.m,xn.prototype.insertPoint=xn.prototype.Kz,xn.prototype.setPointAt=xn.prototype.L,xn.prototype.setPoint=xn.prototype.dd,xn.prototype.getPoint=xn.prototype.i,xn.prototype.getOtherPort=xn.prototype.Cz,xn.prototype.getOtherNode=xn.prototype.To;var fd=null,gd=null,Qv=new qe(xn,"Normal",1),kx=new qe(xn,"Orthogonal",2),Mx=new qe(xn,"AvoidsNodes",6),nS=new qe(xn,"AvoidsNodesStraight",7),Ns=new qe(xn,"None",0),Pa=new qe(xn,"Bezier",9),Xu=new qe(xn,"JumpGap",10),Af=new qe(xn,"JumpOver",11),Zg=new qe(xn,"End",17),Zm=new qe(xn,"Scale",18),Jm=new qe(xn,"Stretch",19),Jg=new qe(xn,"OrientAlong",21),Qg=new qe(xn,"OrientPlus90",22),qg=new qe(xn,"OrientMinus90",23),qv=new qe(xn,"OrientOpposite",24),Qm=new qe(xn,"OrientUpright",25),$g=new qe(xn,"OrientPlus90Upright",26),tp=new qe(xn,"OrientMinus90Upright",27),qm=new qe(xn,"OrientUpright45",28),iS=16,rS=14,ep=8;xn.className="Link",xn.Normal=Qv,xn.Orthogonal=kx,xn.AvoidsNodes=Mx,xn.AvoidsNodesStraight=nS,xn.None=Ns,xn.Bezier=Pa,xn.JumpGap=Xu,xn.JumpOver=Af,xn.End=Zg,xn.Scale=Zm,xn.Stretch=Jm,xn.OrientAlong=Jg,xn.OrientPlus90=Qg,xn.OrientMinus90=qg,xn.OrientOpposite=qv,xn.OrientUpright=Qm,xn.OrientPlus90Upright=$g,xn.OrientMinus90Upright=tp,xn.OrientUpright45=qm,xn.EndSegmentStep=8,xn.CurvinessStart=iS,xn.SpacingMin=rS,xn.OrthoShortCut=ep;function $m(a,y,x,b){je(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}$m.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},$m.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},$m.className="LinkBundle";function np(a){je(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}np.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=$v,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Lf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Yl(a,y,x){return Lf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):$v}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Ac&&(x[b]=$v)}np.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Zu)return!1}return!0};function Xl(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ht=y|0,dt=x|0,yt=a.ac[ht][dt];if(yt>=Ac&&yt<Ef)for(E?dt+=b:ht+=b,yt+=1;z<=ht&&ht<=nt&&ot<=dt&&dt<=at&&!(yt>=a.ac[ht][dt]);)a.ac[ht][dt]=yt,yt+=1,E?dt+=b:ht+=b;if(ht=E?dt:ht,E)if(0<b)for(x+=b;x<ht;x+=b)Xl(a,y,x,1,!E,z,nt,ot,at),Xl(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ht;x+=b)Xl(a,y,x,1,!E,z,nt,ot,at),Xl(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ht;y+=b)Xl(a,y,x,1,!E,z,nt,ot,at),Xl(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ht;y+=b)Xl(a,y,x,1,!E,z,nt,ot,at),Xl(a,y,x,-1,!E,z,nt,ot,at)}}function t0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=Zu,dt=Ac;for(a.ac[y][x]=dt;ht===Zu&&y>z&&y<nt&&x>ot&&x<at;)dt+=1,a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function e0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=Zu,dt=Ef;for(a.ac[y][x]=dt;ht===Zu&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function sS(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Lf(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ht=b.x,dt=b.y;if(Lf(a,ht,dt))if(ht-=a.Nd,ht/=a.rc,dt-=a.Od,dt/=a.sc,1>=Math.abs(ot-ht)&&1>=Math.abs(at-dt))a.abort=!0;else{var yt=z.x;b=z.y,y=z.x+z.width;var Tt=z.y+z.height;yt-=a.Nd,yt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Tt-=a.Od,Tt/=a.sc,z=Math.max(0,Math.min(a.di,yt|0)),y=Math.min(a.di,Math.max(0,y|0)),yt=Math.max(0,Math.min(a.ei,b|0)),Tt=Math.min(a.ei,Math.max(0,Tt|0)),b=a.ac,ot|=0,at|=0,ht|=0,dt|=0;var zt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Zu?(t0(a,ot,at,zt,x,z,y,yt,Tt),t0(a,ot,at,1,!x,z,y,yt,Tt),t0(a,ot,at,-1,!x,z,y,yt,Tt)):t0(a,ot,at,zt,x,ot,at,ot,at),b[ht][dt]===Zu?(e0(a,ht,dt,E===0||E===90?1:-1,E===90||E===270,z,y,yt,Tt),e0(a,ht,dt,1,!(E===90||E===270),z,y,yt,Tt),e0(a,ht,dt,-1,!(E===90||E===270),z,y,yt,Tt)):e0(a,ht,dt,zt,x,ht,dt,ht,dt),x=li(),nt&&aS(a,ht,dt,E,ot,at,x))for((x[0]!==ht||x[1]!==dt)&&(x.unshift(dt),x.unshift(ht)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=Ac,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ht=x[z+1];y>E?E++:y<E?E--:ht>nt?nt++:ht<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ht;);else Xl(a,ot,at,1,!1,z,y,yt,Tt),Xl(a,ot,at,-1,!1,z,y,yt,Tt),Xl(a,ot,at,1,!0,z,y,yt,Tt),Xl(a,ot,at,-1,!0,z,y,yt,Tt);ai(x)}}}}function aS(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ht=x;;){if(at===E&&ht===z)return!0;var dt=at,yt=ht;if(b===0)if(dt<E)dt++;else break;else if(b===90)if(yt<z)yt++;else break;else if(b===180)if(dt>E)dt--;else break;else if(yt>z)yt--;else break;var Tt=ot[dt][yt];if(Tt===0||Tt===ty)break;at=dt,ht=yt}for(;;){if(dt=b,yt=at,Tt=ht,b===0?Tt<z?(dt=90,Tt++):Tt>z&&(dt=270,Tt--):b===90?yt<E?(dt=0,yt++):yt>E&&(dt=180,yt--):b===180?Tt<z?(dt=90,Tt++):Tt>z&&(dt=270,Tt--):yt<E?(dt=0,yt++):yt>E&&(dt=180,yt--),yt=ot[yt][Tt],dt!==b&&yt!==0&&yt!==ty){if(nt.push(at),nt.push(ht),aS(a,at,ht,dt,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ht]=ty,b===0){if(at===y)return!1;at--}else if(b===90){if(ht===x)return!1;ht--}else if(b===180){if(at===y)return!1;at++}else{if(ht===x)return!1;ht++}}}sn.Object.defineProperties(np.prototype,{bounds:{get:function(){return new Je(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 Zu=0,Ac=1,Ef=999999,$v=Ef+1,ty=Ef+2;np.className="PositionArray";function pd(){je(this),this.port=this.node=null,this.pe=[],this.ap=!1}pd.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
`+b.toString())}return y};function Tx(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}pd.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof mi?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(ho,de.alloc()),at=a.port.ga(ws,de.alloc());for(E=Je.allocAt(ot.x,ot.y,0,0),E.Ye(at),de.free(ot),de.free(at),ot=de.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ht=nt.value;if(ht.isVisible()&&ht.fromPort!==ht.toPort){var dt=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),yt=ht.computeSpot(dt,a.port);if(yt.$c()&&(dt=dt?ht.toPort:ht.fromPort,dt!==null)){var Tt=dt.part;if(Tt!==null){var zt=Tt.findVisibleNode();zt!==null&&zt!==Tt&&(Tt=zt,dt=Tt.port),dt=ht.computeOtherPoint(Tt,dt),Tt=ot.ab(dt),Tt-=at,0>Tt?Tt+=360:360<=Tt&&(Tt-=360),yt=Tx(E,yt,Tt,ht.isOrthogonal),yt===0?(yt=4,180<Tt&&(Tt-=360)):yt===90?(yt=8,270<Tt&&(Tt-=360)):yt===180?yt=2:(yt=1,90>Tt&&(Tt+=360)),zt=a.pe[z],zt===void 0?(zt=new ey(ht,Tt,yt),a.pe[z]=zt):(zt.link=ht,zt.angle=Tt,zt.Nc=yt),zt.hv.set(dt),z++}}}}for(de.free(ot),a.pe.sort(pd.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,yt=a.port,b=a.node.portSpreading,ot=de.alloc(),at=de.alloc(),nt=de.alloc(),ht=de.alloc(),yt.ga(ho,ot),yt.ga(qr,at),yt.ga(ws,nt),yt.ga(Vo,ht),zt=Tt=dt=yt=0,b===Hv)for(var Gt=0;Gt<z.length;Gt++){var ee=z[Gt];if(ee!==null){var ye=ee.link.computeThickness();switch(ee.Nc){case 8:Tt+=ye;break;case 2:zt+=ye;break;case 1:yt+=ye;break;default:case 4:dt+=ye}}}var ge=Gt=0,Ce=1,be=ee=0;for(ye=0;ye<z.length;ye++){var Ee=z[ye];if(Ee!==null){if(Gt!==Ee.Nc){switch(Gt=Ee.Nc,Gt){case 8:var Be=nt;ge=ht;break;case 2:Be=ht,ge=ot;break;case 1:Be=ot,ge=at;break;default:case 4:Be=at,ge=nt}switch(ee=ge.x-Be.x,be=ge.y-Be.y,Gt){case 8:Tt>Math.abs(ee)?(Ce=Math.abs(ee)/Tt,Tt=Math.abs(ee)):Ce=1;break;case 2:zt>Math.abs(be)?(Ce=Math.abs(be)/zt,zt=Math.abs(be)):Ce=1;break;case 1:yt>Math.abs(ee)?(Ce=Math.abs(ee)/yt,yt=Math.abs(ee)):Ce=1;break;default:case 4:dt>Math.abs(be)?(Ce=Math.abs(be)/dt,dt=Math.abs(be)):Ce=1}ge=0}var He=Ee.Zo;if(b===Hv){switch(Ee=Ee.link.computeThickness(),Ee*=Ce,He.set(Be),Gt){case 8:He.x=Be.x+ee/2+Tt/2-ge-Ee/2;break;case 2:He.y=Be.y+be/2+zt/2-ge-Ee/2;break;case 1:He.x=Be.x+ee/2-yt/2+ge+Ee/2;break;default:case 4:He.y=Be.y+be/2-dt/2+ge+Ee/2}ge+=Ee}else{var Mn=.5;b===Gm&&(Mn=(Ee.Uo+1)/(Ee.Gl+1)),He.x=Be.x+ee*Mn,He.y=Be.y+be*Mn}}}for(de.free(ot),de.free(at),de.free(nt),de.free(ht),Be=a.pe,z=0;z<Be.length;z++)b=Be[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Je.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}pd.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},pd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,no,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},pd.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new de,this.Gl=this.Uo=0,this.Zo=new de,this.Ju=0}ey.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()},ey.className="LinkInfo";function jr(a){je(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new de(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}jr.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},jr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},jr.prototype.qb=function(){},jr.prototype.toString=function(){var a=vi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},jr.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())}}},jr.prototype.createNetwork=function(){return new br(this)},jr.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ke?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof mi?y.lg(a.memberParts):y.lg(a.iterator),y},jr.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")}},jr.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()}},jr.prototype.doLayout=function(a){var y=new Oe;a instanceof Ke?(Oh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Oh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof mi?Oh(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},jr.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;ip(ot);var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(b,E),ot instanceof mi&&(ot.rh=!1),b+=Math.max(ht,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},jr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof xn)&&(ip(ot),this.rh(ot))){var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(x,b),ot instanceof mi&&(ot.rh=!1),x+=Math.max(ht,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},jr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof mi&&a.rh)};function Oh(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof Fn?at.isLinkLabel||(at instanceof mi&&at.layout===null?Oh(a,y,at.memberParts,!1,E,z,nt,ot):(ip(at),y.add(at))):nt&&at instanceof xn?y.add(at):!ot||!at.Zc()||at instanceof Fn||(ip(at),y.add(at)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}jr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Je),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},jr.prototype.ex=function(a){var y=new Oe;return a instanceof Ke?(Oh(this,y,a.nodes,!0,null,!0,!0,!0),Oh(this,y,a.links,!0,null,!0,!0,!0),Oh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof mi?Oh(this,y,a.memberParts,!1,null,!0,!0,!0):Oh(this,y,a.iterator,!1,null,!0,!0,!0),y},jr.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(ho),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},sn.Object.defineProperties(jr.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())}}}),jr.prototype.collectParts=jr.prototype.ex,jr.prototype.getLayoutBounds=jr.prototype.ni,jr.prototype.invalidateLayout=jr.prototype.C,jr.className="Layout";function br(a){je(this),this.Sc=a,this.wf=new Oe,this.ye=new Oe,this.Es=new pn,this.zs=new pn}br.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 Oe,this.ye=new Oe,this.Es=new pn,this.zs=new pn},br.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},br.prototype.createVertex=function(){return new ko(this)},br.prototype.createEdge=function(){return new ua(this)},br.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof Fn)return!nt.isLinkLabel;if(nt instanceof xn){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Fn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof mi&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof xn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},br.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},Ut=br.prototype,Ut.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ut.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},Ut.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(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}Ut.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ut.ki=function(a){return a===null?null:this.Es.I(a)},Ut.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(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}}Ut.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Ut.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),iy(this,a)}};function iy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ut.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ut.Lo=function(a){return a===null?null:this.zs.I(a)},Ut.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Ut.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))}},Ut.Ko=function(){for(var a=li(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);ai(a)},br.prototype.deleteArtificialVertexes=function(){for(var a=li(),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=li(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);ai(a),ai(y)};function Nx(a){for(var y=li(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);ai(y)}br.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Nx(this),this.Ko()),a=new Cn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),ry(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function ry(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(iy(a,E),ny(y,E),ry(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(iy(a,x),ny(y,x),ry(a,y,x.toVertex))}}br.prototype.dz=function(){for(var a=new Oe,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},sn.Object.defineProperties(br.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}}}),br.prototype.findAllParts=br.prototype.dz,br.prototype.splitIntoSubNetworks=br.prototype.Zx,br.prototype.deleteSelfEdges=br.prototype.Ko,br.prototype.reverseEdge=br.prototype.gm,br.prototype.linkVertexes=br.prototype.Zj,br.prototype.findEdge=br.prototype.Lo,br.prototype.deleteLink=br.prototype.Yy,br.prototype.deleteEdge=br.prototype.Mj,br.prototype.addLink=br.prototype.Dy,br.prototype.addEdge=br.prototype.Bo,br.prototype.findVertex=br.prototype.ki,br.prototype.deleteNode=br.prototype.Zy,br.prototype.deleteVertex=br.prototype.Iu,br.prototype.addNode=br.prototype.Bl,br.prototype.addVertex=br.prototype.dh,br.prototype.addParts=br.prototype.lg,br.className="LayoutNetwork";function ko(a){je(this),this.ob=a,this.j=new Je(0,0,10,10).freeze(),this.o=new de(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Cn,this.mg=new Cn}ko.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Cn,this.mg=new Cn},ko.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Me(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},ko.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;yn(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 mi)){x=Je.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Gi);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Je.free(x);return}Je.free(x)}a.moveTo(y.x,y.y)}},ko.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},ko.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},ko.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},ko.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(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}sn.Object.defineProperties(ko.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=Je.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),Je.free(x),!(a instanceof mi)&&(a=a.locationObject.ga(Gi),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Oe,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Oe,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Oe,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 Cn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ko.prototype.deleteDestinationEdge=ko.prototype.Jl,ko.prototype.addDestinationEdge=ko.prototype.zl,ko.prototype.deleteSourceEdge=ko.prototype.Kl,ko.prototype.addSourceEdge=ko.prototype.Cl,ko.className="LayoutVertex",ko.standardComparer=oy,ko.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function ua(a){je(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ua.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Me(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},ua.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ua.prototype.commit=function(){},ua.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},sn.Object.defineProperties(ua.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),ua.prototype.getOtherVertex=ua.prototype.Ax,ua.className="LayoutEdge";function Zo(a){jr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new on(NaN,NaN).freeze(),this.tf=new on(10,10).freeze(),this.Jb=rp,this.Rb=i0,this.nd=op,this.hd=hS,a&&Object.assign(this,a)}We(Zo,jr),Zo.prototype.cloneProtected=function(a){jr.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},Zo.prototype.qb=function(a){a.classType===Zo?a===op||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===ml?this.arrangement=a:a===rp||a===n0?this.alignment=a:Ye("Unknown enum value: "+a):jr.prototype.qb.call(this,a)},Zo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof mi)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case r0:E.reverse();break;case op:E.sort(this.comparer);break;case o0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case n0:var ot=y,at=x,ht=Je.alloc(),dt=Math.max(this.cellSize.width,1);if(!isFinite(dt))for(var yt=dt=0;yt<E.length;yt++){var Tt=this.ni(E[yt],ht);dt=Math.max(dt,Tt.width)}if(dt=Math.max(dt+ot,1),yt=Math.max(this.cellSize.height,1),!isFinite(yt))for(Tt=yt=0;Tt<E.length;Tt++){var zt=this.ni(E[Tt],ht);yt=Math.max(yt,zt.height)}yt=Math.max(yt+at,1),Tt=this.arrangement;for(var Gt=zt=this.arrangementOrigin.x,ee=this.arrangementOrigin.y,ye=0,ge=0,Ce=0;Ce<E.length;Ce++){var be=E[Ce],Ee=this.ni(be,ht),Be=Math.ceil((Ee.width+ot)/dt)*dt,He=Math.ceil((Ee.height+at)/yt)*yt;switch(Tt){case ml:var Mn=Math.abs(Gt-Ee.width);break;default:Mn=Gt+Ee.width}switch((0<z&&ye>z-1||0<nt&&0<ye&&Mn-zt>nt)&&(b.push(new Je(0,ee,nt+ot,ge)),ye=0,Gt=zt,ee+=ge,ge=0),ge=Math.max(ge,He),Tt){case ml:Ee=-Ee.width;break;default:Ee=0}switch(be.moveTo(Gt+Ee,ee),Tt){case ml:Gt-=Be;break;default:Gt+=Be}ye++}b.push(new Je(0,ee,nt+ot,ge)),Je.free(ht);break;case rp:for(at=nt,dt=z,yt=y,Tt=x,nt=Je.alloc(),zt=Math.max(this.cellSize.width,1),z=ee=ht=0,ot=de.alloc(),Gt=0;Gt<E.length;Gt++)ge=E[Gt],ye=this.ni(ge,nt),ge=Ku(ge,ge.locationObject,ge.locationSpot,ot),ht=Math.max(ht,ge.x),ee=Math.max(ee,ye.width-ge.x),z=Math.max(z,ge.y);switch(Gt=this.arrangement,Gt){case ml:ht+=yt;break;default:ee+=yt}zt=isFinite(zt)?Math.max(zt+yt,1):Math.max(ht+ee,1);var Un=ge=this.arrangementOrigin.x;for(Ce=this.arrangementOrigin.y,ee=0,at>=ht&&(at-=ht),ht=be=0,Be=Math.max(this.cellSize.height,1),Ee=z=0,He=!0,ye=de.alloc(),Mn=0;Mn<E.length;Mn++){var Dn=E[Mn],Sn=this.ni(Dn,nt),an=Ku(Dn,Dn.locationObject,Dn.locationSpot,ot);if(0<ee)switch(Gt){case ml:Un=(Un-ge-(Sn.width-an.x))/zt,Un=ze.$(Math.round(Un),Un)?Math.round(Un):Math.floor(Un),Un=Un*zt+ge;break;default:Un=(Un-ge+an.x)/zt,Un=ze.$(Math.round(Un),Un)?Math.round(Un):Math.ceil(Un),Un=Un*zt+ge}else switch(Gt){case ml:be=Un+an.x+Sn.width;break;default:be=Un-an.x}switch(Gt){case ml:var pi=-(Un+an.x)+be;break;default:pi=Un+Sn.width-an.x-be}if(0<dt&&ee>dt-1||0<at&&0<ee&&pi>at){for(b.push(new Je(0,He?Ce-z:Ce,at+yt,Ee+z+Tt)),Un=0;Un<ee&&Mn!==ee;Un++){pi=E[Mn-ee+Un];var ci=Ku(pi,pi.locationObject,pi.locationSpot,ye);pi.moveTo(pi.position.x,pi.position.y+z-ci.y)}Ee+=Tt,Ce=He?Ce+Ee:Ce+(Ee+z),ee=Ee=z=0,Un=ge,He=!1}switch(Un===ge&&(ht=Gt===ml?Math.max(ht,Sn.width-an.x):Math.min(ht,-an.x)),z=Math.max(z,an.y),Ee=Math.max(Ee,Sn.height-an.y),isFinite(Be)&&(Ee=Math.max(Ee,Math.max(Sn.height,Be)-an.y)),He?Dn.moveTo(Un-an.x,Ce-an.y):Dn.moveTo(Un-an.x,Ce),Gt){case ml:Un-=an.x+yt;break;default:Un+=Sn.width-an.x+yt}ee++}if(b.push(new Je(0,Ce,at+yt,(He?Ee:Ee+z)+Tt)),E.length!==ee)for(at=0;at<ee;at++)dt=E[E.length-ee+at],yt=Ku(dt,dt.locationObject,dt.locationSpot,ot),dt.moveTo(dt.position.x,dt.position.y+z-yt.y);if(de.free(ot),de.free(ye),Gt===ml)for(E=0;E<b.length;E++)z=b[E],z.width+=ht,z.x-=ht;else for(E=0;E<b.length;E++)z=b[E],z.x>ht&&(z.width+=z.x-ht,z.x=ht);Je.free(nt)}for(ot=z=nt=E=0;ot<b.length;ot++)at=b[ot],E=Math.min(E,at.x),nt=Math.min(nt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===ml?this.commitLayers(b,new de(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new de(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Zo.prototype.commitLayers=function(){};function hS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}sn.Object.defineProperties(Zo.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!==rp&&a!==n0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==i0&&a!==ml||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==r0&&a!==op&&a!==o0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var n0=new qe(Zo,"Position",0),rp=new qe(Zo,"Location",1),i0=new qe(Zo,"LeftToRight",2),ml=new qe(Zo,"RightToLeft",3),sy=new qe(Zo,"Forward",4),r0=new qe(Zo,"Reverse",5),op=new qe(Zo,"Ascending",6),o0=new qe(Zo,"Descending",7);Zo.className="GridLayout",Zo.standardComparer=hS,Zo.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Zo.Position=n0,Zo.Location=rp,Zo.LeftToRight=i0,Zo.RightToLeft=ml,Zo.Forward=sy,Zo.Reverse=r0,Zo.Ascending=op,Zo.Descending=o0;function fr(){this.On=new Oe,this.Dn=new Oe,this.Pa=new Oe,this.cf=new pn,this.bf=new pn,this.aj=new pn,this.H=null,this.tp=!1}Ut=fr.prototype,Ut.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ut.Xe=function(a){this.H=a},Ut.oi=function(a){if(a instanceof Fn){if(this.On.add(a),a instanceof mi){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 xn?this.Dn.add(a):a instanceof Ki||this.Pa.add(a);y=a.data,y===null||a instanceof Ki||(a instanceof xn?this.bf.add(y,a):this.cf.add(y,a))},Ut.pc=function(a){if(a.Ej(),a instanceof Fn){if(this.On.remove(a),a instanceof mi){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 xn?this.Dn.remove(a):a instanceof Ki||this.Pa.remove(a);y=a.data,y===null||a instanceof Ki||(a instanceof xn?this.bf.remove(y):this.cf.remove(y))},Ut.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof mi)&&Ye('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof mi||Ye('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof xn||Ye('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=li(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=li(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=li(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);ai(y),ai(x),ai(a)}},fr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},fr.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&cS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&ef(this.diagram,!1)};function cS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Ka(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}fr.prototype.insertLink=function(){return null},fr.prototype.resolveReferencesForData=function(){},fr.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(pS||(pS=!0,Ui('No Group template found for category "'+x+'"'),Ui(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(gS||(gS=!0,Ui('No Node template found for category "'+x+'"'),Ui(" Using default node template")),y=a.ny))),y}fr.prototype.getLinkCategoryForData=function(){return""},fr.prototype.setLinkCategoryForData=function(){},fr.prototype.setFromNodeForLink=function(){},fr.prototype.setToNodeForLink=function(){},fr.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,Ui('No Link template found for category "'+a+'"'),Ui(" Using default link template")),x=y.my)),x},fr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},fr.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},fr.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Sg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},fr.prototype.unresolveReferencesForPart=function(){},fr.prototype.removeDataForLink=function(){},fr.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},fr.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Fn?a:null)},fr.prototype.findLinkForKey=function(){return null},Ut=fr.prototype,Ut.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ut.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Fn?a:null)},Ut.Kc=function(a){return a===null?null:this.bf.I(a)},Ut.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Oe;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(yn(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator},Ut.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Oe;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(yn(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator};function ay(a,y,x){for(var b in x){var E=y[b],z=x[b];if(hi(z)){if(!hi(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!fS(a,E[nt],ot))return!1}}else if(!fS(a,E,z))return!1}return!0}function fS(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(yn(y)&&yn(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}fr.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Wr){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===co){var nt=a.newValue;b==="nodeDataArray"&&yn(nt)&&cS(this,nt),y.isModified=!0}else if(x===Lo){var ot=a.oldValue;b==="nodeDataArray"&&yn(ot)&&this.ip(ot),y.isModified=!0}else x===oa&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Wr){var at=a.propertyName,ht=a.object;ht===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ht,at),y.isModified=!0}else if(x===co||x===Lo){var dt=a.change===co,yt=dt?a.newParam:a.oldParam,Tt=dt?a.newValue:a.oldValue,zt=this.aj.I(a.object);if(Array.isArray(zt))for(a=0;a<zt.length;a++){var Gt=zt[a];if(dt)bm(Gt,Tt,yt,!0);else if(!(0>yt)){var ee=yt+Ug(Gt);Gt.pc(ee,!0),wv(Gt,ee,yt)}}y.isModified=!0}}finally{y.aa=!0}}}}},fr.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)},fr.prototype.rp=function(){for(var a=this.H.model,y=new Oe,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){AS(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&bS(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()},fr.prototype.refreshDataBoundLinks=function(){},fr.prototype.updateRelationshipsFromData=function(){},fr.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var nt=E[z].sx(a);nt!==null&&(x===null&&(x=li()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);ai(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(hi(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){xc(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)bg(x,nt[at])});var b=y.Hh;if(hi(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}fr.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new pn;if(hi(a))for(var E=0;E<a.length;E++)s0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)s0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Oe;for(var z=new pn,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof xn)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof Fn&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ht=ot.pg();ht!==null&&(ht=b.I(ht),ht!==null?(x.qe(at.data,x.wa(ht.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var dt=new pn;b.each(function(yt){yt.key.data!==null&&dt.add(yt.key.data,yt.value.data)}),x(dt,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function s0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof $n))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Fn){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof mi&&z instanceof mi)for(y=y.memberParts;y.next();)nt=s0(a,y.value,x,b,E),nt instanceof xn||nt===null||(nt.containingGroup=z)}else if(y instanceof xn&&z instanceof xn)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=s0(a,y.value,x,b,E),nt!==null&&nt instanceof Fn&&(nt.labeledLink=z);return z}fr.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof xn||(b=E.copyNodeData(b),yn(b)&&(E.xf(b),x=y.Lc(b)))}else Ka(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof xn||(E=y.copyNodeData(b)),yn(E)&&(x.data=E)));return x},sn.Object.defineProperties(fr.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}}}),fr.prototype.updateAllRelationshipsFromData=fr.prototype.rp,fr.prototype.findLinksByExample=fr.prototype.ls,fr.prototype.findNodesByExample=fr.prototype.ms,fr.prototype.findLinkForData=fr.prototype.Kc,fr.prototype.findNodeForData=fr.prototype.ii,fr.prototype.findPartForData=fr.prototype.Lc,fr.prototype.findNodeForKey=fr.prototype.Vb,fr.prototype.removeModeledPart=fr.prototype.ip,fr.prototype.removeModeledParts=fr.prototype.Gs,fr.prototype.rebuildParts=fr.prototype.Wd;var gS=!1,pS=!1,mS=!1;fr.className="PartManager";function zo(a){fr.apply(this,arguments)}We(zo,fr),zo.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},zo.prototype.addModeledParts=function(a){for(fr.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Cf(a.value);ef(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),ef(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Ka(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=h0(x,y,!0);z!==""&&(E.fromPortId=z),z=Ca(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(E.fromNode=z)),z=h0(x,y,!1),z!==""&&(E.toPortId=z),z=Ca(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}zo.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}zo.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zo.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zo.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zo.prototype.findPartForKey=function(a){var y=fr.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zo.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zo.prototype.doModelChanged=function(a){var y=this;if(fr.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Wr){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ht=this.Kc(a.object);if(ht!==null){var dt=a.newValue;typeof dt=="string"&&(ht.fromPortId=dt)}}else if(E==="linkToPortId"){var yt=this.Kc(a.object);if(yt!==null){var Tt=a.newValue;typeof Tt=="string"&&(yt.toPortId=Tt)}}else if(E==="nodeGroupKey"){var zt=this.Lc(a.object);if(zt!==null){var Gt=a.newValue;if(Gt!==void 0){var ee=this.Vb(Gt);ee instanceof mi?zt.containingGroup=ee:zt.containingGroup=null}else zt.containingGroup=null}}else if(E==="linkLabelKeys"){var ye=this.Kc(a.object);if(ye!==null){var ge=a.oldValue,Ce=a.newValue;Array.isArray(ge)&&ge.forEach(function(an){0<=Ce.indexOf(an)||(an=y.Vb(an),an!==null&&(an.labeledLink=null))}),Array.isArray(Ce)&&Ce.forEach(function(an){an=y.Vb(an),an!==null&&(an.labeledLink=ye)})}}else if(E==="linkCategory"){var be=this.Kc(a.object),Ee=a.newValue;be!==null&&typeof Ee=="string"&&(be.category=Ee)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===co){var Be=a.newValue;if(E==="linkDataArray"&&typeof Be=="object"&&Be!==null)yS(this,Be);else if(E==="linkLabelKeys"&&Bh(Be)){var He=this.Kc(a.object),Mn=this.Vb(Be);He!==null&&Mn!==null&&(Mn.labeledLink=He)}x.isModified=!0}else if(b===Lo){var Un=a.oldValue;if(E==="linkDataArray"&&typeof Un=="object"&&Un!==null)this.ip(Un);else if(E==="linkLabelKeys"&&Bh(Un)){var Dn=this.Vb(Un);Dn!==null&&(Dn.labeledLink=null)}x.isModified=!0}}else if(b===Wr){var Sn=a.propertyName;a.object!==x.model||Sn!=="linkFromKeyProperty"&&Sn!=="linkToKeyProperty"&&Sn!=="linkFromPortIdProperty"&&Sn!=="linkToPortIdProperty"&&Sn!=="linkLabelKeysProperty"&&Sn!=="nodeIsGroupProperty"&&Sn!=="nodeGroupKeyProperty"&&Sn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},zo.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Oe,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){NS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&TS(y,z,!1)})},zo.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof xn){var E=Ca(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Ca(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Oe().addAll(y);var nt=new Oe;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof Ki)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof mi)&&(a.containingGroup=y)}}},zo.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof mi&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof Fn&&(Ca(y,nt,!0)===x&&(z.link.fromNode=E),Ca(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}yl(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof mi&&(E.containingGroup=a))}},zo.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)vl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&vl(y,x,b.data)),a instanceof mi)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&vl(y,x,b)}}},zo.prototype.copyPartData=function(a,y){var x=fr.prototype.copyPartData.call(this,a,y);if(a instanceof xn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},zo.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof xn){if(Ka(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof Fn&&(Ka(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Mf(z,b,z.wa(a.data),!0),Tf(z,b,ot,!0),x!==null&&Mf(z,b,z.wa(x.data),!1),Tf(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof Fn||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},zo.prototype.findLinkForKey=zo.prototype.findLinkForKey,zo.prototype.findPartForKey=zo.prototype.findPartForKey,zo.prototype.removeAllModeledParts=zo.prototype.removeAllModeledParts,zo.prototype.addModeledParts=zo.prototype.addModeledParts,zo.prototype.addAllModeledParts=zo.prototype.addAllModeledParts,zo.className="GraphLinksPartManager";function Da(){fr.apply(this,arguments),this.Sg=null}We(Da,fr);function a0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Ps(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Ka(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}Da.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Da.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Da.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},Da.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},Da.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Da.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Da.prototype.doModelChanged=function(a){if(fr.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Wr){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:a0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ht=a.newValue;if(at!==null&&typeof ht=="string"){var dt=at.kh();dt!==null&&(dt.category=ht)}}y.isModified=!0}}else if(x===Wr){var yt=a.propertyName;a.object===y.model&&yt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Da.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Fn&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:a0(this,y,a):b!==null&&Sg(x,b,!1)))}}},Da.prototype.updateDataBindings=function(a,y){fr.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Da.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=sp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Fn&&y.mh(z)===x&&a0(this,E,this.ii(z))}yl(y,x)}a=y.mh(a),a!==void 0&&E instanceof Fn&&(a=this.Vb(a),a0(this,a,E))}},Da.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(Lo,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&vl(y,x,E)}},Da.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},Da.prototype.findLinkForKey=Da.prototype.findLinkForKey,Da.className="TreePartManager";function Kn(a,y){this.kl=new Oe,this.il=new Oe,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,je(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new pn,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 pn,this.Lt=new Cn,this.Wg=!1,this.o=null,this.undoManager=new Vr,a!==void 0&&(hi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Kn.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},Kn.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Kn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Kn.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+qi(E)}}return y},Kn.prototype.xA=function(a){a.change!==oa&&Ye("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof jo?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Kn.prototype.Qv=function(a,y){var x=this,b=!1,E=new Oe,z=new Oe,nt=new Oe,ot=this.vh;a.changes.each(function(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===co?E.add(yt.newValue):yt.change===Lo&&nt.add(yt.oldValue):x.lb(yt.object)?z.add(yt.object):yt.change!==Wr||x.modelData!==yt.object&&yt.propertyName!=="modelData"?yt.object!==null&&(ot&&ot.contains(yt.object)?ot.get(yt.object).each(function(Tt){x.lb(Tt)&&z.add(Tt)}):yt.object instanceof Kn||x.ri()&&x.Jc(yt.object)||PS(x,yt.object).each(function(Tt){z.add(Tt)})):b=!0)});var at=this.il;at.clear(),E.each(function(yt){at.add(x.wa(yt)),y||z.add(yt)});var ht=this.kl;ht.clear(),nt.each(function(yt){ht.add(x.wa(yt)),y&&z.add(yt)}),a=x.cloneDeep(z.Fa());var dt=null;return b&&(dt===null&&(dt={}),dt.modelData=this.cloneDeep(this.modelData)),0<at.count&&(dt===null&&(dt={}),y?dt.removedNodeKeys=at.Fa():dt.insertedNodeKeys=at.Fa()),0<a.length&&(dt===null&&(dt={}),dt.modifiedNodeData=a),0<ht.count&&(dt===null&&(dt={}),y?dt.insertedNodeKeys=ht.Fa():dt.removedNodeKeys=ht.Fa()),ht.clear(),at.clear(),dt},Kn.prototype.cloneDeep=function(a){return kf(this,a,!0)};function kf(a,y,x,b,E,z){function nt(yt,Tt){ot?(yt.__gohashid===void 0&&z.push(yt),b.set(yt,Tt)):(yt=Ie++,b.set(yt,Tt),E.set(yt,y))}if(!yn(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new pn),ot){var at=b.get(y);if(at)return at}else for(E||(E=new pn),at=E.iterator;at.next();){var ht=at.key;if(at.value===y&&(ht=b.get(ht)))return ht}if(Array.isArray(y)){at=[],nt(y,at);for(var dt=0;dt<y.length;dt++)at.push(kf(a,y[dt],!1,b,E,z))}else if(y instanceof de||y instanceof on||y instanceof Je||y instanceof ii||y instanceof _n)at=y.copy(),nt(y,at);else{if(y instanceof hr||y instanceof bn||y instanceof qe)return y;if(y instanceof Cn)at=new Cn().addAll(kf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Oe)at=new Oe().addAll(kf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof pn)at=new pn().addAll(kf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(dt in at={},nt(y,at),y)dt!=="__gohashid"&&(at[dt]=kf(a,y[dt],!1,b,E,z))}return x&&z.forEach(function(yt){delete yt.__gohashid}),at}Ut=Kn.prototype,Ut.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ut.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},Ut.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 xS(a,y){y=y.modelData,yn(y)&&(a.dm(y),a.modelData=y)}Ut.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!CS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+Dh(this,this.nodeDataArray,!0)},Ut.kv=function(a){xS(this,a),a=a.nodeDataArray,hi(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new Oe,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new pn,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Wr?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===co||z===Lo)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function PS(a,y){for(var x=new Oe,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];l0(a,y,E,E,x)}return x}function l0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}else if(yn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}return!1}Ut.Pv=function(a,y){var x=this,b=!1,E=new Oe,z=new Oe,nt=new Oe,ot=this.vh;a.changes.each(function(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===co?E.add(dt.newValue):dt.change===Lo&&nt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==Wr||x.modelData!==dt.object&&dt.propertyName!=="modelData"?dt.object!==null&&(ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){x.lb(yt)&&z.add(yt)}):dt.object instanceof Kn||x.ri()&&x.Jc(dt.object)||PS(x,dt.object).each(function(yt){z.add(yt)})):b=!0)});var at=this.il;at.clear(),E.each(function(dt){at.add(x.wa(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(x.wa(dt)),y&&z.add(dt)}),a="",b&&(a+=`,
|
|
"modelData": `+hy(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+Dh(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+Dh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Wv:this.Yv)+Dh(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Ut.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)&&Ye("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new pn;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var ot=this.hc(nt);ot===null&&(ot=(ot=b.get(nt))?ot:this.copyNodeData({}),this.km(ot,nt),this.xf(ot))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},Ut.$x=function(a,y){a.change!==oa&&Ye("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof jo?(y===void 0&&(y=ap(this,this)),wS(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 }'},Ut.yA=function(a,y){return this.$x(a,y)},Ut.np=function(a){return a===void 0&&(a=ap(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ut.toJSON=function(a){return this.np(a)},Ut.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ze.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Ye("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ye("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ut.Ky=function(a){return this.Zw(a)},Kn.constructGraphLinksModel=function(){return new Kn},Ut=Kn.prototype,Ut.dm=function(a){if(hi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(yn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Ye("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(yn(a)){for(y in a)if(x=a[y],yn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Cn,b=0;b<x.length/2;b++)E.add(new de(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Fx(a)}return a},Ut.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()):hi(a)?Dh(this,a):yn(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Dh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new ar;E.add("["),x&&1<b&&E.add(`
|
|
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
|
|
`),E.add("]"),E.toString()}function CS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Fs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof de)y={class:"go.Point",x:Fs(x.x),y:Fs(x.y)};else if(x instanceof on)y={class:"go.Size",width:Fs(x.width),height:Fs(x.height)};else if(x instanceof Je)y={class:"go.Rect",x:Fs(x.x),y:Fs(x.y),width:Fs(x.width),height:Fs(x.height)};else if(x instanceof ii)y={class:"go.Margin",top:Fs(x.top),right:Fs(x.right),bottom:Fs(x.bottom),left:Fs(x.left)};else if(x instanceof _n)x.sb()?y={class:"go.Spot",x:Fs(x.x),y:Fs(x.y),offsetX:Fs(x.offsetX),offsetY:Fs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof hr){if(y={class:"go.Brush",type:x.type.name},x.type===Wu?y.color=x.color:(x.type===fu||x.type===Fa)&&(y.start=x.start,y.end=x.end,x.type===Fa&&(x.startRadius!==0&&(y.startRadius=Fs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Fs(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof bn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Fs(x.startX)),x.startY!==0&&(y.startY=Fs(x.startY)),x.endX!==0&&(y.endX=Fs(x.endX)),x.endY!==0&&(y.endY=Fs(x.endY)),x.spot1.D(ho)||(y.spot1=x.spot1),x.spot2.D(ws)||(y.spot2=x.spot2),x.type===bn.o&&(y.path=bn.ia(x))):x instanceof qe&&(y={class:"go.EnumValue",classType:ap(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=lo(y,E);if(!CS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Cn){var nt="[";for(z=z.iterator;z.next();){var ot=z.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function Os(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Fx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new de(Os(a.x),Os(a.y));else if(y==="Size")x=new on(Os(a.width),Os(a.height));else if(y==="Rect")x=new Je(Os(a.x),Os(a.y),Os(a.width),Os(a.height));else if(y==="Margin")x=new ii(Os(a.top),Os(a.right),Os(a.bottom),Os(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Od(a.enum):x=new _n(Os(a.x),Os(a.y),Os(a.offsetX),Os(a.offsetY));else if(y==="Brush"){if(x=new hr,x.type=Oi(hr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof _n&&(x.start=a.start),a.end instanceof _n&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Os(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Os(a.endRadius)),a=a.colorStops,yn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=bn.parse(a.path):x=new bn,x.type=Oi(bn,a.type),typeof a.startX=="number"&&(x.startX=Os(a.startX)),typeof a.startY=="number"&&(x.startY=Os(a.startY)),typeof a.endX=="number"&&(x.endX=Os(a.endX)),typeof a.endY=="number"&&(x.endY=Os(a.endY)),a.spot1 instanceof _n&&(x.spot1=a.spot1),a.spot2 instanceof _n&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Oi(b,a.name)));return x}Ut.Pe=function(a){return this.Lt.add(a),this},Ut.ik=function(a){this.Lt.remove(a)},Ut.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ut.cb=function(a,y,x,b,E,z,nt){bo(this,"",a,y,x,b,E,z,nt)},Ut.g=function(a,y,x,b,E){bo(this,"",Wr,a,this,y,x,b,E)},Ut.Fs=function(a,y,x,b,E,z){bo(this,"",Wr,y,a,x,b,E,z)};function bo(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ht=new Hr;ht.model=a,ht.change=x,ht.modelChange=y,ht.propertyName=b,ht.object=E,ht.oldValue=z,ht.oldParam=ot,ht.newValue=nt,ht.newParam=at,a.ds(ht)}Kn.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Wr){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Rr(x,b,E)}else a.change===co?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,yn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&xr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&zr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!hi(b)&&a.propertyName&&(b=lo(a.object,a.propertyName)),hi(b)&&typeof x=="number"&&(a=a.newValue,y?xr(b,x):zr(b,x,a))):Ye("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Lo?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,yn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&zr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&xr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!hi(b)&&a.propertyName&&(b=lo(a.object,a.propertyName)),hi(b)&&typeof x=="number"&&(a=a.oldValue,y?zr(b,x,a):xr(b,x))):Ye("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==oa&&Ye("unknown ChangedEvent: "+a.toString())},Kn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Kn.prototype.eb=function(a){return this.undoManager.eb(a)},Kn.prototype.Kf=function(){return this.undoManager.Kf()},Kn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ut=Kn.prototype,Ut.La=function(a,y){y===void 0&&(y=""),bo(this,"SourceChanged",oa,y,a,null,null)},Ut.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Bh(y))return y;Ye("Key value for node data "+a+" is not a number or a string: "+y)}}},Ut.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=lo(a,x);b!==y&&this.hc(y)===null&&(Rr(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),bo(this,"nodeKey",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Rr(a,x,y)}};function Bh(a){return typeof a=="number"||typeof a=="string"}Ut.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ut.hc=function(a){return a===null&&Ye("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Bh(a)?this.kb.I(a):null},Ut.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Rr(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Rr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Rr(a,y,x)}}}}},Ut.xf=function(a){a!==null&&(wn(a),this.lb(a)||bS(this,a,!0))};function bS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Ye("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,zr(a.Tc,b,y)),bo(a,"nodeDataArray",co,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ut.Fy=function(a){if(hi(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)},Ut.cm=function(a){a!==null&&AS(this,a,!0)};function AS(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;xr(a.Tc,b)}bo(a,"nodeDataArray",Lo,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ut.nA=function(a){if(hi(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)},Ut.$z=function(a){if(a!==this.nodeDataArray&&hi(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.wa(z);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ut.jp=function(a,y){y!==void 0&&(a=sp(this,a),a instanceof Oe&&this.Vf.add(y,a))},Ut.Lv=function(){},Ut.fm=function(){},Ut.em=function(){},Ut.qp=function(){};function vl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Oe,a.Vf.add(y,b)),b.add(x)}}function yl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Oe&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function sp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Oe?a:null)}Ut.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Kn.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):u0(this,a,!0),yn(a)&&je(a),a};function u0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=u0(a,y[x],a.copiesArrayObjects);b.push(E)}return je(b),b}if(x&&yn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=lo(y,b),nt=ap(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Kn||z instanceof Vr||z instanceof jo||z instanceof Hr||(z=u0(a,z,!1)),Rr(x,b,z)}return je(x),x}return y instanceof de||y instanceof on||y instanceof Je||y instanceof _n||y instanceof ii?y.copy():y}Kn.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!LS&&a instanceof Re&&(LS=!0,Ui('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Ui(" Is that really your intent?"));var b=lo(a,y);b!==x&&(Rr(a,y,x),this.Fs(a,y,b,x))},Ut=Kn.prototype,Ut.set=function(a,y,x){this.setDataProperty(a,y,x)},Ut.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Ut.Ay=function(a,y){this.ts(a,-1,y)},Ut.ts=function(a,y,x){0>y&&(y=a.length),zr(a,y,x),bo(this,"",co,"",a,null,x,null,y)},Ut.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ye("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];xr(a,y),bo(this,"",Lo,"",a,x,null,y,null)},Ut.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Ye("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ut.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Rr(a,x,y),bo(this,"nodeCategory",Wr,x,a,b,y))}else Rr(a,x,y)}},Ut.lm=function(a,y){this.jm(y,this.Ro(a))},Ut.Tl=function(){return!1},Ut.Wj=function(){return!1},Ut.ri=function(){return!1},Ut.xs=function(){return!1},Ut.Xj=function(){return!1};function cy(){return new Kn}function ap(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 ap(a,y.constructor);return typeof y}function dy(a){return sl[a]?sl[a]:Ze.go!==void 0&&Ze.go[a]?Ze.go[a]:null}function lo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Rr(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}sn.Object.defineProperties(Kn.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===""&&Ye("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ye("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];yn(E)||Ye("Model.nodeDataArray must only contain Objects, not: "+E),wn(E)}for(this.Tc=a,b=new Cn,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(bo(this,"nodeDataArray",Wr,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Kn.prototype.setCategoryForNodeData=Kn.prototype.jm,Kn.prototype.getCategoryForNodeData=Kn.prototype.Ro,Kn.prototype.removeArrayItem=Kn.prototype.ov,Kn.prototype.insertArrayItem=Kn.prototype.ts,Kn.prototype.addArrayItem=Kn.prototype.Ay,Kn.prototype.assignAllDataProperties=Kn.prototype.Do,Kn.prototype.set=Kn.prototype.set,Kn.prototype.clearUnresolvedReferences=Kn.prototype.Qy,Kn.prototype.mergeNodeDataArray=Kn.prototype.$z,Kn.prototype.removeNodeDataCollection=Kn.prototype.nA,Kn.prototype.removeNodeData=Kn.prototype.cm,Kn.prototype.addNodeDataCollection=Kn.prototype.Fy,Kn.prototype.addNodeData=Kn.prototype.xf,Kn.prototype.makeNodeDataKeyUnique=Kn.prototype.$u,Kn.prototype.findNodeDataForKey=Kn.prototype.hc,Kn.prototype.containsNodeData=Kn.prototype.lb,Kn.prototype.setKeyForNodeData=Kn.prototype.km,Kn.prototype.getKeyForNodeData=Kn.prototype.wa,Kn.prototype.updateTargetBindings=Kn.prototype.La,Kn.prototype.commit=Kn.prototype.commit,Kn.prototype.rollbackTransaction=Kn.prototype.Kf,Kn.prototype.commitTransaction=Kn.prototype.eb,Kn.prototype.startTransaction=Kn.prototype.Ea,Kn.prototype.raiseDataChanged=Kn.prototype.Fs,Kn.prototype.raiseChanged=Kn.prototype.g,Kn.prototype.raiseChangedEvent=Kn.prototype.cb,Kn.prototype.removeChangedListener=Kn.prototype.ik,Kn.prototype.addChangedListener=Kn.prototype.Pe,Kn.prototype.writeJsonValue=Kn.prototype.sm,Kn.prototype.replaceJsonObjects=Kn.prototype.dm,Kn.prototype.applyIncrementalJSON=Kn.prototype.Ky,Kn.prototype.applyIncrementalJson=Kn.prototype.Zw,Kn.prototype.toJSON=Kn.prototype.toJSON,Kn.prototype.toJson=Kn.prototype.np,Kn.prototype.toIncrementalJSON=Kn.prototype.yA,Kn.prototype.toIncrementalJson=Kn.prototype.$x,Kn.prototype.toIncrementalData=Kn.prototype.xA,Kn.prototype.clear=Kn.prototype.clear;var LS=!1,sl={};Kn.className="Model",Kn.fromJSON=Kn.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:Ye("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=dy(b)):(E=dy(b),E===null&&(E=Ze[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Kn?y=a:Ye("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Kn.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Kn.safePropertyValue=lo,Kn.safePropertySet=Rr,sl.Brush=hr,sl.ChangedEvent=Hr,sl.Geometry=bn,sl.Margin=ii,sl.Panel=gn,sl.Point=de,sl.Rect=Je,sl.Size=on,sl.Spot=_n,sl.Transaction=jo,sl.UndoManager=Vr;function mo(a,y,x,b){je(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=kS,this.wk=null):(this.el=lp,this.wk=b),this.st=new Oe}mo.prototype.copy=function(){var a=new mo;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},Ut=mo.prototype,Ut.qb=function(a){a.classType===mo&&(this.mode=a)},Ut.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ut.freeze=function(){return this._isFrozen=!0,this},Ut.ka=function(){return this._isFrozen=!1,this},Ut.Kx=function(a){return a===void 0&&(a=null),this.mode=lp,this.backConverter=a,this},Ut.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ut.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function ES(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ut.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")Ui("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=lo(y,b)),z!==void 0)if(E===null)x!==""&&Rr(a,x,z);else try{if(x!==""){var nt=E(z,a);Rr(a,x,nt)}else E(z,a)}catch(ot){}}}},Ut.sp=function(a,y,x,b){if(this.el===lp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=lo(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):Rr(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,dt=b.panel.itemArray;at.ov(dt,ht),at.ts(dt,ht,nt)}}else try{if(x!==""){var yt=z(nt,y,at);at!==null?at.setDataProperty(y,x,yt):Rr(y,x,yt)}else{var Tt=z(nt,y,at);if(Tt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var zt=b.itemIndex,Gt=b.panel.itemArray;at.ov(Gt,zt),at.ts(Gt,zt,Tt)}}}catch(ee){}}finally{this.st.remove(a)}}}},sn.Object.defineProperties(mo.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ti(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ti(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ti(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ti(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ti(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ti(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ti(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ti(this),this.el=a}}}),mo.prototype.updateSource=mo.prototype.sp,mo.prototype.updateTarget=mo.prototype.Mv,mo.prototype.ofModel=mo.prototype.dA,mo.prototype.ofObject=mo.prototype.cp,mo.prototype.makeTwoWay=mo.prototype.Kx;var Ox="Binding",kS=new qe(mo,"OneWay",1),lp=new qe(mo,"TwoWay",2);mo.className="Binding",mo.parseEnum=function(a,y){return function(x){return x=Oi(a,x),x===null?y:x}},mo.toString=qi,mo.OneWay=kS,mo.TwoWay=lp;function zi(a,y,x){Kn.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Oe,this.wb=new pn,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&&(hi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}We(zi,Kn),zi.constructGraphLinksModel=Kn.constructGraphLinksModel,zi.prototype.cloneProtected=function(a){Kn.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},Ut=zi.prototype,Ut.clear=function(){Kn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ut.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+qi(E)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Ca(this,E,!0)+"-->"+Ca(this,E,!1)}return y},Ut.Qv=function(a,y){this.linkKeyProperty===""&&Ye("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Kn.prototype.Qv.call(this,a,y),b=this,E=new Oe,z=new Oe,nt=new Oe,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===co?E.add(dt.newValue):dt.change===Lo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):dt.object instanceof Kn||b.lb(dt.object)||MS(b,dt.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ht.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ht.Fa():x.removedLinkKeys=ht.Fa()),ht.clear(),at.clear(),x},Ut.rm=function(){var a=Kn.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},Ut.gp=function(a){Kn.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)},Ut.Rv=function(){var a=Kn.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+Dh(this,this.linkDataArray,!0);return a+y},Ut.kv=function(a){Kn.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function MS(a,y){for(var x=new Oe,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];l0(a,y,E,E,x)}return x}Ut.Pv=function(a,y){this.linkKeyProperty===""&&Ye("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Kn.prototype.Pv.call(this,a,y),b=this,E=new Oe,z=new Oe,nt=new Oe,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===co?E.add(dt.newValue):dt.change===Lo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):dt.object instanceof Kn||b.lb(dt.object)||MS(b,dt.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+Dh(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+Dh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Vv:this.Xv)+Dh(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Ut.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)&&Ye("applyIncrementalJson cannot change Model properties"),Kn.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);FS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},zi.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Wr){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Rr(x,b,E);return}}else if(a.change===co){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,yn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Lo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,yn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Kn.prototype.changeState.call(this,a,y)}},Ut=zi.prototype,Ut.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),Rr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ut.yx=function(a){return Ca(this,a,!0)},Ut.wv=function(a,y){Mf(this,a,y,!0)},Ut.Bx=function(a){return Ca(this,a,!1)},Ut.Bv=function(a,y){Mf(this,a,y,!1)};function Ca(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=lo(y,a),a!==void 0))){if(Bh(a))return a;Ye((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Mf(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=lo(y,E);z!==x&&(yl(a,z,y),Rr(y,E,x),a.hc(x)===null&&vl(a,x,y),bo(a,b?"linkFromKey":"linkToKey",Wr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Rr(y,E,x)}}Ut.zx=function(a){return h0(this,a,!0)},Ut.xv=function(a,y){Tf(this,a,y,!0)},Ut.Cx=function(a){return h0(this,a,!1)},Ut.Cv=function(a,y){Tf(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=lo(y,a),y===void 0?"":y)}function Tf(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=lo(y,E);z===void 0&&(z=""),z!==x&&(Rr(y,E,x),bo(a,b?"linkFromPortId":"linkToPortId",Wr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Rr(y,E,x)}}Ut.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=lo(a,y),a===void 0?c0:a)},Ut.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=lo(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)yl(this,b[z],a);for(Rr(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&vl(this,nt,a)}bo(this,"linkLabelKeys",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Rr(a,x,y)}},Ut.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=lo(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&vl(this,y,a),bo(this,"linkLabelKeys",co,x,a,null,y,null,E)))}else Ye(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ut.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=lo(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(yl(this,y,a),bo(this,"linkLabelKeys",Lo,x,a,y,null,E,null)))}else b!==void 0&&Ye(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ut.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Bh(y))return y;Ye("Key value for link data "+a+" is not a number or a string: "+y)}}},Ut.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=lo(a,x);b!==y&&this.jh(y)===null&&(Rr(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),bo(this,"linkKey",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Rr(a,x,y)}},Ut.jh=function(a){return a===null&&Ye("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Bh(a)?this.wb.I(a):null},Ut.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Rr(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Rr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Rr(a,y,x)}}}}},Ut.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ut.fi=function(a){a!==null&&(wn(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&Ye("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),bo(a,"linkDataArray",co,"linkDataArray",a,null,y,null,b),fy(a,y)}Ut.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)},Ut.bm=function(a){a!==null&&NS(this,a,!0)};function NS(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(bo(a,"linkDataArray",Lo,"linkDataArray",a,y,null,b,null),x=Ca(a,y,!0),yl(a,x,y),x=Ca(a,y,!1),yl(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],yl(a,x,y)}Ut.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)},Ut.Zz=function(a){if(this.linkKeyProperty===""&&Ye("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&hi(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),FS(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=Ca(a,y,!0);x=a.Vl(x),a.hc(x)===null&&vl(a,x,y),x=Ca(a,y,!1),x=a.Vl(x),a.hc(x)===null&&vl(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&vl(a,x,y)}Ut.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):u0(this,a,!0),yn(a)&&(je(a),this.lf!==""&&Rr(a,this.lf,void 0),this.mf!==""&&Rr(a,this.mf,void 0),this.je!==""&&Rr(a,this.je,[])),a},Ut.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!lo(a,y)},Ut.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Bh(y))return y;Ye("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ut.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=lo(a,x);b!==y&&(yl(this,b,a),Rr(a,x,y),this.hc(y)===null&&vl(this,y,a),bo(this,"nodeGroupKey",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Rr(a,x,y)}},zi.prototype.copyNodeData=function(a){return a===null?null:(a=Kn.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||lo(a,this.Je)===void 0||Rr(a,this.Je,void 0),a)},zi.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){Mf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Mf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Tf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Tf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=lo(a,y);b!==x&&(Rr(a,y,x),this.Fs(a,y,b,x))},Ut=zi.prototype,Ut.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&lo(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ut.jp=function(a,y){Kn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Ca(this,b,!0)===E){var nt=this.lf;Rr(b,nt,z),bo(this,"linkFromKey",Wr,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Ca(this,b,!1)===E&&(nt=this.mf,Rr(b,nt,z),bo(this,"linkToKey",Wr,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ht=0;ht<ot;ht++)nt[ht]===E&&(nt[ht]=z,bo(this,"linkLabelKeys",co,at,b,E,z,ht,ht))}},Ut.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Rr(a,b,x),bo(this,"nodeGroupKey",Wr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ut.Lv=function(){Kn.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},Ut.fm=function(a){Kn.prototype.fm.call(this,a),a=this.wa(a);var y=sp(this,a);if(y!==null){var x=li();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;bo(this,"nodeGroupKey",Wr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Ca(this,b,!0)===a&&(E=this.lf,bo(this,"linkFromKey",Wr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Ca(this,b,!1)===a&&(E=this.mf,bo(this,"linkToKey",Wr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,nt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(bo(this,"linkLabelKeys",co,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)yl(this,a,x[y]);ai(x)}},Ut.em=function(a){Kn.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&vl(this,y,a)},Ut.qp=function(a){Kn.prototype.qp.call(this,a);var y=this.lh(a);yl(this,y,a)},Ut.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Ye("getCategoryForLinkData found a non-string category for "+a+": "+y)},zi.prototype.getLinkCategoryForData=function(a){return this.ps(a)},zi.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Rr(a,x,y),bo(this,"linkCategory",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Rr(a,x,y)}},zi.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ut=zi.prototype,Ut.lm=function(a,y){Kn.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function FS(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))}Ut.Wj=function(){return!0},Ut.ri=function(){return!0},Ut.xs=function(){return!0},Ut.Xj=function(){return!0},sn.Object.defineProperties(zi.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];yn(E)||Ye("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),wn(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Cn,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Oe,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,bo(this,"linkDataArray",Wr,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),zi.prototype.setCategoryForLinkData=zi.prototype.lp,zi.prototype.getCategoryForLinkData=zi.prototype.ps,zi.prototype.assignAllDataProperties=zi.prototype.Do,zi.prototype.setGroupKeyForNodeData=zi.prototype.mp,zi.prototype.getGroupKeyForNodeData=zi.prototype.lh,zi.prototype.isGroupForNodeData=zi.prototype.Yu,zi.prototype.copyLinkData=zi.prototype.Jo,zi.prototype.mergeLinkDataArray=zi.prototype.Zz,zi.prototype.removeLinkDataCollection=zi.prototype.lA,zi.prototype.removeLinkData=zi.prototype.bm,zi.prototype.addLinkDataCollection=zi.prototype.Ey,zi.prototype.addLinkData=zi.prototype.fi,zi.prototype.containsLinkData=zi.prototype.Jc,zi.prototype.makeLinkDataKeyUnique=zi.prototype.Bs,zi.prototype.findLinkDataForKey=zi.prototype.jh,zi.prototype.setKeyForLinkData=zi.prototype.Ks,zi.prototype.getKeyForLinkData=zi.prototype.Ac,zi.prototype.removeLabelKeyForLinkData=zi.prototype.Qx,zi.prototype.addLabelKeyForLinkData=zi.prototype.Bu,zi.prototype.setLabelKeysForLinkData=zi.prototype.Ls,zi.prototype.getLabelKeysForLinkData=zi.prototype.Ef,zi.prototype.setToPortIdForLinkData=zi.prototype.Cv,zi.prototype.getToPortIdForLinkData=zi.prototype.Cx,zi.prototype.setFromPortIdForLinkData=zi.prototype.xv,zi.prototype.getFromPortIdForLinkData=zi.prototype.zx,zi.prototype.setToKeyForLinkData=zi.prototype.Bv,zi.prototype.getToKeyForLinkData=zi.prototype.Bx,zi.prototype.setFromKeyForLinkData=zi.prototype.wv,zi.prototype.getFromKeyForLinkData=zi.prototype.yx,zi.prototype.clear=zi.prototype.clear;var c0=Object.freeze([]);zi.className="GraphLinksModel",sl.GraphLinksModel=zi,Kn.constructGraphLinksModel=Kn.constructGraphLinksModel=function(){return new zi},Kn.initDiagramModel=cy=function(){return new zi};function Ds(a,y){Kn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(hi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}We(Ds,Kn),Ds.constructGraphLinksModel=Kn.constructGraphLinksModel,Ds.prototype.cloneProtected=function(a){Kn.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ut=Ds.prototype,Ut.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+qi(E)}}return y},Ut.rm=function(){var a=Kn.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ut.gp=function(a){Kn.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ut.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ye("applyIncrementalJson cannot change Model properties"),Kn.prototype.fp.call(this,a)},Ut.Vl=function(a){return a},Ut.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Bh(y))return y;Ye("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ut.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=lo(a,x);b!==y&&(yl(this,b,a),Rr(a,x,y),this.hc(y)===null&&vl(this,y,a),bo(this,"nodeParentKey",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Rr(a,x,y)}},Ut.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=lo(a,y),y===void 0)?"":typeof y=="string"?y:(Ye("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ds.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ds.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Rr(a,x,y),bo(this,"parentLinkCategory",Wr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Rr(a,x,y)}},Ds.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ds.prototype.copyNodeData=function(a){return a===null?null:(a=Kn.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||lo(a,this.Ke)===void 0||Rr(a,this.Ke,void 0),a)},Ds.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=lo(a,y);b!==x&&(Rr(a,y,x),this.Fs(a,y,b,x))},Ut=Ds.prototype,Ut.jp=function(a,y){Kn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ut.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Rr(a,b,x),bo(this,"nodeParentKey",Wr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ut.fm=function(a){Kn.prototype.fm.call(this,a),a=this.wa(a);var y=sp(this,a);if(y!==null){var x=li();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;bo(this,"nodeParentKey",Wr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)yl(this,a,x[y]);ai(x)}},Ut.em=function(a){Kn.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&vl(this,y,a)},Ut.qp=function(a){Kn.prototype.qp.call(this,a);var y=this.mh(a);yl(this,y,a)},Ut.lm=function(a,y){Kn.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ut.Tl=function(){return!0},Ut.xs=function(){return!0},sn.Object.defineProperties(Ds.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"}}}),Ds.prototype.setParentLinkCategoryForNodeData=Ds.prototype.Ms,Ds.prototype.getParentLinkCategoryForNodeData=Ds.prototype.ss,Ds.prototype.setParentKeyForNodeData=Ds.prototype.qe,Ds.prototype.getParentKeyForNodeData=Ds.prototype.mh,Ds.className="TreeModel",sl.TreeModel=Ds;function Xr(a){jr.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=al,this.Ti=0,this.Zv=new de,this.Jp=this.me=0,this.Xr=new dp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=al,this.K=Bs,this.nd=Ff,this.hd=oy,this.tf=6,this.Nn=y0,a&&Object.assign(this,a)}We(Xr,jr),Xr.prototype.cloneProtected=function(a){jr.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},Xr.prototype.qb=function(a){a.classType===Xr?a===m0||a===v0||a===g0||a===p0||a===Ff?this.sorting=a:a===Lc||a===Nf||a===Bs||a===Rh?this.direction=a:a===Ju||a===Ih||a===al||a===ll?this.arrangement=a:(a===md||a===y0)&&(this.nodeDiameterFormula=a):jr.prototype.qb.call(this,a)},Xr.prototype.createNetwork=function(){return new Of(this)},Xr.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 Cn;y.addAll(a.iterator),a=new Cn;var x=new Cn,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ht=this.radius;(!isFinite(ht)||0>=ht)&&(ht=NaN);var dt=this.aspectRatio;(!isFinite(dt)||0>=dt)&&(dt=1);var yt=this.startAngle;isFinite(yt)||(yt=0);var Tt=this.sweepAngle;if((!isFinite(Tt)||360<Tt||1>Tt)&&(Tt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===ll&&at===md?ot=al:ot===ll&&at!==md&&(ot=this.arrangement),(this.direction===Lc||this.direction===Nf)&&this.sorting!==Ff){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Lc?(this.arrangement===ll&&a.reverse(),b=new Cn,b.addAll(a),b.addAll(x)):(this.arrangement===ll&&x.reverse(),b=new Cn,b.addAll(x),b.addAll(a))}at=b.length;for(var zt=z=E=0;zt<b.length;zt++){var Gt=yt+Tt*z*(this.direction===Bs?1:-1)/at,ee=b.M(zt).diameter;isNaN(ee)&&(ee=jh(b.M(zt),Gt)),360>Tt&&(zt===0||zt===b.length-1)&&(ee/=2),E+=ee,z++}if(isNaN(ht)||ot===ll){if(isNaN(y)&&(y=6),ot!==al&&ot!==ll){for(z=-1/0,nt=0;nt<at;nt++)zt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(zt.diameter)&&jh(zt,0),isNaN(E.diameter)&&jh(E,0),z=Math.max(z,(zt.diameter+E.diameter)/2);nt=z+y,ot===Ju?ht=(z+y)/(2*Math.PI/at):ht=d0(this,nt*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180)}else ht=d0(this,E+(360<=Tt?at:at-1)*(ot!==ll?y:1.6*y),dt,yt*Math.PI/180,Tt*Math.PI/180);z=ht*dt}else if(z=ht*dt,zt=gy(this,ht,z,yt*Math.PI/180,Tt*Math.PI/180),isNaN(y))(ot===al||ot===ll)&&(y=(zt-E)/(360<=Tt?at:at-1));else if(ot===al||ot===ll)zt=(zt-E)/(360<=Tt?at:at-1),zt<y?(ht=d0(this,E+y*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180),z=ht*dt):y=zt;else{for(nt=-1/0,E=0;E<at;E++)Gt=b.M(E),ee=b.M(E===at-1?0:E+1),isNaN(Gt.diameter)&&jh(Gt,0),isNaN(ee.diameter)&&jh(ee,0),nt=Math.max(nt,(Gt.diameter+ee.diameter)/2);nt+=y,E=d0(this,nt*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180),E>ht?(ht=E,z=ht*dt):nt=zt/(360<=Tt?at:at-1)}if(this.kw=ot,this.lc=ht,this.Zm=dt,this.lw=yt,this.Wp=Tt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ht=this.lw,dt=this.Wp,yt=this.Ti,Tt=this.me,at=this.Jp,this.direction!==Lc&&this.direction!==Nf||b!==ll)if(this.direction===Lc||this.direction===Nf){switch(nt=0,b){case Ih:nt=180*f0(this,ot,Tt,ht,at)/Math.PI;break;case al:at=y=0,nt=a.first(),nt!==null&&(y=jh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=jh(nt,Math.PI/2)),nt=180*f0(this,ot,Tt,ht,yt+(y+at)/2)/Math.PI;break;case Ju:nt=dt/y.length}if(this.direction===Lc){switch(b){case Ih:cp(this,a,ht,Rh);break;case al:hp(this,a,ht,Rh);break;case Ju:up(this,a,dt/2,ht,Rh)}switch(b){case Ih:cp(this,x,ht+nt,Bs);break;case al:hp(this,x,ht+nt,Bs);break;case Ju:up(this,x,dt/2,ht+nt,Bs)}}else{switch(b){case Ih:cp(this,x,ht,Rh);break;case al:hp(this,x,ht,Rh);break;case Ju:up(this,x,dt/2,ht,Rh)}switch(b){case Ih:cp(this,a,ht+nt,Bs);break;case al:hp(this,a,ht+nt,Bs);break;case Ju:up(this,a,dt/2,ht+nt,Bs)}}}else switch(b){case Ih:cp(this,y,ht,this.direction);break;case al:hp(this,y,ht,this.direction);break;case Ju:up(this,y,dt,ht,this.direction);break;case ll:OS(this,y,dt,ht,this.direction)}else OS(this,y,dt,ht-dt/2,Bs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=b+(E===Bs?at*x/(360<=z?ot:ot-1):-(at*x)/ot),dt=y.M(at),yt=nt*Math.tan(ht)/a;yt=Math.sqrt((nt*nt+a*a*yt*yt)/(1+yt*yt)),dt.centerX=yt*Math.cos(ht),dt.centerY=yt*Math.sin(ht),dt.actualAngle=180*ht/Math.PI}}function hp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at),dt=y.M(at===ot-1?0:at+1),yt=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=yt,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&jh(ht,0),isNaN(dt.diameter)&&jh(dt,0),ht=f0(a,E,z,b===Bs?x:-x,(ht.diameter+dt.diameter)/2+nt),x+=b===Bs?ht:-ht}}function cp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at);ht.centerX=E*Math.cos(x),ht.centerY=z*Math.sin(x),ht.actualAngle=180*x/Math.PI,ht=f0(a,E,z,b===Bs?x:-x,nt),x+=b===Bs?ht:-ht}}function OS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new dp,360>x){for(z=b+(E===Bs?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,BS(a,y,x,b,E)}else DS(a,y,x,b,E);a.Xr.commit(y)}function DS(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=a.me*Math.sin(b*Math.PI/180),dt=y.Fa();if(dt.length===3)dt[0].centerX=z,dt[0].centerY=0,dt[1].centerX=dt[0].centerX-dt[0].width/2-dt[1].width/2-nt,dt[1].y=dt[0].y,dt[2].centerX=(dt[0].centerX+dt[1].centerX)/2,dt[2].y=dt[0].y-dt[2].height-nt;else if(dt.length===4)dt[0].centerX=z,dt[0].centerY=0,dt[2].centerX=-dt[0].centerX,dt[2].centerY=dt[0].centerY,dt[1].centerX=0,dt[1].y=Math.min(dt[0].y,dt[2].y)-dt[1].height-nt,dt[3].centerX=0,dt[3].y=Math.max(dt[0].y+dt[0].height+nt,dt[2].y+dt[2].height+nt);else{z=de.alloc();for(var yt=0;yt<dt.length&&(dt[yt].centerX=at,dt[yt].centerY=ht,!(yt>=dt.length-1));yt++)IS(a,at,ht,dt,yt,E,z)||RS(a,at,ht,dt,yt,E,z),at=z.x,ht=z.y;if(de.free(z),a.mj++,!(23<a.mj)){at=dt[0].centerX,ht=dt[0].centerY,z=dt[dt.length-1].centerX,yt=dt[dt.length-1].centerY;var Tt=Math.abs(at-z)-((dt[0].width+dt[dt.length-1].width)/2+nt),zt=Math.abs(ht-yt)-((dt[0].height+dt[dt.length-1].height)/2+nt);nt=0,1>Math.abs(zt)?Math.abs(at-z)<(dt[0].width+dt[dt.length-1].width)/2&&(nt=0):nt=0<zt?zt:1>Math.abs(Tt)?0:Tt,at=Math.abs(z)>Math.abs(yt)?0<z!=ht>yt:0<yt!=at<z,(at=E===Bs?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-dt[dt.length-1].width),nt=Math.min(nt,-dt[dt.length-1].height)),a.Xr.compare(nt,dt),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>dt.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,DS(a,y,x,b,E))}}}function BS(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=nt*Math.sin(b*Math.PI/180),dt=de.alloc(),yt=y.Fa(),Tt=0;Tt<yt.length&&(yt[Tt].centerX=at,yt[Tt].centerY=ht,!(Tt>=yt.length-1));Tt++)IS(a,at,ht,yt,Tt,E,dt)||RS(a,at,ht,yt,Tt,E,dt),at=dt.x,ht=dt.y;if(de.free(dt),a.mj++,!(23<a.mj)){if(at=Math.atan2(ht,at),at=E===Bs?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],at=0;at<yt.length;at++)nt.mk[at]=yt[at].bounds.x,nt.tm[at]=yt[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*ot,BS(a,y,x,b,E))}}function IS(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var dt=!1;if(0<=x!=(z===Bs)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ht,!1;dt=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ht,!1;dt=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==dt&&(ht=-ht),Math.abs(x-ht)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ht,!1):(nt.x=z,nt.y=ht,!0)}function RS(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Bs)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ht,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ht,nt.y=z;return}b=!0}ht=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ht=-ht),nt.x=ht,nt.y=z}Xr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Xr.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 de(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Xr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ht=0;ht<=z;ht++){b!==void 0&&E!==void 0?at=b+ht*E/z:at=ht*Math.PI/(2*z);var dt=Math.sin(at);nt+=Math.sqrt(1-a*a*dt*dt)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function d0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?gy(a,1,x,b,E):gy(a,1,x))}function f0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}Xr.prototype.sort=function(a){switch(this.sorting){case g0:break;case p0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Ff:return this.ak(Dx(a));default:Ye("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Cn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>E&&(E=ot,z=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>E&&(E=ot,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Xr.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var nt=[],ot=[];b=[],E=new Cn;for(var at=0,ht=0;ht<y.length;ht++){var dt=y[ht].length;if(dt===1)b.push(ht);else if(dt===0)E.add(a.M(ht));else{if(at===0)x.push(ht);else{for(var yt=dt=1/0,Tt=-1,zt=[],Gt=0;Gt<x.length;Gt++)0>y[x[Gt]].indexOf(x[Gt===x.length-1?0:Gt+1])&&zt.push(Gt===x.length-1?0:Gt+1);if(zt.length===0)for(Gt=0;Gt<x.length;Gt++)zt.push(Gt);for(Gt=0;Gt<zt.length;Gt++){for(var ee=zt[Gt],ye=y[ht],ge=0,Ce=0;Ce<nt.length;Ce++){var be=z[nt[Ce]],Ee=z[ot[Ce]];if(be<Ee){var Be=be;be=Ee}else Be=Ee;if(Be<ee&&ee<=be)for(Ee=0;Ee<ye.length;Ee++){var He=ye[Ee];0>x.indexOf(He)||Be<z[He]&&z[He]<be||Be===z[He]||be===z[He]||ge++}else for(Ee=0;Ee<ye.length;Ee++)He=ye[Ee],0>x.indexOf(He)||Be<z[He]&&z[He]<be&&Be!==z[He]&&be!==z[He]&&ge++}for(ye=ge,Ce=ge=0;Ce<y[ht].length;Ce++)Be=x.indexOf(y[ht][Ce]),0<=Be&&(Be=Math.abs(ee-(Be>=ee?Be+1:Be)),ge+=Be<x.length+1-Be?Be:x.length+1-Be);for(Ce=0;Ce<nt.length;Ce++)Be=z[nt[Ce]],be=z[ot[Ce]],Be>=ee&&Be++,be>=ee&&be++,Be>be&&(Ee=be,be=Be,Be=Ee),be-Be<(x.length+2)/2==(Be<ee&&ee<=be)&&ge++;(ye<dt||ye===dt&&ge<yt)&&(dt=ye,yt=ge,Tt=ee)}for(x.splice(Tt,0,ht),dt=0;dt<x.length;dt++)z[x[dt]]=dt;for(dt=0;dt<y[ht].length;dt++)yt=y[ht][dt],0<=x.indexOf(yt)&&(nt.push(ht),ot.push(yt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ht=y[at][0],dt=x.indexOf(ht),0<=dt){for(Tt=yt=0;Tt<y[ht].length;Tt++)zt=x.indexOf(y[ht][Tt]),0>zt||zt===dt||(Gt=zt>dt?zt-dt:dt-zt,yt+=zt<dt!=Gt>nt-Gt?1:-1);x.splice(0>yt?dt:dt+1,0,at),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},sn.Object.defineProperties(Xr.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!==ll&&a!==al&&a!==Ih&&a!==Ju||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Bs&&a!==Rh&&a!==Lc&&a!==Nf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==g0&&a!==p0&&a!==m0&&!v0&&a!==Ff||(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!==y0&&a!==md||(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 al=new qe(Xr,"ConstantSpacing",0),Ih=new qe(Xr,"ConstantDistance",1),Ju=new qe(Xr,"ConstantAngle",2),ll=new qe(Xr,"Packed",3),Bs=new qe(Xr,"Clockwise",4),Rh=new qe(Xr,"Counterclockwise",5),Lc=new qe(Xr,"BidirectionalLeft",6),Nf=new qe(Xr,"BidirectionalRight",7),g0=new qe(Xr,"Forwards",8),p0=new qe(Xr,"Reverse",9),m0=new qe(Xr,"Ascending",10),v0=new qe(Xr,"Descending",11),Ff=new qe(Xr,"Optimized",12),y0=new qe(Xr,"Pythagorean",13),md=new qe(Xr,"Circular",14);Xr.className="CircularLayout",Xr.ConstantSpacing=al,Xr.ConstantDistance=Ih,Xr.ConstantAngle=Ju,Xr.Packed=ll,Xr.Clockwise=Bs,Xr.Counterclockwise=Rh,Xr.BidirectionalLeft=Lc,Xr.BidirectionalRight=Nf,Xr.Forwards=g0,Xr.Reverse=p0,Xr.Ascending=m0,Xr.Descending=v0,Xr.Optimized=Ff,Xr.Pythagorean=y0,Xr.Circular=md;function dp(){this.Pl=-1/0,this.tm=this.mk=null}dp.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},dp.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]}},dp.className="VertexArrangement";function Of(a){br.call(this,a)}We(Of,br),Of.prototype.createVertex=function(){return new fp(this)},Of.prototype.createEdge=function(){return new S0(this)},Of.className="CircularNetwork";function fp(a){ko.call(this,a),this.u=this.Si=NaN}We(fp,ko);function jh(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===ll)if(x.nodeDiameterFormula===md)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===md?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}sn.Object.defineProperties(fp.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)}}}),fp.className="CircularVertex";function S0(a){ua.call(this,a)}We(S0,ua),S0.className="CircularEdge";function as(a){jr.call(this),this.ah=null,this.An=0,this.$d=new on(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(as,jr),as.prototype.cloneProtected=function(a){jr.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},as.prototype.createNetwork=function(){return new vd(this)},as.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}jS(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ht=li(),dt=0;dt<ot+y.vertexes.count+2;dt++)ht[dt]=null;ot=0,nt.reset();for(var yt=Je.alloc();nt.next();)if(dt=nt.value,this.computeBounds(dt,yt),at)at=!1,E=yt.x+yt.width/2,z=yt.y+yt.height/2,ht[0]=new de(yt.x+yt.width+b.width,yt.y),ht[1]=new de(yt.x,yt.y+yt.height+b.height),ot=2;else{var Tt=zS(ht,ot,E,z,yt.width,yt.height,b),zt=ht[Tt],Gt=new de(zt.x+yt.width+b.width,zt.y),ee=new de(zt.x,zt.y+yt.height+b.height);for(Tt+1<ot&&ht.splice(Tt+1,0,null),ht[Tt]=Gt,ht[Tt+1]=ee,ot++,Tt=zt.x-yt.x,zt=zt.y-yt.y,dt=dt.vertexes.iterator;dt.next();)Gt=dt.value,Gt.centerX+=Tt,Gt.centerY+=zt}for(Je.free(yt),dt=y.vertexes.iterator;dt.next();)nt=dt.value,Tt=nt.bounds,2>ot?(E=Tt.x+Tt.width/2,z=Tt.y+Tt.height/2,ht[0]=new de(Tt.x+Tt.width+b.width,Tt.y),ht[1]=new de(Tt.x,Tt.y+Tt.height+b.height),ot=2):(at=zS(ht,ot,E,z,Tt.width,Tt.height,b),yt=ht[at],zt=new de(yt.x+Tt.width+b.width,yt.y),Tt=new de(yt.x,yt.y+Tt.height+b.height),at+1<ot&&ht.splice(at+1,0,null),ht[at]=zt,ht[at+1]=Tt,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(ai(ht),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}_S(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},as.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},as.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function jS(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ix(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,jS(a,y+1,x),_S(a,z),Rx(a,E),y=E.vertexes.Fa(),y.sort(function(nt,ot){return nt===null||ot===null||nt===ot?0:ot.Vd-nt.Vd}),x=0;x<y.length;x++)jx(a,y[x]);a.Zf=b}}function Bx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ix(a,y){for(var x=a.network,b=new vd(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new WS;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new Cn),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,nt=ot.toVertex,E.network===b&&nt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new Cn,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Cn,nt.Hj=ot),ot.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,ze.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ht=ot=0,dt=at.count-nt;dt<at.count;dt++){var yt=at.M(dt),Tt=null;for(z=yt.edges.iterator;z.next();){var zt=z.value;if(zt.Ax(yt)===E){Tt=zt;break}}Tt!==null&&(ht+=Tt.length,ot+=yt.width*yt.height)}z=E.centerX,at=E.centerY,dt=E.width,yt=E.height,Tt=E.focus,zt=dt*yt,1>zt&&(zt=1),ot=ze.sqrt((ot+zt+ht*ht*4/(nt*nt))/zt),nt=(ot-1)*dt/2,ot=(ot-1)*yt/2,E.bounds=new Je(z-Tt.x-nt,at-Tt.y-ot,dt+2*nt,yt+2*ot),E.focus=new de(Tt.x+nt,Tt.y+ot)}}return a.network=b,x}function Rx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,nt=E.Tv;b.bounds=new Je(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new de(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=ze.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ht=0,dt=y.vertexes.iterator;dt.next();){var yt=dt.value;1>=yt.Vd?at++:(ot=!0,ht++,nt+=Math.atan2(y.centerY-yt.centerY,y.centerX-yt.centerX))}if(at!==0){for(0<ht&&(nt/=ht),ht=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ht=y/2),1<x.count&&x.sort(function(zt,Gt){return zt===null||Gt===null||zt===Gt?0:Gt.width*Gt.height-zt.width*zt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(dt=null,yt=at.edges.iterator;yt.next();){dt=yt.value;break}yt=at.width;var Tt=at.height;yt=ze.sqrt(yt*yt+Tt*Tt)/2,dt=z+dt.length+yt,yt=nt+(y*(ot/2>>1)+ht)*(ot%2===0?1:-1),at.centerX=b+dt*Math.cos(yt),at.centerY=E+dt*Math.sin(yt),ot++}}}}function zS(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ht=0;t:for(;ht<y;ht++){var dt=a[ht],yt=dt.x-x,Tt=dt.y-b;if(yt=yt*yt+Tt*Tt,yt<ot){for(Tt=ht-1;0<=Tt;Tt--)if(a[Tt].y>dt.y&&a[Tt].x-dt.x<E+nt.width)continue t;for(Tt=ht+1;Tt<y;Tt++)if(a[Tt].x>dt.x&&a[Tt].y-dt.y<z+nt.height)continue t;at=ht,ot=yt}}return at}as.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},as.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function US(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,ze.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,ze.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,ze.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,ze.sqrt(b*b+a*a)):b-(nt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function _S(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,nt=1;nt<y.length;nt++){var ot=y[nt];ot.forceX=0,ot.forceY=0;var at=ot.centerX;ot=ot.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(ee,ye){return ee===null||ye===null||ee===ye?0:ee.centerX-ye.centerX}):y.sort(function(ee,ye){return ee===null||ye===null||ee===ye?0:ee.centerY-ye.centerY}),x=a.Zf;var ht=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var dt=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,dt),ht=nt.charge*a.electricalFieldY(at,dt),b+=nt.mass*a.gravitationalFieldX(at,dt),ht+=nt.mass*a.gravitationalFieldY(at,dt),nt.forceX+=b,nt.forceY+=ht;for(var yt=z+1;yt<y.length;yt++){var Tt=y[yt];if(Tt!==nt){b=Tt.bounds,ot=Tt.focus,ht=b.x+ot.x;var zt=b.y+ot.y;if(at-ht>x||ht-at>x){if(E)break}else if(dt-zt>x||zt-dt>x){if(!E)break}else{var Gt=US(nt,Tt);1>Gt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new x0),Gt=b.random(),ot=b.random(),at>ht?(b=Math.abs(Tt.bounds.right-nt.bounds.x),b=(1+b)*Gt):at<ht?(b=Math.abs(Tt.bounds.x-nt.bounds.right),b=-(1+b)*Gt):(b=Math.max(Tt.width,nt.width),b=(1+b)*Gt-b/2),dt>zt?(ht=Math.abs(Tt.bounds.bottom-nt.bounds.y),ht=(1+ht)*ot):at<ht?(ht=Math.abs(Tt.bounds.y-nt.bounds.bottom),ht=-(1+ht)*ot):(ht=Math.max(Tt.height,nt.height),ht=(1+ht)*ot-ht/2)):(ot=-(nt.charge*Tt.charge)/(Gt*Gt),b=(ht-at)/Gt*ot,ht=(zt-dt)/Gt*ot),nt.forceX+=b,nt.forceY+=ht,Tt.forceX-=b,Tt.forceY-=ht}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,dt=z.bounds,yt=z.focus,at=dt.x+yt.x,dt=dt.y+yt.y,yt=US(x,z),1>yt?(yt=a.randomNumberGenerator,yt===null&&(a.randomNumberGenerator=yt=new x0),ot=yt.random(),yt=yt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ht=(nt>dt?1:-1)*(1+(z.height>x.height?z.height:x.height))*yt):(ot=ot.stiffness*(yt-ot.length),b=(at-b)/yt*ot,ht=(dt-nt)/yt*ot),x.forceX+=b,x.forceY+=ht,z.forceX-=b,z.forceY-=ht;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}as.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},as.prototype.moveFixedVertex=function(){},as.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},as.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=ns,y.toSpot=ns)}},as.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Je.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Je.free(x)}x=Je.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}Je.free(x)},as.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},as.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},as.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},as.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},as.prototype.electricalFieldX=function(){return 0},as.prototype.electricalFieldY=function(){return 0},as.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},as.prototype.gravitationalFieldX=function(){return 0},as.prototype.gravitationalFieldY=function(){return 0},as.prototype.isFixed=function(a){return a.isFixed},sn.Object.defineProperties(as.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"&&Ye('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())}}}),as.className="ForceDirectedLayout";function WS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}WS.className="ForceDirectedSubnet";function vd(a){br.call(this,a)}We(vd,br),vd.prototype.createVertex=function(){return new gp(this)},vd.prototype.createEdge=function(){return new pp(this)},vd.className="ForceDirectedNetwork";function gp(a){ko.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}We(gp,ko),sn.Object.defineProperties(gp.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),gp.className="ForceDirectedVertex";function pp(a){ua.call(this,a),this.j=this.o=NaN}We(pp,ua),sn.Object.defineProperties(pp.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)}}}),pp.className="ForceDirectedEdge";function x0(){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()}x0.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},x0.className="RandomNumberGenerator";function gr(a){jr.call(this),this.kc=this.ie=25,this.K=0,this.Dk=A0,this.Zk=L0,this.Qk=E0,this.bj=4,this.rk=k0,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 de,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}We(gr,jr),gr.prototype.cloneProtected=function(a){jr.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},gr.prototype.qb=function(a){a.classType===gr?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:Ye("Unknown enum value: "+a):jr.prototype.qb.call(this,a)},gr.prototype.createNetwork=function(){return new Bf(this)},gr.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!==vp&&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===vp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,ot=0,at=0,ht=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var dt=E.node;if(nt=z.node,dt===null||nt===null)continue;var yt=ot.fromNode;at=ot.toNode;for(var Tt=ot.fromPort;Tt!==null&&!Tt.Ed();)Tt=Tt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ht=yt;var zt=Tt;yt=at,Tt=ot,at=ht,ot=zt}var Gt=E.focus;ht=z.focus;var ee=b.rev?z.bounds:E.bounds;zt=de.alloc(),dt!==yt?ee.w()&&yt.isVisible()?yt.actualBounds.w()?(Ku(yt,Tt,Gi,zt),zt.x+=yt.actualBounds.x-ee.x,zt.y+=yt.actualBounds.y-ee.y):(Ku(yt,Tt,Gi,zt),zt.w()||zt.assign(Gt)):zt.assign(Gt):ee.w()?(Ku(yt,Tt,Gi,zt),zt.w()||zt.assign(Gt)):zt.assign(Gt),yt=b.rev?E.bounds:z.bounds,dt=de.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(Ku(at,ot,Gi,dt),dt.x+=at.actualBounds.x-yt.x,dt.y+=at.actualBounds.y-yt.y):(Ku(at,ot,Gi,dt),dt.w()||dt.assign(ht)):dt.assign(ht):yt.w()?(Ku(at,ot,Gi,dt),dt.w()||dt.assign(ht)):dt.assign(ht),this.K===90||this.K===270?(nt=Math.round((zt.x-Gt.x)/this.kc),at=zt.x,ot=Math.round((dt.x-ht.x)/this.kc),ht=dt.x):(nt=Math.round((zt.y-Gt.y)/this.kc),at=zt.y,ot=Math.round((dt.y-ht.y)/this.kc),ht=dt.y),de.free(zt),de.free(dt),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ht}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(zt=E.layer,dt=z.layer,yt=0,ee=b.link,ee!==null){var ye=ee.fromPort,ge=ee.toPort;if(ye!==null&&ge!==null){var Ce=ee.fromNode;if(Tt=ee.toNode,Ce!==null&&Tt!==null){var be=b0(this,!0),Ee=b0(this,!1),Be=this.setsPortSpots?be:ee.computeSpot(!0,ye);Gt=this.setsPortSpots?Ee:ee.computeSpot(!1,ge);var He=ee.isOrthogonal;Be.$c()&&Be.Hf(Ee)&&Gt.$c()&&Gt.Hf(be)?yt=0:(be=ee.getLinkPoint(Ce,ye,Be,!0,He,Tt,ge,de.alloc()),Ee=ee.getLinkDirection(Ce,ye,be,Be,!0,He,Tt,ge),de.free(be),Be.ys()||Ee!==QS(this,b,!0)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&b.rev&&(yt+=1):yt+=1,Be=ee.getLinkPoint(Tt,ge,Gt,!1,He,Ce,ye,de.alloc()),ee=ee.getLinkDirection(Tt,ge,Be,Gt,!1,He,Ce,ye),de.free(Be),Gt.ys()||ee!==QS(this,b,!1)?this.setsPortSpots&&Tt!==null&&Tt.ports.count===1&&b.rev&&(yt+=2):yt+=2)}}}if(Tt=yt,yt=Tt===1||Tt===3,(Tt=Tt===2||Tt===3)&&(Gt=a.createVertex(),Gt.node=null,Gt.Dj=1,Gt.layer=zt,Gt.near=E,a.dh(Gt),E=a.Zj(E,Gt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Gt),ee=1,yt&&ee--,zt-dt>ee&&0<zt){for(b.valid=!1,Gt=a.createVertex(),Gt.node=null,Gt.Dj=2,Gt.layer=zt-1,a.dh(Gt),E=a.Zj(E,Gt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Tt?0:nt,E.portToColOffset=0,E.portFromPos=Tt?0:at,E.portToPos=0,E=Gt,zt--;zt-dt>ee&&0<zt;)Gt=a.createVertex(),Gt.node=null,Gt.Dj=3,Gt.layer=zt-1,a.dh(Gt),E=a.Zj(E,Gt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Gt,zt--;E=a.Zj(Gt,z,b.link),E.valid=!yt,yt&&(Gt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ht}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=zh(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),Uh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},gr.prototype.linkMinLength=function(){return 1};function py(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}gr.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},gr.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 Ks(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Ba(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function GS(a,y,x){var b=zh(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ht=at.near;if(ht!==null&&ht.layer===at.layer)if(at=ht.index,at>nt)for(var dt=nt+1;dt<at;dt++){var yt=b[dt];yt.near===ht&&yt.Dj===ht.Dj||ot++}else for(dt=nt-1;dt>at;dt--)yt=b[dt],yt.near===ht&&yt.Dj===ht.Dj||ot++;var Tt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ht=0;ht<at.length;ht++){var zt=at[ht];if(zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,dt=zt.portToPos,zt=zt.portFromPos,Tt=ht+1;Tt<at.length;Tt++){var Gt=at[Tt];if(Gt.valid&&Gt.fromVertex.layer!==y){var ee=Gt.fromVertex.index,ye=Gt.portToPos;Gt=Gt.portFromPos,dt<ye&&(yt>ee||yt===ee&&zt>Gt)&&ot++,ye<dt&&(ee>yt||ee===yt&&Gt>zt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ht=0;ht<at.length;ht++)if(zt=at[ht],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,dt=zt.portToPos,zt=zt.portFromPos,Tt=ht+1;Tt<at.length;Tt++)Gt=at[Tt],Gt.valid&&Gt.toVertex.layer!==y&&(ee=Gt.toVertex.index,ye=Gt.portToPos,Gt=Gt.portFromPos,zt<Gt&&(yt>ee||yt===ee&&dt>ye)&&ot++,Gt<zt&&(ee>yt||ee===yt&&ye>dt)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var ge=0,Ce=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var be=b[at].sourceEdgesArrayAccess;for(ht=0;ht<ot.length;ht++)if(zt=ot[ht],zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,zt=zt.portFromPos,Tt=0;Tt<be.length;Tt++)Gt=be[Tt],Gt.valid&&Gt.fromVertex.layer!==y&&(ee=Gt.fromVertex.index,Gt=Gt.portFromPos,(yt<ee||yt===ee&&zt<Gt)&&Ce++,(ee<yt||ee===yt&&Gt<zt)&&ge++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,be=b[at].destinationEdgesArrayAccess,ht=0;ht<ot.length;ht++)if(zt=ot[ht],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,dt=zt.portToPos,Tt=0;Tt<be.length;Tt++)Gt=be[Tt],Gt.valid&&Gt.toVertex.layer!==y&&(ee=Gt.toVertex.index,ye=Gt.portToPos,(yt<ee||yt===ee&&dt<ye)&&Ce++,(ee<yt||ee===yt&&ye<dt)&&ge++)}z[nt*E+at]=ge,z[at*E+nt]=Ce}}return Uh(a,y,b),z}gr.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=GS(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function w0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=zh(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ht=z[at].destinationEdgesArrayAccess;if(ht!==null)for(var dt=0;dt<ht.length;dt++){var yt=ht[dt];if(yt.valid&&yt.toVertex.layer!==E){var Tt=yt.fromVertex.column+yt.portFromColOffset,zt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(Tt-zt)+1)*py(yt)}}}Uh(b,E,z),y+=ot}return y}gr.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 my(a,y,x){for(var b=zh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,yt=0,Tt=ot.near;if(Tt!==null&&Tt.layer===ot.layer&&(dt+=Tt.column-1,yt++),at!==null)for(Tt=0;Tt<at.length;Tt++){ot=at[Tt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(dt+=zt.column,yt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Tt=ot.toVertex,ot.valid&&!ot.rev&&Tt.layer!==y&&(dt+=Tt.column,yt++);z[nt]=yt===0?-1:dt/yt}return Uh(a,y,b),z}function HS(a,y,x){for(var b=zh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,yt=[],Tt=ot.near;if(Tt!==null&&Tt.layer===ot.layer&&(yt[dt]=Tt.column-1,dt++),ot=void 0,at!==null)for(Tt=0;Tt<at.length;Tt++){ot=at[Tt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(yt[dt]=zt.column+ot.portFromColOffset,dt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Tt=ot.toVertex,ot.valid&&!ot.rev&&Tt.layer!==y&&(yt[dt]=Tt.column+ot.portToColOffset,dt++);dt===0?z[nt]=-1:(yt.sort(function(Gt,ee){return Gt-ee}),ht=dt>>1,z[nt]=dt&1?yt[ht]:yt[ht-1]+yt[ht]>>1)}return Uh(a,y,b),z}function mp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ht=y.layer-at.layer;ot=a.linkMinLength(ot),ht===ot&&mp(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ht=at.layer-y.layer,ot=a.linkMinLength(ot),ht===ot&&mp(a,at,x,b,E,z)}}function vy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,z)}}gr.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Ux(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ht=ot.destinationEdges;ht.next();)ht.value.toVertex.valid&&at++;ht=0;for(var dt=ot.sourceEdges;dt.next();)dt.value.fromVertex.valid&&ht++;(E===null||z<at-ht)&&(E=ot,z=at-ht)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case A0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case vp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Ux(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}gr.prototype.assignLayers=function(){switch(this.Zk){case wy:YS(this);break;case Py:for(var a,y=this.network.vertexes.iterator;y.next();)a=ZS(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 L0:for(YS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function YS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=XS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function XS(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,XS(a,z)+E)}y.layer=x}else x=y.layer;return x}function ZS(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ZS(a,z)+E)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.component===1){var dt=0,yt=!1,Tt=ht.sourceEdgesArrayAccess;E=Tt.length;for(var zt=0;zt<E;zt++){var Gt=Tt[zt],ee=Gt.fromVertex;dt+=1,ee.component!==1&&(z+=1,ee=ee.layer-ht.layer,Gt=a.linkMinLength(Gt),b=Math.min(b,ee-Gt))}for(Tt=ht.destinationEdgesArrayAccess,E=Tt.length,zt=0;zt<E;zt++)Gt=Tt[zt].toVertex,--dt,Gt.component!==1?--z:yt=!0;(at===null||dt<ot)&&!yt&&(at=ht,ot=dt)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(mp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ht=0,dt=!1,Tt=nt.sourceEdgesArrayAccess,yt=Tt.length,zt=0;zt<yt;zt++)Gt=Tt[zt].fromVertex,ht+=1,Gt.component!==1?b+=1:dt=!0;for(Tt=nt.destinationEdgesArrayAccess,yt=Tt.length,zt=0;zt<yt;zt++)Gt=Tt[zt],ee=Gt.toVertex,--ht,ee.component!==1&&(--b,ee=nt.layer-ee.layer,Gt=a.linkMinLength(Gt),E=Math.min(E,ee-Gt));(ot===null||ht>z)&&!dt&&(ot=nt,z=ht)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function QS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}gr.prototype.initializeIndices=function(){switch(this.Qk){default:case by:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case E0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case Cy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&qS(a,b))}function $S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&$S(a,b))}gr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ks(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,1),Va(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ks(this)),b=this.Ia;0<=b;b--)P0(this,b,-1),Va(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ks(this))}for(Ba(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,0),Va(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ks(this)),b=this.Ia;0<=b;b--)P0(this,b,0),Va(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ks(this))}Ba(this,y);var z,nt,ot;switch(this.rk){case Ay:break;case Ly:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,1)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,-1)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,0)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,0)||z;E>=a?Ba(this,y):(a=E,y=Ks(this))}break;default:case k0:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,1)||z;for(E=this.countCrossings(),E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,1)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,-1)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Va(this,b,0)||z;for(E>=a?Ba(this,y):(a=E,y=Ks(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Va(this,b,0)||z;E>=a?Ba(this,y):(a=E,y=Ks(this))}}Ba(this,y)};function P0(a,y,x){var b=zh(a,y),E=a.tc[y],z=HS(a,y,x),nt=my(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);Uh(a,y,b)}function Va(a,y,x){var b=zh(a,y),E=a.tc[y];x=GS(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,z=0;z<E-1;z++){var dt=x[b[z].index*E+b[z+1].index],yt=x[b[z+1].index*E+b[z].index],Tt=0,zt=0,Gt=b[z].column,ee=b[z+1].column,ye=a.nodeMinColumnSpace(b[z],!0),ge=a.nodeMinColumnSpace(b[z],!1),Ce=a.nodeMinColumnSpace(b[z+1],!0),be=a.nodeMinColumnSpace(b[z+1],!1);ye=Gt-ye+Ce,ge=ee-ge+be;var Ee=b[z].sourceEdges.iterator;for(Ee.reset();Ee.next();)if(Ce=Ee.value,be=Ce.fromVertex,Ce.valid&&be.layer===y){for(Ce=0;b[Ce]!==be;)Ce++;Ce<z&&(Tt+=2*(z-Ce),zt+=2*(z+1-Ce)),Ce===z+1&&(Tt+=1),Ce>z+1&&(Tt+=4*(Ce-z),zt+=4*(Ce-(z+1)))}for(Ee=b[z].destinationEdges.iterator,Ee.reset();Ee.next();)if(Ce=Ee.value,be=Ce.toVertex,Ce.valid&&be.layer===y){for(Ce=0;b[Ce]!==be;)Ce++;Ce===z+1&&(zt+=1)}for(Ee=b[z+1].sourceEdges.iterator,Ee.reset();Ee.next();)if(Ce=Ee.value,be=Ce.fromVertex,Ce.valid&&be.layer===y){for(Ce=0;b[Ce]!==be;)Ce++;Ce<z&&(Tt+=2*(z+1-Ce),zt+=2*(z-Ce)),Ce===z&&(zt+=1),Ce>z+1&&(Tt+=4*(Ce-(z+1)),zt+=4*(Ce-z))}for(Ee=b[z+1].destinationEdges.iterator,Ee.reset();Ee.next();)if(Ce=Ee.value,be=Ce.toVertex,Ce.valid&&be.layer===y){for(Ce=0;b[Ce]!==be;)Ce++;Ce===z&&(Tt+=1)}Ce=be=0,Ee=nt[b[z].index];var Be=ot[b[z].index],He=nt[b[z+1].index],Mn=ot[b[z+1].index];Ee!==-1&&(be+=Math.abs(Ee-Gt),Ce+=Math.abs(Ee-ge)),Be!==-1&&(be+=Math.abs(Be-Gt),Ce+=Math.abs(Be-ge)),He!==-1&&(be+=Math.abs(He-ee),Ce+=Math.abs(He-ye)),Mn!==-1&&(be+=Math.abs(Mn-ee),Ce+=Math.abs(Mn-ye)),(zt<Tt-.5||zt===Tt&&yt<dt-.5||zt===Tt&&yt===dt&&Ce<be-.5)&&(ht=at=!0,b[z].column=ge,b[z+1].column=ye,dt=b[z],b[z]=b[z+1],b[z+1]=dt)}for(z=0;z<E;z++)b[z].index=z;return Uh(a,y,b),at}gr.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Xx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Df(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Df(this,y,-1)||x;x=Df(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(tx(this,-1),tx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Df(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Df(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Df(this,y,0)||x}}else Hx(this)};function Df(a,y,x){for(var b=!1;_x(a,y,x);)b=!0;return b}function _x(a,y,x){var b,E=zh(a,y),z=a.tc[y],nt=my(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=my(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,b=0;b<z;b++){var dt=E[b].column,yt=a.nodeMinColumnSpace(E[b],!0),Tt=a.nodeMinColumnSpace(E[b],!1),zt=0;0>b-1||dt-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?zt=dt-1:zt=dt,yt=b+1>=z||E[b+1].column-dt-1>Tt+a.nodeMinColumnSpace(E[b+1],!0)?dt+1:dt;var Gt=Tt=0,ee=0;if(0>=x)for(var ye=E[b].sourceEdges.iterator;ye.next();){var ge=ye.value,Ce=ge.fromVertex;if(ge.valid&&Ce.layer!==y){var be=py(ge),Ee=ge.portFromColOffset;ge=ge.portToColOffset,Ce=Ce.column,Tt+=(Math.abs(dt+ge-(Ce+Ee))+1)*be,Gt+=(Math.abs(zt+ge-(Ce+Ee))+1)*be,ee+=(Math.abs(yt+ge-(Ce+Ee))+1)*be}}if(0<=x)for(ye=E[b].destinationEdges.iterator;ye.next();)ge=ye.value,Ce=ge.toVertex,ge.valid&&Ce.layer!==y&&(be=py(ge),Ee=ge.portFromColOffset,ge=ge.portToColOffset,Ce=Ce.column,Tt+=(Math.abs(dt+Ee-(Ce+ge))+1)*be,Gt+=(Math.abs(zt+Ee-(Ce+ge))+1)*be,ee+=(Math.abs(yt+Ee-(Ce+ge))+1)*be);ge=Ee=be=0,ye=nt[E[b].index],Ce=ot[E[b].index],ye!==-1&&(be+=Math.abs(ye-dt),Ee+=Math.abs(ye-zt),ge+=Math.abs(ye-yt)),Ce!==-1&&(be+=Math.abs(Ce-dt),Ee+=Math.abs(Ce-zt),ge+=Math.abs(Ce-yt)),Gt<Tt||Gt===Tt&&Ee<be?(ht=at=!0,E[b].column=zt):(ee<Tt||ee===Tt&&ge<be)&&(ht=at=!0,E[b].column=yt)}return Uh(a,y,E),a.normalize(),at}function Sy(a,y,x){var b=zh(a,y),E=a.tc[y],z=HS(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ht=a.nodeMinColumnSpace(b[x],!1),dt=0;if(nt[x]===-1)if(x===0&&x===E-1)dt=ot;else if(x===0){var yt=b[x+1].column;yt-ot===ht+a.nodeMinColumnSpace(b[x+1],!0)?dt=ot-1:dt=ot}else x===E-1?(yt=b[x-1].column,dt=ot-yt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=(at+ht)/2|0);else x===0&&x===E-1?dt=nt[x]:x===0?(yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=Math.min(nt[x],ht)):x===E-1?(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,dt=Math.max(nt[x],at)):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,at<nt[x]&&nt[x]<ht?dt=nt[x]:at>=nt[x]?dt=at:ht<=nt[x]&&(dt=ht));dt!==ot&&(z=!0,b[x].column=dt)}Uh(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Gx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tx(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ks(a),z=w0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var nt=w0(a);nt>z?Ba(a,E):nt<z&&(z=nt,E=Ks(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ks(a),z=w0(a),b=z+1;z<b;)b=z,ex(a,x,-1),nt=w0(a),nt>z?Ba(a,E):nt<z&&(z=nt,E=Ks(a));a.normalize()}function ex(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(vy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var nt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=at;ot++)E[nt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&nt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Hx(a){for(var y=li(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Oe,Kx(y,x);var z=null,nt=null,ot=null,at=null,ht=(a.ve&1)!==0,dt=(a.ve&2)!==0,yt=(a.ve&4)!==0,Tt=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=C0(a,y,!0,!1)),y.reverse(),yt&&(a.verticalAlignment(y,x,!1),ot=C0(a,y,!1,!1)),b=Pn(y),E=b.next();!E.done;E=b.next())E.value.reverse();Tt&&(a.verticalAlignment(y,x,!1),at=C0(a,y,!1,!0)),y.reverse(),dt&&(a.verticalAlignment(y,x,!0),nt=C0(a,y,!0,!0)),ai(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(zt){var Gt=li();ht&&Gt.push(z.get(zt)),dt&&Gt.push(nt.get(zt)),yt&&Gt.push(ot.get(zt)),Tt&&Gt.push(at.get(zt)),Gt.sort(function(ye,ge){return ye-ge});var ee=Gt.length;ee=(Gt[Math.floor((ee-1)/2)]+Gt[Math.ceil((ee-1)/2)])/2,ai(Gt),zt.zc=ee})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ht=ot[at];t:{if(ht.node===null){var dt=Ey(ht);if(0<dt.length){dt=dt[0].node===null;break t}}dt=!1}var yt=dt;if(at===ot.length-1||yt){for(dt=nt.length-1,yt&&(dt=Ey(ht)[0].index);z<=at;){if(ht=ot[z],!ht.bo){yt=[];for(var Tt=Pn(ht.sourceEdgesArrayAccess),zt=Tt.next();!zt.done;zt=Tt.next())zt=zt.value,zt.valid&&yt.push(zt);ht.bo=yt}for(ht=Pn(ht.bo),yt=ht.next();!yt.done;yt=ht.next())yt=yt.value,Tt=yt.fromVertex.index,(Tt<E||Tt>dt)&&y.add(yt);z++}E=dt}}}gr.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Pn(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Pn(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?Ey(z):Zx(z),ot=nt.length;if(0<ot){nt.sort(function(yt,Tt){return yt.vi-Tt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ht=nt[ot],dt=void 0;dt=x?M0(ht,z):M0(z,ht),!y.contains(dt)&&E<ht.vi&&(ht.align=z,z.root=ht.root,z.align=ht.root,E=ht.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function C0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Pn(y),nt=z.next();!nt.done;nt=z.next()){var ot=Pn(nt.value);for(nt=ot.next();!nt.done;nt=ot.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=Pn(y),ot=z.next();!ot.done;ot=z.next()){ot=Pn(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ht=0,dt=at;dt.align!==at;){var yt=dt.align,Tt=nt?dt.width:dt.height,zt=nt?yt.width:yt.height;if(x){var Gt=M0(dt,yt),ee=Gt.portFromPos,ye=Gt.portToPos;Gt.link!==null&&(dt.node&&dt.node!==Gt.link.fromNode&&(ee=nt?dt.focusX:dt.focusY),yt.node&&yt.node!==Gt.link.toNode&&(ye=nt?yt.focusX:yt.focusY))}else Gt=M0(yt,dt),ee=Gt.portToPos,ye=Gt.portFromPos,Gt.link!==null&&(dt.node&&dt.node!==Gt.link.toNode&&(ee=nt?dt.focusX:dt.focusY),yt.node&&yt.node!==Gt.link.fromNode&&(ye=nt?yt.focusX:yt.focusY));Tt=b?dt.qg+(Tt-ee)-(zt-ye):dt.qg+ee-ye,yt.qg=Tt,ht=Math.min(ht,Tt),dt=dt.align}dt=at;do dt.qg=dt.qg-ht,dt=dt.align;while(dt!==at)}}for(x=Pn(y),nt=x.next();!nt.done;nt=x.next())for(z=Pn(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&nx(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ot=0;do{for(z=y[nt][ot];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(ot=ix(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(nt<y.length&&ot<y[nt].length&&z.sd===y[nt][ot].sd)}for(a=new pn,y=Pn(y),nt=y.next();!nt.done;nt=y.next())for(x=Pn(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=ix(b,x),z=E.root;nx(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function ix(a,y){var x=a.Tz;return a=a.vi,1>a&&Ye("Could not determine previous vertex in layer"),y[x][a-1]}gr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=li(),E=li(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=Yx(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ht){ht.value+=at.delta}}(z)));ai(b),ai(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(ot){var at=ot.key;ot=ot.value,at=a.K===90||a.K===270?at.width:at.height,ot<z&&(z=ot),ot+at>nt&&(nt=ot+at)}),x[E]=z,b[E]=nt,nt-z}gr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=b0(this,!0),y=b0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function b0(a,y){return a.K===270?y?na:js:a.K===90?y?js:na:a.K===180?y?ia:fs:y?fs:ia}gr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ht=at.layer,dt=at.column|0;b?(nt=y.x+this.kc*dt,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*dt),at.centerX=nt,at.centerY=ht,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new de(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},gr.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new Je(0,0,x,Math.abs(this.Ta[0]))):y.push(new Je(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Je(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Je(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Je(0,0,Math.abs(this.Ta[0]),x)):y.push(new Je(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Je(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Je(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},gr.prototype.commitLayers=function(){},gr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ht=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var dt=x.fromVertex,yt=x.toVertex;if(x.valid)y.curve===Pa&&y.pointsCount===4&&(dt.column===yt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ht,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ht===no&&(b=!0),ot!==null&&at===no&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Gi),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(Gi),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(dt.layer===yt.layer)y.zf();else{var Tt=!1,zt=!1,Gt=this.ie,ee=y.firstPickIndex+1;if(y.isOrthogonal){zt=!0;var ye=y.pointsCount;4<ye&&y.points.removeRange(2,ye-3)}else if(y.curve===Pa)Tt=!0,ye=y.pointsCount,4<ye&&y.points.removeRange(2,ye-3),ye===4&&(ee=2);else{ye=y.pointsCount;var ge=ht===no,Ce=at===no;2<ye&&ge&&Ce?y.points.removeRange(1,ye-2):3<ye&&ge&&!Ce?y.points.removeRange(1,ye-3):3<ye&&!ge&&Ce?y.points.removeRange(2,ye-2):4<ye&&!ge&&!Ce&&y.points.removeRange(2,ye-3)}if(x.rev){for(;yt!==null&&dt!==yt;){var be=ye=null;for(ge=yt.sourceEdges.iterator;ge.next()&&(Ce=ge.value,Ce.link!==x.link||(ye=Ce.fromVertex,be=Ce.toVertex,ye.node!==null)););if(ye===null)break;if(ye!==dt){ge=y.i(ee-1).x,Ce=y.i(ee-1).y;var Ee=ye.centerX,Be=ye.centerY;if(zt)this.K===180||this.K===0?ee===y.firstPickIndex+1?(y.m(ee++,ge,Ce),y.m(ee++,ge,Be)):(be!==null?be.centerY:Ce)!==Be&&(be=this.Ta[ye.layer-1]+this.Rf.x,y.m(ee++,be,Ce),y.m(ee++,be,Be)):ee===y.firstPickIndex+1?(y.m(ee++,ge,Ce),y.m(ee++,Ee,Ce)):(be!==null?be.centerX:ge)!==Ee&&(be=this.Ta[ye.layer-1]+this.Rf.y,y.m(ee++,ge,be),y.m(ee++,Ee,be));else if(ee===y.firstPickIndex+1){be=Math.max(10,this.he[yt.layer]);var He=Math.max(10,this.Ld[yt.layer]);if(Tt)this.K===180?Ee<=yt.bounds.x?(yt=yt.bounds.x,y.m(ee++,yt-be,Be),y.m(ee++,yt,Be),y.m(ee++,yt+He,Be)):(y.m(ee++,Ee-be,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee+He,Be)):this.K===90?Be>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(ee++,Ee,yt+He),y.m(ee++,Ee,yt),y.m(ee++,Ee,yt-be)):(y.m(ee++,Ee,Be+He),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be-be)):this.K===270?Be<=yt.bounds.y?(yt=yt.bounds.y,y.m(ee++,Ee,yt-be),y.m(ee++,Ee,yt),y.m(ee++,Ee,yt+He)):(y.m(ee++,Ee,Be-be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be+He)):this.K===0&&(Ee>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(ee++,yt+He,Be),y.m(ee++,yt,Be),y.m(ee++,yt-be,Be)):(y.m(ee++,Ee+He,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee-be,Be)));else{y.m(ee++,ge,Ce);var Mn=0;this.K===180||this.K===0?((this.K===180?Ee>=yt.bounds.right:Ee<=yt.bounds.x)&&(Mn=(this.K===0?-be:He)/2),y.m(ee++,ge+Mn,Be)):((this.K===270?Be>=yt.bounds.bottom:Be<=yt.bounds.y)&&(Mn=(this.K===90?-be:He)/2),y.m(ee++,Ee,Ce+Mn)),y.m(ee++,Ee,Be)}}else be=Math.max(10,this.he[ye.layer]),He=Math.max(10,this.Ld[ye.layer]),Tt?this.K===180?(y.m(ee++,Ee-be-Gt,Be),y.m(ee++,Math.min(Ee-be+Gt/2,Ee),Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Math.max(Ee+He-Gt/2,Ee),Be),y.m(ee++,Ee+He+Gt,Be)):this.K===90?(y.m(ee++,Ee,Be+He+Gt),y.m(ee++,Ee,Math.max(Be+He-Gt/2,Be)),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Math.min(Be-be+Gt/2,Be)),y.m(ee++,Ee,Be-be-Gt)):this.K===270?(y.m(ee++,Ee,Be-be-Gt),y.m(ee++,Ee,Math.min(Be-be+Gt/2,Be)),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Math.max(Be+He-Gt/2,Be)),y.m(ee++,Ee,Be+He+Gt)):(y.m(ee++,Ee+He+Gt,Be),y.m(ee++,Math.max(Ee+He-Gt/2,Ee),Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Math.min(Ee-be+Gt/2,Ee),Be),y.m(ee++,Ee-be-Gt,Be)):y.m(ee++,Ee,Be)}yt=ye}(ot===null||ht!==no||zt)&&(ge=y.i(ee-1).x,Ce=y.i(ee-1).y,Ee=y.i(ee).x,Be=y.i(ee).y,zt?(Gt=this.Ld[dt.layer],this.K===180||this.K===0?(zt=Ce,zt>=dt.bounds.y&&zt<=dt.bounds.bottom&&(this.K===180?Ee>=dt.bounds.x:Ee<=dt.bounds.right)&&(yt=dt.centerX+(this.K===180?-Gt:Gt),zt<dt.bounds.y+dt.bounds.height/2?zt=dt.bounds.y-this.kc/2:zt=dt.bounds.bottom+this.kc/2,y.m(ee++,yt,Ce),y.m(ee++,yt,zt)),y.m(ee++,Ee,zt)):(zt=ge,zt>=dt.bounds.x&&zt<=dt.bounds.right&&(this.K===270?Be>=dt.bounds.y:Be<=dt.bounds.bottom)&&(yt=dt.centerY+(this.K===270?-Gt:Gt),zt<dt.bounds.x+dt.bounds.width/2?zt=dt.bounds.x-this.kc/2:zt=dt.bounds.right+this.kc/2,y.m(ee++,ge,yt),y.m(ee++,zt,yt)),y.m(ee++,zt,Be)),y.m(ee++,Ee,Be)):Tt?(be=Math.max(10,this.he[dt.layer]),He=Math.max(10,this.Ld[dt.layer]),this.K===180&&Ee>=dt.bounds.x?(yt=dt.bounds.x+dt.bounds.width,y.L(ee-2,yt,Ce),y.L(ee-1,yt+He,Ce)):this.K===90&&Be<=dt.bounds.bottom?(yt=dt.bounds.y,y.L(ee-2,ge,yt),y.L(ee-1,ge,yt-be)):this.K===270&&Be>=dt.bounds.y?(yt=dt.bounds.y+dt.bounds.height,y.L(ee-2,ge,yt),y.L(ee-1,ge,yt+He)):this.K===0&&Ee<=dt.bounds.right&&(yt=dt.bounds.x,y.L(ee-2,yt,Ce),y.L(ee-1,yt-be,Ce))):(be=Math.max(10,this.he[dt.layer]),He=Math.max(10,this.Ld[dt.layer]),zt=0,this.K===180||this.K===0?((this.K===180?Ee<=dt.bounds.x:Ee>=dt.bounds.right)&&(zt=(this.K===0?He:-be)/2),y.m(ee++,Ee+zt,Ce)):((this.K===270?Be<=dt.bounds.y:Be>=dt.bounds.bottom)&&(zt=(this.K===90?He:-be)/2),y.m(ee++,ge,Be+zt)),y.m(ee++,Ee,Be)))}else{for(;dt!==null&&dt!==yt;){for(be=ye=null,dt=dt.destinationEdges.iterator;dt.next()&&(ge=dt.value,ge.link!==x.link||(ye=ge.toVertex,be=ge.fromVertex,be.node!==null&&(be=null),ye.node!==null)););if(ye===null)break;ye!==yt&&(ge=y.i(ee-1).x,Ce=y.i(ee-1).y,Ee=ye.centerX,Be=ye.centerY,zt?this.K===180||this.K===0?(be!==null?be.centerY:Ce)!==Be&&(be=this.Ta[ye.layer]+this.Rf.x,ee===y.firstPickIndex+1&&(be=this.K===0?Math.max(be,ge):Math.min(be,ge)),y.m(ee++,be,Ce),y.m(ee++,be,Be)):(be!==null?be.centerX:ge)!==Ee&&(be=this.Ta[ye.layer]+this.Rf.y,ee===y.firstPickIndex+1&&(be=this.K===90?Math.max(be,Ce):Math.min(be,Ce)),y.m(ee++,ge,be),y.m(ee++,Ee,be)):(be=Math.max(10,this.he[ye.layer]),He=Math.max(10,this.Ld[ye.layer]),Tt?this.K===180?(y.m(ee++,Ee+He+Gt,Be),y.m(ee++,Math.max(Ee+He-Gt/2,Ee),Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Math.min(Ee-be+Gt/2,Ee),Be),y.m(ee++,Ee-be-Gt,Be)):this.K===90?(y.m(ee++,Ee,Be-be-Gt),y.m(ee++,Ee,Math.min(Be-be+Gt/2,Be)),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Math.max(Be+He-Gt/2,Be)),y.m(ee++,Ee,Be+He+Gt)):this.K===270?(y.m(ee++,Ee,Be+He+Gt),y.m(ee++,Ee,Math.max(Be+He-Gt/2,Be)),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Math.min(Be-be+Gt/2,Be)),y.m(ee++,Ee,Be-be-Gt)):(y.m(ee++,Ee-be-Gt,Be),y.m(ee++,Math.min(Ee-be+Gt/2,Ee),Be),y.m(ee++,Ee,Be),y.m(ee++,Ee,Be),y.m(ee++,Math.max(Ee+He-Gt/2,Ee),Be),y.m(ee++,Ee+He+Gt,Be)):this.K===180?(y.m(ee++,Ee+He,Be),y.m(ee++,Ee-be,Be)):this.K===90?(y.m(ee++,Ee,Be-be),y.m(ee++,Ee,Be+He)):this.K===270?(y.m(ee++,Ee,Be+He),y.m(ee++,Ee,Be-be)):(y.m(ee++,Ee-be,Be),y.m(ee++,Ee+He,Be)))),dt=ye}zt&&(ge=y.i(ee-1).x,Ce=y.i(ee-1).y,Ee=y.i(ee).x,Be=y.i(ee).y,this.K===180||this.K===0?Ce!==Be&&(be=this.K===0?Math.min(Math.max((Ee+ge)/2,this.Ta[yt.layer]+this.Rf.x),Ee):Math.max(Math.min((Ee+ge)/2,this.Ta[yt.layer]+this.Rf.x),Ee),y.m(ee++,be,Ce),y.m(ee++,be,Be)):ge!==Ee&&(be=this.K===90?Math.min(Math.max((Be+Ce)/2,this.Ta[yt.layer]+this.Rf.y),Be):Math.max(Math.min((Be+Ce)/2,this.Ta[yt.layer]+this.Rf.y),Be),y.m(ee++,ge,be),y.m(ee++,Ee,be)))}b!==null&&Tt&&4<=y.pointsCount&&(nt!==null&&(nt=ht===no?y.getLinkPointFromPoint(E,nt,nt.ga(Gi),y.i(3),!0):y.i(0),ht===no&&(ht=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ht.x)/2,ht.y),y.L(2,b.x,(ht.y+b.y)/2)):(y.L(1,ht.x,(nt.y+ht.y)/2),y.L(2,(ht.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===no?y.getLinkPointFromPoint(z,ot,ot.ga(Gi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===no&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,at.x,(ot.y+at.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},gr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Cn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new _h;ot.layer=Math.floor(z.y/2);var at=b.i(0),ht=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ht.x*ht.x+ht.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ht=b.i(E+2);var dt=0;at.y<z.y?dt=ht.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(dt=ht.y>z.y?0:nt.x<z.x?2:1),ot.j=dt}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);this.zi(x,this.Ux,z,z+nt);var yt=1;for(ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(yt++,ot=ht.first);for(at=!0,ht=yt,dt<yt?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,yt=z;yt<E;yt++){var Tt=x[yt];(at?Tt.first:Tt.jc)!==ot&&(dt++,ot=at?Tt.first:Tt.jc);var zt=Tt.link;z=zt.i(Tt.index),nt=zt.i(Tt.index+1);var Gt=this.linkSpacing*(dt-(ht-1)/2);y++,zt.uh(),zt.L(Tt.index,z.x,z.y+Gt),zt.L(Tt.index+1,nt.x,nt.y+Gt),zt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new _h,ot.layer=Math.floor(z.x/2),at=b.i(0),ht=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ht.x+ht.y*ht.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ht=b.i(E+2),dt=0,at.x<z.x?dt=ht.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(dt=ht.x>z.x?0:nt.y<z.y?2:1),ot.j=dt),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);for(this.zi(x,this.Ux,z,z+nt),yt=1,ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(yt++,ot=ht.first);for(at=!0,ht=yt,dt<yt?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,yt=z;yt<E;yt++)Tt=x[yt],(at?Tt.first:Tt.jc)!==ot&&(dt++,ot=at?Tt.first:Tt.jc),zt=Tt.link,z=zt.i(Tt.index),nt=zt.i(Tt.index+1),Gt=this.linkSpacing*(dt-(ht-1)/2),y++,zt.uh(),zt.L(Tt.index,z.x+Gt,z.y),zt.L(Tt.index+1,nt.x+Gt,nt.y),zt.zf()}z=E}a=b}}}},Ut=gr.prototype,Ut.Vx=function(a,y){return a instanceof _h&&y instanceof _h&&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},Ut.Ux=function(a,y){return a instanceof _h&&y instanceof _h&&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},Ut.Js=function(a,y){return a instanceof _h&&y instanceof _h&&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},Ut.B=function(a,y){return a-=y,-1<a&&1>a},Ut.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Ye("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function zh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function Uh(a,y,x){a.He[a.tc[y]]=x}sn.Object.defineProperties(gr.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()):Ye("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==A0&&a!==vp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==L0&&a!==wy&&a!==Py||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==E0&&a!==Cy&&a!==by||(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!==k0&&a!==Ly||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var A0=new qe(gr,"CycleDepthFirst",0),xy=new qe(gr,"CycleGreedy",1),vp=new qe(gr,"CycleFromLayers",2),L0=new qe(gr,"LayerOptimalLinkLength",0),wy=new qe(gr,"LayerLongestPathSink",1),Py=new qe(gr,"LayerLongestPathSource",2),E0=new qe(gr,"InitDepthFirstOut",0),Cy=new qe(gr,"InitDepthFirstIn",1),by=new qe(gr,"InitNaive",2),Ay=new qe(gr,"AggressiveNone",0),k0=new qe(gr,"AggressiveLess",1),Ly=new qe(gr,"AggressiveMore",2),Xx=8;gr.className="LayeredDigraphLayout",gr.CycleDepthFirst=A0,gr.CycleGreedy=xy,gr.CycleFromLayers=vp,gr.LayerOptimalLinkLength=L0,gr.LayerLongestPathSink=wy,gr.LayerLongestPathSource=Py,gr.InitDepthFirstOut=E0,gr.InitDepthFirstIn=Cy,gr.InitNaive=by,gr.AggressiveNone=Ay,gr.AggressiveLess=k0,gr.AggressiveMore=Ly,gr.PackNone=0,gr.PackExpand=1,gr.PackStraighten=2,gr.PackMedian=4,gr.PackAll=15,gr.AlignNone=0,gr.AlignUpperLeft=1,gr.AlignUpperRight=2,gr.AlignLowerLeft=4,gr.AlignLowerRight=8,gr.AlignAll=15;function _h(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}_h.className="SegInfo";function Bf(a){br.call(this,a)}We(Bf,br),Bf.prototype.createVertex=function(){return new Ia(this)},Bf.prototype.createEdge=function(){return new yp(this)},Bf.className="LayeredDigraphNetwork";function Ia(a){ko.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}We(Ia,ko);function rx(a,y){return a.index-y.index}function M0(a,y){if(!a.$n){for(var x=[],b=Pn(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Pn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ye("Unable to find destination edge to given vertex")}function Ey(a){if(!a.co){for(var y=[],x=Pn(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rx),a.co=y}return a.co}function Zx(a){if(!a.ao){for(var y=[],x=Pn(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rx),a.ao=y}return a.ao}Ia.prototype.Cl=function(a){ko.prototype.Cl.call(this,a),this.bo=this.co=null},Ia.prototype.Kl=function(a){ko.prototype.Kl.call(this,a),this.bo=this.co=null},Ia.prototype.zl=function(a){ko.prototype.zl.call(this,a),this.$n=this.ao=null},Ia.prototype.Jl=function(a){ko.prototype.Jl.call(this,a),this.$n=this.ao=null},sn.Object.defineProperties(Ia.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)}}}),Ia.prototype.deleteDestinationEdge=Ia.prototype.Jl,Ia.prototype.addDestinationEdge=Ia.prototype.zl,Ia.prototype.deleteSourceEdge=Ia.prototype.Kl,Ia.prototype.addSourceEdge=Ia.prototype.Cl,Ia.className="LayeredDigraphVertex";function yp(a){ua.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}We(yp,ua),sn.Object.defineProperties(yp.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)}}}),yp.className="LayeredDigraphEdge";function Bi(a){jr.call(this),this.Ub=new Oe,this.Wn=O0,this.ud=Zl,this.vo=B0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=I0,this.$d=new on(10,10).freeze();var y=new wd(this);this.W=new Ya(y),this.Y=new Ya(y),this.ru=[],a&&Object.assign(this,a)}We(Bi,jr),Bi.prototype.cloneProtected=function(a){jr.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)},Bi.prototype.qb=function(a){a.classType===Bi?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:Ye("Unknown enum value: "+a):jr.prototype.qb.call(this,a)},Bi.prototype.createNetwork=function(){return new wd(this)},Bi.prototype.makeNetwork=function(a){function y(b){if(b instanceof Fn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof xn){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Ke?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof mi?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Bi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==R0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ke&&(y=a),this.path===O0&&y!==null?this.ud=y.isTreePathToChildren?Zl:Sd:this.ud=this.path===O0?Zl: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 Oe,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Fn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Ya&&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,ky(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,ky(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&ux(this,y);if(this.Cu(),this.layerStyle===j0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Oe,this.isValidLayout=!0};function Jx(a){var y=new Oe;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Bi.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Zl:x.sourceEdges.count===0&&this.Ub.add(x);break;case Sd:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ye("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Zl:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Sd:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Ye("Unhandled path value "+a.ud.toString())}}return b}function ky(a,y){if(y!==null){switch(a.ud){case Zl:if(0<y.destinationEdges.count){for(var x=new Cn,b=y.destinationVertexes;b.next();){var E=b.value;sx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Sd:if(0<y.sourceEdges.count){for(x=new Cn,b=y.sourceVertexes;b.next();)E=b.value,sx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Ye("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)ky(a,x[y])}}function sx(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Bi.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ql&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];ax(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case B0:return y.parent!==null?y.parent:a.W;case Iy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Bi.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===ql){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Bi.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==ql&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Bi.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case If:break;case xp:a.children.reverse();break;case wp:a.children.sort(a.comparer);break;case Pp:a.children.sort(a.comparer),a.children.reverse();break;default:Ye("Unhandled sorting value "+a.sorting.toString())}},Bi.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Bi.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Wh(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ht=a.node.Mu();ht.next();){var dt=ht.value;dt.category==="Comment"&&dt.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(dt),dt.Va(),dt=dt.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,dt.width),nt+=dt.height+Math.abs(ot)):(z+=dt.width+Math.abs(ot),nt=Math.max(nt,dt.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=Je.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,Je.free(E))};function Wh(a){return a===Qu||a===ql||a===qu||a===mu}function Sp(a){return a===Qu||a===ql}function My(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Wh(x)){if(Sp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===qu)return!0}}return!1}Bi.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=Wh(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=My(a),at=0,ht=a.comments,dt=ht.length,yt=de.alloc(),Tt=0;Tt<dt;Tt++){var zt=ht[Tt],Gt=zt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x-a.commentMargin-Gt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();){var ee=zt.value;ee.fromSpot=ia,ee.toSpot=fs}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=fs,ee.toSpot=ia;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=fs,ee.toSpot=ia;else for(yt.h(a.bounds.x+a.commentMargin-Gt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=ia,ee.toSpot=fs;at=0<=a.commentSpacing?at+(Gt.height+a.commentSpacing):at+(a.commentSpacing-Gt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Gt.height),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=na,ee.toSpot=js;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=js,ee.toSpot=na;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=js,ee.toSpot=na;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Gt.height),zt.move(yt),zt=zt.Sd();zt.next();)ee=zt.value,ee.fromSpot=na,ee.toSpot=js;at=0<=a.commentSpacing?at+(Gt.width+a.commentSpacing):at+(a.commentSpacing-Gt.width)}}if(de.free(yt),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===Zl)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},Bi.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case D0:hx(this,a);break;case Cp:if(a.alignment===ql)hx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Wh(x)),b=My(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=ul(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===Jl;var ht=at===Ql,dt=Wh(at),yt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Tt=a.nodeSpacing,zt=this.computeNodeIndent(a),Gt=a.rowSpacing,ee=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(ee=Math.max(0,a.rowIndent)),b=a.width;var ye=a.height,ge=0,Ce=0,be=0,Ee=null,Be=null,He=0,Mn=0,Un=0,Dn=0,Sn=0,an=0,pi=0,ci=0;if(dt&&!Sp(at)&&135<E&&nt.reverse(),Sp(at))if(1<ot)for(var Ji=0;Ji<ot;Ji++)Ji%2===0&&Ji!==ot-1&&(ci=Math.max(ci,y?nt[Ji].Da.width:nt[Ji].Da.height));else ot===1&&(ci=y?nt[0].Da.width:nt[0].Da.height);if(dt){switch(at){case Qu:Ce=135>E?cx(this,a,nt,ci,ge,Ce):dx(this,a,nt,ci,ge,Ce),ci=Ce.x,ge=Ce.width,Ce=Ce.height;break;case qu:for(Ee=0;Ee<ot;Ee++)Be=nt[Ee],yt=Be.Da,be=an===0?0:Gt,y?(Be.S.h(z-yt.width,Dn+be),ge=Math.max(ge,yt.width),Ce=Math.max(Ce,Dn+be+yt.height),Dn+=be+yt.height):(Be.S.h(Un+be,z-yt.height),ge=Math.max(ge,Un+be+yt.width),Ce=Math.max(Ce,yt.height),Un+=be+yt.width),an++;break;case mu:for(Ee=0;Ee<ot;Ee++)Be=nt[Ee],z=Be.Da,yt=an===0?0:Gt,y?(Be.S.h(Tt/2+a.focus.x,Dn+yt),ge=Math.max(ge,z.width),Ce=Math.max(Ce,Dn+yt+z.height),Dn+=yt+z.height):(Be.S.h(Un+yt,Tt/2+a.focus.y),ge=Math.max(ge,Un+yt+z.width),Ce=Math.max(Ce,z.height),Un+=yt+z.width),an++}Ee=Xs(this,2),Be=Xs(this,2),y?(Ee[0].h(0,0),Ee[1].h(0,Ce),Be[0].h(ge,0)):(Ee[0].h(0,0),Ee[1].h(ge,0),Be[0].h(0,Ce)),Be[1].h(ge,Ce)}else for(Ji=0;Ji<ot;Ji++){var Pr=nt[Ji],Bo=Pr.Da;if(y){0<yt&&0<an&&Un+Tt+Bo.width>yt&&(Un<z&&Ec(a,at,z-Un,0,pi,Ji-1),Sn++,an=0,pi=Ji,be=Ce,Un=0,Dn=135<E?-Ce-Gt:Ce+Gt),N0(this,Pr,0,Dn);var Uo=0;if(an===0)Ee=Pr.Yo,Be=Pr.kp,He=Bo.width,Mn=Bo.height,(Ee===null||Be===null||E!==ul(Pr))&&(Ee=Xs(this,2),Be=Xs(this,2),Ee[0].h(0,0),Ee[1].h(0,Mn),Be[0].h(He,0),Be[1].h(He,Mn));else{var ys=li();Mn=fx(this,a,Pr,Ee,Be,He,Mn,ys),Uo=Mn.x,Ee=ys[0],Be=ys[1],He=Mn.width,Mn=Mn.height,ai(ys),Un<Bo.width&&0>Uo&&(yd(a,-Uo,0,pi,Ji-1),F0(Ee,-Uo,0),F0(Be,-Uo,0),Uo=0)}Pr.S.h(Uo,Dn),ge=Math.max(ge,He),Ce=Math.max(Ce,be+(Sn===0?0:Gt)+Bo.height),Un=He}else 0<yt&&0<an&&Dn+Tt+Bo.height>yt&&(Dn<z&&Ec(a,at,0,z-Dn,pi,Ji-1),Sn++,an=0,pi=Ji,be=ge,Dn=0,Un=135<E?-ge-Gt:ge+Gt),N0(this,Pr,Un,0),Uo=0,an===0?(Ee=Pr.Yo,Be=Pr.kp,He=Bo.width,Mn=Bo.height,(Ee===null||Be===null||E!==ul(Pr))&&(Ee=Xs(this,2),Be=Xs(this,2),Ee[0].h(0,0),Ee[1].h(He,0),Be[0].h(0,Mn),Be[1].h(He,Mn))):(ys=li(),Mn=fx(this,a,Pr,Ee,Be,He,Mn,ys),Uo=Mn.x,Ee=ys[0],Be=ys[1],He=Mn.width,Mn=Mn.height,ai(ys),Dn<Bo.height&&0>Uo&&(yd(a,0,-Uo,pi,Ji-1),F0(Ee,0,-Uo),F0(Be,0,-Uo),Uo=0)),Pr.S.h(Un,Uo),Ce=Math.max(Ce,Mn),ge=Math.max(ge,be+(Sn===0?0:Gt)+Bo.width),Dn=Mn;an++}switch(0<Sn&&(y?(Ce+=Math.max(0,x),Un<ge&&Ec(a,at,ge-Un,0,pi,ot-1),0<ee&&(ht||yd(a,ee,0,0,ot-1),ge+=ee)):(ge+=Math.max(0,x),Dn<Ce&&Ec(a,at,0,Ce-Dn,pi,ot-1),0<ee&&(ht||yd(a,0,ee,0,ot-1),Ce+=ee))),ee=ht=0,at){case Rf:y?ht+=ge/2-a.focus.x-zt/2:ee+=Ce/2-a.focus.y-zt/2;break;case xd:0<Sn?y?ht+=ge/2-a.focus.x-zt/2:ee+=Ce/2-a.focus.y-zt/2:y?(ci=nt[0].S.x+nt[0].la.x,ht+=ci+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-ci)/2-a.focus.x-zt/2):(ci=nt[0].S.y+nt[0].la.y,ee+=ci+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-ci)/2-a.focus.y-zt/2);break;case Jl:y?(ht-=zt,ge+=zt):(ee-=zt,Ce+=zt);break;case Ql:y?(ht+=ge-a.width+zt,ge+=zt):(ee+=Ce-a.height+zt,Ce+=zt);break;case Qu:y?1<ot?ht+=ci+Tt/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?ee+=ci+Tt/2-a.focus.y:ee+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case qu:y?ht+=ge+Tt/2-a.focus.x:ee+=Ce+Tt/2-a.focus.y;break;case mu:break;default:Ce=this.customAlignment(a,ht,ee,ge,Ce),ht=Ce[0],ee=Ce[1],ge=Ce[2],Ce=Ce[3]}for(zt=0;zt<ot;zt++)ci=nt[zt],y?ci.S.h(ci.S.x+ci.la.x-ht,ci.S.y+(135<E?(dt?-Ce:-ci.Da.height)+ci.la.y-x:ye+x+ci.la.y)):ci.S.h(ci.S.x+(135<E?(dt?-ge:-ci.Da.width)+ci.la.x-x:b+x+ci.la.x),ci.S.y+ci.la.y-ee);if(ot=nt=0,dt?y?(ge=Ty(a,ge,ht),0>ht&&(ht=0),135<E&&(ee+=Ce+x),Ce+=ye+x,at===mu&&(nt+=Tt/2+a.focus.x),ot+=ye+x):(135<E&&(ht+=ge+x),ge+=b+x,Ce=Ny(a,Ce,ee),0>ee&&(ee=0),at===mu&&(ot+=Tt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>ge&&(ge=Fy(at,b-ge,0),nt=ge.x,ot=ge.y,ge=b,ht=0):ge=Ty(a,ge,ht),0>ht&&(nt-=ht,ht=0),135<E&&(ee+=Ce+x),Ce=Math.max(Math.max(Ce,ye),Ce+ye+x),ot+=ye+x):(135<E&&(ht+=ge+x),ge=Math.max(Math.max(ge,b),ge+b+x),a.comments===null?ye>Ce&&(Ce=Fy(at,0,ye-Ce),nt=Ce.x,ot=Ce.y,Ce=ye,ee=0):Ce=Ny(a,Ce,ee),0>ee&&(ot-=ee,ee=0),nt+=b+x),0<Sn)E=Xs(this,4),Sn=Xs(this,4),y?(E[2].h(0,ye+x),E[3].h(E[2].x,Ce),Sn[2].h(ge,E[2].y),Sn[3].h(Sn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(ge,E[2].y),Sn[2].h(E[2].x,Ce),Sn[3].h(E[3].x,Sn[2].y));else{for(E=Xs(this,Ee.length+2),Sn=Xs(this,Be.length+2),at=0;at<Ee.length;at++)dt=Ee[at],E[at+2].h(dt.x+nt,dt.y+ot);for(at=0;at<Be.length;at++)dt=Be[at],Sn[at+2].h(dt.x+nt,dt.y+ot)}y?(E[0].h(ht,0),E[1].h(E[0].x,ye),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Sn[0].h(ht+b,0),Sn[1].h(Sn[0].x,ye),Sn[2].y<Sn[1].y&&(Sn[2].x<Sn[0].x?Sn[2].assign(Sn[1]):Sn[1].assign(Sn[2])),Sn[3].y<Sn[2].y&&(Sn[3].x<Sn[0].x?Sn[3].assign(Sn[2]):Sn[2].assign(Sn[3])),E[2].y-=x/2,Sn[2].y-=x/2):(E[0].h(0,ee),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Sn[0].h(0,ee+ye),Sn[1].h(b,Sn[0].y),Sn[2].x<Sn[1].x&&(Sn[2].y<Sn[0].y?Sn[2].assign(Sn[1]):Sn[1].assign(Sn[2])),Sn[3].x<Sn[2].x&&(Sn[3].y<Sn[0].y?Sn[3].assign(Sn[2]):Sn[2].assign(Sn[3])),E[2].x-=x/2,Sn[2].x-=x/2),Sl(this,Ee),Sl(this,Be),a.Yo=E,a.kp=Sn,a.la.h(ht,ee),a.Da.h(ge,Ce)}break;default:Ye("Unhandled compaction value "+a.compaction.toString())}}};function hx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Wh(x));var E=My(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=ul(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ht=y.alignment,dt=ht===Jl,yt=ht===Ql;ot=Wh(ht);var Tt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var zt=y.nodeSpacing,Gt=a.computeNodeIndent(y),ee=dt||yt?0:Gt/2,ye=y.rowSpacing,ge=0;(dt||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(ge=Math.max(0,y.rowIndent)),dt=y.width;var Ce=y.height,be=0,Ee=0,Be=0,He=0,Mn=0,Un=0,Dn=0,Sn=0,an=0,pi=0;if(ot&&!Sp(ht)&&135<b&&E.reverse(),Sp(ht))if(1<nt)for(var ci=0;ci<nt;ci++){var Ji=E[ci],Pr=Ji.Da;ci%2===0&&ci!==nt-1?an=Math.max(an,(x?Pr.width:Pr.height)+a.computeBusNodeSpacing(Ji)-zt):ci%2!==0&&(pi=Math.max(pi,(x?Pr.width:Pr.height)+a.computeBusNodeSpacing(Ji)-zt))}else nt===1&&(an=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ht){case Qu:case ql:Ee=135>b?cx(a,y,E,an,be,Ee):dx(a,y,E,an,be,Ee),an=Ee.x,be=Ee.width,Ee=Ee.height;break;case qu:for(Tt=0;Tt<nt;Tt++)ee=E[Tt],Be=ee.Da,pi=Dn===0?0:ye,x?(ee.S.h(z-Be.width,Mn+pi),be=Math.max(be,Be.width),Ee=Math.max(Ee,Mn+pi+Be.height),Mn+=pi+Be.height):(ee.S.h(He+pi,z-Be.height),be=Math.max(be,He+pi+Be.width),Ee=Math.max(Ee,Be.height),He+=pi+Be.width),Dn++;break;case mu:for(z=0;z<nt;z++)Tt=E[z],ee=Tt.Da,Be=Dn===0?0:ye,x?(Tt.S.h(zt/2+y.focus.x,Mn+Be),be=Math.max(be,ee.width),Ee=Math.max(Ee,Mn+Be+ee.height),Mn+=Be+ee.height):(Tt.S.h(He+Be,zt/2+y.focus.y),be=Math.max(be,He+Be+ee.width),Ee=Math.max(Ee,ee.height),He+=Be+ee.width),Dn++}else for(pi=0;pi<nt;pi++)ci=E[pi],Ji=ci.Da,x?(0<Tt&&0<Dn&&He+zt+Ji.width>Tt&&(He<z&&Ec(y,ht,z-He,0,Sn,pi-1),Un++,Dn=0,Sn=pi,Be=Ee,He=0,Mn=135<b?-Ee-ye:Ee+ye),Pr=Dn===0?ee:zt,N0(a,ci,0,Mn),ci.S.h(He+Pr,Mn),be=Math.max(be,He+Pr+Ji.width),Ee=Math.max(Ee,Be+(Un===0?0:ye)+Ji.height),He+=Pr+Ji.width):(0<Tt&&0<Dn&&Mn+zt+Ji.height>Tt&&(Mn<z&&Ec(y,ht,0,z-Mn,Sn,pi-1),Un++,Dn=0,Sn=pi,Be=be,Mn=0,He=135<b?-be-ye:be+ye),Pr=Dn===0?ee:zt,N0(a,ci,He,0),ci.S.h(He,Mn+Pr),Ee=Math.max(Ee,Mn+Pr+Ji.height),be=Math.max(be,Be+(Un===0?0:ye)+Ji.width),Mn+=Pr+Ji.height),Dn++;switch(0<Un&&(x?(Ee+=Math.max(0,at),He<be&&Ec(y,ht,be-He,0,Sn,nt-1),0<ge&&(yt||yd(y,ge,0,0,nt-1),be+=ge)):(be+=Math.max(0,at),Mn<Ee&&Ec(y,ht,0,Ee-Mn,Sn,nt-1),0<ge&&(yt||yd(y,0,ge,0,nt-1),Ee+=ge))),ge=yt=0,ht){case Rf:x?yt+=be/2-y.focus.x-Gt/2:ge+=Ee/2-y.focus.y-Gt/2;break;case xd:0<Un?x?yt+=be/2-y.focus.x-Gt/2:ge+=Ee/2-y.focus.y-Gt/2:x?(a=E[0].S.x+E[0].la.x,yt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-Gt/2):(a=E[0].S.y+E[0].la.y,ge+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Gt/2);break;case Jl:x?(yt-=Gt,be+=Gt):(ge-=Gt,Ee+=Gt);break;case Ql:x?(yt+=be-y.width+Gt,be+=Gt):(ge+=Ee-y.height+Gt,Ee+=Gt);break;case Qu:case ql:x?1<nt?yt+=an+zt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?ge+=an+zt/2-y.focus.y:ge+=E[0].focus.y-y.focus.y+E[0].la.y;break;case qu:x?yt+=be+zt/2-y.focus.x:ge+=Ee+zt/2-y.focus.y;break;case mu:break;default:a=a.customAlignment(y,yt,ge,be,Ee),yt=a[0],ge=a[1],be=a[2],Ee=a[3]}for(a=0;a<nt;a++)Gt=E[a],x?Gt.S.h(Gt.S.x+Gt.la.x-yt,Gt.S.y+(135<b?(ot?-Ee:-Gt.Da.height)+Gt.la.y-at:Ce+at+Gt.la.y)):Gt.S.h(Gt.S.x+(135<b?(ot?-be:-Gt.Da.width)+Gt.la.x-at:dt+at+Gt.la.x),Gt.S.y+Gt.la.y-ge);x?(be=Ty(y,be,yt),0>yt&&(yt=0),135<b&&(ge+=Ee+at),Ee=Math.max(Math.max(Ee,Ce),Ee+Ce+at)):(135<b&&(yt+=be+at),be=Math.max(Math.max(be,dt),be+dt+at),Ee=Ny(y,Ee,ge),0>ge&&(ge=0)),y.la.h(yt,ge),y.Da.h(be,Ee)}}Bi.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function cx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new Je(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Je(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ul(y)===90,dt=0,yt=0,Tt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Gt=x[zt],ee=Gt.Da,ye=dt===0?0:at;if(ht){var ge=a.computeBusNodeSpacing(Gt)-ot;Gt.S.h(b-(ee.width+ge),Tt+ye),E=Math.max(E,ee.width+ge),z=Math.max(z,Tt+ye+ee.height),Tt+=ye+ee.height}else ge=a.computeBusNodeSpacing(Gt)-ot,Gt.S.h(yt+ye,b-(ee.height+ge)),z=Math.max(z,ee.height+ge),E=Math.max(E,yt+ye+ee.width),yt+=ye+ee.width;dt++}for(dt=0,Gt=yt,zt=Tt,ht?(yt=b+ot,Tt=0):(yt=0,Tt=b+ot),ee=0;ee<nt;ee++)if(ee%2!==0){ye=x[ee],ge=ye.Da;var Ce=dt===0?0:at;if(ht){var be=a.computeBusNodeSpacing(ye)-ot;ye.S.h(yt+be,Tt+Ce),E=Math.max(E,yt+ge.width+be),z=Math.max(z,Tt+Ce+ge.height),Tt+=Ce+ge.height}else be=a.computeBusNodeSpacing(ye)-ot,ye.S.h(yt+Ce,Tt+be),E=Math.max(E,yt+Ce+ge.width),z=Math.max(z,Tt+ge.height+be),yt+=Ce+ge.width;dt++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(zt),Math.abs(Tt)):Math.max(Math.abs(Gt),Math.abs(yt))),ht?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ht=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ht+nt.width),0>ht&&(E-=ht),z=Math.max(z,Math.max(zt,Tt)+a+nt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Gt,yt)+a+nt.width),Tt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,Tt+nt.height),0>Tt&&(z-=Tt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ot)))),new Je(b,0,E,z)}function dx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new Je(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Je(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ul(y)===270,dt=0,yt=0,Tt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Gt=x[zt],ee=Gt.Da,ye=dt===0?0:at;if(ht){var ge=a.computeBusNodeSpacing(Gt)-ot;Tt-=ye+ee.height,Gt.S.h(b-(ee.width+ge),Tt),E=Math.max(E,ee.width+ge),z=Math.max(z,Math.abs(Tt))}else ge=a.computeBusNodeSpacing(Gt)-ot,yt-=ye+ee.width,Gt.S.h(yt,b-(ee.height+ge)),z=Math.max(z,ee.height+ge),E=Math.max(E,Math.abs(yt));dt++}for(dt=0,Gt=yt,zt=Tt,ht?(yt=b+ot,Tt=0):(yt=0,Tt=b+ot),ee=0;ee<nt;ee++)if(ee%2!==0){ye=x[ee],ge=ye.Da;var Ce=dt===0?0:at;if(ht){var be=a.computeBusNodeSpacing(ye)-ot;Tt-=Ce+ge.height,ye.S.h(yt+be,Tt),E=Math.max(E,yt+ge.width+be),z=Math.max(z,Math.abs(Tt))}else be=a.computeBusNodeSpacing(ye)-ot,yt-=Ce+ge.width,ye.S.h(yt,Tt+be),z=Math.max(z,Tt+ge.height+be),E=Math.max(E,Math.abs(yt));dt++}for(1<nt&&nt%2===1&&(at=x[nt-1],dt=at.Da,a=a.computeBusLastRowSpacing(at,ht?Math.max(Math.abs(zt),Math.abs(Tt)):Math.max(Math.abs(Gt),Math.abs(yt))),ht?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-dt.height-a),yt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,yt+dt.width),0>yt&&(E-=yt),z=Math.max(z,Math.abs(Math.min(zt,Tt))+a+dt.height),0>at.S.x&&(b=T0(y,at.S.x,!1,b,ot))):(at.S.h(-E-dt.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Gt,yt))+a+dt.width),Tt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,Tt+dt.height),0>Tt&&(z-=Tt),0>at.S.y&&(b=T0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ht?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new Je(b,0,E,z)}Bi.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Bi.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Ty(a,y,x){switch(a.alignment){case xd:case Rf:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Jl:return a.width>y?a.width:y;case Ql:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Qu:case ql:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case qu:return a.width-a.focus.x+a.nodeSpacing/2+y;case mu:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case xd:case Rf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Jl:return a.height>y?a.height:y;case Ql:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Qu:case ql:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case qu:return a.height-a.focus.y+a.nodeSpacing/2+y;case mu:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a){case Rf:y/=2,x/=2;break;case xd:y/=2,x/=2;break;case Jl:x=y=0;break;case Ql:break;default:Ye("Unhandled alignment value "+a.toString())}return new de(y,x)}function Ec(a,y,x,b,E,z){y=Fy(y,x,b),yd(a,y.x,y.y,E,z)}function yd(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function N0(a,y,x,b){var E=y.parent;switch(a.ud){case Zl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Sd:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Ye("Unhandled path value "+a.ud.toString())}}function F0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,z,nt,ot){var at=ul(y),ht=at===90||at===270,dt=y.nodeSpacing;y=b;var yt=E;b=z;var Tt=nt,zt=x.Yo,Gt=x.kp;nt=x.Da;var ee=ht?Math.max(Tt,nt.height):Math.max(b,nt.width);if((zt===null||at!==ul(x))&&(zt=Xs(a,2),Gt=Xs(a,2),ht?(zt[0].h(0,0),zt[1].h(0,nt.height),Gt[0].h(nt.width,0),Gt[1].h(Gt[0].x,zt[1].y)):(zt[0].h(0,0),zt[1].h(nt.width,0),Gt[0].h(0,nt.height),Gt[1].h(zt[1].x,Gt[0].y))),ht){if(Tt=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;){z=yt[x];var ye=zt[E];at=ye.x,ht=ye.y,at+=b;var ge=z;x+1<yt.length&&(ge=yt[x+1]);var Ce=ye;ye=Ce.x,Ce=Ce.y,E+1<zt.length&&(Ce=zt[E+1],ye=Ce.x,Ce=Ce.y,ye+=b);var be=Tt;z.y===ht?be=at-z.x:z.y>ht&&z.y<Ce?be=at+(z.y-ht)/(Ce-ht)*(ye-at)-z.x:ht>z.y&&ht<ge.y&&(be=at-(z.x+(ht-z.y)/(ge.y-z.y)*(ge.x-z.x))),be<Tt&&(Tt=be),ge.y<=z.y?x++:Ce<=ht?E++:(ge.y<=Ce&&x++,Ce<=ge.y&&E++)}if(Tt=b-Tt,Tt+=dt,x=zt,E=Tt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Xs(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(x=Xs(a,b),at=0;at<b;at++)x[at].assign(dt[at]);Sl(a,dt),b=x}if(z=Gt,at=Tt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(dt=Xs(a,yt.length+z.length),E=ht=x=0;x<yt.length&&yt[x].y<z[0].y;)ge=yt[x++],dt[E++].h(ge.x,ge.y);for(;ht<z.length;)ge=z[ht++],dt[E++].h(ge.x+at,ge.y);for(z=z[z.length-1].y;x<yt.length&&yt[x].y<=z;)x++;for(;x<yt.length&&yt[x].y>z;)at=yt[x++],dt[E++].h(at.x,at.y);for(z=Xs(a,E),x=0;x<E;x++)z[x].assign(dt[x]);Sl(a,dt),E=z}return z=Math.max(0,Tt)+nt.width,nt=ee,Sl(a,y),Sl(a,zt),Sl(a,yt),Sl(a,Gt),ot[0]=b,ot[1]=E,new Je(Tt,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;)z=yt[x],ye=zt[E],at=ye.x,ht=ye.y,ht+=Tt,ge=z,x+1<yt.length&&(ge=yt[x+1]),Ce=ye,ye=Ce.x,Ce=Ce.y,E+1<zt.length&&(Ce=zt[E+1],ye=Ce.x,Ce=Ce.y,Ce+=Tt),be=b,z.x===at?be=ht-z.y:z.x>at&&z.x<ye?be=ht+(z.x-at)/(ye-at)*(Ce-ht)-z.y:at>z.x&&at<ge.x&&(be=ht-(z.y+(at-z.x)/(ge.x-z.x)*(ge.y-z.y))),be<b&&(b=be),ge.x<=z.x?x++:ye<=at?E++:(ge.x<=ye&&x++,ye<=ge.x&&E++);if(Tt-=b,Tt+=dt,x=zt,E=Tt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Xs(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(x=Xs(a,b),at=0;at<b;at++)x[at].assign(dt[at]);Sl(a,dt),b=x}if(z=Gt,at=Tt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(dt=Xs(a,yt.length+z.length),E=ht=x=0;x<yt.length&&yt[x].x<z[0].x;)ge=yt[x++],dt[E++].h(ge.x,ge.y);for(;ht<z.length;)ge=z[ht++],dt[E++].h(ge.x,ge.y+at);for(z=z[z.length-1].x;x<yt.length&&yt[x].x<=z;)x++;for(;x<yt.length&&yt[x].x>z;)at=yt[x++],dt[E++].h(at.x,at.y);for(z=Xs(a,E),x=0;x<E;x++)z[x].assign(dt[x]);Sl(a,dt),E=z}return z=ee,nt=Math.max(0,Tt)+nt.height,Sl(a,y),Sl(a,zt),Sl(a,yt),Sl(a,Gt),ot[0]=b,ot[1]=E,new Je(Tt,0,z,nt)}function Xs(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 de;return a}function Sl(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Bi.prototype.arrangeTrees=function(){if(this.Rb===R0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ya){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Oy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Ya&&a.push(x);switch(this.sorting){case If:break;case xp:a.reverse();break;case wp:a.sort(this.comparer);break;case Pp:a.sort(this.comparer),a.reverse();break;default:Ye("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Oy(this,E,y+E.la.x,x+E.la.y),this.Rb){case I0:x+=E.Da.height+this.$d.height;break;case Ry:y+=E.Da.width+this.$d.width;break;default:Ye("Unhandled arrangement value "+this.Rb.toString())}}}};function Oy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var nt=y[z];Oy(a,nt,x+nt.S.x,b+nt.S.y)}}}Bi.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Bi.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Bi.prototype.Gu=function(){if(this.layerStyle===j0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new de(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new de(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(z-=ot,E.push(new Je(0,z,x,ot))):this.angle===90?(E.push(new Je(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new Je(z,0,ot,x))):(E.push(new Je(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},Bi.prototype.commitLayers=function(){},Bi.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Bi.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Ya&&gx(this,y)}};function gx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gx(a,y[b])}}Bi.prototype.setPortSpots=function(a){var y=a.alignment;if(Wh(y)){var x=this.ud===Zl,b=ul(a);switch(b){case 0:var E=fs;break;case 90:E=js;break;case 180:E=ia;break;default:E=na}var z=a.children,nt=z.length;switch(y){case Qu:case ql:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?ia:na;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=ia;break;case 90:at=na;break;case 180:at=fs;break;default:at=js}else y%2===0&&(at=b===90||b===270?fs:js);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case qu:for(b=b===90||b===270?fs:js,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case mu:for(b=b===90||b===270?ia:na,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=ul(a),this.ud===Zl){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=fs;break;case 90:b.fromSpot=js;break;case 180:b.fromSpot=ia;break;default:b.fromSpot=na}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ia;break;case 90:b.toSpot=na;break;case 180:b.toSpot=fs;break;default:b.toSpot=js}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=fs;break;case 90:b.toSpot=js;break;case 180:b.toSpot=ia;break;default:b.toSpot=na}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ia;break;case 90:b.fromSpot=na;break;case 180:b.fromSpot=fs;break;default:b.fromSpot=js}else b.fromSpot=a.childPortSpot}};function ul(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Bi.prototype.computeLayerSpacing=function(a){var y=ul(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Bi.prototype.computeNodeIndent=function(a){var y=ul(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},sn.Object.defineProperties(Bi.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!==B0&&a!==By&&a!==Dy&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==jy&&a!==zy&&a!==j0||(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!==I0&&a!==Ry&&a!==R0||(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!==If&&a!==xp&&a!==wp&&!Pp||(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()):Ye("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!==D0&&a!==Cp||(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!==If&&a!==xp&&a!==wp&&!Pp||(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!==D0&&a!==Cp||(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 O0=new qe(Bi,"PathDefault",-1),Zl=new qe(Bi,"PathDestination",0),Sd=new qe(Bi,"PathSource",1),If=new qe(Bi,"SortingForwards",10),xp=new qe(Bi,"SortingReverse",11),wp=new qe(Bi,"SortingAscending",12),Pp=new qe(Bi,"SortingDescending",13),Rf=new qe(Bi,"AlignmentCenterSubtrees",20),xd=new qe(Bi,"AlignmentCenterChildren",21),Jl=new qe(Bi,"AlignmentStart",22),Ql=new qe(Bi,"AlignmentEnd",23),Qu=new qe(Bi,"AlignmentBus",24),ql=new qe(Bi,"AlignmentBusBranching",25),qu=new qe(Bi,"AlignmentTopLeftBus",26),mu=new qe(Bi,"AlignmentBottomRightBus",27),D0=new qe(Bi,"CompactionNone",30),Cp=new qe(Bi,"CompactionBlock",31),B0=new qe(Bi,"StyleLayered",40),Dy=new qe(Bi,"StyleLastParents",41),By=new qe(Bi,"StyleAlternating",42),Iy=new qe(Bi,"StyleRootOnly",43),I0=new qe(Bi,"ArrangementVertical",50),Ry=new qe(Bi,"ArrangementHorizontal",51),R0=new qe(Bi,"ArrangementFixedRoots",52),jy=new qe(Bi,"LayerIndividual",60),zy=new qe(Bi,"LayerSiblings",61),j0=new qe(Bi,"LayerUniform",62);Bi.className="TreeLayout",Bi.PathDefault=O0,Bi.PathDestination=Zl,Bi.PathSource=Sd,Bi.SortingForwards=If,Bi.SortingReverse=xp,Bi.SortingAscending=wp,Bi.SortingDescending=Pp,Bi.AlignmentCenterSubtrees=Rf,Bi.AlignmentCenterChildren=xd,Bi.AlignmentStart=Jl,Bi.AlignmentEnd=Ql,Bi.AlignmentBus=Qu,Bi.AlignmentBusBranching=ql,Bi.AlignmentTopLeftBus=qu,Bi.AlignmentBottomRightBus=mu,Bi.CompactionNone=D0,Bi.CompactionBlock=Cp,Bi.StyleLayered=B0,Bi.StyleLastParents=Dy,Bi.StyleAlternating=By,Bi.StyleRootOnly=Iy,Bi.ArrangementVertical=I0,Bi.ArrangementHorizontal=Ry,Bi.ArrangementFixedRoots=R0,Bi.LayerIndividual=jy,Bi.LayerSiblings=zy,Bi.LayerUniform=j0;function wd(a){br.call(this,a)}We(wd,br),wd.prototype.createVertex=function(){return new Ya(this)},wd.prototype.createEdge=function(){return new jf(this)},wd.className="TreeNetwork";function Ya(a){ko.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new de(0,0),this.Da=new on(0,0),this.la=new de(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=If,this.hd=oy,this.Kb=0,this.Jb=xd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=ns,this.wr=!0,this.Dp=ns}We(Ya,ko),Ya.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)},sn.Object.defineProperties(Ya.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)}}}),Ya.className="TreeVertex";function jf(a){ua.call(this,a),this.$t=new de(0,0)}We(jf,ua),jf.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Zl:x=this.fromVertex,b=this.toVertex;break;case Sd:x=this.toVertex,b=this.fromVertex;break;default:Ye("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=ul(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Pa,ht=a.isOrthogonal,dt;if(a.uh(),ht||at){for(dt=2;4<a.pointsCount;)a.pv(2);var yt=a.i(1),Tt=a.i(2)}else{for(dt=1;3<a.pointsCount;)a.pv(1);yt=a.i(0),Tt=a.i(a.pointsCount-1)}var zt=a.i(a.pointsCount-1);z===0?(x.alignment===Ql?(z=b.bottom+E.y,E.y===0&&yt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===Jl?(z=b.top+E.y,E.y===0&&yt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(dt,yt.x,z),dt++,a.m(dt,b.right+nt,z),dt++,a.m(dt,b.right+nt+(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+2*(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+(E.x-ot),z),dt++,a.m(dt,Tt.x,z)):(ht&&(a.m(dt,b.right+nt/2,yt.y),dt++),a.m(dt,b.right+nt/2,z),dt++,a.m(dt,b.right+nt+E.x-(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Tt.y))):z===90?(x.alignment===Ql?(z=b.right+E.x,E.x===0&&yt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===Jl?(z=b.left+E.x,E.x===0&&yt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(dt,z,yt.y),dt++,a.m(dt,z,b.bottom+nt),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+2*(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)),dt++,a.m(dt,z,Tt.y)):(ht&&(a.m(dt,yt.x,b.bottom+nt/2),dt++),a.m(dt,z,b.bottom+nt/2),dt++,a.m(dt,z,b.bottom+nt+E.y-(ht?ot/2:ot)),dt++,ht&&a.m(dt,Tt.x,a.i(dt-1).y))):z===180?(x.alignment===Ql?(z=b.bottom+E.y,E.y===0&&yt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===Jl?(z=b.top+E.y,E.y===0&&yt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(dt,yt.x,z),dt++,a.m(dt,b.left-nt,z),dt++,a.m(dt,b.left-nt+(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+2*(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+(E.x+ot),z),dt++,a.m(dt,Tt.x,z)):(ht&&(a.m(dt,b.left-nt/2,yt.y),dt++),a.m(dt,b.left-nt/2,z),dt++,a.m(dt,b.left-nt+E.x+(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Tt.y))):z===270?(x.alignment===Ql?(z=b.right+E.x,E.x===0&&yt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===Jl?(z=b.left+E.x,E.x===0&&yt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(dt,z,yt.y),dt++,a.m(dt,z,b.top-nt),dt++,a.m(dt,z,b.top-nt+(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+2*(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+(E.y+ot)),dt++,a.m(dt,z,Tt.y)):(ht&&(a.m(dt,yt.x,b.top-nt/2),dt++),a.m(dt,z,b.top-nt/2),dt++,a.m(dt,z,b.top-nt+E.y+(ht?ot/2:ot)),dt++,ht&&a.m(dt,Tt.x,a.i(dt-1).y))):Ye("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=ul(x),y!==ul(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===Pa,E=a.isOrthogonal,b=Wh(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},sn.Object.defineProperties(jf.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)}}}),jf.className="TreeEdge",Ur.prototype.initializeStandardTools=function(){this.gb("Action",new Ua,this.mouseDownTools),this.gb("Relinking",new va,this.mouseDownTools),this.gb("LinkReshaping",new fo,this.mouseDownTools),this.gb("Rotating",new As,this.mouseDownTools),this.gb("Resizing",new ls,this.mouseDownTools),this.gb("Linking",new bs,this.mouseMoveTools),this.gb("Dragging",new Yr,this.mouseMoveTools),this.gb("DragSelecting",new La,this.mouseMoveTools),this.gb("Panning",new rs,this.mouseMoveTools),this.gb("ContextMenu",new Ls,this.mouseUpTools),this.gb("TextEditing",new Nr,this.mouseUpTools),this.gb("ClickCreating",new Fu,this.mouseUpTools),this.gb("ClickSelecting",new ph,this.mouseUpTools)},Nl("Horizontal",new fm),Nl("Spot",new pm),Nl("Table",new vm),Nl("Viewbox",new xm),Nl("TableRow",new ym),Nl("TableColumn",new Sm),Nl("Graduated",new zg),Nl("Grid",new jg),af.add("GraphLinksModel",zo),af.add("TreeModel",Da);var z0=Ze.go,Uy={get licenseKey(){return Ke.licenseKey},set licenseKey(a){Ke.licenseKey=a},get version(){return Ke.version},Group:mi,EnumValue:qe,List:Cn,Set:Oe,Map:pn,Point:de,Size:on,Rect:Je,Margin:ii,Spot:_n,Geometry:bn,PathFigure:Fo,PathSegment:Xi,InputEvent:gs,DiagramEvent:Cu,ChangedEvent:Hr,Model:Kn,GraphLinksModel:zi,TreeModel:Ds,Binding:mo,Transaction:jo,UndoManager:Vr,CommandHandler:ve,Tool:Hi,DraggingTool:Yr,DraggingInfo:hu,DraggingOptions:lt,LinkingBaseTool:io,LinkingTool:bs,RelinkingTool:va,LinkReshapingTool:fo,ResizingTool:ls,RotatingTool:As,ClickSelectingTool:ph,ActionTool:Ua,ClickCreatingTool:Fu,HTMLInfo:Ll,ContextMenuTool:Ls,DragSelectingTool:La,PanningTool:rs,TextEditingTool:Nr,ToolManager:Ur,Animation:os,AnimationManager:sa,AnimationTrigger:el,Layer:Go,Diagram:Ke,Palette:mt,Overview:wt,Brush:hr,GraphObject:Re,Panel:gn,RowColumnDefinition:Co,Shape:Ci,TextBlock:Cr,Picture:Gs,Part:$n,Adornment:Ki,Node:Fn,Link:xn,Placeholder:Ts,Layout:jr,LayoutNetwork:br,LayoutVertex:ko,LayoutEdge:ua,GridLayout:Zo,PanelLayout:Eo,CircularLayout:Xr,CircularNetwork:Of,CircularVertex:fp,CircularEdge:S0,ForceDirectedLayout:as,ForceDirectedNetwork:vd,ForceDirectedVertex:gp,ForceDirectedEdge:pp,LayeredDigraphLayout:gr,LayeredDigraphNetwork:Bf,LayeredDigraphVertex:Ia,LayeredDigraphEdge:yp,TreeLayout:Bi,TreeNetwork:wd,TreeVertex:Ya,TreeEdge:jf};typeof z0=="object"&&z0.version&&Ui("WARNING: a `go` object on the root object is already defined. "+("Debug"in z0?"debug ":"")+"version: "+z0.version+", replaced with version: "+Uy.version),Ke.prototype.go=Uy,Ze.go=Uy,typeof An.exports=="object"&&(An.exports=typeof he.g!="undefined"?he.g.go:self.go)}();var Jt=typeof he.g!="undefined"?he.g.go:self.go;const xt=typeof he.g!="undefined"?he.g.go:self.go,qt=xt.Group,Vt=xt.EnumValue,Rt=xt.List,Dt=xt.Set,St=xt.Map,Et=xt.Point,Nt=xt.Size,Pt=xt.Rect,Ct=xt.Margin,Lt=xt.Spot,Ft=xt.Geometry,vt=xt.PathFigure,et=xt.PathSegment,tt=xt.InputEvent,st=xt.DiagramEvent,rt=xt.ChangedEvent,ut=xt.Model,ct=xt.GraphLinksModel,gt=xt.TreeModel,ft=xt.Binding,kt=xt.Transaction,jt=xt.UndoManager,Ht=xt.CommandHandler,Ot=xt.Tool,te=xt.DraggingTool,ne=xt.DraggingInfo,Xt=xt.LinkingBaseTool,ce=xt.LinkingTool,me=xt.RelinkingTool,Pe=xt.LinkReshapingTool,De=xt.ResizingTool,Ve=xt.RotatingTool,we=xt.ClickSelectingTool,Qe=xt.ActionTool,ae=xt.ClickCreatingTool,_t=xt.HTMLInfo,$t=xt.ContextMenuTool,re=xt.DragSelectingTool,pe=xt.PanningTool,le=xt.TextEditingTool,Ue=xt.ToolManager,Ne=xt.Animation,Xe=xt.AnimationManager,Le=xt.AnimationTrigger,xe=xt.Layer,_e=xt.Diagram,Fe=xt.Palette,Ae=xt.Overview,oe=xt.Brush,Mt=xt.GraphObject,At=xt.Panel,Qt=xt.RowColumnDefinition,se=xt.Shape,Kt=xt.TextBlock,It=xt.TextBlockMetrics,bt=xt.Picture,Bt=xt.Part,ie=xt.Adornment,Wt=xt.Node,Zt=xt.Link,fe=xt.Placeholder,ke=xt.Layout,tn=xt.LayoutNetwork,dn=xt.LayoutVertex,ln=xt.LayoutEdge,Bn=xt.GridLayout,Vn=xt.PanelLayout,Tn=xt.CircularLayout,un=xt.CircularNetwork,si=xt.CircularVertex,ei=xt.CircularEdge,fi=xt.ForceDirectedLayout,bi=xt.ForceDirectedNetwork,Ni=xt.ForceDirectedVertex,qn=xt.ForceDirectedEdge,Ii=xt.LayeredDigraphLayout,pr=xt.LayeredDigraphNetwork,Ar=xt.LayeredDigraphVertex,Or=xt.LayeredDigraphEdge,wr=xt.TreeLayout,Fi=xt.TreeNetwork,Sr=xt.TreeVertex,Ri=xt.TreeEdge,vn=xt.version},15979:function(An,jn,he){"use strict";he.d(jn,{hP:function(){return Ae}});var Jt=function(oe,Mt){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(At,Qt){At.__proto__=Qt}||function(At,Qt){for(var se in Qt)Object.prototype.hasOwnProperty.call(Qt,se)&&(At[se]=Qt[se])})(oe,Mt)};function xt(oe,Mt){function At(){this.constructor=oe}Jt(oe,Mt),oe.prototype=Mt===null?Object.create(Mt):(At.prototype=Mt.prototype,new At)}function qt(oe,Mt,At,Qt){return new(At||(At=Promise))(function(se,Kt){function It(ie){try{Bt(Qt.next(ie))}catch(Wt){Kt(Wt)}}function bt(ie){try{Bt(Qt.throw(ie))}catch(Wt){Kt(Wt)}}function Bt(ie){var Wt;ie.done?se(ie.value):(Wt=ie.value,Wt instanceof At?Wt:new At(function(Zt){Zt(Wt)})).then(It,bt)}Bt((Qt=Qt.apply(oe,Mt||[])).next())})}function Vt(oe,Mt){var At,Qt,se,Kt,It={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return Kt={next:bt(0),throw:bt(1),return:bt(2)},typeof Symbol=="function"&&(Kt[Symbol.iterator]=function(){return this}),Kt;function bt(Bt){return function(ie){return function(Wt){if(At)throw new TypeError("Generator is already executing.");for(;It;)try{if(At=1,Qt&&(se=2&Wt[0]?Qt.return:Wt[0]?Qt.throw||((se=Qt.return)&&se.call(Qt),0):Qt.next)&&!(se=se.call(Qt,Wt[1])).done)return se;switch(Qt=0,se&&(Wt=[2&Wt[0],se.value]),Wt[0]){case 0:case 1:se=Wt;break;case 4:return It.label++,{value:Wt[1],done:!1};case 5:It.label++,Qt=Wt[1],Wt=[0];continue;case 7:Wt=It.ops.pop(),It.trys.pop();continue;default:if(se=It.trys,!((se=se.length>0&&se[se.length-1])||Wt[0]!==6&&Wt[0]!==2)){It=0;continue}if(Wt[0]===3&&(!se||Wt[1]>se[0]&&Wt[1]<se[3])){It.label=Wt[1];break}if(Wt[0]===6&&It.label<se[1]){It.label=se[1],se=Wt;break}if(se&&It.label<se[2]){It.label=se[2],It.ops.push(Wt);break}se[2]&&It.ops.pop(),It.trys.pop();continue}Wt=Mt.call(oe,It)}catch(Zt){Wt=[6,Zt],Qt=0}finally{At=se=0}if(5&Wt[0])throw Wt[1];return{value:Wt[0]?Wt[1]:void 0,done:!0}}([Bt,ie])}}}function Rt(){for(var oe=0,Mt=0,At=arguments.length;Mt<At;Mt++)oe+=arguments[Mt].length;var Qt=Array(oe),se=0;for(Mt=0;Mt<At;Mt++)for(var Kt=arguments[Mt],It=0,bt=Kt.length;It<bt;It++,se++)Qt[se]=Kt[It];return Qt}var Dt=function(){function oe(){}return oe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},oe.setAttributes=function(Mt,At){for(var Qt=0,se=At;Qt<se.length;Qt++){var Kt=se[Qt],It=Kt[0],bt=Kt[1];Mt.setAttribute(It,bt)}},oe.createRect=function(Mt,At,Qt){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",Mt.toString()),se.setAttribute("height",At.toString()),Qt&&oe.setAttributes(se,Qt),se},oe.createLine=function(Mt,At,Qt,se,Kt){var It=document.createElementNS("http://www.w3.org/2000/svg","line");return It.setAttribute("x1",Mt.toString()),It.setAttribute("y1",At.toString()),It.setAttribute("x2",Qt.toString()),It.setAttribute("y2",se.toString()),Kt&&oe.setAttributes(It,Kt),It},oe.createPolygon=function(Mt,At){var Qt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Qt.setAttribute("points",Mt),At&&oe.setAttributes(Qt,At),Qt},oe.createCircle=function(Mt,At){var Qt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Qt.setAttribute("cx",(Mt/2).toString()),Qt.setAttribute("cy",(Mt/2).toString()),Qt.setAttribute("r",Mt.toString()),At&&oe.setAttributes(Qt,At),Qt},oe.createEllipse=function(Mt,At,Qt){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(Mt/2).toString()),se.setAttribute("cy",(At/2).toString()),se.setAttribute("rx",(Mt/2).toString()),se.setAttribute("ry",(At/2).toString()),Qt&&oe.setAttributes(se,Qt),se},oe.createGroup=function(Mt){var At=document.createElementNS("http://www.w3.org/2000/svg","g");return Mt&&oe.setAttributes(At,Mt),At},oe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},oe.createMarker=function(Mt,At,Qt,se,Kt,It,bt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return oe.setAttributes(Bt,[["id",Mt],["orient",At],["markerWidth",Qt.toString()],["markerHeight",se.toString()],["refX",Kt.toString()],["refY",It.toString()]]),Bt.appendChild(bt),Bt},oe.createText=function(Mt){var At=document.createElementNS("http://www.w3.org/2000/svg","text");return At.setAttribute("x","0"),At.setAttribute("y","0"),Mt&&oe.setAttributes(At,Mt),At},oe.createTSpan=function(Mt,At){var Qt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Qt.textContent=Mt,At&&oe.setAttributes(Qt,At),Qt},oe.createImage=function(Mt){var At=document.createElementNS("http://www.w3.org/2000/svg","image");return Mt&&oe.setAttributes(At,Mt),At},oe.createPoint=function(Mt,At){var Qt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Qt.x=Mt,Qt.y=At,Qt},oe.createPath=function(Mt,At){var Qt=document.createElementNS("http://www.w3.org/2000/svg","path");return Qt.setAttribute("d",Mt),At&&oe.setAttributes(Qt,At),Qt},oe}(),St=function(){function oe(){}return oe.addKey=function(Mt){oe.key=Mt},Object.defineProperty(oe,"isLicensed",{get:function(){return!!oe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(oe.key)},enumerable:!1,configurable:!0}),oe}(),Et=function(){function oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return oe.prototype.rasterize=function(Mt,At,Qt){var se=this;return new Promise(function(Kt){var It=Qt!==void 0?Qt:document.createElement("canvas");Mt===null&&(se.markersOnly=!0,se.naturalSize=!1);var bt=document.createElementNS("http://www.w3.org/2000/svg","svg");bt.setAttribute("xmlns","http://www.w3.org/2000/svg"),bt.setAttribute("width",At.width.baseVal.valueAsString),bt.setAttribute("height",At.height.baseVal.valueAsString),bt.setAttribute("viewBox","0 0 "+At.viewBox.baseVal.width.toString()+" "+At.viewBox.baseVal.height.toString()),bt.innerHTML=At.innerHTML,se.naturalSize===!0?(bt.width.baseVal.value=Mt.naturalWidth,bt.height.baseVal.value=Mt.naturalHeight):se.width!==void 0&&se.height!==void 0&&(bt.width.baseVal.value=se.width,bt.height.baseVal.value=se.height),It.width=bt.width.baseVal.value,It.height=bt.height.baseVal.value;var Bt=bt.outerHTML,ie=It.getContext("2d");se.markersOnly!==!0&&ie.drawImage(Mt,0,0,It.width,It.height);var Wt=window.URL,Zt=new Image(It.width,It.height);Zt.setAttribute("crossOrigin","anonymous");var fe=new Blob([Bt],{type:"image/svg+xml"}),ke=Wt.createObjectURL(fe);Zt.onload=function(){ie.drawImage(Zt,0,0),Wt.revokeObjectURL(ke);var tn=It.toDataURL(se.imageType,se.imageQuality);Kt(tn)},Zt.src=ke})},oe}(),Nt=function(){},Pt=function(){function oe(Mt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Mt+"_"}return Object.defineProperty(oe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(oe.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(oe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),oe.prototype.addClass=function(Mt){return this.styleSheet===void 0&&this.addStyleSheet(),Mt.name=""+this.classNamePrefix+Mt.localName,this.classes.push(Mt),this.styleSheet.sheet.insertRule("."+Mt.name+" {"+Mt.style+"}",this.styleSheet.sheet.cssRules.length),Mt},oe.prototype.addRule=function(Mt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Mt),this.styleSheet.sheet.insertRule(Mt.selector+" {"+Mt.style+"}",this.styleSheet.sheet.cssRules.length)},oe.prototype.addStyleSheet=function(){var Mt;this.styleSheet=document.createElement("style"),((Mt=this.styleSheetRoot)!==null&&Mt!==void 0?Mt:document.head).appendChild(this.styleSheet),this.addRule(new Ct("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ct("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new Ct("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Lt("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Lt("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},oe.prototype.removeStyleSheet=function(){var Mt;this.styleSheet&&(((Mt=this.styleSheetRoot)!==null&&Mt!==void 0?Mt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},oe}(),Ct=function(oe,Mt){this.selector=oe,this.style=Mt},Lt=function(oe,Mt){this.localName=oe,this.style=Mt},Ft=function(){function oe(Mt,At,Qt,se,Kt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Mt,this.displayMode=At,this.markerItems=Qt,this.uiStyleSettings=se,this.styles=Kt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return oe.prototype.show=function(Mt){var At=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Mt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Qt=document.createElement("div");Qt.className=this.toolbarBlockStyleClass.name,Qt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Qt),this.addActionButton(Qt,'<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(Qt,'<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(Qt,'<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(Qt,'<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(Qt,'<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(Qt,'<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(Qt,'<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(Qt,'<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 It=document.createElement("div");It.className=""+At.toolbarButtonStyleClass.name,It.setAttribute("data-type-name",Kt.typeName),It.innerHTML=Kt.icon,It.addEventListener("click",function(){At.markerToolbarButtonClicked(It,Kt)}),At.buttons.push(It),At.markerButtons.push(It)}),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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<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(se,'<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()},oe.prototype.addButtonClickListener=function(Mt){this.buttonClickListeners.push(Mt)},oe.prototype.removeButtonClickListener=function(Mt){this.buttonClickListeners.indexOf(Mt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Mt),1)},oe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},oe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Mt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var At=0;At<this.markerButtons.length;At++)At<Mt||At===Mt&&this.markerButtons.length-1===Mt?this.markerButtonBlock.appendChild(this.markerButtons[At]):(At===Mt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[At]))}},oe.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")},oe.prototype.resetButtonStyles=function(){var Mt=this;this.buttons.forEach(function(At){At.className=At.className.replace(Mt.uiStyleSettings.toolbarButtonStyleColorsClassName?Mt.uiStyleSettings.toolbarButtonStyleColorsClassName:Mt.toolbarButtonStyleColorsClass.name,"").trim(),At.className=At.className.replace(Mt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Mt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Mt.toolbarActiveButtonStyleColorsClass.name,"").trim(),At.className+=" "+(Mt.uiStyleSettings.toolbarButtonStyleColorsClassName?Mt.uiStyleSettings.toolbarButtonStyleColorsClassName:Mt.toolbarButtonStyleColorsClass.name)})},oe.prototype.addActionButton=function(Mt,At,Qt){var se=this,Kt=document.createElement("div");switch(Kt.className=""+this.toolbarButtonStyleClass.name,Kt.innerHTML=At,Kt.setAttribute("data-action",Qt),Kt.addEventListener("click",function(){se.actionToolbarButtonClicked(Kt,Qt)}),Qt){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}Mt.appendChild(Kt),this.buttons.push(Kt)},oe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Lt("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 Lt("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Lt("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Lt("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 Lt("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Mt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Lt("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Mt)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Mt)+`px;
|
|
padding: `+Mt+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Lt("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Lt("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Ct("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new Ct("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},oe.prototype.markerToolbarButtonClicked=function(Mt,At){this.setActiveButton(Mt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Qt){return Qt("marker",At)}),this.markerButtonOverflowBlock.style.display="none"},oe.prototype.actionToolbarButtonClicked=function(Mt,At){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Qt){return Qt("action",At)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},oe.prototype.setActiveButton=function(Mt){this.resetButtonStyles(),Mt.className=Mt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Mt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},oe.prototype.setActiveMarkerButton=function(Mt){var At=this.markerButtons.find(function(Qt){return Qt.getAttribute("data-type-name")===Mt});At&&this.setActiveButton(At)},oe.prototype.setCurrentMarker=function(Mt){var At=this;this.currentMarker=Mt,this.buttons.filter(function(Qt){return/delete|notes/.test(Qt.getAttribute("data-action"))}).forEach(function(Qt){At.currentMarker===void 0?(Qt.style.fillOpacity="0.4",Qt.style.pointerEvents="none"):(Qt.style.fillOpacity="1",Qt.style.pointerEvents="all")})},oe}(),vt=function(){function oe(Mt,At,Qt,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=Mt,this.displayMode=At,this.uiStyleSettings=Qt,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return oe.prototype.addStyles=function(){var Mt;this.toolboxStyleClass=this.styles.addClass(new Lt("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 Lt("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var At=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Lt("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Lt("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Lt("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 Lt("toolbox-panel-row_colors",`
|
|
background-color: `+((Mt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Mt!==void 0?Mt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Lt("toolbox_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.toolboxButtonStyleColorsClass=this.styles.addClass(new Lt("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Lt("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new Ct("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new Ct("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},oe.prototype.show=function(Mt){var At;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Mt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((At=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&At!==void 0?At:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},oe.prototype.setPanelButtons=function(Mt){var At,Qt,se=this;this.panels=Mt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((At=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&At!==void 0?At:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Qt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Qt!==void 0?Qt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Kt){var It;Kt.uiStyleSettings=se.uiStyleSettings;var bt=document.createElement("div");bt.className=se.toolboxButtonStyleClass.name+" "+((It=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&It!==void 0?It:se.toolboxButtonStyleColorsClass.name),bt.innerHTML=Kt.icon,bt.title=Kt.title,bt.addEventListener("click",function(){se.panelButtonClick(Kt)}),se.panelButtons.push(bt),se.buttonRow.appendChild(bt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},oe.prototype.panelButtonClick=function(Mt){var At=this,Qt=-1;if(Mt!==this.activePanel){Qt=this.panels.indexOf(Mt),this.panelRow.innerHTML="";var se=Mt.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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=Mt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){At.displayMode==="inline"?At.panelRow.style.display="none":At.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Kt,It){var bt,Bt;Kt.className=At.toolboxButtonStyleClass.name+" "+(It===Qt?""+((bt=At.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&bt!==void 0?bt:At.toolboxActiveButtonStyleColorsClass.name):""+((Bt=At.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:At.toolboxButtonStyleColorsClass.name))})},oe}(),et=function(oe,Mt){this.title=oe,this.icon=Mt},tt=function(oe){function Mt(At,Qt,se,Kt){var It=oe.call(this,At,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 It.colors=[],It.addTransparent=!1,It.colorBoxes=[],It.colors=Qt,It.currentColor=se,It.setCurrentColor=It.setCurrentColor.bind(It),It.getColorBox=It.getColorBox.bind(It),It}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");return Qt.style.overflow="hidden",Qt.style.whiteSpace="nowrap",this.colors.forEach(function(se){var Kt=At.getColorBox(se);Qt.appendChild(Kt),At.colorBoxes.push(Kt)}),Qt},Mt.prototype.getColorBox=function(At){var Qt=this,se=this.uiStyleSettings.toolbarHeight/4,Kt=this.uiStyleSettings.toolbarHeight-se,It=document.createElement("div");It.style.display="inline-block",It.style.boxSizing="content-box",It.style.width=Kt-2+"px",It.style.height=Kt-2+"px",It.style.padding="1px",It.style.marginRight="2px",It.style.marginBottom="2px",It.style.borderWidth="2px",It.style.borderStyle="solid",It.style.borderRadius=(Kt+2)/2+"px",It.style.borderColor=At===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",It.addEventListener("click",function(){Qt.setCurrentColor(At,It)});var bt=document.createElement("div");return bt.style.display="inline-block",bt.style.width=Kt-2+"px",bt.style.height=Kt-2+"px",bt.style.backgroundColor=At,bt.style.borderRadius=Kt/2+"px",At==="transparent"&&(bt.style.fill=this.uiStyleSettings.toolboxAccentColor,bt.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>`),It.appendChild(bt),It},Mt.prototype.setCurrentColor=function(At,Qt){var se=this;this.currentColor=At,this.colorBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(At)},Mt}(et),st=function(){function oe(Mt,At,Qt){this._state="new",this._isSelected=!1,this._container=Mt,this._overlayContainer=At,this.globalSettings=Qt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(oe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),oe.prototype.ownsTarget=function(Mt){return!1},Object.defineProperty(oe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),oe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},oe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},oe.prototype.pointerDown=function(Mt,At){},oe.prototype.dblClick=function(Mt,At){},oe.prototype.manipulate=function(Mt){},oe.prototype.pointerUp=function(Mt){this.stateChanged()},oe.prototype.dispose=function(){},oe.prototype.addMarkerVisualToContainer=function(Mt){this.container.childNodes.length>0?this.container.insertBefore(Mt,this.container.childNodes[0]):this.container.appendChild(Mt)},oe.prototype.getState=function(){return{typeName:oe.typeName,state:this.state,notes:this.notes}},oe.prototype.restoreState=function(Mt){this._state=Mt.state,this.notes=Mt.notes},oe.prototype.scale=function(Mt,At){},oe.prototype.colorChanged=function(Mt){this.onColorChanged&&this.onColorChanged(Mt),this.stateChanged()},oe.prototype.fillColorChanged=function(Mt){this.onFillColorChanged&&this.onFillColorChanged(Mt),this.stateChanged()},oe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Mt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Mt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Mt)&&this.onStateChanged(this)}},oe.typeName="MarkerBase",oe}(),rt=function(){function oe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return oe.prototype.findGripByVisual=function(Mt){return this.topLeft.ownsTarget(Mt)?this.topLeft:this.topCenter.ownsTarget(Mt)?this.topCenter:this.topRight.ownsTarget(Mt)?this.topRight:this.centerLeft.ownsTarget(Mt)?this.centerLeft:this.centerRight.ownsTarget(Mt)?this.centerRight:this.bottomLeft.ownsTarget(Mt)?this.bottomLeft:this.bottomCenter.ownsTarget(Mt)?this.bottomCenter:this.bottomRight.ownsTarget(Mt)?this.bottomRight:void 0},oe}(),ut=function(){function oe(){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 oe.prototype.ownsTarget=function(Mt){return Mt===this.visual||Mt===this.visual.childNodes[0]||Mt===this.visual.childNodes[1]},oe}(),ct=function(){function oe(){}return oe.toITransformMatrix=function(Mt){return{a:Mt.a,b:Mt.b,c:Mt.c,d:Mt.d,e:Mt.e,f:Mt.f}},oe.toSVGMatrix=function(Mt,At){return Mt.a=At.a,Mt.b=At.b,Mt.c=At.c,Mt.d=At.d,Mt.e=At.e,Mt.f=At.f,Mt},oe}(),gt=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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 xt(Mt,oe),Object.defineProperty(Mt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Mt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Mt.prototype,"visual",{get:function(){return this._visual},set:function(At){this._visual=At;var Qt=Dt.createTransform();this._visual.transform.baseVal.appendItem(Qt)},enumerable:!1,configurable:!0}),Mt.prototype.ownsTarget=function(At){return!!oe.prototype.ownsTarget.call(this,At)||!!(this.controlGrips.findGripByVisual(At)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(At))},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="new"&&(this.left=At.x,this.top=At.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(At);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Qt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Qt)){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 It=this.container.transform.baseVal.getItem(0);It.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(It,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Mt.prototype.pointerUp=function(At){var Qt=this.state;oe.prototype.pointerUp.call(this,At),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(At),this._state="select",Qt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Mt.prototype.moveVisual=function(At){this.visual.style.transform="translate("+At.x+"px, "+At.y+"px)"},Mt.prototype.manipulate=function(At){var Qt=this.unrotatePoint(At);this.state==="creating"?this.resize(At):this.state==="move"?(this.left=this.manipulationStartLeft+(Qt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Qt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Qt):this.state==="rotate"&&this.rotate(At)},Mt.prototype.resize=function(At){var Qt=this.manipulationStartLeft,se=this.manipulationStartWidth,Kt=this.manipulationStartTop,It=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Qt=this.manipulationStartLeft+At.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-Qt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+At.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Kt=this.manipulationStartTop+At.y-this.manipulationStartY,It=this.manipulationStartHeight+this.manipulationStartTop-Kt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:It=this.manipulationStartHeight+At.y-this.manipulationStartY}se>=0?(this.left=Qt,this.width=se):(this.left=Qt+se,this.width=-se),It>=0?(this.top=Kt,this.height=It):(this.top=Kt+It,this.height=-It),this.setSize()},Mt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Mt.prototype.rotate=function(At){if(Math.abs(At.x-this.centerX)>.1){var Qt=Math.sign(At.x-this.centerX);this.rotationAngle=180*Math.atan((At.y-this.centerY)/(At.x-this.centerX))/Math.PI+90*Qt,this.applyRotation()}},Mt.prototype.applyRotation=function(){var At=this.container.transform.baseVal.getItem(0);At.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(At,0)},Mt.prototype.rotatePoint=function(At){if(this.rotationAngle===0)return At;var Qt=this.container.getCTM(),se=Dt.createPoint(At.x,At.y);return{x:(se=se.matrixTransform(Qt)).x,y:se.y}},Mt.prototype.unrotatePoint=function(At){if(this.rotationAngle===0)return At;var Qt=this.container.getCTM();Qt=Qt.inverse();var se=Dt.createPoint(At.x,At.y);return{x:(se=se.matrixTransform(Qt)).x,y:se.y}},Mt.prototype.select=function(){oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Mt.prototype.deselect=function(){oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Mt.prototype.setupControlBox=function(){this.controlBox=Dt.createGroup();var At=Dt.createTransform();At.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(At),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 rt,this.addControlGrips(),this.controlBox.style.display="none"},Mt.prototype.adjustControlBox=function(){var At=this.controlBox.transform.baseVal.getItem(0);At.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(At,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()},Mt.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()},Mt.prototype.createGrip=function(){var At=new ut;return At.visual.transform.baseVal.appendItem(Dt.createTransform()),this.controlBox.appendChild(At.visual),At},Mt.prototype.positionGrips=function(){var At=this.controlGrips.topLeft.GRIP_SIZE,Qt=-At/2,se=Qt,Kt=(this.width+this.CB_DISTANCE)/2-At/2,It=(this.height+this.CB_DISTANCE)/2-At/2,bt=this.height+this.CB_DISTANCE-At/2,Bt=this.width+this.CB_DISTANCE-At/2;this.positionGrip(this.controlGrips.topLeft.visual,Qt,se),this.positionGrip(this.controlGrips.topCenter.visual,Kt,se),this.positionGrip(this.controlGrips.topRight.visual,Bt,se),this.positionGrip(this.controlGrips.centerLeft.visual,Qt,It),this.positionGrip(this.controlGrips.centerRight.visual,Bt,It),this.positionGrip(this.controlGrips.bottomLeft.visual,Qt,bt),this.positionGrip(this.controlGrips.bottomCenter.visual,Kt,bt),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,bt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Kt,se-3*this.CB_DISTANCE)},Mt.prototype.positionGrip=function(At,Qt,se){var Kt=At.transform.baseVal.getItem(0);Kt.setTranslate(Qt,se),At.transform.baseVal.replaceItem(Kt,0)},Mt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Mt.prototype.showControlBox=function(){this.controlBox.style.display=""},Mt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},oe.prototype.getState.call(this))},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At);var Qt=At;this.left=Qt.left,this.top=Qt.top,this.width=Qt.width,this.height=Qt.height,this.rotationAngle=Qt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Qt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Qt.containerTransformMatrix))},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt);var se=this.rotatePoint({x:this.left,y:this.top}),Kt=this.unrotatePoint({x:se.x*At,y:se.y*Qt});this.left=Kt.x,this.top=Kt.y,this.width=this.width*At,this.height=this.height*Qt,this.adjustControlBox()},Mt}(st),ft=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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 xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual)},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Mt.prototype.manipulate=function(At){oe.prototype.manipulate.call(this,At)},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),this.setSize()},Mt.prototype.setSize=function(){oe.prototype.setSize.call(this),Dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Mt.prototype.pointerUp=function(At){oe.prototype.pointerUp.call(this,At),this.setSize()},Mt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.visual&&Dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Mt.prototype.setFillColor=function(At){this.fillColor=At,this.visual&&Dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Mt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.visual&&Dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Mt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.visual&&Dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Mt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},oe.prototype.getState.call(this))},Mt.prototype.restoreState=function(At){var Qt=At;this.fillColor=Qt.fillColor,this.strokeColor=Qt.strokeColor,this.strokeWidth=Qt.strokeWidth,this.strokeDasharray=Qt.strokeDasharray,this.opacity=Qt.opacity,this.createVisual(),oe.prototype.restoreState.call(this,At),this.setSize()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.setSize()},Mt.title="Rectangle marker",Mt}(gt),kt=function(oe){function Mt(At,Qt,se,Kt){var It=oe.call(this,At,Kt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return It.widths=[],It.widthBoxes=[],It.widths=Qt,It.currentWidth=se,It.setCurrentWidth=It.setCurrentWidth.bind(It),It}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");return Qt.style.display="flex",Qt.style.overflow="hidden",Qt.style.flexGrow="2",this.widths.forEach(function(se){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=se===At.currentWidth?At.uiStyleSettings.toolboxAccentColor:"transparent",Kt.addEventListener("click",function(){At.setCurrentWidth(se,Kt)}),Qt.appendChild(Kt);var It=document.createElement("div");It.innerText=se.toString(),It.style.marginRight="5px",Kt.appendChild(It);var bt=document.createElement("div");bt.style.minHeight="20px",bt.style.flexGrow="2",bt.style.display="flex",bt.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=se+"px solid "+At.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",bt.appendChild(Bt),Kt.appendChild(bt),At.widthBoxes.push(Kt)}),Qt},Mt.prototype.setCurrentWidth=function(At,Qt){var se=this;this.currentWidth=At,this.widthBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Mt}(et),jt=function(oe){function Mt(At,Qt,se,Kt){var It=oe.call(this,At,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 It.styles=[],It.styleBoxes=[],It.styles=Qt,It.currentStyle=se,It.setCurrentStyle=It.setCurrentStyle.bind(It),It}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");return Qt.style.display="flex",Qt.style.overflow="hidden",Qt.style.flexGrow="2",this.styles.forEach(function(se){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/At.styles.length-5+"%",Kt.style.borderColor=se===At.currentStyle?At.uiStyleSettings.toolboxAccentColor:"transparent",Kt.addEventListener("click",function(){At.setCurrentStyle(se,Kt)}),Qt.appendChild(Kt);var It=document.createElement("div");It.style.minHeight="20px",It.style.flexGrow="2",It.style.overflow="hidden";var bt=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+At.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
</svg>`;It.innerHTML=bt,Kt.appendChild(It),At.styleBoxes.push(Kt)}),Qt},Mt.prototype.setCurrentStyle=function(At,Qt){var se=this;this.currentStyle=At,this.styleBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Mt}(et),Ht=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.strokeColor=se.defaultColor,Kt.strokeWidth=se.defaultStrokeWidth,Kt.strokeDasharray=se.defaultStrokeDasharray,Kt.strokePanel=new tt("Line color",se.defaultColorSet,se.defaultColor),Kt.strokePanel.onColorChanged=Kt.setStrokeColor,Kt.strokeWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.strokeWidthPanel.onWidthChanged=Kt.setStrokeWidth,Kt.strokeStylePanel=new jt("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),Kt.strokeStylePanel.onStyleChanged=Kt.setStrokeDasharray,Kt}return xt(Mt,oe),Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=oe.prototype.getState.call(this);return At.typeName=Mt.typeName,At},Mt.typeName="FrameMarker",Mt.title="Frame marker",Mt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Mt}(ft),Ot=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"},te=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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 xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!!oe.prototype.ownsTarget.call(this,At)||!(!this.grip1.ownsTarget(At)&&!this.grip2.ownsTarget(At))},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.manipulationStartX=At.x,this.manipulationStartY=At.y,this.state==="new"&&(this.x1=At.x,this.y1=At.y,this.x2=At.x,this.y2=At.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(Qt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Qt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Mt.prototype.pointerUp=function(At){var Qt=this.state;oe.prototype.pointerUp.call(this,At),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(At),this._state="select",Qt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Mt.prototype.adjustVisual=function(){},Mt.prototype.manipulate=function(At){this.state==="creating"?this.resize(At):this.state==="move"?(this.x1=this.manipulationStartX1+At.x-this.manipulationStartX,this.y1=this.manipulationStartY1+At.y-this.manipulationStartY,this.x2=this.manipulationStartX2+At.x-this.manipulationStartX,this.y2=this.manipulationStartY2+At.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(At)},Mt.prototype.resize=function(At){switch(this.activeGrip){case this.grip1:this.x1=At.x,this.y1=At.y;break;case this.grip2:case void 0:this.x2=At.x,this.y2=At.y}this.adjustVisual(),this.adjustControlBox()},Mt.prototype.select=function(){oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Mt.prototype.deselect=function(){oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Mt.prototype.setupControlBox=function(){this.controlBox=Dt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Mt.prototype.adjustControlBox=function(){this.positionGrips()},Mt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Mt.prototype.createGrip=function(){var At=new ut;return At.visual.transform.baseVal.appendItem(Dt.createTransform()),this.controlBox.appendChild(At.visual),At},Mt.prototype.positionGrips=function(){var At=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-At/2,this.y1-At/2),this.positionGrip(this.grip2.visual,this.x2-At/2,this.y2-At/2)},Mt.prototype.positionGrip=function(At,Qt,se){var Kt=At.transform.baseVal.getItem(0);Kt.setTranslate(Qt,se),At.transform.baseVal.replaceItem(Kt,0)},Mt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},oe.prototype.getState.call(this))},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At);var Qt=At;this.x1=Qt.x1,this.y1=Qt.y1,this.x2=Qt.x2,this.y2=Qt.y2},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.x1=this.x1*At,this.y1=this.y1*Qt,this.x2=this.x2*At,this.y2=this.y2*Qt,this.adjustVisual(),this.adjustControlBox()},Mt}(st),ne=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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=se.defaultColor,Kt.strokeWidth=se.defaultStrokeWidth,Kt.strokeDasharray=se.defaultStrokeDasharray,Kt.strokePanel=new tt("Line color",se.defaultColorSet,se.defaultColor),Kt.strokePanel.onColorChanged=Kt.setStrokeColor,Kt.strokeWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.strokeWidthPanel.onWidthChanged=Kt.setStrokeWidth,Kt.strokeStylePanel=new jt("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),Kt.strokeStylePanel.onStyleChanged=Kt.setStrokeDasharray,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.selectorLine&&At!==this.visibleLine)},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Mt.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()]]))},Mt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.adjustVisual(),this.colorChanged(At)},Mt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.adjustVisual()},Mt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At);var Qt=At;this.strokeColor=Qt.strokeColor,this.strokeWidth=Qt.strokeWidth,this.strokeDasharray=Qt.strokeDasharray,this.createVisual(),this.adjustVisual()},Mt.typeName="LineMarker",Mt.title="Line marker",Mt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Mt}(te),Xt=function(oe){function Mt(At,Qt,se,Kt){var It=oe.call(this,At,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 It.fonts=[],It.fontBoxes=[],It.fonts=Qt,It.currentFont=se,It.setCurrentFont=It.setCurrentFont.bind(It),It}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");return Qt.style.overflow="hidden",Qt.style.flexGrow="2",this.fonts.forEach(function(se){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/At.fonts.length-5+"%",Kt.style.borderColor=se===At.currentFont?At.uiStyleSettings.toolboxAccentColor:"transparent",Kt.addEventListener("click",function(){At.setCurrentFont(se,Kt)}),Qt.appendChild(Kt);var It=document.createElement("div");It.style.display="flex",It.style.minHeight="20px",It.style.flexGrow="2",It.style.fontFamily=se,It.style.overflow="hidden";var bt=document.createElement("div");bt.style.whiteSpace="nowrap",bt.style.overflow="hidden",bt.style.textOverflow="ellipsis",bt.innerHTML="The quick brown fox jumps over the lazy dog",It.appendChild(bt),Kt.appendChild(It),At.fontBoxes.push(Kt)}),Qt},Mt.prototype.setCurrentFont=function(At,Qt){var se=this;this.currentFont=At,this.fontBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Mt}(et),ce=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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=se.defaultColor,Kt.fontFamily=se.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 tt("Color",se.defaultColorSet,se.defaultColor),Kt.colorPanel.onColorChanged=Kt.setColor,Kt.fontFamilyPanel=new Xt("Font",se.defaultFontFamilies,se.defaultFontFamily),Kt.fontFamilyPanel.onFontChanged=Kt.setFont,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){if(oe.prototype.ownsTarget.call(this,At)||At===this.visual||At===this.textElement||At===this.bgRectangle)return!0;var Qt=!1;return this.textElement.childNodes.forEach(function(se){se===At&&(Qt=!0)}),Qt},Mt.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()},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.isMoved=!1,this.pointerDownPoint=At,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Mt.prototype.renderText=function(){var At=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(Qt){At.textElement.appendChild(Dt.createTSpan(Qt.trim()===""?" ":Qt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Mt.prototype.getTextScale=function(){var At=this.textElement.getBBox(),Qt=1;if(At.width>0&&At.height>0){var se=(1*this.width-this.width*this.padding*2/100)/At.width,Kt=(1*this.height-this.height*this.padding*2/100)/At.height;Qt=Math.min(se,Kt)}return Qt},Mt.prototype.getTextPosition=function(At){var Qt=this.textElement.getBBox(),se=0,Kt=0;return Qt.width>0&&Qt.height>0&&(se=(this.width-Qt.width*At)/2,Kt=this.height/2-Qt.height*At/2),{x:se,y:Kt}},Mt.prototype.sizeText=function(){var At=this.textElement.getBBox(),Qt=this.getTextScale(),se=this.getTextPosition(Qt);se.y-=At.y*Qt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+Qt+", "+Qt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(Qt,Qt))},Mt.prototype.manipulate=function(At){oe.prototype.manipulate.call(this,At),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(At.x-this.pointerDownPoint.x)>5||Math.abs(At.y-this.pointerDownPoint.y)>5)},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),this.isMoved=!0,this.setSize(),this.sizeText()},Mt.prototype.setSize=function(){oe.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()]]))},Mt.prototype.pointerUp=function(At){var Qt=this.state;Qt==="creating"&&(this._suppressMarkerCreateEvent=!0),oe.prototype.pointerUp.call(this,At),this.setSize(),(Qt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Mt.prototype.showTextEditor=function(){var At=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(Qt){Qt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Qt=Number.parseFloat(At.textEditor.style.fontSize);At.textEditor.clientWidth>=Number.parseInt(At.textEditor.style.maxWidth)&&Qt>.9;)Qt-=.1,At.textEditor.style.fontSize=Math.max(Qt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Qt){Qt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Qt){if(Qt.clipboardData){var se=Qt.clipboardData.getData("text"),Kt=window.getSelection();if(!Kt.rangeCount)return!1;Kt.deleteFromDocument(),Kt.getRangeAt(0).insertNode(document.createTextNode(se)),Qt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){At.textEditDivClicked(At.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Mt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var At=this.getTextScale(),Qt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),Kt={x:se.width*At,y:se.height*At};Qt.x-=Kt.x/2,Qt.y-=Kt.y/2,this.textEditor.style.top=Qt.y+"px",this.textEditor.style.left=Qt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Qt.x+"px",this.textEditor.style.fontSize=Math.max(16*At,12)+"px",this.textElement.style.display="none"}},Mt.prototype.textEditDivClicked=function(At){this.text=At.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Mt.prototype.select=function(){oe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Mt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),oe.prototype.deselect.call(this)},Mt.prototype.dblClick=function(At,Qt){oe.prototype.dblClick.call(this,At,Qt),this.showTextEditor()},Mt.prototype.setColor=function(At){this.textElement&&Dt.setAttributes(this.textElement,[["fill",At]]),this.color=At,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(At)},Mt.prototype.setFont=function(At){this.textElement&&Dt.setAttributes(this.textElement,[["font-family",At]]),this.fontFamily=At,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Mt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Mt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){var Qt=At;this.color=Qt.color,this.fontFamily=Qt.fontFamily,this.padding=Qt.padding,this.text=Qt.text,this.createVisual(),oe.prototype.restoreState.call(this,At),this.setSize()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.setSize(),this.sizeText(),this.positionTextEditor()},Mt.typeName="TextMarker",Mt.title="Text marker",Mt.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>',Mt}(gt),me=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.color="transparent",Kt.lineWidth=3,Kt.drawing=!1,Kt.pixelRatio=1,Kt.color=se.defaultColor,Kt.lineWidth=se.defaultStrokeWidth,Kt.pixelRatio=se.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 tt("Color",se.defaultColorSet,se.defaultColor),Kt.colorPanel.onColorChanged=Kt.setColor,Kt.lineWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.lineWidthPanel.onWidthChanged=Kt.setLineWidth,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.drawingImage)},Mt.prototype.createVisual=function(){this.visual=Dt.createGroup(),this.drawingImage=Dt.createImage(),this.visual.appendChild(this.drawingImage);var At=Dt.createTransform();this.visual.transform.baseVal.appendItem(At),this.addMarkerVisualToContainer(this.visual)},Mt.prototype.pointerDown=function(At,Qt){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(At.x,At.y),this.drawing=!0):oe.prototype.pointerDown.call(this,At,Qt)},Mt.prototype.manipulate=function(At){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(At.x,At.y),this.canvasContext.stroke()):oe.prototype.manipulate.call(this,At)},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),Dt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Dt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Mt.prototype.pointerUp=function(At){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):oe.prototype.pointerUp.call(this,At)},Mt.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)},Mt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),oe.prototype.select.call(this)},Mt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),oe.prototype.deselect.call(this)},Mt.prototype.finishCreation=function(){for(var At=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Qt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=Qt[0],Kt=Qt[1],It=Qt[2],bt=Qt[3],Bt=!1,ie=0;ie<this.canvasElement.height;ie++)for(var Wt=0;Wt<this.canvasElement.width;Wt++)At.data[ie*this.canvasElement.width*4+4*Wt+3]>0&&(Bt=!0,ie<Kt&&(Kt=ie),Wt<se&&(se=Wt),ie>bt&&(bt=ie),Wt>It&&(It=Wt));if(Bt){this.left=se/this.pixelRatio,this.top=Kt/this.pixelRatio,this.width=(It-se)/this.pixelRatio,this.height=(bt-Kt)/this.pixelRatio;var Zt=document.createElement("canvas");Zt.width=It-se,Zt.height=bt-Kt,Zt.getContext("2d").putImageData(this.canvasContext.getImageData(se,Kt,It-se,bt-Kt),0,0),this.drawingImgUrl=Zt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Mt.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})},Mt.prototype.setColor=function(At){this.color=At,this.colorChanged(At)},Mt.prototype.setLineWidth=function(At){this.lineWidth=At},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({drawingImgUrl:this.drawingImgUrl},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){this.createVisual(),oe.prototype.restoreState.call(this,At),this.drawingImgUrl=At.drawingImgUrl,this.setDrawingImage()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.setDrawingImage()},Mt.typeName="FreehandMarker",Mt.title="Freehand marker",Mt.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>',Mt}(gt),Pe=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,se||'<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=Qt,Kt.setCurrentType=Kt.setCurrentType.bind(Kt),Kt}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");Qt.style.display="flex",Qt.style.overflow="hidden",Qt.style.flexGrow="2";for(var se=function(bt){var Bt="both";switch(bt){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var ie=document.createElement("div");if(ie.style.display="flex",ie.style.flexGrow="2",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderColor=Bt===Kt.currentType?Kt.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){At.setCurrentType(Bt,ie)}),Qt.appendChild(ie),Bt==="both"||Bt==="start"){var Wt=document.createElement("div");Wt.style.display="flex",Wt.style.alignItems="center",Wt.style.minHeight="20px",Wt.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>`,Wt.style.marginLeft="5px",ie.appendChild(Wt)}var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.minHeight="20px",Zt.style.flexGrow="2";var fe=document.createElement("hr");if(fe.style.minWidth="20px",fe.style.border="0px",fe.style.borderTop="3px solid "+(Kt.uiStyleSettings!==void 0?Kt.uiStyleSettings.toolboxColor:"#eeeeee"),fe.style.flexGrow="2",Zt.appendChild(fe),ie.appendChild(Zt),Bt==="both"||Bt==="end"){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.minHeight="20px",ke.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>`,ke.style.marginRight="5px",ie.appendChild(ke)}Kt.typeBoxes.push(ie)},Kt=this,It=0;It<4;It++)se(It);return Qt},Mt.prototype.setCurrentType=function(At,Qt){var se=this;this.currentType=At,this.typeBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Mt}(et),De=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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 Pe("Arrow type","end"),Kt.arrowTypePanel.onArrowTypeChanged=Kt.setArrowType,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.arrow1&&At!==this.arrow2)},Mt.prototype.getArrowPoints=function(At,Qt){var se=this.arrowBaseWidth+2*this.strokeWidth,Kt=this.arrowBaseHeight+2*this.strokeWidth;return At-se/2+","+(Qt+Kt/2)+" "+At+","+(Qt-Kt/2)+" "+(At+se/2)+","+(Qt+Kt/2)},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="creating"&&this.createTips()},Mt.prototype.adjustVisual=function(){if(oe.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 At=0;Math.abs(this.x1-this.x2)>.1&&(At=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Qt=this.arrow1.transform.baseVal.getItem(0);Qt.setRotate(At,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Qt,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(At+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},Mt.prototype.setArrowType=function(At){this.arrowType=At,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({arrowType:this.arrowType},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At);var Qt=At;this.arrowType=Qt.arrowType,this.createTips(),this.adjustVisual()},Mt.typeName="ArrowMarker",Mt.title="Arrow marker",Mt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Mt}(ne),Ve=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.fillColor=se.defaultFillColor,Kt.strokeWidth=0,Kt.fillPanel=new tt("Color",se.defaultColorSet,se.defaultFillColor),Kt.fillPanel.onColorChanged=Kt.setFillColor,Kt}return xt(Mt,oe),Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=oe.prototype.getState.call(this);return At.typeName=Mt.typeName,At},Mt.typeName="CoverMarker",Mt.title="Cover marker",Mt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Mt}(ft),we=function(oe){function Mt(At,Qt,se,Kt){var It=oe.call(this,At,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 It.opacities=[],It.opacityBoxes=[],It.opacities=Qt,It.currentOpacity=se,It.setCurrentOpacity=It.setCurrentOpacity.bind(It),It}return xt(Mt,oe),Mt.prototype.getUi=function(){var At=this,Qt=document.createElement("div");return Qt.style.display="flex",Qt.style.overflow="hidden",Qt.style.flexGrow="2",Qt.style.justifyContent="space-between",this.opacities.forEach(function(se){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=se===At.currentOpacity?At.uiStyleSettings.toolboxAccentColor:"transparent",Kt.addEventListener("click",function(){At.setCurrentOpacity(se,Kt)}),Qt.appendChild(Kt);var It=document.createElement("div");It.innerText=100*se+"%",Kt.appendChild(It),At.opacityBoxes.push(Kt)}),Qt},Mt.prototype.setCurrentOpacity=function(At,Qt){var se=this;this.currentOpacity=At,this.opacityBoxes.forEach(function(Kt){Kt.style.borderColor=Kt===Qt?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Mt}(et),Qe=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.setOpacity=Kt.setOpacity.bind(Kt),Kt.fillColor=se.defaultHighlightColor,Kt.strokeWidth=0,Kt.opacity=se.defaultHighlightOpacity,Kt.fillPanel=new tt("Color",se.defaultColorSet,Kt.fillColor),Kt.fillPanel.onColorChanged=Kt.setFillColor,Kt.opacityPanel=new we("Opacity",se.defaultOpacitySteps,Kt.opacity),Kt.opacityPanel.onOpacityChanged=Kt.setOpacity,Kt}return xt(Mt,oe),Mt.prototype.setOpacity=function(At){this.opacity=At,this.visual&&Dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=oe.prototype.getState.call(this);return At.typeName=Mt.typeName,At},Mt.typeName="HighlightMarker",Mt.title="Highlight marker",Mt.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>',Mt}(Ve),ae='<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>',_t='<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>',$t=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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=se.defaultStrokeColor,Kt.bgColor=se.defaultFillColor,Kt.fontFamily=se.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 tt("Text color",se.defaultColorSet,Kt.color,ae),Kt.colorPanel.onColorChanged=Kt.setColor,Kt.bgColorPanel=new tt("Fill color",se.defaultColorSet,Kt.bgColor,_t),Kt.bgColorPanel.onColorChanged=Kt.setBgColor,Kt.fontFamilyPanel=new Xt("Font",se.defaultFontFamilies,se.defaultFontFamily),Kt.fontFamilyPanel.onFontChanged=Kt.setFont,Kt.tipGrip=new ut,Kt.tipGrip.visual.transform.baseVal.appendItem(Dt.createTransform()),Kt.controlBox.appendChild(Kt.tipGrip.visual),Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return oe.prototype.ownsTarget.call(this,At)||this.tipGrip.ownsTarget(At)||this.tip===At},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){this.state==="new"&&oe.prototype.pointerDown.call(this,At,Qt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Qt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):oe.prototype.pointerDown.call(this,At,Qt)},Mt.prototype.pointerUp=function(At){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,oe.prototype.pointerUp.call(this,At);else{var Qt=this.state==="creating";oe.prototype.pointerUp.call(this,At),this.setTipPoints(Qt),this.positionTip()}},Mt.prototype.manipulate=function(At){if(this.tipMoving){var Qt=this.unrotatePoint(At);this.tipPosition={x:Qt.x-this.manipulationStartLeft,y:Qt.y-this.manipulationStartTop},this.positionTip()}else oe.prototype.manipulate.call(this,At)},Mt.prototype.setBgColor=function(At){this.bgRectangle&&this.tip&&(Dt.setAttributes(this.bgRectangle,[["fill",At]]),Dt.setAttributes(this.tip,[["fill",At]])),this.bgColor=At,this.fillColorChanged(At)},Mt.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},Mt.prototype.setTipPoints=function(At){At===void 0&&(At=!1);var Qt=Math.min(this.height/2,15),se=this.height/5;At&&(this.tipPosition={x:Qt+se/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))?(se=this.width/5,Qt=Math.min(this.width/2,15),this.tipBase1Position={x:Qt,y:0},this.tipBase2Position={x:Qt+se,y:0}):(this.tipBase1Position={x:0,y:Qt},this.tipBase2Position={x:0,y:Qt+se}):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))?(se=this.width/5,Qt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Qt-se,y:0},this.tipBase2Position={x:this.width-Qt,y:0}):(this.tipBase1Position={x:this.width,y:Qt},this.tipBase2Position={x:this.width,y:Qt+se}):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))?(se=this.width/5,Qt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Qt-se,y:this.height},this.tipBase2Position={x:this.width-Qt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Qt-se},this.tipBase2Position={x:this.width,y:this.height-Qt}):Kt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,Qt=Math.min(this.width/2,15),this.tipBase1Position={x:Qt,y:this.height},this.tipBase2Position={x:Qt+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Qt},this.tipBase2Position={x:0,y:this.height-Qt-se})},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),this.positionTip()},Mt.prototype.positionTip=function(){Dt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var At=this.tipGrip.visual.transform.baseVal.getItem(0);At.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(At,0)},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Mt.prototype.select=function(){this.positionTip(),oe.prototype.select.call(this)},Mt.prototype.getState=function(){var At=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){var Qt=At;this.bgColor=Qt.bgColor,this.tipPosition=Qt.tipPosition,oe.prototype.restoreState.call(this,At),this.createTip(),this.setTipPoints()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.tipPosition={x:this.tipPosition.x*At,y:this.tipPosition.y*Qt},this.positionTip()},Mt.typeName="CalloutMarker",Mt.title="Callout marker",Mt.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>',Mt}(ce),re=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.fillColor="transparent",Kt.strokeColor="transparent",Kt.strokeWidth=0,Kt.strokeDasharray="",Kt.opacity=1,Kt.strokeColor=se.defaultColor,Kt.strokeWidth=se.defaultStrokeWidth,Kt.strokeDasharray=se.defaultStrokeDasharray,Kt.fillColor=se.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 tt("Line color",Rt(se.defaultColorSet,["transparent"]),se.defaultColor),Kt.strokePanel.onColorChanged=Kt.setStrokeColor,Kt.fillPanel=new tt("Fill color",Rt(se.defaultColorSet,["transparent"]),Kt.fillColor,_t),Kt.fillPanel.onColorChanged=Kt.setFillColor,Kt.strokeWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.strokeWidthPanel.onWidthChanged=Kt.setStrokeWidth,Kt.strokeStylePanel=new jt("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),Kt.strokeStylePanel.onStyleChanged=Kt.setStrokeDasharray,Kt.opacityPanel=new we("Opacity",se.defaultOpacitySteps,Kt.opacity),Kt.opacityPanel.onOpacityChanged=Kt.setOpacity,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual)},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Mt.prototype.manipulate=function(At){oe.prototype.manipulate.call(this,At)},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),this.setSize()},Mt.prototype.setSize=function(){oe.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()]])},Mt.prototype.pointerUp=function(At){oe.prototype.pointerUp.call(this,At),this.setSize()},Mt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.visual&&Dt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Mt.prototype.setFillColor=function(At){this.fillColor=At,this.visual&&Dt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(At),this.stateChanged()},Mt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.visual&&Dt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Mt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.visual&&Dt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Mt.prototype.setOpacity=function(At){this.opacity=At,this.visual&&Dt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){var Qt=At;this.fillColor=Qt.fillColor,this.strokeColor=Qt.strokeColor,this.strokeWidth=Qt.strokeWidth,this.strokeDasharray=Qt.strokeDasharray,this.opacity=Qt.opacity,this.createVisual(),oe.prototype.restoreState.call(this,At),this.setSize()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.setSize()},Mt.typeName="EllipseMarker",Mt.title="Ellipse marker",Mt.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>',Mt}(gt),pe=function(oe){function Mt(At,Qt,se){return oe.call(this,At,Qt,se)||this}return xt(Mt,oe),Object.defineProperty(Mt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.tip1&&At!==this.tip2)},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.state==="creating"&&this.createTips()},Mt.prototype.adjustVisual=function(){if(oe.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 At=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Qt=this.tip1.transform.baseVal.getItem(0);Qt.setRotate(At,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Qt,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(At+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=oe.prototype.getState.call(this);return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At),this.createTips(),this.adjustVisual()},Mt.typeName="MeasurementMarker",Mt.title="Measurement marker",Mt.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>',Mt}(ne),le=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||this;return Kt.strokePanel.colors=se.defaultColorSet,Kt.fillColor="transparent",Kt}return xt(Mt,oe),Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=oe.prototype.getState.call(this);return At.typeName=Mt.typeName,At},Mt.typeName="EllipseFrameMarker",Mt.title="Ellipse frame marker",Mt.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>',Mt}(re),Ue=function(){function oe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(oe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),oe.prototype.addUndoStep=function(Mt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Mt)||(this.undoStack.push(Mt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Mt)&&this.redoStack.splice(0,this.redoStack.length))},oe.prototype.replaceLastUndoStep=function(Mt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Mt)},oe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},oe.prototype.undo=function(){if(this.undoStack.length>1){var Mt=this.undoStack.pop();return Mt!==void 0&&this.redoStack.push(Mt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},oe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},oe}(),Ne=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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=se.defaultColor,Kt.strokeWidth=se.defaultStrokeWidth,Kt.strokeDasharray=se.defaultStrokeDasharray,Kt.strokePanel=new tt("Line color",se.defaultColorSet,se.defaultColor),Kt.strokePanel.onColorChanged=Kt.setStrokeColor,Kt.strokeWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.strokeWidthPanel.onWidthChanged=Kt.setStrokeWidth,Kt.strokeStylePanel=new jt("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),Kt.strokeStylePanel.onStyleChanged=Kt.setStrokeDasharray,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.selectorCurve&&At!==this.visibleCurve&&!this.curveGrip.ownsTarget(At))},Mt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Mt.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)},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=At.x,this.curveY=At.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Qt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Mt.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()]]))},Mt.prototype.setupControlBox=function(){oe.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)},Mt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,oe.prototype.addControlGrips.call(this)},Mt.prototype.positionGrips=function(){oe.prototype.positionGrips.call(this);var At=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-At/2,this.curveY-At/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()))},Mt.prototype.manipulate=function(At){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+At.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+At.y-this.manipulationStartY),oe.prototype.manipulate.call(this,At)},Mt.prototype.resize=function(At){this.activeGrip===this.curveGrip&&(this.curveX=At.x,this.curveY=At.y),oe.prototype.resize.call(this,At),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Mt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.adjustVisual(),this.colorChanged(At)},Mt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.adjustVisual()},Mt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.adjustVisual()},Mt.prototype.scale=function(At,Qt){this.curveX=this.curveX*At,this.curveY=this.curveY*Qt,oe.prototype.scale.call(this,At,Qt)},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},oe.prototype.getState.call(this));return At.typeName=Mt.typeName,At},Mt.prototype.restoreState=function(At){oe.prototype.restoreState.call(this,At);var Qt=At;this.strokeColor=Qt.strokeColor,this.strokeWidth=Qt.strokeWidth,this.strokeDasharray=Qt.strokeDasharray,this.curveX=Qt.curveX,this.curveY=Qt.curveY,this.createVisual(),this.adjustVisual()},Mt.typeName="CurveMarker",Mt.title="Curve marker",Mt.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>',Mt}(te),Xe=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,Qt,se)||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=se.defaultColor,Kt.strokeWidth=se.defaultStrokeWidth,Kt.strokeDasharray=se.defaultStrokeDasharray,Kt.fillColor=se.defaultFillColor,Kt.textColor=se.defaultStrokeColor,Kt.fontFamily=se.defaultFontFamily,Kt.fontSize=se.defaultCaptionFontSize,Kt.captionText=se.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 tt("Line color",Rt(se.defaultColorSet,["transparent"]),Kt.strokeColor),Kt.strokePanel.onColorChanged=Kt.setStrokeColor,Kt.fillPanel=new tt("Fill color",Rt(se.defaultColorSet,["transparent"]),Kt.fillColor,_t),Kt.fillPanel.onColorChanged=Kt.setFillColor,Kt.strokeWidthPanel=new kt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),Kt.strokeWidthPanel.onWidthChanged=Kt.setStrokeWidth,Kt.strokeStylePanel=new jt("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),Kt.strokeStylePanel.onStyleChanged=Kt.setStrokeDasharray,Kt.fontFamilyPanel=new Xt("Font",se.defaultFontFamilies,se.defaultFontFamily),Kt.fontFamilyPanel.onFontChanged=Kt.setFont,Kt.textColorPanel=new tt("Text color",se.defaultColorSet,Kt.textColor,ae),Kt.textColorPanel.onColorChanged=Kt.setTextColor,Kt}return xt(Mt,oe),Mt.prototype.ownsTarget=function(At){return!(!oe.prototype.ownsTarget.call(this,At)&&At!==this.visual&&At!==this.frame&&At!==this.captionBg&&At!==this.captionElement)},Mt.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()},Mt.prototype.setCaptionText=function(At){this.captionText=At,this.captionElement.textContent=this.captionText,this.sizeCaption()},Mt.prototype.pointerDown=function(At,Qt){oe.prototype.pointerDown.call(this,At,Qt),this.isMoved=!1,this.pointerDownPoint=At,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(At),this._state="creating")},Mt.prototype.manipulate=function(At){oe.prototype.manipulate.call(this,At),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(At.x-this.pointerDownPoint.x)>5||Math.abs(At.y-this.pointerDownPoint.y)>5)},Mt.prototype.resize=function(At){oe.prototype.resize.call(this,At),this.setSize()},Mt.prototype.sizeCaption=function(){var At=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=At.width+2*this.PADDING,this.captionBoxHeight=At.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')"]])},Mt.prototype.showTextEditor=function(){var At=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(Qt){Qt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Qt){Qt.key==="Enter"&&At.finishTextEditing(At.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Qt){Qt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){At.finishTextEditing(At.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){At.finishTextEditing(At.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Mt.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"))},Mt.prototype.finishTextEditing=function(At){this.setCaptionText(At.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Mt.prototype.setFont=function(At){this.captionElement&&Dt.setAttributes(this.captionElement,[["font-family",At]]),this.fontFamily=At,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Mt.prototype.setTextColor=function(At){this.captionElement&&Dt.setAttributes(this.captionElement,[["fill",At]]),this.textColor=At,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Mt.prototype.setSize=function(){oe.prototype.setSize.call(this),Dt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Mt.prototype.pointerUp=function(At){oe.prototype.pointerUp.call(this,At),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Mt.prototype.dblClick=function(At,Qt){oe.prototype.dblClick.call(this,At,Qt),this.showTextEditor()},Mt.prototype.setStrokeColor=function(At){this.strokeColor=At,this.frame&&Dt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(At),this.stateChanged()},Mt.prototype.setFillColor=function(At){this.fillColor=At,this.captionBg&&Dt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(At),this.stateChanged()},Mt.prototype.setStrokeWidth=function(At){this.strokeWidth=At,this.frame&&Dt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Mt.prototype.setStrokeDasharray=function(At){this.strokeDasharray=At,this.frame&&Dt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Mt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Mt.prototype.getState=function(){var At=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},oe.prototype.getState.call(this));return At.typeName=this.typeName,At},Mt.prototype.restoreState=function(At){var Qt=At;this.fillColor=Qt.fillColor,this.strokeColor=Qt.strokeColor,this.strokeWidth=Qt.strokeWidth,this.strokeDasharray=Qt.strokeDasharray,this.textColor=Qt.textColor,this.fontFamily=Qt.fontFamily,this.captionText=Qt.captionText,this.fontSize=Qt.fontSize,this.createVisual(),oe.prototype.restoreState.call(this,At),this.setSize()},Mt.prototype.scale=function(At,Qt){oe.prototype.scale.call(this,At,Qt),this.setSize()},Mt.typeName="CaptionFrameMarker",Mt.title="Caption frame marker",Mt.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>',Mt}(gt),Le=function(){function oe(Mt,At){At===void 0&&(At=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Mt,this.cancelable=At}return Object.defineProperty(oe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),oe.prototype.preventDefault=function(){this._defaultPrevented=!0},oe}(),xe=function(oe){function Mt(At,Qt,se){var Kt=oe.call(this,At,!1)||this;return Kt.dataUrl=Qt,Kt.state=se,Kt}return xt(Mt,oe),Mt}(Le),_e=function(oe){function Mt(At,Qt,se){se===void 0&&(se=!1);var Kt=oe.call(this,At,se)||this;return Kt.marker=Qt,Kt}return xt(Mt,oe),Mt}(Le),Fe=function(){function oe(){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 oe.prototype.addEventListener=function(Mt,At){this[Mt].push(At)},oe.prototype.removeEventListener=function(Mt,At){var Qt=this[Mt].indexOf(At);Qt>-1&&this[Mt].splice(Qt,1)},oe}(),Ae=function(){function oe(Mt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ot,this._isOpen=!1,this.undoRedoManager=new Ue,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 Fe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=oe.instanceCounter++,this.styles=new Pt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Mt,this.targetRoot=document.body,this.width=Mt.clientWidth,this.height=Mt.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(oe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ht,me,De,ce,le,re,Qe,$t,pe,Ve,ne,Ne,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ht,me,De,ce,re,Qe,$t]},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ht,me,De,ce,Qe]},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Mt){var At=this;this._availableMarkerTypes.splice(0),Mt.forEach(function(Qt){if(typeof Qt=="string"){var se=At.ALL_MARKER_TYPES.find(function(Kt){return Kt.typeName===Qt});se!==void 0&&At._availableMarkerTypes.push(se)}else At._availableMarkerTypes.push(Qt)})},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Mt){this._zoomLevel=Mt,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(oe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),oe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),St.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},oe.prototype.show=function(){var Mt=this;this.styles.styleSheetRoot===void 0&&Nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(At){return At(new Le(Mt))})},oe.prototype.render=function(){return qt(this,void 0,void 0,function(){var Mt;return Vt(this,function(At){switch(At.label){case 0:return this.setCurrentMarker(),(Mt=new Et).naturalSize=this.renderAtNaturalSize,Mt.imageType=this.renderImageType,Mt.imageQuality=this.renderImageQuality,Mt.markersOnly=this.renderMarkersOnly,Mt.width=this.renderWidth,Mt.height=this.renderHeight,[4,Mt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return At.sent(),[4,Mt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,At.sent()]}})})},oe.prototype.close=function(Mt){var At=this;if(Mt===void 0&&(Mt=!1),this.isOpen){var Qt=!1;Mt||this.eventListeners.beforeclose.forEach(function(se){var Kt=new Le(At,!0);se(Kt),Kt.defaultPrevented&&(Qt=!0)}),Qt||(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(se){return se(new Le(At))}),this.detachEvents(),this._isOpen=!1)}},oe.prototype.addMarkersToToolbar=function(){for(var Mt,At=[],Qt=0;Qt<arguments.length;Qt++)At[Qt]=arguments[Qt];(Mt=this._availableMarkerTypes).push.apply(Mt,At)},oe.prototype.addRenderEventListener=function(Mt){this.addEventListener("render",function(At){Mt(At.dataUrl,At.state)})},oe.prototype.removeRenderEventListener=function(Mt){},oe.prototype.addCloseEventListener=function(Mt){this.addEventListener("close",function(){Mt()})},oe.prototype.removeCloseEventListener=function(Mt){},oe.prototype.setupResizeObserver=function(){var Mt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Mt.resize(Mt.target.clientWidth,Mt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Mt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},oe.prototype.onPopupTargetResize=function(){var Mt=1*this.target.clientWidth/this.target.clientHeight,At=this.editorCanvas.clientWidth/Mt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Mt:this.editorCanvas.clientWidth,Qt=At<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Mt;this.resize(At,Qt)},oe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},oe.prototype.resize=function(Mt,At){this._isResizing=!0;var Qt=Mt/this.imageWidth,se=At/this.imageHeight;this.imageWidth=Math.round(Mt),this.imageHeight=Math.round(At),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(Qt,se),this._isResizing=!1},oe.prototype.scaleMarkers=function(Mt,At){var Qt,se=this;this._currentMarker&&this._currentMarker instanceof ce?this._currentMarker.scale(Mt,At):(Qt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Kt){Kt!==se._currentMarker&&Kt.scale(Mt,At)}),Qt!==void 0&&this.setCurrentMarker(Qt)},oe.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"},oe.prototype.setTopLeft=function(){var Mt=this.editingTarget.getBoundingClientRect(),At=this.editorCanvas.getBoundingClientRect();this.left=Mt.left-At.left,this.top=Mt.top-At.top},oe.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)},oe.prototype.addDefs=function(){for(var Mt,At=[],Qt=0;Qt<arguments.length;Qt++)At[Qt]=arguments[Qt];this.defs=Dt.createDefs(),this.addDefsToImage(),(Mt=this.defs).append.apply(Mt,At)},oe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},oe.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)},oe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},oe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},oe.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)},oe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},oe.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)},oe.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 Mt=document.createElement("a");Mt.href="https://markerjs.com/",Mt.target="_blank",Mt.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>',Mt.title="Powered by marker.js",Mt.style.display="grid",Mt.style.alignItems="center",Mt.style.justifyItems="center",Mt.style.padding="3px",Mt.style.width="20px",Mt.style.height="20px",this.logoUI.appendChild(Mt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},oe.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")},oe.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"},oe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},oe.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 Mt=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=Mt+"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 Ft(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 vt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},oe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},oe.prototype.removeMarker=function(Mt){this.markerImage.removeChild(Mt.container),this.markers.indexOf(Mt)>-1&&this.markers.splice(this.markers.indexOf(Mt),1),Mt.dispose()},oe.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())},oe.prototype.toolbarButtonClicked=function(Mt,At){if(Mt==="marker"&&At!==void 0)this.createNewMarker(At);else if(Mt==="action")switch(At){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()}},oe.prototype.deleteSelectedMarker=function(){var Mt=this;if(this._currentMarker!==void 0){var At=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var Kt=new _e(Mt,Mt._currentMarker,!0);se(Kt),Kt.defaultPrevented&&(At=!0)}),!At){var Qt=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(se){return se(new _e(Mt,Qt))})}}},oe.prototype.clear=function(){var Mt=this,At=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(It){var bt=new _e(Mt,void 0,!0);It(bt),bt.defaultPrevented&&(At=!0)}),!At)){this.setCurrentMarker();for(var Qt=function(It){var bt=se.markers[It];se.setCurrentMarker(se.markers[It]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(Bt){return Bt(new _e(Mt,bt))})},se=this,Kt=this.markers.length-1;Kt>=0;Kt--)Qt(Kt);this.addUndoStep()}},Object.defineProperty(oe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),oe.prototype.showNotesEditor=function(){var Mt;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=(Mt=this._currentMarker.notes)!==null&&Mt!==void 0?Mt:"",this.overlayContainer.appendChild(this.notesArea))},oe.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)},oe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},oe.prototype.addUndoStep=function(){var Mt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var At=this.getState(),Qt=this.undoRedoManager.getLastUndoStep();if(!Qt||Qt.width===At.width&&Qt.height===At.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(At),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Kt){return Kt(new Le(Mt))})}else this.undoRedoManager.replaceLastUndoStep(At),this.eventListeners.statechange.forEach(function(Kt){return Kt(new Le(Mt))})}},oe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},oe.prototype.undoStep=function(){var Mt=this,At=this.undoRedoManager.undo();At!==void 0&&(this.restoreState(At),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Qt){return Qt(new Le(Mt))}))},oe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},oe.prototype.redoStep=function(){var Mt=this,At=this.undoRedoManager.redo();At!==void 0&&(this.restoreState(At),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Qt){return Qt(new Le(Mt))}))},oe.prototype.stepZoom=function(){var Mt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Mt<this.zoomSteps.length-1?this.zoomSteps[Mt+1]:this.zoomSteps[0]},oe.prototype.panTo=function(Mt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Mt.x,top:this.prevPanPoint.y-Mt.y}),this.prevPanPoint=Mt},oe.prototype.startRenderAndClose=function(){return qt(this,void 0,void 0,function(){var Mt,At,Qt=this;return Vt(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return Mt=se.sent(),At=this.getState(),this.eventListeners.render.forEach(function(Kt){return Kt(new xe(Qt,Mt,At))}),this.close(!0),[2]}})})},oe.prototype.getState=function(Mt){Mt===!0&&this.setCurrentMarker();var At={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Qt){return At.markers.push(Qt.getState())}),At},oe.prototype.restoreState=function(Mt){var At=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Mt.markers.forEach(function(Qt){var se=At._availableMarkerTypes.find(function(It){return It.typeName===Qt.typeName});if(se!==void 0){var Kt=At.addNewMarker(se);Kt.restoreState(Qt),At.markers.push(Kt)}}),Mt.width&&Mt.height&&(Mt.width!==this.imageWidth||Mt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Mt.width,this.imageHeight/Mt.height),this.eventListeners.restorestate.forEach(function(Qt){return Qt(new Le(At))})},oe.prototype.addNewMarker=function(Mt){var At=Dt.createGroup();return this.markerImage.appendChild(At),new Mt(At,this.overlayContainer,this.settings)},oe.prototype.createNewMarker=function(Mt){var At,Qt=this;(At=typeof Mt=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===Mt}):Mt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(At),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(At.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new _e(Qt,Qt._currentMarker))}))},oe.prototype.markerCreated=function(Mt){var At=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Mt),this.setCurrentMarker(Mt),Mt instanceof me&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(me):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Qt){return Qt(new _e(At,At._currentMarker))})},oe.prototype.colorChanged=function(Mt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Mt,this.settings.defaultStrokeColor=Mt)},oe.prototype.fillColorChanged=function(Mt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Mt)},oe.prototype.markerStateChanged=function(Mt){var At=this;this.eventListeners.markerchange.forEach(function(Qt){return Qt(new _e(At,Mt))})},oe.prototype.setCurrentMarker=function(Mt){var At=this;this._currentMarker!==Mt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Qt){return Qt(new _e(At,At._currentMarker))})),this._currentMarker=Mt,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(Qt){return Qt(new _e(At,At._currentMarker))}))},oe.prototype.onPointerDown=function(Mt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Mt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var At=this.markers.find(function(Qt){return Qt.ownsTarget(Mt.target)});At!==void 0?(this.setCurrentMarker(At),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Mt.clientX,Mt.clientY),Mt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Mt.clientX,y:Mt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Mt.clientX,Mt.clientY))},oe.prototype.onDblClick=function(Mt){if(this._isFocused||this.focus(),this.mode==="select"){var At=this.markers.find(function(Qt){return Qt.ownsTarget(Mt.target)});At!==void 0&&At!==this._currentMarker&&this.setCurrentMarker(At),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Mt.clientX,Mt.clientY),Mt.target):this.setCurrentMarker()}},oe.prototype.onPointerMove=function(Mt){this.touchPoints!==1&&Mt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Mt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Mt.clientX,Mt.clientY)):this.zoomLevel>1&&this.panTo({x:Mt.clientX,y:Mt.clientY}))},oe.prototype.onPointerUp=function(Mt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Mt.clientX,Mt.clientY)),this.isDragging=!1,this.addUndoStep()},oe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},oe.prototype.onKeyUp=function(Mt){this._currentMarker===void 0||this.notesArea!==void 0||Mt.key!=="Delete"&&Mt.key!=="Backspace"||this.deleteSelectedMarker()},oe.prototype.clientToLocalCoordinates=function(Mt,At){var Qt=this.markerImage.getBoundingClientRect();return{x:(Mt-Qt.left)/this.zoomLevel,y:(At-Qt.top)/this.zoomLevel}},oe.prototype.onWindowResize=function(){this.positionUI()},oe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Mt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Mt+"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()},oe.prototype.addLicenseKey=function(Mt){St.addKey(Mt)},oe.prototype.addEventListener=function(Mt,At){this.eventListeners.addEventListener(Mt,At)},oe.prototype.removeEventListener=function(Mt,At){this.eventListeners.removeEventListener(Mt,At)},oe.prototype.renderState=function(Mt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Mt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(oe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),oe.prototype.focus=function(){var Mt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(At){return At(new Le(Mt))}))},oe.prototype.blur=function(){var Mt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(At){return At(new Le(Mt))}))},oe.instanceCounter=0,oe}()},42289:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return wn}});function Jt(Me){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},Jt(Me)}function xt(Me,Ie){if(Jt(Me)!="object"||!Me)return Me;var Ge=Me[Symbol.toPrimitive];if(Ge!==void 0){var rn=Ge.call(Me,Ie||"default");if(Jt(rn)!="object")return rn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(Me)}function qt(Me){var Ie=xt(Me,"string");return Jt(Ie)=="symbol"?Ie:Ie+""}function Vt(Me,Ie,Ge){return(Ie=qt(Ie))in Me?Object.defineProperty(Me,Ie,{value:Ge,enumerable:!0,configurable:!0,writable:!0}):Me[Ie]=Ge,Me}function Rt(Me,Ie){var Ge=Object.keys(Me);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(Me);Ie&&(rn=rn.filter(function(Ln){return Object.getOwnPropertyDescriptor(Me,Ln).enumerable})),Ge.push.apply(Ge,rn)}return Ge}function Dt(Me){for(var Ie=1;Ie<arguments.length;Ie++){var Ge=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?Rt(Object(Ge),!0).forEach(function(rn){Vt(Me,rn,Ge[rn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Me,Object.getOwnPropertyDescriptors(Ge)):Rt(Object(Ge)).forEach(function(rn){Object.defineProperty(Me,rn,Object.getOwnPropertyDescriptor(Ge,rn))})}return Me}function St(Me){if(Array.isArray(Me))return Me}function Et(Me,Ie){var Ge=Me==null?null:typeof Symbol!="undefined"&&Me[Symbol.iterator]||Me["@@iterator"];if(Ge!=null){var rn,Ln,Yn,Wn,pn=[],de=!0,Mi=!1;try{if(Yn=(Ge=Ge.call(Me)).next,Ie===0){if(Object(Ge)!==Ge)return;de=!1}else for(;!(de=(rn=Yn.call(Ge)).done)&&(pn.push(rn.value),pn.length!==Ie);de=!0);}catch(Wi){Mi=!0,Ln=Wi}finally{try{if(!de&&Ge.return!=null&&(Wn=Ge.return(),Object(Wn)!==Wn))return}finally{if(Mi)throw Ln}}return pn}}function Nt(Me,Ie){(Ie==null||Ie>Me.length)&&(Ie=Me.length);for(var Ge=0,rn=Array(Ie);Ge<Ie;Ge++)rn[Ge]=Me[Ge];return rn}function Pt(Me,Ie){if(Me){if(typeof Me=="string")return Nt(Me,Ie);var Ge={}.toString.call(Me).slice(8,-1);return Ge==="Object"&&Me.constructor&&(Ge=Me.constructor.name),Ge==="Map"||Ge==="Set"?Array.from(Me):Ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge)?Nt(Me,Ie):void 0}}function Ct(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(Me,Ie){return St(Me)||Et(Me,Ie)||Pt(Me,Ie)||Ct()}function Ft(Me){if(Array.isArray(Me))return Me}function vt(Me,Ie){var Ge=Me==null?null:typeof Symbol!="undefined"&&Me[Symbol.iterator]||Me["@@iterator"];if(Ge!=null){var rn,Ln,Yn,Wn,pn=[],de=!0,Mi=!1;try{if(Yn=(Ge=Ge.call(Me)).next,Ie===0){if(Object(Ge)!==Ge)return;de=!1}else for(;!(de=(rn=Yn.call(Ge)).done)&&(pn.push(rn.value),pn.length!==Ie);de=!0);}catch(Wi){Mi=!0,Ln=Wi}finally{try{if(!de&&Ge.return!=null&&(Wn=Ge.return(),Object(Wn)!==Wn))return}finally{if(Mi)throw Ln}}return pn}}function et(Me,Ie){(Ie==null||Ie>Me.length)&&(Ie=Me.length);for(var Ge=0,rn=new Array(Ie);Ge<Ie;Ge++)rn[Ge]=Me[Ge];return rn}function tt(Me,Ie){if(Me){if(typeof Me=="string")return et(Me,Ie);var Ge=Object.prototype.toString.call(Me).slice(8,-1);if(Ge==="Object"&&Me.constructor&&(Ge=Me.constructor.name),Ge==="Map"||Ge==="Set")return Array.from(Me);if(Ge==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge))return et(Me,Ie)}}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 rt(Me,Ie){return Ft(Me)||vt(Me,Ie)||tt(Me,Ie)||st()}var ut=he(67294),ct=he(73935);function gt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft={};function kt(Me,Ie){}function jt(Me,Ie){}function Ht(){ft={}}function Ot(Me,Ie,Ge){!Ie&&!ft[Ge]&&(Me(!1,Ge),ft[Ge]=!0)}function te(Me,Ie){Ot(kt,Me,Ie)}function ne(Me,Ie){Ot(jt,Me,Ie)}var Xt=null;function ce(Me){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},ce(Me)}var me=he(18459);function Pe(Me,Ie,Ge){var rn=ut.useRef({});return(!("value"in rn.current)||Ge(rn.current.condition,Ie))&&(rn.current.value=Me(),rn.current.condition=Ie),rn.current.value}function De(Me,Ie){typeof Me=="function"?Me(Ie):ce(Me)==="object"&&Me&&"current"in Me&&(Me.current=Ie)}function Ve(){for(var Me=arguments.length,Ie=new Array(Me),Ge=0;Ge<Me;Ge++)Ie[Ge]=arguments[Ge];var rn=Ie.filter(function(Ln){return Ln});return rn.length<=1?rn[0]:function(Ln){Ie.forEach(function(Yn){De(Yn,Ln)})}}function we(){for(var Me=arguments.length,Ie=new Array(Me),Ge=0;Ge<Me;Ge++)Ie[Ge]=arguments[Ge];return Pe(function(){return Ve.apply(void 0,Ie)},Ie,function(rn,Ln){return rn.length===Ln.length&&rn.every(function(Yn,Wn){return Yn===Ln[Wn]})})}function Qe(Me){var Ie,Ge,rn=(0,me.isMemo)(Me)?Me.type.type:Me.type;return!(typeof rn=="function"&&!((Ie=rn.prototype)!==null&&Ie!==void 0&&Ie.render)||typeof Me=="function"&&!((Ge=Me.prototype)!==null&&Ge!==void 0&&Ge.render))}var ae=ut.createContext(null),_t=ae;function $t(Me){if(Array.isArray(Me))return et(Me)}function re(Me){if(typeof Symbol!="undefined"&&Me[Symbol.iterator]!=null||Me["@@iterator"]!=null)return Array.from(Me)}function pe(){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 le(Me){return $t(Me)||re(Me)||tt(Me)||pe()}var Ue=gt()?ut.useLayoutEffect:ut.useEffect,Ne=Ue,Xe=function(Ie,Ge){var rn=React.useRef(!0);Ue(function(){if(!rn.current)return Ie()},Ge),Ue(function(){return rn.current=!1,function(){rn.current=!0}},[])},Le=[];function xe(Me,Ie){var Ge=ut.useState(function(){if(!gt())return null;var Vi=document.createElement("div");return Vi}),rn=rt(Ge,1),Ln=rn[0],Yn=ut.useRef(!1),Wn=ut.useContext(_t),pn=ut.useState(Le),de=rt(pn,2),Mi=de[0],Wi=de[1],nr=Wn||(Yn.current?void 0:function(Vi){Wi(function(Dr){var or=[Vi].concat(le(Dr));return or})});function ir(){Ln.parentElement||document.body.appendChild(Ln),Yn.current=!0}function rr(){var Vi;(Vi=Ln.parentElement)===null||Vi===void 0||Vi.removeChild(Ln),Yn.current=!1}return Ne(function(){return Me?Wn?Wn(ir):ir():rr(),rr},[Me]),Ne(function(){Mi.length&&(Mi.forEach(function(Vi){return Vi()}),Wi(Le))},[Mi]),[Ln,nr]}function _e(Me,Ie){if(!Me)return!1;if(Me.contains)return Me.contains(Ie);for(var Ge=Ie;Ge;){if(Ge===Me)return!0;Ge=Ge.parentNode}return!1}var Fe="data-rc-order",Ae="rc-util-key",oe=new Map;function Mt(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ie=Me.mark;return Ie?Ie.startsWith("data-")?Ie:"data-".concat(Ie):Ae}function At(Me){if(Me.attachTo)return Me.attachTo;var Ie=document.querySelector("head");return Ie||document.body}function Qt(Me){return Me==="queue"?"prependQueue":Me?"prepend":"append"}function se(Me){return Array.from((oe.get(Me)||Me).children).filter(function(Ie){return Ie.tagName==="STYLE"})}function Kt(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gt())return null;var Ge=Ie.csp,rn=Ie.prepend,Ln=document.createElement("style");Ln.setAttribute(Fe,Qt(rn)),Ge!=null&&Ge.nonce&&(Ln.nonce=Ge==null?void 0:Ge.nonce),Ln.innerHTML=Me;var Yn=At(Ie),Wn=Yn.firstChild;if(rn){if(rn==="queue"){var pn=se(Yn).filter(function(de){return["prepend","prependQueue"].includes(de.getAttribute(Fe))});if(pn.length)return Yn.insertBefore(Ln,pn[pn.length-1].nextSibling),Ln}Yn.insertBefore(Ln,Wn)}else Yn.appendChild(Ln);return Ln}function It(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=At(Ie);return se(Ge).find(function(rn){return rn.getAttribute(Mt(Ie))===Me})}function bt(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=It(Me,Ie);if(Ge){var rn=At(Ie);rn.removeChild(Ge)}}function Bt(Me,Ie){var Ge=oe.get(Me);if(!Ge||!_e(document,Ge)){var rn=Kt("",Ie),Ln=rn.parentNode;oe.set(Me,Ln),Me.removeChild(rn)}}function ie(){oe.clear()}function Wt(Me,Ie){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rn=At(Ge);Bt(rn,Ge);var Ln=It(Ie,Ge);if(Ln){var Yn,Wn;if((Yn=Ge.csp)!==null&&Yn!==void 0&&Yn.nonce&&Ln.nonce!==((Wn=Ge.csp)===null||Wn===void 0?void 0:Wn.nonce)){var pn;Ln.nonce=(pn=Ge.csp)===null||pn===void 0?void 0:pn.nonce}return Ln.innerHTML!==Me&&(Ln.innerHTML=Me),Ln}var de=Kt(Me,Ge);return de.setAttribute(Mt(Ge),Ie),de}var Zt;function fe(Me){if(typeof document=="undefined")return 0;if(Me||Zt===void 0){var Ie=document.createElement("div");Ie.style.width="100%",Ie.style.height="200px";var Ge=document.createElement("div"),rn=Ge.style;rn.position="absolute",rn.top="0",rn.left="0",rn.pointerEvents="none",rn.visibility="hidden",rn.width="200px",rn.height="150px",rn.overflow="hidden",Ge.appendChild(Ie),document.body.appendChild(Ge);var Ln=Ie.offsetWidth;Ge.style.overflow="scroll";var Yn=Ie.offsetWidth;Ln===Yn&&(Yn=Ge.clientWidth),document.body.removeChild(Ge),Zt=Ln-Yn}return Zt}function ke(Me){var Ie=Me.match(/^(.*)px$/),Ge=Number(Ie==null?void 0:Ie[1]);return Number.isNaN(Ge)?fe():Ge}function tn(Me){if(typeof document=="undefined"||!Me||!(Me instanceof Element))return{width:0,height:0};var Ie=getComputedStyle(Me,"::-webkit-scrollbar"),Ge=Ie.width,rn=Ie.height;return{width:ke(Ge),height:ke(rn)}}function dn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ln="rc-util-locker-".concat(Date.now()),Bn=0;function Vn(Me){var Ie=!!Me,Ge=ut.useState(function(){return Bn+=1,"".concat(ln,"_").concat(Bn)}),rn=rt(Ge,1),Ln=rn[0];Ne(function(){if(Ie){var Yn=tn(document.body).width,Wn=dn();Wt(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(Wn?"width: calc(100% - ".concat(Yn,"px);"):"",`
|
|
}`),Ln)}else bt(Ln);return function(){bt(Ln)}},[Ie,Ln])}var Tn=!1;function un(Me){return typeof Me=="boolean"&&(Tn=Me),Tn}var si=function(Ie){return Ie===!1?!1:!gt()||!Ie?null:typeof Ie=="string"?document.querySelector(Ie):typeof Ie=="function"?Ie():Ie},ei=ut.forwardRef(function(Me,Ie){var Ge=Me.open,rn=Me.autoLock,Ln=Me.getContainer,Yn=Me.debug,Wn=Me.autoDestroy,pn=Wn===void 0?!0:Wn,de=Me.children,Mi=ut.useState(Ge),Wi=rt(Mi,2),nr=Wi[0],ir=Wi[1],rr=nr||Ge;ut.useEffect(function(){(pn||Ge)&&ir(Ge)},[Ge,pn]);var Vi=ut.useState(function(){return si(Ln)}),Dr=rt(Vi,2),or=Dr[0],Di=Dr[1];ut.useEffect(function(){var mr=si(Ln);Di(mr!=null?mr:null)});var wi=xe(rr&&!or,Yn),Qn=rt(wi,2),Rn=Qn[0],ni=Qn[1],on=or!=null?or:Rn;Vn(rn&&Ge&>()&&(on===Rn||on===document.body));var ui=null;if(de&&Qe(de)&&Ie){var di=de;ui=di.ref}var Zi=we(ui,Ie);if(!rr||!gt()||or===void 0)return null;var Qi=on===!1||un(),$i=de;return Ie&&($i=ut.cloneElement(de,{ref:Zi})),ut.createElement(_t.Provider,{value:ni},Qi?$i:(0,ct.createPortal)($i,on))}),fi=ei,bi=fi;function Ni(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var qn=Ni()?ut.useLayoutEffect:ut.useEffect,Ii=function(Ie,Ge){var rn=ut.useRef(!0);qn(function(){return Ie(rn.current)},Ge),qn(function(){return rn.current=!1,function(){rn.current=!0}},[])},pr=function(Ie,Ge){Ii(function(rn){if(!rn)return Ie()},Ge)},Ar=Ii,Or=ut.createContext(null),wr=ut.createContext({}),Fi=Or;function Sr(){return Sr=Object.assign?Object.assign.bind():function(Me){for(var Ie=1;Ie<arguments.length;Ie++){var Ge=arguments[Ie];for(var rn in Ge)({}).hasOwnProperty.call(Ge,rn)&&(Me[rn]=Ge[rn])}return Me},Sr.apply(null,arguments)}var Ri=he(94184),vn=he.n(Ri),Ut=he(62874),cn={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(Ie){var Ge=Ie.keyCode;if(Ie.altKey&&!Ie.ctrlKey||Ie.metaKey||Ge>=cn.F1&&Ge<=cn.F12)return!1;switch(Ge){case cn.ALT:case cn.CAPS_LOCK:case cn.CONTEXT_MENU:case cn.CTRL:case cn.DOWN:case cn.END:case cn.ESC:case cn.HOME:case cn.INSERT:case cn.LEFT:case cn.MAC_FF_META:case cn.META:case cn.NUMLOCK:case cn.NUM_CENTER:case cn.PAGE_DOWN:case cn.PAGE_UP:case cn.PAUSE:case cn.PRINT_SCREEN:case cn.RIGHT:case cn.SHIFT:case cn.UP:case cn.WIN_KEY:case cn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ie){if(Ie>=cn.ZERO&&Ie<=cn.NINE||Ie>=cn.NUM_ZERO&&Ie<=cn.NUM_MULTIPLY||Ie>=cn.A&&Ie<=cn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ie===0)return!0;switch(Ie){case cn.SPACE:case cn.QUESTION_MARK:case cn.NUM_PLUS:case cn.NUM_MINUS:case cn.NUM_PERIOD:case cn.NUM_DIVISION:case cn.SEMICOLON:case cn.DASH:case cn.EQUALS:case cn.COMMA:case cn.PERIOD:case cn.SLASH:case cn.APOSTROPHE:case cn.SINGLE_QUOTE:case cn.OPEN_SQUARE_BRACKET:case cn.BACKSLASH:case cn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Pn=cn;function kn(Me){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ie){return typeof Ie}:function(Ie){return Ie&&typeof Symbol=="function"&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie},kn(Me)}function Nn(Me,Ie){if(kn(Me)!=="object"||Me===null)return Me;var Ge=Me[Symbol.toPrimitive];if(Ge!==void 0){var rn=Ge.call(Me,Ie||"default");if(kn(rn)!=="object")return rn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ie==="string"?String:Number)(Me)}function On(Me){var Ie=Nn(Me,"string");return kn(Ie)==="symbol"?Ie:String(Ie)}function Hn(Me,Ie,Ge){return Ie=On(Ie),Ie in Me?Object.defineProperty(Me,Ie,{value:Ge,enumerable:!0,configurable:!0,writable:!0}):Me[Ie]=Ge,Me}function gi(Me,Ie){var Ge=Object.keys(Me);if(Object.getOwnPropertySymbols){var rn=Object.getOwnPropertySymbols(Me);Ie&&(rn=rn.filter(function(Ln){return Object.getOwnPropertyDescriptor(Me,Ln).enumerable})),Ge.push.apply(Ge,rn)}return Ge}function nn(Me){for(var Ie=1;Ie<arguments.length;Ie++){var Ge=arguments[Ie]!=null?arguments[Ie]:{};Ie%2?gi(Object(Ge),!0).forEach(function(rn){Hn(Me,rn,Ge[rn])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Me,Object.getOwnPropertyDescriptors(Ge)):gi(Object(Ge)).forEach(function(rn){Object.defineProperty(Me,rn,Object.getOwnPropertyDescriptor(Ge,rn))})}return Me}var en=`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`,We=`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`,sn="".concat(en," ").concat(We).split(/[\s\n]+/),Xn="aria-",Zn="data-";function zn(Me,Ie){return Me.indexOf(Ie)===0}function Ze(Me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge;Ie===!1?Ge={aria:!0,data:!0,attr:!0}:Ie===!0?Ge={aria:!0}:Ge=nn({},Ie);var rn={};return Object.keys(Me).forEach(function(Ln){(Ge.aria&&(Ln==="role"||zn(Ln,Xn))||Ge.data&&zn(Ln,Zn)||Ge.attr&&sn.includes(Ln))&&(rn[Ln]=Me[Ln])}),rn}function mn(Me,Ie){if(Me==null)return{};var Ge={};for(var rn in Me)if({}.hasOwnProperty.call(Me,rn)){if(Ie.indexOf(rn)!==-1)continue;Ge[rn]=Me[rn]}return Ge}function ri(Me,Ie){if(Me==null)return{};var Ge,rn,Ln=mn(Me,Ie);if(Object.getOwnPropertySymbols){var Yn=Object.getOwnPropertySymbols(Me);for(rn=0;rn<Yn.length;rn++)Ge=Yn[rn],Ie.indexOf(Ge)===-1&&{}.propertyIsEnumerable.call(Me,Ge)&&(Ln[Ge]=Me[Ge])}return Ln}var Si=he(33993);function En(Me,Ie,Ge){var rn=ut.useRef({});return(!("value"in rn.current)||Ge(rn.current.condition,Ie))&&(rn.current.value=Me(),rn.current.condition=Ie),rn.current.value}var Ye=Symbol.for("react.element"),ti=Symbol.for("react.transitional.element"),xi=Symbol.for("react.fragment");function Ui(Me){return Me&&_typeof(Me)==="object"&&(Me.$$typeof===Ye||Me.$$typeof===ti)&&Me.type===xi}var yn=Number(ut.version.split(".")[0]),hi=function(Ie,Ge){typeof Ie=="function"?Ie(Ge):kn(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=Ge)},tr=function(){for(var Ie=arguments.length,Ge=new Array(Ie),rn=0;rn<Ie;rn++)Ge[rn]=arguments[rn];var Ln=Ge.filter(Boolean);return Ln.length<=1?Ln[0]:function(Yn){Ge.forEach(function(Wn){hi(Wn,Yn)})}},zr=function(){for(var Ie=arguments.length,Ge=new Array(Ie),rn=0;rn<Ie;rn++)Ge[rn]=arguments[rn];return En(function(){return tr.apply(void 0,Ge)},Ge,function(Ln,Yn){return Ln.length!==Yn.length||Ln.every(function(Wn,pn){return Wn!==Yn[pn]})})},xr=function(Ie){var Ge,rn;if(!Ie)return!1;if(li(Ie)&&yn>=19)return!0;var Ln=isMemo(Ie)?Ie.type.type:Ie.type;return!(typeof Ln=="function"&&!((Ge=Ln.prototype)!==null&&Ge!==void 0&&Ge.render)&&Ln.$$typeof!==ForwardRef||typeof Ie=="function"&&!((rn=Ie.prototype)!==null&&rn!==void 0&&rn.render)&&Ie.$$typeof!==ForwardRef)};function li(Me){return isValidElement(Me)&&!isFragment(Me)}var ai=function(Ie){return li(Ie)&&xr(Ie)},vi=function(Ie){if(Ie&&li(Ie)){var Ge=Ie;return Ge.props.propertyIsEnumerable("ref")?Ge.props.ref:Ge.ref}return null},qi=["prefixCls","className","containerRef"],Lr=function(Ie){var Ge=Ie.prefixCls,rn=Ie.className,Ln=Ie.containerRef,Yn=ri(Ie,qi),Wn=ut.useContext(wr),pn=Wn.panel,de=zr(pn,Ln);return ut.createElement("div",Sr({className:vn()("".concat(Ge,"-content"),rn),role:"dialog",ref:de},Ze(Ie,{aria:!0}),{"aria-modal":"true"},Yn))},In=Lr,Ai={},$o=[],xo=function(Ie){$o.push(Ie)};function to(Me,Ie){if(0)var Ge}function qe(Me,Ie){if(0)var Ge}function Oi(){Ai={}}function ar(Me,Ie,Ge){!Ie&&!Ai[Ge]&&(Me(!1,Ge),Ai[Ge]=!0)}function Pi(Me,Ie){ar(to,Me,Ie)}function Gr(Me,Ie){ar(qe,Me,Ie)}Pi.preMessage=xo,Pi.resetWarned=Oi,Pi.noteOnce=Gr;var lr=Pi;function yr(Me){return typeof Me=="string"&&String(Number(Me))===Me?(lr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Me)):Me}function cr(Me){warning(!("wrapperClassName"in Me),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Me.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var er={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Er(Me,Ie){var Ge,rn,Ln,Yn=Me.prefixCls,Wn=Me.open,pn=Me.placement,de=Me.inline,Mi=Me.push,Wi=Me.forceRender,nr=Me.autoFocus,ir=Me.keyboard,rr=Me.classNames,Vi=Me.rootClassName,Dr=Me.rootStyle,or=Me.zIndex,Di=Me.className,wi=Me.id,Qn=Me.style,Rn=Me.motion,ni=Me.width,on=Me.height,ui=Me.children,di=Me.mask,Zi=Me.maskClosable,Qi=Me.maskMotion,$i=Me.maskClassName,mr=Me.maskStyle,_r=Me.afterOpenChange,Ir=Me.onClose,ao=Me.onMouseEnter,Ao=Me.onMouseOver,Je=Me.onMouseLeave,Kr=Me.onClick,Jr=Me.onKeyDown,Mo=Me.onKeyUp,dr=Me.styles,To=Me.drawerRender,oo=ut.useRef(),No=ut.useRef(),ur=ut.useRef();ut.useImperativeHandle(Ie,function(){return oo.current});var Br=function(Qo){var Gi=Qo.keyCode,ga=Qo.shiftKey;switch(Gi){case Pn.TAB:{if(Gi===Pn.TAB){if(!ga&&document.activeElement===ur.current){var Vo;(Vo=No.current)===null||Vo===void 0||Vo.focus({preventScroll:!0})}else if(ga&&document.activeElement===No.current){var Ro;(Ro=ur.current)===null||Ro===void 0||Ro.focus({preventScroll:!0})}}break}case Pn.ESC:{Ir&&ir&&(Qo.stopPropagation(),Ir(Qo));break}}};ut.useEffect(function(){if(Wn&&nr){var qr;(qr=oo.current)===null||qr===void 0||qr.focus({preventScroll:!0})}},[Wn]);var Ti=ut.useState(!1),Yi=Lt(Ti,2),sr=Yi[0],kr=Yi[1],ii=ut.useContext(Fi),so;typeof Mi=="boolean"?so=Mi?{}:{distance:0}:so=Mi||{};var Zr=(Ge=(rn=(Ln=so)===null||Ln===void 0?void 0:Ln.distance)!==null&&rn!==void 0?rn:ii==null?void 0:ii.pushDistance)!==null&&Ge!==void 0?Ge:180,uo=ut.useMemo(function(){return{pushDistance:Zr,push:function(){kr(!0)},pull:function(){kr(!1)}}},[Zr]);ut.useEffect(function(){if(Wn){var qr;ii==null||(qr=ii.push)===null||qr===void 0||qr.call(ii)}else{var Qo;ii==null||(Qo=ii.pull)===null||Qo===void 0||Qo.call(ii)}},[Wn]),ut.useEffect(function(){return function(){var qr;ii==null||(qr=ii.pull)===null||qr===void 0||qr.call(ii)}},[]);var _o=di&&ut.createElement(Ut.Z,Sr({key:"mask"},Qi,{visible:Wn}),function(qr,Qo){var Gi=qr.className,ga=qr.style;return ut.createElement("div",{className:vn()("".concat(Yn,"-mask"),Gi,rr==null?void 0:rr.mask,$i),style:Dt(Dt(Dt({},ga),mr),dr==null?void 0:dr.mask),onClick:Zi&&Wn?Ir:void 0,ref:Qo})}),ts=typeof Rn=="function"?Rn(pn):Rn,_n={};if(sr&&Zr)switch(pn){case"top":_n.transform="translateY(".concat(Zr,"px)");break;case"bottom":_n.transform="translateY(".concat(-Zr,"px)");break;case"left":_n.transform="translateX(".concat(Zr,"px)");break;default:_n.transform="translateX(".concat(-Zr,"px)");break}pn==="left"||pn==="right"?_n.width=yr(ni):_n.height=yr(on);var no={onMouseEnter:ao,onMouseOver:Ao,onMouseLeave:Je,onClick:Kr,onKeyDown:Jr,onKeyUp:Mo},ho=ut.createElement(Ut.Z,Sr({key:"panel"},ts,{visible:Wn,forceRender:Wi,onVisibleChanged:function(Qo){_r==null||_r(Qo)},removeOnLeave:!1,leavedClassName:"".concat(Yn,"-content-wrapper-hidden")}),function(qr,Qo){var Gi=qr.className,ga=qr.style,Vo=ut.createElement(In,Sr({id:wi,containerRef:Qo,prefixCls:Yn,className:vn()(Di,rr==null?void 0:rr.content),style:Dt(Dt({},Qn),dr==null?void 0:dr.content)},Ze(Me,{aria:!0}),no),ui);return ut.createElement("div",Sr({className:vn()("".concat(Yn,"-content-wrapper"),rr==null?void 0:rr.wrapper,Gi),style:Dt(Dt(Dt({},_n),ga),dr==null?void 0:dr.wrapper)},Ze(Me,{data:!0})),To?To(Vo):Vo)}),es=Dt({},Dr);return or&&(es.zIndex=or),ut.createElement(Fi.Provider,{value:uo},ut.createElement("div",{className:vn()(Yn,"".concat(Yn,"-").concat(pn),Vi,Vt(Vt({},"".concat(Yn,"-open"),Wn),"".concat(Yn,"-inline"),de)),style:es,tabIndex:-1,ref:oo,onKeyDown:Br},_o,ut.createElement("div",{tabIndex:0,ref:No,style:er,"aria-hidden":"true","data-sentinel":"start"}),ho,ut.createElement("div",{tabIndex:0,ref:ur,style:er,"aria-hidden":"true","data-sentinel":"end"})))}var Cn=ut.forwardRef(Er),eo=Cn,Oe=function(Ie){var Ge=Ie.open,rn=Ge===void 0?!1:Ge,Ln=Ie.prefixCls,Yn=Ln===void 0?"rc-drawer":Ln,Wn=Ie.placement,pn=Wn===void 0?"right":Wn,de=Ie.autoFocus,Mi=de===void 0?!0:de,Wi=Ie.keyboard,nr=Wi===void 0?!0:Wi,ir=Ie.width,rr=ir===void 0?378:ir,Vi=Ie.mask,Dr=Vi===void 0?!0:Vi,or=Ie.maskClosable,Di=or===void 0?!0:or,wi=Ie.getContainer,Qn=Ie.forceRender,Rn=Ie.afterOpenChange,ni=Ie.destroyOnClose,on=Ie.onMouseEnter,ui=Ie.onMouseOver,di=Ie.onMouseLeave,Zi=Ie.onClick,Qi=Ie.onKeyDown,$i=Ie.onKeyUp,mr=Ie.panelRef,_r=ut.useState(!1),Ir=Lt(_r,2),ao=Ir[0],Ao=Ir[1],Je=ut.useState(!1),Kr=Lt(Je,2),Jr=Kr[0],Mo=Kr[1];Ar(function(){Mo(!0)},[]);var dr=Jr?rn:!1,To=ut.useRef(),oo=ut.useRef();Ar(function(){dr&&(oo.current=document.activeElement)},[dr]);var No=function(sr){var kr;if(Ao(sr),Rn==null||Rn(sr),!sr&&oo.current&&!((kr=To.current)!==null&&kr!==void 0&&kr.contains(oo.current))){var ii;(ii=oo.current)===null||ii===void 0||ii.focus({preventScroll:!0})}},ur=ut.useMemo(function(){return{panel:mr}},[mr]);if(!Qn&&!ao&&!dr&&ni)return null;var Br={onMouseEnter:on,onMouseOver:ui,onMouseLeave:di,onClick:Zi,onKeyDown:Qi,onKeyUp:$i},Ti=Dt(Dt({},Ie),{},{open:dr,prefixCls:Yn,placement:pn,autoFocus:Mi,keyboard:nr,width:rr,mask:Dr,maskClosable:Di,inline:wi===!1,afterOpenChange:No,ref:To},Br);return ut.createElement(wr.Provider,{value:ur},ut.createElement(bi,{open:dr||Qn||ao,autoDestroy:!1,getContainer:wi,autoLock:Dr&&(dr||ao)},ut.createElement(eo,Ti)))},je=Oe,wn=je},26819:function(An,jn){"use strict";var he;var Jt=typeof Symbol=="function"&&Symbol.for,xt=Jt?Symbol.for("react.element"):60103,qt=Jt?Symbol.for("react.portal"):60106,Vt=Jt?Symbol.for("react.fragment"):60107,Rt=Jt?Symbol.for("react.strict_mode"):60108,Dt=Jt?Symbol.for("react.profiler"):60114,St=Jt?Symbol.for("react.provider"):60109,Et=Jt?Symbol.for("react.context"):60110,Nt=Jt?Symbol.for("react.async_mode"):60111,Pt=Jt?Symbol.for("react.concurrent_mode"):60111,Ct=Jt?Symbol.for("react.forward_ref"):60112,Lt=Jt?Symbol.for("react.suspense"):60113,Ft=Jt?Symbol.for("react.suspense_list"):60120,vt=Jt?Symbol.for("react.memo"):60115,et=Jt?Symbol.for("react.lazy"):60116,tt=Jt?Symbol.for("react.block"):60121,st=Jt?Symbol.for("react.fundamental"):60117,rt=Jt?Symbol.for("react.responder"):60118,ut=Jt?Symbol.for("react.scope"):60119;function ct(ft){if(typeof ft=="object"&&ft!==null){var kt=ft.$$typeof;switch(kt){case xt:switch(ft=ft.type,ft){case Nt:case Pt:case Vt:case Dt:case Rt:case Lt:return ft;default:switch(ft=ft&&ft.$$typeof,ft){case Et:case Ct:case et:case vt:case St:return ft;default:return kt}}case qt:return kt}}}function gt(ft){return ct(ft)===Pt}he=Nt,he=Pt,he=Et,he=St,he=xt,he=Ct,he=Vt,he=et,he=vt,he=qt,he=Dt,he=Rt,he=Lt,he=function(ft){return gt(ft)||ct(ft)===Nt},he=gt,he=function(ft){return ct(ft)===Et},he=function(ft){return ct(ft)===St},he=function(ft){return typeof ft=="object"&&ft!==null&&ft.$$typeof===xt},he=function(ft){return ct(ft)===Ct},he=function(ft){return ct(ft)===Vt},he=function(ft){return ct(ft)===et},jn.isMemo=function(ft){return ct(ft)===vt},he=function(ft){return ct(ft)===qt},he=function(ft){return ct(ft)===Dt},he=function(ft){return ct(ft)===Rt},he=function(ft){return ct(ft)===Lt},he=function(ft){return typeof ft=="string"||typeof ft=="function"||ft===Vt||ft===Pt||ft===Dt||ft===Rt||ft===Lt||ft===Ft||typeof ft=="object"&&ft!==null&&(ft.$$typeof===et||ft.$$typeof===vt||ft.$$typeof===St||ft.$$typeof===Et||ft.$$typeof===Ct||ft.$$typeof===st||ft.$$typeof===rt||ft.$$typeof===ut||ft.$$typeof===tt)},he=ct},18459:function(An,jn,he){"use strict";An.exports=he(26819)},16651:function(An,jn){"use strict";var he;var Jt=Symbol.for("react.element"),xt=Symbol.for("react.portal"),qt=Symbol.for("react.fragment"),Vt=Symbol.for("react.strict_mode"),Rt=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),St=Symbol.for("react.context"),Et=Symbol.for("react.server_context"),Nt=Symbol.for("react.forward_ref"),Pt=Symbol.for("react.suspense"),Ct=Symbol.for("react.suspense_list"),Lt=Symbol.for("react.memo"),Ft=Symbol.for("react.lazy"),vt=Symbol.for("react.offscreen"),et;et=Symbol.for("react.module.reference");function tt(st){if(typeof st=="object"&&st!==null){var rt=st.$$typeof;switch(rt){case Jt:switch(st=st.type,st){case qt:case Rt:case Vt:case Pt:case Ct:return st;default:switch(st=st&&st.$$typeof,st){case Et:case St:case Nt:case Ft:case Lt:case Dt:return st;default:return rt}}case xt:return rt}}}he=St,he=Dt,he=Jt,he=Nt,he=qt,he=Ft,he=Lt,he=xt,he=Rt,he=Vt,he=Pt,he=Ct,he=function(){return!1},he=function(){return!1},he=function(st){return tt(st)===St},he=function(st){return tt(st)===Dt},he=function(st){return typeof st=="object"&&st!==null&&st.$$typeof===Jt},he=function(st){return tt(st)===Nt},he=function(st){return tt(st)===qt},he=function(st){return tt(st)===Ft},he=function(st){return tt(st)===Lt},he=function(st){return tt(st)===xt},he=function(st){return tt(st)===Rt},he=function(st){return tt(st)===Vt},he=function(st){return tt(st)===Pt},he=function(st){return tt(st)===Ct},he=function(st){return typeof st=="string"||typeof st=="function"||st===qt||st===Rt||st===Vt||st===Pt||st===Ct||st===vt||typeof st=="object"&&st!==null&&(st.$$typeof===Ft||st.$$typeof===Lt||st.$$typeof===Dt||st.$$typeof===St||st.$$typeof===Nt||st.$$typeof===et||st.getModuleId!==void 0)},he=tt},33993:function(An,jn,he){"use strict";he(16651)},64909:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return eo}});var Jt=he(87462),xt=he(1413),qt=he(4942),Vt=he(97685),Rt=he(71002),Dt=he(45987),St=he(94184),Et=he.n(St),Nt=/margin|padding|width|height|max|min|offset/,Pt={left:!0,top:!0},Ct={cssFloat:1,styleFloat:1,float:1};function Lt(Oe){return Oe.nodeType===1?Oe.ownerDocument.defaultView.getComputedStyle(Oe,null):{}}function Ft(Oe,je,wn){if(je=je.toLowerCase(),wn==="auto"){if(je==="height")return Oe.offsetHeight;if(je==="width")return Oe.offsetWidth}return je in Pt||(Pt[je]=Nt.test(je)),Pt[je]?parseFloat(wn)||0:wn}function vt(Oe,je){var wn=arguments.length,Me=Lt(Oe);return je=Ct[je]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":je,wn===1?Me:Ft(Oe,je,Me[je]||Oe.style[je])}function et(Oe,je,wn){var Me=arguments.length;if(je=Ct[je]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":je,Me===3)return typeof wn=="number"&&Nt.test(je)&&(wn="".concat(wn,"px")),Oe.style[je]=wn,wn;for(var Ie in je)je.hasOwnProperty(Ie)&&et(Oe,Ie,je[Ie]);return Lt(Oe)}function tt(Oe){return Oe===document.body?document.documentElement.clientWidth:Oe.offsetWidth}function st(Oe){return Oe===document.body?window.innerHeight||document.documentElement.clientHeight:Oe.offsetHeight}function rt(){var Oe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),je=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Oe,height:je}}function ut(){var Oe=document.documentElement.clientWidth,je=window.innerHeight||document.documentElement.clientHeight;return{width:Oe,height:je}}function ct(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function gt(Oe){var je=Oe.getBoundingClientRect(),wn=document.documentElement;return{left:je.left+(window.pageXOffset||wn.scrollLeft)-(wn.clientLeft||document.body.clientLeft||0),top:je.top+(window.pageYOffset||wn.scrollTop)-(wn.clientTop||document.body.clientTop||0)}}var ft=he(67294),kt=he.t(ft,2);function jt(Oe){var je=ft.useRef();je.current=Oe;var wn=ft.useCallback(function(){for(var Me,Ie=arguments.length,Ge=new Array(Ie),rn=0;rn<Ie;rn++)Ge[rn]=arguments[rn];return(Me=je.current)===null||Me===void 0?void 0:Me.call.apply(Me,[je].concat(Ge))},[]);return wn}function Ht(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ot=Ht()?ft.useLayoutEffect:ft.useEffect,te=function(je,wn){var Me=ft.useRef(!0);Ot(function(){return je(Me.current)},wn),Ot(function(){return Me.current=!1,function(){Me.current=!0}},[])},ne=function(je,wn){te(function(Me){if(!Me)return je()},wn)},Xt=null;function ce(Oe){var je=ft.useRef(!1),wn=ft.useState(Oe),Me=(0,Vt.Z)(wn,2),Ie=Me[0],Ge=Me[1];ft.useEffect(function(){return je.current=!1,function(){je.current=!0}},[]);function rn(Ln,Yn){Yn&&je.current||Ge(Ln)}return[Ie,rn]}function me(Oe){return Oe!==void 0}function Pe(Oe,je){var wn=je||{},Me=wn.defaultValue,Ie=wn.value,Ge=wn.onChange,rn=wn.postState,Ln=ce(function(){return me(Ie)?Ie:me(Me)?typeof Me=="function"?Me():Me:typeof Oe=="function"?Oe():Oe}),Yn=(0,Vt.Z)(Ln,2),Wn=Yn[0],pn=Yn[1],de=Ie!==void 0?Ie:Wn,Mi=rn?rn(de):de,Wi=jt(Ge),nr=ce([de]),ir=(0,Vt.Z)(nr,2),rr=ir[0],Vi=ir[1];ne(function(){var or=rr[0];Wn!==or&&Wi(Wn,or)},[rr]),ne(function(){me(Ie)||pn(Ie)},[Ie]);var Dr=jt(function(or,Di){pn(or,Di),Vi([de],Di)});return[Mi,Dr]}var De=he(2788),Ve=ft.createContext({});function we(Oe,je){if(!Oe)return!1;if(Oe.contains)return Oe.contains(je);for(var wn=je;wn;){if(wn===Oe)return!0;wn=wn.parentNode}return!1}function Qe(){var Oe=(0,xt.Z)({},kt);return Oe.useId}var ae=0;function _t(){}function $t(Oe){var je=ft.useState("ssr-id"),wn=(0,Vt.Z)(je,2),Me=wn[0],Ie=wn[1],Ge=Qe(),rn=Ge==null?void 0:Ge();return ft.useEffect(function(){if(!Ge){var Ln=ae;ae+=1,Ie("rc_unique_".concat(Ln))}},[]),Oe||rn||Me}var re={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(je){var wn=je.keyCode;if(je.altKey&&!je.ctrlKey||je.metaKey||wn>=re.F1&&wn<=re.F12)return!1;switch(wn){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(je){if(je>=re.ZERO&&je<=re.NINE||je>=re.NUM_ZERO&&je<=re.NUM_MULTIPLY||je>=re.A&&je<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&je===0)return!0;switch(je){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},pe=re,le=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ue=`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`,Ne="".concat(le," ").concat(Ue).split(/[\s\n]+/),Xe="aria-",Le="data-";function xe(Oe,je){return Oe.indexOf(je)===0}function _e(Oe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn;je===!1?wn={aria:!0,data:!0,attr:!0}:je===!0?wn={aria:!0}:wn=(0,xt.Z)({},je);var Me={};return Object.keys(Oe).forEach(function(Ie){(wn.aria&&(Ie==="role"||xe(Ie,Xe))||wn.data&&xe(Ie,Le)||wn.attr&&Ne.includes(Ie))&&(Me[Ie]=Oe[Ie])}),Me}function Fe(Oe,je,wn){var Me=je;return!Me&&wn&&(Me="".concat(Oe,"-").concat(wn)),Me}function Ae(Oe,je){var wn=Oe["page".concat(je?"Y":"X","Offset")],Me="scroll".concat(je?"Top":"Left");if(typeof wn!="number"){var Ie=Oe.document;wn=Ie.documentElement[Me],typeof wn!="number"&&(wn=Ie.body[Me])}return wn}function oe(Oe){var je=Oe.getBoundingClientRect(),wn={left:je.left,top:je.top},Me=Oe.ownerDocument,Ie=Me.defaultView||Me.parentWindow;return wn.left+=Ae(Ie),wn.top+=Ae(Ie,!0),wn}var Mt=he(62874),At=he(59864);function Qt(Oe,je,wn){var Me=ft.useRef({});return(!("value"in Me.current)||wn(Me.current.condition,je))&&(Me.current.value=Oe(),Me.current.condition=je),Me.current.value}function se(Oe,je){typeof Oe=="function"?Oe(je):(0,Rt.Z)(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=je)}function Kt(){for(var Oe=arguments.length,je=new Array(Oe),wn=0;wn<Oe;wn++)je[wn]=arguments[wn];var Me=je.filter(function(Ie){return Ie});return Me.length<=1?Me[0]:function(Ie){je.forEach(function(Ge){se(Ge,Ie)})}}function It(){for(var Oe=arguments.length,je=new Array(Oe),wn=0;wn<Oe;wn++)je[wn]=arguments[wn];return Qt(function(){return Kt.apply(void 0,je)},je,function(Me,Ie){return Me.length===Ie.length&&Me.every(function(Ge,rn){return Ge===Ie[rn]})})}function bt(Oe){var je,wn,Me=isMemo(Oe)?Oe.type.type:Oe.type;return!(typeof Me=="function"&&!((je=Me.prototype)!==null&&je!==void 0&&je.render)||typeof Oe=="function"&&!((wn=Oe.prototype)!==null&&wn!==void 0&&wn.render))}var Bt=ft.memo(function(Oe){var je=Oe.children;return je},function(Oe,je){var wn=je.shouldUpdate;return!wn}),ie={width:0,height:0,overflow:"hidden",outline:"none"},Wt={outline:"none"},Zt=ft.forwardRef(function(Oe,je){var wn=Oe.prefixCls,Me=Oe.className,Ie=Oe.style,Ge=Oe.title,rn=Oe.ariaId,Ln=Oe.footer,Yn=Oe.closable,Wn=Oe.closeIcon,pn=Oe.onClose,de=Oe.children,Mi=Oe.bodyStyle,Wi=Oe.bodyProps,nr=Oe.modalRender,ir=Oe.onMouseDown,rr=Oe.onMouseUp,Vi=Oe.holderRef,Dr=Oe.visible,or=Oe.forceRender,Di=Oe.width,wi=Oe.height,Qn=Oe.classNames,Rn=Oe.styles,ni=ft.useContext(Ve),on=ni.panel,ui=It(Vi,on),di=(0,ft.useRef)(),Zi=(0,ft.useRef)();ft.useImperativeHandle(je,function(){return{focus:function(){var Jr;(Jr=di.current)===null||Jr===void 0||Jr.focus({preventScroll:!0})},changeActive:function(Jr){var Mo=document,dr=Mo.activeElement;Jr&&dr===Zi.current?di.current.focus({preventScroll:!0}):!Jr&&dr===di.current&&Zi.current.focus({preventScroll:!0})}}});var Qi={};Di!==void 0&&(Qi.width=Di),wi!==void 0&&(Qi.height=wi);var $i=Ln?ft.createElement("div",{className:Et()("".concat(wn,"-footer"),Qn==null?void 0:Qn.footer),style:(0,xt.Z)({},Rn==null?void 0:Rn.footer)},Ln):null,mr=Ge?ft.createElement("div",{className:Et()("".concat(wn,"-header"),Qn==null?void 0:Qn.header),style:(0,xt.Z)({},Rn==null?void 0:Rn.header)},ft.createElement("div",{className:"".concat(wn,"-title"),id:rn},Ge)):null,_r=(0,ft.useMemo)(function(){return(0,Rt.Z)(Yn)==="object"&&Yn!==null?Yn:Yn?{closeIcon:Wn!=null?Wn:ft.createElement("span",{className:"".concat(wn,"-close-x")})}:{}},[Yn,Wn,wn]),Ir=_e(_r,!0),ao=(0,Rt.Z)(Yn)==="object"&&Yn.disabled,Ao=Yn?ft.createElement("button",(0,Jt.Z)({type:"button",onClick:pn,"aria-label":"Close"},Ir,{className:"".concat(wn,"-close"),disabled:ao}),_r.closeIcon):null,Je=ft.createElement("div",{className:Et()("".concat(wn,"-content"),Qn==null?void 0:Qn.content),style:Rn==null?void 0:Rn.content},Ao,mr,ft.createElement("div",(0,Jt.Z)({className:Et()("".concat(wn,"-body"),Qn==null?void 0:Qn.body),style:(0,xt.Z)((0,xt.Z)({},Mi),Rn==null?void 0:Rn.body)},Wi),de),$i);return ft.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ge?rn:null,"aria-modal":"true",ref:ui,style:(0,xt.Z)((0,xt.Z)({},Ie),Qi),className:Et()(wn,Me),onMouseDown:ir,onMouseUp:rr},ft.createElement("div",{ref:di,tabIndex:0,style:Wt},ft.createElement(Bt,{shouldUpdate:Dr||or},nr?nr(Je):Je)),ft.createElement("div",{tabIndex:0,ref:Zi,style:ie}))}),fe=Zt,ke=ft.forwardRef(function(Oe,je){var wn=Oe.prefixCls,Me=Oe.title,Ie=Oe.style,Ge=Oe.className,rn=Oe.visible,Ln=Oe.forceRender,Yn=Oe.destroyOnClose,Wn=Oe.motionName,pn=Oe.ariaId,de=Oe.onVisibleChanged,Mi=Oe.mousePosition,Wi=(0,ft.useRef)(),nr=ft.useState(),ir=(0,Vt.Z)(nr,2),rr=ir[0],Vi=ir[1],Dr={};rr&&(Dr.transformOrigin=rr);function or(){var Di=oe(Wi.current);Vi(Mi&&(Mi.x||Mi.y)?"".concat(Mi.x-Di.left,"px ").concat(Mi.y-Di.top,"px"):"")}return ft.createElement(Mt.Z,{visible:rn,onVisibleChanged:de,onAppearPrepare:or,onEnterPrepare:or,forceRender:Ln,motionName:Wn,removeOnLeave:Yn,ref:Wi},function(Di,wi){var Qn=Di.className,Rn=Di.style;return ft.createElement(fe,(0,Jt.Z)({},Oe,{ref:je,title:Me,ariaId:pn,prefixCls:wn,holderRef:wi,style:(0,xt.Z)((0,xt.Z)((0,xt.Z)({},Rn),Ie),Dr),className:Et()(Ge,Qn)}))})});ke.displayName="Content";var tn=ke,dn=function(je){var wn=je.prefixCls,Me=je.style,Ie=je.visible,Ge=je.maskProps,rn=je.motionName,Ln=je.className;return ft.createElement(Mt.Z,{key:"mask",visible:Ie,motionName:rn,leavedClassName:"".concat(wn,"-mask-hidden")},function(Yn,Wn){var pn=Yn.className,de=Yn.style;return ft.createElement("div",(0,Jt.Z)({ref:Wn,style:(0,xt.Z)((0,xt.Z)({},de),Me),className:Et()("".concat(wn,"-mask"),pn,Ln)},Ge))})},ln=dn,Bn={};function Vn(Oe,je){}function Tn(Oe,je){}function un(){Bn={}}function si(Oe,je,wn){!je&&!Bn[wn]&&(Oe(!1,wn),Bn[wn]=!0)}function ei(Oe,je){si(Vn,Oe,je)}function fi(Oe,je){si(Tn,Oe,je)}var bi=null,Ni=function(je){var wn=je.prefixCls,Me=wn===void 0?"rc-dialog":wn,Ie=je.zIndex,Ge=je.visible,rn=Ge===void 0?!1:Ge,Ln=je.keyboard,Yn=Ln===void 0?!0:Ln,Wn=je.focusTriggerAfterClose,pn=Wn===void 0?!0:Wn,de=je.wrapStyle,Mi=je.wrapClassName,Wi=je.wrapProps,nr=je.onClose,ir=je.afterOpenChange,rr=je.afterClose,Vi=je.transitionName,Dr=je.animation,or=je.closable,Di=or===void 0?!0:or,wi=je.mask,Qn=wi===void 0?!0:wi,Rn=je.maskTransitionName,ni=je.maskAnimation,on=je.maskClosable,ui=on===void 0?!0:on,di=je.maskStyle,Zi=je.maskProps,Qi=je.rootClassName,$i=je.classNames,mr=je.styles,_r=(0,ft.useRef)(),Ir=(0,ft.useRef)(),ao=(0,ft.useRef)(),Ao=ft.useState(rn),Je=(0,Vt.Z)(Ao,2),Kr=Je[0],Jr=Je[1],Mo=$t();function dr(){we(Ir.current,document.activeElement)||(_r.current=document.activeElement)}function To(){if(!we(Ir.current,document.activeElement)){var so;(so=ao.current)===null||so===void 0||so.focus()}}function oo(so){if(so)To();else{if(Jr(!1),Qn&&_r.current&&pn){try{_r.current.focus({preventScroll:!0})}catch(Zr){}_r.current=null}Kr&&(rr==null||rr())}ir==null||ir(so)}function No(so){nr==null||nr(so)}var ur=(0,ft.useRef)(!1),Br=(0,ft.useRef)(),Ti=function(){clearTimeout(Br.current),ur.current=!0},Yi=function(){Br.current=setTimeout(function(){ur.current=!1})},sr=null;ui&&(sr=function(Zr){ur.current?ur.current=!1:Ir.current===Zr.target&&No(Zr)});function kr(so){if(Yn&&so.keyCode===pe.ESC){so.stopPropagation(),No(so);return}rn&&so.keyCode===pe.TAB&&ao.current.changeActive(!so.shiftKey)}(0,ft.useEffect)(function(){rn&&(Jr(!0),dr())},[rn]),(0,ft.useEffect)(function(){return function(){clearTimeout(Br.current)}},[]);var ii=(0,xt.Z)((0,xt.Z)((0,xt.Z)({zIndex:Ie},de),mr==null?void 0:mr.wrapper),{},{display:Kr?null:"none"});return ft.createElement("div",(0,Jt.Z)({className:Et()("".concat(Me,"-root"),Qi)},_e(je,{data:!0})),ft.createElement(ln,{prefixCls:Me,visible:Qn&&rn,motionName:Fe(Me,Rn,ni),style:(0,xt.Z)((0,xt.Z)({zIndex:Ie},di),mr==null?void 0:mr.mask),maskProps:Zi,className:$i==null?void 0:$i.mask}),ft.createElement("div",(0,Jt.Z)({tabIndex:-1,onKeyDown:kr,className:Et()("".concat(Me,"-wrap"),Mi,$i==null?void 0:$i.wrapper),ref:Ir,onClick:sr,style:ii},Wi),ft.createElement(tn,(0,Jt.Z)({},je,{onMouseDown:Ti,onMouseUp:Yi,ref:ao,closable:Di,ariaId:Mo,prefixCls:Me,visible:rn&&Kr,onClose:No,onVisibleChanged:oo,motionName:Fe(Me,Vi,Dr)}))))},qn=Ni,Ii=function(je){var wn=je.visible,Me=je.getContainer,Ie=je.forceRender,Ge=je.destroyOnClose,rn=Ge===void 0?!1:Ge,Ln=je.afterClose,Yn=je.panelRef,Wn=ft.useState(wn),pn=(0,Vt.Z)(Wn,2),de=pn[0],Mi=pn[1],Wi=ft.useMemo(function(){return{panel:Yn}},[Yn]);return ft.useEffect(function(){wn&&Mi(!0)},[wn]),!Ie&&rn&&!de?null:ft.createElement(Ve.Provider,{value:Wi},ft.createElement(De.Z,{open:wn||Ie||de,autoDestroy:!1,getContainer:Me,autoLock:wn||de},ft.createElement(qn,(0,Jt.Z)({},je,{destroyOnClose:rn,afterClose:function(){Ln==null||Ln(),Mi(!1)}}))))};Ii.displayName="Dialog";var pr=Ii,Ar=pr,Or=he(73935);function wr(Oe,je,wn,Me){var Ie=Or.unstable_batchedUpdates?function(rn){Or.unstable_batchedUpdates(wn,rn)}:wn;return Oe!=null&&Oe.addEventListener&&Oe.addEventListener(je,Ie,Me),{remove:function(){Oe!=null&&Oe.removeEventListener&&Oe.removeEventListener(je,Ie,Me)}}}var Fi={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(je){var wn=je.keyCode;if(je.altKey&&!je.ctrlKey||je.metaKey||wn>=Fi.F1&&wn<=Fi.F12)return!1;switch(wn){case Fi.ALT:case Fi.CAPS_LOCK:case Fi.CONTEXT_MENU:case Fi.CTRL:case Fi.DOWN:case Fi.END:case Fi.ESC:case Fi.HOME:case Fi.INSERT:case Fi.LEFT:case Fi.MAC_FF_META:case Fi.META:case Fi.NUMLOCK:case Fi.NUM_CENTER:case Fi.PAGE_DOWN:case Fi.PAGE_UP:case Fi.PAUSE:case Fi.PRINT_SCREEN:case Fi.RIGHT:case Fi.SHIFT:case Fi.UP:case Fi.WIN_KEY:case Fi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(je){if(je>=Fi.ZERO&&je<=Fi.NINE||je>=Fi.NUM_ZERO&&je<=Fi.NUM_MULTIPLY||je>=Fi.A&&je<=Fi.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&je===0)return!0;switch(je){case Fi.SPACE:case Fi.QUESTION_MARK:case Fi.NUM_PLUS:case Fi.NUM_MINUS:case Fi.NUM_PERIOD:case Fi.NUM_DIVISION:case Fi.SEMICOLON:case Fi.DASH:case Fi.EQUALS:case Fi.COMMA:case Fi.PERIOD:case Fi.SLASH:case Fi.APOSTROPHE:case Fi.SINGLE_QUOTE:case Fi.OPEN_SQUARE_BRACKET:case Fi.BACKSLASH:case Fi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Sr=Fi,Ri=ft.createContext(null),vn=function(je){var wn=je.visible,Me=je.maskTransitionName,Ie=je.getContainer,Ge=je.prefixCls,rn=je.rootClassName,Ln=je.icons,Yn=je.countRender,Wn=je.showSwitch,pn=je.showProgress,de=je.current,Mi=je.transform,Wi=je.count,nr=je.scale,ir=je.minScale,rr=je.maxScale,Vi=je.closeIcon,Dr=je.onActive,or=je.onClose,Di=je.onZoomIn,wi=je.onZoomOut,Qn=je.onRotateRight,Rn=je.onRotateLeft,ni=je.onFlipX,on=je.onFlipY,ui=je.onReset,di=je.toolbarRender,Zi=je.zIndex,Qi=je.image,$i=(0,ft.useContext)(Ri),mr=Ln.rotateLeft,_r=Ln.rotateRight,Ir=Ln.zoomIn,ao=Ln.zoomOut,Ao=Ln.close,Je=Ln.left,Kr=Ln.right,Jr=Ln.flipX,Mo=Ln.flipY,dr="".concat(Ge,"-operations-operation");ft.useEffect(function(){var Zr=function(_o){_o.keyCode===Sr.ESC&&or()};return wn&&window.addEventListener("keydown",Zr),function(){window.removeEventListener("keydown",Zr)}},[wn]);var To=function(uo,_o){uo.preventDefault(),uo.stopPropagation(),Dr(_o)},oo=ft.useCallback(function(Zr){var uo=Zr.type,_o=Zr.disabled,ts=Zr.onClick,_n=Zr.icon;return ft.createElement("div",{key:uo,className:Et()(dr,"".concat(Ge,"-operations-operation-").concat(uo),(0,qt.Z)({},"".concat(Ge,"-operations-operation-disabled"),!!_o)),onClick:ts},_n)},[dr,Ge]),No=Wn?oo({icon:Je,onClick:function(uo){return To(uo,-1)},type:"prev",disabled:de===0}):void 0,ur=Wn?oo({icon:Kr,onClick:function(uo){return To(uo,1)},type:"next",disabled:de===Wi-1}):void 0,Br=oo({icon:Mo,onClick:on,type:"flipY"}),Ti=oo({icon:Jr,onClick:ni,type:"flipX"}),Yi=oo({icon:mr,onClick:Rn,type:"rotateLeft"}),sr=oo({icon:_r,onClick:Qn,type:"rotateRight"}),kr=oo({icon:ao,onClick:wi,type:"zoomOut",disabled:nr<=ir}),ii=oo({icon:Ir,onClick:Di,type:"zoomIn",disabled:nr===rr}),so=ft.createElement("div",{className:"".concat(Ge,"-operations")},Br,Ti,Yi,sr,kr,ii);return ft.createElement(Mt.Z,{visible:wn,motionName:Me},function(Zr){var uo=Zr.className,_o=Zr.style;return ft.createElement(De.Z,{open:!0,getContainer:Ie!=null?Ie:document.body},ft.createElement("div",{className:Et()("".concat(Ge,"-operations-wrapper"),uo,rn),style:(0,xt.Z)((0,xt.Z)({},_o),{},{zIndex:Zi})},Vi===null?null:ft.createElement("button",{className:"".concat(Ge,"-close"),onClick:or},Vi||Ao),Wn&&ft.createElement(ft.Fragment,null,ft.createElement("div",{className:Et()("".concat(Ge,"-switch-left"),(0,qt.Z)({},"".concat(Ge,"-switch-left-disabled"),de===0)),onClick:function(_n){return To(_n,-1)}},Je),ft.createElement("div",{className:Et()("".concat(Ge,"-switch-right"),(0,qt.Z)({},"".concat(Ge,"-switch-right-disabled"),de===Wi-1)),onClick:function(_n){return To(_n,1)}},Kr)),ft.createElement("div",{className:"".concat(Ge,"-footer")},pn&&ft.createElement("div",{className:"".concat(Ge,"-progress")},Yn?Yn(de+1,Wi):"".concat(de+1," / ").concat(Wi)),di?di(so,(0,xt.Z)((0,xt.Z)({icons:{prevIcon:No,nextIcon:ur,flipYIcon:Br,flipXIcon:Ti,rotateLeftIcon:Yi,rotateRightIcon:sr,zoomOutIcon:kr,zoomInIcon:ii},actions:{onActive:Dr,onFlipY:on,onFlipX:ni,onRotateLeft:Rn,onRotateRight:Qn,onZoomOut:wi,onZoomIn:Di,onReset:ui,onClose:or},transform:Mi},$i?{current:de,total:Wi}:{}),{},{image:Qi})):so)))})},Ut=vn,cn={},Pn=[],kn=function(je){Pn.push(je)};function Nn(Oe,je){if(0)var wn}function On(Oe,je){if(0)var wn}function Hn(){cn={}}function gi(Oe,je,wn){!je&&!cn[wn]&&(Oe(!1,wn),cn[wn]=!0)}function nn(Oe,je){gi(Nn,Oe,je)}function en(Oe,je){gi(On,Oe,je)}nn.preMessage=kn,nn.resetWarned=Hn,nn.noteOnce=en;var We=nn;function sn(Oe,je){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=new Set;function Ie(Ge,rn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Yn=Me.has(Ge);if(We(!Yn,"Warning: There may be circular references"),Yn)return!1;if(Ge===rn)return!0;if(wn&&Ln>1)return!1;Me.add(Ge);var Wn=Ln+1;if(Array.isArray(Ge)){if(!Array.isArray(rn)||Ge.length!==rn.length)return!1;for(var pn=0;pn<Ge.length;pn++)if(!Ie(Ge[pn],rn[pn],Wn))return!1;return!0}if(Ge&&rn&&(0,Rt.Z)(Ge)==="object"&&(0,Rt.Z)(rn)==="object"){var de=Object.keys(Ge);return de.length!==Object.keys(rn).length?!1:de.every(function(Mi){return Ie(Ge[Mi],rn[Mi],Wn)})}return!1}return Ie(Oe,je)}var Xn=sn,Zn=function(je){return+setTimeout(je,16)},zn=function(je){return clearTimeout(je)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Zn=function(je){return window.requestAnimationFrame(je)},zn=function(je){return window.cancelAnimationFrame(je)});var Ze=0,mn=new Map;function ri(Oe){mn.delete(Oe)}var Si=function(je){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ze+=1;var Me=Ze;function Ie(Ge){if(Ge===0)ri(Me),je();else{var rn=Zn(function(){Ie(Ge-1)});mn.set(Me,rn)}}return Ie(wn),Me};Si.cancel=function(Oe){var je=mn.get(Oe);return ri(je),zn(je)};var En=Si,Ye={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function ti(Oe,je,wn,Me){var Ie=(0,ft.useRef)(null),Ge=(0,ft.useRef)([]),rn=(0,ft.useState)(Ye),Ln=(0,Vt.Z)(rn,2),Yn=Ln[0],Wn=Ln[1],pn=function(nr){Wn(Ye),Xn(Ye,Yn)||Me==null||Me({transform:Ye,action:nr})},de=function(nr,ir){Ie.current===null&&(Ge.current=[],Ie.current=En(function(){Wn(function(rr){var Vi=rr;return Ge.current.forEach(function(Dr){Vi=(0,xt.Z)((0,xt.Z)({},Vi),Dr)}),Ie.current=null,Me==null||Me({transform:Vi,action:ir}),Vi})})),Ge.current.push((0,xt.Z)((0,xt.Z)({},Yn),nr))},Mi=function(nr,ir,rr,Vi,Dr){var or=Oe.current,Di=or.width,wi=or.height,Qn=or.offsetWidth,Rn=or.offsetHeight,ni=or.offsetLeft,on=or.offsetTop,ui=nr,di=Yn.scale*nr;di>wn?(di=wn,ui=wn/Yn.scale):di<je&&(di=Dr?di:je,ui=di/Yn.scale);var Zi=rr!=null?rr:innerWidth/2,Qi=Vi!=null?Vi:innerHeight/2,$i=ui-1,mr=$i*Di*.5,_r=$i*wi*.5,Ir=$i*(Zi-Yn.x-ni),ao=$i*(Qi-Yn.y-on),Ao=Yn.x-(Ir-mr),Je=Yn.y-(ao-_r);if(nr<1&&di===1){var Kr=Qn*di,Jr=Rn*di,Mo=ut(),dr=Mo.width,To=Mo.height;Kr<=dr&&Jr<=To&&(Ao=0,Je=0)}de({x:Ao,y:Je,scale:di},ir)};return{transform:Yn,resetTransform:pn,updateTransform:de,dispatchZoomChange:Mi}}function xi(Oe,je,wn,Me){var Ie=je+wn,Ge=(wn-Me)/2;if(wn>Me){if(je>0)return(0,qt.Z)({},Oe,Ge);if(je<0&&Ie<Me)return(0,qt.Z)({},Oe,-Ge)}else if(je<0||Ie>Me)return(0,qt.Z)({},Oe,je<0?Ge:-Ge);return{}}function Ui(Oe,je,wn,Me){var Ie=ut(),Ge=Ie.width,rn=Ie.height,Ln=null;return Oe<=Ge&&je<=rn?Ln={x:0,y:0}:(Oe>Ge||je>rn)&&(Ln=(0,xt.Z)((0,xt.Z)({},xi("x",wn,Oe,Ge)),xi("y",Me,je,rn))),Ln}var yn=1,hi=1;function tr(Oe,je,wn,Me,Ie,Ge,rn){var Ln=Ie.rotate,Yn=Ie.scale,Wn=Ie.x,pn=Ie.y,de=(0,ft.useState)(!1),Mi=(0,Vt.Z)(de,2),Wi=Mi[0],nr=Mi[1],ir=(0,ft.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),rr=function(wi){!je||wi.button!==0||(wi.preventDefault(),wi.stopPropagation(),ir.current={diffX:wi.pageX-Wn,diffY:wi.pageY-pn,transformX:Wn,transformY:pn},nr(!0))},Vi=function(wi){wn&&Wi&&Ge({x:wi.pageX-ir.current.diffX,y:wi.pageY-ir.current.diffY},"move")},Dr=function(){if(wn&&Wi){nr(!1);var wi=ir.current,Qn=wi.transformX,Rn=wi.transformY,ni=Wn!==Qn&&pn!==Rn;if(!ni)return;var on=Oe.current.offsetWidth*Yn,ui=Oe.current.offsetHeight*Yn,di=Oe.current.getBoundingClientRect(),Zi=di.left,Qi=di.top,$i=Ln%180!==0,mr=Ui($i?ui:on,$i?on:ui,Zi,Qi);mr&&Ge((0,xt.Z)({},mr),"dragRebound")}},or=function(wi){if(!(!wn||wi.deltaY==0)){var Qn=Math.abs(wi.deltaY/100),Rn=Math.min(Qn,hi),ni=yn+Rn*Me;wi.deltaY>0&&(ni=yn/ni),rn(ni,"wheel",wi.clientX,wi.clientY)}};return(0,ft.useEffect)(function(){var Di,wi,Qn,Rn;if(je){Qn=wr(window,"mouseup",Dr,!1),Rn=wr(window,"mousemove",Vi,!1);try{window.top!==window.self&&(Di=wr(window.top,"mouseup",Dr,!1),wi=wr(window.top,"mousemove",Vi,!1))}catch(ni){Nn(!1,"[rc-image] ".concat(ni))}}return function(){var ni,on,ui,di;(ni=Qn)===null||ni===void 0||ni.remove(),(on=Rn)===null||on===void 0||on.remove(),(ui=Di)===null||ui===void 0||ui.remove(),(di=wi)===null||di===void 0||di.remove()}},[wn,Wi,Wn,pn,Ln,je]),{isMoving:Wi,onMouseDown:rr,onMouseMove:Vi,onMouseUp:Dr,onWheel:or}}function zr(Oe){return new Promise(function(je){if(!Oe){je(!1);return}var wn=document.createElement("img");wn.onerror=function(){return je(!1)},wn.onload=function(){return je(!0)},wn.src=Oe})}function xr(Oe){var je=Oe.src,wn=Oe.isCustomPlaceholder,Me=Oe.fallback,Ie=(0,ft.useState)(wn?"loading":"normal"),Ge=(0,Vt.Z)(Ie,2),rn=Ge[0],Ln=Ge[1],Yn=(0,ft.useRef)(!1),Wn=rn==="error";(0,ft.useEffect)(function(){var Wi=!0;return zr(je).then(function(nr){!nr&&Wi&&Ln("error")}),function(){Wi=!1}},[je]),(0,ft.useEffect)(function(){wn&&!Yn.current?Ln("loading"):Wn&&Ln("normal")},[je]);var pn=function(){Ln("normal")},de=function(nr){Yn.current=!1,rn==="loading"&&nr!==null&&nr!==void 0&&nr.complete&&(nr.naturalWidth||nr.naturalHeight)&&(Yn.current=!0,pn())},Mi=Wn&&Me?{src:Me}:{onLoad:pn,src:je};return[de,Mi,rn]}function li(Oe,je){var wn=Oe.x-je.x,Me=Oe.y-je.y;return Math.hypot(wn,Me)}function ai(Oe,je,wn,Me){var Ie=li(Oe,wn),Ge=li(je,Me);if(Ie===0&&Ge===0)return[Oe.x,Oe.y];var rn=Ie/(Ie+Ge),Ln=Oe.x+rn*(je.x-Oe.x),Yn=Oe.y+rn*(je.y-Oe.y);return[Ln,Yn]}function vi(Oe,je,wn,Me,Ie,Ge,rn){var Ln=Ie.rotate,Yn=Ie.scale,Wn=Ie.x,pn=Ie.y,de=(0,ft.useState)(!1),Mi=(0,Vt.Z)(de,2),Wi=Mi[0],nr=Mi[1],ir=(0,ft.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),rr=function(wi){ir.current=(0,xt.Z)((0,xt.Z)({},ir.current),wi)},Vi=function(wi){if(je){wi.stopPropagation(),nr(!0);var Qn=wi.touches,Rn=Qn===void 0?[]:Qn;Rn.length>1?rr({point1:{x:Rn[0].clientX,y:Rn[0].clientY},point2:{x:Rn[1].clientX,y:Rn[1].clientY},eventType:"touchZoom"}):rr({point1:{x:Rn[0].clientX-Wn,y:Rn[0].clientY-pn},eventType:"move"})}},Dr=function(wi){var Qn=wi.touches,Rn=Qn===void 0?[]:Qn,ni=ir.current,on=ni.point1,ui=ni.point2,di=ni.eventType;if(Rn.length>1&&di==="touchZoom"){var Zi={x:Rn[0].clientX,y:Rn[0].clientY},Qi={x:Rn[1].clientX,y:Rn[1].clientY},$i=ai(on,ui,Zi,Qi),mr=(0,Vt.Z)($i,2),_r=mr[0],Ir=mr[1],ao=li(Zi,Qi)/li(on,ui);rn(ao,"touchZoom",_r,Ir,!0),rr({point1:Zi,point2:Qi,eventType:"touchZoom"})}else di==="move"&&(Ge({x:Rn[0].clientX-on.x,y:Rn[0].clientY-on.y},"move"),rr({eventType:"move"}))},or=function(){if(wn){if(Wi&&nr(!1),rr({eventType:"none"}),Me>Yn)return Ge({x:0,y:0,scale:Me},"touchZoom");var wi=Oe.current.offsetWidth*Yn,Qn=Oe.current.offsetHeight*Yn,Rn=Oe.current.getBoundingClientRect(),ni=Rn.left,on=Rn.top,ui=Ln%180!==0,di=Ui(ui?Qn:wi,ui?wi:Qn,ni,on);di&&Ge((0,xt.Z)({},di),"dragRebound")}};return(0,ft.useEffect)(function(){var Di;return wn&&je&&(Di=wr(window,"touchmove",function(wi){return wi.preventDefault()},{passive:!1})),function(){var wi;(wi=Di)===null||wi===void 0||wi.remove()}},[wn,je]),{isTouching:Wi,onTouchStart:Vi,onTouchMove:Dr,onTouchEnd:or}}var qi=["fallback","src","imgRef"],Lr=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],In=function(je){var wn=je.fallback,Me=je.src,Ie=je.imgRef,Ge=(0,Dt.Z)(je,qi),rn=xr({src:Me,fallback:wn}),Ln=(0,Vt.Z)(rn,2),Yn=Ln[0],Wn=Ln[1];return ft.createElement("img",(0,Jt.Z)({ref:function(de){Ie.current=de,Yn(de)}},Ge,Wn))},Ai=function(je){var wn=je.prefixCls,Me=je.src,Ie=je.alt,Ge=je.imageInfo,rn=je.fallback,Ln=je.movable,Yn=Ln===void 0?!0:Ln,Wn=je.onClose,pn=je.visible,de=je.icons,Mi=de===void 0?{}:de,Wi=je.rootClassName,nr=je.closeIcon,ir=je.getContainer,rr=je.current,Vi=rr===void 0?0:rr,Dr=je.count,or=Dr===void 0?1:Dr,Di=je.countRender,wi=je.scaleStep,Qn=wi===void 0?.5:wi,Rn=je.minScale,ni=Rn===void 0?1:Rn,on=je.maxScale,ui=on===void 0?50:on,di=je.transitionName,Zi=di===void 0?"zoom":di,Qi=je.maskTransitionName,$i=Qi===void 0?"fade":Qi,mr=je.imageRender,_r=je.imgCommonProps,Ir=je.toolbarRender,ao=je.onTransform,Ao=je.onChange,Je=(0,Dt.Z)(je,Lr),Kr=(0,ft.useRef)(),Jr=(0,ft.useContext)(Ri),Mo=Jr&&or>1,dr=Jr&&or>=1,To=(0,ft.useState)(!0),oo=(0,Vt.Z)(To,2),No=oo[0],ur=oo[1],Br=ti(Kr,ni,ui,ao),Ti=Br.transform,Yi=Br.resetTransform,sr=Br.updateTransform,kr=Br.dispatchZoomChange,ii=tr(Kr,Yn,pn,Qn,Ti,sr,kr),so=ii.isMoving,Zr=ii.onMouseDown,uo=ii.onWheel,_o=vi(Kr,Yn,pn,ni,Ti,sr,kr),ts=_o.isTouching,_n=_o.onTouchStart,no=_o.onTouchMove,ho=_o.onTouchEnd,es=Ti.rotate,qr=Ti.scale,Qo=Et()((0,qt.Z)({},"".concat(wn,"-moving"),so));(0,ft.useEffect)(function(){No||ur(!0)},[No]);var Gi=function(){Yi("close")},ga=function(){kr(yn+Qn,"zoomIn")},Vo=function(){kr(yn/(yn+Qn),"zoomOut")},Ro=function(){sr({rotate:es+90},"rotateRight")},ws=function(){sr({rotate:es-90},"rotateLeft")},Qa=function(){sr({flipX:!Ti.flipX},"flipX")},dl=function(){sr({flipY:!Ti.flipY},"flipY")},ta=function(){Yi("reset")},pa=function(ja){var qa=Vi+ja;!Number.isInteger(qa)||qa<0||qa>or-1||(ur(!1),Yi(ja<0?"prev":"next"),Ao==null||Ao(qa,Vi))},lh=function(ja){!pn||!Mo||(ja.keyCode===Sr.LEFT?pa(-1):ja.keyCode===Sr.RIGHT&&pa(1))},Bc=function(ja){pn&&(qr!==1?sr({x:0,y:0,scale:1},"doubleClick"):kr(yn+Qn,"doubleClick",ja.clientX,ja.clientY))};(0,ft.useEffect)(function(){var ea=wr(window,"keydown",lh,!1);return function(){ea.remove()}},[pn,Mo,Vi]);var uh=ft.createElement(In,(0,Jt.Z)({},_r,{width:je.width,height:je.height,imgRef:Kr,className:"".concat(wn,"-img"),alt:Ie,style:{transform:"translate3d(".concat(Ti.x,"px, ").concat(Ti.y,"px, 0) scale3d(").concat(Ti.flipX?"-":"").concat(qr,", ").concat(Ti.flipY?"-":"").concat(qr,", 1) rotate(").concat(es,"deg)"),transitionDuration:(!No||ts)&&"0s"},fallback:rn,src:Me,onWheel:uo,onMouseDown:Zr,onDoubleClick:Bc,onTouchStart:_n,onTouchMove:no,onTouchEnd:ho,onTouchCancel:ho})),Qh=(0,xt.Z)({url:Me,alt:Ie},Ge);return ft.createElement(ft.Fragment,null,ft.createElement(Ar,(0,Jt.Z)({transitionName:Zi,maskTransitionName:$i,closable:!1,keyboard:!0,prefixCls:wn,onClose:Wn,visible:pn,classNames:{wrapper:Qo},rootClassName:Wi,getContainer:ir},Je,{afterClose:Gi}),ft.createElement("div",{className:"".concat(wn,"-img-wrapper")},mr?mr(uh,(0,xt.Z)({transform:Ti,image:Qh},Jr?{current:Vi}:{})):uh)),ft.createElement(Ut,{visible:pn,transform:Ti,maskTransitionName:$i,closeIcon:nr,getContainer:ir,prefixCls:wn,rootClassName:Wi,icons:Mi,countRender:Di,showSwitch:Mo,showProgress:dr,current:Vi,count:or,scale:qr,minScale:ni,maxScale:ui,toolbarRender:Ir,onActive:pa,onZoomIn:ga,onZoomOut:Vo,onRotateRight:Ro,onRotateLeft:ws,onFlipX:Qa,onFlipY:dl,onClose:Wn,onReset:ta,zIndex:Je.zIndex!==void 0?Je.zIndex+1:void 0,image:Qh}))},$o=Ai,xo=he(74902),to=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function qe(Oe){var je=ft.useState({}),wn=(0,Vt.Z)(je,2),Me=wn[0],Ie=wn[1],Ge=ft.useCallback(function(Ln,Yn){return Ie(function(Wn){return(0,xt.Z)((0,xt.Z)({},Wn),{},(0,qt.Z)({},Ln,Yn))}),function(){Ie(function(Wn){var pn=(0,xt.Z)({},Wn);return delete pn[Ln],pn})}},[]),rn=ft.useMemo(function(){return Oe?Oe.map(function(Ln){if(typeof Ln=="string")return{data:{src:Ln}};var Yn={};return Object.keys(Ln).forEach(function(Wn){["src"].concat((0,xo.Z)(to)).includes(Wn)&&(Yn[Wn]=Ln[Wn])}),{data:Yn}}):Object.keys(Me).reduce(function(Ln,Yn){var Wn=Me[Yn],pn=Wn.canPreview,de=Wn.data;return pn&&Ln.push({data:de,id:Yn}),Ln},[])},[Oe,Me]);return[rn,Ge,!!Oe]}var Oi=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ar=["src"],Pi=function(je){var wn,Me=je.previewPrefixCls,Ie=Me===void 0?"rc-image-preview":Me,Ge=je.children,rn=je.icons,Ln=rn===void 0?{}:rn,Yn=je.items,Wn=je.preview,pn=je.fallback,de=(0,Rt.Z)(Wn)==="object"?Wn:{},Mi=de.visible,Wi=de.onVisibleChange,nr=de.getContainer,ir=de.current,rr=de.movable,Vi=de.minScale,Dr=de.maxScale,or=de.countRender,Di=de.closeIcon,wi=de.onChange,Qn=de.onTransform,Rn=de.toolbarRender,ni=de.imageRender,on=(0,Dt.Z)(de,Oi),ui=qe(Yn),di=(0,Vt.Z)(ui,3),Zi=di[0],Qi=di[1],$i=di[2],mr=Pe(0,{value:ir}),_r=(0,Vt.Z)(mr,2),Ir=_r[0],ao=_r[1],Ao=(0,ft.useState)(!1),Je=(0,Vt.Z)(Ao,2),Kr=Je[0],Jr=Je[1],Mo=((wn=Zi[Ir])===null||wn===void 0?void 0:wn.data)||{},dr=Mo.src,To=(0,Dt.Z)(Mo,ar),oo=Pe(!!Mi,{value:Mi,onChange:function(ts,_n){Wi==null||Wi(ts,_n,Ir)}}),No=(0,Vt.Z)(oo,2),ur=No[0],Br=No[1],Ti=(0,ft.useState)(null),Yi=(0,Vt.Z)(Ti,2),sr=Yi[0],kr=Yi[1],ii=ft.useCallback(function(_o,ts,_n,no){var ho=$i?Zi.findIndex(function(es){return es.data.src===ts}):Zi.findIndex(function(es){return es.id===_o});ao(ho<0?0:ho),Br(!0),kr({x:_n,y:no}),Jr(!0)},[Zi,$i]);ft.useEffect(function(){ur?Kr||ao(0):Jr(!1)},[ur]);var so=function(ts,_n){ao(ts),wi==null||wi(ts,_n)},Zr=function(){Br(!1),kr(null)},uo=ft.useMemo(function(){return{register:Qi,onPreview:ii}},[Qi,ii]);return ft.createElement(Ri.Provider,{value:uo},Ge,ft.createElement($o,(0,Jt.Z)({"aria-hidden":!ur,movable:rr,visible:ur,prefixCls:Ie,closeIcon:Di,onClose:Zr,mousePosition:sr,imgCommonProps:To,src:dr,fallback:pn,icons:Ln,minScale:Vi,maxScale:Dr,getContainer:nr,current:Ir,count:Zi.length,countRender:or,onTransform:Qn,toolbarRender:Rn,imageRender:ni,onChange:so},on)))},Gr=Pi,lr=0;function yr(Oe,je){var wn=ft.useState(function(){return lr+=1,String(lr)}),Me=(0,Vt.Z)(wn,1),Ie=Me[0],Ge=ft.useContext(Ri),rn={data:je,canPreview:Oe};return ft.useEffect(function(){if(Ge)return Ge.register(Ie,rn)},[]),ft.useEffect(function(){Ge&&Ge.register(Ie,rn)},[Oe,je]),Ie}var cr=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],er=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Er=function(je){var wn=je.src,Me=je.alt,Ie=je.onPreviewClose,Ge=je.prefixCls,rn=Ge===void 0?"rc-image":Ge,Ln=je.previewPrefixCls,Yn=Ln===void 0?"".concat(rn,"-preview"):Ln,Wn=je.placeholder,pn=je.fallback,de=je.width,Mi=je.height,Wi=je.style,nr=je.preview,ir=nr===void 0?!0:nr,rr=je.className,Vi=je.onClick,Dr=je.onError,or=je.wrapperClassName,Di=je.wrapperStyle,wi=je.rootClassName,Qn=(0,Dt.Z)(je,cr),Rn=Wn&&Wn!==!0,ni=(0,Rt.Z)(ir)==="object"?ir:{},on=ni.src,ui=ni.visible,di=ui===void 0?void 0:ui,Zi=ni.onVisibleChange,Qi=Zi===void 0?Ie:Zi,$i=ni.getContainer,mr=$i===void 0?void 0:$i,_r=ni.mask,Ir=ni.maskClassName,ao=ni.movable,Ao=ni.icons,Je=ni.scaleStep,Kr=ni.minScale,Jr=ni.maxScale,Mo=ni.imageRender,dr=ni.toolbarRender,To=(0,Dt.Z)(ni,er),oo=on!=null?on:wn,No=Pe(!!di,{value:di,onChange:Qi}),ur=(0,Vt.Z)(No,2),Br=ur[0],Ti=ur[1],Yi=xr({src:wn,isCustomPlaceholder:Rn,fallback:pn}),sr=(0,Vt.Z)(Yi,3),kr=sr[0],ii=sr[1],so=sr[2],Zr=(0,ft.useState)(null),uo=(0,Vt.Z)(Zr,2),_o=uo[0],ts=uo[1],_n=(0,ft.useContext)(Ri),no=!!ir,ho=function(){Ti(!1),ts(null)},es=Et()(rn,or,wi,(0,qt.Z)({},"".concat(rn,"-error"),so==="error")),qr=(0,ft.useMemo)(function(){var Vo={};return to.forEach(function(Ro){je[Ro]!==void 0&&(Vo[Ro]=je[Ro])}),Vo},to.map(function(Vo){return je[Vo]})),Qo=(0,ft.useMemo)(function(){return(0,xt.Z)((0,xt.Z)({},qr),{},{src:oo})},[oo,qr]),Gi=yr(no,Qo),ga=function(Ro){var ws=gt(Ro.target),Qa=ws.left,dl=ws.top;_n?_n.onPreview(Gi,oo,Qa,dl):(ts({x:Qa,y:dl}),Ti(!0)),Vi==null||Vi(Ro)};return ft.createElement(ft.Fragment,null,ft.createElement("div",(0,Jt.Z)({},Qn,{className:es,onClick:no?ga:Vi,style:(0,xt.Z)({width:de,height:Mi},Di)}),ft.createElement("img",(0,Jt.Z)({},qr,{className:Et()("".concat(rn,"-img"),(0,qt.Z)({},"".concat(rn,"-img-placeholder"),Wn===!0),rr),style:(0,xt.Z)({height:Mi},Wi),ref:kr},ii,{width:de,height:Mi,onError:Dr})),so==="loading"&&ft.createElement("div",{"aria-hidden":"true",className:"".concat(rn,"-placeholder")},Wn),_r&&no&&ft.createElement("div",{className:Et()("".concat(rn,"-mask"),Ir),style:{display:(Wi==null?void 0:Wi.display)==="none"?"none":void 0}},_r)),!_n&&no&&ft.createElement($o,(0,Jt.Z)({"aria-hidden":!Br,visible:Br,prefixCls:Yn,onClose:ho,mousePosition:_o,src:oo,alt:Me,imageInfo:{width:de,height:Mi},fallback:pn,getContainer:mr,icons:Ao,movable:ao,scaleStep:Je,minScale:Kr,maxScale:Jr,rootClassName:wi,imageRender:Mo,imgCommonProps:qr,toolbarRender:dr},To)))};Er.PreviewGroup=Gr;var Cn=Er,eo=Cn},31457:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return _e}});var Jt=he(4942),xt=he(87462),qt=he(71002),Vt=he(1413),Rt=he(97685),Dt=he(94184),St=he.n(Dt),Et=he(67294);function Nt(Fe){var Ae=Et.useRef();Ae.current=Fe;var oe=Et.useCallback(function(){for(var Mt,At=arguments.length,Qt=new Array(At),se=0;se<At;se++)Qt[se]=arguments[se];return(Mt=Ae.current)===null||Mt===void 0?void 0:Mt.call.apply(Mt,[Ae].concat(Qt))},[]);return oe}function Pt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ct=Pt()?Et.useLayoutEffect:Et.useEffect,Lt=function(Ae,oe){var Mt=Et.useRef(!0);Ct(function(){return Ae(Mt.current)},oe),Ct(function(){return Mt.current=!1,function(){Mt.current=!0}},[])},Ft=function(Ae,oe){Lt(function(Mt){if(!Mt)return Ae()},oe)},vt=null;function et(Fe){var Ae=Et.useRef(!1),oe=Et.useState(Fe),Mt=(0,Rt.Z)(oe,2),At=Mt[0],Qt=Mt[1];Et.useEffect(function(){return Ae.current=!1,function(){Ae.current=!0}},[]);function se(Kt,It){It&&Ae.current||Qt(Kt)}return[At,se]}function tt(Fe){return Fe!==void 0}function st(Fe,Ae){var oe=Ae||{},Mt=oe.defaultValue,At=oe.value,Qt=oe.onChange,se=oe.postState,Kt=et(function(){return tt(At)?At:tt(Mt)?typeof Mt=="function"?Mt():Mt:typeof Fe=="function"?Fe():Fe}),It=(0,Rt.Z)(Kt,2),bt=It[0],Bt=It[1],ie=At!==void 0?At:bt,Wt=se?se(ie):ie,Zt=Nt(Qt),fe=et([ie]),ke=(0,Rt.Z)(fe,2),tn=ke[0],dn=ke[1];Ft(function(){var Bn=tn[0];bt!==Bn&&Zt(bt,Bn)},[tn]),Ft(function(){tt(At)||Bt(At)},[At]);var ln=Nt(function(Bn,Vn){Bt(Bn,Vn),dn([ie],Vn)});return[Wt,ln]}var rt={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(Ae){var oe=Ae.keyCode;if(Ae.altKey&&!Ae.ctrlKey||Ae.metaKey||oe>=rt.F1&&oe<=rt.F12)return!1;switch(oe){case rt.ALT:case rt.CAPS_LOCK:case rt.CONTEXT_MENU:case rt.CTRL:case rt.DOWN:case rt.END:case rt.ESC:case rt.HOME:case rt.INSERT:case rt.LEFT:case rt.MAC_FF_META:case rt.META:case rt.NUMLOCK:case rt.NUM_CENTER:case rt.PAGE_DOWN:case rt.PAGE_UP:case rt.PAUSE:case rt.PRINT_SCREEN:case rt.RIGHT:case rt.SHIFT:case rt.UP:case rt.WIN_KEY:case rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ae){if(Ae>=rt.ZERO&&Ae<=rt.NINE||Ae>=rt.NUM_ZERO&&Ae<=rt.NUM_MULTIPLY||Ae>=rt.A&&Ae<=rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ae===0)return!0;switch(Ae){case rt.SPACE:case rt.QUESTION_MARK:case rt.NUM_PLUS:case rt.NUM_MINUS:case rt.NUM_PERIOD:case rt.NUM_DIVISION:case rt.SEMICOLON:case rt.DASH:case rt.EQUALS:case rt.COMMA:case rt.PERIOD:case rt.SLASH:case rt.APOSTROPHE:case rt.SINGLE_QUOTE:case rt.OPEN_SQUARE_BRACKET:case rt.BACKSLASH:case rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ut=rt,ct=`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`,gt=`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`,ft="".concat(ct," ").concat(gt).split(/[\s\n]+/),kt="aria-",jt="data-";function Ht(Fe,Ae){return Fe.indexOf(Ae)===0}function Ot(Fe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe;Ae===!1?oe={aria:!0,data:!0,attr:!0}:Ae===!0?oe={aria:!0}:oe=(0,Vt.Z)({},Ae);var Mt={};return Object.keys(Fe).forEach(function(At){(oe.aria&&(At==="role"||Ht(At,kt))||oe.data&&Ht(At,jt)||oe.attr&&ft.includes(At))&&(Mt[At]=Fe[At])}),Mt}var te={},ne=[],Xt=function(Ae){ne.push(Ae)};function ce(Fe,Ae){if(0)var oe}function me(Fe,Ae){if(0)var oe}function Pe(){te={}}function De(Fe,Ae,oe){!Ae&&!te[oe]&&(Fe(!1,oe),te[oe]=!0)}function Ve(Fe,Ae){De(ce,Fe,Ae)}function we(Fe,Ae){De(me,Fe,Ae)}Ve.preMessage=Xt,Ve.resetWarned=Pe,Ve.noteOnce=we;var Qe=null,ae=he(81626),_t=[10,20,50,100],$t=function(Ae){var oe=Ae.pageSizeOptions,Mt=oe===void 0?_t:oe,At=Ae.locale,Qt=Ae.changeSize,se=Ae.pageSize,Kt=Ae.goButton,It=Ae.quickGo,bt=Ae.rootPrefixCls,Bt=Ae.disabled,ie=Ae.buildOptionText,Wt=Ae.showSizeChanger,Zt=Ae.sizeChangerRender,fe=Et.useState(""),ke=(0,Rt.Z)(fe,2),tn=ke[0],dn=ke[1],ln=function(){return!tn||Number.isNaN(tn)?void 0:Number(tn)},Bn=typeof ie=="function"?ie:function(qn){return"".concat(qn," ").concat(At.items_per_page)},Vn=function(Ii){dn(Ii.target.value)},Tn=function(Ii){Kt||tn===""||(dn(""),!(Ii.relatedTarget&&(Ii.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Ii.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&(It==null||It(ln())))},un=function(Ii){tn!==""&&(Ii.keyCode===ut.ENTER||Ii.type==="click")&&(dn(""),It==null||It(ln()))},si=function(){return Mt.some(function(Ii){return Ii.toString()===se.toString()})?Mt:Mt.concat([se]).sort(function(Ii,pr){var Ar=Number.isNaN(Number(Ii))?0:Number(Ii),Or=Number.isNaN(Number(pr))?0:Number(pr);return Ar-Or})},ei="".concat(bt,"-options");if(!Wt&&!It)return null;var fi=null,bi=null,Ni=null;return Wt&&Zt&&(fi=Zt({disabled:Bt,size:se,onSizeChange:function(Ii){Qt==null||Qt(Number(Ii))},"aria-label":At.page_size,className:"".concat(ei,"-size-changer"),options:si().map(function(qn){return{label:Bn(qn),value:qn}})})),It&&(Kt&&(Ni=typeof Kt=="boolean"?Et.createElement("button",{type:"button",onClick:un,onKeyUp:un,disabled:Bt,className:"".concat(ei,"-quick-jumper-button")},At.jump_to_confirm):Et.createElement("span",{onClick:un,onKeyUp:un},Kt)),bi=Et.createElement("div",{className:"".concat(ei,"-quick-jumper")},At.jump_to,Et.createElement("input",{disabled:Bt,type:"text",value:tn,onChange:Vn,onKeyUp:un,onBlur:Tn,"aria-label":At.page}),At.page,Ni)),Et.createElement("li",{className:ei},fi,bi)},re=$t,pe=function(Ae){var oe=Ae.rootPrefixCls,Mt=Ae.page,At=Ae.active,Qt=Ae.className,se=Ae.showTitle,Kt=Ae.onClick,It=Ae.onKeyPress,bt=Ae.itemRender,Bt="".concat(oe,"-item"),ie=St()(Bt,"".concat(Bt,"-").concat(Mt),(0,Jt.Z)((0,Jt.Z)({},"".concat(Bt,"-active"),At),"".concat(Bt,"-disabled"),!Mt),Qt),Wt=function(){Kt(Mt)},Zt=function(tn){It(tn,Kt,Mt)},fe=bt(Mt,"page",Et.createElement("a",{rel:"nofollow"},Mt));return fe?Et.createElement("li",{title:se?String(Mt):null,className:ie,onClick:Wt,onKeyDown:Zt,tabIndex:0},fe):null},le=pe,Ue=function(Ae,oe,Mt){return Mt};function Ne(){}function Xe(Fe){var Ae=Number(Fe);return typeof Ae=="number"&&!Number.isNaN(Ae)&&isFinite(Ae)&&Math.floor(Ae)===Ae}function Le(Fe,Ae,oe){var Mt=typeof Fe=="undefined"?Ae:Fe;return Math.floor((oe-1)/Mt)+1}var xe=function(Ae){var oe=Ae.prefixCls,Mt=oe===void 0?"rc-pagination":oe,At=Ae.selectPrefixCls,Qt=At===void 0?"rc-select":At,se=Ae.className,Kt=Ae.current,It=Ae.defaultCurrent,bt=It===void 0?1:It,Bt=Ae.total,ie=Bt===void 0?0:Bt,Wt=Ae.pageSize,Zt=Ae.defaultPageSize,fe=Zt===void 0?10:Zt,ke=Ae.onChange,tn=ke===void 0?Ne:ke,dn=Ae.hideOnSinglePage,ln=Ae.align,Bn=Ae.showPrevNextJumpers,Vn=Bn===void 0?!0:Bn,Tn=Ae.showQuickJumper,un=Ae.showLessItems,si=Ae.showTitle,ei=si===void 0?!0:si,fi=Ae.onShowSizeChange,bi=fi===void 0?Ne:fi,Ni=Ae.locale,qn=Ni===void 0?ae.Z:Ni,Ii=Ae.style,pr=Ae.totalBoundaryShowSizeChanger,Ar=pr===void 0?50:pr,Or=Ae.disabled,wr=Ae.simple,Fi=Ae.showTotal,Sr=Ae.showSizeChanger,Ri=Sr===void 0?ie>Ar:Sr,vn=Ae.sizeChangerRender,Ut=Ae.pageSizeOptions,cn=Ae.itemRender,Pn=cn===void 0?Ue:cn,kn=Ae.jumpPrevIcon,Nn=Ae.jumpNextIcon,On=Ae.prevIcon,Hn=Ae.nextIcon,gi=Et.useRef(null),nn=st(10,{value:Wt,defaultValue:fe}),en=(0,Rt.Z)(nn,2),We=en[0],sn=en[1],Xn=st(1,{value:Kt,defaultValue:bt,postState:function(ui){return Math.max(1,Math.min(ui,Le(void 0,We,ie)))}}),Zn=(0,Rt.Z)(Xn,2),zn=Zn[0],Ze=Zn[1],mn=Et.useState(zn),ri=(0,Rt.Z)(mn,2),Si=ri[0],En=ri[1];(0,Et.useEffect)(function(){En(zn)},[zn]);var Ye=tn!==Ne,ti="current"in Ae,xi=Math.max(1,zn-(un?3:5)),Ui=Math.min(Le(void 0,We,ie),zn+(un?3:5));function yn(on,ui){var di=on||Et.createElement("button",{type:"button","aria-label":ui,className:"".concat(Mt,"-item-link")});return typeof on=="function"&&(di=Et.createElement(on,(0,Vt.Z)({},Ae))),di}function hi(on){var ui=on.target.value,di=Le(void 0,We,ie),Zi;return ui===""?Zi=ui:Number.isNaN(Number(ui))?Zi=Si:ui>=di?Zi=di:Zi=Number(ui),Zi}function tr(on){return Xe(on)&&on!==zn&&Xe(ie)&&ie>0}var zr=ie>We?Tn:!1;function xr(on){(on.keyCode===ut.UP||on.keyCode===ut.DOWN)&&on.preventDefault()}function li(on){var ui=hi(on);switch(ui!==Si&&En(ui),on.keyCode){case ut.ENTER:qi(ui);break;case ut.UP:qi(ui-1);break;case ut.DOWN:qi(ui+1);break;default:break}}function ai(on){qi(hi(on))}function vi(on){var ui=Le(on,We,ie),di=zn>ui&&ui!==0?ui:zn;sn(on),En(di),bi==null||bi(zn,on),Ze(di),tn==null||tn(di,on)}function qi(on){if(tr(on)&&!Or){var ui=Le(void 0,We,ie),di=on;return on>ui?di=ui:on<1&&(di=1),di!==Si&&En(di),Ze(di),tn==null||tn(di,We),di}return zn}var Lr=zn>1,In=zn<Le(void 0,We,ie);function Ai(){Lr&&qi(zn-1)}function $o(){In&&qi(zn+1)}function xo(){qi(xi)}function to(){qi(Ui)}function qe(on,ui){if(on.key==="Enter"||on.charCode===ut.ENTER||on.keyCode===ut.ENTER){for(var di=arguments.length,Zi=new Array(di>2?di-2:0),Qi=2;Qi<di;Qi++)Zi[Qi-2]=arguments[Qi];ui.apply(void 0,Zi)}}function Oi(on){qe(on,Ai)}function ar(on){qe(on,$o)}function Pi(on){qe(on,xo)}function Gr(on){qe(on,to)}function lr(on){var ui=Pn(on,"prev",yn(On,"prev page"));return Et.isValidElement(ui)?Et.cloneElement(ui,{disabled:!Lr}):ui}function yr(on){var ui=Pn(on,"next",yn(Hn,"next page"));return Et.isValidElement(ui)?Et.cloneElement(ui,{disabled:!In}):ui}function cr(on){(on.type==="click"||on.keyCode===ut.ENTER)&&qi(Si)}var er=null,Er=Ot(Ae,{aria:!0,data:!0}),Cn=Fi&&Et.createElement("li",{className:"".concat(Mt,"-total-text")},Fi(ie,[ie===0?0:(zn-1)*We+1,zn*We>ie?ie:zn*We])),eo=null,Oe=Le(void 0,We,ie);if(dn&&ie<=We)return null;var je=[],wn={rootPrefixCls:Mt,onClick:qi,onKeyPress:qe,showTitle:ei,itemRender:Pn,page:-1},Me=zn-1>0?zn-1:0,Ie=zn+1<Oe?zn+1:Oe,Ge=Tn&&Tn.goButton,rn=(0,qt.Z)(wr)==="object"?wr.readOnly:!wr,Ln=Ge,Yn=null;wr&&(Ge&&(typeof Ge=="boolean"?Ln=Et.createElement("button",{type:"button",onClick:cr,onKeyUp:cr},qn.jump_to_confirm):Ln=Et.createElement("span",{onClick:cr,onKeyUp:cr},Ge),Ln=Et.createElement("li",{title:ei?"".concat(qn.jump_to).concat(zn,"/").concat(Oe):null,className:"".concat(Mt,"-simple-pager")},Ln)),Yn=Et.createElement("li",{title:ei?"".concat(zn,"/").concat(Oe):null,className:"".concat(Mt,"-simple-pager")},rn?Si:Et.createElement("input",{type:"text","aria-label":qn.jump_to,value:Si,disabled:Or,onKeyDown:xr,onKeyUp:li,onChange:li,onBlur:ai,size:3}),Et.createElement("span",{className:"".concat(Mt,"-slash")},"/"),Oe));var Wn=un?1:2;if(Oe<=3+Wn*2){Oe||je.push(Et.createElement(le,(0,xt.Z)({},wn,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var pn=1;pn<=Oe;pn+=1)je.push(Et.createElement(le,(0,xt.Z)({},wn,{key:pn,page:pn,active:zn===pn})))}else{var de=un?qn.prev_3:qn.prev_5,Mi=un?qn.next_3:qn.next_5,Wi=Pn(xi,"jump-prev",yn(kn,"prev page")),nr=Pn(Ui,"jump-next",yn(Nn,"next page"));Vn&&(er=Wi?Et.createElement("li",{title:ei?de:null,key:"prev",onClick:xo,tabIndex:0,onKeyDown:Pi,className:St()("".concat(Mt,"-jump-prev"),(0,Jt.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!kn))},Wi):null,eo=nr?Et.createElement("li",{title:ei?Mi:null,key:"next",onClick:to,tabIndex:0,onKeyDown:Gr,className:St()("".concat(Mt,"-jump-next"),(0,Jt.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!Nn))},nr):null);var ir=Math.max(1,zn-Wn),rr=Math.min(zn+Wn,Oe);zn-1<=Wn&&(rr=1+Wn*2),Oe-zn<=Wn&&(ir=Oe-Wn*2);for(var Vi=ir;Vi<=rr;Vi+=1)je.push(Et.createElement(le,(0,xt.Z)({},wn,{key:Vi,page:Vi,active:zn===Vi})));if(zn-1>=Wn*2&&zn!==3&&(je[0]=Et.cloneElement(je[0],{className:St()("".concat(Mt,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(er)),Oe-zn>=Wn*2&&zn!==Oe-2){var Dr=je[je.length-1];je[je.length-1]=Et.cloneElement(Dr,{className:St()("".concat(Mt,"-item-before-jump-next"),Dr.props.className)}),je.push(eo)}ir!==1&&je.unshift(Et.createElement(le,(0,xt.Z)({},wn,{key:1,page:1}))),rr!==Oe&&je.push(Et.createElement(le,(0,xt.Z)({},wn,{key:Oe,page:Oe})))}var or=lr(Me);if(or){var Di=!Lr||!Oe;or=Et.createElement("li",{title:ei?qn.prev_page:null,onClick:Ai,tabIndex:Di?null:0,onKeyDown:Oi,className:St()("".concat(Mt,"-prev"),(0,Jt.Z)({},"".concat(Mt,"-disabled"),Di)),"aria-disabled":Di},or)}var wi=yr(Ie);if(wi){var Qn,Rn;wr?(Qn=!In,Rn=Lr?0:null):(Qn=!In||!Oe,Rn=Qn?null:0),wi=Et.createElement("li",{title:ei?qn.next_page:null,onClick:$o,tabIndex:Rn,onKeyDown:ar,className:St()("".concat(Mt,"-next"),(0,Jt.Z)({},"".concat(Mt,"-disabled"),Qn)),"aria-disabled":Qn},wi)}var ni=St()(Mt,se,(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},"".concat(Mt,"-start"),ln==="start"),"".concat(Mt,"-center"),ln==="center"),"".concat(Mt,"-end"),ln==="end"),"".concat(Mt,"-simple"),wr),"".concat(Mt,"-disabled"),Or));return Et.createElement("ul",(0,xt.Z)({className:ni,style:Ii,ref:gi},Er),Cn,or,wr?Yn:je,wi,Et.createElement(re,{locale:qn,rootPrefixCls:Mt,disabled:Or,selectPrefixCls:Qt,changeSize:vi,pageSize:We,pageSizeOptions:Ut,quickGo:zr?qi:null,goButton:Ln,showSizeChanger:Ri,sizeChangerRender:vn}))},_e=xe},43579:function(An,jn,he){"use strict";he.d(jn,{Cd:function(){return ne}});var Jt=he(87462),xt=he(1413),qt=he(45987),Vt=he(67294),Rt=he(94184),Dt=he.n(Rt),St={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Et=function(){var me=(0,Vt.useRef)([]),Pe=(0,Vt.useRef)(null);return(0,Vt.useEffect)(function(){var De=Date.now(),Ve=!1;me.current.forEach(function(we){if(we){Ve=!0;var Qe=we.style;Qe.transitionDuration=".3s, .3s, .3s, .06s",Pe.current&&De-Pe.current<100&&(Qe.transitionDuration="0s, 0s")}}),Ve&&(Pe.current=Date.now())}),me.current},Nt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Pt=function(me){var Pe=(0,xt.Z)((0,xt.Z)({},St),me),De=Pe.className,Ve=Pe.percent,we=Pe.prefixCls,Qe=Pe.strokeColor,ae=Pe.strokeLinecap,_t=Pe.strokeWidth,$t=Pe.style,re=Pe.trailColor,pe=Pe.trailWidth,le=Pe.transition,Ue=(0,qt.Z)(Pe,Nt);delete Ue.gapPosition;var Ne=Array.isArray(Ve)?Ve:[Ve],Xe=Array.isArray(Qe)?Qe:[Qe],Le=Et(),xe=_t/2,_e=100-_t/2,Fe="M ".concat(ae==="round"?xe:0,",").concat(xe,`
|
|
L `).concat(ae==="round"?_e:100,",").concat(xe),Ae="0 0 100 ".concat(_t),oe=0;return Vt.createElement("svg",(0,Jt.Z)({className:Dt()("".concat(we,"-line"),De),viewBox:Ae,preserveAspectRatio:"none",style:$t},Ue),Vt.createElement("path",{className:"".concat(we,"-line-trail"),d:Fe,strokeLinecap:ae,stroke:re,strokeWidth:pe||_t,fillOpacity:"0"}),Ne.map(function(Mt,At){var Qt=1;switch(ae){case"round":Qt=1-_t/100;break;case"square":Qt=1-_t/2/100;break;default:Qt=1;break}var se={strokeDasharray:"".concat(Mt*Qt,"px, 100px"),strokeDashoffset:"-".concat(oe,"px"),transition:le||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Kt=Xe[At]||Xe[Xe.length-1];return oe+=Mt,Vt.createElement("path",{key:At,className:"".concat(we,"-line-path"),d:Fe,strokeLinecap:ae,stroke:Kt,strokeWidth:_t,fillOpacity:"0",ref:function(bt){Le[At]=bt},style:se})}))},Ct=Pt,Lt=he(71002),Ft=he(97685),vt=he(98924),et=0,tt=(0,vt.Z)();function st(){var ce;return tt?(ce=et,et+=1):ce="TEST_OR_SSR",ce}var rt=function(ce){var me=Vt.useState(),Pe=(0,Ft.Z)(me,2),De=Pe[0],Ve=Pe[1];return Vt.useEffect(function(){Ve("rc_progress_".concat(st()))},[]),ce||De},ut=function(me){var Pe=me.bg,De=me.children;return Vt.createElement("div",{style:{width:"100%",height:"100%",background:Pe}},De)};function ct(ce,me){return Object.keys(ce).map(function(Pe){var De=parseFloat(Pe),Ve="".concat(Math.floor(De*me),"%");return"".concat(ce[Pe]," ").concat(Ve)})}var gt=Vt.forwardRef(function(ce,me){var Pe=ce.prefixCls,De=ce.color,Ve=ce.gradientId,we=ce.radius,Qe=ce.style,ae=ce.ptg,_t=ce.strokeLinecap,$t=ce.strokeWidth,re=ce.size,pe=ce.gapDegree,le=De&&(0,Lt.Z)(De)==="object",Ue=le?"#FFF":void 0,Ne=re/2,Xe=Vt.createElement("circle",{className:"".concat(Pe,"-circle-path"),r:we,cx:Ne,cy:Ne,stroke:Ue,strokeLinecap:_t,strokeWidth:$t,opacity:ae===0?0:1,style:Qe,ref:me});if(!le)return Xe;var Le="".concat(Ve,"-conic"),xe=pe?"".concat(180+pe/2,"deg"):"0deg",_e=ct(De,(360-pe)/360),Fe=ct(De,1),Ae="conic-gradient(from ".concat(xe,", ").concat(_e.join(", "),")"),oe="linear-gradient(to ".concat(pe?"bottom":"top",", ").concat(Fe.join(", "),")");return Vt.createElement(Vt.Fragment,null,Vt.createElement("mask",{id:Le},Xe),Vt.createElement("foreignObject",{x:0,y:0,width:re,height:re,mask:"url(#".concat(Le,")")},Vt.createElement(ut,{bg:oe},Vt.createElement(ut,{bg:Ae}))))}),ft=gt,kt=100,jt=function(me,Pe,De,Ve,we,Qe,ae,_t,$t,re){var pe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,le=De/100*360*((360-Qe)/360),Ue=Qe===0?0:{bottom:0,top:180,left:90,right:-90}[ae],Ne=(100-Ve)/100*Pe;$t==="round"&&Ve!==100&&(Ne+=re/2,Ne>=Pe&&(Ne=Pe-.01));var Xe=kt/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(Pe,"px ").concat(me),strokeDashoffset:Ne+pe,transform:"rotate(".concat(we+le+Ue,"deg)"),transformOrigin:"".concat(Xe,"px ").concat(Xe,"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}},Ht=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ot(ce){var me=ce!=null?ce:[];return Array.isArray(me)?me:[me]}var te=function(me){var Pe=(0,xt.Z)((0,xt.Z)({},St),me),De=Pe.id,Ve=Pe.prefixCls,we=Pe.steps,Qe=Pe.strokeWidth,ae=Pe.trailWidth,_t=Pe.gapDegree,$t=_t===void 0?0:_t,re=Pe.gapPosition,pe=Pe.trailColor,le=Pe.strokeLinecap,Ue=Pe.style,Ne=Pe.className,Xe=Pe.strokeColor,Le=Pe.percent,xe=(0,qt.Z)(Pe,Ht),_e=kt/2,Fe=rt(De),Ae="".concat(Fe,"-gradient"),oe=_e-Qe/2,Mt=Math.PI*2*oe,At=$t>0?90+$t/2:-90,Qt=Mt*((360-$t)/360),se=(0,Lt.Z)(we)==="object"?we:{count:we,gap:2},Kt=se.count,It=se.gap,bt=Ot(Le),Bt=Ot(Xe),ie=Bt.find(function(ln){return ln&&(0,Lt.Z)(ln)==="object"}),Wt=ie&&(0,Lt.Z)(ie)==="object",Zt=Wt?"butt":le,fe=jt(Mt,Qt,0,100,At,$t,re,pe,Zt,Qe),ke=Et(),tn=function(){var Bn=0;return bt.map(function(Vn,Tn){var un=Bt[Tn]||Bt[Bt.length-1],si=jt(Mt,Qt,Bn,Vn,At,$t,re,un,Zt,Qe);return Bn+=Vn,Vt.createElement(ft,{key:Tn,color:un,ptg:Vn,radius:oe,prefixCls:Ve,gradientId:Ae,style:si,strokeLinecap:Zt,strokeWidth:Qe,gapDegree:$t,ref:function(fi){ke[Tn]=fi},size:kt})}).reverse()},dn=function(){var Bn=Math.round(Kt*(bt[0]/100)),Vn=100/Kt,Tn=0;return new Array(Kt).fill(null).map(function(un,si){var ei=si<=Bn-1?Bt[0]:pe,fi=ei&&(0,Lt.Z)(ei)==="object"?"url(#".concat(Ae,")"):void 0,bi=jt(Mt,Qt,Tn,Vn,At,$t,re,ei,"butt",Qe,It);return Tn+=(Qt-bi.strokeDashoffset+It)*100/Qt,Vt.createElement("circle",{key:si,className:"".concat(Ve,"-circle-path"),r:oe,cx:_e,cy:_e,stroke:fi,strokeWidth:Qe,opacity:1,style:bi,ref:function(qn){ke[si]=qn}})})};return Vt.createElement("svg",(0,Jt.Z)({className:Dt()("".concat(Ve,"-circle"),Ne),viewBox:"0 0 ".concat(kt," ").concat(kt),style:Ue,id:De,role:"presentation"},xe),!Kt&&Vt.createElement("circle",{className:"".concat(Ve,"-circle-trail"),r:oe,cx:_e,cy:_e,stroke:pe,strokeLinecap:Zt,strokeWidth:ae||Qe,style:fe}),Kt?dn():tn())},ne=te,Xt={Line:Ct,Circle:ne}},71032:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return ct}});var Jt=he(87462),xt=he(4942),qt=he(97685),Vt=he(45987),Rt=he(94184),Dt=he.n(Rt),St=he(21770),Et=he(15105),Nt=he(64217),Pt=he(67294);function Ct(gt,ft){var kt=gt.disabled,jt=gt.prefixCls,Ht=gt.character,Ot=gt.characterRender,te=gt.index,ne=gt.count,Xt=gt.value,ce=gt.allowHalf,me=gt.focused,Pe=gt.onHover,De=gt.onClick,Ve=function(le){Pe(le,te)},we=function(le){De(le,te)},Qe=function(le){le.keyCode===Et.Z.ENTER&&De(le,te)},ae=te+1,_t=new Set([jt]);Xt===0&&te===0&&me?_t.add("".concat(jt,"-focused")):ce&&Xt+.5>=ae&&Xt<ae?(_t.add("".concat(jt,"-half")),_t.add("".concat(jt,"-active")),me&&_t.add("".concat(jt,"-focused"))):(ae<=Xt?_t.add("".concat(jt,"-full")):_t.add("".concat(jt,"-zero")),ae===Xt&&me&&_t.add("".concat(jt,"-focused")));var $t=typeof Ht=="function"?Ht(gt):Ht,re=Pt.createElement("li",{className:Dt()(Array.from(_t)),ref:ft},Pt.createElement("div",{onClick:kt?null:we,onKeyDown:kt?null:Qe,onMouseMove:kt?null:Ve,role:"radio","aria-checked":Xt>te?"true":"false","aria-posinset":te+1,"aria-setsize":ne,tabIndex:kt?-1:0},Pt.createElement("div",{className:"".concat(jt,"-first")},$t),Pt.createElement("div",{className:"".concat(jt,"-second")},$t)));return Ot&&(re=Ot(re,gt)),re}var Lt=Pt.forwardRef(Ct);function Ft(){var gt=Pt.useRef({});function ft(jt){return gt.current[jt]}function kt(jt){return function(Ht){gt.current[jt]=Ht}}return[ft,kt]}function vt(gt){var ft=gt.pageXOffset,kt="scrollLeft";if(typeof ft!="number"){var jt=gt.document;ft=jt.documentElement[kt],typeof ft!="number"&&(ft=jt.body[kt])}return ft}function et(gt){var ft,kt,jt=gt.ownerDocument,Ht=jt.body,Ot=jt&&jt.documentElement,te=gt.getBoundingClientRect();return ft=te.left,kt=te.top,ft-=Ot.clientLeft||Ht.clientLeft||0,kt-=Ot.clientTop||Ht.clientTop||0,{left:ft,top:kt}}function tt(gt){var ft=et(gt),kt=gt.ownerDocument,jt=kt.defaultView||kt.parentWindow;return ft.left+=vt(jt),ft.left}var st=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function rt(gt,ft){var kt=gt.prefixCls,jt=kt===void 0?"rc-rate":kt,Ht=gt.className,Ot=gt.defaultValue,te=gt.value,ne=gt.count,Xt=ne===void 0?5:ne,ce=gt.allowHalf,me=ce===void 0?!1:ce,Pe=gt.allowClear,De=Pe===void 0?!0:Pe,Ve=gt.keyboard,we=Ve===void 0?!0:Ve,Qe=gt.character,ae=Qe===void 0?"\u2605":Qe,_t=gt.characterRender,$t=gt.disabled,re=gt.direction,pe=re===void 0?"ltr":re,le=gt.tabIndex,Ue=le===void 0?0:le,Ne=gt.autoFocus,Xe=gt.onHoverChange,Le=gt.onChange,xe=gt.onFocus,_e=gt.onBlur,Fe=gt.onKeyDown,Ae=gt.onMouseLeave,oe=(0,Vt.Z)(gt,st),Mt=Ft(),At=(0,qt.Z)(Mt,2),Qt=At[0],se=At[1],Kt=Pt.useRef(null),It=function(){if(!$t){var Ri;(Ri=Kt.current)===null||Ri===void 0||Ri.focus()}};Pt.useImperativeHandle(ft,function(){return{focus:It,blur:function(){if(!$t){var Ri;(Ri=Kt.current)===null||Ri===void 0||Ri.blur()}}}});var bt=(0,St.Z)(Ot||0,{value:te}),Bt=(0,qt.Z)(bt,2),ie=Bt[0],Wt=Bt[1],Zt=(0,St.Z)(null),fe=(0,qt.Z)(Zt,2),ke=fe[0],tn=fe[1],dn=function(Ri,vn){var Ut=pe==="rtl",cn=Ri+1;if(me){var Pn=Qt(Ri),kn=tt(Pn),Nn=Pn.clientWidth;(Ut&&vn-kn>Nn/2||!Ut&&vn-kn<Nn/2)&&(cn-=.5)}return cn},ln=function(Ri){Wt(Ri),Le==null||Le(Ri)},Bn=Pt.useState(!1),Vn=(0,qt.Z)(Bn,2),Tn=Vn[0],un=Vn[1],si=function(){un(!0),xe==null||xe()},ei=function(){un(!1),_e==null||_e()},fi=Pt.useState(null),bi=(0,qt.Z)(fi,2),Ni=bi[0],qn=bi[1],Ii=function(Ri,vn){var Ut=dn(vn,Ri.pageX);Ut!==ke&&(qn(Ut),tn(null)),Xe==null||Xe(Ut)},pr=function(Ri){$t||(qn(null),tn(null),Xe==null||Xe(void 0)),Ri&&(Ae==null||Ae(Ri))},Ar=function(Ri,vn){var Ut=dn(vn,Ri.pageX),cn=!1;De&&(cn=Ut===ie),pr(),ln(cn?0:Ut),tn(cn?Ut:null)},Or=function(Ri){var vn=Ri.keyCode,Ut=pe==="rtl",cn=me?.5:1;we&&(vn===Et.Z.RIGHT&&ie<Xt&&!Ut?(ln(ie+cn),Ri.preventDefault()):vn===Et.Z.LEFT&&ie>0&&!Ut||vn===Et.Z.RIGHT&&ie>0&&Ut?(ln(ie-cn),Ri.preventDefault()):vn===Et.Z.LEFT&&ie<Xt&&Ut&&(ln(ie+cn),Ri.preventDefault())),Fe==null||Fe(Ri)};Pt.useEffect(function(){Ne&&!$t&&It()},[]);var wr=new Array(Xt).fill(0).map(function(Sr,Ri){return Pt.createElement(Lt,{ref:se(Ri),index:Ri,count:Xt,disabled:$t,prefixCls:"".concat(jt,"-star"),allowHalf:me,value:Ni===null?ie:Ni,onClick:Ar,onHover:Ii,key:Sr||Ri,character:ae,characterRender:_t,focused:Tn})}),Fi=Dt()(jt,Ht,(0,xt.Z)((0,xt.Z)({},"".concat(jt,"-disabled"),$t),"".concat(jt,"-rtl"),pe==="rtl"));return Pt.createElement("ul",(0,Jt.Z)({className:Fi,onMouseLeave:pr,tabIndex:$t?-1:Ue,onFocus:$t?null:si,onBlur:$t?null:ei,onKeyDown:$t?null:Or,ref:Kt},(0,Nt.Z)(oe,{aria:!0,data:!0,attr:!0})),wr)}var ut=Pt.forwardRef(rt),ct=ut},58212:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Qe}});function Jt(){return Jt=Object.assign?Object.assign.bind():function(ae){for(var _t=1;_t<arguments.length;_t++){var $t=arguments[_t];for(var re in $t)Object.prototype.hasOwnProperty.call($t,re)&&(ae[re]=$t[re])}return ae},Jt.apply(this,arguments)}function xt(ae){"@babel/helpers - typeof";return xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_t){return typeof _t}:function(_t){return _t&&typeof Symbol=="function"&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t},xt(ae)}function qt(ae,_t){if(xt(ae)!=="object"||ae===null)return ae;var $t=ae[Symbol.toPrimitive];if($t!==void 0){var re=$t.call(ae,_t||"default");if(xt(re)!=="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_t==="string"?String:Number)(ae)}function Vt(ae){var _t=qt(ae,"string");return xt(_t)==="symbol"?_t:String(_t)}function Rt(ae,_t,$t){return _t=Vt(_t),_t in ae?Object.defineProperty(ae,_t,{value:$t,enumerable:!0,configurable:!0,writable:!0}):ae[_t]=$t,ae}function Dt(ae){if(Array.isArray(ae))return ae}function St(ae,_t){var $t=ae==null?null:typeof Symbol!="undefined"&&ae[Symbol.iterator]||ae["@@iterator"];if($t!=null){var re,pe,le,Ue,Ne=[],Xe=!0,Le=!1;try{if(le=($t=$t.call(ae)).next,_t===0){if(Object($t)!==$t)return;Xe=!1}else for(;!(Xe=(re=le.call($t)).done)&&(Ne.push(re.value),Ne.length!==_t);Xe=!0);}catch(xe){Le=!0,pe=xe}finally{try{if(!Xe&&$t.return!=null&&(Ue=$t.return(),Object(Ue)!==Ue))return}finally{if(Le)throw pe}}return Ne}}function Et(ae,_t){(_t==null||_t>ae.length)&&(_t=ae.length);for(var $t=0,re=new Array(_t);$t<_t;$t++)re[$t]=ae[$t];return re}function Nt(ae,_t){if(ae){if(typeof ae=="string")return Et(ae,_t);var $t=Object.prototype.toString.call(ae).slice(8,-1);if($t==="Object"&&ae.constructor&&($t=ae.constructor.name),$t==="Map"||$t==="Set")return Array.from(ae);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Et(ae,_t)}}function Pt(){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 Ct(ae,_t){return Dt(ae)||St(ae,_t)||Nt(ae,_t)||Pt()}function Lt(ae,_t){if(ae==null)return{};var $t={},re=Object.keys(ae),pe,le;for(le=0;le<re.length;le++)pe=re[le],!(_t.indexOf(pe)>=0)&&($t[pe]=ae[pe]);return $t}function Ft(ae,_t){if(ae==null)return{};var $t=Lt(ae,_t),re,pe;if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(ae);for(pe=0;pe<le.length;pe++)re=le[pe],!(_t.indexOf(re)>=0)&&Object.prototype.propertyIsEnumerable.call(ae,re)&&($t[re]=ae[re])}return $t}var vt=he(67294),et=he(94184),tt=he.n(et);function st(ae){if(Array.isArray(ae))return ae}function rt(ae,_t){var $t=ae==null?null:typeof Symbol!="undefined"&&ae[Symbol.iterator]||ae["@@iterator"];if($t!=null){var re,pe,le,Ue,Ne=[],Xe=!0,Le=!1;try{if(le=($t=$t.call(ae)).next,_t===0){if(Object($t)!==$t)return;Xe=!1}else for(;!(Xe=(re=le.call($t)).done)&&(Ne.push(re.value),Ne.length!==_t);Xe=!0);}catch(xe){Le=!0,pe=xe}finally{try{if(!Xe&&$t.return!=null&&(Ue=$t.return(),Object(Ue)!==Ue))return}finally{if(Le)throw pe}}return Ne}}function ut(ae,_t){(_t==null||_t>ae.length)&&(_t=ae.length);for(var $t=0,re=new Array(_t);$t<_t;$t++)re[$t]=ae[$t];return re}function ct(ae,_t){if(ae){if(typeof ae=="string")return ut(ae,_t);var $t=Object.prototype.toString.call(ae).slice(8,-1);if($t==="Object"&&ae.constructor&&($t=ae.constructor.name),$t==="Map"||$t==="Set")return Array.from(ae);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return ut(ae,_t)}}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 ft(ae,_t){return st(ae)||rt(ae,_t)||ct(ae,_t)||gt()}function kt(ae){var _t=vt.useRef();_t.current=ae;var $t=vt.useCallback(function(){for(var re,pe=arguments.length,le=new Array(pe),Ue=0;Ue<pe;Ue++)le[Ue]=arguments[Ue];return(re=_t.current)===null||re===void 0?void 0:re.call.apply(re,[_t].concat(le))},[]);return $t}function jt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ht=jt()?vt.useLayoutEffect:vt.useEffect,Ot=function(_t,$t){var re=vt.useRef(!0);Ht(function(){return _t(re.current)},$t),Ht(function(){return re.current=!1,function(){re.current=!0}},[])},te=function(_t,$t){Ot(function(re){if(!re)return _t()},$t)},ne=null;function Xt(ae){var _t=vt.useRef(!1),$t=vt.useState(ae),re=ft($t,2),pe=re[0],le=re[1];vt.useEffect(function(){return _t.current=!1,function(){_t.current=!0}},[]);function Ue(Ne,Xe){Xe&&_t.current||le(Ne)}return[pe,Ue]}function ce(ae){return ae!==void 0}function me(ae,_t){var $t=_t||{},re=$t.defaultValue,pe=$t.value,le=$t.onChange,Ue=$t.postState,Ne=Xt(function(){return ce(pe)?pe:ce(re)?typeof re=="function"?re():re:typeof ae=="function"?ae():ae}),Xe=ft(Ne,2),Le=Xe[0],xe=Xe[1],_e=pe!==void 0?pe:Le,Fe=Ue?Ue(_e):_e,Ae=kt(le),oe=Xt([_e]),Mt=ft(oe,2),At=Mt[0],Qt=Mt[1];te(function(){var Kt=At[0];Le!==Kt&&Ae(Le,Kt)},[At]),te(function(){ce(pe)||xe(pe)},[pe]);var se=kt(function(Kt,It){xe(Kt,It),Qt([_e],It)});return[Fe,se]}var Pe={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(_t){var $t=_t.keyCode;if(_t.altKey&&!_t.ctrlKey||_t.metaKey||$t>=Pe.F1&&$t<=Pe.F12)return!1;switch($t){case Pe.ALT:case Pe.CAPS_LOCK:case Pe.CONTEXT_MENU:case Pe.CTRL:case Pe.DOWN:case Pe.END:case Pe.ESC:case Pe.HOME:case Pe.INSERT:case Pe.LEFT:case Pe.MAC_FF_META:case Pe.META:case Pe.NUMLOCK:case Pe.NUM_CENTER:case Pe.PAGE_DOWN:case Pe.PAGE_UP:case Pe.PAUSE:case Pe.PRINT_SCREEN:case Pe.RIGHT:case Pe.SHIFT:case Pe.UP:case Pe.WIN_KEY:case Pe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_t){if(_t>=Pe.ZERO&&_t<=Pe.NINE||_t>=Pe.NUM_ZERO&&_t<=Pe.NUM_MULTIPLY||_t>=Pe.A&&_t<=Pe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_t===0)return!0;switch(_t){case Pe.SPACE:case Pe.QUESTION_MARK:case Pe.NUM_PLUS:case Pe.NUM_MINUS:case Pe.NUM_PERIOD:case Pe.NUM_DIVISION:case Pe.SEMICOLON:case Pe.DASH:case Pe.EQUALS:case Pe.COMMA:case Pe.PERIOD:case Pe.SLASH:case Pe.APOSTROPHE:case Pe.SINGLE_QUOTE:case Pe.OPEN_SQUARE_BRACKET:case Pe.BACKSLASH:case Pe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},De=Pe,Ve=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=vt.forwardRef(function(ae,_t){var $t,re=ae.prefixCls,pe=re===void 0?"rc-switch":re,le=ae.className,Ue=ae.checked,Ne=ae.defaultChecked,Xe=ae.disabled,Le=ae.loadingIcon,xe=ae.checkedChildren,_e=ae.unCheckedChildren,Fe=ae.onClick,Ae=ae.onChange,oe=ae.onKeyDown,Mt=Ft(ae,Ve),At=me(!1,{value:Ue,defaultValue:Ne}),Qt=Ct(At,2),se=Qt[0],Kt=Qt[1];function It(Wt,Zt){var fe=se;return Xe||(fe=Wt,Kt(fe),Ae==null||Ae(fe,Zt)),fe}function bt(Wt){Wt.which===De.LEFT?It(!1,Wt):Wt.which===De.RIGHT&&It(!0,Wt),oe==null||oe(Wt)}function Bt(Wt){var Zt=It(!se,Wt);Fe==null||Fe(Zt,Wt)}var ie=tt()(pe,le,($t={},Rt($t,"".concat(pe,"-checked"),se),Rt($t,"".concat(pe,"-disabled"),Xe),$t));return vt.createElement("button",Jt({},Mt,{type:"button",role:"switch","aria-checked":se,disabled:Xe,className:ie,ref:_t,onKeyDown:bt,onClick:Bt}),Le,vt.createElement("span",{className:"".concat(pe,"-inner")},vt.createElement("span",{className:"".concat(pe,"-inner-checked")},xe),vt.createElement("span",{className:"".concat(pe,"-inner-unchecked")},_e)))});we.displayName="Switch";var Qe=we},86128:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return ct}});var Jt=he(87462),xt=he(4942),qt=he(1413),Vt=he(97685),Rt=he(45987),Dt=he(67294),St=he(94184),Et=he.n(St),Nt=he(64217),Pt=he(27822),Ct=function(ft){for(var kt=ft.prefixCls,jt=ft.level,Ht=ft.isStart,Ot=ft.isEnd,te="".concat(kt,"-indent-unit"),ne=[],Xt=0;Xt<jt;Xt+=1)ne.push(Dt.createElement("span",{key:Xt,className:Et()(te,(0,xt.Z)((0,xt.Z)({},"".concat(te,"-start"),Ht[Xt]),"".concat(te,"-end"),Ot[Xt]))}));return Dt.createElement("span",{"aria-hidden":"true",className:"".concat(kt,"-indent")},ne)},Lt=Dt.memo(Ct),Ft=he(35381),vt=he(1089),et=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],tt="open",st="close",rt="---",ut=function(ft){var kt,jt,Ht,Ot=ft.eventKey,te=ft.className,ne=ft.style,Xt=ft.dragOver,ce=ft.dragOverGapTop,me=ft.dragOverGapBottom,Pe=ft.isLeaf,De=ft.isStart,Ve=ft.isEnd,we=ft.expanded,Qe=ft.selected,ae=ft.checked,_t=ft.halfChecked,$t=ft.loading,re=ft.domRef,pe=ft.active,le=ft.data,Ue=ft.onMouseMove,Ne=ft.selectable,Xe=(0,Rt.Z)(ft,et),Le=Dt.useContext(Pt.k),xe=Dt.useContext(Pt.y),_e=Dt.useRef(null),Fe=Dt.useState(!1),Ae=(0,Vt.Z)(Fe,2),oe=Ae[0],Mt=Ae[1],At=!!(Le.disabled||ft.disabled||(kt=xe.nodeDisabled)!==null&&kt!==void 0&&kt.call(xe,le)),Qt=Dt.useMemo(function(){return!Le.checkable||ft.checkable===!1?!1:Le.checkable},[Le.checkable,ft.checkable]),se=function(Pn){At||Le.onNodeSelect(Pn,(0,vt.F)(ft))},Kt=function(Pn){At||!Qt||ft.disableCheckbox||Le.onNodeCheck(Pn,(0,vt.F)(ft),!ae)},It=Dt.useMemo(function(){return typeof Ne=="boolean"?Ne:Le.selectable},[Ne,Le.selectable]),bt=function(Pn){Le.onNodeClick(Pn,(0,vt.F)(ft)),It?se(Pn):Kt(Pn)},Bt=function(Pn){Le.onNodeDoubleClick(Pn,(0,vt.F)(ft))},ie=function(Pn){Le.onNodeMouseEnter(Pn,(0,vt.F)(ft))},Wt=function(Pn){Le.onNodeMouseLeave(Pn,(0,vt.F)(ft))},Zt=function(Pn){Le.onNodeContextMenu(Pn,(0,vt.F)(ft))},fe=Dt.useMemo(function(){return!!(Le.draggable&&(!Le.draggable.nodeDraggable||Le.draggable.nodeDraggable(le)))},[Le.draggable,le]),ke=function(Pn){Pn.stopPropagation(),Mt(!0),Le.onNodeDragStart(Pn,ft);try{Pn.dataTransfer.setData("text/plain","")}catch(kn){}},tn=function(Pn){Pn.preventDefault(),Pn.stopPropagation(),Le.onNodeDragEnter(Pn,ft)},dn=function(Pn){Pn.preventDefault(),Pn.stopPropagation(),Le.onNodeDragOver(Pn,ft)},ln=function(Pn){Pn.stopPropagation(),Le.onNodeDragLeave(Pn,ft)},Bn=function(Pn){Pn.stopPropagation(),Mt(!1),Le.onNodeDragEnd(Pn,ft)},Vn=function(Pn){Pn.preventDefault(),Pn.stopPropagation(),Mt(!1),Le.onNodeDrop(Pn,ft)},Tn=function(Pn){$t||Le.onNodeExpand(Pn,(0,vt.F)(ft))},un=Dt.useMemo(function(){var cn=(0,Ft.Z)(Le.keyEntities,Ot)||{},Pn=cn.children;return!!(Pn||[]).length},[Le.keyEntities,Ot]),si=Dt.useMemo(function(){return Pe===!1?!1:Pe||!Le.loadData&&!un||Le.loadData&&ft.loaded&&!un},[Pe,Le.loadData,un,ft.loaded]);Dt.useEffect(function(){$t||typeof Le.loadData=="function"&&we&&!si&&!ft.loaded&&Le.onNodeLoad((0,vt.F)(ft))},[$t,Le.loadData,Le.onNodeLoad,we,si,ft]);var ei=Dt.useMemo(function(){var cn;return(cn=Le.draggable)!==null&&cn!==void 0&&cn.icon?Dt.createElement("span",{className:"".concat(Le.prefixCls,"-draggable-icon")},Le.draggable.icon):null},[Le.draggable]),fi=function(Pn){var kn=ft.switcherIcon||Le.switcherIcon;return typeof kn=="function"?kn((0,qt.Z)((0,qt.Z)({},ft),{},{isLeaf:Pn})):kn},bi=function(){if(si){var Pn=fi(!0);return Pn!==!1?Dt.createElement("span",{className:Et()("".concat(Le.prefixCls,"-switcher"),"".concat(Le.prefixCls,"-switcher-noop"))},Pn):null}var kn=fi(!1);return kn!==!1?Dt.createElement("span",{onClick:Tn,className:Et()("".concat(Le.prefixCls,"-switcher"),"".concat(Le.prefixCls,"-switcher_").concat(we?tt:st))},kn):null},Ni=Dt.useMemo(function(){if(!Qt)return null;var cn=typeof Qt!="boolean"?Qt:null;return Dt.createElement("span",{className:Et()("".concat(Le.prefixCls,"-checkbox"),(0,xt.Z)((0,xt.Z)((0,xt.Z)({},"".concat(Le.prefixCls,"-checkbox-checked"),ae),"".concat(Le.prefixCls,"-checkbox-indeterminate"),!ae&&_t),"".concat(Le.prefixCls,"-checkbox-disabled"),At||ft.disableCheckbox)),onClick:Kt,role:"checkbox","aria-checked":_t?"mixed":ae,"aria-disabled":At||ft.disableCheckbox,"aria-label":"Select ".concat(typeof ft.title=="string"?ft.title:"tree node")},cn)},[Qt,ae,_t,At,ft.disableCheckbox,ft.title]),qn=Dt.useMemo(function(){return si?null:we?tt:st},[si,we]),Ii=Dt.useMemo(function(){return Dt.createElement("span",{className:Et()("".concat(Le.prefixCls,"-iconEle"),"".concat(Le.prefixCls,"-icon__").concat(qn||"docu"),(0,xt.Z)({},"".concat(Le.prefixCls,"-icon_loading"),$t))})},[Le.prefixCls,qn,$t]),pr=Dt.useMemo(function(){var cn=!!Le.draggable,Pn=!ft.disabled&&cn&&Le.dragOverNodeKey===Ot;return Pn?Le.dropIndicatorRender({dropPosition:Le.dropPosition,dropLevelOffset:Le.dropLevelOffset,indent:Le.indent,prefixCls:Le.prefixCls,direction:Le.direction}):null},[Le.dropPosition,Le.dropLevelOffset,Le.indent,Le.prefixCls,Le.direction,Le.draggable,Le.dragOverNodeKey,Le.dropIndicatorRender]),Ar=Dt.useMemo(function(){var cn=ft.title,Pn=cn===void 0?rt:cn,kn="".concat(Le.prefixCls,"-node-content-wrapper"),Nn;if(Le.showIcon){var On=ft.icon||Le.icon;Nn=On?Dt.createElement("span",{className:Et()("".concat(Le.prefixCls,"-iconEle"),"".concat(Le.prefixCls,"-icon__customize"))},typeof On=="function"?On(ft):On):Ii}else Le.loadData&&$t&&(Nn=Ii);var Hn;return typeof Pn=="function"?Hn=Pn(le):Le.titleRender?Hn=Le.titleRender(le):Hn=Pn,Dt.createElement("span",{ref:_e,title:typeof Pn=="string"?Pn:"",className:Et()(kn,"".concat(kn,"-").concat(qn||"normal"),(0,xt.Z)({},"".concat(Le.prefixCls,"-node-selected"),!At&&(Qe||oe))),onMouseEnter:ie,onMouseLeave:Wt,onContextMenu:Zt,onClick:bt,onDoubleClick:Bt},Nn,Dt.createElement("span",{className:"".concat(Le.prefixCls,"-title")},Hn),pr)},[Le.prefixCls,Le.showIcon,ft,Le.icon,Ii,Le.titleRender,le,qn,ie,Wt,Zt,bt,Bt]),Or=(0,Nt.Z)(Xe,{aria:!0,data:!0}),wr=(0,Ft.Z)(Le.keyEntities,Ot)||{},Fi=wr.level,Sr=Ve[Ve.length-1],Ri=!At&&fe,vn=Le.draggingNodeKey===Ot,Ut=Ne!==void 0?{"aria-selected":!!Ne}:void 0;return Dt.createElement("div",(0,Jt.Z)({ref:re,role:"treeitem","aria-expanded":Pe?void 0:we,className:Et()(te,"".concat(Le.prefixCls,"-treenode"),(Ht={},(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)(Ht,"".concat(Le.prefixCls,"-treenode-disabled"),At),"".concat(Le.prefixCls,"-treenode-switcher-").concat(we?"open":"close"),!Pe),"".concat(Le.prefixCls,"-treenode-checkbox-checked"),ae),"".concat(Le.prefixCls,"-treenode-checkbox-indeterminate"),_t),"".concat(Le.prefixCls,"-treenode-selected"),Qe),"".concat(Le.prefixCls,"-treenode-loading"),$t),"".concat(Le.prefixCls,"-treenode-active"),pe),"".concat(Le.prefixCls,"-treenode-leaf-last"),Sr),"".concat(Le.prefixCls,"-treenode-draggable"),fe),"dragging",vn),(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)(Ht,"drop-target",Le.dropTargetKey===Ot),"drop-container",Le.dropContainerKey===Ot),"drag-over",!At&&Xt),"drag-over-gap-top",!At&&ce),"drag-over-gap-bottom",!At&&me),"filter-node",(jt=Le.filterTreeNode)===null||jt===void 0?void 0:jt.call(Le,(0,vt.F)(ft))),"".concat(Le.prefixCls,"-treenode-leaf"),si))),style:ne,draggable:Ri,onDragStart:Ri?ke:void 0,onDragEnter:fe?tn:void 0,onDragOver:fe?dn:void 0,onDragLeave:fe?ln:void 0,onDrop:fe?Vn:void 0,onDragEnd:fe?Bn:void 0,onMouseMove:Ue},Ut,Or),Dt.createElement(Lt,{prefixCls:Le.prefixCls,level:Fi,isStart:De,isEnd:Ve}),ei,bi(),Ni,Ar)};ut.isTreeNode=1;var ct=ut},27822:function(An,jn,he){"use strict";he.d(jn,{k:function(){return xt},y:function(){return qt}});var Jt=he(67294),xt=Jt.createContext(null),qt=Jt.createContext({})},70593:function(An,jn,he){"use strict";he.d(jn,{OF:function(){return Ot.Z},y6:function(){return st.y},ZP:function(){return At}});var Jt=he(87462),xt=he(71002),qt=he(1413),Vt=he(74902),Rt=he(15671),Dt=he(43144),St=he(97326),Et=he(60136),Nt=he(29388),Pt=he(4942),Ct=he(94184),Lt=he.n(Ct),Ft=he(15105),vt=he(64217),et=he(80334),tt=he(67294),st=he(27822),rt=function(se){var Kt=se.dropPosition,It=se.dropLevelOffset,bt=se.indent,Bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Kt){case-1:Bt.top=0,Bt.left=-It*bt;break;case 1:Bt.bottom=0,Bt.left=-It*bt;break;case 0:Bt.bottom=0,Bt.left=bt;break}return tt.createElement("div",{style:Bt})},ut=rt;function ct(Qt){if(Qt==null)throw new TypeError("Cannot destructure "+Qt)}var gt=he(97685),ft=he(45987),kt=he(8410),jt=he(73299),Ht=he(62874),Ot=he(86128);function te(Qt,se){var Kt=tt.useState(!1),It=(0,gt.Z)(Kt,2),bt=It[0],Bt=It[1];(0,kt.Z)(function(){if(bt)return Qt(),function(){se()}},[bt]),(0,kt.Z)(function(){return Bt(!0),function(){Bt(!1)}},[])}var ne=te,Xt=he(1089),ce=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],me=tt.forwardRef(function(Qt,se){var Kt=Qt.className,It=Qt.style,bt=Qt.motion,Bt=Qt.motionNodes,ie=Qt.motionType,Wt=Qt.onMotionStart,Zt=Qt.onMotionEnd,fe=Qt.active,ke=Qt.treeNodeRequiredProps,tn=(0,ft.Z)(Qt,ce),dn=tt.useState(!0),ln=(0,gt.Z)(dn,2),Bn=ln[0],Vn=ln[1],Tn=tt.useContext(st.k),un=Tn.prefixCls,si=Bt&&ie!=="hide";(0,kt.Z)(function(){Bt&&si!==Bn&&Vn(si)},[Bt]);var ei=function(){Bt&&Wt()},fi=tt.useRef(!1),bi=function(){Bt&&!fi.current&&(fi.current=!0,Zt())};ne(ei,bi);var Ni=function(Ii){si===Ii&&bi()};return Bt?tt.createElement(Ht.Z,(0,Jt.Z)({ref:se,visible:Bn},bt,{motionAppear:ie==="show",onVisibleChanged:Ni}),function(qn,Ii){var pr=qn.className,Ar=qn.style;return tt.createElement("div",{ref:Ii,className:Lt()("".concat(un,"-treenode-motion"),pr),style:Ar},Bt.map(function(Or){var wr=Object.assign({},(ct(Or.data),Or.data)),Fi=Or.title,Sr=Or.key,Ri=Or.isStart,vn=Or.isEnd;delete wr.children;var Ut=(0,Xt.H8)(Sr,ke);return tt.createElement(Ot.Z,(0,Jt.Z)({},wr,Ut,{title:Fi,active:fe,data:Or.data,key:Sr,isStart:Ri,isEnd:vn}))}))}):tt.createElement(Ot.Z,(0,Jt.Z)({domRef:se,className:Kt,style:It},tn,{active:fe}))}),Pe=me;function De(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Kt=Qt.length,It=se.length;if(Math.abs(Kt-It)!==1)return{add:!1,key:null};function bt(Bt,ie){var Wt=new Map;Bt.forEach(function(fe){Wt.set(fe,!0)});var Zt=ie.filter(function(fe){return!Wt.has(fe)});return Zt.length===1?Zt[0]:null}return Kt<It?{add:!0,key:bt(Qt,se)}:{add:!1,key:bt(se,Qt)}}function Ve(Qt,se,Kt){var It=Qt.findIndex(function(Wt){return Wt.key===Kt}),bt=Qt[It+1],Bt=se.findIndex(function(Wt){return Wt.key===Kt});if(bt){var ie=se.findIndex(function(Wt){return Wt.key===bt.key});return se.slice(Bt+1,ie)}return se.slice(Bt+1)}var we=["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"],Qe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ae=function(){},_t="RC_TREE_MOTION_".concat(Math.random()),$t={key:_t},re={key:_t,level:0,index:0,pos:"0",node:$t,nodes:[$t]},pe={parent:null,children:[],pos:re.pos,data:$t,title:null,key:_t,isStart:[],isEnd:[]};function le(Qt,se,Kt,It){return se===!1||!Kt?Qt:Qt.slice(0,Math.ceil(Kt/It)+1)}function Ue(Qt){var se=Qt.key,Kt=Qt.pos;return(0,Xt.km)(se,Kt)}function Ne(Qt){for(var se=String(Qt.data.key),Kt=Qt;Kt.parent;)Kt=Kt.parent,se="".concat(Kt.data.key," > ").concat(se);return se}var Xe=tt.forwardRef(function(Qt,se){var Kt=Qt.prefixCls,It=Qt.data,bt=Qt.selectable,Bt=Qt.checkable,ie=Qt.expandedKeys,Wt=Qt.selectedKeys,Zt=Qt.checkedKeys,fe=Qt.loadedKeys,ke=Qt.loadingKeys,tn=Qt.halfCheckedKeys,dn=Qt.keyEntities,ln=Qt.disabled,Bn=Qt.dragging,Vn=Qt.dragOverNodeKey,Tn=Qt.dropPosition,un=Qt.motion,si=Qt.height,ei=Qt.itemHeight,fi=Qt.virtual,bi=Qt.scrollWidth,Ni=Qt.focusable,qn=Qt.activeItem,Ii=Qt.focused,pr=Qt.tabIndex,Ar=Qt.onKeyDown,Or=Qt.onFocus,wr=Qt.onBlur,Fi=Qt.onActiveChange,Sr=Qt.onListChangeStart,Ri=Qt.onListChangeEnd,vn=(0,ft.Z)(Qt,we),Ut=tt.useRef(null),cn=tt.useRef(null);tt.useImperativeHandle(se,function(){return{scrollTo:function(zr){Ut.current.scrollTo(zr)},getIndentWidth:function(){return cn.current.offsetWidth}}});var Pn=tt.useState(ie),kn=(0,gt.Z)(Pn,2),Nn=kn[0],On=kn[1],Hn=tt.useState(It),gi=(0,gt.Z)(Hn,2),nn=gi[0],en=gi[1],We=tt.useState(It),sn=(0,gt.Z)(We,2),Xn=sn[0],Zn=sn[1],zn=tt.useState([]),Ze=(0,gt.Z)(zn,2),mn=Ze[0],ri=Ze[1],Si=tt.useState(null),En=(0,gt.Z)(Si,2),Ye=En[0],ti=En[1],xi=tt.useRef(It);xi.current=It;function Ui(){var tr=xi.current;en(tr),Zn(tr),ri([]),ti(null),Ri()}(0,kt.Z)(function(){On(ie);var tr=De(Nn,ie);if(tr.key!==null)if(tr.add){var zr=nn.findIndex(function(Lr){var In=Lr.key;return In===tr.key}),xr=le(Ve(nn,It,tr.key),fi,si,ei),li=nn.slice();li.splice(zr+1,0,pe),Zn(li),ri(xr),ti("show")}else{var ai=It.findIndex(function(Lr){var In=Lr.key;return In===tr.key}),vi=le(Ve(It,nn,tr.key),fi,si,ei),qi=It.slice();qi.splice(ai+1,0,pe),Zn(qi),ri(vi),ti("hide")}else nn!==It&&(en(It),Zn(It))},[ie,It]),tt.useEffect(function(){Bn||Ui()},[Bn]);var yn=un?Xn:It,hi={expandedKeys:ie,selectedKeys:Wt,loadedKeys:fe,loadingKeys:ke,checkedKeys:Zt,halfCheckedKeys:tn,dragOverNodeKey:Vn,dropPosition:Tn,keyEntities:dn};return tt.createElement(tt.Fragment,null,Ii&&qn&&tt.createElement("span",{style:Qe,"aria-live":"assertive"},Ne(qn)),tt.createElement("div",null,tt.createElement("input",{style:Qe,disabled:Ni===!1||ln,tabIndex:Ni!==!1?pr:null,onKeyDown:Ar,onFocus:Or,onBlur:wr,value:"",onChange:ae,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(Kt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(Kt,"-indent")},tt.createElement("div",{ref:cn,className:"".concat(Kt,"-indent-unit")}))),tt.createElement(jt.Z,(0,Jt.Z)({},vn,{data:yn,itemKey:Ue,height:si,fullHeight:!1,virtual:fi,itemHeight:ei,scrollWidth:bi,prefixCls:"".concat(Kt,"-list"),ref:Ut,role:"tree",onVisibleChange:function(zr){zr.every(function(xr){return Ue(xr)!==_t})&&Ui()}}),function(tr){var zr=tr.pos,xr=Object.assign({},(ct(tr.data),tr.data)),li=tr.title,ai=tr.key,vi=tr.isStart,qi=tr.isEnd,Lr=(0,Xt.km)(ai,zr);delete xr.key,delete xr.children;var In=(0,Xt.H8)(Lr,hi);return tt.createElement(Pe,(0,Jt.Z)({},xr,In,{title:li,active:!!qn&&ai===qn.key,pos:zr,data:tr.data,isStart:vi,isEnd:qi,motion:un,motionNodes:ai===_t?mn:null,motionType:Ye,onMotionStart:Sr,onMotionEnd:Ui,treeNodeRequiredProps:hi,onMouseMove:function(){Fi(null)}}))}))}),Le=Xe,xe=he(10225),_e=he(17341),Fe=he(35381),Ae=10,oe=function(Qt){(0,Et.Z)(Kt,Qt);var se=(0,Nt.Z)(Kt);function Kt(){var It;(0,Rt.Z)(this,Kt);for(var bt=arguments.length,Bt=new Array(bt),ie=0;ie<bt;ie++)Bt[ie]=arguments[ie];return It=se.call.apply(se,[this].concat(Bt)),(0,Pt.Z)((0,St.Z)(It),"destroyed",!1),(0,Pt.Z)((0,St.Z)(It),"delayedDragEnterLogic",void 0),(0,Pt.Z)((0,St.Z)(It),"loadingRetryTimes",{}),(0,Pt.Z)((0,St.Z)(It),"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,Xt.w$)()}),(0,Pt.Z)((0,St.Z)(It),"dragStartMousePosition",null),(0,Pt.Z)((0,St.Z)(It),"dragNodeProps",null),(0,Pt.Z)((0,St.Z)(It),"currentMouseOverDroppableNodeKey",null),(0,Pt.Z)((0,St.Z)(It),"listRef",tt.createRef()),(0,Pt.Z)((0,St.Z)(It),"onNodeDragStart",function(Wt,Zt){var fe=It.state,ke=fe.expandedKeys,tn=fe.keyEntities,dn=It.props.onDragStart,ln=Zt.eventKey;It.dragNodeProps=Zt,It.dragStartMousePosition={x:Wt.clientX,y:Wt.clientY};var Bn=(0,xe._5)(ke,ln);It.setState({draggingNodeKey:ln,dragChildrenKeys:(0,xe.wA)(ln,tn),indent:It.listRef.current.getIndentWidth()}),It.setExpandedKeys(Bn),window.addEventListener("dragend",It.onWindowDragEnd),dn==null||dn({event:Wt,node:(0,Xt.F)(Zt)})}),(0,Pt.Z)((0,St.Z)(It),"onNodeDragEnter",function(Wt,Zt){var fe=It.state,ke=fe.expandedKeys,tn=fe.keyEntities,dn=fe.dragChildrenKeys,ln=fe.flattenNodes,Bn=fe.indent,Vn=It.props,Tn=Vn.onDragEnter,un=Vn.onExpand,si=Vn.allowDrop,ei=Vn.direction,fi=Zt.pos,bi=Zt.eventKey;if(It.currentMouseOverDroppableNodeKey!==bi&&(It.currentMouseOverDroppableNodeKey=bi),!It.dragNodeProps){It.resetDragState();return}var Ni=(0,xe.OM)(Wt,It.dragNodeProps,Zt,Bn,It.dragStartMousePosition,si,ln,tn,ke,ei),qn=Ni.dropPosition,Ii=Ni.dropLevelOffset,pr=Ni.dropTargetKey,Ar=Ni.dropContainerKey,Or=Ni.dropTargetPos,wr=Ni.dropAllowed,Fi=Ni.dragOverNodeKey;if(dn.includes(pr)||!wr){It.resetDragState();return}if(It.delayedDragEnterLogic||(It.delayedDragEnterLogic={}),Object.keys(It.delayedDragEnterLogic).forEach(function(Sr){clearTimeout(It.delayedDragEnterLogic[Sr])}),It.dragNodeProps.eventKey!==Zt.eventKey&&(Wt.persist(),It.delayedDragEnterLogic[fi]=window.setTimeout(function(){if(It.state.draggingNodeKey!==null){var Sr=(0,Vt.Z)(ke),Ri=(0,Fe.Z)(tn,Zt.eventKey);Ri&&(Ri.children||[]).length&&(Sr=(0,xe.L0)(ke,Zt.eventKey)),It.props.hasOwnProperty("expandedKeys")||It.setExpandedKeys(Sr),un==null||un(Sr,{node:(0,Xt.F)(Zt),expanded:!0,nativeEvent:Wt.nativeEvent})}},800)),It.dragNodeProps.eventKey===pr&&Ii===0){It.resetDragState();return}It.setState({dragOverNodeKey:Fi,dropPosition:qn,dropLevelOffset:Ii,dropTargetKey:pr,dropContainerKey:Ar,dropTargetPos:Or,dropAllowed:wr}),Tn==null||Tn({event:Wt,node:(0,Xt.F)(Zt),expandedKeys:ke})}),(0,Pt.Z)((0,St.Z)(It),"onNodeDragOver",function(Wt,Zt){var fe=It.state,ke=fe.dragChildrenKeys,tn=fe.flattenNodes,dn=fe.keyEntities,ln=fe.expandedKeys,Bn=fe.indent,Vn=It.props,Tn=Vn.onDragOver,un=Vn.allowDrop,si=Vn.direction;if(It.dragNodeProps){var ei=(0,xe.OM)(Wt,It.dragNodeProps,Zt,Bn,It.dragStartMousePosition,un,tn,dn,ln,si),fi=ei.dropPosition,bi=ei.dropLevelOffset,Ni=ei.dropTargetKey,qn=ei.dropContainerKey,Ii=ei.dropTargetPos,pr=ei.dropAllowed,Ar=ei.dragOverNodeKey;ke.includes(Ni)||!pr||(It.dragNodeProps.eventKey===Ni&&bi===0?It.state.dropPosition===null&&It.state.dropLevelOffset===null&&It.state.dropTargetKey===null&&It.state.dropContainerKey===null&&It.state.dropTargetPos===null&&It.state.dropAllowed===!1&&It.state.dragOverNodeKey===null||It.resetDragState():fi===It.state.dropPosition&&bi===It.state.dropLevelOffset&&Ni===It.state.dropTargetKey&&qn===It.state.dropContainerKey&&Ii===It.state.dropTargetPos&&pr===It.state.dropAllowed&&Ar===It.state.dragOverNodeKey||It.setState({dropPosition:fi,dropLevelOffset:bi,dropTargetKey:Ni,dropContainerKey:qn,dropTargetPos:Ii,dropAllowed:pr,dragOverNodeKey:Ar}),Tn==null||Tn({event:Wt,node:(0,Xt.F)(Zt)}))}}),(0,Pt.Z)((0,St.Z)(It),"onNodeDragLeave",function(Wt,Zt){It.currentMouseOverDroppableNodeKey===Zt.eventKey&&!Wt.currentTarget.contains(Wt.relatedTarget)&&(It.resetDragState(),It.currentMouseOverDroppableNodeKey=null);var fe=It.props.onDragLeave;fe==null||fe({event:Wt,node:(0,Xt.F)(Zt)})}),(0,Pt.Z)((0,St.Z)(It),"onWindowDragEnd",function(Wt){It.onNodeDragEnd(Wt,null,!0),window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,Pt.Z)((0,St.Z)(It),"onNodeDragEnd",function(Wt,Zt){var fe=It.props.onDragEnd;It.setState({dragOverNodeKey:null}),It.cleanDragState(),fe==null||fe({event:Wt,node:(0,Xt.F)(Zt)}),It.dragNodeProps=null,window.removeEventListener("dragend",It.onWindowDragEnd)}),(0,Pt.Z)((0,St.Z)(It),"onNodeDrop",function(Wt,Zt){var fe,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,tn=It.state,dn=tn.dragChildrenKeys,ln=tn.dropPosition,Bn=tn.dropTargetKey,Vn=tn.dropTargetPos,Tn=tn.dropAllowed;if(Tn){var un=It.props.onDrop;if(It.setState({dragOverNodeKey:null}),It.cleanDragState(),Bn!==null){var si=(0,qt.Z)((0,qt.Z)({},(0,Xt.H8)(Bn,It.getTreeNodeRequiredProps())),{},{active:((fe=It.getActiveItem())===null||fe===void 0?void 0:fe.key)===Bn,data:(0,Fe.Z)(It.state.keyEntities,Bn).node}),ei=dn.includes(Bn);(0,et.ZP)(!ei,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var fi=(0,xe.yx)(Vn),bi={event:Wt,node:(0,Xt.F)(si),dragNode:It.dragNodeProps?(0,Xt.F)(It.dragNodeProps):null,dragNodesKeys:[It.dragNodeProps.eventKey].concat(dn),dropToGap:ln!==0,dropPosition:ln+Number(fi[fi.length-1])};ke||un==null||un(bi),It.dragNodeProps=null}}}),(0,Pt.Z)((0,St.Z)(It),"cleanDragState",function(){var Wt=It.state.draggingNodeKey;Wt!==null&&It.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),It.dragStartMousePosition=null,It.currentMouseOverDroppableNodeKey=null}),(0,Pt.Z)((0,St.Z)(It),"triggerExpandActionExpand",function(Wt,Zt){var fe=It.state,ke=fe.expandedKeys,tn=fe.flattenNodes,dn=Zt.expanded,ln=Zt.key,Bn=Zt.isLeaf;if(!(Bn||Wt.shiftKey||Wt.metaKey||Wt.ctrlKey)){var Vn=tn.filter(function(un){return un.key===ln})[0],Tn=(0,Xt.F)((0,qt.Z)((0,qt.Z)({},(0,Xt.H8)(ln,It.getTreeNodeRequiredProps())),{},{data:Vn.data}));It.setExpandedKeys(dn?(0,xe._5)(ke,ln):(0,xe.L0)(ke,ln)),It.onNodeExpand(Wt,Tn)}}),(0,Pt.Z)((0,St.Z)(It),"onNodeClick",function(Wt,Zt){var fe=It.props,ke=fe.onClick,tn=fe.expandAction;tn==="click"&&It.triggerExpandActionExpand(Wt,Zt),ke==null||ke(Wt,Zt)}),(0,Pt.Z)((0,St.Z)(It),"onNodeDoubleClick",function(Wt,Zt){var fe=It.props,ke=fe.onDoubleClick,tn=fe.expandAction;tn==="doubleClick"&&It.triggerExpandActionExpand(Wt,Zt),ke==null||ke(Wt,Zt)}),(0,Pt.Z)((0,St.Z)(It),"onNodeSelect",function(Wt,Zt){var fe=It.state.selectedKeys,ke=It.state,tn=ke.keyEntities,dn=ke.fieldNames,ln=It.props,Bn=ln.onSelect,Vn=ln.multiple,Tn=Zt.selected,un=Zt[dn.key],si=!Tn;si?Vn?fe=(0,xe.L0)(fe,un):fe=[un]:fe=(0,xe._5)(fe,un);var ei=fe.map(function(fi){var bi=(0,Fe.Z)(tn,fi);return bi?bi.node:null}).filter(Boolean);It.setUncontrolledState({selectedKeys:fe}),Bn==null||Bn(fe,{event:"select",selected:si,node:Zt,selectedNodes:ei,nativeEvent:Wt.nativeEvent})}),(0,Pt.Z)((0,St.Z)(It),"onNodeCheck",function(Wt,Zt,fe){var ke=It.state,tn=ke.keyEntities,dn=ke.checkedKeys,ln=ke.halfCheckedKeys,Bn=It.props,Vn=Bn.checkStrictly,Tn=Bn.onCheck,un=Zt.key,si,ei={event:"check",node:Zt,checked:fe,nativeEvent:Wt.nativeEvent};if(Vn){var fi=fe?(0,xe.L0)(dn,un):(0,xe._5)(dn,un),bi=(0,xe._5)(ln,un);si={checked:fi,halfChecked:bi},ei.checkedNodes=fi.map(function(Or){return(0,Fe.Z)(tn,Or)}).filter(Boolean).map(function(Or){return Or.node}),It.setUncontrolledState({checkedKeys:fi})}else{var Ni=(0,_e.S)([].concat((0,Vt.Z)(dn),[un]),!0,tn),qn=Ni.checkedKeys,Ii=Ni.halfCheckedKeys;if(!fe){var pr=new Set(qn);pr.delete(un);var Ar=(0,_e.S)(Array.from(pr),{checked:!1,halfCheckedKeys:Ii},tn);qn=Ar.checkedKeys,Ii=Ar.halfCheckedKeys}si=qn,ei.checkedNodes=[],ei.checkedNodesPositions=[],ei.halfCheckedKeys=Ii,qn.forEach(function(Or){var wr=(0,Fe.Z)(tn,Or);if(wr){var Fi=wr.node,Sr=wr.pos;ei.checkedNodes.push(Fi),ei.checkedNodesPositions.push({node:Fi,pos:Sr})}}),It.setUncontrolledState({checkedKeys:qn},!1,{halfCheckedKeys:Ii})}Tn==null||Tn(si,ei)}),(0,Pt.Z)((0,St.Z)(It),"onNodeLoad",function(Wt){var Zt,fe=Wt.key,ke=It.state.keyEntities,tn=(0,Fe.Z)(ke,fe);if(!(tn!=null&&(Zt=tn.children)!==null&&Zt!==void 0&&Zt.length)){var dn=new Promise(function(ln,Bn){It.setState(function(Vn){var Tn=Vn.loadedKeys,un=Tn===void 0?[]:Tn,si=Vn.loadingKeys,ei=si===void 0?[]:si,fi=It.props,bi=fi.loadData,Ni=fi.onLoad;if(!bi||un.includes(fe)||ei.includes(fe))return null;var qn=bi(Wt);return qn.then(function(){var Ii=It.state.loadedKeys,pr=(0,xe.L0)(Ii,fe);Ni==null||Ni(pr,{event:"load",node:Wt}),It.setUncontrolledState({loadedKeys:pr}),It.setState(function(Ar){return{loadingKeys:(0,xe._5)(Ar.loadingKeys,fe)}}),ln()}).catch(function(Ii){if(It.setState(function(Ar){return{loadingKeys:(0,xe._5)(Ar.loadingKeys,fe)}}),It.loadingRetryTimes[fe]=(It.loadingRetryTimes[fe]||0)+1,It.loadingRetryTimes[fe]>=Ae){var pr=It.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),It.setUncontrolledState({loadedKeys:(0,xe.L0)(pr,fe)}),ln()}Bn(Ii)}),{loadingKeys:(0,xe.L0)(ei,fe)}})});return dn.catch(function(){}),dn}}),(0,Pt.Z)((0,St.Z)(It),"onNodeMouseEnter",function(Wt,Zt){var fe=It.props.onMouseEnter;fe==null||fe({event:Wt,node:Zt})}),(0,Pt.Z)((0,St.Z)(It),"onNodeMouseLeave",function(Wt,Zt){var fe=It.props.onMouseLeave;fe==null||fe({event:Wt,node:Zt})}),(0,Pt.Z)((0,St.Z)(It),"onNodeContextMenu",function(Wt,Zt){var fe=It.props.onRightClick;fe&&(Wt.preventDefault(),fe({event:Wt,node:Zt}))}),(0,Pt.Z)((0,St.Z)(It),"onFocus",function(){var Wt=It.props.onFocus;It.setState({focused:!0});for(var Zt=arguments.length,fe=new Array(Zt),ke=0;ke<Zt;ke++)fe[ke]=arguments[ke];Wt==null||Wt.apply(void 0,fe)}),(0,Pt.Z)((0,St.Z)(It),"onBlur",function(){var Wt=It.props.onBlur;It.setState({focused:!1}),It.onActiveChange(null);for(var Zt=arguments.length,fe=new Array(Zt),ke=0;ke<Zt;ke++)fe[ke]=arguments[ke];Wt==null||Wt.apply(void 0,fe)}),(0,Pt.Z)((0,St.Z)(It),"getTreeNodeRequiredProps",function(){var Wt=It.state,Zt=Wt.expandedKeys,fe=Wt.selectedKeys,ke=Wt.loadedKeys,tn=Wt.loadingKeys,dn=Wt.checkedKeys,ln=Wt.halfCheckedKeys,Bn=Wt.dragOverNodeKey,Vn=Wt.dropPosition,Tn=Wt.keyEntities;return{expandedKeys:Zt||[],selectedKeys:fe||[],loadedKeys:ke||[],loadingKeys:tn||[],checkedKeys:dn||[],halfCheckedKeys:ln||[],dragOverNodeKey:Bn,dropPosition:Vn,keyEntities:Tn}}),(0,Pt.Z)((0,St.Z)(It),"setExpandedKeys",function(Wt){var Zt=It.state,fe=Zt.treeData,ke=Zt.fieldNames,tn=(0,Xt.oH)(fe,Wt,ke);It.setUncontrolledState({expandedKeys:Wt,flattenNodes:tn},!0)}),(0,Pt.Z)((0,St.Z)(It),"onNodeExpand",function(Wt,Zt){var fe=It.state.expandedKeys,ke=It.state,tn=ke.listChanging,dn=ke.fieldNames,ln=It.props,Bn=ln.onExpand,Vn=ln.loadData,Tn=Zt.expanded,un=Zt[dn.key];if(!tn){var si=fe.includes(un),ei=!Tn;if((0,et.ZP)(Tn&&si||!Tn&&!si,"Expand state not sync with index check"),fe=ei?(0,xe.L0)(fe,un):(0,xe._5)(fe,un),It.setExpandedKeys(fe),Bn==null||Bn(fe,{node:Zt,expanded:ei,nativeEvent:Wt.nativeEvent}),ei&&Vn){var fi=It.onNodeLoad(Zt);fi&&fi.then(function(){var bi=(0,Xt.oH)(It.state.treeData,fe,dn);It.setUncontrolledState({flattenNodes:bi})}).catch(function(){var bi=It.state.expandedKeys,Ni=(0,xe._5)(bi,un);It.setExpandedKeys(Ni)})}}}),(0,Pt.Z)((0,St.Z)(It),"onListChangeStart",function(){It.setUncontrolledState({listChanging:!0})}),(0,Pt.Z)((0,St.Z)(It),"onListChangeEnd",function(){setTimeout(function(){It.setUncontrolledState({listChanging:!1})})}),(0,Pt.Z)((0,St.Z)(It),"onActiveChange",function(Wt){var Zt=It.state.activeKey,fe=It.props,ke=fe.onActiveChange,tn=fe.itemScrollOffset,dn=tn===void 0?0:tn;Zt!==Wt&&(It.setState({activeKey:Wt}),Wt!==null&&It.scrollTo({key:Wt,offset:dn}),ke==null||ke(Wt))}),(0,Pt.Z)((0,St.Z)(It),"getActiveItem",function(){var Wt=It.state,Zt=Wt.activeKey,fe=Wt.flattenNodes;return Zt===null?null:fe.find(function(ke){var tn=ke.key;return tn===Zt})||null}),(0,Pt.Z)((0,St.Z)(It),"offsetActiveKey",function(Wt){var Zt=It.state,fe=Zt.flattenNodes,ke=Zt.activeKey,tn=fe.findIndex(function(Bn){var Vn=Bn.key;return Vn===ke});tn===-1&&Wt<0&&(tn=fe.length),tn=(tn+Wt+fe.length)%fe.length;var dn=fe[tn];if(dn){var ln=dn.key;It.onActiveChange(ln)}else It.onActiveChange(null)}),(0,Pt.Z)((0,St.Z)(It),"onKeyDown",function(Wt){var Zt=It.state,fe=Zt.activeKey,ke=Zt.expandedKeys,tn=Zt.checkedKeys,dn=Zt.fieldNames,ln=It.props,Bn=ln.onKeyDown,Vn=ln.checkable,Tn=ln.selectable;switch(Wt.which){case Ft.Z.UP:{It.offsetActiveKey(-1),Wt.preventDefault();break}case Ft.Z.DOWN:{It.offsetActiveKey(1),Wt.preventDefault();break}}var un=It.getActiveItem();if(un&&un.data){var si=It.getTreeNodeRequiredProps(),ei=un.data.isLeaf===!1||!!(un.data[dn.children]||[]).length,fi=(0,Xt.F)((0,qt.Z)((0,qt.Z)({},(0,Xt.H8)(fe,si)),{},{data:un.data,active:!0}));switch(Wt.which){case Ft.Z.LEFT:{ei&&ke.includes(fe)?It.onNodeExpand({},fi):un.parent&&It.onActiveChange(un.parent.key),Wt.preventDefault();break}case Ft.Z.RIGHT:{ei&&!ke.includes(fe)?It.onNodeExpand({},fi):un.children&&un.children.length&&It.onActiveChange(un.children[0].key),Wt.preventDefault();break}case Ft.Z.ENTER:case Ft.Z.SPACE:{Vn&&!fi.disabled&&fi.checkable!==!1&&!fi.disableCheckbox?It.onNodeCheck({},fi,!tn.includes(fe)):!Vn&&Tn&&!fi.disabled&&fi.selectable!==!1&&It.onNodeSelect({},fi);break}}}Bn==null||Bn(Wt)}),(0,Pt.Z)((0,St.Z)(It),"setUncontrolledState",function(Wt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!It.destroyed){var ke=!1,tn=!0,dn={};Object.keys(Wt).forEach(function(ln){if(It.props.hasOwnProperty(ln)){tn=!1;return}ke=!0,dn[ln]=Wt[ln]}),ke&&(!Zt||tn)&&It.setState((0,qt.Z)((0,qt.Z)({},dn),fe))}}),(0,Pt.Z)((0,St.Z)(It),"scrollTo",function(Wt){It.listRef.current.scrollTo(Wt)}),It}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 bt=this.props,Bt=bt.activeKey,ie=bt.itemScrollOffset,Wt=ie===void 0?0:ie;Bt!==void 0&&Bt!==this.state.activeKey&&(this.setState({activeKey:Bt}),Bt!==null&&this.scrollTo({key:Bt,offset:Wt}))}},{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 bt=this.state,Bt=bt.focused,ie=bt.flattenNodes,Wt=bt.keyEntities,Zt=bt.draggingNodeKey,fe=bt.activeKey,ke=bt.dropLevelOffset,tn=bt.dropContainerKey,dn=bt.dropTargetKey,ln=bt.dropPosition,Bn=bt.dragOverNodeKey,Vn=bt.indent,Tn=this.props,un=Tn.prefixCls,si=Tn.className,ei=Tn.style,fi=Tn.showLine,bi=Tn.focusable,Ni=Tn.tabIndex,qn=Ni===void 0?0:Ni,Ii=Tn.selectable,pr=Tn.showIcon,Ar=Tn.icon,Or=Tn.switcherIcon,wr=Tn.draggable,Fi=Tn.checkable,Sr=Tn.checkStrictly,Ri=Tn.disabled,vn=Tn.motion,Ut=Tn.loadData,cn=Tn.filterTreeNode,Pn=Tn.height,kn=Tn.itemHeight,Nn=Tn.scrollWidth,On=Tn.virtual,Hn=Tn.titleRender,gi=Tn.dropIndicatorRender,nn=Tn.onContextMenu,en=Tn.onScroll,We=Tn.direction,sn=Tn.rootClassName,Xn=Tn.rootStyle,Zn=(0,vt.Z)(this.props,{aria:!0,data:!0}),zn;wr&&((0,xt.Z)(wr)==="object"?zn=wr:typeof wr=="function"?zn={nodeDraggable:wr}:zn={});var Ze={prefixCls:un,selectable:Ii,showIcon:pr,icon:Ar,switcherIcon:Or,draggable:zn,draggingNodeKey:Zt,checkable:Fi,checkStrictly:Sr,disabled:Ri,keyEntities:Wt,dropLevelOffset:ke,dropContainerKey:tn,dropTargetKey:dn,dropPosition:ln,dragOverNodeKey:Bn,indent:Vn,direction:We,dropIndicatorRender:gi,loadData:Ut,filterTreeNode:cn,titleRender:Hn,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 tt.createElement(st.k.Provider,{value:Ze},tt.createElement("div",{className:Lt()(un,si,sn,(0,Pt.Z)((0,Pt.Z)((0,Pt.Z)({},"".concat(un,"-show-line"),fi),"".concat(un,"-focused"),Bt),"".concat(un,"-active-focused"),fe!==null)),style:Xn},tt.createElement(Le,(0,Jt.Z)({ref:this.listRef,prefixCls:un,style:ei,data:ie,disabled:Ri,selectable:Ii,checkable:!!Fi,motion:vn,dragging:Zt!==null,height:Pn,itemHeight:kn,virtual:On,focusable:bi,focused:Bt,tabIndex:qn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:nn,onScroll:en,scrollWidth:Nn},this.getTreeNodeRequiredProps(),Zn))))}}],[{key:"getDerivedStateFromProps",value:function(bt,Bt){var ie=Bt.prevProps,Wt={prevProps:bt};function Zt(qn){return!ie&&bt.hasOwnProperty(qn)||ie&&ie[qn]!==bt[qn]}var fe,ke=Bt.fieldNames;if(Zt("fieldNames")&&(ke=(0,Xt.w$)(bt.fieldNames),Wt.fieldNames=ke),Zt("treeData")?fe=bt.treeData:Zt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),fe=(0,Xt.zn)(bt.children)),fe){Wt.treeData=fe;var tn=(0,Xt.I8)(fe,{fieldNames:ke});Wt.keyEntities=(0,qt.Z)((0,Pt.Z)({},_t,re),tn.keyEntities)}var dn=Wt.keyEntities||Bt.keyEntities;if(Zt("expandedKeys")||ie&&Zt("autoExpandParent"))Wt.expandedKeys=bt.autoExpandParent||!ie&&bt.defaultExpandParent?(0,xe.r7)(bt.expandedKeys,dn):bt.expandedKeys;else if(!ie&&bt.defaultExpandAll){var ln=(0,qt.Z)({},dn);delete ln[_t];var Bn=[];Object.keys(ln).forEach(function(qn){var Ii=ln[qn];Ii.children&&Ii.children.length&&Bn.push(Ii.key)}),Wt.expandedKeys=Bn}else!ie&&bt.defaultExpandedKeys&&(Wt.expandedKeys=bt.autoExpandParent||bt.defaultExpandParent?(0,xe.r7)(bt.defaultExpandedKeys,dn):bt.defaultExpandedKeys);if(Wt.expandedKeys||delete Wt.expandedKeys,fe||Wt.expandedKeys){var Vn=(0,Xt.oH)(fe||Bt.treeData,Wt.expandedKeys||Bt.expandedKeys,ke);Wt.flattenNodes=Vn}if(bt.selectable&&(Zt("selectedKeys")?Wt.selectedKeys=(0,xe.BT)(bt.selectedKeys,bt):!ie&&bt.defaultSelectedKeys&&(Wt.selectedKeys=(0,xe.BT)(bt.defaultSelectedKeys,bt))),bt.checkable){var Tn;if(Zt("checkedKeys")?Tn=(0,xe.E6)(bt.checkedKeys)||{}:!ie&&bt.defaultCheckedKeys?Tn=(0,xe.E6)(bt.defaultCheckedKeys)||{}:fe&&(Tn=(0,xe.E6)(bt.checkedKeys)||{checkedKeys:Bt.checkedKeys,halfCheckedKeys:Bt.halfCheckedKeys}),Tn){var un=Tn,si=un.checkedKeys,ei=si===void 0?[]:si,fi=un.halfCheckedKeys,bi=fi===void 0?[]:fi;if(!bt.checkStrictly){var Ni=(0,_e.S)(ei,!0,dn);ei=Ni.checkedKeys,bi=Ni.halfCheckedKeys}Wt.checkedKeys=ei,Wt.halfCheckedKeys=bi}}return Zt("loadedKeys")&&(Wt.loadedKeys=bt.loadedKeys),Wt}}]),Kt}(tt.Component);(0,Pt.Z)(oe,"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:ut,allowDrop:function(){return!0},expandAction:!1}),(0,Pt.Z)(oe,"TreeNode",Ot.Z);var Mt=oe,At=Mt},10225:function(An,jn,he){"use strict";he.d(jn,{BT:function(){return tt},E6:function(){return ut},L0:function(){return Pt},OM:function(){return et},_5:function(){return Nt},r7:function(){return ct},wA:function(){return Lt},yx:function(){return Ct}});var Jt=he(74902),xt=he(71002),qt=he(80334),Vt=he(67294),Rt=he(86128),Dt=he(35381),St=he(1089),Et=null;function Nt(gt,ft){if(!gt)return[];var kt=gt.slice(),jt=kt.indexOf(ft);return jt>=0&&kt.splice(jt,1),kt}function Pt(gt,ft){var kt=(gt||[]).slice();return kt.indexOf(ft)===-1&&kt.push(ft),kt}function Ct(gt){return gt.split("-")}function Lt(gt,ft){var kt=[],jt=(0,Dt.Z)(ft,gt);function Ht(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ot.forEach(function(te){var ne=te.key,Xt=te.children;kt.push(ne),Ht(Xt)})}return Ht(jt.children),kt}function Ft(gt){if(gt.parent){var ft=Ct(gt.pos);return Number(ft[ft.length-1])===gt.parent.children.length-1}return!1}function vt(gt){var ft=Ct(gt.pos);return Number(ft[ft.length-1])===0}function et(gt,ft,kt,jt,Ht,Ot,te,ne,Xt,ce){var me,Pe=gt.clientX,De=gt.clientY,Ve=gt.target.getBoundingClientRect(),we=Ve.top,Qe=Ve.height,ae=(ce==="rtl"?-1:1)*(((Ht==null?void 0:Ht.x)||0)-Pe),_t=(ae-12)/jt,$t=Xt.filter(function(At){var Qt;return(Qt=ne[At])===null||Qt===void 0||(Qt=Qt.children)===null||Qt===void 0?void 0:Qt.length}),re=(0,Dt.Z)(ne,kt.eventKey);if(De<we+Qe/2){var pe=te.findIndex(function(At){return At.key===re.key}),le=pe<=0?0:pe-1,Ue=te[le].key;re=(0,Dt.Z)(ne,Ue)}var Ne=re.key,Xe=re,Le=re.key,xe=0,_e=0;if(!$t.includes(Ne))for(var Fe=0;Fe<_t&&Ft(re);Fe+=1)re=re.parent,_e+=1;var Ae=ft.data,oe=re.node,Mt=!0;return vt(re)&&re.level===0&&De<we+Qe/2&&Ot({dragNode:Ae,dropNode:oe,dropPosition:-1})&&re.key===kt.eventKey?xe=-1:(Xe.children||[]).length&&$t.includes(Le)?Ot({dragNode:Ae,dropNode:oe,dropPosition:0})?xe=0:Mt=!1:_e===0?_t>-1.5?Ot({dragNode:Ae,dropNode:oe,dropPosition:1})?xe=1:Mt=!1:Ot({dragNode:Ae,dropNode:oe,dropPosition:0})?xe=0:Ot({dragNode:Ae,dropNode:oe,dropPosition:1})?xe=1:Mt=!1:Ot({dragNode:Ae,dropNode:oe,dropPosition:1})?xe=1:Mt=!1,{dropPosition:xe,dropLevelOffset:_e,dropTargetKey:re.key,dropTargetPos:re.pos,dragOverNodeKey:Le,dropContainerKey:xe===0?null:((me=re.parent)===null||me===void 0?void 0:me.key)||null,dropAllowed:Mt}}function tt(gt,ft){if(gt){var kt=ft.multiple;return kt?gt.slice():gt.length?[gt[0]]:gt}}var st=function(ft){return ft};function rt(gt,ft){if(!gt)return[];var kt=ft||{},jt=kt.processProps,Ht=jt===void 0?st:jt,Ot=Array.isArray(gt)?gt:[gt];return Ot.map(function(te){var ne=te.children,Xt=_objectWithoutProperties(te,Et),ce=rt(ne,ft);return React.createElement(TreeNode,_extends({key:Xt.key},Ht(Xt)),ce)})}function ut(gt){if(!gt)return null;var ft;if(Array.isArray(gt))ft={checkedKeys:gt,halfCheckedKeys:void 0};else if((0,xt.Z)(gt)==="object")ft={checkedKeys:gt.checked||void 0,halfCheckedKeys:gt.halfChecked||void 0};else return(0,qt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ft}function ct(gt,ft){var kt=new Set;function jt(Ht){if(!kt.has(Ht)){var Ot=(0,Dt.Z)(ft,Ht);if(Ot){kt.add(Ht);var te=Ot.parent,ne=Ot.node;ne.disabled||te&&jt(te.key)}}}return(gt||[]).forEach(function(Ht){jt(Ht)}),(0,Jt.Z)(kt)}},17341:function(An,jn,he){"use strict";he.d(jn,{S:function(){return St}});var Jt=he(80334),xt=he(35381);function qt(Et,Nt){var Pt=new Set;return Et.forEach(function(Ct){Nt.has(Ct)||Pt.add(Ct)}),Pt}function Vt(Et){var Nt=Et||{},Pt=Nt.disabled,Ct=Nt.disableCheckbox,Lt=Nt.checkable;return!!(Pt||Ct)||Lt===!1}function Rt(Et,Nt,Pt,Ct){for(var Lt=new Set(Et),Ft=new Set,vt=0;vt<=Pt;vt+=1){var et=Nt.get(vt)||new Set;et.forEach(function(ut){var ct=ut.key,gt=ut.node,ft=ut.children,kt=ft===void 0?[]:ft;Lt.has(ct)&&!Ct(gt)&&kt.filter(function(jt){return!Ct(jt.node)}).forEach(function(jt){Lt.add(jt.key)})})}for(var tt=new Set,st=Pt;st>=0;st-=1){var rt=Nt.get(st)||new Set;rt.forEach(function(ut){var ct=ut.parent,gt=ut.node;if(!(Ct(gt)||!ut.parent||tt.has(ut.parent.key))){if(Ct(ut.parent.node)){tt.add(ct.key);return}var ft=!0,kt=!1;(ct.children||[]).filter(function(jt){return!Ct(jt.node)}).forEach(function(jt){var Ht=jt.key,Ot=Lt.has(Ht);ft&&!Ot&&(ft=!1),!kt&&(Ot||Ft.has(Ht))&&(kt=!0)}),ft&&Lt.add(ct.key),kt&&Ft.add(ct.key),tt.add(ct.key)}})}return{checkedKeys:Array.from(Lt),halfCheckedKeys:Array.from(qt(Ft,Lt))}}function Dt(Et,Nt,Pt,Ct,Lt){for(var Ft=new Set(Et),vt=new Set(Nt),et=0;et<=Ct;et+=1){var tt=Pt.get(et)||new Set;tt.forEach(function(ct){var gt=ct.key,ft=ct.node,kt=ct.children,jt=kt===void 0?[]:kt;!Ft.has(gt)&&!vt.has(gt)&&!Lt(ft)&&jt.filter(function(Ht){return!Lt(Ht.node)}).forEach(function(Ht){Ft.delete(Ht.key)})})}vt=new Set;for(var st=new Set,rt=Ct;rt>=0;rt-=1){var ut=Pt.get(rt)||new Set;ut.forEach(function(ct){var gt=ct.parent,ft=ct.node;if(!(Lt(ft)||!ct.parent||st.has(ct.parent.key))){if(Lt(ct.parent.node)){st.add(gt.key);return}var kt=!0,jt=!1;(gt.children||[]).filter(function(Ht){return!Lt(Ht.node)}).forEach(function(Ht){var Ot=Ht.key,te=Ft.has(Ot);kt&&!te&&(kt=!1),!jt&&(te||vt.has(Ot))&&(jt=!0)}),kt||Ft.delete(gt.key),jt&&vt.add(gt.key),st.add(gt.key)}})}return{checkedKeys:Array.from(Ft),halfCheckedKeys:Array.from(qt(vt,Ft))}}function St(Et,Nt,Pt,Ct){var Lt=[],Ft;Ct?Ft=Ct:Ft=Vt;var vt=new Set(Et.filter(function(rt){var ut=!!(0,xt.Z)(Pt,rt);return ut||Lt.push(rt),ut})),et=new Map,tt=0;Object.keys(Pt).forEach(function(rt){var ut=Pt[rt],ct=ut.level,gt=et.get(ct);gt||(gt=new Set,et.set(ct,gt)),gt.add(ut),tt=Math.max(tt,ct)}),(0,Jt.ZP)(!Lt.length,"Tree missing follow keys: ".concat(Lt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var st;return Nt===!0?st=Rt(vt,et,tt,Ft):st=Dt(vt,Nt.halfCheckedKeys,et,tt,Ft),st}},35381:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Jt}});function Jt(xt,qt){return xt[qt]}},1089:function(An,jn,he){"use strict";he.d(jn,{F:function(){return ct},H8:function(){return ut},I8:function(){return rt},km:function(){return Lt},oH:function(){return tt},w$:function(){return Ft},zn:function(){return et}});var Jt=he(71002),xt=he(74902),qt=he(1413),Vt=he(45987),Rt=he(50344),Dt=he(98423),St=he(80334),Et=he(35381),Nt=["children"];function Pt(gt,ft){return"".concat(gt,"-").concat(ft)}function Ct(gt){return gt&>.type&>.type.isTreeNode}function Lt(gt,ft){return gt!=null?gt:ft}function Ft(gt){var ft=gt||{},kt=ft.title,jt=ft._title,Ht=ft.key,Ot=ft.children,te=kt||"title";return{title:te,_title:jt||[te],key:Ht||"key",children:Ot||"children"}}function vt(gt,ft){var kt=new Map;function jt(Ht){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ht||[]).forEach(function(te){var ne=te[ft.key],Xt=te[ft.children];warning(ne!=null,"Tree node must have a certain key: [".concat(Ot).concat(ne,"]"));var ce=String(ne);warning(!kt.has(ce)||ne===null||ne===void 0,"Same 'key' exist in the Tree: ".concat(ce)),kt.set(ce,!0),jt(Xt,"".concat(Ot).concat(ce," > "))})}jt(gt)}function et(gt){function ft(kt){var jt=(0,Rt.Z)(kt);return jt.map(function(Ht){if(!Ct(Ht))return(0,St.ZP)(!Ht,"Tree/TreeNode can only accept TreeNode as children."),null;var Ot=Ht.key,te=Ht.props,ne=te.children,Xt=(0,Vt.Z)(te,Nt),ce=(0,qt.Z)({key:Ot},Xt),me=ft(ne);return me.length&&(ce.children=me),ce}).filter(function(Ht){return Ht})}return ft(gt)}function tt(gt,ft,kt){var jt=Ft(kt),Ht=jt._title,Ot=jt.key,te=jt.children,ne=new Set(ft===!0?[]:ft),Xt=[];function ce(me){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return me.map(function(De,Ve){for(var we=Pt(Pe?Pe.pos:"0",Ve),Qe=Lt(De[Ot],we),ae,_t=0;_t<Ht.length;_t+=1){var $t=Ht[_t];if(De[$t]!==void 0){ae=De[$t];break}}var re=Object.assign((0,Dt.Z)(De,[].concat((0,xt.Z)(Ht),[Ot,te])),{title:ae,key:Qe,parent:Pe,pos:we,children:null,data:De,isStart:[].concat((0,xt.Z)(Pe?Pe.isStart:[]),[Ve===0]),isEnd:[].concat((0,xt.Z)(Pe?Pe.isEnd:[]),[Ve===me.length-1])});return Xt.push(re),ft===!0||ne.has(Qe)?re.children=ce(De[te]||[],re):re.children=[],re})}return ce(gt),Xt}function st(gt,ft,kt){var jt={};(0,Jt.Z)(kt)==="object"?jt=kt:jt={externalGetKey:kt},jt=jt||{};var Ht=jt,Ot=Ht.childrenPropName,te=Ht.externalGetKey,ne=Ht.fieldNames,Xt=Ft(ne),ce=Xt.key,me=Xt.children,Pe=Ot||me,De;te?typeof te=="string"?De=function(Qe){return Qe[te]}:typeof te=="function"&&(De=function(Qe){return te(Qe)}):De=function(Qe,ae){return Lt(Qe[ce],ae)};function Ve(we,Qe,ae,_t){var $t=we?we[Pe]:gt,re=we?Pt(ae.pos,Qe):"0",pe=we?[].concat((0,xt.Z)(_t),[we]):[];if(we){var le=De(we,re),Ue={node:we,index:Qe,pos:re,key:le,parentPos:ae.node?ae.pos:null,level:ae.level+1,nodes:pe};ft(Ue)}$t&&$t.forEach(function(Ne,Xe){Ve(Ne,Xe,{node:we,pos:re,level:ae?ae.level+1:-1},pe)})}Ve(null)}function rt(gt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kt=ft.initWrapper,jt=ft.processEntity,Ht=ft.onProcessFinished,Ot=ft.externalGetKey,te=ft.childrenPropName,ne=ft.fieldNames,Xt=arguments.length>2?arguments[2]:void 0,ce=Ot||Xt,me={},Pe={},De={posEntities:me,keyEntities:Pe};return kt&&(De=kt(De)||De),st(gt,function(Ve){var we=Ve.node,Qe=Ve.index,ae=Ve.pos,_t=Ve.key,$t=Ve.parentPos,re=Ve.level,pe=Ve.nodes,le={node:we,nodes:pe,index:Qe,key:_t,pos:ae,level:re},Ue=Lt(_t,ae);me[ae]=le,Pe[Ue]=le,le.parent=me[$t],le.parent&&(le.parent.children=le.parent.children||[],le.parent.children.push(le)),jt&&jt(le,De)},{externalGetKey:ce,childrenPropName:te,fieldNames:ne}),Ht&&Ht(De),De}function ut(gt,ft){var kt=ft.expandedKeys,jt=ft.selectedKeys,Ht=ft.loadedKeys,Ot=ft.loadingKeys,te=ft.checkedKeys,ne=ft.halfCheckedKeys,Xt=ft.dragOverNodeKey,ce=ft.dropPosition,me=ft.keyEntities,Pe=(0,Et.Z)(me,gt),De={eventKey:gt,expanded:kt.indexOf(gt)!==-1,selected:jt.indexOf(gt)!==-1,loaded:Ht.indexOf(gt)!==-1,loading:Ot.indexOf(gt)!==-1,checked:te.indexOf(gt)!==-1,halfChecked:ne.indexOf(gt)!==-1,pos:String(Pe?Pe.pos:""),dragOver:Xt===gt&&ce===0,dragOverGapTop:Xt===gt&&ce===-1,dragOverGapBottom:Xt===gt&&ce===1};return De}function ct(gt){var ft=gt.data,kt=gt.expanded,jt=gt.selected,Ht=gt.checked,Ot=gt.loaded,te=gt.loading,ne=gt.halfChecked,Xt=gt.dragOver,ce=gt.dragOverGapTop,me=gt.dragOverGapBottom,Pe=gt.pos,De=gt.active,Ve=gt.eventKey,we=(0,qt.Z)((0,qt.Z)({},ft),{},{expanded:kt,selected:jt,checked:Ht,loaded:Ot,loading:te,halfChecked:ne,dragOver:Xt,dragOverGapTop:ce,dragOverGapBottom:me,pos:Pe,active:De,key:Ve});return"props"in we||Object.defineProperty(we,"props",{get:function(){return(0,St.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),gt}}),we}},36356:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Ve}});var Jt=he(87462),xt=he(15671),qt=he(43144),Vt=he(97326),Rt=he(60136),Dt=he(29388),St=he(4942),Et=he(67294),Nt=he(1413),Pt=he(45987),Ct=he(71002),Lt=he(74165),Ft=he(15861),vt=he(74902),et=he(94184),tt=he.n(et),st=he(64217),rt=he(80334),ut=function(we,Qe){if(we&&Qe){var ae=Array.isArray(Qe)?Qe:Qe.split(","),_t=we.name||"",$t=we.type||"",re=$t.replace(/\/.*$/,"");return ae.some(function(pe){var le=pe.trim();if(/^\*(\/\*)?$/.test(pe))return!0;if(le.charAt(0)==="."){var Ue=_t.toLowerCase(),Ne=le.toLowerCase(),Xe=[Ne];return(Ne===".jpg"||Ne===".jpeg")&&(Xe=[".jpg",".jpeg"]),Xe.some(function(Le){return Ue.endsWith(Le)})}return/\/\*$/.test(le)?re===le.replace(/\/.*$/,""):$t===le?!0:/^\w+$/.test(le)?((0,rt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(le,"'.Skip for check.")),!0):!1})}return!0};function ct(we,Qe){var ae="cannot ".concat(we.method," ").concat(we.action," ").concat(Qe.status,"'"),_t=new Error(ae);return _t.status=Qe.status,_t.method=we.method,_t.url=we.action,_t}function gt(we){var Qe=we.responseText||we.response;if(!Qe)return Qe;try{return JSON.parse(Qe)}catch(ae){return Qe}}function ft(we){var Qe=new XMLHttpRequest;we.onProgress&&Qe.upload&&(Qe.upload.onprogress=function(re){re.total>0&&(re.percent=re.loaded/re.total*100),we.onProgress(re)});var ae=new FormData;we.data&&Object.keys(we.data).forEach(function($t){var re=we.data[$t];if(Array.isArray(re)){re.forEach(function(pe){ae.append("".concat($t,"[]"),pe)});return}ae.append($t,re)}),we.file instanceof Blob?ae.append(we.filename,we.file,we.file.name):ae.append(we.filename,we.file),Qe.onerror=function(re){we.onError(re)},Qe.onload=function(){return Qe.status<200||Qe.status>=300?we.onError(ct(we,Qe),gt(Qe)):we.onSuccess(gt(Qe),Qe)},Qe.open(we.method,we.action,!0),we.withCredentials&&"withCredentials"in Qe&&(Qe.withCredentials=!0);var _t=we.headers||{};return _t["X-Requested-With"]!==null&&Qe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(_t).forEach(function($t){_t[$t]!==null&&Qe.setRequestHeader($t,_t[$t])}),Qe.send(ae),{abort:function(){Qe.abort()}}}var kt=function(){var we=(0,Ft.Z)((0,Lt.Z)().mark(function Qe(ae,_t){var $t,re,pe,le,Ue,Ne,Xe,Le;return(0,Lt.Z)().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:Ne=function(){return Ne=(0,Ft.Z)((0,Lt.Z)().mark(function Ae(oe){return(0,Lt.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:return At.abrupt("return",new Promise(function(Qt){oe.file(function(se){_t(se)?(oe.fullPath&&!se.webkitRelativePath&&(Object.defineProperties(se,{webkitRelativePath:{writable:!0}}),se.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(se,{webkitRelativePath:{writable:!1}})),Qt(se)):Qt(null)})}));case 1:case"end":return At.stop()}},Ae)})),Ne.apply(this,arguments)},Ue=function(Ae){return Ne.apply(this,arguments)},le=function(){return le=(0,Ft.Z)((0,Lt.Z)().mark(function Ae(oe){var Mt,At,Qt,se,Kt;return(0,Lt.Z)().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:Mt=oe.createReader(),At=[];case 2:return bt.next=5,new Promise(function(Bt){Mt.readEntries(Bt,function(){return Bt([])})});case 5:if(Qt=bt.sent,se=Qt.length,se){bt.next=9;break}return bt.abrupt("break",12);case 9:for(Kt=0;Kt<se;Kt++)At.push(Qt[Kt]);bt.next=2;break;case 12:return bt.abrupt("return",At);case 13:case"end":return bt.stop()}},Ae)})),le.apply(this,arguments)},pe=function(Ae){return le.apply(this,arguments)},$t=[],re=[],ae.forEach(function(Fe){return re.push(Fe.webkitGetAsEntry())}),Xe=function(){var Fe=(0,Ft.Z)((0,Lt.Z)().mark(function Ae(oe,Mt){var At,Qt;return(0,Lt.Z)().wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(oe){Kt.next=2;break}return Kt.abrupt("return");case 2:if(oe.path=Mt||"",!oe.isFile){Kt.next=10;break}return Kt.next=6,Ue(oe);case 6:At=Kt.sent,At&&$t.push(At),Kt.next=15;break;case 10:if(!oe.isDirectory){Kt.next=15;break}return Kt.next=13,pe(oe);case 13:Qt=Kt.sent,re.push.apply(re,(0,vt.Z)(Qt));case 15:case"end":return Kt.stop()}},Ae)}));return function(oe,Mt){return Fe.apply(this,arguments)}}(),Le=0;case 9:if(!(Le<re.length)){_e.next=15;break}return _e.next=12,Xe(re[Le]);case 12:Le++,_e.next=9;break;case 15:return _e.abrupt("return",$t);case 16:case"end":return _e.stop()}},Qe)}));return function(ae,_t){return we.apply(this,arguments)}}(),jt=kt,Ht=+new Date,Ot=0;function te(){return"rc-upload-".concat(Ht,"-").concat(++Ot)}var ne=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Xt=function(we){(0,Rt.Z)(ae,we);var Qe=(0,Dt.Z)(ae);function ae(){var _t;(0,xt.Z)(this,ae);for(var $t=arguments.length,re=new Array($t),pe=0;pe<$t;pe++)re[pe]=arguments[pe];return _t=Qe.call.apply(Qe,[this].concat(re)),(0,St.Z)((0,Vt.Z)(_t),"state",{uid:te()}),(0,St.Z)((0,Vt.Z)(_t),"reqs",{}),(0,St.Z)((0,Vt.Z)(_t),"fileInput",void 0),(0,St.Z)((0,Vt.Z)(_t),"_isMounted",void 0),(0,St.Z)((0,Vt.Z)(_t),"onChange",function(le){var Ue=_t.props,Ne=Ue.accept,Xe=Ue.directory,Le=le.target.files,xe=(0,vt.Z)(Le).filter(function(_e){return!Xe||ut(_e,Ne)});_t.uploadFiles(xe),_t.reset()}),(0,St.Z)((0,Vt.Z)(_t),"onClick",function(le){var Ue=_t.fileInput;if(Ue){var Ne=le.target,Xe=_t.props.onClick;if(Ne&&Ne.tagName==="BUTTON"){var Le=Ue.parentNode;Le.focus(),Ne.blur()}Ue.click(),Xe&&Xe(le)}}),(0,St.Z)((0,Vt.Z)(_t),"onKeyDown",function(le){le.key==="Enter"&&_t.onClick(le)}),(0,St.Z)((0,Vt.Z)(_t),"onFileDrop",function(){var le=(0,Ft.Z)((0,Lt.Z)().mark(function Ue(Ne){var Xe,Le,xe;return(0,Lt.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Xe=_t.props.multiple,Ne.preventDefault(),Ne.type!=="dragover"){Fe.next=4;break}return Fe.abrupt("return");case 4:if(!_t.props.directory){Fe.next=11;break}return Fe.next=7,jt(Array.prototype.slice.call(Ne.dataTransfer.items),function(Ae){return ut(Ae,_t.props.accept)});case 7:Le=Fe.sent,_t.uploadFiles(Le),Fe.next=14;break;case 11:xe=(0,vt.Z)(Ne.dataTransfer.files).filter(function(Ae){return ut(Ae,_t.props.accept)}),Xe===!1&&(xe=xe.slice(0,1)),_t.uploadFiles(xe);case 14:case"end":return Fe.stop()}},Ue)}));return function(Ue){return le.apply(this,arguments)}}()),(0,St.Z)((0,Vt.Z)(_t),"uploadFiles",function(le){var Ue=(0,vt.Z)(le),Ne=Ue.map(function(Xe){return Xe.uid=te(),_t.processFile(Xe,Ue)});Promise.all(Ne).then(function(Xe){var Le=_t.props.onBatchStart;Le==null||Le(Xe.map(function(xe){var _e=xe.origin,Fe=xe.parsedFile;return{file:_e,parsedFile:Fe}})),Xe.filter(function(xe){return xe.parsedFile!==null}).forEach(function(xe){_t.post(xe)})})}),(0,St.Z)((0,Vt.Z)(_t),"processFile",function(){var le=(0,Ft.Z)((0,Lt.Z)().mark(function Ue(Ne,Xe){var Le,xe,_e,Fe,Ae,oe,Mt,At,Qt;return(0,Lt.Z)().wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:if(Le=_t.props.beforeUpload,xe=Ne,!Le){Kt.next=14;break}return Kt.prev=3,Kt.next=6,Le(Ne,Xe);case 6:xe=Kt.sent,Kt.next=12;break;case 9:Kt.prev=9,Kt.t0=Kt.catch(3),xe=!1;case 12:if(xe!==!1){Kt.next=14;break}return Kt.abrupt("return",{origin:Ne,parsedFile:null,action:null,data:null});case 14:if(_e=_t.props.action,typeof _e!="function"){Kt.next=21;break}return Kt.next=18,_e(Ne);case 18:Fe=Kt.sent,Kt.next=22;break;case 21:Fe=_e;case 22:if(Ae=_t.props.data,typeof Ae!="function"){Kt.next=29;break}return Kt.next=26,Ae(Ne);case 26:oe=Kt.sent,Kt.next=30;break;case 29:oe=Ae;case 30:return Mt=((0,Ct.Z)(xe)==="object"||typeof xe=="string")&&xe?xe:Ne,Mt instanceof File?At=Mt:At=new File([Mt],Ne.name,{type:Ne.type}),Qt=At,Qt.uid=Ne.uid,Kt.abrupt("return",{origin:Ne,data:oe,parsedFile:Qt,action:Fe});case 35:case"end":return Kt.stop()}},Ue,null,[[3,9]])}));return function(Ue,Ne){return le.apply(this,arguments)}}()),(0,St.Z)((0,Vt.Z)(_t),"saveFileInput",function(le){_t.fileInput=le}),_t}return(0,qt.Z)(ae,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function($t){var re=this,pe=$t.data,le=$t.origin,Ue=$t.action,Ne=$t.parsedFile;if(this._isMounted){var Xe=this.props,Le=Xe.onStart,xe=Xe.customRequest,_e=Xe.name,Fe=Xe.headers,Ae=Xe.withCredentials,oe=Xe.method,Mt=le.uid,At=xe||ft,Qt={action:Ue,filename:_e,data:pe,file:Ne,headers:Fe,withCredentials:Ae,method:oe||"post",onProgress:function(Kt){var It=re.props.onProgress;It==null||It(Kt,Ne)},onSuccess:function(Kt,It){var bt=re.props.onSuccess;bt==null||bt(Kt,Ne,It),delete re.reqs[Mt]},onError:function(Kt,It){var bt=re.props.onError;bt==null||bt(Kt,It,Ne),delete re.reqs[Mt]}};Le(le),this.reqs[Mt]=At(Qt)}}},{key:"reset",value:function(){this.setState({uid:te()})}},{key:"abort",value:function($t){var re=this.reqs;if($t){var pe=$t.uid?$t.uid:$t;re[pe]&&re[pe].abort&&re[pe].abort(),delete re[pe]}else Object.keys(re).forEach(function(le){re[le]&&re[le].abort&&re[le].abort(),delete re[le]})}},{key:"render",value:function(){var $t=this.props,re=$t.component,pe=$t.prefixCls,le=$t.className,Ue=$t.classNames,Ne=Ue===void 0?{}:Ue,Xe=$t.disabled,Le=$t.id,xe=$t.name,_e=$t.style,Fe=$t.styles,Ae=Fe===void 0?{}:Fe,oe=$t.multiple,Mt=$t.accept,At=$t.capture,Qt=$t.children,se=$t.directory,Kt=$t.openFileDialogOnClick,It=$t.onMouseEnter,bt=$t.onMouseLeave,Bt=$t.hasControlInside,ie=(0,Pt.Z)($t,ne),Wt=tt()((0,St.Z)((0,St.Z)((0,St.Z)({},pe,!0),"".concat(pe,"-disabled"),Xe),le,le)),Zt=se?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},fe=Xe?{}:{onClick:Kt?this.onClick:function(){},onKeyDown:Kt?this.onKeyDown:function(){},onMouseEnter:It,onMouseLeave:bt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Bt?void 0:"0"};return Et.createElement(re,(0,Jt.Z)({},fe,{className:Wt,role:Bt?void 0:"button",style:_e}),Et.createElement("input",(0,Jt.Z)({},(0,st.Z)(ie,{aria:!0,data:!0}),{id:Le,name:xe,disabled:Xe,type:"file",ref:this.saveFileInput,onClick:function(tn){return tn.stopPropagation()},key:this.state.uid,style:(0,Nt.Z)({display:"none"},Ae.input),className:Ne.input,accept:Mt},Zt,{multiple:oe,onChange:this.onChange},At!=null?{capture:At}:{})),Qt)}}]),ae}(Et.Component),ce=Xt;function me(){}var Pe=function(we){(0,Rt.Z)(ae,we);var Qe=(0,Dt.Z)(ae);function ae(){var _t;(0,xt.Z)(this,ae);for(var $t=arguments.length,re=new Array($t),pe=0;pe<$t;pe++)re[pe]=arguments[pe];return _t=Qe.call.apply(Qe,[this].concat(re)),(0,St.Z)((0,Vt.Z)(_t),"uploader",void 0),(0,St.Z)((0,Vt.Z)(_t),"saveUploader",function(le){_t.uploader=le}),_t}return(0,qt.Z)(ae,[{key:"abort",value:function($t){this.uploader.abort($t)}},{key:"render",value:function(){return Et.createElement(ce,(0,Jt.Z)({},this.props,{ref:this.saveUploader}))}}]),ae}(Et.Component);(0,St.Z)(Pe,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:me,onError:me,onSuccess:me,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var De=Pe,Ve=De},73299:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Ri}});var Jt=he(87462),xt=he(1413),qt=he(71002),Vt=he(97685),Rt=he(4942),Dt=he(45987),St=he(67294),Et=he(73935),Nt=he(94184),Pt=he.n(Nt),Ct=he(48555),Lt=St.forwardRef(function(vn,Ut){var cn=vn.height,Pn=vn.offsetY,kn=vn.offsetX,Nn=vn.children,On=vn.prefixCls,Hn=vn.onInnerResize,gi=vn.innerProps,nn=vn.rtl,en=vn.extra,We={},sn={display:"flex",flexDirection:"column"};if(Pn!==void 0){var Xn;We={height:cn,position:"relative",overflow:"hidden"},sn=(0,xt.Z)((0,xt.Z)({},sn),{},(Xn={transform:"translateY(".concat(Pn,"px)")},(0,Rt.Z)(Xn,nn?"marginRight":"marginLeft",-kn),(0,Rt.Z)(Xn,"position","absolute"),(0,Rt.Z)(Xn,"left",0),(0,Rt.Z)(Xn,"right",0),(0,Rt.Z)(Xn,"top",0),Xn))}return St.createElement("div",{style:We},St.createElement(Ct.Z,{onResize:function(zn){var Ze=zn.offsetHeight;Ze&&Hn&&Hn()}},St.createElement("div",(0,Jt.Z)({style:sn,className:Pt()((0,Rt.Z)({},"".concat(On,"-holder-inner"),On)),ref:Ut},gi),Nn,en)))});Lt.displayName="Filler";var Ft=Lt,vt=function(Ut){return+setTimeout(Ut,16)},et=function(Ut){return clearTimeout(Ut)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(vt=function(Ut){return window.requestAnimationFrame(Ut)},et=function(Ut){return window.cancelAnimationFrame(Ut)});var tt=0,st=new Map;function rt(vn){st.delete(vn)}var ut=function(Ut){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tt+=1;var Pn=tt;function kn(Nn){if(Nn===0)rt(Pn),Ut();else{var On=vt(function(){kn(Nn-1)});st.set(Pn,On)}}return kn(cn),Pn};ut.cancel=function(vn){var Ut=st.get(vn);return rt(Ut),et(Ut)};var ct=ut;function gt(vn,Ut){var cn="touches"in vn?vn.touches[0]:vn;return cn[Ut?"pageX":"pageY"]}var ft=St.forwardRef(function(vn,Ut){var cn,Pn=vn.prefixCls,kn=vn.rtl,Nn=vn.scrollOffset,On=vn.scrollRange,Hn=vn.onStartMove,gi=vn.onStopMove,nn=vn.onScroll,en=vn.horizontal,We=vn.spinSize,sn=vn.containerSize,Xn=vn.style,Zn=vn.thumbStyle,zn=St.useState(!1),Ze=(0,Vt.Z)(zn,2),mn=Ze[0],ri=Ze[1],Si=St.useState(null),En=(0,Vt.Z)(Si,2),Ye=En[0],ti=En[1],xi=St.useState(null),Ui=(0,Vt.Z)(xi,2),yn=Ui[0],hi=Ui[1],tr=!kn,zr=St.useRef(),xr=St.useRef(),li=St.useState(!1),ai=(0,Vt.Z)(li,2),vi=ai[0],qi=ai[1],Lr=St.useRef(),In=function(){clearTimeout(Lr.current),qi(!0),Lr.current=setTimeout(function(){qi(!1)},3e3)},Ai=On-sn||0,$o=sn-We||0,xo=Ai>0,to=St.useMemo(function(){if(Nn===0||Ai===0)return 0;var er=Nn/Ai;return er*$o},[Nn,Ai,$o]),qe=function(Er){Er.stopPropagation(),Er.preventDefault()},Oi=St.useRef({top:to,dragging:mn,pageY:Ye,startTop:yn});Oi.current={top:to,dragging:mn,pageY:Ye,startTop:yn};var ar=function(Er){ri(!0),ti(gt(Er,en)),hi(Oi.current.top),Hn(),Er.stopPropagation(),Er.preventDefault()};St.useEffect(function(){var er=function(Oe){Oe.preventDefault()},Er=zr.current,Cn=xr.current;return Er.addEventListener("touchstart",er),Cn.addEventListener("touchstart",ar),function(){Er.removeEventListener("touchstart",er),Cn.removeEventListener("touchstart",ar)}},[]);var Pi=St.useRef();Pi.current=Ai;var Gr=St.useRef();Gr.current=$o,St.useEffect(function(){if(mn){var er,Er=function(Oe){var je=Oi.current,wn=je.dragging,Me=je.pageY,Ie=je.startTop;if(ct.cancel(er),wn){var Ge=gt(Oe,en)-Me,rn=Ie;!tr&&en?rn-=Ge:rn+=Ge;var Ln=Pi.current,Yn=Gr.current,Wn=Yn?rn/Yn:0,pn=Math.ceil(Wn*Ln);pn=Math.max(pn,0),pn=Math.min(pn,Ln),er=ct(function(){nn(pn,en)})}},Cn=function(){ri(!1),gi()};return window.addEventListener("mousemove",Er),window.addEventListener("touchmove",Er),window.addEventListener("mouseup",Cn),window.addEventListener("touchend",Cn),function(){window.removeEventListener("mousemove",Er),window.removeEventListener("touchmove",Er),window.removeEventListener("mouseup",Cn),window.removeEventListener("touchend",Cn),ct.cancel(er)}}},[mn]),St.useEffect(function(){In()},[Nn]),St.useImperativeHandle(Ut,function(){return{delayHidden:In}});var lr="".concat(Pn,"-scrollbar"),yr={position:"absolute",visibility:vi&&xo?null:"hidden"},cr={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return en?(yr.height=8,yr.left=0,yr.right=0,yr.bottom=0,cr.height="100%",cr.width=We,tr?cr.left=to:cr.right=to):(yr.width=8,yr.top=0,yr.bottom=0,tr?yr.right=0:yr.left=0,cr.width="100%",cr.height=We,cr.top=to),St.createElement("div",{ref:zr,className:Pt()(lr,(cn={},(0,Rt.Z)(cn,"".concat(lr,"-horizontal"),en),(0,Rt.Z)(cn,"".concat(lr,"-vertical"),!en),(0,Rt.Z)(cn,"".concat(lr,"-visible"),vi),cn)),style:(0,xt.Z)((0,xt.Z)({},yr),Xn),onMouseDown:qe,onMouseMove:In},St.createElement("div",{ref:xr,className:Pt()("".concat(lr,"-thumb"),(0,Rt.Z)({},"".concat(lr,"-thumb-moving"),mn)),style:(0,xt.Z)((0,xt.Z)({},cr),Zn),onMouseDown:ar}))}),kt=ft;function jt(vn){var Ut=vn.children,cn=vn.setRef,Pn=St.useCallback(function(kn){cn(kn)},[]);return St.cloneElement(Ut,{ref:Pn})}function Ht(vn,Ut,cn,Pn,kn,Nn,On){var Hn=On.getKey;return vn.slice(Ut,cn+1).map(function(gi,nn){var en=Ut+nn,We=Nn(gi,en,{style:{width:Pn}}),sn=Hn(gi);return St.createElement(jt,{key:sn,setRef:function(Zn){return kn(gi,Zn)}},We)})}function Ot(vn){return vn instanceof HTMLElement||vn instanceof SVGElement}function te(vn){return Ot(vn)?vn:vn instanceof St.Component?Et.findDOMNode(vn):null}var ne=he(15671),Xt=he(43144),ce=function(){function vn(){(0,ne.Z)(this,vn),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Xt.Z)(vn,[{key:"set",value:function(cn,Pn){this.maps[cn]=Pn,this.id+=1}},{key:"get",value:function(cn){return this.maps[cn]}}]),vn}(),me=ce;function Pe(vn,Ut,cn){var Pn=St.useState(0),kn=(0,Vt.Z)(Pn,2),Nn=kn[0],On=kn[1],Hn=(0,St.useRef)(new Map),gi=(0,St.useRef)(new me),nn=(0,St.useRef)();function en(){ct.cancel(nn.current)}function We(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;en();var Zn=function(){Hn.current.forEach(function(Ze,mn){if(Ze&&Ze.offsetParent){var ri=te(Ze),Si=ri.offsetHeight;gi.current.get(mn)!==Si&&gi.current.set(mn,ri.offsetHeight)}}),On(function(Ze){return Ze+1})};Xn?Zn():nn.current=ct(Zn)}function sn(Xn,Zn){var zn=vn(Xn),Ze=Hn.current.get(zn);Zn?(Hn.current.set(zn,Zn),We()):Hn.current.delete(zn),!Ze!=!Zn&&(Zn?Ut==null||Ut(Xn):cn==null||cn(Xn))}return(0,St.useEffect)(function(){return en},[]),[sn,We,gi.current,Nn]}function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ve=De()?St.useLayoutEffect:St.useEffect,we=function(Ut,cn){var Pn=St.useRef(!0);Ve(function(){return Ut(Pn.current)},cn),Ve(function(){return Pn.current=!1,function(){Pn.current=!0}},[])},Qe=function(Ut,cn){we(function(Pn){if(!Pn)return Ut()},cn)},ae=we;function _t(vn){var Ut=St.useRef();Ut.current=vn;var cn=St.useCallback(function(){for(var Pn,kn=arguments.length,Nn=new Array(kn),On=0;On<kn;On++)Nn[On]=arguments[On];return(Pn=Ut.current)===null||Pn===void 0?void 0:Pn.call.apply(Pn,[Ut].concat(Nn))},[]);return cn}function $t(vn){var Ut=React.useRef(!1),cn=React.useState(vn),Pn=_slicedToArray(cn,2),kn=Pn[0],Nn=Pn[1];React.useEffect(function(){return Ut.current=!1,function(){Ut.current=!0}},[]);function On(Hn,gi){gi&&Ut.current||Nn(Hn)}return[kn,On]}function re(vn){return vn!==void 0}function pe(vn,Ut){var cn=Ut||{},Pn=cn.defaultValue,kn=cn.value,Nn=cn.onChange,On=cn.postState,Hn=useState(function(){return re(kn)?kn:re(Pn)?typeof Pn=="function"?Pn():Pn:typeof vn=="function"?vn():vn}),gi=_slicedToArray(Hn,2),nn=gi[0],en=gi[1],We=kn!==void 0?kn:nn,sn=On?On(We):We,Xn=useEvent(Nn),Zn=useState([We]),zn=_slicedToArray(Zn,2),Ze=zn[0],mn=zn[1];useLayoutUpdateEffect(function(){var Si=Ze[0];nn!==Si&&Xn(nn,Si)},[Ze]),useLayoutUpdateEffect(function(){re(kn)||en(kn)},[kn]);var ri=useEvent(function(Si,En){en(Si,En),mn([We],En)});return[sn,ri]}var le=he(31461);function Ue(vn,Ut,cn){var Pn=React.useRef({});return(!("value"in Pn.current)||cn(Pn.current.condition,Ut))&&(Pn.current.value=vn(),Pn.current.condition=Ut),Pn.current.value}function Ne(vn,Ut){typeof vn=="function"?vn(Ut):_typeof(vn)==="object"&&vn&&"current"in vn&&(vn.current=Ut)}function Xe(){for(var vn=arguments.length,Ut=new Array(vn),cn=0;cn<vn;cn++)Ut[cn]=arguments[cn];var Pn=Ut.filter(function(kn){return kn});return Pn.length<=1?Pn[0]:function(kn){Ut.forEach(function(Nn){Ne(Nn,kn)})}}function Le(){for(var vn=arguments.length,Ut=new Array(vn),cn=0;cn<vn;cn++)Ut[cn]=arguments[cn];return useMemo(function(){return Xe.apply(void 0,Ut)},Ut,function(Pn,kn){return Pn.length!==kn.length||Pn.every(function(Nn,On){return Nn!==kn[On]})})}function xe(vn){var Ut,cn,Pn=isMemo(vn)?vn.type.type:vn.type;return!(typeof Pn=="function"&&!((Ut=Pn.prototype)!==null&&Ut!==void 0&&Ut.render)||typeof vn=="function"&&!((cn=vn.prototype)!==null&&cn!==void 0&&cn.render))}function _e(vn){return!isValidElement(vn)||isFragment(vn)?!1:xe(vn)}function Fe(vn,Ut,cn,Pn){if(!Ut.length)return cn;var kn=_toArray(Ut),Nn=kn[0],On=kn.slice(1),Hn;return!vn&&typeof Nn=="number"?Hn=[]:Array.isArray(vn)?Hn=_toConsumableArray(vn):Hn=_objectSpread({},vn),Pn&&cn===void 0&&On.length===1?delete Hn[Nn][On[0]]:Hn[Nn]=Fe(Hn[Nn],On,cn,Pn),Hn}function Ae(vn,Ut,cn){var Pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ut.length&&Pn&&cn===void 0&&!get(vn,Ut.slice(0,-1))?vn:Fe(vn,Ut,cn,Pn)}function oe(vn){return _typeof(vn)==="object"&&vn!==null&&Object.getPrototypeOf(vn)===Object.prototype}function Mt(vn){return Array.isArray(vn)?[]:{}}var At=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Qt(){for(var vn=arguments.length,Ut=new Array(vn),cn=0;cn<vn;cn++)Ut[cn]=arguments[cn];var Pn=Mt(Ut[0]);return Ut.forEach(function(kn){function Nn(On,Hn){var gi=new Set(Hn),nn=get(kn,On),en=Array.isArray(nn);if(en||oe(nn)){if(!gi.has(nn)){gi.add(nn);var We=get(Pn,On);en?Pn=Ae(Pn,On,[]):(!We||_typeof(We)!=="object")&&(Pn=Ae(Pn,On,Mt(nn))),At(nn).forEach(function(sn){Nn([].concat(_toConsumableArray(On),[sn]),gi)})}}else Pn=Ae(Pn,On,nn)}Nn([])}),Pn}var se={},Kt=[],It=function(Ut){Kt.push(Ut)};function bt(vn,Ut){if(0)var cn}function Bt(vn,Ut){if(0)var cn}function ie(){se={}}function Wt(vn,Ut,cn){!Ut&&!se[cn]&&(vn(!1,cn),se[cn]=!0)}function Zt(vn,Ut){Wt(bt,vn,Ut)}function fe(vn,Ut){Wt(Bt,vn,Ut)}Zt.preMessage=It,Zt.resetWarned=ie,Zt.noteOnce=fe;var ke=null,tn=10;function dn(vn,Ut,cn,Pn,kn,Nn,On,Hn){var gi=St.useRef(),nn=St.useState(null),en=(0,Vt.Z)(nn,2),We=en[0],sn=en[1];return ae(function(){if(We&&We.times<tn){if(!vn.current){sn(function(In){return(0,xt.Z)({},In)});return}Nn();var Xn=We.targetAlign,Zn=We.originAlign,zn=We.index,Ze=We.offset,mn=vn.current.clientHeight,ri=!1,Si=Xn,En=null;if(mn){for(var Ye=Xn||Zn,ti=0,xi=0,Ui=0,yn=Math.min(Ut.length-1,zn),hi=0;hi<=yn;hi+=1){var tr=kn(Ut[hi]);xi=ti;var zr=cn.get(tr);Ui=xi+(zr===void 0?Pn:zr),ti=Ui}for(var xr=Ye==="top"?Ze:mn-Ze,li=yn;li>=0;li-=1){var ai=kn(Ut[li]),vi=cn.get(ai);if(vi===void 0){ri=!0;break}if(xr-=vi,xr<=0)break}switch(Ye){case"top":En=xi-Ze;break;case"bottom":En=Ui-mn+Ze;break;default:{var qi=vn.current.scrollTop,Lr=qi+mn;xi<qi?Si="top":Ui>Lr&&(Si="bottom")}}En!==null&&On(En),En!==We.lastTop&&(ri=!0)}ri&&sn(function(In){return(0,xt.Z)((0,xt.Z)({},In),{},{times:In.times+1,targetAlign:Si,lastTop:En})})}},[We,vn.current]),function(Xn){if(Xn==null){Hn();return}if(ct.cancel(gi.current),typeof Xn=="number")On(Xn);else if(Xn&&(0,qt.Z)(Xn)==="object"){var Zn,zn=Xn.align;"index"in Xn?Zn=Xn.index:Zn=Ut.findIndex(function(ri){return kn(ri)===Xn.key});var Ze=Xn.offset,mn=Ze===void 0?0:Ze;sn({times:0,index:Zn,offset:mn,originAlign:zn})}}}function ln(vn,Ut,cn,Pn){var kn=cn-vn,Nn=Ut-cn,On=Math.min(kn,Nn)*2;if(Pn<=On){var Hn=Math.floor(Pn/2);return Pn%2?cn+Hn+1:cn-Hn}return kn>Nn?cn-(Pn-Nn):cn+(Pn-kn)}function Bn(vn,Ut,cn){var Pn=vn.length,kn=Ut.length,Nn,On;if(Pn===0&&kn===0)return null;Pn<kn?(Nn=vn,On=Ut):(Nn=Ut,On=vn);var Hn={__EMPTY_ITEM__:!0};function gi(Zn){return Zn!==void 0?cn(Zn):Hn}for(var nn=null,en=Math.abs(Pn-kn)!==1,We=0;We<On.length;We+=1){var sn=gi(Nn[We]),Xn=gi(On[We]);if(sn!==Xn){nn=We,en=en||sn!==gi(On[We+1]);break}}return nn===null?null:{index:nn,multiple:en}}function Vn(vn,Ut,cn){var Pn=St.useState(vn),kn=(0,Vt.Z)(Pn,2),Nn=kn[0],On=kn[1],Hn=St.useState(null),gi=(0,Vt.Z)(Hn,2),nn=gi[0],en=gi[1];return St.useEffect(function(){var We=Bn(Nn||[],vn||[],Ut);(We==null?void 0:We.index)!==void 0&&(cn==null||cn(We.index),en(vn[We.index])),On(vn)},[vn]),[nn]}var Tn=(typeof navigator=="undefined"?"undefined":(0,qt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),un=Tn,si=function(vn,Ut){var cn=(0,St.useRef)(!1),Pn=(0,St.useRef)(null);function kn(){clearTimeout(Pn.current),cn.current=!0,Pn.current=setTimeout(function(){cn.current=!1},50)}var Nn=(0,St.useRef)({top:vn,bottom:Ut});return Nn.current.top=vn,Nn.current.bottom=Ut,function(On){var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gi=On<0&&Nn.current.top||On>0&&Nn.current.bottom;return Hn&&gi?(clearTimeout(Pn.current),cn.current=!1):(!gi||cn.current)&&kn(),!cn.current&&gi}};function ei(vn,Ut,cn,Pn,kn){var Nn=(0,St.useRef)(0),On=(0,St.useRef)(null),Hn=(0,St.useRef)(null),gi=(0,St.useRef)(!1),nn=si(Ut,cn);function en(Ze,mn){ct.cancel(On.current),Nn.current+=mn,Hn.current=mn,!nn(mn)&&(un||Ze.preventDefault(),On.current=ct(function(){var ri=gi.current?10:1;kn(Nn.current*ri),Nn.current=0}))}function We(Ze,mn){kn(mn,!0),un||Ze.preventDefault()}var sn=(0,St.useRef)(null),Xn=(0,St.useRef)(null);function Zn(Ze){if(vn){ct.cancel(Xn.current),Xn.current=ct(function(){sn.current=null},2);var mn=Ze.deltaX,ri=Ze.deltaY,Si=Ze.shiftKey,En=mn,Ye=ri;(sn.current==="sx"||!sn.current&&Si&&ri&&!mn)&&(En=ri,Ye=0,sn.current="sx");var ti=Math.abs(En),xi=Math.abs(Ye);sn.current===null&&(sn.current=Pn&&ti>xi?"x":"y"),sn.current==="y"?en(Ze,Ye):We(Ze,En)}}function zn(Ze){vn&&(gi.current=Ze.detail===Hn.current)}return[Zn,zn]}var fi=14/15;function bi(vn,Ut,cn){var Pn=(0,St.useRef)(!1),kn=(0,St.useRef)(0),Nn=(0,St.useRef)(null),On=(0,St.useRef)(null),Hn,gi=function(sn){if(Pn.current){var Xn=Math.ceil(sn.touches[0].pageY),Zn=kn.current-Xn;kn.current=Xn,cn(Zn)&&sn.preventDefault(),clearInterval(On.current),On.current=setInterval(function(){Zn*=fi,(!cn(Zn,!0)||Math.abs(Zn)<=.1)&&clearInterval(On.current)},16)}},nn=function(){Pn.current=!1,Hn()},en=function(sn){Hn(),sn.touches.length===1&&!Pn.current&&(Pn.current=!0,kn.current=Math.ceil(sn.touches[0].pageY),Nn.current=sn.target,Nn.current.addEventListener("touchmove",gi),Nn.current.addEventListener("touchend",nn))};Hn=function(){Nn.current&&(Nn.current.removeEventListener("touchmove",gi),Nn.current.removeEventListener("touchend",nn))},ae(function(){return vn&&Ut.current.addEventListener("touchstart",en),function(){var We;(We=Ut.current)===null||We===void 0||We.removeEventListener("touchstart",en),Hn(),clearInterval(On.current)}},[vn])}var Ni=20;function qn(){var vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,cn=vn/Ut*100;return isNaN(cn)&&(cn=0),cn=Math.max(cn,Ni),cn=Math.min(cn,vn/2),Math.floor(cn)}function Ii(vn,Ut,cn,Pn){var kn=St.useMemo(function(){return[new Map,[]]},[vn,cn.id,Pn]),Nn=(0,Vt.Z)(kn,2),On=Nn[0],Hn=Nn[1],gi=function(en){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:en,sn=On.get(en),Xn=On.get(We);if(sn===void 0||Xn===void 0)for(var Zn=vn.length,zn=Hn.length;zn<Zn;zn+=1){var Ze,mn=vn[zn],ri=Ut(mn);On.set(ri,zn);var Si=(Ze=cn.get(ri))!==null&&Ze!==void 0?Ze:Pn;if(Hn[zn]=(Hn[zn-1]||0)+Si,ri===en&&(sn=zn),ri===We&&(Xn=zn),sn!==void 0&&Xn!==void 0)break}return{top:Hn[sn-1]||0,bottom:Hn[Xn]}};return gi}var pr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ar=[],Or={overflowY:"auto",overflowAnchor:"none"};function wr(vn,Ut){var cn=vn.prefixCls,Pn=cn===void 0?"rc-virtual-list":cn,kn=vn.className,Nn=vn.height,On=vn.itemHeight,Hn=vn.fullHeight,gi=Hn===void 0?!0:Hn,nn=vn.style,en=vn.data,We=vn.children,sn=vn.itemKey,Xn=vn.virtual,Zn=vn.direction,zn=vn.scrollWidth,Ze=vn.component,mn=Ze===void 0?"div":Ze,ri=vn.onScroll,Si=vn.onVirtualScroll,En=vn.onVisibleChange,Ye=vn.innerProps,ti=vn.extraRender,xi=vn.styles,Ui=(0,Dt.Z)(vn,pr),yn=!!(Xn!==!1&&Nn&&On),hi=yn&&en&&(On*en.length>Nn||!!zn),tr=Zn==="rtl",zr=Pt()(Pn,(0,Rt.Z)({},"".concat(Pn,"-rtl"),tr),kn),xr=en||Ar,li=(0,St.useRef)(),ai=(0,St.useRef)(),vi=(0,St.useState)(0),qi=(0,Vt.Z)(vi,2),Lr=qi[0],In=qi[1],Ai=(0,St.useState)(0),$o=(0,Vt.Z)(Ai,2),xo=$o[0],to=$o[1],qe=(0,St.useState)(!1),Oi=(0,Vt.Z)(qe,2),ar=Oi[0],Pi=Oi[1],Gr=function(){Pi(!0)},lr=function(){Pi(!1)},yr=St.useCallback(function(Ti){return typeof sn=="function"?sn(Ti):Ti==null?void 0:Ti[sn]},[sn]),cr={getKey:yr};function er(Ti){In(function(Yi){var sr;typeof Ti=="function"?sr=Ti(Yi):sr=Ti;var kr=ni(sr);return li.current.scrollTop=kr,kr})}var Er=(0,St.useRef)({start:0,end:xr.length}),Cn=(0,St.useRef)(),eo=Vn(xr,yr),Oe=(0,Vt.Z)(eo,1),je=Oe[0];Cn.current=je;var wn=Pe(yr,null,null),Me=(0,Vt.Z)(wn,4),Ie=Me[0],Ge=Me[1],rn=Me[2],Ln=Me[3],Yn=St.useMemo(function(){if(!yn)return{scrollHeight:void 0,start:0,end:xr.length-1,offset:void 0};if(!hi){var Ti;return{scrollHeight:((Ti=ai.current)===null||Ti===void 0?void 0:Ti.offsetHeight)||0,start:0,end:xr.length-1,offset:void 0}}for(var Yi=0,sr,kr,ii,so=xr.length,Zr=0;Zr<so;Zr+=1){var uo=xr[Zr],_o=yr(uo),ts=rn.get(_o),_n=Yi+(ts===void 0?On:ts);_n>=Lr&&sr===void 0&&(sr=Zr,kr=Yi),_n>Lr+Nn&&ii===void 0&&(ii=Zr),Yi=_n}return sr===void 0&&(sr=0,kr=0,ii=Math.ceil(Nn/On)),ii===void 0&&(ii=xr.length-1),ii=Math.min(ii+1,xr.length-1),{scrollHeight:Yi,start:sr,end:ii,offset:kr}},[hi,yn,Lr,xr,Ln,Nn]),Wn=Yn.scrollHeight,pn=Yn.start,de=Yn.end,Mi=Yn.offset;Er.current.start=pn,Er.current.end=de;var Wi=St.useState({width:0,height:Nn}),nr=(0,Vt.Z)(Wi,2),ir=nr[0],rr=nr[1],Vi=function(Yi){rr({width:Yi.width||Yi.offsetWidth,height:Yi.height||Yi.offsetHeight})},Dr=(0,St.useRef)(),or=(0,St.useRef)(),Di=St.useMemo(function(){return qn(ir.width,zn)},[ir.width,zn]),wi=St.useMemo(function(){return qn(ir.height,Wn)},[ir.height,Wn]),Qn=Wn-Nn,Rn=(0,St.useRef)(Qn);Rn.current=Qn;function ni(Ti){var Yi=Ti;return Number.isNaN(Rn.current)||(Yi=Math.min(Yi,Rn.current)),Yi=Math.max(Yi,0),Yi}var on=Lr<=0,ui=Lr>=Qn,di=si(on,ui),Zi=function(){return{x:tr?-xo:xo,y:Lr}},Qi=(0,St.useRef)(Zi()),$i=_t(function(){if(Si){var Ti=Zi();(Qi.current.x!==Ti.x||Qi.current.y!==Ti.y)&&(Si(Ti),Qi.current=Ti)}});function mr(Ti,Yi){var sr=Ti;Yi?((0,Et.flushSync)(function(){to(sr)}),$i()):er(sr)}function _r(Ti){var Yi=Ti.currentTarget.scrollTop;Yi!==Lr&&er(Yi),ri==null||ri(Ti),$i()}var Ir=function(Yi){var sr=Yi,kr=zn-ir.width;return sr=Math.max(sr,0),sr=Math.min(sr,kr),sr},ao=_t(function(Ti,Yi){Yi?((0,Et.flushSync)(function(){to(function(sr){var kr=sr+(tr?-Ti:Ti);return Ir(kr)})}),$i()):er(function(sr){var kr=sr+Ti;return kr})}),Ao=ei(yn,on,ui,!!zn,ao),Je=(0,Vt.Z)(Ao,2),Kr=Je[0],Jr=Je[1];bi(yn,li,function(Ti,Yi){return di(Ti,Yi)?!1:(Kr({preventDefault:function(){},deltaY:Ti}),!0)}),ae(function(){function Ti(sr){yn&&sr.preventDefault()}var Yi=li.current;return Yi.addEventListener("wheel",Kr),Yi.addEventListener("DOMMouseScroll",Jr),Yi.addEventListener("MozMousePixelScroll",Ti),function(){Yi.removeEventListener("wheel",Kr),Yi.removeEventListener("DOMMouseScroll",Jr),Yi.removeEventListener("MozMousePixelScroll",Ti)}},[yn]),ae(function(){zn&&to(function(Ti){return Ir(Ti)})},[ir.width,zn]);var Mo=function(){var Yi,sr;(Yi=Dr.current)===null||Yi===void 0||Yi.delayHidden(),(sr=or.current)===null||sr===void 0||sr.delayHidden()},dr=dn(li,xr,rn,On,yr,function(){return Ge(!0)},er,Mo);St.useImperativeHandle(Ut,function(){return{getScrollInfo:Zi,scrollTo:function(Yi){function sr(kr){return kr&&(0,qt.Z)(kr)==="object"&&("left"in kr||"top"in kr)}sr(Yi)?(Yi.left!==void 0&&to(Ir(Yi.left)),dr(Yi.top)):dr(Yi)}}}),ae(function(){if(En){var Ti=xr.slice(pn,de+1);En(Ti,xr)}},[pn,de,xr]);var To=Ii(xr,yr,rn,On),oo=ti==null?void 0:ti({start:pn,end:de,virtual:hi,offsetX:xo,offsetY:Mi,rtl:tr,getSize:To}),No=Ht(xr,pn,de,zn,Ie,We,cr),ur=null;Nn&&(ur=(0,xt.Z)((0,Rt.Z)({},gi?"height":"maxHeight",Nn),Or),yn&&(ur.overflowY="hidden",zn&&(ur.overflowX="hidden"),ar&&(ur.pointerEvents="none")));var Br={};return tr&&(Br.dir="rtl"),St.createElement("div",(0,Jt.Z)({style:(0,xt.Z)((0,xt.Z)({},nn),{},{position:"relative"}),className:zr},Br,Ui),St.createElement(Ct.Z,{onResize:Vi},St.createElement(mn,{className:"".concat(Pn,"-holder"),style:ur,ref:li,onScroll:_r,onMouseEnter:Mo},St.createElement(Ft,{prefixCls:Pn,height:Wn,offsetX:xo,offsetY:Mi,scrollWidth:zn,onInnerResize:Ge,ref:ai,innerProps:Ye,rtl:tr,extra:oo},No))),hi&&Wn>Nn&&St.createElement(kt,{ref:Dr,prefixCls:Pn,scrollOffset:Lr,scrollRange:Wn,rtl:tr,onScroll:mr,onStartMove:Gr,onStopMove:lr,spinSize:wi,containerSize:ir.height,style:xi==null?void 0:xi.verticalScrollBar,thumbStyle:xi==null?void 0:xi.verticalScrollBarThumb}),hi&&zn&&St.createElement(kt,{ref:or,prefixCls:Pn,scrollOffset:xo,scrollRange:zn,rtl:tr,onScroll:mr,onStartMove:Gr,onStopMove:lr,spinSize:Di,containerSize:ir.width,horizontal:!0,style:xi==null?void 0:xi.horizontalScrollBar,thumbStyle:xi==null?void 0:xi.horizontalScrollBarThumb}))}var Fi=St.forwardRef(wr);Fi.displayName="List";var Sr=Fi,Ri=Sr},66392:function(An,jn){"use strict";var he;var Jt=Symbol.for("react.element"),xt=Symbol.for("react.portal"),qt=Symbol.for("react.fragment"),Vt=Symbol.for("react.strict_mode"),Rt=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),St=Symbol.for("react.context"),Et=Symbol.for("react.server_context"),Nt=Symbol.for("react.forward_ref"),Pt=Symbol.for("react.suspense"),Ct=Symbol.for("react.suspense_list"),Lt=Symbol.for("react.memo"),Ft=Symbol.for("react.lazy"),vt=Symbol.for("react.offscreen"),et;et=Symbol.for("react.module.reference");function tt(st){if(typeof st=="object"&&st!==null){var rt=st.$$typeof;switch(rt){case Jt:switch(st=st.type,st){case qt:case Rt:case Vt:case Pt:case Ct:return st;default:switch(st=st&&st.$$typeof,st){case Et:case St:case Nt:case Ft:case Lt:case Dt:return st;default:return rt}}case xt:return rt}}}he=St,he=Dt,he=Jt,he=Nt,he=qt,he=Ft,he=Lt,he=xt,he=Rt,he=Vt,he=Pt,he=Ct,he=function(){return!1},he=function(){return!1},he=function(st){return tt(st)===St},he=function(st){return tt(st)===Dt},he=function(st){return typeof st=="object"&&st!==null&&st.$$typeof===Jt},he=function(st){return tt(st)===Nt},he=function(st){return tt(st)===qt},he=function(st){return tt(st)===Ft},he=function(st){return tt(st)===Lt},he=function(st){return tt(st)===xt},he=function(st){return tt(st)===Rt},he=function(st){return tt(st)===Vt},he=function(st){return tt(st)===Pt},he=function(st){return tt(st)===Ct},he=function(st){return typeof st=="string"||typeof st=="function"||st===qt||st===Rt||st===Vt||st===Pt||st===Ct||st===vt||typeof st=="object"&&st!==null&&(st.$$typeof===Ft||st.$$typeof===Lt||st.$$typeof===Dt||st.$$typeof===St||st.$$typeof===Nt||st.$$typeof===et||st.getModuleId!==void 0)},he=tt},31461:function(An,jn,he){"use strict";he(66392)},25510:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAA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BsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbFwzbr2RhxQsoTdi+xM6jPwjJ6kTH24gsv2ZxwEuEIe+KJx+0j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m//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/3gRyfZz375c3vLkovbTTfdbM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QI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(An,jn,he){"use strict";An.exports=he.p+"static/AssistantCode3.a8740efb.jpeg"},4977:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqf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z7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},17423:function(An,jn,he){"use strict";he.d(jn,{Z:function(){return Et}});const Jt=Nt=>typeof Nt=="object"&&Nt!=null&&Nt.nodeType===1,xt=(Nt,Pt)=>(!Pt||Nt!=="hidden")&&Nt!=="visible"&&Nt!=="clip",qt=(Nt,Pt)=>{if(Nt.clientHeight<Nt.scrollHeight||Nt.clientWidth<Nt.scrollWidth){const Ct=getComputedStyle(Nt,null);return xt(Ct.overflowY,Pt)||xt(Ct.overflowX,Pt)||(Lt=>{const Ft=(vt=>{if(!vt.ownerDocument||!vt.ownerDocument.defaultView)return null;try{return vt.ownerDocument.defaultView.frameElement}catch(et){return null}})(Lt);return!!Ft&&(Ft.clientHeight<Lt.scrollHeight||Ft.clientWidth<Lt.scrollWidth)})(Nt)}return!1},Vt=(Nt,Pt,Ct,Lt,Ft,vt,et,tt)=>vt<Nt&&et>Pt||vt>Nt&&et<Pt?0:vt<=Nt&&tt<=Ct||et>=Pt&&tt>=Ct?vt-Nt-Lt:et>Pt&&tt<Ct||vt<Nt&&tt>Ct?et-Pt+Ft:0,Rt=Nt=>{const Pt=Nt.parentElement;return Pt==null?Nt.getRootNode().host||null:Pt},Dt=(Nt,Pt)=>{var Ct,Lt,Ft,vt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:st,boundary:rt,skipOverflowHiddenElements:ut}=Pt,ct=typeof rt=="function"?rt:pe=>pe!==rt;if(!Jt(Nt))throw new TypeError("Invalid target");const gt=document.scrollingElement||document.documentElement,ft=[];let kt=Nt;for(;Jt(kt)&&ct(kt);){if(kt=Rt(kt),kt===gt){ft.push(kt);break}kt!=null&&kt===document.body&&qt(kt)&&!qt(document.documentElement)||kt!=null&&qt(kt,ut)&&ft.push(kt)}const jt=(Lt=(Ct=window.visualViewport)==null?void 0:Ct.width)!=null?Lt:innerWidth,Ht=(vt=(Ft=window.visualViewport)==null?void 0:Ft.height)!=null?vt:innerHeight,{scrollX:Ot,scrollY:te}=window,{height:ne,width:Xt,top:ce,right:me,bottom:Pe,left:De}=Nt.getBoundingClientRect(),{top:Ve,right:we,bottom:Qe,left:ae}=(pe=>{const le=window.getComputedStyle(pe);return{top:parseFloat(le.scrollMarginTop)||0,right:parseFloat(le.scrollMarginRight)||0,bottom:parseFloat(le.scrollMarginBottom)||0,left:parseFloat(le.scrollMarginLeft)||0}})(Nt);let _t=tt==="start"||tt==="nearest"?ce-Ve:tt==="end"?Pe+Qe:ce+ne/2-Ve+Qe,$t=st==="center"?De+Xt/2-ae+we:st==="end"?me+we:De-ae;const re=[];for(let pe=0;pe<ft.length;pe++){const le=ft[pe],{height:Ue,width:Ne,top:Xe,right:Le,bottom:xe,left:_e}=le.getBoundingClientRect();if(et==="if-needed"&&ce>=0&&De>=0&&Pe<=Ht&&me<=jt&&ce>=Xe&&Pe<=xe&&De>=_e&&me<=Le)return re;const Fe=getComputedStyle(le),Ae=parseInt(Fe.borderLeftWidth,10),oe=parseInt(Fe.borderTopWidth,10),Mt=parseInt(Fe.borderRightWidth,10),At=parseInt(Fe.borderBottomWidth,10);let Qt=0,se=0;const Kt="offsetWidth"in le?le.offsetWidth-le.clientWidth-Ae-Mt:0,It="offsetHeight"in le?le.offsetHeight-le.clientHeight-oe-At:0,bt="offsetWidth"in le?le.offsetWidth===0?0:Ne/le.offsetWidth:0,Bt="offsetHeight"in le?le.offsetHeight===0?0:Ue/le.offsetHeight:0;if(gt===le)Qt=tt==="start"?_t:tt==="end"?_t-Ht:tt==="nearest"?Vt(te,te+Ht,Ht,oe,At,te+_t,te+_t+ne,ne):_t-Ht/2,se=st==="start"?$t:st==="center"?$t-jt/2:st==="end"?$t-jt:Vt(Ot,Ot+jt,jt,Ae,Mt,Ot+$t,Ot+$t+Xt,Xt),Qt=Math.max(0,Qt+te),se=Math.max(0,se+Ot);else{Qt=tt==="start"?_t-Xe-oe:tt==="end"?_t-xe+At+It:tt==="nearest"?Vt(Xe,xe,Ue,oe,At+It,_t,_t+ne,ne):_t-(Xe+Ue/2)+It/2,se=st==="start"?$t-_e-Ae:st==="center"?$t-(_e+Ne/2)+Kt/2:st==="end"?$t-Le+Mt+Kt:Vt(_e,Le,Ne,Ae,Mt+Kt,$t,$t+Xt,Xt);const{scrollLeft:ie,scrollTop:Wt}=le;Qt=Bt===0?0:Math.max(0,Math.min(Wt+Qt/Bt,le.scrollHeight-Ue/Bt+It)),se=bt===0?0:Math.max(0,Math.min(ie+se/bt,le.scrollWidth-Ne/bt+Kt)),_t+=Wt-Qt,$t+=ie-se}re.push({el:le,top:Qt,left:se})}return re},St=Nt=>Nt===!1?{block:"end",inline:"nearest"}:(Pt=>Pt===Object(Pt)&&Object.keys(Pt).length!==0)(Nt)?Nt:{block:"start",inline:"nearest"};function Et(Nt,Pt){if(!Nt.isConnected||!(Ft=>{let vt=Ft;for(;vt&&vt.parentNode;){if(vt.parentNode===document)return!0;vt=vt.parentNode instanceof ShadowRoot?vt.parentNode.host:vt.parentNode}return!1})(Nt))return;const Ct=(Ft=>{const vt=window.getComputedStyle(Ft);return{top:parseFloat(vt.scrollMarginTop)||0,right:parseFloat(vt.scrollMarginRight)||0,bottom:parseFloat(vt.scrollMarginBottom)||0,left:parseFloat(vt.scrollMarginLeft)||0}})(Nt);if((Ft=>typeof Ft=="object"&&typeof Ft.behavior=="function")(Pt))return Pt.behavior(Dt(Nt,Pt));const Lt=typeof Pt=="boolean"||Pt==null?void 0:Pt.behavior;for(const{el:Ft,top:vt,left:et}of Dt(Nt,St(Pt))){const tt=vt-Ct.top+Ct.bottom,st=et-Ct.left+Ct.right;Ft.scroll({top:tt,left:st,behavior:Lt})}}}}]);
|