You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Gradu...

144 lines
398 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4795],{26227:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ke}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},_e=We,Se=re(7657),ke=function(Ge,Ne){return fe.createElement(Se.Z,(0,ae.Z)({},Ge,{ref:Ne,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue},41464:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ke}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},_e=We,Se=re(7657),ke=function(Ge,Ne){return fe.createElement(Se.Z,(0,ae.Z)({},Ge,{ref:Ne,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue},61481:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ke}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},_e=We,Se=re(7657),ke=function(Ge,Ne){return fe.createElement(Se.Z,(0,ae.Z)({},Ge,{ref:Ne,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue},33853:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ke}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_e=We,Se=re(7657),ke=function(Ge,Ne){return fe.createElement(Se.Z,(0,ae.Z)({},Ge,{ref:Ne,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue},38819:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ke}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=We,Se=re(7657),ke=function(Ge,Ne){return fe.createElement(Se.Z,(0,ae.Z)({},Ge,{ref:Ne,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue},40862:function($e,rt){"use strict";rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},36103:function($e,rt,re){"use strict";var ae=re(59301),fe=Object.defineProperty,We=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,ke=(Ce,Ge,Ne)=>Ge in Ce?fe(Ce,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ce[Ge]=Ne,ue=(Ce,Ge)=>{for(var Ne in Ge||(Ge={}))_e.call(Ge,Ne)&&ke(Ce,Ne,Ge[Ne]);if(We)for(var Ne of We(Ge))Se.call(Ge,Ne)&&ke(Ce,Ne,Ge[Ne]);return Ce};const Ke=Ce=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));rt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},60803:function(){"use strict";function $e(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty($e.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty($e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty($e.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty($e.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof $e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var rt=[];function re(ne,a){var y=rt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=rt.pop();return ne===void 0?new go.Point:ne}function fe(ne){rt.push(ne)}function We(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,se=a);else{var le=(E-ee)/ge,Be=E-le*b;ie=ne,se=le*ie+Be}else if(ge===0){var Ie=(a-x)/oe,lt=a-Ie*ne;ie=b,se=Ie*ie+lt}else{var Ie=(a-x)/oe,le=(E-ee)/ge,lt=a-Ie*ne,Be=E-le*b;ie=(Be-lt)/(Ie-le),se=Ie*ie+lt}return te.x=ie,te.y=se,te}function _e(ne,a,y,x,b,E,z,ee,te,oe,ge,ie,se,le){var Be=1-te,Ie=te,lt=ne*Be+y*Ie,qe=a*Be+x*Ie,mt=y*Be+b*Ie,ce=x*Be+E*Ie,Ue=b*Be+z*Ie,et=E*Be+ee*Ie,Xe=lt*Be+mt*Ie,at=qe*Be+ce*Ie,Et=mt*Be+Ue*Ie,ht=ce*Be+et*Ie,Pt=Xe*Be+Et*Ie,Zt=at*Be+ht*Ie;oe.x=lt,oe.y=qe,ge.x=Xe,ge.y=at,ie.x=Pt,ie.y=Zt,se.x=Et,se.y=ht,le.x=Ue,le.y=et}var Se=new go.Spot(.156,.156),ke=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new $e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=Se,b.spot2=ke,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ue*y,(1-ue)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ue*y,ue*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new $e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new $e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new $e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ke=[];function Ce(){var ne=Ke.pop();return ne===void 0?[]:ne}function Ge(ne){ne.length=0,Ke.push(ne)}function Ne(ne){for(var a=Ce(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Te(ne){var a=Le(ne),y=Ce();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ge(a),y}function Le(ne){for(var a=Ne(ne),y=Ce(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],ge=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ge(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Ne(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Ne(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Ne(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Ne(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Ne(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Ne(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Ne(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Le(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Le(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Le(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Le(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Le(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Le(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ge(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ge(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new $e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new $e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=Se,E.spot2=ke,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new $e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new $e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new $e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=ue*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,ie,se,se);var le=ae(),Be=ae(),Ie=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ie,le,Be);var lt=ae(),qe=ae(),mt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,lt,qe,mt,se,se);var ce=ae(),Ue=ae(),et=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,et,ce,Ue),te.add(new go.PathSegment(go.PathSegment.Move,et.x*a,et.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ce.x*a,ce.y*y,Ue.x*a,Ue.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,et.x*a,et.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,mt.x*a,mt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,mt.x*a,mt.y*y,lt.x*a,lt.y*y,qe.x*a,qe.y*y).close()),fe(oe),fe(ge),fe(ie),fe(se),fe(le),fe(Be),fe(Ie),fe(lt),fe(qe),fe(mt),fe(ce),fe(Ue),fe(et),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var le=re(oe.x,oe.y);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,ie);var Be=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var Ie=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var lt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(lt),fe(te),fe(oe),fe(ge),fe(ie),fe(le),fe(Be),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new $e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new $e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=We(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new $e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=We(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new $e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=We(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=We(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new $e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new $e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=We(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new $e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new $e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=We(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new $e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new $e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=We(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new $e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ue*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-ue*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ue*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-ue*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,se=ue*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=ue*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=ue*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=ue*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=ue*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new $e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ue*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(E-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Be=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var Ie=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var lt=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),lt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=ue*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(oe),fe(ge),fe(ie),fe(se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,Be=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,se=z,le=z,Be=ge*se,Ie=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(Be+se)/2)*a,(te+(le+Ie)/2)*y,(ee-se)*a,(te+Ie)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ie)*y,(ee-Be)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+Be)*a,(te-le)*y,(ee+se)*a,(te-Ie)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ie)*y,(ee+(Be+se)/2)*a,(te+(le+Ie)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var lt=new go.PathFigure(.2*a,y,!1);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var qe=new go.PathFigure(.8*a,y,!1);return x.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=ue*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=ue*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*a,ie*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=ue*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=ue*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=ue*.05,se=.825,le=.95,Be=new go.PathFigure((se-ge)*a,le*y,!0);x.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y).close());var Ie=new go.PathFigure(0,y,!1);return x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ue*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=ue*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*ue,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),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")},75544: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 $e={},rt="5.0",re={},ae=null,fe=!1,We=!1,_e=null,Se=!1,ke=null,ue=null,Ke=0;Ke<arguments.length;Ke++){var Ce=arguments[Ke];if(Ce!==null)switch(typeof Ce){case"number":rt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?rt=Ce:_e=Ce;break;case"object":typeof Ce.is3D!="undefined"?ae=Ce:re=Ce;break;case"boolean":fe=Ce,We=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!We&&(fe=!0)),_e!==null&&re.id===void 0&&(re.id=_e);var Ge="",Ne="",Te=!1,Le=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(be){return parseFloat(be)>4?parseFloat(be):5};$e.setHTML5Codebase=function(be,ze){ue=be,ht(be,ze)},$e.setJavaCodebase=$e.setJavaCodebaseVersion=$e.isCompiledInstalled=$e.setPreCompiledScriptPath=$e.setPreCompiledResourcePath=function(){},$e.setHTML5CodebaseVersion=function(be,ze){var Qe=parseFloat(be);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}ke=be,Et(be,ze)},$e.getHTML5CodebaseVersion=function(){return ne},$e.getParameters=function(){return re},$e.setFontsCSSURL=function(be){z=be},$e.setGiacJSURL=function(be){},$e.setJNLPFile=function(be){Ge=be},$e.setJNLPBaseDir=function(be){},$e.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",Qe=re.id,Ft,nt=!1,Ct=0;Ct<arguments.length;Ct++){var de=arguments[Ct];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=de:Qe=arguments[Ct]):typeof de=="boolean"?nt=de:de instanceof HTMLElement&&(Ft=de)}gt();function gt(){if(!Se){setTimeout(gt,200);return}ze=Xe(ze);var $t=Ft||document.getElementById(Qe);if(!$t){console.log("possibly bug on ajax loading? ");return}if($e.removeExistingApplet($t,!1),re.width===void 0&&$t.clientWidth&&(re.width=$t.clientWidth),re.height===void 0&&$t.clientHeight&&(re.height=$t.clientHeight),!(re.width&&re.height)&&ze==="html5"&&(delete re.width,delete re.height),Le=ze,ze==="screenshot")qe($t,re);else{var Ut=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Ut=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Ut=(!oe()||be())&&ge()),Ut?(Le="screenshot",ce($t,re,nt,ze)):lt($t,re,nt)}}};function oe(){try{return window.self!==window.top}catch(be){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}$e.getViews=function(){return ae},$e.isJavaInstalled=function(){return!1};var ie=function(be){var ze=function(Ct){var de=JSON.parse(Ct),gt=function(kt){return kt.type=="G"||kt.type=="E"},$t=de.elements?de.elements.filter(gt)[0]:de;if(!$t||!$t.url){Qe();return}re.fileName=$t.url,se($t.settings||{}),ae.is3D=!0;var Ut="https://www.geogebra.org/images/";$e.setPreviewImage(x||$t.previewUrl,Ut+"GeoGebra_loading.png",Ut+"applet_play.png"),be()},Qe=function(){re.onError&&re.onError(),Pt("Error: Fetching material (id "+re.material_id+") failed.",re)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nt="/materials/"+re.material_id+"?scope=basic";le("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(nt),ze,Qe)};function se(be){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){be[Qe]=!!be[Qe]}),ze.forEach(function(Qe){re[Qe]===void 0&&be[Qe]!==void 0&&(re[Qe]=be[Qe])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(be,ze,Qe){var Ft=new XMLHttpRequest;Ft.open("GET",be),Ft.onload=function(){ze(Ft.responseText)},Ft.onerror=Qe,Ft.send()}$e.isHTML5Installed=function(){return!0},$e.getLoadedAppletType=function(){return Le},$e.setPreviewImage=function(be,ze,Qe){x=be,b=ze,E=Qe},$e.removeExistingApplet=function(be,ze){var Qe;typeof be=="string"&&(be=document.getElementById(be)),Le=null;var Ft=null;for(Qe=0;Qe<be.childNodes.length;Qe++){var nt=be.childNodes[Qe],Ct=nt.className;Ct==="applet_screenshot"?ze?(nt.style.display="block",Le="screenshot"):nt.style.display="none":Ct!=="applet_scaler prerender"&&(be.removeChild(nt),Ft=Ct&&Ct.indexOf("appletParameters")!=-1?nt.id:null,Qe--)}var de=re.id!==void 0?re.id:Ft,gt=window[de];gt&&typeof gt.getBase64=="function"&&(gt.remove(),window[de]=null)},$e.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=$e.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},$e.startAnimation=function(){var be=$e.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},$e.stopAnimation=function(){var be=$e.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},$e.getAppletObject=function(){var be=re.id!==void 0?re.id:"ggbApplet";return window[be]},$e.resize=function(){};var Be=function(be,ze,Qe){var Ft=document.createElement("param");Ft.setAttribute("name",ze),Ft.setAttribute("value",Qe),be.appendChild(Ft)},Ie=function(be){return be&&be!=="false"},lt=function(be,ze,Qe){te(ne)<=4.2&&(Qe=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var Ct=ze.width,de=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(te(ne)<=4.4)Ie(ze.showToolBar)&&(ze.height-=7),Ie(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&Ie(ze.showToolBar)&&(ze.width=605,Ct=605);else{var gt=100;(Ie(ze.showToolBar)||Ie(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),gt=Ie(ze.showMenuBar)?245:155),Ct<gt&&(ze.width=gt,Ct=gt)}nt.style.border="none",nt.style.display="inline-block";for(var $t in ze)ze.hasOwnProperty($t)&&$t!=="appletOnLoad"&&nt.setAttribute("data-param-"+$t,ze[$t]);z&&nt.setAttribute("data-param-fontscssurl",z),$e.resize=function(){GGBAppletUtils.responsiveResize(be,ze)},window.addEventListener("resize",function(vt){$e.resize()});var Ut=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!Qe&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var kt=be.querySelector(".applet_scaler.prerender"),De=kt!==null;if(De)var Fe=kt.querySelector(".ggb_preview");else{var Fe=et(Ct,de,ze.borderColor,!1);kt=document.createElement("div"),kt.className="applet_scaler",kt.style.position="relative",kt.style.display="block",kt.style.width=Ct+"px",kt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),te(ne)>=5?(ze.appletOnLoad=function(vt){var Rt=be.querySelector(".ggb_preview");Rt&&Rt.parentNode.removeChild(Rt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(kt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ut(vt)},De||kt.appendChild(Fe)):nt.appendChild(Fe),kt.appendChild(nt),De||be.appendChild(kt),setTimeout(function(){$e.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(nt),be.appendChild(ve),ze.appletOnLoad=function(vt){$e.resize(),Ut(vt)}}function He(vt,Rt){Rt&&typeof Rt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vt,Rt.appletOnLoad):renderGGBElement(vt),Pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Rt)}function Me(vt,Rt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vt,params:Rt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){He(Pn.article,Pn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(vt.className+=" geogebraweb")):He(vt,Rt)}if(Ft){scriptLoadStarted=!0;for(var dt=0;dt<nt.childNodes.length;dt++){var pt=nt.childNodes[dt].tagName;pt==="TABLE"&&(nt.removeChild(nt.childNodes[dt]),dt--)}if(ggbHTML5LoadedScript!==null){var Lt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Lt!=null&&Lt.parentNode.removeChild(Lt)}var Dt=document.createElement("script"),Ot=function(){Me(nt,ze)};Dt.src=Ne+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Dt.src,Pt("GeoGebra HTML5 codebase loaded: '"+Ne+"'.",ze),!ue&&(!ke||ke=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ne.requirejs?__webpack_require__.e(7989).then(function(){var vt=[__webpack_require__(87989)];Ot.apply(null,vt)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=Ot,be.appendChild(Dt))}else Me(nt,ze);ze.height=de,ze.width=Ct},qe=function(be,ze,Qe){var Ft=et(ze.width,ze.height,ze.borderColor,Qe),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=ze.width+"px",nt.style.height=ze.height+"px",nt.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),nt.appendChild(Ft);var Ct=GGBAppletUtils.getScale(ze,be,Qe);Qe?(be.appendChild(Ue()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),be.appendChild(nt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(nt,Ct),nt.style.width=ze.width+"px",nt.style.height=ze.height+"px",nt.parentNode.style.width=ze.width*Ct+"px",nt.parentNode.style.height=ze.height*Ct+"px"),$e.resize=function(){mt(be,Ft,nt,Qe)},window.addEventListener("resize",function(de){$e.resize()}),$e.resize()};function mt(be,ze,Qe,Ft){if(be.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var nt=GGBAppletUtils.getScale(re,be,Ft);Qe.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(Qe,nt),Qe.parentNode.style.width=re.width*nt+"px",Qe.parentNode.style.height=re.height*nt+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=re.width+"px",Qe.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}$e.onExitFullscreen=function(be,ze){ze.appendChild(be)};var ce=function(be,ze,Qe,Ft){qe(be,ze,!0);for(var nt=function(){var gt=[];for(de=0;de<be.childNodes.length;de++)gt.push(be.childNodes[de]);if(window.GGBT_wsf_view){var $t=window.GGBT_wsf_view.renderFullScreen(be,ze.id),Ut=document.getElementById("fullscreencontainer"),kt=jQuery(be).find(".fullscreencontent");kt.length>0?($t.remove(),kt.attr("id","fullscreencontent").show(),jQuery(Ut).append(kt),window.dispatchEvent(new Event("resize"))):lt($t,ze,!1),window.GGBT_wsf_view.launchFullScreen(Ut)}else Le=Ft,lt(be,ze,!1);if(!window.GGBT_wsf_view)for(de=0;de<gt.length;de++)be.removeChild(gt[de])},Ct=be.getElementsByClassName("ggb_preview_play"),de=0;de<Ct.length;de++)Ct[de].addEventListener("click",nt,!1),Ct[de].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=ze:Qe.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(Qe)}return be},et=function(be,ze,Qe,Ft){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=be-2+"px",nt.style.height=ze-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var Ct="lightgrey";Qe!==void 0&&(Qe==="none"?Ct="transparent":Ct=Qe),nt.style.border="1px solid "+Ct;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var gt,$t,Ut;if(!Ft){gt=document.createElement("img"),gt.style.position="absolute",gt.style.zIndex="1001",gt.style.opacity=1,de.style.opacity=.3,$t=360,$t>be/4*3&&($t=be/4*3),Ut=$t/5.8,gt.setAttribute("src",b),gt.setAttribute("width",$t),gt.setAttribute("height",Ut);var kt=(be-$t)/2,De=(ze-Ut)/2;gt.style.left=kt+"px",gt.style.top=De+"px",nt.appendChild(gt)}}return nt.appendChild(de),nt},Xe=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(be,ze){if(ne=be,ze){ht(ne,!0);return}var Qe=!fe;if(Qe){var Ft=te(ne);!isNaN(Ft)&&Ft<4.4&&(Qe=!1)}var nt,Ct;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var de=ne.indexOf("//");de>0?Ct=ne:de===0?Ct=nt+ne:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in at)if(ne.slice(at[gt].length*-1)===at[gt]||ne.slice((at[gt].length+1)*-1)===at[gt]+"/"){ht(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ie(re.showToolBar)&&!Ie(re.showMenuBar)&&!Ie(re.showAlgebraInput)&&!Ie(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",ht(Ct,!1)},ht=function(be,ze){if(be.requirejs){Ne=be;return}be.slice(-1)!=="/"&&(be+="/"),Ne=be,ze===null&&(ze=be.indexOf("http")===-1),Te=ze,a="web.nocache.js",y=!1;var Qe=Ne.split("/");Qe.length>1&&(!ze&&Qe[Qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):at.indexOf(Qe[Qe.length-2])>=0&&(a=Qe[Qe.length-2]+".nocache.js")),Qe=be.split("/"),ne=Qe[Qe.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Ft=parseFloat(ne);Ft!==NaN&&Ft<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),Et("5.0",ze))},Pt=function(be,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(be)};re.material_id!==void 0?ie(Zt):Zt();function Zt(){var be=rt;ke!==null?be=ke:parseFloat(be)<5&&(be="5.0"),Et(be,!1),ue!==null&&ht(ue,Te),Se=!0}return $e},GGBAppletUtils=function(){"use strict";function $e(){return window.GGBT_wsf_edit!==void 0}function rt(Se,ke){ke!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+ke+","+ke+")",Se.style.webkitTransform="scale("+ke+","+ke+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function re(Se,ke,ue,Ke,Ce,Ge){var Ne=null;if(Ge!=null&&Ge!="")for(var Te=Se.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+Ge+" ")>-1){Ne=Te;break}else Te=Te.parentNode;var Le=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ne)Le=Ne.offsetWidth,ne=Math.max(Ke?Ne.offsetWidth:0,Ne.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Le=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Le):(Le=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Le&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(x=Le-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return Se&&((ue===void 0||!ue)&&ke>0&&ke+y<Le?Le=ke:Le-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Le,height:ne}}function ae(Se,ke,ue,Ke,Ce){if(Se.isScreenshoGenerator)return 1;var Ge=Ke!==void 0&&Ke,Ne=Se.noScaleMargin!=null&&Se.noScaleMargin,Te=function(ee){return ee&&ee!=="false"},Le=Te(Se.autoHeight),ne=re(ke,Se.width,ue,Le,Ge&&window.GGBT_wsf_view||Ne,Ce),a=parseInt(ne.width),y=Se.width,x=Se.height;if(y===void 0){var b=ke.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ge?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(Se,ke,ue){var Ke=1,Ce,Ge=!1;if(Se.hasOwnProperty("allowUpscale")&&(Ge=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ke=parseFloat(Se.scale),(isNaN(Ke)||Ke===null||Ke===0)&&(Ke=1),Ke>1&&(Ge=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ce=ae(Se,ke,Ge,ue,Se.scaleContainerClass);else return Ke;return Ge&&(!Se.hasOwnProperty("scale")||Ke===1)?Ce:Math.min(Ke,Ce)}function We(Se){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=Se.getBoundingClientRect(),Ce=(ke-Ke.width)/2,Ge=(ue-Ke.height)/2;Ge<0&&(Ge=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?Se.style.left="40px":Se.style.left=Ce+"px",Se.style.top=Ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge<40?Se.style.top="40px":Se.style.top=Ge+"px",Se.style.left=Ce+"px")}function _e(Se,ke){var ue=Se.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ke=fe(ke,Se);$e()&&ue.setAttribute("data-param-scale",Ke);for(var Ce=null,Ge=0;Ge<Se.childNodes.length;Ge++)if(Se.childNodes[Ge].className!==void 0&&Se.childNodes[Ge].className.match(/^applet_scaler/)){Ce=Se.childNodes[Ge];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var Ne=ke.id!==void 0?ke.id:"ggbApplet",Te=window[Ne];(Te==null||!Te.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Ke)&&Ke!==1?(Ce.parentNode.style.width=ke.width*Ke+"px",Ce.parentNode.style.height=ke.height*Ke+"px",rt(Ce,Ke)):(rt(Ce,1),Ce.parentNode.style.width=ke.width+"px",Ce.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:$e,positionCenter:We,getScale:fe,scaleElement:rt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var $e=n.location.search;return $e.indexOf(J)!=-1||$e.indexOf(K)!=-1}function q($e,rt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function($e){var rt=s[L].bindings;s[L].bindings=function(){for(var re=rt?rt():{},ae=$e[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var We=ae[fe];re[We[O]]=We[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var $e=o.createElement(Q);if($e.id=L,$e.style.cssText=R+S,$e.tabIndex=-1,o.body.appendChild($e),t=$e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var rt=document.compatMode==U?V:W;t.write(rt+X),t.close()}}}function w($e){function rt(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=fe();if(We){ae();return}function _e(){if(!We){if(!fe())return;We=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var Se=setInterval(function(){_e()},$)}function re(ae){var fe=u(),We=fe.body,_e=fe.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=ae,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),We.appendChild(_e)}rt(function(){re($e)})}webModule.__startLoadingFragment=function($e){return C($e)},webModule.__installRunAsyncCode=function($e){var rt=u(),re=rt.body,ae=rt.createElement(_);ae.language=ab,ae.text=$e,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch($e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($e){var rt=c[$e];return rt==null?null:rt},r=d,webModule.__errFn=e}function B(){function $e(Se){var ke=Se.lastIndexOf(rb);ke==-1&&(ke=Se.length);var ue=Se.indexOf(sb);ue==-1&&(ue=Se.length);var Ke=Se.lastIndexOf(tb,Math.min(ue,ke));return Ke>=O?Se.substring(O,Ke+P):W}function rt(Se){if(!Se.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=Se+vb,Se=$e(ke.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ae(){for(var Se=o.getElementsByTagName(_),ke=O;ke<Se.length;++ke)if(Se[ke].src.indexOf(xb)!=-1)return $e(Se[ke].src);return W}function fe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function We(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var _e=re();return _e==W&&(_e=ae()),_e==W&&(_e=fe()),_e==W&&We()&&(_e=$e(o.location.href)),_e=rt(_e),_e}function C($e){return $e.match(/^\//)||$e.match(/^[a-zA-Z]+:\/\//)?$e:webModule.__moduleBase+$e}function D(){var $e=[],rt=O,re=[],ae=[];function fe(Se){var ke=ae[Se](),ue=re[Se];if(ke in ue)return ke;var Ke=[];for(var Ce in ue)Ke[ue[Ce]]=Ce;throw r&&r(Se,Ke,ke),null}if(__gwt_isKnownPropertyValue=function(Se,ke){return ke in re[Se]},webModule.__getPropMap=function(){var Se={};for(var ke in re)re.hasOwnProperty(ke)&&(Se[ke]=fe(ke));return Se},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var _e=We.indexOf(Db);_e!=-1&&(rt=parseInt(We.substring(_e+P),$),We=We.substring(O,_e))}catch(Se){}return webModule.__softPermutationId=rt,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},52882:function($e,rt,re){"use strict";re.d(rt,{Ax:function(){return _e},Ds:function(){return Se},KI:function(){return ue},SI:function(){return We},f1:function(){return fe}});var ae=re(26869);function fe(Ke){let Ce=!0;if(Ke.length>0){for(let Ge=0;Ge<Ke.length;Ge++)if(Ke[Ge].compile_success==0||!Ke[Ge].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function We(Ke,Ce=""){let Ge=[];for(let Ne=0;Ne<Ke.length;Ne++){let Te=Ke[Ne],Le=Ce?`${Ce}/${Te.name}`:`${Te.name}`;Ge.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:Le})}return Ge}function _e(Ke,Ce,Ge){for(let Ne=0;Ne<Ke.length;Ne++){let Te=Ke[Ne];if(Te.key===Ce){Te.children=Ge;break}Te.children&&_e(Te.children,Ce,Ge)}return Ke}function Se(Ke,Ce,Ge){let Ne;return function(){let Te=this,Le=arguments,ne=function(){Ne=null,Ge||Ke.apply(Te,Le)},a=Ge&&!Ne;clearTimeout(Ne),Ne=setTimeout(ne,Ce),a&&Ke.apply(Te,Le)}}const ke=!0,ue=ae.Z.API_SERVER},3353:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ne}});var ae=re(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=re(92310),_e=re.n(We),Se=re(71418),ke=re(2859),ue=re(97013),Ke=re(31735),Ce=(Te,Le,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Te,Le)).next())}),Ne=({data:Te,className:Le,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,ie]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&Be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Te==null?void 0:Te.visible]);const Be=()=>Ce(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ce=yield(0,Ke.ZJ)(Te==null?void 0:Te.src);z.current.src="",z.current.src=ce,z.current.onload=function(){mt()},ie(!1),le("")}),Ie=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},lt=ce=>Ce(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:ce.dataUrl}});Ue!=null&&Ue.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(ce.state)}})).status===0&&x():Ue!=null&&Ue.id&&x(Ue),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),qe=()=>{const ce=document.querySelector('a[href="https://markerjs.com/"]');ce&&ce.parentNode&&(ce.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(et=>{const Xe=document.querySelector(et.name);Xe&&Xe.setAttribute("title",et.title)})},mt=()=>{ee.current=new ke.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",lt),ee.current.addEventListener("beforeclose",Ie),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Te!=null&&Te.snapshotData&&ee.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return ae.createElement(ae.Fragment,null,(Te==null?void 0:Te.visible)&&ae.createElement(Se.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(fe.imageDimensions,Le,ne?fe.fullWidth:""),style:a},ae.createElement("img",{className:fe.img,ref:z}))))}},50047:function($e,rt,re){"use strict";var ae=re(59301),fe=re(95237),We=re(43604),_e=re(99313),Se=re(3113),ke=re(95318),ue=re(40862),Ke=re(48136),Ce=re(59301);const Ge=(0,ae.forwardRef)(({callback:Ne,showSaveButton:Te,value:Le=""},ne)=>{const a=(0,ae.useRef)(),y=[{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 "}]}]}],x=[{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}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ce.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ce.createElement("div",null,Ce.createElement(ke.Z,{value:`$$${ee.value}$$`}),ee.name),Ce.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ce.createElement("div",{key:ge},Ce.createElement("h1",null,oe.name),Ce.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ce.createElement(We.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ce.createElement(ke.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ce.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ce.createElement("div",null,Ce.createElement(ke.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ce.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ce.createElement("div",{key:ge},oe.name&&Ce.createElement("h1",null,oe.name),Ce.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ce.createElement(We.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ce.createElement(ke.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ne&&Ne(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ce.createElement("div",{className:ue.Z.mathWrap},Ce.createElement(_e.default,{defaultActiveKey:"1",items:E}),Ce.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Le||""),Te&&Ce.createElement("div",{className:ue.Z.button},Ce.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});rt.Z=Ge},2493:function($e,rt,re){"use strict";re.d(rt,{z:function(){return Ie},Z:function(){return lt}});var ae=re(59301),fe=re(54580),We=re(8591),_e=re(43418),Se=re(3113),ke=re(26869),ue=re(91554),Ke=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Te=(qe,mt,ce)=>mt in qe?Ke(qe,mt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):qe[mt]=ce,Le=(qe,mt)=>{for(var ce in mt||(mt={}))Ge.call(mt,ce)&&Te(qe,ce,mt[ce]);if(Ce)for(var ce of Ce(mt))Ne.call(mt,ce)&&Te(qe,ce,mt[ce]);return qe},ne=(qe,mt,ce)=>new Promise((Ue,et)=>{var Xe=ht=>{try{Et(ce.next(ht))}catch(Pt){et(Pt)}},at=ht=>{try{Et(ce.throw(ht))}catch(Pt){et(Pt)}},Et=ht=>ht.done?Ue(ht.value):Promise.resolve(ht.value).then(Xe,at);Et((ce=ce.apply(qe,mt)).next())});const a="\u3000\u3000";function y(qe){var mt=["Bytes","KB","MB","GB","TB"];if(qe==0)return"0 Byte";var ce=parseInt(""+Math.floor(Math.log(qe)/Math.log(1024)),10);return(qe/Math.pow(1024,ce)).toFixed(1)+" "+mt[ce]}var x=({value:qe=[],action:mt,onChange:ce,className:Ue,maxSize:et=150,title:Xe="\u6587\u4EF6\u4E0A\u4F20",accept:at=null})=>{const Et={multiple:!1,fileList:qe,accept:at,withCredentials:!0,beforeUpload:Pt=>Pt.size/1024/1024<et?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${et}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(Pt){var Zt,be,ze,Qe;let Ft=[...Pt.fileList];if(Ft=Ft.map(nt=>(nt.name.indexOf(a)===-1&&(nt.name=`${nt.name}${a}${y(nt.size)}`),Le({},nt))),Pt.file.status==="done"&&((be=(Zt=Pt.file)==null?void 0:Zt.response)==null?void 0:be.status)===-1){message.error((Qe=(ze=Pt.file)==null?void 0:ze.response)==null?void 0:Qe.message),ce([]);return}ce(Ft)},onRemove:Pt=>ne(void 0,null,function*(){const Zt=Pt.size/1024/1024;return Pt.status==="uploading"?!0:Zt<et&&(Pt.response?Pt.response.id:Pt.uid)?yield removeAttachment(Pt.response?Pt.response.id:Pt.id):!0})};function ht(Pt){Pt.preventDefault(),Pt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Ue||""}`},React.createElement(Upload,Le({},Et),React.createElement(Button,{type:"primary",title:qe.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:qe.length>0,ghost:!0},Xe),React.createElement("span",{onClick:ht,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",et,"M)"," ")))},b=re(61481),E=re(89392),z=re(36103),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ie=(qe,mt,ce)=>mt in qe?ee(qe,mt,{enumerable:!0,configurable:!0,writable:!0,value:ce}):qe[mt]=ce,se=(qe,mt)=>{for(var ce in mt||(mt={}))oe.call(mt,ce)&&ie(qe,ce,mt[ce]);if(te)for(var ce of te(mt))ge.call(mt,ce)&&ie(qe,ce,mt[ce]);return qe},le=(qe,mt,ce)=>new Promise((Ue,et)=>{var Xe=ht=>{try{Et(ce.next(ht))}catch(Pt){et(Pt)}},at=ht=>{try{Et(ce.throw(ht))}catch(Pt){et(Pt)}},Et=ht=>ht.done?Ue(ht.value):Promise.resolve(ht.value).then(Xe,at);Et((ce=ce.apply(qe,mt)).next())});const{Dragger:Be}=fe.default;function Ie(qe){let mt=[];return qe&&qe.length>0&&(mt=qe.map(ce=>({uid:ce.id,id:ce.id,name:ce.title+a+ce.filesize,url:ce.url,filesize:ce.filesize,status:"done",response:{id:ce.id}}))),mt}var lt=({value:qe,onChange:mt,action:ce,data:Ue,className:et,maxSize:Xe=150,title:at="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Et=!1,accept:ht="",additionalText:Pt,isDragger:Zt,number:be=1e3,aloneClear:ze=!1,realTimeRemove:Qe=!0,uploadText:Ft,setFileProgress:nt,showFileProgress:Ct})=>{const[de,gt]=(0,ae.useState)(!1);let[$t,Ut]=(0,ae.useState)(qe||[]),[kt,De]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{qe&&(kt===1&&Ut([...qe]),De(2),be===(qe==null?void 0:qe.length)&&gt(!0))},[qe]);const Fe=()=>{setTimeout(()=>{$t.pop(),Ut([...$t])},500)};Ct&&nt($t.some(Me=>Me.status==="uploading"));const ve={multiple:!0,disabled:de,accept:ht,withCredentials:!0,fileList:$t,beforeUpload:(Me,dt)=>{const pt=Me.size/1024/1024;return $t.concat(dt).length>be?($t.pop(),Ut([...$t]),We.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${be}\u4E2A\u6587\u4EF6`),ze?Promise.reject():(Fe(),!1)):pt<Xe?!0:(We.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Xe}MB).`),ze?Promise.reject():(Fe(),!1))},data:Ue,action:ce||`${ke.Z.API_SERVER}/api/attachments.json`,onChange(Me){var dt,pt,Lt,Dt;if(Me.file.status==="removed"?$t=Me.fileList:$t=(0,E.uniqBy)([...Me.fileList,...$t],"uid"),Me.file.status==="done"&&((pt=(dt=Me.file)==null?void 0:dt.response)==null?void 0:pt.status)===-1){We.ZP.error((Dt=(Lt=Me.file)==null?void 0:Lt.response)==null?void 0:Dt.message);return}$t.length>=be?gt(!0):gt(!1),Ut([...$t]),$t=$t.map(Ot=>{var vt,Rt;return(vt=Ot==null?void 0:Ot.response)!=null&&vt.id&&(Ot.url=(Rt=Ot==null?void 0:Ot.response)==null?void 0:Rt.url),Ot.name.indexOf(a)===-1&&(Ot.name=`${Ot.name}${a}${y(Ot.size)}`),se({},Ot)}),console.log("info:",Me,$t),mt($t)},onRemove:Me=>le(void 0,null,function*(){if(!Qe)return!0;const dt=()=>le(void 0,null,function*(){if(Me.response?Me.response.id:Me.id){let Lt=yield(0,ue.JZ)(Me.response?Me.response.id:Me.uid);return Promise.resolve(Lt)}else return!0});return Et?new Promise((pt,Lt)=>{_e.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>le(void 0,null,function*(){const Dt=yield dt();We.ZP.success("\u5220\u9664\u6210\u529F"),pt(!0)}),onCancel:()=>pt(!1)})}):yield dt()})};function He(Me){Me.preventDefault(),Me.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${et||""}`},Zt&&ae.createElement(Be,se({},ve),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(b.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Xe,"MB)"," "),Pt),!Zt&&ae.createElement(fe.default,se({},ve),ae.createElement(Se.ZP,{disabled:de,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:z.Z}),at),ae.createElement("span",{onClick:He,className:"upload_text"},Ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Xe}MB)`)))}},92928:function($e,rt,re){"use strict";re.d(rt,{h:function(){return ee}});var ae=re(59301),fe=re(57809),We=re(78241),_e=re(3113),Se=re(89780),ke=re.n(Se),ue=re(2018),Ke=re(66551),Ce=Object.defineProperty,Ge=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ce(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Le.call(oe,ge)&&a(te,ge,oe[ge]);if(Te)for(var ge of Te(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>Ge(te,Ne(oe));const b=fe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={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"]};rt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(Be){ie(z[Be][1])}function le(Be){te(Be)}return ae.createElement(We.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:Be=>Be.parentNode,onChange:se},Object.keys(z).map(Be=>ae.createElement(b,{key:Be,value:Be},z[Be][0])))),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,Be]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ie=function(lt){const qe=lt.getValue();oe&&oe(qe)};return le.on("change",Ie),()=>{le.off("change",Ie)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ie=ke().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Be(Ie)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},86401:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Jn}});var ae=re(59301),fe=re(89780),We=re.n(fe),_e=re(76374),Se=re(2018),ke=re(6313),ue=re(25717),Ke=re(99498),Ce=re(25419),Ge=re(67549),Ne=re(95318),Te=({value:pe="",className:ye,showTextOnly:Pe,showLines:ot,style:xt={}})=>{const yt=(0,ae.useMemo)(()=>"",[pe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:yt}}))},Le=re(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(pe,ye,Pe)=>ye in pe?ne(pe,ye,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ye]=Pe,ee=(pe,ye)=>{for(var Pe in ye||(ye={}))b.call(ye,Pe)&&z(pe,Pe,ye[Pe]);if(x)for(var Pe of x(ye))E.call(ye,Pe)&&z(pe,Pe,ye[Pe]);return pe},te=(pe,ye)=>a(pe,y(ye));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:pe,title:ye,icon:Pe,actionName:ot,className:xt="",children:yt}){function gn(){pe(ot)}return Le.createElement("a",{title:ye,className:xt,onClick:gn},Le.createElement("i",{className:`${Pe}`}),yt)}var ie=({watch:pe,showNullButton:ye,showNullProgramButton:Pe,onActionCallback:ot,fullScreen:xt,insertTemp:yt,hidetoolBar:gn,extraUse:jt})=>{const Yt=[...oe,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Le.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Yt.map((vn,kn)=>Le.createElement("li",{key:kn},vn.actionName?Le.createElement(ge,te(ee({},vn),{onActionCallback:ot})):Le.createElement("span",{className:"v-line"}))),ye?Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ot},Le.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Le.createElement(Le.Fragment,null,Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ot},Le.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ot},Le.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,yt&&Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yt}`,onActionCallback:ot},Le.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),jt&&Le.createElement("li",null,jt),Le.createElement("li",{className:"btn-full-screen"},Le.createElement(ge,{icon:`${xt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ot})))},se=re(35990),le=re(78241),Be=re(92832),Ie=re(3113),lt=Object.defineProperty,qe=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Xe=(pe,ye,Pe)=>ye in pe?lt(pe,ye,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ye]=Pe,at=(pe,ye)=>{for(var Pe in ye||(ye={}))Ue.call(ye,Pe)&&Xe(pe,Pe,ye[Pe]);if(ce)for(var Pe of ce(ye))et.call(ye,Pe)&&Xe(pe,Pe,ye[Pe]);return pe},Et=(pe,ye)=>qe(pe,mt(ye));const ht={labelCol:{span:4},wrapperCol:{span:20}};var Pt=({callback:pe,onCancel:ye})=>{function Pe(ot){pe(ot)}return ae.createElement(le.default,Et(at({},ht),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Be.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Be.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},Zt=re(92928),be=re(82441),ze=re(43418),Qe=re(95237),Ft=re(3353),nt=re(59301),Ct=({callback:pe,onCancel:ye})=>{const Pe=document.createElement("canvas"),ot=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,ot.fillStyle="#ffffff",ot.fillRect(0,0,Pe.width,Pe.height);const xt=Pe.toDataURL("image/png");return nt.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(Qe.Z,{style:{height:"100vh"}},nt.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xt,visible:!0,title:String(Date.now())},onOk:yt=>{pe({src:yt.url})},onClose:ye})))},de=re(12378);function gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(gt,go.CommandHandler),gt.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},gt.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var ye=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ye=Math.min(Pe.position.x,ye))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ye,Pe.position.y))}),pe.commitTransaction("aligning left")},gt.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var ye=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var ot=Pe.actualBounds.x+Pe.actualBounds.width;ye=Math.max(ot,ye)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ye-Pe.actualBounds.width,Pe.position.y))}),pe.commitTransaction("aligning right")},gt.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var ye=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ye=Math.min(Pe.position.y,ye))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ye))}),pe.commitTransaction("alignTop")},gt.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var ye=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var ot=Pe.actualBounds.y+Pe.actualBounds.height;ye=Math.max(ot,ye)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ye-Pe.actualBounds.height))}),pe.commitTransaction("aligning bottom")},gt.prototype.alignCenterX=function(){var pe=this.diagram,ye=pe.selection.first();if(ye){pe.startTransaction("aligning Center X");var Pe=ye.actualBounds.x+ye.actualBounds.width/2;pe.selection.each(function(ot){ot instanceof go.Link||ot.move(new go.Point(Pe-ot.actualBounds.width/2,ot.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},gt.prototype.alignCenterY=function(){var pe=this.diagram,ye=pe.selection.first();if(ye){pe.startTransaction("aligning Center Y");var Pe=ye.actualBounds.y+ye.actualBounds.height/2;pe.selection.each(function(ot){ot instanceof go.Link||ot.move(new go.Point(ot.actualBounds.x,Pe-ot.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},gt.prototype.alignColumn=function(pe){var ye=this.diagram;ye.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var Pe=new Array;ye.selection.each(function(jt){jt instanceof go.Link||Pe.push(jt)});for(var ot=0;ot<Pe.length-1;ot++){var xt=Pe[ot],yt=xt.actualBounds.y+xt.actualBounds.height+pe,gn=Pe[ot+1];gn.move(new go.Point(xt.actualBounds.x,yt))}ye.commitTransaction("align Column")},gt.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var ye=this.diagram;ye.startTransaction("align Row");var Pe=new Array;ye.selection.each(function(jt){jt instanceof go.Link||Pe.push(jt)});for(var ot=0;ot<Pe.length-1;ot++){var xt=Pe[ot],yt=xt.actualBounds.x+xt.actualBounds.width+pe,gn=Pe[ot+1];gn.move(new go.Point(yt,xt.actualBounds.y))}ye.commitTransaction("align Row")},gt.prototype.canRotate=function(pe){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<1)},gt.prototype.rotate=function(pe){pe===void 0&&(pe=90);var ye=this.diagram;ye.startTransaction("rotate "+pe.toString());var ye=this.diagram;ye.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=pe)}),ye.commitTransaction("rotate "+pe.toString())},gt.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var ye=new go.Map;pe.selection.each(function(Pe){ye.set(Pe.layer,0)}),ye.iteratorKeys.each(function(Pe){var ot=0;Pe.parts.each(function(xt){if(!xt.isSelected){var yt=xt.zOrder;isNaN(yt)?xt.zOrder=0:ot=Math.max(ot,yt)}}),ye.set(Pe,ot)}),pe.selection.each(function(Pe){gt._assignZOrder(Pe,ye.get(Pe.layer)+1)}),pe.commitTransaction("pullToFront")},gt.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var ye=new go.Map;pe.selection.each(function(Pe){ye.set(Pe.layer,0)}),ye.iteratorKeys.each(function(Pe){var ot=0;Pe.parts.each(function(xt){if(!xt.isSelected){var yt=xt.zOrder;isNaN(yt)?xt.zOrder=0:ot=Math.min(ot,yt)}}),ye.set(Pe,ot)}),pe.selection.each(function(Pe){gt._assignZOrder(Pe,ye.get(Pe.layer)-1-gt._findGroupDepth(Pe))}),pe.commitTransaction("pushToBack")},gt._assignZOrder=function(pe,ye,Pe){Pe===void 0&&(Pe=pe),pe.layer===Pe.layer&&(pe.zOrder=ye),pe instanceof go.Group&&pe.memberParts.each(function(ot){gt._assignZOrder(ot,ye+1,Pe)})},gt._findGroupDepth=function(pe){if(pe instanceof go.Group){var ye=0;return pe.memberParts.each(function(Pe){ye=Math.max(ye,gt._findGroupDepth(Pe))}),ye+1}else return 0},gt.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var ye=pe.lastInput;if(ye.key==="Up"||ye.key==="Down"||ye.key==="Left"||ye.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},gt.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(ye){pe.push(ye)}),this.diagram.parts.each(function(ye){pe.push(ye)}),pe},gt.prototype._arrowKeyMove=function(){var pe=this.diagram,ye=pe.lastInput,Pe=0,ot=0;if(ye.control||ye.meta)Pe=1,ot=1;else if(pe.grid!==null){var xt=pe.grid.gridCellSize;ot=xt.width,Pe=xt.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(yt){ye.key==="Up"?yt.move(new go.Point(yt.actualBounds.x,yt.actualBounds.y-Pe)):ye.key==="Down"?yt.move(new go.Point(yt.actualBounds.x,yt.actualBounds.y+Pe)):ye.key==="Left"?yt.move(new go.Point(yt.actualBounds.x-ot,yt.actualBounds.y)):ye.key==="Right"&&yt.move(new go.Point(yt.actualBounds.x+ot,yt.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},gt.prototype._arrowKeySelect=function(){var pe=this.diagram,ye=pe.lastInput,Pe=null;ye.key==="Up"?Pe=this._findNearestPartTowards(270):ye.key==="Down"?Pe=this._findNearestPartTowards(90):ye.key==="Left"?Pe=this._findNearestPartTowards(180):ye.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ye.shift?Pe.isSelected=!0:ye.control||ye.meta?Pe.isSelected=!Pe.isSelected:pe.select(Pe))},gt.prototype._findNearestPartTowards=function(pe){var ye=this.diagram.selection.first();if(ye===null)return null;for(var Pe=ye.actualBounds.center,ot=this._getAllParts(),xt=1/0,yt=ye,gn=0;gn<ot.length;gn++){var jt=ot[gn];if(jt!==ye&&jt.canSelect()){var Yt=jt.actualBounds.center,vn=Pe.directionPoint(Yt),kn=this._angleCloseness(vn,pe);if(kn<=45){var tt=Pe.distanceSquaredPoint(Yt);tt*=1+Math.sin(kn*Math.PI/180),tt<xt&&(xt=tt,yt=jt)}}}return yt},gt.prototype._angleCloseness=function(pe,ye){return Math.min(Math.abs(ye-pe),Math.min(Math.abs(ye+360-pe),Math.abs(ye-360-pe)))},gt.prototype._arrowKeyTree=function(){var pe=this.diagram,ye=pe.selection.first();if(ye instanceof go.Node){var Pe=pe.lastInput;if(Pe.key==="Right"){if(!ye.isTreeLeaf)if(!ye.isTreeExpanded)pe.commandHandler.canExpandTree(ye)&&pe.commandHandler.expandTree(ye);else{var ot=this._sortTreeChildrenByY(ye).first();ot!==null&&pe.select(ot)}}else if(Pe.key==="Left")if(!ye.isTreeLeaf&&ye.isTreeExpanded)pe.commandHandler.canCollapseTree(ye)&&pe.commandHandler.collapseTree(ye);else{var xt=ye.findTreeParentNode();xt!==null&&pe.select(xt)}else if(Pe.key==="Up"){var xt=ye.findTreeParentNode();if(xt!==null){var yt=this._sortTreeChildrenByY(xt),gn=yt.indexOf(ye);if(gn>0){for(var jt=yt.elt(gn-1);jt!==null&&jt.isTreeExpanded&&!jt.isTreeLeaf;){var Yt=this._sortTreeChildrenByY(jt);jt=Yt.last()}jt!==null&&pe.select(jt)}else pe.select(xt)}}else if(Pe.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var ot=this._sortTreeChildrenByY(ye).first();ot!==null&&pe.select(ot)}else for(;ye!==null;){var xt=ye.findTreeParentNode();if(xt===null)break;var yt=this._sortTreeChildrenByY(xt),gn=yt.indexOf(ye);if(gn<yt.length-1){pe.select(yt.elt(gn+1));break}else ye=xt}var vn=pe.selection.first();vn!==null&&pe.scrollToRect(vn.actualBounds)}},gt.prototype._sortTreeChildrenByY=function(pe){var ye=new go.List().addAll(pe.findTreeChildrenNodes());return ye.sort(function(Pe,ot){var xt=Pe.location,yt=ot.location;return xt.y<yt.y?-1:xt.y>yt.y?1:xt.x<yt.x?-1:xt.x>yt.x?1:0}),ye},gt.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},gt.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var $t=gt,Ut=re(60803),kt=re(43604),De=re(97013),Fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=re(59301),He=(pe,ye,Pe)=>new Promise((ot,xt)=>{var yt=Yt=>{try{jt(Pe.next(Yt))}catch(vn){xt(vn)}},gn=Yt=>{try{jt(Pe.throw(Yt))}catch(vn){xt(vn)}},jt=Yt=>Yt.done?ot(Yt.value):Promise.resolve(Yt.value).then(yt,gn);jt((Pe=Pe.apply(pe,ye)).next())});function Me({onCancel:pe,callback:ye}){let Pe=(0,ae.useRef)(),ot=(0,ae.useRef)(),xt=(0,ae.useRef)(),yt=(0,ae.useRef)(!1);const gn=(0,ae.useRef)(!1),[jt,Yt]=(0,ae.useState)(0);function vn(){const tt=de.bx.make,Jt={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"};Pe.current=new de.S0(ot.current,{padding:20,grid:tt(de.s_,"Grid",tt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ye=>{var St=Ye.diagram.commandHandler.addTopLevelParts(Ye.diagram.selection,!0);St||Ye.diagram.currentTool.doCancel()},commandHandler:tt($t),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ye=>{var St=Ye.subject;St.location=St.location.copy().snapToGridPoint(Ye.diagram.grid.gridOrigin,Ye.diagram.grid.gridCellSize),setTimeout(()=>{Ye.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ye=>{var St=Ye.subject;setTimeout(()=>{Ye.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ye=>{var St=Ye.parameter.part;St.invalidateConnectedLinks();var Gt=Ye.subject;Ye.diagram.toolManager.linkingTool.isForwards?Gt.toNode.invalidateConnectedLinks():Gt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=tt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),tt(de.bn,{name:"SHAPE",fill:Jt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=tt("ToolTip",tt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},tt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),tt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function An(Ye,St){var Gt=(ct,Xt)=>{ct.handled=!0,ct.diagram.model.commit(Vt=>{var At=Xt.part.adornedPart,un=new de.E9().setRectSpot(At.actualBounds,Ye);un.subtract(At.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(At.location),un.snapToGridPoint(ct.diagram.grid.gridOrigin,ct.diagram.grid.gridCellSize);var cn=Vt.copyNodeData(At.data);Vt.setGroupKeyForNodeData(cn,Vt.getGroupKeyForNodeData(At.data)),Vt.addNodeData(cn);var oa={from:At.key,to:Vt.getKeyForNodeData(cn)};Vt.addLinkData(oa);var Qn=ct.diagram.findNodeForData(cn);Qn.location=un,ct.diagram.select(Qn),setTimeout(()=>{ct.diagram.commandHandler.editTextBlock()},20)})};return tt(de.bn,{figure:St,alignment:Ye,alignmentFocus:Ye.opposite(),width:Ye.equals(de.z6.Top)||Ye.equals(de.z6.Bottom)?25:18,height:Ye.equals(de.z6.Top)||Ye.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Jt.white,strokeWidth:4,mouseEnter:(ct,Xt)=>Xt.fill="dodgerblue",mouseLeave:(ct,Xt)=>Xt.fill="orange",isActionable:!0,click:Gt,contextClick:Gt})}function Zn(Ye){return tt(de.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:(St,Gt)=>Gt.fill="dodgerblue",mouseLeave:(St,Gt)=>Gt.fill="orange",click:(St,Gt)=>{St.diagram.commandHandler.showContextMenu(Gt.part.adornedPart)}},Ye||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=tt(de.uz,"Spot",tt(de.Vm,{padding:10}),An(de.z6.Top,"TriangleUp"),An(de.z6.Left,"TriangleLeft"),An(de.z6.Right,"TriangleRight"),An(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Bn(Ye,St){return(Gt,ct)=>{Gt.handled=!0,Gt.diagram.model.commit(Xt=>{Xt.set(ct.part.adornedPart.data,Ye,St)})}}function me(Ye,St){return St||(St="color"),tt(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ye,margin:1,background:"transparent",mouseEnter:(Gt,ct)=>ct.stroke="dodgerblue",mouseLeave:(Gt,ct)=>ct.stroke="lightgray",click:Bn(St,Ye),contextClick:Bn(St,Ye)})}function Oe(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.white,"fill"),me(Jt.beige,"fill"),me(Jt.extralightblue,"fill"),me(Jt.extralightred,"fill"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.lightgray,"fill"),me(Jt.lightgreen,"fill"),me(Jt.lightblue,"fill"),me(Jt.lightred,"fill")))]}function Ee(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.black),me(Jt.green),me(Jt.blue),me(Jt.red))),tt("ContextMenuButton",tt(de.s_,"Horizontal",me(Jt.white),me(Jt.magenta),me(Jt.purple),me(Jt.orange)))]}function Ae(Ye,St){return St||(St="thickness"),tt(de.bn,"LineH",{width:16,height:16,strokeWidth:Ye,margin:1,background:"transparent",mouseEnter:(Gt,ct)=>ct.background="dodgerblue",mouseLeave:(Gt,ct)=>ct.background="transparent",click:Bn(St,Ye),contextClick:Bn(St,Ye)})}function Ve(Ye,St){return St||(St="dash"),tt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ye,margin:1,background:"transparent",mouseEnter:(Gt,ct)=>ct.background="dodgerblue",mouseLeave:(Gt,ct)=>ct.background="transparent",click:Bn(St,Ye),contextClick:Bn(St,Ye)})}function Je(){return[tt("ContextMenuButton",tt(de.s_,"Horizontal",Ae(1),Ae(2),Ae(3),Ae(4))),tt("ContextMenuButton",tt(de.s_,"Horizontal",Ve(null),Ve([2,4]),Ve([4,4])))]}function Ze(Ye,St){return St||(St="figure"),tt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ye,margin:1,background:"transparent",mouseEnter:(Gt,ct)=>ct.fill="dodgerblue",mouseLeave:(Gt,ct)=>ct.fill="lightgray",click:Bn(St,Ye),contextClick:Bn(St,Ye)})}Pe.current.nodeTemplate.contextMenu=tt("ContextMenu",tt("ContextMenuButton",tt(de.s_,"Horizontal",Ze("Rectangle"),Ze("RoundedRectangle"),Ze("Ellipse"),Ze("Diamond"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",Ze("Parallelogram2"),Ze("ManualOperation"),Ze("Procedure"),Ze("Cylinder1"))),tt("ContextMenuButton",tt(de.s_,"Horizontal",Ze("Terminator"),Ze("CreateRequest"),Ze("Document"),Ze("TriangleDown"))),Oe(),Ee(),Je()),Pe.current.groupTemplate=tt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ye,St)=>{var Gt=St.addMembers(St.diagram.selection,!0);Gt||St.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),tt(de.s_,"Auto",{name:"BODY"},tt(de.bn,{parameter1:10,fill:Jt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.Vm,{background:"transparent",margin:20})),tt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=tt(de.uz,"Spot",tt(de.s_,"Auto",tt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=tt("ContextMenu",Oe(),Ee(),Je()),Pe.current.linkTemplate=tt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ye=>Ye>=1?10:0),new de.KX("toShortLength","dir",Ye=>Ye>=1?10:0),new de.KX("points").makeTwoWay(),tt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),tt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ye=>Ye===1)),tt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ye=>Ye>=1),new de.KX("width","thickness",Ye=>7+3*Ye),new de.KX("height","thickness",Ye=>7+3*Ye),new de.KX("segmentOffset","thickness",Ye=>new de.E9(-15,4+1.5*Ye))),tt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ye=>Ye===2),new de.KX("width","thickness",Ye=>7+3*Ye),new de.KX("height","thickness",Ye=>7+3*Ye),new de.KX("segmentOffset","thickness",Ye=>new de.E9(-15,4+1.5*Ye))),tt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=tt(de.uz,tt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Re(2)},new de.KX("pathPattern","thickness",Re)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Re(Ye){return tt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ye+4).toString()+" H3"})}function zt(Ye){var St="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ye===0?St="M0 0 M16 16 M0 8 L16 8":Ye===2&&(St="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tt(de.bn,{geometryString:St,margin:2,background:"transparent",mouseEnter:(Gt,ct)=>ct.background="dodgerblue",mouseLeave:(Gt,ct)=>ct.background="transparent",click:Bn("dir",Ye),contextClick:Bn("dir",Ye)})}function Nt(Ye){var St=(Gt,ct)=>{Gt.handled=!0,Gt.diagram.model.commit(Xt=>{var Vt=ct.part.adornedPart;Xt.set(Vt.data,Ye?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ye?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return tt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Gt,ct)=>ct.background="dodgerblue",mouseLeave:(Gt,ct)=>ct.background="transparent",click:St,contextClick:St})}function we(Ye,St){var Gt=0,ct=de.z6.RightSide;Ye.equals(de.z6.Top)?(Gt=270,ct=de.z6.TopSide):Ye.equals(de.z6.Left)?(Gt=180,ct=de.z6.LeftSide):Ye.equals(de.z6.Bottom)&&(Gt=90,ct=de.z6.BottomSide),St||(Gt-=180);var Xt=(Vt,At)=>{Vt.handled=!0,Vt.diagram.model.commit(un=>{var cn=At.part.adornedPart;un.set(cn.data,St?"toSpot":"fromSpot",de.z6.stringify(ct)),(St?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return tt(de.bn,{alignment:Ye,alignmentFocus:Ye.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Gt,background:"transparent",mouseEnter:(Vt,At)=>At.background="dodgerblue",mouseLeave:(Vt,At)=>At.background="transparent",click:Xt,contextClick:Xt})}Pe.current.linkTemplate.contextMenu=tt("ContextMenu",Ee(),Je(),tt("ContextMenuButton",tt(de.s_,"Horizontal",zt(0),zt(1),zt(2))),tt("ContextMenuButton",tt(de.s_,"Horizontal",tt(de.s_,"Spot",Nt(!1),we(de.z6.Top,!1),we(de.z6.Left,!1),we(de.z6.Right,!1),we(de.z6.Bottom,!1)),tt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Nt(!0),we(de.z6.Top,!0),we(de.z6.Left,!0),we(de.z6.Right,!0),we(de.z6.Bottom,!0)))));const nn=`{ "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 qt=["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 fn(Ye){return console.log("shapeName:",Ye),qt.indexOf(Ye)>=0}var xn=new de.YI(xt.current,{maxSelectionCount:1,linkTemplate:tt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:tt(de.uz,"Link",{locationSpot:de.z6.Center},tt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),tt(de.bn,{isPanelMain:!0,strokeWidth:2}),tt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ye=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ye.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ye){var St;const Gt=Ye.subject.part;var ct=(St=document.activeElement)==null?void 0:St.value;typeof ct=="string"&&ct.trim()===""&&Pe.current.model.commit(function(Xt){Xt.set(Gt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),xn.nodeTemplate=tt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),tt(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),tt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=tt(de.s_,"Grid",tt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const kn=()=>He(this,null,function*(){var tt=Pe.current.makeImage();const Jt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:tt.src}});ye({src:Jt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vn()},500),Yt(jt+1),()=>{Pe.current=null}),[]),ve.createElement("div",{ref:gn,className:yt.current?`${Fe.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!jt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Qe.Z,null,ve.createElement(kt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(kt.Z,{onClick:()=>{var tt,Jt,An=Pe.current.selection.first();if(yt.current=!yt.current,document.activeElement&&An){let Zn=(Jt=(tt=document.activeElement)==null?void 0:tt.value)==null?void 0:Jt.trim();typeof Zn=="string"&&Pe.current.model.commit(function(Bn){Bn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Yt(jt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Fe.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:Fe.myPaletteDiv,ref:xt})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:ot,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(Ie.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var dt=Me,pt=re(5112),Lt=re(5871);const Dt=pt.ZP.Group,Ot={margin:"0 8px"};var vt=({callback:pe,onCancel:ye})=>{function Pe(ot){pe(ot)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Ot},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Lt.Z,null)),ae.createElement("span",{style:Ot},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Lt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Dt,null,ae.createElement(pt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(pt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(pt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(pt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},Rt=re(78673),Pn=re(75544),wn=re.n(Pn),on=(0,ae.forwardRef)(({use3d:pe,width:ye,height:Pe,callback:ot,showSaveButton:xt},yt)=>{const gn=(0,ae.useRef)(),jt=(0,ae.useRef)(),[Yt,vn]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:gn,appName:"graphing",width:ye||1e3,height:Pe||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)(()=>{jt.current=new(wn())(kn.current,!0),window.onload=function(){jt.current.inject("applet_container")}},[]);const tt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return ot&&ot(Jt),Jt};return(0,ae.useEffect)(()=>{kn.current.appName=Yt?"3D":"graphing",jt.current.inject("applet_container")},[Yt]),(0,ae.useEffect)(()=>{vn(pe)},[pe]),(0,ae.useImperativeHandle)(yt,()=>({getImgData:tt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),ae.createElement(Qe.Z,{align:"middle"},ae.createElement(kt.Z,{flex:1},ae.createElement(Rt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Yt,onChange:Jt=>vn(Jt)})),ae.createElement(kt.Z,null,ae.createElement(Ie.ZP,{size:"large",onClick:tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),en=re(50047),he=re(1012),xe=re(8591);const je="link",it="upload-image",ut="add-flowchart",It="draw-image",Tt="add-flowchart",wt="code-block",Mt="add-table",Kt="------------",Wt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Qt=re(61904),Sn=(pe,ye,Pe)=>new Promise((ot,xt)=>{var yt=Yt=>{try{jt(Pe.next(Yt))}catch(vn){xt(vn)}},gn=Yt=>{try{jt(Pe.throw(Yt))}catch(vn){xt(vn)}},jt=Yt=>Yt.done?ot(Yt.value):Promise.resolve(Yt.value).then(yt,gn);jt((Pe=Pe.apply(pe,ye)).next())});function hn(){}let Fn=0;const rn=1e4,tn="\u2581",pn="@\u2581\u2581@",En="@\u2581@",Cn=`
**\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`,sn=["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 Nn(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[je]:"\u6DFB\u52A0\u94FE\u63A5",[wt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[it]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[ut]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Mt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:pe="",onChange:ye,width:Pe="100%",height:ot=400,miniToolbar:xt=!1,isFocus:yt=!1,watch:gn,insertTemp:jt,mode:Yt="markdown",id:vn="markdown-editor-id",showResizeBar:kn=!1,noStorage:tt=!1,showNullButton:Jt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:Bn=!1,onBlur:me,onCMBeforeChange:Oe,onFullScreen:Ee,className:Ae="",disablePaste:Ve=!1,disabled:Je=!1,disabledFill:Ze=!1,placeholder:Re="",values:zt="",extraUse:Nt})=>{const[we,nn]=(0,ae.useState)(null),[qt,fn]=(0,ae.useState)(pe),[xn,Ye]=(0,ae.useState)(gn),[St,Gt]=(0,ae.useState)(Bn),[ct,Xt]=(0,ae.useState)(""),[Vt,At]=(0,ae.useState)(0),[un,cn]=(0,ae.useState)(ot),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,he.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>Sn(void 0,null,function*(){var Bt;const st=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Bt=st==null?void 0:st.attachments)!=null&&Bt.length&&(console.log("cm:",we,ta),st.attachments.map(ft=>{ft.content_type.indexOf("image")>-1?we.replaceSelection(`![,](/api/attachments/${ft.id}?type=${ft.content_type})`):ft.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ft.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type}&disposition=inline" target="_blank">${ft.name}</a>`):we.replaceSelection(`[${ft.name}](${ENV.API_SERVER}/api/attachments/${ft.id}?type=${ft.content_type})`)}))});(0,ae.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;fn(zt),we==null||we.setValue(zt),window.scrollTo(0,Bt)},[zt]),(0,ae.useEffect)(()=>{Ee==null||Ee(St)},[St]),(0,ae.useEffect)(()=>{if(ta.current){let Bt=function(ft,bt){var ln;if(Ve){bt.preventDefault();return}const zn=bt.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(bt.preventDefault(),Yt=="stex")return;try{let jn=Dn[1];((ln=Dn[0])==null?void 0:ln.kind)==="file"&&(jn=Dn[0]);const _n=jn.getAsFile(),sa=_n.name.split(".").pop();(0,be.I)(_n,Kn=>{var Ht,dn,Ln;Kn.id?((Ht=_n==null?void 0:_n.type)==null?void 0:Ht.indexOf("image"))>-1?st.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((dn=_n==null?void 0:_n.type)==null?void 0:dn.indexOf("video"))>-1?st.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((Ln=_n==null?void 0:_n.type)==null?void 0:Ln.indexOf("pdf"))>-1?st.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):sn.includes(sa)?st.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):st.replaceSelection(`[${_n.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(xe.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const st=We().fromTextArea(ta.current,{mode:Yt,lineNumbers:!xt,lineWrapping:!0,value:pe,autoCloseTags:!An,autoCloseBrackets:!0});return st.on("keyup",function(ft,bt){bt.keyCode===8&&(ft.getValue()==""?st.setOption("placeholder",Re):st.setOption("placeholder",null))}),st.on("keydown",function(ft,bt){if(bt.keyCode===8){var ln=_t(ft);ln&&bt.preventDefault()}}),yt&&st.focus(),st.on("paste",Bt),st.on("dragleave",function(ft,bt){ga.current.classList.remove("mouse-hover-md")}),Je&&st.on("beforeChange",function(ft,bt){(bt.origin==="paste"||bt.origin==="+input")&&bt.cancel()}),nn(st),()=>{st.off("paste",Bt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[un,ga,St]);(0,ae.useEffect)(()=>{function Bt(){let st=new _e.Z(ft=>{for(let bt of ft)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(fa(),we.setSize("100%","100%"),we.refresh())});return st.observe(ta.current.parentElement),st}if(we){const st=Bt();return()=>{var ft,bt;(ft=ta.current)!=null&&ft.parentElement&&st.unobserve((bt=ta.current)==null?void 0:bt.parentElement)}}},[we,fa]),(0,ae.useEffect)(()=>{if(we){let Bt=[];for(const[st,ft]of Object.entries(Wn)){let bt={[st]:()=>{On(ft)}};Bt.push(bt),we.addKeyMap(bt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let st of Bt)we.removeKeyMap(st)}}},[we]),(0,ae.useEffect)(()=>{Bn!==St&&Gt(Bn)},[Bn]),(0,Qt.Z)(()=>{if(!tt&&Vt>0){let Bt=new Date().getTime(),st=window.sessionStorage.getItem(vn);Bt>=Vt+rn&&(!st||st!==qt)&&(window.sessionStorage.setItem(vn,qt),Qn(!0))}},rn),(0,ae.useEffect)(()=>{Ye(gn)},[we,gn]),(0,ae.useEffect)(()=>{we&&yt&&we.focus()},[we,yt]),(0,ae.useEffect)(()=>{if(xn&&we){let Bt=function(ft){let bt=ft.target;if(aa.current){let ln=bt.scrollTop/bt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*ln}};const st=we.getScrollerElement();return st.addEventListener("scroll",Bt),()=>{st.removeEventListener("scroll",Bt)}}},[we,xn]),(0,ae.useEffect)(()=>{if(we&&Oe){let Bt=function(st,ft){Oe(st,ft)};return we.on("beforeChange",Bt),()=>{we.off("beforeChange",Bt)}}},[we,Oe]),(0,ae.useEffect)(()=>{if(we&&me){let Bt=function(){me(we.getValue())};return we.on("blur",Bt),()=>{we.off("blur",Bt)}}},[we,me]);function _t(Bt,st){var ft=Bt.getDoc(),bt=ft.getCursor(),ln=ft.getLine(bt.line),zn=ln.charAt(bt.ch-1),Rn=ln.lastIndexOf("@\u2581@",bt.ch),Dn=ln.lastIndexOf("@\u2581\u2581@",bt.ch),jn=Rn>Dn?Rn:Dn,_n=Rn>Dn?3:4;if(pn.indexOf(zn)===-1)return null;if(console.log("change1:",st,Bt,ln,bt,jn,Rn,Dn,zn),jn>=0&&bt.ch-jn<5){var sa=jn+_n;return ft.replaceRange("",{line:bt.line,ch:jn},{line:bt.line,ch:sa}),{line:bt.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(we){let Bt=function(st,ft){const bt=st.getValue();fn(bt),At(new Date().getTime()),st.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ye&&(An?ye(bt,Gn(bt)):ye(bt))};return we.on("change",Bt),()=>{we.off("change",Bt)}}},[we,ye]),(0,ae.useEffect)(()=>{if(we)if(pe==null)we.setValue(""),fn("");else{const Bt=window.scrollY||window.pageYOffset;pe!==we.getValue()&&(we.setValue(pe),fn(pe),we.setCursor(Je?1:we.lineCount(),0),window.scrollTo(0,Bt))}},[we,pe]);const On=(0,ae.useCallback)(Bt=>{const st=we.getCursor(),ft=we.getSelection();let bt=ft.split(`
`);switch(Bt){case"bold":return we.replaceSelection("**"+ft+"**"),ft===""&&we.setCursor(st.line,st.ch+2),we.focus();case"italic":return we.replaceSelection("*"+ft+"*"),ft===""&&we.setCursor(st.line,st.ch+1),we.focus();case"code":return we.replaceSelection("`"+ft+"`"),ft===""&&we.setCursor(st.line,st.ch+1),we.focus();case"inline-latex":return Xt("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+ft+"\n```"),we.setCursor(st.line+1,ft.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
`),we.focus();case"list-ul":return ft===""?we.replaceSelection("- "+ft):we.replaceSelection(bt.map(ln=>ln===""?"":`- ${ln}`).join(`
`)),we.focus();case"list-ol":return ft===""?we.replaceSelection("1. "+ft):we.replaceSelection(bt.map((ln,zn)=>ln===""?"":`${zn+1}. ${ln}`).join(`
`)),we.focus();case"add-null-ch":return ft===""&&we.setCursor(st.line,st.ch),we.replaceSelection(tn),we.focus();case"add-signal":return ft===""&&we.setCursor(st.line,st.ch),we.replaceSelection(En),we.focus();case"add-multiple":return ft===""&&we.setCursor(st.line,st.ch),we.replaceSelection(pn),we.focus();case"inster-template-1":return ft===""&&we.setCursor(st.line,st.ch),we.replaceSelection(Cn),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return Ye(!xn),we.focus();case"trigger-full-screen":return Gt(!St),we.focus();case je:Xt(je);return;case wt:Xt(wt);return;case it:Xt(it);return;case It:Xt(It);return;case"maths-latex":Xt("maths-latex");return;case ut:Xt(ut);return;case Mt:Xt(Mt);return;default:throw new Error}},[we,xn,St]),Mn=(0,ae.useCallback)((Bt,st)=>{var ft,bt,ln,zn,Rn,Dn;switch(Xt(""),ct){case je:const{title:Ht,link:dn}=Bt;return we.replaceSelection(`[${Ht}](${dn})`),we.focus();case wt:const{language:Ln,content:an}=Bt;return we.replaceSelection(["```"+Ln,an,"```"].join(`
`)),we.focus();case"maths-latex":for(var jn=atob(Bt),_n=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)_n[sa]=jn.charCodeAt(sa);var Kn=new Blob([_n],{type:"image/png"});(0,be.I)(Kn,ma=>{ma.id?we.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+Bt+"$$`");break;case it:case It:case Tt:const{src:mn,alt:Hn}=Bt,bn=st,ha=(ln=(bt=(ft=bn==null?void 0:bn.name)==null?void 0:ft.split("."))==null?void 0:bt.pop)==null?void 0:ln.call(bt);return((zn=bn==null?void 0:bn.type)==null?void 0:zn.indexOf("image"))>-1||!(bn!=null&&bn.type)?bn.align||bn.width?we.replaceSelection(`<p style="text-align:${bn.align||"initial"}"><img width="${bn.width?bn.width+"%":"initial"}" src="${mn}" alt="${Hn||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${mn}" alt="${Hn||""}" />`):((Rn=bn==null?void 0:bn.type)==null?void 0:Rn.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Dn=bn==null?void 0:bn.type)==null?void 0:Dn.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${mn}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):sn.includes(ha)?we.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):we.replaceSelection(`[${bn.name}](${mn})`),we.focus();case Mt:const{row:ua,col:wa,align:Ca}=Bt;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&xa.push(Wt[Ca]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
`}return we.replaceSelection(Fa+`
`),we.focus();default:throw new Error}},[we,ct]),Un=(0,ae.useMemo)(()=>{switch(ct){case je:return ae.createElement(Pt,{callback:Mn,onCancel:Xn});case wt:return ae.createElement(Zt.Z,{callback:Mn,onCancel:Xn});case it:return ae.createElement(be.Z,{callback:Mn,onCancel:Xn});case ut:return ae.createElement(dt,{callback:Mn,onCancel:Xn});case Mt:return ae.createElement(vt,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(on,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(en.Z,{showSaveButton:!0,callback:Mn});default:return null}},[ct]);function Xn(){Xt("")}(0,ae.useEffect)(()=>{if(ia.current){let Bt=function(Rn){ln=!0,zn=Rn.pageY},st=function(){ln=!1},ft=function(Rn){if(ln){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=ot+Dn+"px";cn(jn)}},bt=ia.current,ln=!1,zn=0;return bt.addEventListener("mousedown",Bt),document.addEventListener("mousemove",ft),document.addEventListener("mouseup",st),()=>{bt.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",ft),document.removeEventListener("mouseup",st)}}},[we,ia]),(0,ae.useEffect)(()=>{cn(ot)},[ot]);const ra=Nn(Pe),va=Nn(un),pa={width:ra,height:va},Tn=(0,ae.useMemo)(()=>{if(Vt){let Bt=new Date(Vt),st=Bt.getHours(),ft=Bt.getMinutes(),bt=Bt.getSeconds();return st=st<10?"0"+st:st,ft=ft<10?"0"+ft:ft,bt=bt<10?"0"+bt:bt,`${st}:${ft}:${bt}`}return 0},[Vt]),Gn=Bt=>{const st=[];if(An){let ft=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(bt,ln,zn){st.push({multiLine:bt!==En})})}return st};function la(){window.sessionStorage.removeItem(vn),Qn(!1),At(0)}function ya(){Qn(!1),At(0),we.setValue(window.sessionStorage.getItem(vn))}(0,ae.useEffect)(()=>{na[ct]&&ct!==It&&ct!==ut&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],st=window.innerWidth/2-Bt.offsetWidth/2,ft=window.innerHeight/2-Bt.offsetHeight/2;da(st),$n(ft)},0)},[ct]);const La=Bt=>{Bt.preventDefault();const st=Bt.clientX-Pa,ft=Bt.clientY-Vn;document.body.onmousemove=bt=>{let ln=bt.clientX-st,zn=bt.clientY-ft;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;ln=Math.max(0,Math.min(ln,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(bt.clientX,bt.clientY,st,ft)&&(da(ln),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Bt,st,ft,bt)=>{const ln=document.body.clientHeight,zn=document.body.clientWidth;return Bt<20&&ft>Bt||Bt>zn-20&&ft<Bt||st<20&&bt>st||st>ln-20&&bt<st?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${Ae} ${xn?"on-preview":""} ${xt?"mini":""} ${St?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:jt,watch:xn,fullScreen:St,showNullButton:Jt,showNullProgramButton:An,onActionCallback:On,hidetoolBar:Zn,extraUse:Nt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:Re})),xn?ae.createElement("div",{ref:aa,className:"preview-container"},Yt==="stex"&&ae.createElement(Te,{value:qt}),Yt!=="stex"&&ae.createElement(Ne.Z,{disabledFill:Ze,showProgramFill:An,value:qt})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,ct===It&&ae.createElement(Ct,{callback:Mn,onCancel:Xn}),ct===ut&&ae.createElement(dt,{callback:Mn,onCancel:Xn}),ae.createElement(se.Z,null,na[ct]&&ct!==It&&ct!==ut?ae.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ct]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ct===ut?"1200px":null,height:ct===ut?"80vh":null,className:"markdown-popup-form"},Un):null))}},82441:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return ge},I:function(){return se}});var ae=re(78241),fe=re(8591),We=re(92832),_e=re(81327),Se=re(5871),ke=re(5112),ue=re(3113),Ke=re(52882),Ce=re(59301),Ge=re(11968),Ne=re(59301),Te=Object.defineProperty,Le=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Be,Ie)=>Be in le?Te(le,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):le[Be]=Ie,E=(le,Be)=>{for(var Ie in Be||(Be={}))y.call(Be,Ie)&&b(le,Ie,Be[Ie]);if(a)for(var Ie of a(Be))x.call(Be,Ie)&&b(le,Ie,Be[Ie]);return le},z=(le,Be)=>Le(le,ne(Be));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Be})=>{const[Ie]=ee();let lt=(0,Ce.useRef)();function qe(Ue){lt.current.width=Ie.getFieldValue("width"),lt.current.align=Ie.getFieldValue("align"),le(Ue,lt.current)}function mt(Ue,et){if(Ue.status===-1){fe.ZP.error(Ue.message);return}Ie.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:et.type})}function ce(Ue){let et=Ue.target.files[0];lt.current=et,se(et,mt)}return Ne.createElement(ae.default,z(E({form:Ie},oe),{className:"upload-image-panel",onFinish:qe,style:{width:470,overflow:"hidden"}}),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ne.createElement("div",{className:"flex-container"},Ne.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ne.createElement(We.default,{style:te})),Ne.createElement(ie,{onFileChange:ce}))),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ne.createElement(We.default,{style:{width:264}})),Ne.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ne.createElement(_e.Z,null,Ne.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ne.createElement(Se.Z,{style:{width:264}})),Ne.createElement("span",{className:"ml8"},"%"))),Ne.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ne.createElement(ke.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"}]})),Ne.createElement("aside",null,Ne.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ne.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ne.createElement(ue.ZP,{type:"default",onClick:Be},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return Ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ne.createElement("input",{type:"file",onChange:le}))}function se(le,Be){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ge.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ie=new FormData;Ie.append("editormd-image-file",le),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(qe){Be(JSON.parse(qe.target.responseText),le)},!1),lt.addEventListener("error",function(qe){console.error(qe)},!1),lt.open("POST",`${Ke.KI}/api/attachments.json`),lt.send(Ie)}},35990:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return We}});var ae=re(59301),fe=re(4676);class We extends ae.Component{constructor(Se){super(Se);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,fe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},61904:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return fe}});var ae=re(59301);function fe(We,_e){const Se=(0,ae.useRef)();(0,ae.useEffect)(()=>{Se.current=We}),(0,ae.useEffect)(()=>{function ke(){Se.current()}if(_e!==null){let ue=setInterval(ke,_e);return()=>clearInterval(ue)}},[_e])}},54332:function($e,rt,re){"use strict";re.r(rt),re.d(rt,{default:function(){return ge}});var ae=re(59301),fe=re(86401),We=re(58106),_e=re(78241),Se=re(8591),ke=re(66104),ue=re(95237),Ke=re(43604),Ce=re(57809),Ge=re(92832),Ne=re(28103),Te=re(3113),Le={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ne=re(24251),a=re(2493),y=Object.defineProperty,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ie,se,le)=>se in ie?y(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,ee=(ie,se)=>{for(var le in se||(se={}))b.call(se,le)&&z(ie,le,se[le]);if(x)for(var le of x(se))E.call(se,le)&&z(ie,le,se[le]);return ie},te=(ie,se,le)=>new Promise((Be,Ie)=>{var lt=ce=>{try{mt(le.next(ce))}catch(Ue){Ie(Ue)}},qe=ce=>{try{mt(le.throw(ce))}catch(Ue){Ie(Ue)}},mt=ce=>ce.done?Be(ce.value):Promise.resolve(ce.value).then(lt,qe);mt((le=le.apply(ie,se)).next())});const oe=({graduation:ie,globalSetting:se,loading:le,user:Be,dispatch:Ie})=>{var lt;const qe=(0,We.useParams)(),mt=(0,We.useLocation)(),{userInfo:ce}=Be,[Ue]=_e.default.useForm(),{addTopicData:et}=ie,Xe=()=>te(void 0,null,function*(){var at;const Et=Ue.getFieldsValue(),ht=ee({},Et);ht!=null&&ht.attachment_ids&&(ht.attachment_ids=(at=ht.attachment_ids)==null?void 0:at.map(Zt=>Zt.id||Zt.response.id));const Pt=yield(0,ne.Sv)(ee({coursesId:qe.coursesId,attachment_ids:[]},ht));Pt.status?Se.ZP.error(Pt.message):We.history.push(`/classrooms/${qe.coursesId}/graduation_tasks/${qe.categoryId}`)});return(0,ae.useEffect)(()=>{Ie({type:"graduation/addTopicDefaultData",payload:ee({},qe)})},[qe.coursesId]),ae.createElement("section",{className:"edu-container"},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ce&&ae.createElement(ke.Z,{separator:">"},ae.createElement(ke.Z.Item,null,ae.createElement(We.Link,{to:`${ce.first_category_url}`},(lt=ce==null?void 0:ce.course)==null?void 0:lt.course_name)),ae.createElement(ke.Z.Item,null,ae.createElement(We.Link,{to:`/classrooms/${qe.coursesId}/graduation_tasks/${qe.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(ke.Z.Item,null,"\u65B0\u5EFA"))),ae.createElement("aside",{className:[Le.title,"mt20"].join(" ")},ae.createElement(ue.Z,{style:{width:"100%"}},ae.createElement(Ke.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Ke.Z,null,ae.createElement(We.Link,{className:"font16 c-light-black",to:`/classrooms/${qe.coursesId}/exercise`},"\u8FD4\u56DE"))))),ae.createElement("section",{className:[Le.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ae.createElement(_e.default,{layout:"vertical",form:Ue,scrollToFirstError:!0,onFinish:at=>te(void 0,null,function*(){Xe()})},ae.createElement(_e.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},ae.createElement(Ce.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},ae.createElement(Ce.default.Option,{value:1},"\u666E\u901A"),ae.createElement(Ce.default.Option,{value:2},"\u5206\u7EC4"))),ae.createElement(_e.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},ae.createElement(Ge.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ae.createElement(Ne.Z,null),ae.createElement(_e.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(fe.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),ae.createElement(ue.Z,null,ae.createElement(Ke.Z,null,ae.createElement(_e.default.Item,{name:"attachment_ids"},ae.createElement(a.Z,null)))))),ae.createElement("aside",{className:Le.btns},ae.createElement(Te.ZP,{type:"primary",onClick:()=>{Ue.submit()}},"\u4FDD\u5B58"),ae.createElement(We.Link,{to:`/classrooms/${qe.coursesId}/graduation_tasks/${qe.categoryId}`},"\u53D6\u6D88")))};var ge=(0,We.connect)(({graduation:ie,loading:se,user:le,globalSetting:Be})=>({graduation:ie,globalSetting:Be,user:le,loading:se.effects}))(oe)},91554:function($e,rt,re){"use strict";re.d(rt,{$J:function(){return We},JZ:function(){return Se},bN:function(){return ue},jP:function(){return ke},rO:function(){return _e}});var ae=re(97013),fe=(Ke,Ce,Ge)=>new Promise((Ne,Te)=>{var Le=y=>{try{a(Ge.next(y))}catch(x){Te(x)}},ne=y=>{try{a(Ge.throw(y))}catch(x){Te(x)}},a=y=>y.done?Ne(y.value):Promise.resolve(y.value).then(Le,ne);a((Ge=Ge.apply(Ke,Ce)).next())});function We(Ke){return(0,ae.U2)(`libraries/${Ke}.json`)}function _e(Ke){return(0,ae.U2)("library_tags.json",Ke)}function Se(Ke){return fe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ke}.json`)).status===0})}function ke(Ke){return(0,ae.v_)("libraries.json",Ke)}function ue(Ke,Ce){return(0,ae.gz)(`libraries/${Ke}.json`,Ce)}},56762:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return fe}});var ae=re(59301);function fe(){const[,We]=ae.useReducer(_e=>_e+1,0);return We}},66104:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return mt}});var ae=re(92310),fe=re.n(ae),We=re(11592),_e=re(26112),Se=re(59301),ke=re(92343),ue=re(36355),Ke=re(84105),Ce=re(91857);const Ge=ce=>{let{children:Ue}=ce;const{getPrefixCls:et}=Se.useContext(ue.E_),Xe=et("breadcrumb");return Se.createElement("li",{className:`${Xe}-separator`,"aria-hidden":"true"},Ue===""?Ue:Ue||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Ne=Ge,Te=function(ce,Ue){var et={};for(var Xe in ce)Object.prototype.hasOwnProperty.call(ce,Xe)&&Ue.indexOf(Xe)<0&&(et[Xe]=ce[Xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Xe=Object.getOwnPropertySymbols(ce);at<Xe.length;at++)Ue.indexOf(Xe[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,Xe[at])&&(et[Xe[at]]=ce[Xe[at]]);return et};function Le(ce,Ue){if(ce.title===void 0||ce.title===null)return null;const et=Object.keys(Ue).join("|");return typeof ce.title=="object"?ce.title:String(ce.title).replace(new RegExp(`:(${et})`,"g"),(Xe,at)=>Ue[at]||Xe)}function ne(ce,Ue,et,Xe){if(et==null)return null;const{className:at,onClick:Et}=Ue,ht=Te(Ue,["className","onClick"]),Pt=Object.assign(Object.assign({},(0,_e.Z)(ht,{data:!0,aria:!0})),{onClick:Et});return Xe!==void 0?Se.createElement("a",Object.assign({},Pt,{className:fe()(`${ce}-link`,at),href:Xe}),et):Se.createElement("span",Object.assign({},Pt,{className:fe()(`${ce}-link`,at)}),et)}function a(ce,Ue){return(Xe,at,Et,ht,Pt)=>{if(Ue)return Ue(Xe,at,Et,ht);const Zt=Le(Xe,at);return ne(ce,Xe,Zt,Pt)}}var y=function(ce,Ue){var et={};for(var Xe in ce)Object.prototype.hasOwnProperty.call(ce,Xe)&&Ue.indexOf(Xe)<0&&(et[Xe]=ce[Xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Xe=Object.getOwnPropertySymbols(ce);at<Xe.length;at++)Ue.indexOf(Xe[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,Xe[at])&&(et[Xe[at]]=ce[Xe[at]]);return et};const x=ce=>{const{prefixCls:Ue,separator:et="/",children:Xe,menu:at,overlay:Et,dropdownProps:ht,href:Pt}=ce,be=(ze=>{if(at||Et){const Qe=Object.assign({},ht);if(at){const Ft=at||{},{items:nt}=Ft,Ct=y(Ft,["items"]);Qe.menu=Object.assign(Object.assign({},Ct),{items:nt==null?void 0:nt.map((de,gt)=>{var{key:$t,title:Ut,label:kt,path:De}=de,Fe=y(de,["key","title","label","path"]);let ve=kt!=null?kt:Ut;return De&&(ve=Se.createElement("a",{href:`${Pt}${De}`},ve)),Object.assign(Object.assign({},Fe),{key:$t!=null?$t:gt,label:ve})})})}else Et&&(Qe.overlay=Et);return Se.createElement(Ce.Z,Object.assign({placement:"bottom"},Qe),Se.createElement("span",{className:`${Ue}-overlay-link`},ze,Se.createElement(Ke.Z,null)))}return ze})(Xe);return be!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,be),et&&Se.createElement(Ne,null,et)):null},b=ce=>{const{prefixCls:Ue,children:et,href:Xe}=ce,at=y(ce,["prefixCls","children","href"]),{getPrefixCls:Et}=Se.useContext(ue.E_),ht=Et("breadcrumb",Ue);return Se.createElement(x,Object.assign({},at,{prefixCls:ht}),ne(ht,at,et,Xe))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=re(17313),ee=re(83116),te=re(37613);const oe=ce=>{const{componentCls:Ue,iconCls:et}=ce;return{[Ue]:Object.assign(Object.assign({},(0,z.Wf)(ce)),{color:ce.itemColor,fontSize:ce.fontSize,[et]:{fontSize:ce.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ce.linkColor,transition:`color ${ce.motionDurationMid}`,padding:`0 ${ce.paddingXXS}px`,borderRadius:ce.borderRadiusSM,height:ce.lineHeight*ce.fontSize,display:"inline-block",marginInline:-ce.marginXXS,"&:hover":{color:ce.linkHoverColor,backgroundColor:ce.colorBgTextHover}},(0,z.Qy)(ce)),"li:last-child":{color:ce.lastItemColor},[`${Ue}-separator`]:{marginInline:ce.separatorMargin,color:ce.separatorColor},[`${Ue}-link`]:{[`
> ${et} + span,
> ${et} + a
`]:{marginInlineStart:ce.marginXXS}},[`${Ue}-overlay-link`]:{borderRadius:ce.borderRadiusSM,height:ce.lineHeight*ce.fontSize,display:"inline-block",padding:`0 ${ce.paddingXXS}px`,marginInline:-ce.marginXXS,[`> ${et}`]:{marginInlineStart:ce.marginXXS,fontSize:ce.fontSizeIcon},"&:hover":{color:ce.linkHoverColor,backgroundColor:ce.colorBgTextHover,a:{color:ce.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ce.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",ce=>{const Ue=(0,te.TS)(ce,{});return[oe(Ue)]},ce=>({itemColor:ce.colorTextDescription,lastItemColor:ce.colorText,iconFontSize:ce.fontSize,linkColor:ce.colorTextDescription,linkHoverColor:ce.colorText,separatorColor:ce.colorTextDescription,separatorMargin:ce.marginXS})),ie=function(ce,Ue){var et={};for(var Xe in ce)Object.prototype.hasOwnProperty.call(ce,Xe)&&Ue.indexOf(Xe)<0&&(et[Xe]=ce[Xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Xe=Object.getOwnPropertySymbols(ce);at<Xe.length;at++)Ue.indexOf(Xe[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,Xe[at])&&(et[Xe[at]]=ce[Xe[at]]);return et};function se(ce){const{breadcrumbName:Ue,children:et}=ce,Xe=ie(ce,["breadcrumbName","children"]),at=Object.assign({title:Ue},Xe);return et&&(at.menu={items:et.map(Et=>{var{breadcrumbName:ht}=Et,Pt=ie(Et,["breadcrumbName"]);return Object.assign(Object.assign({},Pt),{title:ht})})}),at}function le(ce,Ue){return(0,Se.useMemo)(()=>ce||(Ue?Ue.map(se):null),[ce,Ue])}var Be=function(ce,Ue){var et={};for(var Xe in ce)Object.prototype.hasOwnProperty.call(ce,Xe)&&Ue.indexOf(Xe)<0&&(et[Xe]=ce[Xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Xe=Object.getOwnPropertySymbols(ce);at<Xe.length;at++)Ue.indexOf(Xe[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,Xe[at])&&(et[Xe[at]]=ce[Xe[at]]);return et};const Ie=(ce,Ue)=>{if(Ue===void 0)return Ue;let et=(Ue||"").replace(/^\//,"");return Object.keys(ce).forEach(Xe=>{et=et.replace(`:${Xe}`,ce[Xe])}),et},lt=ce=>{const{prefixCls:Ue,separator:et="/",style:Xe,className:at,rootClassName:Et,routes:ht,items:Pt,children:Zt,itemRender:be,params:ze={}}=ce,Qe=Be(ce,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:nt,breadcrumb:Ct}=Se.useContext(ue.E_);let de;const gt=Ft("breadcrumb",Ue),[$t,Ut]=ge(gt),kt=le(Pt,ht),De=a(gt,be);if(kt&&kt.length>0){const He=[],Me=Pt||ht;de=kt.map((dt,pt)=>{const{path:Lt,key:Dt,type:Ot,menu:vt,overlay:Rt,onClick:Pn,className:wn,separator:yn,dropdownProps:on}=dt,en=Ie(ze,Lt);en!==void 0&&He.push(en);const he=Dt!=null?Dt:pt;if(Ot==="separator")return Se.createElement(Ne,{key:he},yn);const xe={},je=pt===kt.length-1;vt?xe.menu=vt:Rt&&(xe.overlay=Rt);let{href:it}=dt;return He.length&&en!==void 0&&(it=`#/${He.join("/")}`),Se.createElement(x,Object.assign({key:he},xe,(0,_e.Z)(dt,{data:!0,aria:!0}),{className:wn,dropdownProps:on,href:it,separator:je?"":et,onClick:Pn,prefixCls:gt}),De(dt,ze,Me,He,it))})}else if(Zt){const He=(0,We.Z)(Zt).length;de=(0,We.Z)(Zt).map((Me,dt)=>{if(!Me)return Me;const pt=dt===He-1;return(0,ke.Tm)(Me,{separator:pt?"":et,key:dt})})}const Fe=fe()(gt,Ct==null?void 0:Ct.className,{[`${gt}-rtl`]:nt==="rtl"},at,Et,Ut),ve=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Xe);return $t(Se.createElement("nav",Object.assign({className:Fe,style:ve},Qe),Se.createElement("ol",null,de)))};lt.Item=E,lt.Separator=Ne;var qe=lt,mt=qe},28103:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Te}});var ae=re(92310),fe=re.n(ae),We=re(59301),_e=re(36355),Se=re(17313),ke=re(83116),ue=re(37613);const Ke=Le=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:x,textPaddingInline:b,orientationMargin:E,verticalMarginInline:z}=Le;return{[ne]:Object.assign(Object.assign({},(0,Se.Wf)(Le)),{borderBlockStart:`${x}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Le.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${Le.dividerHorizontalWithTextGutterMargin}px 0`,color:Le.colorTextHeading,fontWeight:500,fontSize:Le.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${E*100}%`},"&::after":{width:`${100-E*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-E*100}%`},"&::after":{width:`${E*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:Le.colorText,fontWeight:"normal",fontSize:Le.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var Ce=(0,ke.Z)("Divider",Le=>{const ne=(0,ue.TS)(Le,{dividerHorizontalWithTextGutterMargin:Le.margin,dividerHorizontalGutterMargin:Le.marginLG,sizePaddingEdgeHorizontal:0});return[Ke(ne)]},Le=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Le.marginXS})),Ge=function(Le,ne){var a={};for(var y in Le)Object.prototype.hasOwnProperty.call(Le,y)&&ne.indexOf(y)<0&&(a[y]=Le[y]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(Le);x<y.length;x++)ne.indexOf(y[x])<0&&Object.prototype.propertyIsEnumerable.call(Le,y[x])&&(a[y[x]]=Le[y[x]]);return a},Te=Le=>{const{getPrefixCls:ne,direction:a,divider:y}=We.useContext(_e.E_),{prefixCls:x,type:b="horizontal",orientation:E="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ge,plain:ie,style:se}=Le,le=Ge(Le,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Be=ne("divider",x),[Ie,lt]=Ce(Be),qe=E.length>0?`-${E}`:E,mt=!!oe,ce=E==="left"&&z!=null,Ue=E==="right"&&z!=null,et=fe()(Be,y==null?void 0:y.className,lt,`${Be}-${b}`,{[`${Be}-with-text`]:mt,[`${Be}-with-text${qe}`]:mt,[`${Be}-dashed`]:!!ge,[`${Be}-plain`]:!!ie,[`${Be}-rtl`]:a==="rtl",[`${Be}-no-default-orientation-margin-left`]:ce,[`${Be}-no-default-orientation-margin-right`]:Ue},ee,te),Xe=We.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),at=Object.assign(Object.assign({},ce&&{marginLeft:Xe}),Ue&&{marginRight:Xe});return Ie(We.createElement("div",Object.assign({className:et,style:Object.assign(Object.assign({},y==null?void 0:y.style),se)},le,{role:"separator"}),oe&&b!=="vertical"&&We.createElement("span",{className:`${Be}-inner-text`,style:at},oe)))}},91857:function($e,rt,re){"use strict";var ae=re(59301),fe=re(38819),We=re(92310),_e=re.n(We),Se=re(31561),ke=re(70425),ue=re(18929),Ke=re(2738),Ce=re(79676),Ge=re(53487),Ne=re(92343),Te=re(36355),Le=re(20834),ne=re(40875),a=re(88088),y=re(47211);const x=null,b=te=>{const{menu:oe,arrow:ge,prefixCls:ie,children:se,trigger:le,disabled:Be,dropdownRender:Ie,getPopupContainer:lt,overlayClassName:qe,rootClassName:mt,open:ce,onOpenChange:Ue,visible:et,onVisibleChange:Xe,mouseEnterDelay:at=.15,mouseLeaveDelay:Et=.1,autoAdjustOverflow:ht=!0,placement:Pt="",overlay:Zt,transitionName:be}=te,{getPopupContainer:ze,getPrefixCls:Qe,direction:Ft}=ae.useContext(Te.E_),nt=ae.useMemo(()=>{const vt=Qe();return be!==void 0?be:Pt.includes("top")?`${vt}-slide-down`:`${vt}-slide-up`},[Qe,Pt,be]),Ct=ae.useMemo(()=>Pt?Pt.includes("Center")?Pt.slice(0,Pt.indexOf("Center")):Pt:Ft==="rtl"?"bottomRight":"bottomLeft",[Pt,Ft]),de=Qe("dropdown",ie),[gt,$t]=(0,y.Z)(de),[,Ut]=(0,a.Z)(),kt=ae.Children.only(se),De=(0,Ne.Tm)(kt,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:Ft==="rtl"},kt.props.className),disabled:Be}),Fe=Be?[]:le;let ve;Fe&&Fe.includes("contextMenu")&&(ve=!0);const[He,Me]=(0,ue.Z)(!1,{value:ce!=null?ce:et}),dt=(0,ke.useEvent)(vt=>{Ue==null||Ue(vt),Xe==null||Xe(vt),Me(vt)}),pt=_e()(qe,mt,$t,{[`${de}-rtl`]:Ft==="rtl"}),Lt=(0,Ce.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:ht,offset:Ut.marginXXS,arrowWidth:ge?Ut.sizePopupArrow:0,borderRadius:Ut.borderRadius}),Dt=ae.useCallback(()=>{Me(!1)},[]),Ot=()=>{let vt;return oe!=null&&oe.items?vt=ae.createElement(Le.default,Object.assign({},oe)):typeof Zt=="function"?vt=Zt():vt=Zt,Ie&&(vt=Ie(vt)),vt=ae.Children.only(typeof vt=="string"?ae.createElement("span",null,vt):vt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:Rt=>{let{mode:Pn}=Rt}},vt)};return gt(ae.createElement(Se.Z,Object.assign({alignPoint:ve},(0,Ke.Z)(te,["rootClassName"]),{mouseEnterDelay:at,mouseLeaveDelay:Et,visible:He,builtinPlacements:Lt,arrow:!!ge,overlayClassName:pt,prefixCls:de,getPopupContainer:lt||ze,transitionName:nt,trigger:Fe,overlay:Ot,placement:Ct,onVisibleChange:dt}),De))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ge.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,rt.Z=b},47211:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return Ne}});var ae=re(17313),fe=re(13826),We=re(92899),_e=re(29878),Se=re(19447),ke=re(83116),ue=re(37613),Ce=Te=>{const{componentCls:Le,menuCls:ne,colorError:a,colorTextLightSolid:y}=Te,x=`${ne}-item`;return{[`${Le}, ${Le}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ge=Te=>{const{componentCls:Le,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Te;return[{[Le]:Object.assign(Object.assign({},(0,ae.Wf)(Te)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Le}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Le}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Le}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Le}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Le}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-topRight`]:{animationName:fe.ly}})},(0,Se.ZP)(Te,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Le} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Le}, ${Le}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary},(0,ae.Qy)(Te)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Te.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Te.marginXS,fontSize:Te.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${se}px`,color:Te.colorText,fontWeight:"normal",fontSize:te,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Te.borderRadiusSM,"&:hover, &-active":{backgroundColor:Te.controlItemBgHover}},(0,ae.Qy)(Te)),{"&-selected":{color:Te.colorPrimary,backgroundColor:Te.controlItemBgActive,"&:hover, &-active":{backgroundColor:Te.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Te.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Te.colorSplit},[`${Le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Te.paddingXS,[`${Le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Te.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Te.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Te.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Le}-menu-submenu-title`]:{[`&, ${Le}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Le}-menu-submenu-title`]:{color:Te.colorPrimary}})}},[(0,fe.oN)(Te,"slide-up"),(0,fe.oN)(Te,"slide-down"),(0,We.Fm)(Te,"move-up"),(0,We.Fm)(Te,"move-down"),(0,_e._y)(Te,"zoom-big")]]};var Ne=(0,ke.Z)("Dropdown",(Te,Le)=>{let{rootPrefixCls:ne}=Le;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Te,oe=(x-b*E)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:te}),ie=(0,ue.TS)(Te,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ge(ie),Ce(ie)]},Te=>({zIndexPopup:Te.zIndexPopupBase+50}))},45818:function($e,rt,re){"use strict";re.d(rt,{D:function(){return z},Z:function(){return oe}});var ae=re(54476),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},_e=We,Se=re(7657),ke=function(ie,se){return fe.createElement(Se.Z,(0,ae.Z)({},ie,{ref:se,icon:_e}))},ue=fe.forwardRef(ke),Ke=ue,Ce=re(33853),Ge=re(38819),Ne=re(92310),Te=re.n(Ne),Le=re(2738),a=ge=>!isNaN(parseFloat(ge))&&isFinite(ge),y=re(36355),x=re(84966),b=function(ge,ie){var se={};for(var le in ge)Object.prototype.hasOwnProperty.call(ge,le)&&ie.indexOf(le)<0&&(se[le]=ge[le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,le=Object.getOwnPropertySymbols(ge);Be<le.length;Be++)ie.indexOf(le[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,le[Be])&&(se[le[Be]]=ge[le[Be]]);return se};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let ge=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ge+=1,`${ie}${ge}`}})();var oe=fe.forwardRef((ge,ie)=>{const{prefixCls:se,className:le,trigger:Be,children:Ie,defaultCollapsed:lt=!1,theme:qe="dark",style:mt={},collapsible:ce=!1,reverseArrow:Ue=!1,width:et=200,collapsedWidth:Xe=80,zeroWidthTriggerStyle:at,breakpoint:Et,onCollapse:ht,onBreakpoint:Pt}=ge,Zt=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,fe.useContext)(x.Gs),[ze,Qe]=(0,fe.useState)("collapsed"in ge?ge.collapsed:lt),[Ft,nt]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ge&&Qe(ge.collapsed)},[ge.collapsed]);const Ct=(De,Fe)=>{"collapsed"in ge||Qe(De),ht==null||ht(De,Fe)},de=(0,fe.useRef)();de.current=De=>{nt(De.matches),Pt==null||Pt(De.matches),ze!==De.matches&&Ct(De.matches,"responsive")},(0,fe.useEffect)(()=>{function De(ve){return de.current(ve)}let Fe;if(typeof window!="undefined"){const{matchMedia:ve}=window;if(ve&&Et&&Et in E){Fe=ve(`(max-width: ${E[Et]})`);try{Fe.addEventListener("change",De)}catch(He){Fe.addListener(De)}De(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",De)}catch(ve){Fe==null||Fe.removeListener(De)}}},[Et]),(0,fe.useEffect)(()=>{const De=ee("ant-sider-");return be.addSider(De),()=>be.removeSider(De)},[]);const gt=()=>{Ct(!ze,"clickTrigger")},{getPrefixCls:$t}=(0,fe.useContext)(y.E_),Ut=()=>{const De=$t("layout-sider",se),Fe=(0,Le.Z)(Zt,["collapsed"]),ve=ze?Xe:et,He=a(ve)?`${ve}px`:String(ve),Me=parseFloat(String(Xe||0))===0?fe.createElement("span",{onClick:gt,className:Te()(`${De}-zero-width-trigger`,`${De}-zero-width-trigger-${Ue?"right":"left"}`),style:at},Be||fe.createElement(Ke,null)):null,Lt={expanded:Ue?fe.createElement(Ge.Z,null):fe.createElement(Ce.Z,null),collapsed:Ue?fe.createElement(Ce.Z,null):fe.createElement(Ge.Z,null)}[ze?"collapsed":"expanded"],Dt=Be!==null?Me||fe.createElement("div",{className:`${De}-trigger`,onClick:gt,style:{width:He}},Be||Lt):null,Ot=Object.assign(Object.assign({},mt),{flex:`0 0 ${He}`,maxWidth:He,minWidth:He,width:He}),vt=Te()(De,`${De}-${qe}`,{[`${De}-collapsed`]:!!ze,[`${De}-has-trigger`]:ce&&Be!==null&&!Me,[`${De}-below`]:!!Ft,[`${De}-zero-width`]:parseFloat(He)===0},le);return fe.createElement("aside",Object.assign({className:vt},Fe,{style:Ot,ref:ie}),fe.createElement("div",{className:`${De}-children`},Ie),ce||Ft&&Me?Dt:null)},kt=fe.useMemo(()=>({siderCollapsed:ze}),[ze]);return fe.createElement(z.Provider,{value:kt},Ut())})},84966:function($e,rt,re){"use strict";re.d(rt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Le},ZP:function(){return ee}});var ae=re(94480),fe=re(92310),We=re.n(fe),_e=re(2738),Se=re(59301),ke=re(36355),ue=re(83116),Ce=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ge=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:Be,headerHeight:Ie,headerPadding:lt,headerColor:qe,footerPadding:mt,triggerHeight:ce,zeroTriggerHeight:Ue,zeroTriggerWidth:et,motionDurationMid:Xe,motionDurationSlow:at,fontSize:Et,borderRadius:ht,bodyBg:Pt,headerBg:Zt,siderBg:be}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:be,transition:`all ${Xe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ce,color:se,lineHeight:`${ce}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${Xe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ie,insetInlineEnd:-et,zIndex:1,width:et,height:Ue,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:ht,borderEndEndRadius:ht,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-et,borderStartStartRadius:ht,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ht}}}}},Ce(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ie,padding:lt,color:qe,lineHeight:`${Ie}px`,background:Zt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:mt,color:ie,fontSize:Et,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ne=(0,ue.Z)("Layout",te=>[Ge(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:Be,colorTextLightSolid:Ie,colorBgContainer:lt}=te,qe=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${qe}px`,headerColor:se,footerPadding:`${le}px ${qe}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Be*2,triggerBg:"#002140",triggerColor:Ie,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Te=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Le=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>Se.forwardRef((Be,Ie)=>Se.createElement(se,Object.assign({ref:Ie,suffixCls:oe,tagName:ge},Be)))}const a=Se.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,Be=Te(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ie}=Se.useContext(ke.E_),lt=Ie("layout",ge),[qe,mt]=Ne(lt),ce=ie?`${lt}-${ie}`:lt;return qe(Se.createElement(le,Object.assign({className:We()(ge||ce,se,mt),ref:oe},Be)))}),y=Se.forwardRef((te,oe)=>{const{direction:ge}=Se.useContext(ke.E_),[ie,se]=Se.useState([]),{prefixCls:le,className:Be,rootClassName:Ie,children:lt,hasSider:qe,tagName:mt,style:ce}=te,Ue=Te(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),et=(0,_e.Z)(Ue,["suffixCls"]),{getPrefixCls:Xe,layout:at}=Se.useContext(ke.E_),Et=Xe("layout",le),[ht,Pt]=Ne(Et),Zt=We()(Et,{[`${Et}-has-sider`]:typeof qe=="boolean"?qe:ie.length>0,[`${Et}-rtl`]:ge==="rtl"},at==null?void 0:at.className,Be,Ie,Pt),be=Se.useMemo(()=>({siderHook:{addSider:ze=>{se(Qe=>[].concat((0,ae.Z)(Qe),[ze]))},removeSider:ze=>{se(Qe=>Qe.filter(Ft=>Ft!==ze))}}}),[]);return ht(Se.createElement(Le.Provider,{value:be},Se.createElement(mt,Object.assign({ref:oe,className:Zt,style:Object.assign(Object.assign({},at==null?void 0:at.style),ce)},et),lt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function($e,rt,re){"use strict";re.d(rt,{J:function(){return ke}});var ae=re(59301),fe=re(33234),We=re(70425),_e=function(ue,Ke){var Ce={};for(var Ge in ue)Object.prototype.hasOwnProperty.call(ue,Ge)&&Ke.indexOf(Ge)<0&&(Ce[Ge]=ue[Ge]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ge=Object.getOwnPropertySymbols(ue);Ne<Ge.length;Ne++)Ke.indexOf(Ge[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ge[Ne])&&(Ce[Ge[Ne]]=ue[Ge[Ne]]);return Ce};const Se=ae.createContext(null),ke=ae.forwardRef((ue,Ke)=>{const{children:Ce}=ue,Ge=_e(ue,["children"]),Ne=ae.useContext(Se),Te=ae.useMemo(()=>Object.assign(Object.assign({},Ne),Ge),[Ne,Ge.prefixCls,Ge.mode,Ge.selectable]);return ae.createElement(Se.Provider,{value:Te},ae.createElement(fe.BR,null,(0,We.supportNodeRef)(Ce)?ae.cloneElement(Ce,{ref:Ke}):Ce))});rt.Z=Se},20834:function($e,rt,re){"use strict";re.d(rt,{default:function(){return kt}});var ae=re(15285),fe=re(59301),We=re(45818),_e=re(92310),Se=re.n(_e),ke=re(36355),ue=function(De,Fe){var ve={};for(var He in De)Object.prototype.hasOwnProperty.call(De,He)&&Fe.indexOf(He)<0&&(ve[He]=De[He]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,He=Object.getOwnPropertySymbols(De);Me<He.length;Me++)Fe.indexOf(He[Me])<0&&Object.prototype.propertyIsEnumerable.call(De,He[Me])&&(ve[He[Me]]=De[He[Me]]);return ve},Ce=De=>{const{prefixCls:Fe,className:ve,dashed:He}=De,Me=ue(De,["prefixCls","className","dashed"]),{getPrefixCls:dt}=fe.useContext(ke.E_),pt=dt("menu",Fe),Lt=Se()({[`${pt}-item-divider-dashed`]:!!He},ve);return fe.createElement(ae.iz,Object.assign({className:Lt},Me))},Ge=re(11592),Ne=re(2738),Te=re(6848),Le=re(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=De=>{var Fe;const{className:ve,children:He,icon:Me,title:dt,danger:pt}=De,{prefixCls:Lt,firstLevel:Dt,direction:Ot,disableMenuItemTitleTooltip:vt,inlineCollapsed:Rt}=fe.useContext(a),Pn=xe=>{const je=fe.createElement("span",{className:`${Lt}-title-content`},He);return(!Me||(0,Le.l$)(He)&&He.type==="span")&&He&&xe&&Dt&&typeof He=="string"?fe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},He.charAt(0)):je},{siderCollapsed:wn}=fe.useContext(We.D);let yn=dt;typeof dt=="undefined"?yn=Dt?He:"":dt===!1&&(yn="");const on={title:yn};!wn&&!Rt&&(on.title=null,on.open=!1);const en=(0,Ge.Z)(He).length;let he=fe.createElement(ae.ck,Object.assign({},(0,Ne.Z)(De,["title","icon","danger"]),{className:Se()({[`${Lt}-item-danger`]:pt,[`${Lt}-item-only-child`]:(Me?en+1:en)===1},ve),title:typeof dt=="string"?dt:void 0}),(0,Le.Tm)(Me,{className:Se()((0,Le.l$)(Me)?(Fe=Me.props)===null||Fe===void 0?void 0:Fe.className:"",`${Lt}-item-icon`)}),Pn(Rt));return vt||(he=fe.createElement(Te.Z,Object.assign({},on,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${Lt}-inline-collapsed-tooltip`}),he)),he},E=De=>{var Fe;const{popupClassName:ve,icon:He,title:Me,theme:dt}=De,pt=fe.useContext(a),{prefixCls:Lt,inlineCollapsed:Dt,theme:Ot}=pt,vt=(0,ae.Xl)();let Rt;if(!He)Rt=Dt&&!vt.length&&Me&&typeof Me=="string"?fe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},Me.charAt(0)):fe.createElement("span",{className:`${Lt}-title-content`},Me);else{const wn=(0,Le.l$)(Me)&&Me.type==="span";Rt=fe.createElement(fe.Fragment,null,(0,Le.Tm)(He,{className:Se()((0,Le.l$)(He)?(Fe=He.props)===null||Fe===void 0?void 0:Fe.className:"",`${Lt}-item-icon`)}),wn?Me:fe.createElement("span",{className:`${Lt}-title-content`},Me))}const Pn=fe.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]);return fe.createElement(a.Provider,{value:Pn},fe.createElement(ae.Wd,Object.assign({},(0,Ne.Z)(De,["icon"]),{title:Rt,popupClassName:Se()(Lt,ve,`${Lt}-${dt||Ot}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ge=function(De,Fe){var ve={};for(var He in De)Object.prototype.hasOwnProperty.call(De,He)&&Fe.indexOf(He)<0&&(ve[He]=De[He]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,He=Object.getOwnPropertySymbols(De);Me<He.length;Me++)Fe.indexOf(He[Me])<0&&Object.prototype.propertyIsEnumerable.call(De,He[Me])&&(ve[He[Me]]=De[He[Me]]);return ve};function ie(De){return(De||[]).map((Fe,ve)=>{if(Fe&&typeof Fe=="object"){const He=Fe,{label:Me,children:dt,key:pt,type:Lt}=He,Dt=ge(He,["label","children","key","type"]),Ot=pt!=null?pt:`tmp-${ve}`;return dt||Lt==="group"?Lt==="group"?fe.createElement(ae.BW,Object.assign({key:Ot},Dt,{title:Me}),ie(dt)):fe.createElement(E,Object.assign({key:Ot},Dt,{title:Me}),ie(dt)):Lt==="divider"?fe.createElement(Ce,Object.assign({key:Ot},Dt)):fe.createElement(x,Object.assign({key:Ot},Dt),Me)}return null}).filter(Fe=>Fe)}function se(De){return fe.useMemo(()=>De&&ie(De),[De])}var le=re(64993),Be=re(17313),Ie=re(8378),lt=re(13826),qe=re(29878),mt=re(83116),ce=re(37613),et=De=>{const{componentCls:Fe,motionDurationSlow:ve,horizontalLineHeight:He,colorSplit:Me,lineWidth:dt,lineType:pt,itemPaddingInline:Lt}=De;return{[`${Fe}-horizontal`]:{lineHeight:He,border:0,borderBottom:`${dt}px ${pt} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Fe}-item, ${Fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${Fe}-item:hover,
> ${Fe}-item-active,
> ${Fe}-submenu ${Fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Fe}-item, ${Fe}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${Fe}-submenu-arrow`]:{display:"none"}}}},at=De=>{let{componentCls:Fe,menuArrowOffset:ve}=De;return{[`${Fe}-rtl`]:{direction:"rtl"},[`${Fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Fe}-rtl${Fe}-vertical,
${Fe}-submenu-rtl ${Fe}-vertical`]:{[`${Fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Et=De=>Object.assign({},(0,Be.oN)(De));var Pt=(De,Fe)=>{const{componentCls:ve,itemColor:He,itemSelectedColor:Me,groupTitleColor:dt,itemBg:pt,subMenuItemBg:Lt,itemSelectedBg:Dt,activeBarHeight:Ot,activeBarWidth:vt,activeBarBorderWidth:Rt,motionDurationSlow:Pn,motionEaseInOut:wn,motionEaseOut:yn,itemPaddingInline:on,motionDurationMid:en,itemHoverColor:he,lineType:xe,colorSplit:je,itemDisabledColor:it,dangerItemColor:ut,dangerItemHoverColor:It,dangerItemSelectedColor:Tt,dangerItemActiveBg:wt,dangerItemSelectedBg:Mt,itemHoverBg:Kt,itemActiveBg:Wt,menuSubMenuBg:Qt,horizontalItemSelectedColor:Sn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:rn,popupBg:tn}=De;return{[`${ve}-${Fe}, ${ve}-${Fe} > ${ve}`]:{color:He,background:pt,[`&${ve}-root:focus-visible`]:Object.assign({},Et(De)),[`${ve}-item-group-title`]:{color:dt},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Me}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${it} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:he}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Wt}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Wt}}},[`${ve}-item-danger`]:{color:ut,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:It}},[`&${ve}-item:active`]:{background:wt}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Me,[`&${ve}-item-danger`]:{color:Tt},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:Dt,[`&${ve}-item-danger`]:{backgroundColor:Mt}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Et(De))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:Qt},[`&${ve}-popup > ${ve}`]:{backgroundColor:tn},[`&${ve}-horizontal`]:Object.assign(Object.assign({},Fe==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:Rt,marginTop:-Rt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${Pn} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:Ot,borderBottomColor:Sn}},"&-selected":{color:Sn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:Sn}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${Rt}px ${xe} ${je}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Lt},[`${ve}-item, ${ve}-submenu-title`]:Rt&&vt?{width:`calc(100% + ${Rt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vt}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${yn}`,`opacity ${en} ${yn}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Tt}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${wn}`,`opacity ${en} ${wn}`].join(",")}}}}}};const Zt=De=>{const{componentCls:Fe,itemHeight:ve,itemMarginInline:He,padding:Me,menuArrowSize:dt,marginXS:pt,itemMarginBlock:Lt}=De,Dt=Me+dt+pt;return{[`${Fe}-item`]:{position:"relative",overflow:"hidden"},[`${Fe}-item, ${Fe}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:He,marginBlock:Lt,width:`calc(100% - ${He*2}px)`},[`> ${Fe}-item,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${Fe}-item-group-list ${Fe}-submenu-title,
${Fe}-submenu-title`]:{paddingInlineEnd:Dt}}};var ze=De=>{const{componentCls:Fe,iconCls:ve,itemHeight:He,colorTextLightSolid:Me,dropdownWidth:dt,controlHeightLG:pt,motionDurationMid:Lt,motionEaseOut:Dt,paddingXL:Ot,itemMarginInline:vt,fontSizeLG:Rt,motionDurationSlow:Pn,paddingXS:wn,boxShadowSecondary:yn,collapsedWidth:on,collapsedIconSize:en}=De,he={height:He,lineHeight:`${He}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Fe]:{"&-inline, &-vertical":Object.assign({[`&${Fe}-root`]:{boxShadow:"none"}},Zt(De))},[`${Fe}-submenu-popup`]:{[`${Fe}-vertical`]:Object.assign(Object.assign({},Zt(De)),{boxShadow:yn})}},{[`${Fe}-submenu-popup ${Fe}-vertical${Fe}-sub`]:{minWidth:dt,maxHeight:`calc(100vh - ${pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Fe}-inline`]:{width:"100%",[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${Lt} ${Dt}`].join(","),[`> ${Fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Fe}-sub${Fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Fe}-submenu > ${Fe}-submenu-title`]:he,[`& ${Fe}-item-group-title`]:{paddingInlineStart:Ot}},[`${Fe}-item`]:he}},{[`${Fe}-inline-collapsed`]:{width:on,[`&${Fe}-root`]:{[`${Fe}-item, ${Fe}-submenu ${Fe}-submenu-title`]:{[`> ${Fe}-inline-collapsed-noicon`]:{fontSize:Rt,textAlign:"center"}}},[`> ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-item,
> ${Fe}-item-group > ${Fe}-item-group-list > ${Fe}-submenu > ${Fe}-submenu-title,
> ${Fe}-submenu > ${Fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt/2}px - ${vt}px)`,textOverflow:"clip",[`
${Fe}-submenu-arrow,
${Fe}-submenu-expand-icon
`]:{opacity:0},[`${Fe}-item-icon, ${ve}`]:{margin:0,fontSize:en,lineHeight:`${He}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Fe}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Fe}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Me}},[`${Fe}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:wn})}}]};const Qe=De=>{const{componentCls:Fe,motionDurationSlow:ve,motionDurationMid:He,motionEaseInOut:Me,motionEaseOut:dt,iconCls:pt,iconSize:Lt,iconMarginInlineEnd:Dt}=De;return{[`${Fe}-item, ${Fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Me}`].join(","),[`${Fe}-item-icon, ${pt}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${He} ${dt}`,`margin ${ve} ${Me}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${ve} ${Me}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${Fe}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Fe}-item-only-child`]:{[`> ${pt}, > ${Fe}-item-icon`]:{marginInlineEnd:0}}},[`${Fe}-item-disabled, ${Fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=De=>{const{componentCls:Fe,motionDurationSlow:ve,motionEaseInOut:He,borderRadius:Me,menuArrowSize:dt,menuArrowOffset:pt}=De;return{[`${Fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:De.margin,width:dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${He}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:dt*.6,height:dt*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${ve} ${He}`,`transform ${ve} ${He}`,`top ${ve} ${He}`,`color ${ve} ${He}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pt})`},"&::after":{transform:`rotate(-45deg) translateY(${pt})`}}}}},nt=De=>{const{antCls:Fe,componentCls:ve,fontSize:He,motionDurationSlow:Me,motionDurationMid:dt,motionEaseInOut:pt,paddingXS:Lt,padding:Dt,colorSplit:Ot,lineWidth:vt,zIndexPopup:Rt,borderRadiusLG:Pn,subMenuItemBorderRadius:wn,menuArrowSize:yn,menuArrowOffset:on,lineType:en,menuPanelMaskInset:he,groupTitleLineHeight:xe,groupTitleFontSize:je}=De;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(De)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:He,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:De.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Lt}px ${Dt}px`,fontSize:je,lineHeight:xe,transition:`all ${Me}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Me} ${pt}`,`background ${Me} ${pt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Me} ${pt}`,`background ${Me} ${pt}`,`padding ${dt} ${pt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Me} ${pt}`,`padding ${Me} ${pt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Me}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:en,borderWidth:0,borderTopWidth:vt,marginBlock:vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(De)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${He*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Rt,borderRadius:Pn,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:De.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:De.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:De.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:De.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},Qe(De)),Ft(De)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:wn},[`${ve}-submenu-title::after`]:{transition:`transform ${Me} ${pt}`}})}}),Ft(De)),{[`&-inline-collapsed ${ve}-submenu-arrow,
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${yn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${Fe}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var Ct=(De,Fe)=>(0,mt.Z)("Menu",He=>{if(Fe===!1)return[];const{colorBgElevated:Me,colorPrimary:dt,colorTextLightSolid:pt,controlHeightLG:Lt,fontSize:Dt,darkItemColor:Ot,darkDangerItemColor:vt,darkItemBg:Rt,darkSubMenuItemBg:Pn,darkItemSelectedColor:wn,darkItemSelectedBg:yn,darkDangerItemSelectedBg:on,darkItemHoverBg:en,darkGroupTitleColor:he,darkItemHoverColor:xe,darkItemDisabledColor:je,darkDangerItemHoverColor:it,darkDangerItemSelectedColor:ut,darkDangerItemActiveBg:It}=He,Tt=Dt/7*5,wt=(0,ce.TS)(He,{menuArrowSize:Tt,menuHorizontalHeight:Lt*1.15,menuArrowOffset:`${Tt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),Mt=(0,ce.TS)(wt,{itemColor:Ot,itemHoverColor:xe,groupTitleColor:he,itemSelectedColor:wn,itemBg:Rt,popupBg:Rt,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:je,dangerItemColor:vt,dangerItemHoverColor:it,dangerItemSelectedColor:ut,dangerItemActiveBg:It,dangerItemSelectedBg:on,menuSubMenuBg:Pn,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:dt});return[nt(wt),et(wt),ze(wt),Pt(wt,"light"),Pt(Mt,"dark"),at(wt),(0,Ie.Z)(wt),(0,lt.oN)(wt,"slide-up"),(0,lt.oN)(wt,"slide-down"),(0,qe._y)(wt,"zoom-big")]},He=>{const{colorPrimary:Me,colorError:dt,colorTextDisabled:pt,colorErrorBg:Lt,colorText:Dt,colorTextDescription:Ot,colorBgContainer:vt,colorFillAlter:Rt,colorFillContent:Pn,lineWidth:wn,lineWidthBold:yn,controlItemBgActive:on,colorBgTextHover:en,controlHeightLG:he,lineHeight:xe,colorBgElevated:je,marginXXS:it,padding:ut,fontSize:It,controlHeightSM:Tt,fontSizeLG:wt,colorTextLightSolid:Mt,colorErrorHover:Kt}=He,Wt=new le.C(Mt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:He.zIndexPopupBase+50,radiusItem:He.borderRadiusLG,itemBorderRadius:He.borderRadiusLG,radiusSubMenuItem:He.borderRadiusSM,subMenuItemBorderRadius:He.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:vt,itemBg:vt,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Pn,itemActiveBg:on,colorSubItemBg:Rt,subMenuItemBg:Rt,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:yn,activeBarHeight:yn,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:dt,dangerItemColor:dt,colorDangerItemTextHover:dt,dangerItemHoverColor:dt,colorDangerItemTextSelected:dt,dangerItemSelectedColor:dt,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:He.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:xe,collapsedWidth:he*2,popupBg:je,itemMarginBlock:it,itemPaddingInline:ut,horizontalLineHeight:`${he*1.15}px`,iconSize:It,iconMarginInlineEnd:Tt-It,collapsedIconSize:wt,groupTitleFontSize:It,darkItemDisabledColor:new le.C(Mt).setAlpha(.25).toRgbString(),darkItemColor:Wt,darkDangerItemColor:dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Me,darkDangerItemSelectedBg:dt,darkItemHoverBg:"transparent",darkGroupTitleColor:Wt,darkItemHoverColor:Mt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:dt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(De),de=function(De,Fe){var ve={};for(var He in De)Object.prototype.hasOwnProperty.call(De,He)&&Fe.indexOf(He)<0&&(ve[He]=De[He]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,He=Object.getOwnPropertySymbols(De);Me<He.length;Me++)Fe.indexOf(He[Me])<0&&Object.prototype.propertyIsEnumerable.call(De,He[Me])&&(ve[He[Me]]=De[He[Me]]);return ve},$t=(0,fe.forwardRef)((De,Fe)=>{var ve,He;const Me=fe.useContext(oe.Z),dt=Me||{},{getPrefixCls:pt,getPopupContainer:Lt,direction:Dt,menu:Ot}=fe.useContext(ke.E_),vt=pt(),{prefixCls:Rt,className:Pn,style:wn,theme:yn="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:he,siderCollapsed:xe,items:je,children:it,rootClassName:ut,mode:It,selectable:Tt,onClick:wt,overflowedIndicatorPopupClassName:Mt}=De,Kt=de(De,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wt=(0,Ne.Z)(Kt,["collapsedWidth"]),Qt=se(je)||it;(ve=dt.validator)===null||ve===void 0||ve.call(dt,{mode:It});const Sn=(0,ee.useEvent)(function(){var In;wt==null||wt.apply(void 0,arguments),(In=dt.onClick)===null||In===void 0||In.call(dt)}),hn=dt.mode||It,Fn=Tt!=null?Tt:dt.selectable,rn=fe.useMemo(()=>xe!==void 0?xe:he,[he,xe]),tn={horizontal:{motionName:`${vt}-slide-up`},inline:(0,te.Z)(vt),other:{motionName:`${vt}-zoom-big`}},pn=pt("menu",Rt||dt.prefixCls),[En,Cn]=Ct(pn,!Me),sn=Se()(`${pn}-${yn}`,Ot==null?void 0:Ot.className,Pn);let Nn;if(typeof on=="function")Nn=on;else if(on===null||on===!1)Nn=null;else if(dt.expandIcon===null||dt.expandIcon===!1)Nn=null;else{const In=on!=null?on:dt.expandIcon;Nn=(0,Le.Tm)(In,{className:Se()(`${pn}-submenu-expand-icon`,(0,Le.l$)(In)?(He=In.props)===null||He===void 0?void 0:He.className:"")})}const Yn=fe.useMemo(()=>({prefixCls:pn,inlineCollapsed:rn||!1,direction:Dt,firstLevel:!0,theme:yn,mode:hn,disableMenuItemTitleTooltip:en}),[pn,rn,Dt,en,yn]);return En(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Yn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Lt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(pn,`${pn}-${yn}`,Mt),mode:hn,selectable:Fn,onClick:Sn},Wt,{inlineCollapsed:rn,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),wn),className:sn,prefixCls:pn,direction:Dt,defaultMotions:tn,expandIcon:Nn,ref:Fe,rootClassName:Se()(ut,Cn)}),Qt))))});const Ut=(0,fe.forwardRef)((De,Fe)=>{const ve=(0,fe.useRef)(null),He=fe.useContext(We.D);return(0,fe.useImperativeHandle)(Fe,()=>({menu:ve.current,focus:Me=>{var dt;(dt=ve.current)===null||dt===void 0||dt.focus(Me)}})),fe.createElement($t,Object.assign({ref:ve},De,He))});Ut.Item=x,Ut.SubMenu=E,Ut.Divider=Ce,Ut.ItemGroup=ae.BW;var kt=Ut},93948:function($e,rt,re){"use strict";re.d(rt,{Z:function(){return en}});var ae=re(59301),fe=re(29679),We=re(40001),_e=re(19248),Se=re(99267),ke=re(92310),ue=re.n(ke),Ke=re(2738),Ce=re(36355),Ge=re(54476),Ne=re(33885),Te=re(75931),Le={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var xe=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var it=Date.now(),ut=!1;xe.current.forEach(function(It){if(It){ut=!0;var Tt=It.style;Tt.transitionDuration=".3s, .3s, .3s, .06s",je.current&&it-je.current<100&&(Tt.transitionDuration="0s, 0s")}}),ut&&(je.current=Date.now())}),xe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(xe){var je=(0,Ne.Z)((0,Ne.Z)({},Le),xe),it=je.className,ut=je.percent,It=je.prefixCls,Tt=je.strokeColor,wt=je.strokeLinecap,Mt=je.strokeWidth,Kt=je.style,Wt=je.trailColor,Qt=je.trailWidth,Sn=je.transition,hn=(0,Te.Z)(je,a);delete hn.gapPosition;var Fn=Array.isArray(ut)?ut:[ut],rn=Array.isArray(Tt)?Tt:[Tt],tn=ne(),pn=Mt/2,En=100-Mt/2,Cn="M ".concat(wt==="round"?pn:0,",").concat(pn,`
L `).concat(wt==="round"?En:100,",").concat(pn),sn="0 0 100 ".concat(Mt),Nn=0;return ae.createElement("svg",(0,Ge.Z)({className:ue()("".concat(It,"-line"),it),viewBox:sn,preserveAspectRatio:"none",style:Kt},hn),ae.createElement("path",{className:"".concat(It,"-line-trail"),d:Cn,strokeLinecap:wt,stroke:Wt,strokeWidth:Qt||Mt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(wt){case"round":Wn=1-Mt/100;break;case"square":Wn=1-Mt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:Sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=rn[In]||rn[rn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(It,"-line-path"),d:Cn,strokeLinecap:wt,stroke:Jn,strokeWidth:Mt,fillOpacity:"0",ref:function(ye){tn[In]=ye},style:na})}))},x=y,b=re(76190),E=re(42978),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var xe=ae.useState(),je=(0,E.Z)(xe,2),it=je[0],ut=je[1];return ae.useEffect(function(){ut("rc_progress_".concat(oe()))},[]),he||it},ie=function(xe){var je=xe.bg,it=xe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},it)};function se(he,xe){return Object.keys(he).map(function(je){var it=parseFloat(je),ut="".concat(Math.floor(it*xe),"%");return"".concat(he[je]," ").concat(ut)})}var le=ae.forwardRef(function(he,xe){var je=he.prefixCls,it=he.color,ut=he.gradientId,It=he.radius,Tt=he.style,wt=he.ptg,Mt=he.strokeLinecap,Kt=he.strokeWidth,Wt=he.size,Qt=he.gapDegree,Sn=it&&(0,b.Z)(it)==="object",hn=Sn?"#FFF":void 0,Fn=Wt/2,rn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:It,cx:Fn,cy:Fn,stroke:hn,strokeLinecap:Mt,strokeWidth:Kt,opacity:wt===0?0:1,style:Tt,ref:xe});if(!Sn)return rn;var tn="".concat(ut,"-conic"),pn=Qt?"".concat(180+Qt/2,"deg"):"0deg",En=se(it,(360-Qt)/360),Cn=se(it,1),sn="conic-gradient(from ".concat(pn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(Qt?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:tn},rn),ae.createElement("foreignObject",{x:0,y:0,width:Wt,height:Wt,mask:"url(#".concat(tn,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:sn}))))}),Be=le,Ie=100,lt=function(xe,je,it,ut,It,Tt,wt,Mt,Kt,Wt){var Qt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sn=it/100*360*((360-Tt)/360),hn=Tt===0?0:{bottom:0,top:180,left:90,right:-90}[wt],Fn=(100-ut)/100*je;Kt==="round"&&ut!==100&&(Fn+=Wt/2,Fn>=je&&(Fn=je-.01));var rn=Ie/2;return{stroke:typeof Mt=="string"?Mt:void 0,strokeDasharray:"".concat(je,"px ").concat(xe),strokeDashoffset:Fn+Qt,transform:"rotate(".concat(It+Sn+hn,"deg)"),transformOrigin:"".concat(rn,"px ").concat(rn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},qe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function mt(he){var xe=he!=null?he:[];return Array.isArray(xe)?xe:[xe]}var ce=function(xe){var je=(0,Ne.Z)((0,Ne.Z)({},Le),xe),it=je.id,ut=je.prefixCls,It=je.steps,Tt=je.strokeWidth,wt=je.trailWidth,Mt=je.gapDegree,Kt=Mt===void 0?0:Mt,Wt=je.gapPosition,Qt=je.trailColor,Sn=je.strokeLinecap,hn=je.style,Fn=je.className,rn=je.strokeColor,tn=je.percent,pn=(0,Te.Z)(je,qe),En=Ie/2,Cn=ge(it),sn="".concat(Cn,"-gradient"),Nn=En-Tt/2,Yn=Math.PI*2*Nn,In=Kt>0?90+Kt/2:-90,Wn=Yn*((360-Kt)/360),na=(0,b.Z)(It)==="object"?It:{count:It,space:2},Jn=na.count,pe=na.space,ye=mt(tn),Pe=mt(rn),ot=Pe.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),xt=ot&&(0,b.Z)(ot)==="object",yt=xt?"butt":Sn,gn=lt(Yn,Wn,0,100,In,Kt,Wt,Qt,yt,Tt),jt=ne(),Yt=function(){var tt=0;return ye.map(function(Jt,An){var Zn=Pe[An]||Pe[Pe.length-1],Bn=lt(Yn,Wn,tt,Jt,In,Kt,Wt,Zn,yt,Tt);return tt+=Jt,ae.createElement(Be,{key:An,color:Zn,ptg:Jt,radius:Nn,prefixCls:ut,gradientId:sn,style:Bn,strokeLinecap:yt,strokeWidth:Tt,gapDegree:Kt,ref:function(Oe){jt[An]=Oe},size:Ie})}).reverse()},vn=function(){var tt=Math.round(Jn*(ye[0]/100)),Jt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,Bn){var me=Bn<=tt-1?Pe[0]:Qt,Oe=me&&(0,b.Z)(me)==="object"?"url(#".concat(sn,")"):void 0,Ee=lt(Yn,Wn,An,Jt,In,Kt,Wt,me,"butt",Tt,pe);return An+=(Wn-Ee.strokeDashoffset+pe)*100/Wn,ae.createElement("circle",{key:Bn,className:"".concat(ut,"-circle-path"),r:Nn,cx:En,cy:En,stroke:Oe,strokeWidth:Tt,opacity:1,style:Ee,ref:function(Ve){jt[Bn]=Ve}})})};return ae.createElement("svg",(0,Ge.Z)({className:ue()("".concat(ut,"-circle"),Fn),viewBox:"0 0 ".concat(Ie," ").concat(Ie),style:hn,id:it,role:"presentation"},pn),!Jn&&ae.createElement("circle",{className:"".concat(ut,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:Qt,strokeLinecap:yt,strokeWidth:wt||Tt,style:gn}),Jn?vn():Yt())},Ue=ce,et={Line:x,Circle:Ue},Xe=re(6848),at=re(30071);function Et(he){return!he||he<0?0:he>100?100:he}function ht(he){let{success:xe,successPercent:je}=he,it=je;return xe&&"progress"in xe&&(it=xe.progress),xe&&"percent"in xe&&(it=xe.percent),it}const Pt=he=>{let{percent:xe,success:je,successPercent:it}=he;const ut=Et(ht({success:je,successPercent:it}));return[ut,Et(Et(xe)-ut)]},Zt=he=>{let{success:xe={},strokeColor:je}=he;const{strokeColor:it}=xe;return[it||at.presetPrimaryColors.green,je||null]},be=(he,xe,je)=>{var it,ut,It,Tt;let wt=-1,Mt=-1;if(xe==="step"){const Kt=je.steps,Wt=je.strokeWidth;typeof he=="string"||typeof he=="undefined"?(wt=he==="small"?2:14,Mt=Wt!=null?Wt:8):typeof he=="number"?[wt,Mt]=[he,he]:[wt=14,Mt=8]=he,wt*=Kt}else if(xe==="line"){const Kt=je==null?void 0:je.strokeWidth;typeof he=="string"||typeof he=="undefined"?Mt=Kt||(he==="small"?6:8):typeof he=="number"?[wt,Mt]=[he,he]:[wt=-1,Mt=8]=he}else(xe==="circle"||xe==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[wt,Mt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[wt,Mt]=[he,he]:(wt=(ut=(it=he[0])!==null&&it!==void 0?it:he[1])!==null&&ut!==void 0?ut:120,Mt=(Tt=(It=he[0])!==null&&It!==void 0?It:he[1])!==null&&Tt!==void 0?Tt:120));return[wt,Mt]},ze=3,Qe=he=>ze/he*100;var nt=he=>{const{prefixCls:xe,trailColor:je=null,strokeLinecap:it="round",gapPosition:ut,gapDegree:It,width:Tt=120,type:wt,children:Mt,success:Kt,size:Wt=Tt}=he,[Qt,Sn]=be(Wt,"circle");let{strokeWidth:hn}=he;hn===void 0&&(hn=Math.max(Qe(Qt),6));const Fn={width:Qt,height:Sn,fontSize:Qt*.15+6},rn=ae.useMemo(()=>{if(It||It===0)return It;if(wt==="dashboard")return 75},[It,wt]),tn=ut||wt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",En=Zt({success:Kt,strokeColor:he.strokeColor}),Cn=ue()(`${xe}-inner`,{[`${xe}-circle-gradient`]:pn}),sn=ae.createElement(Ue,{percent:Pt(he),strokeWidth:hn,trailWidth:hn,strokeColor:En,strokeLinecap:it,trailColor:je,prefixCls:xe,gapDegree:rn,gapPosition:tn});return ae.createElement("div",{className:Cn,style:Fn},Qt<=20?ae.createElement(Xe.Z,{title:Mt},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Mt))},Ct=function(he,xe){var je={};for(var it in he)Object.prototype.hasOwnProperty.call(he,it)&&xe.indexOf(it)<0&&(je[it]=he[it]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(he);ut<it.length;ut++)xe.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(he,it[ut])&&(je[it[ut]]=he[it[ut]]);return je};const de=he=>{let xe=[];return Object.keys(he).forEach(je=>{const it=parseFloat(je.replace(/%/g,""));isNaN(it)||xe.push({key:it,value:he[je]})}),xe=xe.sort((je,it)=>je.key-it.key),xe.map(je=>{let{key:it,value:ut}=je;return`${ut} ${it}%`}).join(", ")},gt=(he,xe)=>{const{from:je=at.presetPrimaryColors.blue,to:it=at.presetPrimaryColors.blue,direction:ut=xe==="rtl"?"to left":"to right"}=he,It=Ct(he,["from","to","direction"]);if(Object.keys(It).length!==0){const Tt=de(It);return{backgroundImage:`linear-gradient(${ut}, ${Tt})`}}return{backgroundImage:`linear-gradient(${ut}, ${je}, ${it})`}};var Ut=he=>{const{prefixCls:xe,direction:je,percent:it,size:ut,strokeWidth:It,strokeColor:Tt,strokeLinecap:wt="round",children:Mt,trailColor:Kt=null,success:Wt}=he,Qt=Tt&&typeof Tt!="string"?gt(Tt,je):{backgroundColor:Tt},Sn=wt==="square"||wt==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:Sn},Fn=ut!=null?ut:[-1,It||(ut==="small"?6:8)],[rn,tn]=be(Fn,"line",{strokeWidth:It}),pn=Object.assign({width:`${Et(it)}%`,height:tn,borderRadius:Sn},Qt),En=ht(he),Cn={width:`${Et(En)}%`,height:tn,borderRadius:Sn,backgroundColor:Wt==null?void 0:Wt.strokeColor},sn={width:rn<0?"100%":rn,height:tn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${xe}-outer`,style:sn},ae.createElement("div",{className:`${xe}-inner`,style:hn},ae.createElement("div",{className:`${xe}-bg`,style:pn}),En!==void 0?ae.createElement("div",{className:`${xe}-success-bg`,style:Cn}):null)),Mt)},De=he=>{const{size:xe,steps:je,percent:it=0,strokeWidth:ut=8,strokeColor:It,trailColor:Tt=null,prefixCls:wt,children:Mt}=he,Kt=Math.round(je*(it/100)),Wt=xe==="small"?2:14,Qt=xe!=null?xe:[Wt,ut],[Sn,hn]=be(Qt,"step",{steps:je,strokeWidth:ut}),Fn=Sn/je,rn=new Array(je);for(let tn=0;tn<je;tn++){const pn=Array.isArray(It)?It[tn]:It;rn[tn]=ae.createElement("div",{key:tn,className:ue()(`${wt}-steps-item`,{[`${wt}-steps-item-active`]:tn<=Kt-1}),style:{backgroundColor:tn<=Kt-1?pn:Tt,width:Fn,height:hn}})}return ae.createElement("div",{className:`${wt}-steps-outer`},rn,Mt)},Fe=re(36237),ve=re(17313),He=re(83116),Me=re(37613);const dt=he=>{const xe=he?"100%":"-100%";return new Fe.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},pt=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:Object.assign(Object.assign({},(0,ve.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:he.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:dt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:dt(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:he.colorError},[`${xe}-text`]:{color:he.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:he.colorSuccess},[`${xe}-text`]:{color:he.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorSuccess}}})}},Lt=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:{[`${xe}-circle-trail`]:{stroke:he.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:he.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:he.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},Dt=he=>{const{componentCls:xe}=he;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},Ot=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${je}`]:{fontSize:he.fontSizeSM}}}};var vt=(0,He.Z)("Progress",he=>{const xe=he.marginXXS/2,je=(0,Me.TS)(he,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[pt(je),Lt(je),Dt(je),Ot(je)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Rt=function(he,xe){var je={};for(var it in he)Object.prototype.hasOwnProperty.call(he,it)&&xe.indexOf(it)<0&&(je[it]=he[it]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(he);ut<it.length;ut++)xe.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(he,it[ut])&&(je[it[ut]]=he[it[ut]]);return je};const Pn=null,wn=["normal","exception","active","success"];var on=ae.forwardRef((he,xe)=>{const{prefixCls:je,className:it,rootClassName:ut,steps:It,strokeColor:Tt,percent:wt=0,size:Mt="default",showInfo:Kt=!0,type:Wt="line",status:Qt,format:Sn,style:hn}=he,Fn=Rt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),rn=ae.useMemo(()=>{var ye,Pe;const ot=ht(he);return parseInt(ot!==void 0?(ye=ot!=null?ot:0)===null||ye===void 0?void 0:ye.toString():(Pe=wt!=null?wt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[wt,he.success,he.successPercent]),tn=ae.useMemo(()=>!wn.includes(Qt)&&rn>=100?"success":Qt||"normal",[Qt,rn]),{getPrefixCls:pn,direction:En,progress:Cn}=ae.useContext(Ce.E_),sn=pn("progress",je),[Nn,Yn]=vt(sn),In=ae.useMemo(()=>{if(!Kt)return null;const ye=ht(he);let Pe;const ot=Sn||(yt=>`${yt}%`),xt=Wt==="line";return Sn||tn!=="exception"&&tn!=="success"?Pe=ot(Et(wt),Et(ye)):tn==="exception"?Pe=xt?ae.createElement(_e.Z,null):ae.createElement(Se.Z,null):tn==="success"&&(Pe=xt?ae.createElement(fe.Z,null):ae.createElement(We.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Kt,wt,rn,tn,Wt,sn,Sn]),Wn=Array.isArray(Tt)?Tt[0]:Tt,na=typeof Tt=="string"||Array.isArray(Tt)?Tt:void 0;let Jn;Wt==="line"?Jn=It?ae.createElement(De,Object.assign({},he,{strokeColor:na,prefixCls:sn,steps:It}),In):ae.createElement(Ut,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,direction:En}),In):(Wt==="circle"||Wt==="dashboard")&&(Jn=ae.createElement(nt,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,progressStatus:tn}),In));const pe=ue()(sn,`${sn}-status-${tn}`,`${sn}-${Wt==="dashboard"&&"circle"||It&&"steps"||Wt}`,{[`${sn}-inline-circle`]:Wt==="circle"&&be(Mt,"circle")[0]<=20,[`${sn}-show-info`]:Kt,[`${sn}-${Mt}`]:typeof Mt=="string",[`${sn}-rtl`]:En==="rtl"},Cn==null?void 0:Cn.className,it,ut,Yn);return Nn(ae.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),hn),className:pe,role:"progressbar","aria-valuenow":rn},(0,Ke.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),en=on},54580:function($e,rt,re){"use strict";re.d(rt,{default:function(){return Bn}});var ae=re(59301),fe=re(94480),We=re(92310),_e=re.n(We),Se=re(54476),ke=re(67732),ue=re(83652),Ke=re(42403),Ce=re(158),Ge=re(20068),Ne=re(75931),Te=re(75044),Le=re(76190),ne=re(3202),a=re(26112);function y(me,Oe){var Ee="cannot ".concat(me.method," ").concat(me.action," ").concat(Oe.status,"'"),Ae=new Error(Ee);return Ae.status=Oe.status,Ae.method=me.method,Ae.url=me.action,Ae}function x(me){var Oe=me.responseText||me.response;if(!Oe)return Oe;try{return JSON.parse(Oe)}catch(Ee){return Oe}}function b(me){var Oe=new XMLHttpRequest;me.onProgress&&Oe.upload&&(Oe.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),me.onProgress(Je)});var Ee=new FormData;me.data&&Object.keys(me.data).forEach(function(Ve){var Je=me.data[Ve];if(Array.isArray(Je)){Je.forEach(function(Ze){Ee.append("".concat(Ve,"[]"),Ze)});return}Ee.append(Ve,Je)}),me.file instanceof Blob?Ee.append(me.filename,me.file,me.file.name):Ee.append(me.filename,me.file),Oe.onerror=function(Je){me.onError(Je)},Oe.onload=function(){return Oe.status<200||Oe.status>=300?me.onError(y(me,Oe),x(Oe)):me.onSuccess(x(Oe),Oe)},Oe.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Oe&&(Oe.withCredentials=!0);var Ae=me.headers||{};return Ae["X-Requested-With"]!==null&&Oe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ae).forEach(function(Ve){Ae[Ve]!==null&&Oe.setRequestHeader(Ve,Ae[Ve])}),Oe.send(Ee),{abort:function(){Oe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=re(48736),oe=function(me,Oe){if(me&&Oe){var Ee=Array.isArray(Oe)?Oe:Oe.split(","),Ae=me.name||"",Ve=me.type||"",Je=Ve.replace(/\/.*$/,"");return Ee.some(function(Ze){var Re=Ze.trim();if(/^\*(\/\*)?$/.test(Ze))return!0;if(Re.charAt(0)==="."){var zt=Ae.toLowerCase(),Nt=Re.toLowerCase(),we=[Nt];return(Nt===".jpg"||Nt===".jpeg")&&(we=[".jpg",".jpeg"]),we.some(function(nn){return zt.endsWith(nn)})}return/\/\*$/.test(Re)?Je===Re.replace(/\/.*$/,""):Ve===Re?!0:/^\w+$/.test(Re)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Re,"'.Skip for check.")),!0):!1})}return!0};function ge(me,Oe){var Ee=me.createReader(),Ae=[];function Ve(){Ee.readEntries(function(Je){var Ze=Array.prototype.slice.apply(Je);Ae=Ae.concat(Ze);var Re=!Ze.length;Re?Oe(Ae):Ve()})}Ve()}var ie=function(Oe,Ee,Ae){var Ve=function Je(Ze,Re){Ze&&(Ze.path=Re||"",Ze.isFile?Ze.file(function(zt){Ae(zt)&&(Ze.fullPath&&!zt.webkitRelativePath&&(Object.defineProperties(zt,{webkitRelativePath:{writable:!0}}),zt.webkitRelativePath=Ze.fullPath.replace(/^\//,""),Object.defineProperties(zt,{webkitRelativePath:{writable:!1}})),Ee([zt]))}):Ze.isDirectory&&ge(Ze,function(zt){zt.forEach(function(Nt){Je(Nt,"".concat(Re).concat(Ze.name,"/"))})}))};Oe.forEach(function(Je){Ve(Je.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(me){(0,Ke.Z)(Ee,me);var Oe=(0,Ce.Z)(Ee);function Ee(){var Ae;(0,ke.Z)(this,Ee);for(var Ve=arguments.length,Je=new Array(Ve),Ze=0;Ze<Ve;Ze++)Je[Ze]=arguments[Ze];return Ae=Oe.call.apply(Oe,[this].concat(Je)),Ae.state={uid:ee()},Ae.reqs={},Ae.fileInput=void 0,Ae._isMounted=void 0,Ae.onChange=function(Re){var zt=Ae.props,Nt=zt.accept,we=zt.directory,nn=Re.target.files,qt=(0,fe.Z)(nn).filter(function(fn){return!we||oe(fn,Nt)});Ae.uploadFiles(qt),Ae.reset()},Ae.onClick=function(Re){var zt=Ae.fileInput;if(zt){var Nt=Re.target,we=Ae.props.onClick;if(Nt&&Nt.tagName==="BUTTON"){var nn=zt.parentNode;nn.focus(),Nt.blur()}zt.click(),we&&we(Re)}},Ae.onKeyDown=function(Re){Re.key==="Enter"&&Ae.onClick(Re)},Ae.onFileDrop=function(Re){var zt=Ae.props.multiple;if(Re.preventDefault(),Re.type!=="dragover")if(Ae.props.directory)se(Array.prototype.slice.call(Re.dataTransfer.items),Ae.uploadFiles,function(we){return oe(we,Ae.props.accept)});else{var Nt=(0,fe.Z)(Re.dataTransfer.files).filter(function(we){return oe(we,Ae.props.accept)});zt===!1&&(Nt=Nt.slice(0,1)),Ae.uploadFiles(Nt)}},Ae.uploadFiles=function(Re){var zt=(0,fe.Z)(Re),Nt=zt.map(function(we){return we.uid=ee(),Ae.processFile(we,zt)});Promise.all(Nt).then(function(we){var nn=Ae.props.onBatchStart;nn==null||nn(we.map(function(qt){var fn=qt.origin,xn=qt.parsedFile;return{file:fn,parsedFile:xn}})),we.filter(function(qt){return qt.parsedFile!==null}).forEach(function(qt){Ae.post(qt)})})},Ae.processFile=function(){var Re=(0,ne.Z)((0,Te.Z)().mark(function zt(Nt,we){var nn,qt,fn,xn,Ye,St,Gt,ct,Xt;return(0,Te.Z)().wrap(function(At){for(;;)switch(At.prev=At.next){case 0:if(nn=Ae.props.beforeUpload,qt=Nt,!nn){At.next=14;break}return At.prev=3,At.next=6,nn(Nt,we);case 6:qt=At.sent,At.next=12;break;case 9:At.prev=9,At.t0=At.catch(3),qt=!1;case 12:if(qt!==!1){At.next=14;break}return At.abrupt("return",{origin:Nt,parsedFile:null,action:null,data:null});case 14:if(fn=Ae.props.action,typeof fn!="function"){At.next=21;break}return At.next=18,fn(Nt);case 18:xn=At.sent,At.next=22;break;case 21:xn=fn;case 22:if(Ye=Ae.props.data,typeof Ye!="function"){At.next=29;break}return At.next=26,Ye(Nt);case 26:St=At.sent,At.next=30;break;case 29:St=Ye;case 30:return Gt=((0,Le.Z)(qt)==="object"||typeof qt=="string")&&qt?qt:Nt,Gt instanceof File?ct=Gt:ct=new File([Gt],Nt.name,{type:Nt.type}),Xt=ct,Xt.uid=Nt.uid,At.abrupt("return",{origin:Nt,data:St,parsedFile:Xt,action:xn});case 35:case"end":return At.stop()}},zt,null,[[3,9]])}));return function(zt,Nt){return Re.apply(this,arguments)}}(),Ae.saveFileInput=function(Re){Ae.fileInput=Re},Ae}return(0,ue.Z)(Ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ve){var Je=this,Ze=Ve.data,Re=Ve.origin,zt=Ve.action,Nt=Ve.parsedFile;if(this._isMounted){var we=this.props,nn=we.onStart,qt=we.customRequest,fn=we.name,xn=we.headers,Ye=we.withCredentials,St=we.method,Gt=Re.uid,ct=qt||b,Xt={action:zt,filename:fn,data:Ze,file:Nt,headers:xn,withCredentials:Ye,method:St||"post",onProgress:function(At){var un=Je.props.onProgress;un==null||un(At,Nt)},onSuccess:function(At,un){var cn=Je.props.onSuccess;cn==null||cn(At,Nt,un),delete Je.reqs[Gt]},onError:function(At,un){var cn=Je.props.onError;cn==null||cn(At,un,Nt),delete Je.reqs[Gt]}};nn(Re),this.reqs[Gt]=ct(Xt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ve){var Je=this.reqs;if(Ve){var Ze=Ve.uid?Ve.uid:Ve;Je[Ze]&&Je[Ze].abort&&Je[Ze].abort(),delete Je[Ze]}else Object.keys(Je).forEach(function(Re){Je[Re]&&Je[Re].abort&&Je[Re].abort(),delete Je[Re]})}},{key:"render",value:function(){var Ve=this.props,Je=Ve.component,Ze=Ve.prefixCls,Re=Ve.className,zt=Ve.disabled,Nt=Ve.id,we=Ve.style,nn=Ve.multiple,qt=Ve.accept,fn=Ve.capture,xn=Ve.children,Ye=Ve.directory,St=Ve.openFileDialogOnClick,Gt=Ve.onMouseEnter,ct=Ve.onMouseLeave,Xt=(0,Ne.Z)(Ve,le),Vt=_e()((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Ze,!0),"".concat(Ze,"-disabled"),zt),Re,Re)),At=Ye?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},un=zt?{}:{onClick:St?this.onClick:function(){},onKeyDown:St?this.onKeyDown:function(){},onMouseEnter:Gt,onMouseLeave:ct,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Je,(0,Se.Z)({},un,{className:Vt,role:"button",style:we}),ae.createElement("input",(0,Se.Z)({},(0,a.Z)(Xt,{aria:!0,data:!0}),{id:Nt,disabled:zt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:qt},At,{multiple:nn,onChange:this.onChange},fn!=null?{capture:fn}:{})),xn)}}]),Ee}(ae.Component),Ie=Be;function lt(){}var qe=function(me){(0,Ke.Z)(Ee,me);var Oe=(0,Ce.Z)(Ee);function Ee(){var Ae;(0,ke.Z)(this,Ee);for(var Ve=arguments.length,Je=new Array(Ve),Ze=0;Ze<Ve;Ze++)Je[Ze]=arguments[Ze];return Ae=Oe.call.apply(Oe,[this].concat(Je)),Ae.uploader=void 0,Ae.saveUploader=function(Re){Ae.uploader=Re},Ae}return(0,ue.Z)(Ee,[{key:"abort",value:function(Ve){this.uploader.abort(Ve)}},{key:"render",value:function(){return ae.createElement(Ie,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),Ee}(ae.Component);qe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:lt,onError:lt,onSuccess:lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var mt=qe,ce=mt,Ue=re(18929),et=re(4676),Xe=re(36355),at=re(1684),Et=re(9763),ht=re(31724),Pt={icon:function(Oe,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ee}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Oe}}]}},name:"file",theme:"twotone"},Zt=Pt,be=re(7657),ze=function(Oe,Ee){return ae.createElement(be.Z,(0,Se.Z)({},Oe,{ref:Ee,icon:Zt}))},Qe=ae.forwardRef(ze),Ft=Qe,nt=re(58617),Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=Ct,gt=function(Oe,Ee){return ae.createElement(be.Z,(0,Se.Z)({},Oe,{ref:Ee,icon:de}))},$t=ae.forwardRef(gt),Ut=$t,kt={icon:function(Oe,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Oe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ee}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Ee}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ee}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Oe}}]}},name:"picture",theme:"twotone"},De=kt,Fe=function(Oe,Ee){return ae.createElement(be.Z,(0,Se.Z)({},Oe,{ref:Ee,icon:De}))},ve=ae.forwardRef(Fe),He=ve,Me=re(77900),dt=re(56762),pt=re(62892),Lt=re(92343),Dt=re(3113);function Ot(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function vt(me,Oe){const Ee=(0,fe.Z)(Oe),Ae=Ee.findIndex(Ve=>{let{uid:Je}=Ve;return Je===me.uid});return Ae===-1?Ee.push(me):Ee[Ae]=me,Ee}function Rt(me,Oe){const Ee=me.uid!==void 0?"uid":"name";return Oe.filter(Ae=>Ae[Ee]===me[Ee])[0]}function Pn(me,Oe){const Ee=me.uid!==void 0?"uid":"name",Ae=Oe.filter(Ve=>Ve[Ee]!==me[Ee]);return Ae.length===Oe.length?null:Ae}const wn=function(){const Oe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ae=Oe[Oe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ae)||[""])[0]},yn=me=>me.indexOf("image/")===0,on=me=>{if(me.type&&!me.thumbUrl)return yn(me.type);const Oe=me.thumbUrl||me.url||"",Ee=wn(Oe);return/^data:image\//.test(Oe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ee)?!0:!(/^data:/.test(Oe)||Ee)},en=200;function he(me){return new Promise(Oe=>{if(!me.type||!yn(me.type)){Oe("");return}const Ee=document.createElement("canvas");Ee.width=en,Ee.height=en,Ee.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Ee);const Ae=Ee.getContext("2d"),Ve=new Image;if(Ve.onload=()=>{const{width:Je,height:Ze}=Ve;let Re=en,zt=en,Nt=0,we=0;Je>Ze?(zt=Ze*(en/Je),we=-(zt-Re)/2):(Re=Je*(en/Ze),Nt=-(Re-zt)/2),Ae.drawImage(Ve,Nt,we,Re,zt);const nn=Ee.toDataURL();document.body.removeChild(Ee),window.URL.revokeObjectURL(Ve.src),Oe(nn)},Ve.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(Ve.src=Je.result)},Je.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&Oe(Je.result)},Je.readAsDataURL(me)}else Ve.src=window.URL.createObjectURL(me)})}var xe=re(26227),je=re(41464),it=re(15277),ut=re(93948),It=re(6848),wt=ae.forwardRef((me,Oe)=>{let{prefixCls:Ee,className:Ae,style:Ve,locale:Je,listType:Ze,file:Re,items:zt,progress:Nt,iconRender:we,actionIconRender:nn,itemRender:qt,isImgUrl:fn,showPreviewIcon:xn,showRemoveIcon:Ye,showDownloadIcon:St,previewIcon:Gt,removeIcon:ct,downloadIcon:Xt,onPreview:Vt,onDownload:At,onClose:un}=me;var cn,oa;const{status:Qn}=Re,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Tn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Tn)}},[]);const da=we(Re);let Vn=ae.createElement("div",{className:`${Ee}-icon`},da);if(Ze==="picture"||Ze==="picture-card"||Ze==="picture-circle")if(qn==="uploading"||!Re.thumbUrl&&!Re.url){const Tn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Tn},da)}else{const Tn=fn!=null&&fn(Re)?ae.createElement("img",{src:Re.thumbUrl||Re.url,alt:Re.name,className:`${Ee}-list-item-image`,crossOrigin:Re.crossOrigin}):da,Gn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:fn&&!fn(Re)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Vt(Re,la),href:Re.url||Re.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Tn)}const $n=_e()(`${Ee}-list-item`,`${Ee}-list-item-${qn}`),ta=typeof Re.linkProps=="string"?JSON.parse(Re.linkProps):Re.linkProps,ga=Ye?nn((typeof ct=="function"?ct(Re):ct)||ae.createElement(xe.Z,null),()=>un(Re),Ee,Je.removeFile):null,ia=St&&qn==="done"?nn((typeof Xt=="function"?Xt(Re):Xt)||ae.createElement(je.Z,null),()=>At(Re),Ee,Je.downloadFile):null,aa=Ze!=="picture-card"&&Ze!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${Ee}-list-item-actions`,{picture:Ze==="picture"})},ia,ga),ea=_e()(`${Ee}-list-item-name`),fa=Re.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Re.name},ta,{href:Re.url,onClick:Tn=>Vt(Re,Tn)}),Re.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Tn=>Vt(Re,Tn),title:Re.name},Re.name),aa],_t={pointerEvents:"none",opacity:.5},On=xn?ae.createElement("a",{href:Re.url||Re.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Re.url||Re.thumbUrl?void 0:_t,onClick:Tn=>Vt(Re,Tn),title:Je.previewFile},typeof Gt=="function"?Gt(Re):Gt||ae.createElement(it.Z,null)):null,Mn=(Ze==="picture-card"||Ze==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Ee}-list-item-actions`},On,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(Xe.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Mn,Sa&&ae.createElement(Me.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Tn=>{let{className:Gn}=Tn;const la="percent"in Re?ae.createElement(ut.Z,Object.assign({},Nt,{type:"line",percent:Re.percent,"aria-label":Re["aria-label"],"aria-labelledby":Re["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${Ee}-list-item-progress`,Gn)},la)})),va=Re.response&&typeof Re.response=="string"?Re.response:((cn=Re.error)===null||cn===void 0?void 0:cn.statusText)||((oa=Re.error)===null||oa===void 0?void 0:oa.message)||Je.uploadError,pa=qn==="error"?ae.createElement(It.Z,{title:va,getPopupContainer:Tn=>Tn.parentNode},ra):ra;return ae.createElement("div",{className:_e()(`${Ee}-list-item-container`,Ae),style:Ve,ref:Oe},qt?qt(pa,Re,zt,{download:At.bind(null,Re),preview:Vt.bind(null,Re),remove:un.bind(null,Re)}):pa)});const Mt=(me,Oe)=>{const{listType:Ee="text",previewFile:Ae=he,onPreview:Ve,onDownload:Je,onRemove:Ze,locale:Re,iconRender:zt,isImageUrl:Nt=on,prefixCls:we,items:nn=[],showPreviewIcon:qt=!0,showRemoveIcon:fn=!0,showDownloadIcon:xn=!1,removeIcon:Ye,previewIcon:St,downloadIcon:Gt,progress:ct={size:[-1,2],showInfo:!1},appendAction:Xt,appendActionVisible:Vt=!0,itemRender:At,disabled:un}=me,cn=(0,dt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Ee!=="picture"&&Ee!=="picture-card"&&Ee!=="picture-circle"||(nn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Ae&&Ae(_t.originFileObj).then(On=>{_t.thumbUrl=On||"",cn()}))})},[Ee,nn,Ae]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,On)=>{if(Ve)return On==null||On.preventDefault(),Ve(_t)},ca=_t=>{typeof Je=="function"?Je(_t):_t.url&&window.open(_t.url)},Sa=_t=>{Ze==null||Ze(_t)},Pa=_t=>{if(zt)return zt(_t,Ee);const On=_t.status==="uploading",Mn=Nt&&Nt(_t)?ae.createElement(He,null):ae.createElement(Ft,null);let Un=On?ae.createElement(nt.Z,null):ae.createElement(Ut,null);return Ee==="picture"?Un=On?ae.createElement(nt.Z,null):Mn:(Ee==="picture-card"||Ee==="picture-circle")&&(Un=On?Re.uploading:Mn),Un},da=(_t,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Lt.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:un};if((0,Lt.l$)(_t)){const ra=(0,Lt.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Dt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Dt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle(Oe,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Xe.E_),$n=Vn("upload",we),ta=Vn(),ga=_e()(`${$n}-list`,`${$n}-list-${Ee}`),ia=(0,fe.Z)(nn.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ee==="picture-card"||Ee==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,pt.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return Ee!=="picture-card"&&Ee!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(Me.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:On,file:Mn,className:Un,style:Xn}=_t;return ae.createElement(wt,{key:On,locale:Re,prefixCls:$n,className:Un,style:Xn,file:Mn,items:nn,progress:ct,listType:Ee,isImgUrl:Nt,showPreviewIcon:qt,showRemoveIcon:fn,showDownloadIcon:xn,removeIcon:Ye,previewIcon:St,downloadIcon:Gt,iconRender:Pa,actionIconRender:da,itemRender:At,onPreview:qn,onDownload:ca,onClose:Sa})}),Xt&&ae.createElement(Me.default,Object.assign({},ea,{visible:Vt,forceRender:!0}),_t=>{let{className:On,style:Mn}=_t;return(0,Lt.Tm)(Xt,Un=>({className:_e()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Wt=ae.forwardRef(Mt),Qt=re(17313),Sn=re(8378),hn=re(83116),Fn=re(37613),tn=me=>{const{componentCls:Oe,iconCls:Ee}=me;return{[`${Oe}-wrapper`]:{[`${Oe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Oe]:{padding:`${me.padding}px 0`},[`${Oe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Oe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Oe}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Oe}-drag-icon`]:{marginBottom:me.margin,[Ee]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Oe}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Oe}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`p${Oe}-drag-icon ${Ee},
p${Oe}-text,
p${Oe}-hint
`]:{color:me.colorTextDisabled}}}}}},En=me=>{const{componentCls:Oe,antCls:Ee,iconCls:Ae,fontSize:Ve,lineHeight:Je}=me,Ze=`${Oe}-list-item`,Re=`${Ze}-actions`,zt=`${Ze}-action`,Nt=Math.round(Ve*Je);return{[`${Oe}-wrapper`]:{[`${Oe}-list`]:Object.assign(Object.assign({},(0,Qt.dF)()),{lineHeight:me.lineHeight,[Ze]:{position:"relative",height:me.lineHeight*Ve,marginTop:me.marginXS,fontSize:Ve,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ze}-name`]:Object.assign(Object.assign({},Qt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Re]:{[zt]:{opacity:0},[`${zt}${Ee}-btn-sm`]:{height:Nt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${zt}:focus-visible,
&.picture ${zt}
`]:{opacity:1},[Ae]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Ae}`]:{color:me.colorText}},[`${Oe}-icon ${Ae}`]:{color:me.colorTextDescription,fontSize:Ve},[`${Ze}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ve+me.paddingXS,fontSize:Ve,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ze}:hover ${zt}`]:{opacity:1,color:me.colorText},[`${Ze}-error`]:{color:me.colorError,[`${Ze}-name, ${Oe}-icon ${Ae}`]:{color:me.colorError},[Re]:{[`${Ae}, ${Ae}:hover`]:{color:me.colorError},[zt]:{opacity:1}}},[`${Oe}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=re(36237),sn=re(1950);const Nn=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:Oe}=me,Ee=`${Oe}-animate-inline`;return[{[`${Oe}-wrapper`]:{[`${Ee}-appear, ${Ee}-enter, ${Ee}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ee}-appear, ${Ee}-enter`]:{animationName:Nn},[`${Ee}-leave`]:{animationName:Yn}}},{[`${Oe}-wrapper`]:(0,sn.J$)(me)},Nn,Yn]},na=re(30071),Jn=re(64993);const pe=me=>{const{componentCls:Oe,iconCls:Ee,uploadThumbnailSize:Ae,uploadProgressOffset:Ve}=me,Je=`${Oe}-list`,Ze=`${Je}-item`;return{[`${Oe}-wrapper`]:{[`
${Je}${Je}-picture,
${Je}${Je}-picture-card,
${Je}${Je}-picture-circle
`]:{[Ze]:{position:"relative",height:Ae+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ze}-thumbnail`]:Object.assign(Object.assign({},Qt.vS),{width:Ae,height:Ae,lineHeight:`${Ae+me.paddingSM}px`,textAlign:"center",flex:"none",[Ee]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ze}-progress`]:{bottom:Ve,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ae+me.paddingXS}},[`${Ze}-error`]:{borderColor:me.colorError,[`${Ze}-thumbnail ${Ee}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${Ze}-uploading`]:{borderStyle:"dashed",[`${Ze}-name`]:{marginBottom:Ve}}},[`${Je}${Je}-picture-circle ${Ze}`]:{[`&, &::before, ${Ze}-thumbnail`]:{borderRadius:"50%"}}}}},ye=me=>{const{componentCls:Oe,iconCls:Ee,fontSizeLG:Ae,colorTextLightSolid:Ve}=me,Je=`${Oe}-list`,Ze=`${Je}-item`,Re=me.uploadPicCardSize;return{[`
${Oe}-wrapper${Oe}-picture-card-wrapper,
${Oe}-wrapper${Oe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Qt.dF)()),{display:"inline-block",width:"100%",[`${Oe}${Oe}-select`]:{width:Re,height:Re,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Oe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Oe}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Re,height:Re,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ze]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ze}:hover`]:{[`&::before, ${Ze}-actions`]:{opacity:1}},[`${Ze}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{zIndex:10,width:Ae,margin:`0 ${me.marginXXS}px`,fontSize:Ae,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ze}-actions, ${Ze}-actions:hover`]:{[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{color:new Jn.C(Ve).setAlpha(.65).toRgbString(),"&:hover":{color:Ve}}},[`${Ze}-thumbnail, ${Ze}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ze}-name`]:{display:"none",textAlign:"center"},[`${Ze}-file + ${Ze}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ze}-uploading`]:{[`&${Ze}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{display:"none"}},[`${Ze}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Oe}-wrapper${Oe}-picture-circle-wrapper`]:{[`${Oe}${Oe}-select`]:{borderRadius:"50%"}}}};var ot=me=>{const{componentCls:Oe}=me;return{[`${Oe}-rtl`]:{direction:"rtl"}}};const xt=me=>{const{componentCls:Oe,colorTextDisabled:Ee}=me;return{[`${Oe}-wrapper`]:Object.assign(Object.assign({},(0,Qt.Wf)(me)),{[Oe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Oe}-select`]:{display:"inline-block"},[`${Oe}-disabled`]:{color:Ee,cursor:"not-allowed"}})}};var yt=(0,hn.Z)("Upload",me=>{const{fontSizeHeading3:Oe,fontSize:Ee,lineHeight:Ae,lineWidth:Ve,controlHeightLG:Je}=me,Ze=Math.round(Ee*Ae),Re=(0,Fn.TS)(me,{uploadThumbnailSize:Oe*2,uploadProgressOffset:Ze/2+Ve,uploadPicCardSize:Je*2.55});return[xt(Re),tn(Re),pe(Re),ye(Re),En(Re),Wn(Re),ot(Re),(0,Sn.Z)(Re)]},me=>({actionsColor:me.colorTextDescription})),gn=function(me,Oe,Ee,Ae){function Ve(Je){return Je instanceof Ee?Je:new Ee(function(Ze){Ze(Je)})}return new(Ee||(Ee=Promise))(function(Je,Ze){function Re(we){try{Nt(Ae.next(we))}catch(nn){Ze(nn)}}function zt(we){try{Nt(Ae.throw(we))}catch(nn){Ze(nn)}}function Nt(we){we.done?Je(we.value):Ve(we.value).then(Re,zt)}Nt((Ae=Ae.apply(me,Oe||[])).next())})};const jt=`__LIST_IGNORE_${Date.now()}__`,Yt=(me,Oe)=>{const{fileList:Ee,defaultFileList:Ae,onRemove:Ve,showUploadList:Je=!0,listType:Ze="text",onPreview:Re,onDownload:zt,onChange:Nt,onDrop:we,previewFile:nn,disabled:qt,locale:fn,iconRender:xn,isImageUrl:Ye,progress:St,prefixCls:Gt,className:ct,type:Xt="select",children:Vt,style:At,itemRender:un,maxCount:cn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(at.Z),Vn=qt!=null?qt:da,[$n,ta]=(0,Ue.Z)(Ae||[],{value:Ee,postState:Ht=>Ht!=null?Ht:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();(Ee||[]).forEach((dn,Ln)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Ht}_${Ln}__`)})},[Ee]);const ea=(Ht,dn,Ln)=>{let an=(0,fe.Z)(dn),mn=!1;cn===1?an=an.slice(-1):cn&&(mn=an.length>cn,an=an.slice(0,cn)),(0,et.flushSync)(()=>{ta(an)});const Hn={file:Ht,fileList:an};Ln&&(Hn.event=Ln),(!mn||an.some(bn=>bn.uid===Ht.uid))&&(0,et.flushSync)(()=>{Nt==null||Nt(Hn)})},fa=(Ht,dn)=>gn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:an}=me;let mn=Ht;if(Ln){const Hn=yield Ln(Ht,dn);if(Hn===!1)return!1;if(delete Ht[jt],Hn===jt)return Object.defineProperty(Ht,jt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(mn=Hn)}return an&&(mn=yield an(mn)),mn}),_t=Ht=>{const dn=Ht.filter(mn=>!mn.file[jt]);if(!dn.length)return;const Ln=dn.map(mn=>Ot(mn.file));let an=(0,fe.Z)($n);Ln.forEach(mn=>{an=vt(mn,an)}),Ln.forEach((mn,Hn)=>{let bn=mn;if(dn[Hn].parsedFile)mn.status="uploading";else{const{originFileObj:ha}=mn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=mn.uid,bn=ua}ea(bn,an)})},On=(Ht,dn,Ln)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Hn){}if(!Rt(dn,$n))return;const an=Ot(dn);an.status="done",an.percent=100,an.response=Ht,an.xhr=Ln;const mn=vt(an,$n);ea(an,mn)},Mn=(Ht,dn)=>{if(!Rt(dn,$n))return;const Ln=Ot(dn);Ln.status="uploading",Ln.percent=Ht.percent;const an=vt(Ln,$n);ea(Ln,an,Ht)},Un=(Ht,dn,Ln)=>{if(!Rt(Ln,$n))return;const an=Ot(Ln);an.error=Ht,an.response=dn,an.status="error";const mn=vt(an,$n);ea(an,mn)},Xn=Ht=>{let dn;Promise.resolve(typeof Ve=="function"?Ve(Ht):Ve).then(Ln=>{var an;if(Ln===!1)return;const mn=Pn(Ht,$n);mn&&(dn=Object.assign(Object.assign({},Ht),{status:"removed"}),$n==null||$n.forEach(Hn=>{const bn=dn.uid!==void 0?"uid":"name";Hn[bn]===dn[bn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(an=aa.current)===null||an===void 0||an.abort(dn),ea(dn,mn))})},ra=Ht=>{ia(Ht.type),Ht.type==="drop"&&(we==null||we(Ht))};ae.useImperativeHandle(Oe,()=>({onBatchStart:_t,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Tn}=ae.useContext(Xe.E_),Gn=va("upload",Gt),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:Mn,onSuccess:On},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Vt||Vn)&&delete la.id;const[ya,La]=yt(Gn),[ba]=(0,Et.Z)("Upload",ht.Z.Upload),{showRemoveIcon:Bt,showPreviewIcon:st,showDownloadIcon:ft,removeIcon:bt,previewIcon:ln,downloadIcon:zn}=typeof Je=="boolean"?{}:Je,Rn=(Ht,dn)=>Je?ae.createElement(Wt,{prefixCls:Gn,listType:Ze,items:$n,previewFile:nn,onPreview:Re,onDownload:zt,onRemove:Xn,showRemoveIcon:!Vn&&Bt,showPreviewIcon:st,showDownloadIcon:ft,removeIcon:bt,previewIcon:ln,downloadIcon:zn,iconRender:xn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Ye,progress:St,appendAction:Ht,appendActionVisible:dn,itemRender:un,disabled:Vn}):Ht,Dn=_e()(`${Gn}-wrapper`,ct,Pa,La,Tn==null?void 0:Tn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Ze==="picture-card",[`${Gn}-picture-circle-wrapper`]:Ze==="picture-circle"}),jn=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),At);if(Xt==="drag"){const Ht=_e()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Dn},ae.createElement("div",{className:Ht,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(ce,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Vt))),Rn()))}const _n=_e()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Ht=>ae.createElement("div",{className:_n,style:Ht},ae.createElement(ce,Object.assign({},la,{ref:aa}))))(Vt?void 0:{display:"none"});return ya(Ze==="picture-card"||Ze==="picture-circle"?ae.createElement("span",{className:Dn},Rn(Kn,!!Vt)):ae.createElement("span",{className:Dn},Kn,Rn()))};var kn=ae.forwardRef(Yt),tt=function(me,Oe){var Ee={};for(var Ae in me)Object.prototype.hasOwnProperty.call(me,Ae)&&Oe.indexOf(Ae)<0&&(Ee[Ae]=me[Ae]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ae=Object.getOwnPropertySymbols(me);Ve<Ae.length;Ve++)Oe.indexOf(Ae[Ve])<0&&Object.prototype.propertyIsEnumerable.call(me,Ae[Ve])&&(Ee[Ae[Ve]]=me[Ae[Ve]]);return Ee},An=ae.forwardRef((me,Oe)=>{var{style:Ee,height:Ae}=me,Ve=tt(me,["style","height"]);return ae.createElement(kn,Object.assign({ref:Oe},Ve,{type:"drag",style:Object.assign(Object.assign({},Ee),{height:Ae})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=jt;var Bn=Zn}}]);