diff --git a/index.html b/index.html index b460cd4052..148a95512d 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Edit__index.052f470f.async.js b/p__Classrooms__Lists__GroupHomework__Edit__index.2c440a1f.async.js similarity index 84% rename from p__Classrooms__Lists__GroupHomework__Edit__index.052f470f.async.js rename to p__Classrooms__Lists__GroupHomework__Edit__index.2c440a1f.async.js index fd53a818aa..42450d6a73 100644 --- a/p__Classrooms__Lists__GroupHomework__Edit__index.052f470f.async.js +++ b/p__Classrooms__Lists__GroupHomework__Edit__index.2c440a1f.async.js @@ -1,4 +1,4 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[6729],{26227:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},41464:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},61481:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},33853:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},12893:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},32134:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},38819:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},93938:function(Oe,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Oe(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Oe.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Oe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Oe.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Oe.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Oe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function Ke(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(x-ee)/ie,xe=x-se*b;ge=ae,me=se*ge+xe}else if(ie===0){var He=(a-E)/re,ut=a-He*ae;ge=b,me=He*ge+ut}else{var He=(a-E)/re,se=(x-ee)/ie,ut=a-He*ae,xe=x-se*b;ge=(xe-ut)/(He-se),me=He*ge+ut}return te.x=ge,te.y=me,te}function Ne(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var xe=1-te,He=te,ut=ae*xe+y*He,ft=a*xe+E*He,Lt=y*xe+b*He,ye=E*xe+x*He,_e=b*xe+z*He,Ie=x*xe+ee*He,qe=ut*xe+Lt*He,it=ft*xe+ye*He,De=Lt*xe+_e*He,We=ye*xe+Ie*He,Ve=qe*xe+De*He,ht=it*xe+We*He;re.x=ut,re.y=ft,ie.x=qe,ie.y=it,ge.x=Ve,ge.y=ht,me.x=De,me.y=We,se.x=_e,se.y=Ie}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*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(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,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 Oe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),b0&&(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())),x.spot1=ce,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=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,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=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 x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Oe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Oe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.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 x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.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 x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.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+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),xe=ne(),He=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,He,se,xe);var ut=ne(),ft=ne(),Lt=ne();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ut,ft,Lt,me,me);var ye=ne(),_e=ne(),Ie=ne();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ie,ye,_e),te.add(new go.PathSegment(go.PathSegment.Move,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Lt.x*a,Lt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*a,Lt.y*y,ut.x*a,ut.y*y,ft.x*a,ft.y*y).close()),Se(re),Se(ie),Se(ge),Se(me),Se(se),Se(xe),Se(He),Se(ut),Se(ft),Se(Lt),Se(ye),Se(_e),Se(Ie),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,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 Oe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var xe=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var He=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ut=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ut),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(xe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*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,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,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(ae,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(ae,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(ae,a,y){var E=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 E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Oe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),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=Ke(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Oe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.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 x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.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 x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.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 x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.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 x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.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 x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Oe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.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 x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*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+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*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+x)*a,0,a,(.2-x)*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+x)*y,(.8+x)*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-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.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 x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);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());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.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 re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.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 x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.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 x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.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 x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.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 E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var 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,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.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 E.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)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.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 re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.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)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var xe=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var He=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var ut=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.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 x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*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+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ie),Se(ge),Se(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(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 x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.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()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.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()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,xe=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.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 x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,xe=ie*me,He=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(xe+me)/2)*a,(te+(se+He)/2)*y,(ee-me)*a,(te+He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-He)*y,(ee-xe)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+xe)*a,(te-se)*y,(ee+me)*a,(te-He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+He)*y,(ee+(xe+me)/2)*a,(te+(se+He)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ft=new go.PathFigure(.8*a,y,!1);return E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.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 x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.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 x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*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)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.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 x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.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 x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.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 x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.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 x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.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 x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.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 ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,xe=new go.PathFigure((me-ie)*a,se*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var He=new go.PathFigure(0,y,!1);return E.add(He),He.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.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=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.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 x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.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()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.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 x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.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 x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.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);E.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 re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.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 x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.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 x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),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()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.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()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.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 x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),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")},98598: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 Oe={},dt="5.0",oe={},ne=null,Se=!1,Ke=!1,Ne=null,ce=!1,Fe=null,le=null,$e=0;$e4?parseFloat(fe):5};Oe.setHTML5Codebase=function(fe,Ce){le=fe,We(fe,Ce)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(fe,Ce){var Je=parseFloat(fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Fe=fe,De(fe,Ce)},Oe.getHTML5CodebaseVersion=function(){return ae},Oe.getParameters=function(){return oe},Oe.setFontsCSSURL=function(fe){z=fe},Oe.setGiacJSURL=function(fe){},Oe.setJNLPFile=function(fe){Te=fe},Oe.setJNLPBaseDir=function(fe){},Oe.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Je=oe.id,ct,Ze=!1,tt=0;tt=5)return!0;var fe=Oe.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var fe=Oe.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Oe.stopAnimation=function(){var fe=Oe.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var fe=oe.id!==void 0?oe.id:"ggbApplet";return window[fe]},Oe.resize=function(){};var xe=function(fe,Ce,Je){var ct=document.createElement("param");ct.setAttribute("name",Ce),ct.setAttribute("value",Je),fe.appendChild(ct)},He=function(fe){return fe&&fe!=="false"},ut=function(fe,Ce,Je){te(ae)<=4.2&&(Je=!0);var ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var tt=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ae)<=4.4)He(Ce.showToolBar)&&(Ce.height-=7),He(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&He(Ce.showToolBar)&&(Ce.width=605,tt=605);else{var Ye=100;(He(Ce.showToolBar)||He(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ye=He(Ce.showMenuBar)?245:155),tt=5?(Ce.appletOnLoad=function(Bt){var bt=fe.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),Tt(Bt)},be||Ct.appendChild(he)):Ze.appendChild(he),Ct.appendChild(Ze),be||fe.appendChild(Ct),setTimeout(function(){Oe.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Ze),fe.appendChild(Pe),Ce.appletOnLoad=function(Bt){Oe.resize(),Tt(Bt)}}function je(Bt,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,bt.appletOnLoad):renderGGBElement(Bt),Ve("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function Me(Bt,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ft){je(Ft.article,Ft.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Bt.className+=" geogebraweb")):je(Bt,bt)}if(ct){scriptLoadStarted=!0;for(var st=0;st0?(Pt.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(Tt).append(Ct),window.dispatchEvent(new Event("resize"))):ut(Pt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(Tt)}else Re=ct,ut(fe,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;defe/4*3&&(Pt=fe/4*3),Tt=Pt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",Pt),Ye.setAttribute("height",Tt);var Ct=(fe-Pt)/2,be=(Ce-Tt)/2;Ye.style.left=Ct+"px",Ye.style.top=be+"px",Ze.appendChild(Ye)}}return Ze.appendChild(de),Ze},qe=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],De=function(fe,Ce){if(ae=fe,Ce){We(ae,!0);return}var Je=!Se;if(Je){var ct=te(ae);!isNaN(ct)&&ct<4.4&&(Je=!1)}var Ze,tt;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ae.indexOf("//");de>0?tt=ae:de===0?tt=Ze+ae:tt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in it)if(ae.slice(it[Ye].length*-1)===it[Ye]||ae.slice((it[Ye].length+1)*-1)===it[Ye]+"/"){We(tt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!He(oe.showToolBar)&&!He(oe.showMenuBar)&&!He(oe.showAlgebraInput)&&!He(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?tt+="webSimple/":tt+="web3d/",We(tt,!1)},We=function(fe,Ce){if(fe.requirejs){nt=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),nt=fe,Ce===null&&(Ce=fe.indexOf("http")===-1),ke=Ce,a="web.nocache.js",y=!1;var Je=nt.split("/");Je.length>1&&(!Ce&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=fe.split("/"),ae=Je[Je.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var ct=parseFloat(ae);ct!==NaN&&ct<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead."),De("5.0",Ce))},Ve=function(fe,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(fe)};oe.material_id!==void 0?ge(ht):ht();function ht(){var fe=dt;Fe!==null?fe=Fe:parseFloat(fe)<5&&(fe="5.0"),De(fe,!1),le!==null&&We(le,ke),ce=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function dt(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function oe(ce,Fe,le,$e,Ae,Te){var nt=null;if(Te!=null&&Te!="")for(var ke=ce.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+Te+" ")>-1){nt=ke;break}else ke=ke.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(nt)Re=nt.offsetWidth,ae=Math.max($e?nt.offsetWidth:0,nt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Re&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((le===void 0||!le)&&Fe>0&&Fe+y1&&(Te=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ae=ne(ce,Fe,Te,le,ce.scaleContainerClass);else return $e;return Te&&(!ce.hasOwnProperty("scale")||$e===1)?Ae:Math.min($e,Ae)}function Ke(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=ce.getBoundingClientRect(),Ae=(Fe-$e.width)/2,Te=(le-$e.height)/2;Te<0&&(Te=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?ce.style.left="40px":ce.style.left=Ae+"px",ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ce.style.top="40px":ce.style.top=Te+"px",ce.style.left=Ae+"px")}function Ne(ce,Fe){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var $e=Se(Fe,ce);Oe()&&le.setAttribute("data-param-scale",$e);for(var Ae=null,Te=0;Te=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(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var dt=c[Oe];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Oe(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var $e=ce.lastIndexOf(tb,Math.min(le,Fe));return $e>=O?ce.substring(O,$e+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Oe(Fe.src)}return ce}function oe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),Fe=O;FeO?ce[ce.length-P].href:W}function Ke(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ne=oe();return Ne==W&&(Ne=ne()),Ne==W&&(Ne=Se()),Ne==W&&Ke()&&(Ne=Oe(o.location.href)),Ne=dt(Ne),Ne}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],dt=O,oe=[],ne=[];function Se(ce){var Fe=ne[ce](),le=oe[ce];if(Fe in le)return Fe;var $e=[];for(var Ae in le)$e[le[Ae]]=Ae;throw r&&r(ce,$e,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in oe[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(ce[Fe]=Se(Fe));return ce},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ne=Ke.indexOf(Db);Ne!=-1&&(dt=parseInt(Ke.substring(Ne+P),$),Ke=Ke.substring(O,Ne))}catch(ce){}return webModule.__softPermutationId=dt,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(Oe,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ne},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ke},f1:function(){return Se}});var ne=oe(10148);function Se($e){let Ae=!0;if($e.length>0){for(let Te=0;Te<$e.length;Te++)if($e[Te].compile_success==0||!$e[Te].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function Ke($e,Ae=""){let Te=[];for(let nt=0;nt<$e.length;nt++){let ke=$e[nt],Re=Ae?`${Ae}/${ke.name}`:`${ke.name}`;Te.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Re})}return Te}function Ne($e,Ae,Te){for(let nt=0;nt<$e.length;nt++){let ke=$e[nt];if(ke.key===Ae){ke.children=Te;break}ke.children&&Ne(ke.children,Ae,Te)}return $e}function ce($e,Ae,Te){let nt;return function(){let ke=this,Re=arguments,ae=function(){nt=null,Te||$e.apply(ke,Re)},a=Te&&!nt;clearTimeout(nt),nt=setTimeout(ae,Ae),a&&$e.apply(ke,Re)}}const Fe=!0,le=ne.Z.API_SERVER},10437:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(59301),Se=oe(42203),Ke=oe(24905),Ne=oe(12893),ce=oe(32134),Fe=oe(70635),le=oe(78241),$e=oe(57809),Ae={},Te=Object.defineProperty,nt=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ae=(ye,_e,Ie)=>_e in ye?Te(ye,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ye[_e]=Ie,a=(ye,_e)=>{for(var Ie in _e||(_e={}))ke.call(_e,Ie)&&ae(ye,Ie,_e[Ie]);if(nt)for(var Ie of nt(_e))Re.call(_e,Ie)&&ae(ye,Ie,_e[Ie]);return ye},y=(ye,_e,Ie)=>new Promise((qe,it)=>{var De=ht=>{try{Ve(Ie.next(ht))}catch(fe){it(fe)}},We=ht=>{try{Ve(Ie.throw(ht))}catch(fe){it(fe)}},Ve=ht=>ht.done?qe(ht.value):Promise.resolve(ht.value).then(De,We);Ve((Ie=Ie.apply(ye,_e)).next())});const E=Ke.default.Group,b=({classroomList:ye,loading:_e,user:Ie,exercise_id:qe=null,homework_common_id:it=null,setitem:De,item:We,type:Ve,rz:ht,dispatch:fe})=>{var Ce,Je,ct,Ze,tt,de,Ye,Pt;const[Tt,Ct]=(0,ne.useState)([]);let[be,he]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[je,Me]=(0,ne.useState)(!1),[st,xt]=(0,ne.useState)(!1),[Et]=le.default.useForm();(0,ne.useEffect)(()=>{ht&&(be.zydatas=ht,he(a({},be)),We!=null&&We.ec_course_id&&Mt())},[We,ht]);function Mt(){return y(this,null,function*(){console.log("----",We),yield jt(We==null?void 0:We.ec_major_school_id),yield Bt(We==null?void 0:We.ec_year_id),yield bt(We==null?void 0:We.ec_course_id),Et.setFieldsValue({ec_course_id:We==null?void 0:We.ec_course_id,ec_major_school_id:We==null?void 0:We.ec_major_school_id,ec_point_ids:We==null?void 0:We.ec_point_ids,ec_year_id:We==null?void 0:We.ec_year_id})})}function jt(Ft){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Ft}/ec_years/get_year_list.json`,{method:"get"});be.jbdatas=Wt==null?void 0:Wt.data,he(a({},be)),Et.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Bt(Ft){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_years/${Ft}/ec_courses/get_courses.json`,{method:"get"});be.kcdatas=Wt==null?void 0:Wt.data,he(a({},be)),Et.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const bt=Ft=>y(void 0,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_courses/${Ft}/ec_points.json`,{method:"get",params:{ec_course_id:Ft}});be.zsdatas=Wt==null?void 0:Wt.data,he(a({},be))});return ne.createElement("div",{className:Ae.from},ne.createElement(le.default,{form:Et,layout:"inline",onValuesChange:Ft=>{console.log("----",Ft),Ft.ec_major_school_id&&(be.jbdatas=[],be.kcdatas=[],be.zsdatas=[],he(a({},be)),jt(Ft.ec_major_school_id)),Ft.ec_year_id&&(be.kcdatas=[],be.zsdatas=[],he(a({},be)),Bt(Ft.ec_year_id)),Ft.ec_course_id&&(be.zsdatas=[],he(a({},be)),bt(Ft.ec_course_id))},onFinish:Ft=>y(void 0,null,function*(){De(Ft)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement($e.default,{style:{width:150},disabled:((Ce=be.zydatas)==null?void 0:Ce.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Je=be==null?void 0:be.zydatas)==null?void 0:Je.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.ec_major_school_id},Ft==null?void 0:Ft.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement($e.default,{style:{width:150},disabled:((ct=be.jbdatas)==null?void 0:ct.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ze=be==null?void 0:be.jbdatas)==null?void 0:Ze.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.ec_year_id},Ft==null?void 0:Ft.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement($e.default,{style:{width:150},disabled:((tt=be.kcdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=be==null?void 0:be.kcdatas)==null?void 0:de.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.id},Ft==null?void 0:Ft.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement($e.default,{onChange:()=>{Et.submit()},style:{width:150},mode:"multiple",disabled:((Ye=be.zsdatas)==null?void 0:Ye.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Pt=be==null?void 0:be.zsdatas)==null?void 0:Pt.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.id},Ft==null?void 0:Ft.name))))))};var x=(0,Se.connect)(({classroomList:ye,loading:_e,globalSetting:Ie,user:qe})=>({classroomList:ye,globalSetting:Ie,loading:_e.effects,user:qe}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(ye,_e,Ie)=>_e in ye?z(ye,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ye[_e]=Ie,se=(ye,_e)=>{for(var Ie in _e||(_e={}))ie.call(_e,Ie)&&me(ye,Ie,_e[Ie]);if(re)for(var Ie of re(_e))ge.call(_e,Ie)&&me(ye,Ie,_e[Ie]);return ye},xe=(ye,_e)=>ee(ye,te(_e)),He=(ye,_e,Ie)=>new Promise((qe,it)=>{var De=ht=>{try{Ve(Ie.next(ht))}catch(fe){it(fe)}},We=ht=>{try{Ve(Ie.throw(ht))}catch(fe){it(fe)}},Ve=ht=>ht.done?qe(ht.value):Promise.resolve(ht.value).then(De,We);Ve((Ie=Ie.apply(ye,_e)).next())});const ut=Ke.default.Group,ft=({classroomList:ye,loading:_e,user:Ie,exercise_id:qe=null,homework_common_id:it=null,setitem:De,type:We,dispatch:Ve})=>{var ht,fe;let[Ce,Je]=(0,ne.useState)([{}]),[ct,Ze]=(0,ne.useState)([]);function tt(){return He(this,null,function*(){var Ye,Pt,Tt;let Ct=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:qe,homework_common_id:it}});if(((Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.length)>0){let be=[];(Pt=Ct==null?void 0:Ct.data)==null||Pt.map(he=>{var Pe;(Pe=he==null?void 0:he.ec_point_ids)==null||Pe.map(je=>{be.push(je)})}),De(xe(se({},(Tt=Ct==null?void 0:Ct.data)==null?void 0:Tt[0]),{ec_point_ids:be})),Je(Ct==null?void 0:Ct.data)}})}(0,ne.useEffect)(()=>{var Ye,Pt;(Pt=(Ye=Ie==null?void 0:Ie.userInfo)==null?void 0:Ye.course)!=null&&Pt.course_school_id&&de()},[(fe=(ht=Ie==null?void 0:Ie.userInfo)==null?void 0:ht.course)==null?void 0:fe.course_school_id]);function de(){return He(this,null,function*(){var Ye,Pt;const Tt=yield(0,Fe.ZP)(`/api/schools/${(Pt=(Ye=Ie==null?void 0:Ie.userInfo)==null?void 0:Ye.course)==null?void 0:Pt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ze(Tt==null?void 0:Tt.data),(it||qe)&&tt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ce==null?void 0:Ce.map((Ye,Pt)=>ne.createElement("div",{key:Pt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ct,item:Ye,type:Pt,setitem:Tt=>{Ce.splice(Pt,1,Tt),Je([...Ce]);let Ct=[];Ce==null||Ce.map(be=>{var he;(he=be==null?void 0:be.ec_point_ids)==null||he.map(Pe=>{Ct.push(Pe)})}),De(xe(se({},Tt),{ec_point_ids:Ct}))}}),Pt!=0&&ne.createElement(Ne.Z,{onClick:()=>{Ce.splice(Pt,1),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ce.Z,{onClick:()=>{Ce.push({}),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}))))};var Lt=(0,Se.connect)(({classroomList:ye,loading:_e,globalSetting:Ie,user:qe})=>({classroomList:ye,globalSetting:Ie,loading:_e.effects,user:qe}))(ft)},12963:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=oe(92310),Ne=oe.n(Ke),ce=oe(71418),Fe=oe(2859),le=oe(70635),$e=oe(58130),Ae=(ke,Re,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,Re)).next())}),nt=({data:ke,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const xe=()=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,$e.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Lt,z.current.onload=function(){ft()},ge(!1),se("")}),He=Lt=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ye=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Lt.dataUrl}});ye!=null&&ye.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:ye==null?void 0:ye.id,settings:JSON.stringify(Lt.state)}})).status===0&&E():ye!=null&&ye.id&&E(ye),ge(!1),se("")}),ut=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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(_e=>{const Ie=document.querySelector(_e.name);Ie&&Ie.setAttribute("title",_e.title)})},ft=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",He),ee.current.addEventListener("beforeclose",y),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ut()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ce.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ne()(Se.imageDimensions,Re,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},75890:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ke=oe(43604),Ne=oe(99313),ce=oe(3113),Fe=oe(25711),le=oe(93938),$e=oe(48136),Ae=oe(59301);const Te=(0,ne.forwardRef)(({callback:nt,showSaveButton:ke,value:Re=""},ae)=>{const a=(0,ne.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 "}]}]}],E=[{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 +(self.webpackChunk=self.webpackChunk||[]).push([[6729],{26227:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},41464:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},61481:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},33853:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},12893:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},32134:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},38819:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(Te,nt){return Se.createElement(ce.Z,(0,ne.Z)({},Te,{ref:nt,icon:Ne}))},le=Se.forwardRef(Fe),$e=le},93938:function(Oe,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Oe(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Oe.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Oe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Oe.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Oe.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Oe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function Ke(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ge=b-z,ie=NaN,me=NaN;if(re===0)if(ge===0)ae===y&&(ie=ae,me=a);else{var se=(x-ee)/ge,xe=x-se*b;ie=ae,me=se*ie+xe}else if(ge===0){var He=(a-E)/re,ut=a-He*ae;ie=b,me=He*ie+ut}else{var He=(a-E)/re,se=(x-ee)/ge,ut=a-He*ae,xe=x-se*b;ie=(xe-ut)/(He-se),me=He*ie+ut}return te.x=ie,te.y=me,te}function Ne(ae,a,y,E,b,x,z,ee,te,re,ge,ie,me,se){var xe=1-te,He=te,ut=ae*xe+y*He,ft=a*xe+E*He,Lt=y*xe+b*He,ye=E*xe+x*He,_e=b*xe+z*He,Ie=x*xe+ee*He,qe=ut*xe+Lt*He,gt=ft*xe+ye*He,De=Lt*xe+_e*He,We=ye*xe+Ie*He,Ve=qe*xe+De*He,ht=gt*xe+We*He;re.x=ut,re.y=ft,ge.x=qe,ge.y=gt,ie.x=Ve,ie.y=ht,me.x=De,me.y=We,se.x=_e,se.y=Ie}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*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(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,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 Oe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.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())):x.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())),b0&&(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())),x.spot1=ce,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=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,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+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,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-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,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Oe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=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 x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/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,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Oe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Oe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.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 x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.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 x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.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+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ge=ne(),ie=ne(),me=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,ie,me,me);var se=ne(),xe=ne(),He=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,He,se,xe);var ut=ne(),ft=ne(),Lt=ne();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,ut,ft,Lt,me,me);var ye=ne(),_e=ne(),Ie=ne();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ie,ye,_e),te.add(new go.PathSegment(go.PathSegment.Move,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Lt.x*a,Lt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*a,Lt.y*y,ut.x*a,ut.y*y,ft.x*a,ft.y*y).close()),Se(re),Se(ge),Se(ie),Se(me),Se(se),Se(xe),Se(He),Se(ut),Se(ft),Se(Lt),Se(ye),Se(_e),Se(Ie),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,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 Oe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.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(ae,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(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ge=ne(),ie=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var se=oe(re.x,re.y);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ge,ie);var xe=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var He=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var ut=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ut),Se(te),Se(re),Se(ge),Se(ie),Se(se),Se(xe),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*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,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*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,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,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(ae,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(ae,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(ae,a,y){var E=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 E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Se(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Se(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Oe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),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=Ke(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.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,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ie),re.spot2=new go.Spot(ie.x,ie.y),Se(ie),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.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,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ie.x,ie.y),Se(ie),re}),go.Shape.setFigureParameter("Pointer",0,new Oe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=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,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.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 x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.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 x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.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 x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.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 x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.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 x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ge=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ie=.05,me=le*ie;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,re*y,(te+me)*a,(re-ie)*y,(te+ie)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,me=le*ie,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-me)*y,(te+me)*a,(re-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-me)*a,(re-ie)*y,(te-ie)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,me=le*ie,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-me)*y,(te+me)*a,(re-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-me)*a,(re-ie)*y,(te-ie)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,me=le*ie,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-me)*y,(te+me)*a,(re-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-me)*a,(re-ie)*y,(te-ie)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,me=le*ie,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te-ie)*a,(re-me)*y,(te-me)*a,(re-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Oe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.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 x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*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+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.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+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*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-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*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+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*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+x)*a,0,a,(.2-x)*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+x)*y,(.8+x)*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-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.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 x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);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());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.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 re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.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 x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.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 x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.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 x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.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 E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.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()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var 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,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.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 x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.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 E.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)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.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)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.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 re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*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-x)*y));var ie=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*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+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.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)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ge=(b-a)/2,ie=(x-y)/2,me=new go.PathFigure(te*a+ge,(re+ee)*y+ie,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,re*y+ie,te*a+ge,(re-ee)*y+ie,(te-ee+z*.5)*a+ge,(re-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te-ee+z*.5)*a+ge,(re+z)*y+ie,te*a+ge,(re+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ge,(re+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,re*y+ie,te*a+ge,(re-ee)*y+ie,(te-ee+z*.5)*a+ge,(re-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te-ee+z*.5)*a+ge,(re+z)*y+ie,te*a+ge,(re+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,re=.5;var xe=new go.PathFigure((te-ee)*a+ge,re*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),z=le*.4,ee=.4,te=.8,re=.5;var He=new go.PathFigure(te*a+ge,(re-ee)*y+ie,!0);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,re*y+ie,te*a+ge,(re+ee)*y+ie,(te+ee-z*.5)*a+ge,(re+z)*y+ie)),He.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te+ee-z*.5)*a+ge,(re-z)*y+ie,te*a+ge,(re-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,re=.5;var ut=new go.PathFigure(te*a+ge,(re-ee)*y+ie,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,re*y+ie,te*a+ge,(re+ee)*y+ie,(te+ee-z*.5)*a+ge,(re+z)*y+ie)),ut.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te+ee-z*.5)*a+ge,(re-z)*y+ie,te*a+ge,(re-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.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 x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ge=ne(),ie=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ge,ie);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*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+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=le*.3,x=.3,Ne(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ge,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ge),Se(ie),Se(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(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 x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.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()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.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()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,ie=.5,me=.5,se=0,xe=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.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 x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),ie=ge*.5,me=z,se=z,xe=ge*me,He=ge*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(xe+me)/2)*a,(te+(se+He)/2)*y,(ee-me)*a,(te+He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-He)*y,(ee-xe)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+xe)*a,(te-se)*y,(ee+me)*a,(te-He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+He)*y,(ee+(xe+me)/2)*a,(te+(se+He)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ft=new go.PathFigure(.8*a,y,!1);return E.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.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 x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.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 x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*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)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.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 x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.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 x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.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 x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.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 x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ge=new go.PathFigure((te-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ie=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.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);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ge=.1,ie=.9,me=new go.PathFigure((ge-te)*a,ie*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-re)*y,(ge-re)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+re)*a,(ie-te)*y,(ge+te)*a,(ie-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+re)*y,(ge+re)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-re)*a,(ie+te)*y,(ge-te)*a,(ie+re)*y)),te=.1,re=le*.1,ge=.4,ie=.9;var se=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-re)*y,(ge-re)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+re)*a,(ie-te)*y,(ge+te)*a,(ie-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+re)*y,(ge+re)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-re)*a,(ie+te)*y,(ge-te)*a,(ie+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.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 x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.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=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ge)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ge)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ge)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.825,se=.95,xe=new go.PathFigure((me-ge)*a,se*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y).close());var He=new go.PathFigure(0,y,!1);return E.add(He),He.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.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=le*.05,re=.35,ge=.775,ie=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-te)*y,(re-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+te)*a,(ge-ee)*y,(re+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+te)*y,(re+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-te)*a,(ge+ee)*y,(re-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.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 x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.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)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.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 x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.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 x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.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()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.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 x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.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 x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.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()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.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 x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.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);E.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 re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.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 x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.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 x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.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-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),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()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.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-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),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-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),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-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.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()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.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 x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),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")},98598: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 Oe={},dt="5.0",oe={},ne=null,Se=!1,Ke=!1,Ne=null,ce=!1,Fe=null,le=null,$e=0;$e4?parseFloat(fe):5};Oe.setHTML5Codebase=function(fe,Ce){le=fe,We(fe,Ce)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(fe,Ce){var Je=parseFloat(fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Fe=fe,De(fe,Ce)},Oe.getHTML5CodebaseVersion=function(){return ae},Oe.getParameters=function(){return oe},Oe.setFontsCSSURL=function(fe){z=fe},Oe.setGiacJSURL=function(fe){},Oe.setJNLPFile=function(fe){Te=fe},Oe.setJNLPBaseDir=function(fe){},Oe.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Je=oe.id,ct,Ze=!1,tt=0;tt=5)return!0;var fe=Oe.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var fe=Oe.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Oe.stopAnimation=function(){var fe=Oe.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var fe=oe.id!==void 0?oe.id:"ggbApplet";return window[fe]},Oe.resize=function(){};var xe=function(fe,Ce,Je){var ct=document.createElement("param");ct.setAttribute("name",Ce),ct.setAttribute("value",Je),fe.appendChild(ct)},He=function(fe){return fe&&fe!=="false"},ut=function(fe,Ce,Je){te(ae)<=4.2&&(Je=!0);var ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var tt=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ae)<=4.4)He(Ce.showToolBar)&&(Ce.height-=7),He(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&He(Ce.showToolBar)&&(Ce.width=605,tt=605);else{var Ye=100;(He(Ce.showToolBar)||He(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ye=He(Ce.showMenuBar)?245:155),tt=5?(Ce.appletOnLoad=function(Bt){var bt=fe.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ct),window.GGBT_wsf_view&&$(window).trigger("resize"),Tt(Bt)},be||Ct.appendChild(he)):Ze.appendChild(he),Ct.appendChild(Ze),be||fe.appendChild(Ct),setTimeout(function(){Oe.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Ze),fe.appendChild(Pe),Ce.appletOnLoad=function(Bt){Oe.resize(),Tt(Bt)}}function Me(Bt,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,bt.appletOnLoad):renderGGBElement(Bt),Ve("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function je(Bt,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ft){Me(Ft.article,Ft.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Bt.className+=" geogebraweb")):Me(Bt,bt)}if(ct){scriptLoadStarted=!0;for(var lt=0;lt0?(Pt.remove(),Ct.attr("id","fullscreencontent").show(),jQuery(Tt).append(Ct),window.dispatchEvent(new Event("resize"))):ut(Pt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(Tt)}else Re=ct,ut(fe,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;defe/4*3&&(Pt=fe/4*3),Tt=Pt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",Pt),Ye.setAttribute("height",Tt);var Ct=(fe-Pt)/2,be=(Ce-Tt)/2;Ye.style.left=Ct+"px",Ye.style.top=be+"px",Ze.appendChild(Ye)}}return Ze.appendChild(de),Ze},qe=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],De=function(fe,Ce){if(ae=fe,Ce){We(ae,!0);return}var Je=!Se;if(Je){var ct=te(ae);!isNaN(ct)&&ct<4.4&&(Je=!1)}var Ze,tt;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ae.indexOf("//");de>0?tt=ae:de===0?tt=Ze+ae:tt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in gt)if(ae.slice(gt[Ye].length*-1)===gt[Ye]||ae.slice((gt[Ye].length+1)*-1)===gt[Ye]+"/"){We(tt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!He(oe.showToolBar)&&!He(oe.showMenuBar)&&!He(oe.showAlgebraInput)&&!He(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?tt+="webSimple/":tt+="web3d/",We(tt,!1)},We=function(fe,Ce){if(fe.requirejs){nt=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),nt=fe,Ce===null&&(Ce=fe.indexOf("http")===-1),ke=Ce,a="web.nocache.js",y=!1;var Je=nt.split("/");Je.length>1&&(!Ce&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=fe.split("/"),ae=Je[Je.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var ct=parseFloat(ae);ct!==NaN&&ct<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead."),De("5.0",Ce))},Ve=function(fe,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(fe)};oe.material_id!==void 0?ie(ht):ht();function ht(){var fe=dt;Fe!==null?fe=Fe:parseFloat(fe)<5&&(fe="5.0"),De(fe,!1),le!==null&&We(le,ke),ce=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function dt(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function oe(ce,Fe,le,$e,Ae,Te){var nt=null;if(Te!=null&&Te!="")for(var ke=ce.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+Te+" ")>-1){nt=ke;break}else ke=ke.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(nt)Re=nt.offsetWidth,ae=Math.max($e?nt.offsetWidth:0,nt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Re&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((le===void 0||!le)&&Fe>0&&Fe+y1&&(Te=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ae=ne(ce,Fe,Te,le,ce.scaleContainerClass);else return $e;return Te&&(!ce.hasOwnProperty("scale")||$e===1)?Ae:Math.min($e,Ae)}function Ke(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=ce.getBoundingClientRect(),Ae=(Fe-$e.width)/2,Te=(le-$e.height)/2;Te<0&&(Te=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?ce.style.left="40px":ce.style.left=Ae+"px",ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ce.style.top="40px":ce.style.top=Te+"px",ce.style.left=Ae+"px")}function Ne(ce,Fe){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var $e=Se(Fe,ce);Oe()&&le.setAttribute("data-param-scale",$e);for(var Ae=null,Te=0;Te=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(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var dt=c[Oe];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Oe(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var $e=ce.lastIndexOf(tb,Math.min(le,Fe));return $e>=O?ce.substring(O,$e+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Oe(Fe.src)}return ce}function oe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),Fe=O;FeO?ce[ce.length-P].href:W}function Ke(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ne=oe();return Ne==W&&(Ne=ne()),Ne==W&&(Ne=Se()),Ne==W&&Ke()&&(Ne=Oe(o.location.href)),Ne=dt(Ne),Ne}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],dt=O,oe=[],ne=[];function Se(ce){var Fe=ne[ce](),le=oe[ce];if(Fe in le)return Fe;var $e=[];for(var Ae in le)$e[le[Ae]]=Ae;throw r&&r(ce,$e,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in oe[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(ce[Fe]=Se(Fe));return ce},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ne=Ke.indexOf(Db);Ne!=-1&&(dt=parseInt(Ke.substring(Ne+P),$),Ke=Ke.substring(O,Ne))}catch(ce){}return webModule.__softPermutationId=dt,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(Oe,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ne},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ke},f1:function(){return Se}});var ne=oe(10148);function Se($e){let Ae=!0;if($e.length>0){for(let Te=0;Te<$e.length;Te++)if($e[Te].compile_success==0||!$e[Te].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function Ke($e,Ae=""){let Te=[];for(let nt=0;nt<$e.length;nt++){let ke=$e[nt],Re=Ae?`${Ae}/${ke.name}`:`${ke.name}`;Te.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Re})}return Te}function Ne($e,Ae,Te){for(let nt=0;nt<$e.length;nt++){let ke=$e[nt];if(ke.key===Ae){ke.children=Te;break}ke.children&&Ne(ke.children,Ae,Te)}return $e}function ce($e,Ae,Te){let nt;return function(){let ke=this,Re=arguments,ae=function(){nt=null,Te||$e.apply(ke,Re)},a=Te&&!nt;clearTimeout(nt),nt=setTimeout(ae,Ae),a&&$e.apply(ke,Re)}}const Fe=!0,le=ne.Z.API_SERVER},10437:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(59301),Se=oe(42203),Ke=oe(24905),Ne=oe(12893),ce=oe(32134),Fe=oe(70635),le=oe(78241),$e=oe(57809),Ae={},Te=Object.defineProperty,nt=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ae=(ye,_e,Ie)=>_e in ye?Te(ye,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ye[_e]=Ie,a=(ye,_e)=>{for(var Ie in _e||(_e={}))ke.call(_e,Ie)&&ae(ye,Ie,_e[Ie]);if(nt)for(var Ie of nt(_e))Re.call(_e,Ie)&&ae(ye,Ie,_e[Ie]);return ye},y=(ye,_e,Ie)=>new Promise((qe,gt)=>{var De=ht=>{try{Ve(Ie.next(ht))}catch(fe){gt(fe)}},We=ht=>{try{Ve(Ie.throw(ht))}catch(fe){gt(fe)}},Ve=ht=>ht.done?qe(ht.value):Promise.resolve(ht.value).then(De,We);Ve((Ie=Ie.apply(ye,_e)).next())});const E=Ke.default.Group,b=({classroomList:ye,loading:_e,user:Ie,exercise_id:qe=null,homework_common_id:gt=null,setitem:De,item:We,type:Ve,rz:ht,dispatch:fe})=>{var Ce,Je,ct,Ze,tt,de,Ye,Pt;const[Tt,Ct]=(0,ne.useState)([]);let[be,he]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[Me,je]=(0,ne.useState)(!1),[lt,Ot]=(0,ne.useState)(!1),[Et]=le.default.useForm();(0,ne.useEffect)(()=>{ht&&(be.zydatas=ht,he(a({},be)),We!=null&&We.ec_course_id&&Mt())},[We,ht]);function Mt(){return y(this,null,function*(){console.log("----",We),yield jt(We==null?void 0:We.ec_major_school_id),yield Bt(We==null?void 0:We.ec_year_id),yield bt(We==null?void 0:We.ec_course_id),Et.setFieldsValue({ec_course_id:We==null?void 0:We.ec_course_id,ec_major_school_id:We==null?void 0:We.ec_major_school_id,ec_point_ids:We==null?void 0:We.ec_point_ids,ec_year_id:We==null?void 0:We.ec_year_id})})}function jt(Ft){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Ft}/ec_years/get_year_list.json`,{method:"get"});be.jbdatas=Wt==null?void 0:Wt.data,he(a({},be)),Et.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Bt(Ft){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_years/${Ft}/ec_courses/get_courses.json`,{method:"get"});be.kcdatas=Wt==null?void 0:Wt.data,he(a({},be)),Et.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const bt=Ft=>y(void 0,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_courses/${Ft}/ec_points.json`,{method:"get",params:{ec_course_id:Ft}});be.zsdatas=Wt==null?void 0:Wt.data,he(a({},be))});return ne.createElement("div",{className:Ae.from},ne.createElement(le.default,{form:Et,layout:"inline",onValuesChange:Ft=>{console.log("----",Ft),Ft.ec_major_school_id&&(be.jbdatas=[],be.kcdatas=[],be.zsdatas=[],he(a({},be)),jt(Ft.ec_major_school_id)),Ft.ec_year_id&&(be.kcdatas=[],be.zsdatas=[],he(a({},be)),Bt(Ft.ec_year_id)),Ft.ec_course_id&&(be.zsdatas=[],he(a({},be)),bt(Ft.ec_course_id))},onFinish:Ft=>y(void 0,null,function*(){De(Ft)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement($e.default,{style:{width:150},disabled:((Ce=be.zydatas)==null?void 0:Ce.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Je=be==null?void 0:be.zydatas)==null?void 0:Je.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.ec_major_school_id},Ft==null?void 0:Ft.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement($e.default,{style:{width:150},disabled:((ct=be.jbdatas)==null?void 0:ct.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ze=be==null?void 0:be.jbdatas)==null?void 0:Ze.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.ec_year_id},Ft==null?void 0:Ft.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement($e.default,{style:{width:150},disabled:((tt=be.kcdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=be==null?void 0:be.kcdatas)==null?void 0:de.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.id},Ft==null?void 0:Ft.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement($e.default,{onChange:()=>{Et.submit()},style:{width:150},mode:"multiple",disabled:((Ye=be.zsdatas)==null?void 0:Ye.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Pt=be==null?void 0:be.zsdatas)==null?void 0:Pt.map((Ft,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Ft==null?void 0:Ft.id},Ft==null?void 0:Ft.name))))))};var x=(0,Se.connect)(({classroomList:ye,loading:_e,globalSetting:Ie,user:qe})=>({classroomList:ye,globalSetting:Ie,loading:_e.effects,user:qe}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,me=(ye,_e,Ie)=>_e in ye?z(ye,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ye[_e]=Ie,se=(ye,_e)=>{for(var Ie in _e||(_e={}))ge.call(_e,Ie)&&me(ye,Ie,_e[Ie]);if(re)for(var Ie of re(_e))ie.call(_e,Ie)&&me(ye,Ie,_e[Ie]);return ye},xe=(ye,_e)=>ee(ye,te(_e)),He=(ye,_e,Ie)=>new Promise((qe,gt)=>{var De=ht=>{try{Ve(Ie.next(ht))}catch(fe){gt(fe)}},We=ht=>{try{Ve(Ie.throw(ht))}catch(fe){gt(fe)}},Ve=ht=>ht.done?qe(ht.value):Promise.resolve(ht.value).then(De,We);Ve((Ie=Ie.apply(ye,_e)).next())});const ut=Ke.default.Group,ft=({classroomList:ye,loading:_e,user:Ie,exercise_id:qe=null,homework_common_id:gt=null,setitem:De,type:We,dispatch:Ve})=>{var ht,fe;let[Ce,Je]=(0,ne.useState)([{}]),[ct,Ze]=(0,ne.useState)([]);function tt(){return He(this,null,function*(){var Ye,Pt,Tt;let Ct=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:qe,homework_common_id:gt}});if(((Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.length)>0){let be=[];(Pt=Ct==null?void 0:Ct.data)==null||Pt.map(he=>{var Pe;(Pe=he==null?void 0:he.ec_point_ids)==null||Pe.map(Me=>{be.push(Me)})}),De(xe(se({},(Tt=Ct==null?void 0:Ct.data)==null?void 0:Tt[0]),{ec_point_ids:be})),Je(Ct==null?void 0:Ct.data)}})}(0,ne.useEffect)(()=>{var Ye,Pt;(Pt=(Ye=Ie==null?void 0:Ie.userInfo)==null?void 0:Ye.course)!=null&&Pt.course_school_id&&de()},[(fe=(ht=Ie==null?void 0:Ie.userInfo)==null?void 0:ht.course)==null?void 0:fe.course_school_id]);function de(){return He(this,null,function*(){var Ye,Pt;const Tt=yield(0,Fe.ZP)(`/api/schools/${(Pt=(Ye=Ie==null?void 0:Ie.userInfo)==null?void 0:Ye.course)==null?void 0:Pt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ze(Tt==null?void 0:Tt.data),(gt||qe)&&tt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ce==null?void 0:Ce.map((Ye,Pt)=>ne.createElement("div",{key:Pt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ct,item:Ye,type:Pt,setitem:Tt=>{Ce.splice(Pt,1,Tt),Je([...Ce]);let Ct=[];Ce==null||Ce.map(be=>{var he;(he=be==null?void 0:be.ec_point_ids)==null||he.map(Pe=>{Ct.push(Pe)})}),De(xe(se({},Tt),{ec_point_ids:Ct}))}}),Pt!=0&&ne.createElement(Ne.Z,{onClick:()=>{Ce.splice(Pt,1),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ce.Z,{onClick:()=>{Ce.push({}),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}))))};var Lt=(0,Se.connect)(({classroomList:ye,loading:_e,globalSetting:Ie,user:qe})=>({classroomList:ye,globalSetting:Ie,loading:_e.effects,user:qe}))(ft)},12963:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=oe(92310),Ne=oe.n(Ke),ce=oe(71418),Fe=oe(2859),le=oe(70635),$e=oe(58130),Ae=(ke,Re,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,Re)).next())}),nt=({data:ke,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ge,ie]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const xe=()=>Ae(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,$e.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Lt,z.current.onload=function(){ft()},ie(!1),se("")}),He=Lt=>Ae(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ye=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Lt.dataUrl}});ye!=null&&ye.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:ye==null?void 0:ye.id,settings:JSON.stringify(Lt.state)}})).status===0&&E():ye!=null&&ye.id&&E(ye),ie(!1),se("")}),ut=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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(_e=>{const Ie=document.querySelector(_e.name);Ie&&Ie.setAttribute("title",_e.title)})},ft=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",He),ee.current.addEventListener("beforeclose",y),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ut()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ce.Z,{spinning:ge,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ne()(Se.imageDimensions,Re,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},75890:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ke=oe(43604),Ne=oe(99313),ce=oe(3113),Fe=oe(25711),le=oe(93938),$e=oe(48136),Ae=oe(59301);const Te=(0,ne.forwardRef)(({callback:nt,showSaveButton:ke,value:Re=""},ae)=>{const a=(0,ne.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 "}]}]}],E=[{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 @@ -66,7 +66,7 @@ \\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+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ae.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>Ae.createElement(Ke.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ae.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},re.name&&Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>Ae.createElement(Ke.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return nt&&nt(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ae.createElement("div",{className:le.Z.mathWrap},Ae.createElement(Ne.default,{defaultActiveKey:"1",items:x}),Ae.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),ke&&Ae.createElement("div",{className:le.Z.button},Ae.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=Te},57203:function(Oe,dt,oe){"use strict";oe.d(dt,{z:function(){return qe},Z:function(){return it}});var ne=oe(59301),Se=oe(54580),Ke=oe(8591),Ne=oe(43418),ce=oe(3113),Fe=oe(10148),le=oe(76904),$e=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ke=(De,We,Ve)=>We in De?$e(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,Re=(De,We)=>{for(var Ve in We||(We={}))Te.call(We,Ve)&&ke(De,Ve,We[Ve]);if(Ae)for(var Ve of Ae(We))nt.call(We,Ve)&&ke(De,Ve,We[Ve]);return De},ae=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{ct(Ve.next(Ze))}catch(tt){fe(tt)}},Je=Ze=>{try{ct(Ve.throw(Ze))}catch(tt){fe(tt)}},ct=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);ct((Ve=Ve.apply(De,We)).next())});const a="\u3000\u3000";function y(De){var We=["Bytes","KB","MB","GB","TB"];if(De==0)return"0 Byte";var Ve=parseInt(""+Math.floor(Math.log(De)/Math.log(1024)),10);return(De/Math.pow(1024,Ve)).toFixed(1)+" "+We[Ve]}var E=({value:De=[],action:We,onChange:Ve,className:ht,maxSize:fe=150,title:Ce="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const ct={multiple:!1,fileList:De,accept:Je,withCredentials:!0,beforeUpload:tt=>tt.size/1024/1024(be.name.indexOf(a)===-1&&(be.name=`${be.name}${a}${y(be.size)}`),Re({},be))),tt.file.status==="done"&&((Ye=(de=tt.file)==null?void 0:de.response)==null?void 0:Ye.status)===-1){message.error((Tt=(Pt=tt.file)==null?void 0:Pt.response)==null?void 0:Tt.message),Ve([]);return}Ve(Ct)},onRemove:tt=>ae(void 0,null,function*(){const de=tt.size/1024/1024;return tt.status==="uploading"?!0:de0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:De.length>0,ghost:!0},Ce),React.createElement("span",{onClick:Ze,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",fe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(De,We,Ve)=>We in De?z(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ge=(De,We)=>{for(var Ve in We||(We={}))te.call(We,Ve)&&ie(De,Ve,We[Ve]);if(ee)for(var Ve of ee(We))re.call(We,Ve)&&ie(De,Ve,We[Ve]);return De};const me=De=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},De),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",xe=Object.defineProperty,He=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Lt=(De,We,Ve)=>We in De?xe(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ye=(De,We)=>{for(var Ve in We||(We={}))ut.call(We,Ve)&&Lt(De,Ve,We[Ve]);if(He)for(var Ve of He(We))ft.call(We,Ve)&&Lt(De,Ve,We[Ve]);return De},_e=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{ct(Ve.next(Ze))}catch(tt){fe(tt)}},Je=Ze=>{try{ct(Ve.throw(Ze))}catch(tt){fe(tt)}},ct=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);ct((Ve=Ve.apply(De,We)).next())});const{Dragger:Ie}=Se.default;function qe(De){let We=[];return De&&De.length>0&&(We=De.map(Ve=>({uid:Ve.id,id:Ve.id,name:Ve.title+a+Ve.filesize,url:Ve.url,filesize:Ve.filesize,status:"done",response:{id:Ve.id}}))),We}var it=({value:De,onChange:We,action:Ve,data:ht,className:fe,maxSize:Ce=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ct=!1,accept:Ze="",additionalText:tt,isDragger:de,number:Ye=1e3,aloneClear:Pt=!1,realTimeRemove:Tt=!0,uploadText:Ct,setFileProgress:be,showFileProgress:he})=>{const[Pe,je]=(0,ne.useState)(!1);let[Me,st]=(0,ne.useState)(De||[]),[xt,Et]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{De&&(xt===1&&st([...De]),Et(2),Ye===(De==null?void 0:De.length)&&je(!0))},[De]);const Mt=()=>{setTimeout(()=>{Me.pop(),st([...Me])},500)};he&&be(Me.some(bt=>bt.status==="uploading"));const jt={multiple:!0,disabled:Pe,accept:Ze,withCredentials:!0,fileList:Me,beforeUpload:(bt,Ft)=>{const Wt=bt.size/1024/1024;return Me.concat(Ft).length>Ye?(Me.pop(),st([...Me]),Ke.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ye}\u4E2A\u6587\u4EF6`),Pt?Promise.reject():(Mt(),!1)):Wt=Ye?je(!0):je(!1),st([...Me]),Me=Me.map(Ut=>{var ve,Be;return(ve=Ut==null?void 0:Ut.response)!=null&&ve.id&&(Ut.url=(Be=Ut==null?void 0:Ut.response)==null?void 0:Be.url),Ut.name.indexOf(a)===-1&&(Ut.name=`${Ut.name}${a}${y(Ut.size)}`),ye({},Ut)}),console.log("info:",bt,Me),We(Me)},onRemove:bt=>_e(void 0,null,function*(){if(!Tt)return!0;const Ft=()=>_e(void 0,null,function*(){if(bt.response?bt.response.id:bt.id){let mn=yield(0,le.JZ)(bt.response?bt.response.id:bt.uid);return Promise.resolve(mn)}else return!0});return ct?new Promise((Wt,mn)=>{Ne.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>_e(void 0,null,function*(){const qt=yield Ft();Ke.ZP.success("\u5220\u9664\u6210\u529F"),Wt(!0)}),onCancel:()=>Wt(!1)})}):yield Ft()})};function Bt(bt){bt.preventDefault(),bt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${fe||""}`},de&&ne.createElement(Ie,ye({},jt),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.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",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ce,"MB)"," "),tt),!de&&ne.createElement(Se.default,ye({},jt),ne.createElement(ce.ZP,{disabled:Pe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Je),ne.createElement("span",{onClick:Bt,className:"upload_text"},Ct||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ce}MB)`)))}},1568:function(Oe,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ke=oe(78241),Ne=oe(3113),ce=oe(89780),Fe=oe.n(ce),le=oe(79906),$e=oe(44383),Ae=Object.defineProperty,Te=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Ae(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Re.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Te(te,nt(re));const b=Se.default.Option,x={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"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(xe){ge(z[xe][1])}function se(xe){te(xe)}return ne.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:xe=>xe.parentNode,onChange:me},Object.keys(z).map(xe=>ne.createElement(b,{key:xe,value:xe},z[xe][0])))),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ne.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const me=(0,ne.useRef)(),[se,xe]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let He=function(ut){const ft=ut.getValue();re&&re(ft)};return se.on("change",He),()=>{se.off("change",He)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(me.current&&!se){const He=Fe().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));xe(He)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},23469:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),Ke=oe.n(Se),Ne=oe(76374),ce=oe(79906),Fe=oe(6313),le=oe(25717),$e=oe(99498),Ae=oe(25419),Te=oe(67549),nt=oe(25711),ke=({value:Le="",className:we,showTextOnly:pe,showLines:lt,style:Nt={}})=>{const $t=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:$t}}))},Re=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,pe)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,ee=(Le,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(Le,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(Le,pe,we[pe]);return Le},te=(Le,we)=>a(Le,y(we));let re=[{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 ie({onActionCallback:Le,title:we,icon:pe,actionName:lt,className:Nt="",children:$t}){function ln(){Le(lt)}return Re.createElement("a",{title:we,className:Nt,onClick:ln},Re.createElement("i",{className:`${pe}`}),$t)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:pe,onActionCallback:lt,fullScreen:Nt,insertTemp:$t,hidetoolBar:ln,extraUse:Zt})=>{const en=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&en.map((Ln,_n)=>Re.createElement("li",{key:_n},Ln.actionName?Re.createElement(ie,te(ee({},Ln),{onActionCallback:lt})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,$t&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${$t}`,onActionCallback:lt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&Re.createElement("li",null,Zt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},me=oe(50474),se=oe(78241),xe=oe(92832),He=oe(3113),ut=Object.defineProperty,ft=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,qe=(Le,we,pe)=>we in Le?ut(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,it=(Le,we)=>{for(var pe in we||(we={}))_e.call(we,pe)&&qe(Le,pe,we[pe]);if(ye)for(var pe of ye(we))Ie.call(we,pe)&&qe(Le,pe,we[pe]);return Le},De=(Le,we)=>ft(Le,Lt(we));const We={labelCol:{span:4},wrapperCol:{span:20}};var Ve=({callback:Le,onCancel:we})=>{function pe(lt){Le(lt)}return ne.createElement(se.default,De(it({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(xe.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(xe.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},ht=oe(1568),fe=oe(56701),Ce=oe(43418),Je=oe(95237),ct=oe(12963),Ze=oe(59301),tt=({callback:Le,onCancel:we})=>{const pe=document.createElement("canvas"),lt=pe.getContext("2d");pe.width=1e3,pe.height=800,lt.fillStyle="#ffffff",lt.fillRect(0,0,pe.width,pe.height);const Nt=pe.toDataURL("image/png");return Ze.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(Je.Z,{style:{height:"100vh"}},Ze.createElement(ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:$t=>{Le({src:$t.url})},onClose:we})))},de=oe(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Ye.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),Le.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(lt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),Le.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),Le.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var lt=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(lt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(pe-lt.actualBounds.width/2,lt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(lt.actualBounds.x,pe-lt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var pe=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||pe.push(Zt)});for(var lt=0;lt0){for(var Zt=$t.elt(ln-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var en=this._sortTreeChildrenByY(Zt);Zt=en.last()}Zt!==null&&Le.select(Zt)}else Le.select(Nt)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var lt=this._sortTreeChildrenByY(we).first();lt!==null&&Le.select(lt)}else for(;we!==null;){var Nt=we.findTreeParentNode();if(Nt===null)break;var $t=this._sortTreeChildrenByY(Nt),ln=$t.indexOf(we);if(ln<$t.length-1){Le.select($t.elt(ln+1));break}else we=Nt}var Ln=Le.selection.first();Ln!==null&&Le.scrollToRect(Ln.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(pe,lt){var Nt=pe.location,$t=lt.location;return Nt.y<$t.y?-1:Nt.y>$t.y?1:Nt.x<$t.x?-1:Nt.x>$t.x?1:0}),we},Ye.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var Pt=Ye,Tt=oe(37404),Ct=oe(43604),be=oe(70635),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),je=(Le,we,pe)=>new Promise((lt,Nt)=>{var $t=en=>{try{Zt(pe.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?lt(en.value):Promise.resolve(en.value).then($t,ln);Zt((pe=pe.apply(Le,we)).next())});function Me({onCancel:Le,callback:we}){let pe=(0,ne.useRef)(),lt=(0,ne.useRef)(),Nt=(0,ne.useRef)(),$t=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Zt,en]=(0,ne.useState)(0);function Ln(){const gt=de.bx.make,tn={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(lt.current,{padding:20,grid:gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var yt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);yt||ot.diagram.currentTool.doCancel()},commandHandler:gt(Pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var yt=ot.subject;yt.location=yt.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var yt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var yt=ot.parameter.part;yt.invalidateConnectedLinks();var It=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?It.toNode.invalidateConnectedLinks():It.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=gt(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),gt(de.bn,{name:"SHAPE",fill:tn.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")),gt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt(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=gt("ToolTip",gt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},gt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),gt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(ot,yt){var It=(vt,Yt)=>{vt.handled=!0,vt.diagram.model.commit(Qt=>{var Ht=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(Ht.actualBounds,ot);Pn.subtract(Ht.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Ht.location),Pn.snapToGridPoint(vt.diagram.grid.gridOrigin,vt.diagram.grid.gridCellSize);var fn=Qt.copyNodeData(Ht.data);Qt.setGroupKeyForNodeData(fn,Qt.getGroupKeyForNodeData(Ht.data)),Qt.addNodeData(fn);var oa={from:Ht.key,to:Qt.getKeyForNodeData(fn)};Qt.addLinkData(oa);var Qn=vt.diagram.findNodeForData(fn);Qn.location=Pn,vt.diagram.select(Qn),setTimeout(()=>{vt.diagram.commandHandler.editTextBlock()},20)})};return gt(de.bn,{figure:yt,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(vt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(vt,Yt)=>Yt.fill="orange",isActionable:!0,click:It,contextClick:It})}function Zn(ot){return gt(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:(yt,It)=>It.fill="dodgerblue",mouseLeave:(yt,It)=>It.fill="orange",click:(yt,It)=>{yt.diagram.commandHandler.showContextMenu(It.part.adornedPart)}},ot||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Fn(ot,yt){return(It,vt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{Yt.set(vt.part.adornedPart.data,ot,yt)})}}function ue(ot,yt){return yt||(yt="color"),gt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.stroke="dodgerblue",mouseLeave:(It,vt)=>vt.stroke="lightgray",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function ze(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white,"fill"),ue(tn.beige,"fill"),ue(tn.extralightblue,"fill"),ue(tn.extralightred,"fill"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.lightgray,"fill"),ue(tn.lightgreen,"fill"),ue(tn.lightblue,"fill"),ue(tn.lightred,"fill")))]}function Ge(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.black),ue(tn.green),ue(tn.blue),ue(tn.red))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white),ue(tn.magenta),ue(tn.purple),ue(tn.orange)))]}function Ue(ot,yt){return yt||(yt="thickness"),gt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function at(ot,yt){return yt||(yt="dash"),gt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function rt(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),gt("ContextMenuButton",gt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function et(ot,yt){return yt||(yt="figure"),gt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.fill="dodgerblue",mouseLeave:(It,vt)=>vt.fill="lightgray",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}pe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Rectangle"),et("RoundedRectangle"),et("Ellipse"),et("Diamond"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Parallelogram2"),et("ManualOperation"),et("Procedure"),et("Cylinder1"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",et("Terminator"),et("CreateRequest"),et("Document"),et("TriangleDown"))),ze(),Ge(),rt()),pe.current.groupTemplate=gt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,yt)=>{var It=yt.addMembers(yt.diagram.selection,!0);It||yt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.s_,"Auto",{name:"BODY"},gt(de.bn,{parameter1:10,fill:tn.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")),gt(de.Vm,{background:"transparent",margin:20})),gt(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=gt(de.uz,"Spot",gt(de.s_,"Auto",gt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=gt("ContextMenu",ze(),Ge(),rt()),pe.current.linkTemplate=gt(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),gt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(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",ot=>ot===1)),gt(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(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=gt(de.uz,gt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xe(2)},new de.KX("pathPattern","thickness",Xe)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xe(ot){return gt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function At(ot){var yt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?yt="M0 0 M16 16 M0 8 L16 8":ot===2&&(yt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt(de.bn,{geometryString:yt,margin:2,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn("dir",ot),contextClick:Fn("dir",ot)})}function Dt(ot){var yt=(It,vt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{var Qt=vt.part.adornedPart;Yt.set(Qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:yt,contextClick:yt})}function Ee(ot,yt){var It=0,vt=de.z6.RightSide;ot.equals(de.z6.Top)?(It=270,vt=de.z6.TopSide):ot.equals(de.z6.Left)?(It=180,vt=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(It=90,vt=de.z6.BottomSide),yt||(It-=180);var Yt=(Qt,Ht)=>{Qt.handled=!0,Qt.diagram.model.commit(Pn=>{var fn=Ht.part.adornedPart;Pn.set(fn.data,yt?"toSpot":"fromSpot",de.z6.stringify(vt)),(yt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:It,background:"transparent",mouseEnter:(Qt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Qt,Ht)=>Ht.background="transparent",click:Yt,contextClick:Yt})}pe.current.linkTemplate.contextMenu=gt("ContextMenu",Ge(),rt(),gt("ContextMenuButton",gt(de.s_,"Horizontal",At(0),At(1),At(2))),gt("ContextMenuButton",gt(de.s_,"Horizontal",gt(de.s_,"Spot",Dt(!1),Ee(de.z6.Top,!1),Ee(de.z6.Left,!1),Ee(de.z6.Right,!1),Ee(de.z6.Bottom,!1)),gt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Dt(!0),Ee(de.z6.Top,!0),Ee(de.z6.Left,!0),Ee(de.z6.Right,!0),Ee(de.z6.Bottom,!0)))));const rn=`{ "class": "GraphLinksModel", +\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ae.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ge)=>Ae.createElement("div",{key:ge},Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ie,me)=>Ae.createElement(Ke.Z,{key:me,onClick:()=>b(ie),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ae.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ge)=>Ae.createElement("div",{key:ge},re.name&&Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ie,me)=>Ae.createElement(Ke.Z,{key:me,onClick:()=>b(ie),className:le.Z.diamond},Ae.createElement(Fe.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return nt&&nt(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ae.createElement("div",{className:le.Z.mathWrap},Ae.createElement(Ne.default,{defaultActiveKey:"1",items:x}),Ae.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),ke&&Ae.createElement("div",{className:le.Z.button},Ae.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=Te},57203:function(Oe,dt,oe){"use strict";oe.d(dt,{z:function(){return qe},Z:function(){return gt}});var ne=oe(59301),Se=oe(54580),Ke=oe(8591),Ne=oe(43418),ce=oe(3113),Fe=oe(10148),le=oe(76904),$e=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ke=(De,We,Ve)=>We in De?$e(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,Re=(De,We)=>{for(var Ve in We||(We={}))Te.call(We,Ve)&&ke(De,Ve,We[Ve]);if(Ae)for(var Ve of Ae(We))nt.call(We,Ve)&&ke(De,Ve,We[Ve]);return De},ae=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{ct(Ve.next(Ze))}catch(tt){fe(tt)}},Je=Ze=>{try{ct(Ve.throw(Ze))}catch(tt){fe(tt)}},ct=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);ct((Ve=Ve.apply(De,We)).next())});const a="\u3000\u3000";function y(De){var We=["Bytes","KB","MB","GB","TB"];if(De==0)return"0 Byte";var Ve=parseInt(""+Math.floor(Math.log(De)/Math.log(1024)),10);return(De/Math.pow(1024,Ve)).toFixed(1)+" "+We[Ve]}var E=({value:De=[],action:We,onChange:Ve,className:ht,maxSize:fe=150,title:Ce="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const ct={multiple:!1,fileList:De,accept:Je,withCredentials:!0,beforeUpload:tt=>tt.size/1024/1024(be.name.indexOf(a)===-1&&(be.name=`${be.name}${a}${y(be.size)}`),Re({},be))),tt.file.status==="done"&&((Ye=(de=tt.file)==null?void 0:de.response)==null?void 0:Ye.status)===-1){message.error((Tt=(Pt=tt.file)==null?void 0:Pt.response)==null?void 0:Tt.message),Ve([]);return}Ve(Ct)},onRemove:tt=>ae(void 0,null,function*(){const de=tt.size/1024/1024;return tt.status==="uploading"?!0:de0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:De.length>0,ghost:!0},Ce),React.createElement("span",{onClick:Ze,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",fe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(De,We,Ve)=>We in De?z(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ie=(De,We)=>{for(var Ve in We||(We={}))te.call(We,Ve)&&ge(De,Ve,We[Ve]);if(ee)for(var Ve of ee(We))re.call(We,Ve)&&ge(De,Ve,We[Ve]);return De};const me=De=>React.createElement("svg",ie({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},De),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",xe=Object.defineProperty,He=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Lt=(De,We,Ve)=>We in De?xe(De,We,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[We]=Ve,ye=(De,We)=>{for(var Ve in We||(We={}))ut.call(We,Ve)&&Lt(De,Ve,We[Ve]);if(He)for(var Ve of He(We))ft.call(We,Ve)&&Lt(De,Ve,We[Ve]);return De},_e=(De,We,Ve)=>new Promise((ht,fe)=>{var Ce=Ze=>{try{ct(Ve.next(Ze))}catch(tt){fe(tt)}},Je=Ze=>{try{ct(Ve.throw(Ze))}catch(tt){fe(tt)}},ct=Ze=>Ze.done?ht(Ze.value):Promise.resolve(Ze.value).then(Ce,Je);ct((Ve=Ve.apply(De,We)).next())});const{Dragger:Ie}=Se.default;function qe(De){let We=[];return De&&De.length>0&&(We=De.map(Ve=>({uid:Ve.id,id:Ve.id,name:Ve.title+a+Ve.filesize,url:Ve.url,filesize:Ve.filesize,status:"done",response:{id:Ve.id}}))),We}var gt=({value:De,onChange:We,action:Ve,data:ht,className:fe,maxSize:Ce=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ct=!1,accept:Ze="",additionalText:tt,isDragger:de,number:Ye=1e3,aloneClear:Pt=!1,realTimeRemove:Tt=!0,uploadText:Ct,setFileProgress:be,showFileProgress:he})=>{const[Pe,Me]=(0,ne.useState)(!1);let[je,lt]=(0,ne.useState)(De||[]),[Ot,Et]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{De&&(Ot===1&<([...De]),Et(2),Ye===(De==null?void 0:De.length)&&Me(!0))},[De]);const Mt=()=>{setTimeout(()=>{je.pop(),lt([...je])},500)};he&&be(je.some(bt=>bt.status==="uploading"));const jt={multiple:!0,disabled:Pe,accept:Ze,withCredentials:!0,fileList:je,beforeUpload:(bt,Ft)=>{const Wt=bt.size/1024/1024;return je.concat(Ft).length>Ye?(je.pop(),lt([...je]),Ke.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ye}\u4E2A\u6587\u4EF6`),Pt?Promise.reject():(Mt(),!1)):Wt=Ye?Me(!0):Me(!1),lt([...je]),je=je.map(Ut=>{var ve,Be;return(ve=Ut==null?void 0:Ut.response)!=null&&ve.id&&(Ut.url=(Be=Ut==null?void 0:Ut.response)==null?void 0:Be.url),Ut.name.indexOf(a)===-1&&(Ut.name=`${Ut.name}${a}${y(Ut.size)}`),ye({},Ut)}),console.log("info:",bt,je),We(je)},onRemove:bt=>_e(void 0,null,function*(){if(!Tt)return!0;const Ft=()=>_e(void 0,null,function*(){if(bt.response?bt.response.id:bt.id){let mn=yield(0,le.JZ)(bt.response?bt.response.id:bt.uid);return Promise.resolve(mn)}else return!0});return ct?new Promise((Wt,mn)=>{Ne.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>_e(void 0,null,function*(){const qt=yield Ft();Ke.ZP.success("\u5220\u9664\u6210\u529F"),Wt(!0)}),onCancel:()=>Wt(!1)})}):yield Ft()})};function Bt(bt){bt.preventDefault(),bt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${fe||""}`},de&&ne.createElement(Ie,ye({},jt),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.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",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ce,"MB)"," "),tt),!de&&ne.createElement(Se.default,ye({},jt),ne.createElement(ce.ZP,{disabled:Pe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Je),ne.createElement("span",{onClick:Bt,className:"upload_text"},Ct||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ce}MB)`)))}},1568:function(Oe,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ke=oe(78241),Ne=oe(3113),ce=oe(89780),Fe=oe.n(ce),le=oe(79906),$e=oe(44383),Ae=Object.defineProperty,Te=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ge)=>re in te?Ae(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[re]=ge,y=(te,re)=>{for(var ge in re||(re={}))Re.call(re,ge)&&a(te,ge,re[ge]);if(ke)for(var ge of ke(re))ae.call(re,ge)&&a(te,ge,re[ge]);return te},E=(te,re)=>Te(te,nt(re));const b=Se.default.Option,x={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"]};dt.Z=({callback:te,onCancel:re})=>{const[ge,ie]=(0,ne.useState)("python");function me(xe){ie(z[xe][1])}function se(xe){te(xe)}return ne.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:xe=>xe.parentNode,onChange:me},Object.keys(z).map(xe=>ne.createElement(b,{key:xe,value:xe},z[xe][0])))),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ne.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ge,options:ie={}}){const me=(0,ne.useRef)(),[se,xe]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let He=function(ut){const ft=ut.getValue();re&&re(ft)};return se.on("change",He),()=>{se.off("change",He)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ge)},[se,ge]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(me.current&&!se){const He=Fe().fromTextArea(me.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));xe(He)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},23469:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),Ke=oe.n(Se),Ne=oe(76374),ce=oe(79906),Fe=oe(6313),le=oe(25717),$e=oe(99498),Ae=oe(25419),Te=oe(67549),nt=oe(25711),ke=({value:Le="",className:we,showTextOnly:pe,showLines:st,style:Nt={}})=>{const xt=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:xt}}))},Re=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,pe)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,ee=(Le,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(Le,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(Le,pe,we[pe]);return Le},te=(Le,we)=>a(Le,y(we));let re=[{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:Le,title:we,icon:pe,actionName:st,className:Nt="",children:xt}){function ln(){Le(st)}return Re.createElement("a",{title:we,className:Nt,onClick:ln},Re.createElement("i",{className:`${pe}`}),xt)}var ie=({watch:Le,showNullButton:we,showNullProgramButton:pe,onActionCallback:st,fullScreen:Nt,insertTemp:xt,hidetoolBar:ln,extraUse:Zt})=>{const en=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&en.map((Ln,_n)=>Re.createElement("li",{key:_n},Ln.actionName?Re.createElement(ge,te(ee({},Ln),{onActionCallback:st})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:st},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:st},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:st},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,xt&&Re.createElement("li",null,Re.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xt}`,onActionCallback:st},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&Re.createElement("li",null,Zt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ge,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:st})))},me=oe(50474),se=oe(78241),xe=oe(92832),He=oe(3113),ut=Object.defineProperty,ft=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,qe=(Le,we,pe)=>we in Le?ut(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,gt=(Le,we)=>{for(var pe in we||(we={}))_e.call(we,pe)&&qe(Le,pe,we[pe]);if(ye)for(var pe of ye(we))Ie.call(we,pe)&&qe(Le,pe,we[pe]);return Le},De=(Le,we)=>ft(Le,Lt(we));const We={labelCol:{span:4},wrapperCol:{span:20}};var Ve=({callback:Le,onCancel:we})=>{function pe(st){Le(st)}return ne.createElement(se.default,De(gt({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(xe.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(xe.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},ht=oe(1568),fe=oe(56701),Ce=oe(43418),Je=oe(95237),ct=oe(12963),Ze=oe(59301),tt=({callback:Le,onCancel:we})=>{const pe=document.createElement("canvas"),st=pe.getContext("2d");pe.width=1e3,pe.height=800,st.fillStyle="#ffffff",st.fillRect(0,0,pe.width,pe.height);const Nt=pe.toDataURL("image/png");return Ze.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(Je.Z,{style:{height:"100vh"}},Ze.createElement(ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:xt=>{Le({src:xt.url})},onClose:we})))},de=oe(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Ye.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),Le.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var st=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(st,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),Le.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),Le.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var st=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(st,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(pe-st.actualBounds.width/2,st.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Ye.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(st.actualBounds.x,pe-st.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Ye.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var pe=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||pe.push(Zt)});for(var st=0;st0){for(var Zt=xt.elt(ln-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var en=this._sortTreeChildrenByY(Zt);Zt=en.last()}Zt!==null&&Le.select(Zt)}else Le.select(Nt)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var st=this._sortTreeChildrenByY(we).first();st!==null&&Le.select(st)}else for(;we!==null;){var Nt=we.findTreeParentNode();if(Nt===null)break;var xt=this._sortTreeChildrenByY(Nt),ln=xt.indexOf(we);if(lnxt.y?1:Nt.xxt.x?1:0}),we},Ye.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Ye.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Ye.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Ye.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var Pt=Ye,Tt=oe(37404),Ct=oe(43604),be=oe(70635),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),Me=(Le,we,pe)=>new Promise((st,Nt)=>{var xt=en=>{try{Zt(pe.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(xt,ln);Zt((pe=pe.apply(Le,we)).next())});function je({onCancel:Le,callback:we}){let pe=(0,ne.useRef)(),st=(0,ne.useRef)(),Nt=(0,ne.useRef)(),xt=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Zt,en]=(0,ne.useState)(0);function Ln(){const it=de.bx.make,tn={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(st.current,{padding:20,grid:it(de.s_,"Grid",it(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),it(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var yt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);yt||ot.diagram.currentTool.doCancel()},commandHandler:it(Pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var yt=ot.subject;yt.location=yt.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var yt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var yt=ot.parameter.part;yt.invalidateConnectedLinks();var It=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?It.toNode.invalidateConnectedLinks():It.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=it(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),it(de.bn,{name:"SHAPE",fill:tn.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")),it(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),it(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=it("ToolTip",it(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},it(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),it(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(ot,yt){var It=(vt,Yt)=>{vt.handled=!0,vt.diagram.model.commit(Qt=>{var Ht=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(Ht.actualBounds,ot);Pn.subtract(Ht.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Ht.location),Pn.snapToGridPoint(vt.diagram.grid.gridOrigin,vt.diagram.grid.gridCellSize);var fn=Qt.copyNodeData(Ht.data);Qt.setGroupKeyForNodeData(fn,Qt.getGroupKeyForNodeData(Ht.data)),Qt.addNodeData(fn);var oa={from:Ht.key,to:Qt.getKeyForNodeData(fn)};Qt.addLinkData(oa);var Qn=vt.diagram.findNodeForData(fn);Qn.location=Pn,vt.diagram.select(Qn),setTimeout(()=>{vt.diagram.commandHandler.editTextBlock()},20)})};return it(de.bn,{figure:yt,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(vt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(vt,Yt)=>Yt.fill="orange",isActionable:!0,click:It,contextClick:It})}function Zn(ot){return it(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:(yt,It)=>It.fill="dodgerblue",mouseLeave:(yt,It)=>It.fill="orange",click:(yt,It)=>{yt.diagram.commandHandler.showContextMenu(It.part.adornedPart)}},ot||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=it(de.uz,"Spot",it(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Fn(ot,yt){return(It,vt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{Yt.set(vt.part.adornedPart.data,ot,yt)})}}function ue(ot,yt){return yt||(yt="color"),it(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.stroke="dodgerblue",mouseLeave:(It,vt)=>vt.stroke="lightgray",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function ze(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.white,"fill"),ue(tn.beige,"fill"),ue(tn.extralightblue,"fill"),ue(tn.extralightred,"fill"))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.lightgray,"fill"),ue(tn.lightgreen,"fill"),ue(tn.lightblue,"fill"),ue(tn.lightred,"fill")))]}function Ge(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.black),ue(tn.green),ue(tn.blue),ue(tn.red))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.white),ue(tn.magenta),ue(tn.purple),ue(tn.orange)))]}function Ue(ot,yt){return yt||(yt="thickness"),it(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function at(ot,yt){return yt||(yt="dash"),it(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}function rt(){return[it("ContextMenuButton",it(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),it("ContextMenuButton",it(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function et(ot,yt){return yt||(yt="figure"),it(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(It,vt)=>vt.fill="dodgerblue",mouseLeave:(It,vt)=>vt.fill="lightgray",click:Fn(yt,ot),contextClick:Fn(yt,ot)})}pe.current.nodeTemplate.contextMenu=it("ContextMenu",it("ContextMenuButton",it(de.s_,"Horizontal",et("Rectangle"),et("RoundedRectangle"),et("Ellipse"),et("Diamond"))),it("ContextMenuButton",it(de.s_,"Horizontal",et("Parallelogram2"),et("ManualOperation"),et("Procedure"),et("Cylinder1"))),it("ContextMenuButton",it(de.s_,"Horizontal",et("Terminator"),et("CreateRequest"),et("Document"),et("TriangleDown"))),ze(),Ge(),rt()),pe.current.groupTemplate=it(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,yt)=>{var It=yt.addMembers(yt.diagram.selection,!0);It||yt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),it(de.s_,"Auto",{name:"BODY"},it(de.bn,{parameter1:10,fill:tn.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")),it(de.Vm,{background:"transparent",margin:20})),it(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=it(de.uz,"Spot",it(de.s_,"Auto",it(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),it(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=it("ContextMenu",ze(),Ge(),rt()),pe.current.linkTemplate=it(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),it(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),it(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",ot=>ot===1)),it(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),it(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),it(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=it(de.uz,it(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xe(2)},new de.KX("pathPattern","thickness",Xe)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xe(ot){return it(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function At(ot){var yt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?yt="M0 0 M16 16 M0 8 L16 8":ot===2&&(yt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),it(de.bn,{geometryString:yt,margin:2,background:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:Fn("dir",ot),contextClick:Fn("dir",ot)})}function Dt(ot){var yt=(It,vt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{var Qt=vt.part.adornedPart;Yt.set(Qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return it(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(It,vt)=>vt.background="dodgerblue",mouseLeave:(It,vt)=>vt.background="transparent",click:yt,contextClick:yt})}function Ee(ot,yt){var It=0,vt=de.z6.RightSide;ot.equals(de.z6.Top)?(It=270,vt=de.z6.TopSide):ot.equals(de.z6.Left)?(It=180,vt=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(It=90,vt=de.z6.BottomSide),yt||(It-=180);var Yt=(Qt,Ht)=>{Qt.handled=!0,Qt.diagram.model.commit(Pn=>{var fn=Ht.part.adornedPart;Pn.set(fn.data,yt?"toSpot":"fromSpot",de.z6.stringify(vt)),(yt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return it(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:It,background:"transparent",mouseEnter:(Qt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Qt,Ht)=>Ht.background="transparent",click:Yt,contextClick:Yt})}pe.current.linkTemplate.contextMenu=it("ContextMenu",Ge(),rt(),it("ContextMenuButton",it(de.s_,"Horizontal",At(0),At(1),At(2))),it("ContextMenuButton",it(de.s_,"Horizontal",it(de.s_,"Spot",Dt(!1),Ee(de.z6.Top,!1),Ee(de.z6.Left,!1),Ee(de.z6.Right,!1),Ee(de.z6.Bottom,!1)),it(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Dt(!0),Ee(de.z6.Top,!0),Ee(de.z6.Left,!0),Ee(de.z6.Right,!0),Ee(de.z6.Bottom,!0)))));const rn=`{ "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"}, @@ -86,27 +86,27 @@ {"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 an=["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 pn(ot){return console.log("shapeName:",ot),an.indexOf(ot)>=0}var Cn=new de.YI(Nt.current,{maxSelectionCount:1,linkTemplate:gt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:gt(de.uz,"Link",{locationSpot:de.z6.Center},gt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),gt(de.bn,{isPanelMain:!0,strokeWidth:2}),gt(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(ot){var yt;const It=ot.subject.part;var vt=(yt=document.activeElement)==null?void 0:yt.value;typeof vt=="string"&&vt.trim()===""&&pe.current.model.commit(function(Yt){Yt.set(It.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),gt(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")),gt(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=gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(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 _n=()=>je(this,null,function*(){var gt=pe.current.makeImage();const tn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});we({src:tn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),en(Zt+1),()=>{pe.current=null}),[]),Pe.createElement("div",{ref:ln,className:$t.current?`${he.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Je.Z,null,Pe.createElement(Ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Ct.Z,{onClick:()=>{var gt,tn,Dn=pe.current.selection.first();if($t.current=!$t.current,document.activeElement&&Dn){let Zn=(tn=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:tn.trim();typeof Zn=="string"&&pe.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Zn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}en(Zt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:he.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:he.myPaletteDiv,ref:Nt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:lt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(He.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var st=Me,xt=oe(5112),Et=oe(5871);const Mt=xt.ZP.Group,jt={margin:"0 8px"};var Bt=({callback:Le,onCancel:we})=>{function pe(lt){Le(lt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:jt},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Et.Z,null)),ne.createElement("span",{style:jt},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Et.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Mt,null,ne.createElement(xt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(xt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(xt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(xt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},bt=oe(78673),Ft=oe(98598),Wt=oe.n(Ft),qt=(0,ne.forwardRef)(({use3d:Le,width:we,height:pe,callback:lt,showSaveButton:Nt},$t)=>{const ln=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[en,Ln]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:ln,appName:"graphing",width:we||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,ne.useEffect)(()=>{Zt.current=new(Wt())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const gt=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return lt&<(tn),tn};return(0,ne.useEffect)(()=>{_n.current.appName=en?"3D":"graphing",Zt.current.inject("applet_container")},[en]),(0,ne.useEffect)(()=>{Ln(Le)},[Le]),(0,ne.useImperativeHandle)($t,()=>({getImgData:gt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Je.Z,{align:"middle"},ne.createElement(Ct.Z,{flex:1},ne.createElement(bt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>Ln(tn)})),ne.createElement(Ct.Z,null,ne.createElement(He.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ut=oe(75890),ve=oe(1012),Be=oe(8591);const Qe="link",mt="upload-image",pt="add-flowchart",Rt="draw-image",kt="add-flowchart",Gt="code-block",_t="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var nn=oe(91300),hn=(Le,we,pe)=>new Promise((lt,Nt)=>{var $t=en=>{try{Zt(pe.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?lt(en.value):Promise.resolve(en.value).then($t,ln);Zt((pe=pe.apply(Le,we)).next())});function vn(){}let wn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",En="@\u2581@",Bn=` +]}`;var an=["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 pn(ot){return console.log("shapeName:",ot),an.indexOf(ot)>=0}var Cn=new de.YI(Nt.current,{maxSelectionCount:1,linkTemplate:it(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:it(de.uz,"Link",{locationSpot:de.z6.Center},it(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),it(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),it(de.bn,{isPanelMain:!0,strokeWidth:2}),it(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(ot){var yt;const It=ot.subject.part;var vt=(yt=document.activeElement)==null?void 0:yt.value;typeof vt=="string"&&vt.trim()===""&&pe.current.model.commit(function(Yt){Yt.set(It.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=it(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),it(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")),it(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=it(de.s_,"Grid",it(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),it(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 _n=()=>Me(this,null,function*(){var it=pe.current.makeImage();const tn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:it.src}});we({src:tn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),en(Zt+1),()=>{pe.current=null}),[]),Pe.createElement("div",{ref:ln,className:xt.current?`${he.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Je.Z,null,Pe.createElement(Ct.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Ct.Z,{onClick:()=>{var it,tn,Dn=pe.current.selection.first();if(xt.current=!xt.current,document.activeElement&&Dn){let Zn=(tn=(it=document.activeElement)==null?void 0:it.value)==null?void 0:tn.trim();typeof Zn=="string"&&pe.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Zn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}en(Zt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:he.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:he.myPaletteDiv,ref:Nt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:st,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(He.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var lt=je,Ot=oe(5112),Et=oe(5871);const Mt=Ot.ZP.Group,jt={margin:"0 8px"};var Bt=({callback:Le,onCancel:we})=>{function pe(st){Le(st)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:jt},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Et.Z,null)),ne.createElement("span",{style:jt},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Et.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Mt,null,ne.createElement(Ot.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Ot.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Ot.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Ot.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(He.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},bt=oe(78673),Ft=oe(98598),Wt=oe.n(Ft),qt=(0,ne.forwardRef)(({use3d:Le,width:we,height:pe,callback:st,showSaveButton:Nt},xt)=>{const ln=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[en,Ln]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:ln,appName:"graphing",width:we||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,ne.useEffect)(()=>{Zt.current=new(Wt())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const it=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return st&&st(tn),tn};return(0,ne.useEffect)(()=>{_n.current.appName=en?"3D":"graphing",Zt.current.inject("applet_container")},[en]),(0,ne.useEffect)(()=>{Ln(Le)},[Le]),(0,ne.useImperativeHandle)(xt,()=>({getImgData:it})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Je.Z,{align:"middle"},ne.createElement(Ct.Z,{flex:1},ne.createElement(bt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>Ln(tn)})),ne.createElement(Ct.Z,null,ne.createElement(He.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ut=oe(75890),ve=oe(1012),Be=oe(8591);const Qe="link",mt="upload-image",pt="add-flowchart",Rt="draw-image",kt="add-flowchart",Gt="code-block",_t="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var nn=oe(91300),hn=(Le,we,pe)=>new Promise((st,Nt)=>{var xt=en=>{try{Zt(pe.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(xt,ln);Zt((pe=pe.apply(Le,we)).next())});function vn(){}let wn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",En="@\u2581@",Bn=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:we,width:pe="100%",height:lt=400,miniToolbar:Nt=!1,isFocus:$t=!1,watch:ln,insertTemp:Zt,mode:en="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:gt=!1,showNullButton:tn=!1,showNullProgramButton:Dn=!1,hidetoolBar:Zn=!1,fullScreen:Fn=!1,onBlur:ue,onCMBeforeChange:ze,onFullScreen:Ge,className:Ue="",disablePaste:at=!1,disabled:rt=!1,disabledFill:et=!1,placeholder:Xe="",values:At="",extraUse:Dt})=>{const[Ee,rn]=(0,ne.useState)(null),[an,pn]=(0,ne.useState)(Le),[Cn,ot]=(0,ne.useState)(ln),[yt,It]=(0,ne.useState)(Fn),[vt,Yt]=(0,ne.useState)(""),[Qt,Ht]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(lt),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,ve.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,xn]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ia=(0,ne.useRef)(),ga=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var zt;const St=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=St==null?void 0:St.attachments)!=null&&zt.length&&(console.log("cm:",Ee,ta),St.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?Ee.replaceSelection(`![,](/api/attachments/${wt.id}?type=${wt.content_type})`):wt.content_type.indexOf("video")>-1?Ee.replaceSelection(``):wt.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`${wt.name}`):Ee.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ne.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;pn(At),Ee==null||Ee.setValue(At),window.scrollTo(0,zt)},[At]),(0,ne.useEffect)(()=>{Ge==null||Ge(yt)},[yt]),(0,ne.useEffect)(()=>{if(ta.current){let zt=function(wt,Ot){var un;if(at){Ot.preventDefault();return}const Gn=Ot.clipboardData;if(Gn){const Rn=Gn.types.toString(),An=Gn.items;if(Rn==="Files"||Gn.types.indexOf("Files")>-1){if(Ot.preventDefault(),en=="stex")return;try{let jn=An[1];((un=An[0])==null?void 0:un.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,fe.I)(kn,Vn=>{var Vt,sn,bn;Vn.id?((Vt=kn==null?void 0:kn.type)==null?void 0:Vt.indexOf("image"))>-1?St.replaceSelection(`![,](/api/attachments/${Vn.id}?type=${Vn.content_type})`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?St.replaceSelection(``):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?St.replaceSelection(`${kn.name}`):cn.includes(sa)?St.replaceSelection(`${kn.name}`):St.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Be.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const St=Ke().fromTextArea(ta.current,{mode:en,lineNumbers:!Nt,lineWrapping:!0,value:Le,autoCloseTags:!Dn,autoCloseBrackets:!0});return St.on("keyup",function(wt,Ot){Ot.keyCode===8&&(wt.getValue()==""?St.setOption("placeholder",Xe):St.setOption("placeholder",null))}),St.on("keydown",function(wt,Ot){if(Ot.keyCode===8){var un=Xt(wt);un&&Ot.preventDefault()}}),$t&&St.focus(),St.on("paste",zt),St.on("dragleave",function(wt,Ot){ia.current.classList.remove("mouse-hover-md")}),rt&&St.on("beforeChange",function(wt,Ot){(Ot.origin==="paste"||Ot.origin==="+input")&&Ot.cancel()}),rn(St),()=>{St.off("paste",zt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ia.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Pn,ia,yt]);(0,ne.useEffect)(()=>{function zt(){let St=new Ne.Z(wt=>{for(let Ot of wt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&(fa(),Ee.setSize("100%","100%"),Ee.refresh())});return St.observe(ta.current.parentElement),St}if(Ee){const St=zt();return()=>{var wt,Ot;(wt=ta.current)!=null&&wt.parentElement&&St.unobserve((Ot=ta.current)==null?void 0:Ot.parentElement)}}},[Ee,fa]),(0,ne.useEffect)(()=>{if(Ee){let zt=[];for(const[St,wt]of Object.entries(Wn)){let Ot={[St]:()=>{$n(wt)}};zt.push(Ot),Ee.addKeyMap(Ot)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let St of zt)Ee.removeKeyMap(St)}}},[Ee]),(0,ne.useEffect)(()=>{Fn!==yt&&It(Fn)},[Fn]),(0,nn.Z)(()=>{if(!gt&&Qt>0){let zt=new Date().getTime(),St=window.sessionStorage.getItem(Ln);zt>=Qt+dn&&(!St||St!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ne.useEffect)(()=>{ot(ln)},[Ee,ln]),(0,ne.useEffect)(()=>{Ee&&$t&&Ee.focus()},[Ee,$t]),(0,ne.useEffect)(()=>{if(Cn&&Ee){let zt=function(wt){let Ot=wt.target;if(aa.current){let un=Ot.scrollTop/Ot.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const St=Ee.getScrollerElement();return St.addEventListener("scroll",zt),()=>{St.removeEventListener("scroll",zt)}}},[Ee,Cn]),(0,ne.useEffect)(()=>{if(Ee&&ze){let zt=function(St,wt){ze(St,wt)};return Ee.on("beforeChange",zt),()=>{Ee.off("beforeChange",zt)}}},[Ee,ze]),(0,ne.useEffect)(()=>{if(Ee&&ue){let zt=function(){ue(Ee.getValue())};return Ee.on("blur",zt),()=>{Ee.off("blur",zt)}}},[Ee,ue]);function Xt(zt,St){var wt=zt.getDoc(),Ot=wt.getCursor(),un=wt.getLine(Ot.line),Gn=un.charAt(Ot.ch-1),Rn=un.lastIndexOf("@\u2581@",Ot.ch),An=un.lastIndexOf("@\u2581\u2581@",Ot.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(yn.indexOf(Gn)===-1)return null;if(console.log("change1:",St,zt,un,Ot,jn,Rn,An,Gn),jn>=0&&Ot.ch-jn<5){var sa=jn+kn;return wt.replaceRange("",{line:Ot.line,ch:jn},{line:Ot.line,ch:sa}),{line:Ot.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(Ee){let zt=function(St,wt){const Ot=St.getValue();pn(Ot),Ht(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Dn?we(Ot,On(Ot)):we(Ot))};return Ee.on("change",zt),()=>{Ee.off("change",zt)}}},[Ee,we]),(0,ne.useEffect)(()=>{if(Ee)if(Le==null)Ee.setValue(""),pn("");else{const zt=window.scrollY||window.pageYOffset;Le!==Ee.getValue()&&(Ee.setValue(Le),pn(Le),Ee.setCursor(rt?1:Ee.lineCount(),0),window.scrollTo(0,zt))}},[Ee,Le]);const $n=(0,ne.useCallback)(zt=>{const St=Ee.getCursor(),wt=Ee.getSelection();let Ot=wt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,cn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Qe]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:we,width:pe="100%",height:st=400,miniToolbar:Nt=!1,isFocus:xt=!1,watch:ln,insertTemp:Zt,mode:en="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:it=!1,showNullButton:tn=!1,showNullProgramButton:Dn=!1,hidetoolBar:Zn=!1,fullScreen:Fn=!1,onBlur:ue,onCMBeforeChange:ze,onFullScreen:Ge,className:Ue="",disablePaste:at=!1,disabled:rt=!1,disabledFill:et=!1,placeholder:Xe="",values:At="",extraUse:Dt})=>{const[Ee,rn]=(0,ne.useState)(null),[an,pn]=(0,ne.useState)(Le),[Cn,ot]=(0,ne.useState)(ln),[yt,It]=(0,ne.useState)(Fn),[vt,Yt]=(0,ne.useState)(""),[Qt,Ht]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(st),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,ve.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,xn]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ga=(0,ne.useRef)(),ia=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var zt;const St=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=St==null?void 0:St.attachments)!=null&&zt.length&&(console.log("cm:",Ee,ta),St.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?Ee.replaceSelection(`![,](/api/attachments/${wt.id}?type=${wt.content_type})`):wt.content_type.indexOf("video")>-1?Ee.replaceSelection(``):wt.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`${wt.name}`):Ee.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ne.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;pn(At),Ee==null||Ee.setValue(At),window.scrollTo(0,zt)},[At]),(0,ne.useEffect)(()=>{Ge==null||Ge(yt)},[yt]),(0,ne.useEffect)(()=>{if(ta.current){let zt=function(wt,$t){var un;if(at){$t.preventDefault();return}const Gn=$t.clipboardData;if(Gn){const Rn=Gn.types.toString(),An=Gn.items;if(Rn==="Files"||Gn.types.indexOf("Files")>-1){if($t.preventDefault(),en=="stex")return;try{let jn=An[1];((un=An[0])==null?void 0:un.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,fe.I)(kn,Vn=>{var Vt,sn,bn;Vn.id?((Vt=kn==null?void 0:kn.type)==null?void 0:Vt.indexOf("image"))>-1?St.replaceSelection(`![,](/api/attachments/${Vn.id}?type=${Vn.content_type})`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?St.replaceSelection(``):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?St.replaceSelection(`${kn.name}`):cn.includes(sa)?St.replaceSelection(`${kn.name}`):St.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Be.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const St=Ke().fromTextArea(ta.current,{mode:en,lineNumbers:!Nt,lineWrapping:!0,value:Le,autoCloseTags:!Dn,autoCloseBrackets:!0});return St.on("keyup",function(wt,$t){$t.keyCode===8&&(wt.getValue()==""?St.setOption("placeholder",Xe):St.setOption("placeholder",null))}),St.on("keydown",function(wt,$t){if($t.keyCode===8){var un=Xt(wt);un&&$t.preventDefault()}}),xt&&St.focus(),St.on("paste",zt),St.on("dragleave",function(wt,$t){ga.current.classList.remove("mouse-hover-md")}),rt&&St.on("beforeChange",function(wt,$t){($t.origin==="paste"||$t.origin==="+input")&&$t.cancel()}),rn(St),()=>{St.off("paste",zt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ga.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Pn,ga,yt]);(0,ne.useEffect)(()=>{function zt(){let St=new Ne.Z(wt=>{for(let $t of wt)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&(fa(),Ee.setSize("100%","100%"),Ee.refresh())});return St.observe(ta.current.parentElement),St}if(Ee){const St=zt();return()=>{var wt,$t;(wt=ta.current)!=null&&wt.parentElement&&St.unobserve(($t=ta.current)==null?void 0:$t.parentElement)}}},[Ee,fa]),(0,ne.useEffect)(()=>{if(Ee){let zt=[];for(const[St,wt]of Object.entries(Wn)){let $t={[St]:()=>{$n(wt)}};zt.push($t),Ee.addKeyMap($t)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let St of zt)Ee.removeKeyMap(St)}}},[Ee]),(0,ne.useEffect)(()=>{Fn!==yt&&It(Fn)},[Fn]),(0,nn.Z)(()=>{if(!it&&Qt>0){let zt=new Date().getTime(),St=window.sessionStorage.getItem(Ln);zt>=Qt+dn&&(!St||St!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ne.useEffect)(()=>{ot(ln)},[Ee,ln]),(0,ne.useEffect)(()=>{Ee&&xt&&Ee.focus()},[Ee,xt]),(0,ne.useEffect)(()=>{if(Cn&&Ee){let zt=function(wt){let $t=wt.target;if(aa.current){let un=$t.scrollTop/$t.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const St=Ee.getScrollerElement();return St.addEventListener("scroll",zt),()=>{St.removeEventListener("scroll",zt)}}},[Ee,Cn]),(0,ne.useEffect)(()=>{if(Ee&&ze){let zt=function(St,wt){ze(St,wt)};return Ee.on("beforeChange",zt),()=>{Ee.off("beforeChange",zt)}}},[Ee,ze]),(0,ne.useEffect)(()=>{if(Ee&&ue){let zt=function(){ue(Ee.getValue())};return Ee.on("blur",zt),()=>{Ee.off("blur",zt)}}},[Ee,ue]);function Xt(zt,St){var wt=zt.getDoc(),$t=wt.getCursor(),un=wt.getLine($t.line),Gn=un.charAt($t.ch-1),Rn=un.lastIndexOf("@\u2581@",$t.ch),An=un.lastIndexOf("@\u2581\u2581@",$t.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(yn.indexOf(Gn)===-1)return null;if(console.log("change1:",St,zt,un,$t,jn,Rn,An,Gn),jn>=0&&$t.ch-jn<5){var sa=jn+kn;return wt.replaceRange("",{line:$t.line,ch:jn},{line:$t.line,ch:sa}),{line:$t.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(Ee){let zt=function(St,wt){const $t=St.getValue();pn($t),Ht(new Date().getTime()),St.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Dn?we($t,On($t)):we($t))};return Ee.on("change",zt),()=>{Ee.off("change",zt)}}},[Ee,we]),(0,ne.useEffect)(()=>{if(Ee)if(Le==null)Ee.setValue(""),pn("");else{const zt=window.scrollY||window.pageYOffset;Le!==Ee.getValue()&&(Ee.setValue(Le),pn(Le),Ee.setCursor(rt?1:Ee.lineCount(),0),window.scrollTo(0,zt))}},[Ee,Le]);const $n=(0,ne.useCallback)(zt=>{const St=Ee.getCursor(),wt=Ee.getSelection();let $t=wt.split(` `);switch(zt){case"bold":return Ee.replaceSelection("**"+wt+"**"),wt===""&&Ee.setCursor(St.line,St.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+wt+"*"),wt===""&&Ee.setCursor(St.line,St.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+wt+"`"),wt===""&&Ee.setCursor(St.line,St.ch+1),Ee.focus();case"inline-latex":return Yt("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+wt+"\n```"),Ee.setCursor(St.line+1,wt.length+1),Ee.focus();case"line-break":return Ee.replaceSelection(`
-`),Ee.focus();case"list-ul":return wt===""?Ee.replaceSelection("- "+wt):Ee.replaceSelection(Ot.map(un=>un===""?"":`- ${un}`).join(` -`)),Ee.focus();case"list-ol":return wt===""?Ee.replaceSelection("1. "+wt):Ee.replaceSelection(Ot.map((un,Gn)=>un===""?"":`${Gn+1}. ${un}`).join(` -`)),Ee.focus();case"add-null-ch":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(on),Ee.focus();case"add-signal":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(En),Ee.focus();case"add-multiple":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(yn),Ee.focus();case"inster-template-1":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(Bn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return ot(!Cn),Ee.focus();case"trigger-full-screen":return It(!yt),Ee.focus();case Qe:Yt(Qe);return;case Gt:Yt(Gt);return;case mt:Yt(mt);return;case Rt:Yt(Rt);return;case"maths-latex":Yt("maths-latex");return;case pt:Yt(pt);return;case _t:Yt(_t);return;default:throw new Error}},[Ee,Cn,yt]),In=(0,ne.useCallback)((zt,St)=>{var wt,Ot,un,Gn,Rn,An;switch(Yt(""),vt){case Qe:const{title:Vt,link:sn}=zt;return Ee.replaceSelection(`[${Vt}](${sn})`),Ee.focus();case Gt:const{language:bn,content:gn}=zt;return Ee.replaceSelection(["```"+bn,gn,"```"].join(` -`)),Ee.focus();case"maths-latex":for(var jn=atob(zt),kn=new Uint8Array(jn.length),sa=0;sa{ma.id?Ee.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":Ee.replaceSelection("`$$"+zt+"$$`");break;case mt:case Rt:case kt:const{src:Sn,alt:Hn}=zt,Tn=St,ha=(un=(Ot=(wt=Tn==null?void 0:Tn.name)==null?void 0:wt.split("."))==null?void 0:Ot.pop)==null?void 0:un.call(Ot);return((Gn=Tn==null?void 0:Tn.type)==null?void 0:Gn.indexOf("image"))>-1||!(Tn!=null&&Tn.type)?Hn?Ee.replaceSelection(`![ ${Hn} ]( ${Sn} "${Hn}" )`):Ee.replaceSelection(`![,](${Sn})`):((Rn=Tn==null?void 0:Tn.type)==null?void 0:Rn.indexOf("video"))>-1?Ee.replaceSelection(``):((An=Tn==null?void 0:Tn.type)==null?void 0:An.indexOf("pdf"))>-1?Ee.replaceSelection(`${Tn.name}`):cn.includes(ha)?Ee.replaceSelection(`${Tn.name}`):Ee.replaceSelection(`[${Tn.name}](${Sn})`),Ee.focus();case _t:const{row:ua,col:wa,align:xa}=zt;let Fa=` +`),Ee.focus();case"list-ul":return wt===""?Ee.replaceSelection("- "+wt):Ee.replaceSelection($t.map(un=>un===""?"":`- ${un}`).join(` +`)),Ee.focus();case"list-ol":return wt===""?Ee.replaceSelection("1. "+wt):Ee.replaceSelection($t.map((un,Gn)=>un===""?"":`${Gn+1}. ${un}`).join(` +`)),Ee.focus();case"add-null-ch":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(on),Ee.focus();case"add-signal":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(En),Ee.focus();case"add-multiple":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(yn),Ee.focus();case"inster-template-1":return wt===""&&Ee.setCursor(St.line,St.ch),Ee.replaceSelection(Bn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return ot(!Cn),Ee.focus();case"trigger-full-screen":return It(!yt),Ee.focus();case Qe:Yt(Qe);return;case Gt:Yt(Gt);return;case mt:Yt(mt);return;case Rt:Yt(Rt);return;case"maths-latex":Yt("maths-latex");return;case pt:Yt(pt);return;case _t:Yt(_t);return;default:throw new Error}},[Ee,Cn,yt]),In=(0,ne.useCallback)((zt,St)=>{var wt,$t,un,Gn,Rn,An;switch(Yt(""),vt){case Qe:const{title:Vt,link:sn}=zt;return Ee.replaceSelection(`[${Vt}](${sn})`),Ee.focus();case Gt:const{language:bn,content:gn}=zt;return Ee.replaceSelection(["```"+bn,gn,"```"].join(` +`)),Ee.focus();case"maths-latex":for(var jn=atob(zt),kn=new Uint8Array(jn.length),sa=0;sa{ma.id?Ee.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":Ee.replaceSelection("`$$"+zt+"$$`");break;case mt:case Rt:case kt:const{src:Sn,alt:Hn}=zt,Tn=St,ha=(un=($t=(wt=Tn==null?void 0:Tn.name)==null?void 0:wt.split("."))==null?void 0:$t.pop)==null?void 0:un.call($t);return((Gn=Tn==null?void 0:Tn.type)==null?void 0:Gn.indexOf("image"))>-1||!(Tn!=null&&Tn.type)?Hn?Ee.replaceSelection(`![ ${Hn} ]( ${Sn} "${Hn}" )`):Ee.replaceSelection(`![,](${Sn})`):((Rn=Tn==null?void 0:Tn.type)==null?void 0:Rn.indexOf("video"))>-1?Ee.replaceSelection(``):((An=Tn==null?void 0:Tn.type)==null?void 0:An.indexOf("pdf"))>-1?Ee.replaceSelection(`${Tn.name}`):cn.includes(ha)?Ee.replaceSelection(`${Tn.name}`):Ee.replaceSelection(`[${Tn.name}](${Sn})`),Ee.focus();case _t:const{row:ua,col:wa,align:xa}=zt;let Fa=` `;for(let ma=0;ma{switch(vt){case Qe:return ne.createElement(Ve,{callback:In,onCancel:Xn});case Gt:return ne.createElement(ht.Z,{callback:In,onCancel:Xn});case mt:return ne.createElement(fe.Z,{callback:In,onCancel:Xn});case pt:return ne.createElement(st,{callback:In,onCancel:Xn});case _t:return ne.createElement(Bt,{callback:In,onCancel:Xn});case"maths-latex":return ne.createElement(qt,{showSaveButton:!0,callback:In});case"inline-latex":return ne.createElement(Ut.Z,{showSaveButton:!0,callback:In});default:return null}},[vt]);function Xn(){Yt("")}(0,ne.useEffect)(()=>{if(ga.current){let zt=function(Rn){un=!0,Gn=Rn.pageY},St=function(){un=!1},wt=function(Rn){if(un){let An=Rn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let jn=lt+An+"px";fn(jn)}},Ot=ga.current,un=!1,Gn=0;return Ot.addEventListener("mousedown",zt),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",St),()=>{Ot.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",St)}}},[Ee,ga]),(0,ne.useEffect)(()=>{fn(lt)},[lt]);const ra=zn(pe),va=zn(Pn),pa={width:ra,height:va},Mn=(0,ne.useMemo)(()=>{if(Qt){let zt=new Date(Qt),St=zt.getHours(),wt=zt.getMinutes(),Ot=zt.getSeconds();return St=St<10?"0"+St:St,wt=wt<10?"0"+wt:wt,Ot=Ot<10?"0"+Ot:Ot,`${St}:${wt}:${Ot}`}return 0},[Qt]),On=zt=>{const St=[];if(Dn){let wt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function(Ot,un,Gn){St.push({multiLine:Ot!==En})})}return St};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),Ee.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[vt]&&vt!==Rt&&vt!==pt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],St=window.innerWidth/2-zt.offsetWidth/2,wt=window.innerHeight/2-zt.offsetHeight/2;da(St),xn(wt)},0)},[vt]);const La=zt=>{zt.preventDefault();const St=zt.clientX-Pa,wt=zt.clientY-Kn;document.body.onmousemove=Ot=>{let un=Ot.clientX-St,Gn=Ot.clientY-wt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,An)),Gn=Math.max(0,Math.min(Gn,jn)),ba(Ot.clientX,Ot.clientY,St,wt)&&(da(un),xn(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,St,wt,Ot)=>{const un=document.body.clientHeight,Gn=document.body.clientWidth;return zt<20&&wt>zt||zt>Gn-20&&wtSt||St>un-20&&Otge in ie?Ae(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:me}):ie[ge]=me,y=(ie,ge)=>{for(var me in ge||(ge={}))Re.call(ge,me)&&a(ie,me,ge[me]);if(ke)for(var me of ke(ge))ae.call(ge,me)&&a(ie,me,ge[me]);return ie},E=(ie,ge)=>Te(ie,nt(ge));const{useForm:b}=ne.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ie,onCancel:ge})=>{const[me]=b();let se=(0,Fe.useRef)();function xe(ft){ie(ft,se.current)}function He(ft,Lt){if(ft.status===-1){Se.ZP.error(ft.message);return}me.setFieldsValue({src:`/api/attachments/${ft.id}`,type:Lt.type})}function ut(ft){let Lt=ft.target.files[0];se.current=Lt,re(Lt,He)}return $e.createElement(ne.default,E(y({form:me},z),{className:"upload-image-panel",onFinish:xe,style:{width:470,overflow:"hidden"}}),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},$e.createElement("div",{className:"flex-container"},$e.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},$e.createElement(Ke.default,{style:x})),$e.createElement(te,{onFileChange:ut}))),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},$e.createElement(Ke.default,{style:{width:264}})),$e.createElement(ne.default.Item,{style:{textAlign:"right"}},$e.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),$e.createElement(Ne.ZP,{type:"default",onClick:ge},"\u53D6\u6D88")))};function te({onFileChange:ie}){return $e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",$e.createElement("input",{type:"file",onChange:ie}))}function re(ie,ge){if(!ie)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,le.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ie),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var se=new window.XMLHttpRequest;se.withCredentials=!0,se.addEventListener("load",function(xe){ge(JSON.parse(xe.target.responseText),ie)},!1),se.addEventListener("error",function(xe){console.error(xe)},!1),se.open("POST",`${ce.KI}/api/attachments.json`),se.send(me)}},50474:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ke}});var ne=oe(59301),Se=oe(4676);class Ke extends ne.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Se.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ke,Ne){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ke}),(0,ne.useEffect)(()=>{function Fe(){ce.current()}if(Ne!==null){let le=setInterval(Fe,Ne);return()=>clearInterval(le)}},[Ne])}},64459:function(Oe,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return He}});var ne=oe(59301),Se=oe(42203),Ke=oe(78241),Ne=oe(8591),ce=oe(66104),Fe=oe(92832),le=oe(95237),$e=oe(43604),Ae=oe(5871),Te=oe(24905),nt=oe(3113),ke=oe(23469),Re=oe(32583),ae={bg:"bg___znu26",flexRow:"flexRow___wGnqf",flexJustifyCenter:"flexJustifyCenter____vugD",flexAlignEnd:"flexAlignEnd___gq4z7",flexAlignCenter:"flexAlignCenter___xzbBs",flexColumn:"flexColumn___F71iN",formWrap:"formWrap___THE6p",titleWrap:"titleWrap___TPgV7",fieldWrap:"fieldWrap___vVJhC",mdWrap:"mdWrap___Wjo_5",backgroundFa:"backgroundFa___KSlqe",button:"button___HFajm"},a=oe(57203),y=oe(10437),E=oe(70635),b=Object.defineProperty,x=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(ut,ft,Lt)=>ft in ut?b(ut,ft,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):ut[ft]=Lt,ge=(ut,ft)=>{for(var Lt in ft||(ft={}))te.call(ft,Lt)&&ie(ut,Lt,ft[Lt]);if(ee)for(var Lt of ee(ft))re.call(ft,Lt)&&ie(ut,Lt,ft[Lt]);return ut},me=(ut,ft)=>x(ut,z(ft)),se=(ut,ft,Lt)=>new Promise((ye,_e)=>{var Ie=De=>{try{it(Lt.next(De))}catch(We){_e(We)}},qe=De=>{try{it(Lt.throw(De))}catch(We){_e(We)}},it=De=>De.done?ye(De.value):Promise.resolve(De.value).then(Ie,qe);it((Lt=Lt.apply(ut,ft)).next())});const xe=({shixunHomeworks:ut,newCourse:ft,user:Lt,globalSetting:ye,loading:_e,dispatch:Ie})=>{var qe,it,De,We;const Ve=(0,Se.useParams)(),[ht]=Ke.default.useForm(),[fe,Ce]=(0,ne.useState)({}),[Je,ct]=(0,ne.useState)(!1);let[Ze,tt]=(0,ne.useState)({});const de=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Ye}=ut;(0,ne.useEffect)(()=>{Pt()},[Ve.categoryId]);const Pt=()=>se(void 0,null,function*(){const be=yield Ie({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:me(ge({},Ve),{type:3})});if(be){const he=ge({attachment_ids:(0,a.z)(be.attachments),reference_attachment_ids:(0,a.z)(be.ref_attachments)},be);ht.setFieldsValue(ge({},he)),Ce(ge({},he)),ct(!0)}});function Tt(be){return se(this,null,function*(){if(!(Ze!=null&&Ze.ec_point_ids))return;let he=yield(0,E.ZP)(`/api/ec_courses/${Ze==null?void 0:Ze.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ge({homework_common_id:be},Ze)})})}const Ct=be=>se(void 0,null,function*(){var he,Pe,je;if(fe.min_num>fe.max_num){Ne.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Me=me(ge({},fe),{base_on_project:!((he=ye==null?void 0:ye.setting)!=null&&he.hide_project)});Me.attachment_ids&&(Me.attachment_ids=(Pe=Me==null?void 0:Me.attachment_ids)==null?void 0:Pe.map(xt=>xt.response.id)),Me.reference_attachment_ids&&(Me.reference_attachment_ids=(je=Me==null?void 0:Me.reference_attachment_ids)==null?void 0:je.map(xt=>xt.response.id));const st=yield(0,Re.Ar)(me(ge(ge({},Ve),Me),{type:3}));Tt(Ve.categoryId),(st==null?void 0:st.status)===0&&Se.history.push(`/classrooms/${Ve.coursesId}/group_homework/${Ve.categoryId}/detail`)});return ne.createElement("section",{className:ae.bg},Ye.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Ye.category&&ne.createElement(ce.Z,{separator:">"},ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ye.course_id}/group_homework`},Ye.course_name)),ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ye.course_id}/group_homework`},Ye.category.category_name)),ne.createElement(ce.Z.Item,null,"\u7F16\u8F91\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(Ke.default,{form:ht,className:ae.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",ht.getFieldsValue()),Ce(ge({},ht.getFieldsValue()))},onFinish:Ct},ne.createElement("div",{className:ae.fieldWrap},ne.createElement(Ke.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Fe.default,{maxLength:60,suffix:`${((qe=fe.name)==null?void 0:qe.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:ae.mdWrap},ne.createElement(Ke.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(ke.Z,{watch:!0,defaultValue:Ye.description})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"attachment_ids"},Je&&ne.createElement(a.Z,null))),ne.createElement(le.Z,{gutter:[20,20]},ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"max_num",label:ne.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement($e.Z,null,ne.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(le.Z,{style:{display:(it=ye==null?void 0:ye.setting)!=null&&it.hide_project?"none":""}},ne.createElement($e.Z,null,ne.createElement(Ke.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Te.default,{value:!0,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:ae.mdWrap},ne.createElement(Ke.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ke.Z,{defaultValue:Ye.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"reference_attachment_ids"},Je&&ne.createElement(a.Z,null))))),ne.createElement("div",{className:ae.mdWrap,style:{display:(De=ye==null?void 0:ye.setting)!=null&&De.hide_ec?"none":(We=Lt.userInfo.course)!=null&&We.is_openengineering?"":"none"}},ne.createElement(y.Z,{setitem:be=>tt(ge({},be)),homework_common_id:Ve.categoryId})),ne.createElement("div",{className:ae.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ke.default.Item,null,ne.createElement(nt.ZP,{size:"middle",type:"primary",onClick:()=>{ht.submit()},className:`${ae.button} mr20`,htmlType:"submit",loading:_e["newCourse/editCourse"]||_e["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(nt.ZP,{size:"middle",type:"primary",ghost:!0,className:ae.button,onClick:()=>Se.history.push(`/classrooms/${Ve.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var He=(0,Se.connect)(({shixunHomeworks:ut,newCourse:ft,loading:Lt,user:ye,globalSetting:_e})=>({shixunHomeworks:ut,newCourse:ft,user:ye,globalSetting:_e,loading:Lt.effects}))(xe)},76904:function(Oe,dt,oe){"use strict";oe.d(dt,{$J:function(){return Ke},JZ:function(){return ce},bN:function(){return le},jP:function(){return Fe},rO:function(){return Ne}});var ne=oe(70635),Se=($e,Ae,Te)=>new Promise((nt,ke)=>{var Re=y=>{try{a(Te.next(y))}catch(E){ke(E)}},ae=y=>{try{a(Te.throw(y))}catch(E){ke(E)}},a=y=>y.done?nt(y.value):Promise.resolve(y.value).then(Re,ae);a((Te=Te.apply($e,Ae)).next())});function Ke($e){return(0,ne.U2)(`libraries/${$e}.json`)}function Ne($e){return(0,ne.U2)("library_tags.json",$e)}function ce($e){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${$e}.json`)).status===0})}function Fe($e){return(0,ne.v_)("libraries.json",$e)}function le($e,Ae){return(0,ne.gz)(`libraries/${$e}.json`,Ae)}},56762:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ke]=ne.useReducer(Ne=>Ne+1,0);return Ke}},66104:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(92310),Se=oe.n(ne),Ke=oe(11592),Ne=oe(26112),ce=oe(59301),Fe=oe(92343),le=oe(36355),$e=oe(84105),Ae=oe(91857);const Te=ye=>{let{children:_e}=ye;const{getPrefixCls:Ie}=ce.useContext(le.E_),qe=Ie("breadcrumb");return ce.createElement("li",{className:`${qe}-separator`,"aria-hidden":"true"},_e===""?_e:_e||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var nt=Te,ke=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(ye);it_e[it]||qe)}function ae(ye,_e,Ie,qe){if(Ie==null)return null;const{className:it,onClick:De}=_e,We=ke(_e,["className","onClick"]),Ve=Object.assign(Object.assign({},(0,Ne.Z)(We,{data:!0,aria:!0})),{onClick:De});return qe!==void 0?ce.createElement("a",Object.assign({},Ve,{className:Se()(`${ye}-link`,it),href:qe}),Ie):ce.createElement("span",Object.assign({},Ve,{className:Se()(`${ye}-link`,it)}),Ie)}function a(ye,_e){return(qe,it,De,We,Ve)=>{if(_e)return _e(qe,it,De,We);const ht=Re(qe,it);return ae(ye,qe,ht,Ve)}}var y=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(ye);it{const{prefixCls:_e,separator:Ie="/",children:qe,menu:it,overlay:De,dropdownProps:We,href:Ve}=ye,fe=(Ce=>{if(it||De){const Je=Object.assign({},We);if(it){const ct=it||{},{items:Ze}=ct,tt=y(ct,["items"]);Je.menu=Object.assign(Object.assign({},tt),{items:Ze==null?void 0:Ze.map((de,Ye)=>{var{key:Pt,title:Tt,label:Ct,path:be}=de,he=y(de,["key","title","label","path"]);let Pe=Ct!=null?Ct:Tt;return be&&(Pe=ce.createElement("a",{href:`${Ve}${be}`},Pe)),Object.assign(Object.assign({},he),{key:Pt!=null?Pt:Ye,label:Pe})})})}else De&&(Je.overlay=De);return ce.createElement(Ae.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${_e}-overlay-link`},Ce,ce.createElement($e.Z,null)))}return Ce})(qe);return fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,fe),Ie&&ce.createElement(nt,null,Ie)):null},b=ye=>{const{prefixCls:_e,children:Ie,href:qe}=ye,it=y(ye,["prefixCls","children","href"]),{getPrefixCls:De}=ce.useContext(le.E_),We=De("breadcrumb",_e);return ce.createElement(E,Object.assign({},it,{prefixCls:We}),ae(We,it,Ie,qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=ye=>{const{componentCls:_e,iconCls:Ie}=ye;return{[_e]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[Ie]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${_e}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${_e}-link`]:{[` +`),Ee.focus();default:throw new Error}},[Ee,vt]),Un=(0,ne.useMemo)(()=>{switch(vt){case Qe:return ne.createElement(Ve,{callback:In,onCancel:Xn});case Gt:return ne.createElement(ht.Z,{callback:In,onCancel:Xn});case mt:return ne.createElement(fe.Z,{callback:In,onCancel:Xn});case pt:return ne.createElement(lt,{callback:In,onCancel:Xn});case _t:return ne.createElement(Bt,{callback:In,onCancel:Xn});case"maths-latex":return ne.createElement(qt,{showSaveButton:!0,callback:In});case"inline-latex":return ne.createElement(Ut.Z,{showSaveButton:!0,callback:In});default:return null}},[vt]);function Xn(){Yt("")}(0,ne.useEffect)(()=>{if(ia.current){let zt=function(Rn){un=!0,Gn=Rn.pageY},St=function(){un=!1},wt=function(Rn){if(un){let An=Rn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let jn=st+An+"px";fn(jn)}},$t=ia.current,un=!1,Gn=0;return $t.addEventListener("mousedown",zt),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",St),()=>{$t.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",St)}}},[Ee,ia]),(0,ne.useEffect)(()=>{fn(st)},[st]);const ra=zn(pe),va=zn(Pn),pa={width:ra,height:va},Mn=(0,ne.useMemo)(()=>{if(Qt){let zt=new Date(Qt),St=zt.getHours(),wt=zt.getMinutes(),$t=zt.getSeconds();return St=St<10?"0"+St:St,wt=wt<10?"0"+wt:wt,$t=$t<10?"0"+$t:$t,`${St}:${wt}:${$t}`}return 0},[Qt]),On=zt=>{const St=[];if(Dn){let wt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function($t,un,Gn){St.push({multiLine:$t!==En})})}return St};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),Ee.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[vt]&&vt!==Rt&&vt!==pt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],St=window.innerWidth/2-zt.offsetWidth/2,wt=window.innerHeight/2-zt.offsetHeight/2;da(St),xn(wt)},0)},[vt]);const La=zt=>{zt.preventDefault();const St=zt.clientX-Pa,wt=zt.clientY-Kn;document.body.onmousemove=$t=>{let un=$t.clientX-St,Gn=$t.clientY-wt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,An)),Gn=Math.max(0,Math.min(Gn,jn)),ba($t.clientX,$t.clientY,St,wt)&&(da(un),xn(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,St,wt,$t)=>{const un=document.body.clientHeight,Gn=document.body.clientWidth;return zt<20&&wt>zt||zt>Gn-20&&wtSt||St>un-20&&$tie in ge?Ae(ge,ie,{enumerable:!0,configurable:!0,writable:!0,value:me}):ge[ie]=me,y=(ge,ie)=>{for(var me in ie||(ie={}))Re.call(ie,me)&&a(ge,me,ie[me]);if(ke)for(var me of ke(ie))ae.call(ie,me)&&a(ge,me,ie[me]);return ge},E=(ge,ie)=>Te(ge,nt(ie));const{useForm:b}=ne.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ge,onCancel:ie})=>{const[me]=b();let se=(0,Fe.useRef)();function xe(ft){ge(ft,se.current)}function He(ft,Lt){if(ft.status===-1){Se.ZP.error(ft.message);return}me.setFieldsValue({src:`/api/attachments/${ft.id}`,type:Lt.type})}function ut(ft){let Lt=ft.target.files[0];se.current=Lt,re(Lt,He)}return $e.createElement(ne.default,E(y({form:me},z),{className:"upload-image-panel",onFinish:xe,style:{width:470,overflow:"hidden"}}),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},$e.createElement("div",{className:"flex-container"},$e.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},$e.createElement(Ke.default,{style:x})),$e.createElement(te,{onFileChange:ut}))),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},$e.createElement(Ke.default,{style:{width:264}})),$e.createElement(ne.default.Item,{style:{textAlign:"right"}},$e.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),$e.createElement(Ne.ZP,{type:"default",onClick:ie},"\u53D6\u6D88")))};function te({onFileChange:ge}){return $e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",$e.createElement("input",{type:"file",onChange:ge}))}function re(ge,ie){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,le.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ge),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var se=new window.XMLHttpRequest;se.withCredentials=!0,se.addEventListener("load",function(xe){ie(JSON.parse(xe.target.responseText),ge)},!1),se.addEventListener("error",function(xe){console.error(xe)},!1),se.open("POST",`${ce.KI}/api/attachments.json`),se.send(me)}},50474:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ke}});var ne=oe(59301),Se=oe(4676);class Ke extends ne.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Se.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ke,Ne){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ke}),(0,ne.useEffect)(()=>{function Fe(){ce.current()}if(Ne!==null){let le=setInterval(Fe,Ne);return()=>clearInterval(le)}},[Ne])}},64459:function(Oe,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return He}});var ne=oe(59301),Se=oe(42203),Ke=oe(78241),Ne=oe(8591),ce=oe(66104),Fe=oe(92832),le=oe(95237),$e=oe(43604),Ae=oe(5871),Te=oe(24905),nt=oe(3113),ke=oe(23469),Re=oe(32583),ae={bg:"bg___znu26",flexRow:"flexRow___wGnqf",flexJustifyCenter:"flexJustifyCenter____vugD",flexAlignEnd:"flexAlignEnd___gq4z7",flexAlignCenter:"flexAlignCenter___xzbBs",flexColumn:"flexColumn___F71iN",formWrap:"formWrap___THE6p",titleWrap:"titleWrap___TPgV7",fieldWrap:"fieldWrap___vVJhC",mdWrap:"mdWrap___Wjo_5",backgroundFa:"backgroundFa___KSlqe",button:"button___HFajm"},a=oe(57203),y=oe(10437),E=oe(70635),b=Object.defineProperty,x=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(ut,ft,Lt)=>ft in ut?b(ut,ft,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):ut[ft]=Lt,ie=(ut,ft)=>{for(var Lt in ft||(ft={}))te.call(ft,Lt)&&ge(ut,Lt,ft[Lt]);if(ee)for(var Lt of ee(ft))re.call(ft,Lt)&&ge(ut,Lt,ft[Lt]);return ut},me=(ut,ft)=>x(ut,z(ft)),se=(ut,ft,Lt)=>new Promise((ye,_e)=>{var Ie=De=>{try{gt(Lt.next(De))}catch(We){_e(We)}},qe=De=>{try{gt(Lt.throw(De))}catch(We){_e(We)}},gt=De=>De.done?ye(De.value):Promise.resolve(De.value).then(Ie,qe);gt((Lt=Lt.apply(ut,ft)).next())});const xe=({shixunHomeworks:ut,newCourse:ft,user:Lt,globalSetting:ye,loading:_e,dispatch:Ie})=>{var qe,gt,De,We;const Ve=(0,Se.useParams)(),[ht]=Ke.default.useForm(),[fe,Ce]=(0,ne.useState)({}),[Je,ct]=(0,ne.useState)(!1);let[Ze,tt]=(0,ne.useState)({});const de=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Ye}=ut;(0,ne.useEffect)(()=>{Pt()},[Ve.categoryId]);const Pt=()=>se(void 0,null,function*(){const be=yield Ie({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:me(ie({},Ve),{type:3})});if(be){const he=ie({attachment_ids:(0,a.z)(be.attachments),reference_attachment_ids:(0,a.z)(be.ref_attachments)},be);ht.setFieldsValue(ie({},he)),Ce(ie({},he)),ct(!0)}});function Tt(be){return se(this,null,function*(){if(!(Ze!=null&&Ze.ec_point_ids))return;let he=yield(0,E.ZP)(`/api/ec_courses/${Ze==null?void 0:Ze.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ie({homework_common_id:be},Ze)})})}const Ct=be=>se(void 0,null,function*(){var he,Pe;if(fe.min_num>fe.max_num){Ne.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Me=ie({},fe);Me.attachment_ids&&(Me.attachment_ids=(he=Me==null?void 0:Me.attachment_ids)==null?void 0:he.map(lt=>lt.response.id)),Me.reference_attachment_ids&&(Me.reference_attachment_ids=(Pe=Me==null?void 0:Me.reference_attachment_ids)==null?void 0:Pe.map(lt=>lt.response.id));const je=yield(0,Re.Ar)(me(ie(ie({},Ve),Me),{type:3}));Tt(Ve.categoryId),(je==null?void 0:je.status)===0&&Se.history.push(`/classrooms/${Ve.coursesId}/group_homework/${Ve.categoryId}/detail`)});return ne.createElement("section",{className:ae.bg},Ye.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Ye.category&&ne.createElement(ce.Z,{separator:">"},ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ye.course_id}/group_homework`},Ye.course_name)),ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ye.course_id}/group_homework`},Ye.category.category_name)),ne.createElement(ce.Z.Item,null,"\u7F16\u8F91\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(Ke.default,{form:ht,className:ae.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",ht.getFieldsValue()),Ce(ie({},ht.getFieldsValue()))},onFinish:Ct},ne.createElement("div",{className:ae.fieldWrap},ne.createElement(Ke.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Fe.default,{maxLength:60,suffix:`${((qe=fe.name)==null?void 0:qe.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:ae.mdWrap},ne.createElement(Ke.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(ke.Z,{watch:!0,defaultValue:Ye.description})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"attachment_ids"},Je&&ne.createElement(a.Z,null))),ne.createElement(le.Z,{gutter:[20,20]},ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"max_num",label:ne.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement($e.Z,null,ne.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(le.Z,{style:{display:(gt=ye==null?void 0:ye.setting)!=null&>.hide_project?"none":""}},ne.createElement($e.Z,null,ne.createElement(Ke.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Te.default,{value:!0,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:ae.mdWrap},ne.createElement(Ke.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ke.Z,{defaultValue:Ye.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"reference_attachment_ids"},Je&&ne.createElement(a.Z,null))))),ne.createElement("div",{className:ae.mdWrap,style:{display:(De=ye==null?void 0:ye.setting)!=null&&De.hide_ec?"none":(We=Lt.userInfo.course)!=null&&We.is_openengineering?"":"none"}},ne.createElement(y.Z,{setitem:be=>tt(ie({},be)),homework_common_id:Ve.categoryId})),ne.createElement("div",{className:ae.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ke.default.Item,null,ne.createElement(nt.ZP,{size:"middle",type:"primary",onClick:()=>{ht.submit()},className:`${ae.button} mr20`,htmlType:"submit",loading:_e["newCourse/editCourse"]||_e["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(nt.ZP,{size:"middle",type:"primary",ghost:!0,className:ae.button,onClick:()=>Se.history.push(`/classrooms/${Ve.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var He=(0,Se.connect)(({shixunHomeworks:ut,newCourse:ft,loading:Lt,user:ye,globalSetting:_e})=>({shixunHomeworks:ut,newCourse:ft,user:ye,globalSetting:_e,loading:Lt.effects}))(xe)},76904:function(Oe,dt,oe){"use strict";oe.d(dt,{$J:function(){return Ke},JZ:function(){return ce},bN:function(){return le},jP:function(){return Fe},rO:function(){return Ne}});var ne=oe(70635),Se=($e,Ae,Te)=>new Promise((nt,ke)=>{var Re=y=>{try{a(Te.next(y))}catch(E){ke(E)}},ae=y=>{try{a(Te.throw(y))}catch(E){ke(E)}},a=y=>y.done?nt(y.value):Promise.resolve(y.value).then(Re,ae);a((Te=Te.apply($e,Ae)).next())});function Ke($e){return(0,ne.U2)(`libraries/${$e}.json`)}function Ne($e){return(0,ne.U2)("library_tags.json",$e)}function ce($e){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${$e}.json`)).status===0})}function Fe($e){return(0,ne.v_)("libraries.json",$e)}function le($e,Ae){return(0,ne.gz)(`libraries/${$e}.json`,Ae)}},56762:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ke]=ne.useReducer(Ne=>Ne+1,0);return Ke}},66104:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(92310),Se=oe.n(ne),Ke=oe(11592),Ne=oe(26112),ce=oe(59301),Fe=oe(92343),le=oe(36355),$e=oe(84105),Ae=oe(91857);const Te=ye=>{let{children:_e}=ye;const{getPrefixCls:Ie}=ce.useContext(le.E_),qe=Ie("breadcrumb");return ce.createElement("li",{className:`${qe}-separator`,"aria-hidden":"true"},_e===""?_e:_e||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var nt=Te,ke=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(ye);gt_e[gt]||qe)}function ae(ye,_e,Ie,qe){if(Ie==null)return null;const{className:gt,onClick:De}=_e,We=ke(_e,["className","onClick"]),Ve=Object.assign(Object.assign({},(0,Ne.Z)(We,{data:!0,aria:!0})),{onClick:De});return qe!==void 0?ce.createElement("a",Object.assign({},Ve,{className:Se()(`${ye}-link`,gt),href:qe}),Ie):ce.createElement("span",Object.assign({},Ve,{className:Se()(`${ye}-link`,gt)}),Ie)}function a(ye,_e){return(qe,gt,De,We,Ve)=>{if(_e)return _e(qe,gt,De,We);const ht=Re(qe,gt);return ae(ye,qe,ht,Ve)}}var y=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(ye);gt{const{prefixCls:_e,separator:Ie="/",children:qe,menu:gt,overlay:De,dropdownProps:We,href:Ve}=ye,fe=(Ce=>{if(gt||De){const Je=Object.assign({},We);if(gt){const ct=gt||{},{items:Ze}=ct,tt=y(ct,["items"]);Je.menu=Object.assign(Object.assign({},tt),{items:Ze==null?void 0:Ze.map((de,Ye)=>{var{key:Pt,title:Tt,label:Ct,path:be}=de,he=y(de,["key","title","label","path"]);let Pe=Ct!=null?Ct:Tt;return be&&(Pe=ce.createElement("a",{href:`${Ve}${be}`},Pe)),Object.assign(Object.assign({},he),{key:Pt!=null?Pt:Ye,label:Pe})})})}else De&&(Je.overlay=De);return ce.createElement(Ae.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${_e}-overlay-link`},Ce,ce.createElement($e.Z,null)))}return Ce})(qe);return fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,fe),Ie&&ce.createElement(nt,null,Ie)):null},b=ye=>{const{prefixCls:_e,children:Ie,href:qe}=ye,gt=y(ye,["prefixCls","children","href"]),{getPrefixCls:De}=ce.useContext(le.E_),We=De("breadcrumb",_e);return ce.createElement(E,Object.assign({},gt,{prefixCls:We}),ae(We,gt,Ie,qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=ye=>{const{componentCls:_e,iconCls:Ie}=ye;return{[_e]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[Ie]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${_e}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${_e}-link`]:{[` > ${Ie} + span, > ${Ie} + a - `]:{marginInlineStart:ye.marginXXS}},[`${_e}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${Ie}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",ye=>{const _e=(0,te.TS)(ye,{});return[re(_e)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ge=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(ye);it{var{breadcrumbName:We}=De,Ve=ge(De,["breadcrumbName"]);return Object.assign(Object.assign({},Ve),{title:We})})}),it}function se(ye,_e){return(0,ce.useMemo)(()=>ye||(_e?_e.map(me):null),[ye,_e])}var xe=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(ye);it{if(_e===void 0)return _e;let Ie=(_e||"").replace(/^\//,"");return Object.keys(ye).forEach(qe=>{Ie=Ie.replace(`:${qe}`,ye[qe])}),Ie},ut=ye=>{const{prefixCls:_e,separator:Ie="/",style:qe,className:it,rootClassName:De,routes:We,items:Ve,children:ht,itemRender:fe,params:Ce={}}=ye,Je=xe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ct,direction:Ze,breadcrumb:tt}=ce.useContext(le.E_);let de;const Ye=ct("breadcrumb",_e),[Pt,Tt]=ie(Ye),Ct=se(Ve,We),be=a(Ye,fe);if(Ct&&Ct.length>0){const je=[],Me=Ve||We;de=Ct.map((st,xt)=>{const{path:Et,key:Mt,type:jt,menu:Bt,overlay:bt,onClick:Ft,className:Wt,separator:mn,dropdownProps:qt}=st,Ut=He(Ce,Et);Ut!==void 0&&je.push(Ut);const ve=Mt!=null?Mt:xt;if(jt==="separator")return ce.createElement(nt,{key:ve},mn);const Be={},Qe=xt===Ct.length-1;Bt?Be.menu=Bt:bt&&(Be.overlay=bt);let{href:mt}=st;return je.length&&Ut!==void 0&&(mt=`#/${je.join("/")}`),ce.createElement(E,Object.assign({key:ve},Be,(0,Ne.Z)(st,{data:!0,aria:!0}),{className:Wt,dropdownProps:qt,href:mt,separator:Qe?"":Ie,onClick:Ft,prefixCls:Ye}),be(st,Ce,Me,je,mt))})}else if(ht){const je=(0,Ke.Z)(ht).length;de=(0,Ke.Z)(ht).map((Me,st)=>{if(!Me)return Me;const xt=st===je-1;return(0,Fe.Tm)(Me,{separator:xt?"":Ie,key:st})})}const he=Se()(Ye,tt==null?void 0:tt.className,{[`${Ye}-rtl`]:Ze==="rtl"},it,De,Tt),Pe=Object.assign(Object.assign({},tt==null?void 0:tt.style),qe);return Pt(ce.createElement("nav",Object.assign({className:he,style:Pe},Je),ce.createElement("ol",null,de)))};ut.Item=x,ut.Separator=nt;var ft=ut,Lt=ft},24905:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),Ke=oe(5630),Ne=oe(59301),ce=oe(36355),Fe=oe(1684),le=oe(32441),Ae=Ne.createContext(null),Te=oe(98447),nt=oe(14088),ke=oe(4572),Re=function(ge,me){var se={};for(var xe in ge)Object.prototype.hasOwnProperty.call(ge,xe)&&me.indexOf(xe)<0&&(se[xe]=ge[xe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,xe=Object.getOwnPropertySymbols(ge);He{var se;const{prefixCls:xe,className:He,rootClassName:ut,children:ft,indeterminate:Lt=!1,style:ye,onMouseEnter:_e,onMouseLeave:Ie,skipGroup:qe=!1,disabled:it}=ge,De=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:We,direction:Ve,checkbox:ht}=Ne.useContext(ce.E_),fe=Ne.useContext(Ae),{isFormItemInput:Ce}=Ne.useContext(le.aM),Je=Ne.useContext(Fe.Z),ct=(se=(fe==null?void 0:fe.disabled)||it)!==null&&se!==void 0?se:Je,Ze=Ne.useRef(De.value);Ne.useEffect(()=>{fe==null||fe.registerValue(De.value)},[]),Ne.useEffect(()=>{if(!qe)return De.value!==Ze.current&&(fe==null||fe.cancelValue(Ze.current),fe==null||fe.registerValue(De.value),Ze.current=De.value),()=>fe==null?void 0:fe.cancelValue(De.value)},[De.value]);const tt=We("checkbox",xe),[de,Ye]=(0,Te.ZP)(tt),Pt=Object.assign({},De);fe&&!qe&&(Pt.onChange=function(){De.onChange&&De.onChange.apply(De,arguments),fe.toggleOption&&fe.toggleOption({label:ft,value:De.value})},Pt.name=fe.name,Pt.checked=fe.value.includes(De.value));const Tt=Se()(`${tt}-wrapper`,{[`${tt}-rtl`]:Ve==="rtl",[`${tt}-wrapper-checked`]:Pt.checked,[`${tt}-wrapper-disabled`]:ct,[`${tt}-wrapper-in-form-item`]:Ce},ht==null?void 0:ht.className,He,ut,Ye),Ct=Se()({[`${tt}-indeterminate`]:Lt},ke.A,Ye),be=Lt?"mixed":void 0;return de(Ne.createElement(nt.Z,{component:"Checkbox",disabled:ct},Ne.createElement("label",{className:Tt,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),ye),onMouseEnter:_e,onMouseLeave:Ie},Ne.createElement(Ke.Z,Object.assign({"aria-checked":be},Pt,{prefixCls:tt,className:Ct,disabled:ct,ref:me})),ft!==void 0&&Ne.createElement("span",null,ft))))};var y=Ne.forwardRef(ae),E=oe(65093),b=oe(2738),x=function(ge,me){var se={};for(var xe in ge)Object.prototype.hasOwnProperty.call(ge,xe)&&me.indexOf(xe)<0&&(se[xe]=ge[xe]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,xe=Object.getOwnPropertySymbols(ge);He{const{defaultValue:se,children:xe,options:He=[],prefixCls:ut,className:ft,rootClassName:Lt,style:ye,onChange:_e}=ge,Ie=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:qe,direction:it}=Ne.useContext(ce.E_),[De,We]=Ne.useState(Ie.value||se||[]),[Ve,ht]=Ne.useState([]);Ne.useEffect(()=>{"value"in Ie&&We(Ie.value||[])},[Ie.value]);const fe=Ne.useMemo(()=>He.map(he=>typeof he=="string"||typeof he=="number"?{label:he,value:he}:he),[He]),Ce=he=>{ht(Pe=>Pe.filter(je=>je!==he))},Je=he=>{ht(Pe=>[].concat((0,E.Z)(Pe),[he]))},ct=he=>{const Pe=De.indexOf(he.value),je=(0,E.Z)(De);Pe===-1?je.push(he.value):je.splice(Pe,1),"value"in Ie||We(je),_e==null||_e(je.filter(Me=>Ve.includes(Me)).sort((Me,st)=>{const xt=fe.findIndex(Mt=>Mt.value===Me),Et=fe.findIndex(Mt=>Mt.value===st);return xt-Et}))},Ze=qe("checkbox",ut),tt=`${Ze}-group`,[de,Ye]=(0,Te.ZP)(Ze),Pt=(0,b.Z)(Ie,["value","disabled"]),Tt=He.length?fe.map(he=>Ne.createElement(y,{prefixCls:Ze,key:he.value.toString(),disabled:"disabled"in he?he.disabled:Ie.disabled,value:he.value,checked:De.includes(he.value),onChange:he.onChange,className:`${tt}-item`,style:he.style,title:he.title},he.label)):xe,Ct={toggleOption:ct,value:De,disabled:Ie.disabled,name:Ie.name,registerValue:Je,cancelValue:Ce},be=Se()(tt,{[`${tt}-rtl`]:it==="rtl"},ft,Lt,Ye);return de(Ne.createElement("div",Object.assign({className:be,style:ye},Pt,{ref:me}),Ne.createElement(Ae.Provider,{value:Ct},Tt)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Oe,dt,oe){"use strict";oe.d(dt,{C2:function(){return ce}});var ne=oe(17313),Se=oe(37613),Ke=oe(83116);const Ne=Fe=>{const{checkboxCls:le}=Fe,$e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[$e]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${$e}`]:{marginInlineStart:0},[`&${$e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[` + `]:{marginInlineStart:ye.marginXXS}},[`${_e}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${Ie}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",ye=>{const _e=(0,te.TS)(ye,{});return[re(_e)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ie=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(ye);gt{var{breadcrumbName:We}=De,Ve=ie(De,["breadcrumbName"]);return Object.assign(Object.assign({},Ve),{title:We})})}),gt}function se(ye,_e){return(0,ce.useMemo)(()=>ye||(_e?_e.map(me):null),[ye,_e])}var xe=function(ye,_e){var Ie={};for(var qe in ye)Object.prototype.hasOwnProperty.call(ye,qe)&&_e.indexOf(qe)<0&&(Ie[qe]=ye[qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols(ye);gt{if(_e===void 0)return _e;let Ie=(_e||"").replace(/^\//,"");return Object.keys(ye).forEach(qe=>{Ie=Ie.replace(`:${qe}`,ye[qe])}),Ie},ut=ye=>{const{prefixCls:_e,separator:Ie="/",style:qe,className:gt,rootClassName:De,routes:We,items:Ve,children:ht,itemRender:fe,params:Ce={}}=ye,Je=xe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ct,direction:Ze,breadcrumb:tt}=ce.useContext(le.E_);let de;const Ye=ct("breadcrumb",_e),[Pt,Tt]=ge(Ye),Ct=se(Ve,We),be=a(Ye,fe);if(Ct&&Ct.length>0){const Me=[],je=Ve||We;de=Ct.map((lt,Ot)=>{const{path:Et,key:Mt,type:jt,menu:Bt,overlay:bt,onClick:Ft,className:Wt,separator:mn,dropdownProps:qt}=lt,Ut=He(Ce,Et);Ut!==void 0&&Me.push(Ut);const ve=Mt!=null?Mt:Ot;if(jt==="separator")return ce.createElement(nt,{key:ve},mn);const Be={},Qe=Ot===Ct.length-1;Bt?Be.menu=Bt:bt&&(Be.overlay=bt);let{href:mt}=lt;return Me.length&&Ut!==void 0&&(mt=`#/${Me.join("/")}`),ce.createElement(E,Object.assign({key:ve},Be,(0,Ne.Z)(lt,{data:!0,aria:!0}),{className:Wt,dropdownProps:qt,href:mt,separator:Qe?"":Ie,onClick:Ft,prefixCls:Ye}),be(lt,Ce,je,Me,mt))})}else if(ht){const Me=(0,Ke.Z)(ht).length;de=(0,Ke.Z)(ht).map((je,lt)=>{if(!je)return je;const Ot=lt===Me-1;return(0,Fe.Tm)(je,{separator:Ot?"":Ie,key:lt})})}const he=Se()(Ye,tt==null?void 0:tt.className,{[`${Ye}-rtl`]:Ze==="rtl"},gt,De,Tt),Pe=Object.assign(Object.assign({},tt==null?void 0:tt.style),qe);return Pt(ce.createElement("nav",Object.assign({className:he,style:Pe},Je),ce.createElement("ol",null,de)))};ut.Item=x,ut.Separator=nt;var ft=ut,Lt=ft},24905:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return ge}});var ne=oe(92310),Se=oe.n(ne),Ke=oe(5630),Ne=oe(59301),ce=oe(36355),Fe=oe(1684),le=oe(32441),Ae=Ne.createContext(null),Te=oe(98447),nt=oe(14088),ke=oe(4572),Re=function(ie,me){var se={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&me.indexOf(xe)<0&&(se[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,xe=Object.getOwnPropertySymbols(ie);He{var se;const{prefixCls:xe,className:He,rootClassName:ut,children:ft,indeterminate:Lt=!1,style:ye,onMouseEnter:_e,onMouseLeave:Ie,skipGroup:qe=!1,disabled:gt}=ie,De=Re(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:We,direction:Ve,checkbox:ht}=Ne.useContext(ce.E_),fe=Ne.useContext(Ae),{isFormItemInput:Ce}=Ne.useContext(le.aM),Je=Ne.useContext(Fe.Z),ct=(se=(fe==null?void 0:fe.disabled)||gt)!==null&&se!==void 0?se:Je,Ze=Ne.useRef(De.value);Ne.useEffect(()=>{fe==null||fe.registerValue(De.value)},[]),Ne.useEffect(()=>{if(!qe)return De.value!==Ze.current&&(fe==null||fe.cancelValue(Ze.current),fe==null||fe.registerValue(De.value),Ze.current=De.value),()=>fe==null?void 0:fe.cancelValue(De.value)},[De.value]);const tt=We("checkbox",xe),[de,Ye]=(0,Te.ZP)(tt),Pt=Object.assign({},De);fe&&!qe&&(Pt.onChange=function(){De.onChange&&De.onChange.apply(De,arguments),fe.toggleOption&&fe.toggleOption({label:ft,value:De.value})},Pt.name=fe.name,Pt.checked=fe.value.includes(De.value));const Tt=Se()(`${tt}-wrapper`,{[`${tt}-rtl`]:Ve==="rtl",[`${tt}-wrapper-checked`]:Pt.checked,[`${tt}-wrapper-disabled`]:ct,[`${tt}-wrapper-in-form-item`]:Ce},ht==null?void 0:ht.className,He,ut,Ye),Ct=Se()({[`${tt}-indeterminate`]:Lt},ke.A,Ye),be=Lt?"mixed":void 0;return de(Ne.createElement(nt.Z,{component:"Checkbox",disabled:ct},Ne.createElement("label",{className:Tt,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),ye),onMouseEnter:_e,onMouseLeave:Ie},Ne.createElement(Ke.Z,Object.assign({"aria-checked":be},Pt,{prefixCls:tt,className:Ct,disabled:ct,ref:me})),ft!==void 0&&Ne.createElement("span",null,ft))))};var y=Ne.forwardRef(ae),E=oe(65093),b=oe(2738),x=function(ie,me){var se={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&me.indexOf(xe)<0&&(se[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,xe=Object.getOwnPropertySymbols(ie);He{const{defaultValue:se,children:xe,options:He=[],prefixCls:ut,className:ft,rootClassName:Lt,style:ye,onChange:_e}=ie,Ie=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:qe,direction:gt}=Ne.useContext(ce.E_),[De,We]=Ne.useState(Ie.value||se||[]),[Ve,ht]=Ne.useState([]);Ne.useEffect(()=>{"value"in Ie&&We(Ie.value||[])},[Ie.value]);const fe=Ne.useMemo(()=>He.map(he=>typeof he=="string"||typeof he=="number"?{label:he,value:he}:he),[He]),Ce=he=>{ht(Pe=>Pe.filter(Me=>Me!==he))},Je=he=>{ht(Pe=>[].concat((0,E.Z)(Pe),[he]))},ct=he=>{const Pe=De.indexOf(he.value),Me=(0,E.Z)(De);Pe===-1?Me.push(he.value):Me.splice(Pe,1),"value"in Ie||We(Me),_e==null||_e(Me.filter(je=>Ve.includes(je)).sort((je,lt)=>{const Ot=fe.findIndex(Mt=>Mt.value===je),Et=fe.findIndex(Mt=>Mt.value===lt);return Ot-Et}))},Ze=qe("checkbox",ut),tt=`${Ze}-group`,[de,Ye]=(0,Te.ZP)(Ze),Pt=(0,b.Z)(Ie,["value","disabled"]),Tt=He.length?fe.map(he=>Ne.createElement(y,{prefixCls:Ze,key:he.value.toString(),disabled:"disabled"in he?he.disabled:Ie.disabled,value:he.value,checked:De.includes(he.value),onChange:he.onChange,className:`${tt}-item`,style:he.style,title:he.title},he.label)):xe,Ct={toggleOption:ct,value:De,disabled:Ie.disabled,name:Ie.name,registerValue:Je,cancelValue:Ce},be=Se()(tt,{[`${tt}-rtl`]:gt==="rtl"},ft,Lt,Ye);return de(Ne.createElement("div",Object.assign({className:be,style:ye},Pt,{ref:me}),Ne.createElement(Ae.Provider,{value:Ct},Tt)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ge=re},98447:function(Oe,dt,oe){"use strict";oe.d(dt,{C2:function(){return ce}});var ne=oe(17313),Se=oe(37613),Ke=oe(83116);const Ne=Fe=>{const{checkboxCls:le}=Fe,$e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[$e]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${$e}`]:{marginInlineStart:0},[`&${$e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[` ${$e}:not(${$e}-disabled), ${le}:not(${le}-disabled) `]:{[`&:hover ${le}-inner`]:{borderColor:Fe.colorPrimary}},[`${$e}:not(${$e}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[` ${$e}-checked:not(${$e}-disabled), ${le}-checked:not(${le}-disabled) - `]:{[`&:hover ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${$e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,le){const $e=(0,Se.TS)(le,{checkboxCls:`.${Fe}`,checkboxSize:le.controlInteractiveSize});return[Ne($e)]}dt.ZP=(0,Ke.Z)("Checkbox",(Fe,le)=>{let{prefixCls:$e}=le;return[ce($e,Fe)]})},91857:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Ke=oe(92310),Ne=oe.n(Ke),ce=oe(31561),Fe=oe(70425),le=oe(18929),$e=oe(2738),Ae=oe(79676),Te=oe(53487),nt=oe(92343),ke=oe(36355),Re=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:me,trigger:se,disabled:xe,dropdownRender:He,getPopupContainer:ut,overlayClassName:ft,rootClassName:Lt,open:ye,onOpenChange:_e,visible:Ie,onVisibleChange:qe,mouseEnterDelay:it=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:We=!0,placement:Ve="",overlay:ht,transitionName:fe}=te,{getPopupContainer:Ce,getPrefixCls:Je,direction:ct}=ne.useContext(ke.E_),Ze=ne.useMemo(()=>{const Bt=Je();return fe!==void 0?fe:Ve.includes("top")?`${Bt}-slide-down`:`${Bt}-slide-up`},[Je,Ve,fe]),tt=ne.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:ct==="rtl"?"bottomRight":"bottomLeft",[Ve,ct]),de=Je("dropdown",ge),[Ye,Pt]=(0,y.Z)(de),[,Tt]=(0,a.Z)(),Ct=ne.Children.only(me),be=(0,nt.Tm)(Ct,{className:Ne()(`${de}-trigger`,{[`${de}-rtl`]:ct==="rtl"},Ct.props.className),disabled:xe}),he=xe?[]:se;let Pe;he&&he.includes("contextMenu")&&(Pe=!0);const[je,Me]=(0,le.Z)(!1,{value:ye!=null?ye:Ie}),st=(0,Fe.useEvent)(Bt=>{_e==null||_e(Bt),qe==null||qe(Bt),Me(Bt)}),xt=Ne()(ft,Lt,Pt,{[`${de}-rtl`]:ct==="rtl"}),Et=(0,Ae.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:We,offset:Tt.marginXXS,arrowWidth:ie?Tt.sizePopupArrow:0,borderRadius:Tt.borderRadius}),Mt=ne.useCallback(()=>{Me(!1)},[]),jt=()=>{let Bt;return re!=null&&re.items?Bt=ne.createElement(Re.default,Object.assign({},re)):typeof ht=="function"?Bt=ht():Bt=ht,He&&(Bt=He(Bt)),Bt=ne.Children.only(typeof Bt=="string"?ne.createElement("span",null,Bt):Bt),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mt,validator:bt=>{let{mode:Ft}=bt}},Bt)};return Ye(ne.createElement(ce.Z,Object.assign({alignPoint:Pe},(0,$e.Z)(te,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:De,visible:je,builtinPlacements:Et,arrow:!!ie,overlayClassName:xt,prefixCls:de,getPopupContainer:ut||Ce,transitionName:Ze,trigger:he,overlay:jt,placement:tt,onVisibleChange:st}),be))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Te.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(17313),Se=oe(13826),Ke=oe(92899),Ne=oe(29878),ce=oe(19447),Fe=oe(83116),le=oe(37613),Ae=ke=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=ke=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=ke;return[{[Re]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-wrap-open`]:{[`${x}-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${Re}-placement-bottomLeft, + `]:{[`&:hover ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${$e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,le){const $e=(0,Se.TS)(le,{checkboxCls:`.${Fe}`,checkboxSize:le.controlInteractiveSize});return[Ne($e)]}dt.ZP=(0,Ke.Z)("Checkbox",(Fe,le)=>{let{prefixCls:$e}=le;return[ce($e,Fe)]})},91857:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Ke=oe(92310),Ne=oe.n(Ke),ce=oe(31561),Fe=oe(70425),le=oe(18929),$e=oe(2738),Ae=oe(79676),Te=oe(53487),nt=oe(92343),ke=oe(36355),Re=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ge,prefixCls:ie,children:me,trigger:se,disabled:xe,dropdownRender:He,getPopupContainer:ut,overlayClassName:ft,rootClassName:Lt,open:ye,onOpenChange:_e,visible:Ie,onVisibleChange:qe,mouseEnterDelay:gt=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:We=!0,placement:Ve="",overlay:ht,transitionName:fe}=te,{getPopupContainer:Ce,getPrefixCls:Je,direction:ct}=ne.useContext(ke.E_),Ze=ne.useMemo(()=>{const Bt=Je();return fe!==void 0?fe:Ve.includes("top")?`${Bt}-slide-down`:`${Bt}-slide-up`},[Je,Ve,fe]),tt=ne.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:ct==="rtl"?"bottomRight":"bottomLeft",[Ve,ct]),de=Je("dropdown",ie),[Ye,Pt]=(0,y.Z)(de),[,Tt]=(0,a.Z)(),Ct=ne.Children.only(me),be=(0,nt.Tm)(Ct,{className:Ne()(`${de}-trigger`,{[`${de}-rtl`]:ct==="rtl"},Ct.props.className),disabled:xe}),he=xe?[]:se;let Pe;he&&he.includes("contextMenu")&&(Pe=!0);const[Me,je]=(0,le.Z)(!1,{value:ye!=null?ye:Ie}),lt=(0,Fe.useEvent)(Bt=>{_e==null||_e(Bt),qe==null||qe(Bt),je(Bt)}),Ot=Ne()(ft,Lt,Pt,{[`${de}-rtl`]:ct==="rtl"}),Et=(0,Ae.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:We,offset:Tt.marginXXS,arrowWidth:ge?Tt.sizePopupArrow:0,borderRadius:Tt.borderRadius}),Mt=ne.useCallback(()=>{je(!1)},[]),jt=()=>{let Bt;return re!=null&&re.items?Bt=ne.createElement(Re.default,Object.assign({},re)):typeof ht=="function"?Bt=ht():Bt=ht,He&&(Bt=He(Bt)),Bt=ne.Children.only(typeof Bt=="string"?ne.createElement("span",null,Bt):Bt),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mt,validator:bt=>{let{mode:Ft}=bt}},Bt)};return Ye(ne.createElement(ce.Z,Object.assign({alignPoint:Pe},(0,$e.Z)(te,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:De,visible:Me,builtinPlacements:Et,arrow:!!ge,overlayClassName:Ot,prefixCls:de,getPopupContainer:ut||Ce,transitionName:Ze,trigger:he,overlay:jt,placement:tt,onVisibleChange:lt}),be))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Te.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(17313),Se=oe(13826),Ke=oe(92899),Ne=oe(29878),ce=oe(19447),Fe=oe(83116),le=oe(37613),Ae=ke=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=ke=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:me,colorBgElevated:se}=ke;return[{[Re]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-wrap-open`]:{[`${x}-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${Re}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom, @@ -120,20 +120,20 @@ &${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom, &${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top, - &${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,Se.oN)(ke,"slide-up"),(0,Se.oN)(ke,"slide-down"),(0,Ke.Fm)(ke,"move-up"),(0,Ke.Fm)(ke,"move-down"),(0,Ne._y)(ke,"zoom-big")]]};var nt=(0,Fe.Z)("Dropdown",(ke,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Te(ge),Ae(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},45818:function(Oe,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(ge,me){return Se.createElement(ce.Z,(0,ne.Z)({},ge,{ref:me,icon:Ne}))},le=Se.forwardRef(Fe),$e=le,Ae=oe(33853),Te=oe(38819),nt=oe(92310),ke=oe.n(nt),Re=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var me={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(me[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,se=Object.getOwnPropertySymbols(ie);xe{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:me,className:se,trigger:xe,children:He,defaultCollapsed:ut=!1,theme:ft="dark",style:Lt={},collapsible:ye=!1,reverseArrow:_e=!1,width:Ie=200,collapsedWidth:qe=80,zeroWidthTriggerStyle:it,breakpoint:De,onCollapse:We,onBreakpoint:Ve}=ie,ht=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Se.useContext)(E.Gs),[Ce,Je]=(0,Se.useState)("collapsed"in ie?ie.collapsed:ut),[ct,Ze]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Je(ie.collapsed)},[ie.collapsed]);const tt=(be,he)=>{"collapsed"in ie||Je(be),We==null||We(be,he)},de=(0,Se.useRef)();de.current=be=>{Ze(be.matches),Ve==null||Ve(be.matches),Ce!==be.matches&&tt(be.matches,"responsive")},(0,Se.useEffect)(()=>{function be(Pe){return de.current(Pe)}let he;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&De&&De in x){he=Pe(`(max-width: ${x[De]})`);try{he.addEventListener("change",be)}catch(je){he.addListener(be)}be(he)}}return()=>{try{he==null||he.removeEventListener("change",be)}catch(Pe){he==null||he.removeListener(be)}}},[De]),(0,Se.useEffect)(()=>{const be=ee("ant-sider-");return fe.addSider(be),()=>fe.removeSider(be)},[]);const Ye=()=>{tt(!Ce,"clickTrigger")},{getPrefixCls:Pt}=(0,Se.useContext)(y.E_),Tt=()=>{const be=Pt("layout-sider",me),he=(0,Re.Z)(ht,["collapsed"]),Pe=Ce?qe:Ie,je=a(Pe)?`${Pe}px`:String(Pe),Me=parseFloat(String(qe||0))===0?Se.createElement("span",{onClick:Ye,className:ke()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${_e?"right":"left"}`),style:it},xe||Se.createElement($e,null)):null,Et={expanded:_e?Se.createElement(Te.Z,null):Se.createElement(Ae.Z,null),collapsed:_e?Se.createElement(Ae.Z,null):Se.createElement(Te.Z,null)}[Ce?"collapsed":"expanded"],Mt=xe!==null?Me||Se.createElement("div",{className:`${be}-trigger`,onClick:Ye,style:{width:je}},xe||Et):null,jt=Object.assign(Object.assign({},Lt),{flex:`0 0 ${je}`,maxWidth:je,minWidth:je,width:je}),Bt=ke()(be,`${be}-${ft}`,{[`${be}-collapsed`]:!!Ce,[`${be}-has-trigger`]:ye&&xe!==null&&!Me,[`${be}-below`]:!!ct,[`${be}-zero-width`]:parseFloat(je)===0},se);return Se.createElement("aside",Object.assign({className:Bt},he,{style:jt,ref:ge}),Se.createElement("div",{className:`${be}-children`},He),ye||ct&&Me?Mt:null)},Ct=Se.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return Se.createElement(z.Provider,{value:Ct},Tt())})},84966:function(Oe,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ne=oe(65093),Se=oe(92310),Ke=oe.n(Se),Ne=oe(2738),ce=oe(59301),Fe=oe(36355),le=oe(83116),Ae=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:xe,headerHeight:He,headerPadding:ut,headerColor:ft,footerPadding:Lt,triggerHeight:ye,zeroTriggerHeight:_e,zeroTriggerWidth:Ie,motionDurationMid:qe,motionDurationSlow:it,fontSize:De,borderRadius:We,bodyBg:Ve,headerBg:ht,siderBg:fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:fe,transition:`all ${qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:me,lineHeight:`${ye}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-Ie,zIndex:1,width:Ie,height:_e,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:We,borderEndEndRadius:We,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ie,borderStartStartRadius:We,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:We}}}}},Ae(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:He,padding:ut,color:ft,lineHeight:`${He}px`,background:ht,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Lt,color:ge,fontSize:De,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var nt=(0,le.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:xe,colorTextLightSolid:He,colorBgContainer:ut}=te,ft=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${ft}px`,headerColor:me,footerPadding:`${se}px ${ft}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+xe*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);menull,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ce.forwardRef((xe,He)=>ce.createElement(me,Object.assign({ref:He,suffixCls:re,tagName:ie},xe)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,xe=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=ce.useContext(Fe.E_),ut=He("layout",ie),[ft,Lt]=nt(ut),ye=ge?`${ut}-${ge}`:ut;return ft(ce.createElement(se,Object.assign({className:Ke()(ie||ye,me,Lt),ref:re},xe)))}),y=ce.forwardRef((te,re)=>{const{direction:ie}=ce.useContext(Fe.E_),[ge,me]=ce.useState([]),{prefixCls:se,className:xe,rootClassName:He,children:ut,hasSider:ft,tagName:Lt,style:ye}=te,_e=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ie=(0,Ne.Z)(_e,["suffixCls"]),{getPrefixCls:qe,layout:it}=ce.useContext(Fe.E_),De=qe("layout",se),[We,Ve]=nt(De),ht=Ke()(De,{[`${De}-has-sider`]:typeof ft=="boolean"?ft:ge.length>0,[`${De}-rtl`]:ie==="rtl"},it==null?void 0:it.className,xe,He,Ve),fe=ce.useMemo(()=>({siderHook:{addSider:Ce=>{me(Je=>[].concat((0,ne.Z)(Je),[Ce]))},removeSider:Ce=>{me(Je=>Je.filter(ct=>ct!==Ce))}}}),[]);return We(ce.createElement(Re.Provider,{value:fe},ce.createElement(Lt,Object.assign({ref:re,className:ht,style:Object.assign(Object.assign({},it==null?void 0:it.style),ye)},Ie),ut)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Oe,dt,oe){"use strict";oe.d(dt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Ke=oe(70425),Ne=function(le,$e){var Ae={};for(var Te in le)Object.prototype.hasOwnProperty.call(le,Te)&&$e.indexOf(Te)<0&&(Ae[Te]=le[Te]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Te=Object.getOwnPropertySymbols(le);nt{const{children:Ae}=le,Te=Ne(le,["children"]),nt=ne.useContext(ce),ke=ne.useMemo(()=>Object.assign(Object.assign({},nt),Te),[nt,Te.prefixCls,Te.mode,Te.selectable]);return ne.createElement(ce.Provider,{value:ke},ne.createElement(Se.BR,null,(0,Ke.supportNodeRef)(Ae)?ne.cloneElement(Ae,{ref:$e}):Ae))});dt.Z=ce},20834:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Ct}});var ne=oe(15285),Se=oe(59301),Ke=oe(45818),Ne=oe(92310),ce=oe.n(Ne),Fe=oe(36355),le=function(be,he){var Pe={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&he.indexOf(je)<0&&(Pe[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(be);Me{const{prefixCls:he,className:Pe,dashed:je}=be,Me=le(be,["prefixCls","className","dashed"]),{getPrefixCls:st}=Se.useContext(Fe.E_),xt=st("menu",he),Et=ce()({[`${xt}-item-divider-dashed`]:!!je},Pe);return Se.createElement(ne.iz,Object.assign({className:Et},Me))},Te=oe(11592),nt=oe(2738),ke=oe(6848),Re=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=be=>{var he;const{className:Pe,children:je,icon:Me,title:st,danger:xt}=be,{prefixCls:Et,firstLevel:Mt,direction:jt,disableMenuItemTitleTooltip:Bt,inlineCollapsed:bt}=Se.useContext(a),Ft=Be=>{const Qe=Se.createElement("span",{className:`${Et}-title-content`},je);return(!Me||(0,Re.l$)(je)&&je.type==="span")&&je&&Be&&Mt&&typeof je=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},je.charAt(0)):Qe},{siderCollapsed:Wt}=Se.useContext(Ke.D);let mn=st;typeof st=="undefined"?mn=Mt?je:"":st===!1&&(mn="");const qt={title:mn};!Wt&&!bt&&(qt.title=null,qt.open=!1);const Ut=(0,Te.Z)(je).length;let ve=Se.createElement(ne.ck,Object.assign({},(0,nt.Z)(be,["title","icon","danger"]),{className:ce()({[`${Et}-item-danger`]:xt,[`${Et}-item-only-child`]:(Me?Ut+1:Ut)===1},Pe),title:typeof st=="string"?st:void 0}),(0,Re.Tm)(Me,{className:ce()((0,Re.l$)(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${Et}-item-icon`)}),Ft(bt));return Bt||(ve=Se.createElement(ke.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Et}-inline-collapsed-tooltip`}),ve)),ve},x=be=>{var he;const{popupClassName:Pe,icon:je,title:Me,theme:st}=be,xt=Se.useContext(a),{prefixCls:Et,inlineCollapsed:Mt,theme:jt}=xt,Bt=(0,ne.Xl)();let bt;if(!je)bt=Mt&&!Bt.length&&Me&&typeof Me=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Me.charAt(0)):Se.createElement("span",{className:`${Et}-title-content`},Me);else{const Wt=(0,Re.l$)(Me)&&Me.type==="span";bt=Se.createElement(Se.Fragment,null,(0,Re.Tm)(je,{className:ce()((0,Re.l$)(je)?(he=je.props)===null||he===void 0?void 0:he.className:"",`${Et}-item-icon`)}),Wt?Me:Se.createElement("span",{className:`${Et}-title-content`},Me))}const Ft=Se.useMemo(()=>Object.assign(Object.assign({},xt),{firstLevel:!1}),[xt]);return Se.createElement(a.Provider,{value:Ft},Se.createElement(ne.Wd,Object.assign({},(0,nt.Z)(be,["icon"]),{title:bt,popupClassName:ce()(Et,Pe,`${Et}-${st||jt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(be,he){var Pe={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&he.indexOf(je)<0&&(Pe[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(be);Me{if(he&&typeof he=="object"){const je=he,{label:Me,children:st,key:xt,type:Et}=je,Mt=ie(je,["label","children","key","type"]),jt=xt!=null?xt:`tmp-${Pe}`;return st||Et==="group"?Et==="group"?Se.createElement(ne.BW,Object.assign({key:jt},Mt,{title:Me}),ge(st)):Se.createElement(x,Object.assign({key:jt},Mt,{title:Me}),ge(st)):Et==="divider"?Se.createElement(Ae,Object.assign({key:jt},Mt)):Se.createElement(E,Object.assign({key:jt},Mt),Me)}return null}).filter(he=>he)}function me(be){return Se.useMemo(()=>be&&ge(be),[be])}var se=oe(64993),xe=oe(17313),He=oe(8378),ut=oe(13826),ft=oe(29878),Lt=oe(83116),ye=oe(37613),Ie=be=>{const{componentCls:he,motionDurationSlow:Pe,horizontalLineHeight:je,colorSplit:Me,lineWidth:st,lineType:xt,itemPaddingInline:Et}=be;return{[`${he}-horizontal`]:{lineHeight:je,border:0,borderBottom:`${st}px ${xt} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Et},[`> ${he}-item:hover, + &${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,Se.oN)(ke,"slide-up"),(0,Se.oN)(ke,"slide-down"),(0,Ke.Fm)(ke,"move-up"),(0,Ke.Fm)(ke,"move-down"),(0,Ne._y)(ke,"zoom-big")]]};var nt=(0,Fe.Z)("Dropdown",(ke,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Te(ie),Ae(ie)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},45818:function(Oe,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(16378),Se=oe(59301),Ke={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"},Ne=Ke,ce=oe(7657),Fe=function(ie,me){return Se.createElement(ce.Z,(0,ne.Z)({},ie,{ref:me,icon:Ne}))},le=Se.forwardRef(Fe),$e=le,Ae=oe(33853),Te=oe(38819),nt=oe(92310),ke=oe.n(nt),Re=oe(2738),a=ge=>!isNaN(parseFloat(ge))&&isFinite(ge),y=oe(36355),E=oe(84966),b=function(ge,ie){var me={};for(var se in ge)Object.prototype.hasOwnProperty.call(ge,se)&&ie.indexOf(se)<0&&(me[se]=ge[se]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,se=Object.getOwnPropertySymbols(ge);xe{let ge=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ge+=1,`${ie}${ge}`}})();var re=Se.forwardRef((ge,ie)=>{const{prefixCls:me,className:se,trigger:xe,children:He,defaultCollapsed:ut=!1,theme:ft="dark",style:Lt={},collapsible:ye=!1,reverseArrow:_e=!1,width:Ie=200,collapsedWidth:qe=80,zeroWidthTriggerStyle:gt,breakpoint:De,onCollapse:We,onBreakpoint:Ve}=ge,ht=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Se.useContext)(E.Gs),[Ce,Je]=(0,Se.useState)("collapsed"in ge?ge.collapsed:ut),[ct,Ze]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ge&&Je(ge.collapsed)},[ge.collapsed]);const tt=(be,he)=>{"collapsed"in ge||Je(be),We==null||We(be,he)},de=(0,Se.useRef)();de.current=be=>{Ze(be.matches),Ve==null||Ve(be.matches),Ce!==be.matches&&tt(be.matches,"responsive")},(0,Se.useEffect)(()=>{function be(Pe){return de.current(Pe)}let he;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&De&&De in x){he=Pe(`(max-width: ${x[De]})`);try{he.addEventListener("change",be)}catch(Me){he.addListener(be)}be(he)}}return()=>{try{he==null||he.removeEventListener("change",be)}catch(Pe){he==null||he.removeListener(be)}}},[De]),(0,Se.useEffect)(()=>{const be=ee("ant-sider-");return fe.addSider(be),()=>fe.removeSider(be)},[]);const Ye=()=>{tt(!Ce,"clickTrigger")},{getPrefixCls:Pt}=(0,Se.useContext)(y.E_),Tt=()=>{const be=Pt("layout-sider",me),he=(0,Re.Z)(ht,["collapsed"]),Pe=Ce?qe:Ie,Me=a(Pe)?`${Pe}px`:String(Pe),je=parseFloat(String(qe||0))===0?Se.createElement("span",{onClick:Ye,className:ke()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${_e?"right":"left"}`),style:gt},xe||Se.createElement($e,null)):null,Et={expanded:_e?Se.createElement(Te.Z,null):Se.createElement(Ae.Z,null),collapsed:_e?Se.createElement(Ae.Z,null):Se.createElement(Te.Z,null)}[Ce?"collapsed":"expanded"],Mt=xe!==null?je||Se.createElement("div",{className:`${be}-trigger`,onClick:Ye,style:{width:Me}},xe||Et):null,jt=Object.assign(Object.assign({},Lt),{flex:`0 0 ${Me}`,maxWidth:Me,minWidth:Me,width:Me}),Bt=ke()(be,`${be}-${ft}`,{[`${be}-collapsed`]:!!Ce,[`${be}-has-trigger`]:ye&&xe!==null&&!je,[`${be}-below`]:!!ct,[`${be}-zero-width`]:parseFloat(Me)===0},se);return Se.createElement("aside",Object.assign({className:Bt},he,{style:jt,ref:ie}),Se.createElement("div",{className:`${be}-children`},He),ye||ct&&je?Mt:null)},Ct=Se.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return Se.createElement(z.Provider,{value:Ct},Tt())})},84966:function(Oe,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ne=oe(65093),Se=oe(92310),Ke=oe.n(Se),Ne=oe(2738),ce=oe(59301),Fe=oe(36355),le=oe(83116),Ae=te=>{const{componentCls:re,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ie,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:re,componentCls:ge,colorText:ie,triggerColor:me,footerBg:se,triggerBg:xe,headerHeight:He,headerPadding:ut,headerColor:ft,footerPadding:Lt,triggerHeight:ye,zeroTriggerHeight:_e,zeroTriggerWidth:Ie,motionDurationMid:qe,motionDurationSlow:gt,fontSize:De,borderRadius:We,bodyBg:Ve,headerBg:ht,siderBg:fe}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{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:fe,transition:`all ${qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:me,lineHeight:`${ye}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-Ie,zIndex:1,width:Ie,height:_e,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:We,borderEndEndRadius:We,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ie,borderStartStartRadius:We,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:We}}}}},Ae(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:He,padding:ut,color:ft,lineHeight:`${He}px`,background:ht,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Lt,color:ie,fontSize:De,background:se},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var nt=(0,le.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:ie,colorText:me,controlHeightSM:se,marginXXS:xe,colorTextLightSolid:He,colorBgContainer:ut}=te,ft=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${ft}px`,headerColor:me,footerPadding:`${se}px ${ft}px`,footerBg:re,siderBg:"#001529",triggerHeight:ie+xe*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&re.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ie=Object.getOwnPropertySymbols(te);menull,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ge,displayName:ie}=te;return me=>ce.forwardRef((xe,He)=>ce.createElement(me,Object.assign({ref:He,suffixCls:re,tagName:ge},xe)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ge,suffixCls:ie,className:me,tagName:se}=te,xe=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=ce.useContext(Fe.E_),ut=He("layout",ge),[ft,Lt]=nt(ut),ye=ie?`${ut}-${ie}`:ut;return ft(ce.createElement(se,Object.assign({className:Ke()(ge||ye,me,Lt),ref:re},xe)))}),y=ce.forwardRef((te,re)=>{const{direction:ge}=ce.useContext(Fe.E_),[ie,me]=ce.useState([]),{prefixCls:se,className:xe,rootClassName:He,children:ut,hasSider:ft,tagName:Lt,style:ye}=te,_e=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ie=(0,Ne.Z)(_e,["suffixCls"]),{getPrefixCls:qe,layout:gt}=ce.useContext(Fe.E_),De=qe("layout",se),[We,Ve]=nt(De),ht=Ke()(De,{[`${De}-has-sider`]:typeof ft=="boolean"?ft:ie.length>0,[`${De}-rtl`]:ge==="rtl"},gt==null?void 0:gt.className,xe,He,Ve),fe=ce.useMemo(()=>({siderHook:{addSider:Ce=>{me(Je=>[].concat((0,ne.Z)(Je),[Ce]))},removeSider:Ce=>{me(Je=>Je.filter(ct=>ct!==Ce))}}}),[]);return We(ce.createElement(Re.Provider,{value:fe},ce.createElement(Lt,Object.assign({ref:re,className:ht,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ye)},Ie),ut)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Oe,dt,oe){"use strict";oe.d(dt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Ke=oe(70425),Ne=function(le,$e){var Ae={};for(var Te in le)Object.prototype.hasOwnProperty.call(le,Te)&&$e.indexOf(Te)<0&&(Ae[Te]=le[Te]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Te=Object.getOwnPropertySymbols(le);nt{const{children:Ae}=le,Te=Ne(le,["children"]),nt=ne.useContext(ce),ke=ne.useMemo(()=>Object.assign(Object.assign({},nt),Te),[nt,Te.prefixCls,Te.mode,Te.selectable]);return ne.createElement(ce.Provider,{value:ke},ne.createElement(Se.BR,null,(0,Ke.supportNodeRef)(Ae)?ne.cloneElement(Ae,{ref:$e}):Ae))});dt.Z=ce},20834:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Ct}});var ne=oe(15285),Se=oe(59301),Ke=oe(45818),Ne=oe(92310),ce=oe.n(Ne),Fe=oe(36355),le=function(be,he){var Pe={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&he.indexOf(Me)<0&&(Pe[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Me=Object.getOwnPropertySymbols(be);je{const{prefixCls:he,className:Pe,dashed:Me}=be,je=le(be,["prefixCls","className","dashed"]),{getPrefixCls:lt}=Se.useContext(Fe.E_),Ot=lt("menu",he),Et=ce()({[`${Ot}-item-divider-dashed`]:!!Me},Pe);return Se.createElement(ne.iz,Object.assign({className:Et},je))},Te=oe(11592),nt=oe(2738),ke=oe(6848),Re=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=be=>{var he;const{className:Pe,children:Me,icon:je,title:lt,danger:Ot}=be,{prefixCls:Et,firstLevel:Mt,direction:jt,disableMenuItemTitleTooltip:Bt,inlineCollapsed:bt}=Se.useContext(a),Ft=Be=>{const Qe=Se.createElement("span",{className:`${Et}-title-content`},Me);return(!je||(0,Re.l$)(Me)&&Me.type==="span")&&Me&&Be&&Mt&&typeof Me=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Me.charAt(0)):Qe},{siderCollapsed:Wt}=Se.useContext(Ke.D);let mn=lt;typeof lt=="undefined"?mn=Mt?Me:"":lt===!1&&(mn="");const qt={title:mn};!Wt&&!bt&&(qt.title=null,qt.open=!1);const Ut=(0,Te.Z)(Me).length;let ve=Se.createElement(ne.ck,Object.assign({},(0,nt.Z)(be,["title","icon","danger"]),{className:ce()({[`${Et}-item-danger`]:Ot,[`${Et}-item-only-child`]:(je?Ut+1:Ut)===1},Pe),title:typeof lt=="string"?lt:void 0}),(0,Re.Tm)(je,{className:ce()((0,Re.l$)(je)?(he=je.props)===null||he===void 0?void 0:he.className:"",`${Et}-item-icon`)}),Ft(bt));return Bt||(ve=Se.createElement(ke.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Et}-inline-collapsed-tooltip`}),ve)),ve},x=be=>{var he;const{popupClassName:Pe,icon:Me,title:je,theme:lt}=be,Ot=Se.useContext(a),{prefixCls:Et,inlineCollapsed:Mt,theme:jt}=Ot,Bt=(0,ne.Xl)();let bt;if(!Me)bt=Mt&&!Bt.length&&je&&typeof je=="string"?Se.createElement("div",{className:`${Et}-inline-collapsed-noicon`},je.charAt(0)):Se.createElement("span",{className:`${Et}-title-content`},je);else{const Wt=(0,Re.l$)(je)&&je.type==="span";bt=Se.createElement(Se.Fragment,null,(0,Re.Tm)(Me,{className:ce()((0,Re.l$)(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${Et}-item-icon`)}),Wt?je:Se.createElement("span",{className:`${Et}-title-content`},je))}const Ft=Se.useMemo(()=>Object.assign(Object.assign({},Ot),{firstLevel:!1}),[Ot]);return Se.createElement(a.Provider,{value:Ft},Se.createElement(ne.Wd,Object.assign({},(0,nt.Z)(be,["icon"]),{title:bt,popupClassName:ce()(Et,Pe,`${Et}-${lt||jt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ge=function(be,he){var Pe={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&he.indexOf(Me)<0&&(Pe[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Me=Object.getOwnPropertySymbols(be);je{if(he&&typeof he=="object"){const Me=he,{label:je,children:lt,key:Ot,type:Et}=Me,Mt=ge(Me,["label","children","key","type"]),jt=Ot!=null?Ot:`tmp-${Pe}`;return lt||Et==="group"?Et==="group"?Se.createElement(ne.BW,Object.assign({key:jt},Mt,{title:je}),ie(lt)):Se.createElement(x,Object.assign({key:jt},Mt,{title:je}),ie(lt)):Et==="divider"?Se.createElement(Ae,Object.assign({key:jt},Mt)):Se.createElement(E,Object.assign({key:jt},Mt),je)}return null}).filter(he=>he)}function me(be){return Se.useMemo(()=>be&&ie(be),[be])}var se=oe(64993),xe=oe(17313),He=oe(8378),ut=oe(13826),ft=oe(29878),Lt=oe(83116),ye=oe(37613),Ie=be=>{const{componentCls:he,motionDurationSlow:Pe,horizontalLineHeight:Me,colorSplit:je,lineWidth:lt,lineType:Ot,itemPaddingInline:Et}=be;return{[`${he}-horizontal`]:{lineHeight:Me,border:0,borderBottom:`${lt}px ${Ot} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Et},[`> ${he}-item:hover, > ${he}-item-active, - > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},it=be=>{let{componentCls:he,menuArrowOffset:Pe}=be;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, - ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const De=be=>Object.assign({},(0,xe.oN)(be));var Ve=(be,he)=>{const{componentCls:Pe,itemColor:je,itemSelectedColor:Me,groupTitleColor:st,itemBg:xt,subMenuItemBg:Et,itemSelectedBg:Mt,activeBarHeight:jt,activeBarWidth:Bt,activeBarBorderWidth:bt,motionDurationSlow:Ft,motionEaseInOut:Wt,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Ut,itemHoverColor:ve,lineType:Be,colorSplit:Qe,itemDisabledColor:mt,dangerItemColor:pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Gt,dangerItemSelectedBg:_t,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:dn,popupBg:on}=be;return{[`${Pe}-${he}, ${Pe}-${he} > ${Pe}`]:{color:je,background:xt,[`&${Pe}-root:focus-visible`]:Object.assign({},De(be)),[`${Pe}-item-group-title`]:{color:st},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Me}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${mt} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:ve}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${Pe}-item-danger`]:{color:pt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:Gt}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Me,[`&${Pe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:Mt,[`&${Pe}-item-danger`]:{backgroundColor:_t}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},De(be))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:nn},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:on},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:bt,marginTop:-bt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Ft} ${Wt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:jt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:jt,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${bt}px ${Be} ${Qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Et},[`${Pe}-item, ${Pe}-submenu-title`]:bt&&Bt?{width:`calc(100% + ${bt}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bt}px solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${mn}`,`opacity ${Ut} ${mn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${Wt}`,`opacity ${Ut} ${Wt}`].join(",")}}}}}};const ht=be=>{const{componentCls:he,itemHeight:Pe,itemMarginInline:je,padding:Me,menuArrowSize:st,marginXS:xt,itemMarginBlock:Et}=be,Mt=Me+st+xt;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Me,overflow:"hidden",textOverflow:"ellipsis",marginInline:je,marginBlock:Et,width:`calc(100% - ${je*2}px)`},[`> ${he}-item, + > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},gt=be=>{let{componentCls:he,menuArrowOffset:Pe}=be;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, + ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const De=be=>Object.assign({},(0,xe.oN)(be));var Ve=(be,he)=>{const{componentCls:Pe,itemColor:Me,itemSelectedColor:je,groupTitleColor:lt,itemBg:Ot,subMenuItemBg:Et,itemSelectedBg:Mt,activeBarHeight:jt,activeBarWidth:Bt,activeBarBorderWidth:bt,motionDurationSlow:Ft,motionEaseInOut:Wt,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Ut,itemHoverColor:ve,lineType:Be,colorSplit:Qe,itemDisabledColor:mt,dangerItemColor:pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Gt,dangerItemSelectedBg:_t,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:dn,popupBg:on}=be;return{[`${Pe}-${he}, ${Pe}-${he} > ${Pe}`]:{color:Me,background:Ot,[`&${Pe}-root:focus-visible`]:Object.assign({},De(be)),[`${Pe}-item-group-title`]:{color:lt},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:je}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${mt} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:ve}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${Pe}-item-danger`]:{color:pt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:Gt}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:je,[`&${Pe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:Mt,[`&${Pe}-item-danger`]:{backgroundColor:_t}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},De(be))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:nn},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:on},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:bt,marginTop:-bt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Ft} ${Wt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:jt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:jt,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${bt}px ${Be} ${Qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Et},[`${Pe}-item, ${Pe}-submenu-title`]:bt&&Bt?{width:`calc(100% + ${bt}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bt}px solid ${je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${mn}`,`opacity ${Ut} ${mn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${Wt}`,`opacity ${Ut} ${Wt}`].join(",")}}}}}};const ht=be=>{const{componentCls:he,itemHeight:Pe,itemMarginInline:Me,padding:je,menuArrowSize:lt,marginXS:Ot,itemMarginBlock:Et}=be,Mt=je+lt+Ot;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:Me,marginBlock:Et,width:`calc(100% - ${Me*2}px)`},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${he}-item-group-list ${he}-submenu-title, - ${he}-submenu-title`]:{paddingInlineEnd:Mt}}};var Ce=be=>{const{componentCls:he,iconCls:Pe,itemHeight:je,colorTextLightSolid:Me,dropdownWidth:st,controlHeightLG:xt,motionDurationMid:Et,motionEaseOut:Mt,paddingXL:jt,itemMarginInline:Bt,fontSizeLG:bt,motionDurationSlow:Ft,paddingXS:Wt,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Ut}=be,ve={height:je,lineHeight:`${je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},ht(be))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},ht(be)),{boxShadow:mn})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:st,maxHeight:`calc(100vh - ${xt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ft}`,`background ${Ft}`,`padding ${Et} ${Mt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:ve,[`& ${he}-item-group-title`]:{paddingInlineStart:jt}},[`${he}-item`]:ve}},{[`${he}-inline-collapsed`]:{width:qt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:bt,textAlign:"center"}}},[`> ${he}-item, + ${he}-submenu-title`]:{paddingInlineEnd:Mt}}};var Ce=be=>{const{componentCls:he,iconCls:Pe,itemHeight:Me,colorTextLightSolid:je,dropdownWidth:lt,controlHeightLG:Ot,motionDurationMid:Et,motionEaseOut:Mt,paddingXL:jt,itemMarginInline:Bt,fontSizeLG:bt,motionDurationSlow:Ft,paddingXS:Wt,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Ut}=be,ve={height:Me,lineHeight:`${Me}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},ht(be))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},ht(be)),{boxShadow:mn})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:lt,maxHeight:`calc(100vh - ${Ot*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ft}`,`background ${Ft}`,`padding ${Et} ${Mt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:ve,[`& ${he}-item-group-title`]:{paddingInlineStart:jt}},[`${he}-item`]:ve}},{[`${he}-inline-collapsed`]:{width:qt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:bt,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${bt/2}px - ${Bt}px)`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon - `]:{opacity:0},[`${he}-item-icon, ${Pe}`]:{margin:0,fontSize:Ut,lineHeight:`${je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Wt})}}]};const Je=be=>{const{componentCls:he,motionDurationSlow:Pe,motionDurationMid:je,motionEaseInOut:Me,motionEaseOut:st,iconCls:xt,iconSize:Et,iconMarginInlineEnd:Mt}=be;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Me}`].join(","),[`${he}-item-icon, ${xt}`]:{minWidth:Et,fontSize:Et,transition:[`font-size ${je} ${st}`,`margin ${Pe} ${Me}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${Pe} ${Me}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${he}-item-only-child`]:{[`> ${xt}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ct=be=>{const{componentCls:he,motionDurationSlow:Pe,motionEaseInOut:je,borderRadius:Me,menuArrowSize:st,menuArrowOffset:xt}=be;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:st,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${je}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:st*.6,height:st*.15,backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${Pe} ${je}`,`transform ${Pe} ${je}`,`top ${Pe} ${je}`,`color ${Pe} ${je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${xt})`},"&::after":{transform:`rotate(-45deg) translateY(${xt})`}}}}},Ze=be=>{const{antCls:he,componentCls:Pe,fontSize:je,motionDurationSlow:Me,motionDurationMid:st,motionEaseInOut:xt,paddingXS:Et,padding:Mt,colorSplit:jt,lineWidth:Bt,zIndexPopup:bt,borderRadiusLG:Ft,subMenuItemBorderRadius:Wt,menuArrowSize:mn,menuArrowOffset:qt,lineType:Ut,menuPanelMaskInset:ve,groupTitleLineHeight:Be,groupTitleFontSize:Qe}=be;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(be)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:je,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",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Et}px ${Mt}px`,fontSize:Qe,lineHeight:Be,transition:`all ${Me}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Me} ${xt}`,`background ${Me} ${xt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Me} ${xt}`,`background ${Me} ${xt}`,`padding ${st} ${xt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Me} ${xt}`,`padding ${Me} ${xt}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Me}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Ut,borderWidth:0,borderTopWidth:Bt,marginBlock:Bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(be)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${je*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:bt,borderRadius:Ft,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ve},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ft},Je(be)),ct(be)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Wt},[`${Pe}-submenu-title::after`]:{transition:`transform ${Me} ${xt}`}})}}),ct(be)),{[`&-inline-collapsed ${Pe}-submenu-arrow, - &-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${he}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var tt=(be,he)=>(0,Lt.Z)("Menu",je=>{if(he===!1)return[];const{colorBgElevated:Me,colorPrimary:st,colorTextLightSolid:xt,controlHeightLG:Et,fontSize:Mt,darkItemColor:jt,darkDangerItemColor:Bt,darkItemBg:bt,darkSubMenuItemBg:Ft,darkItemSelectedColor:Wt,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Ut,darkGroupTitleColor:ve,darkItemHoverColor:Be,darkItemDisabledColor:Qe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Rt}=je,kt=Mt/7*5,Gt=(0,ye.TS)(je,{menuArrowSize:kt,menuHorizontalHeight:Et*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Me}),_t=(0,ye.TS)(Gt,{itemColor:jt,itemHoverColor:Be,groupTitleColor:ve,itemSelectedColor:Wt,itemBg:bt,popupBg:bt,subMenuItemBg:Ft,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ut,itemDisabledColor:Qe,dangerItemColor:Bt,dangerItemHoverColor:mt,dangerItemSelectedColor:pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:qt,menuSubMenuBg:Ft,horizontalItemSelectedColor:xt,horizontalItemSelectedBg:st});return[Ze(Gt),Ie(Gt),Ce(Gt),Ve(Gt,"light"),Ve(_t,"dark"),it(Gt),(0,He.Z)(Gt),(0,ut.oN)(Gt,"slide-up"),(0,ut.oN)(Gt,"slide-down"),(0,ft._y)(Gt,"zoom-big")]},je=>{const{colorPrimary:Me,colorError:st,colorTextDisabled:xt,colorErrorBg:Et,colorText:Mt,colorTextDescription:jt,colorBgContainer:Bt,colorFillAlter:bt,colorFillContent:Ft,lineWidth:Wt,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Ut,controlHeightLG:ve,lineHeight:Be,colorBgElevated:Qe,marginXXS:mt,padding:pt,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Gt,colorTextLightSolid:_t,colorErrorHover:Jt}=je,Kt=new se.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:je.zIndexPopupBase+50,radiusItem:je.borderRadiusLG,itemBorderRadius:je.borderRadiusLG,radiusSubMenuItem:je.borderRadiusSM,subMenuItemBorderRadius:je.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:Me,itemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:Bt,itemBg:Bt,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:Ft,itemActiveBg:qt,colorSubItemBg:bt,subMenuItemBg:bt,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Wt,colorItemTextDisabled:xt,itemDisabledColor:xt,colorDangerItemText:st,dangerItemColor:st,colorDangerItemTextHover:st,dangerItemHoverColor:st,colorDangerItemTextSelected:st,dangerItemSelectedColor:st,colorDangerItemBgActive:Et,dangerItemActiveBg:Et,colorDangerItemBgSelected:Et,dangerItemSelectedBg:Et,itemMarginInline:je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Be,collapsedWidth:ve*2,popupBg:Qe,itemMarginBlock:mt,itemPaddingInline:pt,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Gt,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:st,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:Me,darkDangerItemSelectedBg:st,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:_t,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:st}},{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"]]})(be),de=function(be,he){var Pe={};for(var je in be)Object.prototype.hasOwnProperty.call(be,je)&&he.indexOf(je)<0&&(Pe[je]=be[je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(be);Me{var Pe,je;const Me=Se.useContext(re.Z),st=Me||{},{getPrefixCls:xt,getPopupContainer:Et,direction:Mt,menu:jt}=Se.useContext(Fe.E_),Bt=xt(),{prefixCls:bt,className:Ft,style:Wt,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Ut,inlineCollapsed:ve,siderCollapsed:Be,items:Qe,children:mt,rootClassName:pt,mode:Rt,selectable:kt,onClick:Gt,overflowedIndicatorPopupClassName:_t}=be,Jt=de(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,nt.Z)(Jt,["collapsedWidth"]),nn=me(Qe)||mt;(Pe=st.validator)===null||Pe===void 0||Pe.call(st,{mode:Rt});const hn=(0,ee.useEvent)(function(){var Nn;Gt==null||Gt.apply(void 0,arguments),(Nn=st.onClick)===null||Nn===void 0||Nn.call(st)}),vn=st.mode||Rt,wn=kt!=null?kt:st.selectable,dn=Se.useMemo(()=>Be!==void 0?Be:ve,[ve,Be]),on={horizontal:{motionName:`${Bt}-slide-up`},inline:(0,te.Z)(Bt),other:{motionName:`${Bt}-zoom-big`}},yn=xt("menu",bt||st.prefixCls),[En,Bn]=tt(yn,!Me),cn=ce()(`${yn}-${mn}`,jt==null?void 0:jt.className,Ft);let zn;if(typeof qt=="function")zn=qt;else if(qt===null||qt===!1)zn=null;else if(st.expandIcon===null||st.expandIcon===!1)zn=null;else{const Nn=qt!=null?qt:st.expandIcon;zn=(0,Re.Tm)(Nn,{className:ce()(`${yn}-submenu-expand-icon`,(0,Re.l$)(Nn)?(je=Nn.props)===null||je===void 0?void 0:je.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:Mt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ut}),[yn,dn,Mt,Ut,mn]);return En(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,_t),mode:vn,selectable:wn,onClick:hn},Kt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Wt),className:cn,prefixCls:yn,direction:Mt,defaultMotions:on,expandIcon:zn,ref:he,rootClassName:ce()(pt,Bn)}),nn))))});const Tt=(0,Se.forwardRef)((be,he)=>{const Pe=(0,Se.useRef)(null),je=Se.useContext(Ke.D);return(0,Se.useImperativeHandle)(he,()=>({menu:Pe.current,focus:Me=>{var st;(st=Pe.current)===null||st===void 0||st.focus(Me)}})),Se.createElement(Pt,Object.assign({ref:Pe},be,je))});Tt.Item=E,Tt.SubMenu=x,Tt.Divider=Ae,Tt.ItemGroup=ne.BW;var Ct=Tt},93948:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ut}});var ne=oe(59301),Se=oe(29679),Ke=oe(40001),Ne=oe(19248),ce=oe(99267),Fe=oe(92310),le=oe.n(Fe),$e=oe(2738),Ae=oe(36355),Te=oe(16378),nt=oe(35227),ke=oe(61206),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Be=(0,ne.useRef)([]),Qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),pt=!1;Be.current.forEach(function(Rt){if(Rt){pt=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&mt-Qe.current<100&&(kt.transitionDuration="0s, 0s")}}),pt&&(Qe.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var Qe=(0,nt.Z)((0,nt.Z)({},Re),Be),mt=Qe.className,pt=Qe.percent,Rt=Qe.prefixCls,kt=Qe.strokeColor,Gt=Qe.strokeLinecap,_t=Qe.strokeWidth,Jt=Qe.style,Kt=Qe.trailColor,nn=Qe.trailWidth,hn=Qe.transition,vn=(0,ke.Z)(Qe,a);delete vn.gapPosition;var wn=Array.isArray(pt)?pt:[pt],dn=Array.isArray(kt)?kt:[kt],on=ae(),yn=_t/2,En=100-_t/2,Bn="M ".concat(Gt==="round"?yn:0,",").concat(yn,` - L `).concat(Gt==="round"?En:100,",").concat(yn),cn="0 0 100 ".concat(_t),zn=0;return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:Jt},vn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:Bn,strokeLinecap:Gt,stroke:Kt,strokeWidth:nn||_t,fillOpacity:"0"}),wn.map(function(Yn,Nn){var Wn=1;switch(Gt){case"round":Wn=1-_t/100;break;case"square":Wn=1-_t/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[Nn]||dn[dn.length-1];return zn+=Yn,ne.createElement("path",{key:Nn,className:"".concat(Rt,"-line-path"),d:Bn,strokeLinecap:Gt,stroke:Jn,strokeWidth:_t,fillOpacity:"0",ref:function(we){on[Nn]=we},style:na})}))},E=y,b=oe(42066),x=oe(10859),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Be=ne.useState(),Qe=(0,x.Z)(Be,2),mt=Qe[0],pt=Qe[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),ve||mt},ge=function(Be){var Qe=Be.bg,mt=Be.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},mt)};function me(ve,Be){return Object.keys(ve).map(function(Qe){var mt=parseFloat(Qe),pt="".concat(Math.floor(mt*Be),"%");return"".concat(ve[Qe]," ").concat(pt)})}var se=ne.forwardRef(function(ve,Be){var Qe=ve.prefixCls,mt=ve.color,pt=ve.gradientId,Rt=ve.radius,kt=ve.style,Gt=ve.ptg,_t=ve.strokeLinecap,Jt=ve.strokeWidth,Kt=ve.size,nn=ve.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",vn=hn?"#FFF":void 0,wn=Kt/2,dn=ne.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:Rt,cx:wn,cy:wn,stroke:vn,strokeLinecap:_t,strokeWidth:Jt,opacity:Gt===0?0:1,style:kt,ref:Be});if(!hn)return dn;var on="".concat(pt,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",En=me(mt,(360-nn)/360),Bn=me(mt,1),cn="conic-gradient(from ".concat(yn,", ").concat(En.join(", "),")"),zn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(Bn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:on},dn),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(on,")")},ne.createElement(ge,{bg:zn},ne.createElement(ge,{bg:cn}))))}),xe=se,He=100,ut=function(Be,Qe,mt,pt,Rt,kt,Gt,_t,Jt,Kt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-kt)/360),vn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Gt],wn=(100-pt)/100*Qe;Jt==="round"&&pt!==100&&(wn+=Kt/2,wn>=Qe&&(wn=Qe-.01));var dn=He/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(Qe,"px ").concat(Be),strokeDashoffset:wn+nn,transform:"rotate(".concat(Rt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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}},ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Lt(ve){var Be=ve!=null?ve:[];return Array.isArray(Be)?Be:[Be]}var ye=function(Be){var Qe=(0,nt.Z)((0,nt.Z)({},Re),Be),mt=Qe.id,pt=Qe.prefixCls,Rt=Qe.steps,kt=Qe.strokeWidth,Gt=Qe.trailWidth,_t=Qe.gapDegree,Jt=_t===void 0?0:_t,Kt=Qe.gapPosition,nn=Qe.trailColor,hn=Qe.strokeLinecap,vn=Qe.style,wn=Qe.className,dn=Qe.strokeColor,on=Qe.percent,yn=(0,ke.Z)(Qe,ft),En=He/2,Bn=ie(mt),cn="".concat(Bn,"-gradient"),zn=En-kt/2,Yn=Math.PI*2*zn,Nn=Jt>0?90+Jt/2:-90,Wn=Yn*((360-Jt)/360),na=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Jn=na.count,Le=na.space,we=Lt(on),pe=Lt(dn),lt=pe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Nt=lt&&(0,b.Z)(lt)==="object",$t=Nt?"butt":hn,ln=ut(Yn,Wn,0,100,Nn,Jt,Kt,nn,$t,kt),Zt=ae(),en=function(){var gt=0;return we.map(function(tn,Dn){var Zn=pe[Dn]||pe[pe.length-1],Fn=ut(Yn,Wn,gt,tn,Nn,Jt,Kt,Zn,$t,kt);return gt+=tn,ne.createElement(xe,{key:Dn,color:Zn,ptg:tn,radius:zn,prefixCls:pt,gradientId:cn,style:Fn,strokeLinecap:$t,strokeWidth:kt,gapDegree:Jt,ref:function(ze){Zt[Dn]=ze},size:He})}).reverse()},Ln=function(){var gt=Math.round(Jn*(we[0]/100)),tn=100/Jn,Dn=0;return new Array(Jn).fill(null).map(function(Zn,Fn){var ue=Fn<=gt-1?pe[0]:nn,ze=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,Ge=ut(Yn,Wn,Dn,tn,Nn,Jt,Kt,ue,"butt",kt,Le);return Dn+=(Wn-Ge.strokeDashoffset+Le)*100/Wn,ne.createElement("circle",{key:Fn,className:"".concat(pt,"-circle-path"),r:zn,cx:En,cy:En,stroke:ze,strokeWidth:kt,opacity:1,style:Ge,ref:function(at){Zt[Fn]=at}})})};return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(pt,"-circle"),wn),viewBox:"0 0 ".concat(He," ").concat(He),style:vn,id:mt,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:zn,cx:En,cy:En,stroke:nn,strokeLinecap:$t,strokeWidth:Gt||kt,style:ln}),Jn?Ln():en())},_e=ye,Ie={Line:E,Circle:_e},qe=oe(6848),it=oe(93398);function De(ve){return!ve||ve<0?0:ve>100?100:ve}function We(ve){let{success:Be,successPercent:Qe}=ve,mt=Qe;return Be&&"progress"in Be&&(mt=Be.progress),Be&&"percent"in Be&&(mt=Be.percent),mt}const Ve=ve=>{let{percent:Be,success:Qe,successPercent:mt}=ve;const pt=De(We({success:Qe,successPercent:mt}));return[pt,De(De(Be)-pt)]},ht=ve=>{let{success:Be={},strokeColor:Qe}=ve;const{strokeColor:mt}=Be;return[mt||it.presetPrimaryColors.green,Qe||null]},fe=(ve,Be,Qe)=>{var mt,pt,Rt,kt;let Gt=-1,_t=-1;if(Be==="step"){const Jt=Qe.steps,Kt=Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(Gt=ve==="small"?2:14,_t=Kt!=null?Kt:8):typeof ve=="number"?[Gt,_t]=[ve,ve]:[Gt=14,_t=8]=ve,Gt*=Jt}else if(Be==="line"){const Jt=Qe==null?void 0:Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?_t=Jt||(ve==="small"?6:8):typeof ve=="number"?[Gt,_t]=[ve,ve]:[Gt=-1,_t=8]=ve}else(Be==="circle"||Be==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[Gt,_t]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[Gt,_t]=[ve,ve]:(Gt=(pt=(mt=ve[0])!==null&&mt!==void 0?mt:ve[1])!==null&&pt!==void 0?pt:120,_t=(kt=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&kt!==void 0?kt:120));return[Gt,_t]},Ce=3,Je=ve=>Ce/ve*100;var Ze=ve=>{const{prefixCls:Be,trailColor:Qe=null,strokeLinecap:mt="round",gapPosition:pt,gapDegree:Rt,width:kt=120,type:Gt,children:_t,success:Jt,size:Kt=kt}=ve,[nn,hn]=fe(Kt,"circle");let{strokeWidth:vn}=ve;vn===void 0&&(vn=Math.max(Je(nn),6));const wn={width:nn,height:hn,fontSize:nn*.15+6},dn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Gt==="dashboard")return 75},[Rt,Gt]),on=pt||Gt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",En=ht({success:Jt,strokeColor:ve.strokeColor}),Bn=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:yn}),cn=ne.createElement(_e,{percent:Ve(ve),strokeWidth:vn,trailWidth:vn,strokeColor:En,strokeLinecap:mt,trailColor:Qe,prefixCls:Be,gapDegree:dn,gapPosition:on});return ne.createElement("div",{className:Bn,style:wn},nn<=20?ne.createElement(qe.Z,{title:_t},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,_t))},tt=function(ve,Be){var Qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Be.indexOf(mt)<0&&(Qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt{let Be=[];return Object.keys(ve).forEach(Qe=>{const mt=parseFloat(Qe.replace(/%/g,""));isNaN(mt)||Be.push({key:mt,value:ve[Qe]})}),Be=Be.sort((Qe,mt)=>Qe.key-mt.key),Be.map(Qe=>{let{key:mt,value:pt}=Qe;return`${pt} ${mt}%`}).join(", ")},Ye=(ve,Be)=>{const{from:Qe=it.presetPrimaryColors.blue,to:mt=it.presetPrimaryColors.blue,direction:pt=Be==="rtl"?"to left":"to right"}=ve,Rt=tt(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${pt}, ${kt})`}}return{backgroundImage:`linear-gradient(${pt}, ${Qe}, ${mt})`}};var Tt=ve=>{const{prefixCls:Be,direction:Qe,percent:mt,size:pt,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Gt="round",children:_t,trailColor:Jt=null,success:Kt}=ve,nn=kt&&typeof kt!="string"?Ye(kt,Qe):{backgroundColor:kt},hn=Gt==="square"||Gt==="butt"?0:void 0,vn={backgroundColor:Jt||void 0,borderRadius:hn},wn=pt!=null?pt:[-1,Rt||(pt==="small"?6:8)],[dn,on]=fe(wn,"line",{strokeWidth:Rt}),yn=Object.assign({width:`${De(mt)}%`,height:on,borderRadius:hn},nn),En=We(ve),Bn={width:`${De(En)}%`,height:on,borderRadius:hn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Be}-outer`,style:cn},ne.createElement("div",{className:`${Be}-inner`,style:vn},ne.createElement("div",{className:`${Be}-bg`,style:yn}),En!==void 0?ne.createElement("div",{className:`${Be}-success-bg`,style:Bn}):null)),_t)},be=ve=>{const{size:Be,steps:Qe,percent:mt=0,strokeWidth:pt=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Gt,children:_t}=ve,Jt=Math.round(Qe*(mt/100)),Kt=Be==="small"?2:14,nn=Be!=null?Be:[Kt,pt],[hn,vn]=fe(nn,"step",{steps:Qe,strokeWidth:pt}),wn=hn/Qe,dn=new Array(Qe);for(let on=0;on{const Be=ve?"100%":"-100%";return new he.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xt=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:Object.assign(Object.assign({},(0,Pe.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:ve.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:st(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:st(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:ve.colorError},[`${Be}-text`]:{color:ve.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:ve.colorSuccess},[`${Be}-text`]:{color:ve.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorSuccess}}})}},Et=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:{[`${Be}-circle-trail`]:{stroke:ve.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qe]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:ve.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:ve.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Mt=ve=>{const{componentCls:Be}=ve;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ve.progressStepMinWidth,marginInlineEnd:ve.progressStepMarginInlineEnd,backgroundColor:ve.remainingColor,transition:`all ${ve.motionDurationSlow}`,"&-active":{backgroundColor:ve.defaultColor}}}}}},jt=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${Qe}`]:{fontSize:ve.fontSizeSM}}}};var Bt=(0,je.Z)("Progress",ve=>{const Be=ve.marginXXS/2,Qe=(0,Me.TS)(ve,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[xt(Qe),Et(Qe),Mt(Qe),jt(Qe)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),bt=function(ve,Be){var Qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Be.indexOf(mt)<0&&(Qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt{const{prefixCls:Qe,className:mt,rootClassName:pt,steps:Rt,strokeColor:kt,percent:Gt=0,size:_t="default",showInfo:Jt=!0,type:Kt="line",status:nn,format:hn,style:vn}=ve,wn=bt(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var we,pe;const lt=We(ve);return parseInt(lt!==void 0?(we=lt!=null?lt:0)===null||we===void 0?void 0:we.toString():(pe=Gt!=null?Gt:0)===null||pe===void 0?void 0:pe.toString(),10)},[Gt,ve.success,ve.successPercent]),on=ne.useMemo(()=>!Wt.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:En,progress:Bn}=ne.useContext(Ae.E_),cn=yn("progress",Qe),[zn,Yn]=Bt(cn),Nn=ne.useMemo(()=>{if(!Jt)return null;const we=We(ve);let pe;const lt=hn||($t=>`${$t}%`),Nt=Kt==="line";return hn||on!=="exception"&&on!=="success"?pe=lt(De(Gt),De(we)):on==="exception"?pe=Nt?ne.createElement(Ne.Z,null):ne.createElement(ce.Z,null):on==="success"&&(pe=Nt?ne.createElement(Se.Z,null):ne.createElement(Ke.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Jt,Gt,dn,on,Kt,cn,hn]),Wn=Array.isArray(kt)?kt[0]:kt,na=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Jn;Kt==="line"?Jn=Rt?ne.createElement(be,Object.assign({},ve,{strokeColor:na,prefixCls:cn,steps:Rt}),Nn):ne.createElement(Tt,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,direction:En}),Nn):(Kt==="circle"||Kt==="dashboard")&&(Jn=ne.createElement(Ze,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),Nn));const Le=le()(cn,`${cn}-status-${on}`,`${cn}-${Kt==="dashboard"&&"circle"||Rt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&fe(_t,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${_t}`]:typeof _t=="string",[`${cn}-rtl`]:En==="rtl"},Bn==null?void 0:Bn.className,mt,pt,Yn);return zn(ne.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),vn),className:Le,role:"progressbar","aria-valuenow":dn},(0,$e.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ut=qt},54580:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Fn}});var ne=oe(59301),Se=oe(65093),Ke=oe(92310),Ne=oe.n(Ke),ce=oe(16378),Fe=oe(44202),le=oe(86773),$e=oe(82412),Ae=oe(60845),Te=oe(78772),nt=oe(61206),ke=oe(62907),Re=oe(42066),ae=oe(3872),a=oe(26112);function y(ue,ze){var Ge="cannot ".concat(ue.method," ").concat(ue.action," ").concat(ze.status,"'"),Ue=new Error(Ge);return Ue.status=ze.status,Ue.method=ue.method,Ue.url=ue.action,Ue}function E(ue){var ze=ue.responseText||ue.response;if(!ze)return ze;try{return JSON.parse(ze)}catch(Ge){return ze}}function b(ue){var ze=new XMLHttpRequest;ue.onProgress&&ze.upload&&(ze.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var Ge=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var rt=ue.data[at];if(Array.isArray(rt)){rt.forEach(function(et){Ge.append("".concat(at,"[]"),et)});return}Ge.append(at,rt)}),ue.file instanceof Blob?Ge.append(ue.filename,ue.file,ue.file.name):Ge.append(ue.filename,ue.file),ze.onerror=function(rt){ue.onError(rt)},ze.onload=function(){return ze.status<200||ze.status>=300?ue.onError(y(ue,ze),E(ze)):ue.onSuccess(E(ze),ze)},ze.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in ze&&(ze.withCredentials=!0);var Ue=ue.headers||{};return Ue["X-Requested-With"]!==null&&ze.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(at){Ue[at]!==null&&ze.setRequestHeader(at,Ue[at])}),ze.send(Ge),{abort:function(){ze.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ue,ze){if(ue&&ze){var Ge=Array.isArray(ze)?ze:ze.split(","),Ue=ue.name||"",at=ue.type||"",rt=at.replace(/\/.*$/,"");return Ge.some(function(et){var Xe=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(Xe.charAt(0)==="."){var At=Ue.toLowerCase(),Dt=Xe.toLowerCase(),Ee=[Dt];return(Dt===".jpg"||Dt===".jpeg")&&(Ee=[".jpg",".jpeg"]),Ee.some(function(rn){return At.endsWith(rn)})}return/\/\*$/.test(Xe)?rt===Xe.replace(/\/.*$/,""):at===Xe?!0:/^\w+$/.test(Xe)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,ze){var Ge=ue.createReader(),Ue=[];function at(){Ge.readEntries(function(rt){var et=Array.prototype.slice.apply(rt);Ue=Ue.concat(et);var Xe=!et.length;Xe?ze(Ue):at()})}at()}var ge=function(ze,Ge,Ue){var at=function rt(et,Xe){et&&(et.path=Xe||"",et.isFile?et.file(function(At){Ue(At)&&(et.fullPath&&!At.webkitRelativePath&&(Object.defineProperties(At,{webkitRelativePath:{writable:!0}}),At.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(At,{webkitRelativePath:{writable:!1}})),Ge([At]))}):et.isDirectory&&ie(et,function(At){At.forEach(function(Dt){rt(Dt,"".concat(Xe).concat(et.name,"/"))})}))};ze.forEach(function(rt){at(rt.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(ue){(0,$e.Z)(Ge,ue);var ze=(0,Ae.Z)(Ge);function Ge(){var Ue;(0,Fe.Z)(this,Ge);for(var at=arguments.length,rt=new Array(at),et=0;et{let{uid:rt}=at;return rt===ue.uid});return Ue===-1?Ge.push(ue):Ge[Ue]=ue,Ge}function bt(ue,ze){const Ge=ue.uid!==void 0?"uid":"name";return ze.filter(Ue=>Ue[Ge]===ue[Ge])[0]}function Ft(ue,ze){const Ge=ue.uid!==void 0?"uid":"name",Ue=ze.filter(at=>at[Ge]!==ue[Ge]);return Ue.length===ze.length?null:Ue}const Wt=function(){const ze=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ue=ze[ze.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ue)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,qt=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const ze=ue.thumbUrl||ue.url||"",Ge=Wt(ze);return/^data:image\//.test(ze)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ge)?!0:!(/^data:/.test(ze)||Ge)},Ut=200;function ve(ue){return new Promise(ze=>{if(!ue.type||!mn(ue.type)){ze("");return}const Ge=document.createElement("canvas");Ge.width=Ut,Ge.height=Ut,Ge.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Ge);const Ue=Ge.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:rt,height:et}=at;let Xe=Ut,At=Ut,Dt=0,Ee=0;rt>et?(At=et*(Ut/rt),Ee=-(At-Xe)/2):(Xe=rt*(Ut/et),Dt=-(Xe-At)/2),Ue.drawImage(at,Dt,Ee,Xe,At);const rn=Ge.toDataURL();document.body.removeChild(Ge),window.URL.revokeObjectURL(at.src),ze(rn)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(at.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&ze(rt.result)},rt.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Be=oe(26227),Qe=oe(41464),mt=oe(15277),pt=oe(93948),Rt=oe(6848),Gt=ne.forwardRef((ue,ze)=>{let{prefixCls:Ge,className:Ue,style:at,locale:rt,listType:et,file:Xe,items:At,progress:Dt,iconRender:Ee,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:Cn,showRemoveIcon:ot,showDownloadIcon:yt,previewIcon:It,removeIcon:vt,downloadIcon:Yt,onPreview:Qt,onDownload:Ht,onClose:Pn}=ue;var fn,oa;const{status:Qn}=Xe,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=Ee(Xe);let Kn=ne.createElement("div",{className:`${Ge}-icon`},da);if(et==="picture"||et==="picture-card"||et==="picture-circle")if(qn==="uploading"||!Xe.thumbUrl&&!Xe.url){const Mn=Ne()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:Mn},da)}else{const Mn=pn!=null&&pn(Xe)?ne.createElement("img",{src:Xe.thumbUrl||Xe.url,alt:Xe.name,className:`${Ge}-list-item-image`,crossOrigin:Xe.crossOrigin}):da,On=Ne()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:pn&&!pn(Xe)});Kn=ne.createElement("a",{className:On,onClick:la=>Qt(Xe,la),href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const xn=Ne()(`${Ge}-list-item`,`${Ge}-list-item-${qn}`),ta=typeof Xe.linkProps=="string"?JSON.parse(Xe.linkProps):Xe.linkProps,ia=ot?rn((typeof vt=="function"?vt(Xe):vt)||ne.createElement(Be.Z,null),()=>Pn(Xe),Ge,rt.removeFile):null,ga=yt&&qn==="done"?rn((typeof Yt=="function"?Yt(Xe):Yt)||ne.createElement(Qe.Z,null),()=>Ht(Xe),Ge,rt.downloadFile):null,aa=et!=="picture-card"&&et!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ne()(`${Ge}-list-item-actions`,{picture:et==="picture"})},ga,ia),ea=Ne()(`${Ge}-list-item-name`),fa=Xe.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Xe.name},ta,{href:Xe.url,onClick:Mn=>Qt(Xe,Mn)}),Xe.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:Mn=>Qt(Xe,Mn),title:Xe.name},Xe.name),aa],Xt={pointerEvents:"none",opacity:.5},$n=Cn?ne.createElement("a",{href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Xe.url||Xe.thumbUrl?void 0:Xt,onClick:Mn=>Qt(Xe,Mn),title:rt.previewFile},typeof It=="function"?It(Xe):It||ne.createElement(mt.Z,null)):null,In=(et==="picture-card"||et==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${Ge}-list-item-actions`},$n,qn==="done"&&ga,ia),{getPrefixCls:Un}=ne.useContext(qe.E_),Xn=Un(),ra=ne.createElement("div",{className:xn},Kn,fa,In,Sa&&ne.createElement(Me.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const la="percent"in Xe?ne.createElement(pt.Z,Object.assign({},Dt,{type:"line",percent:Xe.percent,"aria-label":Xe["aria-label"],"aria-labelledby":Xe["aria-labelledby"]})):null;return ne.createElement("div",{className:Ne()(`${Ge}-list-item-progress`,On)},la)})),va=Xe.response&&typeof Xe.response=="string"?Xe.response:((fn=Xe.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Xe.error)===null||oa===void 0?void 0:oa.message)||rt.uploadError,pa=qn==="error"?ne.createElement(Rt.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ne.createElement("div",{className:Ne()(`${Ge}-list-item-container`,Ue),style:at,ref:ze},an?an(pa,Xe,At,{download:Ht.bind(null,Xe),preview:Qt.bind(null,Xe),remove:Pn.bind(null,Xe)}):pa)});const _t=(ue,ze)=>{const{listType:Ge="text",previewFile:Ue=ve,onPreview:at,onDownload:rt,onRemove:et,locale:Xe,iconRender:At,isImageUrl:Dt=qt,prefixCls:Ee,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:Cn=!1,removeIcon:ot,previewIcon:yt,downloadIcon:It,progress:vt={size:[-1,2],showInfo:!1},appendAction:Yt,appendActionVisible:Qt=!0,itemRender:Ht,disabled:Pn}=ue,fn=(0,st.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{Ge!=="picture"&&Ge!=="picture-card"&&Ge!=="picture-circle"||(rn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",Ue&&Ue(Xt.originFileObj).then($n=>{Xt.thumbUrl=$n||"",fn()}))})},[Ge,rn,Ue]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Xt,$n)=>{if(at)return $n==null||$n.preventDefault(),at(Xt)},ca=Xt=>{typeof rt=="function"?rt(Xt):Xt.url&&window.open(Xt.url)},Sa=Xt=>{et==null||et(Xt)},Pa=Xt=>{if(At)return At(Xt,Ge);const $n=Xt.status==="uploading",In=Dt&&Dt(Xt)?ne.createElement(je,null):ne.createElement(ct,null);let Un=$n?ne.createElement(Ze.Z,null):ne.createElement(Tt,null);return Ge==="picture"?Un=$n?ne.createElement(Ze.Z,null):In:(Ge==="picture-card"||Ge==="picture-circle")&&(Un=$n?Xe.uploading:In),Un},da=(Xt,$n,In,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{$n(),(0,Et.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ra)},className:`${In}-list-item-action`,disabled:Pn};if((0,Et.l$)(Xt)){const ra=(0,Et.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ne.createElement(Mt.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(Mt.ZP,Object.assign({},Xn),ne.createElement("span",null,Xt))};ne.useImperativeHandle(ze,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(qe.E_),xn=Kn("upload",Ee),ta=Kn(),ia=Ne()(`${xn}-list`,`${xn}-list-${Ge}`),ga=(0,Se.Z)(rn.map(Xt=>({key:Xt.uid,file:Xt})));let ea={motionDeadline:2e3,motionName:`${xn}-${Ge==="picture-card"||Ge==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ne.useMemo(()=>{const Xt=Object.assign({},(0,xt.Z)(ta));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[ta]);return Ge!=="picture-card"&&Ge!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ia},ne.createElement(Me.CSSMotionList,Object.assign({},ea,{component:!1}),Xt=>{let{key:$n,file:In,className:Un,style:Xn}=Xt;return ne.createElement(Gt,{key:$n,locale:Xe,prefixCls:xn,className:Un,style:Xn,file:In,items:rn,progress:vt,listType:Ge,isImgUrl:Dt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:Cn,removeIcon:ot,previewIcon:yt,downloadIcon:It,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Yt&&ne.createElement(Me.default,Object.assign({},ea,{visible:Qt,forceRender:!0}),Xt=>{let{className:$n,style:In}=Xt;return(0,Et.Tm)(Yt,Un=>({className:Ne()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var Kt=ne.forwardRef(_t),nn=oe(17313),hn=oe(8378),vn=oe(83116),wn=oe(37613),on=ue=>{const{componentCls:ze,iconCls:Ge}=ue;return{[`${ze}-wrapper`]:{[`${ze}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[ze]:{padding:`${ue.padding}px 0`},[`${ze}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ze}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ze}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${ze}-drag-icon`]:{marginBottom:ue.margin,[Ge]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${ze}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${ze}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${ze}-disabled`]:{cursor:"not-allowed",[`p${ze}-drag-icon ${Ge}, + `]:{opacity:0},[`${he}-item-icon, ${Pe}`]:{margin:0,fontSize:Ut,lineHeight:`${Me}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:je}},[`${he}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Wt})}}]};const Je=be=>{const{componentCls:he,motionDurationSlow:Pe,motionDurationMid:Me,motionEaseInOut:je,motionEaseOut:lt,iconCls:Ot,iconSize:Et,iconMarginInlineEnd:Mt}=be;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${je}`].join(","),[`${he}-item-icon, ${Ot}`]:{minWidth:Et,fontSize:Et,transition:[`font-size ${Me} ${lt}`,`margin ${Pe} ${je}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:Mt,opacity:1,transition:[`opacity ${Pe} ${je}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${he}-item-only-child`]:{[`> ${Ot}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ct=be=>{const{componentCls:he,motionDurationSlow:Pe,motionEaseInOut:Me,borderRadius:je,menuArrowSize:lt,menuArrowOffset:Ot}=be;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Me}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:lt*.6,height:lt*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${Pe} ${Me}`,`transform ${Pe} ${Me}`,`top ${Pe} ${Me}`,`color ${Pe} ${Me}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ot})`},"&::after":{transform:`rotate(-45deg) translateY(${Ot})`}}}}},Ze=be=>{const{antCls:he,componentCls:Pe,fontSize:Me,motionDurationSlow:je,motionDurationMid:lt,motionEaseInOut:Ot,paddingXS:Et,padding:Mt,colorSplit:jt,lineWidth:Bt,zIndexPopup:bt,borderRadiusLG:Ft,subMenuItemBorderRadius:Wt,menuArrowSize:mn,menuArrowOffset:qt,lineType:Ut,menuPanelMaskInset:ve,groupTitleLineHeight:Be,groupTitleFontSize:Qe}=be;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(be)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Me,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Et}px ${Mt}px`,fontSize:Qe,lineHeight:Be,transition:`all ${je}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${je} ${Ot}`,`background ${je} ${Ot}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${je} ${Ot}`,`background ${je} ${Ot}`,`padding ${lt} ${Ot}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${je} ${Ot}`,`padding ${je} ${Ot}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${je}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Ut,borderWidth:0,borderTopWidth:Bt,marginBlock:Bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(be)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Me*2}px ${Mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:bt,borderRadius:Ft,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ve},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ft},Je(be)),ct(be)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Wt},[`${Pe}-submenu-title::after`]:{transition:`transform ${je} ${Ot}`}})}}),ct(be)),{[`&-inline-collapsed ${Pe}-submenu-arrow, + &-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${he}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var tt=(be,he)=>(0,Lt.Z)("Menu",Me=>{if(he===!1)return[];const{colorBgElevated:je,colorPrimary:lt,colorTextLightSolid:Ot,controlHeightLG:Et,fontSize:Mt,darkItemColor:jt,darkDangerItemColor:Bt,darkItemBg:bt,darkSubMenuItemBg:Ft,darkItemSelectedColor:Wt,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Ut,darkGroupTitleColor:ve,darkItemHoverColor:Be,darkItemDisabledColor:Qe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:pt,darkDangerItemActiveBg:Rt}=Me,kt=Mt/7*5,Gt=(0,ye.TS)(Me,{menuArrowSize:kt,menuHorizontalHeight:Et*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:je}),_t=(0,ye.TS)(Gt,{itemColor:jt,itemHoverColor:Be,groupTitleColor:ve,itemSelectedColor:Wt,itemBg:bt,popupBg:bt,subMenuItemBg:Ft,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ut,itemDisabledColor:Qe,dangerItemColor:Bt,dangerItemHoverColor:mt,dangerItemSelectedColor:pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:qt,menuSubMenuBg:Ft,horizontalItemSelectedColor:Ot,horizontalItemSelectedBg:lt});return[Ze(Gt),Ie(Gt),Ce(Gt),Ve(Gt,"light"),Ve(_t,"dark"),gt(Gt),(0,He.Z)(Gt),(0,ut.oN)(Gt,"slide-up"),(0,ut.oN)(Gt,"slide-down"),(0,ft._y)(Gt,"zoom-big")]},Me=>{const{colorPrimary:je,colorError:lt,colorTextDisabled:Ot,colorErrorBg:Et,colorText:Mt,colorTextDescription:jt,colorBgContainer:Bt,colorFillAlter:bt,colorFillContent:Ft,lineWidth:Wt,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Ut,controlHeightLG:ve,lineHeight:Be,colorBgElevated:Qe,marginXXS:mt,padding:pt,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Gt,colorTextLightSolid:_t,colorErrorHover:Jt}=Me,Kt=new se.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Me.zIndexPopupBase+50,radiusItem:Me.borderRadiusLG,itemBorderRadius:Me.borderRadiusLG,radiusSubMenuItem:Me.borderRadiusSM,subMenuItemBorderRadius:Me.borderRadiusSM,colorItemText:Mt,itemColor:Mt,colorItemTextHover:Mt,itemHoverColor:Mt,colorItemTextHoverHorizontal:je,horizontalItemHoverColor:je,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:je,itemSelectedColor:je,colorItemTextSelectedHorizontal:je,horizontalItemSelectedColor:je,colorItemBg:Bt,itemBg:Bt,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:Ft,itemActiveBg:qt,colorSubItemBg:bt,subMenuItemBg:bt,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Wt,colorItemTextDisabled:Ot,itemDisabledColor:Ot,colorDangerItemText:lt,dangerItemColor:lt,colorDangerItemTextHover:lt,dangerItemHoverColor:lt,colorDangerItemTextSelected:lt,dangerItemSelectedColor:lt,colorDangerItemBgActive:Et,dangerItemActiveBg:Et,colorDangerItemBgSelected:Et,dangerItemSelectedBg:Et,itemMarginInline:Me.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Be,collapsedWidth:ve*2,popupBg:Qe,itemMarginBlock:mt,itemPaddingInline:pt,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Gt,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:je,darkDangerItemSelectedBg:lt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:_t,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:lt}},{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"]]})(be),de=function(be,he){var Pe={};for(var Me in be)Object.prototype.hasOwnProperty.call(be,Me)&&he.indexOf(Me)<0&&(Pe[Me]=be[Me]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Me=Object.getOwnPropertySymbols(be);je{var Pe,Me;const je=Se.useContext(re.Z),lt=je||{},{getPrefixCls:Ot,getPopupContainer:Et,direction:Mt,menu:jt}=Se.useContext(Fe.E_),Bt=Ot(),{prefixCls:bt,className:Ft,style:Wt,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Ut,inlineCollapsed:ve,siderCollapsed:Be,items:Qe,children:mt,rootClassName:pt,mode:Rt,selectable:kt,onClick:Gt,overflowedIndicatorPopupClassName:_t}=be,Jt=de(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,nt.Z)(Jt,["collapsedWidth"]),nn=me(Qe)||mt;(Pe=lt.validator)===null||Pe===void 0||Pe.call(lt,{mode:Rt});const hn=(0,ee.useEvent)(function(){var Nn;Gt==null||Gt.apply(void 0,arguments),(Nn=lt.onClick)===null||Nn===void 0||Nn.call(lt)}),vn=lt.mode||Rt,wn=kt!=null?kt:lt.selectable,dn=Se.useMemo(()=>Be!==void 0?Be:ve,[ve,Be]),on={horizontal:{motionName:`${Bt}-slide-up`},inline:(0,te.Z)(Bt),other:{motionName:`${Bt}-zoom-big`}},yn=Ot("menu",bt||lt.prefixCls),[En,Bn]=tt(yn,!je),cn=ce()(`${yn}-${mn}`,jt==null?void 0:jt.className,Ft);let zn;if(typeof qt=="function")zn=qt;else if(qt===null||qt===!1)zn=null;else if(lt.expandIcon===null||lt.expandIcon===!1)zn=null;else{const Nn=qt!=null?qt:lt.expandIcon;zn=(0,Re.Tm)(Nn,{className:ce()(`${yn}-submenu-expand-icon`,(0,Re.l$)(Nn)?(Me=Nn.props)===null||Me===void 0?void 0:Me.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:Mt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ut}),[yn,dn,Mt,Ut,mn]);return En(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:Et,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,_t),mode:vn,selectable:wn,onClick:hn},Kt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Wt),className:cn,prefixCls:yn,direction:Mt,defaultMotions:on,expandIcon:zn,ref:he,rootClassName:ce()(pt,Bn)}),nn))))});const Tt=(0,Se.forwardRef)((be,he)=>{const Pe=(0,Se.useRef)(null),Me=Se.useContext(Ke.D);return(0,Se.useImperativeHandle)(he,()=>({menu:Pe.current,focus:je=>{var lt;(lt=Pe.current)===null||lt===void 0||lt.focus(je)}})),Se.createElement(Pt,Object.assign({ref:Pe},be,Me))});Tt.Item=E,Tt.SubMenu=x,Tt.Divider=Ae,Tt.ItemGroup=ne.BW;var Ct=Tt},93948:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ut}});var ne=oe(59301),Se=oe(29679),Ke=oe(40001),Ne=oe(19248),ce=oe(99267),Fe=oe(92310),le=oe.n(Fe),$e=oe(2738),Ae=oe(36355),Te=oe(16378),nt=oe(35227),ke=oe(61206),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Be=(0,ne.useRef)([]),Qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),pt=!1;Be.current.forEach(function(Rt){if(Rt){pt=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Qe.current&&mt-Qe.current<100&&(kt.transitionDuration="0s, 0s")}}),pt&&(Qe.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var Qe=(0,nt.Z)((0,nt.Z)({},Re),Be),mt=Qe.className,pt=Qe.percent,Rt=Qe.prefixCls,kt=Qe.strokeColor,Gt=Qe.strokeLinecap,_t=Qe.strokeWidth,Jt=Qe.style,Kt=Qe.trailColor,nn=Qe.trailWidth,hn=Qe.transition,vn=(0,ke.Z)(Qe,a);delete vn.gapPosition;var wn=Array.isArray(pt)?pt:[pt],dn=Array.isArray(kt)?kt:[kt],on=ae(),yn=_t/2,En=100-_t/2,Bn="M ".concat(Gt==="round"?yn:0,",").concat(yn,` + L `).concat(Gt==="round"?En:100,",").concat(yn),cn="0 0 100 ".concat(_t),zn=0;return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:Jt},vn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:Bn,strokeLinecap:Gt,stroke:Kt,strokeWidth:nn||_t,fillOpacity:"0"}),wn.map(function(Yn,Nn){var Wn=1;switch(Gt){case"round":Wn=1-_t/100;break;case"square":Wn=1-_t/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[Nn]||dn[dn.length-1];return zn+=Yn,ne.createElement("path",{key:Nn,className:"".concat(Rt,"-line-path"),d:Bn,strokeLinecap:Gt,stroke:Jn,strokeWidth:_t,fillOpacity:"0",ref:function(we){on[Nn]=we},style:na})}))},E=y,b=oe(42066),x=oe(10859),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ge=function(ve){var Be=ne.useState(),Qe=(0,x.Z)(Be,2),mt=Qe[0],pt=Qe[1];return ne.useEffect(function(){pt("rc_progress_".concat(re()))},[]),ve||mt},ie=function(Be){var Qe=Be.bg,mt=Be.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Qe}},mt)};function me(ve,Be){return Object.keys(ve).map(function(Qe){var mt=parseFloat(Qe),pt="".concat(Math.floor(mt*Be),"%");return"".concat(ve[Qe]," ").concat(pt)})}var se=ne.forwardRef(function(ve,Be){var Qe=ve.prefixCls,mt=ve.color,pt=ve.gradientId,Rt=ve.radius,kt=ve.style,Gt=ve.ptg,_t=ve.strokeLinecap,Jt=ve.strokeWidth,Kt=ve.size,nn=ve.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",vn=hn?"#FFF":void 0,wn=Kt/2,dn=ne.createElement("circle",{className:"".concat(Qe,"-circle-path"),r:Rt,cx:wn,cy:wn,stroke:vn,strokeLinecap:_t,strokeWidth:Jt,opacity:Gt===0?0:1,style:kt,ref:Be});if(!hn)return dn;var on="".concat(pt,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",En=me(mt,(360-nn)/360),Bn=me(mt,1),cn="conic-gradient(from ".concat(yn,", ").concat(En.join(", "),")"),zn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(Bn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:on},dn),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(on,")")},ne.createElement(ie,{bg:zn},ne.createElement(ie,{bg:cn}))))}),xe=se,He=100,ut=function(Be,Qe,mt,pt,Rt,kt,Gt,_t,Jt,Kt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-kt)/360),vn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Gt],wn=(100-pt)/100*Qe;Jt==="round"&&pt!==100&&(wn+=Kt/2,wn>=Qe&&(wn=Qe-.01));var dn=He/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(Qe,"px ").concat(Be),strokeDashoffset:wn+nn,transform:"rotate(".concat(Rt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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}},ft=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Lt(ve){var Be=ve!=null?ve:[];return Array.isArray(Be)?Be:[Be]}var ye=function(Be){var Qe=(0,nt.Z)((0,nt.Z)({},Re),Be),mt=Qe.id,pt=Qe.prefixCls,Rt=Qe.steps,kt=Qe.strokeWidth,Gt=Qe.trailWidth,_t=Qe.gapDegree,Jt=_t===void 0?0:_t,Kt=Qe.gapPosition,nn=Qe.trailColor,hn=Qe.strokeLinecap,vn=Qe.style,wn=Qe.className,dn=Qe.strokeColor,on=Qe.percent,yn=(0,ke.Z)(Qe,ft),En=He/2,Bn=ge(mt),cn="".concat(Bn,"-gradient"),zn=En-kt/2,Yn=Math.PI*2*zn,Nn=Jt>0?90+Jt/2:-90,Wn=Yn*((360-Jt)/360),na=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Jn=na.count,Le=na.space,we=Lt(on),pe=Lt(dn),st=pe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Nt=st&&(0,b.Z)(st)==="object",xt=Nt?"butt":hn,ln=ut(Yn,Wn,0,100,Nn,Jt,Kt,nn,xt,kt),Zt=ae(),en=function(){var it=0;return we.map(function(tn,Dn){var Zn=pe[Dn]||pe[pe.length-1],Fn=ut(Yn,Wn,it,tn,Nn,Jt,Kt,Zn,xt,kt);return it+=tn,ne.createElement(xe,{key:Dn,color:Zn,ptg:tn,radius:zn,prefixCls:pt,gradientId:cn,style:Fn,strokeLinecap:xt,strokeWidth:kt,gapDegree:Jt,ref:function(ze){Zt[Dn]=ze},size:He})}).reverse()},Ln=function(){var it=Math.round(Jn*(we[0]/100)),tn=100/Jn,Dn=0;return new Array(Jn).fill(null).map(function(Zn,Fn){var ue=Fn<=it-1?pe[0]:nn,ze=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,Ge=ut(Yn,Wn,Dn,tn,Nn,Jt,Kt,ue,"butt",kt,Le);return Dn+=(Wn-Ge.strokeDashoffset+Le)*100/Wn,ne.createElement("circle",{key:Fn,className:"".concat(pt,"-circle-path"),r:zn,cx:En,cy:En,stroke:ze,strokeWidth:kt,opacity:1,style:Ge,ref:function(at){Zt[Fn]=at}})})};return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(pt,"-circle"),wn),viewBox:"0 0 ".concat(He," ").concat(He),style:vn,id:mt,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(pt,"-circle-trail"),r:zn,cx:En,cy:En,stroke:nn,strokeLinecap:xt,strokeWidth:Gt||kt,style:ln}),Jn?Ln():en())},_e=ye,Ie={Line:E,Circle:_e},qe=oe(6848),gt=oe(93398);function De(ve){return!ve||ve<0?0:ve>100?100:ve}function We(ve){let{success:Be,successPercent:Qe}=ve,mt=Qe;return Be&&"progress"in Be&&(mt=Be.progress),Be&&"percent"in Be&&(mt=Be.percent),mt}const Ve=ve=>{let{percent:Be,success:Qe,successPercent:mt}=ve;const pt=De(We({success:Qe,successPercent:mt}));return[pt,De(De(Be)-pt)]},ht=ve=>{let{success:Be={},strokeColor:Qe}=ve;const{strokeColor:mt}=Be;return[mt||gt.presetPrimaryColors.green,Qe||null]},fe=(ve,Be,Qe)=>{var mt,pt,Rt,kt;let Gt=-1,_t=-1;if(Be==="step"){const Jt=Qe.steps,Kt=Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(Gt=ve==="small"?2:14,_t=Kt!=null?Kt:8):typeof ve=="number"?[Gt,_t]=[ve,ve]:[Gt=14,_t=8]=ve,Gt*=Jt}else if(Be==="line"){const Jt=Qe==null?void 0:Qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?_t=Jt||(ve==="small"?6:8):typeof ve=="number"?[Gt,_t]=[ve,ve]:[Gt=-1,_t=8]=ve}else(Be==="circle"||Be==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[Gt,_t]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[Gt,_t]=[ve,ve]:(Gt=(pt=(mt=ve[0])!==null&&mt!==void 0?mt:ve[1])!==null&&pt!==void 0?pt:120,_t=(kt=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&kt!==void 0?kt:120));return[Gt,_t]},Ce=3,Je=ve=>Ce/ve*100;var Ze=ve=>{const{prefixCls:Be,trailColor:Qe=null,strokeLinecap:mt="round",gapPosition:pt,gapDegree:Rt,width:kt=120,type:Gt,children:_t,success:Jt,size:Kt=kt}=ve,[nn,hn]=fe(Kt,"circle");let{strokeWidth:vn}=ve;vn===void 0&&(vn=Math.max(Je(nn),6));const wn={width:nn,height:hn,fontSize:nn*.15+6},dn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Gt==="dashboard")return 75},[Rt,Gt]),on=pt||Gt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",En=ht({success:Jt,strokeColor:ve.strokeColor}),Bn=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:yn}),cn=ne.createElement(_e,{percent:Ve(ve),strokeWidth:vn,trailWidth:vn,strokeColor:En,strokeLinecap:mt,trailColor:Qe,prefixCls:Be,gapDegree:dn,gapPosition:on});return ne.createElement("div",{className:Bn,style:wn},nn<=20?ne.createElement(qe.Z,{title:_t},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,_t))},tt=function(ve,Be){var Qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Be.indexOf(mt)<0&&(Qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt{let Be=[];return Object.keys(ve).forEach(Qe=>{const mt=parseFloat(Qe.replace(/%/g,""));isNaN(mt)||Be.push({key:mt,value:ve[Qe]})}),Be=Be.sort((Qe,mt)=>Qe.key-mt.key),Be.map(Qe=>{let{key:mt,value:pt}=Qe;return`${pt} ${mt}%`}).join(", ")},Ye=(ve,Be)=>{const{from:Qe=gt.presetPrimaryColors.blue,to:mt=gt.presetPrimaryColors.blue,direction:pt=Be==="rtl"?"to left":"to right"}=ve,Rt=tt(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${pt}, ${kt})`}}return{backgroundImage:`linear-gradient(${pt}, ${Qe}, ${mt})`}};var Tt=ve=>{const{prefixCls:Be,direction:Qe,percent:mt,size:pt,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Gt="round",children:_t,trailColor:Jt=null,success:Kt}=ve,nn=kt&&typeof kt!="string"?Ye(kt,Qe):{backgroundColor:kt},hn=Gt==="square"||Gt==="butt"?0:void 0,vn={backgroundColor:Jt||void 0,borderRadius:hn},wn=pt!=null?pt:[-1,Rt||(pt==="small"?6:8)],[dn,on]=fe(wn,"line",{strokeWidth:Rt}),yn=Object.assign({width:`${De(mt)}%`,height:on,borderRadius:hn},nn),En=We(ve),Bn={width:`${De(En)}%`,height:on,borderRadius:hn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Be}-outer`,style:cn},ne.createElement("div",{className:`${Be}-inner`,style:vn},ne.createElement("div",{className:`${Be}-bg`,style:yn}),En!==void 0?ne.createElement("div",{className:`${Be}-success-bg`,style:Bn}):null)),_t)},be=ve=>{const{size:Be,steps:Qe,percent:mt=0,strokeWidth:pt=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Gt,children:_t}=ve,Jt=Math.round(Qe*(mt/100)),Kt=Be==="small"?2:14,nn=Be!=null?Be:[Kt,pt],[hn,vn]=fe(nn,"step",{steps:Qe,strokeWidth:pt}),wn=hn/Qe,dn=new Array(Qe);for(let on=0;on{const Be=ve?"100%":"-100%";return new he.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ot=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:Object.assign(Object.assign({},(0,Pe.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qe]:{fontSize:ve.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:lt(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:lt(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:ve.colorError},[`${Be}-text`]:{color:ve.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:ve.colorSuccess},[`${Be}-text`]:{color:ve.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ve.colorSuccess}}})}},Et=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:{[`${Be}-circle-trail`]:{stroke:ve.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qe]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:ve.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:ve.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},Mt=ve=>{const{componentCls:Be}=ve;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ve.progressStepMinWidth,marginInlineEnd:ve.progressStepMarginInlineEnd,backgroundColor:ve.remainingColor,transition:`all ${ve.motionDurationSlow}`,"&-active":{backgroundColor:ve.defaultColor}}}}}},jt=ve=>{const{componentCls:Be,iconCls:Qe}=ve;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${Qe}`]:{fontSize:ve.fontSizeSM}}}};var Bt=(0,Me.Z)("Progress",ve=>{const Be=ve.marginXXS/2,Qe=(0,je.TS)(ve,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[Ot(Qe),Et(Qe),Mt(Qe),jt(Qe)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),bt=function(ve,Be){var Qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Be.indexOf(mt)<0&&(Qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,mt=Object.getOwnPropertySymbols(ve);pt{const{prefixCls:Qe,className:mt,rootClassName:pt,steps:Rt,strokeColor:kt,percent:Gt=0,size:_t="default",showInfo:Jt=!0,type:Kt="line",status:nn,format:hn,style:vn}=ve,wn=bt(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var we,pe;const st=We(ve);return parseInt(st!==void 0?(we=st!=null?st:0)===null||we===void 0?void 0:we.toString():(pe=Gt!=null?Gt:0)===null||pe===void 0?void 0:pe.toString(),10)},[Gt,ve.success,ve.successPercent]),on=ne.useMemo(()=>!Wt.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:En,progress:Bn}=ne.useContext(Ae.E_),cn=yn("progress",Qe),[zn,Yn]=Bt(cn),Nn=ne.useMemo(()=>{if(!Jt)return null;const we=We(ve);let pe;const st=hn||(xt=>`${xt}%`),Nt=Kt==="line";return hn||on!=="exception"&&on!=="success"?pe=st(De(Gt),De(we)):on==="exception"?pe=Nt?ne.createElement(Ne.Z,null):ne.createElement(ce.Z,null):on==="success"&&(pe=Nt?ne.createElement(Se.Z,null):ne.createElement(Ke.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Jt,Gt,dn,on,Kt,cn,hn]),Wn=Array.isArray(kt)?kt[0]:kt,na=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Jn;Kt==="line"?Jn=Rt?ne.createElement(be,Object.assign({},ve,{strokeColor:na,prefixCls:cn,steps:Rt}),Nn):ne.createElement(Tt,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,direction:En}),Nn):(Kt==="circle"||Kt==="dashboard")&&(Jn=ne.createElement(Ze,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),Nn));const Le=le()(cn,`${cn}-status-${on}`,`${cn}-${Kt==="dashboard"&&"circle"||Rt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&fe(_t,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${_t}`]:typeof _t=="string",[`${cn}-rtl`]:En==="rtl"},Bn==null?void 0:Bn.className,mt,pt,Yn);return zn(ne.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),vn),className:Le,role:"progressbar","aria-valuenow":dn},(0,$e.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ut=qt},54580:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Fn}});var ne=oe(59301),Se=oe(65093),Ke=oe(92310),Ne=oe.n(Ke),ce=oe(16378),Fe=oe(44202),le=oe(86773),$e=oe(82412),Ae=oe(60845),Te=oe(78772),nt=oe(61206),ke=oe(62907),Re=oe(42066),ae=oe(3872),a=oe(26112);function y(ue,ze){var Ge="cannot ".concat(ue.method," ").concat(ue.action," ").concat(ze.status,"'"),Ue=new Error(Ge);return Ue.status=ze.status,Ue.method=ue.method,Ue.url=ue.action,Ue}function E(ue){var ze=ue.responseText||ue.response;if(!ze)return ze;try{return JSON.parse(ze)}catch(Ge){return ze}}function b(ue){var ze=new XMLHttpRequest;ue.onProgress&&ze.upload&&(ze.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var Ge=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var rt=ue.data[at];if(Array.isArray(rt)){rt.forEach(function(et){Ge.append("".concat(at,"[]"),et)});return}Ge.append(at,rt)}),ue.file instanceof Blob?Ge.append(ue.filename,ue.file,ue.file.name):Ge.append(ue.filename,ue.file),ze.onerror=function(rt){ue.onError(rt)},ze.onload=function(){return ze.status<200||ze.status>=300?ue.onError(y(ue,ze),E(ze)):ue.onSuccess(E(ze),ze)},ze.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in ze&&(ze.withCredentials=!0);var Ue=ue.headers||{};return Ue["X-Requested-With"]!==null&&ze.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(at){Ue[at]!==null&&ze.setRequestHeader(at,Ue[at])}),ze.send(Ge),{abort:function(){ze.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ue,ze){if(ue&&ze){var Ge=Array.isArray(ze)?ze:ze.split(","),Ue=ue.name||"",at=ue.type||"",rt=at.replace(/\/.*$/,"");return Ge.some(function(et){var Xe=et.trim();if(/^\*(\/\*)?$/.test(et))return!0;if(Xe.charAt(0)==="."){var At=Ue.toLowerCase(),Dt=Xe.toLowerCase(),Ee=[Dt];return(Dt===".jpg"||Dt===".jpeg")&&(Ee=[".jpg",".jpeg"]),Ee.some(function(rn){return At.endsWith(rn)})}return/\/\*$/.test(Xe)?rt===Xe.replace(/\/.*$/,""):at===Xe?!0:/^\w+$/.test(Xe)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,ze){var Ge=ue.createReader(),Ue=[];function at(){Ge.readEntries(function(rt){var et=Array.prototype.slice.apply(rt);Ue=Ue.concat(et);var Xe=!et.length;Xe?ze(Ue):at()})}at()}var ie=function(ze,Ge,Ue){var at=function rt(et,Xe){et&&(et.path=Xe||"",et.isFile?et.file(function(At){Ue(At)&&(et.fullPath&&!At.webkitRelativePath&&(Object.defineProperties(At,{webkitRelativePath:{writable:!0}}),At.webkitRelativePath=et.fullPath.replace(/^\//,""),Object.defineProperties(At,{webkitRelativePath:{writable:!1}})),Ge([At]))}):et.isDirectory&&ge(et,function(At){At.forEach(function(Dt){rt(Dt,"".concat(Xe).concat(et.name,"/"))})}))};ze.forEach(function(rt){at(rt.webkitGetAsEntry())})},me=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(ue){(0,$e.Z)(Ge,ue);var ze=(0,Ae.Z)(Ge);function Ge(){var Ue;(0,Fe.Z)(this,Ge);for(var at=arguments.length,rt=new Array(at),et=0;et{let{uid:rt}=at;return rt===ue.uid});return Ue===-1?Ge.push(ue):Ge[Ue]=ue,Ge}function bt(ue,ze){const Ge=ue.uid!==void 0?"uid":"name";return ze.filter(Ue=>Ue[Ge]===ue[Ge])[0]}function Ft(ue,ze){const Ge=ue.uid!==void 0?"uid":"name",Ue=ze.filter(at=>at[Ge]!==ue[Ge]);return Ue.length===ze.length?null:Ue}const Wt=function(){const ze=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ue=ze[ze.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ue)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,qt=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const ze=ue.thumbUrl||ue.url||"",Ge=Wt(ze);return/^data:image\//.test(ze)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ge)?!0:!(/^data:/.test(ze)||Ge)},Ut=200;function ve(ue){return new Promise(ze=>{if(!ue.type||!mn(ue.type)){ze("");return}const Ge=document.createElement("canvas");Ge.width=Ut,Ge.height=Ut,Ge.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Ge);const Ue=Ge.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:rt,height:et}=at;let Xe=Ut,At=Ut,Dt=0,Ee=0;rt>et?(At=et*(Ut/rt),Ee=-(At-Xe)/2):(Xe=rt*(Ut/et),Dt=-(Xe-At)/2),Ue.drawImage(at,Dt,Ee,Xe,At);const rn=Ge.toDataURL();document.body.removeChild(Ge),window.URL.revokeObjectURL(at.src),ze(rn)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(at.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&ze(rt.result)},rt.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Be=oe(26227),Qe=oe(41464),mt=oe(15277),pt=oe(93948),Rt=oe(6848),Gt=ne.forwardRef((ue,ze)=>{let{prefixCls:Ge,className:Ue,style:at,locale:rt,listType:et,file:Xe,items:At,progress:Dt,iconRender:Ee,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:Cn,showRemoveIcon:ot,showDownloadIcon:yt,previewIcon:It,removeIcon:vt,downloadIcon:Yt,onPreview:Qt,onDownload:Ht,onClose:Pn}=ue;var fn,oa;const{status:Qn}=Xe,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=Ee(Xe);let Kn=ne.createElement("div",{className:`${Ge}-icon`},da);if(et==="picture"||et==="picture-card"||et==="picture-circle")if(qn==="uploading"||!Xe.thumbUrl&&!Xe.url){const Mn=Ne()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:Mn},da)}else{const Mn=pn!=null&&pn(Xe)?ne.createElement("img",{src:Xe.thumbUrl||Xe.url,alt:Xe.name,className:`${Ge}-list-item-image`,crossOrigin:Xe.crossOrigin}):da,On=Ne()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:pn&&!pn(Xe)});Kn=ne.createElement("a",{className:On,onClick:la=>Qt(Xe,la),href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const xn=Ne()(`${Ge}-list-item`,`${Ge}-list-item-${qn}`),ta=typeof Xe.linkProps=="string"?JSON.parse(Xe.linkProps):Xe.linkProps,ga=ot?rn((typeof vt=="function"?vt(Xe):vt)||ne.createElement(Be.Z,null),()=>Pn(Xe),Ge,rt.removeFile):null,ia=yt&&qn==="done"?rn((typeof Yt=="function"?Yt(Xe):Yt)||ne.createElement(Qe.Z,null),()=>Ht(Xe),Ge,rt.downloadFile):null,aa=et!=="picture-card"&&et!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ne()(`${Ge}-list-item-actions`,{picture:et==="picture"})},ia,ga),ea=Ne()(`${Ge}-list-item-name`),fa=Xe.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Xe.name},ta,{href:Xe.url,onClick:Mn=>Qt(Xe,Mn)}),Xe.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:Mn=>Qt(Xe,Mn),title:Xe.name},Xe.name),aa],Xt={pointerEvents:"none",opacity:.5},$n=Cn?ne.createElement("a",{href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Xe.url||Xe.thumbUrl?void 0:Xt,onClick:Mn=>Qt(Xe,Mn),title:rt.previewFile},typeof It=="function"?It(Xe):It||ne.createElement(mt.Z,null)):null,In=(et==="picture-card"||et==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${Ge}-list-item-actions`},$n,qn==="done"&&ia,ga),{getPrefixCls:Un}=ne.useContext(qe.E_),Xn=Un(),ra=ne.createElement("div",{className:xn},Kn,fa,In,Sa&&ne.createElement(je.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const la="percent"in Xe?ne.createElement(pt.Z,Object.assign({},Dt,{type:"line",percent:Xe.percent,"aria-label":Xe["aria-label"],"aria-labelledby":Xe["aria-labelledby"]})):null;return ne.createElement("div",{className:Ne()(`${Ge}-list-item-progress`,On)},la)})),va=Xe.response&&typeof Xe.response=="string"?Xe.response:((fn=Xe.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Xe.error)===null||oa===void 0?void 0:oa.message)||rt.uploadError,pa=qn==="error"?ne.createElement(Rt.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ne.createElement("div",{className:Ne()(`${Ge}-list-item-container`,Ue),style:at,ref:ze},an?an(pa,Xe,At,{download:Ht.bind(null,Xe),preview:Qt.bind(null,Xe),remove:Pn.bind(null,Xe)}):pa)});const _t=(ue,ze)=>{const{listType:Ge="text",previewFile:Ue=ve,onPreview:at,onDownload:rt,onRemove:et,locale:Xe,iconRender:At,isImageUrl:Dt=qt,prefixCls:Ee,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:Cn=!1,removeIcon:ot,previewIcon:yt,downloadIcon:It,progress:vt={size:[-1,2],showInfo:!1},appendAction:Yt,appendActionVisible:Qt=!0,itemRender:Ht,disabled:Pn}=ue,fn=(0,lt.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{Ge!=="picture"&&Ge!=="picture-card"&&Ge!=="picture-circle"||(rn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",Ue&&Ue(Xt.originFileObj).then($n=>{Xt.thumbUrl=$n||"",fn()}))})},[Ge,rn,Ue]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Xt,$n)=>{if(at)return $n==null||$n.preventDefault(),at(Xt)},ca=Xt=>{typeof rt=="function"?rt(Xt):Xt.url&&window.open(Xt.url)},Sa=Xt=>{et==null||et(Xt)},Pa=Xt=>{if(At)return At(Xt,Ge);const $n=Xt.status==="uploading",In=Dt&&Dt(Xt)?ne.createElement(Me,null):ne.createElement(ct,null);let Un=$n?ne.createElement(Ze.Z,null):ne.createElement(Tt,null);return Ge==="picture"?Un=$n?ne.createElement(Ze.Z,null):In:(Ge==="picture-card"||Ge==="picture-circle")&&(Un=$n?Xe.uploading:In),Un},da=(Xt,$n,In,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{$n(),(0,Et.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ra)},className:`${In}-list-item-action`,disabled:Pn};if((0,Et.l$)(Xt)){const ra=(0,Et.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ne.createElement(Mt.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(Mt.ZP,Object.assign({},Xn),ne.createElement("span",null,Xt))};ne.useImperativeHandle(ze,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(qe.E_),xn=Kn("upload",Ee),ta=Kn(),ga=Ne()(`${xn}-list`,`${xn}-list-${Ge}`),ia=(0,Se.Z)(rn.map(Xt=>({key:Xt.uid,file:Xt})));let ea={motionDeadline:2e3,motionName:`${xn}-${Ge==="picture-card"||Ge==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ne.useMemo(()=>{const Xt=Object.assign({},(0,Ot.Z)(ta));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[ta]);return Ge!=="picture-card"&&Ge!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ga},ne.createElement(je.CSSMotionList,Object.assign({},ea,{component:!1}),Xt=>{let{key:$n,file:In,className:Un,style:Xn}=Xt;return ne.createElement(Gt,{key:$n,locale:Xe,prefixCls:xn,className:Un,style:Xn,file:In,items:rn,progress:vt,listType:Ge,isImgUrl:Dt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:Cn,removeIcon:ot,previewIcon:yt,downloadIcon:It,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Yt&&ne.createElement(je.default,Object.assign({},ea,{visible:Qt,forceRender:!0}),Xt=>{let{className:$n,style:In}=Xt;return(0,Et.Tm)(Yt,Un=>({className:Ne()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var Kt=ne.forwardRef(_t),nn=oe(17313),hn=oe(8378),vn=oe(83116),wn=oe(37613),on=ue=>{const{componentCls:ze,iconCls:Ge}=ue;return{[`${ze}-wrapper`]:{[`${ze}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[ze]:{padding:`${ue.padding}px 0`},[`${ze}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ze}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ze}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${ze}-drag-icon`]:{marginBottom:ue.margin,[Ge]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${ze}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${ze}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${ze}-disabled`]:{cursor:"not-allowed",[`p${ze}-drag-icon ${Ge}, p${ze}-text, p${ze}-hint `]:{color:ue.colorTextDisabled}}}}}},En=ue=>{const{componentCls:ze,antCls:Ge,iconCls:Ue,fontSize:at,lineHeight:rt}=ue,et=`${ze}-list-item`,Xe=`${et}-actions`,At=`${et}-action`,Dt=Math.round(at*rt);return{[`${ze}-wrapper`]:{[`${ze}-list`]:Object.assign(Object.assign({},(0,nn.dF)()),{lineHeight:ue.lineHeight,[et]:{position:"relative",height:ue.lineHeight*at,marginTop:ue.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${et}-name`]:Object.assign(Object.assign({},nn.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Xe]:{[At]:{opacity:0},[`${At}${Ge}-btn-sm`]:{height:Dt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` @@ -146,4 +146,4 @@ `]:{[et]:{position:"relative",height:Ue+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${et}-thumbnail`]:Object.assign(Object.assign({},nn.vS),{width:Ue,height:Ue,lineHeight:`${Ue+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ge]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${et}-progress`]:{bottom:at,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ue+ue.paddingXS}},[`${et}-error`]:{borderColor:ue.colorError,[`${et}-thumbnail ${Ge}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${et}-uploading`]:{borderStyle:"dashed",[`${et}-name`]:{marginBottom:at}}},[`${rt}${rt}-picture-circle ${et}`]:{[`&, &::before, ${et}-thumbnail`]:{borderRadius:"50%"}}}}},we=ue=>{const{componentCls:ze,iconCls:Ge,fontSizeLG:Ue,colorTextLightSolid:at}=ue,rt=`${ze}-list`,et=`${rt}-item`,Xe=ue.uploadPicCardSize;return{[` ${ze}-wrapper${ze}-picture-card-wrapper, ${ze}-wrapper${ze}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${ze}${ze}-select`]:{width:Xe,height:Xe,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${ze}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ze}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Xe,height:Xe,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[et]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${et}:hover`]:{[`&::before, ${et}-actions`]:{opacity:1}},[`${et}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{zIndex:10,width:Ue,margin:`0 ${ue.marginXXS}px`,fontSize:Ue,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${et}-actions, ${et}-actions:hover`]:{[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${et}-thumbnail, ${et}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${et}-name`]:{display:"none",textAlign:"center"},[`${et}-file + ${et}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${et}-uploading`]:{[`&${et}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{display:"none"}},[`${et}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ze}-wrapper${ze}-picture-circle-wrapper`]:{[`${ze}${ze}-select`]:{borderRadius:"50%"}}}};var lt=ue=>{const{componentCls:ze}=ue;return{[`${ze}-rtl`]:{direction:"rtl"}}};const Nt=ue=>{const{componentCls:ze,colorTextDisabled:Ge}=ue;return{[`${ze}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(ue)),{[ze]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ze}-select`]:{display:"inline-block"},[`${ze}-disabled`]:{color:Ge,cursor:"not-allowed"}})}};var $t=(0,vn.Z)("Upload",ue=>{const{fontSizeHeading3:ze,fontSize:Ge,lineHeight:Ue,lineWidth:at,controlHeightLG:rt}=ue,et=Math.round(Ge*Ue),Xe=(0,wn.TS)(ue,{uploadThumbnailSize:ze*2,uploadProgressOffset:et/2+at,uploadPicCardSize:rt*2.55});return[Nt(Xe),on(Xe),Le(Xe),we(Xe),En(Xe),Wn(Xe),lt(Xe),(0,hn.Z)(Xe)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,ze,Ge,Ue){function at(rt){return rt instanceof Ge?rt:new Ge(function(et){et(rt)})}return new(Ge||(Ge=Promise))(function(rt,et){function Xe(Ee){try{Dt(Ue.next(Ee))}catch(rn){et(rn)}}function At(Ee){try{Dt(Ue.throw(Ee))}catch(rn){et(rn)}}function Dt(Ee){Ee.done?rt(Ee.value):at(Ee.value).then(Xe,At)}Dt((Ue=Ue.apply(ue,ze||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,en=(ue,ze)=>{const{fileList:Ge,defaultFileList:Ue,onRemove:at,showUploadList:rt=!0,listType:et="text",onPreview:Xe,onDownload:At,onChange:Dt,onDrop:Ee,previewFile:rn,disabled:an,locale:pn,iconRender:Cn,isImageUrl:ot,progress:yt,prefixCls:It,className:vt,type:Yt="select",children:Qt,style:Ht,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ne.useContext(it.Z),Kn=an!=null?an:da,[xn,ta]=(0,_e.Z)(Ue||[],{value:Ge,postState:Vt=>Vt!=null?Vt:[]}),[ia,ga]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Vt=Date.now();(Ge||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Vt}_${bn}__`)})},[Ge]);const ea=(Vt,sn,bn)=>{let gn=(0,Se.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,Ie.flushSync)(()=>{ta(gn)});const Hn={file:Vt,fileList:gn};bn&&(Hn.event=bn),(!Sn||gn.some(Tn=>Tn.uid===Vt.uid))&&(0,Ie.flushSync)(()=>{Dt==null||Dt(Hn)})},fa=(Vt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=ue;let Sn=Vt;if(bn){const Hn=yield bn(Vt,sn);if(Hn===!1)return!1;if(delete Vt[Zt],Hn===Zt)return Object.defineProperty(Vt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return gn&&(Sn=yield gn(Sn)),Sn}),Xt=Vt=>{const sn=Vt.filter(Sn=>!Sn.file[Zt]);if(!sn.length)return;const bn=sn.map(Sn=>jt(Sn.file));let gn=(0,Se.Z)(xn);bn.forEach(Sn=>{gn=Bt(Sn,gn)}),bn.forEach((Sn,Hn)=>{let Tn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;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=Sn.uid,Tn=ua}ea(Tn,gn)})},$n=(Vt,sn,bn)=>{try{typeof Vt=="string"&&(Vt=JSON.parse(Vt))}catch(Hn){}if(!bt(sn,xn))return;const gn=jt(sn);gn.status="done",gn.percent=100,gn.response=Vt,gn.xhr=bn;const Sn=Bt(gn,xn);ea(gn,Sn)},In=(Vt,sn)=>{if(!bt(sn,xn))return;const bn=jt(sn);bn.status="uploading",bn.percent=Vt.percent;const gn=Bt(bn,xn);ea(bn,gn,Vt)},Un=(Vt,sn,bn)=>{if(!bt(bn,xn))return;const gn=jt(bn);gn.error=Vt,gn.response=sn,gn.status="error";const Sn=Bt(gn,xn);ea(gn,Sn)},Xn=Vt=>{let sn;Promise.resolve(typeof at=="function"?at(Vt):at).then(bn=>{var gn;if(bn===!1)return;const Sn=Ft(Vt,xn);Sn&&(sn=Object.assign(Object.assign({},Vt),{status:"removed"}),xn==null||xn.forEach(Hn=>{const Tn=sn.uid!==void 0?"uid":"name";Hn[Tn]===sn[Tn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Vt=>{ga(Vt.type),Vt.type==="drop"&&(Ee==null||Ee(Vt))};ne.useImperativeHandle(ze,()=>({onBatchStart:Xt,onSuccess:$n,onProgress:In,onError:Un,fileList:xn,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ne.useContext(qe.E_),On=va("upload",It),la=Object.assign(Object.assign({onBatchStart:Xt,onError:Un,onProgress:In,onSuccess:$n},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:On,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Qt||Kn)&&delete la.id;const[ya,La]=$t(On),[ba]=(0,De.Z)("Upload",We.Z.Upload),{showRemoveIcon:zt,showPreviewIcon:St,showDownloadIcon:wt,removeIcon:Ot,previewIcon:un,downloadIcon:Gn}=typeof rt=="boolean"?{}:rt,Rn=(Vt,sn)=>rt?ne.createElement(Kt,{prefixCls:On,listType:et,items:xn,previewFile:rn,onPreview:Xe,onDownload:At,onRemove:Xn,showRemoveIcon:!Kn&&zt,showPreviewIcon:St,showDownloadIcon:wt,removeIcon:Ot,previewIcon:un,downloadIcon:Gn,iconRender:Cn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:yt,appendAction:Vt,appendActionVisible:sn,itemRender:Pn,disabled:Kn}):Vt,An=Ne()(`${On}-wrapper`,vt,Pa,La,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:pa==="rtl",[`${On}-picture-card-wrapper`]:et==="picture-card",[`${On}-picture-circle-wrapper`]:et==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ht);if(Yt==="drag"){const Vt=Ne()(La,On,`${On}-drag`,{[`${On}-drag-uploading`]:xn.some(sn=>sn.status==="uploading"),[`${On}-drag-hover`]:ia==="dragover",[`${On}-disabled`]:Kn,[`${On}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:An},ne.createElement("div",{className:Vt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(ye,Object.assign({},la,{ref:aa,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Qt))),Rn()))}const kn=Ne()(On,`${On}-select`,{[`${On}-disabled`]:Kn}),Vn=(Vt=>ne.createElement("div",{className:kn,style:Vt},ne.createElement(ye,Object.assign({},la,{ref:aa}))))(Qt?void 0:{display:"none"});return ya(et==="picture-card"||et==="picture-circle"?ne.createElement("span",{className:An},Rn(Vn,!!Qt)):ne.createElement("span",{className:An},Vn,Rn()))};var _n=ne.forwardRef(en),gt=function(ue,ze){var Ge={};for(var Ue in ue)Object.prototype.hasOwnProperty.call(ue,Ue)&&ze.indexOf(Ue)<0&&(Ge[Ue]=ue[Ue]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(ue);at{var{style:Ge,height:Ue}=ue,at=gt(ue,["style","height"]);return ne.createElement(_n,Object.assign({ref:ze},at,{type:"drag",style:Object.assign(Object.assign({},Ge),{height:Ue})}))});const Zn=_n;Zn.Dragger=Dn,Zn.LIST_IGNORE=Zt;var Fn=Zn}}]); + `]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${ze}${ze}-select`]:{width:Xe,height:Xe,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${ze}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ze}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Xe,height:Xe,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[et]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${et}:hover`]:{[`&::before, ${et}-actions`]:{opacity:1}},[`${et}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{zIndex:10,width:Ue,margin:`0 ${ue.marginXXS}px`,fontSize:Ue,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${et}-actions, ${et}-actions:hover`]:{[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${et}-thumbnail, ${et}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${et}-name`]:{display:"none",textAlign:"center"},[`${et}-file + ${et}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${et}-uploading`]:{[`&${et}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{display:"none"}},[`${et}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ze}-wrapper${ze}-picture-circle-wrapper`]:{[`${ze}${ze}-select`]:{borderRadius:"50%"}}}};var st=ue=>{const{componentCls:ze}=ue;return{[`${ze}-rtl`]:{direction:"rtl"}}};const Nt=ue=>{const{componentCls:ze,colorTextDisabled:Ge}=ue;return{[`${ze}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(ue)),{[ze]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ze}-select`]:{display:"inline-block"},[`${ze}-disabled`]:{color:Ge,cursor:"not-allowed"}})}};var xt=(0,vn.Z)("Upload",ue=>{const{fontSizeHeading3:ze,fontSize:Ge,lineHeight:Ue,lineWidth:at,controlHeightLG:rt}=ue,et=Math.round(Ge*Ue),Xe=(0,wn.TS)(ue,{uploadThumbnailSize:ze*2,uploadProgressOffset:et/2+at,uploadPicCardSize:rt*2.55});return[Nt(Xe),on(Xe),Le(Xe),we(Xe),En(Xe),Wn(Xe),st(Xe),(0,hn.Z)(Xe)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,ze,Ge,Ue){function at(rt){return rt instanceof Ge?rt:new Ge(function(et){et(rt)})}return new(Ge||(Ge=Promise))(function(rt,et){function Xe(Ee){try{Dt(Ue.next(Ee))}catch(rn){et(rn)}}function At(Ee){try{Dt(Ue.throw(Ee))}catch(rn){et(rn)}}function Dt(Ee){Ee.done?rt(Ee.value):at(Ee.value).then(Xe,At)}Dt((Ue=Ue.apply(ue,ze||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,en=(ue,ze)=>{const{fileList:Ge,defaultFileList:Ue,onRemove:at,showUploadList:rt=!0,listType:et="text",onPreview:Xe,onDownload:At,onChange:Dt,onDrop:Ee,previewFile:rn,disabled:an,locale:pn,iconRender:Cn,isImageUrl:ot,progress:yt,prefixCls:It,className:vt,type:Yt="select",children:Qt,style:Ht,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ne.useContext(gt.Z),Kn=an!=null?an:da,[xn,ta]=(0,_e.Z)(Ue||[],{value:Ge,postState:Vt=>Vt!=null?Vt:[]}),[ga,ia]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Vt=Date.now();(Ge||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Vt}_${bn}__`)})},[Ge]);const ea=(Vt,sn,bn)=>{let gn=(0,Se.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,Ie.flushSync)(()=>{ta(gn)});const Hn={file:Vt,fileList:gn};bn&&(Hn.event=bn),(!Sn||gn.some(Tn=>Tn.uid===Vt.uid))&&(0,Ie.flushSync)(()=>{Dt==null||Dt(Hn)})},fa=(Vt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=ue;let Sn=Vt;if(bn){const Hn=yield bn(Vt,sn);if(Hn===!1)return!1;if(delete Vt[Zt],Hn===Zt)return Object.defineProperty(Vt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return gn&&(Sn=yield gn(Sn)),Sn}),Xt=Vt=>{const sn=Vt.filter(Sn=>!Sn.file[Zt]);if(!sn.length)return;const bn=sn.map(Sn=>jt(Sn.file));let gn=(0,Se.Z)(xn);bn.forEach(Sn=>{gn=Bt(Sn,gn)}),bn.forEach((Sn,Hn)=>{let Tn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;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=Sn.uid,Tn=ua}ea(Tn,gn)})},$n=(Vt,sn,bn)=>{try{typeof Vt=="string"&&(Vt=JSON.parse(Vt))}catch(Hn){}if(!bt(sn,xn))return;const gn=jt(sn);gn.status="done",gn.percent=100,gn.response=Vt,gn.xhr=bn;const Sn=Bt(gn,xn);ea(gn,Sn)},In=(Vt,sn)=>{if(!bt(sn,xn))return;const bn=jt(sn);bn.status="uploading",bn.percent=Vt.percent;const gn=Bt(bn,xn);ea(bn,gn,Vt)},Un=(Vt,sn,bn)=>{if(!bt(bn,xn))return;const gn=jt(bn);gn.error=Vt,gn.response=sn,gn.status="error";const Sn=Bt(gn,xn);ea(gn,Sn)},Xn=Vt=>{let sn;Promise.resolve(typeof at=="function"?at(Vt):at).then(bn=>{var gn;if(bn===!1)return;const Sn=Ft(Vt,xn);Sn&&(sn=Object.assign(Object.assign({},Vt),{status:"removed"}),xn==null||xn.forEach(Hn=>{const Tn=sn.uid!==void 0?"uid":"name";Hn[Tn]===sn[Tn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Vt=>{ia(Vt.type),Vt.type==="drop"&&(Ee==null||Ee(Vt))};ne.useImperativeHandle(ze,()=>({onBatchStart:Xt,onSuccess:$n,onProgress:In,onError:Un,fileList:xn,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ne.useContext(qe.E_),On=va("upload",It),la=Object.assign(Object.assign({onBatchStart:Xt,onError:Un,onProgress:In,onSuccess:$n},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:On,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Qt||Kn)&&delete la.id;const[ya,La]=xt(On),[ba]=(0,De.Z)("Upload",We.Z.Upload),{showRemoveIcon:zt,showPreviewIcon:St,showDownloadIcon:wt,removeIcon:$t,previewIcon:un,downloadIcon:Gn}=typeof rt=="boolean"?{}:rt,Rn=(Vt,sn)=>rt?ne.createElement(Kt,{prefixCls:On,listType:et,items:xn,previewFile:rn,onPreview:Xe,onDownload:At,onRemove:Xn,showRemoveIcon:!Kn&&zt,showPreviewIcon:St,showDownloadIcon:wt,removeIcon:$t,previewIcon:un,downloadIcon:Gn,iconRender:Cn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:yt,appendAction:Vt,appendActionVisible:sn,itemRender:Pn,disabled:Kn}):Vt,An=Ne()(`${On}-wrapper`,vt,Pa,La,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:pa==="rtl",[`${On}-picture-card-wrapper`]:et==="picture-card",[`${On}-picture-circle-wrapper`]:et==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ht);if(Yt==="drag"){const Vt=Ne()(La,On,`${On}-drag`,{[`${On}-drag-uploading`]:xn.some(sn=>sn.status==="uploading"),[`${On}-drag-hover`]:ga==="dragover",[`${On}-disabled`]:Kn,[`${On}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:An},ne.createElement("div",{className:Vt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(ye,Object.assign({},la,{ref:aa,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Qt))),Rn()))}const kn=Ne()(On,`${On}-select`,{[`${On}-disabled`]:Kn}),Vn=(Vt=>ne.createElement("div",{className:kn,style:Vt},ne.createElement(ye,Object.assign({},la,{ref:aa}))))(Qt?void 0:{display:"none"});return ya(et==="picture-card"||et==="picture-circle"?ne.createElement("span",{className:An},Rn(Vn,!!Qt)):ne.createElement("span",{className:An},Vn,Rn()))};var _n=ne.forwardRef(en),it=function(ue,ze){var Ge={};for(var Ue in ue)Object.prototype.hasOwnProperty.call(ue,Ue)&&ze.indexOf(Ue)<0&&(Ge[Ue]=ue[Ue]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(ue);at{var{style:Ge,height:Ue}=ue,at=it(ue,["style","height"]);return ne.createElement(_n,Object.assign({ref:ze},at,{type:"drag",style:Object.assign(Object.assign({},Ge),{height:Ue})}))});const Zn=_n;Zn.Dragger=Dn,Zn.LIST_IGNORE=Zt;var Fn=Zn}}]); diff --git a/umi.7998fe94.js b/umi.5cceceee.js similarity index 99% rename from umi.7998fe94.js rename to umi.5cceceee.js index 208a03dc82..52dea8e683 100644 --- a/umi.7998fe94.js +++ b/umi.5cceceee.js @@ -1466,6 +1466,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),he=[],be=r?Ln(r.baseTime,r.timescale):0;let Se="00:00.000",De=0,He=0,Xe,lt=!0;H.oncue=function(vt){const Qt=a[_];let yr=a.ccOffset;const Tr=(De-be)/9e4;if(Qt!=null&&Qt.new&&(He!==void 0?yr=a.ccOffset=Qt.start:lc(a,_,Tr)),Tr){if(!r){Xe=new Error("Missing initPTS for VTT MPEGTS");return}yr=Tr-a.presentationOffset}const Wr=vt.endTime-vt.startTime,Br=Eo((vt.startTime+yr-He)*9e4,E*9e4)/9e4;vt.startTime=Math.max(Br,0),vt.endTime=Math.max(Br+Wr,0);const Cn=vt.text.trim();vt.text=decodeURIComponent(encodeURIComponent(Cn)),vt.id||(vt.id=ju(vt.startTime,vt.endTime,Cn)),vt.endTime>0&&he.push(vt)},H.onparsingerror=function(vt){Xe=vt},H.onflush=function(){if(Xe){N(Xe);return}I(he)},oe.forEach(vt=>{if(lt)if(Gl(vt,"X-TIMESTAMP-MAP=")){lt=!1,vt.slice(16).split(",").forEach(Qt=>{Gl(Qt,"LOCAL:")?Se=Qt.slice(6):Gl(Qt,"MPEGTS:")&&(De=parseInt(Qt.slice(7)))});try{He=wc(Se)/1e3}catch(Qt){Xe=Qt}return}else vt===""&&(lt=!1);H.parse(vt+` `)}),H.flush()}const au="stpp.ttml.im1t",el=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Gs=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,No={left:"start",center:"center",right:"end",start:"start",end:"end"};function $o(j,r,a,_){const E=ct(new Uint8Array(j),["mdat"]);if(E.length===0){_(new Error("Could not parse IMSC1 mdat"));return}const I=E.map(H=>qe(H)),N=$i(r.baseTime,1,r.timescale);try{I.forEach(H=>a(Kl(H,N)))}catch(H){_(H)}}function Kl(j,r){const E=new DOMParser().parseFromString(j,"text/xml").getElementsByTagName("tt")[0];if(!E)throw new Error("Invalid ttml");const I={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(I).reduce((Se,De)=>(Se[De]=E.getAttribute(`ttp:${De}`)||I[De],Se),{}),H=E.getAttribute("xml:space")!=="preserve",oe=su(Vu(E,"styling","style")),he=su(Vu(E,"layout","region")),be=Vu(E,"body","[begin]");return[].map.call(be,Se=>{const De=Vl(Se,H);if(!De||!Se.hasAttribute("begin"))return null;const He=du(Se.getAttribute("begin"),N),Xe=du(Se.getAttribute("dur"),N);let lt=du(Se.getAttribute("end"),N);if(He===null)throw tl(Se);if(lt===null){if(Xe===null)throw tl(Se);lt=He+Xe}const vt=new qu(He-r,lt-r,De);vt.id=ju(vt.startTime,vt.endTime,vt.text);const Qt=he[Se.getAttribute("region")],yr=oe[Se.getAttribute("style")],Tr=cc(Qt,yr,oe),{textAlign:Wr}=Tr;if(Wr){const Br=No[Wr];Br&&(vt.lineAlign=Br),vt.align=Wr}return i(vt,Tr),vt}).filter(Se=>Se!==null)}function Vu(j,r,a){const _=j.getElementsByTagName(r)[0];return _?[].slice.call(_.querySelectorAll(a)):[]}function su(j){return j.reduce((r,a)=>{const _=a.getAttribute("xml:id");return _&&(r[_]=a),r},{})}function Vl(j,r){return[].slice.call(j.childNodes).reduce((a,_,E)=>{var I;return _.nodeName==="br"&&E?a+` `:(I=_.childNodes)!=null&&I.length?Vl(_,r):r?a+_.textContent.trim().replace(/\s+/g," "):a+_.textContent},"")}function cc(j,r,a){const _="http://www.w3.org/ns/ttml#styling";let E=null;const I=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],N=j!=null&&j.hasAttribute("style")?j.getAttribute("style"):null;return N&&a.hasOwnProperty(N)&&(E=a[N]),I.reduce((H,oe)=>{const he=Qo(r,_,oe)||Qo(j,_,oe)||Qo(E,_,oe);return he&&(H[oe]=he),H},{})}function Qo(j,r,a){return j&&j.hasAttributeNS(r,a)?j.getAttributeNS(r,a):null}function tl(j){return new Error(`Could not parse ttml timestamp ${j}`)}function du(j,r){if(!j)return null;let a=Zl(j);return a===null&&(el.test(j)?a=Yl(j,r):Gs.test(j)&&(a=rl(j,r))),a}function Yl(j,r){const a=el.exec(j),_=(a[4]|0)+(a[5]|0)/r.subFrameRate;return(a[1]|0)*3600+(a[2]|0)*60+(a[3]|0)+_/r.frameRate}function rl(j,r){const a=Gs.exec(j),_=Number(a[1]);switch(a[2]){case"h":return _*3600;case"m":return _*60;case"ms":return _*1e3;case"f":return _/r.frameRate;case"t":return _/r.tickRate}return _}class Ma{constructor(r){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Xl(),this.captionsProperties=void 0,this.hls=r,this.config=r.config,this.Cues=r.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},r.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.on(l.FRAG_LOADING,this.onFragLoading,this),r.on(l.FRAG_LOADED,this.onFragLoaded,this),r.on(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.on(l.FRAG_DECRYPTED,this.onFragDecrypted,this),r.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),r.on(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:r}=this;r.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.off(l.FRAG_LOADING,this.onFragLoading,this),r.off(l.FRAG_LOADED,this.onFragLoaded,this),r.off(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.off(l.FRAG_DECRYPTED,this.onFragDecrypted,this),r.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),r.off(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const r=new vl(this,"textTrack1"),a=new vl(this,"textTrack2"),_=new vl(this,"textTrack3"),E=new vl(this,"textTrack4");this.cea608Parser1=new Xo(1,r,a),this.cea608Parser2=new Xo(3,_,E)}}addCues(r,a,_,E,I){let N=!1;for(let H=I.length;H--;){const oe=I[H],he=Uu(oe[0],oe[1],a,_);if(he>=0&&(oe[0]=Math.min(oe[0],a),oe[1]=Math.max(oe[1],_),N=!0,he/(_-a)>.5))return}if(N||I.push([a,_]),this.config.renderTextTracksNatively){const H=this.captionsTracks[r];this.Cues.newCue(H,a,_,E)}else{const H=this.Cues.newCue(null,a,_,E);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:H,track:r})}}onInitPtsFound(r,{frag:a,id:_,initPTS:E,timescale:I}){const{unparsedVttFrags:N}=this;_==="main"&&(this.initPTS[a.cc]={baseTime:E,timescale:I}),N.length&&(this.unparsedVttFrags=[],N.forEach(H=>{this.onFragLoaded(l.FRAG_LOADED,H)}))}getExistingTrack(r,a){const{media:_}=this;if(_)for(let E=0;E<_.textTracks.length;E++){const I=_.textTracks[E];if(fc(I,{name:r,lang:a,attrs:{}}))return I}return null}createCaptionsTrack(r){this.config.renderTextTracksNatively?this.createNativeTrack(r):this.createNonNativeTrack(r)}createNativeTrack(r){if(this.captionsTracks[r])return;const{captionsProperties:a,captionsTracks:_,media:E}=this,{label:I,languageCode:N}=a[r],H=this.getExistingTrack(I,N);if(H)_[r]=H,yn(_[r]),Ir(_[r],E);else{const oe=this.createTextTrack("captions",I,N);oe&&(oe[r]=!0,_[r]=oe)}}createNonNativeTrack(r){if(this.nonNativeCaptionsTracks[r])return;const a=this.captionsProperties[r];if(!a)return;const _=a.label,E={_id:r,label:_,kind:"captions",default:a.media?!!a.media.default:!1,closedCaptions:a.media};this.nonNativeCaptionsTracks[r]=E,this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})}createTextTrack(r,a,_){const E=this.media;if(E)return E.addTextTrack(r,a,_)}onMediaAttaching(r,a){this.media=a.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:r}=this;Object.keys(r).forEach(a=>{yn(r[a]),delete r[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Xl(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:r}=this;if(!r)return;const a=r.textTracks;if(a)for(let _=0;_I.textCodec===au);if(this.config.enableWebVTT||E&&this.config.enableIMSC1){if(aa(this.tracks,_)){this.tracks=_;return}if(this.textTracks=[],this.tracks=_,this.config.renderTextTracksNatively){const N=this.media,H=N?on(N.textTracks):null;if(this.tracks.forEach((oe,he)=>{let be;if(H){let Se=null;for(let De=0;Dehe!==null).map(he=>he.label);oe.length&&R.warn(`Media element contains unused subtitle tracks: ${oe.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const N=this.tracks.map(H=>({label:H.name,kind:H.type.toLowerCase(),default:H.default,subtitleTrack:H}));this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:N})}}}onManifestLoaded(r,a){this.config.enableCEA708Captions&&a.captions&&a.captions.forEach(_=>{const E=/(?:CC|SERVICE)([1-4])/.exec(_.instreamId);if(!E)return;const I=`textTrack${E[1]}`,N=this.captionsProperties[I];N&&(N.label=_.name,_.lang&&(N.languageCode=_.lang),N.media=_)})}closedCaptionsForLevel(r){const a=this.hls.levels[r.level];return a==null?void 0:a.attrs["CLOSED-CAPTIONS"]}onFragLoading(r,a){if(this.enabled&&a.frag.type===Ye.MAIN){var _,E;const{cea608Parser1:I,cea608Parser2:N,lastSn:H}=this,{cc:oe,sn:he}=a.frag,be=(_=(E=a.part)==null?void 0:E.index)!=null?_:-1;I&&N&&(he!==H+1||he===H&&be!==this.lastPartIndex+1||oe!==this.lastCc)&&(I.reset(),N.reset()),this.lastCc=oe,this.lastSn=he,this.lastPartIndex=be}}onFragLoaded(r,a){const{frag:_,payload:E}=a;if(_.type===Ye.SUBTITLE)if(E.byteLength){const I=_.decryptdata,N="stats"in a;if(I==null||!I.encrypted||N){const H=this.tracks[_.level],oe=this.vttCCs;oe[_.cc]||(oe[_.cc]={start:_.start,prevCC:this.prevCC,new:!0},this.prevCC=_.cc),H&&H.textCodec===au?this._parseIMSC1(_,E):this._parseVTTs(a)}}else this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:new Error("Empty subtitle payload")})}_parseIMSC1(r,a){const _=this.hls;$o(a,this.initPTS[r.cc],E=>{this._appendCues(E,r.level),_.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},E=>{R.log(`Failed to parse IMSC1: ${E}`),_.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:E})})}_parseVTTs(r){var a;const{frag:_,payload:E}=r,{initPTS:I,unparsedVttFrags:N}=this,H=I.length-1;if(!I[_.cc]&&H===-1){N.push(r);return}const oe=this.hls,he=(a=_.initSegment)!=null&&a.data?dr(_.initSegment.data,new Uint8Array(E)):E;gl(he,this.initPTS[_.cc],this.vttCCs,_.cc,_.start,be=>{this._appendCues(be,_.level),oe.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:_})},be=>{const Se=be.message==="Missing initPTS for VTT MPEGTS";Se?N.push(r):this._fallbackToIMSC1(_,E),R.log(`Failed to parse VTT cue: ${be}`),!(Se&&H>_.cc)&&oe.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:be})})}_fallbackToIMSC1(r,a){const _=this.tracks[r.level];_.textCodec||$o(a,this.initPTS[r.cc],()=>{_.textCodec=au,this._parseIMSC1(r,a)},()=>{_.textCodec="wvtt"})}_appendCues(r,a){const _=this.hls;if(this.config.renderTextTracksNatively){const E=this.textTracks[a];if(!E||E.mode==="disabled")return;r.forEach(I=>Hr(E,I))}else{const E=this.tracks[a];if(!E)return;const I=E.default?"default":"subtitles"+a;_.trigger(l.CUES_PARSED,{type:"subtitles",cues:r,track:I})}}onFragDecrypted(r,a){const{frag:_}=a;_.type===Ye.SUBTITLE&&this.onFragLoaded(l.FRAG_LOADED,a)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(r,a){this.initCea608Parsers();const{cea608Parser1:_,cea608Parser2:E}=this;if(!this.enabled||!_||!E)return;const{frag:I,samples:N}=a;if(!(I.type===Ye.MAIN&&this.closedCaptionsForLevel(I)==="NONE"))for(let H=0;HAr(H[oe],a,_))}if(this.config.renderTextTracksNatively&&a===0&&E!==void 0){const{textTracks:H}=this;Object.keys(H).forEach(oe=>Ar(H[oe],a,E))}}}extractCea608Data(r){const a=[[],[]],_=r[0]&31;let E=2;for(let I=0;I<_;I++){const N=r[E++],H=127&r[E++],oe=127&r[E++];if(H===0&&oe===0)continue;if((4&N)!==0){const be=3&N;(be===0||be===1)&&(a[be].push(H),a[be].push(oe))}}return a}}function Ec(j){return j.characteristics&&/transcribes-spoken-dialog/gi.test(j.characteristics)&&/describes-music-and-sound/gi.test(j.characteristics)?"captions":"subtitles"}function fc(j,r){return!!j&&j.kind===Ec(r)&&is(r,j)}function Uu(j,r,a,_){return Math.min(r,_)-Math.max(j,a)}function Xl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class dc{constructor(r){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=r,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(r){this.streamController=r}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:r}=this;r.on(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.BUFFER_CODECS,this.onBufferCodecs,this),r.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:r}=this;r.off(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.BUFFER_CODECS,this.onBufferCodecs,this),r.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(r,a){const _=this.hls.levels[a.droppedLevel];this.isLevelAllowed(_)&&this.restrictedLevels.push({bitrate:_.bitrate,height:_.height,width:_.width})}onMediaAttaching(r,a){this.media=a.media instanceof HTMLVideoElement?a.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(r,a){const _=this.hls;this.restrictedLevels=[],this.firstLevel=a.firstLevel,_.config.capLevelToPlayerSize&&a.video&&this.startCapping()}onLevelsUpdated(r,a){this.timer&&y(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(r,a){this.hls.config.capLevelToPlayerSize&&a.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const r=this.hls.levels;if(r.length){const a=this.hls,_=this.getMaxLevel(r.length-1);_!==this.autoLevelCapping&&R.log(`Setting autoLevelCapping to ${_}: ${r[_].height}p@${r[_].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),a.autoLevelCapping=_,a.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=a.autoLevelCapping}}}getMaxLevel(r){const a=this.hls.levels;if(!a.length)return-1;const _=a.filter((E,I)=>this.isLevelAllowed(E)&&I<=r);return this.clientRect=null,dc.getMaxLevelByMediaSize(_,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const r=this.media,a={width:0,height:0};if(r){const _=r.getBoundingClientRect();a.width=_.width,a.height=_.height,!a.width&&!a.height&&(a.width=_.right-_.left||r.width||0,a.height=_.bottom-_.top||r.height||0)}return this.clientRect=a,a}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let r=1;if(!this.hls.config.ignoreDevicePixelRatio)try{r=self.devicePixelRatio}catch(a){}return r}isLevelAllowed(r){return!this.restrictedLevels.some(_=>r.bitrate===_.bitrate&&r.width===_.width&&r.height===_.height)}static getMaxLevelByMediaSize(r,a,_){if(!(r!=null&&r.length))return-1;const E=(H,oe)=>oe?H.width!==oe.width||H.height!==oe.height:!0;let I=r.length-1;const N=Math.max(a,_);for(let H=0;H=N||oe.height>=N)&&E(oe,r[H+1])){I=H;break}}return I}}class Ql{constructor(r){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=r,this.registerListeners()}setStreamController(r){this.streamController=r}registerListeners(){this.hls.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(r,a){const _=this.hls.config;if(_.capLevelOnFPSDrop){const E=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=E,E&&typeof E.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),_.fpsDroppedMonitoringPeriod)}}checkFPS(r,a,_){const E=performance.now();if(a){if(this.lastTime){const I=E-this.lastTime,N=_-this.lastDroppedFrames,H=a-this.lastDecodedFrames,oe=1e3*N/I,he=this.hls;if(he.trigger(l.FPS_DROP,{currentDropped:N,currentDecoded:H,totalDroppedFrames:_}),oe>0&&N>he.config.fpsDroppedMonitoringThreshold*H){let be=he.currentLevel;R.warn("drop FPS ratio greater than max allowed value for currentLevel: "+be),be>0&&(he.autoLevelCapping===-1||he.autoLevelCapping>=be)&&(be=be-1,he.trigger(l.FPS_DROP_LEVEL_CAPPING,{level:be,droppedLevel:he.currentLevel}),he.autoLevelCapping=be,this.streamController.nextLevelSwitch())}}this.lastTime=E,this.lastDroppedFrames=_,this.lastDecodedFrames=a}}checkFPSInterval(){const r=this.media;if(r)if(this.isVideoPlaybackQualityAvailable){const a=r.getVideoPlaybackQuality();this.checkFPS(r,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)}}const Go="[eme]";class nl{constructor(r){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=nl.CDMCleanupPromise?[nl.CDMCleanupPromise]:[],this.debug=R.debug.bind(R,Go),this.log=R.log.bind(R,Go),this.warn=R.warn.bind(R,Go),this.error=R.error.bind(R,Go),this.onMediaEncrypted=a=>{const{initDataType:_,initData:E}=a,I=`"${a.type}" event: init data type: "${_}"`;if(this.debug(I),E!==null){if(!this.keyFormatPromise){let N=Object.keys(this.keySystemAccessPromises);N.length||(N=qt(this.config));const H=N.map(tr).filter(oe=>!!oe);this.keyFormatPromise=this.getKeyFormatPromise(H)}this.keyFormatPromise.then(N=>{const H=Ft(N);let oe,he;if(_==="sinf"){if(H!==Me.FAIRPLAY){this.warn(`Ignoring unexpected "${a.type}" event with init data type: "${_}" for selected key-system ${H}`);return}const Xe=ze(new Uint8Array(E));try{const lt=M(JSON.parse(Xe).sinf),vt=Dr(lt);if(!vt)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");oe=vt.subarray(8,24),he=Me.FAIRPLAY}catch(lt){this.warn(`${I} Failed to parse sinf: ${lt}`);return}}else{if(H!==Me.WIDEVINE&&H!==Me.PLAYREADY){this.warn(`Ignoring unexpected "${a.type}" event with init data type: "${_}" for selected key-system ${H}`);return}const Xe=Sr(E),lt=Xe.filter(Qt=>!!Qt.systemId&&At(Qt.systemId)===H);lt.length>1&&this.warn(`${I} Using first of ${lt.length} pssh found for selected key-system ${H}`);const vt=lt[0];if(!vt){Xe.length===0||Xe.some(Qt=>!Qt.systemId)?this.warn(`${I} contains incomplete or invalid pssh data`):this.log(`ignoring ${I} for ${Xe.map(Qt=>At(Qt.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(he=At(vt.systemId),vt.version===0&&vt.data)if(he===Me.WIDEVINE){const Qt=vt.data.length-22;oe=vt.data.subarray(Qt,Qt+16)}else he===Me.PLAYREADY&&(oe=zt(vt.data))}if(!he||!oe){this.log(`Unable to handle ${I} with key-system ${H}`);return}const be=Nt.hexDump(oe),{keyIdToKeySessionPromise:Se,mediaKeySessions:De}=this;let He=Se[be];for(let Xe=0;Xethis.generateRequestWithPreferredKeySession(lt,_,E,"encrypted-event-key-match")),He.catch(yr=>this.handleError(yr));break}}if(!He){if(he!==H){this.log(`Ignoring "${I}" with ${he} init data for selected key-system ${H}`);return}He=Se[be]=this.getKeySystemSelectionPromise([he]).then(({keySystem:Xe,mediaKeys:lt})=>{var vt;this.throwIfDestroyed();const Qt=new Mr("ISO-23001-7",be,(vt=tr(Xe))!=null?vt:"");return Qt.pssh=new Uint8Array(E),Qt.keyId=oe,this.attemptSetMediaKeys(Xe,lt).then(()=>{this.throwIfDestroyed();const yr=this.createMediaKeySessionContext({decryptdata:Qt,keySystem:Xe,mediaKeys:lt});return this.generateRequestWithPreferredKeySession(yr,_,E,"encrypted-event-no-match")})}),He.catch(Xe=>this.handleError(Xe))}})}},this.onWaitingForKey=a=>{this.log(`"${a.type}" event`)},this.hls=r,this.config=r.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const r=this.config;r.requestMediaKeySystemAccessFunc=null,r.licenseXhrSetup=r.licenseResponseCallback=void 0,r.drmSystems=r.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(l.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(l.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(r){const{drmSystems:a,widevineLicenseUrl:_}=this.config,E=a[r];if(E)return E.licenseUrl;if(r===Me.WIDEVINE&&_)return _}getLicenseServerUrlOrThrow(r){const a=this.getLicenseServerUrl(r);if(a===void 0)throw new Error(`no license server URL configured for key-system "${r}"`);return a}getServerCertificateUrl(r){const{drmSystems:a}=this.config,_=a[r];if(_)return _.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${r}"]`)}attemptKeySystemAccess(r){const a=this.hls.levels,_=(N,H,oe)=>!!N&&oe.indexOf(N)===H,E=a.map(N=>N.audioCodec).filter(_),I=a.map(N=>N.videoCodec).filter(_);return E.length+I.length===0&&I.push("avc1.42e01e"),new Promise((N,H)=>{const oe=he=>{const be=he.shift();this.getMediaKeysPromise(be,E,I).then(Se=>N({keySystem:be,mediaKeys:Se})).catch(Se=>{he.length?oe(he):Se instanceof Jo?H(Se):H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_ACCESS,error:Se,fatal:!0},Se.message))})};oe(r)})}requestMediaKeySystemAccess(r,a){const{requestMediaKeySystemAccessFunc:_}=this.config;if(typeof _!="function"){let E=`Configured requestMediaKeySystemAccess is not a function ${_}`;return cr===null&&self.location.protocol==="http:"&&(E=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(E))}return _(r,a)}getMediaKeysPromise(r,a,_){const E=Qe(r,a,_,this.config.drmSystemOptions),I=this.keySystemAccessPromises[r];let N=I==null?void 0:I.keySystemAccess;if(!N){this.log(`Requesting encrypted media "${r}" key-system access with config: ${JSON.stringify(E)}`),N=this.requestMediaKeySystemAccess(r,E);const H=this.keySystemAccessPromises[r]={keySystemAccess:N};return N.catch(oe=>{this.log(`Failed to obtain access to key-system "${r}": ${oe}`)}),N.then(oe=>{this.log(`Access for key-system "${oe.keySystem}" obtained`);const he=this.fetchServerCertificate(r);return this.log(`Create media-keys for "${r}"`),H.mediaKeys=oe.createMediaKeys().then(be=>(this.log(`Media-keys created for "${r}"`),he.then(Se=>Se?this.setMediaKeysServerCertificate(be,r,Se):be))),H.mediaKeys.catch(be=>{this.error(`Failed to create media-keys for "${r}"}: ${be}`)}),H.mediaKeys})}return N.then(()=>I.mediaKeys)}createMediaKeySessionContext({decryptdata:r,keySystem:a,mediaKeys:_}){this.log(`Creating key-system session "${a}" keyId: ${Nt.hexDump(r.keyId||[])}`);const E=_.createSession(),I={decryptdata:r,keySystem:a,mediaKeys:_,mediaKeysSession:E,keyStatus:"status-pending"};return this.mediaKeySessions.push(I),I}renewKeySession(r){const a=r.decryptdata;if(a.pssh){const _=this.createMediaKeySessionContext(r),E=this.getKeyIdString(a),I="cenc";this.keyIdToKeySessionPromise[E]=this.generateRequestWithPreferredKeySession(_,I,a.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(r)}getKeyIdString(r){if(!r)throw new Error("Could not read keyId of undefined decryptdata");if(r.keyId===null)throw new Error("keyId is null");return Nt.hexDump(r.keyId)}updateKeySession(r,a){var _;const E=r.mediaKeysSession;return this.log(`Updating key-session "${E.sessionId}" for keyID ${Nt.hexDump(((_=r.decryptdata)==null?void 0:_.keyId)||[])} - } (data length: ${a&&a.byteLength})`),E.update(a)}selectKeySystemFormat(r){const a=Object.keys(r.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${r.sn} ${r.type}: ${r.level}) key formats ${a.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(a)),this.keyFormatPromise}getKeyFormatPromise(r){return new Promise((a,_)=>{const E=qt(this.config),I=r.map(Ft).filter(N=>!!N&&E.indexOf(N)!==-1);return this.getKeySystemSelectionPromise(I).then(({keySystem:N})=>{const H=tr(N);H?a(H):_(new Error(`Unable to find format for key-system "${N}"`))}).catch(_)})}loadKey(r){const a=r.keyInfo.decryptdata,_=this.getKeyIdString(a),E=`(keyId: ${_} format: "${a.keyFormat}" method: ${a.method} uri: ${a.uri})`;this.log(`Starting session for key ${E}`);let I=this.keyIdToKeySessionPromise[_];return I||(I=this.keyIdToKeySessionPromise[_]=this.getKeySystemForKeyPromise(a).then(({keySystem:N,mediaKeys:H})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${r.frag.sn} ${r.frag.type}: ${r.frag.level} using key ${E}`),this.attemptSetMediaKeys(N,H).then(()=>{this.throwIfDestroyed();const oe=this.createMediaKeySessionContext({keySystem:N,mediaKeys:H,decryptdata:a});return this.generateRequestWithPreferredKeySession(oe,"cenc",a.pssh,"playlist-key")}))),I.catch(N=>this.handleError(N))),I}throwIfDestroyed(r="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(r){this.hls&&(this.error(r.message),r instanceof Jo?this.hls.trigger(l.ERROR,r.data):this.hls.trigger(l.ERROR,{type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_KEYS,error:r,fatal:!0}))}getKeySystemForKeyPromise(r){const a=this.getKeyIdString(r),_=this.keyIdToKeySessionPromise[a];if(!_){const E=Ft(r.keyFormat),I=E?[E]:qt(this.config);return this.attemptKeySystemAccess(I)}return _}getKeySystemSelectionPromise(r){if(r.length||(r=qt(this.config)),r.length===0)throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(r)}attemptSetMediaKeys(r,a){const _=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${r}"`);const E=Promise.all(_).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(a)});return this.setMediaKeysQueue.push(E),E.then(()=>{this.log(`Media-keys set for "${r}"`),_.push(E),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(I=>_.indexOf(I)===-1)})}generateRequestWithPreferredKeySession(r,a,_,E){var I,N;const H=(I=this.config.drmSystems)==null||(N=I[r.keySystem])==null?void 0:N.generateRequest;if(H)try{const Xe=H.call(this.hls,a,_,r);if(!Xe)throw new Error("Invalid response from configured generateRequest filter");a=Xe.initDataType,_=r.decryptdata.pssh=Xe.initData?new Uint8Array(Xe.initData):null}catch(Xe){var oe;if(this.warn(Xe.message),(oe=this.hls)!=null&&oe.config.debug)throw Xe}if(_===null)return this.log(`Skipping key-session request for "${E}" (no initData)`),Promise.resolve(r);const he=this.getKeyIdString(r.decryptdata);this.log(`Generating key-session request for "${E}": ${he} (init data type: ${a} length: ${_?_.byteLength:null})`);const be=new Zn,Se=r._onmessage=Xe=>{const lt=r.mediaKeysSession;if(!lt){be.emit("error",new Error("invalid state"));return}const{messageType:vt,message:Qt}=Xe;this.log(`"${vt}" message event for session "${lt.sessionId}" message size: ${Qt.byteLength}`),vt==="license-request"||vt==="license-renewal"?this.renewLicense(r,Qt).catch(yr=>{this.handleError(yr),be.emit("error",yr)}):vt==="license-release"?r.keySystem===Me.FAIRPLAY&&(this.updateKeySession(r,xe("acknowledged")),this.removeSession(r)):this.warn(`unhandled media key message type "${vt}"`)},De=r._onkeystatuseschange=Xe=>{if(!r.mediaKeysSession){be.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(r);const vt=r.keyStatus;be.emit("keyStatus",vt),vt==="expired"&&(this.warn(`${r.keySystem} expired for key ${he}`),this.renewKeySession(r))};r.mediaKeysSession.addEventListener("message",Se),r.mediaKeysSession.addEventListener("keystatuseschange",De);const He=new Promise((Xe,lt)=>{be.on("error",lt),be.on("keyStatus",vt=>{vt.startsWith("usable")?Xe():vt==="output-restricted"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):vt==="internal-error"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${vt}"`)):vt==="expired"?lt(new Error("key expired while generating request")):this.warn(`unhandled key status change "${vt}"`)})});return r.mediaKeysSession.generateRequest(a,_).then(()=>{var Xe;this.log(`Request generated for key-session "${(Xe=r.mediaKeysSession)==null?void 0:Xe.sessionId}" keyId: ${he}`)}).catch(Xe=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_SESSION,error:Xe,fatal:!1},`Error generating key-session request: ${Xe}`)}).then(()=>He).catch(Xe=>{throw be.removeAllListeners(),this.removeSession(r),Xe}).then(()=>(be.removeAllListeners(),r))}onKeyStatusChange(r){r.mediaKeysSession.keyStatuses.forEach((a,_)=>{this.log(`key status change "${a}" for keyStatuses keyId: ${Nt.hexDump("buffer"in _?new Uint8Array(_.buffer,_.byteOffset,_.byteLength):new Uint8Array(_))} session keyId: ${Nt.hexDump(new Uint8Array(r.decryptdata.keyId||[]))} uri: ${r.decryptdata.uri}`),r.keyStatus=a})}fetchServerCertificate(r){const a=this.config,_=a.loader,E=new _(a),I=this.getServerCertificateUrl(r);return I?(this.log(`Fetching server certificate for "${r}"`),new Promise((N,H)=>{const oe={responseType:"arraybuffer",url:I},he=a.certLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{N(De.data)},onError:(De,He,Xe,lt)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:f({url:oe.url,data:void 0},De)},`"${r}" certificate request failed (${I}). Status: ${De.code} (${De.text})`))},onTimeout:(De,He,Xe)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:{url:oe.url,data:void 0}},`"${r}" certificate request timed out (${I})`))},onAbort:(De,He,Xe)=>{H(new Error("aborted"))}};E.load(oe,be,Se)})):Promise.resolve()}setMediaKeysServerCertificate(r,a,_){return new Promise((E,I)=>{r.setServerCertificate(_).then(N=>{this.log(`setServerCertificate ${N?"success":"not supported by CDM"} (${_==null?void 0:_.byteLength}) on "${a}"`),E(r)}).catch(N=>{I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:N,fatal:!0},N.message))})})}renewLicense(r,a){return this.requestLicense(r,new Uint8Array(a)).then(_=>this.updateKeySession(r,new Uint8Array(_)).catch(E=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:E,fatal:!0},E.message)}))}unpackPlayReadyKeyMessage(r,a){const _=String.fromCharCode.apply(null,new Uint16Array(a.buffer));if(!_.includes("PlayReadyKeyMessage"))return r.setRequestHeader("Content-Type","text/xml; charset=utf-8"),a;const E=new DOMParser().parseFromString(_,"application/xml"),I=E.querySelectorAll("HttpHeader");if(I.length>0){let be;for(let Se=0,De=I.length;Se in key message");return xe(atob(he))}setupLicenseXHR(r,a,_,E){const I=this.config.licenseXhrSetup;return I?Promise.resolve().then(()=>{if(!_.decryptdata)throw new Error("Key removed");return I.call(this.hls,r,a,_,E)}).catch(N=>{if(!_.decryptdata)throw N;return r.open("POST",a,!0),I.call(this.hls,r,a,_,E)}).then(N=>(r.readyState||r.open("POST",a,!0),{xhr:r,licenseChallenge:N||E})):(r.open("POST",a,!0),Promise.resolve({xhr:r,licenseChallenge:E}))}requestLicense(r,a){const _=this.config.keyLoadPolicy.default;return new Promise((E,I)=>{const N=this.getLicenseServerUrlOrThrow(r.keySystem);this.log(`Sending license request to URL: ${N}`);const H=new XMLHttpRequest;H.responseType="arraybuffer",H.onreadystatechange=()=>{if(!this.hls||!r.mediaKeysSession)return I(new Error("invalid state"));if(H.readyState===4)if(H.status===200){this._requestLicenseFailureCount=0;let oe=H.response;this.log(`License received ${oe instanceof ArrayBuffer?oe.byteLength:oe}`);const he=this.config.licenseResponseCallback;if(he)try{oe=he.call(this.hls,H,N,r)}catch(be){this.error(be)}E(oe)}else{const oe=_.errorRetry,he=oe?oe.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>he||H.status>=400&&H.status<500)I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:H,response:{url:N,data:void 0,code:H.status,text:H.statusText}},`License Request XHR failed (${N}). Status: ${H.status} (${H.statusText})`));else{const be=he-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${be} attempts left`),this.requestLicense(r,a).then(E,I)}}},r.licenseXhr&&r.licenseXhr.readyState!==XMLHttpRequest.DONE&&r.licenseXhr.abort(),r.licenseXhr=H,this.setupLicenseXHR(H,N,r,a).then(({xhr:oe,licenseChallenge:he})=>{r.keySystem==Me.PLAYREADY&&(he=this.unpackPlayReadyKeyMessage(oe,he)),oe.send(he)})})}onMediaAttached(r,a){if(!this.config.emeEnabled)return;const _=a.media;this.media=_,_.removeEventListener("encrypted",this.onMediaEncrypted),_.removeEventListener("waitingforkey",this.onWaitingForKey),_.addEventListener("encrypted",this.onMediaEncrypted),_.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const r=this.media,a=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Mr.clearKeyUriToKeyIdMap();const _=a.length;nl.CDMCleanupPromise=Promise.all(a.map(E=>this.removeSession(E)).concat(r==null?void 0:r.setMediaKeys(null).catch(E=>{this.log(`Could not clear media keys: ${E}`)}))).then(()=>{_&&(this.log("finished closing key sessions and clearing media keys"),a.length=0)}).catch(E=>{this.log(`Could not close sessions and clear media keys: ${E}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(r,{sessionKeys:a}){if(!(!a||!this.config.emeEnabled)&&!this.keyFormatPromise){const _=a.reduce((E,I)=>(E.indexOf(I.keyFormat)===-1&&E.push(I.keyFormat),E),[]);this.log(`Selecting key-system from session-keys ${_.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(_)}}removeSession(r){const{mediaKeysSession:a,licenseXhr:_}=r;if(a){this.log(`Remove licenses and keys and close session ${a.sessionId}`),r._onmessage&&(a.removeEventListener("message",r._onmessage),r._onmessage=void 0),r._onkeystatuseschange&&(a.removeEventListener("keystatuseschange",r._onkeystatuseschange),r._onkeystatuseschange=void 0),_&&_.readyState!==XMLHttpRequest.DONE&&_.abort(),r.mediaKeysSession=r.decryptdata=r.licenseXhr=void 0;const E=this.mediaKeySessions.indexOf(r);return E>-1&&this.mediaKeySessions.splice(E,1),a.remove().catch(I=>{this.log(`Could not remove session: ${I}`)}).then(()=>a.close()).catch(I=>{this.log(`Could not close session: ${I}`)})}}}nl.CDMCleanupPromise=void 0;class Jo extends Error{constructor(r,a){super(a),this.data=void 0,r.error||(r.error=new Error(a)),this.data=r,r.err=r.error}}var go;(function(j){j.MANIFEST="m",j.AUDIO="a",j.VIDEO="v",j.MUXED="av",j.INIT="i",j.CAPTION="c",j.TIMED_TEXT="tt",j.KEY="k",j.OTHER="o"})(go||(go={}));var Jl;(function(j){j.DASH="d",j.HLS="h",j.SMOOTH="s",j.OTHER="o"})(Jl||(Jl={}));var zu;(function(j){j.OBJECT="CMCD-Object",j.REQUEST="CMCD-Request",j.SESSION="CMCD-Session",j.STATUS="CMCD-Status"})(zu||(zu={}));const hu={[zu.OBJECT]:["br","d","ot","tb"],[zu.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[zu.SESSION]:["cid","pr","sf","sid","st","v"],[zu.STATUS]:["bs","rtp"]};class ou{constructor(r,a){this.value=void 0,this.params=void 0,Array.isArray(r)&&(r=r.map(_=>_ instanceof ou?_:new ou(_))),this.value=r,this.params=a}}class Dl{constructor(r){this.description=void 0,this.description=r}}const Zu="Dict";function hc(j){return Array.isArray(j)?JSON.stringify(j):j instanceof Map?"Map{}":j instanceof Set?"Set{}":typeof j=="object"?JSON.stringify(j):String(j)}function Sc(j,r,a,_){return new Error(`failed to ${j} "${hc(r)}" as ${a}`,{cause:_})}const yl="Bare Item",uo="Boolean",Cc="Byte Sequence",pc="Decimal",il="Integer";function ku(j){return j<-999999999999999||99999999999999912)throw gu(j,pc);const a=r.toString();return a.includes(".")?a:`${a}.0`}const Ol="String";function Ko(j){if(lo.test(j))throw gu(j,Ol);return`"${j.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(j){return j.description||j.toString().slice(7,-1)}function kl(j){const r=Eu(j);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r)===!1)throw gu(r,al);return r}function ul(j){switch(typeof j){case"number":if(!y(j))throw gu(j,yl);return Number.isInteger(j)?ol(j):uu(j);case"string":return Ko(j);case"symbol":return kl(j);case"boolean":return Ac(j);case"object":if(j instanceof Date)return je(j);if(j instanceof Uint8Array)return jo(j);if(j instanceof Dl)return kl(j);default:throw gu(j,yl)}}function Hu(j){if(/^[a-z*][a-z0-9\-_.*]*$/.test(j)===!1)throw gu(j,Dc);return j}function Ru(j){return j==null?"":Object.entries(j).map(([r,a])=>a===!0?`;${Hu(r)}`:`;${Hu(r)}=${ul(a)}`).join("")}function Su(j){return j instanceof ou?`${ul(j.value)}${Ru(j.params)}`:ul(j)}function _c(j){return`(${j.value.map(Su).join(" ")})${Ru(j.params)}`}function Rl(j,r={whitespace:!0}){if(typeof j!="object")throw gu(j,Zu);const a=j instanceof Map?j.entries():Object.entries(j),_=r!=null&&r.whitespace?" ":"";return Array.from(a).map(([E,I])=>{I instanceof ou||(I=new ou(I));let N=Hu(E);return I.value===!0?N+=Ru(I.params):(N+="=",Array.isArray(I.value)?N+=_c(I):N+=Su(I)),N}).join(`,${_}`)}function pu(j,r){return Rl(j,r)}const Yu=j=>j==="ot"||j==="sf"||j==="st",Cu=j=>typeof j=="number"?y(j):j!=null&&j!==""&&j!==!1;function Bc(j,r){const a=new URL(j),_=new URL(r);if(a.origin!==_.origin)return j;const E=a.pathname.split("/").slice(1),I=_.pathname.split("/").slice(1,-1);for(;E[0]===I[0];)E.shift(),I.shift();for(;I.length;)I.shift(),E.unshift("..");return E.join("/")}function Tc(){try{return crypto.randomUUID()}catch(j){try{const r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.slice(a.lastIndexOf("/")+1)}catch(r){let a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,E=>{const I=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(E=="x"?I:I&3|8).toString(16)})}}}const Ao=j=>Math.round(j),ll=(j,r)=>(r!=null&&r.baseUrl&&(j=Bc(j,r.baseUrl)),encodeURIComponent(j)),bl=j=>Ao(j/100)*100,Ll={br:Ao,d:Ao,bl,dl:bl,mtp:bl,nor:ll,rtp:bl,tb:Ao};function Ml(j,r){const a={};if(j==null||typeof j!="object")return a;const _=Object.keys(j).sort(),E=i({},Ll,r==null?void 0:r.formatters),I=r==null?void 0:r.filter;return _.forEach(N=>{if(I!=null&&I(N))return;let H=j[N];const oe=E[N];oe&&(H=oe(H,r)),!(N==="v"&&H===1)&&(N=="pr"&&H===1||Cu(H)&&(Yu(N)&&typeof H=="string"&&(H=new Dl(H)),a[N]=H))}),a}function xl(j,r={}){return j?pu(Ml(j,r),i({whitespace:!1},r)):""}function Fl(j,r={}){if(!j)return{};const a=Object.entries(j),_=Object.entries(hu).concat(Object.entries((r==null?void 0:r.customHeaderMap)||{})),E=a.reduce((I,N)=>{var H,oe;const[he,be]=N,Se=((H=_.find(De=>De[1].includes(he)))==null?void 0:H[0])||zu.REQUEST;return(oe=I[Se])!=null||(I[Se]={}),I[Se][he]=be,I},{});return Object.entries(E).reduce((I,[N,H])=>(I[N]=xl(H,r),I),{})}function Oc(j,r,a){return i(j,Fl(r,a))}const ql="CMCD";function Bl(j,r={}){if(!j)return"";const a=xl(j,r);return`${ql}=${encodeURIComponent(a)}`}const cl=/CMCD=[^&#]+/;function Pc(j,r,a){const _=Bl(r,a);if(!_)return j;if(cl.test(j))return j.replace(cl,_);const E=j.includes("?")?"&":"?";return`${j}${E}${_}`}class mc{constructor(r){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=E=>{try{this.apply(E,{ot:go.MANIFEST,su:!this.initialized})}catch(I){R.warn("Could not generate manifest CMCD data.",I)}},this.applyFragmentData=E=>{try{const I=E.frag,N=this.hls.levels[I.level],H=this.getObjectType(I),oe={d:I.duration*1e3,ot:H};(H===go.VIDEO||H===go.AUDIO||H==go.MUXED)&&(oe.br=N.bitrate/1e3,oe.tb=this.getTopBandwidth(H)/1e3,oe.bl=this.getBufferLength(H)),this.apply(E,oe)}catch(I){R.warn("Could not generate segment CMCD data.",I)}},this.hls=r;const a=this.config=r.config,{cmcd:_}=a;_!=null&&(a.pLoader=this.createPlaylistLoader(),a.fLoader=this.createFragmentLoader(),this.sid=_.sessionId||Tc(),this.cid=_.contentId,this.useHeaders=_.useHeaders===!0,this.includeKeys=_.includeKeys,this.registerListeners())}registerListeners(){const r=this.hls;r.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(l.MEDIA_DETACHED,this.onMediaDetached,this),r.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const r=this.hls;r.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(l.MEDIA_DETACHED,this.onMediaDetached,this),r.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(r,a){this.media=a.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(r,a){var _,E;this.audioBuffer=(_=a.tracks.audio)==null?void 0:_.buffer,this.videoBuffer=(E=a.tracks.video)==null?void 0:E.buffer}createData(){var r;return{v:1,sf:Jl.HLS,sid:this.sid,cid:this.cid,pr:(r=this.media)==null?void 0:r.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(r,a={}){i(a,this.createData());const _=a.ot===go.INIT||a.ot===go.VIDEO||a.ot===go.MUXED;this.starved&&_&&(a.bs=!0,a.su=!0,this.starved=!1),a.su==null&&(a.su=this.buffering);const{includeKeys:E}=this;E&&(a=Object.keys(a).reduce((I,N)=>(E.includes(N)&&(I[N]=a[N]),I),{})),this.useHeaders?(r.headers||(r.headers={}),Oc(r.headers,a)):r.url=Pc(r.url,a)}getObjectType(r){const{type:a}=r;if(a==="subtitle")return go.TIMED_TEXT;if(r.sn==="initSegment")return go.INIT;if(a==="audio")return go.AUDIO;if(a==="main")return this.hls.audioTracks.length?go.VIDEO:go.MUXED}getTopBandwidth(r){let a=0,_;const E=this.hls;if(r===go.AUDIO)_=E.audioTracks;else{const I=E.maxAutoLevel,N=I>-1?I+1:E.levels.length;_=E.levels.slice(0,N)}for(const I of _)I.bitrate>a&&(a=I.bitrate);return a>0?a:NaN}getBufferLength(r){const a=this.hls.media,_=r===go.AUDIO?this.audioBuffer:this.videoBuffer;return!_||!a?NaN:hr.bufferInfo(_,a.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:r}=this.config,a=this.applyPlaylistData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}createFragmentLoader(){const{fLoader:r}=this.config,a=this.applyFragmentData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}}const Lu=3e5;class Nl{constructor(r){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=r,this.log=R.log.bind(R,"[content-steering]:"),this.registerListeners()}registerListeners(){const r=this.hls;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.ERROR,this.onError,this)}unregisterListeners(){const r=this.hls;r&&(r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const r=this.timeToLoad*1e3-(performance.now()-this.updated);if(r>0){this.scheduleRefresh(this.uri,r);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(r){const a=this.levels;a&&(this.levels=a.filter(_=>_!==r))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(r,a){const{contentSteering:_}=a;_!==null&&(this.pathwayId=_.pathwayId,this.uri=_.uri,this.started&&this.startLoad())}onManifestParsed(r,a){this.audioTracks=a.audioTracks,this.subtitleTracks=a.subtitleTracks}onError(r,a){const{errorAction:_}=a;if((_==null?void 0:_.action)===Yn.SendAlternateToPenaltyBox&&_.flags===va.MoveAllAlternatesMatchingHost){const E=this.levels;let I=this.pathwayPriority,N=this.pathwayId;if(a.context){const{groupId:H,pathwayId:oe,type:he}=a.context;H&&E?N=this.getPathwayForGroupId(H,he,N):oe&&(N=oe)}N in this.penalizedPathways||(this.penalizedPathways[N]=performance.now()),!I&&E&&(I=E.reduce((H,oe)=>(H.indexOf(oe.pathwayId)===-1&&H.push(oe.pathwayId),H),[])),I&&I.length>1&&(this.updatePathwayPriority(I),_.resolved=this.pathwayId!==N),_.resolved||R.warn(`Could not resolve ${a.details} ("${a.error.message}") with content-steering for Pathway: ${N} levels: ${E&&E.length} priorities: ${JSON.stringify(I)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(r){this.levels=r;let a=this.getLevelsForPathway(this.pathwayId);if(a.length===0){const _=r[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${_}"`),a=this.getLevelsForPathway(_),this.pathwayId=_}return a.length!==r.length&&this.log(`Found ${a.length}/${r.length} levels in Pathway "${this.pathwayId}"`),a}getLevelsForPathway(r){return this.levels===null?[]:this.levels.filter(a=>r===a.pathwayId)}updatePathwayPriority(r){this.pathwayPriority=r;let a;const _=this.penalizedPathways,E=performance.now();Object.keys(_).forEach(I=>{E-_[I]>Lu&&delete _[I]});for(let I=0;I0){this.log(`Setting Pathway to "${N}"`),this.pathwayId=N,za(a),this.hls.trigger(l.LEVELS_UPDATED,{levels:a});const he=this.hls.levels[H];oe&&he&&this.levels&&(he.attrs["STABLE-VARIANT-ID"]!==oe.attrs["STABLE-VARIANT-ID"]&&he.bitrate!==oe.bitrate&&this.log(`Unstable Pathways change from bitrate ${oe.bitrate} to ${he.bitrate}`),this.hls.nextLoadLevel=H);break}}}getPathwayForGroupId(r,a,_){const E=this.getLevelsForPathway(_).concat(this.levels||[]);for(let I=0;I{const{ID:N,"BASE-ID":H,"URI-REPLACEMENT":oe}=I;if(a.some(be=>be.pathwayId===N))return;const he=this.getLevelsForPathway(H).map(be=>{const Se=new Z(be.attrs);Se["PATHWAY-ID"]=N;const De=Se.AUDIO&&`${Se.AUDIO}_clone_${N}`,He=Se.SUBTITLES&&`${Se.SUBTITLES}_clone_${N}`;De&&(_[Se.AUDIO]=De,Se.AUDIO=De),He&&(E[Se.SUBTITLES]=He,Se.SUBTITLES=He);const Xe=ec(be.uri,Se["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",oe),lt=new Fa({attrs:Se,audioCodec:be.audioCodec,bitrate:be.bitrate,height:be.height,name:be.name,url:Xe,videoCodec:be.videoCodec,width:be.width});if(be.audioGroups)for(let vt=1;vt{this.log(`Loaded steering manifest: "${E}"`);const Xe=be.data;if(Xe.VERSION!==1){this.log(`Steering VERSION ${Xe.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Xe.TTL;const{"RELOAD-URI":lt,"PATHWAY-CLONES":vt,"PATHWAY-PRIORITY":Qt}=Xe;if(lt)try{this.uri=new self.URL(lt,E).href}catch(Tr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${lt}`);return}this.scheduleRefresh(this.uri||De.url),vt&&this.clonePathways(vt);const yr={steeringManifest:Xe,url:E.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,yr),Qt&&this.updatePathwayPriority(Qt)},onError:(be,Se,De,He)=>{if(this.log(`Error loading steering manifest: ${be.code} ${be.text} (${Se.url})`),this.stopLoad(),be.code===410){this.enabled=!1,this.log(`Steering manifest ${Se.url} no longer available`);return}let Xe=this.timeToLoad*1e3;if(be.code===429){const lt=this.loader;if(typeof(lt==null?void 0:lt.getResponseHeader)=="function"){const vt=lt.getResponseHeader("Retry-After");vt&&(Xe=parseFloat(vt)*1e3)}this.log(`Steering manifest ${Se.url} rate limited`);return}this.scheduleRefresh(this.uri||Se.url,Xe)},onTimeout:(be,Se,De)=>{this.log(`Timeout loading steering manifest (${Se.url})`),this.scheduleRefresh(this.uri||Se.url)}};this.log(`Requesting steering manifest: ${E}`),this.loader.load(I,oe,he)}scheduleRefresh(r,a=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var _;const E=(_=this.hls)==null?void 0:_.media;if(E&&!E.ended){this.loadSteeringManifest(r);return}this.scheduleRefresh(r,this.timeToLoad*1e3)},a)}}function wl(j,r,a,_){j&&Object.keys(r).forEach(E=>{const I=j.filter(N=>N.groupId===E).map(N=>{const H=i({},N);return H.details=void 0,H.attrs=new Z(H.attrs),H.url=H.attrs.URI=ec(N.url,N.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",a),H.groupId=H.attrs["GROUP-ID"]=r[E],H.attrs["PATHWAY-ID"]=_,H});j.push(...I)})}function ec(j,r,a,_){const{HOST:E,PARAMS:I,[a]:N}=_;let H;r&&(H=N==null?void 0:N[r],H&&(j=H));const oe=new self.URL(j);return E&&!H&&(oe.host=E),I&&Object.keys(I).sort().forEach(he=>{he&&oe.searchParams.set(he,I[he])}),oe.href}const tc=/^age:\s*[\d.]+\s*$/im;class vc{constructor(r){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=r&&r.xhrSetup||null,this.stats=new Q,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(r,a,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=a,this.callbacks=_,this.loadInternal()}loadInternal(){const{config:r,context:a}=this;if(!r||!a)return;const _=this.loader=new self.XMLHttpRequest,E=this.stats;E.loading.first=0,E.loaded=0,E.aborted=!1;const I=this.xhrSetup;I?Promise.resolve().then(()=>{if(!(this.loader!==_||this.stats.aborted))return I(_,a.url)}).catch(N=>{if(!(this.loader!==_||this.stats.aborted))return _.open("GET",a.url,!0),I(_,a.url)}).then(()=>{this.loader!==_||this.stats.aborted||this.openAndSendXhr(_,a,r)}).catch(N=>{this.callbacks.onError({code:_.status,text:N.message},a,_,E)}):this.openAndSendXhr(_,a,r)}openAndSendXhr(r,a,_){r.readyState||r.open("GET",a.url,!0);const E=a.headers,{maxTimeToFirstByteMs:I,maxLoadTimeMs:N}=_.loadPolicy;if(E)for(const H in E)r.setRequestHeader(H,E[H]);a.rangeEnd&&r.setRequestHeader("Range","bytes="+a.rangeStart+"-"+(a.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=a.responseType,self.clearTimeout(this.requestTimeout),_.timeout=I&&y(I)?I:N,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),_.timeout),r.send()}readystatechange(){const{context:r,loader:a,stats:_}=this;if(!r||!a)return;const E=a.readyState,I=this.config;if(!_.aborted&&E>=2&&(_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start),I.timeout!==I.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),I.timeout=I.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),I.loadPolicy.maxLoadTimeMs-(_.loading.first-_.loading.start)))),E===4)){self.clearTimeout(this.requestTimeout),a.onreadystatechange=null,a.onprogress=null;const N=a.status,H=a.responseType==="text"?a.responseText:null;if(N>=200&&N<300){const Se=H!=null?H:a.response;if(Se!=null){_.loading.end=Math.max(self.performance.now(),_.loading.first);const De=a.responseType==="arraybuffer"?Se.byteLength:Se.length;if(_.loaded=_.total=De,_.bwEstimate=_.total*8e3/(_.loading.end-_.loading.first),!this.callbacks)return;const He=this.callbacks.onProgress;if(He&&He(_,r,Se,a),!this.callbacks)return;const Xe={url:a.responseURL,data:Se,code:N};this.callbacks.onSuccess(Xe,_,r,a);return}}const oe=I.loadPolicy.errorRetry,he=_.retry,be={url:r.url,data:void 0,code:N};fo(oe,he,!1,be)?this.retry(oe):(R.error(`${N} while loading ${r.url}`),this.callbacks.onError({code:N,text:a.statusText},r,a,_))}}loadtimeout(){if(!this.config)return;const r=this.config.loadPolicy.timeoutRetry,a=this.stats.retry;if(fo(r,a,!0))this.retry(r);else{var _;R.warn(`timeout while loading ${(_=this.context)==null?void 0:_.url}`);const E=this.callbacks;E&&(this.abortInternal(),E.onTimeout(this.stats,this.context,this.loader))}}retry(r){const{context:a,stats:_}=this;this.retryDelay=Ks(r,_.retry),_.retry++,R.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${a==null?void 0:a.url}, retrying ${_.retry}/${r.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(r){const a=this.stats;a.loaded=r.loaded,r.lengthComputable&&(a.total=r.total)}getCacheAge(){let r=null;if(this.loader&&tc.test(this.loader.getAllResponseHeaders())){const a=this.loader.getResponseHeader("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.loader&&new RegExp(`^${r}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(r):null}}function A(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(j){}return!1}const P=/(\d+)-(\d+)\/(\d+)/;class D{constructor(r){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=r.fetchSetup||zn,this.controller=new self.AbortController,this.stats=new Q}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(r,a,_){const E=this.stats;if(E.loading.start)throw new Error("Loader can only be used once.");E.loading.start=self.performance.now();const I=pe(r,this.controller.signal),N=_.onProgress,H=r.responseType==="arraybuffer",oe=H?"byteLength":"length",{maxTimeToFirstByteMs:he,maxLoadTimeMs:be}=a.loadPolicy;this.context=r,this.config=a,this.callbacks=_,this.request=this.fetchSetup(r,I),self.clearTimeout(this.requestTimeout),a.timeout=he&&y(he)?he:be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},a.timeout),self.fetch(this.request).then(Se=>{this.response=this.loader=Se;const De=Math.max(self.performance.now(),E.loading.start);if(self.clearTimeout(this.requestTimeout),a.timeout=be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},be-(De-E.loading.start)),!Se.ok){const{status:He,statusText:Xe}=Se;throw new dn(Xe||"fetch, bad network response",He,Se)}return E.loading.first=De,E.total=an(Se.headers)||E.total,N&&y(a.highWaterMark)?this.loadProgressively(Se,E,r,a.highWaterMark,N):H?Se.arrayBuffer():r.responseType==="json"?Se.json():Se.text()}).then(Se=>{const De=this.response;if(!De)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),E.loading.end=Math.max(self.performance.now(),E.loading.first);const He=Se[oe];He&&(E.loaded=E.total=He);const Xe={url:De.url,data:Se,code:De.status};N&&!y(a.highWaterMark)&&N(E,r,Se,De),_.onSuccess(Xe,E,r,De)}).catch(Se=>{if(self.clearTimeout(this.requestTimeout),E.aborted)return;const De=Se&&Se.code||0,He=Se?Se.message:null;_.onError({code:De,text:He},r,Se?Se.details:null,E)})}getCacheAge(){let r=null;if(this.response){const a=this.response.headers.get("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.response?this.response.headers.get(r):null}loadProgressively(r,a,_,E=0,I){const N=new Bs,H=r.body.getReader(),oe=()=>H.read().then(he=>{if(he.done)return N.dataLength&&I(a,_,N.flush(),r),Promise.resolve(new ArrayBuffer(0));const be=he.value,Se=be.length;return a.loaded+=Se,Se=E&&I(a,_,N.flush(),r)):I(a,_,be,r),oe()}).catch(()=>Promise.reject());return oe()}}function pe(j,r){const a={method:"GET",mode:"cors",credentials:"same-origin",signal:r,headers:new self.Headers(i({},j.headers))};return j.rangeEnd&&a.headers.set("Range","bytes="+j.rangeStart+"-"+String(j.rangeEnd-1)),a}function Oe(j){const r=P.exec(j);if(r)return parseInt(r[2])-parseInt(r[1])+1}function an(j){const r=j.get("Content-Range");if(r){const _=Oe(r);if(y(_))return _}const a=j.get("Content-Length");if(a)return parseInt(a)}function zn(j,r){return new self.Request(j.url,r)}class dn extends Error{constructor(r,a,_){super(r),this.code=void 0,this.details=void 0,this.code=a,this.details=_}}const Mi=/\s/,Qa={newCue(j,r,a,_){const E=[];let I,N,H,oe,he;const be=self.VTTCue||self.TextTrackCue;for(let De=0;De<_.rows.length;De++)if(I=_.rows[De],H=!0,oe=0,he="",!I.isEmpty()){var Se;for(let lt=0;lt=16?oe--:oe++;const He=Wl(he.trim()),Xe=ju(r,a,He);j!=null&&(Se=j.cues)!=null&&Se.getCueById(Xe)||(N=new be(r,a,He),N.id=Xe,N.line=De+1,N.align="left",N.position=10+Math.min(80,Math.floor(oe*8/32)*10),E.push(N))}return j&&E.length&&(E.sort((De,He)=>De.line==="auto"||He.line==="auto"?0:De.line>8&&He.line>8?He.line-De.line:De.line-He.line),E.forEach(De=>Hr(j,De))),E}},Oa={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},To=f(f({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:vc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Bo,bufferController:mo,capLevelController:dc,errorController:ts,fpsController:Ql,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:cr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Oa},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ds()),{},{subtitleStreamController:cs,subtitleTrackController:Hs,timelineController:Ma,audioStreamController:ha,audioTrackController:gs,emeController:nl,cmcdController:mc,contentSteeringController:Nl});function ds(){return{cueHandler:Qa,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function yo(j,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(r.liveMaxLatencyDurationCount!==void 0&&(r.liveSyncDurationCount===void 0||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(r.liveMaxLatencyDuration!==void 0&&(r.liveSyncDuration===void 0||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const a=ys(j),_=["manifest","level","frag"],E=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return _.forEach(I=>{const N=`${I==="level"?"playlist":I}LoadPolicy`,H=r[N]===void 0,oe=[];E.forEach(he=>{const be=`${I}Loading${he}`,Se=r[be];if(Se!==void 0&&H){oe.push(be);const De=a[N].default;switch(r[N]={default:De},he){case"TimeOut":De.maxLoadTimeMs=Se,De.maxTimeToFirstByteMs=Se;break;case"MaxRetry":De.errorRetry.maxNumRetry=Se,De.timeoutRetry.maxNumRetry=Se;break;case"RetryDelay":De.errorRetry.retryDelayMs=Se,De.timeoutRetry.retryDelayMs=Se;break;case"MaxRetryTimeout":De.errorRetry.maxRetryDelayMs=Se,De.timeoutRetry.maxRetryDelayMs=Se;break}}}),oe.length&&R.warn(`hls.js config: "${oe.join('", "')}" setting(s) are deprecated, use "${N}": ${JSON.stringify(r[N])}`)}),f(f({},a),r)}function ys(j){return j&&typeof j=="object"?Array.isArray(j)?j.map(ys):Object.keys(j).reduce((r,a)=>(r[a]=ys(j[a]),r),{}):j}function gc(j){const r=j.loader;r!==D&&r!==vc?(R.log("[config]: Custom loader detected, cannot enable progressive streaming"),j.progressive=!1):A()&&(j.loader=D,j.progressive=!0,j.enableSoftwareAES=!0,R.log("[config]: Progressive streaming enabled, using FetchLoader"))}let $l;class rc extends Ka{constructor(r,a){super(r,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=a,this._registerListeners()}_registerListeners(){const{hls:r}=this;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.LEVEL_LOADED,this.onLevelLoaded,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.FRAG_BUFFERED,this.onFragBuffered,this),r.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:r}=this;r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.LEVEL_LOADED,this.onLevelLoaded,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.FRAG_BUFFERED,this.onFragBuffered,this),r.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(a=>{a.loadError=0,a.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(r,a){this.resetLevels()}onManifestLoaded(r,a){const _=this.hls.config.preferManagedMediaSource,E=[],I={},N={};let H=!1,oe=!1,he=!1;a.levels.forEach(be=>{var Se,De;const He=be.attrs;let{audioCodec:Xe,videoCodec:lt}=be;((Se=Xe)==null?void 0:Se.indexOf("mp4a.40.34"))!==-1&&($l||($l=/chrome|firefox/i.test(navigator.userAgent)),$l&&(be.audioCodec=Xe=void 0)),Xe&&(be.audioCodec=Xe=wi(Xe,_)),((De=lt)==null?void 0:De.indexOf("avc1"))===0&&(lt=be.videoCodec=Ji(lt));const{width:vt,height:Qt,unknownCodecs:yr}=be;if(H||(H=!!(vt&&Qt)),oe||(oe=!!lt),he||(he=!!Xe),yr!=null&&yr.length||Xe&&!yi(Xe,"audio",_)||lt&&!yi(lt,"video",_))return;const{CODECS:Tr,"FRAME-RATE":Wr,"HDCP-LEVEL":Br,"PATHWAY-ID":Cn,RESOLUTION:un,"VIDEO-RANGE":Hn}=He,En=`${`${Cn||"."}-`}${be.bitrate}-${un}-${Wr}-${Tr}-${Hn}-${Br}`;if(I[En])if(I[En].uri!==be.url&&!be.attrs["PATHWAY-ID"]){const qn=N[En]+=1;be.attrs["PATHWAY-ID"]=new Array(qn+1).join(".");const Ta=new Fa(be);I[En]=Ta,E.push(Ta)}else I[En].addGroupId("audio",He.AUDIO),I[En].addGroupId("text",He.SUBTITLES);else{const qn=new Fa(be);I[En]=qn,N[En]=1,E.push(qn)}}),this.filterAndSortMediaOptions(E,a,H,oe,he)}filterAndSortMediaOptions(r,a,_,E,I){let N=[],H=[],oe=r;if((_||E)&&I&&(oe=oe.filter(({videoCodec:Xe,videoRange:lt,width:vt,height:Qt})=>(!!Xe||!!(vt&&Qt))&&es(lt))),oe.length===0){Promise.resolve().then(()=>{if(this.hls){a.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(a.levels[0].attrs)}`);const Xe=new Error("no level with compatible codecs found in manifest");this.hls.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:a.url,error:Xe,reason:Xe.message})}});return}if(a.audioTracks){const{preferManagedMediaSource:Xe}=this.hls.config;N=a.audioTracks.filter(lt=>!lt.audioCodec||yi(lt.audioCodec,"audio",Xe)),nc(N)}a.subtitles&&(H=a.subtitles,nc(H));const he=oe.slice(0);oe.sort((Xe,lt)=>{if(Xe.attrs["HDCP-LEVEL"]!==lt.attrs["HDCP-LEVEL"])return(Xe.attrs["HDCP-LEVEL"]||"")>(lt.attrs["HDCP-LEVEL"]||"")?1:-1;if(_&&Xe.height!==lt.height)return Xe.height-lt.height;if(Xe.frameRate!==lt.frameRate)return Xe.frameRate-lt.frameRate;if(Xe.videoRange!==lt.videoRange)return Ds.indexOf(Xe.videoRange)-Ds.indexOf(lt.videoRange);if(Xe.videoCodec!==lt.videoCodec){const vt=oi(Xe.videoCodec),Qt=oi(lt.videoCodec);if(vt!==Qt)return Qt-vt}if(Xe.uri===lt.uri&&Xe.codecSet!==lt.codecSet){const vt=Wi(Xe.codecSet),Qt=Wi(lt.codecSet);if(vt!==Qt)return Qt-vt}return Xe.averageBitrate!==lt.averageBitrate?Xe.averageBitrate-lt.averageBitrate:0});let be=he[0];if(this.steering&&(oe=this.steering.filterParsedLevels(oe),oe.length!==he.length)){for(let Xe=0;Xevt&&vt===To.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Qt)}break}const De=I&&!E,He={levels:oe,audioTracks:N,subtitleTracks:H,sessionData:a.sessionData,sessionKeys:a.sessionKeys,firstLevel:this._firstLevel,stats:a.stats,audio:I,video:E,altAudio:!De&&N.some(Xe=>!!Xe.url)};this.hls.trigger(l.MANIFEST_PARSED,He),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(r){const a=this._levels;if(a.length===0)return;if(r<0||r>=a.length){const be=new Error("invalid level idx"),Se=r<0;if(this.hls.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.LEVEL_SWITCH_ERROR,level:r,fatal:Se,error:be,reason:be.message}),Se)return;r=Math.min(r,a.length-1)}const _=this.currentLevelIndex,E=this.currentLevel,I=E?E.attrs["PATHWAY-ID"]:void 0,N=a[r],H=N.attrs["PATHWAY-ID"];if(this.currentLevelIndex=r,this.currentLevel=N,_===r&&N.details&&E&&I===H)return;this.log(`Switching to level ${r} (${N.height?N.height+"p ":""}${N.videoRange?N.videoRange+" ":""}${N.codecSet?N.codecSet+" ":""}@${N.bitrate})${H?" with Pathway "+H:""} from level ${_}${I?" with Pathway "+I:""}`);const oe={level:r,attrs:N.attrs,details:N.details,bitrate:N.bitrate,averageBitrate:N.averageBitrate,maxBitrate:N.maxBitrate,realBitrate:N.realBitrate,width:N.width,height:N.height,codecSet:N.codecSet,audioCodec:N.audioCodec,videoCodec:N.videoCodec,audioGroups:N.audioGroups,subtitleGroups:N.subtitleGroups,loaded:N.loaded,loadError:N.loadError,fragmentError:N.fragmentError,name:N.name,id:N.id,uri:N.uri,url:N.url,urlId:0,audioGroupIds:N.audioGroupIds,textGroupIds:N.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,oe);const he=N.details;if(!he||he.live){const be=this.switchParams(N.uri,E==null?void 0:E.details,he);this.loadPlaylist(be)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}get firstLevel(){return this._firstLevel}set firstLevel(r){this._firstLevel=r}get startLevel(){if(this._startLevel===void 0){const r=this.hls.config.startLevel;return r!==void 0?r:this.hls.firstAutoLevel}return this._startLevel}set startLevel(r){this._startLevel=r}onError(r,a){a.fatal||!a.context||a.context.type===ye.LEVEL&&a.context.level===this.level&&this.checkRetry(a)}onFragBuffered(r,{frag:a}){if(a!==void 0&&a.type===Ye.MAIN){const _=a.elementaryStreams;if(!Object.keys(_).some(I=>!!_[I]))return;const E=this._levels[a.level];E!=null&&E.loadError&&(this.log(`Resetting level error count of ${E.loadError} on frag buffered`),E.loadError=0)}}onLevelLoaded(r,a){var _;const{level:E,details:I}=a,N=this._levels[E];if(!N){var H;this.warn(`Invalid level index ${E}`),(H=a.deliveryDirectives)!=null&&H.skip&&(I.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(N.fragmentError===0&&(N.loadError=0),this.playlistLoaded(E,a,N.details)):(_=a.deliveryDirectives)!=null&&_.skip&&(I.deltaUpdateFailed=!0)}loadPlaylist(r){super.loadPlaylist();const a=this.currentLevelIndex,_=this.currentLevel;if(_&&this.shouldLoadPlaylist(_)){let E=_.uri;if(r)try{E=r.addDirectives(E)}catch(N){this.warn(`Could not construct new URL with HLS Delivery Directives: ${N}`)}const I=_.attrs["PATHWAY-ID"];this.log(`Loading level index ${a}${(r==null?void 0:r.msn)!==void 0?" at sn "+r.msn+" part "+r.part:""} with${I?" Pathway "+I:""} ${E}`),this.clearTimer(),this.hls.trigger(l.LEVEL_LOADING,{url:E,level:a,pathwayId:_.attrs["PATHWAY-ID"],id:0,deliveryDirectives:r||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}removeLevel(r){var a;const _=this._levels.filter((E,I)=>I!==r?!0:(this.steering&&this.steering.removeLevel(E),E===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,E.details&&E.details.fragments.forEach(N=>N.level=-1)),!1));za(_),this._levels=_,this.currentLevelIndex>-1&&(a=this.currentLevel)!=null&&a.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(l.LEVELS_UPDATED,{levels:_})}onLevelsUpdated(r,{levels:a}){this._levels=a}checkMaxAutoUpdated(){const{autoLevelCapping:r,maxAutoLevel:a,maxHdcpLevel:_}=this.hls;this._maxAutoLevel!==a&&(this._maxAutoLevel=a,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:r,levels:this.levels,maxAutoLevel:a,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:_}))}}function nc(j){const r={};j.forEach(a=>{const _=a.groupId||"";a.id=r[_]=r[_]||0,r[_]++})}class fl{constructor(r){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=r}abort(r){for(const _ in this.keyUriToKeyInfo){const E=this.keyUriToKeyInfo[_].loader;if(E){var a;if(r&&r!==((a=E.context)==null?void 0:a.frag.type))return;E.abort()}}}detach(){for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r];(a.mediaKeySessionContext||a.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[r]}}destroy(){this.detach();for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r].loader;a&&a.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(r,a=x.KEY_LOAD_ERROR,_,E,I){return new Ni({type:b.NETWORK_ERROR,details:a,fatal:!1,frag:r,response:I,error:_,networkDetails:E})}loadClear(r,a){if(this.emeController&&this.config.emeEnabled){const{sn:_,cc:E}=r;for(let I=0;I{N.setKeyFormat(H)});break}}}}load(r){return!r.decryptdata&&r.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(r).then(a=>this.loadInternal(r,a)):this.loadInternal(r)}loadInternal(r,a){var _,E;a&&r.setKeyFormat(a);const I=r.decryptdata;if(!I){const he=new Error(a?`Expected frag.decryptdata to be defined after setting format ${a}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,he))}const N=I.uri;if(!N)return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${N}"`)));let H=this.keyUriToKeyInfo[N];if((_=H)!=null&&_.decryptdata.key)return I.key=H.decryptdata.key,Promise.resolve({frag:r,keyInfo:H});if((E=H)!=null&&E.keyLoadPromise){var oe;switch((oe=H.mediaKeySessionContext)==null?void 0:oe.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return H.keyLoadPromise.then(he=>(I.key=he.keyInfo.decryptdata.key,{frag:r,keyInfo:H}))}}switch(H=this.keyUriToKeyInfo[N]={decryptdata:I,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},I.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return I.keyFormat==="identity"?this.loadKeyHTTP(H,r):this.loadKeyEME(H,r);case"AES-128":return this.loadKeyHTTP(H,r);default:return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${I.method}"`)))}}loadKeyEME(r,a){const _={frag:a,keyInfo:r};if(this.emeController&&this.config.emeEnabled){const E=this.emeController.loadKey(_);if(E)return(r.keyLoadPromise=E.then(I=>(r.mediaKeySessionContext=I,_))).catch(I=>{throw r.keyLoadPromise=null,I})}return Promise.resolve(_)}loadKeyHTTP(r,a){const _=this.config,E=_.loader,I=new E(_);return a.keyLoader=r.loader=I,r.keyLoadPromise=new Promise((N,H)=>{const oe={keyInfo:r,frag:a,responseType:"arraybuffer",url:r.decryptdata.uri},he=_.keyLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{const{frag:vt,keyInfo:Qt,url:yr}=Xe;if(!vt.decryptdata||Qt!==this.keyUriToKeyInfo[yr])return H(this.createKeyLoadError(vt,x.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Qt.decryptdata.key=vt.decryptdata.key=new Uint8Array(De.data),vt.keyLoader=null,Qt.loader=null,N({frag:vt,keyInfo:Qt})},onError:(De,He,Xe,lt)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_ERROR,new Error(`HTTP Error ${De.code} loading key ${De.text}`),Xe,f({url:oe.url,data:void 0},De)))},onTimeout:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Xe))},onAbort:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.INTERNAL_ABORTED,new Error("key loading aborted"),Xe))}};I.load(oe,be,Se)})}resetLoader(r){const{frag:a,keyInfo:_,url:E}=r,I=_.loader;a.keyLoader===I&&(a.keyLoader=null,_.loader=null),delete this.keyUriToKeyInfo[E],I&&I.destroy()}}function ki(){return self.SourceBuffer||self.WebKitSourceBuffer}function El(){if(!si())return!1;const r=ki();return!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function"}function ic(){if(!El())return!1;const j=si();return typeof(j==null?void 0:j.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(r=>j.isTypeSupported(la(r,"video")))||["mp4a.40.2","fLaC"].some(r=>j.isTypeSupported(la(r,"audio"))))}function Uo(){var j;const r=ki();return typeof(r==null||(j=r.prototype)==null?void 0:j.changeType)=="function"}const no=250,Wa=2,dl=.1,Sl=.05;class ac{constructor(r,a,_,E){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=r,this.media=a,this.fragmentTracker=_,this.hls=E}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(r,a){const{config:_,media:E,stalled:I}=this;if(E===null)return;const{currentTime:N,seeking:H}=E,oe=this.seeking&&!H,he=!this.seeking&&H;if(this.seeking=H,N!==r){if(this.moved=!0,H||(this.nudgeRetry=0),I!==null){if(this.stallReported){const vt=self.performance.now()-I;R.warn(`playback not stuck anymore @${N}, after ${Math.round(vt)}ms`),this.stallReported=!1}this.stalled=null}return}if(he||oe){this.stalled=null;return}if(E.paused&&!H||E.ended||E.playbackRate===0||!hr.getBuffered(E).length){this.nudgeRetry=0;return}const be=hr.bufferInfo(E,N,0),Se=be.nextStart||0;if(H){const vt=be.len>Wa,Qt=!Se||a&&a.start<=N||Se-N>Wa&&!this.fragmentTracker.getPartialFragment(N);if(vt||Qt)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var De;if(!(be.len>0)&&!Se)return;const Qt=Math.max(Se,be.start||0)-N,yr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Wr=(yr==null||(De=yr.details)==null?void 0:De.live)?yr.details.targetduration*2:Wa,Br=this.fragmentTracker.getPartialFragment(N);if(Qt>0&&(Qt<=Wr||Br)){E.paused||this._trySkipBufferHole(Br);return}}const He=self.performance.now();if(I===null){this.stalled=He;return}const Xe=He-I;if(!H&&Xe>=no&&(this._reportStall(be),!this.media))return;const lt=hr.bufferInfo(E,N,_.maxBufferHole);this._tryFixBufferStall(lt,Xe)}_tryFixBufferStall(r,a){const{config:_,fragmentTracker:E,media:I}=this;if(I===null)return;const N=I.currentTime,H=E.getPartialFragment(N);H&&(this._trySkipBufferHole(H)||!this.media)||(r.len>_.maxBufferHole||r.nextStart&&r.nextStart-N<_.maxBufferHole)&&a>_.highBufferWatchdogPeriod*1e3&&(R.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(r){const{hls:a,media:_,stallReported:E}=this;if(!E&&_){this.stallReported=!0;const I=new Error(`Playback stalling at @${_.currentTime} due to low buffer (${JSON.stringify(r)})`);R.warn(I.message),a.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.BUFFER_STALLED_ERROR,fatal:!1,error:I,buffer:r.len})}}_trySkipBufferHole(r){const{config:a,hls:_,media:E}=this;if(E===null)return 0;const I=E.currentTime,N=hr.bufferInfo(E,I,0),H=I0&&N.len<1&&E.readyState<3,be=H-I;if(be>0&&(oe||he)){if(be>a.maxBufferHole){const{fragmentTracker:De}=this;let He=!1;if(I===0){const Xe=De.getAppendedFrag(0,Ye.MAIN);Xe&&H1?(E=0,this.bitrateTest=!0):E=_.firstAutoLevel),_.nextLoadLevel=E,this.level=_.loadLevel,this.loadedmetadata=!1}a>0&&r===-1&&(this.log(`Override startPosition with lastCurrentTime @${a.toFixed(3)}`),r=a),this.state=pn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this._forceStartLoad=!0,this.state=pn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case pn.WAITING_LEVEL:{const{levels:a,level:_}=this,E=a==null?void 0:a[_],I=E==null?void 0:E.details;if(I&&(!I.live||this.levelLastLoaded===E)){if(this.waitForCdnTuneIn(I))break;this.state=pn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=pn.IDLE;break}break}case pn.FRAG_LOADING_WAITING_RETRY:{var r;const a=self.performance.now(),_=this.retryDate;if(!_||a>=_||(r=this.media)!=null&&r.seeking){const{levels:E,level:I}=this,N=E==null?void 0:E[I];this.resetStartWhenNotLoaded(N||null),this.state=pn.IDLE}}break}this.state===pn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:r,levelLastLoaded:a,levels:_,media:E}=this;if(a===null||!E&&(this.startFragRequested||!r.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const I=this.buffering?r.nextLoadLevel:r.loadLevel;if(!(_!=null&&_[I]))return;const N=_[I],H=this.getMainFwdBufferInfo();if(H===null)return;const oe=this.getLevelDetails();if(oe&&this._streamEnded(H,oe)){const lt={};this.altAudio&&(lt.type="video"),this.hls.trigger(l.BUFFER_EOS,lt),this.state=pn.ENDED;return}if(!this.buffering)return;r.loadLevel!==I&&r.manualLevel===-1&&this.log(`Adapting to level ${I} from level ${this.level}`),this.level=r.nextLoadLevel=I;const he=N.details;if(!he||this.state===pn.WAITING_LEVEL||he.live&&this.levelLastLoaded!==N){this.level=I,this.state=pn.WAITING_LEVEL;return}const be=H.len,Se=this.getMaxBufferLength(N.maxBitrate);if(be>=Se)return;this.backtrackFragment&&this.backtrackFragment.start>H.end&&(this.backtrackFragment=null);const De=this.backtrackFragment?this.backtrackFragment.start:H.end;let He=this.getNextFragment(De,he);if(this.couldBacktrack&&!this.fragPrevious&&He&&He.sn!=="initSegment"&&this.fragmentTracker.getState(He)!==Zs.OK){var Xe;const vt=((Xe=this.backtrackFragment)!=null?Xe:He).sn-he.startSN,Qt=he.fragments[vt-1];Qt&&He.cc===Qt.cc&&(He=Qt,this.fragmentTracker.removeFragment(Qt))}else this.backtrackFragment&&H.len&&(this.backtrackFragment=null);if(He&&this.isLoopLoading(He,De)){if(!He.gap){const vt=this.audioOnly&&!this.altAudio?Y.AUDIO:Y.VIDEO,Qt=(vt===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Qt&&this.afterBufferFlushed(Qt,vt,Ye.MAIN)}He=this.getNextFragmentLoopLoading(He,he,H,Ye.MAIN,Se)}He&&(He.initSegment&&!He.initSegment.data&&!this.bitrateTest&&(He=He.initSegment),this.loadFragment(He,N,De))}loadFragment(r,a,_){const E=this.fragmentTracker.getState(r);this.fragCurrent=r,E===Zs.NOT_LOADED||E===Zs.PARTIAL?r.sn==="initSegment"?this._loadInitSegment(r,a):this.bitrateTest?(this.log(`Fragment ${r.sn} of level ${r.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(r,a)):(this.startFragRequested=!0,super.loadFragment(r,a,_)):this.clearTrackerIfNeeded(r)}getBufferedFrag(r){return this.fragmentTracker.getBufferedFrag(r,Ye.MAIN)}followingBufferedFrag(r){return r?this.getBufferedFrag(r.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:r,media:a}=this;if(a!=null&&a.readyState){let _;const E=this.getAppendedFrag(a.currentTime);E&&E.start>1&&this.flushMainBuffer(0,E.start-1);const I=this.getLevelDetails();if(I!=null&&I.live){const H=this.getMainFwdBufferInfo();if(!H||H.len{const N=I.audioCodec;N&&(_=_||N.indexOf("mp4a.40.2")!==-1,E=E||N.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=_&&E&&!Uo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=a.levels,this.startFragRequested=!1}onLevelLoading(r,a){const{levels:_}=this;if(!_||this.state!==pn.IDLE)return;const E=_[a.level];(!E.details||E.details.live&&this.levelLastLoaded!==E||this.waitForCdnTuneIn(E.details))&&(this.state=pn.WAITING_LEVEL)}onLevelLoaded(r,a){var _;const{levels:E}=this,I=a.level,N=a.details,H=N.totalduration;if(!E){this.warn(`Levels were reset while loading level ${I}`);return}this.log(`Level ${I} loaded [${N.startSN},${N.endSN}]${N.lastPartSn?`[part-${N.lastPartSn}-${N.lastPartIndex}]`:""}, cc [${N.startCC}, ${N.endCC}] duration:${H}`);const oe=E[I],he=this.fragCurrent;he&&(this.state===pn.FRAG_LOADING||this.state===pn.FRAG_LOADING_WAITING_RETRY)&&he.level!==a.level&&he.loader&&this.abortCurrentFrag();let be=0;if(N.live||(_=oe.details)!=null&&_.live){var Se;if(this.checkLiveUpdate(N),N.deltaUpdateFailed)return;be=this.alignPlaylists(N,oe.details,(Se=this.levelLastLoaded)==null?void 0:Se.details)}if(oe.details=N,this.levelLastLoaded=oe,this.hls.trigger(l.LEVEL_UPDATED,{details:N,level:I}),this.state===pn.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=pn.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,be),this.tick()}_handleFragmentLoadProgress(r){var a;const{frag:_,part:E,payload:I}=r,{levels:N}=this;if(!N){this.warn(`Levels were reset while fragment load was in progress. Fragment ${_.sn} of level ${_.level} will not be buffered`);return}const H=N[_.level],oe=H.details;if(!oe){this.warn(`Dropping fragment ${_.sn} of level ${_.level} after level details were reset`),this.fragmentTracker.removeFragment(_);return}const he=H.videoCodec,be=oe.PTSKnown||!oe.live,Se=(a=_.initSegment)==null?void 0:a.data,De=this._getAudioCodec(H),He=this.transmuxer=this.transmuxer||new Xn(this.hls,Ye.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Xe=E?E.index:-1,lt=Xe!==-1,vt=new mn(_.level,_.sn,_.stats.chunkCount,I.byteLength,Xe,lt),Qt=this.initPTS[_.cc];He.push(I,Se,De,he,_,E,oe.totalduration,be,vt,Qt)}onAudioTrackSwitching(r,a){const _=this.altAudio;if(!!!a.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const N=this.fragCurrent;N&&(this.log("Switching to main audio track, cancel main fragment load"),N.abortRequests(),this.fragmentTracker.removeFragment(N)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const I=this.hls;_&&(I.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),I.trigger(l.AUDIO_TRACK_SWITCHED,a)}}onAudioTrackSwitched(r,a){const _=a.id,E=!!this.hls.audioTracks[_].url;if(E){const I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=E,this.tick()}onBufferCreated(r,a){const _=a.tracks;let E,I,N=!1;for(const H in _){const oe=_[H];if(oe.id==="main"){if(I=H,E=oe,H==="video"){const he=_[H];he&&(this.videoBuffer=he.buffer)}}else N=!0}N&&E?(this.log(`Alternate track found, use ${I}.buffered to schedule main fragment loading`),this.mediaBuffer=E.buffer):this.mediaBuffer=this.media}onFragBuffered(r,a){const{frag:_,part:E}=a;if(_&&_.type!==Ye.MAIN)return;if(this.fragContextChanged(_)){this.warn(`Fragment ${_.sn}${E?" p: "+E.index:""} of level ${_.level} finished buffering, but was aborted. state: ${this.state}`),this.state===pn.PARSED&&(this.state=pn.IDLE);return}const I=E?E.stats:_.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,E)}onError(r,a){var _;if(a.fatal){this.state=pn.ERROR;return}switch(a.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.MAIN,a);break;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!a.levelRetry&&this.state===pn.WAITING_LEVEL&&((_=a.context)==null?void 0:_.type)===ye.LEVEL&&(this.state=pn.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!a.parent||a.parent!=="main")return;if(a.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(a)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(a);break}}checkBuffer(){const{media:r,gapController:a}=this;if(!(!r||!a||!r.readyState)){if(this.loadedmetadata||!hr.getBuffered(r).length){const _=this.state!==pn.IDLE?this.fragCurrent:null;a.poll(this.lastCurrentTime,_)}this.lastCurrentTime=r.currentTime}}onFragLoadEmergencyAborted(){this.state=pn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(r,{type:a}){if(a!==Y.AUDIO||this.audioOnly&&!this.altAudio){const _=(a===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,a,Ye.MAIN),this.tick()}}onLevelsUpdated(r,a){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=a.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:r}=this;if(!r)return;const a=r.currentTime;let _=this.startPosition;if(_>=0&&a<_){if(r.seeking){this.log(`could not seek to ${_}, already seeking at ${a}`);return}const E=hr.getBuffered(r),N=(E.length?E.start(0):0)-_;N>0&&(N{const{hls:E}=this;if(!_||this.fragContextChanged(r))return;a.fragmentError=0,this.state=pn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const I=r.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),E.trigger(l.FRAG_LOADED,_),r.bitrateTest=!1})}_handleTransmuxComplete(r){var a;const _="main",{hls:E}=this,{remuxResult:I,chunkMeta:N}=r,H=this.getCurrentContext(N);if(!H){this.resetWhenMissingContext(N);return}const{frag:oe,part:he,level:be}=H,{video:Se,text:De,id3:He,initSegment:Xe}=I,{details:lt}=be,vt=this.altAudio?void 0:I.audio;if(this.fragContextChanged(oe)){this.fragmentTracker.removeFragment(oe);return}if(this.state=pn.PARSING,Xe){if(Xe!=null&&Xe.tracks){const Tr=oe.initSegment||oe;this._bufferInitSegment(be,Xe.tracks,Tr,N),E.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:Tr,id:_,tracks:Xe.tracks})}const Qt=Xe.initPTS,yr=Xe.timescale;y(Qt)&&(this.initPTS[oe.cc]={baseTime:Qt,timescale:yr},E.trigger(l.INIT_PTS_FOUND,{frag:oe,id:_,initPTS:Qt,timescale:yr}))}if(Se&<&&oe.sn!=="initSegment"){const Qt=lt.fragments[oe.sn-1-lt.startSN],yr=oe.sn===lt.startSN,Tr=!Qt||oe.cc>Qt.cc;if(I.independent!==!1){const{startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un}=Se;if(he)he.elementaryStreams[Se.type]={startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un};else if(Se.firstKeyFrame&&Se.independent&&N.id===1&&!Tr&&(this.couldBacktrack=!0),Se.dropped&&Se.independent){const Hn=this.getMainFwdBufferInfo(),li=(Hn?Hn.end:this.getLoadPosition())+this.config.maxBufferHole,En=Se.firstKeyFramePTS?Se.firstKeyFramePTS:Wr;if(!yr&&liWa&&(oe.gap=!0);oe.setElementaryStreamInfo(Se.type,Wr,Br,Cn,un),this.backtrackFragment&&(this.backtrackFragment=oe),this.bufferFragmentData(Se,oe,he,N,yr||Tr)}else if(yr||Tr)oe.gap=!0;else{this.backtrack(oe);return}}if(vt){const{startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}=vt;he&&(he.elementaryStreams[Y.AUDIO]={startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}),oe.setElementaryStreamInfo(Y.AUDIO,Qt,yr,Tr,Wr),this.bufferFragmentData(vt,oe,he,N)}if(lt&&He!=null&&(a=He.samples)!=null&&a.length){const Qt={id:_,frag:oe,details:lt,samples:He.samples};E.trigger(l.FRAG_PARSING_METADATA,Qt)}if(lt&&De){const Qt={id:_,frag:oe,details:lt,samples:De.samples};E.trigger(l.FRAG_PARSING_USERDATA,Qt)}}_bufferInitSegment(r,a,_,E){if(this.state!==pn.PARSING)return;this.audioOnly=!!a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio;const{audio:I,video:N,audiovideo:H}=a;if(I){let oe=r.audioCodec;const he=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){oe&&(oe.indexOf("mp4a.40.5")!==-1?oe="mp4a.40.2":oe="mp4a.40.5");const be=I.metadata;be&&"channelCount"in be&&(be.channelCount||1)!==1&&he.indexOf("firefox")===-1&&(oe="mp4a.40.5")}oe&&oe.indexOf("mp4a.40.5")!==-1&&he.indexOf("android")!==-1&&I.container!=="audio/mpeg"&&(oe="mp4a.40.2",this.log(`Android: force audio codec to ${oe}`)),r.audioCodec&&r.audioCodec!==oe&&this.log(`Swapping manifest audio codec "${r.audioCodec}" for "${oe}"`),I.levelCodec=oe,I.id="main",this.log(`Init audio buffer, container:${I.container}, codecs[selected/level/parsed]=[${oe||""}/${r.audioCodec||""}/${I.codec}]`)}N&&(N.levelCodec=r.videoCodec,N.id="main",this.log(`Init video buffer, container:${N.container}, codecs[level/parsed]=[${r.videoCodec||""}/${N.codec}]`)),H&&this.log(`Init audiovideo buffer, container:${H.container}, codecs[level/parsed]=[${r.codecs}/${H.codec}]`),this.hls.trigger(l.BUFFER_CODECS,a),Object.keys(a).forEach(oe=>{const be=a[oe].initSegment;be!=null&&be.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:oe,data:be,frag:_,part:null,chunkMeta:E,parent:_.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ye.MAIN)}backtrack(r){this.couldBacktrack=!0,this.backtrackFragment=r,this.resetTransmuxer(),this.flushBufferGap(r),this.fragmentTracker.removeFragment(r),this.fragPrevious=null,this.nextLoadPosition=r.start,this.state=pn.IDLE}checkFragmentChanged(){const r=this.media;let a=null;if(r&&r.readyState>1&&r.seeking===!1){const _=r.currentTime;if(hr.isBuffered(r,_)?a=this.getAppendedFrag(_):hr.isBuffered(r,_+.1)&&(a=this.getAppendedFrag(_+.1)),a){this.backtrackFragment=null;const E=this.fragPlaying,I=a.level;(!E||a.sn!==E.sn||E.level!==I)&&(this.fragPlaying=a,this.hls.trigger(l.FRAG_CHANGED,{frag:a}),(!E||E.level!==I)&&this.hls.trigger(l.LEVEL_SWITCHED,{level:I}))}}}get nextLevel(){const r=this.nextBufferedFrag;return r?r.level:-1}get currentFrag(){const r=this.media;return r?this.fragPlaying||this.getAppendedFrag(r.currentTime):null}get currentProgramDateTime(){const r=this.media;if(r){const a=r.currentTime,_=this.currentFrag;if(_&&y(a)&&y(_.programDateTime)){const E=_.programDateTime+(a-_.start)*1e3;return new Date(E)}}return null}get currentLevel(){const r=this.currentFrag;return r?r.level:-1}get nextBufferedFrag(){const r=this.currentFrag;return r?this.followingBufferedFrag(r):null}get forceStartLoad(){return this._forceStartLoad}}class Xu{static get version(){return"1.5.20"}static isMSESupported(){return El()}static isSupported(){return ic()}static getMediaSource(){return si()}static get Events(){return l}static get ErrorTypes(){return b}static get ErrorDetails(){return x}static get DefaultConfig(){return Xu.defaultConfig?Xu.defaultConfig:To}static set DefaultConfig(r){Xu.defaultConfig=r}constructor(r={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Zn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,$(r.debug||!1,"Hls instance");const a=this.config=yo(Xu.DefaultConfig,r);this.userConfig=r,a.progressive&&gc(a);const{abrController:_,bufferController:E,capLevelController:I,errorController:N,fpsController:H}=a,oe=new N(this),he=this.abrController=new _(this),be=this.bufferController=new E(this),Se=this.capLevelController=new I(this),De=new H(this),He=new Or(this),Xe=new fa(this),lt=a.contentSteeringController,vt=lt?new lt(this):null,Qt=this.levelController=new rc(this,vt),yr=new Jt(this),Tr=new fl(this.config),Wr=this.streamController=new pl(this,yr,Tr);Se.setStreamController(Wr),De.setStreamController(Wr);const Br=[He,Qt,Wr];vt&&Br.splice(1,0,vt),this.networkControllers=Br;const Cn=[he,be,Se,De,Xe,yr];this.audioTrackController=this.createController(a.audioTrackController,Br);const un=a.audioStreamController;un&&Br.push(new un(this,yr,Tr)),this.subtitleTrackController=this.createController(a.subtitleTrackController,Br);const Hn=a.subtitleStreamController;Hn&&Br.push(new Hn(this,yr,Tr)),this.createController(a.timelineController,Cn),Tr.emeController=this.emeController=this.createController(a.emeController,Cn),this.cmcdController=this.createController(a.cmcdController,Cn),this.latencyController=this.createController(Ls,Cn),this.coreComponents=Cn,Br.push(oe);const li=oe.onErrorOut;typeof li=="function"&&this.on(l.ERROR,li,oe)}createController(r,a){if(r){const _=new r(this);return a&&a.push(_),_}return null}on(r,a,_=this){this._emitter.on(r,a,_)}once(r,a,_=this){this._emitter.once(r,a,_)}removeAllListeners(r){this._emitter.removeAllListeners(r)}off(r,a,_=this,E){this._emitter.off(r,a,_,E)}listeners(r){return this._emitter.listeners(r)}emit(r,a,_){return this._emitter.emit(r,a,_)}trigger(r,a){if(this.config.debug)return this.emit(r,r,a);try{return this.emit(r,r,a)}catch(_){if(R.error("An internal error happened while handling event "+r+'. Error message: "'+_.message+'". Here is a stacktrace:',_),!this.triggeringException){this.triggeringException=!0;const E=r===l.ERROR;this.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:E,event:r,error:_}),this.triggeringException=!1}}return!1}listenerCount(r){return this._emitter.listenerCount(r)}destroy(){R.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(a=>a.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(a=>a.destroy()),this.coreComponents.length=0;const r=this.config;r.xhrSetup=r.fetchSetup=void 0,this.userConfig=null}attachMedia(r){R.log("attachMedia"),this._media=r,this.trigger(l.MEDIA_ATTACHING,{media:r})}detachMedia(){R.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,void 0),this._media=null}loadSource(r){this.stopLoad();const a=this.media,_=this.url,E=this.url=s.buildAbsoluteURL(self.location.href,r,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,R.log(`loadSource:${E}`),a&&_&&(_!==E||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(a)),this.trigger(l.MANIFEST_LOADING,{url:r})}startLoad(r=-1){R.log(`startLoad(${r})`),this.started=!0,this.resumeBuffering();for(let a=0;a{r.resumeBuffering&&r.resumeBuffering()})}pauseBuffering(){R.log("pause buffering"),this.networkControllers.forEach(r=>{r.pauseBuffering&&r.pauseBuffering()})}swapAudioCodec(){R.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){R.log("recoverMediaError");const r=this._media;this.detachMedia(),r&&this.attachMedia(r)}removeLevel(r){this.levelController.removeLevel(r)}get levels(){const r=this.levelController.levels;return r||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(r){R.log(`set currentLevel:${r}`),this.levelController.manualLevel=r,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(r){R.log(`set nextLevel:${r}`),this.levelController.manualLevel=r,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(r){R.log(`set loadLevel:${r}`),this.levelController.manualLevel=r}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(r){this.levelController.nextLoadLevel=r}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(r){R.log(`set firstLevel:${r}`),this.levelController.firstLevel=r}get startLevel(){const r=this.levelController.startLevel;return r===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:r}set startLevel(r){R.log(`set startLevel:${r}`),r!==-1&&(r=Math.max(r,this.minAutoLevel)),this.levelController.startLevel=r}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(r){const a=!!r;a!==this.config.capLevelToPlayerSize&&(a?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=a)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimate():NaN}set bandwidthEstimate(r){this.abrController.resetEstimator(r)}get ttfbEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimateTTFB():NaN}set autoLevelCapping(r){this._autoLevelCapping!==r&&(R.log(`set autoLevelCapping:${r}`),this._autoLevelCapping=r,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(r){Is(r)&&this._maxHdcpLevel!==r&&(this._maxHdcpLevel=r,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:r,config:{minAutoBitrate:a}}=this;if(!r)return 0;const _=r.length;for(let E=0;E<_;E++)if(r[E].maxBitrate>=a)return E;return 0}get maxAutoLevel(){const{levels:r,autoLevelCapping:a,maxHdcpLevel:_}=this;let E;if(a===-1&&r!=null&&r.length?E=r.length-1:E=a,_)for(let I=E;I--;){const N=r[I].attrs["HDCP-LEVEL"];if(N&&N<=_)return I}return E}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(r){this.abrController.nextAutoLevel=r}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(r){var a;return(a=this.audioTrackController)==null?void 0:a.setAudioOption(r)}setSubtitleOption(r){var a;return(a=this.subtitleTrackController)==null||a.setSubtitleOption(r),null}get allAudioTracks(){const r=this.audioTrackController;return r?r.allAudioTracks:[]}get audioTracks(){const r=this.audioTrackController;return r?r.audioTracks:[]}get audioTrack(){const r=this.audioTrackController;return r?r.audioTrack:-1}set audioTrack(r){const a=this.audioTrackController;a&&(a.audioTrack=r)}get allSubtitleTracks(){const r=this.subtitleTrackController;return r?r.allSubtitleTracks:[]}get subtitleTracks(){const r=this.subtitleTrackController;return r?r.subtitleTracks:[]}get subtitleTrack(){const r=this.subtitleTrackController;return r?r.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(r){const a=this.subtitleTrackController;a&&(a.subtitleTrack=r)}get subtitleDisplay(){const r=this.subtitleTrackController;return r?r.subtitleDisplay:!1}set subtitleDisplay(r){const a=this.subtitleTrackController;a&&(a.subtitleDisplay=r)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(r){this.config.lowLatencyMode=r}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Xu.defaultConfig=void 0},53280:function(d,v,e){"use strict";e.d(v,{D:function(){return n}});function t(s,u,f){var c=f||{},h=c.noTrailing,o=h===void 0?!1:h,i=c.noLeading,y=i===void 0?!1:i,p=c.debounceMode,g=p===void 0?void 0:p,l,b=!1,x=0;function O(){l&&clearTimeout(l)}function k(T){var F=T||{},$=F.upcomingOnly,R=$===void 0?!1:$;O(),b=!R}function C(){for(var T=arguments.length,F=new Array(T),$=0;$s?y?(x=Date.now(),o||(l=setTimeout(g?Z:W,s))):W():o!==!0&&(l=setTimeout(g?Z:W,g===void 0?s-K:s))}return C.cancel=k,C}function n(s,u,f){var c=f||{},h=c.atBegin,o=h===void 0?!1:h;return t(s,u,{debounceMode:o!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var v=__webpack_module_cache__[d];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(v,{a:v}),v}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var n=Object.create(null);__webpack_require__.r(n);var s={};v=v||[null,d({}),d([]),d(d)];for(var u=t&2&&e;typeof u=="object"&&!~v.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(f){s[f]=function(){return e[f]}});return s.default=function(){return e},__webpack_require__.d(n,s),n}}(),function(){__webpack_require__.d=function(d,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](d,v),v},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",672:"p__Home__Detail__ShixunContext__Detail__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"9ac508ea",67:"1b03fe25",109:"23b414f9",129:"daa471de",195:"ff3754fd",264:"c38192df",265:"edaf4987",292:"443bec8c",310:"7ae51cab",316:"1f60ada6",337:"c5e9c609",342:"b0e1f94c",354:"d4d139cf",479:"9ea93239",485:"04973f6c",508:"35199f0d",532:"9b2862bf",533:"fab912ee",547:"e2501473",556:"1bfc920d",559:"20d87e10",570:"46fb4a67",576:"6fb71e35",629:"44a1d9a5",643:"ea10c4e3",671:"4a609b8d",672:"6fe31085",680:"b3e3b88f",700:"2d37b76c",737:"b82f98c3",741:"ac5fd360",799:"cf84c2b6",869:"bd8b60a0",895:"3de27cee",921:"c00eda41",928:"43ef0607",981:"24da50c7",1006:"14b4fe97",1043:"734ab6b5",1045:"2f8e859a",1048:"32d3135e",1070:"7d8b9bee",1144:"c90eccaf",1148:"2b8b425e",1154:"8cb80842",1211:"bdd96f1a",1253:"9866613d",1257:"a4ad3423",1265:"d66454fb",1274:"5f6ea65a",1276:"c0280778",1343:"d552f9e1",1416:"01cd13f5",1423:"84a49c92",1427:"b6d95f20",1450:"80028a47",1461:"98eccc6e",1462:"fcf08abc",1470:"a17a6b1a",1475:"cb4b2a16",1482:"151ba2e9",1512:"1c085b86",1520:"659feacb",1531:"5dd24ec2",1545:"3ba5d8a6",1578:"b2e43839",1581:"63af3f9e",1582:"915a58e3",1646:"e6e27b60",1657:"ca141d10",1660:"76bc70ce",1674:"22dfee6c",1702:"4c6e98c0",1713:"af1e7834",1717:"31989bc4",1727:"76cac644",1783:"fb7f634f",1799:"5ae9afa7",1810:"bd7bcaf7",1831:"c95840bf",1836:"ba892db7",1855:"b9008312",1880:"240b7cfc",1939:"90e4aae3",1953:"41f253c0",1962:"035c7b2e",2011:"59d51f98",2045:"7744bebe",2076:"e8fd98b8",2102:"5e265def",2141:"7cad8736",2216:"e401f0e5",2240:"a6bcb853",2245:"4c051301",2249:"f4830452",2254:"5767ca2a",2300:"bc020f4e",2303:"ea60e774",2307:"b1570e49",2338:"001fe20f",2339:"96015530",2386:"192e235c",2396:"133c621f",2404:"760d076d",2412:"ebd8acc2",2425:"a585e39e",2443:"5d5c2c0a",2476:"746ff3fb",2494:"68080a87",2501:"3421c5a3",2529:"922e34cf",2538:"de4a3723",2539:"53a86b90",2548:"0b85ce47",2570:"5c3cf4c1",2594:"e87d3761",2603:"d25ee242",2659:"17df4e97",2707:"557891ae",2806:"6f510fd6",2819:"0eda6838",2823:"4e52f1d5",2826:"ec49f5dc",2829:"22300e28",2837:"54a82605",2865:"ba754a64",2875:"d8d4ea8b",2884:"868b6f9b",2969:"ab3357d7",2983:"cf277769",3006:"1018d70d",3133:"9bf3f89c",3141:"f83a07d0",3157:"95e29ab0",3183:"f73c574d",3198:"8e655451",3212:"c36da84a",3220:"1c51e01d",3247:"70bb53ae",3260:"e2b1e30f",3276:"2d03a6b2",3282:"93dc2500",3317:"f490a8bd",3332:"de5fd255",3355:"64861e9f",3356:"9f6626e9",3391:"56cfa576",3433:"84229bfc",3442:"2579c500",3447:"2dcdbd80",3451:"d670911f",3496:"be8a8ab5",3509:"ff053313",3550:"3dc83156",3581:"b210cd71",3585:"48f0e96e",3665:"c9c1b80d",3668:"e507d4b1",3697:"481a10d9",3747:"db96de33",3777:"d5b0f2f1",3784:"43096805",3805:"9dbcb95e",3862:"67698974",3873:"3c923d12",3885:"f87f7f15",3910:"a493ef38",3935:"e6712421",3951:"c269f59c",3985:"344a3358",3987:"5cecd51b",4014:"27a8e97c",4017:"27999042",4030:"98386769",4056:"4e2d6a20",4058:"733be6bb",4078:"2f2bd21e",4088:"236723f3",4093:"3d49e4d3",4105:"4209a04c",4144:"346ee736",4164:"7fe0d579",4216:"121e47cd",4217:"27457f8a",4227:"89813cd9",4259:"bb097cc9",4264:"735355f2",4347:"08ede17f",4354:"140899b7",4360:"cf5efa52",4449:"e25d1468",4492:"22bee88f",4496:"7d65f4e3",4498:"e0fe8700",4504:"df6e7341",4514:"85bdfa82",4520:"2c66721b",4546:"3002feb8",4565:"7fc1f44d",4572:"5a20aab4",4599:"61def4cb",4601:"dbf04368",4610:"85d72c01",4621:"7c943553",4628:"ece2c60c",4662:"573e389f",4685:"c33f1528",4715:"8b0e824d",4736:"7bcd9282",4741:"85d2e21b",4757:"093ffb1c",4766:"02d2a4bb",4770:"ab782b26",4790:"619413e4",4795:"71134cdd",4797:"a24e92db",4800:"78e41603",4849:"021f3509",4850:"1edda4b7",4862:"56f5d557",4884:"1bfc8e94",4889:"5b5a24d9",4900:"c2fa0b2f",4928:"227748ad",4973:"77e402c6",4994:"a41419e5",5022:"a5b53c62",5043:"4edab20d",5048:"ddacfba7",5060:"85dafcc6",5096:"e3e63460",5111:"e39ac596",5125:"acbd9ee7",5148:"ac491994",5176:"a790896e",5179:"3df72677",5186:"69a582a1",5191:"56492f84",5238:"5e83b6b6",5290:"5dabcdc2",5297:"01e5cf8e",5319:"de8f7c41",5321:"1163c84e",5335:"69e514be",5354:"7ae70604",5357:"a3975490",5359:"f48142d8",5382:"19ba1755",5402:"b2b43a8f",5416:"454536b7",5434:"38b302a6",5470:"7ba15cd7",5494:"d89549c4",5518:"084658a4",5549:"191e2bdd",5572:"4a5cf530",5573:"b212b8fc",5599:"7838f994",5624:"8171e0ad",5631:"e00d3d36",5650:"ba1da951",5679:"4a090bef",5705:"b3825926",5729:"9adaabc9",5757:"2843b608",5764:"e0d7e586",5775:"af94f477",5786:"ad639f51",5798:"0f3b4e72",5816:"26e09ee2",5825:"5b09c2f0",5876:"5eded409",5888:"2c4a7d21",5891:"2f93a0e0",5895:"c50382fc",5902:"936d3fb0",5915:"4d0533cf",5972:"629273e1",5992:"e6d5abcd",6029:"2baf21d5",6034:"1f3482f6",6045:"d268f87f",6047:"3ce45acd",6052:"a79da40f",6063:"92b0e253",6069:"c65393c8",6126:"99519171",6127:"01711ee9",6170:"ba8df8d7",6265:"da67525e",6270:"1a45d2f2",6277:"b087d596",6312:"87886f73",6328:"40c542bf",6366:"2abd7b37",6378:"7f3a946a",6411:"8c37c144",6434:"02822e0b",6444:"e95f4bcd",6452:"e7375ea9",6531:"bde1c8f7",6541:"e931a4f6",6583:"d7b48c64",6587:"cd25c8fd",6634:"5bce8e25",6651:"7b40db2e",6685:"daa8e12d",6729:"052f470f",6741:"4f3739f8",6758:"0ab6597f",6774:"59d4d618",6784:"23863b47",6788:"60b56538",6796:"038925da",6805:"2b9be050",6820:"460f9f28",6845:"df3b3798",6882:"e2cc0627",6883:"6cb80143",6904:"e05e0e05",6913:"cb4d9081",6949:"04b3b3a0",6963:"2c915c8f",6982:"3201a542",7008:"6c9735e2",7043:"77ac705f",7045:"02381632",7046:"2ef819a1",7058:"9c217ae2",7062:"8908a67a",7084:"46ccce72",7156:"e7466006",7178:"45d02e76",7182:"1bb7addb",7242:"a3c62e97",7260:"3262bb7d",7331:"2e27a23b",7333:"b7f12ce6",7365:"1005464f",7374:"b2456c08",7395:"bef0fbea",7460:"a15b8245",7477:"dab0e013",7482:"2b1ff0ba",7527:"e8bf30b5",7545:"c5114a0d",7560:"0d7214ac",7589:"6a05399d",7591:"c8233ce9",7614:"6afc9f7f",7622:"4ee5b394",7686:"4fcec9f9",7706:"c2a79e40",7806:"5f66ffb2",7852:"2b9824d7",7855:"91bc853e",7857:"ada9e40a",7878:"4d62eb43",7884:"6b238432",7922:"e7de5e50",7948:"7deb7765",7964:"29aed9a1",8014:"c86d8b0b",8062:"bc5d75b5",8072:"ef31263e",8077:"8130121e",8085:"7b924714",8089:"d536b13a",8143:"272c6259",8155:"8de8547a",8161:"83c5fa9a",8237:"bb41ce1e",8241:"37533b90",8302:"81bee336",8307:"39b7a18c",8340:"abddc432",8350:"07df8a75",8365:"fe36cabc",8398:"da4d9438",8431:"225d8800",8435:"5c70cbb5",8447:"47aafa2b",8517:"f8ed41de",8561:"333e8ec9",8563:"d2893bd3",8634:"eb0aff70",8639:"d77439de",8665:"4bf36fa7",8688:"bc5b75f1",8689:"aa82d7a4",8723:"eed3bf93",8737:"ce7dad23",8776:"0ad26240",8782:"21c3c877",8787:"3edcf911",8797:"38e94dd2",8823:"4750ef8d",8827:"4964829f",8842:"9f25a3e2",8866:"41d4573d",8882:"16f53671",8885:"358e2d0f",8898:"d002bcd8",8909:"1e29403e",8920:"7f82440c",8963:"790aecdd",8982:"74d73bf1",8999:"73348dc2",9076:"f5a17106",9104:"bbcb2345",9133:"0abb8821",9186:"4559c3b0",9205:"b23513c7",9215:"21ebbcbd",9252:"0d791a59",9260:"cf5f8140",9332:"7ab4403d",9360:"edc9b326",9366:"b8d2b577",9391:"68a85af0",9404:"9fcc3d3e",9408:"dd5ae7b5",9416:"bf5770f9",9487:"043b2ef8",9489:"01da7cf5",9507:"c5204a25",9519:"7bbb0e22",9532:"859e05a2",9554:"ed358e7b",9559:"f794af19",9590:"827b71ea",9647:"cbd4e1e3",9649:"92cccb86",9674:"40d102bc",9677:"4bc5636d",9695:"763acec3",9715:"e467a322",9716:"b929ed6f",9785:"1224ce29",9788:"04775768",9883:"2e3b3113",9890:"be84cd24",9891:"2e66be10",9895:"b8e31ff2",9921:"cdf9721a",9922:"6dd34c9c",9928:"5989f5e0",9944:"ac8120d6",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"1ad7d0db",109:"1a7fc455",195:"65632591",264:"5fd9b3fc",265:"d92c6f86",292:"9a0e8f6b",310:"06815302",337:"ee05039e",342:"ab091f90",479:"bba9e475",485:"d63578fe",508:"82593858",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"eb3ce426",643:"22ded693",680:"e67e9e01",700:"4c1ff0fa",737:"98eb2f74",799:"b3487c4b",869:"6740e24b",895:"ad846737",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"0eeb3595",1048:"dafc3f4f",1070:"e67e9e01",1148:"754fff63",1211:"bdb8faab",1253:"46aca33c",1257:"156e8f74",1265:"d902bdae",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"5c4a76fc",1427:"f91322f7",1450:"1edcc2ed",1461:"917cbb16",1470:"183c9793",1475:"d22fbaa0",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"04d6c7d3",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1657:"ddd6a700",1674:"fdbc1e05",1702:"fca45632",1713:"5ed278a4",1717:"08a9e890",1727:"de83767d",1783:"47d0320e",1810:"03cdfb68",1831:"8d05bf11",1836:"5f0d3f7f",1855:"b92cccb4",1880:"f67d7892",1939:"48e30d48",1953:"23cbc47f",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"ec61f9f0",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"ccda836f",2303:"87592c17",2307:"b2c54321",2338:"43e9ff08",2339:"d90c9bd2",2396:"e70f11d6",2404:"08d36549",2412:"6b6ca0ef",2425:"47b23ee4",2443:"78513f2d",2476:"cf85a190",2501:"2441982c",2529:"9d9944da",2539:"43d36117",2548:"75182034",2570:"3dbc6300",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"2c7248b3",2819:"9455b08a",2823:"a13b21fb",2826:"0b6be43b",2829:"a5909474",2865:"6ef3cf6b",2875:"d6c8355d",2884:"904823c3",2983:"c8c482f7",3006:"7fce4e74",3141:"72791f8b",3157:"2038b5dc",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"49ca09b2",3276:"7bbb651d",3282:"2dff97e8",3317:"137440b7",3332:"15432cd5",3355:"39e3d07c",3356:"c6a4098f",3391:"f0e498fe",3433:"e6919a98",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"43d907cb",3585:"5f288e7b",3665:"99f7daed",3668:"86f20630",3747:"e06419ae",3784:"c81d4a51",3873:"bbd9808d",3910:"658d457f",3935:"cd50aa32",3951:"4a9249b1",4030:"f308ee3a",4056:"10eacfff",4078:"aa54548e",4093:"c1f29d01",4105:"e39011c7",4144:"f10aa199",4164:"9f30fd4a",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4449:"e68d8d58",4492:"cdc29460",4496:"77babddd",4498:"b05686dd",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aca6ff45",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"4e7b8c12",4715:"45efe14a",4736:"2968553b",4741:"afeb6eca",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4849:"2a1dc219",4862:"e8eacc3e",4884:"bd293d3b",4889:"db5cf2c9",4928:"a4b1a237",4973:"129c56e8",4994:"50caae56",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"572faeac",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"3d814a61",5297:"5426028f",5319:"34217c3f",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"0c911991",5402:"60617d0d",5470:"b25021a2",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0208754c",5650:"f8f63f4b",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5786:"37a81eaa",5798:"ce1cf7da",5816:"d749b200",5825:"73177a8c",5888:"193a7f8f",5891:"3b7a128f",5895:"9ddd624a",5915:"bc9c3e69",5972:"c7a91e8e",5992:"419f5d2f",6029:"2ded5a5a",6052:"59cb6398",6063:"a5f0409a",6069:"b4a6d2ab",6127:"f31505a8",6265:"9459eb93",6270:"cc24b0fc",6277:"12e50919",6328:"de2b9d62",6366:"079fc2d8",6434:"0112f8db",6444:"fd46d237",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"df151169",6651:"b07fe216",6685:"f5f5b969",6729:"aea3b7f5",6741:"b838eb14",6758:"558cc090",6784:"1affe817",6788:"9cd39ff5",6796:"89c76e37",6805:"5b253c81",6820:"cebdf1cf",6845:"b7aabf70",6882:"c2d2eada",6883:"7740a702",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",6982:"3043a9c3",7008:"fe74a83d",7043:"25478869",7045:"48f6fc4c",7046:"c7301ded",7058:"984a456a",7062:"fe78dd10",7178:"6e47d75d",7182:"183c9793",7242:"4f353f61",7260:"ae741547",7395:"5c10e8d8",7460:"dedd2038",7477:"832457fc",7482:"c37a3f01",7527:"6b64ff47",7545:"1f6a7624",7560:"d82e43ca",7589:"2a3e68f3",7614:"de9ee12f",7622:"ca0e645a",7806:"80b7b1d6",7852:"fce1e197",7855:"3970a709",7857:"13a29416",7878:"8dfa25f5",7884:"1ca6cde0",7922:"c1d9e2f3",7948:"bed733e5",8014:"9ef39203",8062:"8e384b9f",8072:"540f746b",8077:"0b2c51d9",8085:"0b7f10a8",8143:"b6ca83ad",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8302:"b4649ac5",8307:"02e15761",8398:"cf8eb735",8431:"60a111b6",8435:"21d4dff0",8447:"0875c082",8517:"cccfddad",8563:"3a763677",8634:"317d0a2b",8665:"c52575bc",8688:"c044db56",8689:"459af240",8723:"5166ac36",8782:"918afc23",8787:"121de108",8797:"13e5189e",8823:"9e7a9852",8827:"fcd50af0",8866:"664121ad",8882:"f3e42f72",8885:"de905169",8982:"6e2e337e",8999:"448aa22f",9076:"6a501148",9133:"ab171f08",9205:"49a3e67d",9215:"f737e7e7",9332:"a627cf98",9360:"27c7d4f7",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9408:"d3565b1a",9416:"6ead6660",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9519:"88d248ee",9590:"29583579",9647:"452de157",9649:"00fb4211",9674:"d0f91ed7",9677:"26548cb7",9695:"bb84056a",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"54a86ef9",9890:"9ebce4ba",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)}}(),function(){var d={};__webpack_require__.l=function(v,e,t,n){if(d[v]){d[v].push(e);return}var s,u;if(t!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c{const E=qt(this.config),I=r.map(Ft).filter(N=>!!N&&E.indexOf(N)!==-1);return this.getKeySystemSelectionPromise(I).then(({keySystem:N})=>{const H=tr(N);H?a(H):_(new Error(`Unable to find format for key-system "${N}"`))}).catch(_)})}loadKey(r){const a=r.keyInfo.decryptdata,_=this.getKeyIdString(a),E=`(keyId: ${_} format: "${a.keyFormat}" method: ${a.method} uri: ${a.uri})`;this.log(`Starting session for key ${E}`);let I=this.keyIdToKeySessionPromise[_];return I||(I=this.keyIdToKeySessionPromise[_]=this.getKeySystemForKeyPromise(a).then(({keySystem:N,mediaKeys:H})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${r.frag.sn} ${r.frag.type}: ${r.frag.level} using key ${E}`),this.attemptSetMediaKeys(N,H).then(()=>{this.throwIfDestroyed();const oe=this.createMediaKeySessionContext({keySystem:N,mediaKeys:H,decryptdata:a});return this.generateRequestWithPreferredKeySession(oe,"cenc",a.pssh,"playlist-key")}))),I.catch(N=>this.handleError(N))),I}throwIfDestroyed(r="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(r){this.hls&&(this.error(r.message),r instanceof Jo?this.hls.trigger(l.ERROR,r.data):this.hls.trigger(l.ERROR,{type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_KEYS,error:r,fatal:!0}))}getKeySystemForKeyPromise(r){const a=this.getKeyIdString(r),_=this.keyIdToKeySessionPromise[a];if(!_){const E=Ft(r.keyFormat),I=E?[E]:qt(this.config);return this.attemptKeySystemAccess(I)}return _}getKeySystemSelectionPromise(r){if(r.length||(r=qt(this.config)),r.length===0)throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(r)}attemptSetMediaKeys(r,a){const _=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${r}"`);const E=Promise.all(_).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(a)});return this.setMediaKeysQueue.push(E),E.then(()=>{this.log(`Media-keys set for "${r}"`),_.push(E),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(I=>_.indexOf(I)===-1)})}generateRequestWithPreferredKeySession(r,a,_,E){var I,N;const H=(I=this.config.drmSystems)==null||(N=I[r.keySystem])==null?void 0:N.generateRequest;if(H)try{const Xe=H.call(this.hls,a,_,r);if(!Xe)throw new Error("Invalid response from configured generateRequest filter");a=Xe.initDataType,_=r.decryptdata.pssh=Xe.initData?new Uint8Array(Xe.initData):null}catch(Xe){var oe;if(this.warn(Xe.message),(oe=this.hls)!=null&&oe.config.debug)throw Xe}if(_===null)return this.log(`Skipping key-session request for "${E}" (no initData)`),Promise.resolve(r);const he=this.getKeyIdString(r.decryptdata);this.log(`Generating key-session request for "${E}": ${he} (init data type: ${a} length: ${_?_.byteLength:null})`);const be=new Zn,Se=r._onmessage=Xe=>{const lt=r.mediaKeysSession;if(!lt){be.emit("error",new Error("invalid state"));return}const{messageType:vt,message:Qt}=Xe;this.log(`"${vt}" message event for session "${lt.sessionId}" message size: ${Qt.byteLength}`),vt==="license-request"||vt==="license-renewal"?this.renewLicense(r,Qt).catch(yr=>{this.handleError(yr),be.emit("error",yr)}):vt==="license-release"?r.keySystem===Me.FAIRPLAY&&(this.updateKeySession(r,xe("acknowledged")),this.removeSession(r)):this.warn(`unhandled media key message type "${vt}"`)},De=r._onkeystatuseschange=Xe=>{if(!r.mediaKeysSession){be.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(r);const vt=r.keyStatus;be.emit("keyStatus",vt),vt==="expired"&&(this.warn(`${r.keySystem} expired for key ${he}`),this.renewKeySession(r))};r.mediaKeysSession.addEventListener("message",Se),r.mediaKeysSession.addEventListener("keystatuseschange",De);const He=new Promise((Xe,lt)=>{be.on("error",lt),be.on("keyStatus",vt=>{vt.startsWith("usable")?Xe():vt==="output-restricted"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):vt==="internal-error"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${vt}"`)):vt==="expired"?lt(new Error("key expired while generating request")):this.warn(`unhandled key status change "${vt}"`)})});return r.mediaKeysSession.generateRequest(a,_).then(()=>{var Xe;this.log(`Request generated for key-session "${(Xe=r.mediaKeysSession)==null?void 0:Xe.sessionId}" keyId: ${he}`)}).catch(Xe=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_SESSION,error:Xe,fatal:!1},`Error generating key-session request: ${Xe}`)}).then(()=>He).catch(Xe=>{throw be.removeAllListeners(),this.removeSession(r),Xe}).then(()=>(be.removeAllListeners(),r))}onKeyStatusChange(r){r.mediaKeysSession.keyStatuses.forEach((a,_)=>{this.log(`key status change "${a}" for keyStatuses keyId: ${Nt.hexDump("buffer"in _?new Uint8Array(_.buffer,_.byteOffset,_.byteLength):new Uint8Array(_))} session keyId: ${Nt.hexDump(new Uint8Array(r.decryptdata.keyId||[]))} uri: ${r.decryptdata.uri}`),r.keyStatus=a})}fetchServerCertificate(r){const a=this.config,_=a.loader,E=new _(a),I=this.getServerCertificateUrl(r);return I?(this.log(`Fetching server certificate for "${r}"`),new Promise((N,H)=>{const oe={responseType:"arraybuffer",url:I},he=a.certLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{N(De.data)},onError:(De,He,Xe,lt)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:f({url:oe.url,data:void 0},De)},`"${r}" certificate request failed (${I}). Status: ${De.code} (${De.text})`))},onTimeout:(De,He,Xe)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:{url:oe.url,data:void 0}},`"${r}" certificate request timed out (${I})`))},onAbort:(De,He,Xe)=>{H(new Error("aborted"))}};E.load(oe,be,Se)})):Promise.resolve()}setMediaKeysServerCertificate(r,a,_){return new Promise((E,I)=>{r.setServerCertificate(_).then(N=>{this.log(`setServerCertificate ${N?"success":"not supported by CDM"} (${_==null?void 0:_.byteLength}) on "${a}"`),E(r)}).catch(N=>{I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:N,fatal:!0},N.message))})})}renewLicense(r,a){return this.requestLicense(r,new Uint8Array(a)).then(_=>this.updateKeySession(r,new Uint8Array(_)).catch(E=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:E,fatal:!0},E.message)}))}unpackPlayReadyKeyMessage(r,a){const _=String.fromCharCode.apply(null,new Uint16Array(a.buffer));if(!_.includes("PlayReadyKeyMessage"))return r.setRequestHeader("Content-Type","text/xml; charset=utf-8"),a;const E=new DOMParser().parseFromString(_,"application/xml"),I=E.querySelectorAll("HttpHeader");if(I.length>0){let be;for(let Se=0,De=I.length;Se in key message");return xe(atob(he))}setupLicenseXHR(r,a,_,E){const I=this.config.licenseXhrSetup;return I?Promise.resolve().then(()=>{if(!_.decryptdata)throw new Error("Key removed");return I.call(this.hls,r,a,_,E)}).catch(N=>{if(!_.decryptdata)throw N;return r.open("POST",a,!0),I.call(this.hls,r,a,_,E)}).then(N=>(r.readyState||r.open("POST",a,!0),{xhr:r,licenseChallenge:N||E})):(r.open("POST",a,!0),Promise.resolve({xhr:r,licenseChallenge:E}))}requestLicense(r,a){const _=this.config.keyLoadPolicy.default;return new Promise((E,I)=>{const N=this.getLicenseServerUrlOrThrow(r.keySystem);this.log(`Sending license request to URL: ${N}`);const H=new XMLHttpRequest;H.responseType="arraybuffer",H.onreadystatechange=()=>{if(!this.hls||!r.mediaKeysSession)return I(new Error("invalid state"));if(H.readyState===4)if(H.status===200){this._requestLicenseFailureCount=0;let oe=H.response;this.log(`License received ${oe instanceof ArrayBuffer?oe.byteLength:oe}`);const he=this.config.licenseResponseCallback;if(he)try{oe=he.call(this.hls,H,N,r)}catch(be){this.error(be)}E(oe)}else{const oe=_.errorRetry,he=oe?oe.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>he||H.status>=400&&H.status<500)I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:H,response:{url:N,data:void 0,code:H.status,text:H.statusText}},`License Request XHR failed (${N}). Status: ${H.status} (${H.statusText})`));else{const be=he-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${be} attempts left`),this.requestLicense(r,a).then(E,I)}}},r.licenseXhr&&r.licenseXhr.readyState!==XMLHttpRequest.DONE&&r.licenseXhr.abort(),r.licenseXhr=H,this.setupLicenseXHR(H,N,r,a).then(({xhr:oe,licenseChallenge:he})=>{r.keySystem==Me.PLAYREADY&&(he=this.unpackPlayReadyKeyMessage(oe,he)),oe.send(he)})})}onMediaAttached(r,a){if(!this.config.emeEnabled)return;const _=a.media;this.media=_,_.removeEventListener("encrypted",this.onMediaEncrypted),_.removeEventListener("waitingforkey",this.onWaitingForKey),_.addEventListener("encrypted",this.onMediaEncrypted),_.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const r=this.media,a=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Mr.clearKeyUriToKeyIdMap();const _=a.length;nl.CDMCleanupPromise=Promise.all(a.map(E=>this.removeSession(E)).concat(r==null?void 0:r.setMediaKeys(null).catch(E=>{this.log(`Could not clear media keys: ${E}`)}))).then(()=>{_&&(this.log("finished closing key sessions and clearing media keys"),a.length=0)}).catch(E=>{this.log(`Could not close sessions and clear media keys: ${E}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(r,{sessionKeys:a}){if(!(!a||!this.config.emeEnabled)&&!this.keyFormatPromise){const _=a.reduce((E,I)=>(E.indexOf(I.keyFormat)===-1&&E.push(I.keyFormat),E),[]);this.log(`Selecting key-system from session-keys ${_.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(_)}}removeSession(r){const{mediaKeysSession:a,licenseXhr:_}=r;if(a){this.log(`Remove licenses and keys and close session ${a.sessionId}`),r._onmessage&&(a.removeEventListener("message",r._onmessage),r._onmessage=void 0),r._onkeystatuseschange&&(a.removeEventListener("keystatuseschange",r._onkeystatuseschange),r._onkeystatuseschange=void 0),_&&_.readyState!==XMLHttpRequest.DONE&&_.abort(),r.mediaKeysSession=r.decryptdata=r.licenseXhr=void 0;const E=this.mediaKeySessions.indexOf(r);return E>-1&&this.mediaKeySessions.splice(E,1),a.remove().catch(I=>{this.log(`Could not remove session: ${I}`)}).then(()=>a.close()).catch(I=>{this.log(`Could not close session: ${I}`)})}}}nl.CDMCleanupPromise=void 0;class Jo extends Error{constructor(r,a){super(a),this.data=void 0,r.error||(r.error=new Error(a)),this.data=r,r.err=r.error}}var go;(function(j){j.MANIFEST="m",j.AUDIO="a",j.VIDEO="v",j.MUXED="av",j.INIT="i",j.CAPTION="c",j.TIMED_TEXT="tt",j.KEY="k",j.OTHER="o"})(go||(go={}));var Jl;(function(j){j.DASH="d",j.HLS="h",j.SMOOTH="s",j.OTHER="o"})(Jl||(Jl={}));var zu;(function(j){j.OBJECT="CMCD-Object",j.REQUEST="CMCD-Request",j.SESSION="CMCD-Session",j.STATUS="CMCD-Status"})(zu||(zu={}));const hu={[zu.OBJECT]:["br","d","ot","tb"],[zu.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[zu.SESSION]:["cid","pr","sf","sid","st","v"],[zu.STATUS]:["bs","rtp"]};class ou{constructor(r,a){this.value=void 0,this.params=void 0,Array.isArray(r)&&(r=r.map(_=>_ instanceof ou?_:new ou(_))),this.value=r,this.params=a}}class Dl{constructor(r){this.description=void 0,this.description=r}}const Zu="Dict";function hc(j){return Array.isArray(j)?JSON.stringify(j):j instanceof Map?"Map{}":j instanceof Set?"Set{}":typeof j=="object"?JSON.stringify(j):String(j)}function Sc(j,r,a,_){return new Error(`failed to ${j} "${hc(r)}" as ${a}`,{cause:_})}const yl="Bare Item",uo="Boolean",Cc="Byte Sequence",pc="Decimal",il="Integer";function ku(j){return j<-999999999999999||99999999999999912)throw gu(j,pc);const a=r.toString();return a.includes(".")?a:`${a}.0`}const Ol="String";function Ko(j){if(lo.test(j))throw gu(j,Ol);return`"${j.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(j){return j.description||j.toString().slice(7,-1)}function kl(j){const r=Eu(j);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r)===!1)throw gu(r,al);return r}function ul(j){switch(typeof j){case"number":if(!y(j))throw gu(j,yl);return Number.isInteger(j)?ol(j):uu(j);case"string":return Ko(j);case"symbol":return kl(j);case"boolean":return Ac(j);case"object":if(j instanceof Date)return je(j);if(j instanceof Uint8Array)return jo(j);if(j instanceof Dl)return kl(j);default:throw gu(j,yl)}}function Hu(j){if(/^[a-z*][a-z0-9\-_.*]*$/.test(j)===!1)throw gu(j,Dc);return j}function Ru(j){return j==null?"":Object.entries(j).map(([r,a])=>a===!0?`;${Hu(r)}`:`;${Hu(r)}=${ul(a)}`).join("")}function Su(j){return j instanceof ou?`${ul(j.value)}${Ru(j.params)}`:ul(j)}function _c(j){return`(${j.value.map(Su).join(" ")})${Ru(j.params)}`}function Rl(j,r={whitespace:!0}){if(typeof j!="object")throw gu(j,Zu);const a=j instanceof Map?j.entries():Object.entries(j),_=r!=null&&r.whitespace?" ":"";return Array.from(a).map(([E,I])=>{I instanceof ou||(I=new ou(I));let N=Hu(E);return I.value===!0?N+=Ru(I.params):(N+="=",Array.isArray(I.value)?N+=_c(I):N+=Su(I)),N}).join(`,${_}`)}function pu(j,r){return Rl(j,r)}const Yu=j=>j==="ot"||j==="sf"||j==="st",Cu=j=>typeof j=="number"?y(j):j!=null&&j!==""&&j!==!1;function Bc(j,r){const a=new URL(j),_=new URL(r);if(a.origin!==_.origin)return j;const E=a.pathname.split("/").slice(1),I=_.pathname.split("/").slice(1,-1);for(;E[0]===I[0];)E.shift(),I.shift();for(;I.length;)I.shift(),E.unshift("..");return E.join("/")}function Tc(){try{return crypto.randomUUID()}catch(j){try{const r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.slice(a.lastIndexOf("/")+1)}catch(r){let a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,E=>{const I=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(E=="x"?I:I&3|8).toString(16)})}}}const Ao=j=>Math.round(j),ll=(j,r)=>(r!=null&&r.baseUrl&&(j=Bc(j,r.baseUrl)),encodeURIComponent(j)),bl=j=>Ao(j/100)*100,Ll={br:Ao,d:Ao,bl,dl:bl,mtp:bl,nor:ll,rtp:bl,tb:Ao};function Ml(j,r){const a={};if(j==null||typeof j!="object")return a;const _=Object.keys(j).sort(),E=i({},Ll,r==null?void 0:r.formatters),I=r==null?void 0:r.filter;return _.forEach(N=>{if(I!=null&&I(N))return;let H=j[N];const oe=E[N];oe&&(H=oe(H,r)),!(N==="v"&&H===1)&&(N=="pr"&&H===1||Cu(H)&&(Yu(N)&&typeof H=="string"&&(H=new Dl(H)),a[N]=H))}),a}function xl(j,r={}){return j?pu(Ml(j,r),i({whitespace:!1},r)):""}function Fl(j,r={}){if(!j)return{};const a=Object.entries(j),_=Object.entries(hu).concat(Object.entries((r==null?void 0:r.customHeaderMap)||{})),E=a.reduce((I,N)=>{var H,oe;const[he,be]=N,Se=((H=_.find(De=>De[1].includes(he)))==null?void 0:H[0])||zu.REQUEST;return(oe=I[Se])!=null||(I[Se]={}),I[Se][he]=be,I},{});return Object.entries(E).reduce((I,[N,H])=>(I[N]=xl(H,r),I),{})}function Oc(j,r,a){return i(j,Fl(r,a))}const ql="CMCD";function Bl(j,r={}){if(!j)return"";const a=xl(j,r);return`${ql}=${encodeURIComponent(a)}`}const cl=/CMCD=[^&#]+/;function Pc(j,r,a){const _=Bl(r,a);if(!_)return j;if(cl.test(j))return j.replace(cl,_);const E=j.includes("?")?"&":"?";return`${j}${E}${_}`}class mc{constructor(r){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=E=>{try{this.apply(E,{ot:go.MANIFEST,su:!this.initialized})}catch(I){R.warn("Could not generate manifest CMCD data.",I)}},this.applyFragmentData=E=>{try{const I=E.frag,N=this.hls.levels[I.level],H=this.getObjectType(I),oe={d:I.duration*1e3,ot:H};(H===go.VIDEO||H===go.AUDIO||H==go.MUXED)&&(oe.br=N.bitrate/1e3,oe.tb=this.getTopBandwidth(H)/1e3,oe.bl=this.getBufferLength(H)),this.apply(E,oe)}catch(I){R.warn("Could not generate segment CMCD data.",I)}},this.hls=r;const a=this.config=r.config,{cmcd:_}=a;_!=null&&(a.pLoader=this.createPlaylistLoader(),a.fLoader=this.createFragmentLoader(),this.sid=_.sessionId||Tc(),this.cid=_.contentId,this.useHeaders=_.useHeaders===!0,this.includeKeys=_.includeKeys,this.registerListeners())}registerListeners(){const r=this.hls;r.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(l.MEDIA_DETACHED,this.onMediaDetached,this),r.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const r=this.hls;r.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(l.MEDIA_DETACHED,this.onMediaDetached,this),r.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(r,a){this.media=a.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(r,a){var _,E;this.audioBuffer=(_=a.tracks.audio)==null?void 0:_.buffer,this.videoBuffer=(E=a.tracks.video)==null?void 0:E.buffer}createData(){var r;return{v:1,sf:Jl.HLS,sid:this.sid,cid:this.cid,pr:(r=this.media)==null?void 0:r.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(r,a={}){i(a,this.createData());const _=a.ot===go.INIT||a.ot===go.VIDEO||a.ot===go.MUXED;this.starved&&_&&(a.bs=!0,a.su=!0,this.starved=!1),a.su==null&&(a.su=this.buffering);const{includeKeys:E}=this;E&&(a=Object.keys(a).reduce((I,N)=>(E.includes(N)&&(I[N]=a[N]),I),{})),this.useHeaders?(r.headers||(r.headers={}),Oc(r.headers,a)):r.url=Pc(r.url,a)}getObjectType(r){const{type:a}=r;if(a==="subtitle")return go.TIMED_TEXT;if(r.sn==="initSegment")return go.INIT;if(a==="audio")return go.AUDIO;if(a==="main")return this.hls.audioTracks.length?go.VIDEO:go.MUXED}getTopBandwidth(r){let a=0,_;const E=this.hls;if(r===go.AUDIO)_=E.audioTracks;else{const I=E.maxAutoLevel,N=I>-1?I+1:E.levels.length;_=E.levels.slice(0,N)}for(const I of _)I.bitrate>a&&(a=I.bitrate);return a>0?a:NaN}getBufferLength(r){const a=this.hls.media,_=r===go.AUDIO?this.audioBuffer:this.videoBuffer;return!_||!a?NaN:hr.bufferInfo(_,a.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:r}=this.config,a=this.applyPlaylistData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}createFragmentLoader(){const{fLoader:r}=this.config,a=this.applyFragmentData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}}const Lu=3e5;class Nl{constructor(r){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=r,this.log=R.log.bind(R,"[content-steering]:"),this.registerListeners()}registerListeners(){const r=this.hls;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.ERROR,this.onError,this)}unregisterListeners(){const r=this.hls;r&&(r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const r=this.timeToLoad*1e3-(performance.now()-this.updated);if(r>0){this.scheduleRefresh(this.uri,r);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(r){const a=this.levels;a&&(this.levels=a.filter(_=>_!==r))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(r,a){const{contentSteering:_}=a;_!==null&&(this.pathwayId=_.pathwayId,this.uri=_.uri,this.started&&this.startLoad())}onManifestParsed(r,a){this.audioTracks=a.audioTracks,this.subtitleTracks=a.subtitleTracks}onError(r,a){const{errorAction:_}=a;if((_==null?void 0:_.action)===Yn.SendAlternateToPenaltyBox&&_.flags===va.MoveAllAlternatesMatchingHost){const E=this.levels;let I=this.pathwayPriority,N=this.pathwayId;if(a.context){const{groupId:H,pathwayId:oe,type:he}=a.context;H&&E?N=this.getPathwayForGroupId(H,he,N):oe&&(N=oe)}N in this.penalizedPathways||(this.penalizedPathways[N]=performance.now()),!I&&E&&(I=E.reduce((H,oe)=>(H.indexOf(oe.pathwayId)===-1&&H.push(oe.pathwayId),H),[])),I&&I.length>1&&(this.updatePathwayPriority(I),_.resolved=this.pathwayId!==N),_.resolved||R.warn(`Could not resolve ${a.details} ("${a.error.message}") with content-steering for Pathway: ${N} levels: ${E&&E.length} priorities: ${JSON.stringify(I)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(r){this.levels=r;let a=this.getLevelsForPathway(this.pathwayId);if(a.length===0){const _=r[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${_}"`),a=this.getLevelsForPathway(_),this.pathwayId=_}return a.length!==r.length&&this.log(`Found ${a.length}/${r.length} levels in Pathway "${this.pathwayId}"`),a}getLevelsForPathway(r){return this.levels===null?[]:this.levels.filter(a=>r===a.pathwayId)}updatePathwayPriority(r){this.pathwayPriority=r;let a;const _=this.penalizedPathways,E=performance.now();Object.keys(_).forEach(I=>{E-_[I]>Lu&&delete _[I]});for(let I=0;I0){this.log(`Setting Pathway to "${N}"`),this.pathwayId=N,za(a),this.hls.trigger(l.LEVELS_UPDATED,{levels:a});const he=this.hls.levels[H];oe&&he&&this.levels&&(he.attrs["STABLE-VARIANT-ID"]!==oe.attrs["STABLE-VARIANT-ID"]&&he.bitrate!==oe.bitrate&&this.log(`Unstable Pathways change from bitrate ${oe.bitrate} to ${he.bitrate}`),this.hls.nextLoadLevel=H);break}}}getPathwayForGroupId(r,a,_){const E=this.getLevelsForPathway(_).concat(this.levels||[]);for(let I=0;I{const{ID:N,"BASE-ID":H,"URI-REPLACEMENT":oe}=I;if(a.some(be=>be.pathwayId===N))return;const he=this.getLevelsForPathway(H).map(be=>{const Se=new Z(be.attrs);Se["PATHWAY-ID"]=N;const De=Se.AUDIO&&`${Se.AUDIO}_clone_${N}`,He=Se.SUBTITLES&&`${Se.SUBTITLES}_clone_${N}`;De&&(_[Se.AUDIO]=De,Se.AUDIO=De),He&&(E[Se.SUBTITLES]=He,Se.SUBTITLES=He);const Xe=ec(be.uri,Se["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",oe),lt=new Fa({attrs:Se,audioCodec:be.audioCodec,bitrate:be.bitrate,height:be.height,name:be.name,url:Xe,videoCodec:be.videoCodec,width:be.width});if(be.audioGroups)for(let vt=1;vt{this.log(`Loaded steering manifest: "${E}"`);const Xe=be.data;if(Xe.VERSION!==1){this.log(`Steering VERSION ${Xe.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Xe.TTL;const{"RELOAD-URI":lt,"PATHWAY-CLONES":vt,"PATHWAY-PRIORITY":Qt}=Xe;if(lt)try{this.uri=new self.URL(lt,E).href}catch(Tr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${lt}`);return}this.scheduleRefresh(this.uri||De.url),vt&&this.clonePathways(vt);const yr={steeringManifest:Xe,url:E.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,yr),Qt&&this.updatePathwayPriority(Qt)},onError:(be,Se,De,He)=>{if(this.log(`Error loading steering manifest: ${be.code} ${be.text} (${Se.url})`),this.stopLoad(),be.code===410){this.enabled=!1,this.log(`Steering manifest ${Se.url} no longer available`);return}let Xe=this.timeToLoad*1e3;if(be.code===429){const lt=this.loader;if(typeof(lt==null?void 0:lt.getResponseHeader)=="function"){const vt=lt.getResponseHeader("Retry-After");vt&&(Xe=parseFloat(vt)*1e3)}this.log(`Steering manifest ${Se.url} rate limited`);return}this.scheduleRefresh(this.uri||Se.url,Xe)},onTimeout:(be,Se,De)=>{this.log(`Timeout loading steering manifest (${Se.url})`),this.scheduleRefresh(this.uri||Se.url)}};this.log(`Requesting steering manifest: ${E}`),this.loader.load(I,oe,he)}scheduleRefresh(r,a=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var _;const E=(_=this.hls)==null?void 0:_.media;if(E&&!E.ended){this.loadSteeringManifest(r);return}this.scheduleRefresh(r,this.timeToLoad*1e3)},a)}}function wl(j,r,a,_){j&&Object.keys(r).forEach(E=>{const I=j.filter(N=>N.groupId===E).map(N=>{const H=i({},N);return H.details=void 0,H.attrs=new Z(H.attrs),H.url=H.attrs.URI=ec(N.url,N.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",a),H.groupId=H.attrs["GROUP-ID"]=r[E],H.attrs["PATHWAY-ID"]=_,H});j.push(...I)})}function ec(j,r,a,_){const{HOST:E,PARAMS:I,[a]:N}=_;let H;r&&(H=N==null?void 0:N[r],H&&(j=H));const oe=new self.URL(j);return E&&!H&&(oe.host=E),I&&Object.keys(I).sort().forEach(he=>{he&&oe.searchParams.set(he,I[he])}),oe.href}const tc=/^age:\s*[\d.]+\s*$/im;class vc{constructor(r){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=r&&r.xhrSetup||null,this.stats=new Q,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(r,a,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=a,this.callbacks=_,this.loadInternal()}loadInternal(){const{config:r,context:a}=this;if(!r||!a)return;const _=this.loader=new self.XMLHttpRequest,E=this.stats;E.loading.first=0,E.loaded=0,E.aborted=!1;const I=this.xhrSetup;I?Promise.resolve().then(()=>{if(!(this.loader!==_||this.stats.aborted))return I(_,a.url)}).catch(N=>{if(!(this.loader!==_||this.stats.aborted))return _.open("GET",a.url,!0),I(_,a.url)}).then(()=>{this.loader!==_||this.stats.aborted||this.openAndSendXhr(_,a,r)}).catch(N=>{this.callbacks.onError({code:_.status,text:N.message},a,_,E)}):this.openAndSendXhr(_,a,r)}openAndSendXhr(r,a,_){r.readyState||r.open("GET",a.url,!0);const E=a.headers,{maxTimeToFirstByteMs:I,maxLoadTimeMs:N}=_.loadPolicy;if(E)for(const H in E)r.setRequestHeader(H,E[H]);a.rangeEnd&&r.setRequestHeader("Range","bytes="+a.rangeStart+"-"+(a.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=a.responseType,self.clearTimeout(this.requestTimeout),_.timeout=I&&y(I)?I:N,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),_.timeout),r.send()}readystatechange(){const{context:r,loader:a,stats:_}=this;if(!r||!a)return;const E=a.readyState,I=this.config;if(!_.aborted&&E>=2&&(_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start),I.timeout!==I.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),I.timeout=I.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),I.loadPolicy.maxLoadTimeMs-(_.loading.first-_.loading.start)))),E===4)){self.clearTimeout(this.requestTimeout),a.onreadystatechange=null,a.onprogress=null;const N=a.status,H=a.responseType==="text"?a.responseText:null;if(N>=200&&N<300){const Se=H!=null?H:a.response;if(Se!=null){_.loading.end=Math.max(self.performance.now(),_.loading.first);const De=a.responseType==="arraybuffer"?Se.byteLength:Se.length;if(_.loaded=_.total=De,_.bwEstimate=_.total*8e3/(_.loading.end-_.loading.first),!this.callbacks)return;const He=this.callbacks.onProgress;if(He&&He(_,r,Se,a),!this.callbacks)return;const Xe={url:a.responseURL,data:Se,code:N};this.callbacks.onSuccess(Xe,_,r,a);return}}const oe=I.loadPolicy.errorRetry,he=_.retry,be={url:r.url,data:void 0,code:N};fo(oe,he,!1,be)?this.retry(oe):(R.error(`${N} while loading ${r.url}`),this.callbacks.onError({code:N,text:a.statusText},r,a,_))}}loadtimeout(){if(!this.config)return;const r=this.config.loadPolicy.timeoutRetry,a=this.stats.retry;if(fo(r,a,!0))this.retry(r);else{var _;R.warn(`timeout while loading ${(_=this.context)==null?void 0:_.url}`);const E=this.callbacks;E&&(this.abortInternal(),E.onTimeout(this.stats,this.context,this.loader))}}retry(r){const{context:a,stats:_}=this;this.retryDelay=Ks(r,_.retry),_.retry++,R.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${a==null?void 0:a.url}, retrying ${_.retry}/${r.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(r){const a=this.stats;a.loaded=r.loaded,r.lengthComputable&&(a.total=r.total)}getCacheAge(){let r=null;if(this.loader&&tc.test(this.loader.getAllResponseHeaders())){const a=this.loader.getResponseHeader("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.loader&&new RegExp(`^${r}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(r):null}}function A(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(j){}return!1}const P=/(\d+)-(\d+)\/(\d+)/;class D{constructor(r){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=r.fetchSetup||zn,this.controller=new self.AbortController,this.stats=new Q}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(r,a,_){const E=this.stats;if(E.loading.start)throw new Error("Loader can only be used once.");E.loading.start=self.performance.now();const I=pe(r,this.controller.signal),N=_.onProgress,H=r.responseType==="arraybuffer",oe=H?"byteLength":"length",{maxTimeToFirstByteMs:he,maxLoadTimeMs:be}=a.loadPolicy;this.context=r,this.config=a,this.callbacks=_,this.request=this.fetchSetup(r,I),self.clearTimeout(this.requestTimeout),a.timeout=he&&y(he)?he:be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},a.timeout),self.fetch(this.request).then(Se=>{this.response=this.loader=Se;const De=Math.max(self.performance.now(),E.loading.start);if(self.clearTimeout(this.requestTimeout),a.timeout=be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},be-(De-E.loading.start)),!Se.ok){const{status:He,statusText:Xe}=Se;throw new dn(Xe||"fetch, bad network response",He,Se)}return E.loading.first=De,E.total=an(Se.headers)||E.total,N&&y(a.highWaterMark)?this.loadProgressively(Se,E,r,a.highWaterMark,N):H?Se.arrayBuffer():r.responseType==="json"?Se.json():Se.text()}).then(Se=>{const De=this.response;if(!De)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),E.loading.end=Math.max(self.performance.now(),E.loading.first);const He=Se[oe];He&&(E.loaded=E.total=He);const Xe={url:De.url,data:Se,code:De.status};N&&!y(a.highWaterMark)&&N(E,r,Se,De),_.onSuccess(Xe,E,r,De)}).catch(Se=>{if(self.clearTimeout(this.requestTimeout),E.aborted)return;const De=Se&&Se.code||0,He=Se?Se.message:null;_.onError({code:De,text:He},r,Se?Se.details:null,E)})}getCacheAge(){let r=null;if(this.response){const a=this.response.headers.get("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.response?this.response.headers.get(r):null}loadProgressively(r,a,_,E=0,I){const N=new Bs,H=r.body.getReader(),oe=()=>H.read().then(he=>{if(he.done)return N.dataLength&&I(a,_,N.flush(),r),Promise.resolve(new ArrayBuffer(0));const be=he.value,Se=be.length;return a.loaded+=Se,Se=E&&I(a,_,N.flush(),r)):I(a,_,be,r),oe()}).catch(()=>Promise.reject());return oe()}}function pe(j,r){const a={method:"GET",mode:"cors",credentials:"same-origin",signal:r,headers:new self.Headers(i({},j.headers))};return j.rangeEnd&&a.headers.set("Range","bytes="+j.rangeStart+"-"+String(j.rangeEnd-1)),a}function Oe(j){const r=P.exec(j);if(r)return parseInt(r[2])-parseInt(r[1])+1}function an(j){const r=j.get("Content-Range");if(r){const _=Oe(r);if(y(_))return _}const a=j.get("Content-Length");if(a)return parseInt(a)}function zn(j,r){return new self.Request(j.url,r)}class dn extends Error{constructor(r,a,_){super(r),this.code=void 0,this.details=void 0,this.code=a,this.details=_}}const Mi=/\s/,Qa={newCue(j,r,a,_){const E=[];let I,N,H,oe,he;const be=self.VTTCue||self.TextTrackCue;for(let De=0;De<_.rows.length;De++)if(I=_.rows[De],H=!0,oe=0,he="",!I.isEmpty()){var Se;for(let lt=0;lt=16?oe--:oe++;const He=Wl(he.trim()),Xe=ju(r,a,He);j!=null&&(Se=j.cues)!=null&&Se.getCueById(Xe)||(N=new be(r,a,He),N.id=Xe,N.line=De+1,N.align="left",N.position=10+Math.min(80,Math.floor(oe*8/32)*10),E.push(N))}return j&&E.length&&(E.sort((De,He)=>De.line==="auto"||He.line==="auto"?0:De.line>8&&He.line>8?He.line-De.line:De.line-He.line),E.forEach(De=>Hr(j,De))),E}},Oa={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},To=f(f({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:vc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Bo,bufferController:mo,capLevelController:dc,errorController:ts,fpsController:Ql,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:cr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Oa},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ds()),{},{subtitleStreamController:cs,subtitleTrackController:Hs,timelineController:Ma,audioStreamController:ha,audioTrackController:gs,emeController:nl,cmcdController:mc,contentSteeringController:Nl});function ds(){return{cueHandler:Qa,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function yo(j,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(r.liveMaxLatencyDurationCount!==void 0&&(r.liveSyncDurationCount===void 0||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(r.liveMaxLatencyDuration!==void 0&&(r.liveSyncDuration===void 0||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const a=ys(j),_=["manifest","level","frag"],E=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return _.forEach(I=>{const N=`${I==="level"?"playlist":I}LoadPolicy`,H=r[N]===void 0,oe=[];E.forEach(he=>{const be=`${I}Loading${he}`,Se=r[be];if(Se!==void 0&&H){oe.push(be);const De=a[N].default;switch(r[N]={default:De},he){case"TimeOut":De.maxLoadTimeMs=Se,De.maxTimeToFirstByteMs=Se;break;case"MaxRetry":De.errorRetry.maxNumRetry=Se,De.timeoutRetry.maxNumRetry=Se;break;case"RetryDelay":De.errorRetry.retryDelayMs=Se,De.timeoutRetry.retryDelayMs=Se;break;case"MaxRetryTimeout":De.errorRetry.maxRetryDelayMs=Se,De.timeoutRetry.maxRetryDelayMs=Se;break}}}),oe.length&&R.warn(`hls.js config: "${oe.join('", "')}" setting(s) are deprecated, use "${N}": ${JSON.stringify(r[N])}`)}),f(f({},a),r)}function ys(j){return j&&typeof j=="object"?Array.isArray(j)?j.map(ys):Object.keys(j).reduce((r,a)=>(r[a]=ys(j[a]),r),{}):j}function gc(j){const r=j.loader;r!==D&&r!==vc?(R.log("[config]: Custom loader detected, cannot enable progressive streaming"),j.progressive=!1):A()&&(j.loader=D,j.progressive=!0,j.enableSoftwareAES=!0,R.log("[config]: Progressive streaming enabled, using FetchLoader"))}let $l;class rc extends Ka{constructor(r,a){super(r,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=a,this._registerListeners()}_registerListeners(){const{hls:r}=this;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.LEVEL_LOADED,this.onLevelLoaded,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.FRAG_BUFFERED,this.onFragBuffered,this),r.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:r}=this;r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.LEVEL_LOADED,this.onLevelLoaded,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.FRAG_BUFFERED,this.onFragBuffered,this),r.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(a=>{a.loadError=0,a.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(r,a){this.resetLevels()}onManifestLoaded(r,a){const _=this.hls.config.preferManagedMediaSource,E=[],I={},N={};let H=!1,oe=!1,he=!1;a.levels.forEach(be=>{var Se,De;const He=be.attrs;let{audioCodec:Xe,videoCodec:lt}=be;((Se=Xe)==null?void 0:Se.indexOf("mp4a.40.34"))!==-1&&($l||($l=/chrome|firefox/i.test(navigator.userAgent)),$l&&(be.audioCodec=Xe=void 0)),Xe&&(be.audioCodec=Xe=wi(Xe,_)),((De=lt)==null?void 0:De.indexOf("avc1"))===0&&(lt=be.videoCodec=Ji(lt));const{width:vt,height:Qt,unknownCodecs:yr}=be;if(H||(H=!!(vt&&Qt)),oe||(oe=!!lt),he||(he=!!Xe),yr!=null&&yr.length||Xe&&!yi(Xe,"audio",_)||lt&&!yi(lt,"video",_))return;const{CODECS:Tr,"FRAME-RATE":Wr,"HDCP-LEVEL":Br,"PATHWAY-ID":Cn,RESOLUTION:un,"VIDEO-RANGE":Hn}=He,En=`${`${Cn||"."}-`}${be.bitrate}-${un}-${Wr}-${Tr}-${Hn}-${Br}`;if(I[En])if(I[En].uri!==be.url&&!be.attrs["PATHWAY-ID"]){const qn=N[En]+=1;be.attrs["PATHWAY-ID"]=new Array(qn+1).join(".");const Ta=new Fa(be);I[En]=Ta,E.push(Ta)}else I[En].addGroupId("audio",He.AUDIO),I[En].addGroupId("text",He.SUBTITLES);else{const qn=new Fa(be);I[En]=qn,N[En]=1,E.push(qn)}}),this.filterAndSortMediaOptions(E,a,H,oe,he)}filterAndSortMediaOptions(r,a,_,E,I){let N=[],H=[],oe=r;if((_||E)&&I&&(oe=oe.filter(({videoCodec:Xe,videoRange:lt,width:vt,height:Qt})=>(!!Xe||!!(vt&&Qt))&&es(lt))),oe.length===0){Promise.resolve().then(()=>{if(this.hls){a.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(a.levels[0].attrs)}`);const Xe=new Error("no level with compatible codecs found in manifest");this.hls.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:a.url,error:Xe,reason:Xe.message})}});return}if(a.audioTracks){const{preferManagedMediaSource:Xe}=this.hls.config;N=a.audioTracks.filter(lt=>!lt.audioCodec||yi(lt.audioCodec,"audio",Xe)),nc(N)}a.subtitles&&(H=a.subtitles,nc(H));const he=oe.slice(0);oe.sort((Xe,lt)=>{if(Xe.attrs["HDCP-LEVEL"]!==lt.attrs["HDCP-LEVEL"])return(Xe.attrs["HDCP-LEVEL"]||"")>(lt.attrs["HDCP-LEVEL"]||"")?1:-1;if(_&&Xe.height!==lt.height)return Xe.height-lt.height;if(Xe.frameRate!==lt.frameRate)return Xe.frameRate-lt.frameRate;if(Xe.videoRange!==lt.videoRange)return Ds.indexOf(Xe.videoRange)-Ds.indexOf(lt.videoRange);if(Xe.videoCodec!==lt.videoCodec){const vt=oi(Xe.videoCodec),Qt=oi(lt.videoCodec);if(vt!==Qt)return Qt-vt}if(Xe.uri===lt.uri&&Xe.codecSet!==lt.codecSet){const vt=Wi(Xe.codecSet),Qt=Wi(lt.codecSet);if(vt!==Qt)return Qt-vt}return Xe.averageBitrate!==lt.averageBitrate?Xe.averageBitrate-lt.averageBitrate:0});let be=he[0];if(this.steering&&(oe=this.steering.filterParsedLevels(oe),oe.length!==he.length)){for(let Xe=0;Xevt&&vt===To.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Qt)}break}const De=I&&!E,He={levels:oe,audioTracks:N,subtitleTracks:H,sessionData:a.sessionData,sessionKeys:a.sessionKeys,firstLevel:this._firstLevel,stats:a.stats,audio:I,video:E,altAudio:!De&&N.some(Xe=>!!Xe.url)};this.hls.trigger(l.MANIFEST_PARSED,He),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(r){const a=this._levels;if(a.length===0)return;if(r<0||r>=a.length){const be=new Error("invalid level idx"),Se=r<0;if(this.hls.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.LEVEL_SWITCH_ERROR,level:r,fatal:Se,error:be,reason:be.message}),Se)return;r=Math.min(r,a.length-1)}const _=this.currentLevelIndex,E=this.currentLevel,I=E?E.attrs["PATHWAY-ID"]:void 0,N=a[r],H=N.attrs["PATHWAY-ID"];if(this.currentLevelIndex=r,this.currentLevel=N,_===r&&N.details&&E&&I===H)return;this.log(`Switching to level ${r} (${N.height?N.height+"p ":""}${N.videoRange?N.videoRange+" ":""}${N.codecSet?N.codecSet+" ":""}@${N.bitrate})${H?" with Pathway "+H:""} from level ${_}${I?" with Pathway "+I:""}`);const oe={level:r,attrs:N.attrs,details:N.details,bitrate:N.bitrate,averageBitrate:N.averageBitrate,maxBitrate:N.maxBitrate,realBitrate:N.realBitrate,width:N.width,height:N.height,codecSet:N.codecSet,audioCodec:N.audioCodec,videoCodec:N.videoCodec,audioGroups:N.audioGroups,subtitleGroups:N.subtitleGroups,loaded:N.loaded,loadError:N.loadError,fragmentError:N.fragmentError,name:N.name,id:N.id,uri:N.uri,url:N.url,urlId:0,audioGroupIds:N.audioGroupIds,textGroupIds:N.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,oe);const he=N.details;if(!he||he.live){const be=this.switchParams(N.uri,E==null?void 0:E.details,he);this.loadPlaylist(be)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}get firstLevel(){return this._firstLevel}set firstLevel(r){this._firstLevel=r}get startLevel(){if(this._startLevel===void 0){const r=this.hls.config.startLevel;return r!==void 0?r:this.hls.firstAutoLevel}return this._startLevel}set startLevel(r){this._startLevel=r}onError(r,a){a.fatal||!a.context||a.context.type===ye.LEVEL&&a.context.level===this.level&&this.checkRetry(a)}onFragBuffered(r,{frag:a}){if(a!==void 0&&a.type===Ye.MAIN){const _=a.elementaryStreams;if(!Object.keys(_).some(I=>!!_[I]))return;const E=this._levels[a.level];E!=null&&E.loadError&&(this.log(`Resetting level error count of ${E.loadError} on frag buffered`),E.loadError=0)}}onLevelLoaded(r,a){var _;const{level:E,details:I}=a,N=this._levels[E];if(!N){var H;this.warn(`Invalid level index ${E}`),(H=a.deliveryDirectives)!=null&&H.skip&&(I.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(N.fragmentError===0&&(N.loadError=0),this.playlistLoaded(E,a,N.details)):(_=a.deliveryDirectives)!=null&&_.skip&&(I.deltaUpdateFailed=!0)}loadPlaylist(r){super.loadPlaylist();const a=this.currentLevelIndex,_=this.currentLevel;if(_&&this.shouldLoadPlaylist(_)){let E=_.uri;if(r)try{E=r.addDirectives(E)}catch(N){this.warn(`Could not construct new URL with HLS Delivery Directives: ${N}`)}const I=_.attrs["PATHWAY-ID"];this.log(`Loading level index ${a}${(r==null?void 0:r.msn)!==void 0?" at sn "+r.msn+" part "+r.part:""} with${I?" Pathway "+I:""} ${E}`),this.clearTimer(),this.hls.trigger(l.LEVEL_LOADING,{url:E,level:a,pathwayId:_.attrs["PATHWAY-ID"],id:0,deliveryDirectives:r||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}removeLevel(r){var a;const _=this._levels.filter((E,I)=>I!==r?!0:(this.steering&&this.steering.removeLevel(E),E===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,E.details&&E.details.fragments.forEach(N=>N.level=-1)),!1));za(_),this._levels=_,this.currentLevelIndex>-1&&(a=this.currentLevel)!=null&&a.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(l.LEVELS_UPDATED,{levels:_})}onLevelsUpdated(r,{levels:a}){this._levels=a}checkMaxAutoUpdated(){const{autoLevelCapping:r,maxAutoLevel:a,maxHdcpLevel:_}=this.hls;this._maxAutoLevel!==a&&(this._maxAutoLevel=a,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:r,levels:this.levels,maxAutoLevel:a,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:_}))}}function nc(j){const r={};j.forEach(a=>{const _=a.groupId||"";a.id=r[_]=r[_]||0,r[_]++})}class fl{constructor(r){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=r}abort(r){for(const _ in this.keyUriToKeyInfo){const E=this.keyUriToKeyInfo[_].loader;if(E){var a;if(r&&r!==((a=E.context)==null?void 0:a.frag.type))return;E.abort()}}}detach(){for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r];(a.mediaKeySessionContext||a.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[r]}}destroy(){this.detach();for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r].loader;a&&a.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(r,a=x.KEY_LOAD_ERROR,_,E,I){return new Ni({type:b.NETWORK_ERROR,details:a,fatal:!1,frag:r,response:I,error:_,networkDetails:E})}loadClear(r,a){if(this.emeController&&this.config.emeEnabled){const{sn:_,cc:E}=r;for(let I=0;I{N.setKeyFormat(H)});break}}}}load(r){return!r.decryptdata&&r.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(r).then(a=>this.loadInternal(r,a)):this.loadInternal(r)}loadInternal(r,a){var _,E;a&&r.setKeyFormat(a);const I=r.decryptdata;if(!I){const he=new Error(a?`Expected frag.decryptdata to be defined after setting format ${a}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,he))}const N=I.uri;if(!N)return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${N}"`)));let H=this.keyUriToKeyInfo[N];if((_=H)!=null&&_.decryptdata.key)return I.key=H.decryptdata.key,Promise.resolve({frag:r,keyInfo:H});if((E=H)!=null&&E.keyLoadPromise){var oe;switch((oe=H.mediaKeySessionContext)==null?void 0:oe.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return H.keyLoadPromise.then(he=>(I.key=he.keyInfo.decryptdata.key,{frag:r,keyInfo:H}))}}switch(H=this.keyUriToKeyInfo[N]={decryptdata:I,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},I.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return I.keyFormat==="identity"?this.loadKeyHTTP(H,r):this.loadKeyEME(H,r);case"AES-128":return this.loadKeyHTTP(H,r);default:return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${I.method}"`)))}}loadKeyEME(r,a){const _={frag:a,keyInfo:r};if(this.emeController&&this.config.emeEnabled){const E=this.emeController.loadKey(_);if(E)return(r.keyLoadPromise=E.then(I=>(r.mediaKeySessionContext=I,_))).catch(I=>{throw r.keyLoadPromise=null,I})}return Promise.resolve(_)}loadKeyHTTP(r,a){const _=this.config,E=_.loader,I=new E(_);return a.keyLoader=r.loader=I,r.keyLoadPromise=new Promise((N,H)=>{const oe={keyInfo:r,frag:a,responseType:"arraybuffer",url:r.decryptdata.uri},he=_.keyLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{const{frag:vt,keyInfo:Qt,url:yr}=Xe;if(!vt.decryptdata||Qt!==this.keyUriToKeyInfo[yr])return H(this.createKeyLoadError(vt,x.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Qt.decryptdata.key=vt.decryptdata.key=new Uint8Array(De.data),vt.keyLoader=null,Qt.loader=null,N({frag:vt,keyInfo:Qt})},onError:(De,He,Xe,lt)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_ERROR,new Error(`HTTP Error ${De.code} loading key ${De.text}`),Xe,f({url:oe.url,data:void 0},De)))},onTimeout:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Xe))},onAbort:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.INTERNAL_ABORTED,new Error("key loading aborted"),Xe))}};I.load(oe,be,Se)})}resetLoader(r){const{frag:a,keyInfo:_,url:E}=r,I=_.loader;a.keyLoader===I&&(a.keyLoader=null,_.loader=null),delete this.keyUriToKeyInfo[E],I&&I.destroy()}}function ki(){return self.SourceBuffer||self.WebKitSourceBuffer}function El(){if(!si())return!1;const r=ki();return!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function"}function ic(){if(!El())return!1;const j=si();return typeof(j==null?void 0:j.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(r=>j.isTypeSupported(la(r,"video")))||["mp4a.40.2","fLaC"].some(r=>j.isTypeSupported(la(r,"audio"))))}function Uo(){var j;const r=ki();return typeof(r==null||(j=r.prototype)==null?void 0:j.changeType)=="function"}const no=250,Wa=2,dl=.1,Sl=.05;class ac{constructor(r,a,_,E){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=r,this.media=a,this.fragmentTracker=_,this.hls=E}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(r,a){const{config:_,media:E,stalled:I}=this;if(E===null)return;const{currentTime:N,seeking:H}=E,oe=this.seeking&&!H,he=!this.seeking&&H;if(this.seeking=H,N!==r){if(this.moved=!0,H||(this.nudgeRetry=0),I!==null){if(this.stallReported){const vt=self.performance.now()-I;R.warn(`playback not stuck anymore @${N}, after ${Math.round(vt)}ms`),this.stallReported=!1}this.stalled=null}return}if(he||oe){this.stalled=null;return}if(E.paused&&!H||E.ended||E.playbackRate===0||!hr.getBuffered(E).length){this.nudgeRetry=0;return}const be=hr.bufferInfo(E,N,0),Se=be.nextStart||0;if(H){const vt=be.len>Wa,Qt=!Se||a&&a.start<=N||Se-N>Wa&&!this.fragmentTracker.getPartialFragment(N);if(vt||Qt)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var De;if(!(be.len>0)&&!Se)return;const Qt=Math.max(Se,be.start||0)-N,yr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Wr=(yr==null||(De=yr.details)==null?void 0:De.live)?yr.details.targetduration*2:Wa,Br=this.fragmentTracker.getPartialFragment(N);if(Qt>0&&(Qt<=Wr||Br)){E.paused||this._trySkipBufferHole(Br);return}}const He=self.performance.now();if(I===null){this.stalled=He;return}const Xe=He-I;if(!H&&Xe>=no&&(this._reportStall(be),!this.media))return;const lt=hr.bufferInfo(E,N,_.maxBufferHole);this._tryFixBufferStall(lt,Xe)}_tryFixBufferStall(r,a){const{config:_,fragmentTracker:E,media:I}=this;if(I===null)return;const N=I.currentTime,H=E.getPartialFragment(N);H&&(this._trySkipBufferHole(H)||!this.media)||(r.len>_.maxBufferHole||r.nextStart&&r.nextStart-N<_.maxBufferHole)&&a>_.highBufferWatchdogPeriod*1e3&&(R.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(r){const{hls:a,media:_,stallReported:E}=this;if(!E&&_){this.stallReported=!0;const I=new Error(`Playback stalling at @${_.currentTime} due to low buffer (${JSON.stringify(r)})`);R.warn(I.message),a.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.BUFFER_STALLED_ERROR,fatal:!1,error:I,buffer:r.len})}}_trySkipBufferHole(r){const{config:a,hls:_,media:E}=this;if(E===null)return 0;const I=E.currentTime,N=hr.bufferInfo(E,I,0),H=I0&&N.len<1&&E.readyState<3,be=H-I;if(be>0&&(oe||he)){if(be>a.maxBufferHole){const{fragmentTracker:De}=this;let He=!1;if(I===0){const Xe=De.getAppendedFrag(0,Ye.MAIN);Xe&&H1?(E=0,this.bitrateTest=!0):E=_.firstAutoLevel),_.nextLoadLevel=E,this.level=_.loadLevel,this.loadedmetadata=!1}a>0&&r===-1&&(this.log(`Override startPosition with lastCurrentTime @${a.toFixed(3)}`),r=a),this.state=pn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this._forceStartLoad=!0,this.state=pn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case pn.WAITING_LEVEL:{const{levels:a,level:_}=this,E=a==null?void 0:a[_],I=E==null?void 0:E.details;if(I&&(!I.live||this.levelLastLoaded===E)){if(this.waitForCdnTuneIn(I))break;this.state=pn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=pn.IDLE;break}break}case pn.FRAG_LOADING_WAITING_RETRY:{var r;const a=self.performance.now(),_=this.retryDate;if(!_||a>=_||(r=this.media)!=null&&r.seeking){const{levels:E,level:I}=this,N=E==null?void 0:E[I];this.resetStartWhenNotLoaded(N||null),this.state=pn.IDLE}}break}this.state===pn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:r,levelLastLoaded:a,levels:_,media:E}=this;if(a===null||!E&&(this.startFragRequested||!r.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const I=this.buffering?r.nextLoadLevel:r.loadLevel;if(!(_!=null&&_[I]))return;const N=_[I],H=this.getMainFwdBufferInfo();if(H===null)return;const oe=this.getLevelDetails();if(oe&&this._streamEnded(H,oe)){const lt={};this.altAudio&&(lt.type="video"),this.hls.trigger(l.BUFFER_EOS,lt),this.state=pn.ENDED;return}if(!this.buffering)return;r.loadLevel!==I&&r.manualLevel===-1&&this.log(`Adapting to level ${I} from level ${this.level}`),this.level=r.nextLoadLevel=I;const he=N.details;if(!he||this.state===pn.WAITING_LEVEL||he.live&&this.levelLastLoaded!==N){this.level=I,this.state=pn.WAITING_LEVEL;return}const be=H.len,Se=this.getMaxBufferLength(N.maxBitrate);if(be>=Se)return;this.backtrackFragment&&this.backtrackFragment.start>H.end&&(this.backtrackFragment=null);const De=this.backtrackFragment?this.backtrackFragment.start:H.end;let He=this.getNextFragment(De,he);if(this.couldBacktrack&&!this.fragPrevious&&He&&He.sn!=="initSegment"&&this.fragmentTracker.getState(He)!==Zs.OK){var Xe;const vt=((Xe=this.backtrackFragment)!=null?Xe:He).sn-he.startSN,Qt=he.fragments[vt-1];Qt&&He.cc===Qt.cc&&(He=Qt,this.fragmentTracker.removeFragment(Qt))}else this.backtrackFragment&&H.len&&(this.backtrackFragment=null);if(He&&this.isLoopLoading(He,De)){if(!He.gap){const vt=this.audioOnly&&!this.altAudio?Y.AUDIO:Y.VIDEO,Qt=(vt===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Qt&&this.afterBufferFlushed(Qt,vt,Ye.MAIN)}He=this.getNextFragmentLoopLoading(He,he,H,Ye.MAIN,Se)}He&&(He.initSegment&&!He.initSegment.data&&!this.bitrateTest&&(He=He.initSegment),this.loadFragment(He,N,De))}loadFragment(r,a,_){const E=this.fragmentTracker.getState(r);this.fragCurrent=r,E===Zs.NOT_LOADED||E===Zs.PARTIAL?r.sn==="initSegment"?this._loadInitSegment(r,a):this.bitrateTest?(this.log(`Fragment ${r.sn} of level ${r.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(r,a)):(this.startFragRequested=!0,super.loadFragment(r,a,_)):this.clearTrackerIfNeeded(r)}getBufferedFrag(r){return this.fragmentTracker.getBufferedFrag(r,Ye.MAIN)}followingBufferedFrag(r){return r?this.getBufferedFrag(r.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:r,media:a}=this;if(a!=null&&a.readyState){let _;const E=this.getAppendedFrag(a.currentTime);E&&E.start>1&&this.flushMainBuffer(0,E.start-1);const I=this.getLevelDetails();if(I!=null&&I.live){const H=this.getMainFwdBufferInfo();if(!H||H.len{const N=I.audioCodec;N&&(_=_||N.indexOf("mp4a.40.2")!==-1,E=E||N.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=_&&E&&!Uo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=a.levels,this.startFragRequested=!1}onLevelLoading(r,a){const{levels:_}=this;if(!_||this.state!==pn.IDLE)return;const E=_[a.level];(!E.details||E.details.live&&this.levelLastLoaded!==E||this.waitForCdnTuneIn(E.details))&&(this.state=pn.WAITING_LEVEL)}onLevelLoaded(r,a){var _;const{levels:E}=this,I=a.level,N=a.details,H=N.totalduration;if(!E){this.warn(`Levels were reset while loading level ${I}`);return}this.log(`Level ${I} loaded [${N.startSN},${N.endSN}]${N.lastPartSn?`[part-${N.lastPartSn}-${N.lastPartIndex}]`:""}, cc [${N.startCC}, ${N.endCC}] duration:${H}`);const oe=E[I],he=this.fragCurrent;he&&(this.state===pn.FRAG_LOADING||this.state===pn.FRAG_LOADING_WAITING_RETRY)&&he.level!==a.level&&he.loader&&this.abortCurrentFrag();let be=0;if(N.live||(_=oe.details)!=null&&_.live){var Se;if(this.checkLiveUpdate(N),N.deltaUpdateFailed)return;be=this.alignPlaylists(N,oe.details,(Se=this.levelLastLoaded)==null?void 0:Se.details)}if(oe.details=N,this.levelLastLoaded=oe,this.hls.trigger(l.LEVEL_UPDATED,{details:N,level:I}),this.state===pn.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=pn.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,be),this.tick()}_handleFragmentLoadProgress(r){var a;const{frag:_,part:E,payload:I}=r,{levels:N}=this;if(!N){this.warn(`Levels were reset while fragment load was in progress. Fragment ${_.sn} of level ${_.level} will not be buffered`);return}const H=N[_.level],oe=H.details;if(!oe){this.warn(`Dropping fragment ${_.sn} of level ${_.level} after level details were reset`),this.fragmentTracker.removeFragment(_);return}const he=H.videoCodec,be=oe.PTSKnown||!oe.live,Se=(a=_.initSegment)==null?void 0:a.data,De=this._getAudioCodec(H),He=this.transmuxer=this.transmuxer||new Xn(this.hls,Ye.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Xe=E?E.index:-1,lt=Xe!==-1,vt=new mn(_.level,_.sn,_.stats.chunkCount,I.byteLength,Xe,lt),Qt=this.initPTS[_.cc];He.push(I,Se,De,he,_,E,oe.totalduration,be,vt,Qt)}onAudioTrackSwitching(r,a){const _=this.altAudio;if(!!!a.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const N=this.fragCurrent;N&&(this.log("Switching to main audio track, cancel main fragment load"),N.abortRequests(),this.fragmentTracker.removeFragment(N)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const I=this.hls;_&&(I.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),I.trigger(l.AUDIO_TRACK_SWITCHED,a)}}onAudioTrackSwitched(r,a){const _=a.id,E=!!this.hls.audioTracks[_].url;if(E){const I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=E,this.tick()}onBufferCreated(r,a){const _=a.tracks;let E,I,N=!1;for(const H in _){const oe=_[H];if(oe.id==="main"){if(I=H,E=oe,H==="video"){const he=_[H];he&&(this.videoBuffer=he.buffer)}}else N=!0}N&&E?(this.log(`Alternate track found, use ${I}.buffered to schedule main fragment loading`),this.mediaBuffer=E.buffer):this.mediaBuffer=this.media}onFragBuffered(r,a){const{frag:_,part:E}=a;if(_&&_.type!==Ye.MAIN)return;if(this.fragContextChanged(_)){this.warn(`Fragment ${_.sn}${E?" p: "+E.index:""} of level ${_.level} finished buffering, but was aborted. state: ${this.state}`),this.state===pn.PARSED&&(this.state=pn.IDLE);return}const I=E?E.stats:_.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,E)}onError(r,a){var _;if(a.fatal){this.state=pn.ERROR;return}switch(a.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.MAIN,a);break;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!a.levelRetry&&this.state===pn.WAITING_LEVEL&&((_=a.context)==null?void 0:_.type)===ye.LEVEL&&(this.state=pn.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!a.parent||a.parent!=="main")return;if(a.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(a)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(a);break}}checkBuffer(){const{media:r,gapController:a}=this;if(!(!r||!a||!r.readyState)){if(this.loadedmetadata||!hr.getBuffered(r).length){const _=this.state!==pn.IDLE?this.fragCurrent:null;a.poll(this.lastCurrentTime,_)}this.lastCurrentTime=r.currentTime}}onFragLoadEmergencyAborted(){this.state=pn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(r,{type:a}){if(a!==Y.AUDIO||this.audioOnly&&!this.altAudio){const _=(a===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,a,Ye.MAIN),this.tick()}}onLevelsUpdated(r,a){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=a.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:r}=this;if(!r)return;const a=r.currentTime;let _=this.startPosition;if(_>=0&&a<_){if(r.seeking){this.log(`could not seek to ${_}, already seeking at ${a}`);return}const E=hr.getBuffered(r),N=(E.length?E.start(0):0)-_;N>0&&(N{const{hls:E}=this;if(!_||this.fragContextChanged(r))return;a.fragmentError=0,this.state=pn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const I=r.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),E.trigger(l.FRAG_LOADED,_),r.bitrateTest=!1})}_handleTransmuxComplete(r){var a;const _="main",{hls:E}=this,{remuxResult:I,chunkMeta:N}=r,H=this.getCurrentContext(N);if(!H){this.resetWhenMissingContext(N);return}const{frag:oe,part:he,level:be}=H,{video:Se,text:De,id3:He,initSegment:Xe}=I,{details:lt}=be,vt=this.altAudio?void 0:I.audio;if(this.fragContextChanged(oe)){this.fragmentTracker.removeFragment(oe);return}if(this.state=pn.PARSING,Xe){if(Xe!=null&&Xe.tracks){const Tr=oe.initSegment||oe;this._bufferInitSegment(be,Xe.tracks,Tr,N),E.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:Tr,id:_,tracks:Xe.tracks})}const Qt=Xe.initPTS,yr=Xe.timescale;y(Qt)&&(this.initPTS[oe.cc]={baseTime:Qt,timescale:yr},E.trigger(l.INIT_PTS_FOUND,{frag:oe,id:_,initPTS:Qt,timescale:yr}))}if(Se&<&&oe.sn!=="initSegment"){const Qt=lt.fragments[oe.sn-1-lt.startSN],yr=oe.sn===lt.startSN,Tr=!Qt||oe.cc>Qt.cc;if(I.independent!==!1){const{startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un}=Se;if(he)he.elementaryStreams[Se.type]={startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un};else if(Se.firstKeyFrame&&Se.independent&&N.id===1&&!Tr&&(this.couldBacktrack=!0),Se.dropped&&Se.independent){const Hn=this.getMainFwdBufferInfo(),li=(Hn?Hn.end:this.getLoadPosition())+this.config.maxBufferHole,En=Se.firstKeyFramePTS?Se.firstKeyFramePTS:Wr;if(!yr&&liWa&&(oe.gap=!0);oe.setElementaryStreamInfo(Se.type,Wr,Br,Cn,un),this.backtrackFragment&&(this.backtrackFragment=oe),this.bufferFragmentData(Se,oe,he,N,yr||Tr)}else if(yr||Tr)oe.gap=!0;else{this.backtrack(oe);return}}if(vt){const{startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}=vt;he&&(he.elementaryStreams[Y.AUDIO]={startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}),oe.setElementaryStreamInfo(Y.AUDIO,Qt,yr,Tr,Wr),this.bufferFragmentData(vt,oe,he,N)}if(lt&&He!=null&&(a=He.samples)!=null&&a.length){const Qt={id:_,frag:oe,details:lt,samples:He.samples};E.trigger(l.FRAG_PARSING_METADATA,Qt)}if(lt&&De){const Qt={id:_,frag:oe,details:lt,samples:De.samples};E.trigger(l.FRAG_PARSING_USERDATA,Qt)}}_bufferInitSegment(r,a,_,E){if(this.state!==pn.PARSING)return;this.audioOnly=!!a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio;const{audio:I,video:N,audiovideo:H}=a;if(I){let oe=r.audioCodec;const he=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){oe&&(oe.indexOf("mp4a.40.5")!==-1?oe="mp4a.40.2":oe="mp4a.40.5");const be=I.metadata;be&&"channelCount"in be&&(be.channelCount||1)!==1&&he.indexOf("firefox")===-1&&(oe="mp4a.40.5")}oe&&oe.indexOf("mp4a.40.5")!==-1&&he.indexOf("android")!==-1&&I.container!=="audio/mpeg"&&(oe="mp4a.40.2",this.log(`Android: force audio codec to ${oe}`)),r.audioCodec&&r.audioCodec!==oe&&this.log(`Swapping manifest audio codec "${r.audioCodec}" for "${oe}"`),I.levelCodec=oe,I.id="main",this.log(`Init audio buffer, container:${I.container}, codecs[selected/level/parsed]=[${oe||""}/${r.audioCodec||""}/${I.codec}]`)}N&&(N.levelCodec=r.videoCodec,N.id="main",this.log(`Init video buffer, container:${N.container}, codecs[level/parsed]=[${r.videoCodec||""}/${N.codec}]`)),H&&this.log(`Init audiovideo buffer, container:${H.container}, codecs[level/parsed]=[${r.codecs}/${H.codec}]`),this.hls.trigger(l.BUFFER_CODECS,a),Object.keys(a).forEach(oe=>{const be=a[oe].initSegment;be!=null&&be.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:oe,data:be,frag:_,part:null,chunkMeta:E,parent:_.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ye.MAIN)}backtrack(r){this.couldBacktrack=!0,this.backtrackFragment=r,this.resetTransmuxer(),this.flushBufferGap(r),this.fragmentTracker.removeFragment(r),this.fragPrevious=null,this.nextLoadPosition=r.start,this.state=pn.IDLE}checkFragmentChanged(){const r=this.media;let a=null;if(r&&r.readyState>1&&r.seeking===!1){const _=r.currentTime;if(hr.isBuffered(r,_)?a=this.getAppendedFrag(_):hr.isBuffered(r,_+.1)&&(a=this.getAppendedFrag(_+.1)),a){this.backtrackFragment=null;const E=this.fragPlaying,I=a.level;(!E||a.sn!==E.sn||E.level!==I)&&(this.fragPlaying=a,this.hls.trigger(l.FRAG_CHANGED,{frag:a}),(!E||E.level!==I)&&this.hls.trigger(l.LEVEL_SWITCHED,{level:I}))}}}get nextLevel(){const r=this.nextBufferedFrag;return r?r.level:-1}get currentFrag(){const r=this.media;return r?this.fragPlaying||this.getAppendedFrag(r.currentTime):null}get currentProgramDateTime(){const r=this.media;if(r){const a=r.currentTime,_=this.currentFrag;if(_&&y(a)&&y(_.programDateTime)){const E=_.programDateTime+(a-_.start)*1e3;return new Date(E)}}return null}get currentLevel(){const r=this.currentFrag;return r?r.level:-1}get nextBufferedFrag(){const r=this.currentFrag;return r?this.followingBufferedFrag(r):null}get forceStartLoad(){return this._forceStartLoad}}class Xu{static get version(){return"1.5.20"}static isMSESupported(){return El()}static isSupported(){return ic()}static getMediaSource(){return si()}static get Events(){return l}static get ErrorTypes(){return b}static get ErrorDetails(){return x}static get DefaultConfig(){return Xu.defaultConfig?Xu.defaultConfig:To}static set DefaultConfig(r){Xu.defaultConfig=r}constructor(r={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Zn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,$(r.debug||!1,"Hls instance");const a=this.config=yo(Xu.DefaultConfig,r);this.userConfig=r,a.progressive&&gc(a);const{abrController:_,bufferController:E,capLevelController:I,errorController:N,fpsController:H}=a,oe=new N(this),he=this.abrController=new _(this),be=this.bufferController=new E(this),Se=this.capLevelController=new I(this),De=new H(this),He=new Or(this),Xe=new fa(this),lt=a.contentSteeringController,vt=lt?new lt(this):null,Qt=this.levelController=new rc(this,vt),yr=new Jt(this),Tr=new fl(this.config),Wr=this.streamController=new pl(this,yr,Tr);Se.setStreamController(Wr),De.setStreamController(Wr);const Br=[He,Qt,Wr];vt&&Br.splice(1,0,vt),this.networkControllers=Br;const Cn=[he,be,Se,De,Xe,yr];this.audioTrackController=this.createController(a.audioTrackController,Br);const un=a.audioStreamController;un&&Br.push(new un(this,yr,Tr)),this.subtitleTrackController=this.createController(a.subtitleTrackController,Br);const Hn=a.subtitleStreamController;Hn&&Br.push(new Hn(this,yr,Tr)),this.createController(a.timelineController,Cn),Tr.emeController=this.emeController=this.createController(a.emeController,Cn),this.cmcdController=this.createController(a.cmcdController,Cn),this.latencyController=this.createController(Ls,Cn),this.coreComponents=Cn,Br.push(oe);const li=oe.onErrorOut;typeof li=="function"&&this.on(l.ERROR,li,oe)}createController(r,a){if(r){const _=new r(this);return a&&a.push(_),_}return null}on(r,a,_=this){this._emitter.on(r,a,_)}once(r,a,_=this){this._emitter.once(r,a,_)}removeAllListeners(r){this._emitter.removeAllListeners(r)}off(r,a,_=this,E){this._emitter.off(r,a,_,E)}listeners(r){return this._emitter.listeners(r)}emit(r,a,_){return this._emitter.emit(r,a,_)}trigger(r,a){if(this.config.debug)return this.emit(r,r,a);try{return this.emit(r,r,a)}catch(_){if(R.error("An internal error happened while handling event "+r+'. Error message: "'+_.message+'". Here is a stacktrace:',_),!this.triggeringException){this.triggeringException=!0;const E=r===l.ERROR;this.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:E,event:r,error:_}),this.triggeringException=!1}}return!1}listenerCount(r){return this._emitter.listenerCount(r)}destroy(){R.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(a=>a.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(a=>a.destroy()),this.coreComponents.length=0;const r=this.config;r.xhrSetup=r.fetchSetup=void 0,this.userConfig=null}attachMedia(r){R.log("attachMedia"),this._media=r,this.trigger(l.MEDIA_ATTACHING,{media:r})}detachMedia(){R.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,void 0),this._media=null}loadSource(r){this.stopLoad();const a=this.media,_=this.url,E=this.url=s.buildAbsoluteURL(self.location.href,r,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,R.log(`loadSource:${E}`),a&&_&&(_!==E||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(a)),this.trigger(l.MANIFEST_LOADING,{url:r})}startLoad(r=-1){R.log(`startLoad(${r})`),this.started=!0,this.resumeBuffering();for(let a=0;a{r.resumeBuffering&&r.resumeBuffering()})}pauseBuffering(){R.log("pause buffering"),this.networkControllers.forEach(r=>{r.pauseBuffering&&r.pauseBuffering()})}swapAudioCodec(){R.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){R.log("recoverMediaError");const r=this._media;this.detachMedia(),r&&this.attachMedia(r)}removeLevel(r){this.levelController.removeLevel(r)}get levels(){const r=this.levelController.levels;return r||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(r){R.log(`set currentLevel:${r}`),this.levelController.manualLevel=r,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(r){R.log(`set nextLevel:${r}`),this.levelController.manualLevel=r,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(r){R.log(`set loadLevel:${r}`),this.levelController.manualLevel=r}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(r){this.levelController.nextLoadLevel=r}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(r){R.log(`set firstLevel:${r}`),this.levelController.firstLevel=r}get startLevel(){const r=this.levelController.startLevel;return r===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:r}set startLevel(r){R.log(`set startLevel:${r}`),r!==-1&&(r=Math.max(r,this.minAutoLevel)),this.levelController.startLevel=r}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(r){const a=!!r;a!==this.config.capLevelToPlayerSize&&(a?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=a)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimate():NaN}set bandwidthEstimate(r){this.abrController.resetEstimator(r)}get ttfbEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimateTTFB():NaN}set autoLevelCapping(r){this._autoLevelCapping!==r&&(R.log(`set autoLevelCapping:${r}`),this._autoLevelCapping=r,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(r){Is(r)&&this._maxHdcpLevel!==r&&(this._maxHdcpLevel=r,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:r,config:{minAutoBitrate:a}}=this;if(!r)return 0;const _=r.length;for(let E=0;E<_;E++)if(r[E].maxBitrate>=a)return E;return 0}get maxAutoLevel(){const{levels:r,autoLevelCapping:a,maxHdcpLevel:_}=this;let E;if(a===-1&&r!=null&&r.length?E=r.length-1:E=a,_)for(let I=E;I--;){const N=r[I].attrs["HDCP-LEVEL"];if(N&&N<=_)return I}return E}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(r){this.abrController.nextAutoLevel=r}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(r){var a;return(a=this.audioTrackController)==null?void 0:a.setAudioOption(r)}setSubtitleOption(r){var a;return(a=this.subtitleTrackController)==null||a.setSubtitleOption(r),null}get allAudioTracks(){const r=this.audioTrackController;return r?r.allAudioTracks:[]}get audioTracks(){const r=this.audioTrackController;return r?r.audioTracks:[]}get audioTrack(){const r=this.audioTrackController;return r?r.audioTrack:-1}set audioTrack(r){const a=this.audioTrackController;a&&(a.audioTrack=r)}get allSubtitleTracks(){const r=this.subtitleTrackController;return r?r.allSubtitleTracks:[]}get subtitleTracks(){const r=this.subtitleTrackController;return r?r.subtitleTracks:[]}get subtitleTrack(){const r=this.subtitleTrackController;return r?r.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(r){const a=this.subtitleTrackController;a&&(a.subtitleTrack=r)}get subtitleDisplay(){const r=this.subtitleTrackController;return r?r.subtitleDisplay:!1}set subtitleDisplay(r){const a=this.subtitleTrackController;a&&(a.subtitleDisplay=r)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(r){this.config.lowLatencyMode=r}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Xu.defaultConfig=void 0},53280:function(d,v,e){"use strict";e.d(v,{D:function(){return n}});function t(s,u,f){var c=f||{},h=c.noTrailing,o=h===void 0?!1:h,i=c.noLeading,y=i===void 0?!1:i,p=c.debounceMode,g=p===void 0?void 0:p,l,b=!1,x=0;function O(){l&&clearTimeout(l)}function k(T){var F=T||{},$=F.upcomingOnly,R=$===void 0?!1:$;O(),b=!R}function C(){for(var T=arguments.length,F=new Array(T),$=0;$s?y?(x=Date.now(),o||(l=setTimeout(g?Z:W,s))):W():o!==!0&&(l=setTimeout(g?Z:W,g===void 0?s-K:s))}return C.cancel=k,C}function n(s,u,f){var c=f||{},h=c.atBegin,o=h===void 0?!1:h;return t(s,u,{debounceMode:o!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var v=__webpack_module_cache__[d];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(v,{a:v}),v}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var n=Object.create(null);__webpack_require__.r(n);var s={};v=v||[null,d({}),d([]),d(d)];for(var u=t&2&&e;typeof u=="object"&&!~v.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(f){s[f]=function(){return e[f]}});return s.default=function(){return e},__webpack_require__.d(n,s),n}}(),function(){__webpack_require__.d=function(d,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](d,v),v},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",672:"p__Home__Detail__ShixunContext__Detail__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"9ac508ea",67:"1b03fe25",109:"23b414f9",129:"daa471de",195:"ff3754fd",264:"c38192df",265:"edaf4987",292:"443bec8c",310:"7ae51cab",316:"1f60ada6",337:"c5e9c609",342:"b0e1f94c",354:"d4d139cf",479:"9ea93239",485:"04973f6c",508:"35199f0d",532:"9b2862bf",533:"fab912ee",547:"e2501473",556:"1bfc920d",559:"20d87e10",570:"46fb4a67",576:"6fb71e35",629:"44a1d9a5",643:"ea10c4e3",671:"4a609b8d",672:"6fe31085",680:"b3e3b88f",700:"2d37b76c",737:"b82f98c3",741:"ac5fd360",799:"cf84c2b6",869:"bd8b60a0",895:"3de27cee",921:"c00eda41",928:"43ef0607",981:"24da50c7",1006:"14b4fe97",1043:"734ab6b5",1045:"2f8e859a",1048:"32d3135e",1070:"7d8b9bee",1144:"c90eccaf",1148:"2b8b425e",1154:"8cb80842",1211:"bdd96f1a",1253:"9866613d",1257:"a4ad3423",1265:"d66454fb",1274:"5f6ea65a",1276:"c0280778",1343:"d552f9e1",1416:"01cd13f5",1423:"84a49c92",1427:"b6d95f20",1450:"80028a47",1461:"98eccc6e",1462:"fcf08abc",1470:"a17a6b1a",1475:"cb4b2a16",1482:"151ba2e9",1512:"1c085b86",1520:"659feacb",1531:"5dd24ec2",1545:"3ba5d8a6",1578:"b2e43839",1581:"63af3f9e",1582:"915a58e3",1646:"e6e27b60",1657:"ca141d10",1660:"76bc70ce",1674:"22dfee6c",1702:"4c6e98c0",1713:"af1e7834",1717:"31989bc4",1727:"76cac644",1783:"fb7f634f",1799:"5ae9afa7",1810:"bd7bcaf7",1831:"c95840bf",1836:"ba892db7",1855:"b9008312",1880:"240b7cfc",1939:"90e4aae3",1953:"41f253c0",1962:"035c7b2e",2011:"59d51f98",2045:"7744bebe",2076:"e8fd98b8",2102:"5e265def",2141:"7cad8736",2216:"e401f0e5",2240:"a6bcb853",2245:"4c051301",2249:"f4830452",2254:"5767ca2a",2300:"bc020f4e",2303:"ea60e774",2307:"b1570e49",2338:"001fe20f",2339:"96015530",2386:"192e235c",2396:"133c621f",2404:"760d076d",2412:"ebd8acc2",2425:"a585e39e",2443:"5d5c2c0a",2476:"746ff3fb",2494:"68080a87",2501:"3421c5a3",2529:"922e34cf",2538:"de4a3723",2539:"53a86b90",2548:"0b85ce47",2570:"5c3cf4c1",2594:"e87d3761",2603:"d25ee242",2659:"17df4e97",2707:"557891ae",2806:"6f510fd6",2819:"0eda6838",2823:"4e52f1d5",2826:"ec49f5dc",2829:"22300e28",2837:"54a82605",2865:"ba754a64",2875:"d8d4ea8b",2884:"868b6f9b",2969:"ab3357d7",2983:"cf277769",3006:"1018d70d",3133:"9bf3f89c",3141:"f83a07d0",3157:"95e29ab0",3183:"f73c574d",3198:"8e655451",3212:"c36da84a",3220:"1c51e01d",3247:"70bb53ae",3260:"e2b1e30f",3276:"2d03a6b2",3282:"93dc2500",3317:"f490a8bd",3332:"de5fd255",3355:"64861e9f",3356:"9f6626e9",3391:"56cfa576",3433:"84229bfc",3442:"2579c500",3447:"2dcdbd80",3451:"d670911f",3496:"be8a8ab5",3509:"ff053313",3550:"3dc83156",3581:"b210cd71",3585:"48f0e96e",3665:"c9c1b80d",3668:"e507d4b1",3697:"481a10d9",3747:"db96de33",3777:"d5b0f2f1",3784:"43096805",3805:"9dbcb95e",3862:"67698974",3873:"3c923d12",3885:"f87f7f15",3910:"a493ef38",3935:"e6712421",3951:"c269f59c",3985:"344a3358",3987:"5cecd51b",4014:"27a8e97c",4017:"27999042",4030:"98386769",4056:"4e2d6a20",4058:"733be6bb",4078:"2f2bd21e",4088:"236723f3",4093:"3d49e4d3",4105:"4209a04c",4144:"346ee736",4164:"7fe0d579",4216:"121e47cd",4217:"27457f8a",4227:"89813cd9",4259:"bb097cc9",4264:"735355f2",4347:"08ede17f",4354:"140899b7",4360:"cf5efa52",4449:"e25d1468",4492:"22bee88f",4496:"7d65f4e3",4498:"e0fe8700",4504:"df6e7341",4514:"85bdfa82",4520:"2c66721b",4546:"3002feb8",4565:"7fc1f44d",4572:"5a20aab4",4599:"61def4cb",4601:"dbf04368",4610:"85d72c01",4621:"7c943553",4628:"ece2c60c",4662:"573e389f",4685:"c33f1528",4715:"8b0e824d",4736:"7bcd9282",4741:"85d2e21b",4757:"093ffb1c",4766:"02d2a4bb",4770:"ab782b26",4790:"619413e4",4795:"71134cdd",4797:"a24e92db",4800:"78e41603",4849:"021f3509",4850:"1edda4b7",4862:"56f5d557",4884:"1bfc8e94",4889:"5b5a24d9",4900:"c2fa0b2f",4928:"227748ad",4973:"77e402c6",4994:"a41419e5",5022:"a5b53c62",5043:"4edab20d",5048:"ddacfba7",5060:"85dafcc6",5096:"e3e63460",5111:"e39ac596",5125:"acbd9ee7",5148:"ac491994",5176:"a790896e",5179:"3df72677",5186:"69a582a1",5191:"56492f84",5238:"5e83b6b6",5290:"5dabcdc2",5297:"01e5cf8e",5319:"de8f7c41",5321:"1163c84e",5335:"69e514be",5354:"7ae70604",5357:"a3975490",5359:"f48142d8",5382:"19ba1755",5402:"b2b43a8f",5416:"454536b7",5434:"38b302a6",5470:"7ba15cd7",5494:"d89549c4",5518:"084658a4",5549:"191e2bdd",5572:"4a5cf530",5573:"b212b8fc",5599:"7838f994",5624:"8171e0ad",5631:"e00d3d36",5650:"ba1da951",5679:"4a090bef",5705:"b3825926",5729:"9adaabc9",5757:"2843b608",5764:"e0d7e586",5775:"af94f477",5786:"ad639f51",5798:"0f3b4e72",5816:"26e09ee2",5825:"5b09c2f0",5876:"5eded409",5888:"2c4a7d21",5891:"2f93a0e0",5895:"c50382fc",5902:"936d3fb0",5915:"4d0533cf",5972:"629273e1",5992:"e6d5abcd",6029:"2baf21d5",6034:"1f3482f6",6045:"d268f87f",6047:"3ce45acd",6052:"a79da40f",6063:"92b0e253",6069:"c65393c8",6126:"99519171",6127:"01711ee9",6170:"ba8df8d7",6265:"da67525e",6270:"1a45d2f2",6277:"b087d596",6312:"87886f73",6328:"40c542bf",6366:"2abd7b37",6378:"7f3a946a",6411:"8c37c144",6434:"02822e0b",6444:"e95f4bcd",6452:"e7375ea9",6531:"bde1c8f7",6541:"e931a4f6",6583:"d7b48c64",6587:"cd25c8fd",6634:"5bce8e25",6651:"7b40db2e",6685:"daa8e12d",6729:"2c440a1f",6741:"4f3739f8",6758:"0ab6597f",6774:"59d4d618",6784:"23863b47",6788:"60b56538",6796:"038925da",6805:"2b9be050",6820:"460f9f28",6845:"df3b3798",6882:"e2cc0627",6883:"6cb80143",6904:"e05e0e05",6913:"cb4d9081",6949:"04b3b3a0",6963:"2c915c8f",6982:"3201a542",7008:"6c9735e2",7043:"77ac705f",7045:"02381632",7046:"2ef819a1",7058:"9c217ae2",7062:"8908a67a",7084:"46ccce72",7156:"e7466006",7178:"45d02e76",7182:"1bb7addb",7242:"a3c62e97",7260:"3262bb7d",7331:"2e27a23b",7333:"b7f12ce6",7365:"1005464f",7374:"b2456c08",7395:"bef0fbea",7460:"a15b8245",7477:"dab0e013",7482:"2b1ff0ba",7527:"e8bf30b5",7545:"c5114a0d",7560:"0d7214ac",7589:"6a05399d",7591:"c8233ce9",7614:"6afc9f7f",7622:"4ee5b394",7686:"4fcec9f9",7706:"c2a79e40",7806:"5f66ffb2",7852:"2b9824d7",7855:"91bc853e",7857:"ada9e40a",7878:"4d62eb43",7884:"6b238432",7922:"e7de5e50",7948:"7deb7765",7964:"29aed9a1",8014:"c86d8b0b",8062:"bc5d75b5",8072:"ef31263e",8077:"8130121e",8085:"7b924714",8089:"d536b13a",8143:"272c6259",8155:"8de8547a",8161:"83c5fa9a",8237:"bb41ce1e",8241:"37533b90",8302:"81bee336",8307:"39b7a18c",8340:"abddc432",8350:"07df8a75",8365:"fe36cabc",8398:"da4d9438",8431:"225d8800",8435:"5c70cbb5",8447:"47aafa2b",8517:"f8ed41de",8561:"333e8ec9",8563:"d2893bd3",8634:"eb0aff70",8639:"d77439de",8665:"4bf36fa7",8688:"bc5b75f1",8689:"aa82d7a4",8723:"eed3bf93",8737:"ce7dad23",8776:"0ad26240",8782:"21c3c877",8787:"3edcf911",8797:"38e94dd2",8823:"4750ef8d",8827:"4964829f",8842:"9f25a3e2",8866:"41d4573d",8882:"16f53671",8885:"358e2d0f",8898:"d002bcd8",8909:"1e29403e",8920:"7f82440c",8963:"790aecdd",8982:"74d73bf1",8999:"73348dc2",9076:"f5a17106",9104:"bbcb2345",9133:"0abb8821",9186:"4559c3b0",9205:"b23513c7",9215:"21ebbcbd",9252:"0d791a59",9260:"cf5f8140",9332:"7ab4403d",9360:"edc9b326",9366:"b8d2b577",9391:"68a85af0",9404:"9fcc3d3e",9408:"dd5ae7b5",9416:"bf5770f9",9487:"043b2ef8",9489:"01da7cf5",9507:"c5204a25",9519:"7bbb0e22",9532:"859e05a2",9554:"ed358e7b",9559:"f794af19",9590:"827b71ea",9647:"cbd4e1e3",9649:"92cccb86",9674:"40d102bc",9677:"4bc5636d",9695:"763acec3",9715:"e467a322",9716:"b929ed6f",9785:"1224ce29",9788:"04775768",9883:"2e3b3113",9890:"be84cd24",9891:"2e66be10",9895:"b8e31ff2",9921:"cdf9721a",9922:"6dd34c9c",9928:"5989f5e0",9944:"ac8120d6",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"1ad7d0db",109:"1a7fc455",195:"65632591",264:"5fd9b3fc",265:"d92c6f86",292:"9a0e8f6b",310:"06815302",337:"ee05039e",342:"ab091f90",479:"bba9e475",485:"d63578fe",508:"82593858",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"eb3ce426",643:"22ded693",680:"e67e9e01",700:"4c1ff0fa",737:"98eb2f74",799:"b3487c4b",869:"6740e24b",895:"ad846737",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"0eeb3595",1048:"dafc3f4f",1070:"e67e9e01",1148:"754fff63",1211:"bdb8faab",1253:"46aca33c",1257:"156e8f74",1265:"d902bdae",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"5c4a76fc",1427:"f91322f7",1450:"1edcc2ed",1461:"917cbb16",1470:"183c9793",1475:"d22fbaa0",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"04d6c7d3",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1657:"ddd6a700",1674:"fdbc1e05",1702:"fca45632",1713:"5ed278a4",1717:"08a9e890",1727:"de83767d",1783:"47d0320e",1810:"03cdfb68",1831:"8d05bf11",1836:"5f0d3f7f",1855:"b92cccb4",1880:"f67d7892",1939:"48e30d48",1953:"23cbc47f",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"ec61f9f0",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"ccda836f",2303:"87592c17",2307:"b2c54321",2338:"43e9ff08",2339:"d90c9bd2",2396:"e70f11d6",2404:"08d36549",2412:"6b6ca0ef",2425:"47b23ee4",2443:"78513f2d",2476:"cf85a190",2501:"2441982c",2529:"9d9944da",2539:"43d36117",2548:"75182034",2570:"3dbc6300",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"2c7248b3",2819:"9455b08a",2823:"a13b21fb",2826:"0b6be43b",2829:"a5909474",2865:"6ef3cf6b",2875:"d6c8355d",2884:"904823c3",2983:"c8c482f7",3006:"7fce4e74",3141:"72791f8b",3157:"2038b5dc",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"49ca09b2",3276:"7bbb651d",3282:"2dff97e8",3317:"137440b7",3332:"15432cd5",3355:"39e3d07c",3356:"c6a4098f",3391:"f0e498fe",3433:"e6919a98",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"43d907cb",3585:"5f288e7b",3665:"99f7daed",3668:"86f20630",3747:"e06419ae",3784:"c81d4a51",3873:"bbd9808d",3910:"658d457f",3935:"cd50aa32",3951:"4a9249b1",4030:"f308ee3a",4056:"10eacfff",4078:"aa54548e",4093:"c1f29d01",4105:"e39011c7",4144:"f10aa199",4164:"9f30fd4a",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4449:"e68d8d58",4492:"cdc29460",4496:"77babddd",4498:"b05686dd",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aca6ff45",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"4e7b8c12",4715:"45efe14a",4736:"2968553b",4741:"afeb6eca",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4849:"2a1dc219",4862:"e8eacc3e",4884:"bd293d3b",4889:"db5cf2c9",4928:"a4b1a237",4973:"129c56e8",4994:"50caae56",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"572faeac",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"3d814a61",5297:"5426028f",5319:"34217c3f",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"0c911991",5402:"60617d0d",5470:"b25021a2",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0208754c",5650:"f8f63f4b",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5786:"37a81eaa",5798:"ce1cf7da",5816:"d749b200",5825:"73177a8c",5888:"193a7f8f",5891:"3b7a128f",5895:"9ddd624a",5915:"bc9c3e69",5972:"c7a91e8e",5992:"419f5d2f",6029:"2ded5a5a",6052:"59cb6398",6063:"a5f0409a",6069:"b4a6d2ab",6127:"f31505a8",6265:"9459eb93",6270:"cc24b0fc",6277:"12e50919",6328:"de2b9d62",6366:"079fc2d8",6434:"0112f8db",6444:"fd46d237",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"df151169",6651:"b07fe216",6685:"f5f5b969",6729:"aea3b7f5",6741:"b838eb14",6758:"558cc090",6784:"1affe817",6788:"9cd39ff5",6796:"89c76e37",6805:"5b253c81",6820:"cebdf1cf",6845:"b7aabf70",6882:"c2d2eada",6883:"7740a702",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",6982:"3043a9c3",7008:"fe74a83d",7043:"25478869",7045:"48f6fc4c",7046:"c7301ded",7058:"984a456a",7062:"fe78dd10",7178:"6e47d75d",7182:"183c9793",7242:"4f353f61",7260:"ae741547",7395:"5c10e8d8",7460:"dedd2038",7477:"832457fc",7482:"c37a3f01",7527:"6b64ff47",7545:"1f6a7624",7560:"d82e43ca",7589:"2a3e68f3",7614:"de9ee12f",7622:"ca0e645a",7806:"80b7b1d6",7852:"fce1e197",7855:"3970a709",7857:"13a29416",7878:"8dfa25f5",7884:"1ca6cde0",7922:"c1d9e2f3",7948:"bed733e5",8014:"9ef39203",8062:"8e384b9f",8072:"540f746b",8077:"0b2c51d9",8085:"0b7f10a8",8143:"b6ca83ad",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8302:"b4649ac5",8307:"02e15761",8398:"cf8eb735",8431:"60a111b6",8435:"21d4dff0",8447:"0875c082",8517:"cccfddad",8563:"3a763677",8634:"317d0a2b",8665:"c52575bc",8688:"c044db56",8689:"459af240",8723:"5166ac36",8782:"918afc23",8787:"121de108",8797:"13e5189e",8823:"9e7a9852",8827:"fcd50af0",8866:"664121ad",8882:"f3e42f72",8885:"de905169",8982:"6e2e337e",8999:"448aa22f",9076:"6a501148",9133:"ab171f08",9205:"49a3e67d",9215:"f737e7e7",9332:"a627cf98",9360:"27c7d4f7",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9408:"d3565b1a",9416:"6ead6660",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9519:"88d248ee",9590:"29583579",9647:"452de157",9649:"00fb4211",9674:"d0f91ed7",9677:"26548cb7",9695:"bb84056a",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"54a86ef9",9890:"9ebce4ba",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)}}(),function(){var d={};__webpack_require__.l=function(v,e,t,n){if(d[v]){d[v].push(e);return}var s,u;if(t!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&arguments[0]!==void 0?arguments[0]:"";return De.endsWith("/")?De:"".concat(De,"/")}var kl=__webpack_require__(38127),ul=__webpack_require__(38329),Hu=__webpack_require__(8616),Ru=["content"],Su=["content"],_c=/^(http:|https:)?\/\//;function Rl(De){return _c.test(De)||De.startsWith("/")&&!De.startsWith("/*")||De.startsWith("./")||De.startsWith("../")}var pu=function(){return je.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},Yu=function(He){var Xe,lt=He.loaderData,vt=He.htmlPageOpts,Qt=He.manifest,yr=(Qt==null||(Xe=Qt.assets)===null||Xe===void 0?void 0:Xe["umi.css"])||"";return je.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(lt||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(vt||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(yr,"'")}})};function Cu(De){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof De=="string")return Rl(De)?(0,jo.Z)({src:De},He):{content:De};if((0,Hu.Z)(De)==="object")return(0,jo.Z)((0,jo.Z)({},De),He);throw new Error("Invalid script type: ".concat((0,Hu.Z)(De)))}function Bc(De){return Rl(De)?{type:"link",href:De}:{type:"style",content:De}}var Tc=function(He){var Xe,lt,vt,Qt,yr,Tr,Wr=He.htmlPageOpts;return je.createElement(je.Fragment,null,(Wr==null?void 0:Wr.title)&&je.createElement("title",null,Wr.title),Wr==null||(Xe=Wr.favicons)===null||Xe===void 0?void 0:Xe.map(function(Br,Cn){return je.createElement("link",{key:Cn,rel:"shortcut icon",href:Br})}),(Wr==null?void 0:Wr.description)&&je.createElement("meta",{name:"description",content:Wr.description}),(Wr==null||(lt=Wr.keywords)===null||lt===void 0?void 0:lt.length)&&je.createElement("meta",{name:"keywords",content:Wr.keywords.join(",")}),Wr==null||(vt=Wr.metas)===null||vt===void 0?void 0:vt.map(function(Br){return je.createElement("meta",{key:Br.name,name:Br.name,content:Br.content})}),Wr==null||(Qt=Wr.links)===null||Qt===void 0?void 0:Qt.map(function(Br,Cn){return je.createElement("link",(0,ul.Z)({key:Cn},Br))}),Wr==null||(yr=Wr.styles)===null||yr===void 0?void 0:yr.map(function(Br,Cn){var un=Bc(Br),Hn=un.type,li=un.href,En=un.content;if(Hn==="link")return je.createElement("link",{key:Cn,rel:"stylesheet",href:li});if(Hn==="style")return je.createElement("style",{key:Cn},En)}),Wr==null||(Tr=Wr.headScripts)===null||Tr===void 0?void 0:Tr.map(function(Br,Cn){var un=Cu(Br),Hn=un.content,li=(0,kl.Z)(un,Ru);return je.createElement("script",(0,ul.Z)({dangerouslySetInnerHTML:{__html:Hn},key:Cn},li))}))};function Ao(De){var He,Xe=De.children,lt=De.loaderData,vt=De.manifest,Qt=De.htmlPageOpts,yr=De.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Tr=De.mountElementId;if(yr!=null&&yr.pureHtml)return je.createElement("html",null,je.createElement("head",null),je.createElement("body",null,je.createElement(pu,null),je.createElement("div",{id:Tr},Xe),je.createElement(Yu,{manifest:vt,loaderData:lt,htmlPageOpts:Qt})));if(yr!=null&&yr.pureApp)return je.createElement(je.Fragment,null,Xe);var Wr=typeof window=="undefined"?vt==null?void 0:vt.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return je.createElement("html",{suppressHydrationWarning:!0,lang:(Qt==null?void 0:Qt.lang)||"en"},je.createElement("head",null,je.createElement("meta",{charSet:"utf-8"}),je.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Wr&&je.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Wr}),je.createElement(Tc,{htmlPageOpts:Qt})),je.createElement("body",null,je.createElement(pu,null),je.createElement("div",{id:Tr},Xe),je.createElement(Yu,{manifest:vt,loaderData:lt,htmlPageOpts:Qt}),Qt==null||(He=Qt.scripts)===null||He===void 0?void 0:He.map(function(Br,Cn){var un=Cu(Br),Hn=un.content,li=(0,kl.Z)(un,Su);return je.createElement("script",(0,ul.Z)({dangerouslySetInnerHTML:{__html:Hn},key:Cn},li))})))}var ll=je.createContext(void 0);function bl(){return je.useContext(ll)}var Ll=["redirect"];function Ml(De){var He=De.routesById,Xe=De.parentId,lt=De.routeComponents,vt=De.useStream,Qt=vt===void 0?!0:vt;return Object.keys(He).filter(function(yr){return He[yr].parentId===Xe}).map(function(yr){var Tr=Fl((0,jo.Z)((0,jo.Z)({route:He[yr],routeComponent:lt[yr],loadingComponent:De.loadingComponent,reactRouter5Compat:De.reactRouter5Compat},De.reactRouter5Compat&&{hasChildren:Object.keys(He).filter(function(Br){return He[Br].parentId===yr}).length>0}),{},{useStream:Qt})),Wr=Ml({routesById:He,routeComponents:lt,parentId:Tr.id,loadingComponent:De.loadingComponent,reactRouter5Compat:De.reactRouter5Compat,useStream:Qt});return Wr.length>0&&(Tr.children=Wr,Tr.routes=Wr),Tr})}function xl(De){var He=(0,uu.UO)(),Xe=(0,uu.Gn)(De.to,He),lt=(0,Ol.T$)(),vt=(0,uu.TH)();if(lt!=null&<.keepQuery){var Qt=vt.search+vt.hash;Xe+=Qt}var yr=(0,jo.Z)((0,jo.Z)({},De),{},{to:Xe});return je.createElement(uu.Fg,(0,ul.Z)({replace:!0},yr))}function Fl(De){var He=De.route,Xe=De.useStream,lt=Xe===void 0?!0:Xe,vt=He.redirect,Qt=(0,kl.Z)(He,Ll),yr=De.reactRouter5Compat?ql:Bl;return(0,jo.Z)({element:vt?je.createElement(xl,{to:vt}):je.createElement(ll.Provider,{value:{route:De.route}},je.createElement(yr,{loader:je.memo(De.routeComponent),loadingComponent:De.loadingComponent||Oc,hasChildren:De.hasChildren,useStream:lt}))},Qt)}function Oc(){return je.createElement("div",null)}function ql(De){var He=bl(),Xe=He.route,lt=(0,Ol.Ov)(),vt=lt.history,Qt=lt.clientRoutes,yr=(0,uu.UO)(),Tr={params:yr,isExact:!0,path:Xe.path,url:vt.location.pathname},Wr=De.loader,Br={location:vt.location,match:Tr,history:vt,params:yr,route:Xe,routes:Qt};return De.useStream?je.createElement(je.Suspense,{fallback:je.createElement(De.loadingComponent,null)},je.createElement(Wr,Br,De.hasChildren&&je.createElement(uu.j3,null))):je.createElement(Wr,Br,De.hasChildren&&je.createElement(uu.j3,null))}function Bl(De){var He=De.loader;return De.useStream?je.createElement(je.Suspense,{fallback:je.createElement(De.loadingComponent,null)},je.createElement(He,null)):je.createElement(He,null)}var cl=null;function Pc(){return cl}function mc(De){var He=De.history,Xe=je.useState({action:He.action,location:He.location}),lt=(0,ol.Z)(Xe,2),vt=lt[0],Qt=lt[1];return(0,je.useLayoutEffect)(function(){return He.listen(Qt)},[He]),(0,je.useLayoutEffect)(function(){function yr(Tr){De.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:De.routes,clientRoutes:De.clientRoutes,location:Tr.location,action:Tr.action,basename:De.basename,isFirst:!!Tr.isFirst}})}return yr({location:vt.location,action:vt.action,isFirst:!0}),He.listen(yr)},[He,De.routes,De.clientRoutes]),je.createElement(uu.F0,{navigator:He,location:vt.location,basename:De.basename},De.children)}function Lu(){var De=(0,Ol.Ov)(),He=De.clientRoutes;return(0,uu.V$)(He)}var Nl=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],wl=function(He,Xe){var lt=He.basename||"/",vt=Ml({routesById:He.routes,routeComponents:He.routeComponents,loadingComponent:He.loadingComponent,reactRouter5Compat:He.reactRouter5Compat,useStream:He.useStream});He.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:vt}});for(var Qt=je.createElement(mc,{basename:lt,pluginManager:He.pluginManager,routes:He.routes,clientRoutes:vt,history:He.history},Xe),yr=0,Tr=Nl;yrnew Promise((lt,vt)=>{var Qt=Wr=>{try{Tr(Xe.next(Wr))}catch(Br){vt(Br)}},yr=Wr=>{try{Tr(Xe.throw(Wr))}catch(Br){vt(Br)}},Tr=Wr=>Wr.done?lt(Wr.value):Promise.resolve(Wr.value).then(Qt,yr);Tr((Xe=Xe.apply(De,He)).next())});function vc(){return tc(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"82"},83:{path:"/classrooms/guidance",parentId:"19",id:"83"},84:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"84"},85:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"98"},99:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"99"},100:{path:"/classrooms/",parentId:"19",id:"100"},101:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"100",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework",parentId:"100",id:"102"},103:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"100",id:"103"},104:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"105"},106:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"100",id:"106"},107:{path:"/classrooms/:coursesId/exercise",parentId:"100",id:"107"},108:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"100",id:"108"},109:{path:"/classrooms/:coursesId/poll",parentId:"100",id:"109"},110:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"100",id:"110"},111:{path:"/classrooms/:coursesId/common_homework",parentId:"100",id:"111"},112:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"100",id:"112"},113:{path:"/classrooms/:coursesId/group_homework",parentId:"100",id:"113"},114:{path:"/classrooms/:coursesId/teachers",parentId:"100",id:"114"},115:{path:"/classrooms/:coursesId/students",parentId:"100",id:"115"},116:{path:"/classrooms/:coursesId/assistant",parentId:"100",id:"116"},117:{path:"/classrooms/:coursesId/program_homework",parentId:"100",id:"117"},118:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"100",id:"118"},119:{path:"/classrooms/:coursesId/engineering",parentId:"100",id:"119"},120:{path:"/classrooms/:coursesId/learning_path",parentId:"100",id:"120"},121:{path:"/classrooms/:coursesId/resource_recommend",parentId:"100",id:"121"},122:{path:"/classrooms/:coursesId/attendance",parentId:"100",id:"122"},123:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"100",id:"123"},124:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"100",id:"124"},125:{path:"/classrooms/:coursesId/announcement",parentId:"100",id:"125"},126:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"100",id:"126"},127:{path:"/classrooms/:coursesId/online_learning",parentId:"100",id:"127"},128:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"100",id:"128"},129:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"100",id:"129"},130:{path:"/classrooms/:coursesId/attachment",parentId:"100",id:"130"},131:{path:"/classrooms/:coursesId/video",parentId:"100",id:"131"},132:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"100",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"100",id:"133"},134:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"100",id:"134"},135:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"100",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"100",id:"136"},137:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"100",id:"137"},138:{path:"/classrooms/:coursesId/live_video",parentId:"100",id:"138"},139:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"100",id:"139"},140:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"100",id:"140"},141:{path:"/classrooms/:coursesId/board",parentId:"100",id:"141"},142:{path:"/classrooms/:coursesId/course_group",parentId:"100",id:"142"},143:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"100",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"100",id:"144"},145:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"100",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group",parentId:"100",id:"146"},147:{path:"/classrooms/:coursesId/statistics/",parentId:"100",id:"147"},148:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"100",id:"148"},149:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"100",id:"149"},150:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"100",id:"150"},151:{path:"/classrooms/:coursesId/statistics_user_portrait/:categoryId",parentId:"100",id:"151"},152:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"100",id:"152"},153:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"100",id:"153"},154:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"100",id:"154"},155:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"100",id:"155"},156:{path:"/classrooms/:coursesId",parentId:"100",id:"156"},157:{path:"/classrooms/:coursesId/template",parentId:"100",id:"157"},158:{path:"/competitions",parentId:"1",id:"158"},159:{path:"/competitions/index",parentId:"158",id:"159"},160:{path:"/competitions/:identifier/list",parentId:"158",id:"160"},161:{path:"/competitions/exports",parentId:"158",id:"161"},162:{path:"/competitions",parentId:"158",id:"162"},163:{path:"/competitions/:identifier",parentId:"158",id:"163"},164:{path:"/competitions/index/:identifier",parentId:"158",id:"164"},165:{path:"/competitions/:identifier/detail/enroll",parentId:"158",id:"165"},166:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"158",id:"166"},167:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"158",id:"167"},168:{path:"/competitions/detail/:identifier",parentId:"158",id:"168"},169:{path:"/forums",parentId:"1",id:"169"},170:{path:"/forums",parentId:"169",id:"170"},171:{path:"/forums/categories/:memoType",parentId:"169",id:"171"},172:{path:"/forums/new",parentId:"169",id:"172"},173:{path:"/forums/:memoId/edit",parentId:"169",id:"173"},174:{path:"/forums/:memoId",parentId:"169",id:"174"},175:{path:"/problemset",parentId:"1",id:"175"},176:{path:"/problemset",parentId:"175",id:"176"},177:{path:"/problemset/newitem",parentId:"175",id:"177"},178:{path:"/problemset/:type/:id",parentId:"175",id:"178"},179:{path:"/problemset/preview",parentId:"175",id:"179"},180:{path:"/problemset/preview_new",parentId:"175",id:"180"},181:{path:"/problemset/preview_select",parentId:"175",id:"181"},182:{path:"/shixuns",parentId:"1",id:"182"},183:{path:"/shixuns",parentId:"182",id:"183"},184:{path:"/shixuns/exports",parentId:"182",id:"184"},185:{path:"/shixuns/new",parentId:"182",id:"185"},186:{path:"/shixuns/new/CreateImg",parentId:"182",id:"186"},187:{path:"/shixuns/new/:id/imagepreview",parentId:"182",id:"187"},188:{path:"/shixuns/:id/Merge",parentId:"182",id:"188"},189:{path:"/shixuns/:id/Split",parentId:"182",id:"189"},190:{path:"/shixuns/:id/edit",parentId:"182",id:"190"},191:{path:"shixuns/:id/edit/warehouse",parentId:"190",id:"191"},192:{path:"/shixuns/:id/edit/newquestion",parentId:"190",id:"192"},193:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"190",id:"193"},194:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"190",id:"194"},195:{path:"/shixuns/:id/edit/new",parentId:"190",id:"195"},196:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"190",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"190",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"190",id:"198"},199:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"190",id:"199"},200:{path:"/shixuns/:id",parentId:"182",id:"200"},201:{path:"/shixuns/:id/challenges",parentId:"200",id:"201"},202:{path:"/shixuns/:id/repository",parentId:"200",id:"202"},203:{path:"/shixuns/:id/secret_repository",parentId:"200",id:"203"},204:{path:"/shixuns/:id/collaborators",parentId:"200",id:"204"},205:{path:"/shixuns/:id/dataset",parentId:"200",id:"205"},206:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"200",id:"206"},207:{path:"/shixuns/:id/shixun_discuss",parentId:"200",id:"207"},208:{path:"/shixuns/:id/ranking_list",parentId:"200",id:"208"},209:{path:"/shixuns/:id/settings",parentId:"200",id:"209"},210:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"200",id:"210"},211:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"200",id:"211"},212:{path:"/shixuns/:id/repository/upload_file",parentId:"200",id:"212"},213:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"200",id:"213"},214:{path:"/shixuns/:id/repository/add_file",parentId:"200",id:"214"},215:{path:"/shixuns/:id/secret_repository/add_file",parentId:"200",id:"215"},216:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"200",id:"216"},217:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"200",id:"217"},218:{path:"/shixuns/:id/audit_situation",parentId:"200",id:"218"},219:{path:"/shixuns/:id/fork_list",parentId:"200",id:"219"},220:{path:"/users",parentId:"1",id:"220"},221:{path:"/users/:username/videos/protocol",parentId:"220",id:"221"},222:{path:"/users/:username/videos/resourceProtocol",parentId:"220",id:"222"},223:{path:"/users/:username/videos/success",parentId:"220",id:"223"},224:{path:"/users/:username/topicbank/:topicstype",parentId:"220",id:"224"},225:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"220",id:"225"},226:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"220",id:"226"},227:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"220",id:"227"},228:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"220",id:"228"},229:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"220",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"220",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"220",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"220",id:"232"},233:{path:"/users/:username/experiment-img/add",parentId:"220",id:"233"},234:{path:"/users/:username",parentId:"220",id:"234"},235:{path:"/users/:username",parentId:"234",id:"235"},236:{path:"/users/:username/baseInfo/edit",parentId:"234",id:"236"},237:{path:"/users/:username/baseInfo",parentId:"234",id:"237"},238:{path:"/users/:username/realNameCertification",parentId:"234",id:"238"},239:{path:"/users/:username/careerCertification",parentId:"234",id:"239"},240:{path:"/users/:username/classrooms",parentId:"234",id:"240"},241:{path:"/users/:username/shixuns",parentId:"234",id:"241"},242:{path:"/users/:username/dataSet",parentId:"234",id:"242"},243:{path:"/users/:username/userPortrait",parentId:"234",id:"243"},244:{path:"/users/:username/learningPath",parentId:"234",id:"244"},245:{path:"/users/:username/teach-group",parentId:"234",id:"245"},246:{path:"/users/:username/competitions",parentId:"234",id:"246"},247:{path:"/users/:username/experiment-img",parentId:"234",id:"247"},248:{path:"/users/:username/experiment-img/:experid/detail",parentId:"234",id:"248"},249:{path:"/users/:username/certificate",parentId:"234",id:"249"},250:{path:"/users/:username/otherResources",parentId:"234",id:"250"},251:{path:"/users/:username/classmanagement",parentId:"234",id:"251"},252:{path:"/users/:username/classmanagement/:couserid",parentId:"234",id:"252"},253:{path:"/users/:username/paths",parentId:"234",id:"253"},254:{path:"/users/:username/projects",parentId:"234",id:"254"},255:{path:"/users/:username/videos",parentId:"234",id:"255"},256:{path:"/users/:username/videos/upload",parentId:"234",id:"256"},257:{path:"/users/:username/topics/:topicstype",parentId:"234",id:"257"},258:{path:"/users/:username/vspaces",parentId:"234",id:"258"},259:{path:"/users/:username/resourcesCenter",parentId:"234",id:"259"},260:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"234",id:"260"},261:{path:"/users/:username/resourceGuarantee",parentId:"234",id:"261"},262:{path:"/users/:username/resourceAllocation",parentId:"234",id:"262"},263:{parentId:"1",id:"263"},264:{path:"/problems",parentId:"263",id:"264"},265:{path:"/problems",parentId:"264",id:"265"},266:{path:"/problems/batchAdd",parentId:"264",id:"266"},267:{path:"/problems/newcreate",parentId:"263",id:"267"},268:{path:"/problems/newedit/:id",exact:!0,parentId:"263",id:"268"},269:{path:"/problems/:id/edit",exact:!0,parentId:"263",id:"269"},270:{path:"/problems/new",exact:!0,parentId:"263",id:"270"},271:{path:"/problems/:id/oj/:save_identifier",parentId:"263",id:"271"},272:{path:"/problems/:id/record-detail/:submitId",parentId:"263",id:"272"},273:{path:"/problems/add",parentId:"263",id:"273"},274:{path:"/problems/:id/ojedit",parentId:"263",id:"274"},275:{path:"/engineering",parentId:"1",id:"275"},276:{path:"/engineering",parentId:"275",id:"276"},277:{path:"/engineering/teacherList",parentId:"276",id:"277"},278:{path:"/engineering/studentList",parentId:"276",id:"278"},279:{path:"/engineering/training/program",parentId:"276",id:"279"},280:{path:"/engineering/training/program/add",parentId:"276",id:"280"},281:{path:"/engineering/training/program/edit",parentId:"276",id:"281"},282:{path:"/engineering/training/objectives",parentId:"276",id:"282"},283:{path:"/engineering/graduated/index",parentId:"276",id:"283"},284:{path:"/engineering/graduated/matrix",parentId:"276",id:"284"},285:{path:"/engineering/course/list",parentId:"276",id:"285"},286:{path:"/engineering/course/setting",parentId:"276",id:"286"},287:{path:"/engineering/course/matrix",parentId:"276",id:"287"},288:{path:"/engineering/navigation",parentId:"276",id:"288"},289:{path:"/engineering/evaluate/course",parentId:"276",id:"289"},290:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"276",id:"290"},291:{path:"/engineering/evaluate/norm",parentId:"276",id:"291"},292:{path:"/engineering/evaluate/document",parentId:"276",id:"292"},293:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"276",id:"293"},294:{path:"/engineering/*",redirect:"/404",parentId:"276",id:"294"},295:{path:"/innovation",parentId:"1",id:"295"},296:{path:"/innovation/tasks/:taskId",parentId:"295",id:"296"},297:{path:"/innovation",parentId:"295",id:"297"},298:{path:"/innovation/project",parentId:"297",id:"298"},299:{path:"/innovation/dataset",parentId:"297",id:"299"},300:{path:"/innovation/mirror",parentId:"297",id:"300"},301:{path:"/innovation/my-project",parentId:"297",id:"301"},302:{path:"/innovation/my-dataset",parentId:"297",id:"302"},303:{path:"/innovation/my-mirror",parentId:"297",id:"303"},304:{path:"/innovation/project/create",parentId:"297",id:"304"},305:{path:"/innovation/project/edit/:id",parentId:"297",id:"305"},306:{path:"/innovation/project/detail/:taskId",parentId:"297",id:"306"},307:{path:"/tasks",parentId:"1",id:"307"},308:{path:"/tasks/:taskId",exact:!0,parentId:"307",id:"308"},309:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"307",id:"309"},310:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"307",id:"310"},311:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"307",id:"311"},312:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"307",id:"312"},313:{path:"/myproblems",parentId:"1",id:"313"},314:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"313",id:"314"},315:{path:"/myproblems/:id",exact:!0,parentId:"313",id:"315"},316:{path:"/account",parentId:"1",id:"316"},317:{path:"/account",parentId:"316",id:"317"},318:{path:"/account/profile",parentId:"317",id:"318"},319:{path:"/account/profile/edit",parentId:"317",id:"319"},320:{path:"/account/certification",parentId:"317",id:"320"},321:{path:"/account/secure",parentId:"317",id:"321"},322:{path:"/account/binding",parentId:"317",id:"322"},323:{path:"/account/Results",parentId:"317",id:"323"},324:{path:"/ch",parentId:"1",id:"324"},325:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"324",id:"325"},326:{path:"/ch/rest/",exact:!0,parentId:"324",id:"326"},327:{path:"/ch/rest/:id",exact:!0,parentId:"324",id:"327"},328:{path:"/order",parentId:"1",id:"328"},329:{path:"/order",parentId:"328",id:"329"},330:{path:"/order/invoice",parentId:"328",id:"330"},331:{path:"/order/records",parentId:"328",id:"331"},332:{path:"/order/apply",parentId:"328",id:"332"},333:{path:"/order/view",parentId:"328",id:"333"},334:{path:"/order/:courseId/information",parentId:"328",id:"334"},335:{path:"/order/:courseId/pay",parentId:"328",id:"335"},336:{path:"/order/:orderNum/result",parentId:"328",id:"336"},337:{path:"/messages",parentId:"1",id:"337"},338:{path:"/messages/:userId/user_tidings",parentId:"337",id:"338"},339:{path:"/messages/:userId/private_messages",parentId:"337",id:"339"},340:{path:"/messages/:userId/message_detail",parentId:"337",id:"340"},341:{path:"/vtrs",parentId:"1",id:"341"},342:{path:"/vtrs/:virtual_spacesId",parentId:"341",id:"342"},343:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"342",id:"343"},344:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"342",id:"344"},345:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"342",id:"345"},346:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"342",id:"346"},347:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"342",id:"347"},348:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"342",id:"348"},349:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"342",id:"349"},350:{path:"/vtrs/:virtual_spacesId/survey",parentId:"342",id:"350"},351:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"342",id:"351"},352:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"342",id:"352"},353:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"342",id:"353"},354:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"342",id:"354"},355:{path:"/vtrs/:virtual_spacesId/material",parentId:"342",id:"355"},356:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"342",id:"356"},357:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"342",id:"357"},358:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"342",id:"358"},359:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"342",id:"359"},360:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"342",id:"360"},361:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"342",id:"361"},362:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"342",id:"362"},363:{path:"/vtrs/:virtual_spacesId/settings",parentId:"342",id:"363"},364:{path:"/vtrs/:virtual_spacesId/resources",parentId:"342",id:"364"},365:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"342",id:"365"},366:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"342",id:"366"},367:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"342",id:"367"},368:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"342",id:"368"},369:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"342",id:"369"},370:{path:"/vtrs/:virtual_spacesId/*",parentId:"342",id:"370"},371:{path:"/101",parentId:"1",id:"371"},372:{path:"/101/:virtual_spacesId",parentId:"371",id:"372"},373:{path:"/101/:virtual_spacesId",exact:!0,parentId:"372",id:"373"},374:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"372",id:"374"},375:{path:"/101/:virtual_spacesId/experiment",parentId:"372",id:"375"},376:{path:"/101/:virtual_spacesId/announcement",parentId:"372",id:"376"},377:{path:"/101/:virtual_spacesId/announcement/add",parentId:"372",id:"377"},378:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"372",id:"378"},379:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"372",id:"379"},380:{path:"/101/:virtual_spacesId/survey",parentId:"372",id:"380"},381:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"372",id:"381"},382:{path:"/101/:virtual_spacesId/knowledge",parentId:"372",id:"382"},383:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"372",id:"383"},384:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"372",id:"384"},385:{path:"/101/:virtual_spacesId/material",parentId:"372",id:"385"},386:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"372",id:"386"},387:{path:"/101/:virtual_spacesId/lesson",parentId:"372",id:"387"},388:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"372",id:"388"},389:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"372",id:"389"},390:{path:"/101/:virtual_spacesId/discussion",parentId:"372",id:"390"},391:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"372",id:"391"},392:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"372",id:"392"},393:{path:"/101/:virtual_spacesId/settings",parentId:"372",id:"393"},394:{path:"/101/:virtual_spacesId/resources",parentId:"372",id:"394"},395:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"372",id:"395"},396:{path:"/101/:virtual_spacesId/Plan",parentId:"372",id:"396"},397:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"372",id:"397"},398:{path:"/101/:virtual_spacesId/digtal",parentId:"372",id:"398"},399:{path:"/101/:virtual_spacesId/homepage",parentId:"372",id:"399"},400:{path:"/101/:virtual_spacesId/*",parentId:"372",id:"400"},401:{path:"/administration",parentId:"1",id:"401"},402:{path:"/administration",parentId:"401",id:"402"},403:{path:"/administration/college",parentId:"402",id:"403"},404:{path:"/administration/student",parentId:"402",id:"404"},405:{path:"/administration/student/:studentId/edit",parentId:"402",id:"405"},406:{path:"/administration/profession",parentId:"402",id:"406"},407:{path:"/graduations",parentId:"1",id:"407"},408:{path:"/graduations",exact:!0,parentId:"407",id:"408"},409:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"407",id:"409"},410:{path:"/graduations/:id",parentId:"407",id:"410"},411:{path:"/graduations/:id/index",parentId:"410",id:"411"},412:{path:"/graduations/:id/topics",parentId:"410",id:"412"},413:{path:"/graduations/:id/student_selection",parentId:"410",id:"413"},414:{path:"/graduations/:id/tasks",parentId:"410",id:"414"},415:{path:"/graduations/:id/opening_report",parentId:"410",id:"415"},416:{path:"/graduations/:id/midterm_report",parentId:"410",id:"416"},417:{path:"/graduations/:id/thesis",parentId:"410",id:"417"},418:{path:"/graduations/:id/final_defense",parentId:"410",id:"418"},419:{path:"/graduations/:id/final_thesis",parentId:"410",id:"419"},420:{path:"/graduations/:id/settings",parentId:"410",id:"420"},421:{path:"/graduations/:id/teachers",parentId:"410",id:"421"},422:{path:"/graduations/:id/students",parentId:"410",id:"422"},423:{path:"/graduations/:id/archives",parentId:"410",id:"423"},424:{path:"/graduations/:id/grading_summary",parentId:"410",id:"424"},425:{path:"/dataset",parentId:"1",id:"425"},426:{path:"/dataset",exact:!0,parentId:"425",id:"426"},427:{path:"/dataset/:id/detail",exact:!0,parentId:"425",id:"427"},428:{path:"/knowledgegraph",parentId:"1",id:"428"},429:{path:"/knowledgegraph/:pathId",parentId:"428",id:"429"},430:{path:"/knowledgegraph/:pathId/statistics",parentId:"428",id:"430"},431:{path:"/onlinenum",parentId:"1",id:"431"},432:{path:"/onlinenum",parentId:"431",id:"432"},433:{path:"/shixuncontext",parentId:"1",id:"433"},434:{path:"/shixuncontext",parentId:"433",id:"434"},435:{path:"/shixuncontext/:Id/detail",parentId:"433",id:"435"},436:{path:"/educoder-demo",exact:!0,parentId:"1",id:"436"},437:{path:"/training",parentId:"1",id:"437"},438:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"437",id:"438"},439:{path:"/largeScreen",exact:!0,parentId:"1",id:"439"},440:{path:"/quality",parentId:"1",id:"440"},441:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"440",id:"441"},442:{path:"/otherlogin",exact:!0,parentId:"1",id:"442"},443:{path:"/otherloginqq",exact:!0,parentId:"1",id:"443"},444:{path:"/otherloginstart",exact:!0,parentId:"1",id:"444"},445:{path:"/pathsoverview",exact:!0,parentId:"1",id:"445"},446:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"446"},447:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"447"},448:{path:"/login",parentId:"1",id:"448"},449:{path:"/login",parentId:"448",id:"449"},450:{path:"/user",parentId:"1",id:"450"},451:{path:"/user/login",parentId:"450",id:"451"},452:{path:"/user/register",parentId:"450",id:"452"},453:{path:"/user/reset-password",parentId:"450",id:"453"},454:{path:"/colleges",parentId:"1",id:"454"},455:{path:"/colleges/:id/statistics",parentId:"454",id:"455"},456:{path:"/help",parentId:"1",id:"456"},457:{path:"/help/:id",parentId:"456",id:"457"},458:{path:"/video",parentId:"1",id:"458"},459:{path:"/video/:videoId",parentId:"458",id:"459"},460:{path:"/terminal",parentId:"1",id:"460"},461:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"461"},462:{path:"/",parentId:"1",id:"462"},463:{path:"/",exact:!0,parentId:"462",id:"463"},464:{path:"/api/*",exact:!0,parentId:"462",id:"464"},465:{path:"/search",exact:!0,parentId:"462",id:"465"},466:{path:"/moop_cases",exact:!0,parentId:"462",id:"466"},467:{path:"/moop_cases/new",exact:!0,parentId:"462",id:"467"},468:{path:"/moop_cases/:caseId",exact:!0,parentId:"462",id:"468"},469:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"462",id:"469"},470:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"462",id:"470"},471:{path:"/randompaper",exact:!0,parentId:"462",id:"471"},472:{path:"/randompaper/edit/:id",exact:!0,parentId:"462",id:"472"},473:{path:"/randompaper/detail/:id",exact:!0,parentId:"462",id:"473"},474:{path:"/403",parentId:"462",id:"474"},475:{path:"/500",parentId:"462",id:"475"},476:{path:"/404",parentId:"462",id:"476"},477:{path:"/download",parentId:"462",id:"477"},478:{path:"/iwce",parentId:"462",id:"478"},479:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"462",id:"479"},480:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"462",id:"480"},481:{path:"/Activities",parentId:"462",id:"481"},482:{path:"/iwce/:itemname",parentId:"462",id:"482"},483:{path:"/hpc-course",parentId:"462",id:"483"},484:{path:"/user_agents",parentId:"462",id:"484"},485:{path:"/three",parentId:"462",id:"485"},486:{path:"/introduction",parentId:"462",id:"486"},487:{path:"/chatgpt",parentId:"462",id:"487"},488:{path:"/*",parentId:"462",id:"488"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),2:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),3:je.lazy(()=>__webpack_require__.e(4862).then(__webpack_require__.bind(__webpack_require__,72919))),4:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9177))),5:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9177))),6:je.lazy(()=>__webpack_require__.e(3247).then(__webpack_require__.bind(__webpack_require__,26443))),7:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),8:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,48635))),9:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),10:je.lazy(()=>__webpack_require__.e(6052).then(__webpack_require__.bind(__webpack_require__,27792))),11:je.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,45220))),12:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,14688))),13:je.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,81490))),14:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(3332)]).then(__webpack_require__.bind(__webpack_require__,97237))),15:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4601)]).then(__webpack_require__.bind(__webpack_require__,63401))),16:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,14688))),17:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),18:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),19:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),20:je.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,65925))),21:je.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,42409))),22:je.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,59714))),23:je.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,65925))),24:je.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,76216))),25:je.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,76216))),26:je.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,55460))),27:je.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,55460))),28:je.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,48399))),29:je.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,88166))),30:je.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,28113))),31:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,94465))),32:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(342)]).then(__webpack_require__.bind(__webpack_require__,76518))),33:je.lazy(()=>__webpack_require__.e(2303).then(__webpack_require__.bind(__webpack_require__,15398))),34:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,81045))),35:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,74371))),36:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,30181))),37:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,28716))),38:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,96324))),39:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,26301))),40:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,94870))),41:je.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,97666))),42:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,68474))),43:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),44:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,66378))),45:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,47651))),46:je.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,47993))),47:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),48:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,80440))),49:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,83418))),50:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,83418))),51:je.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,73896))),52:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,43871))),53:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,43871))),54:je.lazy(()=>__webpack_require__.e(8431).then(__webpack_require__.bind(__webpack_require__,29170))),55:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,39088))),56:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,9111))),57:je.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,67440))),58:je.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,67440))),59:je.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,94357))),60:je.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,94357))),61:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,26972))),62:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,87640))),63:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,38185))),64:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,84139))),65:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,68601))),66:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,79557))),67:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,11621))),68:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,27626))),69:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,33898))),70:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,34546))),71:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,53332))),72:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,64459))),73:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,97316))),74:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,86219))),75:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,47126))),76:je.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,92781))),77:je.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,42268))),78:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,34578))),79:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,8571))),80:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,91917))),81:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,69375))),82:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,30815))),83:je.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,81490))),84:je.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,60158))),85:je.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,87654))),86:je.lazy(()=>__webpack_require__.e(7395).then(__webpack_require__.bind(__webpack_require__,76969))),87:je.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,2935))),88:je.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,19114))),89:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,41997))),90:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,41997))),91:je.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,55775))),92:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,60008))),93:je.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,49))),94:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,89166))),95:je.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,5583))),96:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,4949))),97:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,73573))),98:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,64885))),99:je.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,25466))),100:je.lazy(()=>__webpack_require__.e(3282).then(__webpack_require__.bind(__webpack_require__,28008))),101:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,12763))),102:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,12763))),103:je.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,10634))),104:je.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,32288))),105:je.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,32288))),106:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,9477))),107:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,9477))),108:je.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,48935))),109:je.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,48935))),110:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,31817))),111:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,31817))),112:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,54516))),113:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,54516))),114:je.lazy(()=>__webpack_require__.e(8014).then(__webpack_require__.bind(__webpack_require__,30309))),115:je.lazy(()=>__webpack_require__.e(8077).then(__webpack_require__.bind(__webpack_require__,47869))),116:je.lazy(()=>__webpack_require__.e(3356).then(__webpack_require__.bind(__webpack_require__,8943))),117:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,97537))),118:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,97537))),119:je.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,76207))),120:je.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,14129))),121:je.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,3701))),122:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,38316))),123:je.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,75604))),124:je.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,3256))),125:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,51287))),126:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,51287))),127:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,34937))),128:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,34937))),129:je.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,22943))),130:je.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,22943))),131:je.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,96030))),132:je.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,96030))),133:je.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,74084))),134:je.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,14481))),135:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,70396))),136:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,81031))),137:je.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,43597))),138:je.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,43597))),139:je.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,78352))),140:je.lazy(()=>__webpack_require__.e(8302).then(__webpack_require__.bind(__webpack_require__,23486))),141:je.lazy(()=>__webpack_require__.e(8302).then(__webpack_require__.bind(__webpack_require__,23486))),142:je.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,42185))),143:je.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,42185))),144:je.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,85923))),145:je.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,92641))),146:je.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,92641))),147:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,57815))),148:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,57815))),149:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,34267))),150:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,81924))),151:je.lazy(()=>__webpack_require__.e(3276).then(__webpack_require__.bind(__webpack_require__,6457))),152:je.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,37845))),153:je.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,58692))),154:je.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,41778))),155:je.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,65936))),156:je.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,19260))),157:je.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,5859))),158:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),159:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),160:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),161:je.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,69603))),162:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),163:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,72699))),164:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,72699))),165:je.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,76095))),166:je.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,66450))),167:je.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,70375))),168:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(8797)]).then(__webpack_require__.bind(__webpack_require__,76083))),169:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),170:je.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,48114))),171:je.lazy(()=>__webpack_require__.e(2983).then(__webpack_require__.bind(__webpack_require__,75332))),172:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,20281))),173:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,20281))),174:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,25334))),175:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),176:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),177:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,57789))),178:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,57789))),179:je.lazy(()=>__webpack_require__.e(1581).then(__webpack_require__.bind(__webpack_require__,65669))),180:je.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,66866))),181:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),182:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),183:je.lazy(()=>__webpack_require__.e(8782).then(__webpack_require__.bind(__webpack_require__,20123))),184:je.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,45771))),185:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7008)]).then(__webpack_require__.bind(__webpack_require__,4560))),186:je.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,6734))),187:je.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,42463))),188:je.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,749))),189:je.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,51114))),190:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(2245),__webpack_require__.e(6277)]).then(__webpack_require__.bind(__webpack_require__,2785))),191:je.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,67669))),192:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,37445))),193:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,47662))),194:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,47662))),195:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,90596))),196:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,90596))),197:je.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,3561))),198:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,93709))),199:je.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,55955))),200:je.lazy(()=>__webpack_require__.e(2875).then(__webpack_require__.bind(__webpack_require__,5297))),201:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9133)]).then(__webpack_require__.bind(__webpack_require__,41922))),202:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),203:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),204:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5470)]).then(__webpack_require__.bind(__webpack_require__,83337))),205:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6541)]).then(__webpack_require__.bind(__webpack_require__,53266))),206:je.lazy(()=>Promise.all([__webpack_require__.e(2245),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,32410))),207:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(2254)]).then(__webpack_require__.bind(__webpack_require__,79490))),208:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9408)]).then(__webpack_require__.bind(__webpack_require__,73474))),209:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6845)]).then(__webpack_require__.bind(__webpack_require__,55264))),210:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,11805))),211:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,11805))),212:je.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,12305))),213:je.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,12305))),214:je.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,83540))),215:je.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,83540))),216:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),217:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),218:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,6615))),219:je.lazy(()=>__webpack_require__.e(9215).then(__webpack_require__.bind(__webpack_require__,23155))),220:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),221:je.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,81681))),222:je.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,60007))),223:je.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,37665))),224:je.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,7387))),225:je.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,68661))),226:je.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,68661))),227:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,96836))),228:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,4498))),229:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,58367))),230:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,35051))),231:je.lazy(()=>__webpack_require__.e(5043).then(__webpack_require__.bind(__webpack_require__,77008))),232:je.lazy(()=>__webpack_require__.e(799).then(__webpack_require__.bind(__webpack_require__,59102))),233:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,28306))),234:je.lazy(()=>__webpack_require__.e(2529).then(__webpack_require__.bind(__webpack_require__,69182))),235:je.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,27738))),236:je.lazy(()=>__webpack_require__.e(5895).then(__webpack_require__.bind(__webpack_require__,44227))),237:je.lazy(()=>__webpack_require__.e(6982).then(__webpack_require__.bind(__webpack_require__,3887))),238:je.lazy(()=>__webpack_require__.e(6805).then(__webpack_require__.bind(__webpack_require__,94666))),239:je.lazy(()=>__webpack_require__.e(1416).then(__webpack_require__.bind(__webpack_require__,94281))),240:je.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,27738))),241:je.lazy(()=>__webpack_require__.e(8307).then(__webpack_require__.bind(__webpack_require__,69880))),242:je.lazy(()=>__webpack_require__.e(2826).then(__webpack_require__.bind(__webpack_require__,50985))),243:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,52983))),244:je.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,866))),245:je.lazy(()=>__webpack_require__.e(9590).then(__webpack_require__.bind(__webpack_require__,19149))),246:je.lazy(()=>__webpack_require__.e(2076).then(__webpack_require__.bind(__webpack_require__,17796))),247:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4849)]).then(__webpack_require__.bind(__webpack_require__,94891))),248:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(310)]).then(__webpack_require__.bind(__webpack_require__,23396))),249:je.lazy(()=>__webpack_require__.e(5191).then(__webpack_require__.bind(__webpack_require__,28546))),250:je.lazy(()=>__webpack_require__.e(3496).then(__webpack_require__.bind(__webpack_require__,85503))),251:je.lazy(()=>__webpack_require__.e(7948).then(__webpack_require__.bind(__webpack_require__,72256))),252:je.lazy(()=>__webpack_require__.e(9519).then(__webpack_require__.bind(__webpack_require__,16046))),253:je.lazy(()=>__webpack_require__.e(5599).then(__webpack_require__.bind(__webpack_require__,11779))),254:je.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,73525))),255:je.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,97625))),256:je.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,30105))),257:je.lazy(()=>__webpack_require__.e(265).then(__webpack_require__.bind(__webpack_require__,41847))),258:je.lazy(()=>__webpack_require__.e(9360).then(__webpack_require__.bind(__webpack_require__,43328))),259:je.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,39638))),260:je.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,83219))),261:je.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,60119))),262:je.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,26662))),263:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),264:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),265:je.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,55396))),266:je.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,5479))),267:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,1096))),268:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,1096))),269:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,66880))),270:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,66880))),271:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,80677))),272:je.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,61834))),273:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,36667))),274:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,36667))),275:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),276:je.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,18087))),277:je.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,82101))),278:je.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,27098))),279:je.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,12449))),280:je.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,18955))),281:je.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,51612))),282:je.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,56192))),283:je.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,76584))),284:je.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,68173))),285:je.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,4962))),286:je.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,92100))),287:je.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,51389))),288:je.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,16559))),289:je.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,53318))),290:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,30759))),291:je.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,85722))),292:je.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,89651))),293:je.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,89243))),294:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),295:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),296:je.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,19689))),297:je.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,3074))),298:je.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,43026))),299:je.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,61382))),300:je.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,41319))),301:je.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,13232))),302:je.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,57732))),303:je.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,1741))),304:je.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,75848))),305:je.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,75848))),306:je.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,78946))),307:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),308:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),309:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,80126))),310:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),311:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,80126))),312:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),313:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),314:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,86145))),315:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,97655))),316:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),317:je.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,15679))),318:je.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,39752))),319:je.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,24059))),320:je.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,10769))),321:je.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,20118))),322:je.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,43751))),323:je.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,35941))),324:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),325:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,81152))),326:je.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,28287))),327:je.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,28287))),328:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),329:je.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,4034))),330:je.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,71333))),331:je.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,56856))),332:je.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,70263))),333:je.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,79178))),334:je.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,40059))),335:je.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,49877))),336:je.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,95758))),337:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),338:je.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,69453))),339:je.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,38756))),340:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,49248))),341:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),342:je.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,463))),343:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),344:je.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,96482))),345:je.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,16653))),346:je.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,5339))),347:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),348:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),349:je.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89038))),350:je.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61782))),351:je.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,8513))),352:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,14569))),353:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),354:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),355:je.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,339))),356:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,53470))),357:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,43524))),358:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),359:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),360:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,2682))),361:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),362:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),363:je.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,77458))),364:je.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,91541))),365:je.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,98563))),366:je.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,62041))),367:je.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,34891))),368:je.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,68365))),369:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),370:je.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,16733))),371:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),372:je.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,463))),373:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),374:je.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,96482))),375:je.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,16653))),376:je.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,5339))),377:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),378:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),379:je.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89038))),380:je.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61782))),381:je.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,8513))),382:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,14569))),383:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),384:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),385:je.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,339))),386:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,53470))),387:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,43524))),388:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),389:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),390:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,2682))),391:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),392:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),393:je.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,77458))),394:je.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,91541))),395:je.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,98563))),396:je.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,62041))),397:je.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,34891))),398:je.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,68365))),399:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),400:je.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,16733))),401:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),402:je.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,23810))),403:je.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,6202))),404:je.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,36605))),405:je.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,31386))),406:je.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,69446))),407:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),408:je.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,46544))),409:je.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,98851))),410:je.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,82676))),411:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,69395))),412:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,70330))),413:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,39850))),414:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,99002))),415:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),416:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),417:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),418:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),419:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),420:je.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,50587))),421:je.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,23025))),422:je.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,23025))),423:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,50964))),424:je.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,87549))),425:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),426:je.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,8497))),427:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,59230))),428:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),429:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,72186))),430:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,15370))),431:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),432:je.lazy(()=>__webpack_require__.e(570).then(__webpack_require__.bind(__webpack_require__,47712))),433:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),434:je.lazy(()=>__webpack_require__.e(8365).then(__webpack_require__.bind(__webpack_require__,39389))),435:je.lazy(()=>__webpack_require__.e(672).then(__webpack_require__.bind(__webpack_require__,27590))),436:je.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,34615))),437:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),438:je.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,56140))),439:je.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,33202))),440:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),441:je.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,51443))),442:je.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,26671))),443:je.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,19039))),444:je.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,5670))),445:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,45914))),446:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,82740))),447:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,35868))),448:je.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,428))),449:je.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,87877))),450:je.lazy(()=>__webpack_require__.e(5972).then(__webpack_require__.bind(__webpack_require__,50446))),451:je.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,87877))),452:je.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,5881))),453:je.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,18097))),454:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),455:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,76339))),456:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),457:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,14462))),458:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),459:je.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,76428))),460:je.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,76546))),461:je.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,62642))),462:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),463:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,2689))),464:je.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,85367))),465:je.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,67488))),466:je.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,60161))),467:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,84592))),468:je.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,83916))),469:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,84592))),470:je.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,73827))),471:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),472:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),473:je.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,61889))),474:je.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,13153))),475:je.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,74039))),476:je.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,65095))),477:je.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,6281))),478:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),479:je.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,65773))),480:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,38316))),481:je.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,87554))),482:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),483:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),484:je.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,65216))),485:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,74347))),486:je.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,39945))),487:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,75326))),488:je.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,65095))),"@@/global-layout":je.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,36359)))}}})}var A=__webpack_require__(90),P=__webpack_require__(6307),D=__webpack_require__(71418),pe=__webpack_require__(13631),Oe=()=>je.createElement(D.Z,{size:"middle",className:pe.Z.loading}),an=__webpack_require__(42203),zn=__webpack_require__(61186),dn=__webpack_require__.n(zn),Mi=__webpack_require__(91392),Qa=__webpack_require__.n(Mi),Oa=__webpack_require__(34749),To=__webpack_require__.n(Oa),ds=__webpack_require__(19277),yo=__webpack_require__.n(ds),ys=__webpack_require__(10238),gc=__webpack_require__.n(ys),$l=__webpack_require__(33656),rc=__webpack_require__.n($l),nc=__webpack_require__(90111),fl=__webpack_require__.n(nc),ki=__webpack_require__(74959),El=__webpack_require__.n(ki),ic=__webpack_require__(23250),Uo=__webpack_require__.n(ic),no=__webpack_require__(58862),Wa=__webpack_require__.n(no),dl=__webpack_require__(58319),Sl=__webpack_require__.n(dl),ac=__webpack_require__(62053),hl=__webpack_require__.n(ac),pl=__webpack_require__(47477),Xu=__webpack_require__.n(pl),j=__webpack_require__(59717),r=__webpack_require__.n(j);dn().extend(To()),dn().extend(yo()),dn().extend(gc()),dn().extend(rc()),dn().extend(fl()),dn().extend(El()),dn().extend(Uo()),dn().extend(Wa()),dn().extend(Sl()),dn().extend(hl()),dn().extend(Xu()),dn().extend(r()),dn().extend(Qa());var a=Object.defineProperty,_=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,N=(De,He,Xe)=>He in De?a(De,He,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):De[He]=Xe,H=(De,He)=>{for(var Xe in He||(He={}))E.call(He,Xe)&&N(De,Xe,He[Xe]);if(_)for(var Xe of _(He))I.call(He,Xe)&&N(De,Xe,He[Xe]);return De},oe=(De,He,Xe)=>new Promise((lt,vt)=>{var Qt=Wr=>{try{Tr(Xe.next(Wr))}catch(Br){vt(Br)}},yr=Wr=>{try{Tr(Xe.throw(Wr))}catch(Br){vt(Br)}},Tr=Wr=>Wr.done?lt(Wr.value):Promise.resolve(Wr.value).then(Qt,yr);Tr((Xe=Xe.apply(De,He)).next())});const he="/react/build/",be=!1;function Se(){return oe(this,null,function*(){const De=(0,A.gD)(),{routes:He,routeComponents:Xe}=yield vc(De);yield De.applyPlugins({key:"patchRoutes",type:an.ApplyPluginsType.event,args:{routes:He,routeComponents:Xe}});const lt=De.applyPlugins({key:"modifyContextOpts",type:an.ApplyPluginsType.modify,initialValue:{}}),vt=lt.basename||"/",Qt=lt.historyType||"browser",yr=(0,P.fi)(H({type:Qt,basename:vt},lt.historyOpts));return De.applyPlugins({key:"render",type:an.ApplyPluginsType.compose,initialValue(){const Tr={useStream:!0,routes:He,routeComponents:Xe,pluginManager:De,mountElementId:"root",rootElement:lt.rootElement||document.getElementById("root"),loadingComponent:Oe,publicPath:he,runtimePublicPath:be,history:yr,historyType:Qt,basename:vt,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:lt.callback},Wr=De.applyPlugins({key:"modifyClientRenderOpts",type:an.ApplyPluginsType.modify,initialValue:Tr});return ec(Wr)}})()})}Se(),typeof window!="undefined"&&(window.g_umi={version:"4.4.4"})})()})();