(self.webpackChunk=self.webpackChunk||[]).push([[8863],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(dn,fn){"use strict";fn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},8423:function(dn,fn){"use strict";fn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},39744:function(){"use strict"},63720:function(){"use strict";function dn(ft,z,tt,at){tt===void 0&&(tt=0),at===void 0&&(at=1/0),this._name=ft,this._defaultValue=z,this._minimum=tt,this._maximum=at}Object.defineProperty(dn.prototype,"name",{get:function(){return this._name},set:function(ft){if(typeof ft!="string"||ft==="")throw new Error("Shape name must be a valid string.");this._name=ft}}),Object.defineProperty(dn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("The default value must be a real number, not: "+ft);this._defaultValue=ft}}),Object.defineProperty(dn.prototype,"minimum",{get:function(){return this._minimum},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("Minimum must be a real number, not: "+ft);this._minimum=ft}}),Object.defineProperty(dn.prototype,"maximum",{get:function(){return this._maximum},set:function(ft){if(typeof ft!="number"||isNaN(ft))throw new Error("Maximum must be a real number, not: "+ft);this._maximum=ft}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ft,z){var tt=go.Shape._FigureParameters[ft];return tt?tt[z]:null},go.Shape.setFigureParameter=function(ft,z,tt){if(!(tt instanceof dn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValuett.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var at=go.Shape._FigureParameters[ft];at||(at=[],go.Shape._FigureParameters[ft]=at),at[z]=tt};var fn=[];function le(ft,z){var tt=fn.pop();return tt===void 0?new go.Point(ft,z):(tt.x=ft,tt.y=z,tt)}function ae(){var ft=fn.pop();return ft===void 0?new go.Point:ft}function Re(ft){fn.push(ft)}function ot(ft,z,tt,at,it,lt,ut,dt,Pt){Pt||(Pt=new go.Point);var At=ft-tt,Dt=it-ut,Ft=NaN,Nt=NaN;if(At===0)if(Dt===0)ft===tt&&(Ft=ft,Nt=z);else{var jt=(lt-dt)/Dt,Gt=lt-jt*it;Ft=ft,Nt=jt*Ft+Gt}else if(Dt===0){var Wt=(z-at)/At,Jt=z-Wt*ft;Ft=it,Nt=Wt*Ft+Jt}else{var Wt=(z-at)/At,jt=(lt-dt)/Dt,Jt=z-Wt*ft,Gt=lt-jt*it;Ft=(Gt-Jt)/(Wt-jt),Nt=Wt*Ft+Jt}return Pt.x=Ft,Pt.y=Nt,Pt}function _t(ft,z,tt,at,it,lt,ut,dt,Pt,At,Dt,Ft,Nt,jt){var Gt=1-Pt,Wt=Pt,Jt=ft*Gt+tt*Wt,Ut=z*Gt+at*Wt,Ht=tt*Gt+it*Wt,oe=at*Gt+lt*Wt,se=it*Gt+ut*Wt,ce=lt*Gt+dt*Wt,Pe=Jt*Gt+Ht*Wt,Yt=Ut*Gt+oe*Wt,ne=Ht*Gt+se*Wt,ve=oe*Gt+ce*Wt,Se=Pe*Gt+ne*Wt,be=Yt*Gt+ve*Wt;At.x=Jt,At.y=Ut,Dt.x=Pe,Dt.y=Yt,Ft.x=Se,Ft.y=be,Nt.x=ne,Nt.y=ve,jt.x=se,jt.y=ce}var Bt=new go.Spot(.156,.156),vt=new go.Spot(.844,.844),gt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new dn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=5),at=Math.min(at,z/3),at=Math.min(at,tt/3);var it=at*gt,lt=new go.Geometry().add(new go.PathFigure(at,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-at,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,at,z-it,0,z,it)).add(new go.PathSegment(go.PathSegment.Line,z,tt-at)).add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,tt-it,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,at,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,it,tt,0,tt-it)).add(new go.PathSegment(go.PathSegment.Line,0,at)).add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,it,it,0).close()));return it>1&&(lt.spot1=new go.Spot(0,0,it,it),lt.spot2=new go.Spot(1,1,-it,-it)),lt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=0,at.startY=tt/2,at.endX=z,at.endY=tt/2,at}),go.Shape.defineFigureGenerator("LineV",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=z/2,at.startY=0,at.endX=z/2,at.endY=tt,at}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,tt/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*z,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ft,z,tt){var at=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(at*z,(1-at)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,at*tt)).add(new go.PathSegment(go.PathSegment.Move,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,z,tt/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(ft,z,tt){var at=z/2,it=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,at,at,at,at).close()));return it.spot1=Bt,it.spot2=vt,it.defaultStretch=go.GraphObject.Uniform,it}),go.Shape.defineFigureGenerator("Line1",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=0,at.startY=0,at.endX=z,at.endY=tt,at}),go.Shape.defineFigureGenerator("Line2",function(ft,z,tt){var at=new go.Geometry(go.Geometry.Line);return at.startX=z,at.startY=0,at.endX=0,at.endY=tt,at}),go.Shape.defineFigureGenerator("Curve1",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,tt,gt*z,0,z,(1-gt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,tt,0,gt*tt,(1-gt)*z,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,gt*tt,gt*z,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-gt)*z,0,0,(1-gt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new dn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)?at=.1:at<-1?at=-1:at>1&&(at=1);var it=Math.abs(at)*z;if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),it.5&&(at=.5);var it=Math.abs(at)*z;if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z/2);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())),itz&&(at=z/2);var it=Math.abs(at);if(at===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=z,lt.endY=tt,lt}else{var lt=new go.Geometry;return at>0?lt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-it,tt)).add(new go.PathSegment(go.PathSegment.Line,it,tt).close())):lt.add(new go.PathFigure(it,0).add(new go.PathSegment(go.PathSegment.Line,z-it,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),it0&&(ut.add(new go.PathSegment(go.PathSegment.Move,z/2+dt,z/2)),ut.add(new go.PathSegment(go.PathSegment.Arc,0,-360,it,it,dt,dt).close())),lt.spot1=Bt,lt.spot2=vt,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Cloud",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*tt,-.09239631*z,.07836421*tt,.1406031*z,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*tt,.2450511*z,-.00697547*tt,.3776197*z,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*tt,.4539471*z,0,.6066018*z,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*tt,.6914277*z,-.01904177*tt,.8921095*z,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*tt,1.036446*z,.04105738*tt,1.020377*z,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*tt,1.04448*z,.360238*tt,.992256*z,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*tt,1.032337*z,.5771781*tt,1.018411*z,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*tt,1.028411*z,.9571472*tt,.8556702*z,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*tt,.7431877*z,1.009325*tt,.5624123*z,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*tt,.4820677*z,1.031761*tt,.3030112*z,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*tt,.2329994*z,1.01518*tt,.03213784*z,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*tt,-.02812061*z,.9032597*tt,-.01205169*z,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*tt,-.01812061*z,.6089503*tt,-.00606892*z,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*tt,-.01606892*z,.3892545*tt,-.01205169*z,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ft,z,tt){var at=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(at*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,z,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Line,at*z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,at*tt).close())).setSpots(at/2,at/2,1-at/2,1-at/2)}),go.Shape.setFigureParameter("Pie",0,new dn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new dn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ft,z,tt){var at=ft?ft.parameter1:NaN,it=ft?ft.parameter2:NaN;isNaN(at)&&(at=0),isNaN(it)&&(it=315);var lt=at%360;lt<0&&(lt+=360);var ut=it%360,dt=Math.min(z,tt)/2;return new go.Geometry().add(new go.PathFigure(dt,dt).add(new go.PathSegment(go.PathSegment.Arc,lt,ut,dt,dt,dt,dt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ft,z,tt){var at=gt/Math.SQRT2*.5,it=Math.SQRT2/2,lt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,it*z,lt*tt,z,(1-at)*tt,(it+at)*z,(lt+at)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=30);var it=Math.min(at,z)/2,lt=z/2,ut=tt/2;return new go.Geometry().add(new go.PathFigure(lt-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,lt+it,0)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut-it).close()))}),go.Shape.setFigureParameter("ThinCross",0,new dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=10);var it=Math.min(at,z)/2,lt=z/2,ut=tt/2;return new go.Geometry().add(new go.PathFigure(lt-it,0,!0).add(new go.PathSegment(go.PathSegment.Line,lt+it,0)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut-it)).add(new go.PathSegment(go.PathSegment.Line,z,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,lt+it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,tt)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut+it)).add(new go.PathSegment(go.PathSegment.Line,0,ut-it)).add(new go.PathSegment(go.PathSegment.Line,lt-it,ut-it).close()))}),go.Shape.setFigureParameter("ThickX",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ft,z,tt){var at=ft?ft.parameter1:NaN;if((isNaN(at)||at<0)&&(at=30),z===0||tt===0){var it=new go.Geometry(go.Geometry.Rectangle);return it.startX=0,it.startY=0,it.endX=z,it.endY=tt,it}else{var lt=z/2,ut=tt/2,dt=Math.atan2(tt,z),Pt=at-Math.min(Math.cos(dt)*at/2,lt),At=at-Math.min(Math.sin(dt)*at/2,ut),it=new go.Geometry,Dt=new go.PathFigure(Pt,0,!0);return it.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,lt,.2*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,z-Pt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,z,At)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,z,tt-At)),Dt.add(new go.PathSegment(go.PathSegment.Line,z-Pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,lt,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,Pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-At)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),it}}),go.Shape.setFigureParameter("ThinX",0,new dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=10);var it=new go.Geometry,lt=new go.PathFigure(.1*z,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),it}),go.Shape.setFigureParameter("SquareIBeam",0,new dn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.2);var it=new go.Geometry,lt=new go.PathFigure(0,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5+at/2)*z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5+at/2)*z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5-at/2)*z,(1-at)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(.5-at/2)*z,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,at*tt).close()),it}),go.Shape.setFigureParameter("RoundedIBeam",0,new dn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.5);var it=new go.Geometry,lt=new go.PathFigure(0,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,tt,Math.abs(1-at)*z,.25*tt,Math.abs(1-at)*z,.75*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,at*z,.75*tt,at*z,.25*tt).close()),it}),go.Shape.defineFigureGenerator("HalfEllipse",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,gt*z,0,z,(.5-gt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,(.5+gt/2)*tt,gt*z,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,z,0,z,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*tt,.5*z,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*z,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*tt,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,.5*tt,.9*z,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.6*z,.2*tt,z,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*tt,z,.8*tt,.6*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,.5*z,.75*tt,.55*z,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*tt,.45*z,.95*tt,.5*z,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*z,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*tt,0,.25*tt,.4*z,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.4*z,.6*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,tt,.5*z,.75*tt,.45*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*tt,.55*z,.95*tt,.5*z,.75*tt));var lt=.2,ut=.3,dt=0,Pt=lt*gt;return it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+ut)*z,(.5+dt)*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut)*z,(.5-Pt+dt)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut+.05)*z,(.5-Pt+dt-.02)*tt)),lt=.2,ut=0,dt=-.3,Pt=lt*gt,it.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+ut)*z,(.5+dt)*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut)*z,(.5-Pt+dt)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+ut)*z,(.5+dt)*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut)*z,(.5-Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Pt+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),lt=.2,ut=-.3,dt=0,Pt=lt*gt,it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5-lt+dt)*tt,(1-.5+lt+ut-.05)*z,(.5-Pt+dt-.02)*tt,(.5+Pt+ut)*z,(.5-lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+ut)*z,(.5+dt)*tt,(.5-Pt+ut)*z,(.5-lt+dt)*tt,(.5-lt+ut)*z,(.5-Pt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*z,(.5+lt+dt)*tt,(.5-lt+ut)*z,(.5+Pt+dt)*tt,(.5-Pt+ut)*z,(.5+lt+dt)*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*tt,(.5+Pt+ut)*z,(.5+lt+dt)*tt,(.5+lt+ut)*z,(.5+Pt+dt)*tt).close()),at.setSpots(.06,.33,.93,.68),at}),go.Shape.defineFigureGenerator("YinYang",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.5,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),it.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var lt=.1,ut=.5,dt=.25;return it.add(new go.PathSegment(go.PathSegment.Move,(ut+lt)*z,dt*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ut,tt*dt,lt*z,lt*z).close()),it=new go.PathFigure(z*.5,0,!1),at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),dt=.75,it=new go.PathFigure((ut+lt)*z,dt*tt,!0),at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ut,tt*dt,lt*z,lt*z).close()),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Peace",function(ft,z,tt){var at=.8535533905932737,it=.5*z,lt=.5*tt;return new go.Geometry().add(new go.PathFigure(it,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,it,lt,it,lt)).add(new go.PathSegment(go.PathSegment.Line,it,tt)).add(new go.PathSegment(go.PathSegment.Move,it,lt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,at*tt)).add(new go.PathSegment(go.PathSegment.Move,it,lt)).add(new go.PathSegment(go.PathSegment.Line,at*z,at*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=.5,dt=.5,Pt=new go.PathFigure(ut*z,(dt-lt)*tt);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),lt=.4,it=gt*.4;var At=ae(),Dt=ae(),Ft=ae(),Nt=ae();_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.42,At,Dt,Ft,Nt,Nt);var jt=ae(),Gt=ae(),Wt=ae();_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.58,Nt,Nt,Wt,jt,Gt);var Jt=ae(),Ut=ae(),Ht=ae();_t(ut,dt+lt,ut-it,dt+lt,ut-lt,dt+it,ut-lt,dt,.42,Jt,Ut,Ht,Nt,Nt);var oe=ae(),se=ae(),ce=ae();return _t(ut,dt+lt,ut-it,dt+lt,ut-lt,dt+it,ut-lt,dt,.58,Nt,Nt,ce,oe,se),Pt.add(new go.PathSegment(go.PathSegment.Move,ce.x*z,ce.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,oe.x*z,oe.y*tt,se.x*z,se.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft.x*z,Ft.y*tt,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ce.x*z,ce.y*tt).close()),Pt.add(new go.PathSegment(go.PathSegment.Move,Ht.x*z,Ht.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,Wt.x*z,Wt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,jt.x*z,jt.y*tt,Gt.x*z,Gt.y*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*z,Ht.y*tt,Jt.x*z,Jt.y*tt,Ut.x*z,Ut.y*tt).close()),Re(At),Re(Dt),Re(Ft),Re(Nt),Re(jt),Re(Gt),Re(Wt),Re(Jt),Re(Ut),Re(Ht),Re(oe),Re(se),Re(ce),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("Fragile",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*tt,z,.25*tt,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=30),at>z&&(at=z);var it=(z-at)/2,lt=it+at;return new go.Geometry().add(new go.PathFigure(lt,.5*tt).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,it,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ft,z,tt){var at=new go.Geometry,it=gt*.4,lt=.4,ut=.5,dt=.5,Pt=ae(),At=ae(),Dt=ae(),Ft=ae(),Nt=new go.PathFigure((ut-lt)*z,dt*tt,!1);at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.44,Dt,Ft,At,Pt,Pt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt));var jt=le(At.x,At.y);_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.56,Pt,Pt,At,Dt,Ft);var Gt=le(At.x,At.y);Nt.add(new go.PathSegment(go.PathSegment.Line,(jt.x*.1+.95*.9)*z,jt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*z,jt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,z,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(Gt.x*.1+.9)*z,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(Gt.x*.1+.9)*z,(Gt.y*.1+.05*.9)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,Gt.x*z,Gt.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),lt=.35,it=gt*.35;var Wt=new go.PathFigure(ut*z,(dt-lt)*tt,!1);at.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt));var Jt=new go.PathFigure((ut-lt)*z,dt*tt,!1);return at.add(Jt),Re(Pt),Re(At),Re(Dt),Re(Ft),Re(jt),Re(Gt),at.spot1=new go.Spot(.202,.257),at.spot2=new go.Spot(.792,.739),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("GenderFemale",function(ft,z,tt){var at=new go.Geometry,it=.375,lt=0,ut=-.125,dt=it*gt,Pt=new go.PathFigure((.525+lt)*z,(.5+it+ut)*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+lt)*z,(.5+ut)*tt,(.5+dt+lt)*z,(.5+it+ut)*tt,(.5+it+lt)*z,(.5+dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5-it+ut)*tt,(1-.5+it+lt)*z,(.5-dt+ut)*tt,(.5+dt+lt)*z,(.5-it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+lt)*z,(.5+it+ut)*tt,(.5-it+lt)*z,(.5+dt+ut)*tt,(.5-dt+lt)*z,(.5+it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.475*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*tt).close()),it=.325,lt=0,ut=-.125,dt=it*gt;var Pt=new go.PathFigure((1-.5+it+lt)*z,(.5+ut)*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5+it+ut)*tt,(.5+it+lt)*z,(.5+dt+ut)*tt,(.5+dt+lt)*z,(.5+it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5+it+ut)*tt,(.5-it+lt)*z,(.5+dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+it+lt)*z,(.5+ut)*tt,(.5+dt+lt)*z,(.5-it+ut)*tt,(1-.5+it+lt)*z,(.5-dt+ut)*tt));var Pt=new go.PathFigure((.525+lt)*z,(.5+it+ut)*tt,!1);return at.add(Pt),at.spot1=new go.Spot(.232,.136),at.spot2=new go.Spot(.682,.611),at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("LogicImplies",function(ft,z,tt){var at=ft?ft.parameter1:NaN;return isNaN(at)&&(at=.2),new go.Geometry().add(new go.PathFigure((1-at)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ft,z,tt){var at=ft?ft.parameter1:NaN;return isNaN(at)&&(at=.2),new go.Geometry().add(new go.PathFigure((1-at)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-at)*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,at*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,at*z,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ft,z,tt){var at=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*tt,.5*z,.5*tt)));return at.defaultStretch=go.GraphObject.Uniform,at}),go.Shape.defineFigureGenerator("LogicTruth",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ft,z,tt){var at=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,at*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,at*z,at*tt,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,z,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ft,z,tt){var at=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,at*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,at*z,at*tt,at*z,at*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new dn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new dn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=.3);var lt=(1-at)*z,ut=(.5-it/2)*tt,dt=(.5+it/2)*tt,Pt=new go.Geometry,At=new go.PathFigure(0,ut,!0);Pt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),At.add(new go.PathSegment(go.PathSegment.Line,lt,0)),At.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,dt)),At.add(new go.PathSegment(go.PathSegment.Line,0,dt).close()),Pt.spot1=new go.Spot(0,ut/tt);var Dt=ot(0,dt/tt,1,dt/tt,lt/z,1,1,.5,ae());return Pt.spot2=new go.Spot(Dt.x,Dt.y),Re(Dt),Pt}),go.Shape.setFigureParameter("Arrow2",0,new dn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new dn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=30),at>z&&(at=z);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=30),it=Math.min(it,tt/2);var lt=z-at,ut=(tt-it)/2,dt=ut+it,Pt=new go.Geometry,At=new go.PathFigure(0,ut,!0);Pt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),At.add(new go.PathSegment(go.PathSegment.Line,lt,0)),At.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),At.add(new go.PathSegment(go.PathSegment.Line,lt,dt)),At.add(new go.PathSegment(go.PathSegment.Line,0,dt).close()),Pt.spot1=new go.Spot(0,ut/tt);var Dt=ot(0,dt/tt,1,dt/tt,lt/z,1,1,.5,ae());return Pt.spot2=new go.Spot(Dt.x,Dt.y),Re(Dt),Pt}),go.Shape.defineFigureGenerator("Chevron",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("DoubleArrow",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),at}),go.Shape.setFigureParameter("DoubleEndArrow",0,new dn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Pt=ot(0,.5,.3,0,0,it/tt,.1,it/tt,ae());return ut.spot1=new go.Spot(Pt.x,Pt.y),Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,Pt),ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new dn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new dn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=40);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=100);var lt=(tt-at)/2,ut=lt+at,dt=(tt-it)/2,Pt=dt+it;(at>tt||it>tt)&&(it>at?(at=at*tt/it,lt=(tt-at)/2,ut=lt+at,dt=0,Pt=tt):(lt=0,ut=tt,dt=0,Pt=tt));var At=new go.Geometry,Dt=new go.PathFigure(z,.5*tt,!0);At.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,dt).close());var Ft=ot(0,.5,.3,dt/tt,0,lt/tt,1,lt/tt,ae());return At.spot1=new go.Spot(Ft.x,Ft.y),Ft=ot(.7,Pt/tt,1,.5,0,ut/tt,1,ut/tt,Ft),At.spot2=new go.Spot(Ft.x,Ft.y),Re(Ft),At}),go.Shape.setFigureParameter("IBeamArrow",0,new dn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(0,it/tt);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("IBeamArrow2",0,new dn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new dn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=40);var it=ft?ft.parameter2:NaN;isNaN(it)&&(it=100);var lt=(tt-at)/2,ut=lt+at,dt=(tt-it)/2,Pt=dt+it;(at>tt||it>tt)&&(it>at?(at=at*tt/it,lt=(tt-at)/2,ut=lt+at,dt=0,Pt=tt):(lt=0,ut=tt,dt=0,Pt=tt));var At=new go.Geometry,Dt=new go.PathFigure(z,.5*tt,!0);At.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,dt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,dt).close()),At.spot1=new go.Spot(0,lt/tt);var Ft=ot(.7,Pt/tt,1,.5,0,ut/tt,1,ut/tt,ae());return At.spot2=new go.Spot(Ft.x,Ft.y),Re(Ft),At}),go.Shape.setFigureParameter("Pointer",0,new dn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.1);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),it.spot1=new go.Spot(at,.35);var ut=ot(.2,.65,1,.65,0,1,1,.5,ae());return it.spot2=new go.Spot(ut.x,ut.y),Re(ut),it}),go.Shape.setFigureParameter("RoundedPointer",0,new dn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.3);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,at*z,.75*tt,at*z,.25*tt).close()),it.spot1=new go.Spot(at,.35);var ut=ot(0,.65,1,.65,0,1,1,.5,ae());return it.spot2=new go.Spot(ut.x,ut.y),Re(ut),it}),go.Shape.setFigureParameter("SplitEndArrow",0,new dn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.4);var it=(.5-at/2)*tt,lt=(.5+at/2)*tt,ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(.2,.3);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("SplitEndArrow2",0,new dn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=50);var it=(tt-at)/2,lt=it+at;at>tt&&(it=0,lt=tt);var ut=new go.Geometry,dt=new go.PathFigure(z,.5*tt,!0);ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ut.spot1=new go.Spot(.2,it/tt);var Pt=ot(.7,1,1,.5,0,lt/tt,1,lt/tt,ae());return ut.spot2=new go.Spot(Pt.x,Pt.y),Re(Pt),ut}),go.Shape.setFigureParameter("SquareArrow",0,new dn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.7);var it=new go.Geometry,lt=new go.PathFigure(z,.5*tt,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,0).close()),it.spot1=go.Spot.TopLeft,it.spot2=new go.Spot(at,1),it}),go.Shape.defineFigureGenerator("Cone1",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(0,.9*tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt).close()),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.97),at}),go.Shape.defineFigureGenerator("Cone2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.9*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*tt,(1-.85/.9)*z,tt,.85/.9*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var lt=new go.PathFigure(0,.9*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*tt,(1-.85/.9)*z,.8*tt,.85/.9*z,.8*tt)),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.82),at}),go.Shape.defineFigureGenerator("Cube1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var lt=new go.PathFigure(.5*z,tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(.5,.85),at}),go.Shape.defineFigureGenerator("Cube2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.3*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var lt=new go.PathFigure(0,.3*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(.7,1),at}),go.Shape.defineFigureGenerator("Cylinder1",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,tt/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(0,at,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,gt*at,(.5-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,1*z,at,(.5+lt)*z,0,1*z,gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*tt,1*z,tt-gt*at,(.5+lt)*z,1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,(.5-lt)*z,1*tt,0,tt-gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,0,at));var dt=new go.PathFigure(z,at,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*at,1*z,2*at-gt*at,(.5+lt)*z,2*at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,at,(.5-lt)*z,2*at,0,2*at-gt*at)),it.spot1=new go.Spot(0,0,0,2*at),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder2",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,tt/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(0,tt-at,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,gt*at,(.5-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,at,(.5+lt)*z,0,z,gt*at)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-at)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,tt-gt*at,(.5+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-at,(.5-lt)*z,tt,0,tt-gt*at));var dt=new go.PathFigure(0,tt-at,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt-2*at,0,tt-at-gt*at,(.5-lt)*z,tt-2*at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z,tt-at,(.5+lt)*z,tt-2*at,z,tt-at-gt*at)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,0,-2*at),it}),go.Shape.defineFigureGenerator("Cylinder3",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,z/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(at,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z-at,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,z-gt*at,0,z,(.5-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,(.5+lt)*tt,z-gt*at,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,at,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,gt*at,tt,0,(.5+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,(.5-lt)*tt,gt*at,0));var dt=new go.PathFigure(at,0,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,2*at,.5*tt,at+gt*at,0,2*at,(.5-lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,at,tt,2*at,(.5+lt)*tt,at+gt*at,tt)),it.spot1=new go.Spot(0,0,2*at,0),it.spot2=new go.Spot(1,1),it}),go.Shape.defineFigureGenerator("Cylinder4",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=5),at=Math.min(at,z/3);var it=new go.Geometry,lt=gt*.5,ut=new go.PathFigure(z-at,0,!0);it.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,z-gt*at,0,z,(.5-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z,(.5+lt)*tt,z-gt*at,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,at,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,gt*at,tt,0,(.5+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,(.5-lt)*tt,gt*at,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z-at,0));var dt=new go.PathFigure(z-at,0,!1);return it.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-2*at,.5*tt,z-at-gt*at,0,z-2*at,(.5-lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-at,tt,z-2*at,(.5+lt)*tt,z-at-gt*at,tt)),it.spot1=new go.Spot(0,0),it.spot2=new go.Spot(1,1,-2*at,0),it}),go.Shape.defineFigureGenerator("Prism1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,.25*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(.25*z,.25*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.408,.172),at.spot2=new go.Spot(.833,.662),at}),go.Shape.defineFigureGenerator("Prism2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.25*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(0,tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*tt)),at.spot1=new go.Spot(.25,.5),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("Pyramid1",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var lt=new go.PathFigure(.5*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.25,.367),at.spot2=new go.Spot(.75,.875),at}),go.Shape.defineFigureGenerator("Pyramid2",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var lt=new go.PathFigure(.5*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),at.spot1=new go.Spot(.25,.367),at.spot2=new go.Spot(.75,.875),at}),go.Shape.defineFigureGenerator("Actor",function(ft,z,tt){var at=new go.Geometry,it=.2,lt=.1,ut=gt*it,dt=gt*lt,Pt=.5,At=.1,Dt=new go.PathFigure(Pt*z,(At+lt)*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-it)*z,At*tt,(Pt-ut)*z,(At+lt)*tt,(Pt-it)*z,(At+dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-lt)*tt,(Pt-it)*z,(At-dt)*tt,(Pt-ut)*z,(At-lt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+it)*z,At*tt,(Pt+ut)*z,(At-lt)*tt,(Pt+it)*z,(At-dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+lt)*tt,(Pt+it)*z,(At+dt)*tt,(Pt+ut)*z,(At+lt)*tt));var Ft=.05,Nt=gt*Ft;Pt=.05,At=.25;var jt=new go.PathFigure(.5*z,.2*tt,!0);return at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*tt)),Pt=.95,At=.25,jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+Ft)*z,At*tt,(Pt+Nt)*z,(At-Ft)*tt,(Pt+Ft)*z,(At-Nt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*tt)),Ft=.025,Nt=gt*Ft,Pt=.825,At=.35,jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-Nt)*tt,(Pt+Nt)*z,(At-Ft)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-Nt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-Nt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.55*z,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*tt)),Ft=.05,Nt=gt*Ft,Pt=.5,At=.7,jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-Nt)*tt,(Pt+Nt)*z,(At-Ft)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-Nt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-Nt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.45*z,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*tt)),Ft=.025,Nt=gt*Ft,Pt=.175,At=.35,jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt+Ft)*z,(At-Nt)*tt,(Pt+Nt)*z,(At-Ft)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Ft)*z,At*tt,(Pt-Nt)*z,(At-Ft)*tt,(Pt-Ft)*z,(At-Nt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ft=.05,Nt=gt*Ft,Pt=.05,At=.25,jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-Ft)*tt,(Pt-Ft)*z,(At-Nt)*tt,(Pt-Nt)*z,(At-Ft)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*tt)),at.spot1=new go.Spot(.2,.2),at.spot2=new go.Spot(.8,.65),at}),go.Shape.setFigureParameter("Card",0,new dn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ft,z,tt){var at=ft?ft.parameter1:NaN;isNaN(at)&&(at=.2);var it=new go.Geometry,lt=new go.PathFigure(z,0,!0);return it.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,at*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,at*z,0).close()),it.spot1=new go.Spot(0,at),it.spot2=go.Spot.BottomRight,it}),go.Shape.defineFigureGenerator("Collate",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt));var lt=new go.PathFigure(.5*z,.5*tt,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),at.spot1=new go.Spot(.25,0),at.spot2=new go.Spot(.75,.25),at}),go.Shape.defineFigureGenerator("CreateRequest",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,it*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,(1-it)*tt)),at}),go.Shape.defineFigureGenerator("Database",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(z,.1*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-lt)*tt,(.5-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,(.5+it)*z,0,z,(.1-lt)*tt));var dt=new go.PathFigure(z,.1*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,z,(.1+lt)*tt,(.5+it)*z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-it)*z,.2*tt,0,(.1+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,z,(.2+lt)*tt,(.5+it)*z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-it)*z,.3*tt,0,(.2+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*tt,z,(.3+lt)*tt,(.5+it)*z,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-it)*z,.4*tt,0,(.3+lt)*tt)),at.spot1=new go.Spot(0,.4),at.spot2=new go.Spot(1,.9),at}),go.Shape.defineFigureGenerator("DataStorage",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,z,0,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*tt,.25*z,.1*tt).close()),at.spot1=new go.Spot(.226,0),at.spot2=new go.Spot(.81,1),at}),go.Shape.defineFigureGenerator("DiskStorage",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.1,ut=new go.PathFigure(z,.1*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.9+lt)*tt,(.5+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-it)*z,tt,0,(.9+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-lt)*tt,(.5-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,(.5+it)*z,0,z,(.1-lt)*tt));var dt=new go.PathFigure(z,.1*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,z,(.1+lt)*tt,(.5+it)*z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-it)*z,.2*tt,0,(.1+lt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,.2*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*tt,z,(.2+lt)*tt,(.5+it)*z,.3*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-it)*z,.3*tt,0,(.2+lt)*tt)),at.spot1=new go.Spot(0,.3),at.spot2=new go.Spot(1,.9),at}),go.Shape.defineFigureGenerator("Display",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,tt,z,0,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),at.spot1=new go.Spot(.25,0),at.spot2=new go.Spot(.75,1),at}),go.Shape.defineFigureGenerator("DividedEvent",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)?it=.2:it<.15&&(it=.15);var lt=gt*.2,ut=new go.PathFigure(0,.2*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-lt)*tt,(.2-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*tt,(.8+lt)*z,0,z,(.2-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,tt,z,(.8+lt)*tt,(.8+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-lt)*z,tt,0,(.8+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var dt=new go.PathFigure(0,it*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),at}),go.Shape.defineFigureGenerator("DividedProcess",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;(isNaN(it)||it<.1)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,it*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,it*tt)),at}),go.Shape.defineFigureGenerator("Document",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(1,.6),at}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;(isNaN(it)||it<.2)&&(it=.2);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,z,it*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,(1-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,(1-it)*tt)),at}),go.Shape.defineFigureGenerator("ExternalProcess",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var lt=new go.PathFigure(.1*z,.4*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*tt)),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("File",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(.75*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Interrupt",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt));var lt=new go.PathFigure(z,.5*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt));var ut=new go.PathFigure(z,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("InternalStorage",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.1);var ut=new go.PathFigure(0,0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(it*z,0,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,lt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt*tt)),at}),go.Shape.defineFigureGenerator("Junction",function(ft,z,tt){var at=new go.Geometry,it=1/Math.SQRT2,lt=(1-1/Math.SQRT2)/2,ut=gt*.5,dt=.5,Pt=new go.PathFigure(z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,tt,z,(dt+ut)*tt,(dt+ut)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,dt*tt,(dt-ut)*z,tt,0,(dt+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,0,0,(dt-ut)*tt,(dt-ut)*z,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,z,dt*tt,(dt+ut)*z,0,z,(dt-ut)*tt));var At=new go.PathFigure((lt+it)*z,(lt+it)*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt*z,lt*tt)),At.add(new go.PathSegment(go.PathSegment.Move,lt*z,(lt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Line,(lt+it)*z,lt*tt)),at}),go.Shape.defineFigureGenerator("LinedDocument",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close());var lt=new go.PathFigure(.1*z,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*tt)),at.spot1=new go.Spot(.1,0),at.spot2=new go.Spot(1,.6),at}),go.Shape.defineFigureGenerator("LoopLimit",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("MagneticTape",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(.5*z,tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(lt+.1)*z,.9*tt,z,(lt+it)*tt,(lt+it)*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),at.spot1=new go.Spot(.15,.15),at.spot2=new go.Spot(.85,.8),at}),go.Shape.defineFigureGenerator("ManualInput",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("MessageFromUser",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.7);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,it*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.25);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,it*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("MicroformRecording",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(1,.75),at}),go.Shape.defineFigureGenerator("MultiDocument",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*tt,.96*z,.47*tt,.93*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*tt,.86*z,.57*tt,.83*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*z,.4*tt,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var lt=new go.PathFigure(.1*z,.2*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.8,.77),at}),go.Shape.defineFigureGenerator("MultiProcess",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,.1*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt).close());var lt=new go.PathFigure(.2*z,.1*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*tt)),at.spot1=new go.Spot(0,.2),at.spot2=new go.Spot(.8,1),at}),go.Shape.defineFigureGenerator("OfflineStorage",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=1-it,ut=new go.PathFigure(0,0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close());var dt=new go.PathFigure(.5*it*z,it*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*it)*z,it*tt)),at}),go.Shape.defineFigureGenerator("OffPageConnector",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(.75,1),at}),go.Shape.defineFigureGenerator("Or",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(z,lt*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,tt,z,(lt+it)*tt,(lt+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt));var dt=new go.PathFigure(z,.5*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),at}),go.Shape.defineFigureGenerator("PaperTape",function(ft,z,tt){var at=new go.Geometry;tt=tt/.8;var it=new go.PathFigure(0,.7*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*tt,.5*z,.6*tt,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*z,.4*tt,.5*z,tt).close()),at.spot1=new go.Spot(0,.49),at.spot2=new go.Spot(1,.75),at}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.3);var ut=new go.PathFigure(0,0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN,lt=ft?ft.parameter2:NaN;isNaN(it)&&(it=.1),isNaN(lt)&&(lt=.3);var ut=new go.PathFigure(0,0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("Procedure",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure((1-it)*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,it*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),at}),go.Shape.defineFigureGenerator("Process",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),at.spot2=go.Spot.BottomRight,at}),go.Shape.defineFigureGenerator("Sort",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var lt=new go.PathFigure(0,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),at.spot1=new go.Spot(.25,.25),at.spot2=new go.Spot(.75,.5),at}),go.Shape.defineFigureGenerator("Start",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.25);var lt=new go.PathFigure(it*z,0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*tt,.25*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*tt,.25*z,.5*tt));var ut=new go.PathFigure(it*z,0,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,it*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Move,(1-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-it)*z,tt)),at.spot1=new go.Spot(it,0),at.spot2=new go.Spot(1-it,1),at}),go.Shape.defineFigureGenerator("Terminator",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.25*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*tt,.25*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*tt,.25*z,.5*tt)),at.spot1=new go.Spot(.23,0),at.spot2=new go.Spot(.77,1),at}),go.Shape.defineFigureGenerator("TransmittalTape",function(ft,z,tt){var at=new go.Geometry,it=ft?ft.parameter1:NaN;isNaN(it)&&(it=.1);var lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,(1-it)*tt).close()),at.spot1=go.Spot.TopLeft,at}),go.Shape.defineFigureGenerator("AndGate",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=new go.PathFigure(0,0,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(.5+it)*z,0,z,(.5-it)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,(.5+it)*tt,(.5+it)*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=go.Spot.TopLeft,at.spot2=new go.Spot(.55,1),at}),go.Shape.defineFigureGenerator("Buffer",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("Clock",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=new go.PathFigure(z,lt*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,tt,z,(lt+it)*tt,(lt+it)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*tt,(lt-it)*z,tt,0,(lt+it)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,lt*z,0,0,(lt-it)*tt,(lt-it)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,lt*tt,(lt+it)*z,0,z,(lt-it)*tt));var dt=new go.PathFigure(z,lt*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt*tt));var Pt=new go.PathFigure(.8*z,.75*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*tt)),at}),go.Shape.defineFigureGenerator("Ground",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt)),at}),go.Shape.defineFigureGenerator("Inverter",function(ft,z,tt){var at=new go.Geometry,it=gt*.1,lt=.1,ut=.9,dt=.5,Pt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt));var At=new go.PathFigure((ut+lt)*z,dt*tt,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.4,.75),at}),go.Shape.defineFigureGenerator("NandGate",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=gt*.4,ut=gt*.1,dt=.1,Pt=.9,At=.5,Dt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,tt,.8*z,(.5+lt)*tt,(.4+it)*z,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(.4+it)*z,0,.8*z,(.5-lt)*tt));var Ft=new go.PathFigure((Pt+dt)*z,At*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z,At*tt,(Pt-ut)*z,(At+dt)*tt,(Pt-dt)*z,(At+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z,At*tt,(Pt+ut)*z,(At-dt)*tt,(Pt+dt)*z,(At-ut)*tt)),at.spot1=new go.Spot(0,.05),at.spot2=new go.Spot(.55,.95),at}),go.Shape.defineFigureGenerator("NorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=0,dt=.5,Pt=new go.PathFigure(.8*z,.5*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*tt,.25*z,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(ut+lt)*z,(dt-it)*tt,.7*z,(dt-lt)*tt)),it=.1,lt=gt*.1,ut=.9,dt=.5;var At=new go.PathFigure((ut-it)*z,dt*tt,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),at.spot1=new go.Spot(.2,.25),at.spot2=new go.Spot(.6,.75),at}),go.Shape.defineFigureGenerator("OrGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=0,dt=.5,Pt=new go.PathFigure(0,0,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(ut+lt+lt)*z,(dt-it)*tt,.8*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*z,(dt+lt)*tt,(ut+lt+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*tt,.25*z,.25*tt).close()),at.spot1=new go.Spot(.2,.25),at.spot2=new go.Spot(.75,.75),at}),go.Shape.defineFigureGenerator("XnorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=.2,dt=.5,Pt=new go.PathFigure(.1*z,0,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,tt,.35*z,.25*tt,.35*z,.75*tt));var At=new go.PathFigure(.8*z,.5*tt,!0);at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,tt,.7*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*tt,.45*z,.25*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*tt,(ut+lt)*z,(dt-it)*tt,.7*z,(dt-lt)*tt)),it=.1,lt=gt*.1,ut=.9,dt=.5;var Dt=new go.PathFigure((ut-it)*z,dt*tt,!0);return at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),at.spot1=new go.Spot(.4,.25),at.spot2=new go.Spot(.65,.75),at}),go.Shape.defineFigureGenerator("XorGate",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*it,ut=.2,dt=.5,Pt=new go.PathFigure(.1*z,0,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,tt,.35*z,.25*tt,.35*z,.75*tt));var At=new go.PathFigure(.2*z,0,!0);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,(ut+lt)*z,(dt-it)*tt,.9*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,tt,.9*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*tt,.45*z,.25*tt).close()),at.spot1=new go.Spot(.4,.25),at.spot2=new go.Spot(.8,.75),at}),go.Shape.defineFigureGenerator("Capacitor",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("Resistor",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Inductor",function(ft,z,tt){var at=new go.Geometry,it=gt*.1,lt=.1,ut=.1,dt=.5,Pt=new go.PathFigure((ut-it*.5)*z,tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.3,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.5,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.7,Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,0,(ut-it)*z,tt,(ut-lt)*z,0)),ut=.9,Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it*.5)*z,tt,(ut+lt)*z,0,(ut+it)*z,tt)),at}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ft,z,tt){var at=new go.Geometry,it=gt*.5,lt=.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-lt)*z,dt*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt-lt)*tt,(ut+lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Move,(ut-lt+.1)*z,dt*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt-.1)*z,dt*tt,ut*z,(dt-lt)*tt,ut*z,(dt+lt)*tt)),at}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.75*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("Diode",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at.spot1=new go.Spot(0,.25),at.spot2=new go.Spot(.5,.75),at}),go.Shape.defineFigureGenerator("Wifi",function(ft,z,tt){var at=new go.Geometry,it=z,lt=tt;z=z*.38,tt=tt*.6;var ut=gt*.8,dt=.8,Pt=0,At=.5,Dt=(it-z)/2,Ft=(lt-tt)/2,Nt=new go.PathFigure(Pt*z+Dt,(At+dt)*tt+Ft,!0);at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt+ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At-ut)*tt+Ft)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At+ut)*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft).close()),ut=gt*.4,dt=.4,Pt=.2,At=.5;var jt=new go.PathFigure(Pt*z+Dt,(At+dt)*tt+Ft,!0);at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt+ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At-ut)*tt+Ft)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt-dt+ut*.5)*z+Dt,(At+ut)*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft).close()),ut=gt*.2,dt=.2,Pt=.5,At=.5;var Gt=new go.PathFigure((Pt-dt)*z+Dt,At*tt+Ft,!0);at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt-dt)*z+Dt,(At-ut)*tt+Ft,(Pt-ut)*z+Dt,(At-dt)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-dt)*z+Dt,At*tt+Ft,(Pt-ut)*z+Dt,(At+dt)*tt+Ft,(Pt-dt)*z+Dt,(At+ut)*tt+Ft)),ut=gt*.4,dt=.4,Pt=.8,At=.5;var Wt=new go.PathFigure(Pt*z+Dt,(At-dt)*tt+Ft,!0);at.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt-ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At+ut)*tt+Ft)),Wt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At-ut)*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft).close()),ut=gt*.8,dt=.8,Pt=1,At=.5;var Jt=new go.PathFigure(Pt*z+Dt,(At-dt)*tt+Ft,!0);return at.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt)*z+Dt,At*tt+Ft,(Pt+ut)*z+Dt,(At-dt)*tt+Ft,(Pt+dt)*z+Dt,(At-ut)*tt+Ft)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt)*z+Dt,(At+ut)*tt+Ft,(Pt+ut)*z+Dt,(At+dt)*tt+Ft)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+dt-ut*.5)*z+Dt,At*tt+Ft,Pt*z+Dt,(At+dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At+ut)*tt+Ft)),Jt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z+Dt,(At-dt)*tt+Ft,(Pt+dt-ut*.5)*z+Dt,(At-ut)*tt+Ft,Pt*z+Dt,(At-dt)*tt+Ft).close()),at}),go.Shape.defineFigureGenerator("Email",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,0,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*tt)),at}),go.Shape.defineFigureGenerator("Ethernet",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.35*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var lt=new go.PathFigure(.1*z,tt,!0,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt).close());var ut=new go.PathFigure(.6*z,tt,!0,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*z,tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*tt)),at}),go.Shape.defineFigureGenerator("Power",function(ft,z,tt){var at=new go.Geometry,it=gt*.4,lt=.4,ut=.5,dt=.5,Pt=ae(),At=ae(),Dt=ae(),Ft=ae();_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.5,Pt,Pt,At,Dt,Ft);var Nt=le(At.x,At.y),jt=new go.PathFigure(At.x*z,At.y*tt,!0);at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,(ut-it)*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt)),_t(ut-lt,dt,ut-lt,dt-it,ut-it,dt-lt,ut,dt-lt,.5,Dt,Ft,At,Pt,Pt),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Dt.x*z,Dt.y*tt,Ft.x*z,Ft.y*tt)),it=gt*.3,lt=.3,_t(ut-lt,dt,ut-lt,dt-it,ut-it,dt-lt,ut,dt-lt,.5,Dt,Ft,At,Pt,Pt),jt.add(new go.PathSegment(go.PathSegment.Line,At.x*z,At.y*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-lt)*z,dt*tt,Ft.x*z,Ft.y*tt,Dt.x*z,Dt.y*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+lt)*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+lt)*z,dt*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),_t(ut,dt-lt,ut+it,dt-lt,ut+lt,dt-it,ut+lt,dt,.5,Pt,Pt,At,Dt,Ft),jt.add(new go.PathSegment(go.PathSegment.Bezier,At.x*z,At.y*tt,Ft.x*z,Ft.y*tt,Dt.x*z,Dt.y*tt).close());var jt=new go.PathFigure(.45*z,0,!0);return at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),Re(Pt),Re(At),Re(Dt),Re(Ft),Re(Nt),at.spot1=new go.Spot(.25,.45),at.spot2=new go.Spot(.75,.8),at}),go.Shape.defineFigureGenerator("Fallout",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt/2,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,tt/2,z/2,tt/2));function lt(ut,dt,Pt){ut.add(new go.PathSegment(go.PathSegment.Move,(.3+dt)*z,(.8+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+dt)*z,(.5+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.1+dt)*z,(.5+Pt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.3+dt)*z,(.8+Pt)*tt).close())}return lt(it,0,0),lt(it,.4,0),lt(it,.2,-.3),at}),go.Shape.defineFigureGenerator("IrritationHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.2*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),at.spot1=new go.Spot(.3,.3),at.spot2=new go.Spot(.7,.7),at}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.37*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.37*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.34*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),at}),go.Shape.defineFigureGenerator("FireHazard",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*tt,.45*z,.44*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*tt,.48*z,.17*tt,.54*z,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*tt,.59*z,.29*tt,.58*z,.28*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*tt,.8*z,.34*tt,.88*z,.43*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*tt,.87*z,.48*tt,.88*z,.43*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,tt,1.17*z,.76*tt,.82*z,.8*tt).close()),at.spot1=new go.Spot(.07,.445),at.spot2=new go.Spot(.884,.958),at}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=0,ut=0,dt=it*gt,Pt=.4*Math.SQRT2/2+.5,At=.5-.5*Math.SQRT2/2,Dt=1,Ft=.5,Nt=.5,jt=0,Gt=new go.PathFigure(Pt*z,(1-At)*tt,!1);return at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,Ft*tt,Dt*z,.7*tt,Dt*z,Ft*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+lt)*z,(jt+lt)*tt,(.5+it+lt)*z,(.5-dt+lt)*tt,(.5+dt+lt)*z,(.5-it+lt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-it+lt)*z,(.5+ut)*tt,(.5-dt+lt)*z,(.5-it+ut)*tt,(.5-it+lt)*z,(.5-dt+ut)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+lt)*z,.9*tt,(.5-it+lt)*z,(.5+dt+ut)*tt,(.5-dt+lt)*z,.9*tt)),Gt.add(new go.PathSegment(go.PathSegment.Move,(.25+lt)*z,.8*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,(.35+lt)*z,.9*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,(.2+lt)*z,.95*tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(z,tt,!1);at.add(lt);var ut=new go.PathFigure(0,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*tt,.2*z,.35*tt,.3*z,.35*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.7*z,.65*tt,.8*z,.65*tt)),at}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt).close()),at}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.2*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var it=new go.PathFigure(0,.2*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),at}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.7*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*tt,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,tt,.4*z,.5*tt,z,.5*tt).close());var lt=new go.PathFigure(.45*z,.73*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*tt)),at}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(.335*z,(1-.555)*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*tt,(1-.12)*z,.46*tt,(1-.02)*z,.54*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*tt,.02*z,.54*tt,.12*z,.46*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*tt));var ut=.5-.285,dt=.5,Pt=ut,At=Math.PI/4,Dt=4*(1-Math.cos(At))/(3*Math.sin(At)),Ft=Dt*.5,Nt=ut,jt=ut,Gt=Dt*Nt,Wt=Dt*jt;lt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-Nt)*z,Pt*tt,(dt-(Gt+Nt)/2)*z,(Pt+(jt+Wt)/2)*tt,(dt-Nt)*z,(Pt+Wt)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,dt*z,(Pt-jt)*tt,(dt-Nt)*z,(Pt-Wt)*tt,(dt-Gt)*z,(Pt-jt)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+Nt)*z,Pt*tt,(dt+Gt)*z,(Pt-jt)*tt,(dt+Nt)*z,(Pt-Wt)*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*tt,(dt+Nt)*z,(Pt+Wt)*tt,(dt+(Gt+Nt)/2)*z,(Pt+(jt+Wt)/2)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*tt));var Jt=new go.PathFigure(.2*z,tt,!1);at.add(Jt),Jt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*tt));var Ut=new go.PathFigure(.8*z,tt,!1);return at.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,tt).close());var lt=new go.PathFigure(.2*z,.2*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventError",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it);var lt=new go.PathFigure(z,tt,!1);at.add(lt);var ut=new go.PathFigure(.1*z,tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("Caution",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.05*z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*tt,0,tt,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*tt,.5*z,0,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,tt,z,tt,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,tt));var lt=.05;return it.add(new go.PathSegment(go.PathSegment.Move,(.5-lt)*z,.875*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*tt,lt*z,lt*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*tt,.575*z,.725*tt,.625*z,.375*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*tt,.375*z,.375*tt,.425*z,.725*tt)),at}),go.Shape.defineFigureGenerator("Recycle",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.45*z,.95*tt,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*tt,.17*z,.95*tt,.15*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*tt,0,.675*tt,0,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*tt));var lt=new go.PathFigure(.475*z,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*tt,.35*z,0,.375*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*tt,.625*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*tt));var ut=new go.PathFigure(.675*z,.575*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*tt,z,.8*tt,z,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,z,.775*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*tt)),at}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=new go.PathFigure(z,it*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*z,tt,z,(it+lt)*tt,(it+lt)*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,it*tt,(it-lt)*z,tt,0,(it+lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it*z,0,0,(it-lt)*tt,(it-lt)*z,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z,it*tt,(it+lt)*z,0,z,(it-lt)*tt));var dt=new go.PathFigure(it*z,0,!1);return at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,.15*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,it*z,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.85*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,it*z,it*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*tt)),at}),go.Shape.defineFigureGenerator("Package",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.15*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var lt=new go.PathFigure(0,.15*tt,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*tt).close()),at.spot1=new go.Spot(0,.1),at.spot2=new go.Spot(1,1),at}),go.Shape.defineFigureGenerator("Class",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt).close()),at}),go.Shape.defineFigureGenerator("Component",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close());var lt=new go.PathFigure(0,.2*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ut=new go.PathFigure(0,.6*tt,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),at}),go.Shape.defineFigureGenerator("Boat Shipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.15*z,.6*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*tt));var lt=new go.PathFigure(.15*z,.6*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*tt)),at}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at}),go.Shape.defineFigureGenerator("Workcell",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.35*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),at}),go.Shape.defineFigureGenerator("Supermarket",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,.33*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Move,z,.66*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),at}),go.Shape.defineFigureGenerator("TruckShipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(z,.8*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt).close());var ut=.1,dt=gt*.1,Pt=.2,At=.9,Dt=new go.PathFigure((Pt-ut)*z,At*tt,!0);at.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ut)*z,At*tt,(Pt+dt)*z,(At-ut)*tt,(Pt+ut)*z,(At-dt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ut)*z,At*tt,(Pt-dt)*z,(At+ut)*tt,(Pt-ut)*z,(At+dt)*tt).close()),ut=.1,dt=gt*.1,Pt=.8,At=.9;var Ft=new go.PathFigure((Pt-ut)*z,At*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At-ut)*tt,(Pt-ut)*z,(At-dt)*tt,(Pt-dt)*z,(At-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ut)*z,At*tt,(Pt+dt)*z,(At-ut)*tt,(Pt+ut)*z,(At-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*z,(At+ut)*tt,(Pt+ut)*z,(At+dt)*tt,(Pt+dt)*z,(At+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ut)*z,At*tt,(Pt-dt)*z,(At+ut)*tt,(Pt-ut)*z,(At+dt)*tt).close()),at}),go.Shape.defineFigureGenerator("KanbanPost",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.2*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,tt)),at}),go.Shape.defineFigureGenerator("Forklift",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0));var lt=new go.PathFigure(0,.5*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.5*z,.8*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*tt));var dt=new go.PathFigure(.5*z,.7*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z,.7*tt));var Pt=.1,At=gt*.1,Dt=.1,Ft=.9,Nt=new go.PathFigure((Dt-Pt)*z,Ft*tt,!0);at.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft-Pt)*tt,(Dt-Pt)*z,(Ft-At)*tt,(Dt-At)*z,(Ft-Pt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*z,Ft*tt,(Dt+At)*z,(Ft-Pt)*tt,(Dt+Pt)*z,(Ft-At)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft+Pt)*tt,(Dt+Pt)*z,(Ft+At)*tt,(Dt+At)*z,(Ft+Pt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*z,Ft*tt,(Dt-At)*z,(Ft+Pt)*tt,(Dt-Pt)*z,(Ft+At)*tt)),Pt=.1,At=gt*.1,Dt=.4,Ft=.9;var jt=new go.PathFigure((Dt-Pt)*z,Ft*tt,!0);return at.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft-Pt)*tt,(Dt-Pt)*z,(Ft-At)*tt,(Dt-At)*z,(Ft-Pt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Pt)*z,Ft*tt,(Dt+At)*z,(Ft-Pt)*tt,(Dt+Pt)*z,(Ft-At)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*z,(Ft+Pt)*tt,(Dt+Pt)*z,(Ft+At)*tt,(Dt+At)*z,(Ft+Pt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Pt)*z,Ft*tt,(Dt-At)*z,(Ft+Pt)*tt,(Dt-Pt)*z,(Ft+At)*tt)),at}),go.Shape.defineFigureGenerator("RailShipment",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.1*z,.4*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*tt).close());var lt=new go.PathFigure(.45*z,.7*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*tt));var ut=new go.PathFigure(.55*z,.4*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*tt).close());var Dt=.05,Ft=gt*.05,Nt=.175,jt=.95,dt=new go.PathFigure((Nt-Dt)*z,jt*tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt-Dt)*tt,(Nt-Dt)*z,(jt-Ft)*tt,(Nt-Ft)*z,(jt-Dt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Dt)*z,jt*tt,(Nt+Ft)*z,(jt-Dt)*tt,(Nt+Dt)*z,(jt-Ft)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt+Dt)*tt,(Nt+Dt)*z,(jt+Ft)*tt,(Nt+Ft)*z,(jt+Dt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Dt)*z,jt*tt,(Nt-Ft)*z,(jt+Dt)*tt,(Nt-Dt)*z,(jt+Ft)*tt));var Dt=.05,Ft=gt*.05,Nt=.375,jt=.95,Pt=new go.PathFigure((Nt-Dt)*z,jt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt-Dt)*tt,(Nt-Dt)*z,(jt-Ft)*tt,(Nt-Ft)*z,(jt-Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Dt)*z,jt*tt,(Nt+Ft)*z,(jt-Dt)*tt,(Nt+Dt)*z,(jt-Ft)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt+Dt)*tt,(Nt+Dt)*z,(jt+Ft)*tt,(Nt+Ft)*z,(jt+Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Dt)*z,jt*tt,(Nt-Ft)*z,(jt+Dt)*tt,(Nt-Dt)*z,(jt+Ft)*tt));var Dt=.05,Ft=gt*.05,Nt=.625,jt=.95,At=new go.PathFigure((Nt-Dt)*z,jt*tt,!0);at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt-Dt)*tt,(Nt-Dt)*z,(jt-Ft)*tt,(Nt-Ft)*z,(jt-Dt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Dt)*z,jt*tt,(Nt+Ft)*z,(jt-Dt)*tt,(Nt+Dt)*z,(jt-Ft)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt+Dt)*tt,(Nt+Dt)*z,(jt+Ft)*tt,(Nt+Ft)*z,(jt+Dt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Dt)*z,jt*tt,(Nt-Ft)*z,(jt+Dt)*tt,(Nt-Dt)*z,(jt+Ft)*tt));var Dt=.05,Ft=gt*.05,Nt=.825,jt=.95,Gt=new go.PathFigure((Nt-Dt)*z,jt*tt,!0);at.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt-Dt)*tt,(Nt-Dt)*z,(jt-Ft)*tt,(Nt-Ft)*z,(jt-Dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Dt)*z,jt*tt,(Nt+Ft)*z,(jt-Dt)*tt,(Nt+Dt)*z,(jt-Ft)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*z,(jt+Dt)*tt,(Nt+Dt)*z,(jt+Ft)*tt,(Nt+Ft)*z,(jt+Dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Dt)*z,jt*tt,(Nt-Ft)*z,(jt+Dt)*tt,(Nt-Dt)*z,(jt+Ft)*tt).close());var Wt=new go.PathFigure(0,tt,!1);return at.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,z,tt).close()),at}),go.Shape.defineFigureGenerator("Warehouse",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var lt=new go.PathFigure(0,.2*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt).close());var ut=new go.PathFigure(.15*z,tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*z,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*z,tt).close());var dt=.05,Pt=gt*.05,At=.35,Dt=.775,Ft=new go.PathFigure((At-dt)*z,Dt*tt,!0);return at.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,At*z,(Dt-dt)*tt,(At-dt)*z,(Dt-Pt)*tt,(At-Pt)*z,(Dt-dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(At+dt)*z,Dt*tt,(At+Pt)*z,(Dt-dt)*tt,(At+dt)*z,(Dt-Pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,At*z,(Dt+dt)*tt,(At+dt)*z,(Dt+Pt)*tt,(At+Pt)*z,(Dt+dt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(At-dt)*z,Dt*tt,(At-Pt)*z,(Dt+dt)*tt,(At-dt)*z,(Dt+Pt)*tt).close()),at}),go.Shape.defineFigureGenerator("ControlCenter",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt).close()),at}),go.Shape.defineFigureGenerator("Bluetooth",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.75*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),at}),go.Shape.defineFigureGenerator("Bookmark",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),at}),go.Shape.defineFigureGenerator("Bookmark",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),it.add(new go.PathSegment(go.PathSegment.Line,0,0)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*tt)),at}),go.Shape.defineFigureGenerator("Globe",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*tt,.75*z,0,z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,z,.75*tt,.75*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*z,tt,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*tt,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,tt,.15*z,.25*tt,.15*z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*tt,.85*z,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*tt,.35*z,.3*tt,.65*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*tt,.35*z,.7*tt,.65*z,.7*tt)),at}),go.Shape.defineFigureGenerator("Wave",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.25*tt,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*tt,.1*z,0,.2*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*tt,.425*z,.5*tt,.575*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*tt,.8*z,0,.9*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*tt,.1*z,.5*tt,.2*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*tt,.425*z,tt,.575*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*tt,.8*z,.5*tt,.9*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Operator",function(ft,z,tt){var at=new go.Geometry,it=.3,lt=gt*.3,ut=.5,dt=.7,Pt=new go.PathFigure((ut-it)*z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt));var At=new go.PathFigure(0,.7*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*tt,0,0,z,0)),at}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.5*z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.65*z,.3*tt,.65*z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*tt,.35*z,.3*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*z,.6*tt,.1*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.2*z,tt,.35*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,tt,.7*z,.6*tt,.9*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*tt,.8*z,tt,.65*z,.95*tt)),at}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z,0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,tt,0,tt,.4*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*tt,.8*z,tt,.85*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,0)),at}),go.Shape.defineFigureGenerator("Battery",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*tt));var lt=new go.PathFigure(0,.6*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,z,.4*tt)),at}),go.Shape.defineFigureGenerator("Delete",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-it)*z,dt*tt,!0);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt));var At=new go.PathFigure(.15*z,.5*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*tt)),at}),go.Shape.defineFigureGenerator("Flag",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.1*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*tt,.15*z,0,.35*z,0)),it.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*tt,.65*z,.2*tt,.85*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*tt,.85*z,.6*tt,.65*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*z,.4*tt,.15*z,.4*tt).close()),at}),go.Shape.defineFigureGenerator("Help",function(ft,z,tt){var at=new go.Geometry,it=.5,lt=gt*.5,ut=.5,dt=.5,Pt=new go.PathFigure((ut-it)*z,dt*tt,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt).close()),it=.05,lt=gt*.05,ut=.5,dt=.8;var At=new go.PathFigure((ut-it)*z,dt*tt,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt-it)*tt,(ut-it)*z,(dt-lt)*tt,(ut-lt)*z,(dt-it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut+it)*z,dt*tt,(ut+lt)*z,(dt-it)*tt,(ut+it)*z,(dt-lt)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ut*z,(dt+it)*tt,(ut+it)*z,(dt+lt)*tt,(ut+lt)*z,(dt+it)*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ut-it)*z,dt*tt,(ut-lt)*z,(dt+it)*tt,(ut-it)*z,(dt+lt)*tt).close()),At.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*tt)),At.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*tt,.75*z,.475*tt,.75*z,.225*tt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*tt,.4*z,.2*tt,.3*z,.25*tt)),at}),go.Shape.defineFigureGenerator("Location",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.5*z,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*tt,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*tt,.5*z,0,.025*z,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*tt,.1*z,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var lt=new go.PathFigure(.2*z,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*tt,.25*z,0,.75*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*tt)),at}),go.Shape.defineFigureGenerator("Unlocked",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,.5*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var lt=new go.PathFigure(.2*z,.5*tt,!1);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*tt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*tt,.25*z,0,.75*z,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*tt)),at}),go.Shape.defineFigureGenerator("Gear",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*tt,.79840625*z,.39915625*tt,.7834375*z,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*tt,.64228125*z,.2188125*tt,.603875*z,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*tt,.39759375*z,.20190625*tt,.36053125*z,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*tt,.21765625*z,.36059375*tt,.201875*z,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*tt,.20221875*z,.603875*tt,.21884375*z,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*tt,.36353125*z,.78340625*tt,.3991875*z,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*tt,.602375*z,.79809375*tt,.63946875*z,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*tt,.78234375*z,.63940625*tt,.798125*z,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*tt,.1*z,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.5*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*tt,0,.375*tt,.05*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*tt,.3*z,.225*tt,.4*z,.175*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*tt,.46*z,.05*tt,.525*z,.05*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*tt,.525*z,.275*tt,.475*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*tt,z,.4*tt,z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*tt,.675*z,.55*tt,.675*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*tt,.65*z,.7*tt,.65*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,tt,.61*z,.85*tt,.61*z,tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*z,tt,0,tt).close()),at}),go.Shape.defineFigureGenerator("Map",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,.2*tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),it.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt)),it.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),it.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*tt)),at}),go.Shape.defineFigureGenerator("Eject",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z,tt)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.7)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var lt=new go.PathFigure(0,tt*.6,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z,.6*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),at}),go.Shape.defineFigureGenerator("Pencil",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*1,tt*1,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.046*z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.3)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,tt*.85)),it.add(new go.PathSegment(go.PathSegment.Line,z,tt*.85).close());var lt=new go.PathFigure(.126*z,.85*tt,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*tt)),lt.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*tt).close());var ut=new go.PathFigure(.402*z,.85*tt,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*tt).close());var dt=new go.PathFigure(.678*z,.85*tt,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*tt).close());var Pt=new go.PathFigure(.5*z,.1*tt,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*tt).close()),at}),go.Shape.defineFigureGenerator("Staircase",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt*1,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*.8)),it.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.8)),it.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.6)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.6)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.4)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.4)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.2)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.2)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.15)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.15)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),at}),go.Shape.defineFigureGenerator("5Bars",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,tt*1,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.184,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.184,tt*(1-.184)).close());var lt=new go.PathFigure(z*.204,tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.204,tt*(1-.184))),lt.add(new go.PathSegment(go.PathSegment.Line,z*.388,tt*(1-.184*2))),lt.add(new go.PathSegment(go.PathSegment.Line,z*.388,tt*1).close());var ut=new go.PathFigure(z*.408,tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.408,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,z*.592,tt*(1-.184*3))),ut.add(new go.PathSegment(go.PathSegment.Line,z*.592,tt*1).close());var dt=new go.PathFigure(z*.612,tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.612,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,z*.796,tt*(1-.184*4))),dt.add(new go.PathSegment(go.PathSegment.Line,z*.796,tt*1).close());var Pt=new go.PathFigure(z*.816,tt,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.816,tt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-.184*5))),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1).close()),at}),go.Shape.defineFigureGenerator("PC",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var lt=new go.PathFigure(z*.055,.07*tt,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.07)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.1).close());var ut=new go.PathFigure(z*.055,.13*tt,!0);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.13)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.16)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.16).close());var dt=new go.PathFigure(z*.055,.18*tt,!0);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.18)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.245,tt*.21)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.055,tt*.21).close());var Pt=new go.PathFigure(z*1,0,!0);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.65)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.65).close()),at}),go.Shape.defineFigureGenerator("Plane",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(.55*z,tt,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*tt,0,.4*tt,.225*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*tt)),it.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*tt,.975*z,0,z,.08*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*tt)),it.add(new go.PathSegment(go.PathSegment.Line,.55*z,tt).close()),at}),go.Shape.defineFigureGenerator("Key",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*1,tt*.5,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),it.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*tt)),it.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*tt).close()),it.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*tt)),it.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*tt,.075*z,.075*tt).close()),at}),go.Shape.defineFigureGenerator("FilmTape",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(0,0,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),it.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.08,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.08,tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),tt*.95)),it.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1));var lt=new go.PathFigure(0,0,!1);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1));var ut=new go.PathFigure(z*.11,tt*.1,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),tt*.8)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.11,tt*.8).close());var dt=new go.PathFigure(z*(.11+.24133333*1+.028*1),tt*.1,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),tt*.8).close());var Pt=new go.PathFigure(z*(.11+.24133333*2+.028*2),tt*.1,!1);return at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),tt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),tt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),tt*.8).close()),at}),go.Shape.defineFigureGenerator("FloppyDisk",function(ft,z,tt){var at=new go.Geometry,it=8,lt=it*gt,ut=new go.PathFigure(it,0,!1);at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.14)),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-it,tt,z,tt-lt,z-lt,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-it,lt,tt,0,tt-lt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,it,0,0,lt,lt,0).close());var dt=new go.PathFigure(z*.83,0,!1);at.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z*.83,tt*.3)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*.3)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*0).close());var Pt=new go.PathFigure(z*.83,tt*1,!1);at.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.83,tt*.5)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*.5)),Pt.add(new go.PathSegment(go.PathSegment.Line,z*.17,tt*1).close());var At=new go.PathFigure(z*.78,tt*.05,!1);return at.add(At),At.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.05)),At.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.25)),At.add(new go.PathSegment(go.PathSegment.Line,z*.78,tt*.25).close()),at}),go.Shape.defineFigureGenerator("SpeechBubble",function(ft,z,tt){var at=ft?ft.parameter1:NaN;(isNaN(at)||at<0)&&(at=15),at=Math.min(at,z/3),at=Math.min(at,tt/3);var it=at*gt,lt=tt*.8,ut=new go.Geometry,dt=new go.PathFigure(at,0,!0);return ut.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,z-at,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z,at,z-it,0,z,it)),dt.add(new go.PathSegment(go.PathSegment.Line,z,lt-at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,z-at,lt,z,lt-it,z-it,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.7,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,z*.55,lt)),dt.add(new go.PathSegment(go.PathSegment.Line,at,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt-at,it,lt,0,lt-it)),dt.add(new go.PathSegment(go.PathSegment.Line,0,at)),dt.add(new go.PathSegment(go.PathSegment.Bezier,at,0,0,it,it,0).close()),it>1?(ut.spot1=new go.Spot(0,0,it,it),ut.spot2=new go.Spot(1,.8,-it,-it)):(ut.spot1=go.Spot.TopLeft,ut.spot2=new go.Spot(1,.8)),ut}),go.Shape.defineFigureGenerator("Repeat",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*.45,!0);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.2,tt*.45).close());var lt=new go.PathFigure(z*1,tt*.55,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*.55).close()),at}),go.Shape.defineFigureGenerator("Windows",function(ft,z,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*.1,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.9)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*.9).close());var lt=new go.PathFigure(z*.1,tt*.2,!0);at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.22,tt*.285)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.32)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.1,tt*.37)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.275,tt*.32)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.275,tt*.25).close());var ut=new go.PathFigure(z*.28,tt*.37,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.41)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.28,tt*.41).close()),at}),go.Shape.defineFigureGenerator("Beaker",function(ft,z,tt){var at=new go.Geometry,it=15,lt=it*gt,ut=new go.PathFigure(z*.62,tt*.475,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z,tt-it)),ut.add(new go.PathSegment(go.PathSegment.Bezier,z-it,tt,z,tt-lt,z-lt,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,it,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-it,lt,tt,0,tt-lt)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.38,tt*.475)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.38,tt*.03)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.62,tt*.03).close()),lt>1?(at.spot1=new go.Spot(0,0,lt,lt),at.spot2=new go.Spot(1,1,-lt,-lt)):(at.spot1=go.Spot.TopLeft,at.spot2=go.Spot.BottomRight),at}),go.Shape.defineFigureGenerator("Download",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close());var ut=new go.PathFigure(z*.4,tt*0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.26,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.66)),ut.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.44)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*0).close()),at}),go.Shape.defineFigureGenerator("Bin",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;return it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close()),at}),go.Shape.defineFigureGenerator("Upload",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*0,tt*1,!0);at.add(it);var lt=.1/.3;it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.8,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.66,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.755,tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*.93,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.64,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.61,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.39,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.36,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*.07,tt*(1-lt))),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*.055)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*(1-lt)).close());var ut=new go.PathFigure(z*.5,tt*0,!0);return at.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,z*.26,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.4,tt*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.63)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.6,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,z*.74,tt*.25).close()),at}),go.Shape.defineFigureGenerator("EmptyDrink",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.15,tt*0,!1);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1).close()),at}),go.Shape.defineFigureGenerator("Drink",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.15,tt*0,!1);at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.85,tt*0)),it.add(new go.PathSegment(go.PathSegment.Line,z*.7,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.3,tt*1).close());var lt=new go.PathFigure(z*.235,tt*.28,!0);return at.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,z*.765,tt*.28)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.655,tt*.97)),lt.add(new go.PathSegment(go.PathSegment.Line,z*.345,tt*.97).close()),at}),go.Shape.defineFigureGenerator("4Arrows",function(ft,z,tt){var at=new go.Geometry,it=new go.PathFigure(z*.5,tt*0,!0);return at.add(it),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*1,tt*.5)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.65)),it.add(new go.PathSegment(go.PathSegment.Line,z*.75,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.55,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.65,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.5,tt*1)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.75)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.55)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.65)),it.add(new go.PathSegment(go.PathSegment.Line,z*0,tt*.5)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.35)),it.add(new go.PathSegment(go.PathSegment.Line,z*.25,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.45)),it.add(new go.PathSegment(go.PathSegment.Line,z*.45,tt*.25)),it.add(new go.PathSegment(go.PathSegment.Line,z*.35,tt*.25).close()),at}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var dn={},fn="5.0",le={},ae=null,Re=!1,ot=!1,_t=null,Bt=!1,vt=null,gt=null,kt=0;kt4?parseFloat(fe):5};dn.setHTML5Codebase=function(fe,pe){gt=fe,ve(fe,pe)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function(fe,pe){var he=parseFloat(fe);if(he!==NaN&&he<5){console.log("The GeoGebra HTML5 codebase version "+he+" is deprecated. Using version latest instead.");return}vt=fe,ne(fe,pe)},dn.getHTML5CodebaseVersion=function(){return ft},dn.getParameters=function(){return le},dn.setFontsCSSURL=function(fe){ut=fe},dn.setGiacJSURL=function(fe){},dn.setJNLPFile=function(fe){St=fe},dn.setJNLPBaseDir=function(fe){},dn.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pe="auto",he=le.id,Ce,de=!1,ye=0;ye=5)return!0;var fe=dn.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var fe=dn.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},dn.stopAnimation=function(){var fe=dn.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},dn.getAppletObject=function(){var fe=le.id!==void 0?le.id:"ggbApplet";return window[fe]},dn.resize=function(){};var Gt=function(fe,pe,he){var Ce=document.createElement("param");Ce.setAttribute("name",pe),Ce.setAttribute("value",he),fe.appendChild(Ce)},Wt=function(fe){return fe&&fe!=="false"},Jt=function(fe,pe,he){Pt(ft)<=4.2&&(he=!0);var Ce=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ft||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Ce=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var de=document.createElement("div");de.classList.add("appletParameters","notranslate");var ye=pe.width,Ne=pe.height;if(pe.disableAutoScale=pe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pe.disableAutoScale,pe.width!==void 0)if(Pt(ft)<=4.4)Wt(pe.showToolBar)&&(pe.height-=7),Wt(pe.showAlgebraInput)&&(pe.height-=37),pe.width<605&&Wt(pe.showToolBar)&&(pe.width=605,ye=605);else{var xe=100;(Wt(pe.showToolBar)||Wt(pe.showMenuBar))&&(pe.hasOwnProperty("customToolBar")&&(pe.customToolbar=pe.customToolBar),xe=Wt(pe.showMenuBar)?245:155),ye=5?(pe.appletOnLoad=function(Ae){var Be=fe.querySelector(".ggb_preview");Be&&Be.parentNode.removeChild(Be),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(wt),window.GGBT_wsf_view&&$(window).trigger("resize"),Kt(Ae)},Lt||wt.appendChild(Xt)):de.appendChild(Xt),wt.appendChild(de),Lt||fe.appendChild(wt),setTimeout(function(){dn.resize()},1)}else{var ee=document.createElement("div");ee.className="applet_scaler",ee.style.position="relative",ee.style.display="block",ee.appendChild(de),fe.appendChild(ee),pe.appletOnLoad=function(Ae){dn.resize(),Kt(Ae)}}function It(Ae,Be){Be&&typeof Be.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ae,Be.appletOnLoad):renderGGBElement(Ae),Se("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Be)}function Rt(Ae,Be){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ae,params:Be}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ze){It(Ze.article,Ze.params)}),html5AppletsToProcess=null)},Pt(ft)<5&&(Ae.className+=" geogebraweb")):It(Ae,Be)}if(Ce){scriptLoadStarted=!0;for(var Vt=0;Vt0?(re.remove(),wt.attr("id","fullscreencontent").show(),jQuery(Kt).append(wt),window.dispatchEvent(new Event("resize"))):Jt(re,pe,!1),window.GGBT_wsf_view.launchFullScreen(Kt)}else xt=Ce,Jt(fe,pe,!1);if(!window.GGBT_wsf_view)for(Ne=0;Nefe/4*3&&(re=fe/4*3),Kt=re/5.8,xe.setAttribute("src",it),xe.setAttribute("width",re),xe.setAttribute("height",Kt);var wt=(fe-re)/2,Lt=(pe-Kt)/2;xe.style.left=wt+"px",xe.style.top=Lt+"px",de.appendChild(xe)}}return de.appendChild(Ne),de},Pe=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},Yt=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(fe,pe){if(ft=fe,pe){ve(ft,!0);return}var he=!Re;if(he){var Ce=Pt(ft);!isNaN(Ce)&&Ce<4.4&&(he=!1)}var de,ye;window.location.protocol.substr(0,4)==="http"?de=window.location.protocol:de="http:";var Ne=ft.indexOf("//");Ne>0?ye=ft:Ne===0?ye=de+ft:ye="https://www.geogebra.org/apps/5.2.814.0/";for(var xe in Yt)if(ft.slice(Yt[xe].length*-1)===Yt[xe]||ft.slice((Yt[xe].length+1)*-1)===Yt[xe]+"/"){ve(ye,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&he&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Wt(le.showToolBar)&&!Wt(le.showMenuBar)&&!Wt(le.showAlgebraInput)&&!Wt(le.enableRightClick)&&(!le.appName||le.appName=="classic")?ye+="webSimple/":ye+="web3d/",ve(ye,!1)},ve=function(fe,pe){if(fe.requirejs){Tt=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Tt=fe,pe===null&&(pe=fe.indexOf("http")===-1),mt=pe,z="web.nocache.js",tt=!1;var he=Tt.split("/");he.length>1&&(!pe&&he[he.length-2]==="webSimple"?(z="webSimple.nocache.js",tt=!0):Yt.indexOf(he[he.length-2])>=0&&(z=he[he.length-2]+".nocache.js")),he=fe.split("/"),ft=he[he.length-3],ft.substr(0,4)==="test"?ft=ft.substr(4,1)+"."+ft.substr(5,1):(ft.substr(0,3)==="war"||ft.substr(0,4)==="beta")&&(ft="5.0");var Ce=parseFloat(ft);Ce!==NaN&&Ce<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ce+" is deprecated. Using version latest instead."),ne("5.0",pe))},Se=function(fe,pe){window.console&&window.console.log&&(!pe||typeof pe.showLogging=="undefined"||pe.showLogging&&pe.showLogging!=="false")&&console.log(fe)};le.material_id!==void 0?Ft(be):be();function be(){var fe=fn;vt!==null?fe=vt:parseFloat(fe)<5&&(fe="5.0"),ne(fe,!1),gt!==null&&ve(gt,mt),Bt=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function fn(Bt,vt){vt!=1?(Bt.style.transformOrigin="0% 0% 0px",Bt.style.webkitTransformOrigin="0% 0% 0px",Bt.style.transform="scale("+vt+","+vt+")",Bt.style.webkitTransform="scale("+vt+","+vt+")",Bt.style.maxWidth="initial",Bt.querySelector(".ggb_preview")!==null&&(Bt.querySelector(".ggb_preview").style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Bt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Bt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Bt.style.transform="none",Bt.style.webkitTransform="none")}function le(Bt,vt,gt,kt,bt,St){var Tt=null;if(St!=null&&St!="")for(var mt=Bt.parentNode;mt!=null;)if((" "+mt.className+" ").indexOf(" "+St+" ")>-1){Tt=mt;break}else mt=mt.parentNode;var xt=0,ft=0,z=0,tt=0,at=0,it=0,lt=0;if(Tt)xt=Tt.offsetWidth,ft=Math.max(kt?Tt.offsetWidth:0,Tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),ft=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xt):(xt=window.innerWidth,ft=window.innerHeight,z=window.innerWidth),Bt){var ut=Bt.getBoundingClientRect();ut.left>0&&ut.left<=xt&&(bt===void 0||!bt)&&(document.dir==="rtl"?(at=xt-ut.width-ut.left,it=z<=480?10:30):(it=ut.left,at=z<=480?10:30),tt=it+at)}if(Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var dt=Bt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,lt=40)}}return Bt&&((gt===void 0||!gt)&&vt>0&&vt+tt1&&(St=!0)),vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St=!0),!(Bt.hasOwnProperty("disableAutoScale")&&Bt.disableAutoScale))bt=ae(Bt,vt,St,gt,Bt.scaleContainerClass);else return kt;return St&&(!Bt.hasOwnProperty("scale")||kt===1)?bt:Math.min(kt,bt)}function ot(Bt){var vt=Math.min(window.innerWidth,document.documentElement.clientWidth),gt=Math.min(window.innerHeight,document.documentElement.clientHeight),kt=Bt.getBoundingClientRect(),bt=(vt-kt.width)/2,St=(gt-kt.height)/2;St<0&&(St=0),Bt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(bt<40?Bt.style.left="40px":Bt.style.left=bt+"px",Bt.style.top=St+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(St<40?Bt.style.top="40px":Bt.style.top=St+"px",Bt.style.left=bt+"px")}function _t(Bt,vt){var gt=Bt.querySelector(".appletParameters");if(gt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!==gt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Bt)}if(gt.parentElement&&/fullscreen/.test(gt.parentElement.className))return;var kt=Re(vt,Bt);dn()&>.setAttribute("data-param-scale",kt);for(var bt=null,St=0;St=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(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var fn=c[dn];return fn==null?null:fn},r=d,webModule.__errFn=e}function B(){function dn(Bt){var vt=Bt.lastIndexOf(rb);vt==-1&&(vt=Bt.length);var gt=Bt.indexOf(sb);gt==-1&&(gt=Bt.length);var kt=Bt.lastIndexOf(tb,Math.min(gt,vt));return kt>=O?Bt.substring(O,kt+P):W}function fn(Bt){if(!Bt.match(/^\w+:\/\//)){var vt=o.createElement(ub);vt.src=Bt+vb,Bt=dn(vt.src)}return Bt}function le(){var Bt=__gwt_getMetaProperty(wb);return Bt!=null?Bt:W}function ae(){for(var Bt=o.getElementsByTagName(_),vt=O;vtO?Bt[Bt.length-P].href:W}function ot(){var Bt=o.location;return Bt.href==Bt.protocol+zb+Bt.host+Bt.pathname+Bt.search+Bt.hash}var _t=le();return _t==W&&(_t=ae()),_t==W&&(_t=Re()),_t==W&&ot()&&(_t=dn(o.location.href)),_t=fn(_t),_t}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],fn=O,le=[],ae=[];function Re(Bt){var vt=ae[Bt](),gt=le[Bt];if(vt in gt)return vt;var kt=[];for(var bt in gt)kt[gt[bt]]=bt;throw r&&r(Bt,kt,vt),null}if(__gwt_isKnownPropertyValue=function(Bt,vt){return vt in le[Bt]},webModule.__getPropMap=function(){var Bt={};for(var vt in le)le.hasOwnProperty(vt)&&(Bt[vt]=Re(vt));return Bt},webModule.__computePropValue=Re,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ot;try{ot=Cb;var _t=ot.indexOf(Db);_t!=-1&&(fn=parseInt(ot.substring(_t+P),$),ot=ot.substring(O,_t))}catch(Bt){}return webModule.__softPermutationId=fn,C(ot+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(dn,fn,le){"use strict";le.d(fn,{Ax:function(){return _t},Ds:function(){return Bt},KI:function(){return gt},SI:function(){return ot},f1:function(){return Re}});var ae=le(346);function Re(kt){let bt=!0;if(kt.length>0){for(let St=0;Stnew Promise((z,tt)=>{var at=ut=>{try{lt(ft.next(ut))}catch(dt){tt(dt)}},it=ut=>{try{lt(ft.throw(ut))}catch(dt){tt(dt)}},lt=ut=>ut.done?z(ut.value):Promise.resolve(ut.value).then(at,it);lt((ft=ft.apply(mt,xt)).next())}),Tt=({data:mt,className:xt,fullWidth:ft,style:z={},onClose:tt,onOk:at,showFullTools:it,noAssociationId:lt})=>{const ut=(0,ae.useRef)(null),dt=(0,ae.useRef)(null),Pt=(0,ae.useRef)(null),At=(0,ae.useRef)(null),[Dt,Ft]=(0,ae.useState)(!1),[Nt,jt]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>(Pt.current||(Pt.current=document.createElement("style"),document.head.appendChild(Pt.current)),mt!=null&&mt.visible?(document.body.setAttribute("data-custom","y-hidden"),Pt.current.innerHTML=" html { overflow-y: hidden; }",mt!=null&&mt.src&&Gt()):(document.body.removeAttribute("data-custom"),Pt.current&&(document.head.removeChild(Pt.current),Pt.current=null)),()=>{document.body.removeAttribute("data-custom"),Pt.current&&(document.head.removeChild(Pt.current),Pt.current=null)}),[mt==null?void 0:mt.visible]);const Gt=()=>bt(void 0,null,function*(){Ft(!0),jt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ht=yield(0,kt.ZJ)(mt==null?void 0:mt.src);ut.current.src="",ut.current.src=Ht,ut.current.onload=function(){Ut()},Ft(!1),jt("")}),Wt=Ht=>bt(void 0,null,function*(){Ft(!0),jt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const oe=yield(0,gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:mt.title,file:Ht.dataUrl}});oe!=null&&oe.id&&!lt?(yield(0,gt.ZP)(`/api/attachments/${mt.id}/add_subitem.json`,{method:"post",body:{subitem_id:oe==null?void 0:oe.id,settings:JSON.stringify(Ht.state)}})).status===0&&at():oe!=null&&oe.id&&at(oe),Ft(!1),jt("")}),Jt=()=>{const Ht=document.querySelector('a[href="https://markerjs.com/"]');Ht&&Ht.parentNode&&(Ht.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(se=>{const ce=document.querySelector(se.name);ce&&ce.setAttribute("title",se.title)})},Ut=()=>{dt.current=new vt.hP(ut.current),dt.current.targetRoot=At.current,dt.current.addEventListener("render",Wt),dt.current.addEventListener("beforeclose",tt),it&&(dt.current.availableMarkerTypes=dt.current.ALL_MARKER_TYPES,dt.current.uiStyleSettings.redoButtonVisible=!0,dt.current.uiStyleSettings.notesButtonVisible=!0,dt.current.uiStyleSettings.zoomButtonVisible=!0,dt.current.uiStyleSettings.zoomOutButtonVisible=!0,dt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=dt.current.uiStyleSettings,dt.current.show(),mt!=null&&mt.snapshotData&&dt.current.restoreState(mt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Jt()},300)};return ae.createElement(ae.Fragment,null,(mt==null?void 0:mt.visible)&&ae.createElement(Bt.Z,{spinning:Dt,tip:Nt,style:{position:"absolute",width:"100vw"}},ae.createElement("div",{ref:At,className:_t()(Re.imageDimensions,xt,ft?Re.fullWidth:""),style:z},ae.createElement("img",{className:Re.img,ref:ut}))))}},1041:function(dn,fn,le){"use strict";le.d(fn,{N:function(){return tt}});var ae=le(59301),Re=le(82326),ot=le(62957),_t=le(37568),Bt=le(6767),vt=le(77019),gt=le(5269),kt=le(38986),bt={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},St=le(92310),Tt=le.n(St),mt=le(87169),xt=le(59301),ft=(at,it,lt)=>new Promise((ut,dt)=>{var Pt=Ft=>{try{Dt(lt.next(Ft))}catch(Nt){dt(Nt)}},At=Ft=>{try{Dt(lt.throw(Ft))}catch(Nt){dt(Nt)}},Dt=Ft=>Ft.done?ut(Ft.value):Promise.resolve(Ft.value).then(Pt,At);Dt((lt=lt.apply(at,it)).next())});const{Option:z}=Re.default,tt=({subId:at,value:it,selectvalues:lt,disabled:ut,knowledgeOptions:dt=[],className:Pt,height:At,onChange:Dt=()=>{},onAddKnowledgeFinish:Ft=()=>{},zIndex:Nt=1e3})=>{const jt=(0,ae.useRef)(),[Gt,Wt]=(0,ae.useState)([]);it=it||[];const Jt=(Ht,oe)=>{Ht?(Wt([...oe]),Dt([...oe])):(Wt([]),Dt([]))};(0,ae.useEffect)(()=>{(lt==null?void 0:lt.length)>0?(Wt([...lt]),Dt([...lt])):(Wt([]),Dt([]))},[dt]),(0,ae.useEffect)(()=>{(it==null?void 0:it.length)>0&&Dt([...it])},[dt]);const Ut=Ht=>{Ht.preventDefault(),jt.current="",ot.default.confirm({centered:!0,width:585,zIndex:Nt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:xt.createElement("div",{className:"font14"},xt.createElement("div",{className:bt.public_tips},xt.createElement(mt.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),xt.createElement("div",{style:{display:"flex",alignItems:"center"}},xt.createElement("div",{style:{width:"95px"}},xt.createElement("span",{className:bt.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),xt.createElement(_t.default,{className:bt.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:jt.current,onChange:oe=>{jt.current=oe.target.value}}))),onOk:()=>new Promise((oe,se)=>ft(void 0,null,function*(){if(!jt.current)return Bt.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),se();if(jt.current.length>20)return Bt.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),se();const ce=yield(0,kt.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:jt.current,sub_discipline_id:at}});if((ce==null?void 0:ce.status)===0){Ft({id:ce.tag_discipline_id,name:jt.current,type:"personal"});let Pe=lt||[];Pe.push(ce.tag_discipline_id),Dt([...Pe]),Wt([...Pe]),Dt([...Pe])}return oe()}))})};return xt.createElement(vt.Z,{wrap:!1,align:"middle",className:Tt()(bt.wrap,Pt)},xt.createElement(gt.Z,null,xt.createElement(Re.default,{mode:"multiple",disabled:!at||ut,className:bt.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Jt,style:{width:At||490},showSearch:!0,allowClear:!0,value:Gt,filterOption:(Ht,oe)=>oe.label.indexOf(Ht.toLowerCase())>=0},dt==null?void 0:dt.map(Ht=>xt.createElement(z,{key:Ht.id,value:Ht.id,label:Ht.name},xt.createElement("div",{style:{display:"flex",alignItems:"center"}},xt.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ht.name),(Ht==null?void 0:Ht.type)==="personal"&&xt.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),at&&xt.createElement(gt.Z,{className:`ml20 ${At&&bt.add_style}`},xt.createElement("span",{className:bt.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),xt.createElement("span",{className:bt.linkBtn,onClick:Ut},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},76562:function(dn,fn,le){"use strict";var ae=le(59301),Re=le(77019),ot=le(5269),_t=le(20554),Bt=le(99571),vt=le(76902),gt=le(99587),kt=le(48136),bt=le(59301);const St=(0,ae.forwardRef)(({callback:Tt,showSaveButton:mt,value:xt=""},ft)=>{const z=(0,ae.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 "}]}]}],at=[{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}`}]}]}],it=dt=>{z.current.setValue(z.current.getValue()+" "+dt.value+" ")},lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:bt.createElement(Re.Z,{className:gt.Z.lists,gutter:[10,10]},tt.map((dt,Pt)=>bt.createElement(ot.Z,{flex:"110px",className:gt.Z.item},bt.createElement("div",null,bt.createElement(vt.Z,{value:`$$${dt.value}$$`}),dt.name),bt.createElement("div",{className:gt.Z.children},dt.children.map((At,Dt)=>bt.createElement("div",{key:Dt},bt.createElement("h1",null,At.name),bt.createElement(Re.Z,{gutter:[10,10]},At.data.map((Ft,Nt)=>bt.createElement(ot.Z,{key:Nt,onClick:()=>it(Ft),className:gt.Z.diamond},bt.createElement(vt.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:bt.createElement(Re.Z,{className:gt.Z.lists,gutter:[10,10]},at.map((dt,Pt)=>bt.createElement(ot.Z,{flex:"110px",className:gt.Z.item},bt.createElement("div",null,bt.createElement(vt.Z,{value:"`$$"+dt.value+"$$`"}),dt.name),bt.createElement("div",{className:gt.Z.children},dt.children.map((At,Dt)=>bt.createElement("div",{key:Dt},At.name&&bt.createElement("h1",null,At.name),bt.createElement(Re.Z,{gutter:[10,10]},At.data.map((Ft,Nt)=>bt.createElement(ot.Z,{key:Nt,onClick:()=>it(Ft),className:gt.Z.diamond},bt.createElement(vt.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],ut=()=>{var dt=document.createElement("div");dt.innerHTML=z.current.getValue();var Pt=dt.innerText;return Tt&&Tt(Pt),Pt};return(0,ae.useImperativeHandle)(ft,()=>({getData:ut})),bt.createElement("div",{className:gt.Z.mathWrap},bt.createElement(_t.default,{defaultActiveKey:"1",items:lt}),bt.createElement("math-field",{locale:"zh_cn",className:gt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xt||""),mt&&bt.createElement("div",{className:gt.Z.button},bt.createElement(Bt.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});fn.Z=St},28426:function(dn,fn,le){"use strict";var ae=le(59301),Re=le(93314),ot=le(99571),_t=Object.defineProperty,Bt=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,St=(ft,z,tt)=>z in ft?_t(ft,z,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[z]=tt,Tt=(ft,z)=>{for(var tt in z||(z={}))kt.call(z,tt)&&St(ft,tt,z[tt]);if(gt)for(var tt of gt(z))bt.call(z,tt)&&St(ft,tt,z[tt]);return ft},mt=(ft,z)=>Bt(ft,vt(z));const xt=({img:ft,buttonProps:z={},styles:tt={},customText:at,ButtonText:it,ButtonClick:lt,Buttonclass:ut,ButtonTwo:dt,imgStyles:Pt,loading:At=!1,className:Dt=""})=>ae.createElement("section",{className:`tc animated fadeIn ${Dt}`,style:Tt({color:"#999",margin:"100px auto",visibility:At?"hidden":"visible"},tt)},ae.createElement("img",{src:ft||Re,style:mt(Tt({},Pt),{pointerEvents:"none",userSelect:"none"})}),ae.createElement("p",{className:"mt20 font14"},at||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&ae.createElement(ot.ZP,Tt({className:ut,onClick:lt},z),it),dt&&dt);fn.Z=xt},45677:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return ut}});var ae=le(59301),Re={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ot=le(99571),_t=le(70557),Bt=le(75975),vt=le(25399),gt=le(51257),kt=le(81722),bt=le(28426),St=le(346),Tt=le(44203),mt=le(59301),xt=Object.defineProperty,ft=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(dt,Pt,At)=>Pt in dt?xt(dt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:At}):dt[Pt]=At,it=(dt,Pt)=>{for(var At in Pt||(Pt={}))z.call(Pt,At)&&at(dt,At,Pt[At]);if(ft)for(var At of ft(Pt))tt.call(Pt,At)&&at(dt,At,Pt[At]);return dt},lt=(dt,Pt,At)=>new Promise((Dt,Ft)=>{var Nt=Wt=>{try{Gt(At.next(Wt))}catch(Jt){Ft(Jt)}},jt=Wt=>{try{Gt(At.throw(Wt))}catch(Jt){Ft(Jt)}},Gt=Wt=>Wt.done?Dt(Wt.value):Promise.resolve(Wt.value).then(Nt,jt);Gt((At=At.apply(dt,Pt)).next())}),ut=({editOffice:dt="view",data:Pt,issaver:At,onSaver:Dt,theme:Ft,type:Nt,filename:jt,monacoEditor:Gt,className:Wt,style:Jt,close:Ut,onClose:Ht,hasMask:oe,disabledDownload:se,onImgDimensions:ce,showNodata:Pe,recordInfo:Yt})=>{const[ne,ve]=(0,ae.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Se,be]=(0,ae.useState)(""),[fe,pe]=(0,ae.useState)(),he=window.ENV==="build"?"/react/build":"",Ce=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,ye=10*(1024*1024),Ne=(0,ae.useRef)();Pt!=null&&Pt.startsWith("/api")&&Nt!=="txt"&&(Pt=St.Z.API_SERVER+Pt);const xe=Xt=>Xt.substring(Xt.lastIndexOf("/")+1).split(".").pop();jt&&Gt&&(Gt.filename=jt),(0,ae.useEffect)(()=>{var Xt,ee;const It=(ee=(Xt=document.cookie)==null?void 0:Xt.replace(/\s/g,""))==null?void 0:ee.split(";");It==null||It.map(Rt=>{let Vt=Rt.split("=");Vt[0]==="_educoder_session"&&be(Vt[1])})},[]),(0,ae.useEffect)(()=>{Nt==="office"&&(Pt.indexOf("bigfilescdn.")>-1||Pt.indexOf("bigfiles1")>-1?pe({url:Pt,fileType:xe(Pt),model:Pt.indexOf("model=edit")?"edit":"view"}):Kt())},[Nt,Pt]);function re(Xt){return lt(this,null,function*(){Xt.data.type==="pdfdata"&&(Dt(Xt.data.data),window.removeEventListener("message",re,!1)),console.log("mess---:",Xt.data)})}const Kt=()=>lt(void 0,null,function*(){console.log("data:",Pt);let Xt=Pt;Pt.startsWith("http")||(Xt=location.origin+Xt);let ee=new URL(Xt).pathname.split("/").pop();const It=yield(0,kt.gJ)({attachment_id:ee});It.url=Ce+It.url,pe(It)}),wt=()=>{if(Pt.startsWith("http")||Pt.startsWith("blob:")){Lt();return}(0,gt.Sv)(jt||"educoder",Pt,jt)},Lt=()=>{Yt&&(0,Tt.fc)({id:Yt==null?void 0:Yt.id,watch_type:1,course_id:Yt==null?void 0:Yt.course_id}),(0,gt.Nd)(jt||"educoder",decodeURIComponent(Pt))};return mt.createElement("div",{style:it({},Jt||{}),className:`${oe&&Re.bgBlack} ${Nt?Re.wrp:"hide"}`},Ut&&mt.createElement("div",{className:Re.close,ref:Ne},!!ce&&mt.createElement(vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ne.current},mt.createElement("span",{onClick:()=>{Ht(),ce()}},mt.createElement("i",{className:"icon-yulanpizhu"}))),!se&&mt.createElement(vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ne.current},mt.createElement("span",{onClick:Lt},mt.createElement("i",{className:"icon-quxiaozhiding"}))),At&&mt.createElement(vt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ne.current},mt.createElement("span",{className:"",onClick:()=>{const Xt=document.getElementById("pdfiframe");window.addEventListener("message",re,!1),setTimeout(()=>{Xt.contentWindow.postMessage("getData","*")},300)}},mt.createElement("i",{className:"icon-baocun"}))),mt.createElement(vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ne.current},mt.createElement("span",{className:"",onClick:()=>{Ht()}},mt.createElement("i",{className:"icon-guanbi1"})))),mt.createElement("div",{className:`${Re[Wt]} ${Wt} ${Re.monaco} ${Nt==="txt"?"show":"hide"}`},Nt==="txt"&&mt.createElement(mt.Fragment,null,mt.createElement(Bt.ZP,it({},Gt)))),Nt==="audio"&&mt.createElement("audio",{src:`${(Pt==null?void 0:Pt.indexOf("http://"))>-1||(Pt==null?void 0:Pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Pt}`,autoPlay:!0}),Nt==="video"&&mt.createElement(mt.Fragment,null,(Pt==null?void 0:Pt.indexOf("http"))>-1?mt.createElement("video",{controls:!0,src:`${Pt}`,autoPlay:!0}):mt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Pt}`,autoPlay:!0})),Nt==="office"&&fe&&mt.createElement("iframe",{src:`${he}/office.html?key=${fe.key}&url=${btoa(fe.url)}&callbackUrl=${Ce+(fe.callbackUrl||"")}&fileType=${fe.fileType}&title=${fe.title||""}&model=${dt}&officeServer=${St.Z.ONLYOFFICE}&disabledDownload=${!!se}`}),Nt==="html"&&mt.createElement("iframe",{src:Pt+"&disposition=inline"}),Nt==="pdf"&&mt.createElement("iframe",{id:"pdfiframe",src:`${he}/js/pdfview/index.html?filename=${jt||"educoder.pdf"}&url=${encodeURIComponent(Pt)}&disabledDownload=${!!se}&model=${dt}`}),Nt==="image"&&mt.createElement("img",{src:`${(Pt==null?void 0:Pt.indexOf("http://"))>-1||(Pt==null?void 0:Pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Pt}`}),(Nt==="other"||Nt==="download")&&mt.createElement(mt.Fragment,null,Pe?mt.createElement(bt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:mt.createElement(ot.ZP,{icon:mt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:wt,disabled:se},"\u4E0B\u8F7D")}):mt.createElement(ot.ZP,{type:"primary",size:"middle",onClick:wt,disabled:se},mt.createElement(_t.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},31457:function(dn,fn,le){"use strict";le.d(fn,{h:function(){return z},x:function(){return tt}});var ae=le(39793),Re=le(8423),ot=le(76902),_t=le(59301),Bt=Object.defineProperty,vt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Tt=(at,it,lt)=>it in at?Bt(at,it,{enumerable:!0,configurable:!0,writable:!0,value:lt}):at[it]=lt,mt=(at,it)=>{for(var lt in it||(it={}))bt.call(it,lt)&&Tt(at,lt,it[lt]);if(kt)for(var lt of kt(it))St.call(it,lt)&&Tt(at,lt,it[lt]);return at},xt=(at,it)=>vt(at,gt(it)),ft=(at,it)=>{var lt={};for(var ut in at)bt.call(at,ut)&&it.indexOf(ut)<0&&(lt[ut]=at[ut]);if(at!=null&&kt)for(var ut of kt(at))it.indexOf(ut)<0&&St.call(at,ut)&&(lt[ut]=at[ut]);return lt};const z=at=>{var it=at,{value:lt,onChange:ut,scrollId:dt}=it,Pt=ft(it,["value","onChange","scrollId"]);return _t.createElement("div",{id:dt||""},_t.createElement(ae.Z,xt(mt({},Pt),{defaultValue:lt,onChange:(At,Dt)=>{Dt!=null&&Dt.length?ut(At,Dt):ut(At)}})))},tt=({value:at,onChange:it,placeholder:lt,height:ut=140,isEdit:dt,miniToolbar:Pt,watch:At=!0})=>dt?_t.createElement(ae.Z,{watch:At,isFocus:!0,height:ut||void 0,placeholder:lt,defaultValue:at,onChange:it,miniToolbar:Pt}):_t.createElement("div",{style:{cursor:"pointer"}},at?_t.createElement(ot.Z,{className:Re.Z.inputBorder,value:at}):_t.createElement("div",{className:`${Re.Z.inputBorder} ${Re.Z.placeholder} inputBorderError`},lt))},76902:function(dn,fn,le){"use strict";le.d(fn,{z:function(){return Ft},Z:function(){return Nt}});var ae=le(59301),Re=le(8944),ot=le(81428),_t=le(64018),Bt=le(15360),vt=le(346),gt=le(51257),kt=le(15342),bt=le(1012),St=le(45677),Tt=le(59301),xt=({html:jt})=>{const Gt=(0,ae.useRef)(null),Wt=(0,ae.useRef)(null),Jt=`.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,ae.useEffect)(()=>{const Ut=Gt.current.attachShadow({mode:"open"});Wt.current=document.createElement("div"),Wt.current.className="markdown-body",Wt.current.innerHTML=jt,Ut.appendChild(Wt.current);const Ht=document.createElement("style");return Ht.textContent=Jt,Ut.appendChild(Ht),()=>{Ut.innerHTML=""}},[]),(0,ae.useEffect)(()=>{Wt.current&&(Wt.current.innerHTML=jt)},[jt]),Tt.createElement("div",{ref:Gt})};function ft(jt){const Gt=["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"],Wt=new RegExp(`\\b(${Gt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return jt.replace(Wt,"").trim()}var z=Object.defineProperty,tt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,lt=(jt,Gt,Wt)=>Gt in jt?z(jt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):jt[Gt]=Wt,ut=(jt,Gt)=>{for(var Wt in Gt||(Gt={}))at.call(Gt,Wt)&<(jt,Wt,Gt[Wt]);if(tt)for(var Wt of tt(Gt))it.call(Gt,Wt)&<(jt,Wt,Gt[Wt]);return jt};const dt="@\u2581\u2581@",Pt="@\u2581@",At=/]*>/g;function Dt(jt){let Gt=document.createElement("div");return Gt.innerHTML=jt,Gt.childNodes.length===0?"":Gt.childNodes[0].nodeValue}const Ft=(jt,Gt)=>{jt=jt||"";const Wt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Jt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ht=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Gt?jt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Wt,(oe,se,ce,Pe,Yt,ne,ve)=>{const Se=se||Pe||ne,be=ce||Yt||ve||"?";return vt.Z.API_SERVER+"/api/attachments/"+Se+be+"&t="+(0,gt.Jn)(Se,Date.now())+(oe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(jt=jt.replace(Ht,(oe,se,ce,Pe,Yt,ne,ve)=>{const Se=se||Pe||ne,be=ce||Yt||ve||"?";return vt.Z.API_SERVER+"/attachments/download/"+Se+be+"&t="+(0,gt.Jn)(Se,Date.now())+(oe.indexOf(")")>-1?")":"&")}).replace(Wt,(oe,se,ce,Pe,Yt,ne,ve)=>{const Se=se||Pe||ne,be=ce||Yt||ve||"?";return vt.Z.API_SERVER+"/api/attachments/"+Se+be+"&t="+(0,gt.Jn)(Se,Date.now())+(oe.indexOf(")")>-1?")":"&")}).replace(Jt,(oe,se,ce,Pe,Yt)=>{const ne=se||Pe,ve=ce||Yt||"";return'"'+vt.Z.API_SERVER+"/api/attachments/"+ne+ve+ne+ve+"&t="+(0,gt.Jn)(ne,Date.now())}).replace(Ut,(oe,se,ce,Pe,Yt)=>{const ne=se||Pe,ve=ce||Yt||"";return"("+vt.Z.API_SERVER+"/files/uploads/"+ne+ve+ne+ve+"&t="+(0,gt.Jn)(ne,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,` `),jt)};var Nt=({value:jt="",className:Gt,showTextOnly:Wt,showLines:Jt,style:Ut={},stylesPrev:Ht={},highlightKeywords:oe,showProgramFill:se,isProgramFill:ce,disabledFill:Pe=!1,programFillValue:Yt,onFillChange:ne=be=>{},onFillBlur:ve=()=>{},onFillFocus:Se=()=>{}})=>{let be=ft(String(jt||""));const[fe,pe]=(0,ae.useState)(""),[he,Ce]=(0,ae.useState)("office"),[de,ye]=(0,ae.useState)([]),Ne=(0,ae.useRef)("a"+(0,bt.Z)()),xe={},re=Me=>//i.test(Me||""),Kt=(Me,Ae,Be)=>{const Ze=document.createElement(Me===Pt?"input":"textarea");Ze.style.width="100%",Ze.style.height=Me===Pt?"40px":"151px",Ze.rows=5,Ze.spellcheck=!1,Ze.name="edu-program-fill",Ze.placeholder="\u8BF7\u8F93\u5165",Ze.dataset.id=Ae;const Ye=Object.keys(xe).length;return xe[Ye]=Ze,`${Ze.outerHTML}`};function wt(Me){return Me=Me.replace(/!\[.*?\]\(.*?\)/g,""),Me=Me.replace(/\[.*?\]\(.*?\)/g,""),Me=Me.replace(new RegExp("","gs"),""),Me=Me.replace(//g,""),Me=Me.replace(//g,""),Me=Me.replace(new RegExp(".*?<\\/video>","gs"),""),Me=Me.replace(new RegExp(".*?<\\/audio>","gs"),""),Me=Me.replace(new RegExp(".*?<\\/style>","gs"),""),Me=Me.replace(new RegExp(".*?<\\/script>","gs"),""),Me}const Lt=Me=>!Wt&&re(be)?Me:Me.replace(/([\s\S]+?)<\/style>/gim,function(Ae,Be){let Ze=Be.replace(/(\n|\r)/g,"").split("}"),Ye=[];return Ze.map(Qe=>{Qe!=""&&Ye.push(`.${Ne.current} ${Qe}`)}),``}),Xt=(0,ae.useMemo)(()=>{try{const Ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ye=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Qe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,He=/\(\/attachments\/download\//g;be=be.replace(He,"("+vt.Z.API_SERVER+"/attachments/download/").replace(Ze,"("+vt.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+vt.Z.API_SERVER+"/api/attachments/").replace(Qe,'"'+vt.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(Ze){}if(se){let Ze=-1;return be=be.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ye,Qe,He){var Ue;return++Ze,Kt(Ye,Ze,(Ue=Yt==null?void 0:Yt[Ze])==null?void 0:Ue.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Lt(be||"")}
`}let Me=Lt(be);Me=(0,ot.ZP)(Me);const Ae=(0,ot.ez)();be.match(/\[TOC\]/)&&(Me=Me.replace("

[TOC]

",(0,ot.Qv)()),(0,ot.Iy)()),Me=Me.replace(/(__special_katext_id_\d+__)/g,(Ze,Ye)=>{const{type:Qe,expression:He}=Ae[Ye];return(0,kt.renderToString)(Dt(He)||"",{displayMode:Qe==="block",throwOnError:!1,output:"html"})}),Me=Me.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ot.AL)();const Be=document.createElement("div");if(Be.innerHTML=Me,Wt)return Be.innerText;if(oe){const Ze=oe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Vt(Be,Ze),Be.innerHTML}return setTimeout(()=>ge(),500),Be.innerHTML},[be,oe]);(0,ae.useEffect)(()=>{$t.current&&$t.current.querySelectorAll(["input","textarea"]).forEach(Ae=>{Ae.oninput=ee,Ae.onblur=It,Ae.onfocus=Rt})},[de]),(0,ae.useEffect)(()=>{var Me,Ae,Be,Ze,Ye;if(Yt!=null&&Yt.length)try{const Qe=$t.current.querySelectorAll(".edu-program-fill-score"),He=$t.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ue,We]of He.entries())We.value=((Me=Yt==null?void 0:Yt[Ue])==null?void 0:Me.value)||"",((Ae=Yt==null?void 0:Yt[Ue])==null?void 0:Ae.type)==="warning"?We.className="program-fill-warning":((Be=Yt==null?void 0:Yt[Ue])==null?void 0:Be.type)==="success"?We.className="program-fill-success":We.className="";for(const[Ue,We]of Qe.entries())We.innerHTML=(Ze=Yt==null?void 0:Yt[Ue])!=null&&Ze.score?`${(Ye=Yt==null?void 0:Yt[Ue])==null?void 0:Ye.score}\u5206`:"";ye(Yt)}catch(Qe){console.log(Qe,"error")}},[Yt]);const ee=Me=>{de[Me.target.dataset.id]=de[Me.target.dataset.id]||{},de[Me.target.dataset.id].value=Me.target.value,ye([...de]),ne(de,Me.target.dataset.id)},It=Me=>{de[Me.target.dataset.id]=de[Me.target.dataset.id]||{},de[Me.target.dataset.id].value=Me.target.value,ye([...de]),ve(de,Me.target.dataset.id)},Rt=Me=>{de[Me.target.dataset.id]=de[Me.target.dataset.id]||{},de[Me.target.dataset.id].value=Me.target.value,ye([...de]),Se(de,Me.target.dataset.id)};function Vt(Me,Ae){return Me.childNodes.forEach(Be=>{var Ze;if(Be.childNodes.length>0)Vt(Be,Ae);else if(Be.nodeName!=="IMG")if(Be.innerHTML)Be.innerHTML=(Ze=Be.innerHTML)==null?void 0:Ze.replace(new RegExp(Ae,"gi"),'$&');else{const Ye=document.createElement("span");Ye.innerHTML=Be.textContent.replace(new RegExp(Ae,"gi"),'$&'),Be.replaceWith(Ye)}})}const $t=(0,ae.useRef)();ot.jb.WebkitLineClamp=Jt,Jt&&(Ut=ut(ut({},Ut),ot.jb));function ue(Me){let Ae=Me.target;if(Ae.tagName.toUpperCase()==="A"){let Be=Ae.getAttribute("href");if(Be.indexOf("office")>-1)Me.preventDefault(),pe(Be),Ce("office");else if(Be.indexOf("application/pdf")>-1)Me.preventDefault(),pe(Be),Ce("pdf");else if(Be.indexOf("text/html")>-1)Me.preventDefault(),pe(Be),Ce("html");else if(Be.startsWith("#")){Me.preventDefault();let Ze=document.getElementById(Be.replace("#",""));Ze&&Ze.scrollIntoView(!0)}}}const ge=()=>{var Me;const Ae=(Me=$t.current)==null?void 0:Me.querySelectorAll("video");Ae==null||Ae.forEach(Be=>{if(Be.oncontextmenu=()=>!1,Be.src.indexOf(".m3u8")>-1&&!Be.canPlayType("application/vnd.apple.mpegurl")){if(Bt.ZP.isSupported()){var Ze=new Bt.ZP;Ze.loadSource(Be.src),Ze.attachMedia(Be)}}})};return(0,ae.useEffect)(()=>{if($t.current&&Xt&&Xt.match(At)&&window.PR.prettyPrint(),$t.current)return $t.current.addEventListener("click",ue),()=>{var Me;(Me=$t.current)==null||Me.removeEventListener("click",ue),(0,ot.AL)(),(0,ot.Iy)()}},[Xt,$t.current,ue]),(0,ae.useEffect)(()=>{var Me;const Ae=Be=>{Be.preventDefault(),Be.clipboardData.setData("text",window.getSelection().toString())};return(Me=$t.current)==null||Me.addEventListener("copy",Ae),()=>{var Be;(Be=$t.current)==null||Be.removeEventListener("copy",Ae)}},[$t.current]),ae.createElement(ae.Fragment,null,Wt&&ae.createElement("div",{ref:$t},Xt),!Wt&&!re(Xt)&&ae.createElement("div",{ref:$t,style:ut({},Ut),className:`${Gt||""} ${Pe?"disabled-fill":""} markdown-body ${Ne.current}`,dangerouslySetInnerHTML:{__html:Xt}}),!Wt&&re(Xt)&&ae.createElement(xt,{html:Xt}),ae.createElement(St.Z,{close:!0,data:fe,type:fe!=null&&fe.length?he:"",style:ut({},Ht),onClose:()=>pe("")}))}},16253:function(dn,fn,le){"use strict";le.d(fn,{cT:function(){return Nt},pe:function(){return At}});var ae=le(59301),Re=le(14566),ot=le(6767),_t=le(38986),Bt=le(28209),vt=le.n(Bt),gt=le(1012),kt=le(25690),bt=le(47257),St=le.n(bt),Tt=Object.defineProperty,mt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(Gt,Wt,Jt)=>Wt in Gt?Tt(Gt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Gt[Wt]=Jt,it=(Gt,Wt)=>{for(var Jt in Wt||(Wt={}))z.call(Wt,Jt)&&at(Gt,Jt,Wt[Jt]);if(ft)for(var Jt of ft(Wt))tt.call(Wt,Jt)&&at(Gt,Jt,Wt[Jt]);return Gt},lt=(Gt,Wt)=>mt(Gt,xt(Wt)),ut=(Gt,Wt)=>{var Jt={};for(var Ut in Gt)z.call(Gt,Ut)&&Wt.indexOf(Ut)<0&&(Jt[Ut]=Gt[Ut]);if(Gt!=null&&ft)for(var Ut of ft(Gt))Wt.indexOf(Ut)<0&&tt.call(Gt,Ut)&&(Jt[Ut]=Gt[Ut]);return Jt},dt=(Gt,Wt,Jt)=>new Promise((Ut,Ht)=>{var oe=Pe=>{try{ce(Jt.next(Pe))}catch(Yt){Ht(Yt)}},se=Pe=>{try{ce(Jt.throw(Pe))}catch(Yt){Ht(Yt)}},ce=Pe=>Pe.done?Ut(Pe.value):Promise.resolve(Pe.value).then(oe,se);ce((Jt=Jt.apply(Gt,Wt)).next())});const{Dragger:Pt}=Re.default,At=Gt=>{const Wt="bf3c199c2470cb477d907b1e0917c17b",Jt="5183666c72eec9e4";var Ut=vt().enc.Utf8.parse(Wt);let Ht=vt().enc.Utf8.parse(Jt);var oe=vt().AES.decrypt(Gt,Ut,{iv:Ht,mode:vt().mode.CBC});return oe.toString(vt().enc.Utf8)};let Dt;const Ft=Gt=>dt(void 0,[Gt],function*({identifier:Wt,oldFilename:Jt,newFilename:Ut}){var Ht,oe,se,ce,Pe,Yt;const ne=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});ne.data=JSON.parse(At(ne.data));const ve=new OSS({endpoint:(Ht=ne==null?void 0:ne.data)==null?void 0:Ht.end_point,region:(oe=ne==null?void 0:ne.data)==null?void 0:oe.region,accessKeyId:(se=ne==null?void 0:ne.data)==null?void 0:se.access_key_id,accessKeySecret:(ce=ne==null?void 0:ne.data)==null?void 0:ce.access_key_secret,bucket:(Pe=ne==null?void 0:ne.data)==null?void 0:Pe.bucket,stsToken:(Yt=ne==null?void 0:ne.data)==null?void 0:Yt.security_token});return new Promise((Se,be)=>{console.log(11111,`${Wt}/${Jt}`,`${Wt}/${Ut}`,ne.data),ve.copy(`/${Wt}/${Jt}`,`/${Wt}/${Ut}`).then(fe=>{console.log("\u62F7\u8D1D\u6210\u529F",fe)}).catch(fe=>{console.log(fe)})})}),Nt=(Gt,Wt,Jt)=>dt(void 0,null,function*(){var Ut,Ht,oe,se,ce,Pe;Wt.file_name=Gt.name;const Yt=yield(0,_t.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",At(Yt.data)),Yt.data=JSON.parse(At(Yt.data));const ne=Gt.name.split(".");ne.pop();const ve=Wt.realFileName?ne.join(""):(0,gt.Z)(),Se=new(St())({endpoint:(Ut=Yt==null?void 0:Yt.data)==null?void 0:Ut.end_point,region:(Ht=Yt==null?void 0:Yt.data)==null?void 0:Ht.region,accessKeyId:(oe=Yt==null?void 0:Yt.data)==null?void 0:oe.access_key_id,accessKeySecret:(se=Yt==null?void 0:Yt.data)==null?void 0:se.access_key_secret,bucket:(ce=Yt==null?void 0:Yt.data)==null?void 0:ce.bucket,stsToken:(Pe=Yt==null?void 0:Yt.data)==null?void 0:Pe.security_token});return new Promise((be,fe)=>{var pe;Se.multipartUpload(`${ve}`,new Blob([Gt],{type:Gt.type}),lt(it({timeout:200*1e3,partSize:102400},Jt),{callback:{url:(pe=Yt==null?void 0:Yt.data)==null?void 0:pe.callback_url,host:Yt==null?void 0:Yt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_t.rz)(Wt)}})).then(function(he){var Ce;Gt.response=(Ce=he.data)==null?void 0:Ce.data,be(he==null?void 0:he.data)}).catch(function(he){fe(he),console.log("err:",he)})})}),jt=Gt=>{var Wt=Gt,{user:Jt,cancelUpload:Ut}=Wt,Ht=ut(Wt,["user","cancelUpload"]);const[oe,se]=(0,ae.useState)([]);let[ce,Pe]=(0,ae.useState)();const Yt={onRemove:ve=>{se([...oe.filter(Se=>Se.name!==ve.name)]),Ht.onChange(oe.filter(Se=>Se.name!==ve.name))},disabled:Ht.disabled,multiple:!0,fileList:oe==null?void 0:oe.map(ve=>ve.file),customRequest:()=>{},beforeUpload:ve=>dt(void 0,null,function*(){let Se=Ht.maxSize||1073741824;if(oe.filter(be=>be.name===ve.name).length){ot.ZP.info(`${ve.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(ve==null?void 0:ve.size)>Se?(ot.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${Se/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(oe.push({name:ve.name,file:ve}),se([...oe]),Ht.onChange(oe),!1)})},ne=(ve,Se)=>dt(void 0,null,function*(){var be,fe,pe,he,Ce,de;Se.file_name=ve.name;const ye=ve.name,Ne=yield(0,_t.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Ne.data=JSON.parse(At(Ne.data)),(Ne==null?void 0:Ne.status)!==0){oe[oe.findIndex(Kt=>Kt.name===ye)].status="error",oe[oe.findIndex(Kt=>Kt.name===ye)].file.status="error",Ht.onChange(oe),ot.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ce=new(St())({endpoint:(be=Ne==null?void 0:Ne.data)==null?void 0:be.end_point,region:(fe=Ne==null?void 0:Ne.data)==null?void 0:fe.region,accessKeyId:(pe=Ne==null?void 0:Ne.data)==null?void 0:pe.access_key_id,accessKeySecret:(he=Ne==null?void 0:Ne.data)==null?void 0:he.access_key_secret,bucket:(Ce=Ne==null?void 0:Ne.data)==null?void 0:Ce.bucket,stsToken:(de=Ne==null?void 0:Ne.data)==null?void 0:de.security_token}),console.log(ve,"file"),Pe(ce);const xe=ve.name.split(".");xe.pop();const re=ye.indexOf(".")>-1?Se.realFileName?xe.join("."):(0,gt.Z)():ye;return new Promise((Kt,wt)=>{var Lt;try{ce.multipartUpload(`${Ht.identifier}/${re}${ye.indexOf(".")>-1?"."+ye.split(".").pop():""}`,new Blob([ve.file],{type:ve.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Xt,ee,It)=>{try{console.log("\u8FDB\u5EA6",Xt,ee,It);const Rt=oe.findIndex(Vt=>Vt.name===ye);oe[Rt].file.percent=Xt*100,oe[Rt].tempCheckpoint=ee,se([...oe])}catch(Rt){}},checkpoint:oe[oe.findIndex(Xt=>Xt.name===ye)].tempCheckpoint,callback:{customValue:{id:ye+""},url:(Lt=Ne==null?void 0:Ne.data)==null?void 0:Lt.callback_url,host:Ne==null?void 0:Ne.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_t.rz)(Se)}}).then(function(Xt){var ee,It,Rt;const Vt=oe.findIndex(ue=>ue.name===ye);let $t="done";if(((ee=Xt.data)==null?void 0:ee.status)===0){ve.response=(It=Xt.data)==null?void 0:It.data;const ue=oe.findIndex(ge=>ge.name===ye);oe[ue].status="done",oe[ue].file.status="done"}else ot.ZP.warning((Rt=Xt.data)==null?void 0:Rt.message),$t="error";oe[Vt].status=$t,oe[Vt].file.status=$t,Ht.onChange(oe),Kt(Xt==null?void 0:Xt.data)}).catch(function(Xt){oe[oe.findIndex(ee=>ee.name===ye)].status="error",oe[oe.findIndex(ee=>ee.name===ye)].file.status="error",ot.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),se([...oe]),Ht.onChange(oe),wt(Xt),console.log("err:",Xt)})}catch(Xt){}})});return(0,ae.useEffect)(()=>{oe.every(ve=>ve==="done"||ve==="error")&&Ht.onComplete(oe)},[oe]),(0,ae.useEffect)(()=>{Ut&&(ce==null||ce.cancel())},[Ut]),(0,ae.useEffect)(()=>{Ht.uploading&&oe.map(ve=>dt(void 0,null,function*(){var Se;if((!ve.status||ve.status==="error")&&!Ut){ve.status="uploading",ve.file.status="uploading";const be=yield ne(ve,{login:(Se=Jt==null?void 0:Jt.userInfo)==null?void 0:Se.login,container_type:Ht.container_type,container_id:Ht.container_id,description:Ht.description,realFileName:Ht.realFileName})}}))},[Ht.uploading]),ae.createElement(Pt,lt(it({},Yt),{height:Ht.height,className:Ht.className}),ae.createElement("p",{className:"ant-upload-hint"},Ht.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};fn.ZP=(0,kt.connect)(({loading:Gt,globalSetting:Wt,user:Jt})=>({globalSetting:Wt,loading:Gt.models.competitions,user:Jt}))(jt)},69720:function(dn,fn,le){"use strict";le.d(fn,{h:function(){return dt}});var ae=le(59301),Re=le(82326),ot=le(28284),_t=le(99571),Bt=le(89780),vt=le.n(Bt),gt=le(8336),kt=le(12469),bt=Object.defineProperty,St=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,z=(Pt,At,Dt)=>At in Pt?bt(Pt,At,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):Pt[At]=Dt,tt=(Pt,At)=>{for(var Dt in At||(At={}))xt.call(At,Dt)&&z(Pt,Dt,At[Dt]);if(mt)for(var Dt of mt(At))ft.call(At,Dt)&&z(Pt,Dt,At[Dt]);return Pt},at=(Pt,At)=>St(Pt,Tt(At));const it=Re.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},ut={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"]};fn.Z=({callback:Pt,onCancel:At})=>{const[Dt,Ft]=(0,ae.useState)("python");function Nt(Gt){Ft(ut[Gt][1])}function jt(Gt){Pt(Gt)}return ae.createElement(ot.default,at(tt({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:jt,style:{width:500}}),ae.createElement(ot.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Re.default,{getPopupContainer:Gt=>Gt.parentNode,onChange:Nt},Object.keys(ut).map(Gt=>ae.createElement(it,{key:Gt,value:Gt},ut[Gt][0])))),ae.createElement(ot.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(dt,{mode:Dt})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(_t.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_t.ZP,{type:"ghost",onClick:At},"\u53D6\u6D88")))};function dt({value:Pt,onChange:At,mode:Dt,options:Ft={}}){const Nt=(0,ae.useRef)(),[jt,Gt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(jt){let Wt=function(Jt){const Ut=Jt.getValue();At&&At(Ut)};return jt.on("change",Wt),()=>{jt.off("change",Wt)}}},[jt,At]),(0,ae.useEffect)(()=>{jt&&jt.setOption("mode",Dt)},[jt,Dt]),(0,ae.useEffect)(()=>{jt&&(Pt!==jt.getValue()||Pt==="")&&setTimeout(()=>{jt.setValue(Pt||"")},300)},[jt,Pt]),(0,ae.useEffect)(()=>{if(Nt.current&&!jt){const Wt=vt().fromTextArea(Nt.current,tt({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));Gt(Wt)}},[Nt.current,jt]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:Nt}))}},39793:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return Ar}});var ae=le(59301),Re=le(89780),ot=le.n(Re),_t=le(76374),Bt=le(8336),vt=le(6313),gt=le(25717),kt=le(99498),bt=le(25419),St=le(67549),Tt=le(76902),mt=({value:sn="",className:qe,showTextOnly:$e,showLines:un,style:or={}})=>{const Qn=(0,ae.useMemo)(()=>"",[sn]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Qn}}))},xt=Object.defineProperty,ft=Object.defineProperties,z=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,lt=(sn,qe,$e)=>qe in sn?xt(sn,qe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):sn[qe]=$e,ut=(sn,qe)=>{for(var $e in qe||(qe={}))at.call(qe,$e)&<(sn,$e,qe[$e]);if(tt)for(var $e of tt(qe))it.call(qe,$e)&<(sn,$e,qe[$e]);return sn},dt=(sn,qe)=>ft(sn,z(qe));let Pt=[{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 At({onActionCallback:sn,title:qe,icon:$e,actionName:un,className:or="",children:Qn}){function pr(){sn(un)}return ae.createElement("a",{title:qe,className:or,onClick:pr},ae.createElement("i",{className:`${$e}`}),Qn)}var Dt=({watch:sn,showNullButton:qe,showNullProgramButton:$e,onActionCallback:un,fullScreen:or,insertTemp:Qn,hidetoolBar:pr,extraUse:xn})=>{const Rn=[...Pt,{title:`${sn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${sn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ae.createElement("ul",{className:"markdown-toolbar-container"},!pr&&Rn.map((vr,Nr)=>ae.createElement("li",{key:Nr},vr.actionName?ae.createElement(At,dt(ut({},vr),{onActionCallback:un})):ae.createElement("span",{className:"v-line"}))),qe?ae.createElement("li",null,ae.createElement(At,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,$e?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(At,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:un},ae.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(At,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:un},ae.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Qn&&ae.createElement("li",null,ae.createElement(At,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qn}`,onActionCallback:un},ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xn&&ae.createElement("li",null,xn),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(At,{icon:`${or?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:or?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},Ft=le(91558),Nt=le(28284),jt=le(37568),Gt=le(99571),Wt=Object.defineProperty,Jt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(sn,qe,$e)=>qe in sn?Wt(sn,qe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):sn[qe]=$e,Pe=(sn,qe)=>{for(var $e in qe||(qe={}))oe.call(qe,$e)&&ce(sn,$e,qe[$e]);if(Ht)for(var $e of Ht(qe))se.call(qe,$e)&&ce(sn,$e,qe[$e]);return sn},Yt=(sn,qe)=>Jt(sn,Ut(qe));const ne={labelCol:{span:4},wrapperCol:{span:20}};var ve=({callback:sn,onCancel:qe})=>{function $e(un){sn(un)}return ae.createElement(Nt.default,Yt(Pe({},ne),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$e,style:{width:500}}),ae.createElement(Nt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(jt.default,null)),ae.createElement(Nt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(jt.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Gt.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Se=le(69720),be=le(17077),fe=le(62957),pe=le(77019),he=le(9507),Ce=le(59301),de=({callback:sn,onCancel:qe})=>{const $e=document.createElement("canvas"),un=$e.getContext("2d");$e.width=1e3,$e.height=800,un.fillStyle="#ffffff",un.fillRect(0,0,$e.width,$e.height);const or=$e.toDataURL("image/png");return Ce.createElement(fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ce.createElement(pe.Z,{style:{height:"100vh"}},Ce.createElement(he.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:or,visible:!0,title:String(Date.now())},onOk:Qn=>{sn({src:Qn.url})},onClose:qe})))},ye=le(12378);function Ne(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ne,go.CommandHandler),Ne.prototype.canAlignSelection=function(){var sn=this.diagram;return!(sn===null||sn.isReadOnly||sn.isModelReadOnly||sn.selection.count<2)},Ne.prototype.alignLeft=function(){var sn=this.diagram;sn.startTransaction("aligning left");var qe=1/0;sn.selection.each(function($e){$e instanceof go.Link||(qe=Math.min($e.position.x,qe))}),sn.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point(qe,$e.position.y))}),sn.commitTransaction("aligning left")},Ne.prototype.alignRight=function(){var sn=this.diagram;sn.startTransaction("aligning right");var qe=-1/0;sn.selection.each(function($e){if(!($e instanceof go.Link)){var un=$e.actualBounds.x+$e.actualBounds.width;qe=Math.max(un,qe)}}),sn.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point(qe-$e.actualBounds.width,$e.position.y))}),sn.commitTransaction("aligning right")},Ne.prototype.alignTop=function(){var sn=this.diagram;sn.startTransaction("alignTop");var qe=1/0;sn.selection.each(function($e){$e instanceof go.Link||(qe=Math.min($e.position.y,qe))}),sn.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point($e.position.x,qe))}),sn.commitTransaction("alignTop")},Ne.prototype.alignBottom=function(){var sn=this.diagram;sn.startTransaction("aligning bottom");var qe=-1/0;sn.selection.each(function($e){if(!($e instanceof go.Link)){var un=$e.actualBounds.y+$e.actualBounds.height;qe=Math.max(un,qe)}}),sn.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point($e.actualBounds.x,qe-$e.actualBounds.height))}),sn.commitTransaction("aligning bottom")},Ne.prototype.alignCenterX=function(){var sn=this.diagram,qe=sn.selection.first();if(qe){sn.startTransaction("aligning Center X");var $e=qe.actualBounds.x+qe.actualBounds.width/2;sn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point($e-un.actualBounds.width/2,un.actualBounds.y))}),sn.commitTransaction("aligning Center X")}},Ne.prototype.alignCenterY=function(){var sn=this.diagram,qe=sn.selection.first();if(qe){sn.startTransaction("aligning Center Y");var $e=qe.actualBounds.y+qe.actualBounds.height/2;sn.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,$e-un.actualBounds.height/2))}),sn.commitTransaction("aligning Center Y")}},Ne.prototype.alignColumn=function(sn){var qe=this.diagram;qe.startTransaction("align Column"),sn===void 0&&(sn=0),sn=parseFloat(sn);var $e=new Array;qe.selection.each(function(xn){xn instanceof go.Link||$e.push(xn)});for(var un=0;un<$e.length-1;un++){var or=$e[un],Qn=or.actualBounds.y+or.actualBounds.height+sn,pr=$e[un+1];pr.move(new go.Point(or.actualBounds.x,Qn))}qe.commitTransaction("align Column")},Ne.prototype.alignRow=function(sn){sn===void 0&&(sn=0),sn=parseFloat(sn);var qe=this.diagram;qe.startTransaction("align Row");var $e=new Array;qe.selection.each(function(xn){xn instanceof go.Link||$e.push(xn)});for(var un=0;un<$e.length-1;un++){var or=$e[un],Qn=or.actualBounds.x+or.actualBounds.width+sn,pr=$e[un+1];pr.move(new go.Point(Qn,or.actualBounds.y))}qe.commitTransaction("align Row")},Ne.prototype.canRotate=function(sn){var qe=this.diagram;return!(qe===null||qe.isReadOnly||qe.isModelReadOnly||qe.selection.count<1)},Ne.prototype.rotate=function(sn){sn===void 0&&(sn=90);var qe=this.diagram;qe.startTransaction("rotate "+sn.toString());var qe=this.diagram;qe.selection.each(function($e){$e instanceof go.Link||$e instanceof go.Group||($e.angle+=sn)}),qe.commitTransaction("rotate "+sn.toString())},Ne.prototype.pullToFront=function(){var sn=this.diagram;sn.startTransaction("pullToFront");var qe=new go.Map;sn.selection.each(function($e){qe.set($e.layer,0)}),qe.iteratorKeys.each(function($e){var un=0;$e.parts.each(function(or){if(!or.isSelected){var Qn=or.zOrder;isNaN(Qn)?or.zOrder=0:un=Math.max(un,Qn)}}),qe.set($e,un)}),sn.selection.each(function($e){Ne._assignZOrder($e,qe.get($e.layer)+1)}),sn.commitTransaction("pullToFront")},Ne.prototype.pushToBack=function(){var sn=this.diagram;sn.startTransaction("pushToBack");var qe=new go.Map;sn.selection.each(function($e){qe.set($e.layer,0)}),qe.iteratorKeys.each(function($e){var un=0;$e.parts.each(function(or){if(!or.isSelected){var Qn=or.zOrder;isNaN(Qn)?or.zOrder=0:un=Math.min(un,Qn)}}),qe.set($e,un)}),sn.selection.each(function($e){Ne._assignZOrder($e,qe.get($e.layer)-1-Ne._findGroupDepth($e))}),sn.commitTransaction("pushToBack")},Ne._assignZOrder=function(sn,qe,$e){$e===void 0&&($e=sn),sn.layer===$e.layer&&(sn.zOrder=qe),sn instanceof go.Group&&sn.memberParts.each(function(un){Ne._assignZOrder(un,qe+1,$e)})},Ne._findGroupDepth=function(sn){if(sn instanceof go.Group){var qe=0;return sn.memberParts.each(function($e){qe=Math.max(qe,Ne._findGroupDepth($e))}),qe+1}else return 0},Ne.prototype.doKeyDown=function(){var sn=this.diagram;if(sn!==null){var qe=sn.lastInput;if(qe.key==="Up"||qe.key==="Down"||qe.key==="Left"||qe.key==="Right"){var $e=this.arrowKeyBehavior;if($e==="none")return;if($e==="select"){this._arrowKeySelect();return}else if($e==="move"){this._arrowKeyMove();return}else if($e==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ne.prototype._getAllParts=function(){var sn=new Array;return this.diagram.nodes.each(function(qe){sn.push(qe)}),this.diagram.parts.each(function(qe){sn.push(qe)}),sn},Ne.prototype._arrowKeyMove=function(){var sn=this.diagram,qe=sn.lastInput,$e=0,un=0;if(qe.control||qe.meta)$e=1,un=1;else if(sn.grid!==null){var or=sn.grid.gridCellSize;un=or.width,$e=or.height}sn.startTransaction("arrowKeyMove"),sn.selection.each(function(Qn){qe.key==="Up"?Qn.move(new go.Point(Qn.actualBounds.x,Qn.actualBounds.y-$e)):qe.key==="Down"?Qn.move(new go.Point(Qn.actualBounds.x,Qn.actualBounds.y+$e)):qe.key==="Left"?Qn.move(new go.Point(Qn.actualBounds.x-un,Qn.actualBounds.y)):qe.key==="Right"&&Qn.move(new go.Point(Qn.actualBounds.x+un,Qn.actualBounds.y))}),sn.commitTransaction("arrowKeyMove")},Ne.prototype._arrowKeySelect=function(){var sn=this.diagram,qe=sn.lastInput,$e=null;qe.key==="Up"?$e=this._findNearestPartTowards(270):qe.key==="Down"?$e=this._findNearestPartTowards(90):qe.key==="Left"?$e=this._findNearestPartTowards(180):qe.key==="Right"&&($e=this._findNearestPartTowards(0)),$e!==null&&(qe.shift?$e.isSelected=!0:qe.control||qe.meta?$e.isSelected=!$e.isSelected:sn.select($e))},Ne.prototype._findNearestPartTowards=function(sn){var qe=this.diagram.selection.first();if(qe===null)return null;for(var $e=qe.actualBounds.center,un=this._getAllParts(),or=1/0,Qn=qe,pr=0;pr0){for(var xn=Qn.elt(pr-1);xn!==null&&xn.isTreeExpanded&&!xn.isTreeLeaf;){var Rn=this._sortTreeChildrenByY(xn);xn=Rn.last()}xn!==null&&sn.select(xn)}else sn.select(or)}}else if($e.key==="Down")if(qe.isTreeExpanded&&!qe.isTreeLeaf){var un=this._sortTreeChildrenByY(qe).first();un!==null&&sn.select(un)}else for(;qe!==null;){var or=qe.findTreeParentNode();if(or===null)break;var Qn=this._sortTreeChildrenByY(or),pr=Qn.indexOf(qe);if(prQn.y?1:or.xQn.x?1:0}),qe},Ne.prototype.copyToClipboard=function(sn){go.CommandHandler.prototype.copyToClipboard.call(this,sn),this._lastPasteOffset.set(this.pasteOffset)},Ne.prototype.pasteFromClipboard=function(){var sn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(sn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),sn},Object.defineProperty(Ne.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(sn){if(sn!=="move"&&sn!=="select"&&sn!=="scroll"&&sn!=="tree"&&sn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+sn);this._arrowKeyBehavior=sn}}),Object.defineProperty(Ne.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(sn){if(!(sn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+sn);this._pasteOffset.set(sn)}});var xe=Ne,re=le(63720),Kt=le(5269),wt=le(38986),Lt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Xt=le(48790),ee=le(59301),It=(sn,qe,$e)=>new Promise((un,or)=>{var Qn=Rn=>{try{xn($e.next(Rn))}catch(vr){or(vr)}},pr=Rn=>{try{xn($e.throw(Rn))}catch(vr){or(vr)}},xn=Rn=>Rn.done?un(Rn.value):Promise.resolve(Rn.value).then(Qn,pr);xn(($e=$e.apply(sn,qe)).next())});function Rt({onCancel:sn,callback:qe}){let $e=(0,ae.useRef)(),un=(0,ae.useRef)(),or=(0,ae.useRef)(),Qn=(0,ae.useRef)(!1);const pr=(0,ae.useRef)(!1),[xn,Rn]=(0,ae.useState)(0);function vr(){const Nn=ye.bx.make,Oe={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};$e.current=new ye.S0(un.current,{padding:20,grid:Nn(ye.s_,"Grid",Nn(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nn(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tn=>{var tr=tn.diagram.commandHandler.addTopLevelParts(tn.diagram.selection,!0);tr||tn.diagram.currentTool.doCancel()},commandHandler:Nn(xe),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tn=>{var tr=tn.subject;tr.location=tr.location.copy().snapToGridPoint(tn.diagram.grid.gridOrigin,tn.diagram.grid.gridCellSize),setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tn=>{var tr=tn.subject;setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()})},LinkRelinked:tn=>{var tr=tn.parameter.part;tr.invalidateConnectedLinks();var gr=tn.subject;tn.diagram.toolManager.linkingTool.isForwards?gr.toNode.invalidateConnectedLinks():gr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),$e.current.nodeTemplate=Nn(ye.NB,"Auto",{locationSpot:ye.z6.Center,locationObjectName:"SHAPE",desiredSize:new ye.$u(120,60),minSize:new ye.$u(40,40),resizable:!0,resizeCellSize:new ye.$u(10,10),rotatable:!0},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),new ye.KX("desiredSize","size",ye.$u.parse).makeTwoWay(ye.$u.stringify),Nn(ye.bn,{name:"SHAPE",fill:Oe.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("figure"),new ye.KX("fill"),new ye.KX("stroke","borderColor"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Nn(ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Nn(ye.al,{margin:1,textAlign:"center",overflow:ye.al.OverflowEllipsis,editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),$e.current.nodeTemplate.toolTip=Nn("ToolTip",Nn(ye.s_,"Vertical",{maxSize:new ye.$u(200,NaN)},Nn(ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ye.KX("text")),Nn(ye.al,{font:"10pt sans-serif",textAlign:"center"},new ye.KX("text","details"))));function Ke(tn,tr){var gr=(Hn,Zr)=>{Hn.handled=!0,Hn.diagram.model.commit(Ir=>{var Hr=Zr.part.adornedPart,Qr=new ye.E9().setRectSpot(Hr.actualBounds,tn);Qr.subtract(Hr.location),Qr.scale(2,2),Qr.x+=Math.sign(Qr.x)*130,Qr.y+=Math.sign(Qr.y)*130,Qr.add(Hr.location),Qr.snapToGridPoint(Hn.diagram.grid.gridOrigin,Hn.diagram.grid.gridCellSize);var ei=Ir.copyNodeData(Hr.data);Ir.setGroupKeyForNodeData(ei,Ir.getGroupKeyForNodeData(Hr.data)),Ir.addNodeData(ei);var hi={from:Hr.key,to:Ir.getKeyForNodeData(ei)};Ir.addLinkData(hi);var mn=Hn.diagram.findNodeForData(ei);mn.location=Qr,Hn.diagram.select(mn),setTimeout(()=>{Hn.diagram.commandHandler.editTextBlock()},20)})};return Nn(ye.bn,{figure:tr,alignment:tn,alignmentFocus:tn.opposite(),width:tn.equals(ye.z6.Top)||tn.equals(ye.z6.Bottom)?25:18,height:tn.equals(ye.z6.Top)||tn.equals(ye.z6.Bottom)?18:25,fill:"orange",stroke:Oe.white,strokeWidth:4,mouseEnter:(Hn,Zr)=>Zr.fill="dodgerblue",mouseLeave:(Hn,Zr)=>Zr.fill="orange",isActionable:!0,click:gr,contextClick:gr})}function Ln(tn){return Nn(ye.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:(tr,gr)=>gr.fill="dodgerblue",mouseLeave:(tr,gr)=>gr.fill="orange",click:(tr,gr)=>{tr.diagram.commandHandler.showContextMenu(gr.part.adornedPart)}},tn||{})}$e.current.nodeTemplate.selectionAdornmentTemplate=Nn(ye.uz,"Spot",Nn(ye.Vm,{padding:10}),Ke(ye.z6.Top,"TriangleUp"),Ke(ye.z6.Left,"TriangleLeft"),Ke(ye.z6.Right,"TriangleRight"),Ke(ye.z6.Bottom,"TriangleDown"),Ln({alignment:new ye.z6(.75,0)}));function An(tn,tr){return(gr,Hn)=>{gr.handled=!0,gr.diagram.model.commit(Zr=>{Zr.set(Hn.part.adornedPart.data,tn,tr)})}}function en(tn,tr){return tr||(tr="color"),Nn(ye.bn,{width:16,height:16,stroke:"lightgray",fill:tn,margin:1,background:"transparent",mouseEnter:(gr,Hn)=>Hn.stroke="dodgerblue",mouseLeave:(gr,Hn)=>Hn.stroke="lightgray",click:An(tr,tn),contextClick:An(tr,tn)})}function Tn(){return[Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",en(Oe.white,"fill"),en(Oe.beige,"fill"),en(Oe.extralightblue,"fill"),en(Oe.extralightred,"fill"))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",en(Oe.lightgray,"fill"),en(Oe.lightgreen,"fill"),en(Oe.lightblue,"fill"),en(Oe.lightred,"fill")))]}function kn(){return[Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",en(Oe.black),en(Oe.green),en(Oe.blue),en(Oe.red))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",en(Oe.white),en(Oe.magenta),en(Oe.purple),en(Oe.orange)))]}function On(tn,tr){return tr||(tr="thickness"),Nn(ye.bn,"LineH",{width:16,height:16,strokeWidth:tn,margin:1,background:"transparent",mouseEnter:(gr,Hn)=>Hn.background="dodgerblue",mouseLeave:(gr,Hn)=>Hn.background="transparent",click:An(tr,tn),contextClick:An(tr,tn)})}function er(tn,tr){return tr||(tr="dash"),Nn(ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tn,margin:1,background:"transparent",mouseEnter:(gr,Hn)=>Hn.background="dodgerblue",mouseLeave:(gr,Hn)=>Hn.background="transparent",click:An(tr,tn),contextClick:An(tr,tn)})}function Fn(){return[Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",On(1),On(2),On(3),On(4))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",er(null),er([2,4]),er([4,4])))]}function Bn(tn,tr){return tr||(tr="figure"),Nn(ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tn,margin:1,background:"transparent",mouseEnter:(gr,Hn)=>Hn.fill="dodgerblue",mouseLeave:(gr,Hn)=>Hn.fill="lightgray",click:An(tr,tn),contextClick:An(tr,tn)})}$e.current.nodeTemplate.contextMenu=Nn("ContextMenu",Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",Bn("Rectangle"),Bn("RoundedRectangle"),Bn("Ellipse"),Bn("Diamond"))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",Bn("Parallelogram2"),Bn("ManualOperation"),Bn("Procedure"),Bn("Cylinder1"))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",Bn("Terminator"),Bn("CreateRequest"),Bn("Document"),Bn("TriangleDown"))),Tn(),kn(),Fn()),$e.current.groupTemplate=Nn(ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tn,tr)=>{var gr=tr.addMembers(tr.diagram.selection,!0);gr||tr.diagram.currentTool.doCancel()},avoidable:!1},new ye.KX("location","loc",ye.E9.parse).makeTwoWay(ye.E9.stringify),Nn(ye.s_,"Auto",{name:"BODY"},Nn(ye.bn,{parameter1:10,fill:Oe.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ye.z6.AllSides,toSpot:ye.z6.AllSides},new ye.KX("fill"),new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Nn(ye.Vm,{background:"transparent",margin:20})),Nn(ye.al,{alignment:ye.z6.Top,alignmentFocus:ye.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ye.KX("text"),new ye.KX("stroke","color"))),$e.current.groupTemplate.selectionAdornmentTemplate=Nn(ye.uz,"Spot",Nn(ye.s_,"Auto",Nn(ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Nn(ye.Vm,{margin:1.5})),Ln({alignment:ye.z6.TopRight,alignmentFocus:ye.z6.BottomRight})),$e.current.groupTemplate.contextMenu=Nn("ContextMenu",Tn(),kn(),Fn()),$e.current.linkTemplate=Nn(ye.rU,{layerName:"Foreground",routing:ye.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ye.KX("fromSpot","fromSpot",ye.z6.parse),new ye.KX("toSpot","toSpot",ye.z6.parse),new ye.KX("fromShortLength","dir",tn=>tn>=1?10:0),new ye.KX("toShortLength","dir",tn=>tn>=1?10:0),new ye.KX("points").makeTwoWay(),Nn(ye.bn,{strokeWidth:2},new ye.KX("stroke","color"),new ye.KX("strokeWidth","thickness"),new ye.KX("strokeDashArray","dash")),Nn(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,0),segmentOrientation:ye.rU.OrientAlong,alignmentFocus:ye.z6.Right,figure:"circle",width:10,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",tn=>tn===1)),Nn(ye.bn,{segmentIndex:-1,segmentOffset:new ye.E9(-10,6),segmentOrientation:ye.rU.OrientPlus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",tn=>tn>=1),new ye.KX("width","thickness",tn=>7+3*tn),new ye.KX("height","thickness",tn=>7+3*tn),new ye.KX("segmentOffset","thickness",tn=>new ye.E9(-15,4+1.5*tn))),Nn(ye.bn,{segmentIndex:0,segmentOffset:new ye.E9(15,-6),segmentOrientation:ye.rU.OrientMinus90,alignmentFocus:ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ye.KX("fill","color"),new ye.KX("visible","dir",tn=>tn===2),new ye.KX("width","thickness",tn=>7+3*tn),new ye.KX("height","thickness",tn=>7+3*tn),new ye.KX("segmentOffset","thickness",tn=>new ye.E9(-15,4+1.5*tn))),Nn(ye.al,{alignmentFocus:new ye.z6(0,1,-4,0),editable:!0},new ye.KX("text").makeTwoWay(),new ye.KX("stroke","color"))),$e.current.linkTemplate.selectionAdornmentTemplate=Nn(ye.uz,Nn(ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Un(2)},new ye.KX("pathPattern","thickness",Un)),Ln({alignmentFocus:new ye.z6(0,0,-6,-4)}));function Un(tn){return Nn(ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tn+4).toString()+" H3"})}function cr(tn){var tr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tn===0?tr="M0 0 M16 16 M0 8 L16 8":tn===2&&(tr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Nn(ye.bn,{geometryString:tr,margin:2,background:"transparent",mouseEnter:(gr,Hn)=>Hn.background="dodgerblue",mouseLeave:(gr,Hn)=>Hn.background="transparent",click:An("dir",tn),contextClick:An("dir",tn)})}function lr(tn){var tr=(gr,Hn)=>{gr.handled=!0,gr.diagram.model.commit(Zr=>{var Ir=Hn.part.adornedPart;Zr.set(Ir.data,tn?"toSpot":"fromSpot",ye.z6.stringify(ye.z6.AllSides)),(tn?Ir.toNode:Ir.fromNode).invalidateConnectedLinks()})};return Nn(ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(gr,Hn)=>Hn.background="dodgerblue",mouseLeave:(gr,Hn)=>Hn.background="transparent",click:tr,contextClick:tr})}function yn(tn,tr){var gr=0,Hn=ye.z6.RightSide;tn.equals(ye.z6.Top)?(gr=270,Hn=ye.z6.TopSide):tn.equals(ye.z6.Left)?(gr=180,Hn=ye.z6.LeftSide):tn.equals(ye.z6.Bottom)&&(gr=90,Hn=ye.z6.BottomSide),tr||(gr-=180);var Zr=(Ir,Hr)=>{Ir.handled=!0,Ir.diagram.model.commit(Qr=>{var ei=Hr.part.adornedPart;Qr.set(ei.data,tr?"toSpot":"fromSpot",ye.z6.stringify(Hn)),(tr?ei.toNode:ei.fromNode).invalidateConnectedLinks()})};return Nn(ye.bn,{alignment:tn,alignmentFocus:tn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:gr,background:"transparent",mouseEnter:(Ir,Hr)=>Hr.background="dodgerblue",mouseLeave:(Ir,Hr)=>Hr.background="transparent",click:Zr,contextClick:Zr})}$e.current.linkTemplate.contextMenu=Nn("ContextMenu",kn(),Fn(),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",cr(0),cr(1),cr(2))),Nn("ContextMenuButton",Nn(ye.s_,"Horizontal",Nn(ye.s_,"Spot",lr(!1),yn(ye.z6.Top,!1),yn(ye.z6.Left,!1),yn(ye.z6.Right,!1),yn(ye.z6.Bottom,!1)),Nn(ye.s_,"Spot",{margin:new ye.Zt(0,0,0,2)},lr(!0),yn(ye.z6.Top,!0),yn(ye.z6.Left,!0),yn(ye.z6.Right,!0),yn(ye.z6.Bottom,!0)))));const In=`{ "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 Gr=["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 Yr(tn){return console.log("shapeName:",tn),Gr.indexOf(tn)>=0}var fi=new ye.YI(or.current,{maxSelectionCount:1,linkTemplate:Nn(ye.rU,{locationSpot:ye.z6.Center,selectionAdornmentTemplate:Nn(ye.uz,"Link",{locationSpot:ye.z6.Center},Nn(ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Nn(ye.bn,{toArrow:"Standard",stroke:null}))},{routing:ye.rU.AvoidsNodes,curve:ye.rU.JumpOver,corner:5,toShortLength:4},new ye.KX("points"),Nn(ye.bn,{isPanelMain:!0,strokeWidth:2}),Nn(ye.bn,{toArrow:"Standard",stroke:null})),model:new ye.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ye.bn.getFigureGenerators().toArray().map(tn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return $e.current.addDiagramListener("TextEdited",function(tn){var tr;const gr=tn.subject.part;var Hn=(tr=document.activeElement)==null?void 0:tr.value;typeof Hn=="string"&&Hn.trim()===""&&$e.current.model.commit(function(Zr){Zr.set(gr.data,"text","\u672A\u547D\u540D"),$e.current.commandHandler.stopCommand()},"increment")}),fi.nodeTemplate=Nn(ye.NB,"Auto",{locationSpot:ye.z6.Center},new ye.KX("location","location",ye.E9.parse).makeTwoWay(ye.E9.stringify),Nn(ye.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 ye.KX("stroke").makeTwoWay(),new ye.KX("fill").makeTwoWay(),new ye.KX("figure")),Nn(ye.al,{margin:new ye.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ye.$u(16,16),maxSize:new ye.$u(10,NaN),textAlign:"center",editable:!0},new ye.KX("key").makeTwoWay())),setTimeout(()=>{$e.current.grid=Nn(ye.s_,"Grid",Nn(ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nn(ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),$e.current.grid.visible=!0,$e.current.grid.gridCellStroke="darkgray",$e.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=$e.current,$e.current}const Nr=()=>It(this,null,function*(){var Nn,Oe=$e.current.makeImage();const Ke=yield(0,wt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Oe.src,file_data:JSON.stringify({login:(Nn=(0,Xt.eY)())==null?void 0:Nn.login,data:JSON.parse($e.current.model.toJson())})}});qe({src:Ke.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vr()},500),Rn(xn+1),()=>{$e.current=null}),[]),ee.createElement("div",{ref:pr,className:"body-overflow-initial"},ee.createElement(fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ee.createElement(pe.Z,null,ee.createElement(Kt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ee.createElement(Kt.Z,{onClick:()=>{var Nn,Oe,Ke=$e.current.selection.first();if(Qn.current=!Qn.current,document.activeElement&&Ke){let Ln=(Oe=(Nn=document.activeElement)==null?void 0:Nn.value)==null?void 0:Oe.trim();typeof Ln=="string"&&$e.current.model.commit(function(An){An.set(Ke.data,"text",Ln||"\u672A\u547D\u540D"),$e.current.commandHandler.stopCommand()},"increment")}Rn(xn+1)}},ee.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:sn},ee.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:Qn.current?"none":"block"},className:Lt.flowChartWrp},ee.createElement("div",{style:{display:"flex",height:"100%"}},ee.createElement("div",{style:{width:"300px",height:"100%"}},ee.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ee.createElement("div",{style:{height:"calc(100% - 50px)"},className:Lt.myPaletteDiv,ref:or})),ee.createElement("div",{style:{flex:1,position:"relative"}},ee.createElement("div",{ref:un,style:{height:"80vh"}}))),ee.createElement("div",{className:"tr"},ee.createElement(Gt.ZP,{size:"large",onClick:Nr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Vt=Rt,$t=le(47889),ue=le(71051);const ge=$t.ZP.Group,Me={margin:"0 8px"};var Ae=({callback:sn,onCancel:qe})=>{function $e(un){sn(un)}return ae.createElement(Nt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$e},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Me},"\u884C\u6570"),ae.createElement(Nt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ue.Z,null)),ae.createElement("span",{style:Me},"\u5217\u6570"),ae.createElement(Nt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ue.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(Nt.default.Item,{name:"align"},ae.createElement(ge,null,ae.createElement($t.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement($t.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement($t.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement($t.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Gt.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))},Be=le(71411),Ze=le(43001),Ye=le.n(Ze),He=(0,ae.forwardRef)(({use3d:sn,width:qe,height:$e,callback:un,showSaveButton:or},Qn)=>{const pr=(0,ae.useRef)(),xn=(0,ae.useRef)(),[Rn,vr]=(0,ae.useState)(!1),Nr=(0,ae.useRef)({id:pr,appName:"graphing",width:qe||1e3,height:$e||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{xn.current=new(Ye())(Nr.current,!0),window.onload=function(){xn.current.inject("applet_container")}},[]);const Nn=()=>{var Oe=window.ggbApplet.getPNGBase64(1,!0,72);return un&&un(Oe),Oe};return(0,ae.useEffect)(()=>{Nr.current.appName=Rn?"3D":"graphing",xn.current.inject("applet_container")},[Rn]),(0,ae.useEffect)(()=>{vr(sn)},[sn]),(0,ae.useImperativeHandle)(Qn,()=>({getImgData:Nn})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pr}),ae.createElement(pe.Z,{align:"middle"},ae.createElement(Kt.Z,{flex:1},ae.createElement(Be.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Rn,onChange:Oe=>vr(Oe)})),ae.createElement(Kt.Z,null,ae.createElement(Gt.ZP,{size:"large",onClick:Nn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ue=le(76562),We=le(6767);const Ve="link",rn="upload-image",an="add-flowchart",ln="draw-image",Sn="add-flowchart",_n="code-block",Xn="add-table",Yn="------------",Er={default:Yn,left:`:${Yn}`,center:`:${Yn}:`,right:`${Yn}:`};var dr=le(37808);function Mr(){}let Tr=0;const Or=1e4,Sr="\u2581",hr="@\u2581\u2581@",zr="@\u2581@",qt=` **\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`,jn=["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 Jn(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}const Wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kn={[Wn+"-B"]:"bold",[Wn+"-I"]:"italic"},ir={[Ve]:"\u6DFB\u52A0\u94FE\u63A5",[_n]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[rn]:"\u6DFB\u52A0\u56FE\u7247",[ln]:"\u6DFB\u52A0\u753B\u56FE",[an]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ar=({defaultValue:sn="",onChange:qe,width:$e="100%",height:un=400,miniToolbar:or=!1,isFocus:Qn=!1,watch:pr,insertTemp:xn,mode:Rn="markdown",id:vr="markdown-editor-id",showResizeBar:Nr=!1,noStorage:Nn=!1,showNullButton:Oe=!1,showNullProgramButton:Ke=!1,hidetoolBar:Ln=!1,fullScreen:An=!1,onBlur:en,onCMBeforeChange:Tn,onFullScreen:kn,className:On="",disablePaste:er=!1,disabled:Fn=!1,disabledFill:Bn=!1,placeholder:Un="",values:cr="",extraUse:lr})=>{const[yn,In]=(0,ae.useState)(null),[Gr,Yr]=(0,ae.useState)(sn),[fi,tn]=(0,ae.useState)(pr),[tr,gr]=(0,ae.useState)(An),[Hn,Zr]=(0,ae.useState)(""),[Ir,Hr]=(0,ae.useState)(0),[Qr,ei]=(0,ae.useState)(un),[hi,mn]=(0,ae.useState)(!1),[vi,gn]=(0,ae.useState)(0),[oi,Gi]=(0,ae.useState)(0),mi=(0,ae.useRef)(),Bi=(0,ae.useRef)(),ii=(0,ae.useRef)(),Rr=(0,ae.useRef)();(0,ae.useEffect)(()=>{const yr=window.scrollY||window.pageYOffset;Yr(cr),yn==null||yn.setValue(cr),window.scrollTo(0,yr)},[cr]),(0,ae.useEffect)(()=>{kn==null||kn(tr)},[tr]),(0,ae.useEffect)(()=>{if(mi.current){let yr=function(kr,Cn){var di;if(er){Cn.preventDefault();return}const Ci=Cn.clipboardData;if(Ci){const io=Ci.types.toString(),bi=Ci.items;if(io==="Files"||Ci.types.indexOf("Files")>-1){if(Cn.preventDefault(),Rn=="stex")return;try{let lo=bi[1];((di=bi[0])==null?void 0:di.kind)==="file"&&(lo=bi[0]);const xo=lo.getAsFile(),Bo=xo.name.split(".").pop();(0,be.I)(xo,po=>{var na,Ao,on;po.id?((na=xo==null?void 0:xo.type)==null?void 0:na.indexOf("image"))>-1?ur.replaceSelection(``):((Ao=xo==null?void 0:xo.type)==null?void 0:Ao.indexOf("video"))>-1?ur.replaceSelection(``):((on=xo==null?void 0:xo.type)==null?void 0:on.indexOf("pdf"))>-1?ur.replaceSelection(`${xo.name}`):jn.includes(Bo)?ur.replaceSelection(`${xo.name}`):ur.replaceSelection(`[${xo.name}](/api/attachments/${po.id}?type=${po.content_type})`):(po==null?void 0:po.status)===401&&(document.location.href="/user/login")})}catch(lo){We.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ur=ot().fromTextArea(mi.current,{mode:Rn,lineNumbers:!or,lineWrapping:!0,value:sn,autoCloseTags:!0,autoCloseBrackets:!0});return ur.on("keyup",function(kr,Cn){Cn.keyCode===8&&(kr.getValue()==""?ur.setOption("placeholder",Un):ur.setOption("placeholder",null))}),ur.on("keydown",function(kr,Cn){if(Cn.keyCode===8){var di=Eo(kr);di&&Cn.preventDefault()}}),Qn&&ur.focus(),ur.on("paste",yr),Fn&&ur.on("beforeChange",function(kr,Cn){(Cn.origin==="paste"||Cn.origin==="+input")&&Cn.cancel()}),In(ur),()=>{ur.off("paste",yr)}}},[]);const wi=(0,ae.useCallback)(()=>{if(Bi.current)try{}catch(yr){console.log(yr,"---- to set md editor body height")}},[Qr,Bi,tr]);(0,ae.useEffect)(()=>{function yr(){let ur=new _t.Z(kr=>{for(let Cn of kr)(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&(wi(),yn.setSize("100%","100%"),yn.refresh())});return ur.observe(mi.current.parentElement),ur}if(yn){const ur=yr();return()=>{var kr,Cn;(kr=mi.current)!=null&&kr.parentElement&&ur.unobserve((Cn=mi.current)==null?void 0:Cn.parentElement)}}},[yn,wi]),(0,ae.useEffect)(()=>{if(yn){let yr=[];for(const[ur,kr]of Object.entries(Kn)){let Cn={[ur]:()=>{Oi(kr)}};yr.push(Cn),yn.addKeyMap(Cn)}return()=>{for(let ur of yr)yn.removeKeyMap(ur)}}},[yn]),(0,ae.useEffect)(()=>{An!==tr&&gr(An)},[An]),(0,dr.Z)(()=>{if(!Nn&&Ir>0){let yr=new Date().getTime(),ur=window.sessionStorage.getItem(vr);yr>=Ir+Or&&(!ur||ur!==Gr)&&(window.sessionStorage.setItem(vr,Gr),mn(!0))}},Or),(0,ae.useEffect)(()=>{tn(pr)},[yn,pr]),(0,ae.useEffect)(()=>{yn&&Qn&&yn.focus()},[yn,Qn]),(0,ae.useEffect)(()=>{if(fi&&yn){let yr=function(kr){let Cn=kr.target;if(Rr.current){let di=Cn.scrollTop/Cn.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*di}};const ur=yn.getScrollerElement();return ur.addEventListener("scroll",yr),()=>{ur.removeEventListener("scroll",yr)}}},[yn,fi]),(0,ae.useEffect)(()=>{if(yn&&Tn){let yr=function(ur,kr){Tn(ur,kr)};return yn.on("beforeChange",yr),()=>{yn.off("beforeChange",yr)}}},[yn,Tn]),(0,ae.useEffect)(()=>{if(yn&&en){let yr=function(){en(yn.getValue())};return yn.on("blur",yr),()=>{yn.off("blur",yr)}}},[yn,en]);function Eo(yr,ur){var kr=yr.getDoc(),Cn=kr.getCursor(),di=kr.getLine(Cn.line),Ci=di.charAt(Cn.ch-1),io=di.lastIndexOf("@\u2581@",Cn.ch),bi=di.lastIndexOf("@\u2581\u2581@",Cn.ch),lo=io>bi?io:bi,xo=io>bi?3:4;if(hr.indexOf(Ci)===-1)return null;if(console.log("change1:",ur,yr,di,Cn,lo,io,bi,Ci),lo>=0&&Cn.ch-lo<5){var Bo=lo+xo;return kr.replaceRange("",{line:Cn.line,ch:lo},{line:Cn.line,ch:Bo}),{line:Cn.line,ch:Bo}}return null}(0,ae.useEffect)(()=>{if(yn){let yr=function(ur,kr){const Cn=ur.getValue();Yr(Cn),Hr(new Date().getTime()),ur.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qe&&(Ke?qe(Cn,sr(Cn)):qe(Cn))};return yn.on("change",yr),()=>{yn.off("change",yr)}}},[yn,qe]),(0,ae.useEffect)(()=>{if(yn)if(sn==null)yn.setValue(""),Yr("");else{const yr=window.scrollY||window.pageYOffset;sn!==yn.getValue()&&(yn.setValue(sn),Yr(sn),yn.setCursor(Fn?1:yn.lineCount(),0),window.scrollTo(0,yr))}},[yn,sn]);const Oi=(0,ae.useCallback)(yr=>{const ur=yn.getCursor(),kr=yn.getSelection();let Cn=kr.split(` `);switch(yr){case"bold":return yn.replaceSelection("**"+kr+"**"),kr===""&&yn.setCursor(ur.line,ur.ch+2),yn.focus();case"italic":return yn.replaceSelection("*"+kr+"*"),kr===""&&yn.setCursor(ur.line,ur.ch+1),yn.focus();case"code":return yn.replaceSelection("`"+kr+"`"),kr===""&&yn.setCursor(ur.line,ur.ch+1),yn.focus();case"inline-latex":return Zr("inline-latex"),yn.focus();case"latex":return yn.replaceSelection("```latex\n"+kr+"\n```"),yn.setCursor(ur.line+1,kr.length+1),yn.focus();case"line-break":return yn.replaceSelection(`
`),yn.focus();case"list-ul":return kr===""?yn.replaceSelection("- "+kr):yn.replaceSelection(Cn.map(di=>di===""?"":`- ${di}`).join(` `)),yn.focus();case"list-ol":return kr===""?yn.replaceSelection("1. "+kr):yn.replaceSelection(Cn.map((di,Ci)=>di===""?"":`${Ci+1}. ${di}`).join(` `)),yn.focus();case"add-null-ch":return kr===""&&yn.setCursor(ur.line,ur.ch),yn.replaceSelection(Sr),yn.focus();case"add-signal":return kr===""&&yn.setCursor(ur.line,ur.ch),yn.replaceSelection(zr),yn.focus();case"add-multiple":return kr===""&&yn.setCursor(ur.line,ur.ch),yn.replaceSelection(hr),yn.focus();case"inster-template-1":return kr===""&&yn.setCursor(ur.line,ur.ch),yn.replaceSelection(qt),yn.focus();case"eraser":return yn.setValue(""),yn.focus();case"trigger-watch":return tn(!fi),yn.focus();case"trigger-full-screen":return gr(!tr),yn.focus();case Ve:Zr(Ve);return;case _n:Zr(_n);return;case rn:Zr(rn);return;case ln:Zr(ln);return;case"maths-latex":Zr("maths-latex");return;case an:Zr(an);return;case Xn:Zr(Xn);return;default:throw new Error}},[yn,fi,tr]),$n=(0,ae.useCallback)((yr,ur)=>{var kr,Cn,di,Ci,io,bi;switch(Zr(""),Hn){case Ve:const{title:na,link:Ao}=yr;return yn.replaceSelection(`[${na}](${Ao})`),yn.focus();case _n:const{language:on,content:ra}=yr;return yn.replaceSelection(["```"+on,ra,"```"].join(` `)),yn.focus();case"maths-latex":for(var lo=atob(yr),xo=new Uint8Array(lo.length),Bo=0;Bo{Ga.id?yn.replaceSelection(`![,](/api/attachments/${Ga.id}?type=${Ga.content_type})`):(Ga==null?void 0:Ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":yn.replaceSelection("`$$"+yr+"$$`");break;case rn:case ln:case Sn:const{src:za,alt:Ya}=yr,Hi=ur,Js=(di=(Cn=(kr=Hi==null?void 0:Hi.name)==null?void 0:kr.split("."))==null?void 0:Cn.pop)==null?void 0:di.call(Cn);return((Ci=Hi==null?void 0:Hi.type)==null?void 0:Ci.indexOf("image"))>-1||!(Hi!=null&&Hi.type)?Hi!=null&&Hi.align||Hi!=null&&Hi.width?yn.replaceSelection(`

${Ya||

`):yn.replaceSelection(`${Ya||`):((io=Hi==null?void 0:Hi.type)==null?void 0:io.indexOf("video"))>-1?yn.replaceSelection(``):((bi=Hi==null?void 0:Hi.type)==null?void 0:bi.indexOf("pdf"))>-1?yn.replaceSelection(`${Hi.name}`):jn.includes(Js)?yn.replaceSelection(`${Hi.name}`):yn.replaceSelection(`[${Hi.name}](${za})`),yn.focus();case Xn:const{row:ls,col:Ml,align:Ai}=yr;let No=` `;for(let Ga=0;Ga{switch(Hn){case Ve:return ae.createElement(ve,{callback:$n,onCancel:Ti});case _n:return ae.createElement(Se.Z,{callback:$n,onCancel:Ti});case rn:return ae.createElement(be.Z,{callback:$n,onCancel:Ti});case an:return ae.createElement(Vt,{callback:$n,onCancel:Ti});case Xn:return ae.createElement(Ae,{callback:$n,onCancel:Ti});case"maths-latex":return ae.createElement(He,{showSaveButton:!0,callback:$n});case"inline-latex":return ae.createElement(Ue.Z,{showSaveButton:!0,callback:$n});default:return null}},[Hn]);function Ti(){Zr("")}(0,ae.useEffect)(()=>{if(ii.current){let yr=function(io){di=!0,Ci=io.pageY},ur=function(){di=!1},kr=function(io){if(di){let bi=io.pageY-Ci;bi<0&&(bi=0),bi>300&&(bi=300);let lo=un+bi+"px";ei(lo)}},Cn=ii.current,di=!1,Ci=0;return Cn.addEventListener("mousedown",yr),document.addEventListener("mousemove",kr),document.addEventListener("mouseup",ur),()=>{Cn.removeEventListener("mousedown",yr),document.removeEventListener("mousemove",kr),document.removeEventListener("mouseup",ur)}}},[yn,ii]),(0,ae.useEffect)(()=>{ei(un)},[un]);const so=Jn($e),Ji=Jn(Qr),Zi={width:so,height:Ji},pi=(0,ae.useMemo)(()=>{if(Ir){let yr=new Date(Ir),ur=yr.getHours(),kr=yr.getMinutes(),Cn=yr.getSeconds();return ur=ur<10?"0"+ur:ur,kr=kr<10?"0"+kr:kr,Cn=Cn<10?"0"+Cn:Cn,`${ur}:${kr}:${Cn}`}return 0},[Ir]),sr=yr=>{const ur=[];if(Ke){let kr=-1;yr=yr.replace(/(@▁▁@|@▁@)/g,function(Cn,di,Ci){ur.push({multiLine:Cn!==zr})})}return ur};function wr(){window.sessionStorage.removeItem(vr),mn(!1),Hr(0)}function Jr(){mn(!1),Hr(0),yn.setValue(window.sessionStorage.getItem(vr))}(0,ae.useEffect)(()=>{ir[Hn]&&Hn!==ln&&Hn!==an&&setTimeout(()=>{const yr=document.getElementsByClassName("markdown-popup-form")[0],ur=window.innerWidth/2-yr.offsetWidth/2,kr=window.innerHeight/2-yr.offsetHeight/2;gn(ur),Gi(kr)},0)},[Hn]);const mr=yr=>{yr.preventDefault();const ur=yr.clientX-vi,kr=yr.clientY-oi;document.body.onmousemove=Cn=>{let di=Cn.clientX-ur,Ci=Cn.clientY-kr;const io=document.getElementsByClassName("markdown-popup-form")[0],bi=window.innerWidth-io.offsetWidth,lo=window.innerHeight-io.offsetHeight;di=Math.max(0,Math.min(di,bi)),Ci=Math.max(0,Math.min(Ci,lo)),Vr(Cn.clientX,Cn.clientY,ur,kr)&&(gn(di),Gi(Ci))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vr=(yr,ur,kr,Cn)=>{const di=document.body.clientHeight,Ci=document.body.clientWidth;return yr<20&&kr>yr||yr>Ci-20&&krur||ur>di-20&&Cnjt in Nt?Tt(Nt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Nt[jt]=Gt,it=(Nt,jt)=>{for(var Gt in jt||(jt={}))z.call(jt,Gt)&&at(Nt,Gt,jt[Gt]);if(ft)for(var Gt of ft(jt))tt.call(jt,Gt)&&at(Nt,Gt,jt[Gt]);return Nt},lt=(Nt,jt)=>mt(Nt,xt(jt));const{useForm:ut}=ae.default,dt={width:280,marginRight:10},Pt={labelCol:{span:5},wrapperCol:{span:19}};var At=({callback:Nt,onCancel:jt})=>{const[Gt]=ut();let Wt=(0,bt.useRef)();function Jt(oe){Wt.current.width=Gt.getFieldValue("width"),Wt.current.align=Gt.getFieldValue("align"),Nt(oe,Wt.current)}function Ut(oe,se){if(oe.status===-1){Re.ZP.error(oe.message);return}Gt.setFieldsValue({src:`/api/attachments/${oe.id}`,type:se.type})}function Ht(oe){let se=oe.target.files[0];Wt.current=se,Ft(se,Ut)}return St.createElement(ae.default,lt(it({form:Gt},Pt),{className:"upload-image-panel",onFinish:Jt,style:{width:470,overflow:"hidden"}}),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},St.createElement(ot.default,{style:dt})),St.createElement(Dt,{onFileChange:Ht}))),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(ot.default,{style:{width:264}})),St.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(_t.Z,null,St.createElement(ae.default.Item,{name:"width",style:{margin:0}},St.createElement(Bt.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},St.createElement(vt.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"}]})),St.createElement("aside",null,St.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},St.createElement(gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(gt.ZP,{type:"default",onClick:jt},"\u53D6\u6D88"))))};function Dt({onFileChange:Nt}){return St.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",St.createElement("input",{type:"file",onChange:Nt}))}function Ft(Nt,jt){if(!Nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Gt=new FormData;Gt.append("editormd-image-file",Nt),Gt.append("file_param_name","editormd-image-file"),Gt.append("byxhr","true");var Wt=new window.XMLHttpRequest;Wt.withCredentials=!0,Wt.addEventListener("load",function(Jt){jt(JSON.parse(Jt.target.responseText),Nt)},!1),Wt.addEventListener("error",function(Jt){console.error(Jt)},!1),Wt.open("POST",`${kt.KI}/api/attachments.json`),Wt.send(Gt)}},91558:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return ot}});var ae=le(59301),Re=le(4676);class ot extends ae.Component{constructor(Bt){super(Bt);const vt=window.document;this.node=vt.createElement("div"),vt.body.appendChild(this.node)}render(){const{children:Bt}=this.props;return(0,Re.createPortal)(Bt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(dn,fn,le){"use strict";le.d(fn,{SV:function(){return Vt},ZP:function(){return Rt}});var ae=le(59301),Re=le(76374);const ot={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"]},_t={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"]},Bt={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},vt={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(` `)}]},gt={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 kt=le(53184),bt=le.n(kt),St=Object.defineProperty,Tt=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,tt=($t,ue,ge)=>ue in $t?St($t,ue,{enumerable:!0,configurable:!0,writable:!0,value:ge}):$t[ue]=ge,at=($t,ue)=>{for(var ge in ue||(ue={}))ft.call(ue,ge)&&tt($t,ge,ue[ge]);if(xt)for(var ge of xt(ue))z.call(ue,ge)&&tt($t,ge,ue[ge]);return $t},it=($t,ue)=>Tt($t,mt(ue)),lt=($t,ue,ge)=>new Promise((Me,Ae)=>{var Be=Qe=>{try{Ye(ge.next(Qe))}catch(He){Ae(He)}},Ze=Qe=>{try{Ye(ge.throw(Qe))}catch(He){Ae(He)}},Ye=Qe=>Qe.done?Me(Qe.value):Promise.resolve(Qe.value).then(Be,Ze);Ye((ge=ge.apply($t,ue)).next())});const ut={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"]}},dt=($t,ue)=>ue.map(ge=>({label:ge,kind:$t.languages.CompletionItemKind.Keyword,insertText:ge})),Pt=$t=>Object.keys(ut.tables).map(ue=>({label:ue,kind:$t.languages.CompletionItemKind.Variable,insertText:ue})),At=($t,ue)=>{const ge=ut.tables[$t];return ge?ge.map(Me=>({label:Me,kind:ue.languages.CompletionItemKind.Field,insertText:Me})):[]};function Dt($t,ue,ge,Me,Ae){let Be=ue.getWordUntilPosition(ge),Ze={startLineNumber:ge.lineNumber,endLineNumber:ge.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},Ye=Me.map(Qe=>({label:Qe,kind:$t.languages.CompletionItemKind.Keyword,insertText:Qe,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ze}));return Ae.map(Qe=>{Ye.push(it(at({},Qe),{range:Ze}))}),Ye}var Ft=$t=>{ut.languages.map(Ae=>($t.languages.registerDocumentFormattingEditProvider(Ae,{provideDocumentFormattingEdits(Be,Ze,Ye){return lt(this,null,function*(){const Qe=bt()(Be.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:Be.getFullModelRange(),text:Qe}]})}}),Ae));const ue=Bt.quickKey.map(Ae=>({label:Ae.label,kind:$t.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ge=vt.quickKey.map(Ae=>({label:Ae.label,kind:$t.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Me=_t.quickKey.map(Ae=>({label:Ae.label,kind:$t.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet}));$t.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,Be){var Ze=Ae.getWordUntilPosition(Be),Ye={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Qe=Ae.getLineContent(Be.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...Bt.keywords.map(He=>({label:He,kind:$t.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),...Bt.quickKey.map(He=>({label:He.label,kind:$t.languages.CompletionItemKind.Function,documentation:He.content,insertText:Qe.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}}),$t.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,Be){var Ze=Ae.getWordUntilPosition(Be),Ye={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn};return{suggestions:[...ot.keywords.map(Qe=>({label:Qe,kind:$t.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}}),$t.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,Be){var Ze=Ae.getWordUntilPosition(Be),Ye={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Qe=Ae.getLineContent(Be.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[..._t.keywords.map(He=>({label:He,kind:$t.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),..._t.quickKey.map(He=>({label:He.label,kind:$t.languages.CompletionItemKind.Function,documentation:He.content,insertText:Qe.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}}),$t.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ae,Be){var Ze=Ae.getWordUntilPosition(Be),Ye={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Qe=Ae.getLineContent(Be.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...gt.keywords.map(He=>({label:He,kind:$t.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),...gt.quickKey.map(He=>({label:He.label,kind:$t.languages.CompletionItemKind.Function,documentation:He.content,insertText:Qe.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}}),$t.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,Be){var Ze=Ae.getWordUntilPosition(Be),Ye={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:Ze.startColumn,endColumn:Ze.endColumn},Qe=Ae.getLineContent(Be.lineNumber).substring(Ze.startColumn-2,Ze.endColumn);return{suggestions:[...vt.keywords.map(He=>({label:He,kind:$t.languages.CompletionItemKind.Function,documentation:He,insertText:He,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),...vt.quickKey.map(He=>({label:He.label,kind:$t.languages.CompletionItemKind.Function,documentation:He.content,insertText:Qe.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:$t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}})};const Nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var jt=Object.defineProperty,Gt=($t,ue,ge)=>ue in $t?jt($t,ue,{enumerable:!0,configurable:!0,writable:!0,value:ge}):$t[ue]=ge,Wt=($t,ue,ge)=>Gt($t,typeof ue!="symbol"?ue+"":ue,ge);const Jt=class mx{constructor(ue,ge,Me){this.placeholder=ue,this.editor=ge,this.monaco=Me,ge.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)}};Wt(Jt,"ID","editor.widget.placeholderHint");var Ht=Jt,oe=le(96236),se=le(6767),ce=le(25399),Pe=le(89392),Yt=le(49535),ne=le(56102),ve=Object.defineProperty,Se=Object.defineProperties,be=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Ce=($t,ue,ge)=>ue in $t?ve($t,ue,{enumerable:!0,configurable:!0,writable:!0,value:ge}):$t[ue]=ge,de=($t,ue)=>{for(var ge in ue||(ue={}))pe.call(ue,ge)&&Ce($t,ge,ue[ge]);if(fe)for(var ge of fe(ue))he.call(ue,ge)&&Ce($t,ge,ue[ge]);return $t},ye=($t,ue)=>Se($t,be(ue)),Ne=($t,ue)=>{var ge={};for(var Me in $t)pe.call($t,Me)&&ue.indexOf(Me)<0&&(ge[Me]=$t[Me]);if($t!=null&&fe)for(var Me of fe($t))ue.indexOf(Me)<0&&he.call($t,Me)&&(ge[Me]=$t[Me]);return ge},xe=($t,ue,ge)=>new Promise((Me,Ae)=>{var Be=Qe=>{try{Ye(ge.next(Qe))}catch(He){Ae(He)}},Ze=Qe=>{try{Ye(ge.throw(Qe))}catch(He){Ae(He)}},Ye=Qe=>Qe.done?Me(Qe.value):Promise.resolve(Qe.value).then(Be,Ze);Ye((ge=ge.apply($t,ue)).next())});function re($t){return/^\d+$/.test($t)?`${$t}px`:$t}function Kt(){}let wt=!1;const Lt={"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 Xt($t=[]){let ue=$t;if(Array.isArray($t)){for(let ge=0;ge<$t.length;ge++){let Me=Lt[$t[ge]];if(Me)return Me}return ue[0]}return Lt[ue]||ue}let ee=null;const It=()=>xe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch($t){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",$t)}});var Rt=$t=>{var ue=$t,{width:ge="100%",height:Me="100%",value:Ae,language:Be="javascript",style:Ze={},options:Ye={},overrideServices:Qe={},theme:He="vs-dark",onEditBlur:Ue,isCopy:We=!1,onSave:Ve,autoHeight:rn=!1,forbidCopy:an=!1,onChange:ln=Kt,editorDidMount:Sn=Kt,onFocus:_n=Kt,onBreakPoint:Xn=Kt,breakPointValue:Yn=[],filename:Er="educoder.txt",errorLine:dr,errorContent:Mr="",highlightLine:Tr,openBreakPoint:Or=!1,placeholder:Sr="",showMiniMap:hr=!0}=ue,zr=Ne(ue,["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 qt=(0,ae.useRef)(),jn=(0,ae.useRef)({}),Jn=(0,ae.useRef)(),zn=(0,ae.useRef)(),Wn=(0,ae.useRef)([]),Kn=(0,ae.useRef)(!1),ir=(0,ae.useRef)(),Ar=(0,ae.useRef)(),sn=(0,ae.useRef)(!1),[qe,$e]=(0,ae.useState)(!1);function un(){let kn;return qt.current&&(kn=new Re.Z(On=>{for(let er of On)(er.target.offsetHeight>0||er.target.offsetWidth>0)&&jn.current.instance.layout()}),kn.observe(qt.current)),kn}function or(){se.ZP.warning({content:decodeURIComponent(Nt),key:"monaco-editor-tip"})}const Qn=()=>{let kn=jn.current.instance;if(Ae!=null&&kn&&qe){const On=kn.getModel();On&&Ae!==On.getValue()&&(wt=!0,On.setValue(Ae),kn.layout(),wt=!1)}};(0,ae.useEffect)(()=>{const kn=Yt.Z.subscribe("formatDocument",On=>{var er;let Fn=jn.current.instance;(er=Fn==null?void 0:Fn.getAction)==null||er.call(Fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=On=>{ln(On)},kn},[]),(0,ae.useEffect)(()=>{var kn;let On=jn.current.instance;zn.current&&clearTimeout(zn.current),zn.current=setTimeout(()=>{Qn()},500),Ae&&(Ae!=null&&Ae.length)&&((kn=On==null?void 0:On.updateOptions)==null||kn.call(On,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ae.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ae,qe,jn.current]),(0,ae.useEffect)(()=>{if(dr&&jn.current&&jn.current.instance){let On=jn.current.instance;On.changeViewZones(function(er){var Fn=document.createElement("div");Fn.style.padding="10px 20px",Fn.style.width="calc(100% - 20px)",Fn.className="my-error-line-wrp",Fn.innerHTML=Mr,er.addZone({afterLineNumber:dr||11,heightInLines:3,domNode:Fn})});var kn={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}};On.addOverlayWidget(kn),On.revealPositionInCenter({lineNumber:20,column:1})}},[dr,jn.current,qe]);const pr=(kn="",On)=>{if(!kn||kn.trim()==="")return!0;const Fn=jn.current.instance.getModel().getLineTokens(On);let Bn=!1;for(let Un=0;Un<2;Un++)Fn.getStandardTokenType(Un)===1&&(Bn=!0);return Bn};(0,ae.useEffect)(()=>{var kn;const On=(kn=jn.current)==null?void 0:kn.instance;if(On&&qe&&an){const er=On.onDidBlurEditorWidget(()=>{sn.current=!1}),Fn=On.onDidFocusEditorText(()=>{sn.current=!0});return()=>{er.dispose(),Fn.dispose()}}},[jn.current,qe,an]),(0,ae.useEffect)(()=>{var kn;if((kn=jn.current)!=null&&kn.instance&&qe&&Or){let On=jn.current.instance,er=On.getModel();if(!er)return;(()=>{var tr;let gr=[],Hn=[];const Zr=er.getAllDecorations();for(let Hr of Zr)Hr.options.className==="highlighted-line"&&(gr.push((tr=Hr==null?void 0:Hr.range)==null?void 0:tr.startLineNumber),Hn.push(Hr==null?void 0:Hr.id));if(Tr===gr[0])return;er.deltaDecorations(Hn,[]);const Ir=er.getLineCount();Tr&&Tr<=Ir&&(On.deltaDecorations([],[{range:new ee.Range(Tr,1,Tr,er.getLineMaxColumn(Tr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),On.revealLineInCenter(Tr))})();const Bn=(tr=!1)=>{var gr;let Hn=[],Zr=[];const Ir=er.getAllDecorations();for(let Hr of Ir)Hr.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((gr=Hr==null?void 0:Hr.range)==null?void 0:gr.startLineNumber),Zr.push(Hr==null?void 0:Hr.id));if(tr)return{lines:Hn,ids:Zr};Xn(Hn)},Un=tr=>xe(void 0,null,function*(){let gr={range:new ee.Range(tr,1,tr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield er.deltaDecorations([],[gr]),Bn()}),cr=tr=>xe(void 0,null,function*(){let gr=[];const Hn=On.getLineDecorations(tr);for(let Zr of Hn)Zr.options.linesDecorationsClassName==="breakpoints-select"&&gr.push(Zr.id);yield er.deltaDecorations(gr,[]),Bn()}),lr=tr=>{let gr=On.getLineDecorations(tr);for(let Hn of gr)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Pe.isEqual)(Yn,Bn(!0).lines)){er.deltaDecorations(Bn(!0).ids,[]);const tr=Yn.map(gr=>({range:new ee.Range(gr,1,gr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));er.deltaDecorations([],tr)}const yn=On.onDidChangeModelContent(tr=>{let gr=On.getPosition();if(gr){let Hn=gr.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{pr(er.getLineContent(Hn),Hn)?cr(Hn):lr(Hn)?(cr(Hn),Un(Hn)):Bn()},100)}}),In=On.onMouseDown(tr=>{var gr,Hn,Zr;if(tr.target.detail&&((Zr=(Hn=(gr=tr.target)==null?void 0:gr.element)==null?void 0:Hn.className)!=null&&Zr.includes("line-numbers"))){let Ir=tr.target.position.lineNumber;if(pr(er.getLineContent(Ir),Ir))return;lr(Ir)?cr(Ir):Un(Ir)}}),Gr=tr=>{let gr={range:new ee.Range(tr,1,tr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wn.current=On.deltaDecorations(Wn.current,[gr])},Yr=()=>{Wn.current=On.deltaDecorations(Wn.current,[])},fi=On.onMouseMove(tr=>{var gr,Hn,Zr;if(Yr(),tr.target.detail&&((Zr=(Hn=(gr=tr.target)==null?void 0:gr.element)==null?void 0:Hn.className)!=null&&Zr.includes("line-numbers"))){let Ir=tr.target.position.lineNumber;if(pr(er.getLineContent(Ir),Ir))return;Gr(Ir)}}),tn=On.onMouseLeave(()=>{Yr()});return()=>{yn.dispose(),In.dispose(),fi.dispose(),tn.dispose()}}},[jn.current,qe,Yn,Tr,Or,Be]),(0,ae.useEffect)(()=>{var kn;(kn=jn.current)!=null&&kn.instance&&Or&&jn.current.instance.setPosition({lineNumber:0,column:0})},[Tr]);function xn(){let kn=jn.current.instance;if(kn){const On=kn.getSelection(),er=jn.current.pastePos||{},Fn=new ee.Range(er.startLineNumber||On.endLineNumber,er.startColumn||On.endColumn,er.endLineNumber||On.endLineNumber,er.endColumn||On.endColumn);setTimeout(()=>{kn.executeEdits("",[{range:Fn,text:""}])},300)}}function Rn(kn){(window.navigator.platform.match("Mac")?kn.metaKey:kn.ctrlKey)&&kn.keyCode==83&&(kn.preventDefault(),Ve())}const vr=()=>{if(rn&&jn.current.instance){const kn=jn.current.instance.getContentHeight();en(kn{if(!sn.current)return;const{keyCode:On,ctrlKey:er,metaKey:Fn,target:Bn,type:Un}=kn;return(Un==="paste"||(On===67||On===86)&&(Fn||er))&&Bn.nodeName==="TEXTAREA"&&(or(),kn.preventDefault()),!1};function Oe(kn,On){var er=window.URL||window.webkitURL||window,Fn=new Blob([On]),Bn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Bn.href=er.createObjectURL(Fn),Bn.download=kn,Nr(Bn)}(0,ae.useEffect)(()=>{vr()},[vr]),(0,ae.useEffect)(()=>{qt.current&&!qe&&Promise.all([le.e(8909),le.e(6656)]).then(le.bind(le,71448)).then(kn=>{try{ee=kn,jn.current.instance=ee.editor.create(qt.current,{value:Ae,language:Xt(Be),theme:He,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:hr||!1}},Qe);const On=jn.current.instance;let Bn=[...oe.BH._menuItems].find(yn=>yn[0]._debugName=="EditorContext")[1],Un=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],cr=(yn,In)=>{var Gr,Yr;let fi=yn._first;do In.includes((Yr=(Gr=fi.element)==null?void 0:Gr.command)==null?void 0:Yr.id)&&yn._remove(fi);while(fi=fi.next)};if(Sn(On,ee),setTimeout(()=>{vr(),jn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Oe(Er||"educoder.txt",On.getValue())}})},500),jn.current.subscription=On.onDidChangeModelContent(yn=>{Kn.current?clearTimeout(ir.current):(vr(),ln(On.getValue(),yn)),ir.current=setTimeout(()=>{Kn.current=!1},500)}),window.Monaco||Ft(ee,Xt(Be)),an&&(cr(Bn,Un),qt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Nn),window.removeEventListener("paste",Nn),window.addEventListener("keydown",Nn),window.addEventListener("paste",Nn)),window.Monaco=ee,Ue&&On.onDidBlurEditorWidget(()=>{Ue(On.getValue())}),_n&&On.onDidFocusEditorText(()=>{an&&It(),_n(On.getValue())}),an){It();try{On.onDidPaste(yn=>{const In=On.getSelection(),Gr=jn.current.pastePos||{},Yr=new ee.Range(Gr.startLineNumber||In.endLineNumber,Gr.startColumn||In.endColumn,Gr.endLineNumber||In.endLineNumber,Gr.endColumn||In.endColumn);On.executeEdits("",[{range:yn.range,text:""}])})}catch(yn){}}let lr=un();return Sr&&typeof Sr=="string"&&new Ht(Sr,On,ee),$e(!0),()=>{const yn=jn.current.instance;yn.dispose();const In=yn.getModel();In&&In.dispose(),jn.current.subscription&&jn.current.subscription.dispose(),lr.unobserve(qt.current)}}catch(On){}})},[]),(0,ae.useEffect)(()=>{if(jn.current.instance&&qe)return document.addEventListener("keydown",Rn,!1),()=>{document.removeEventListener("keydown",Rn)}},[Ve,qe]),(0,ae.useEffect)(()=>{let kn=jn.current.instance;if(kn&&qe){let On=Xt(Be);ee.editor.setModelLanguage(kn.getModel(),On)}},[Be,qe]),(0,ae.useEffect)(()=>{jn.current.instance&&qe&&ee.editor.setTheme(He)},[He,qe]),(0,ae.useEffect)(()=>{let kn=jn.current.instance;Jn.current=Ye,kn&&qe&&(kn.updateOptions(de({},Ye)),setTimeout(()=>{kn.getModel().updateOptions(de({},Ye))},200))},[JSON.stringify(Ye),qe]),(0,ae.useEffect)(()=>{let kn=jn.current.instance;kn&&qe&&kn.layout()},[ge,Me,qe]);const[Ke,Ln]=(0,ae.useState)(re(ge)),[An,en]=(0,ae.useState)(re(Me)),Tn=ye(de({},Ze),{width:Ke,height:An,position:"relative"});return ae.createElement("div",{className:"my-monaco-editor",ref:qt,style:Tn},We&&ae.createElement(ne.CopyToClipboard,{text:Ae,onCopy:()=>se.ZP.success("\u590D\u5236\u6210\u529F")},ae.createElement(ce.Z,{title:"\u590D\u5236\u4EE3\u7801"},ae.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ae.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Vt({width:$t="100%",height:ue="100%",original:ge,modified:Me,language:Ae,options:Be={}}){const Ze=(0,ae.useRef)(),[Ye,Qe]=(0,ae.useState)(null);function He(rn){let an;return Ze.current&&(an=new Re.Z(ln=>{for(let Sn of ln)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&rn.layout()}),an.observe(Ze.current)),an}(0,ae.useEffect)(()=>(Ze.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(rn=>{ee=rn;const an=ee.editor.createDiffEditor(Ze.current,ye(de({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},Be),{wordWrap:!0}));Qe(an);let ln=He(an);return()=>{an.dispose();const Sn=an.getModel();Sn&&Sn.dispose(),ln.unobserve(Ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ae.useEffect)(()=>{Ye&&Ye.setModel({original:ee.editor.createModel(ge,Ae),modified:ee.editor.createModel(Me,Ae)})},[ge,Me,Ae,Ye]);const Ue=re($t),We=re(ue),Ve={width:Ue,height:We};return ae.createElement("div",{className:"my-diff-editor",ref:Ze,style:Ve})}},58397:function(dn,fn,le){"use strict";var ae=le(39744),Re=le(82326),ot=le(71411),_t=le(59301);const Bt=Re.default.Option;fn.Z=({isTheoretical:vt,onFontSizeChange:gt,cmFontSize:kt,cmCodeMode:bt,autoFormat:St,onCodeModeChange:Tt,onTabToSpace:mt,onAutoFormat:xt,formatDocument:ft,className:z="",tabToSpace:tt,children:at,code_editor:it,challenge:lt})=>{const ut={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return _t.createElement("div",{className:`tpi-code-setting ${z}`},_t.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),_t.createElement("section",null,_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),_t.createElement(Re.default,{bordered:!1,size:"small",value:bt,onChange:Tt},_t.createElement(Bt,{value:"vs"},"\u767D\u8272\u80CC\u666F"),_t.createElement(Bt,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!vt&&_t.createElement(_t.Fragment,null,_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),_t.createElement(Re.default,{bordered:!1,size:"small",value:kt,onChange:gt},_t.createElement(Bt,{value:12},"12px"),_t.createElement(Bt,{value:14},"14px"),_t.createElement(Bt,{value:16},"16px"),_t.createElement(Bt,{value:18},"18px"),_t.createElement(Bt,{value:20},"20px"),_t.createElement(Bt,{value:22},"22px"))),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"Tab\u8F6C\u6362"),_t.createElement(ot.Z,{checked:tt,onChange:mt})),_t.createElement("div",{className:"file-item",onClick:ft},_t.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!vt&&_t.createElement(_t.Fragment,null,_t.createElement("h3",null,"\u5FEB\u6377\u952E"),_t.createElement("section",null,_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),_t.createElement("span",null,"Ctrl + S")),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),_t.createElement("span",null,"F1 / Alt + F1")),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),_t.createElement("span",null,"Ctrl + ]/[")),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),_t.createElement("span",null,"Ctrl + Shift + \\")),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),_t.createElement("span",null,"Home")),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),_t.createElement("span",null,"End"))),at),!vt&&_t.createElement(_t.Fragment,null,_t.createElement("h3",null,"\u5FEB\u6377\u952E"),_t.createElement("section",null,_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),_t.createElement("span",null,ut[lt==null?void 0:lt.difficulty])),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),_t.createElement("span",null,it==null?void 0:it.name)),_t.createElement("div",{className:"file-item"},_t.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),_t.createElement("span",null,it!=null&&it.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},10661:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return Tt}});var ae={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"},Re=le(29787),ot=le(25399),_t=le(92310),Bt=le.n(_t),vt=le(51257),gt=le(28426),kt=le(48790),bt=le(59301),Tt=({className:mt,dataSource:xt=[],col:ft=4,right:z,bottom:tt=23,precision:at=0,wrapWidth:it=1200,trackEventItems:lt,loading:ut,onRemove:dt=()=>{},isCurrent:Pt=!0,showAlias:At=!1})=>{const Dt=Math.floor((it-(ft-1)*z)/ft),Ft=[{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 bt.createElement(Re.Z,{spinning:ut},bt.createElement("div",{className:Bt()(ae.list,mt)},!!(xt!=null&&xt.length)&&(xt==null?void 0:xt.map((Nt,jt)=>{var Gt;const{name:Wt,id:Jt,identifier:Ut,featured:Ht,school_name:oe,image_url:se,excellent:ce,is_plan:Pe}=Nt;return bt.createElement("div",{key:Jt,className:ae.wrap,style:{width:Dt,marginRight:(1+jt)%ft===0?0:z+at,marginBottom:tt}},bt.createElement("a",{className:ae.li,onClick:Yt=>{Yt.preventDefault(),Yt.stopPropagation(),lt&&(0,vt.L9)([lt]),(0,vt.xg)(`/paths/${Ut}`)}},bt.createElement("div",{className:ae.img},bt.createElement("img",{className:ae.cover,src:`${se}`}),Pt&&(0,kt.bg)()&&(Nt==null?void 0:Nt.studying)&&bt.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:Yt=>{Yt.stopPropagation(),dt(Nt)}},bt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),bt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Gt=Nt==null?void 0:Nt.subject_tags)==null?void 0:Gt.map((Yt,ne)=>{var ve,Se;if(ne===0){const fe=(ve=Ft.find(pe=>pe.name==Yt))==null?void 0:ve.swimg;return bt.createElement("img",{className:ae.sign,src:fe,style:{left:"-4px"}})}const be=(Se=Ft.find(fe=>fe.name==Yt))==null?void 0:Se.ptimg;return bt.createElement("img",{className:ae.sign,src:be,style:{left:`${48+52*(ne-1)+2*ne}px`}})}),bt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Nt==null?void 0:Nt.excellent)&&bt.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),bt.createElement("div",{className:ae.name},bt.createElement(ot.Z,{title:At&&(Nt!=null&&Nt.excellent_alias_name)?bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Wt}`,bt.createElement("br",null),bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Nt==null?void 0:Nt.excellent_alias_name}`)):Wt},bt.createElement("span",{className:ae.e},At&&(Nt==null?void 0:Nt.excellent_alias_name)||Wt))),bt.createElement(ot.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${oe}`},bt.createElement("div",{className:ae.unit},bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),oe)),bt.createElement("div",{className:ae.tags},bt.createElement("div",null,bt.createElement(ot.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),bt.createElement("span",null,Nt.stages_count))),bt.createElement(ot.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},bt.createElement("span",null,bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),bt.createElement("span",null,Nt.members_count)))))))})),!xt.length&&bt.createElement(gt.Z,null)))}},9148:function(dn,fn,le){"use strict";le.d(fn,{jL:function(){return Bt},w9:function(){return ve},QD:function(){return Ue},cQ:function(){return se.Z},op:function(){return Ae},O5:function(){return Jn},_b:function(){return Sn},t7:function(){return it},Gi:function(){return Ce},YG:function(){return pe},qp:function(){return Tt},vr:function(){return rn},qE:function(){return Ye},Je:function(){return dt},wb:function(){return oe},cq:function(){return Kt},tp:function(){return ft}});var ae=le(59301),Re={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"},ot="data:image/png;base64,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",Bt=({dataSource:zn=[],img:Wn,imgWidth:Kn=346,title:ir,sunTitle:Ar,bannerExtraContent:sn})=>ae.createElement("div",{className:Re.banner},ae.createElement("div",{className:Re.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,ir),ae.createElement("span",null,Ar)),zn.length>0&&ae.createElement("div",{className:Re.btns},zn.map((qe,$e)=>ae.createElement("div",{key:$e,onClick:qe.click},qe.name,qe.sign?ae.createElement("img",{src:ot,width:39}):null))),sn),Wn&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:Wn,width:Kn}))),vt={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"},gt=le(92310),kt=le.n(gt),bt=le(89392),Tt=({dataSource:zn=[],value:Wn,onChange:Kn,onTitleChange:ir,className:Ar,title:sn,titleWidth:qe=41,style:$e={},fontColor:un="#6A7283",showCount:or})=>{const[Qn,pr]=(0,ae.useState)(0),[xn,Rn]=(0,ae.useState)(!1),vr=(0,ae.useRef)(null),Nr=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var Nn;zn.length!==0&&(((Nn=vr==null?void 0:vr.current)==null?void 0:Nn.clientHeight)>97?pr(1):pr(0)),zn.length===0&&pr(0),Rn(!1)},[zn]),ae.createElement("div",{className:kt()(vt.row,Ar),style:$e},ae.createElement("div",{onClick:(0,bt.throttle)(()=>ir==null?void 0:ir(),2e3),style:{width:qe,marginTop:xn?12:4},className:`${vt.title} ${ir?"current":""}`},sn),ae.createElement("div",{className:xn?`${vt.tagsWrap} ${vt.tagsBorderWrap}`:vt.tagsWrap},ae.createElement("div",{className:vt.bar,ref:Nr,style:Qn>0?{height:Qn===1?97:"auto",overflow:Qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:vt.tag,ref:vr},zn==null?void 0:zn.map(Nn=>ae.createElement("span",{onClick:()=>Kn(Nn.id),key:Nn.id,style:{color:un},className:Wn===Nn.id?vt.active:""},ae.createElement("span",{title:Nn.name,className:vt.name},Nn.name),!!or&&ae.createElement("span",{className:vt.num},Nn.count))))),!!Qn&&ae.createElement(ae.Fragment,null,Qn===1?ae.createElement("div",{onClick:()=>{var Nn;pr(2),((Nn=vr==null?void 0:vr.current)==null?void 0:Nn.clientHeight)>245?Rn(!0):Rn(!1)},className:vt.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{Nr.current.scrollTop=0,pr(1),Rn(!1)},className:vt.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},mt={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"},ft=({dataSource:zn=[],value:Wn,onChange:Kn,className:ir,style:Ar={}})=>ae.createElement("div",{style:Ar,className:kt()(mt.tabs,ir)},zn.map(sn=>ae.createElement("span",{onClick:()=>Kn(sn.id),className:Wn===sn.id?mt.active:"",key:sn.id},sn.name))),z={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=le(37568),it=({dataSource:zn=[],value:Wn="",onChange:Kn,onInputChange:ir=()=>{},className:Ar,style:sn={},placeholder:qe,allowClear:$e=!1})=>{var un;const[or,Qn]=(0,ae.useState)(""),[pr,xn]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var Nr;let Nn=Wn;(Nr=JSON.stringify(Wn))!=null&&Nr.includes("{")&&(Qn(Wn.id),Nn=Wn.value||"");try{xn(decodeURIComponent(Nn||""))}catch(Oe){xn(decodeURIComponent(Nn||""))}},[Wn]);const Rn=()=>{Kn(encodeURIComponent(pr),or||null)},vr=Nr=>{Nr!==or&&(Qn(Nr),Kn(encodeURIComponent(pr),Nr))};return ae.createElement("div",{className:kt()(z.input,Ar),style:sn},!!zn.length&&ae.createElement("div",{className:z.dropdown},ae.createElement("div",{className:z.text},(un=zn.find(Nr=>Nr.id===or))==null?void 0:un.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:z.b1}),ae.createElement("b",{className:z.b2})),ae.createElement("div",{className:z.menu},zn.map((Nr,Nn)=>ae.createElement("div",{key:Nn,onClick:()=>vr(Nr.id)},Nr.name)))),ae.createElement(tt.default,{onPressEnter:Rn,value:pr,onChange:Nr=>{xn(Nr.target.value),ir(encodeURIComponent(Nr.target.value),or||null)},bordered:!1,placeholder:qe}),ae.createElement("i",{onClick:Rn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={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"},dt=({value:zn,onChange:Wn,className:Kn,total:ir,pageSize:Ar,style:sn={}})=>{const qe=zn<2,$e=zn>=Math.ceil(ir/Ar);return ir<=Ar?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:kt()(lt.quickPager,Kn),style:sn},ae.createElement("div",{onClick:()=>{qe||Wn(zn-1,"prev")},className:qe?lt.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{$e||Wn(zn+1,"next")},className:$e?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Pt={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"},At=le(29787),Dt=le(25399),Ft=le(58018),Nt=le(346),jt=le(51257),Gt=le(96908),Wt=le(57177),Jt=le(81378),Ut=le(28426),oe=({className:zn,dataSource:Wn=[],col:Kn=4,right:ir,bottom:Ar=23,precision:sn=0,wrapWidth:qe=1200,trackEventItems:$e,loading:un})=>{const or=Math.floor((qe-(Kn-1)*ir)/Kn);return ae.createElement(At.Z,{spinning:un},ae.createElement("div",{className:kt()(Pt.list,zn)},!!Wn.length&&Wn.map((Qn,pr)=>{const{name:xn,id:Rn,identifier:vr,power:Nr,cover_image_id:Nn,pic:Oe}=Qn;return ae.createElement("div",{className:Pt.wrap,key:Rn,style:{width:or,marginRight:(1+pr)%Kn===0?0:ir+sn,marginBottom:Ar}},ae.createElement("a",{target:"_blank",href:`/shixuns/${vr}/challenges`,className:Pt.li,onClick:Ke=>{Ke.preventDefault(),$e&&(0,jt.L9)([$e]),Nr&&(0,jt.xg)(`/shixuns/${vr}/challenges`)}},ae.createElement("div",{className:Pt.img},ae.createElement("img",{className:Pt.cover,src:`${Oe}`}),Qn.is_jupyter&&ae.createElement("img",{className:Pt.sign,src:Gt}),Qn.is_jupyter_lab&&ae.createElement("img",{className:Pt.sign,src:Wt}),Qn.is_unity_3d&&ae.createElement("img",{className:Pt.sign,src:Jt})),ae.createElement("div",{className:Pt.name},ae.createElement(Dt.Z,{title:xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Pt.e},xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:Pt.tags},ae.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,Qn.challenges_count))),!!Qn.myshixuns_count&&ae.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,Qn.myshixuns_count))),ae.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,Qn.level))),ae.createElement("div",{className:Pt.rate},ae.createElement(Ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Qn.score_info}),ae.createElement("span",null,"\xA0",Qn.score_info?`${Qn.score_info}\u5206`:"5\u5206")))),!Nr&&ae.createElement("div",{className:Pt.lockWrap},ae.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wn.length&&ae.createElement(Ut.Z,null)))},se=le(10661),ce={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"},Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Yt=le(59301),ve=({className:zn,dataSource:Wn=[],col:Kn=4,right:ir,bottom:Ar=23,precision:sn=0,wrapWidth:qe=1200,trackEventItems:$e,loading:un,handleVery:or=()=>!0})=>{const Qn=Math.floor((qe-(Kn-1)*ir)/Kn);return Yt.createElement(At.Z,{spinning:un},Yt.createElement("div",{className:kt()(ce.list,zn)},!!Wn.length&&Wn.map((pr,xn)=>{const{subject_identifier:Rn,id:vr,identifier:Nr,power:Nn}=pr,Oe=pr.is_public!=0&&pr.is_public;return Yt.createElement("div",{className:ce.wrap,key:vr,style:{width:Qn,marginRight:(1+xn)%Kn===0?0:ir+sn,marginBottom:Ar}},Yt.createElement("a",{className:ce.li,onClick:Ke=>{Ke.preventDefault(),or(pr==null?void 0:pr.first_category_url)&&($e&&(0,jt.L9)([$e]),(0,jt.xg)(pr.first_category_url))}},Yt.createElement("div",{className:ce.top},Yt.createElement(Dt.Z,{title:pr.name},Yt.createElement("div",{className:ce.name},pr.name)),Yt.createElement("img",{className:ce.img,src:Nt.Z.IMG_SERVER+"/images/"+pr.avatar_url}),Yt.createElement("div",{className:ce.text,title:pr.creator},pr.creator),Rn&&Yt.createElement("div",{className:ce.btns},Yt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Yt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Oe&&Yt.createElement("div",{className:ce.sign},"\u516C\u5F00")),Yt.createElement("div",{className:ce.bottom},pr.visits>0&&Yt.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-liulanyan"}),Yt.createElement("span",null,pr.visits))),pr.course_members_count>0&&Yt.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-chengyuan"}),pr.course_members_count)),pr.tasks_count>0&&Yt.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-zuoye"}),pr.tasks_count)),pr.is_end?Yt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Yt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!pr.is_accessible&&Yt.createElement("div",{className:ce.lockWrap},Yt.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Yt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wn.length&&Yt.createElement(Ut.Z,null)))},Se={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"},be=le(25690),pe=({dataSource:zn=[],value:Wn,onChange:Kn,className:ir,style:Ar={},tabBarExtraContent:sn})=>ae.createElement("div",{className:kt()(Se.tabs,ir),style:Ar},ae.createElement("div",{className:Se.tabsWrap},zn.map((qe,$e)=>!(qe!=null&&qe.hide)&&ae.createElement("aside",{className:Se.tab,onClick:()=>{Kn(qe.id),qe.link&&be.history.push(qe.link)},key:$e},ae.createElement("div",{className:Wn===qe.id?Se.active:""},qe.name),(qe==null?void 0:qe.resetCount)==null&&(qe==null?void 0:qe.total)!==void 0&&ae.createElement("span",null,"\uFF08",qe==null?void 0:qe.total,"\uFF09"),(qe==null?void 0:qe.resetCount)!==void 0&&(qe==null?void 0:qe.total)!==void 0&&ae.createElement(Dt.Z,{title:(qe==null?void 0:qe.tip)!=null?qe==null?void 0:qe.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},qe==null?void 0:qe.resetCount),"/",ae.createElement("span",null,qe==null?void 0:qe.total),"\uFF09"))))),ae.createElement("div",{className:Se.tabBar},sn)),Ce=({className:zn,style:Wn={},children:Kn})=>ae.createElement("div",{className:kt()(zn),style:Wn},Kn),de={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"},ye=le(75727),Ne=le(93041);const xe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:zn,dropValue:Wn,className:Kn,onSort:ir,onDrop:Ar,dataSource:sn=xe})=>{var qe;return ae.createElement("div",{className:kt()(de.orderWrap,Kn)},ae.createElement(ye.Z,{dropdownRender:()=>ae.createElement(Ne.default,null,sn.map(($e,un)=>ae.createElement(Ne.default.Item,{key:un,onClick:()=>Ar($e.id)},$e.name)))},ae.createElement("span",{className:de.orderTextWrap},(qe=sn.find($e=>Wn===$e.id))==null?void 0:qe.name)),ae.createElement("span",{className:de.orderIconWrap},ae.createElement("span",{className:de.orderAsc},ae.createElement("i",{className:zn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${de.cursorPointer} ${de.active}`:`iconfont icon-sanjiaoxing-up font12 ${de.cursorPointer}`,onClick:()=>ir(zn==="asc"?"desc":"asc")})),ae.createElement("span",{className:de.orderDesc},ae.createElement("i",{className:zn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${de.cursorPointer} ${de.active}`:`iconfont icon-sanjiaoxing-down font12 ${de.cursorPointer}`,onClick:()=>ir(zn==="asc"?"desc":"asc")}))))},wt={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"},Lt=le(99571),Xt=Object.defineProperty,ee=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Vt=(zn,Wn,Kn)=>Wn in zn?Xt(zn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):zn[Wn]=Kn,$t=(zn,Wn)=>{for(var Kn in Wn||(Wn={}))It.call(Wn,Kn)&&Vt(zn,Kn,Wn[Kn]);if(ee)for(var Kn of ee(Wn))Rt.call(Wn,Kn)&&Vt(zn,Kn,Wn[Kn]);return zn},ue=(zn,Wn)=>{var Kn={};for(var ir in zn)It.call(zn,ir)&&Wn.indexOf(ir)<0&&(Kn[ir]=zn[ir]);if(zn!=null&&ee)for(var ir of ee(zn))Wn.indexOf(ir)<0&&Rt.call(zn,ir)&&(Kn[ir]=zn[ir]);return Kn},ge=(zn,Wn,Kn)=>new Promise((ir,Ar)=>{var sn=un=>{try{$e(Kn.next(un))}catch(or){Ar(or)}},qe=un=>{try{$e(Kn.throw(un))}catch(or){Ar(or)}},$e=un=>un.done?ir(un.value):Promise.resolve(un.value).then(sn,qe);$e((Kn=Kn.apply(zn,Wn)).next())}),Ae=zn=>{var Wn=zn,{className:Kn,style:ir,children:Ar,loading:sn=!1,openLoading:qe,onClick:$e=()=>{},size:un="middle",shape:or="round"}=Wn,Qn=ue(Wn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[pr,xn]=(0,ae.useState)(!1);return ae.createElement(Lt.ZP,$t({onClick:(0,bt.throttle)(Rn=>ge(void 0,null,function*(){qe&&xn(!0);try{yield $e(Rn)}catch(vr){console.log("error",vr)}qe&&xn(!1)}),2e3,{leading:!0,trailing:!1}),className:kt()(wt.btn,wt[`${un}-${or}`],Kn),style:ir,size:un,shape:or,loading:pr||sn},Qn),Ar)},Be={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"},Ye=({className:zn,style:Wn,children:Kn=null,onClick:ir,title:Ar})=>ae.createElement("div",{className:kt()(Be.head,zn),style:Wn},ae.createElement("span",{className:"primary-hover",onClick:ir},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:Ar},Ar),ae.createElement("div",{className:Be.node},Kn)),Qe={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"},Ue=({confirmShow:zn=!0,confirmTitle:Wn,confirmClick:Kn,cancelShow:ir=!0,cancelTitle:Ar,cancelClick:sn,className:qe,style:$e,confirmLoading:un=!1})=>ae.createElement("div",{className:kt()(Qe.btns,qe),style:$e},zn&&ae.createElement(Lt.ZP,{loading:un,onClick:Kn,type:"primary",className:Qe.confirm},Wn),ir&&ae.createElement(Lt.ZP,{onClick:sn,className:Qe.cancel},Ar)),We={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"},rn=({className:zn,style:Wn={},LeftContent:Kn,children:ir,RightContent:Ar})=>ae.createElement("div",{className:kt()(We.fixedBottom,zn),style:Wn},ae.createElement("div",{className:We.wrap},ae.createElement("div",{className:We.left},Kn),ae.createElement("div",{className:We.center},ir),ae.createElement("div",{className:We.right},Ar))),an={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"},Sn=({className:zn,style:Wn={},dataSource:Kn=[]})=>ae.createElement("div",{className:kt()(an.crumbs,zn),style:Wn},Kn.map((ir,Ar)=>Arbe.history.push(ir.path)},ir.name):ae.createElement("span",null,ir.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:Ar,style:{color:"#5F6368"}},ir.name))),_n=le(11938),Xn=Object.defineProperty,Yn=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Or=(zn,Wn,Kn)=>Wn in zn?Xn(zn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):zn[Wn]=Kn,Sr=(zn,Wn)=>{for(var Kn in Wn||(Wn={}))Mr.call(Wn,Kn)&&Or(zn,Kn,Wn[Kn]);if(dr)for(var Kn of dr(Wn))Tr.call(Wn,Kn)&&Or(zn,Kn,Wn[Kn]);return zn},hr=(zn,Wn)=>Yn(zn,Er(Wn)),zr=(zn,Wn)=>{var Kn={};for(var ir in zn)Mr.call(zn,ir)&&Wn.indexOf(ir)<0&&(Kn[ir]=zn[ir]);if(zn!=null&&dr)for(var ir of dr(zn))Wn.indexOf(ir)<0&&Tr.call(zn,ir)&&(Kn[ir]=zn[ir]);return Kn};const{Countdown:qt}=_n.default;var Jn=zn=>{var Wn=zn,{onChange:Kn}=Wn,ir=zr(Wn,["onChange"]);const[Ar,sn]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof Ar=="number"&&Ar>=0&&Kn(Ar)},[Ar]);const qe=$e=>{const un=Math.floor($e/1e3);sn(un)};return ae.createElement(qt,hr(Sr({},ir),{onChange:qe}))}},37808:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return Re}});var ae=le(59301);function Re(ot,_t){const Bt=(0,ae.useRef)();(0,ae.useEffect)(()=>{Bt.current=ot}),(0,ae.useEffect)(()=>{function vt(){Bt.current()}if(_t!==null){let gt=setInterval(vt,_t);return()=>clearInterval(gt)}},[_t])}},96662:function(dn,fn,le){"use strict";le.d(fn,{Z:function(){return Gt}});var ae=le(59301),Re=le(28284),ot=le(30641),_t=le(62957),Bt=le(6767),vt=le(62673),gt=le(75975),kt=le(58397),bt=le(91558),St=le(23992),Tt={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",xt=le(89392),ft=le(9148),z=le(59301),tt=Object.defineProperty,at=Object.defineProperties,it=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Pt=(Jt,Ut,Ht)=>Ut in Jt?tt(Jt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Jt[Ut]=Ht,At=(Jt,Ut)=>{for(var Ht in Ut||(Ut={}))ut.call(Ut,Ht)&&Pt(Jt,Ht,Ut[Ht]);if(lt)for(var Ht of lt(Ut))dt.call(Ut,Ht)&&Pt(Jt,Ht,Ut[Ht]);return Jt},Dt=(Jt,Ut)=>at(Jt,it(Ut));const Ft={theme:(0,St.G)("cmCodeMode","vs-dark"),fontSize:(0,St.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,St.G)("cmTabToSpace",!0)};var Nt=(Jt=>(Jt[Jt.set_font_size=0]="set_font_size",Jt[Jt.set_theme=1]="set_theme",Jt[Jt.on_tab_to_space=2]="on_tab_to_space",Jt[Jt.set_show_editor_setting=3]="set_show_editor_setting",Jt))(Nt||{});function jt(Jt,Ut){switch(Ut.type){case 3:return Dt(At({},Jt),{showEditorSetting:Ut.payload});case 1:return Dt(At({},Jt),{theme:Ut.payload});case 0:return Dt(At({},Jt),{fontSize:Ut.payload});case 2:return Dt(At({},Jt),{tabToSpace:Ut.payload});default:throw new Error}}var Gt=({isLoading:Jt,value:Ut=[],onChange:Ht,form:oe})=>{var se;const[ce,Pe]=(0,ae.useReducer)(jt,Ft),{theme:Yt,fontSize:ne,showEditorSetting:ve,tabToSpace:Se}=ce,[be,fe]=(0,ae.useState)("C"),[pe,he]=(0,ae.useState)(!1),[Ce,de]=(0,ae.useState)([]),ye=(0,ae.useRef)([]),Ne=Re.default.useWatch(["hack","languages"],oe);(0,ae.useEffect)(()=>{Ut!=null&&Ut.length&&(ye.current=(0,xt.cloneDeep)(Ut))},[Ut]),(0,ae.useEffect)(()=>{pe&&de(Ne)},[pe]),(0,ae.useEffect)(()=>{fe(Ne==null?void 0:Ne[0])},[Ne]);const xe={onFontSizeChange:ee=>{Pe({type:0,payload:ee}),(0,St.t)("cmFontSize",ee)},tabToSpace:Se,cmFontSize:ne,className:"oj",cmCodeMode:Yt,onTabToSpace:ee=>{Pe({type:2,payload:ee}),(0,St.t)("cmTabToSpace",ee)},onCodeModeChange:ee=>{Pe({type:1,payload:ee}),(0,St.t)("cmCodeMode",ee)}};function re(){Pe({type:3,payload:!1})}function Kt(){Pe({type:3,payload:!0})}function wt(ee){var It;const Rt=(It=ye.current)==null?void 0:It.map(Vt=>(Vt.language===be&&(Vt.code=ee),Vt));ye.current=(0,xt.cloneDeep)(Rt),Ht(Rt)}const Lt={key:be,value:(se=Ut==null?void 0:Ut.find(ee=>ee.language===be))==null?void 0:se.code,language:be,onChange:wt,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:ne,insertSpaces:Se}};console.log(888,Ut,Ne);const Xt=Ut.filter(ee=>Ne==null?void 0:Ne.includes(ee.language));return z.createElement(ae.Fragment,null,z.createElement("div",{className:Tt["code-panel-container"]},z.createElement(Wt,{setVisible:he,languageItems:Xt,onLanguage:ee=>fe(ee),language:be,onShowCodeSetting:Kt}),!Jt&&z.createElement(gt.ZP,At({},Lt))),z.createElement(bt.Z,null,z.createElement(ot.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:ve,onClose:re},z.createElement(kt.Z,At({},xe)))),z.createElement(_t.default,{centered:!0,open:pe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!Ce.length){Bt.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}oe.setFieldValue(["hack","languages"],Ce),he(!1)},onCancel:()=>he(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(vt.default.Group,{value:Ce,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ee=>{de(ee)}}))))};function Wt({languageItems:Jt,language:Ut,onShowCodeSetting:Ht,onLanguage:oe,setVisible:se}){return z.createElement("div",{className:Tt["action-oj-bar"]},Jt==null?void 0:Jt.map(ce=>z.createElement("aside",{className:Ut===(ce==null?void 0:ce.language)?Tt.active:"",onClick:()=>oe(ce==null?void 0:ce.language),key:ce==null?void 0:ce.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,ce==null?void 0:ce.language))),z.createElement("div",{className:Tt.tip},z.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),z.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),z.createElement(ft.op,{onClick:()=>se(!0),shape:"default"},z.createElement("img",{src:mt,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},93946:function(dn,fn,le){"use strict";le.d(fn,{GM:function(){return kt},MK:function(){return gt},PR:function(){return Re},ZS:function(){return St},d1:function(){return ot},fu:function(){return _t},j2:function(){return bt},l_:function(){return Bt},uE:function(){return Tt},zQ:function(){return vt}});var ae=le(38986);function Re(){return(0,ae.U2)("problems/new.json")}function ot(xt="question"){return(0,ae.U2)("disciplines.json",{source:xt})}function _t(xt){return(0,ae.U2)(`problems/${xt}/edit.json`)}function Bt(xt,ft){return(0,ae.gz)(`problems/${xt}.json`,ft)}function vt(xt){return(0,ae.v_)("problems.json",xt)}function gt(xt,ft){return(0,ae.v_)(`exercises/${xt}/exercise_questions.json`,ft)}function kt(xt,ft){return(0,ae.gz)(`exercise_questions/${xt}.json`,ft)}function bt(xt){return(0,ae.v_)(`problems/${xt}/publish.json`)}function St(xt){return(0,ae.v_)(`problems/${xt}/cancel_publish.json`)}function Tt(xt){return(0,ae.U2)(`problems/${xt}/start.json`)}function mt(xt,ft){return post("tag_disciplines.json",{name:ft,sub_discipline_id:xt})}},72937:function(dn,fn,le){"use strict";le.d(fn,{D0:function(){return gt},R8:function(){return _t},jw:function(){return vt},y3:function(){return kt}});var ae=le(82326),Re=le(59301);const{Option:ot}=ae.default;var _t=(bt=>(bt[bt.language=0]="language",bt[bt.difficult=1]="difficult",bt[bt.category=2]="category",bt[bt.openOrNot=3]="openOrNot",bt))(_t||{});const Bt={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function vt(bt){return Bt[bt].map(St=>Re.createElement(ot,{key:St.title,value:St.key}," ",St.title," "))}function gt(bt,St){bt.map(Tt=>{const{id:mt,name:xt,sub_disciplines:ft}=Tt;let z={value:mt,label:xt};St.push(z),ft&&ft.length>0&&(z.children=[],gt(ft,z.children))})}function kt(bt,St){var Tt;let mt=[];for(let xt=0;xt0){mt[0]=ft.id;for(let z=0;zYt in Pe?dt(Pe,Yt,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Pe[Yt]=ne,Gt=(Pe,Yt)=>{for(var ne in Yt||(Yt={}))Ft.call(Yt,ne)&&jt(Pe,ne,Yt[ne]);if(Dt)for(var ne of Dt(Yt))Nt.call(Yt,ne)&&jt(Pe,ne,Yt[ne]);return Pe},Wt=(Pe,Yt)=>Pt(Pe,At(Yt)),Jt=(Pe,Yt,ne)=>new Promise((ve,Se)=>{var be=he=>{try{pe(ne.next(he))}catch(Ce){Se(Ce)}},fe=he=>{try{pe(ne.throw(he))}catch(Ce){Se(Ce)}},pe=he=>he.done?ve(he.value):Promise.resolve(he.value).then(be,fe);pe((ne=ne.apply(Pe,Yt)).next())});const{Dragger:Ut}=Re.default,Ht=Pe=>{const Yt=Ce=>Ce&&Ce.substring(0,Ce.lastIndexOf("."));for(var ne=[...Pe],ve=0,Se=[],be=0;be{if(Ce.forEach(de=>{let ye=de.name.split(/\.(?=[^\.]+$)/);de.name=`${ye[0]}.${ye[1].toLowerCase()}`}),Ce[0].name.includes(".in"))return Ce.length===2?Ce:[Ce[0],{}];if(Ce[0].name.includes(".out"))return Ce.length===2?Ce.reverse():[{},Ce[0]]})},oe=({onClose:Pe,onOK:Yt,visible:ne,wrapClassName:ve,rootIdentifier:Se,multiple:be=!1,defaultMultipleValue:fe=!0})=>{const[pe,he]=(0,ae.useState)([]),[Ce,de]=(0,ae.useState)({}),[ye,Ne]=(0,ae.useState)(!1),[xe,re]=(0,ae.useState)(!0),Kt=(0,ae.useRef)([]),wt=(0,ae.useRef)(0),Lt=()=>{Pe()};(0,ae.useEffect)(()=>{Xt()},[]),(0,ae.useEffect)(()=>{ne&&(Kt.current=[],wt.current=0,he([]),re(fe))},[ne]);const Xt=()=>Jt(void 0,null,function*(){try{const Me=yield(0,tt.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),Ae=JSON.parse((0,z.pe)(Me.data));de(Ae)}catch(Me){}}),ee=Me=>Me&&Me.substring(0,Me.lastIndexOf(".")),It=Me=>{var Ae,Be;const Ze=ee((Ae=Me[0])==null?void 0:Ae.name)||ee((Be=Me[1])==null?void 0:Be.name),Ye=pe.filter(Qe=>ee(Qe.name)!==Ze);Kt.current=[...Ye],he([...Ye])},Rt=Me=>{if(!xe){const He=new FormData;He.append("file",Me.file),(0,tt.ZP)("/api/attachments/get_file_content.json",{method:"post",body:He},!0).then(We=>{if(We.status===0){wt.current=wt.current+1;const Ve=Kt.current.map(rn=>{var an;if(rn.name===Me.name){const ln=Gt({},rn);return(an=Me==null?void 0:Me.name)!=null&&an.includes(".in")?ln.input=We==null?void 0:We.content:ln.output=We==null?void 0:We.content,ln}return rn});if(Kt.current=[...Ve],he([...Ve]),wt.current>0&&wt.current===pe.length){Ne(!1);let rn=Ht(Ve);rn=rn.filter(an=>{var ln,Sn;return!!((ln=an[0])!=null&&ln.name&&((Sn=an[1])!=null&&Sn.name))}),rn=rn.map(an=>Wt(Gt(Gt({},an[0]),an[1]),{is_file:!1})),Yt(rn),Pe()}}else Ne(!1),Pe()});return}const Ae=new(ft())({endpoint:Ce.end_point,region:Ce.region,accessKeyId:Ce.access_key_id,accessKeySecret:Ce.access_key_secret,bucket:Ce.bucket,stsToken:Ce.security_token}),Be=Me.name,Ze={container_type:"TestSet",file_name:Be},Ye=(0,at.Z)();let Qe=`testsets/${Se}/${Ye}${Be.indexOf(".")>-1?"."+Be.split(".").pop():""}`;Se===null&&(Qe=`testsets/${Ye}${Be.indexOf(".")>-1?"."+Be.split(".").pop():""}`),Ae.multipartUpload(Qe,new Blob([Me.file],{type:Me.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Be+""},url:Ce==null?void 0:Ce.callback_url,host:Ce==null?void 0:Ce.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,tt.rz)(Ze)}}).then(function(He){if(He.data.status===0){wt.current=wt.current+1;const Ue=Kt.current.map(We=>{var Ve,rn,an,ln,Sn,_n,Xn,Yn,Er,dr,Mr,Tr,Or,Sr,hr,zr,qt;if(We.name===((rn=(Ve=He.data)==null?void 0:Ve.data)==null?void 0:rn.file_name)){const jn=Gt({},We);return(Sn=(ln=(an=He.data)==null?void 0:an.data)==null?void 0:ln.file_name)!=null&&Sn.includes(".in")?(jn.in_object_key=(Xn=(_n=He.data)==null?void 0:_n.data)==null?void 0:Xn.object,jn.in_object_size=(Er=(Yn=He.data)==null?void 0:Yn.data)==null?void 0:Er.size,jn.input=(Mr=(dr=He.data)==null?void 0:dr.data)==null?void 0:Mr.file_name,jn.in_file=Me):(jn.out_object_key=(Or=(Tr=He.data)==null?void 0:Tr.data)==null?void 0:Or.object,jn.out_object_size=(hr=(Sr=He.data)==null?void 0:Sr.data)==null?void 0:hr.size,jn.output=(qt=(zr=He.data)==null?void 0:zr.data)==null?void 0:qt.file_name,jn.out_file=Me),jn}return We});if(Kt.current=[...Ue],he([...Ue]),wt.current>0&&wt.current===pe.length){Ne(!1);let We=Ht(Ue);We=We.filter(Ve=>{var rn,an;return!!((rn=Ve[0])!=null&&rn.name&&((an=Ve[1])!=null&&an.name))}),We=We.map(Ve=>Wt(Gt(Gt({},Ve[0]),Ve[1]),{is_file:!0})),Yt(We),Pe()}}})},Vt=Me=>new Promise((Ae,Be)=>{let Ze=0,Ye=[];for(let Qe=0;Qe{Ze++,Ze===Me.length&&(Ye.length?(ot.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Be()):Ae(Me))}).catch(He=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",He),Ze++,Ye.push(Me[Qe].name),Ze===Me.length&&(Ye.length?(ot.ZP.warning(`${Ye.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Be()):Ae(Me))})}),$t=()=>Jt(void 0,null,function*(){if(pe.length===0){ot.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Vt(pe),Ne(!0),Ht(pe).some(Ae=>{var Be,Ze;return!((Be=Ae[0])!=null&&Be.name&&((Ze=Ae[1])!=null&&Ze.name))})){_t.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Jt(void 0,null,function*(){pe.map(Ae=>Jt(void 0,null,function*(){Rt(Ae)}))}),onCancel:()=>{Ne(!1)}});return}pe.map(Ae=>Jt(void 0,null,function*(){Rt(Ae)}))}),ue={name:"file",fileList:pe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:Me=>{if(pe!=null&&pe.some(Be=>Be.name===Me.name))return ot.ZP.info(`${Me.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(Me.size/1024/1024>100)return ot.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Me.name))return ot.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const Ae={name:Me.name,uid:Me.uid,file:Me,percent:0};return pe.push(Ae),Kt.current=[...pe],he([...pe]),!1}},ge=Ht(pe);return console.log(pe,ge,"fileList"),ut.createElement(_t.default,{open:ne,wrapClassName:ve,onOk:$t,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ye},onCancel:Lt,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ut.createElement("div",{className:Tt.wrap},pe.length?ut.createElement("div",null,ut.createElement(Bt.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ut.createElement("div",{style:{visibility:be?"visible":"hidden"}},ut.createElement("span",{className:Tt.greyText},"\u7528\u4F8B\u7C7B\u578B"),ut.createElement(vt.ZP.Group,{className:`ml20 ${Tt.testCaseRadio}`,optionType:"button",value:xe,onChange:Me=>re(Me.target.value)},ut.createElement(vt.ZP,{value:!1},"\u6587\u672C"),ut.createElement(vt.ZP,{value:!0},"\u6587\u4EF6"))),ut.createElement(Re.default,Gt({},ue),ut.createElement(gt.ZP,{type:"primary",className:Tt.btnS},ut.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ut.createElement(se,{data:ge,onRemove:It})):ut.createElement("div",{className:`${Tt.noData} mb30`},ut.createElement(Re.default.Dragger,Wt(Gt({},ue),{className:Tt.dragger}),ut.createElement("img",{src:mt,alt:"",className:"mb20"}),ut.createElement("div",null,ut.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ut.createElement("span",{className:Tt.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ut.createElement("div",{className:Tt.text},ut.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ut.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ut.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ut.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ut.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ut.createElement("br",null))))},se=({data:Pe=[],onRemove:Yt,width:ne="auto",showScore:ve=!1,disabled:Se=!1,inputChange:be,onEvaluatingChange:fe,onSelectAll:pe,checkAll1:he,checkAll2:Ce,checkAll3:de,checkAll4:ye,checkAll5:Ne,showEvaluatingSetting:xe=!1,className:re="",isProgramHomework:Kt=!1})=>{const wt={value:"",filename:"",dataUrl:""},[Lt,Xt]=(0,ae.useState)(Gt({},wt)),ee=Vt=>{let $t=document.createElement("a");document.body.appendChild($t);let ue=URL.createObjectURL(Vt.file);$t.href=ue,$t.download=Vt.name,$t.click(),URL.revokeObjectURL(ue),document.body.removeChild($t)},It=(Vt,$t)=>{(0,it.LR)(Vt,$t)},Rt=(Vt,$t)=>{_t.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ut.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Yt(Vt,$t)},onCancel:()=>{}})};return Pe.length?ut.createElement("div",{className:re,style:{width:ne}},ut.createElement("div",{className:`${Kt?Tt.headProgram:Tt.head}`},xe&&ut.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ut.createElement(kt.default,{checked:he,onChange:Vt=>{pe(Vt.target.checked,"hidden")}}),ut.createElement(bt.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ut.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ut.createElement("div",{style:{width:Kt?"25%":"15%"}},"\u7528\u4F8B"),ut.createElement("div",{style:{width:ve?Kt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ut.createElement("div",{style:{width:ve?Kt?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),ve&&ut.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(kt.default,{checked:ye,onChange:Vt=>{pe(Vt.target.checked,"input_visible")}}),ut.createElement(bt.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(kt.default,{checked:Ce,onChange:Vt=>{pe(Vt.target.checked,"is_invisible")}}),ut.createElement(bt.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(kt.default,{checked:Ne,onChange:Vt=>{pe(Vt.target.checked,"actual_output_visible")}}),ut.createElement(bt.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),xe&&ut.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ut.createElement(kt.default,{checked:de,onChange:Vt=>{pe(Vt.target.checked,"last_match_rule")}}),ut.createElement(bt.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ut.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ut.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ut.createElement("div",{className:Tt.operation,style:Kt?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ut.createElement("div",{className:Tt.listWrapper,style:{boxShadow:Kt?"0px 2px 4px 0px #EAEEF4":"unset"}},Pe.map((Vt,$t)=>{var ue,ge,Me,Ae;return ut.createElement("div",{key:$t,className:Tt.list,style:Kt?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},xe&&ut.createElement("div",{style:{width:"15%"}},ut.createElement(kt.default,{checked:!!Vt.hidden,onChange:Be=>{fe(Be.target.checked,$t,"hidden")}})),ut.createElement("div",{style:{width:Kt?"25%":"15%",paddingLeft:Kt?"5px":"0px",paddingRight:Kt?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",$t+1),ut.createElement("div",{className:Tt.info,style:{width:ve?Kt?"20%":"15%":"25%"}},ut.createElement("span",{title:Vt.input||((ue=Vt[0])==null?void 0:ue.name),onClick:()=>Jt(void 0,null,function*(){let Be;Vt.input?Vt.input_file_url?Be=Vt.input_file_url:Be=Vt.in_file:Be=Vt[0];let Ze;typeof Be=="string"?(Ze=yield fetch(Be,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Xt({value:yield Ze.text(),filename:"",dataUrl:Be})):(Ze=yield(0,it.db)(Be.file),Xt({value:Ze.text,filename:Be.name,dataUrl:Ze.link}))})},Vt.input||((ge=Vt[0])==null?void 0:ge.name))),ut.createElement("div",{className:Tt.info,style:{width:ve?Kt?"20%":"15%":"25%"}},ut.createElement("span",{title:Vt.output||((Me=Vt[1])==null?void 0:Me.name),onClick:()=>Jt(void 0,null,function*(){let Be;Vt.input?Vt.output_file_url?Be=Vt.output_file_url:Be=Vt.out_file:Be=Vt[1];let Ze;typeof Be=="string"?(Ze=yield fetch(Be,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Xt({value:yield Ze.text(),filename:"",dataUrl:Be})):(Ze=yield(0,it.db)(Be.file),Xt({value:Ze.text,filename:Be.name,dataUrl:Ze.link}))})},Vt.output||((Ae=Vt[1])==null?void 0:Ae.name))),ve&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(St.default,{size:"large",addonAfter:Kt?"%":null,disabled:Se,style:{width:"80%"},onChange:Be=>be(Be,$t),value:Vt.score}),!Kt&&ut.createElement("span",null,"\xA0%")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(kt.default,{checked:Vt.input_visible||!1,onChange:Be=>{fe(Be.target.checked,$t,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(kt.default,{checked:Vt.is_invisible||!1,onChange:Be=>{fe(Be.target.checked,$t,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(kt.default,{checked:Vt.actual_output_visible||!1,onChange:Be=>{fe(Be.target.checked,$t,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),xe&&ut.createElement("div",{style:{width:"20%"}},ut.createElement(kt.default,{checked:Vt.last_match_rule||!1,onChange:Be=>{fe(Be.target.checked,$t,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ut.createElement("div",{onClick:()=>Rt(Vt,$t),style:Kt?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ut.createElement("span",{className:Tt.del},"\u5220\u9664")))})),ut.createElement(lt.Z,{close:!0,data:Lt.dataUrl,filename:Lt.filename,type:Lt.dataUrl.length?"txt":"",onClose:()=>Xt(Gt({},wt)),monacoEditor:{value:Lt.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ut.createElement(ut.Fragment,null)};var ce=oe},34269:function(dn,fn,le){"use strict";le.d(fn,{c:function(){return Re}});var ae=(ot=>(ot.FirstPage="firstPage",ot.PrevPage="prevPage",ot.NextPage="nextPage",ot))(ae||{}),Re=(ot=>(ot[ot.Single=0]="Single",ot[ot.Multiple=1]="Multiple",ot[ot.Judge=2]="Judge",ot[ot.Fill=3]="Fill",ot[ot.Subjective=4]="Subjective",ot[ot.Shixun=5]="Shixun",ot[ot.Program=6]="Program",ot[ot.Combine=7]="Combine",ot))(Re||{})},81428:function(dn,fn,le){"use strict";le.d(fn,{AL:function(){return dt},Iy:function(){return Tt},Qv:function(){return ft},ez:function(){return ut},jb:function(){return mt}});var ae=le(32834),Re=le.n(ae),ot=le(11690),_t=le.n(ot);let Bt=1;function vt(Nt,jt){const Gt=Nt.match(/^(\s+)(?:```)/);if(Gt===null)return jt;const Wt=Gt[1];return jt.split(` `).map(Jt=>{const Ut=Jt.match(/^\s+/);if(Ut===null)return Jt;const[Ht]=Ut;return Ht.length>=Wt.length?Jt.slice(Wt.length):Jt}).join(` `)}let gt=[],kt=["